From lshobbrook at fasttrack.net.au Tue Feb 1 01:56:25 2005 From: lshobbrook at fasttrack.net.au (Lewis Shobbrook) Date: Tue, 1 Feb 2005 11:56:25 +1100 Subject: nagios-mysql upgrade woes! Message-ID: <0C8098CA7F09CE419F0C2B68EB83587648B630@exchange.fasttrack.net.au> Hi All, I finally bit the bullet and upgraded from debian unstable release of nagios-mysql 1.2 release to 1.3. No complaints from the nagios init.d start, nor syslog, but I get persistent errors, of the following... Error: Could not insert/update status record for program in table 'programstatus' of database 'nagios' I've double checked the table permissions added the nagios user to the mysql group, even recereated the table and re-applied mysql permissions, lock tables rights etc. The mysql.log appears to show success... 050201 11:51:08 204 Query LOCK TABLES programstatus WRITE, hoststatus WRITE, servicestatus WRITE 204 Query DELETE FROM programstatus 204 Query DELETE FROM hoststatus 204 Query DELETE FROM servicestatus 204 Query INSERT INTO programstatus (last_update,program_start,nagios_pid,daemon_mode,last_command_check,las t_log_rotation,enable_notifications,execute_service_checks,accept_passiv e_service_checks,enable_event_handlers,obsess_over_services,enable_flap_ detection,enable_failure_prediction,process_performance_data) VALUES (FROM_UNIXTIME(1107219068),FROM_UNIXTIME(1107218543),'23373','0',FROM_UN IXTIME(1107219067),FROM_UNIXTIME(0),'1','1','1','1','0','0','1','0') Can't view anything via the web console just get ... Error: Could not read host and service status information! I am getting email alert notifications. Anyone have any ideas here? Thanks in advance. Lewis Shobbrook Ba.Appl.Sci (Hon's), MCSE IT Administrator FastTrack Pty. Ltd. ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Tue Feb 1 05:06:58 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Mon, 31 Jan 2005 23:06:58 -0500 (EST) Subject: Issue with check_disk when mounts exist on the server. In-Reply-To: <59B15593F41BD24591D59436E7226EAD015145F0@Khiphx2.khimetrics.com> References: <59B15593F41BD24591D59436E7226EAD015145F0@Khiphx2.khimetrics.com> Message-ID: Can debug and see if there is any output on stderr from the df command being used? Also what platforms are these on? On Mon, 31 Jan 2005, Nathan Oyler wrote: > Yes, I'm using nrpe. > > Although the problem also occurs if you run the check locally. > > I'd like to know what the exact command it runs it so that I can look at > it, and take a guess to if it's parsing something wrong, or what's > happening. > >> -----Original Message----- >> From: Martijn Lievaart [mailto:m at rtij.nl] >> Sent: Monday, January 31, 2005 3:12 PM >> To: Nathan Oyler >> Cc: nagios-users at lists.sourceforge.net >> Subject: Re: [Nagios-users] Issue with check_disk when mounts exist on > the >> server. >> >> Nathan Oyler wrote: >> >>> I find that I have had quite a few problems with check_disk with > mounts >>> on the machine. >>> >>> I have -x'd the mounts, so my checkdisk looks normal with -x > /mnt/blah >>> >>> And it doesn't show the mount on the check. However I am getting a >>> warning about something. >>> >>> DISK WARNING [33534504 kB (97%) free on /dev/hda3] [59017 kB (80%) > free >>> on /dev/hda1] [1290856 kB (100%) free on /dev/shm] >>> >>> Is what I get, although there are two mounts being -x'd, however they >>> more free than my limit for a warning on the check. >>> >>> 4 machines at once, all rh 8.0 mounting the same directories. Just >>> started happening. >>> >>> What is the exact command check disk calls so I can test that? >>> >>> [root at triad8 plugins]# ./check_nrpe -H 5b1.dc -c check_disk >>> DISK WARNING [33534500 kB (97%) free on /dev/hda3] [59017 kB (80%) > free >>> on /dev/ >>> hda1] [1290856 kB (100%) free on /dev/shm] >>> >>> >>> >> >> I'm having similar problems, but with check_disk called by check_nrpe. >> Do you use nrpe as well? >> >> M4 >> > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please 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: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From trevorwarren at gmail.com Tue Feb 1 08:54:55 2005 From: trevorwarren at gmail.com (Trevor Warren) Date: Mon, 31 Jan 2005 23:54:55 -0800 Subject: Help on alert ping In-Reply-To: <215C20B52BAEB9439EF08A32483AE9DC0151D107@suvxch02.govnet.local> References: <215C20B52BAEB9439EF08A32483AE9DC0151D107@suvxch02.govnet.local> Message-ID: <559e3cb60501312354330ae93e@mail.gmail.com> Dear, I have never had that requirement before hence never ventured into the same. Else i would have sent you a copy of script. Trevor On Tue, 1 Feb 2005 10:48:33 +1200, Jack A. Kanimea wrote: > Thanks Trevor, > U don't happen to have a example. I look in doc the closer I seem to get was on external commands in nagios documentation. If u have a example would be great. Otherwise thank heaps for direction > thanks in advance, > Jack K > > -----Original Message----- > From: Trevor Warren [mailto:trevorwarren at gmail.com] > Sent: Monday, January 31, 2005 2:21 P > To: Jack A. Kanimea > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Help on alert ping > > Hiyee there Jack, > > Whether this is accomplishable via a NAGIOS default plugin i ain't > too sure but here's what i would do in your position. > > Write some shell/awk/perl which does a consistent ping, evaluates > the condition you want and then once the time and criteria of the same > are fulfilled return a 0/1/2/3 to the calling nagios Daemon towards > signifying the service state. > > For more info on return values please check the nagios documentations. > > Trevor > > -- > ___________________________________ > ( >- / Scaling FreeSoftware & OpenSource \ -< ) > /~\ / In the Enterprise \ /~\ > | \) \ | www.fsf.org | www.opensource.org | / (/ | > |_|_ \____________________________________/ _|_| > -- ___________________________________ ( >- / Scaling FreeSoftware & OpenSource \ -< ) /~\ / In the Enterprise \ /~\ | \) \ | www.fsf.org | www.opensource.org | / (/ | |_|_ \____________________________________/ _|_| ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From trevorwarren at gmail.com Tue Feb 1 09:04:38 2005 From: trevorwarren at gmail.com (Trevor Warren) Date: Tue, 1 Feb 2005 00:04:38 -0800 Subject: check_memory In-Reply-To: References: Message-ID: <559e3cb605020100044eedecd4@mail.gmail.com> Fellas!!!, My script for check_mem on aix and gnu/linux. ########## bash-2.05a# cat /usr/local/nagios/libexec/check_mem.sh #!/usr/bin/bash avm=`vmstat | tail -n 1 | awk '{print $3}'` fre=`vmstat | tail -n 1 | awk '{print $4}'` avm1=`expr $avm \* 4` fre1=`expr $fre \* 4` echo "Total Memory is 8192MB while Active Memory is : "$avm1" KB and Free Memory is : "$fre1" KB" if [ $fre1 -le 800000 ] then { if [ $fre1 -le 400000 ] then exit 2; else exit 1; fi } else { exit 0; } fi ########## HTH. Trevor On Mon, 31 Jan 2005 15:58:51 -0600, Brian Erickson wrote: > > Hi everyone, > > Has anyone had using the check_memory plugin (written by Gary Danko) over > NRPE? I keep getting "CHECK_NRPE: Error receiving data from daemon." when I > try. > > TIA. > > Brian -- ___________________________________ ( >- / Scaling FreeSoftware & OpenSource \ -< ) /~\ / In the Enterprise \ /~\ | \) \ | www.fsf.org | www.opensource.org | / (/ | |_|_ \____________________________________/ _|_| ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Feb 1 10:09:52 2005 From: ae at op5.se (Andreas Ericsson) Date: Tue, 01 Feb 2005 10:09:52 +0100 Subject: Nagios-User with only VIEW-Rights In-Reply-To: <200501311913.56374.technik@xtranet.at> References: <200501311913.56374.technik@xtranet.at> Message-ID: <41FF4760.3040909@op5.se> XTRANET Technik wrote: > Hello All! > > Is there any possibility to configure Nagios (2.0b1) to let an _authenticated_ > user to only view the hosts and services he is allowed to (like configuring > him as "contact") but NOT let him issue ANY host- or service-command? > > I'll need this for allowing customers to VIEW their hosts and services but NOT > to change anything..... > Not without modifying the code. I've long planned to something along those lines to cmd.cgi, but it keeps getting postponed. Join nagios-devel and suggest it if you like. If Ethan thinks it's a good idea I might get a bit more incentive. > > Best regards, > peter > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Feb 1 10:10:53 2005 From: ae at op5.se (Andreas Ericsson) Date: Tue, 01 Feb 2005 10:10:53 +0100 Subject: check_memory In-Reply-To: References: Message-ID: <41FF479D.6050706@op5.se> Brian Erickson wrote: > Hi everyone, > > Has anyone had using the check_memory plugin (written by Gary Danko) over > NRPE? I keep getting "CHECK_NRPE: Error receiving data from daemon." when I > try. > It probably prints something to stderr, which will fuck up NRPE's checksumming over SSL. > TIA. > > Brian > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Feb 1 10:15:40 2005 From: ae at op5.se (Andreas Ericsson) Date: Tue, 01 Feb 2005 10:15:40 +0100 Subject: Realtime 3d statusmap? In-Reply-To: <1107209631.4071.25.camel@seki.nac.uci.edu> References: <20050128202743.GK1574@zippy.toger.us> <41FB6D1C.1000906@op5.se> <1107209631.4071.25.camel@seki.nac.uci.edu> Message-ID: <41FF48BC.3060807@op5.se> Dan Stromberg wrote: > On Sat, 2005-01-29 at 12:01 +0100, Andreas Ericsson wrote: > >>Jason Martin wrote: >> >>>Has anyone seen any sort of project that could be used to >>>implement a realtime* 3d statusmap? I'm not expecting it to be >>>Nagios specific, but perhaps something that could be integrated. >>> >>>Thanks, >>>-Jason Martin >>> >>>* as realtime as Nagios performs its status checks, of course. >> >>This would be impossible without a proprietary client and server, since >>http is a stateless protocol and the server can't force the browser to >>reload when an event happens on the server side (it can set reload >>timers, but not force them prior to timer). > > > Actually, both cookies and ? URL's can be used to maintain state in run > of the mill http+html. Your can encode your data in either, or just > encode a database key in either and have the server look things up in a > database under the key. > > Also forcing frequent reloads works fine with your usual http+html, > though you could come up with a browser plugin that would be more > efficient. > > If you restrict access, and refresh every 5 minutes or something, I > doubt you'd have a load problem. > I believe the issue was to have the server force a page reload each time a state-change occurs which isn't doable in HTTP being a stateless passive-server protocol. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From j.kruse at econnex.de Tue Feb 1 12:19:13 2005 From: j.kruse at econnex.de (Jens Kruse) Date: Tue, 1 Feb 2005 12:19:13 +0100 Subject: Upgrade nagios-mysql (debian backports) problematic? Message-ID: <200502011119.j11BJC21009121@eclipse.econnex.de> Hi, I just did the nagios-mysql upgrade on one of my Nagios Servers (debian woody, nagios* from backports), but nagios doesn't restart anymore ... Here's my Preflight Check: # /usr/sbin/nagios -v /etc/nagios/nagios.cfg Nagios 1.2 Copyright (c) 1999-2004 Ethan Galstad (nagios at nagios.org) Last Modified: 02-02-2004 License: GPL Reading configuration data... Running pre-flight check on configuration data... Checking services... Error: There are no services defined! Checked 0 services. Checking hosts... Error: There are no hosts defined! Checked 0 hosts. Checking host groups... Error: There are no host groups defined! Checked 0 host groups. Checking contacts... Error: There are no contacts defined! Checked 0 contacts. Checking contact groups... Error: There are no contact groups defined! Checked 0 contact groups. Checking service escalations... Checked 0 service escalations. Checking host group escalations... Checked 0 host group escalations. Checking service dependencies... Checked 0 service dependencies. Checking host escalations... Checked 0 host escalations. Checking host dependencies... Checked 0 host dependencies. Checking commands... Checked 0 commands. Checking time periods... Checked 0 time periods. Checking for circular paths between hosts... Checking for circular service execution dependencies... Checking global event handlers... Checking obsessive compulsive service processor command... Checking misc settings... Total Warnings: 0 Total Errors: 5 ***> One or more problems was encountered while running the pre-flight check... Check your configuration file(s) to ensure that they contain valid directives and data defintions. If you are upgrading from a previous version of Nagios, you should be aware that some variables/definitions may have been removed or modified in this version. Make sure to read the HTML documentation on the main and host config files, as well as the 'Whats New' section to find out what has changed. It seems, that nagios can't find its config anymore, though the config files don't vary. Could it be a problem with the database? Thanks for your help, Jens From jens at kruse-kiel.de Tue Feb 1 14:14:41 2005 From: jens at kruse-kiel.de (Jens Kruse) Date: Tue, 1 Feb 2005 14:14:41 +0100 Subject: nagios-mysql upgrade problem In-Reply-To: <0C8098CA7F09CE419F0C2B68EB83587648B630@exchange.fasttrack.net.au> References: <0C8098CA7F09CE419F0C2B68EB83587648B630@exchange.fasttrack.net.au> Message-ID: <20050201131441.C8293C002E@fehmarn.kruse-kiel.de> Hi, I just did the nagios-mysql upgrade on one of my Nagios Servers (debian woody, nagios* from backports), but nagios doesn't restart anymore ... Here's my Preflight Check: # /usr/sbin/nagios -v /etc/nagios/nagios.cfg Nagios 1.2 Copyright (c) 1999-2004 Ethan Galstad (nagios at nagios.org) Last Modified: 02-02-2004 License: GPL Reading configuration data... Running pre-flight check on configuration data... Checking services... Error: There are no services defined! Checked 0 services. Checking hosts... Error: There are no hosts defined! Checked 0 hosts. Checking host groups... Error: There are no host groups defined! Checked 0 host groups. Checking contacts... Error: There are no contacts defined! Checked 0 contacts. Checking contact groups... Error: There are no contact groups defined! Checked 0 contact groups. Checking service escalations... Checked 0 service escalations. Checking host group escalations... Checked 0 host group escalations. Checking service dependencies... Checked 0 service dependencies. Checking host escalations... Checked 0 host escalations. Checking host dependencies... Checked 0 host dependencies. Checking commands... Checked 0 commands. Checking time periods... Checked 0 time periods. Checking for circular paths between hosts... Checking for circular service execution dependencies... Checking global event handlers... Checking obsessive compulsive service processor command... Checking misc settings... Total Warnings: 0 Total Errors: 5 ***> One or more problems was encountered while running the pre-flight check... Check your configuration file(s) to ensure that they contain valid directives and data defintions. If you are upgrading from a previous version of Nagios, you should be aware that some variables/definitions may have been removed or modified in this version. Make sure to read the HTML documentation on the main and host config files, as well as the 'Whats New' section to find out what has changed. It seems, that nagios can't find its config anymore, though the config files don't vary. Any hints? Thanks for your help, Jens ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From noyler at khimetrics.com Tue Feb 1 15:55:44 2005 From: noyler at khimetrics.com (Nathan Oyler) Date: Tue, 1 Feb 2005 07:55:44 -0700 Subject: Issue with check_disk when mounts exist on the server. Message-ID: <59B15593F41BD24591D59436E7226EAD015146EC@Khiphx2.khimetrics.com> RH8 are the machines I am having problems with. I had set -x for a mount. For some reason I've had this reoccurring issue I've never been to able to correct. It happens on RH8 and ES3 definitely. I get 1kb free on a mount point. The mount point will actually be a full mount point, and it looks like the df is listing 1kb free.. I have no idea why. Heh. I've just been -x'ing them for a lack of understanding. I wouldn't think that would still be the problem with the -x, but it's giving a warning with nothing the problem, so I have no idea. I don't know what the df command is being used. I do not know how to tell this. I could strace the check_disk, but I do not understand the output too well. I'm rather newbish. This has happened several times before to me (over 100 machines, all with mounts from other machines), and it always goes away for no particular reason, however I need to get this taken care of as the faith in Nagios is not high. The mount is an nfs mount from an aix machine. > -----Original Message----- > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > Sent: Monday, January 31, 2005 9:07 PM > To: Nathan Oyler > Cc: Martijn Lievaart; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Issue with check_disk when mounts exist on the > server. > > Can debug and see if there is any output on stderr from the df command > being used? > > Also what platforms are these on? > > On Mon, 31 Jan 2005, Nathan Oyler wrote: > > > Yes, I'm using nrpe. > > > > Although the problem also occurs if you run the check locally. > > > > I'd like to know what the exact command it runs it so that I can look at > > it, and take a guess to if it's parsing something wrong, or what's > > happening. > > > >> -----Original Message----- > >> From: Martijn Lievaart [mailto:m at rtij.nl] > >> Sent: Monday, January 31, 2005 3:12 PM > >> To: Nathan Oyler > >> Cc: nagios-users at lists.sourceforge.net > >> Subject: Re: [Nagios-users] Issue with check_disk when mounts exist on > > the > >> server. > >> > >> Nathan Oyler wrote: > >> > >>> I find that I have had quite a few problems with check_disk with > > mounts > >>> on the machine. > >>> > >>> I have -x'd the mounts, so my checkdisk looks normal with -x > > /mnt/blah > >>> > >>> And it doesn't show the mount on the check. However I am getting a > >>> warning about something. > >>> > >>> DISK WARNING [33534504 kB (97%) free on /dev/hda3] [59017 kB (80%) > > free > >>> on /dev/hda1] [1290856 kB (100%) free on /dev/shm] > >>> > >>> Is what I get, although there are two mounts being -x'd, however they > >>> more free than my limit for a warning on the check. > >>> > >>> 4 machines at once, all rh 8.0 mounting the same directories. Just > >>> started happening. > >>> > >>> What is the exact command check disk calls so I can test that? > >>> > >>> [root at triad8 plugins]# ./check_nrpe -H 5b1.dc -c check_disk > >>> DISK WARNING [33534500 kB (97%) free on /dev/hda3] [59017 kB (80%) > > free > >>> on /dev/ > >>> hda1] [1290856 kB (100%) free on /dev/shm] > >>> > >>> > >>> > >> > >> I'm having similar problems, but with check_disk called by check_nrpe. > >> Do you use nrpe as well? > >> > >> M4 > >> > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > > Tool for open source databases. Create drag-&-drop reports. Save time > > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please 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: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Philipp.Sand at sycor.de Tue Feb 1 16:52:26 2005 From: Philipp.Sand at sycor.de (Sand Philipp) Date: Tue, 1 Feb 2005 16:52:26 +0100 Subject: Monitoring HP ProLiant Linux servers -- Nagios vs. OVO vs. SIM Message-ID: <6943DE9E9934CD42BBE4A20E0E28E10E011C963F@SYGOMAIL.GOE.AD.SYCOR.DE> Hi, We're using Nagios + Insight Manager. Works fine for us. We use Nagios as our main monitoring Platform, and have integrated the HP Insight Manager into the Nagios. The Plugin we're using is based on snmp queries to get the status of the local insight manager client, and reports them to the nagios. When it detects an error, the status in nagios changes, we get a little Status info like "SCSI degraded" or something, and we connect to the insight manager and have a further look. All the other stuff like monitoring disk space, processes, memory, some handwritten stuff is beeing checked by nagios plugins. I think the HP Insight Manager is very good to monitor all the Hardware Issues, but Nagios is much more flexible with other checks. Regards, Philipp > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf > Of Minkov, Ross > Sent: Monday, January 31, 2005 6:08 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Monitoring HP ProLiant Linux servers > -- Nagios vs. OVO vs. SIM > > > Hey guys, > > I need some feedback on this topic -- Monitoring HP ProLiant > Linux servers -- Nagios vs. OpenView Operations vs. Systems > Insight Manager. > > Let me know what worked best for you. I have a little > experience with each and I've seen things that I like in > every one of them. In the end I'd like to decide on one. I'd > like to be able to monitor ping, processes/services, hardware > failures, etc. (the usual stuff) I have ~200 ProLiant > servers, most of them running Red Hat (7.x, 2.1, 3) and just > few other distros. > > TIA, > Ross > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive > Reporting Tool for open source databases. Create drag-&-drop > reports. Save time by over 75%! Publish reports on the web. > Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ----------------------------------------------------------------------------------------- Hilfe f?r Khao Lak. Eine Spendeninitiative der Otto Bock Stiftung. Unsere Spendenhotline: 0900 - 11 10 15 0 Mit jedem Anruf aus dem Festnetz spenden Sie 5,- Euro. Weitere Informationen unter www.ottobock.de . Spendenkonto: Konto: 40 44, Sparkasse Duderstadt BLZ:260 512 60 ----------------------------------------------------------------------------------------- Diese E-Mail ist vertraulich und kann dar?ber hinaus pers?nliche Informationen beinhalten. Wenn Sie nicht der bestimmungsgem??e Empf?nger sind, l?schen Sie bitte die E-Mail und deren Anh?nge sofort und benachrichtigen Sie uns dar?ber. Die Firma sycor willigt in keine Vertr?ge oder vertragliche Verpflichtungen ein oder ?bermittelt rechtsverbindliche Angebote, die in Form von E-Mail versandt werden, sofern dies nicht ausdr?cklich in schriftlicher Form zwischen den Parteien vereinbart wurde. This e-mail is confidential and may contain personal and/or privileged information. If you are not the intended recipient please delete this e-mail and all attachments immediately and inform us. The company sycor does not agree with contracts or contract obligations sent by e-mail, neither do we transmit legally binding offers by e-mail, unless this is not expressly agreed upon between the parties and documented in written form. ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Philipp.Sand at sycor.de Tue Feb 1 17:02:47 2005 From: Philipp.Sand at sycor.de (Sand Philipp) Date: Tue, 1 Feb 2005 17:02:47 +0100 Subject: Nagios-User with only VIEW-Rights Message-ID: <6943DE9E9934CD42BBE4A20E0E28E10E011C9641@SYGOMAIL.GOE.AD.SYCOR.DE> Hi, I think the only way to do it so far, is to use distributed monitoring, and to set up an Nagios Server for each customer (e.g. on VMWare). Regards, Philipp > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf > Of Andreas Ericsson > Sent: Tuesday, February 01, 2005 10:10 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Nagios-User with only VIEW-Rights > > XTRANET Technik wrote: > > Hello All! > > > > Is there any possibility to configure Nagios (2.0b1) to let an > > _authenticated_ user to only view the hosts and services he > is allowed > > to (like configuring him as "contact") but NOT let him > issue ANY host- or service-command? > > > > I'll need this for allowing customers to VIEW their hosts > and services > > but NOT to change anything..... > > > > Not without modifying the code. > > I've long planned to something along those lines to cmd.cgi, > but it keeps getting postponed. Join nagios-devel and suggest > it if you like. > If Ethan thinks it's a good idea I might get a bit more incentive. > > > > > Best regards, > > peter > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: IntelliVIEW -- Interactive > > Reporting Tool for open source databases. Create > drag-&-drop reports. > > Save time by over 75%! Publish reports on the web. Export > to DOC, XLS, RTF, etc. > > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and > OS when reporting any issue. > > ::: Messages without supporting info will risk being sent > to /dev/null > > > > -- > Andreas Ericsson andreas.ericsson at op5.se > OP5 AB www.op5.se > Lead Developer > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive > Reporting Tool for open source databases. Create drag-&-drop > reports. Save time by over 75%! Publish reports on the web. > Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ----------------------------------------------------------------------------------------- Hilfe f?r Khao Lak. Eine Spendeninitiative der Otto Bock Stiftung. Unsere Spendenhotline: 0900 - 11 10 15 0 Mit jedem Anruf aus dem Festnetz spenden Sie 5,- Euro. Weitere Informationen unter www.ottobock.de . Spendenkonto: Konto: 40 44, Sparkasse Duderstadt BLZ:260 512 60 ----------------------------------------------------------------------------------------- Diese E-Mail ist vertraulich und kann dar?ber hinaus pers?nliche Informationen beinhalten. Wenn Sie nicht der bestimmungsgem??e Empf?nger sind, l?schen Sie bitte die E-Mail und deren Anh?nge sofort und benachrichtigen Sie uns dar?ber. Die Firma sycor willigt in keine Vertr?ge oder vertragliche Verpflichtungen ein oder ?bermittelt rechtsverbindliche Angebote, die in Form von E-Mail versandt werden, sofern dies nicht ausdr?cklich in schriftlicher Form zwischen den Parteien vereinbart wurde. This e-mail is confidential and may contain personal and/or privileged information. If you are not the intended recipient please delete this e-mail and all attachments immediately and inform us. The company sycor does not agree with contracts or contract obligations sent by e-mail, neither do we transmit legally binding offers by e-mail, unless this is not expressly agreed upon between the parties and documented in written form. ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhmartin at toger.us Tue Feb 1 17:32:03 2005 From: jhmartin at toger.us (Jason Martin) Date: Tue, 1 Feb 2005 08:32:03 -0800 Subject: check_memory In-Reply-To: <41FF479D.6050706@op5.se> References: <41FF479D.6050706@op5.se> Message-ID: <20050201163203.GF1574@zippy.toger.us> On Tue, Feb 01, 2005 at 10:10:53AM +0100, Andreas Ericsson wrote: > It probably prints something to stderr, which will fuck up NRPE's > checksumming over SSL. Not just SSL but normal operations as well. There is a trivial modification that can be made to NRPE such that it closes STDERR and can't be affected by errant output. -Jason Martin -- This message is PGP/MIME signed. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 211 bytes Desc: not available URL: From eohimor at ipnxnigeria.net Tue Feb 1 18:37:22 2005 From: eohimor at ipnxnigeria.net (Efe Ohimor) Date: Tue, 1 Feb 2005 18:37:22 +0100 Subject: 3D-Status Map Message-ID: Hi Guys, I'm having problem viewing the 3D-Status Map of my Nagios config.I am running version 1.2 and each time try to view it using the Octaga application it gives the error: Loading file: 'http://10.50.3.220/nagios/cgi-bin/statuswrl.cgi?host=all' WARNING: Unable to load file: 'http://10.50.3.220/nagios/cgi-bin/statuswrl.cgi?host=all' But the status map is showing well. Can anyone help me? Efe Ohimor ipNX Nigeria Limited 4,Balarabe Musa Crescent, Victoria Island, Lagos. Tel:234-1-4619943-6 ext 1212 Fax:2614633 ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From strombrg at dcs.nac.uci.edu Tue Feb 1 19:06:26 2005 From: strombrg at dcs.nac.uci.edu (Dan Stromberg) Date: Tue, 01 Feb 2005 10:06:26 -0800 Subject: Realtime 3d statusmap? In-Reply-To: <41FF48BC.3060807@op5.se> References: <20050128202743.GK1574@zippy.toger.us> <41FB6D1C.1000906@op5.se> <1107209631.4071.25.camel@seki.nac.uci.edu> <41FF48BC.3060807@op5.se> Message-ID: <1107281186.10571.18.camel@seki.nac.uci.edu> On Tue, 2005-02-01 at 10:15 +0100, Andreas Ericsson wrote: > > Also forcing frequent reloads works fine with your usual http+html, > > though you could come up with a browser plugin that would be more > > efficient. > > > > If you restrict access, and refresh every 5 minutes or something, I > > doubt you'd have a load problem. > > > > I believe the issue was to have the server force a page reload each time > a state-change occurs which isn't doable in HTTP being a stateless > passive-server protocol. You're arbitrarily defining the problem so that it won't have a conventional solution. But there is one. It may not be ideal, but it would work. There's a difference between "a bit kludgey" and "not possible". -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From ae at op5.se Tue Feb 1 19:27:38 2005 From: ae at op5.se (Andreas Ericsson) Date: Tue, 01 Feb 2005 19:27:38 +0100 Subject: Realtime 3d statusmap? In-Reply-To: <1107281186.10571.18.camel@seki.nac.uci.edu> References: <20050128202743.GK1574@zippy.toger.us> <41FB6D1C.1000906@op5.se> <1107209631.4071.25.camel@seki.nac.uci.edu> <41FF48BC.3060807@op5.se> <1107281186.10571.18.camel@seki.nac.uci.edu> Message-ID: <41FFCA1A.6090302@op5.se> Dan Stromberg wrote: > On Tue, 2005-02-01 at 10:15 +0100, Andreas Ericsson wrote: > > >>>Also forcing frequent reloads works fine with your usual http+html, >>>though you could come up with a browser plugin that would be more >>>efficient. >>> >>>If you restrict access, and refresh every 5 minutes or something, I >>>doubt you'd have a load problem. >>> >> >>I believe the issue was to have the server force a page reload each time >>a state-change occurs which isn't doable in HTTP being a stateless >>passive-server protocol. > > > You're arbitrarily defining the problem so that it won't have a > conventional solution. > Nah. Just saying what I thought [insert original poster] meant. I might have misread it though (it was some time ago). > But there is one. It may not be ideal, but it would work. There's a > difference between "a bit kludgey" and "not possible". > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhmartin at toger.us Tue Feb 1 19:47:07 2005 From: jhmartin at toger.us (Jason Martin) Date: Tue, 1 Feb 2005 10:47:07 -0800 Subject: Realtime 3d statusmap? In-Reply-To: <41FFCA1A.6090302@op5.se> References: <20050128202743.GK1574@zippy.toger.us> <41FB6D1C.1000906@op5.se> <1107209631.4071.25.camel@seki.nac.uci.edu> <41FF48BC.3060807@op5.se> <1107281186.10571.18.camel@seki.nac.uci.edu> <41FFCA1A.6090302@op5.se> Message-ID: <20050201184707.GJ1574@zippy.toger.us> On Tue, Feb 01, 2005 at 07:27:38PM +0100, Andreas Ericsson wrote: > Nah. Just saying what I thought [insert original poster] meant. I might > have misread it though (it was some time ago). I was looking for a way to make a VRML-like environment real-time. I decided that I'd have to implement some sort of 3d engine (Ogre) and a client/server mechanism for doing it. -Jason Martin -- Right now I'm having amnesia and deja vu at the same time. This message is PGP/MIME signed. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 211 bytes Desc: not available URL: From JoeRegular at gov.nl.ca Tue Feb 1 20:09:23 2005 From: JoeRegular at gov.nl.ca (Joe Regular) Date: Tue, 01 Feb 2005 15:39:23 -0330 Subject: Nagios on Windows / IIS Message-ID: Does anyone have any documentation on how to run Nagios on a Windows 2003 / IIS server? Any help would be greatly appreciated, Joe Regular ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jmosh at shaw.ca Tue Feb 1 20:29:31 2005 From: jmosh at shaw.ca (Joubin Moshrefzadeh) Date: Tue, 01 Feb 2005 11:29:31 -0800 Subject: check_ping -- how to get -i option ? Message-ID: <11a880c11a54f3.11a54f311a880c@shaw.ca> I occasionally get a host down alert, that is fixed on the next check cycle. In my opinion thats sort of a false positive, and I want to give the host test script a longer time-span before it decides a host is down/unreachable. Any way to incorporate the -i option of ping into the check_ping script? My workaround right now is to use "check_ping -t 10 -w 3000.0,80% -c 5000.0,100% -p 1", and to specify "max_check_attempts 30" so that i know that a host is definitely down for at least 5 minutes before I get a HOST DOWN alert. I know mon has a feature where you can specify the number of failures for a check before it sends out a notification. Anything similar in Nagios? Thanks, Joubin ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Feb 1 21:22:43 2005 From: ae at op5.se (Andreas Ericsson) Date: Tue, 01 Feb 2005 21:22:43 +0100 Subject: check_ping -- how to get -i option ? In-Reply-To: <11a880c11a54f3.11a54f311a880c@shaw.ca> References: <11a880c11a54f3.11a54f311a880c@shaw.ca> Message-ID: <41FFE513.9050102@op5.se> Joubin Moshrefzadeh wrote: > I occasionally get a host down alert, that is fixed on the next check > cycle. In my opinion thats sort of a false positive, and I want to > give the host test script a longer time-span before it decides a host > is down/unreachable. > > Any way to incorporate the -i option of ping into the > check_ping script? > You can use the check_icmp program and specify -i directly. Set it as high as you like. If it receives a response before it times out it will send another one, usually making the REAL interval shorter, while allowing the possibility of a long one. Just make sure you set a high enough timeout value. You can check that by adding -v twice on the command line. If your -t value is too low it will tell you "timeout must be at least x". max_completion_time is calculated as such packets * targets * (critical_rta + packet_interval + target_interval) + critical_rta (the last critical_rta is just to catch straggler). > My workaround right now is to use "check_ping -t 10 -w 3000.0,80% -c > 5000.0,100% -p 1", and to specify "max_check_attempts 30" so that i > know that a host is definitely down for at least 5 minutes before I > get a HOST DOWN alert. > That's not very smart, considering hostchecks are done in serial and without any kind of threading, so while one of your hosts are being checked this way nothing else is. > I know mon has a feature where you can specify the number of failures > for a check before it sends out a notification. Anything similar in > Nagios? > That would be the max_check_attempts variable. Perhaps you should read up on hard/soft states. I believe you could also accomplish the same thing with escalations, although I'm not sure since I don't use them myself. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jsandoval at achs.cl Tue Feb 1 23:37:19 2005 From: jsandoval at achs.cl (Sandoval, Julio) Date: Tue, 1 Feb 2005 18:37:19 -0400 Subject: log to database Message-ID: <706C33200E04994E9BB6EE3E21E4C15EE06EB0@ACHS-E2K01.achs.cl> Consider list, I need to tranform the log [nagios.log] to database...is this posible? I can?t lose any information of nagios.log.... I read the nagios documentation, but i don?t need compile new configuration else to turn my old configuration with database.. please, it?s is very important for my. thank, Julio Sandoval Schwartzmann "Este mensaje y cualquier archivo adjunto es confidencial y est? destinado a la persona o entidad a qui?n ha sido dirigido. Si usted no es el receptor individualizado en el mismo, le solicitamos notificar de ello al remitente de manera inmediata, estando prohibido y sancionado por la ley cualquier almacenamiento, divulgaci?n, distribuci?n o copia de su contenido." From ae at op5.se Tue Feb 1 22:53:57 2005 From: ae at op5.se (Andreas Ericsson) Date: Tue, 01 Feb 2005 22:53:57 +0100 Subject: log to database In-Reply-To: <706C33200E04994E9BB6EE3E21E4C15EE06EB0@ACHS-E2K01.achs.cl> References: <706C33200E04994E9BB6EE3E21E4C15EE06EB0@ACHS-E2K01.achs.cl> Message-ID: <41FFFA75.1020605@op5.se> Sandoval, Julio wrote: > Consider list, > > I need to tranform the log [nagios.log] to database...is this > posible? I can??t lose any information of nagios.log.... > Ofcourse it's possible. Without checking the log format myself, I believe you would need something along the lines of three or four flat tables and a clever shell script. Start with sed 's/^.\([0123456789]*\)] /\1;/' nagios.log > clean.log and you're halfway there. Then you can simply grep the in-data for the different tables out of it and use a LOAD DATA INFILE in mysql (or something similar in postgresql, although I'm not equally familiar with that). > I read the nagios documentation, but i don??t need compile new > configuration else to turn my old configuration with database.. > That I don't understand. Sorry. If you meant configuration from the start (as opposed to logfile) you're out of luck as far as simplicity goes. It would take something more robust to do that. > please, it??s is very important for my. > Then pay someone to do it for you. It usually pays off if the guy/girl you're hiring knows what they're doing. > thank, Julio Sandoval Schwartzmann > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jsandoval at achs.cl Wed Feb 2 00:19:56 2005 From: jsandoval at achs.cl (Sandoval, Julio) Date: Tue, 1 Feb 2005 19:19:56 -0400 Subject: log to database Message-ID: <706C33200E04994E9BB6EE3E21E4C15EE06EB1@ACHS-E2K01.achs.cl> Thank, I?m not familiarized with developer script, but i have been looking for documentation without success I really need to have availability of a hostgroup considering down when one or more host are down. For this i thought to turn logfile to database. Can you help me? Thank! Julio -----Mensaje original----- De: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]En nombre de Andreas Ericsson Enviado el: Martes, 01 de Febrero de 2005 17:54 Para: nagios-users at lists.sourceforge.net Asunto: Re: [Nagios-users] log to database Sandoval, Julio wrote: > Consider list, > > I need to tranform the log [nagios.log] to database...is this > posible? I can??t lose any information of nagios.log.... > Ofcourse it's possible. Without checking the log format myself, I believe you would need something along the lines of three or four flat tables and a clever shell script. Start with sed 's/^.\([0123456789]*\)] /\1;/' nagios.log > clean.log and you're halfway there. Then you can simply grep the in-data for the different tables out of it and use a LOAD DATA INFILE in mysql (or something similar in postgresql, although I'm not equally familiar with that). > I read the nagios documentation, but i don??t need compile new > configuration else to turn my old configuration with database.. > That I don't understand. Sorry. If you meant configuration from the start (as opposed to logfile) you're out of luck as far as simplicity goes. It would take something more robust to do that. > please, it??s is very important for my. > Then pay someone to do it for you. It usually pays off if the guy/girl you're hiring knows what they're doing. > thank, Julio Sandoval Schwartzmann > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null "Este mensaje y cualquier archivo adjunto es confidencial y est? destinado a la persona o entidad a qui?n ha sido dirigido. Si usted no es el receptor individualizado en el mismo, le solicitamos notificar de ello al remitente de manera inmediata, estando prohibido y sancionado por la ley cualquier almacenamiento, divulgaci?n, distribuci?n o copia de su contenido." From ross.minkov at hp.com Wed Feb 2 00:57:38 2005 From: ross.minkov at hp.com (Minkov, Ross) Date: Tue, 1 Feb 2005 18:57:38 -0500 Subject: check_ping -- how to get -i option ? Message-ID: <192E38594ACFAF4EB4F40E1C4B60472306014C8F@tayexc13.americas.cpqcorp.net> > My workaround right now is to use "check_ping -t 10 -w 3000.0,80% -c > 5000.0,100% -p 1", and to specify "max_check_attempts 30" so that i > know that a host is definitely down for at least 5 minutes before I > get a HOST DOWN alert. The way I solved similar problem ( I'm not saying this is the right way ;-) ) was to modify the check-host-alive command definition as follows: # 'check-host-alive' command definition define command{ command_name check-host-alive command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 10 } This kind of achieves the same... Instead of sending one ping and waiting for 10 seconds for a response (-t 10) I send 10 pings... Not sure which way is better... Regards, Ross -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Andreas Ericsson Sent: Tuesday, February 01, 2005 3:23 PM To: nagios_list Subject: Re: [Nagios-users] check_ping -- how to get -i option ? Joubin Moshrefzadeh wrote: > I occasionally get a host down alert, that is fixed on the next check > cycle. In my opinion thats sort of a false positive, and I want to > give the host test script a longer time-span before it decides a host > is down/unreachable. > > Any way to incorporate the -i option of ping into the > check_ping script? > You can use the check_icmp program and specify -i directly. Set it as high as you like. If it receives a response before it times out it will send another one, usually making the REAL interval shorter, while allowing the possibility of a long one. Just make sure you set a high enough timeout value. You can check that by adding -v twice on the command line. If your -t value is too low it will tell you "timeout must be at least x". max_completion_time is calculated as such packets * targets * (critical_rta + packet_interval + target_interval) + critical_rta (the last critical_rta is just to catch straggler). > My workaround right now is to use "check_ping -t 10 -w 3000.0,80% -c > 5000.0,100% -p 1", and to specify "max_check_attempts 30" so that i > know that a host is definitely down for at least 5 minutes before I > get a HOST DOWN alert. > That's not very smart, considering hostchecks are done in serial and without any kind of threading, so while one of your hosts are being checked this way nothing else is. > I know mon has a feature where you can specify the number of failures > for a check before it sends out a notification. Anything similar in > Nagios? > That would be the max_check_attempts variable. Perhaps you should read up on hard/soft states. I believe you could also accomplish the same thing with escalations, although I'm not sure since I don't use them myself. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Feb 2 01:19:38 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 02 Feb 2005 01:19:38 +0100 Subject: log to database In-Reply-To: <706C33200E04994E9BB6EE3E21E4C15EE06EB1@ACHS-E2K01.achs.cl> References: <706C33200E04994E9BB6EE3E21E4C15EE06EB1@ACHS-E2K01.achs.cl> Message-ID: <42001C9A.5040005@op5.se> Sandoval, Julio wrote: > Thank, > I??m not familiarized with developer script, but i have been looking for documentation without success > > I really need to have availability of a hostgroup considering down when one or more host are down. > For this i thought to turn logfile to database. > I fail to see how that would help. > Can you help me? For a price, yes. Let me know (off-list) if you're interested and I'll get you in touch with our salespeople. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From strombrg at dcs.nac.uci.edu Wed Feb 2 01:23:54 2005 From: strombrg at dcs.nac.uci.edu (Dan Stromberg) Date: Tue, 01 Feb 2005 16:23:54 -0800 Subject: log to database In-Reply-To: <42001C9A.5040005@op5.se> References: <706C33200E04994E9BB6EE3E21E4C15EE06EB1@ACHS-E2K01.achs.cl> <42001C9A.5040005@op5.se> Message-ID: <1107303834.10571.72.camel@seki.nac.uci.edu> On Wed, 2005-02-02 at 01:19 +0100, Andreas Ericsson wrote: > Sandoval, Julio wrote: > > Thank, > > I??m not familiarized with developer script, but i have been looking for documentation without success > > > > I really need to have availability of a hostgroup considering down when one or more host are down. > > For this i thought to turn logfile to database. You're probably better off having one -host- (OK, a pseudo-host) for the group of hosts you want to consider, and aggregate them using check_cluster or check_cluster2. I prefer check_cluster2. I have a web page about how to set it up at: http://dcs.nac.uci.edu/~strombrg/nagios-check_cluster2.html HTH. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From ae at op5.se Wed Feb 2 01:22:34 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 02 Feb 2005 01:22:34 +0100 Subject: check_ping -- how to get -i option ? In-Reply-To: <192E38594ACFAF4EB4F40E1C4B60472306014C8F@tayexc13.americas.cpqcorp.net> References: <192E38594ACFAF4EB4F40E1C4B60472306014C8F@tayexc13.americas.cpqcorp.net> Message-ID: <42001D4A.2080807@op5.se> Minkov, Ross wrote: > >>My workaround right now is to use "check_ping -t 10 -w 3000.0,80% -c >>5000.0,100% -p 1", and to specify "max_check_attempts 30" so that i >>know that a host is definitely down for at least 5 minutes before I >>get a HOST DOWN alert. > > > The way I solved similar problem ( I'm not saying this is the right way > ;-) ) was to modify the check-host-alive command definition as follows: > > # 'check-host-alive' command definition > define command{ > command_name check-host-alive > command_line $USER1$/check_ping -H $HOSTADDRESS$ -w > 3000.0,80% -c 5000.0,100% -p 10 > } > > This kind of achieves the same... Instead of sending one ping and > waiting for 10 seconds for a response (-t 10) I send 10 pings... Not > sure which way is better... > check_icmp is better, since it won't take as long when the host is up and will thus make your Nagios installation perform a whole lot better when service checks fail. > Regards, > Ross > Btw. I noticed you're a HP employee. Are you familiar with the HP Testdrive program? I'd like to get my hands on a HP-UX 11i running on PA-RISC 2 for NRPE development and testing. Would you be able to fix that? -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Feb 2 01:29:55 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 02 Feb 2005 01:29:55 +0100 Subject: log to database In-Reply-To: <1107303834.10571.72.camel@seki.nac.uci.edu> References: <706C33200E04994E9BB6EE3E21E4C15EE06EB1@ACHS-E2K01.achs.cl> <42001C9A.5040005@op5.se> <1107303834.10571.72.camel@seki.nac.uci.edu> Message-ID: <42001F03.3040908@op5.se> Dan Stromberg wrote: > On Wed, 2005-02-02 at 01:19 +0100, Andreas Ericsson wrote: > >>Sandoval, Julio wrote: >> >>>Thank, >>>I??m not familiarized with developer script, but i have been looking for documentation without success >>> >>>I really need to have availability of a hostgroup considering down when one or more host are down. >>>For this i thought to turn logfile to database. > > > You're probably better off having one -host- (OK, a pseudo-host) for the > group of hosts you want to consider, and aggregate them using > check_cluster or check_cluster2. I prefer check_cluster2. > > I have a web page about how to set it up at: > > http://dcs.nac.uci.edu/~strombrg/nagios-check_cluster2.html > > HTH. > If you're using PING to determine host status you could also use check_icmp and simply specify all the IP's on the command line. Make sure to pump up your -t option accordingly. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Wed Feb 2 01:55:14 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 1 Feb 2005 19:55:14 -0500 (EST) Subject: Nagios-User with only VIEW-Rights In-Reply-To: <6943DE9E9934CD42BBE4A20E0E28E10E011C9641@SYGOMAIL.GOE.AD.SYCOR.DE> References: <6943DE9E9934CD42BBE4A20E0E28E10E011C9641@SYGOMAIL.GOE.AD.SYCOR.DE> Message-ID: vmware is overkill - just need mutliple directories and vhosts. On Tue, 1 Feb 2005, Sand Philipp wrote: > Hi, > > I think the only way to do it so far, is to use distributed monitoring, > and to set up an Nagios Server for each customer (e.g. on VMWare). > > Regards, > Philipp > >> -----Original Message----- >> From: nagios-users-admin at lists.sourceforge.net >> [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf >> Of Andreas Ericsson >> Sent: Tuesday, February 01, 2005 10:10 AM >> To: nagios-users at lists.sourceforge.net >> Subject: Re: [Nagios-users] Nagios-User with only VIEW-Rights >> >> XTRANET Technik wrote: >>> Hello All! >>> >>> Is there any possibility to configure Nagios (2.0b1) to let an >>> _authenticated_ user to only view the hosts and services he >> is allowed >>> to (like configuring him as "contact") but NOT let him >> issue ANY host- or service-command? >>> >>> I'll need this for allowing customers to VIEW their hosts >> and services >>> but NOT to change anything..... >>> >> >> Not without modifying the code. >> >> I've long planned to something along those lines to cmd.cgi, >> but it keeps getting postponed. Join nagios-devel and suggest >> it if you like. >> If Ethan thinks it's a good idea I might get a bit more incentive. >> >>> >>> Best regards, >>> peter >>> >>> >>> ------------------------------------------------------- >>> This SF.Net email is sponsored by: IntelliVIEW -- Interactive >>> Reporting Tool for open source databases. Create >> drag-&-drop reports. >>> Save time by over 75%! Publish reports on the web. Export >> to DOC, XLS, RTF, etc. >>> Download a FREE copy at http://www.intelliview.com/go/osdn_nl >>> _______________________________________________ >>> Nagios-users mailing list >>> Nagios-users at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>> ::: Please include Nagios version, plugin version (-v) and >> OS when reporting any issue. >>> ::: Messages without supporting info will risk being sent >> to /dev/null >>> >> >> -- >> Andreas Ericsson andreas.ericsson at op5.se >> OP5 AB www.op5.se >> Lead Developer >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by: IntelliVIEW -- Interactive >> Reporting Tool for open source databases. Create drag-&-drop >> reports. Save time by over 75%! Publish reports on the web. >> Export to DOC, XLS, RTF, etc. >> Download a FREE copy at http://www.intelliview.com/go/osdn_nl >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS >> when reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> > ----------------------------------------------------------------------------------------- > > Hilfe f?r Khao Lak. > > Eine Spendeninitiative der Otto Bock Stiftung. > > Unsere Spendenhotline: 0900 - 11 10 15 0 > Mit jedem Anruf aus dem Festnetz spenden Sie 5,- Euro. > Weitere Informationen unter www.ottobock.de . > Spendenkonto: Konto: 40 44, Sparkasse Duderstadt BLZ:260 512 60 > > ----------------------------------------------------------------------------------------- > > Diese E-Mail ist vertraulich und kann dar?ber hinaus pers?nliche Informationen beinhalten. Wenn Sie nicht der bestimmungsgem??e Empf?nger sind, l?schen Sie bitte die E-Mail und deren Anh?nge sofort und benachrichtigen Sie uns dar?ber. Die Firma sycor willigt in keine Vertr?ge oder vertragliche Verpflichtungen ein oder ?bermittelt rechtsverbindliche Angebote, die in Form von E-Mail versandt werden, sofern dies nicht ausdr?cklich in schriftlicher Form zwischen den Parteien vereinbart wurde. > > This e-mail is confidential and may contain personal and/or privileged information. If you are not the intended recipient please delete this e-mail and all attachments immediately and inform us. The company sycor does not agree with contracts or contract obligations sent by e-mail, neither do we transmit legally binding offers by e-mail, unless this is not expressly agreed upon between the parties and documented in written form. > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- From g.vickers at qut.edu.au Wed Feb 2 03:19:27 2005 From: g.vickers at qut.edu.au (Greg Vickers) Date: Wed, 02 Feb 2005 12:19:27 +1000 Subject: check_cluster2 problem found - looking for a solution Message-ID: <420038AF.3050407@qut.edu.au> Hi all, I'm pretty sure that I know what the problem is with passing a massive list of service IDs to check_cluster2. This is my theory: When Nagios forks off a process to run check_cluster2 the list of service state ID numbers (converted by Nagios from on-demand macros) is passed on the command line. The numbers are many characters long and the environment that check_cluster2 runs in doesn't have enough space on the command line for all the numbers. Any characters that make up the 23rd ID number are truncated, hence 1 service always critical, that service ID isn't found. Does this sound like what is happening? Is there another clever way to pass the list of service state ID numbers to the forked process so that there is no truncation and you can pass as many service state ID numbers as you want? If you can help or have suggestions please email me or the list :) Thanks, -- Greg Vickers Lab Monitor Project Manager Teaching and Learning Services Information Technology Services Queensland University of Technology email: g.vickers at qut.edu.au phone: (07) 3864 8276 CIROS code: 00213J ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Wed Feb 2 05:12:50 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 1 Feb 2005 23:12:50 -0500 (EST) Subject: check_cluster2 problem found - looking for a solution In-Reply-To: <420038AF.3050407@qut.edu.au> References: <420038AF.3050407@qut.edu.au> Message-ID: shell wrapper around check_cluster with all the Service IDs hardcoded... -sg On Wed, 2 Feb 2005, Greg Vickers wrote: > Hi all, > > I'm pretty sure that I know what the problem is with passing a massive list > of service IDs to check_cluster2. > > This is my theory: When Nagios forks off a process to run check_cluster2 the > list of service state ID numbers (converted by Nagios from on-demand macros) > is passed on the command line. The numbers are many characters long and the > environment that check_cluster2 runs in doesn't have enough space on the > command line for all the numbers. Any characters that make up the 23rd ID > number are truncated, hence 1 service always critical, that service ID isn't > found. > > Does this sound like what is happening? Is there another clever way to pass > the list of service state ID numbers to the forked process so that there is > no truncation and you can pass as many service state ID numbers as you want? > > If you can help or have suggestions please email me or the list :) > > Thanks, > -- ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From loebach at yahoo.com Wed Feb 2 05:31:38 2005 From: loebach at yahoo.com (Tom Loebach) Date: Tue, 1 Feb 2005 20:31:38 -0800 (PST) Subject: Configuring Nagios on Windows/IIS - cygwin In-Reply-To: <420038AF.3050407@qut.edu.au> References: <420038AF.3050407@qut.edu.au> Message-ID: <20050202043138.53819.qmail@web30701.mail.mud.yahoo.com> Running Nagios on Windows Here is a detailed guide on configuring Nagios to run on a Windows/IIS system. This guide is more about the "how" than the "why". ---- Required Software. ---- 1. Cygwin Cygwin is required to run Nagios. Install cygwin by using the installaller located at http://sources.redhat.com/cygwin/setup.exe. You will need to install the following cygwin packages and their dependencies: o apache o cygrunsrv o gcc o gd o jpeg o libgd-devel o libgd2 o libpng12-devel o libpng12 o make o perl 2. Nagios Download Nagios from http://www.nagios.org/download/. Use version 1.2. 3. Nagios Plugins Download Nagios Plugins from http://sourceforge.net/project/showfiles.php?group_id=29880. Use version 1.3.1 ---- Building Nagios ---- 1. Create a new user in windows with the username "nagios". Open a cygwin bash shell and run the commands: # mkpasswd -l > /etc/passwd # mkgroup -l > /etc/group to synchronize the windows user database with the cygwin /etc/passwd and /etc/groups file. 2. Build Nagios Open a cygwin bash shell and untar the Nagios packages: # tar xvzf nagios-1.2.tar.gz # tar xvzf nagios-plugins-1.3.1 Run the configure script in the nagios-1.2 directory: ./configure --enable-cygwin --with-nagios-grp=Administrators Build the software: # make all Install the software: # make install # make install-config 3. Build Nagios Plugins Run the configure script in the nagios-plugins-1.3.1 directory: ./configure Build the software. The "check_procs", "check_vsz", "check_dns", "check_by_ssh" and "check_swap" cannot be built in cygwin. The "-i" flag needs to be included to bypass the make errors. # make -i all Install the plugins: # make -i install ---- Configuring IIS for Nagios. ---- It is possible to run Nagios on IIS. It is a hack but it can be done. Here are the steps to get this to work: 1. Add cygwin dll's to Windows system path Add the e:\cygwin\bin and e:\cygwin\usr\X11R6\bin to your system path. My cygwin install lives on my e: drive under the \cygwin directory. IIS needs to be able to run the CGI's and the CGI's need the cygwin dll's. 2. Create a share to your cygwin install and mount it. Share your cygwin root as "cygwin". For example my e:\cygwin directory is shared as "cygwin". Locally mount the share. # net use T: \\localhost\cygwin /persistent:yes This will "chroot" the Windows cygwin structure. 3. Configure IIS Add a virtual directory called "nagios" with the local path "T:\usr\local\nagios\share". Under the "nagios" virtual directory, add another virtual directory called "cgi-bin" with the local path "T:\\usr\\local\\nagios\\sbin". Notice the "\\" syntax. This is very important, your cgi's will not run if you do not do this. Make sure your cgi-bin virtual directory can execute programs. ---- Configuring Apache for Nagios. ---- You can also configure Nagios to use apache rather than IIS as the web server. Follow the normal Nagios instructions for configuring an apache web server. Use cygwin's apache rather than the native Win32 apache. If you use the Win32 apache you will need to add the cywin dll's to the system path. ---- Test Nagios ---- Point your browser to "http://localhost/nagios/index.html". Your cgi's will not work yet, you will need to create your nagios.cfg, cgi.cfg and supporting config files. You may also need to restart IIS to get the cgi's to load. ---- Configure Nagios Hosts and Services ---- The sample config files in /usr/local/nagios/etc will need to be configured for your local environment. Follow the documented Nagios instructions to create a working configuration for your environement. ---- Configure Nagios to run as a service ---- These commands install Nagios as a windows service: # cygrunsrv --install nagios -p /usr/local/nagios/bin/nagios.exe -a /usr/local/nagios/etc/nagios.cfg # net start nagios ---- Problems with Nagios on WIndows ---- 1. The ping command on Windows does not provide suitable output for Nagios. The check_ping and check-host-alive commands will not work. There is a standalone ping package provided in the cygwin setup, but it hangs the Nagios configure script and also does not produce suitable output. The linux ping command is provided in the inetutils package but the cygwin build of inetutils left out the ping command. Also, the cygwin inetutils package is using a very old version. I was able to download inetutils-1.4.0.tar.gz and inetutils-1.4.2.tar.gz and build a usable ping.exe in cygwin. Unfortunately, it is not as simple as running configure and "make all". First, you need to copy the xmalloc.c from the 1.4.0 tree into the 1.4.2 tree. Then, you need to run make -i and then go into the ping directory and do a "make ping.exe". Copy the built ping.exe to /usr/bin. Rerun the nagios-plugins configure script, rebuild and reinstall to pick the new ping.exe. 2. I have only tested the check_http command and it seems to work fine. I have no idea how well the other check_* commands work. 3. Authentication. If you are using IIS, set use_authentication=0 in cgi.cfg. IIS authentication does not seem to work with the Nagios authentication mechanism. You can still authenticate the cgi-bin pages with IIS but the underlying security in Nagios will not be used. ---- nrpe and nsclient ---- Nsclient, nrpe_nt and nrpe work with Nagios on cygwin. ---------------------------- Good luck in setting this up. If you are monitoring mission critical systems, you may want to consider running Nagios on a Linux system rather than trying to run Nagios on Windows with cygwin. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From g.vickers at qut.edu.au Wed Feb 2 05:44:28 2005 From: g.vickers at qut.edu.au (Greg Vickers) Date: Wed, 02 Feb 2005 14:44:28 +1000 Subject: check_cluster2 problem found - looking for a solution In-Reply-To: References: <420038AF.3050407@qut.edu.au> Message-ID: <42005AAC.8080606@qut.edu.au> Thanks for the info Subhendu - where can I find the service ID #'s? Subhendu Ghosh wrote: > shell wrapper around check_cluster with all the Service IDs hardcoded... > -sg > > On Wed, 2 Feb 2005, Greg Vickers wrote: > >> Hi all, >> >> I'm pretty sure that I know what the problem is with passing a massive >> list of service IDs to check_cluster2. >> >> This is my theory: When Nagios forks off a process to run >> check_cluster2 the list of service state ID numbers (converted by >> Nagios from on-demand macros) is passed on the command line. The >> numbers are many characters long and the environment that >> check_cluster2 runs in doesn't have enough space on the command line >> for all the numbers. Any characters that make up the 23rd ID number >> are truncated, hence 1 service always critical, that service ID isn't >> found. >> >> Does this sound like what is happening? Is there another clever way to >> pass the list of service state ID numbers to the forked process so >> that there is no truncation and you can pass as many service state ID >> numbers as you want? >> >> If you can help or have suggestions please email me or the list :) >> >> Thanks, >> > -- Greg Vickers Lab Monitor Project Manager Teaching and Learning Support Services Information Technology Services Queensland University of Technology email: g.vickers at qut.edu.au phone: (07) 3864 8276 mobile: 0416 001 674, SD #6 6147 CIROS code: 00213J ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From j.warburton at unsw.edu.au Wed Feb 2 07:46:57 2005 From: j.warburton at unsw.edu.au (John Warburton) Date: Wed, 02 Feb 2005 17:46:57 +1100 Subject: Monitoring in a Heterogeneous Environment [was Re: [Nagios-users] check_memory] In-Reply-To: <559e3cb605020100044eedecd4@mail.gmail.com> References: <559e3cb605020100044eedecd4@mail.gmail.com> Message-ID: <42007761.1070606@unsw.edu.au> Hi All I would like to point out that whilst Nagios is "designed to run under Linux" (http://www.nagios.org/about.php), that many people use Nagios to monitor other variants of Unix. I think I am like a few others here, who have come from a Big Brother monitoring background. The mind set of the plugin developers at BB is that the plugins would work under many different operating systems. OS specific stuff is flagged. I come over to Nagios to see mainly Linux specific stuff that is not flagged as being Linux specific. For example, the contrib memory checking plugins (contrib/check_mem.pl and contrib/tarballs/check_memory.tgz) are Linux specific. The C code is obvious and won't compile anywhere else, but the perl script and the script submitted by Trevor below have problems: 1. They ignore the man page for vmstat which says "The first report produced gives averages since the last reboot." i.e. You need to look at a second sample from vmstat (e.g. vmstat 1 2) to get a valid result. 2. Linux (2.4.26 for me http://www.rt.com/man/vmstat.8.html), AIX (http://eservercomputing.com/ibmunix/articles/index.asp?sid=19&id=847&pageID=914) and Solaris (http://bama.ua.edu/cgi-bin/man-cgi?vmstat+1M) all have differing outputs in columns from vmstat. So, Trevor's script below will work only on AIX. It will be wrong for Linux & Solaris. contrib/check_mem.pl will be wrong (idle & buffer memory). So, what am I trying to say? 1. File a bug report for contrib/check_mem.pl as it is wrong for Linux & Solaris (at least). 2. Request that *all* plugins have some sort of #ifdef OS in them, and try to work in multiple environments. check_disk.c is an excellent example here. 3. Look to Big Brother as a guide to heterogeneous monitoring. The memory script (http://www.deadcat.net/viewfile.php?fileid=804) is an excellent example. Question - these are released under the GPL. Can these be quickly hack for Nagios (with proper acknowledgment of the authors) of course? Comments? Constructive criticisms? Flames > /dev/null. John On 1/02/2005 7:04 PM, Trevor Warren wrote: > Fellas!!!, > > My script for check_mem on aix and gnu/linux. > > ########## > > bash-2.05a# cat /usr/local/nagios/libexec/check_mem.sh > #!/usr/bin/bash > > avm=`vmstat | tail -n 1 | awk '{print $3}'` > fre=`vmstat | tail -n 1 | awk '{print $4}'` > ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From g.vickers at qut.edu.au Wed Feb 2 07:51:07 2005 From: g.vickers at qut.edu.au (Greg Vickers) Date: Wed, 02 Feb 2005 16:51:07 +1000 Subject: Nagios SIGSEGVs Message-ID: <4200785B.40405@qut.edu.au> Hi all, I downloaded Nagios 2.0b1 onto a brand new install of RHEL3 and built it OK. It was working great, running as expected, web interface and everything. Then I rebooted the server to check that nagios started OK and that the iptables rules worked to allow NSCA passive service checks in, as I'm not overly familiar with RHEL3. Nagios didn't start - got a pretty red FAILED message on the console. So I log on and have a lookie - running "/etc/init.d/nagios start" reports no lock file found. Running "/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.etc" fails silently. Running "strace -f -o nagios.strace /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.etc" shows up a SEGSEGV as one of the last entries. I've tried reconfiguring and recompiling and the exe is the same size as the one that is installed and it does the same thing when I run that new exe... Am I missing something obvious or do I have a ghost in the machine? If you're interested, here is a copy of the strace output (only up for 2 weeks) at this URL: https://fileshare.qut.edu.au/public/vickersg/nagios.strace.gz TIA, -- Greg Vickers Lab Monitor Project Manager Teaching and Learning Support Services Information Technology Services Queensland University of Technology email: g.vickers at qut.edu.au phone: (07) 3864 8276 mobile: 0416 001 674, SD #6 6147 CIROS code: 00213J ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dmourati at cm.math.uiuc.edu Wed Feb 2 09:03:28 2005 From: dmourati at cm.math.uiuc.edu (Demetri Mouratis) Date: Wed, 2 Feb 2005 02:03:28 -0600 (CST) Subject: Monitoring in a Heterogeneous Environment [was Re: [Nagios-users] check_memory] In-Reply-To: <42007761.1070606@unsw.edu.au> References: <42007761.1070606@unsw.edu.au> Message-ID: I think you picked a really bad example to make your pitch. I think Big Brother ought to be called Little Sister. Keep any of their plugins far, far away from me. You're down with other, OSs, fine. They speak SSH then you are in business, cygwin or not. Go hog wild and create all the #ifdefs you like. And if I wasn't daydreaming I'd alsmost swear I saw someone post how to run Nagios under Windows. Kudos for leaving the why question wide open. Time to take out the garbage. On Wed, 2 Feb 2005, John Warburton wrote: > Hi All > > I would like to point out that whilst Nagios is "designed to run under > Linux" (http://www.nagios.org/about.php), that many people use Nagios to > monitor other variants of Unix. > > I think I am like a few others here, who have come from a Big Brother > monitoring background. The mind set of the plugin developers at BB is > that the plugins would work under many different operating systems. OS > specific stuff is flagged. > > I come over to Nagios to see mainly Linux specific stuff that is not > flagged as being Linux specific. For example, the contrib memory > checking plugins (contrib/check_mem.pl and > contrib/tarballs/check_memory.tgz) are Linux specific. The C code is > obvious and won't compile anywhere else, but the perl script and the > script submitted by Trevor below have problems: > > 1. They ignore the man page for vmstat which says "The first report > produced gives averages since the last reboot." i.e. You need to look at > a second sample from vmstat (e.g. vmstat 1 2) to get a valid result. > > 2. Linux (2.4.26 for me http://www.rt.com/man/vmstat.8.html), AIX > (http://eservercomputing.com/ibmunix/articles/index.asp?sid=19&id=847&pageID=914) > and Solaris (http://bama.ua.edu/cgi-bin/man-cgi?vmstat+1M) all have > differing outputs in columns from vmstat. > > So, Trevor's script below will work only on AIX. It will be wrong for > Linux & Solaris. contrib/check_mem.pl will be wrong (idle & buffer memory). > > So, what am I trying to say? > > 1. File a bug report for contrib/check_mem.pl as it is wrong for Linux & > Solaris (at least). > > 2. Request that *all* plugins have some sort of #ifdef OS in them, and > try to work in multiple environments. check_disk.c is an excellent > example here. > > 3. Look to Big Brother as a guide to heterogeneous monitoring. The > memory script (http://www.deadcat.net/viewfile.php?fileid=804) is an > excellent example. Question - these are released under the GPL. Can > these be quickly hack for Nagios (with proper acknowledgment of the > authors) of course? > > Comments? Constructive criticisms? Flames > /dev/null. > > John > > On 1/02/2005 7:04 PM, Trevor Warren wrote: > > > Fellas!!!, > > > > My script for check_mem on aix and gnu/linux. > > > > ########## > > > > bash-2.05a# cat /usr/local/nagios/libexec/check_mem.sh > > #!/usr/bin/bash > > > > avm=`vmstat | tail -n 1 | awk '{print $3}'` > > fre=`vmstat | tail -n 1 | awk '{print $4}'` > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > --------------------------------------------------------------------- Demetri Mouratis dmourati at linfactory.com ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From m.borsani at it.net Wed Feb 2 09:17:36 2005 From: m.borsani at it.net (Marco Borsani) Date: Wed, 2 Feb 2005 09:17:36 +0100 Subject: R: Help on alert ping In-Reply-To: <41FD724D.4040403@op5.se> References: <41FD724D.4040403@op5.se> Message-ID: I am testing check_icmp, but for many hosts (where normally I use check_ping) a receive a notification like following: "CRITICAL - 10.0.0.1: Time to live exceeded in transit @ 10.0.0.255. rta nan, lost 100%" Any idea? Marco ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From benoit.mortier at opensides.be Tue Feb 1 23:18:38 2005 From: benoit.mortier at opensides.be (Benoit Mortier) Date: Tue, 1 Feb 2005 23:18:38 +0100 Subject: Monitoring HP ProLiant Linux servers -- Nagios vs. OVO vs. SIM In-Reply-To: <6943DE9E9934CD42BBE4A20E0E28E10E011C963F@SYGOMAIL.GOE.AD.SYCOR.DE> References: <6943DE9E9934CD42BBE4A20E0E28E10E011C963F@SYGOMAIL.GOE.AD.SYCOR.DE> Message-ID: <200502012318.40019.benoit.mortier@opensides.be> Le Mardi 1 F?vrier 2005 16:52, Sand Philipp a ?crit?: > Hi, > > We're using Nagios + Insight Manager. Works fine for us. > > We use Nagios as our main monitoring Platform, and have integrated the > HP Insight Manager into the Nagios. The Plugin we're using is based on > snmp queries to get the status of the local insight manager client, and > reports them to the nagios. When it detects an error, the status in > nagios changes, we get a little Status info like "SCSI degraded" or > something, and we connect to the insight manager and have a further > look. All the other stuff like monitoring disk space, processes, memory, > some handwritten stuff is beeing checked by nagios plugins. > I think the HP Insight Manager is very good to monitor all the Hardware > Issues, but Nagios is much more flexible with other checks. Hi, could you share the plugin with us ? is it gpl ? i yes could you upload it to nagiosplug project at sourceforge. Thanks -- Benoit Mortier Linux Engineer www.opensides.be ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From trevorwarren at gmail.com Wed Feb 2 09:31:00 2005 From: trevorwarren at gmail.com (Trevor Warren) Date: Wed, 2 Feb 2005 00:31:00 -0800 Subject: Monitoring HP ProLiant Linux servers -- Nagios vs. OVO vs. SIM In-Reply-To: <192E38594ACFAF4EB4F40E1C4B60472306014C6F@tayexc13.americas.cpqcorp.net> References: <192E38594ACFAF4EB4F40E1C4B60472306014C6F@tayexc13.americas.cpqcorp.net> Message-ID: <559e3cb605020200313165e831@mail.gmail.com> Guys, We have deployed Tivoli at a customers premises and spent crores on the same. Ultimately we had to deploy nagios to make thing "work" and get some meaningful information. Tivoli does wonderful trend reporting for various properietary/opensource components but stops short of instant alerting and reporting which is where nagios pitches in. Nagios we use to monitor : > OS (aix-gnu/linux-Ms) > DB2 > WebSphere Hp OpenView / BMC Patrol and the others i have no idea about. Would love to hear from someone on those fronts too. Trevor On Mon, 31 Jan 2005 12:07:51 -0500, Minkov, Ross wrote: > > Hey guys, > > I need some feedback on this topic -- Monitoring HP ProLiant Linux > servers -- Nagios vs. OpenView Operations vs. Systems Insight Manager. > > Let me know what worked best for you. I have a little experience with > each and I've seen things that I like in every one of them. In the end > I'd like to decide on one. I'd like to be able to monitor ping, > processes/services, hardware failures, etc. (the usual stuff) I have > ~200 ProLiant servers, most of them running Red Hat (7.x, 2.1, 3) and > just few other distros. > > TIA, > Ross > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- ___________________________________ ( >- / Scaling FreeSoftware & OpenSource \ -< ) /~\ / In the Enterprise \ /~\ | \) \ | www.fsf.org | www.opensource.org | / (/ | |_|_ \____________________________________/ _|_| ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Feb 2 10:40:50 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 02 Feb 2005 10:40:50 +0100 Subject: Monitoring in a Heterogeneous Environment [was Re: [Nagios-users] check_memory] In-Reply-To: <42007761.1070606@unsw.edu.au> References: <559e3cb605020100044eedecd4@mail.gmail.com> <42007761.1070606@unsw.edu.au> Message-ID: <4200A022.4090403@op5.se> John Warburton wrote: > Hi All > > I would like to point out that whilst Nagios is "designed to run under > Linux" (http://www.nagios.org/about.php), that many people use Nagios to > monitor other variants of Unix. > > I think I am like a few others here, who have come from a Big Brother > monitoring background. The mind set of the plugin developers at BB is > that the plugins would work under many different operating systems. OS > specific stuff is flagged. > > I come over to Nagios to see mainly Linux specific stuff that is not > flagged as being Linux specific. For example, the contrib memory > checking plugins (contrib/check_mem.pl and > contrib/tarballs/check_memory.tgz) are Linux specific. The C code is > obvious and won't compile anywhere else, but the perl script and the > script submitted by Trevor below have problems: > contrib is unchecked by the official developers and may have porting issues. This is understood by anyone who has ever seen a contrib dir before, as contrib is usually a place where users can upload their own stuff and have it included for other users benefit, if they can at all benefit from it. That said, I'll cut some cruft. > > 1. File a bug report for contrib/check_mem.pl as it is wrong for Linux & > Solaris (at least). > Feel free. > 2. Request that *all* plugins have some sort of #ifdef OS in them, and > try to work in multiple environments. check_disk.c is an excellent > example here. > check_disk is an official plugin. Maintainers have made sure it ports nicely to most OS's (Tru64, HPUX, Linux, *BSD, AIX, etc. etc.) > 3. Look to Big Brother as a guide to heterogeneous monitoring. The > memory script (http://www.deadcat.net/viewfile.php?fileid=804) is an > excellent example. Question - these are released under the GPL. Can > these be quickly hack for Nagios (with proper acknowledgment of the > authors) of course? > Naturally. You can upload it yourself on the tracker page (and have it included in the contrib dir) within a day or two. For the record, the question mark at the end of the sentence effectively marks it as a question, so no need to flag it in advance. > Comments? You are obviously deliriously happy with big brother. Use it. > Constructive criticisms? Flames > /dev/null. > Flames always come on stderr, so that would be flames >& /dev/null (or the more portable) flames > /dev/null 2>&1 ;) Cheers -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Feb 2 10:43:23 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 02 Feb 2005 10:43:23 +0100 Subject: Nagios SIGSEGVs In-Reply-To: <4200785B.40405@qut.edu.au> References: <4200785B.40405@qut.edu.au> Message-ID: <4200A0BB.60208@op5.se> Greg Vickers wrote: > Hi all, > > I downloaded Nagios 2.0b1 onto a brand new install of RHEL3 and built it > OK. It was working great, running as expected, web interface and > everything. Then I rebooted the server to check that nagios started OK > and that the iptables rules worked to allow NSCA passive service checks > in, as I'm not overly familiar with RHEL3. > > Nagios didn't start - got a pretty red FAILED message on the console. So > I log on and have a lookie - running "/etc/init.d/nagios start" reports > no lock file found. Running "/usr/local/nagios/bin/nagios -d > /usr/local/nagios/etc/nagios.etc" fails silently. > Running "strace -f -o nagios.strace /usr/local/nagios/bin/nagios -d > /usr/local/nagios/etc/nagios.etc" shows up a SEGSEGV as one of the last > entries. > > I've tried reconfiguring and recompiling and the exe is the same size as > the one that is installed and it does the same thing when I run that new > exe... > > Am I missing something obvious or do I have a ghost in the machine? > 2.0 is beta. If you're going to run it, you need to run the CVS code to make sure you've got the latest fixes. AFAICR there was an issue like this when the config was constructed in a certain way (segfault at load-time) a couple of months back. > If you're interested, here is a copy of the strace output (only up for 2 > weeks) at this URL: > https://fileshare.qut.edu.au/public/vickersg/nagios.strace.gz > > TIA, -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Feb 2 10:52:24 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 02 Feb 2005 10:52:24 +0100 Subject: R: Help on alert ping In-Reply-To: References: Message-ID: <4200A2D8.60304@op5.se> Marco Borsani wrote: > I am testing check_icmp, but for many hosts (where normally I use > check_ping) a receive a notification like following: > > "CRITICAL - 10.0.0.1: Time to live exceeded in transit @ 10.0.0.255. rta > nan, lost 100%" > > Any idea? > You can try using the -l flag to set ttl to a higher value on outgoing packets. The ttl decides the max number of hops/seconds a packet is allowed to live. The value reached first results in a ttl exceeded. "in transit" means the target host is more than outgoing_ttl hops away. "in packet reassembly" means fragments of the packet didn't arrive a maximum of remaining_ttl seconds after the IP-header on some router along the way. I've never seen the "in packet reassembly" happen on a modern network (not without making it, anyway). Also, check_icmp doesn't auto-increment it's ttl as normal ping may or may not do (system dependent). This is intentional, since it means it can be used to monitor the number of hops to a host and thus see if the normal or failover route is being used. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From m.borsani at it.net Wed Feb 2 11:33:53 2005 From: m.borsani at it.net (Marco Borsani) Date: Wed, 2 Feb 2005 11:33:53 +0100 Subject: R: R: Help on alert ping In-Reply-To: <4200A2D8.60304@op5.se> References: <4200A2D8.60304@op5.se> Message-ID: I tried to set the -l flag since 255, but nothing happened. I saw that, often, the hosts where check_icmp have this problem are unreachble with traceroute command, but still answer to ping command (and check_ping plugin). My target should be to find a good alternative to the check_ping because some time it looks like heavy and send wrong notifications (notify an host down when it is up). Marco -} -}You can try using the -l flag to set ttl to a higher value on outgoing -}packets. The ttl decides the max number of hops/seconds a packet is -}allowed to live. The value reached first results in a ttl exceeded. "in -}transit" means the target host is more than outgoing_ttl hops away. "in -}packet reassembly" means fragments of the packet didn't arrive a maximum -}of remaining_ttl seconds after the IP-header on some router along the -}way. I've never seen the "in packet reassembly" happen on a modern -}network (not without making it, anyway). -} -}Also, check_icmp doesn't auto-increment it's ttl as normal ping may or -}may not do (system dependent). This is intentional, since it means it -}can be used to monitor the number of hops to a host and thus see if the -}normal or failover route is being used. -} -}-- -}Andreas Ericsson andreas.ericsson at op5.se -}OP5 AB www.op5.se -}Lead Developer -} -} -}------------------------------------------------------- -}This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting -}Tool for open source databases. Create drag-&-drop reports. Save time -}by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. -}Download a FREE copy at http://www.intelliview.com/go/osdn_nl -}_______________________________________________ -}Nagios-users mailing list -}Nagios-users at lists.sourceforge.net -}https://lists.sourceforge.net/lists/listinfo/nagios-users -}::: Please 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: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Wed Feb 2 12:16:19 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed, 2 Feb 2005 06:16:19 -0500 (EST) Subject: check_cluster2 problem found - looking for a solution In-Reply-To: <42005AAC.8080606@qut.edu.au> References: <420038AF.3050407@qut.edu.au> <42005AAC.8080606@qut.edu.au> Message-ID: I thought you already had the sevice IDs as they were being passed (not completely) to check_cluster2... On Wed, 2 Feb 2005, Greg Vickers wrote: > Thanks for the info Subhendu - where can I find the service ID #'s? > > Subhendu Ghosh wrote: >> shell wrapper around check_cluster with all the Service IDs hardcoded... >> -sg >> >> On Wed, 2 Feb 2005, Greg Vickers wrote: >> >>> Hi all, >>> >>> I'm pretty sure that I know what the problem is with passing a massive >>> list of service IDs to check_cluster2. >>> >>> This is my theory: When Nagios forks off a process to run check_cluster2 >>> the list of service state ID numbers (converted by Nagios from on-demand >>> macros) is passed on the command line. The numbers are many characters >>> long and the environment that check_cluster2 runs in doesn't have enough >>> space on the command line for all the numbers. Any characters that make up >>> the 23rd ID number are truncated, hence 1 service always critical, that >>> service ID isn't found. >>> >>> Does this sound like what is happening? Is there another clever way to >>> pass the list of service state ID numbers to the forked process so that >>> there is no truncation and you can pass as many service state ID numbers >>> as you want? >>> >>> If you can help or have suggestions please email me or the list :) >>> >>> Thanks, >>> >> > > -- ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From trevorwarren at gmail.com Wed Feb 2 12:19:48 2005 From: trevorwarren at gmail.com (Trevor Warren) Date: Wed, 2 Feb 2005 03:19:48 -0800 Subject: nagios monitors db2 and websphere In-Reply-To: References: <51658.63.227.74.41.1107149751.squirrel@webmail.stinkweasel.net> Message-ID: <559e3cb605020203191db600f0@mail.gmail.com> Hey folks, A 10min howto on going about using Nagios to monitor DB2 and WAS. Please use this a very..very basic framework and modify/enhance the same to suit your needs. > Monitoring DB2 < > Deploy the NRPE daemon on DB2 host(My hosts all are AIX 5.2 risc boxen). > Write DB2 scripts to perform db2 snaps. This is in essence calling of a db2 snap application to create snapshots of the current instance. > Parse this file using bash-awk-sed-perl or whatever you see fit and generate a text file output consisting of a one liner like the following: "Buffer Pool Hit Ratio NA since no Active Applns : Buffer Pool is NA" "DB2 Locks and Lock Waits held OK DB2 Locks held Currently : 4 and DB2 Lock Waits : 18" "DB2 Max Connections CRITICAL : No of Current Connections is 155 " These are the output text files each line representing one file that is created in a heirarchical structure on the db2 node. Follow these steps towards getting alerts raised. > DB2 snap dumps o/p to a file > bash-awk-sed-perl to parse for relevant info and dumps it into another o/p file > third script to see the o/p of the previous step, print a one liner(Please ensure only a line) as shown in the example above and most importantly triggers of a alert in Nagios by providing a return value based on the crossing of a threshold. The return value can be "0-1-2-3" based on what state you want Nagios to report your service in based on the info you have just parsed. > Monitoring WAS < > Deploy the NRPE daemon on WAS host(My hosts all are AIX 5.2 risc boxen). > Write a simple java program to connect to WAS's PerfServelet(See Developerworks) over http and get a dump of the appropriate parameters you want to log for purposes of alerting. This is in essence calling of PerfServlet servlet to obtain snapshots of the current WAS instance. > Parse this file using bash-awk-sed-perl or whatever you see fit and generate a text file output consisting of a one liner like the following: "Free JVM Memory is : 42136.0 KB " "Total JVM Memory Allocated is : 135002.0 KB " "Used JVM Memory is : 93880.0 KB " "The No of Active threads in JDBC Thread Pool for DB tinprod is : 2.0 " These are the output text files each line representing one file that is created in a heirarchical structure on the was node. Follow these steps towards getting alerts raised. > Was PerfServlet snap dumps o/p to a file > bash-awk-sed-perl to parse for relevant info and dumps it into another o/p file > third script to see the o/p of the previous step, print a one liner(Please ensure only a line) as shown in the example above and most importantly triggers of a alert in Nagios by providing a return value based on the crossing of a threshold. The return value can be "0-1-2-3" based on what state you want Nagios to report your service in based on the info you have just parsed. HTH. Trevor -- ___________________________________ ( >- / Scaling FreeSoftware & OpenSource \ -< ) /~\ / In the Enterprise \ /~\ | \) \ | www.fsf.org | www.opensource.org | / (/ | |_|_ \____________________________________/ _|_| ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Stanley.Hopcroft at IPAustralia.Gov.AU Wed Feb 2 12:29:51 2005 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Wed, 2 Feb 2005 22:29:51 +1100 Subject: Potential bug in illegal character extraction from macros in 2.0b1 (no fix). Message-ID: <20050202112948.GB395@IPAustralia.Gov.AU> Dear Folks, I am writing to report a potential bug in macro processing in 2.0b1. Macros do not appear to have illegal chars stripped. Background: Notifications failed - occasionally - for a partic check. Enabled DEBUG4 on a test bed with these results SERVICE NOTIFICATION ATTEMPT: Service 'Patent Search' on host 'asterix' Type: 0 Current time: Wed Feb 2 22:07:01 2005 Current notification number: 1 Service notification will NOT be escalated Notify user unix Raw Command: /usr/bin/printf "%b" "$SERVICEDESC$ $HOSTNAME$ $SERVICESTATE$ $SHORTDATETIME$ $SERVICEOUTPUT$" | tee -a /usr/home/anwsmh/nagios-2.0b1/var/notify_prob.log | /usr/bin/head -c 160 | /usr/bin/mail $CONTACTPAGER$ Processed Command: /usr/bin/printf "%b" "Patent Search asterix CRITICAL 02-02-2005 22:07:01 Patent Searching. Error indication in response: "GET http://asterix:7003/searching/patsearch/search_page.jsp?keyNo=&name=SMITH&applicants=T" Transaction failed: fault indication in response. No records were found that matched your selection criteria " | tee -a /usr/home/anwsmh/nagios-2.0b1/var/notify_prob.log | /usr/bin/head -c 160 | /usr/bin/mail unix.page Notify user foo Raw Command: /usr/bin/printf "%b" "***** Nagios 2.0 *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTNAME$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $SHORTDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | tee -a /usr/home/anwsmh/nagios-2.0b1/var/notify_prob.log | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTNAME$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ Processed Command: /usr/bin/printf "%b" "***** Nagios 2.0 *****\n\nNotification Type: PROBLEM\n\nService: Patent Search\nHost: asterix\nAddress: 10.0.100.202\nState: CRITICAL\n\nDate/Time: 02-02-2005 22:07:01\n\nAdditional Info:\n\nPatent Searching. Error indication in response: "GET http://asterix:7003/searching/patsearch/search_page.jsp?keyNo=&name=SMITH&applicants=T" Transaction failed: fault indication in response. No records were found that matched your selection criteria " | tee -a /usr/home/anwsmh/nagios-2.0b1/var/notify_prob.log | /usr/bin/mail -s "** PROBLEM alert - asterix/Patent Search is CRITICAL **" foo at IPAustralia.gov.au The $SERVICEOUTPUT$ macro contains HTML tags ( and friends ) that play merry hell with the shell commands that are forked to deliver the notification. But I would have thought these chars would have been stripped by # ILLEGAL MACRO OUTPUT CHARACTERS # This option allows you to specify illegal characters that are # stripped from macros before being used in notifications, event # handlers, etc. This DOES NOT affect macros used in service or # host check commands. # The following macros are stripped of the characters you specify: # $HOSTOUTPUT$ # $HOSTPERFDATA$ # $HOSTACKAUTHOR$ # $HOSTACKCOMMENT$ # $SERVICEOUTPUT$ # $SERVICEPERFDATA$ # $SERVICEACKAUTHOR$ # $SERVICEACKCOMMENT$ illegal_macro_output_chars=`~$&|'"<> Yours sincerely. -- Stanley Hopcroft IP Australia Ph: (02) 6283 3189 Fax: (02) 6281 1353 PO Box 200 Woden ACT 2606 http://www.ipaustralia.gov.au -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: disclaimer.txt URL: From pete at stuff-done.co.uk Wed Feb 2 12:59:04 2005 From: pete at stuff-done.co.uk (Pete Dewell) Date: Wed, 02 Feb 2005 11:59:04 +0000 Subject: HTTPS authentication problem Message-ID: <4200C088.4010808@stuff-done.co.uk> I am trying to use check_http to check an HTTPS site with authentication. The password contains both "$" and "!". I can use the command from the command line and get an OK if I use check_http -H host -S -a user:pas\$word\! or by using ... -a user:'pas$word!' I have set up a command and tried both the \$ and the single quotes in the command, but all I get back is a "warning ..401 unauthorized" message from Nagios. I have other check_http -a with "!" in the passwords that work ok, so I am assuming that the problem is with the "$", and the way Nagios uses it as a delimiter for internal variables. Any ideas please? Pete Dewell ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From timothy at icts.uct.ac.za Wed Feb 2 13:45:11 2005 From: timothy at icts.uct.ac.za (Timothy Carr) Date: Wed, 02 Feb 2005 14:45:11 +0200 Subject: Nagios + LDAP Authentication Message-ID: <4200CB57.5080304@icts.uct.ac.za> Hi All, Can nagios be setup to query an LDAP server for auth as opposed to using htaccess. -- Tim ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Feb 2 14:22:42 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 02 Feb 2005 14:22:42 +0100 Subject: R: R: Help on alert ping In-Reply-To: References: Message-ID: <4200D422.3070807@op5.se> Marco Borsani wrote: > I tried to set the -l flag since 255, but nothing happened. I saw that, > often, the hosts where check_icmp have this problem are unreachble with > traceroute command, but still answer to ping command (and check_ping > plugin). That's very weird. Could you please run it as such; check_icmp -v -v -v -v and send me the output? It appears there is something very odd in your network, but if regular ping can handle it then check_icmp should be able to as well. > My target should be to find a good alternative to the check_ping because > some time it looks like heavy and send wrong notifications (notify an host > down when it is up). > > Marco > > > -} > -}You can try using the -l flag to set ttl to a higher value on outgoing > -}packets. The ttl decides the max number of hops/seconds a packet is > -}allowed to live. The value reached first results in a ttl exceeded. "in > -}transit" means the target host is more than outgoing_ttl hops away. "in > -}packet reassembly" means fragments of the packet didn't arrive a maximum > -}of remaining_ttl seconds after the IP-header on some router along the > -}way. I've never seen the "in packet reassembly" happen on a modern > -}network (not without making it, anyway). > -} > -}Also, check_icmp doesn't auto-increment it's ttl as normal ping may or > -}may not do (system dependent). This is intentional, since it means it > -}can be used to monitor the number of hops to a host and thus see if the > -}normal or failover route is being used. > -} > -}-- > -}Andreas Ericsson andreas.ericsson at op5.se > -}OP5 AB www.op5.se > -}Lead Developer > -} > -} > -}------------------------------------------------------- > -}This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > -}Tool for open source databases. Create drag-&-drop reports. Save time > -}by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > -}Download a FREE copy at http://www.intelliview.com/go/osdn_nl > -}_______________________________________________ > -}Nagios-users mailing list > -}Nagios-users at lists.sourceforge.net > -}https://lists.sourceforge.net/lists/listinfo/nagios-users > -}::: Please 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: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Feb 2 14:26:53 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 02 Feb 2005 14:26:53 +0100 Subject: Potential bug in illegal character extraction from macros in 2.0b1 (no fix). In-Reply-To: <20050202112948.GB395@IPAustralia.Gov.AU> References: <20050202112948.GB395@IPAustralia.Gov.AU> Message-ID: <4200D51D.9030407@op5.se> Stanley Hopcroft wrote: > Dear Folks, > > I am writing to report a potential bug in macro processing in 2.0b1. > > Macros do not appear to have illegal chars stripped. > It seems to work nicely for us (using the check_traffic plugin). Temporary workaround would be to put single quotes around each argument. I suppose you'll post this to nagios-devel as well? > Background: > > Notifications failed - occasionally - for a partic check. > Enabled DEBUG4 on a test bed with these results > > SERVICE NOTIFICATION ATTEMPT: Service 'Patent Search' on host 'asterix' > Type: 0 > Current time: Wed Feb 2 22:07:01 2005 > Current notification number: 1 > Service notification will NOT be escalated > Notify user unix > > Raw Command: /usr/bin/printf "%b" "$SERVICEDESC$ > $HOSTNAME$ $SERVICESTATE$ $SHORTDATETIME$ $SERVICEOUTPUT$" | tee -a > /usr/home/anwsmh/nagios-2.0b1/var/notify_prob.log | /usr/bin/head -c 160 > | /usr/bin/mail $CONTACTPAGER$ > > Processed Command: /usr/bin/printf "%b" "Patent Search asterix > CRITICAL 02-02-2005 22:07:01 Patent Searching. Error indication in > response: "GET > http://asterix:7003/searching/patsearch/search_page.jsp?keyNo=&name=SMITH&applicants=T" > Transaction failed: fault indication in response. No records were found > that matched your selection criteria " | > tee -a /usr/home/anwsmh/nagios-2.0b1/var/notify_prob.log | /usr/bin/head > -c 160 | /usr/bin/mail unix.page > > Notify user foo > > Raw Command: /usr/bin/printf "%b" "***** Nagios 2.0 > *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: > $SERVICEDESC$\nHost: $HOSTNAME$\nAddress: $HOSTADDRESS$\nState: > $SERVICESTATE$\n\nDate/Time: $SHORTDATETIME$\n\nAdditional > Info:\n\n$SERVICEOUTPUT$" | tee -a > /usr/home/anwsmh/nagios-2.0b1/var/notify_prob.log | /usr/bin/mail -s "** > $NOTIFICATIONTYPE$ alert - $HOSTNAME$/$SERVICEDESC$ is $SERVICESTATE$ > **" $CONTACTEMAIL$ > > Processed Command: /usr/bin/printf "%b" "***** Nagios 2.0 > *****\n\nNotification Type: PROBLEM\n\nService: Patent Search\nHost: > asterix\nAddress: 10.0.100.202\nState: CRITICAL\n\nDate/Time: 02-02-2005 > 22:07:01\n\nAdditional Info:\n\nPatent Searching. Error indication in > response: "GET > http://asterix:7003/searching/patsearch/search_page.jsp?keyNo=&name=SMITH&applicants=T" > Transaction failed: fault indication in response. No records were found > that matched your selection criteria " | > tee -a /usr/home/anwsmh/nagios-2.0b1/var/notify_prob.log | /usr/bin/mail > -s "** PROBLEM alert - asterix/Patent Search is CRITICAL **" > foo at IPAustralia.gov.au > > The $SERVICEOUTPUT$ macro contains HTML tags ( and friends ) that > play merry hell with the shell commands that are forked to deliver the > notification. > > But I would have thought these chars would have been stripped by > > # ILLEGAL MACRO OUTPUT CHARACTERS > # This option allows you to specify illegal characters that are > # stripped from macros before being used in notifications, event > # handlers, etc. This DOES NOT affect macros used in service or > # host check commands. > # The following macros are stripped of the characters you specify: > # $HOSTOUTPUT$ > # $HOSTPERFDATA$ > # $HOSTACKAUTHOR$ > # $HOSTACKCOMMENT$ > # $SERVICEOUTPUT$ > # $SERVICEPERFDATA$ > # $SERVICEACKAUTHOR$ > # $SERVICEACKCOMMENT$ > > illegal_macro_output_chars=`~$&|'"<> > > > Yours sincerely. > > > > > ------------------------------------------------------------------------ > > > -- > This message contains privileged and confidential information only > for use by the intended recipient. If you are not the intended > recipient of this message, you must not disseminate, copy or use > it in any manner. If you have received this message in error, > please advise the sender by reply e-mail. Please ensure all > e-mail attachments are scanned for viruses prior to opening or > using. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Feb 2 14:28:17 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 02 Feb 2005 14:28:17 +0100 Subject: Nagios + LDAP Authentication In-Reply-To: <4200CB57.5080304@icts.uct.ac.za> References: <4200CB57.5080304@icts.uct.ac.za> Message-ID: <4200D571.1090907@op5.se> Timothy Carr wrote: > Hi All, > > Can nagios be setup to query an LDAP server for auth as opposed to using > htaccess. > Nagios can't, since it doesn't handly any authentication what so ever, but apache can. See http://httpd.apache.org/docs for more info. > -- > Tim > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk > being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Bill_Akins at emoryhealthcare.org Wed Feb 2 15:00:03 2005 From: Bill_Akins at emoryhealthcare.org (Bill Akins) Date: Wed, 02 Feb 2005 09:00:03 -0500 Subject: HTTPS authentication problem Message-ID: Hi Pete, Have you tried defining the user and password in the resources.cfg file? You can use one of the available variables or define one yourself like this: $USER2$=user_to_authenticate $USER3$=pa$$word where user_to_authenticate is the user name you want to pass and pa$$word is your real password. Up to 32 of these can be defined and passed to checks. This keeps the password from being revealed by examining the view config on the web interface. Users will see something like: $USER1$/check_http -H $HOSTADDRESS$ -S -a $USER2$:$USER3$ instead of the actual user and password being passed like this: $USER1$/check_http -H $HOSTADDRESS$ -S -a root:pa$$word It also give a central place to change passwords instead of changing it for every service check that requires a password. HTH! >>> Pete Dewell 2/2/2005 6:59:04 AM >>> I am trying to use check_http to check an HTTPS site with authentication. The password contains both "$" and "!". I can use the command from the command line and get an OK if I use check_http -H host -S -a user:pas\$word\! or by using ... -a user:'pas$word!' I have set up a command and tried both the \$ and the single quotes in the command, but all I get back is a "warning ..401 unauthorized" message from Nagios. I have other check_http -a with "!" in the passwords that work ok, so I am assuming that the problem is with the "$", and the way Nagios uses it as a delimiter for internal variables. Any ideas please? Pete Dewell ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ian at kingcon.com Wed Feb 2 15:28:08 2005 From: ian at kingcon.com (ian at kingcon.com) Date: Wed, 2 Feb 2005 09:28:08 -0500 Subject: Problem with nagios.cfg and perl variable Message-ID: Hello, I just started with nagios, and linux for that matter, and am in the process of setting it up. When I run the nagios -v command I get the following error: Error in configuration file '/usr/local/nagios/etc/nagios.cfg' - Line 868 (UNKNOWN VARIABLE) That variable is in the section entitled: # MAXIMUM EMBEDDED PERL INTERPRETER CALLS # This value determines how often (if at all) the embedded Perl # interpreter is reinitialized during runtime. This is useful # if you notice that the Perl interpreter is causing slow # memory leaks over time. Setting this value to 0 means the # embedded Perl interpreter will never be reinitialized. Any # value > 0 is the number of times the embedded Perl interpreter # is used (i.e. a Perl plugin is executed) before it is # reinitialized during runtime. If you didn't compile Nagios with # embedded Perl support, this option has no effect. max_embedded_perl_calls=0 What is this refering too? I checked my version of perl, and mod_perl and they are up to date? Where should I go to begin diagnosing this. Ian Hardy Network Administrator Network + The Kingdom Connection 1-802-748-5866 P.O. Box 526 St. Johnsbury VT 05819 416E67656C697175652C20616B752063696E7461206B616D7521203A58 Check out www.missingkids.com Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Employees of Merrill Information systems Inc. are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy and outside the scope of the employment of the individual concerned. The company will not accept any liability in respect of such communication, and the employee responsible will be personally liable for any damages or other liability arising. ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From JoeRegular at gov.nl.ca Wed Feb 2 15:38:17 2005 From: JoeRegular at gov.nl.ca (Joe Regular) Date: Wed, 02 Feb 2005 11:08:17 -0330 Subject: Configuring Nagios on Windows/IIS - cygwin Message-ID: Thanks Tom, This is exactly what I was looking for. Joe Regular >>> Tom Loebach 2005-02-02 1:01:38 AM >>> Running Nagios on Windows Here is a detailed guide on configuring Nagios to run on a Windows/IIS system. This guide is more about the "how" than the "why". ---- Required Software. ---- 1. Cygwin Cygwin is required to run Nagios. Install cygwin by using the installaller located at http://sources.redhat.com/cygwin/setup.exe. You will need to install the following cygwin packages and their dependencies: o apache o cygrunsrv o gcc o gd o jpeg o libgd-devel o libgd2 o libpng12-devel o libpng12 o make o perl 2. Nagios Download Nagios from http://www.nagios.org/download/. Use version 1.2. 3. Nagios Plugins Download Nagios Plugins from http://sourceforge.net/project/showfiles.php?group_id=29880. Use version 1.3.1 ---- Building Nagios ---- 1. Create a new user in windows with the username "nagios". Open a cygwin bash shell and run the commands: # mkpasswd -l > /etc/passwd # mkgroup -l > /etc/group to synchronize the windows user database with the cygwin /etc/passwd and /etc/groups file. 2. Build Nagios Open a cygwin bash shell and untar the Nagios packages: # tar xvzf nagios-1.2.tar.gz # tar xvzf nagios-plugins-1.3.1 Run the configure script in the nagios-1.2 directory: ./configure --enable-cygwin --with-nagios-grp=Administrators Build the software: # make all Install the software: # make install # make install-config 3. Build Nagios Plugins Run the configure script in the nagios-plugins-1.3.1 directory: ./configure Build the software. The "check_procs", "check_vsz", "check_dns", "check_by_ssh" and "check_swap" cannot be built in cygwin. The "-i" flag needs to be included to bypass the make errors. # make -i all Install the plugins: # make -i install ---- Configuring IIS for Nagios. ---- It is possible to run Nagios on IIS. It is a hack but it can be done. Here are the steps to get this to work: 1. Add cygwin dll's to Windows system path Add the e:\cygwin\bin and e:\cygwin\usr\X11R6\bin to your system path. My cygwin install lives on my e: drive under the \cygwin directory. IIS needs to be able to run the CGI's and the CGI's need the cygwin dll's. 2. Create a share to your cygwin install and mount it. Share your cygwin root as "cygwin". For example my e:\cygwin directory is shared as "cygwin". Locally mount the share. # net use T: \\localhost\cygwin /persistent:yes This will "chroot" the Windows cygwin structure. 3. Configure IIS Add a virtual directory called "nagios" with the local path "T:\usr\local\nagios\share". Under the "nagios" virtual directory, add another virtual directory called "cgi-bin" with the local path "T:\\usr\\local\\nagios\\sbin". Notice the "\\" syntax. This is very important, your cgi's will not run if you do not do this. Make sure your cgi-bin virtual directory can execute programs. ---- Configuring Apache for Nagios. ---- You can also configure Nagios to use apache rather than IIS as the web server. Follow the normal Nagios instructions for configuring an apache web server. Use cygwin's apache rather than the native Win32 apache. If you use the Win32 apache you will need to add the cywin dll's to the system path. ---- Test Nagios ---- Point your browser to "http://localhost/nagios/index.html". Your cgi's will not work yet, you will need to create your nagios.cfg, cgi.cfg and supporting config files. You may also need to restart IIS to get the cgi's to load. ---- Configure Nagios Hosts and Services ---- The sample config files in /usr/local/nagios/etc will need to be configured for your local environment. Follow the documented Nagios instructions to create a working configuration for your environement. ---- Configure Nagios to run as a service ---- These commands install Nagios as a windows service: # cygrunsrv --install nagios -p /usr/local/nagios/bin/nagios.exe -a /usr/local/nagios/etc/nagios.cfg # net start nagios ---- Problems with Nagios on WIndows ---- 1. The ping command on Windows does not provide suitable output for Nagios. The check_ping and check-host-alive commands will not work. There is a standalone ping package provided in the cygwin setup, but it hangs the Nagios configure script and also does not produce suitable output. The linux ping command is provided in the inetutils package but the cygwin build of inetutils left out the ping command. Also, the cygwin inetutils package is using a very old version. I was able to download inetutils-1.4.0.tar.gz and inetutils-1.4.2.tar.gz and build a usable ping.exe in cygwin. Unfortunately, it is not as simple as running configure and "make all". First, you need to copy the xmalloc.c from the 1.4.0 tree into the 1.4.2 tree. Then, you need to run make -i and then go into the ping directory and do a "make ping.exe". Copy the built ping.exe to /usr/bin. Rerun the nagios-plugins configure script, rebuild and reinstall to pick the new ping.exe. 2. I have only tested the check_http command and it seems to work fine. I have no idea how well the other check_* commands work. 3. Authentication. If you are using IIS, set use_authentication=0 in cgi.cfg. IIS authentication does not seem to work with the Nagios authentication mechanism. You can still authenticate the cgi-bin pages with IIS but the underlying security in Nagios will not be used. ---- nrpe and nsclient ---- Nsclient, nrpe_nt and nrpe work with Nagios on cygwin. ---------------------------- Good luck in setting this up. If you are monitoring mission critical systems, you may want to consider running Nagios on a Linux system rather than trying to run Nagios on Windows with cygwin. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Sam.Harris at fns.usda.gov Wed Feb 2 15:43:25 2005 From: Sam.Harris at fns.usda.gov (Harris, Sam) Date: Wed, 2 Feb 2005 09:43:25 -0500 Subject: Passive Check with nsclient Message-ID: Anybody knows where I could find a more comprehensive guide for passive check with nsclient. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From ae at op5.se Wed Feb 2 16:24:16 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 02 Feb 2005 16:24:16 +0100 Subject: Passive Check with nsclient In-Reply-To: References: Message-ID: <4200F0A0.4080308@op5.se> Harris, Sam wrote: > Anybody knows where I could find a more comprehensive guide for passive > check with nsclient. > nsclient can't do passive checks. It needs to be asked to give any data. > Thanks > > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Philipp.Sand at sycor.de Wed Feb 2 16:37:53 2005 From: Philipp.Sand at sycor.de (Sand Philipp) Date: Wed, 2 Feb 2005 16:37:53 +0100 Subject: Passive Check with nsclient Message-ID: <6943DE9E9934CD42BBE4A20E0E28E10E011C9658@SYGOMAIL.GOE.AD.SYCOR.DE> Doesn't work there... Maybe take a look at the developement of the NC_Net Plugin. I think those passive check thing is in queue there... ________________________________ From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Harris, Sam Sent: Wednesday, February 02, 2005 3:43 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Passive Check with nsclient Anybody knows where I could find a more comprehensive guide for passive check with nsclient. Thanks ----------------------------------------------------------------------------------------- Hilfe f?r Khao Lak. Eine Spendeninitiative der Otto Bock Stiftung. Unsere Spendenhotline: 0900 - 11 10 15 0 Mit jedem Anruf aus dem Festnetz spenden Sie 5,- Euro. Weitere Informationen unter www.ottobock.de . Spendenkonto: Konto: 40 44, Sparkasse Duderstadt BLZ:260 512 60 ----------------------------------------------------------------------------------------- Diese E-Mail ist vertraulich und kann dar?ber hinaus pers?nliche Informationen beinhalten. Wenn Sie nicht der bestimmungsgem??e Empf?nger sind, l?schen Sie bitte die E-Mail und deren Anh?nge sofort und benachrichtigen Sie uns dar?ber. Die Firma sycor willigt in keine Vertr?ge oder vertragliche Verpflichtungen ein oder ?bermittelt rechtsverbindliche Angebote, die in Form von E-Mail versandt werden, sofern dies nicht ausdr?cklich in schriftlicher Form zwischen den Parteien vereinbart wurde. This e-mail is confidential and may contain personal and/or privileged information. If you are not the intended recipient please delete this e-mail and all attachments immediately and inform us. The company sycor does not agree with contracts or contract obligations sent by e-mail, neither do we transmit legally binding offers by e-mail, unless this is not expressly agreed upon between the parties and documented in written form. ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stephan.janosch at interface-business.de Wed Feb 2 16:40:38 2005 From: stephan.janosch at interface-business.de (Stephan Janosch) Date: Wed, 02 Feb 2005 16:40:38 +0100 Subject: Nagios on Windows / IIS In-Reply-To: References: Message-ID: <4200F476.2080707@interface-business.de> Joe Regular wrote: > Does anyone have any documentation on how to run Nagios on a Windows > 2003 / IIS server? > > Any help would be greatly appreciated, > Joe Regular cygwin may help. But I have really no experiences with that. But with cygwin, you have a gnu-environment and you should be able, to compile nagios there. It's just a very quick idea. :-/ Stephan ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From eohimor at ipnxnigeria.net Wed Feb 2 17:17:05 2005 From: eohimor at ipnxnigeria.net (Efe Ohimor) Date: Wed, 2 Feb 2005 17:17:05 +0100 Subject: 3D-Status Map Message-ID: Hi Everyone I was able to view the 3D-Status map using Mozilla on my RedHat Linux system.I downloaded FreeWRL VRML/X3D browser from http://sourceforge.net/project/showfiles.php?group_id=9120&package_id=9189&r elease_id=290716 .Iam thinking of how to develeop it. Efe Ohimor ipNX Nigeria Limited 4,Balarabe Musa Crescent, Victoria Island, Lagos. Tel:234-1-4619943-6 ext 1212 Fax:2614633 ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ian at kingcon.com Wed Feb 2 17:23:24 2005 From: ian at kingcon.com (ian at kingcon.com) Date: Wed, 2 Feb 2005 11:23:24 -0500 Subject: services.cfg no services defined Message-ID: Hello again, I commented out the perl variable. Now when I try to do the nagios -v, I get a checking services, there are no services defined. Currently all I have is a sample definition: define service{ host_name linux-server service_description check-disk-sda1 check_command check-disk!/dev/sda1 max_check_attempts 5 normal_check_interval 5 retry_check_interval 3 check_period 24x7 notification_interval 30 notification_period 24x7 notification_options w,c,r contact_groups linux-admins } Its wrong of course, but that doesnt matter, Ill fix it once I get an understanding of these files. When I go to template based object configuration in the docs, thats all it gives for an example. Thanks Ian Hardy Network Administrator Network + The Kingdom Connection 1-802-748-5866 P.O. Box 526 St. Johnsbury VT 05819 416E67656C697175652C20616B752063696E7461206B616D7521203A58 Check out www.missingkids.com Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Employees of Merrill Information systems Inc. are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy and outside the scope of the employment of the individual concerned. The company will not accept any liability in respect of such communication, and the employee responsible will be personally liable for any damages or other liability arising. ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Philipp.Sand at sycor.de Wed Feb 2 17:36:54 2005 From: Philipp.Sand at sycor.de (Sand Philipp) Date: Wed, 2 Feb 2005 17:36:54 +0100 Subject: Nagios-User with only VIEW-Rights Message-ID: <6943DE9E9934CD42BBE4A20E0E28E10E011C965A@SYGOMAIL.GOE.AD.SYCOR.DE> Hmm... Don't you need multiple Nagios Instaces on the server then? Or do you set special filesystem permissions (I don't know webservers very well :)) > -----Original Message----- > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > Sent: Wednesday, February 02, 2005 1:55 AM > To: Sand Philipp > Cc: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Nagios-User with only VIEW-Rights > > > vmware is overkill - just need mutliple directories and vhosts. > > > On Tue, 1 Feb 2005, Sand Philipp wrote: > > > Hi, > > > > I think the only way to do it so far, is to use distributed > > monitoring, and to set up an Nagios Server for each > customer (e.g. on VMWare). > > > > Regards, > > Philipp > > > >> -----Original Message----- > >> From: nagios-users-admin at lists.sourceforge.net > >> [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of > >> Andreas Ericsson > >> Sent: Tuesday, February 01, 2005 10:10 AM > >> To: nagios-users at lists.sourceforge.net > >> Subject: Re: [Nagios-users] Nagios-User with only VIEW-Rights > >> > >> XTRANET Technik wrote: > >>> Hello All! > >>> > >>> Is there any possibility to configure Nagios (2.0b1) to let an > >>> _authenticated_ user to only view the hosts and services he > >> is allowed > >>> to (like configuring him as "contact") but NOT let him > >> issue ANY host- or service-command? > >>> > >>> I'll need this for allowing customers to VIEW their hosts > >> and services > >>> but NOT to change anything..... > >>> > >> > >> Not without modifying the code. > >> > >> I've long planned to something along those lines to > cmd.cgi, but it > >> keeps getting postponed. Join nagios-devel and suggest it if you > >> like. > >> If Ethan thinks it's a good idea I might get a bit more incentive. > >> > >>> > >>> Best regards, > >>> peter > >>> > >>> > >>> ------------------------------------------------------- > >>> This SF.Net email is sponsored by: IntelliVIEW -- Interactive > >>> Reporting Tool for open source databases. Create > >> drag-&-drop reports. > >>> Save time by over 75%! Publish reports on the web. Export > >> to DOC, XLS, RTF, etc. > >>> Download a FREE copy at http://www.intelliview.com/go/osdn_nl > >>> _______________________________________________ > >>> Nagios-users mailing list > >>> Nagios-users at lists.sourceforge.net > >>> https://lists.sourceforge.net/lists/listinfo/nagios-users > >>> ::: Please include Nagios version, plugin version (-v) and > >> OS when reporting any issue. > >>> ::: Messages without supporting info will risk being sent > >> to /dev/null > >>> > >> > >> -- > >> Andreas Ericsson andreas.ericsson at op5.se > >> OP5 AB www.op5.se > >> Lead Developer > >> > >> > >> ------------------------------------------------------- > >> This SF.Net email is sponsored by: IntelliVIEW -- Interactive > >> Reporting Tool for open source databases. Create > drag-&-drop reports. > >> Save time by over 75%! Publish reports on the web. > >> Export to DOC, XLS, RTF, etc. > >> Download a FREE copy at http://www.intelliview.com/go/osdn_nl > >> _______________________________________________ > >> Nagios-users mailing list > >> Nagios-users at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/nagios-users > >> ::: Please include Nagios version, plugin version (-v) and OS when > >> reporting any issue. > >> ::: Messages without supporting info will risk being sent to > >> /dev/null > >> > > > ---------------------------------------------------------------------- > > ------------------- > > > > Hilfe f?r Khao Lak. > > > > Eine Spendeninitiative der Otto Bock Stiftung. > > > > Unsere Spendenhotline: 0900 - 11 10 15 0 Mit jedem Anruf aus dem > > Festnetz spenden Sie 5,- Euro. > > Weitere Informationen unter www.ottobock.de . > > Spendenkonto: Konto: 40 44, Sparkasse Duderstadt BLZ:260 512 60 > > > > > ---------------------------------------------------------------------- > > ------------------- > > > > Diese E-Mail ist vertraulich und kann dar?ber hinaus > pers?nliche Informationen beinhalten. Wenn Sie nicht der > bestimmungsgem??e Empf?nger sind, l?schen Sie bitte die > E-Mail und deren Anh?nge sofort und benachrichtigen Sie uns > dar?ber. Die Firma sycor willigt in keine Vertr?ge oder > vertragliche Verpflichtungen ein oder ?bermittelt > rechtsverbindliche Angebote, die in Form von E-Mail versandt > werden, sofern dies nicht ausdr?cklich in schriftlicher Form > zwischen den Parteien vereinbart wurde. > > > > This e-mail is confidential and may contain personal and/or > privileged information. If you are not the intended recipient > please delete this e-mail and all attachments immediately and > inform us. The company sycor does not agree with contracts or > contract obligations sent by e-mail, neither do we transmit > legally binding offers by e-mail, unless this is not > expressly agreed upon between the parties and documented in > written form. > > > > > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: IntelliVIEW -- Interactive > > Reporting Tool for open source databases. Create > drag-&-drop reports. > > Save time by over 75%! Publish reports on the web. Export > to DOC, XLS, RTF, etc. > > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and > OS when reporting any issue. > > ::: Messages without supporting info will risk being sent > to /dev/null > > > > -- > ----------------------------------------------------------------------------------------- Hilfe f?r Khao Lak. Eine Spendeninitiative der Otto Bock Stiftung. Unsere Spendenhotline: 0900 - 11 10 15 0 Mit jedem Anruf aus dem Festnetz spenden Sie 5,- Euro. Weitere Informationen unter www.ottobock.de . Spendenkonto: Konto: 40 44, Sparkasse Duderstadt BLZ:260 512 60 ----------------------------------------------------------------------------------------- Diese E-Mail ist vertraulich und kann dar?ber hinaus pers?nliche Informationen beinhalten. Wenn Sie nicht der bestimmungsgem??e Empf?nger sind, l?schen Sie bitte die E-Mail und deren Anh?nge sofort und benachrichtigen Sie uns dar?ber. Die Firma sycor willigt in keine Vertr?ge oder vertragliche Verpflichtungen ein oder ?bermittelt rechtsverbindliche Angebote, die in Form von E-Mail versandt werden, sofern dies nicht ausdr?cklich in schriftlicher Form zwischen den Parteien vereinbart wurde. This e-mail is confidential and may contain personal and/or privileged information. If you are not the intended recipient please delete this e-mail and all attachments immediately and inform us. The company sycor does not agree with contracts or contract obligations sent by e-mail, neither do we transmit legally binding offers by e-mail, unless this is not expressly agreed upon between the parties and documented in written form. ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jason.payne at iland.com Wed Feb 2 17:43:11 2005 From: jason.payne at iland.com (Jason Payne - iland Internet Solutions) Date: Wed, 2 Feb 2005 10:43:11 -0600 Subject: The infamous debian statusmap problem Message-ID: <7A626FF425518246801C933014AA98F059A134@hou-ex01.ihtx.iland.com> Hi nagiosians, Any help would be greatly appreciated. I cannot get the statusmap to work for the life of me. The image doesnn't show up but I can hover my mouse over it and the box will come up for the appropriate device. I've searched the mailing list and google and have not been able to simply get it working. I have done a: apt-get install libgd2 apt-get install libgd2-dev apt-get install libjpeg62 apt-get install libjpeg62-dev apt-get install libpng Here starts the pasting: nagios:~/nagios-1.2# ldconfig -p | grep libgd libgd.so.2 (libc6) => /usr/lib/libgd.so.2 nagios:~/nagios-1.2# ldconfig -p | grep libpng libpng.so.2 (libc6) => /usr/lib/libpng.so.2 nagios:~/nagios-1.2# ldconfig -p | grep libjp libjpeg.so.62 (libc6) => /usr/lib/libjpeg.so.62 I have the following files in /usr/lib: libgd.a libgd.so libgd.so.2 libgd.so.2.0.1 libpng.a libpng.so libpng.so.2 libpng.so.2.1.0.12 libjpeg.a libjpeg.la libjpeg.so libjpeg.so.62 libjpeg.so.62.0.0 nagios:~/nagios-1.2# rm config.cache nagios:~/nagios-1.2# configure --with-gd-lib=/usr/lib --with-gd-inc=/usr/include checking for gdImagePng in -lgd (order 1)... yes GD library was found! nagios.iland.com-error.log: [Wed Jan 26 10:52:10 2005] [error] [client 198.78.170.1] Premature end of script headers: /usr/local/nagios/sbin/statusmap.cgi Jason Payne Network Operations jason.payne at iland.com voice: 1.800.697.7088 fax: 713.868.2268 http://www.iland.com/ iLand Internet Solutions Corporation __________________________________________________ The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Efe Ohimor Sent: Wednesday, February 02, 2005 10:17 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] 3D-Status Map Hi Everyone I was able to view the 3D-Status map using Mozilla on my RedHat Linux system.I downloaded FreeWRL VRML/X3D browser from http://sourceforge.net/project/showfiles.php?group_id=9120&package_id=9189&r elease_id=290716 .Iam thinking of how to develeop it. Efe Ohimor ipNX Nigeria Limited 4,Balarabe Musa Crescent, Victoria Island, Lagos. Tel:234-1-4619943-6 ext 1212 Fax:2614633 ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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-list at smarte.dk Wed Feb 2 17:40:50 2005 From: nagios-list at smarte.dk (Brian Ibsen) Date: Wed, 2 Feb 2005 17:40:50 +0100 Subject: Unable to read output from NRPE Message-ID: <002d01c50945$fd2745d0$1e01a8c0@krusty> Hi.. I have a problem with reply from NRPE The remote host I'm trying to check have the following in /usr/local/etc/nrpe.cfg: command[check_total_procs]=/usr/local/libexec/nagios/check_procs -w 70 -c 150 when command is executes locally on the remote host it seams to work: /usr/local/libexec/nagios/check_procs -w 70 -c 150 giving OK - 13 processes running But when /usr/local/libexec/nagios/check_nrpe -H myhosthere -c check_total_procs ig get: Unable to read output The rest of the checks on the remote hosts returns a fine output Any idee whats going on ??? -------------- next part -------------- An HTML attachment was scrubbed... URL: From sghosh at sghosh.org Wed Feb 2 18:27:18 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed, 2 Feb 2005 12:27:18 -0500 (EST) Subject: Nagios-User with only VIEW-Rights In-Reply-To: <6943DE9E9934CD42BBE4A20E0E28E10E011C965A@SYGOMAIL.GOE.AD.SYCOR.DE> References: <6943DE9E9934CD42BBE4A20E0E28E10E011C965A@SYGOMAIL.GOE.AD.SYCOR.DE> Message-ID: See Russell Scibetti emails - https://sourceforge.net/mailarchive/forum.php?thread_id=1097098&forum_id=1872 This patch is included in 2.0bx (don't think it made it into 1.x) With a some configuration tweaks - you can have one instance of Nagios and multiple instances of the cgi on a single machine - each cgi instance can have different permissions. Of course you will have to remove cmd.cgi from the view-only logins... -sg On Wed, 2 Feb 2005, Sand Philipp wrote: > Hmm... Don't you need multiple Nagios Instaces on the server then? Or do > you set special filesystem permissions (I don't know webservers very > well :)) > >> -----Original Message----- >> From: Subhendu Ghosh [mailto:sghosh at sghosh.org] >> Sent: Wednesday, February 02, 2005 1:55 AM >> To: Sand Philipp >> Cc: nagios-users at lists.sourceforge.net >> Subject: RE: [Nagios-users] Nagios-User with only VIEW-Rights >> >> >> vmware is overkill - just need mutliple directories and vhosts. >> >> >> On Tue, 1 Feb 2005, Sand Philipp wrote: >> >>> Hi, >>> >>> I think the only way to do it so far, is to use distributed >>> monitoring, and to set up an Nagios Server for each >> customer (e.g. on VMWare). >>> >>> Regards, >>> Philipp >>> >>>> -----Original Message----- >>>> From: nagios-users-admin at lists.sourceforge.net >>>> [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of >>>> Andreas Ericsson >>>> Sent: Tuesday, February 01, 2005 10:10 AM >>>> To: nagios-users at lists.sourceforge.net >>>> Subject: Re: [Nagios-users] Nagios-User with only VIEW-Rights >>>> >>>> XTRANET Technik wrote: >>>>> Hello All! >>>>> >>>>> Is there any possibility to configure Nagios (2.0b1) to let an >>>>> _authenticated_ user to only view the hosts and services he >>>> is allowed >>>>> to (like configuring him as "contact") but NOT let him >>>> issue ANY host- or service-command? >>>>> >>>>> I'll need this for allowing customers to VIEW their hosts >>>> and services >>>>> but NOT to change anything..... >>>>> >>>> >>>> Not without modifying the code. >>>> >>>> I've long planned to something along those lines to >> cmd.cgi, but it >>>> keeps getting postponed. Join nagios-devel and suggest it if you >>>> like. >>>> If Ethan thinks it's a good idea I might get a bit more incentive. >>>> >>>>> >>>>> Best regards, >>>>> peter >>>>> >>>>> -- ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Feb 2 18:26:05 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 02 Feb 2005 18:26:05 +0100 Subject: Nagios-User with only VIEW-Rights In-Reply-To: <6943DE9E9934CD42BBE4A20E0E28E10E011C965A@SYGOMAIL.GOE.AD.SYCOR.DE> References: <6943DE9E9934CD42BBE4A20E0E28E10E011C965A@SYGOMAIL.GOE.AD.SYCOR.DE> Message-ID: <42010D2D.6090609@op5.se> Sand Philipp wrote: > Hmm... Don't you need multiple Nagios Instaces on the server then? Or > do you set special filesystem permissions (I don't know webservers > very well :)) > You could do it with apaches suexec features and filesystem permissions, yes. I'm not really familiar with the config options of suexec, but I'm sure one of all the people here that work at hosting companies can whip up a sample config at no-time, or at least point you in the right direction. > >> -----Original Message----- From: Subhendu Ghosh >> [mailto:sghosh at sghosh.org] Sent: Wednesday, February 02, 2005 1:55 >> AM To: Sand Philipp Cc: nagios-users at lists.sourceforge.net Subject: >> RE: [Nagios-users] Nagios-User with only VIEW-Rights >> >> >> vmware is overkill - just need mutliple directories and vhosts. >> >> >> On Tue, 1 Feb 2005, Sand Philipp wrote: >> >> >>> Hi, >>> >>> I think the only way to do it so far, is to use distributed >>> monitoring, and to set up an Nagios Server for each >> >> customer (e.g. on VMWare). >> >>> Regards, Philipp >>> >>> >>>> -----Original Message----- From: >>>> nagios-users-admin at lists.sourceforge.net >>>> [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of >>>> Andreas Ericsson Sent: Tuesday, February 01, 2005 10:10 AM To: >>>> nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] >>>> Nagios-User with only VIEW-Rights >>>> >>>> XTRANET Technik wrote: >>>> >>>>> Hello All! >>>>> >>>>> Is there any possibility to configure Nagios (2.0b1) to let >>>>> an _authenticated_ user to only view the hosts and services >>>>> he >>>> >>>> is allowed >>>> >>>>> to (like configuring him as "contact") but NOT let him >>>> >>>> issue ANY host- or service-command? >>>> >>>>> I'll need this for allowing customers to VIEW their hosts >>>> >>>> and services >>>> >>>>> but NOT to change anything..... >>>>> >>>> >>>> Not without modifying the code. >>>> >>>> I've long planned to something along those lines to >> >> cmd.cgi, but it >> >>>> keeps getting postponed. Join nagios-devel and suggest it if >>>> you like. If Ethan thinks it's a good idea I might get a bit >>>> more incentive. >>>> >>>> >>>>> Best regards, peter >>>>> >>>>> >>>>> ------------------------------------------------------- This >>>>> SF.Net email is sponsored by: IntelliVIEW -- Interactive >>>>> Reporting Tool for open source databases. Create >>>> >>>> drag-&-drop reports. >>>> >>>>> Save time by over 75%! Publish reports on the web. Export >>>> >>>> to DOC, XLS, RTF, etc. >>>> >>>>> Download a FREE copy at http://www.intelliview.com/go/osdn_nl >>>>> _______________________________________________ Nagios-users >>>>> mailing list Nagios-users at lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/nagios-users ::: >>>>> Please include Nagios version, plugin version (-v) and >>>> >>>> OS when reporting any issue. >>>> >>>>> ::: Messages without supporting info will risk being sent >>>> >>>> to /dev/null >>>> >>>> -- Andreas Ericsson andreas.ericsson at op5.se >>>> OP5 AB www.op5.se Lead Developer >>>> >>>> >>>> ------------------------------------------------------- This >>>> SF.Net email is sponsored by: IntelliVIEW -- Interactive >>>> Reporting Tool for open source databases. Create >> >> drag-&-drop reports. >> >>>> Save time by over 75%! Publish reports on the web. Export to >>>> DOC, XLS, RTF, etc. Download a FREE copy at >>>> http://www.intelliview.com/go/osdn_nl >>>> _______________________________________________ Nagios-users >>>> mailing list Nagios-users at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/nagios-users ::: >>>> Please include Nagios version, plugin version (-v) and OS when >>>> reporting any issue. ::: Messages without supporting info will >>>> risk being sent to /dev/null >>>> >>> >> ---------------------------------------------------------------------- >> >> >>> ------------------- >>> >>> Hilfe f?r Khao Lak. >>> >>> Eine Spendeninitiative der Otto Bock Stiftung. >>> >>> Unsere Spendenhotline: 0900 - 11 10 15 0 Mit jedem Anruf aus dem >>> Festnetz spenden Sie 5,- Euro. Weitere Informationen unter >>> www.ottobock.de . Spendenkonto: Konto: 40 44, Sparkasse >>> Duderstadt BLZ:260 512 60 >>> >>> >> >> ---------------------------------------------------------------------- >> >> >>> ------------------- >>> >>> Diese E-Mail ist vertraulich und kann dar?ber hinaus >> >> pers?nliche Informationen beinhalten. Wenn Sie nicht der >> bestimmungsgem??e Empf?nger sind, l?schen Sie bitte die E-Mail und >> deren Anh?nge sofort und benachrichtigen Sie uns dar?ber. Die Firma >> sycor willigt in keine Vertr?ge oder vertragliche Verpflichtungen >> ein oder ?bermittelt rechtsverbindliche Angebote, die in Form von >> E-Mail versandt werden, sofern dies nicht ausdr?cklich in >> schriftlicher Form zwischen den Parteien vereinbart wurde. >> >>> This e-mail is confidential and may contain personal and/or >> >> privileged information. If you are not the intended recipient >> please delete this e-mail and all attachments immediately and >> inform us. The company sycor does not agree with contracts or >> contract obligations sent by e-mail, neither do we transmit legally >> binding offers by e-mail, unless this is not expressly agreed upon >> between the parties and documented in written form. >> >>> >>> >>> >>> >>> >>> ------------------------------------------------------- This >>> SF.Net email is sponsored by: IntelliVIEW -- Interactive >>> Reporting Tool for open source databases. Create >> >> drag-&-drop reports. >> >>> Save time by over 75%! Publish reports on the web. Export >> >> to DOC, XLS, RTF, etc. >> >>> Download a FREE copy at http://www.intelliview.com/go/osdn_nl >>> _______________________________________________ Nagios-users >>> mailing list Nagios-users at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/nagios-users ::: >>> Please include Nagios version, plugin version (-v) and >> >> OS when reporting any issue. >> >>> ::: Messages without supporting info will risk being sent >> >> to /dev/null >> >> -- >> > > ----------------------------------------------------------------------------------------- > > > Hilfe f?r Khao Lak. > > Eine Spendeninitiative der Otto Bock Stiftung. > > Unsere Spendenhotline: 0900 - 11 10 15 0 Mit jedem Anruf aus dem > Festnetz spenden Sie 5,- Euro. Weitere Informationen unter > www.ottobock.de . Spendenkonto: Konto: 40 44, Sparkasse Duderstadt > BLZ:260 512 60 > > ----------------------------------------------------------------------------------------- > > > Diese E-Mail ist vertraulich und kann dar?ber hinaus pers?nliche > Informationen beinhalten. Wenn Sie nicht der bestimmungsgem??e > Empf?nger sind, l?schen Sie bitte die E-Mail und deren Anh?nge sofort > und benachrichtigen Sie uns dar?ber. Die Firma sycor willigt in keine > Vertr?ge oder vertragliche Verpflichtungen ein oder ?bermittelt > rechtsverbindliche Angebote, die in Form von E-Mail versandt werden, > sofern dies nicht ausdr?cklich in schriftlicher Form zwischen den > Parteien vereinbart wurde. > > This e-mail is confidential and may contain personal and/or > privileged information. If you are not the intended recipient please > delete this e-mail and all attachments immediately and inform us. The > company sycor does not agree with contracts or contract obligations > sent by e-mail, neither do we transmit legally binding offers by > e-mail, unless this is not expressly agreed upon between the parties > and documented in written form. > > > > > > > ------------------------------------------------------- This SF.Net > email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for > open source databases. Create drag-&-drop reports. Save time by over > 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ Nagios-users mailing > list Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please > include Nagios version, plugin version (-v) and OS when reporting any > issue. ::: Messages without supporting info will risk being sent to > /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Feb 2 18:27:50 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 02 Feb 2005 18:27:50 +0100 Subject: Unable to read output from NRPE In-Reply-To: <002d01c50945$fd2745d0$1e01a8c0@krusty> References: <002d01c50945$fd2745d0$1e01a8c0@krusty> Message-ID: <42010D96.8060700@op5.se> Brian Ibsen wrote: > Hi.. I have a problem with reply from NRPE > > The remote host I'm trying to check have the following in /usr/local/etc/nrpe.cfg: > command[check_total_procs]=/usr/local/libexec/nagios/check_procs -w 70 -c 150 > > when command is executes locally on the remote host it seams to work: > /usr/local/libexec/nagios/check_procs -w 70 -c 150 giving > OK - 13 processes running > > > But when > /usr/local/libexec/nagios/check_nrpe -H myhosthere -c check_total_procs ig get: > Unable to read output > Perhaps /proc is mounted with the group option, and the nrpe user doesn't have access to it. > > The rest of the checks on the remote hosts returns a fine output > Any idee whats going on ??? > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jmosh at shaw.ca Wed Feb 2 18:57:20 2005 From: jmosh at shaw.ca (Joubin Moshrefzadeh) Date: Wed, 02 Feb 2005 09:57:20 -0800 Subject: check_ping -- how to get -i option Message-ID: <134c1ca13494c1.13494c1134c1ca@shaw.ca> Thanks Andreas and others for your comments. I agree, my current workaround isn't the best solution (thats why i turned to the list, hoping there was a more elegant/efficient methond) however I had missed the part about host checks being done in serial... I'll give check_icmp a try. thanks. Date: Tue, 01 Feb 2005 21:22:43 +0100 From: Andreas Ericsson To: nagios_list Subject: Re: [Nagios-users] check_ping -- how to get -i option ? Joubin Moshrefzadeh wrote: > I occasionally get a host down alert, that is fixed on the next check > cycle. In my opinion thats sort of a false positive, and I want to > give the host test script a longer time-span before it decides a host > is down/unreachable. > > Any way to incorporate the -i option of ping into the > check_ping script? > You can use the check_icmp program and specify -i directly. Set it as high as you like. If it receives a response before it times out it will send another one, usually making the REAL interval shorter, while allowing the possibility of a long one. Just make sure you set a high enough timeout value. You can check that by adding -v twice on the command line. If your -t value is too low it will tell you "timeout must be at least x". max_completion_time is calculated as such packets * targets * (critical_rta + packet_interval + target_interval) + critical_rta (the last critical_rta is just to catch straggler). > My workaround right now is to use "check_ping -t 10 -w 3000.0,80% -c > 5000.0,100% -p 1", and to specify "max_check_attempts 30" so that i > know that a host is definitely down for at least 5 minutes before I > get a HOST DOWN alert. > That's not very smart, considering hostchecks are done in serial and without any kind of threading, so while one of your hosts are being checked this way nothing else is. > I know mon has a feature where you can specify the number of failures > for a check before it sends out a notification. Anything similar in > Nagios? > That would be the max_check_attempts variable. Perhaps you should read up on hard/soft states. I believe you could also accomplish the same thing with escalations, although I'm not sure since I don't use them myself. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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-list at smarte.dk Wed Feb 2 20:40:46 2005 From: nagios-list at smarte.dk (Brian Ibsen) Date: Wed, 2 Feb 2005 20:40:46 +0100 Subject: Unable to read output from NRPE References: Message-ID: <001101c5095f$1a1760d0$1e01a8c0@krusty> I'm not using SSL in the host.. and btw i'm using nrpe v1.8 I think the problem is more like Andreas descibes.. But I'm too much a newbie to check/fix this... So maybe I'l have to live with it or find someone to help me. /Brian ----- Original Message ----- From: frank.trila at rcibanque.de To: Brian Ibsen Sent: Wednesday, February 02, 2005 6:37 PM Subject: Re: [Nagios-users] Unable to read output from NRPE Hi, this seems to be a problem with SSL !! If you have compiled NRPE on the Server with SSL you have to it the same way on the client. This problem is common when using precompiled daemons from RPMs ... Another way to turn off SSL is to use the -n switch with check_nrpe check_nrpe -H $HOSTADDRESS$ -n -c $ARG1$ ciao ;-) Frank Frank Trila Technologische Entwicklung IT RCI Banque S.A. Niederlassung Deutschland Jagenberg Strasse 1 41468 Neuss Telefon +49-2131-401-1574 Telefax +49-2131-401-41574 mailto:Frank.Trila at RciBanque.de "Brian Ibsen" Sent by: nagios-users-admin at lists.sourceforge.net 02.02.2005 17:40 To cc Subject [Nagios-users] Unable to read output from NRPE Hi.. I have a problem with reply from NRPE The remote host I'm trying to check have the following in /usr/local/etc/nrpe.cfg: command[check_total_procs]=/usr/local/libexec/nagios/check_procs -w 70 -c 150 when command is executes locally on the remote host it seams to work: /usr/local/libexec/nagios/check_procs -w 70 -c 150 giving OK - 13 processes running But when /usr/local/libexec/nagios/check_nrpe -H myhosthere -c check_total_procs ig get: Unable to read output The rest of the checks on the remote hosts returns a fine output Any idee whats going on ??? -------------- next part -------------- An HTML attachment was scrubbed... URL: From jhmartin at toger.us Wed Feb 2 21:01:43 2005 From: jhmartin at toger.us (Jason Martin) Date: Wed, 2 Feb 2005 12:01:43 -0800 Subject: Unable to read output from NRPE In-Reply-To: <001101c5095f$1a1760d0$1e01a8c0@krusty> References: <001101c5095f$1a1760d0$1e01a8c0@krusty> Message-ID: <20050202200143.GS1574@zippy.toger.us> > this seems to be a problem with SSL !! > If you have compiled NRPE on the Server with SSL > you have to it the same way on the client. This problem > is common when using precompiled daemons from RPMs ... Which reminds me, a nice addition to NRPE would be having the server print out a banner and a list of capabilities (such as TLS), after which check_nrpe can decide if it wants to proceed with the connection. check_nrpe could then be configured to either require TLS or make it optional. -Jason Martin -- Who is "they" anyway? This message is PGP/MIME signed. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 211 bytes Desc: not available URL: From ae at op5.se Wed Feb 2 21:17:10 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 02 Feb 2005 21:17:10 +0100 Subject: Unable to read output from NRPE In-Reply-To: <20050202200143.GS1574@zippy.toger.us> References: <001101c5095f$1a1760d0$1e01a8c0@krusty> <20050202200143.GS1574@zippy.toger.us> Message-ID: <42013546.1040909@op5.se> Jason Martin wrote: >> this seems to be a problem with SSL !! >> If you have compiled NRPE on the Server with SSL >> you have to it the same way on the client. This problem >> is common when using precompiled daemons from RPMs ... > > Which reminds me, a nice addition to NRPE would be having the > server print out a banner and a list of capabilities (such as > TLS), after which check_nrpe can decide if it wants to proceed > with the connection. check_nrpe could then be configured to > either require TLS or make it optional. > I've been thinking about that (implemented as a handshake), but it would mean redesigning the protocol once again. Backwards compatibility is getting important, and it's getting harder to implement. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhmartin at toger.us Wed Feb 2 21:41:06 2005 From: jhmartin at toger.us (Jason Martin) Date: Wed, 2 Feb 2005 12:41:06 -0800 Subject: Unable to read output from NRPE In-Reply-To: <42013546.1040909@op5.se> References: <001101c5095f$1a1760d0$1e01a8c0@krusty> <20050202200143.GS1574@zippy.toger.us> <42013546.1040909@op5.se> Message-ID: <20050202204105.GT1574@zippy.toger.us> On Wed, Feb 02, 2005 at 09:17:10PM +0100, Andreas Ericsson wrote: > I've been thinking about that (implemented as a handshake), but it would > mean redesigning the protocol once again. Backwards compatibility is > getting important, and it's getting harder to implement. I think the handshake part is pretty important. At a minimum it tells check_nrpe that there is really a NRPE daemon on the other end and that it was allowed to talk to it. The error messages generated from check_nrpe could be much more informative if it has a better idea of what was happening on the remote end. -Jason Martin -- Postmen never die, they just loose their zip... This message is PGP/MIME signed. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 211 bytes Desc: not available URL: From jason.payne at iland.com Wed Feb 2 22:47:49 2005 From: jason.payne at iland.com (Jason Payne - iland Internet Solutions) Date: Wed, 2 Feb 2005 15:47:49 -0600 Subject: Unable to read output from NRPE Message-ID: <7A626FF425518246801C933014AA98F059A13B@hou-ex01.ihtx.iland.com> Hello, Yes, I do. Thanks for the advice but this doesn't have anything to do with the problem. The Script wouldn't end prematurely from a missing hostext definition. Thanks much, Jason Jason Payne Network Operations jason.payne at iland.com voice: 1.800.697.7088 fax: 713.868.2268 http://www.iland.com/ iLand Internet Solutions Corporation __________________________________________________ The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Jason Martin Sent: Wednesday, February 02, 2005 2:41 PM To: Nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Unable to read output from NRPE On Wed, Feb 02, 2005 at 09:17:10PM +0100, Andreas Ericsson wrote: > I've been thinking about that (implemented as a handshake), but it would > mean redesigning the protocol once again. Backwards compatibility is > getting important, and it's getting harder to implement. I think the handshake part is pretty important. At a minimum it tells check_nrpe that there is really a NRPE daemon on the other end and that it was allowed to talk to it. The error messages generated from check_nrpe could be much more informative if it has a better idea of what was happening on the remote end. -Jason Martin -- Postmen never die, they just loose their zip... This message is PGP/MIME signed. ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From formy-duval_alan at bah.com Wed Feb 2 23:18:18 2005 From: formy-duval_alan at bah.com (Formy-Duval Alan) Date: Wed, 02 Feb 2005 17:18:18 -0500 Subject: installing Nagios on Solaris 9 Message-ID: <420151AA.4090904@bah.com> Hello, I'm concerned about one of the steps in the online help for Nagios installation. First, I've created my nagcmd group with the nagios and nobody users. Now I'm on step "run configure script" step. The last line reads: Replace /cmdgroup/ with the name of the group running the web server (default is /nagios/) The default shown at the end of the line doesn't seem right... wouldn't the cmdgroup be set to either nobody (the Apache 'run-as' group) or nagcmd, the Command File Group. I need to clarify this before I configure Thanks, Alan -------------- next part -------------- A non-text attachment was scrubbed... Name: formy-duval_alan.vcf Type: text/x-vcard Size: 254 bytes Desc: not available URL: From Edward.Smith at demandtec.com Thu Feb 3 00:07:07 2005 From: Edward.Smith at demandtec.com (Edward Smith) Date: Wed, 2 Feb 2005 15:07:07 -0800 Subject: Running Perl scripts and ssh with nagios Message-ID: <2B5C62C548D2FC48BC0334E8AE494185058C79D6@parrot.demandtec.com> Hello, I am using a custom perl script that uses nagios to ssh into a host and run a script, much the same way that check_ssh works. However, we cannot use check_ssh for other reasons. Here is the problem, whenever we run the script from the command line as the nagios user it works fine. However, when we use it in nagios, via the checkcommands.cfg file, it fails. Is there something about the way nagios executes commands that would differ from the command line? I am using the same arguments, and the script is dying when it tries to open the ssh connection, yet no errors in the ssh logs, or nagios logs for that matter. Any help is greatly appreciated. Edward Smith ------------------------ Edward Smith Systems Application Engineer Demandtec, Inc esmith at demandtec.com 650-226-4609 ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hmann at itgroundwork.com Thu Feb 3 00:13:17 2005 From: hmann at itgroundwork.com (Harper Mann) Date: Wed, 2 Feb 2005 15:13:17 -0800 Subject: Running Perl scripts and ssh with nagios In-Reply-To: <2B5C62C548D2FC48BC0334E8AE494185058C79D6@parrot.demandtec.com> References: <2B5C62C548D2FC48BC0334E8AE494185058C79D6@parrot.demandtec.com> Message-ID: Hi Edward, Did you try running the script as the "nagios" user? Are you specifying a user on the target system and is there a "nagios" user on that host? Regards, - Harper Harper Mann Groundwork Open Source Solutions 510-599-2075 (cell) http://itgroundwork.com > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Edward Smith > Sent: Wednesday, February 02, 2005 3:07 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Running Perl scripts and ssh with nagios > > Hello, > > I am using a custom perl script that uses nagios to ssh into a host and > run a script, much the same way that check_ssh works. However, we cannot > use check_ssh for other reasons. Here is the problem, whenever we run > the script from the command line as the nagios user it works fine. > > However, when we use it in nagios, via the checkcommands.cfg file, it > fails. Is there something about the way nagios executes commands that > would differ from the command line? I am using the same arguments, and > the script is dying when it tries to open the ssh connection, yet no > errors in the ssh logs, or nagios logs for that matter. > > Any help is greatly appreciated. > > Edward Smith > > > > ------------------------ > Edward Smith > Systems Application Engineer > Demandtec, Inc > esmith at demandtec.com > 650-226-4609 > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please 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: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.Smith at demandtec.com Thu Feb 3 00:16:39 2005 From: Edward.Smith at demandtec.com (Edward Smith) Date: Wed, 2 Feb 2005 15:16:39 -0800 Subject: Running Perl scripts and ssh with nagios Message-ID: <2B5C62C548D2FC48BC0334E8AE494185058C79D7@parrot.demandtec.com> I am running it from the command line as the nagios user. The target host has a nagios user on it as well and the accounts are RSA keyed so no password is required. ------------------------ Edward Smith Systems Application Engineer Demandtec, Inc esmith at demandtec.com 650-226-4609 -----Original Message----- From: Harper Mann [mailto:hmann at itgroundwork.com] Sent: Wednesday, February 02, 2005 3:13 PM To: Ed Smith; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Running Perl scripts and ssh with nagios Hi Edward, Did you try running the script as the "nagios" user? Are you specifying a user on the target system and is there a "nagios" user on that host? Regards, - Harper Harper Mann Groundwork Open Source Solutions 510-599-2075 (cell) http://itgroundwork.com > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Edward Smith > Sent: Wednesday, February 02, 2005 3:07 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Running Perl scripts and ssh with nagios > > Hello, > > I am using a custom perl script that uses nagios to ssh into a host and > run a script, much the same way that check_ssh works. However, we cannot > use check_ssh for other reasons. Here is the problem, whenever we run > the script from the command line as the nagios user it works fine. > > However, when we use it in nagios, via the checkcommands.cfg file, it > fails. Is there something about the way nagios executes commands that > would differ from the command line? I am using the same arguments, and > the script is dying when it tries to open the ssh connection, yet no > errors in the ssh logs, or nagios logs for that matter. > > Any help is greatly appreciated. > > Edward Smith > > > > ------------------------ > Edward Smith > Systems Application Engineer > Demandtec, Inc > esmith at demandtec.com > 650-226-4609 > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please 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: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hmann at itgroundwork.com Thu Feb 3 00:27:31 2005 From: hmann at itgroundwork.com (Harper Mann) Date: Wed, 2 Feb 2005 15:27:31 -0800 Subject: Running Perl scripts and ssh with nagios In-Reply-To: <2B5C62C548D2FC48BC0334E8AE494185058C79D7@parrot.demandtec.com> References: <2B5C62C548D2FC48BC0334E8AE494185058C79D7@parrot.demandtec.com> Message-ID: Another trick is to put "/bin/echo" in front of the command in checkcommands.cfg. This gives the correct line you can cut and paste into the command line. You see if from Service Detail. Sometimes the macros or other args aren't as expected. - Harper Harper Mann Groundwork Open Source Solutions 510-599-2075 (cell) http://itgroundwork.com > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Edward Smith > Sent: Wednesday, February 02, 2005 3:17 PM > To: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Running Perl scripts and ssh with nagios > > I am running it from the command line as the nagios user. The target host > has a nagios user on it as well and the accounts are RSA keyed so no > password is required. > > > ------------------------ > Edward Smith > Systems Application Engineer > Demandtec, Inc > esmith at demandtec.com > 650-226-4609 > > > -----Original Message----- > From: Harper Mann [mailto:hmann at itgroundwork.com] > Sent: Wednesday, February 02, 2005 3:13 PM > To: Ed Smith; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Running Perl scripts and ssh with nagios > > > Hi Edward, > > Did you try running the script as the "nagios" user? Are you specifying a > user on the target system and is there a "nagios" user on that host? > > Regards, > > - Harper > > Harper Mann > Groundwork Open Source Solutions > 510-599-2075 (cell) > http://itgroundwork.com > > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of Edward Smith > > Sent: Wednesday, February 02, 2005 3:07 PM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Running Perl scripts and ssh with nagios > > > > Hello, > > > > I am using a custom perl script that uses nagios to ssh into a host and > > run a script, much the same way that check_ssh works. However, we > cannot > > use check_ssh for other reasons. Here is the problem, whenever we run > > the script from the command line as the nagios user it works fine. > > > > However, when we use it in nagios, via the checkcommands.cfg file, it > > fails. Is there something about the way nagios executes commands that > > would differ from the command line? I am using the same arguments, and > > the script is dying when it tries to open the ssh connection, yet no > > errors in the ssh logs, or nagios logs for that matter. > > > > Any help is greatly appreciated. > > > > Edward Smith > > > > > > > > ------------------------ > > Edward Smith > > Systems Application Engineer > > Demandtec, Inc > > esmith at demandtec.com > > 650-226-4609 > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > > Tool for open source databases. Create drag-&-drop reports. Save time > > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please 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: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please 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: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mac at biviumcorp.com Thu Feb 3 00:53:12 2005 From: mac at biviumcorp.com (Edward MacGillivray) Date: Wed, 2 Feb 2005 17:53:12 -0600 Subject: Check ping wrapper needed to fix check ping plugin? Message-ID: <200502021753.13130.mac@biviumcorp.com> Hello, I've had Nagios 1.2 installed and running for several months and checking quite a few things. I had recently started to get many notifications about some of the stuff that was going up and down. Most of the time these things were on our local network and would be down for 1 check-interval of time (30 sec as configured now). So I decided yesterday to try to debug what was happening. At first I manually used the check_ping plugin to see what the results it would give me. The results I got were about what I expected and below the warning threshold. The next thing I did was rename the check_ping plugin and then create a shell script in its place which would run the original plugin and record the result in a log file (see below for the script). So I've had this script in the works for almost a day and I've yet to see the amount of flapping that was happening previously. Additionally, I've had nagiostat setup for about a week and the averages for the RTA time has dropped significantly (25-50%) with the wrapper as compared to the unwrapped setup. So my question is, does anyone have a reason that would cause the "bare" plugin to behave worse than the "wrapped" plugin? ============= check_ping ============== #!/bin/bash date=$( date ); output=$( /usr/local/nagios/libexec/check_ping-real $* ); RET=$?; echo "$date: $*: $RET $output" >> /tmp/check_ping.log; echo "$output"; exit $RET; --- end ------------------------------- check_ping ----------------------- thanks mac ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ross.minkov at hp.com Thu Feb 3 01:36:27 2005 From: ross.minkov at hp.com (Minkov, Ross) Date: Wed, 2 Feb 2005 19:36:27 -0500 Subject: check_ping -- how to get -i option ? Message-ID: <192E38594ACFAF4EB4F40E1C4B60472306014CA9@tayexc13.americas.cpqcorp.net> Thanks Andreas. I'll try check_icmp. > Btw. I noticed you're a HP employee. Are you familiar with the HP > Testdrive program? I'd like to get my hands on a HP-UX 11i running on > PA-RISC 2 for NRPE development and testing. Would you be able to fix that? Main HP TestDrive web site is -- http://www.testdrive.hp.com/ To register for an account -- http://www.testdrive.hp.com/accounts/register.shtml I think we have PA RISC rp3410 server running HP-UX v2 available for test drive. The rp3410 has two PA-8800 800MHz cpus and 2GB of memory. Regards, Ross -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Andreas Ericsson Sent: Tuesday, February 01, 2005 7:23 PM To: nagios_list Subject: Re: [Nagios-users] check_ping -- how to get -i option ? Minkov, Ross wrote: > >>My workaround right now is to use "check_ping -t 10 -w 3000.0,80% -c >>5000.0,100% -p 1", and to specify "max_check_attempts 30" so that i >>know that a host is definitely down for at least 5 minutes before I >>get a HOST DOWN alert. > > > The way I solved similar problem ( I'm not saying this is the right way > ;-) ) was to modify the check-host-alive command definition as follows: > > # 'check-host-alive' command definition > define command{ > command_name check-host-alive > command_line $USER1$/check_ping -H $HOSTADDRESS$ -w > 3000.0,80% -c 5000.0,100% -p 10 > } > > This kind of achieves the same... Instead of sending one ping and > waiting for 10 seconds for a response (-t 10) I send 10 pings... Not > sure which way is better... > check_icmp is better, since it won't take as long when the host is up and will thus make your Nagios installation perform a whole lot better when service checks fail. > Regards, > Ross > Btw. I noticed you're a HP employee. Are you familiar with the HP Testdrive program? I'd like to get my hands on a HP-UX 11i running on PA-RISC 2 for NRPE development and testing. Would you be able to fix that? -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeff at skislave.com Thu Feb 3 01:53:34 2005 From: jeff at skislave.com (Jeff Scott) Date: Wed, 2 Feb 2005 17:53:34 -0700 Subject: The infamous debian statusmap problem In-Reply-To: <7A626FF425518246801C933014AA98F059A134@hou-ex01.ihtx.iland.com> References: <7A626FF425518246801C933014AA98F059A134@hou-ex01.ihtx.iland.com> Message-ID: <200502030052.j130qdx28292@web001.tier3.us> I had the same problem, and I had to have libpng.so.3, I believe. And once I had that library, I had to recompile the CGIs. Now it works. However, my problem now is the statusmap doesn't look "as nice" as the demo's I've seen. My hosts get overlaid on top of each other, etc. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Jason Payne - iland Internet Solutions Sent: Wednesday, February 02, 2005 9:43 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] The infamous debian statusmap problem Hi nagiosians, Any help would be greatly appreciated. I cannot get the statusmap to work for the life of me. The image doesnn't show up but I can hover my mouse over it and the box will come up for the appropriate device. I've searched the mailing list and google and have not been able to simply get it working. I have done a: apt-get install libgd2 apt-get install libgd2-dev apt-get install libjpeg62 apt-get install libjpeg62-dev apt-get install libpng Here starts the pasting: nagios:~/nagios-1.2# ldconfig -p | grep libgd libgd.so.2 (libc6) => /usr/lib/libgd.so.2 nagios:~/nagios-1.2# ldconfig -p | grep libpng libpng.so.2 (libc6) => /usr/lib/libpng.so.2 nagios:~/nagios-1.2# ldconfig -p | grep libjp libjpeg.so.62 (libc6) => /usr/lib/libjpeg.so.62 I have the following files in /usr/lib: libgd.a libgd.so libgd.so.2 libgd.so.2.0.1 libpng.a libpng.so libpng.so.2 libpng.so.2.1.0.12 libjpeg.a libjpeg.la libjpeg.so libjpeg.so.62 libjpeg.so.62.0.0 nagios:~/nagios-1.2# rm config.cache nagios:~/nagios-1.2# configure --with-gd-lib=/usr/lib --with-gd-inc=/usr/include checking for gdImagePng in -lgd (order 1)... yes GD library was found! nagios.iland.com-error.log: [Wed Jan 26 10:52:10 2005] [error] [client 198.78.170.1] Premature end of script headers: /usr/local/nagios/sbin/statusmap.cgi Jason Payne Network Operations jason.payne at iland.com voice: 1.800.697.7088 fax: 713.868.2268 http://www.iland.com/ iLand Internet Solutions Corporation __________________________________________________ The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Efe Ohimor Sent: Wednesday, February 02, 2005 10:17 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] 3D-Status Map Hi Everyone I was able to view the 3D-Status map using Mozilla on my RedHat Linux system.I downloaded FreeWRL VRML/X3D browser from http://sourceforge.net/project/showfiles.php?group_id=9120&package_id=9189&r elease_id=290716 .Iam thinking of how to develeop it. Efe Ohimor ipNX Nigeria Limited 4,Balarabe Musa Crescent, Victoria Island, Lagos. Tel:234-1-4619943-6 ext 1212 Fax:2614633 ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From neal at lists.rauhauser.net Thu Feb 3 08:25:57 2005 From: neal at lists.rauhauser.net (Neal Rauhauser) Date: Thu, 03 Feb 2005 01:25:57 -0600 Subject: CGIs treated as text, not executed? Message-ID: <4201D205.20208@lists.rauhauser.net> I haven't touched the graphical interface for Nagios in maybe five years but I don't recall it being as much work as its made for me the last few days. I've configured the stuff in /usr/local/etc/apache and this seems to be right - accessing http://machine/nagios/ produces a nagios page, but when I click on one of the reports it shows me strings from inside the CGI binary instead of executing it. I've checked ownership and permissions on the binaries and they look right - executeable, owned by www, and they behave like a normal CGI when invoked from the command line. The host OS is FreeBSD 4.10 and here is what I believe to the the relevant config snippets. I know this has to be some stupid one line config thing but I'm just not seeing ... any ideas? Alias /nagios/ /usr/local/share/nagios/ Options None AllowOverride AuthConfig Order allow,deny Allow from all ScriptAlias /nagios/cgi-bin/ /usr/local/share/nagios/cgi-bin/ AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all ap400# pwd /usr/local/share/nagios/cgi-bin ap400# ls -l total 1942 -rwxrwxr-x 1 www www 147976 Feb 1 19:37 avail.cgi -rwxrwxr-x 1 www www 147160 Feb 1 19:37 cmd.cgi -rwxrwxr-x 1 www www 114280 Feb 1 19:37 config.cgi -rwxrwxr-x 1 www www 160848 Feb 1 19:37 extinfo.cgi -rwxrwxr-x 1 www www 125064 Feb 1 19:37 histogram.cgi -rwxrwxr-x 1 www www 104452 Feb 1 19:37 history.cgi -rwxrwxr-x 1 www www 101444 Feb 1 19:37 notifications.cgi -rwxrwxr-x 1 www www 98528 Feb 1 19:37 outages.cgi -rwxrwxr-x 1 www www 99940 Feb 1 19:37 showlog.cgi -rwxrwxr-x 1 www www 146616 Feb 1 19:37 status.cgi -rwxrwxr-x 1 www www 127488 Feb 1 19:37 statusmap.cgi -rwxrwxr-x 1 www www 115304 Feb 1 19:37 statuswml.cgi -rwxrwxr-x 1 www www 109312 Feb 1 19:37 statuswrl.cgi -rwxrwxr-x 1 www www 119944 Feb 1 19:37 summary.cgi -rwxrwxr-x 1 www www 123992 Feb 1 19:37 tac.cgi -rwxrwxr-x 1 www www 127016 Feb 1 19:37 trends.cgi ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From g.vickers at qut.edu.au Thu Feb 3 02:46:34 2005 From: g.vickers at qut.edu.au (Greg Vickers) Date: Thu, 03 Feb 2005 11:46:34 +1000 Subject: Nagios SIGSEGVs In-Reply-To: <4200A0BB.60208@op5.se> References: <4200785B.40405@qut.edu.au> <4200A0BB.60208@op5.se> Message-ID: <4201827A.1070003@qut.edu.au> OK I'll get the latest version from CVS, however Nagios was successfully verifying and running before the server reboot, I don't understand why the nagios executable is segfaulting now :( Thanks, Greg Andreas Ericsson wrote: > Greg Vickers wrote: > >> Hi all, >> >> I downloaded Nagios 2.0b1 onto a brand new install of RHEL3 and built >> it OK. It was working great, running as expected, web interface and >> everything. Then I rebooted the server to check that nagios started OK >> and that the iptables rules worked to allow NSCA passive service >> checks in, as I'm not overly familiar with RHEL3. >> >> Nagios didn't start - got a pretty red FAILED message on the console. >> So I log on and have a lookie - running "/etc/init.d/nagios start" >> reports no lock file found. Running "/usr/local/nagios/bin/nagios -d >> /usr/local/nagios/etc/nagios.etc" fails silently. >> Running "strace -f -o nagios.strace /usr/local/nagios/bin/nagios -d >> /usr/local/nagios/etc/nagios.etc" shows up a SEGSEGV as one of the >> last entries. >> >> I've tried reconfiguring and recompiling and the exe is the same size >> as the one that is installed and it does the same thing when I run >> that new exe... >> >> Am I missing something obvious or do I have a ghost in the machine? >> > > 2.0 is beta. If you're going to run it, you need to run the CVS code to > make sure you've got the latest fixes. > > AFAICR there was an issue like this when the config was constructed in a > certain way (segfault at load-time) a couple of months back. > >> If you're interested, here is a copy of the strace output (only up for >> 2 weeks) at this URL: >> https://fileshare.qut.edu.au/public/vickersg/nagios.strace.gz >> >> TIA, > > -- Greg Vickers Lab Monitor Project Manager Teaching and Learning Support Services Information Technology Services Queensland University of Technology email: g.vickers at qut.edu.au phone: (07) 3864 8276 mobile: 0416 001 674, SD #6 6147 CIROS code: 00213J ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From g.vickers at qut.edu.au Thu Feb 3 02:49:10 2005 From: g.vickers at qut.edu.au (Greg Vickers) Date: Thu, 03 Feb 2005 11:49:10 +1000 Subject: check_cluster2 problem found - looking for a solution In-Reply-To: References: <420038AF.3050407@qut.edu.au> <42005AAC.8080606@qut.edu.au> Message-ID: <42018316.801@qut.edu.au> I don't have the service state ID numbers, the on-demand macro $SERVICESTATE:hostid:serviceid$ is being converted on the fly by the Nagios process before (assumption) the fork process to run check_cluster2. Is there a place where I can get the ID numbers these on-demand macros are expanded to? Greg Subhendu Ghosh wrote: > I thought you already had the sevice IDs as they were being passed (not > completely) to check_cluster2... > > On Wed, 2 Feb 2005, Greg Vickers wrote: > >> Thanks for the info Subhendu - where can I find the service ID #'s? >> >> Subhendu Ghosh wrote: >> >>> shell wrapper around check_cluster with all the Service IDs hardcoded... >>> -sg >>> >>> On Wed, 2 Feb 2005, Greg Vickers wrote: >>> >>>> Hi all, >>>> >>>> I'm pretty sure that I know what the problem is with passing a >>>> massive list of service IDs to check_cluster2. >>>> >>>> This is my theory: When Nagios forks off a process to run >>>> check_cluster2 the list of service state ID numbers (converted by >>>> Nagios from on-demand macros) is passed on the command line. The >>>> numbers are many characters long and the environment that >>>> check_cluster2 runs in doesn't have enough space on the command line >>>> for all the numbers. Any characters that make up the 23rd ID number >>>> are truncated, hence 1 service always critical, that service ID >>>> isn't found. >>>> >>>> Does this sound like what is happening? Is there another clever way >>>> to pass the list of service state ID numbers to the forked process >>>> so that there is no truncation and you can pass as many service >>>> state ID numbers as you want? >>>> >>>> If you can help or have suggestions please email me or the list :) >>>> >>>> Thanks, >>>> >>> >> >> > -- Greg Vickers Lab Monitor Project Manager Teaching and Learning Support Services Information Technology Services Queensland University of Technology email: g.vickers at qut.edu.au phone: (07) 3864 8276 mobile: 0416 001 674, SD #6 6147 CIROS code: 00213J ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeff at skislave.com Thu Feb 3 04:29:46 2005 From: jeff at skislave.com (Jeff Scott) Date: Wed, 2 Feb 2005 20:29:46 -0700 Subject: nagios 2 won't compile on solaris 8 Message-ID: <200502030328.j133Spx02941@web001.tier3.us> I've seen some post about Solaris 8 + nagios 2.01b, but I can't seem to get it to compile. (Nagios 1.2 compiles fine, and works 100%). I've installed the gd2 stuff from blastwave, and all the dependant packages. I've setup the libraries with crle. I have all the environment variables set. Configure runs without errors. But compile fails... $env .stuff removed.. LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/usr/openwin/lib:/usr/dt/lib:/usr/uc blib:/usr/local/mysql/lib/mysql:/opt/csw/lib LD_OPTIONS=-R/opt/csw/lib -L/opt/csw/lib CC=gcc USER=root MACHTYPE=sparc-sun-solaris2.8 CPPFLAGS=-I/opt/csw/include $pkginfo |grep CSW system CSWbinutils binutils - GNU 'binary utilities': gas, gld, gprof, and others system CSWcommon common - common files and dirs for CSW packages system CSWcswutils cswutils - Utilities for CSW maintainers at blastwave.org application CSWexpat expat - XML Parser Toolkit system CSWftype2 freetype2 - font rendering library application CSWgcc3 gcc3 - GNU Compiler Collection version 3 branch application CSWgcc3rt gcc3rt - GNU Compiler Collection version 3 branch run-time system CSWgd gd - libgd, Graphics creation library and utilities system CSWggettext ggettext - GNU gettext system CSWiconv libiconv - GNU iconv library system CSWjpeg jpeg - lib and tools for JPEG image format system CSWpkgget pkg_get - CSW version of automated package download tool system CSWpng png - library for Portable Network Graphics format (PNG) system CSWtextutils textutils - GNU text file processing utilities system CSWxpm xpm - library for X11 PixMap format (libXpm.so.4.11) application CSWzlib zlib - Zlib Data Compression Library $crle Configuration file [3]: /var/ld/ld.config Default Library Path (ELF): /opt/csw/lib:/usr/lib Trusted Directories (ELF): /usr/lib/secure (system default) Command line: crle -c /var/ld/ld.config -l /opt/csw/lib:/usr/lib $make all cd ./base && make make[1]: Entering directory `/root/nagios/nagios-2.0b1/base' gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -o nagios nagios.c broker.o nebmods.o checks.o config.o commands.o events.o flapping.o logging.o notifications.o sehandlers.o utils.o retention-base.o xretention-base.o comments-base.o xcomments-base.o objects-base.o xobjects-base.o statusdata-base.o xstatusdata-base.o perfdata-base.o xperfdata-base.o downtime-base.o xdowntime-base.o -lm -lnsl -lsocket -lpthread -ldl -lrt Undefined first referenced symbol in file setenv utils.o unsetenv utils.o ld: fatal: Symbol referencing errors. No output written to nagios collect2: ld returned 1 exit status make[1]: *** [nagios] Error 1 make[1]: Leaving directory `/root/nagios/nagios-2.0b1/base' make: *** [all] Error 2 -------------- next part -------------- An HTML attachment was scrubbed... URL: From amontibello at gmail.com Thu Feb 3 05:32:47 2005 From: amontibello at gmail.com (Anthony Montibello) Date: Wed, 2 Feb 2005 23:32:47 -0500 Subject: Passive Check with nsclient In-Reply-To: <6943DE9E9934CD42BBE4A20E0E28E10E011C9658@SYGOMAIL.GOE.AD.SYCOR.DE> References: <6943DE9E9934CD42BBE4A20E0E28E10E011C9658@SYGOMAIL.GOE.AD.SYCOR.DE> Message-ID: Passive checks with NC_Net are almost done. I am running several tests on the checks now as well as clean up some of the code and configuration variables. The passive check version of NC_Net will be released as soon as the preliminary testing is done. On Wed, 2 Feb 2005 16:37:53 +0100, Sand Philipp wrote: > Doesn't work there... Maybe take a look at the developement of the > NC_Net Plugin. I think those passive check thing is in queue there... > > ________________________________ > > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Harris, > Sam > Sent: Wednesday, February 02, 2005 3:43 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Passive Check with nsclient > > > Anybody knows where I could find a more comprehensive guide for > passive check with nsclient. > > Thanks > > ----------------------------------------------------------------------------------------- > > Hilfe f?r Khao Lak. > > Eine Spendeninitiative der Otto Bock Stiftung. > > Unsere Spendenhotline: 0900 - 11 10 15 0 > Mit jedem Anruf aus dem Festnetz spenden Sie 5,- Euro. > Weitere Informationen unter www.ottobock.de . > Spendenkonto: Konto: 40 44, Sparkasse Duderstadt BLZ:260 512 60 > > ----------------------------------------------------------------------------------------- > > Diese E-Mail ist vertraulich und kann dar?ber hinaus pers?nliche Informationen beinhalten. Wenn Sie nicht der bestimmungsgem??e Empf?nger sind, l?schen Sie bitte die E-Mail und deren Anh?nge sofort und benachrichtigen Sie uns dar?ber. Die Firma sycor willigt in keine Vertr?ge oder vertragliche Verpflichtungen ein oder ?bermittelt rechtsverbindliche Angebote, die in Form von E-Mail versandt werden, sofern dies nicht ausdr?cklich in schriftlicher Form zwischen den Parteien vereinbart wurde. > > This e-mail is confidential and may contain personal and/or privileged information. If you are not the intended recipient please delete this e-mail and all attachments immediately and inform us. The company sycor does not agree with contracts or contract obligations sent by e-mail, neither do we transmit legally binding offers by e-mail, unless this is not expressly agreed upon between the parties and documented in written form. > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please 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: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Thu Feb 3 08:02:05 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 3 Feb 2005 02:02:05 -0500 (EST) Subject: check_cluster2 problem found - looking for a solution In-Reply-To: <42018316.801@qut.edu.au> References: <420038AF.3050407@qut.edu.au> <42005AAC.8080606@qut.edu.au> <42018316.801@qut.edu.au> Message-ID: -oops - nope - the ondemand macros expansion data cannot be hard coded. to fix this - try the the cvs version of nagios 2 - there was patch yesterday increasing the env buffer. otherwise - need a plugin that will scan thru the status log based ona config file rather than using the on-demand macros. -sg On Thu, 3 Feb 2005, Greg Vickers wrote: > I don't have the service state ID numbers, the on-demand macro > $SERVICESTATE:hostid:serviceid$ is being converted on the fly by the Nagios > process before (assumption) the fork process to run check_cluster2. > > Is there a place where I can get the ID numbers these on-demand macros are > expanded to? > > Greg > > Subhendu Ghosh wrote: >> I thought you already had the sevice IDs as they were being passed (not >> completely) to check_cluster2... >> >> On Wed, 2 Feb 2005, Greg Vickers wrote: >> >>> Thanks for the info Subhendu - where can I find the service ID #'s? >>> >>> Subhendu Ghosh wrote: >>> >>>> shell wrapper around check_cluster with all the Service IDs hardcoded... >>>> -sg >>>> >>>> On Wed, 2 Feb 2005, Greg Vickers wrote: >>>> >>>>> Hi all, >>>>> >>>>> I'm pretty sure that I know what the problem is with passing a massive >>>>> list of service IDs to check_cluster2. >>>>> >>>>> This is my theory: When Nagios forks off a process to run check_cluster2 >>>>> the list of service state ID numbers (converted by Nagios from on-demand >>>>> macros) is passed on the command line. The numbers are many characters >>>>> long and the environment that check_cluster2 runs in doesn't have enough >>>>> space on the command line for all the numbers. Any characters that make >>>>> up the 23rd ID number are truncated, hence 1 service always critical, >>>>> that service ID isn't found. >>>>> >>>>> Does this sound like what is happening? Is there another clever way to >>>>> pass the list of service state ID numbers to the forked process so that >>>>> there is no truncation and you can pass as many service state ID numbers >>>>> as you want? >>>>> >>>>> If you can help or have suggestions please email me or the list :) >>>>> >>>>> Thanks, >>>>> >>>> >>> >>> >> > > -- ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From yu-ting_liu at agilent.com Thu Feb 3 08:36:20 2005 From: yu-ting_liu at agilent.com (yu-ting_liu at agilent.com) Date: Thu, 3 Feb 2005 15:36:20 +0800 Subject: FW: Indirect host and service checks to Wintelplatform Message-ID: Hi, It's solved! I think I got confused by the file send_nsca existing on my Window2000 client. In fact NSClient just simply uses plugin check_nt to start the perfomance checking processes on wintel platform and get the checking results. Thanks again! Regards! Yu Ting -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of yu-ting_liu at agilent.com Sent: Monday, January 31, 2005 10:12 PM To: strombrg at dcs.nac.uci.edu; h.januschka at krone.at Cc: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Indirect host and service checks to Wintelplatform Hi, Thanks for your replying! In Nagio document it only mentioned the Indirect Host/Service Checks of NRPE, instead of NSCA. I have used one Linux box - intermediary agent behind firewall to collect all the client's host/service checking results, then central server gets all the information from this agent again. By this way I have implemented all UNIX clients indirect host/service checks because UNIX client's host/service checking uses nrpe. Now I want to do the same thing to all the Wintel clients, but Wintel client's checking is different, it uses NSCA (NSClient). I am sill not clear about how window clients submit service (CPU/Disks...) checking result to central monitoring server by NSClient. The server is running plugin "check_nt". Win2K clients are running NSClient and it seems to use send_nsca to send service checking result. So I get confused since NSclient can use send_nsca and send information to server's external command file why server still needs to run plugin "check_nt" to each Wintel client? Thanks & Regards! Yu Ting -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Dan Stromberg Sent: Saturday, January 29, 2005 2:50 AM To: yu-ting_liu at agilent.com Cc: strombrg at dcs.nac.uci.edu; nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Indirect host and service checks to Wintelplatform You'll likely either want to allow connections from your nagios server through to your windows boxes that need monitoring, or use a unix/linux box behind your firewall to do the checking, and then use "passive checking" to push the results out to the central nagios server. Another option is to allow ssh through the firewall to a particular unix/linux host, and check_by_ssh. On Fri, 2005-01-28 at 18:30 +0800, yu-ting_liu at agilent.com wrote: > Hi, > > I am a user of nagios. > > Due to firewall I have to use indirect host/service checking. Now I have implemented it to UNIX clients but for Window2000 clients which use NSClient, I don't know if it's possible and how to do it? Anybody has such experience or any helpful document introduced? > > BTW my server and indirect host are all Linux platform. > > Thanks & Regards! > Yu Ting > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please 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: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Feb 3 09:46:59 2005 From: ae at op5.se (Andreas Ericsson) Date: Thu, 03 Feb 2005 09:46:59 +0100 Subject: check_ping -- how to get -i option ? In-Reply-To: <192E38594ACFAF4EB4F40E1C4B60472306014CA9@tayexc13.americas.cpqcorp.net> References: <192E38594ACFAF4EB4F40E1C4B60472306014CA9@tayexc13.americas.cpqcorp.net> Message-ID: <4201E503.2010209@op5.se> Minkov, Ross wrote: > Thanks Andreas. I'll try check_icmp. > > >>Btw. I noticed you're a HP employee. Are you familiar with the HP >>Testdrive program? I'd like to get my hands on a HP-UX 11i running on >>PA-RISC 2 for NRPE development and testing. Would you be able to fix > > that? > > Main HP TestDrive web site is -- http://www.testdrive.hp.com/ > > To register for an account -- > http://www.testdrive.hp.com/accounts/register.shtml > > I think we have PA RISC rp3410 server running HP-UX v2 available for > test drive. The rp3410 has two PA-8800 800MHz cpus and 2GB of memory. > My bad. I meant PA-RISC 1.1. I'm already signed up for hp testdrive (excellent service!) and things seems to be working well on the available machines. > > Regards, > Ross > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Andreas > Ericsson > Sent: Tuesday, February 01, 2005 7:23 PM > To: nagios_list > Subject: Re: [Nagios-users] check_ping -- how to get -i > option ? > > Minkov, Ross wrote: > >>>My workaround right now is to use "check_ping -t 10 -w 3000.0,80% -c >>>5000.0,100% -p 1", and to specify "max_check_attempts 30" so that i >>>know that a host is definitely down for at least 5 minutes before I >>>get a HOST DOWN alert. >> >> >>The way I solved similar problem ( I'm not saying this is the right > > way > >>;-) ) was to modify the check-host-alive command definition as > > follows: > >># 'check-host-alive' command definition >>define command{ >> command_name check-host-alive >> command_line $USER1$/check_ping -H $HOSTADDRESS$ -w >>3000.0,80% -c 5000.0,100% -p 10 >> } >> >>This kind of achieves the same... Instead of sending one ping and >>waiting for 10 seconds for a response (-t 10) I send 10 pings... Not >>sure which way is better... >> > > > check_icmp is better, since it won't take as long when the host is up > and will thus make your Nagios installation perform a whole lot better > when service checks fail. > > >>Regards, >>Ross >> > > > Btw. I noticed you're a HP employee. Are you familiar with the HP > Testdrive program? I'd like to get my hands on a HP-UX 11i running on > PA-RISC 2 for NRPE development and testing. Would you be able to fix > that? > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From squadra.breno at telemigcelular.com.br Thu Feb 3 13:01:28 2005 From: squadra.breno at telemigcelular.com.br (Breno Andrade Cotta) Date: Thu, 3 Feb 2005 09:01:28 -0300 Subject: Wap Access Nokia Message-ID: <8E3A4AB6889F924DB69AA6B5CC3BD0382D37611A@ajuda.celular.com.br> Hi All, I configure Nagios 1.2 to access throw wap. I have 2 cellfone and in sonyericsson everything is fine Nagios open all link?s, but in the another one Nokia the first page open but the other don?t work. Do you any idea what can I do? Regards, -- Breno Andrade Cotta - adm. redes engenharia Rede de presta??o de servi?os e transmiss?o GPRS TC/AC Telemig Celular SA - Fone: +55 (31) 9977-2841 ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From wrl at express.org Thu Feb 3 15:40:11 2005 From: wrl at express.org (William R. Lorenz) Date: Thu, 3 Feb 2005 09:40:11 -0500 (EST) Subject: Nagios-MySQL Locking Issues? Message-ID: Greetings, When starting NAGIOS, it doesn't seem that it's able to lock the tables correctly and write status information to the database. Specifically: Nagios 1.2 starting... (PID=12131) Error: Could not read program retention data from table programretention Error: Could not read host retention data from table hostretention Error: Could not read service retention data from table serviceretention Error: Could not lock status data tables in database '' I've even tried granting NAGIOS global access in MySQL, and this doesn't seem to help. Is there something obvious I'm missing here? I'd greatly appreciate any ideas you guys might have. Thanks, in advance. -- _ __ __ ___ _| | William R. Lorenz \ V V / '_| | http://www.express.org/~wrl/ ; "Every revolution was first \./\./|_| |_| a thought in one man's mind." - Ralph Waldo Emerson ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Philipp.Sand at sycor.de Thu Feb 3 16:30:57 2005 From: Philipp.Sand at sycor.de (Sand Philipp) Date: Thu, 3 Feb 2005 16:30:57 +0100 Subject: Monitoring HP ProLiant Linux servers -- Nagios vs. OVO vs. SIM Message-ID: <6943DE9E9934CD42BBE4A20E0E28E10E011C9672@SYGOMAIL.GOE.AD.SYCOR.DE> Hi, I didn't wrote the plugin, so I can't distribute it...although, it is already distributed and can be found in the nagios plugins contrib folder . Greets, Philipp > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf > Of Benoit Mortier > Sent: Tuesday, February 01, 2005 11:19 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Monitoring HP ProLiant Linux > servers -- Nagios vs. OVO vs. SIM > > Le Mardi 1 F?vrier 2005 16:52, Sand Philipp a ?crit?: > > Hi, > > > > We're using Nagios + Insight Manager. Works fine for us. > > > > We use Nagios as our main monitoring Platform, and have > integrated the > > HP Insight Manager into the Nagios. The Plugin we're using > is based on > > snmp queries to get the status of the local insight manager client, > > and reports them to the nagios. When it detects an error, > the status > > in nagios changes, we get a little Status info like "SCSI > degraded" or > > something, and we connect to the insight manager and have a further > > look. All the other stuff like monitoring disk space, processes, > > memory, some handwritten stuff is beeing checked by nagios plugins. > > I think the HP Insight Manager is very good to monitor all the > > Hardware Issues, but Nagios is much more flexible with other checks. > > Hi, > > could you share the plugin with us ? is it gpl ? i yes could > you upload it to nagiosplug project at sourceforge. > > Thanks > > -- > Benoit Mortier > Linux Engineer > www.opensides.be > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive > Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ----------------------------------------------------------------------------------------- Hilfe f?r Khao Lak. Eine Spendeninitiative der Otto Bock Stiftung. Unsere Spendenhotline: 0900 - 11 10 15 0 Mit jedem Anruf aus dem Festnetz spenden Sie 5,- Euro. Weitere Informationen unter www.ottobock.de . Spendenkonto: Konto: 40 44, Sparkasse Duderstadt BLZ:260 512 60 ----------------------------------------------------------------------------------------- Diese E-Mail ist vertraulich und kann dar?ber hinaus pers?nliche Informationen beinhalten. Wenn Sie nicht der bestimmungsgem??e Empf?nger sind, l?schen Sie bitte die E-Mail und deren Anh?nge sofort und benachrichtigen Sie uns dar?ber. Die Firma sycor willigt in keine Vertr?ge oder vertragliche Verpflichtungen ein oder ?bermittelt rechtsverbindliche Angebote, die in Form von E-Mail versandt werden, sofern dies nicht ausdr?cklich in schriftlicher Form zwischen den Parteien vereinbart wurde. This e-mail is confidential and may contain personal and/or privileged information. If you are not the intended recipient please delete this e-mail and all attachments immediately and inform us. The company sycor does not agree with contracts or contract obligations sent by e-mail, neither do we transmit legally binding offers by e-mail, unless this is not expressly agreed upon between the parties and documented in written form. ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mpowell at ena.com Thu Feb 3 16:50:07 2005 From: mpowell at ena.com (Marc Powell) Date: Thu, 3 Feb 2005 09:50:07 -0600 Subject: CGIs treated as text, not executed? Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Neal Rauhauser > Sent: Thursday, February 03, 2005 1:26 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] CGIs treated as text, not executed? > > > > I haven't touched the graphical interface for Nagios in maybe five > years but I don't recall it being as much work as its made for me the > last few days. I've configured the stuff in /usr/local/etc/apache and > this seems to be right - accessing http://machine/nagios/ produces a > nagios page, but when I click on one of the reports it shows me strings > from inside the CGI binary instead of executing it. I've checked > ownership and permissions on the binaries and they look right - > executeable, owned by www, and they behave like a normal CGI when > invoked from the command line. > > The host OS is FreeBSD 4.10 and here is what I believe to the the > relevant config snippets. I know this has to be some stupid one line > config thing but I'm just not seeing ... any ideas? > > > > Alias /nagios/ /usr/local/share/nagios/ > > Options None > AllowOverride AuthConfig > Order allow,deny > Allow from all > > > ScriptAlias /nagios/cgi-bin/ /usr/local/share/nagios/cgi-bin/ > > AllowOverride AuthConfig > Options ExecCGI > Order allow,deny > Allow from all > > Do you also have -- LoadModule cgi_module modules/mod_cgi.so AddModule mod_cgi.c And possibly (but not necessary in this case I believe) -- AddHandler cgi-script .cgi .pl You'll need to restart httpd if you make any changes to the conf file of course. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dkirhlarov at oilspace.com Thu Feb 3 17:00:00 2005 From: dkirhlarov at oilspace.com (Dmitriy Kirhlarov) Date: Thu, 3 Feb 2005 16:00:00 +0000 Subject: problems with distributed monitoring Message-ID: <20050203160000.GA28773@office.oilspace.com> Hi! We are trying to implement distributed monitoring scheme with snmp and passive checks, in general. For transfering passive checks results from a client to "monitoring" nagios we use nsca without crypting (BTW, nsca-2.4 can't be compiled without libmcrypt. We had be write a patch) Data are transfered every min. "Monitoring" nagios has oscp_command set to script, which puts data to "to_send.dump" file. Every 30 sec other script transfers accumulated data from the "to_send.dump" file to "central" nagios via nsca over ssh-forwarded port. All work fine on the "monitoring" nagios. All services "OK". But, on "central" nagios most part of services are in flapping and/or unknown status. As I can see, those services was configured as active checks on "monitoring" nagios. My templates: on "monitoring" nagios: ----- define service{ name generic-service register 0 is_volatile 0 max_check_attempts 1 normal_check_interval 1 retry_check_interval 1 check_period 24x7 parallelize_check 1 obsess_over_service 1 check_freshness 1 event_handler_enabled 1 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 notification_interval 120 notification_period 24x7 notification_options w,u,c,r notifications_enabled 0 contact_groups admins } define service{ use generic-service register 0 name minfra01-active freshness_threshold 180 passive_checks_enabled 1 active_checks_enabled 1 } define service{ use generic-service register 0 name minfra01-passive freshness_threshold 180 passive_checks_enabled 1 active_checks_enabled 0 } ----- On "central" nagios: ---- define service{ name generic-service register 0 is_volatile 0 max_check_attempts 3 normal_check_interval 4 retry_check_interval 2 check_period 24x7 parallelize_check 1 obsess_over_service 1 check_freshness 1 event_handler_enabled 1 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 notification_interval 120 notification_period 24x7 notification_options w,u,c,r notifications_enabled 0 contact_groups admins } define service{ use generic-service register 0 name minfra01-active passive_checks_enabled 1 active_checks_enabled 0 } define service{ use generic-service register 0 name minfra01-passive freshness_threshold 600 passive_checks_enabled 1 active_checks_enabled 0 } ---- WBR -- Dmitriy Kirhlarov OILspace, 4, B. Spasskaya str. room 01, 107978 Moscow, Russia P:+7 095 787 4700 F:+7 095 787 4701 E:DmitriyKirhlarov at oilspace.com OILspace - The resource enriched - www.oilspace.com ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jason.payne at iland.com Thu Feb 3 17:13:24 2005 From: jason.payne at iland.com (Jason Payne - iland Internet Solutions) Date: Thu, 3 Feb 2005 10:13:24 -0600 Subject: The infamous debian statusmap problem Message-ID: <7A626FF425518246801C933014AA98F059A13D@hou-ex01.ihtx.iland.com> OK, that hit the spot. Thanks. I ended up apt-get removeing libgd2 and libgd2-dev and downloading the latest libgd from their homepage. I added /usr/local/lib to /etc/ld.so.conf and ldconfigged. I had libpng and libjpeg62 installed via apt-get. All of this was on a debian 3.0 stable machine. Nagiosians to the rescue! -Jason Jason Payne Network Operations jason.payne at iland.com voice: 1.800.697.7088 fax: 713.868.2268 http://www.iland.com/ iLand Internet Solutions Corporation __________________________________________________ The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Jeff Scott Sent: Wednesday, February 02, 2005 6:54 PM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] The infamous debian statusmap problem I had the same problem, and I had to have libpng.so.3, I believe. And once I had that library, I had to recompile the CGIs. Now it works. However, my problem now is the statusmap doesn't look "as nice" as the demo's I've seen. My hosts get overlaid on top of each other, etc. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Jason Payne - iland Internet Solutions Sent: Wednesday, February 02, 2005 9:43 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] The infamous debian statusmap problem Hi nagiosians, Any help would be greatly appreciated. I cannot get the statusmap to work for the life of me. The image doesnn't show up but I can hover my mouse over it and the box will come up for the appropriate device. I've searched the mailing list and google and have not been able to simply get it working. I have done a: apt-get install libgd2 apt-get install libgd2-dev apt-get install libjpeg62 apt-get install libjpeg62-dev apt-get install libpng Here starts the pasting: nagios:~/nagios-1.2# ldconfig -p | grep libgd libgd.so.2 (libc6) => /usr/lib/libgd.so.2 nagios:~/nagios-1.2# ldconfig -p | grep libpng libpng.so.2 (libc6) => /usr/lib/libpng.so.2 nagios:~/nagios-1.2# ldconfig -p | grep libjp libjpeg.so.62 (libc6) => /usr/lib/libjpeg.so.62 I have the following files in /usr/lib: libgd.a libgd.so libgd.so.2 libgd.so.2.0.1 libpng.a libpng.so libpng.so.2 libpng.so.2.1.0.12 libjpeg.a libjpeg.la libjpeg.so libjpeg.so.62 libjpeg.so.62.0.0 nagios:~/nagios-1.2# rm config.cache nagios:~/nagios-1.2# configure --with-gd-lib=/usr/lib --with-gd-inc=/usr/include checking for gdImagePng in -lgd (order 1)... yes GD library was found! nagios.iland.com-error.log: [Wed Jan 26 10:52:10 2005] [error] [client 198.78.170.1] Premature end of script headers: /usr/local/nagios/sbin/statusmap.cgi Jason Payne Network Operations jason.payne at iland.com voice: 1.800.697.7088 fax: 713.868.2268 http://www.iland.com/ iLand Internet Solutions Corporation __________________________________________________ The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Efe Ohimor Sent: Wednesday, February 02, 2005 10:17 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] 3D-Status Map Hi Everyone I was able to view the 3D-Status map using Mozilla on my RedHat Linux system.I downloaded FreeWRL VRML/X3D browser from http://sourceforge.net/project/showfiles.php?group_id=9120&package_id=9189&r elease_id=290716 .Iam thinking of how to develeop it. Efe Ohimor ipNX Nigeria Limited 4,Balarabe Musa Crescent, Victoria Island, Lagos. Tel:234-1-4619943-6 ext 1212 Fax:2614633 ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ian at kingcon.com Thu Feb 3 18:41:10 2005 From: ian at kingcon.com (ian at kingcon.com) Date: Thu, 3 Feb 2005 12:41:10 -0500 Subject: plugins 1.3.1 basic problem Message-ID: Im wondering where in the documentation it tells explicitly how to make the plugins work with the nagios distribution. I downloaded (a non beta thanks for the hint) distribution, 1.2, installed it. Then downloaded the 1.3.1 distribution of the nagios plugins. Currently my nagios etc folder has a checkcommands.cfg, from various help files I gather I must use the command.cfg file in the plugins distribution. From that file I gather I must use the convertcfg file to convert the commands file to a commands object type. When I do this and replace checkcommands.cfg with the command.cfg in the nagios.cfg file, it still tells me I have invalid arguments in the command.cfg file, just like it did in the checkcommands.cfg file. Im probably confused, but Im interested. So if the above sounds stupid tell me. I've looked through the docs and I see the sections on making these object files... but if I cant use the suplied commands file, how do I go about figuring out all the arguments for the different commands to build it from scratch? Ian Hardy Network Administrator Network + The Kingdom Connection 1-802-748-5866 P.O. Box 526 St. Johnsbury VT 05819 416E67656C697175652C20616B752063696E7461206B616D7521203A58 Check out www.missingkids.com Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Employees of Merrill Information systems Inc. are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy and outside the scope of the employment of the individual concerned. The company will not accept any liability in respect of such communication, and the employee responsible will be personally liable for any damages or other liability arising. ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bob at cdsinc.com Thu Feb 3 19:40:25 2005 From: bob at cdsinc.com (Bob Cunningham) Date: Thu, 3 Feb 2005 08:40:25 -1000 Subject: nagios 2 won't compile on solaris 8 In-Reply-To: <200502030328.j133Spx02941@web001.tier3.us> References: <200502030328.j133Spx02941@web001.tier3.us> Message-ID: <6fdc541d6e2a6be2a32ff607d31bf93c@cdsinc.com> Nagios 2.x uses the setenv & unsetenv functions. Which found their way into Linux a while back, but which aren't in Solaris. (FYI, they aren't POSIX but are in BSD, although not SV4.) I'll reprise what I said in a message a week or two ago re Solaris 9 (but it's the same thing with Solaris 8) .... What I did was cut & paste those trivial functions from: http://article.gmane.org/gmane.network.nagios.devel/1443 ... and added those into base/utils.c of nagios 2.2. To be precise, here is a diff of base/utils.c for you: 225,236d224 < int setenv(const char *name, const char *value, int overwrite) { < if (!overwrite && getenv(name) != NULL) < return 0; < char* e = malloc(strlen(name) + strlen(value) + 3); < if (e == NULL) return -1; < *e = 0; < strcat(e, name); < strcat(e, "="); < strcat(e, value); < return putenv(e); < // should not free e, and we can't safely free any former value. < } 238,249d225 < /* see < http://viewcvs.globus.org/viewcvs.cgi/gatekeeper/source/unsetenv.c? rev=HEAD&content-type=text/vnd.viewcvs-markup < */ < static char * < __findenv(name, offset) < register const char *name; < long *offset; < { < extern char **environ; < register int len; < register const char *np; < register char **p, *c; 251,279d226 < if (name == NULL || environ == NULL) < return (NULL); < for (np = name; *np && *np != '='; ++np) < continue; < len = np - name; < for (p = environ; (c = *p) != NULL; ++p) < if (strncmp(c, name, len) == 0 && c[len] == '=') { < *offset = (long)(p - environ); < return (c + len + 1); < } < return (NULL); < } < void < unsetenv(name) < const char *name; < { < extern char **environ; < register char **p; < long offset; < < while (__findenv(name, &offset)) /* if set multiple times */ < for (p = &environ[offset];; ++p) < if (!(*p = *(p + 1))) < break; < } < < < < ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeffb.list at gmail.com Thu Feb 3 19:41:53 2005 From: jeffb.list at gmail.com (Jeff B) Date: Thu, 3 Feb 2005 13:41:53 -0500 Subject: Checking the availibility of the NRPE Service Message-ID: I have had a situations where the box that I'm monitoring with NRPE has had it's load average go high enough to cause the NRPE checks to time out. This causes Nagios to send out critical alerts for every service that is being monitored with NRPE. I want to monitor the availability of the NRPE service and depend all of the NRPE checks to the one that checks NRPE's availability. I'm not sure the best way to do this and was wondering if someone on the list has already worked through this situation. I'm thinking that check_tcp is what I want to use, but I'm unsure if I need any extra -s -e flags, or if the default connect test will behave the way I want when it encounters high load. Thanks. ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhmartin at toger.us Thu Feb 3 19:55:58 2005 From: jhmartin at toger.us (Jason Martin) Date: Thu, 3 Feb 2005 10:55:58 -0800 Subject: Checking the availibility of the NRPE Service In-Reply-To: References: Message-ID: <20050203185557.GU1574@zippy.toger.us> On Thu, Feb 03, 2005 at 01:41:53PM -0500, Jeff B wrote: > service that is being monitored with NRPE. I want to monitor > the availability of the NRPE service and depend all of the > NRPE checks to the one that checks NRPE's availability. One way to do that is define the host-check command to do a check_nrpe against the host. When no -c command is supplied it checks that NRPE is available. That also inherently makes all services on the host dependent on NRPE. If that isn't sensitive enough, you could arbitrarily use a given plugin on the host as the host check, but set with high enough thresholds that the only non-OK value is when the plugin fails. -Jason Martin -- This tagline only to be removed by the consumer. This message is PGP/MIME signed. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 211 bytes Desc: not available URL: From strombrg at dcs.nac.uci.edu Thu Feb 3 20:16:09 2005 From: strombrg at dcs.nac.uci.edu (Dan Stromberg) Date: Thu, 03 Feb 2005 11:16:09 -0800 Subject: nagios 2 won't compile on solaris 8 In-Reply-To: <200502030328.j133Spx02941@web001.tier3.us> References: <200502030328.j133Spx02941@web001.tier3.us> Message-ID: <1107458169.10571.176.camel@seki.nac.uci.edu> You can fairly easily get setenv() and unsetenv() functions by linking - liberty or my -lgeneric library. On Wed, 2005-02-02 at 20:29 -0700, Jeff Scott wrote: > I?ve seen some post about Solaris 8 + nagios 2.01b, but I can?t seem > to get it to compile. (Nagios 1.2 compiles fine, and works 100%). > I?ve installed the gd2 stuff from blastwave, and all the dependant > packages. I?ve setup the libraries with crle. I have all the > environment variables set. Configure runs without errors. But compile > fails?.. > > > > $env > > ?stuff removed?. > > LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/usr/openwin/lib:/usr/dt/lib:/usr/ucblib:/usr/local/mysql/lib/mysql:/opt/csw/lib > > LD_OPTIONS=-R/opt/csw/lib -L/opt/csw/lib > > CC=gcc > > USER=root > > MACHTYPE=sparc-sun-solaris2.8 > > CPPFLAGS=-I/opt/csw/include > > > > $pkginfo |grep CSW > > system CSWbinutils binutils - GNU 'binary utilities': > gas, gld, gprof, and others > > system CSWcommon common - common files and dirs for > CSW packages > > system CSWcswutils cswutils - Utilities for CSW > maintainers at blastwave.org > > application CSWexpat expat - XML Parser Toolkit > > system CSWftype2 freetype2 - font rendering library > > application CSWgcc3 gcc3 - GNU Compiler Collection > version 3 branch > > application CSWgcc3rt gcc3rt - GNU Compiler Collection > version 3 branch run-time > > system CSWgd gd - libgd, Graphics creation library > and utilities > > system CSWggettext ggettext - GNU gettext > > system CSWiconv libiconv - GNU iconv library > > system CSWjpeg jpeg - lib and tools for JPEG image > format > > system CSWpkgget pkg_get - CSW version of automated > package download tool > > system CSWpng png - library for Portable Network > Graphics format (PNG) > > system CSWtextutils textutils - GNU text file processing > utilities > > system CSWxpm xpm - library for X11 PixMap format > (libXpm.so.4.11) > > application CSWzlib zlib - Zlib Data Compression Library > > > > $crle > > > > Configuration file [3]: /var/ld/ld.config > > Default Library Path (ELF): /opt/csw/lib:/usr/lib > > Trusted Directories (ELF): /usr/lib/secure (system default) > > > > Command line: > > crle -c /var/ld/ld.config -l /opt/csw/lib:/usr/lib > > > > > > > > > > $make all > > cd ./base && make > > make[1]: Entering directory `/root/nagios/nagios-2.0b1/base' > > gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -o nagios nagios.c broker.o > nebmods.o checks.o config.o commands.o events.o flapping.o logging.o > notifications.o sehandlers.o utils.o retention-base.o xretention- > base.o comments-base.o xcomments-base.o objects-base.o xobjects-base.o > statusdata-base.o xstatusdata-base.o perfdata-base.o xperfdata-base.o > downtime-base.o xdowntime-base.o -lm -lnsl -lsocket -lpthread - > ldl -lrt > > Undefined first referenced > > symbol in file > > setenv utils.o > > unsetenv utils.o > > ld: fatal: Symbol referencing errors. No output written to nagios > > collect2: ld returned 1 exit status > > make[1]: *** [nagios] Error 1 > > make[1]: Leaving directory `/root/nagios/nagios-2.0b1/base' > > make: *** [all] Error 2 > > -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From Chris at deVidal.tv Thu Feb 3 20:31:14 2005 From: Chris at deVidal.tv (Chris de Vidal) Date: Thu, 3 Feb 2005 14:31:14 -0500 (EST) Subject: SOLVED: Monitor a host without ping Message-ID: <4657.216.140.242.84.1107459074.squirrel@216.140.242.84> As per the recommendations of Subhendu Ghosh, Patrick Proy and Carsten Schmitz, I created a custom check command. On Debian I created /usr/share/nagios/pluginconfig/ssh.cfg and placed this inside: define command{ command_name check_ssh_602 command_line /usr/lib/nagios/plugins/check_ssh -p 602 $HOSTADDRESS$ } I then ran update-nagios and it worked like a champ. Thanks to you three! CD Have you ever lied? No matter the color, no matter how small. I have. Have you ever stolen anything, no matter the amount? I have. Have you ever lusted? I have. Jesus said whoever looks at a woman with lustful intent has already committed adultery with her in his heart. We are lying, theiving, adulterers at heart and will face judgement one day. There is good news for us! "God shows his love for us in that while we were still sinners, Christ died for us. Since, therefore, we have now been justified by his blood, much more shall we be saved by him from the wrath of God." (Romans 5:8,9) ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From en at megahosted.com Thu Feb 3 20:52:22 2005 From: en at megahosted.com (Eric Nelson) Date: Thu, 03 Feb 2005 11:52:22 -0800 Subject: persistent acknowledgements? Message-ID: <420280F6.9070607@megahosted.com> Hello everyone, hope you're all having a great day today! I have a user here that has just brought up an interesting issue in regards to handling of acknowledgements within nagios. I've searched around quite a bit on the matter and was wondering if any of you have found a good workaround for the following (besides removal of notifications on warn). 1. Some check will go critical 2. We'll acknowledge it 3. Some check will drop to warning 4. We'll have to acknowledge it again Is there a way to make acknowledgements persistent in a way that we might get a state change, but not have to re-acknowledge when a service goes from a state of being critical and acknowledged to warning? -- Eric Nelson http://www.megahosted.com/~en/ GPG-key: C4AB5707 Fingerprint: 9E50 D5C2 2B02 A944 1A28 5CA5 366A 0294 C4AB 5707 ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Greg.Nolan at disney.com Thu Feb 3 20:58:10 2005 From: Greg.Nolan at disney.com (Nolan, Greg) Date: Thu, 3 Feb 2005 11:58:10 -0800 Subject: Nagios install on gentoo Message-ID: > I am attempting to setup a test nagios server (moving from Solaris to > Linux) on gentoo and I have hit a wall. > > Symptoms: > Unable to view any data under server detail, host detail, status > overview.... On the website > Ther error I receive is the general error saying "make sure nagios is > running..." > > Data: > 1. Nagios runs perfectly fine as a Daemon. When I run ps ax|grep > nagios: > 18884 ? Ss /usr/nagios/bin/nagios -d /etc/nagios/nagios.cfg > 2. ScriptAlias in apache is properly configured > 3. nagios.log reports no problem > 4. apache's log shows no issues > 5. /usr/nagios/bin/nagios -v /etc/nagios/nagios.cfg reports no errors > > Any help would be greatly appreciated. Thanks. > > ---------------------------------------------------- > Greg Nolan > Data Communications Analyst > Network Technical Support > The Walt Disney Company > > ---------------------------------------------------- > > This communication is confidential, intended only for the named > recipient(s) above and may contain trade secrets or other information > that is exempt from disclosure under applicable law. Any use, > dissemination, distribution or copying of this communication by anyone > other than the named recipient(s) is strictly prohibited. If you have > received this communication in error, please notify me immediately by > calling > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sghosh at sghosh.org Thu Feb 3 21:07:09 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 3 Feb 2005 15:07:09 -0500 (EST) Subject: Nagios install on gentoo In-Reply-To: References: Message-ID: make sure that the "check_nagios" command is configured properly in cgi.cfg On Thu, 3 Feb 2005, Nolan, Greg wrote: > > >> I am attempting to setup a test nagios server (moving from Solaris to >> Linux) on gentoo and I have hit a wall. >> >> Symptoms: >> Unable to view any data under server detail, host detail, status >> overview.... On the website >> Ther error I receive is the general error saying "make sure nagios is >> running..." >> >> Data: >> 1. Nagios runs perfectly fine as a Daemon. When I run ps ax|grep >> nagios: >> 18884 ? Ss /usr/nagios/bin/nagios -d /etc/nagios/nagios.cfg >> 2. ScriptAlias in apache is properly configured >> 3. nagios.log reports no problem >> 4. apache's log shows no issues >> 5. /usr/nagios/bin/nagios -v /etc/nagios/nagios.cfg reports no errors >> >> Any help would be greatly appreciated. Thanks. >> -- ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Greg.Nolan at disney.com Thu Feb 3 21:32:38 2005 From: Greg.Nolan at disney.com (Nolan, Greg) Date: Thu, 3 Feb 2005 12:32:38 -0800 Subject: Nagios install on gentoo Message-ID: Well, it does not seem like nagios is creating a status file so check_nagios fails. -g -----Original Message----- From: sghosh at sghosh.org [mailto:sghosh at sghosh.org] Sent: Thursday, February 03, 2005 12:07 PM To: Nolan, Greg Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Nagios install on gentoo make sure that the "check_nagios" command is configured properly in cgi.cfg On Thu, 3 Feb 2005, Nolan, Greg wrote: > > >> I am attempting to setup a test nagios server (moving from Solaris to >> Linux) on gentoo and I have hit a wall. >> >> Symptoms: >> Unable to view any data under server detail, host detail, status >> overview.... On the website Ther error I receive is the general error >> saying "make sure nagios is running..." >> >> Data: >> 1. Nagios runs perfectly fine as a Daemon. When I run ps ax|grep >> nagios: >> 18884 ? Ss /usr/nagios/bin/nagios -d /etc/nagios/nagios.cfg >> 2. ScriptAlias in apache is properly configured >> 3. nagios.log reports no problem >> 4. apache's log shows no issues >> 5. /usr/nagios/bin/nagios -v /etc/nagios/nagios.cfg reports no errors >> >> Any help would be greatly appreciated. Thanks. >> -- ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Feb 3 21:36:59 2005 From: ae at op5.se (Andreas Ericsson) Date: Thu, 03 Feb 2005 21:36:59 +0100 Subject: Nagios-MySQL Locking Issues? In-Reply-To: References: Message-ID: <42028B6B.5050307@op5.se> William R. Lorenz wrote: > Greetings, > > When starting NAGIOS, it doesn't seem that it's able to lock the tables > correctly and write status information to the database. Specifically: > > Nagios 1.2 starting... (PID=12131) > Error: Could not read program retention data from table programretention > Error: Could not read host retention data from table hostretention > Error: Could not read service retention data from table serviceretention > Error: Could not lock status data tables in database '' > Could not lock status data tables in database '' means you haven't specified a database. It's no wonder nagios can't update things in the (void *)0 database. Anyways. Database support has been removed in nagios 2.0, so you might want to drop it as well. > I've even tried granting NAGIOS global access in MySQL, and this doesn't > seem to help. Is there something obvious I'm missing here? I'd greatly > appreciate any ideas you guys might have. Thanks, in advance. > > -- _ __ __ ___ _| | William R. Lorenz \ V V > / '_| | http://www.express.org/~wrl/ ; "Every revolution was first > \./\./|_| |_| a thought in one man's mind." - Ralph Waldo Emerson > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk > being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Thu Feb 3 21:38:29 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 3 Feb 2005 15:38:29 -0500 (EST) Subject: Nagios install on gentoo In-Reply-To: References: Message-ID: If Nagios is not creating a status file, then - a) you have an issue with nagios not being able to creat a status file or b) you are using a db to store status. - if so, need to change check_nagios to check_nagios_db from the plugin contrib -sg On Thu, 3 Feb 2005, Nolan, Greg wrote: > Well, it does not seem like nagios is creating a status file so > check_nagios fails. > > -g > > -----Original Message----- > From: sghosh at sghosh.org [mailto:sghosh at sghosh.org] > Sent: Thursday, February 03, 2005 12:07 PM > To: Nolan, Greg > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Nagios install on gentoo > > > > make sure that the "check_nagios" command is configured properly in > cgi.cfg > > On Thu, 3 Feb 2005, Nolan, Greg wrote: > >> >> >>> I am attempting to setup a test nagios server (moving from Solaris to >>> Linux) on gentoo and I have hit a wall. >>> >>> Symptoms: >>> Unable to view any data under server detail, host detail, status >>> overview.... On the website Ther error I receive is the general error > >>> saying "make sure nagios is running..." >>> >>> Data: >>> 1. Nagios runs perfectly fine as a Daemon. When I run ps ax|grep >>> nagios: >>> 18884 ? Ss /usr/nagios/bin/nagios -d /etc/nagios/nagios.cfg >>> 2. ScriptAlias in apache is properly configured >>> 3. nagios.log reports no problem >>> 4. apache's log shows no issues >>> 5. /usr/nagios/bin/nagios -v /etc/nagios/nagios.cfg reports no errors >>> >>> Any help would be greatly appreciated. Thanks. >>> > > -- ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Chuck at BlackForest-Co.com Fri Feb 4 01:10:35 2005 From: Chuck at BlackForest-Co.com (Chuck at BlackForest-Co.com) Date: Thu, 3 Feb 2005 17:10:35 -0700 (MST) Subject: problems with distributed monitoring In-Reply-To: <20050203160000.GA28773@office.oilspace.com> References: <20050203160000.GA28773@office.oilspace.com> Message-ID: <53741.166.34.160.148.1107475835.squirrel@www.blackforest-co.com> > Hi! > > We are trying to implement distributed monitoring scheme with snmp and > passive checks, in general. > > For transfering passive checks results from a client to "monitoring" > nagios we use nsca without crypting (BTW, nsca-2.4 can't be compiled > without libmcrypt. We had be write a patch) Data are transfered every > min. > I just went thru the same task (setting DM up) The thing that got me was if you load Nagios and run it, then stop and conver to DM you have all sorts of headaches. Reason: history/retension - stop nagios - go to ../var and do "> nagios.log" - zero it out. And every other .log, and archive. Then restart Nagios. See if things don't run a little better. Rots'a ruck ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lshobbrook at fasttrack.net.au Fri Feb 4 01:52:49 2005 From: lshobbrook at fasttrack.net.au (Lewis Shobbrook) Date: Fri, 4 Feb 2005 11:52:49 +1100 Subject: Error: Could not insert/update status record for program in table Message-ID: <0C8098CA7F09CE419F0C2B68EB83587648B665@exchange.fasttrack.net.au> Hi Folkert, > Sent: Thursday, 3 February 2005 21:59 > To: Lewis Shobbrook > Subject: Error: Could not insert/update status record for > program in table > > Hi, > > Have you found a solution for the: > Error: Could not insert/update status record for program in > table 'programstatus' of database 'nagios' error? > The solution was to update mysql-server to the latest release (for debian unstable at least). I believe it had something to do with an issue concerning the unixtime sql attribute that had changed with a recent mysql-server update (not nagios-mysql at all); an issue that has now apparently been rectified. I also had to update apache-ssl as I found after fixing the previous problem I also had an auth issue and was not prompted to logon to nagios and therefor unable to view status. The order in which apache loads the modules is important, I've noted on a couple of updates of late that auth gets broken and returning to the module.conf load order of ... LoadModule apache_ssl_module /usr/lib/apache/1.3/libssl.so LoadModule auth_module /usr/lib/apache/1.3/mod_auth_ssl.so ... fixes the issue. libssl.so needs to be loaded prior to mod_auth_ssl.so or mod_auth_ssl.so fails. I'm not sure why this has happened with the debian updates lately? All well now! Hope this helps. Cheers, Lewis Shobbrook ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From wrl at express.org Fri Feb 4 02:01:25 2005 From: wrl at express.org (William R. Lorenz) Date: Thu, 3 Feb 2005 20:01:25 -0500 (EST) Subject: Nagios-MySQL Locking Issues? In-Reply-To: <42028B6B.5050307@op5.se> References: <42028B6B.5050307@op5.se> Message-ID: Hi Andreas, On Thu, 3 Feb 2005, Andreas Ericsson wrote: >> Nagios 1.2 starting... (PID=12131) >> Error: Could not read program retention data from table programretention >> Error: Could not read host retention data from table hostretention >> Error: Could not read service retention data from table serviceretention >> Error: Could not lock status data tables in database '' > Could not lock status data tables in database '' means you haven't > specified a database. It's no wonder nagios can't update things in the Well, I followed all the instructions for configuring the database at: http://nagios.sourceforge.net/docs/1_0/xdata-db.html This is NAGIOS 1.2, and my configuration files seem to be alright (see below). I even tried recompiling, just to make sure the ./configure script got all the right options in place (and all --with-mysql's are there). Do you have any other suggestions as to what I can try? Would it help if I sent over the complete configuration files? [root at bmsmnt01 etc]# grep db_ cgi.cfg xeddb_host=localhost xeddb_port=3306 xeddb_database=nagios xeddb_username=nagios xeddb_password=j3jd9C55 xsddb_host=localhost xsddb_port=3306 xsddb_database=nagios xsddb_username=nagios xsddb_password=j3jd9C55 xcddb_host=localhost xcddb_port=3306 xcddb_database=nagios xcddb_username=nagios xcddb_password=j3jd9C55 xdddb_host=localhost xdddb_port=3306 xdddb_database=nagios xdddb_username=nagios xdddb_password=j3jd9C55 [root at bmsmnt01 etc]# grep db_ resource.cfg xsddb_host=localhost xsddb_port=3306 xsddb_database=nagios xsddb_username=nagios xsddb_password=j3jd9C55 xsddb_optimize_data=1 xsddb_optimize_interval=3600 xcddb_host=localhost xcddb_port=3306 xcddb_database=nagios xcddb_username=nagios xcddb_password=j3jd9C55 xcddb_optimize_data=1 xdddb_host=localhost xdddb_port=3306 xdddb_database=nagios xdddb_username=nagios xdddb_password=j3jd9C55 xdddb_optimize_data=1 xrddb_host=localhost xrddb_port=3306 xrddb_database=nagios xrddb_username=nagios xrddb_password=j3jd9C55 xrddb_optimize_data=1 [root at bmsmnt01 etc]# -- _ __ __ ___ _| | William R. Lorenz \ V V / '_| | http://www.express.org/~wrl/ ; "Every revolution was first \./\./|_| |_| a thought in one man's mind." - Ralph Waldo Emerson ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jnichols at pbp.net Fri Feb 4 02:49:36 2005 From: jnichols at pbp.net (Jonathan Nichols) Date: Thu, 03 Feb 2005 17:49:36 -0800 Subject: Nagios install on gentoo In-Reply-To: References: Message-ID: <4202D4B0.9090007@pbp.net> > 1. Nagios runs perfectly fine as a Daemon. When I run ps ax|grep nagios: > 18884 ? Ss /usr/nagios/bin/nagios -d /etc/nagios/nagios.cfg > 2. ScriptAlias in apache is properly configured > 3. nagios.log reports no problem > 4. apache's log shows no issues > 5. /usr/nagios/bin/nagios -v /etc/nagios/nagios.cfg reports no errors > > Any help would be greatly appreciated. Thanks. > What did you compile it with? "equery uses nagios-core" will show you what use flags you compiled with. I have the following in /etc/portage/package.use net-analyzer/nagios -mysql -postgres net-analyzer/nagios-core -mysql -postgres That way it won't compile with mysql or postgres support. If you compiled with MySQL support, chances are it's dumping a LOT OF STUFF to the mysql.log right now. I ran into that a time or two. :-) -Jonathan ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From iamyolanda at gmail.com Fri Feb 4 10:47:18 2005 From: iamyolanda at gmail.com (Yolanda Santos) Date: Fri, 4 Feb 2005 10:47:18 +0100 Subject: How to configure and run NRPE? Message-ID: Hi, I have installed Nagios in a Linux Red Hat and i'm trying to check memory and CPU using NRPE and NRPE_NT. I have installed the 'Nagios Remote Plugin Executor for NT/W2K' service in a host with XP, and in the nagios server the check_nrpe command. I follow the help to check this parameters but I don't get the value, only this message: ./check_nrpe -H (XP's IP)10.170.17.38 -c check_disk Message: NRPE_NT failed to create process, exitig.... Am i launching the command incorrectly? The nrpe.cfg file is in /sr/local/nagios/etc and the command configuration: command [check_disk]=/usr/local/nagios/libexec/check_disk -w 20 -c 10 Is something wrong in the command definition? Is there another way to get this information of remote hosts? (NSClient??, SNMP??...) Thanks ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gimenez at cict.fr Fri Feb 4 10:59:01 2005 From: gimenez at cict.fr (carole gimenez) Date: Fri, 04 Feb 2005 10:59:01 +0100 Subject: eventhandlers Message-ID: <42034765.3090403@cict.fr> Hi, I have a little problem with one of my eventhandlers scripts. It works well. The miltrassassin service restart as it is necessary but the commands run by the nagios user are always active. On nagios server, $ ps -ef | grep nagios nagios 3952 1 0 10:23:49 ? 0:00 sh -c /usr/local/nagios/libexec/eventhandlers/restart-miltrassassin CRITICAL SO nagios 25595 1 1 Jan 10 ? 187:15 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg nagios 24065 24053 0 Jan 26 pts/1 0:00 -ksh nagios 3958 3953 0 10:23:50 ? 0:01 ssh spam at x.x.x.x /usr/local/bin/miltrassassin -p /miltrassassin/miltrassa nagios 3953 3952 0 10:23:49 ? 0:00 /bin/sh /usr/local/nagios/libexec/eventhandlers/restart-miltrassassin CRITICAL nagios 24053 24035 0 Jan 26 ? 0:03 /usr/local/sbin/sshd My script is the following: #!/bin/sh # # Script de gestionnaire d'evenement pour redemarrer miltrassassin sur les passerelles de messagerie distantes # # Note: Ce script redemarrera le service miltrassassin si on essaie de le joindre # 2 fois (dans un etat "soft") ou si le service miltrassassin finit # par tomber dans un etat d'erreur "hard" # # What state is the miltrassassin 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 miltrassassin 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 miltrassassin service on the first # check, because it may just be a fluke! case "$3" in # Wait until the check has been tried 2 times before restarting the miltrassassin service. # If the check fails on the 3th time (after we restart the miltrassassin service), the state # type will turn to "hard" and contacts will be notified of the problem. # Hopefully this will restart the miltrassassin service successfully, so the 3th check will # result in a "soft" recovery. If that happens no one gets notified because we # fixed the problem! 2) echo -n "Restarting miltrassassin service (2nd soft critical state)..." # Call the script to restart the miltrassassin service result=`ssh spam@$4 ps -ef | grep miltrassassin | wc -l` if [ $result -eq 0 ] ; then ssh spam@$4 rm -f /miltrassassin/miltrassassin.sock ssh spam@$4 /usr/local/bin/miltrassassin -p /miltrassassin/miltrassassin.sock -H50 -M40 -L 30 fi ;; esac ;; # The miltrassassin 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 miltrassassin service..." # Call the script to restart the miltrassassin service result=`ssh spam@$4 ps -ef | grep miltrassassin | wc -l` if [ $result -eq 0 ] ; then ssh spam@$4 rm -f /miltrassassin/miltrassassin.sock ssh spam@$4 /usr/local/bin/miltrassassin -p /miltrassassin/miltrassassin.sock -H50 -M40 -L 30 fi ;; esac ;; esac exit 0 I am not a good programmer. Can someone help me, please? Carole. ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Sebastian.Bergstroem at kunskapsskolan.se Fri Feb 4 12:41:44 2005 From: Sebastian.Bergstroem at kunskapsskolan.se (=?iso-8859-1?Q?Bergstr=F6m_Sebastian?=) Date: Fri, 4 Feb 2005 12:41:44 +0100 Subject: Monitor actual RAM usage on Windows machines Message-ID: We monitor our Windows servers using NSClient. NSClient cannot attain the RAM usage only, but only the logical memory as a total. Does anyone know any plugin that can achieve this? Are there anyway to make NSClient do this, for example with a counter switch? Thanks in advance! Best regards, Sebastian Bergstroem ---------------------------------------------- Sebastian Bergstroem Technical coordinator Kunskapsskolan i Sverige AB sebastian.bergstroem at kunskapsskolan.se ----------------------------------------------- ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Fri Feb 4 13:22:05 2005 From: Werner.Flamme at ufz.de (Werner Flamme) Date: Fri, 04 Feb 2005 13:22:05 +0100 Subject: nrpe and multiple lines? Message-ID: <420368ED.8050107@ufz.de> Hi all, we have a nagios host working (quite ;-) fine. Up to now, local checks, ping and http-checks work as they should, the rest will be tested soon ;-) The first problem we got is related to nrpe. We want to check a foreign host running SAP. When we do this manually there is an output of 6 lines. When we invoke this check via check_nrpe from our nagios host, there is only one line (the first) coming back. # nrpe -h NRPE - Nagios Remote Plugin Executor Copyright (c) 1999-2003 Ethan Galstad (nagios at nagios.org) Version: 2.0 Last Modified: 09-08-2003 License: GPL with exemptions (-l for more info) SSL/TLS Available: Anonymous DH Mode, OpenSSL 0.9.6 or higher required #rpm -q openssl openssl-0.9.6g-114 OpenSSL is not the problem, we use "-n" on the command line on both machines - thanks to this list's archive ;-). Both machines are running SuSE Linux Exterprise Server 8 for x86. Maybe I'm too dumb, but I did not find a possibility to get more than 1 line back to our nagios host. Someone here to help me? Thanks in advance, \/\/erner -- Werner Flamme, Abt. WKDV UFZ Umweltforschungszentrum Leipzig-Halle GmbH, Permoserstr. 15, 04318 Leipzig - http://www.ufz.de eMail: werner.flamme at ufz.de, Tel.: (0341) 235-2500 ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gastondoa at conet.es Fri Feb 4 13:30:20 2005 From: gastondoa at conet.es (Gotzon Astondoa) Date: Fri, 4 Feb 2005 13:30:20 +0100 Subject: nrpe and multiple lines? References: <420368ED.8050107@ufz.de> Message-ID: <002501c50ab5$4dd30300$10fea8c0@conet.es> Hi: I can see in the code that in function my_system, in file nrpe.c there is this line: fgets(buffer,sizeof(buffer)-1,fp); This gets only the first line of the response. Y suppose that, if you change it by: int i=0; while(!feof(fp)) { buffer[i]=fgetc(fp); i++; if (i >= (sizeof(buffer)-1)) { buffer[i]='\n'; break; } } buffer[i]='\n'; Or something similar it will work. bye... ----- Original Message ----- From: "Werner Flamme" To: Sent: Friday, February 04, 2005 1:22 PM Subject: [Nagios-users] nrpe and multiple lines? > Hi all, > > we have a nagios host working (quite ;-) fine. Up to now, local checks, > ping and http-checks work as they should, the rest will be tested soon ;-) > > The first problem we got is related to nrpe. > > We want to check a foreign host running SAP. When we do this manually there > is an output of 6 lines. When we invoke this check via check_nrpe from our > nagios host, there is only one line (the first) coming back. > > # nrpe -h > > NRPE - Nagios Remote Plugin Executor > Copyright (c) 1999-2003 Ethan Galstad (nagios at nagios.org) > Version: 2.0 > Last Modified: 09-08-2003 > License: GPL with exemptions (-l for more info) > SSL/TLS Available: Anonymous DH Mode, OpenSSL 0.9.6 or higher required > > #rpm -q openssl > openssl-0.9.6g-114 > > OpenSSL is not the problem, we use "-n" on the command line on both > machines - thanks to this list's archive ;-). Both machines are running > SuSE Linux Exterprise Server 8 for x86. > > Maybe I'm too dumb, but I did not find a possibility to get more than 1 > line back to our nagios host. Someone here to help me? > > Thanks in advance, > \/\/erner > > -- > Werner Flamme, Abt. WKDV > UFZ Umweltforschungszentrum Leipzig-Halle GmbH, > Permoserstr. 15, 04318 Leipzig - http://www.ufz.de > eMail: werner.flamme at ufz.de, Tel.: (0341) 235-2500 > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please 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: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From amontibello at gmail.com Fri Feb 4 13:35:45 2005 From: amontibello at gmail.com (Anthony Montibello) Date: Fri, 4 Feb 2005 07:35:45 -0500 Subject: Monitor actual RAM usage on Windows machines In-Reply-To: References: Message-ID: Hi, I have been working on NC_Net as a replacement of NS_Client so I am becoming very familiar with this problem. So this iss an alternative to using NS_Client. As for your main problem theire are two ways of achiving this value 1) through performance counters, 2) through WMI NC_Net handles performance counters as should NS_client. NC_Net also can display the values in WMI, NS_Client does not. NC_Net will be able to check critical and warning against specific WMI objects in the near future. For Physical Memory (RAM stuff) you need to actually go through the windows perfomance counters and read throught the descriptions of each one to find the one that fits your needs. 1) Availible Physical Ram in Taskmanager matches Category:Memory Counters: a) Availible MBytes b) Availible KBytes c) Availible Bytes other counters may be availible but I do not think they explicity match Ram usage only. Also It is important to remember that in windows virtual memory is used with a paging system not direct access to RAM. Here is a more detailed article from Mifrosofts web site about RAm Perfomance counters. KB article 555223: http://support.microsoft.com/default.aspx?scid=kb;en-us;555223 Hope you find what you want, Tony On Fri, 4 Feb 2005 12:41:44 +0100, Bergstr?m Sebastian wrote: > We monitor our Windows servers using NSClient. NSClient cannot attain the RAM usage only, but only the logical memory as a total. > Does anyone know any plugin that can achieve this? Are there anyway to make NSClient do this, for example with a counter switch? > > Thanks in advance! > > Best regards, > Sebastian Bergstroem > > ---------------------------------------------- > Sebastian Bergstroem > Technical coordinator > Kunskapsskolan i Sverige AB > sebastian.bergstroem at kunskapsskolan.se > ----------------------------------------------- > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please 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: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Fri Feb 4 14:26:25 2005 From: Werner.Flamme at ufz.de (Werner Flamme) Date: Fri, 04 Feb 2005 14:26:25 +0100 Subject: nrpe and multiple lines? In-Reply-To: <002501c50ab5$4dd30300$10fea8c0@conet.es> References: <420368ED.8050107@ufz.de> <002501c50ab5$4dd30300$10fea8c0@conet.es> Message-ID: <42037801.8000607@ufz.de> You are the greatest! It works fine! Best regards, \/\/erner Gotzon Astondoa schrieb am 04.02.2005 13:30: > Hi: > > I can see in the code that in function my_system, in file nrpe.c there > is this line: > fgets(buffer,sizeof(buffer)-1,fp); > This gets only the first line of the response. > > Y suppose that, if you change it by: > int i=0; > while(!feof(fp)) > { > buffer[i]=fgetc(fp); > i++; > if (i >= (sizeof(buffer)-1)) > { > buffer[i]='\n'; > break; > } > } > buffer[i]='\n'; > > Or something similar it will work. > > > bye... > ----- Original Message ----- > From: "Werner Flamme" > To: > Sent: Friday, February 04, 2005 1:22 PM > Subject: [Nagios-users] nrpe and multiple lines? > > > >>Hi all, >> >>we have a nagios host working (quite ;-) fine. Up to now, local checks, >>ping and http-checks work as they should, the rest will be tested soon ;-) >> >>The first problem we got is related to nrpe. >> >>We want to check a foreign host running SAP. When we do this manually > > there > >>is an output of 6 lines. When we invoke this check via check_nrpe from our >>nagios host, there is only one line (the first) coming back. >> >># nrpe -h >> >>NRPE - Nagios Remote Plugin Executor >>Copyright (c) 1999-2003 Ethan Galstad (nagios at nagios.org) >>Version: 2.0 >>Last Modified: 09-08-2003 >>License: GPL with exemptions (-l for more info) >>SSL/TLS Available: Anonymous DH Mode, OpenSSL 0.9.6 or higher required >> >>#rpm -q openssl >>openssl-0.9.6g-114 >> >>OpenSSL is not the problem, we use "-n" on the command line on both >>machines - thanks to this list's archive ;-). Both machines are running >>SuSE Linux Exterprise Server 8 for x86. >> >>Maybe I'm too dumb, but I did not find a possibility to get more than 1 >>line back to our nagios host. Someone here to help me? >> >>Thanks in advance, >>\/\/erner >> >>-- >>Werner Flamme, Abt. WKDV >>UFZ Umweltforschungszentrum Leipzig-Halle GmbH, >>Permoserstr. 15, 04318 Leipzig - http://www.ufz.de >>eMail: werner.flamme at ufz.de, Tel.: (0341) 235-2500 >> >> >> >> >> >> >>------------------------------------------------------- >>This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting >>Tool for open source databases. Create drag-&-drop reports. Save time >>by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. >>Download a FREE copy at http://www.intelliview.com/go/osdn_nl >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >>::: Please 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: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Werner Flamme, Abt. WKDV UFZ Umweltforschungszentrum Leipzig-Halle GmbH, Permoserstr. 15, 04318 Leipzig - http://www.ufz.de eMail: werner.flamme at ufz.de, Tel.: (0341) 235-2500 ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Lorenz.Lammersdorf at Dresdner-Bank.com Fri Feb 4 14:33:55 2005 From: Lorenz.Lammersdorf at Dresdner-Bank.com (Lammersdorf, Lorenz) Date: Fri, 4 Feb 2005 14:33:55 +0100 Subject: unable to read output fom check_disk Message-ID: <9A1DC9640BE2DE42AF18FFCB82087FC7F0AA42@naimucy4.muc.allianz> hi all, the following enviroment is used: nagiosserver and remote host are debian 3 machines. on the remote host check_disk gives these answers: :/usr/local/nagios/libexec# ./check_disk -V check_disk (nagios-plugins 1.4.0alpha1) 1.38 /usr/local/nagios/libexec# ./check_disk -w 20% -c 10% -p /dev/md0 DISK OK - free space: /raid 281102 MB (60%);| /raid=281101MB;375567;422513;0;469459 in the webinterface all i get is "unable to read output". services.cfg looks like this: define service{ use generic-service ; Name of service template to use host_name xxx service_description RAID is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups admins notification_interval 120 notification_period 24x7 notification_options c,r check_command check_local_disk!20%!10%!/dev/md0 } checkcommands.cfg: # 'check_local_disk' command definition define command{ command_name check_local_disk command_line $USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$ } any ideas? regards Lorenz Lammersdorf ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Fri Feb 4 14:37:12 2005 From: Werner.Flamme at ufz.de (Werner Flamme) Date: Fri, 04 Feb 2005 14:37:12 +0100 Subject: nrpe and multiple lines? In-Reply-To: <42037801.8000607@ufz.de> References: <420368ED.8050107@ufz.de> <002501c50ab5$4dd30300$10fea8c0@conet.es> <42037801.8000607@ufz.de> Message-ID: <42037A88.2070707@ufz.de> LOL ... now, how do I convince NAGIOS itself to take an input of more than one line? Invoking check_nrpe now gives all the 6 lines, but nagios shows only one line when looking at "Service State Information". So I think only this line turns on the green colour. But the info of the other lines is needed too! Do I really have to split this service into six services? :-( Regards, \/\/erner Werner Flamme schrieb am 04.02.2005 14:26: > You are the greatest! It works fine! > > Best regards, > \/\/erner > > > Gotzon Astondoa schrieb am 04.02.2005 13:30: > >>Hi: >> >> I can see in the code that in function my_system, in file nrpe.c there >>is this line: >> fgets(buffer,sizeof(buffer)-1,fp); >> This gets only the first line of the response. >> >> Y suppose that, if you change it by: >> int i=0; >> while(!feof(fp)) >> { >> buffer[i]=fgetc(fp); >> i++; >> if (i >= (sizeof(buffer)-1)) >> { >> buffer[i]='\n'; >> break; >> } >> } >> buffer[i]='\n'; >> >> Or something similar it will work. >> >> >>bye... >>----- Original Message ----- >>From: "Werner Flamme" >>To: >>Sent: Friday, February 04, 2005 1:22 PM >>Subject: [Nagios-users] nrpe and multiple lines? >> >> >> >> >>>Hi all, >>> >>>we have a nagios host working (quite ;-) fine. Up to now, local checks, >>>ping and http-checks work as they should, the rest will be tested soon ;-) >>> >>>The first problem we got is related to nrpe. >>> >>>We want to check a foreign host running SAP. When we do this manually >> >>there >> >> >>>is an output of 6 lines. When we invoke this check via check_nrpe from our >>>nagios host, there is only one line (the first) coming back. >>> >>># nrpe -h >>> >>>NRPE - Nagios Remote Plugin Executor >>>Copyright (c) 1999-2003 Ethan Galstad (nagios at nagios.org) >>>Version: 2.0 >>>Last Modified: 09-08-2003 >>>License: GPL with exemptions (-l for more info) >>>SSL/TLS Available: Anonymous DH Mode, OpenSSL 0.9.6 or higher required >>> >>>#rpm -q openssl >>>openssl-0.9.6g-114 >>> >>>OpenSSL is not the problem, we use "-n" on the command line on both >>>machines - thanks to this list's archive ;-). Both machines are running >>>SuSE Linux Exterprise Server 8 for x86. >>> >>>Maybe I'm too dumb, but I did not find a possibility to get more than 1 >>>line back to our nagios host. Someone here to help me? >>> >>>Thanks in advance, >>>\/\/erner >>> >> >> >> >> >>------------------------------------------------------- >>This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting >>Tool for open source databases. Create drag-&-drop reports. Save time >>by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. >>Download a FREE copy at http://www.intelliview.com/go/osdn_nl >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >>::: Messages without supporting info will risk being sent to /dev/null >> -- Werner Flamme, Abt. WKDV UFZ Umweltforschungszentrum Leipzig-Halle GmbH, Permoserstr. 15, 04318 Leipzig - http://www.ufz.de eMail: werner.flamme at ufz.de, Tel.: (0341) 235-2500 ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From prandal at herefordshire.gov.uk Fri Feb 4 15:11:08 2005 From: prandal at herefordshire.gov.uk (Randal, Phil) Date: Fri, 4 Feb 2005 14:11:08 -0000 Subject: Monitor actual RAM usage on Windows machines Message-ID: <86144ED6CE5B004DA23E1EAC0B569B5803E5E108@isabella.herefordshire.gov.uk> You might want to look at nrpe_nt (http://www.miwi-dv.com/nrpent/). I use it to run a KiXtart script (http://www.kixtart.org) to return the physical memory (and other stuff). You can of course do the same thing with VBScript too. You'll need to read the docs on nrpe. In nrpe.cfg I do command[check_cpu]=\kix32.exe c:\nrpe_nt\cpu.kix ---- cpu.kix (cut down just to report physical memory) ---- $=SetOption("ASCII","ON") $=SetOption("WrapAtEOL","ON") $phys=MemorySize(0) $phys"+"MB RAM at CRLF ------------------------- Cheers, Phil ---- Phil Randal Network Engineer Herefordshire Council Hereford, UK > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf > Of Bergstr?m Sebastian > Sent: 04 February 2005 11:42 > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Monitor actual RAM usage on Windows machines > > We monitor our Windows servers using NSClient. NSClient > cannot attain the RAM usage only, but only the logical memory > as a total. > Does anyone know any plugin that can achieve this? Are there > anyway to make NSClient do this, for example with a counter switch? > > Thanks in advance! > > > Best regards, > Sebastian Bergstroem > > ---------------------------------------------- > Sebastian Bergstroem > Technical coordinator > Kunskapsskolan i Sverige AB > sebastian.bergstroem at kunskapsskolan.se > ----------------------------------------------- > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive > Reporting Tool for open source databases. Create drag-&-drop > reports. Save time by over 75%! Publish reports on the web. > Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please 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: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From prandal at herefordshire.gov.uk Fri Feb 4 15:13:57 2005 From: prandal at herefordshire.gov.uk (Randal, Phil) Date: Fri, 4 Feb 2005 14:13:57 -0000 Subject: nrpe and multiple lines? Message-ID: <86144ED6CE5B004DA23E1EAC0B569B5803E5E109@isabella.herefordshire.gov.uk> Easiest way is to replace the "end of lines" with
before returning the result. One real line but still looks good on the Nagios page :-) Phil ---- Phil Randal Network Engineer Herefordshire Council Hereford, UK > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf > Of Werner Flamme > Sent: 04 February 2005 12:22 > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] nrpe and multiple lines? > > Hi all, > > we have a nagios host working (quite ;-) fine. Up to now, > local checks, ping and http-checks work as they should, the > rest will be tested soon ;-) > > The first problem we got is related to nrpe. > > We want to check a foreign host running SAP. When we do this > manually there is an output of 6 lines. When we invoke this > check via check_nrpe from our nagios host, there is only one > line (the first) coming back. > > # nrpe -h > > NRPE - Nagios Remote Plugin Executor > Copyright (c) 1999-2003 Ethan Galstad (nagios at nagios.org) > Version: 2.0 > Last Modified: 09-08-2003 > License: GPL with exemptions (-l for more info) SSL/TLS > Available: Anonymous DH Mode, OpenSSL 0.9.6 or higher required > > #rpm -q openssl > openssl-0.9.6g-114 > > OpenSSL is not the problem, we use "-n" on the command line > on both machines - thanks to this list's archive ;-). Both > machines are running SuSE Linux Exterprise Server 8 for x86. > > Maybe I'm too dumb, but I did not find a possibility to get > more than 1 line back to our nagios host. Someone here to help me? > > Thanks in advance, > \/\/erner > > -- > Werner Flamme, Abt. WKDV > UFZ Umweltforschungszentrum Leipzig-Halle GmbH, Permoserstr. > 15, 04318 Leipzig - http://www.ufz.de > eMail: werner.flamme at ufz.de, Tel.: (0341) 235-2500 > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive > Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please 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: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From prandal at herefordshire.gov.uk Fri Feb 4 15:16:39 2005 From: prandal at herefordshire.gov.uk (Randal, Phil) Date: Fri, 4 Feb 2005 14:16:39 -0000 Subject: Monitor actual RAM usage on Windows machines Message-ID: <86144ED6CE5B004DA23E1EAC0B569B5803E5E10B@isabella.herefordshire.gov.uk> Oops, try: $=SetOption("ASCII","ON") $=SetOption("WrapAtEOL","ON") $phys=MemorySize(0) $phys+"MB RAM"+ at CRLF ---- Phil Randal Network Engineer Herefordshire Council Hereford, UK > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf > Of Randal, Phil > Sent: 04 February 2005 14:11 > To: Bergstr?m Sebastian; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Monitor actual RAM usage on > Windows machines > > You might want to look at nrpe_nt (http://www.miwi-dv.com/nrpent/). > > I use it to run a KiXtart script (http://www.kixtart.org) to > return the physical memory (and other stuff). > > You can of course do the same thing with VBScript too. > > You'll need to read the docs on nrpe. > > In nrpe.cfg I do > > command[check_cpu]=\kix32.exe c:\nrpe_nt\cpu.kix > > ---- cpu.kix (cut down just to report physical memory) ---- > $=SetOption("ASCII","ON") > $=SetOption("WrapAtEOL","ON") > > $phys=MemorySize(0) > $phys"+"MB RAM at CRLF > ------------------------- > > Cheers, > > Phil > ---- > Phil Randal > Network Engineer > Herefordshire Council > Hereford, UK > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net > > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of > > Bergstr?m Sebastian > > Sent: 04 February 2005 11:42 > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Monitor actual RAM usage on Windows machines > > > > We monitor our Windows servers using NSClient. NSClient > cannot attain > > the RAM usage only, but only the logical memory as a total. > > Does anyone know any plugin that can achieve this? Are > there anyway to > > make NSClient do this, for example with a counter switch? > > > > Thanks in advance! > > > > > > Best regards, > > Sebastian Bergstroem > > > > ---------------------------------------------- > > Sebastian Bergstroem > > Technical coordinator > > Kunskapsskolan i Sverige AB > > sebastian.bergstroem at kunskapsskolan.se > > ----------------------------------------------- > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: IntelliVIEW -- Interactive > > Reporting Tool for open source databases. Create > drag-&-drop reports. > > Save time by over 75%! Publish reports on the web. > > Export to DOC, XLS, RTF, etc. > > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please 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: IntelliVIEW -- Interactive > Reporting Tool for open source databases. Create drag-&-drop > reports. Save time by over 75%! Publish reports on the web. > Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please 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: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gastondoa at conet.es Fri Feb 4 15:21:13 2005 From: gastondoa at conet.es (Gotzon Astondoa) Date: Fri, 4 Feb 2005 15:21:13 +0100 Subject: nrpe and multiple lines? References: <420368ED.8050107@ufz.de> <002501c50ab5$4dd30300$10fea8c0@conet.es> <42037801.8000607@ufz.de> <42037A88.2070707@ufz.de> Message-ID: <003801c50ac4$cb06dea0$10fea8c0@conet.es> Well, eh.... I think that is not easy work, because Nagios is disigned to work in this way. But maybe i?m wrong, i don?t investigate so much, but in "Nagios plug-in development guidelines" it says "if you print multiple lines you?re out of luck". I supose that this is not a gratuitous information. bye... ----- Original Message ----- From: "Werner Flamme" To: Sent: Friday, February 04, 2005 2:37 PM Subject: Re: [Nagios-users] nrpe and multiple lines? > LOL ... > > now, how do I convince NAGIOS itself to take an input of more than one line? > > Invoking check_nrpe now gives all the 6 lines, but nagios shows only one > line when looking at "Service State Information". So I think only this line > turns on the green colour. But the info of the other lines is needed too! > > Do I really have to split this service into six services? :-( > > Regards, > \/\/erner > > Werner Flamme schrieb am 04.02.2005 14:26: > > You are the greatest! It works fine! > > > > Best regards, > > \/\/erner > > > > > > Gotzon Astondoa schrieb am 04.02.2005 13:30: > > > >>Hi: > >> > >> I can see in the code that in function my_system, in file nrpe.c there > >>is this line: > >> fgets(buffer,sizeof(buffer)-1,fp); > >> This gets only the first line of the response. > >> > >> Y suppose that, if you change it by: > >> int i=0; > >> while(!feof(fp)) > >> { > >> buffer[i]=fgetc(fp); > >> i++; > >> if (i >= (sizeof(buffer)-1)) > >> { > >> buffer[i]='\n'; > >> break; > >> } > >> } > >> buffer[i]='\n'; > >> > >> Or something similar it will work. > >> > >> > >>bye... > >>----- Original Message ----- > >>From: "Werner Flamme" > >>To: > >>Sent: Friday, February 04, 2005 1:22 PM > >>Subject: [Nagios-users] nrpe and multiple lines? > >> > >> > >> > >> > >>>Hi all, > >>> > >>>we have a nagios host working (quite ;-) fine. Up to now, local checks, > >>>ping and http-checks work as they should, the rest will be tested soon ;-) > >>> > >>>The first problem we got is related to nrpe. > >>> > >>>We want to check a foreign host running SAP. When we do this manually > >> > >>there > >> > >> > >>>is an output of 6 lines. When we invoke this check via check_nrpe from our > >>>nagios host, there is only one line (the first) coming back. > >>> > >>># nrpe -h > >>> > >>>NRPE - Nagios Remote Plugin Executor > >>>Copyright (c) 1999-2003 Ethan Galstad (nagios at nagios.org) > >>>Version: 2.0 > >>>Last Modified: 09-08-2003 > >>>License: GPL with exemptions (-l for more info) > >>>SSL/TLS Available: Anonymous DH Mode, OpenSSL 0.9.6 or higher required > >>> > >>>#rpm -q openssl > >>>openssl-0.9.6g-114 > >>> > >>>OpenSSL is not the problem, we use "-n" on the command line on both > >>>machines - thanks to this list's archive ;-). Both machines are running > >>>SuSE Linux Exterprise Server 8 for x86. > >>> > >>>Maybe I'm too dumb, but I did not find a possibility to get more than 1 > >>>line back to our nagios host. Someone here to help me? > >>> > >>>Thanks in advance, > >>>\/\/erner > >>> > >> > >> > >> > >> > >>------------------------------------------------------- > >>This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > >>Tool for open source databases. Create drag-&-drop reports. Save time > >>by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > >>Download a FREE copy at http://www.intelliview.com/go/osdn_nl > >>_______________________________________________ > >>Nagios-users mailing list > >>Nagios-users at lists.sourceforge.net > >>https://lists.sourceforge.net/lists/listinfo/nagios-users > >>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > >>::: Messages without supporting info will risk being sent to /dev/null > >> > > > -- > Werner Flamme, Abt. WKDV > UFZ Umweltforschungszentrum Leipzig-Halle GmbH, > Permoserstr. 15, 04318 Leipzig - http://www.ufz.de > eMail: werner.flamme at ufz.de, Tel.: (0341) 235-2500 > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please 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: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gastondoa at conet.es Fri Feb 4 15:22:46 2005 From: gastondoa at conet.es (Gotzon Astondoa) Date: Fri, 4 Feb 2005 15:22:46 +0100 Subject: nrpe and multiple lines? References: <86144ED6CE5B004DA23E1EAC0B569B5803E5E109@isabella.herefordshire.gov.uk> Message-ID: <003b01c50ac5$02762760$10fea8c0@conet.es> Yes, but, if i don?t remember bad, there is a limit in the number o characters of the line (80?) ----- Original Message ----- From: "Randal, Phil" To: "Werner Flamme" ; Sent: Friday, February 04, 2005 3:13 PM Subject: RE: [Nagios-users] nrpe and multiple lines? > Easiest way is to replace the "end of lines" with
before returning > the result. One real line but still looks good on the Nagios page :-) > > Phil > > ---- > Phil Randal > Network Engineer > Herefordshire Council > Hereford, UK > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net > > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf > > Of Werner Flamme > > Sent: 04 February 2005 12:22 > > To: Nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] nrpe and multiple lines? > > > > Hi all, > > > > we have a nagios host working (quite ;-) fine. Up to now, > > local checks, ping and http-checks work as they should, the > > rest will be tested soon ;-) > > > > The first problem we got is related to nrpe. > > > > We want to check a foreign host running SAP. When we do this > > manually there is an output of 6 lines. When we invoke this > > check via check_nrpe from our nagios host, there is only one > > line (the first) coming back. > > > > # nrpe -h > > > > NRPE - Nagios Remote Plugin Executor > > Copyright (c) 1999-2003 Ethan Galstad (nagios at nagios.org) > > Version: 2.0 > > Last Modified: 09-08-2003 > > License: GPL with exemptions (-l for more info) SSL/TLS > > Available: Anonymous DH Mode, OpenSSL 0.9.6 or higher required > > > > #rpm -q openssl > > openssl-0.9.6g-114 > > > > OpenSSL is not the problem, we use "-n" on the command line > > on both machines - thanks to this list's archive ;-). Both > > machines are running SuSE Linux Exterprise Server 8 for x86. > > > > Maybe I'm too dumb, but I did not find a possibility to get > > more than 1 line back to our nagios host. Someone here to help me? > > > > Thanks in advance, > > \/\/erner > > > > -- > > Werner Flamme, Abt. WKDV > > UFZ Umweltforschungszentrum Leipzig-Halle GmbH, Permoserstr. > > 15, 04318 Leipzig - http://www.ufz.de > > eMail: werner.flamme at ufz.de, Tel.: (0341) 235-2500 > > > > > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: IntelliVIEW -- Interactive > > Reporting > > Tool for open source databases. Create drag-&-drop reports. Save time > > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please 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: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please 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: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jpiszcz at servervault.com Fri Feb 4 16:14:32 2005 From: jpiszcz at servervault.com (Justin Piszcz) Date: Fri, 4 Feb 2005 10:14:32 -0500 Subject: SNMP_CPU Polling Problem On Windows 2000 Server Message-ID: <62FD0D635351E84B993539F15F5FE1CD56DE7D@mail1.dulles.sv.int> I have several identical machines all running the same versions of the SNMP services on Windows 2000 Advanced Server machines. On a few machines; however, the STATUS and any information regarding the CPU shows up as "UNKNOWN." I have snmpwalked a machine that shows the CPU information properly and one that does not, there are no major differences. The SNMP agents on the Windows 2000 Server machines have been uninstalled, re-installed and re-configured several times. Has anyone experienced anything like this; in that you cannot pull any CPU information off of a Windows 2000 Server machine? Example of error from NAGIOS itself: HOST: SERVICE: STATUS: LAST CHECK: DURATION: host001: SNMP_CPU: 2005-02-04 15:08:04: DURATION 6d 18h 2m 37s: ATTEMPT: STATUS INFORMATION: 3/3: CPU usage not reported by agent [Microsoft:informant] Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From csmann at gmail.com Fri Feb 4 16:20:21 2005 From: csmann at gmail.com (Chris Mann) Date: Fri, 4 Feb 2005 10:20:21 -0500 Subject: using check_http with a proxy? Message-ID: <25de63b50502040720587874e3@mail.gmail.com> Hi all, I'm trying to get check_http to work through our proxy. After RTFMing and googling, I'm coming up kind of short on answers. Is this possible? If so, could some one whack me with a clue by four to get me on the right path? -- Chris Mann "I was killing all my money, Spending brain cells just as fast" ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mpowell at ena.com Fri Feb 4 17:04:07 2005 From: mpowell at ena.com (Marc Powell) Date: Fri, 4 Feb 2005 10:04:07 -0600 Subject: using check_http with a proxy? Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Chris Mann > Sent: Friday, February 04, 2005 9:20 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] using check_http with a proxy? > > Hi all, > > I'm trying to get check_http to work through our proxy. After RTFMing > and googling, I'm coming up kind of short on answers. Is this > possible? If so, could some one whack me with a clue by four to get me > on the right path? # 'check_via_proxy' command definition define command{ command_name check_via_proxy command_line $USER1$/ check_http -H www.sitetoretrieve.org -I ip.of.proxy --onredirect follow -p 8080 -wt 20 -ct 30 -to 35 -u http://www.sitetoretrieve.org -R \/HTML check_http --help details all the arguments but a quick synopsis -- -H www.sitetoretrieve.org is the HOST to retrieve through the proxy -I ip.of.proxy is the DNS name or IP of the proxy to retrieve the page through -p 8080 is the forward proxy port -u http://www.sitetoretrieve.org is the URL to retrieve in forward proxy format -R \/HTML searches for '/HTML' in the page to verify retrieval You'll probably want to make at least -H and -u variable arguments passed by the service definition. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From squadra.breno at telemigcelular.com.br Fri Feb 4 18:16:30 2005 From: squadra.breno at telemigcelular.com.br (Breno Andrade Cotta) Date: Fri, 4 Feb 2005 14:16:30 -0300 Subject: RES: using check_http with a proxy? Message-ID: <8E3A4AB6889F924DB69AA6B5CC3BD0382D5D97BD@ajuda.celular.com.br> To check connection bypass proxy I use the command below. I think that with this line I can help. # 'check_proxy' command definition define command{ command_name check_proxy command_line $USER1$/check_http -H www.nagios.org -I $HOSTADDRESS$ --onredirect follow -p 8080 -wt 20 -ct 30 -to 35 -u http://www.nagios.org -s HTML } Regards, -- Breno Andrade Cotta - adm. redes engenharia Rede de presta??o de servi?os e transmiss?o GPRS TC/AC Telemig Celular SA - Fone: +55 (31) 9977-2841 ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeffb.list at gmail.com Fri Feb 4 17:55:23 2005 From: jeffb.list at gmail.com (Jeff B) Date: Fri, 4 Feb 2005 11:55:23 -0500 Subject: Grouping Dependencies Message-ID: If you are using hostgroup_name to set up services, is there a way to do the same for service dependencies if the service and dependent service are on the same host? I wouldn't think so, but thought I'd ask because it would save a lot of typing. ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From screwgie at gmail.com Fri Feb 4 18:22:28 2005 From: screwgie at gmail.com (Paul Dulaba) Date: Fri, 4 Feb 2005 10:22:28 -0700 Subject: Monitoring HP ProLiant Linux servers -- Nagios vs. OVO vs. SIM In-Reply-To: <6943DE9E9934CD42BBE4A20E0E28E10E011C9672@SYGOMAIL.GOE.AD.SYCOR.DE> References: <6943DE9E9934CD42BBE4A20E0E28E10E011C9672@SYGOMAIL.GOE.AD.SYCOR.DE> Message-ID: Are you talking about the check_compaq_insight.pl script? Also, can you provide som examples of how you are using this script? What I am having difficulties understanding is how to setup the server that is being monitored. I don't see anyplace in iLO to configure the insight board to have a community string. Hope you can offer some details. On Thu, 3 Feb 2005 16:30:57 +0100, Sand Philipp wrote: > Hi, > > I didn't wrote the plugin, so I can't distribute it...although, it is already distributed and can be found in the nagios plugins contrib folder . > > Greets, > Philipp > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net > > [mailto:nagios-users-admin at lists.sourceforge.net ] On Behalf > > Of Benoit Mortier > > Sent: Tuesday, February 01, 2005 11:19 PM > > To: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] Monitoring HP ProLiant Linux > > servers -- Nagios vs. OVO vs. SIM > > > > Le Mardi 1 F?vrier 2005 16:52, Sand Philipp a ?crit : > > > Hi, > > > > > > We're using Nagios + Insight Manager. Works fine for us. > > > > > > We use Nagios as our main monitoring Platform, and have > > integrated the > > > HP Insight Manager into the Nagios. The Plugin we're using > > is based on > > > snmp queries to get the status of the local insight manager client, > > > and reports them to the nagios. When it detects an error, > > the status > > > in nagios changes, we get a little Status info like "SCSI > > degraded" or > > > something, and we connect to the insight manager and have a further > > > look. All the other stuff like monitoring disk space, processes, > > > memory, some handwritten stuff is beeing checked by nagios plugins. > > > I think the HP Insight Manager is very good to monitor all the > > > Hardware Issues, but Nagios is much more flexible with other checks. > > > > Hi, > > > > could you share the plugin with us ? is it gpl ? i yes could > > you upload it to nagiosplug project at sourceforge. > > > > Thanks > > > > -- > > Benoit Mortier > > Linux Engineer > > www.opensides.be > > > ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Greg.Nolan at disney.com Fri Feb 4 21:16:13 2005 From: Greg.Nolan at disney.com (Nolan, Greg) Date: Fri, 4 Feb 2005 12:16:13 -0800 Subject: Nagios install on gentoo Message-ID: Jonathon, Thanks, although I removed mysql from the USE in /etc/make.conf, it still compiled it with mysql. I suppose it has to be explicitly told not to. Thanks for the help, I am rebuilding the packages now. -g -----Original Message----- From: jnichols at pbp.net [mailto:jnichols at pbp.net] Sent: Thursday, February 03, 2005 5:50 PM To: Nolan, Greg Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Nagios install on gentoo > 1. Nagios runs perfectly fine as a Daemon. When I run ps ax|grep nagios: > 18884 ? Ss /usr/nagios/bin/nagios -d /etc/nagios/nagios.cfg > 2. ScriptAlias in apache is properly configured > 3. nagios.log reports no problem > 4. apache's log shows no issues > 5. /usr/nagios/bin/nagios -v /etc/nagios/nagios.cfg reports no errors > > Any help would be greatly appreciated. Thanks. > What did you compile it with? "equery uses nagios-core" will show you what use flags you compiled with. I have the following in /etc/portage/package.use net-analyzer/nagios -mysql -postgres net-analyzer/nagios-core -mysql -postgres That way it won't compile with mysql or postgres support. If you compiled with MySQL support, chances are it's dumping a LOT OF STUFF to the mysql.log right now. I ran into that a time or two. :-) -Jonathan ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From csmann at gmail.com Fri Feb 4 21:58:03 2005 From: csmann at gmail.com (Chris Mann) Date: Fri, 4 Feb 2005 15:58:03 -0500 Subject: using check_http with a proxy? In-Reply-To: References: Message-ID: <25de63b50502041258651f0d28@mail.gmail.com> On Fri, 4 Feb 2005 10:04:07 -0600, Marc Powell wrote: > # 'check_via_proxy' command definition > define command{ > command_name check_via_proxy > command_line $USER1$/ check_http -H www.sitetoretrieve.org -I > ip.of.proxy --onredirect follow -p 8080 -wt 20 -ct 30 -to 35 -u > http://www.sitetoretrieve.org -R \/HTML Thanks Marc, that did the trick. Would this work for ssl sites as well? -- Chris Mann "I was killing all my money, Spending brain cells just as fast" ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From james.mohr at elaxy.com Fri Feb 4 22:03:09 2005 From: james.mohr at elaxy.com (Mohr James) Date: Fri, 4 Feb 2005 22:03:09 +0100 Subject: Moving from a commercial product to Nagios Message-ID: <369E6D11A6CCA64BB73C1D1EFDB0D2C156DD04@srv-cob-00-0014.elaxy.org> Hi All! As I mentioned several months ago, we are in the process of moving from a commercial product to Nagios. I would like to get some feedback from someone who has gone through this process, discussing primarily the administrative aspects. For example, how many people were on the project team, how much time was spent per time, how long the process lasted (i.e. in months), any pitfalls and problems, etc. Any help is greatly appreaciated. James Mohr --------------------------------------- "Be more concerned with your character than with your reputation. Your character is what you really are while your reputation is merely what others think you are." -- John Wooden --------------------------------------- Be sure to visit the Linux Tutorial: http://www.linux-tutorial.info ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mpowell at ena.com Fri Feb 4 22:16:34 2005 From: mpowell at ena.com (Marc Powell) Date: Fri, 4 Feb 2005 15:16:34 -0600 Subject: using check_http with a proxy? Message-ID: > -----Original Message----- > From: Chris Mann [mailto:csmann at gmail.com] > Sent: Friday, February 04, 2005 2:58 PM > To: Marc Powell > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] using check_http with a proxy? > > On Fri, 4 Feb 2005 10:04:07 -0600, Marc Powell wrote: > > # 'check_via_proxy' command definition > > define command{ > > command_name check_via_proxy > > command_line $USER1$/ check_http -H www.sitetoretrieve.org -I > > ip.of.proxy --onredirect follow -p 8080 -wt 20 -ct 30 -to 35 -u > > http://www.sitetoretrieve.org -R \/HTML > > Thanks Marc, that did the trick. > Would this work for ssl sites as well? I haven't had reason to do that but a quick test seems to indicate the answer is no. -- ./check_http -H my.test.host -I my.test.proxy --onredirect follow -p 8080 -wt 20 -ct 30 -to 35 https://my.test.host --ssl ERROR: Cannot retrieve server certificate. In order to use SSL via a proxy, the proxy must be instructed to set up an ssl tunnel to the remote host via the CONNECT method. Glancing at the code, check_http seems to assume that all SSL connections are direct-to-host and there doesn't appear to be code to set up the necessary tunnel, at least that I can see. That said, I'm using a version of the plugin that was recent as of 20031203. The latest plugins package may include this functionality. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Fri Feb 4 22:31:43 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Fri, 4 Feb 2005 16:31:43 -0500 (EST) Subject: SNMP_CPU Polling Problem On Windows 2000 Server In-Reply-To: <62FD0D635351E84B993539F15F5FE1CD56DE7D@mail1.dulles.sv.int> References: <62FD0D635351E84B993539F15F5FE1CD56DE7D@mail1.dulles.sv.int> Message-ID: Microsoft's SNMP agent is known to be unreliable in returning correct data. Try adding onto the snmp service with SNMP informant - http://www.wtcs.org/informant/ -sg On Fri, 4 Feb 2005, Justin Piszcz wrote: > I have several identical machines all running the same versions of the > SNMP services on Windows 2000 Advanced Server machines. > > > > On a few machines; however, the STATUS and any information regarding the > CPU shows up as "UNKNOWN." > > > > I have snmpwalked a machine that shows the CPU information properly and > one that does not, there are no major differences. > > > > The SNMP agents on the Windows 2000 Server machines have been > uninstalled, re-installed and re-configured several times. > > > > Has anyone experienced anything like this; in that you cannot pull any > CPU information off of a Windows 2000 Server machine? > > > > Example of error from NAGIOS itself: > > > > HOST: SERVICE: STATUS: LAST CHECK: DURATION: > > host001: SNMP_CPU: 2005-02-04 15:08:04: DURATION 6d 18h 2m 37s: > > > > > > ATTEMPT: STATUS INFORMATION: > > 3/3: CPU usage not reported by agent [Microsoft:informant] > > > > Thanks! > > > > > > -- ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mklaphek at cedarpath.com Fri Feb 4 23:26:49 2005 From: mklaphek at cedarpath.com (Michael S. Klapheke) Date: Fri, 4 Feb 2005 17:26:49 -0500 Subject: Plugin Problem Message-ID: <002101c50b08$a038ad40$6701c80a@Network1> Hi. I posted this problem before and tried to implement the suggested solution. Some of the plugins work fine; others, like check_ifstatus, won't compile. I get the error: [root at ns1 root]# /usr/local/nagios/libexec/check_ifstatus -h Can't locate Net/SNMP.pm in @INC (@INC contains: /usr/local/nagios/libexec /usr/lib/perl5/5.8.0/i386-linux-th read-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_pe rl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/ven dor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at /usr/local/nagios/libexec/check_ifstatus line 39. BEGIN failed--compilation aborted at /usr/local/nagios/libexec/check_ifstatus line 39. Now, I was told to install the Net::SNMP module which I did. However, it still does not work. After a lot of reading, I also tried to fix the problem by going to the default_store and installing (Makefile.PL, make, make install). This didn't help either. I have seen other people with this problem from web searches, but I have not found a solution that works. Also, if I look at /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi I see SNMP.pm there: [root at ns1 i386-linux-thread-multi]# pwd /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi [root at ns1 i386-linux-thread-multi]# ls auto Bundle Gimp Gimp.pm Image NetSNMP perllocal.pod SNMP.pm [root at ns1 i386-linux-thread-multi]# Any help at all is appreciated. I did look through all of the documentation I could find and I couldn't get this answered. Thanks. Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From sghosh at sghosh.org Sat Feb 5 00:01:12 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Fri, 4 Feb 2005 18:01:12 -0500 (EST) Subject: Plugin Problem In-Reply-To: <002101c50b08$a038ad40$6701c80a@Network1> References: <002101c50b08$a038ad40$6701c80a@Network1> Message-ID: On Fri, 4 Feb 2005, Michael S. Klapheke wrote: > Hi. I posted this problem before and tried to implement the suggested > solution. Some of the plugins work fine; others, like check_ifstatus, won't > compile. I get the error: > > > > [root at ns1 root]# /usr/local/nagios/libexec/check_ifstatus -h > > Can't locate Net/SNMP.pm in @INC (@INC contains: /usr/local/nagios/libexec > /usr/lib/perl5/5.8.0/i386-linux-th > > read-multi /usr/lib/perl5/5.8.0 > /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi > /usr/lib/perl5/site_pe > > rl/5.8.0 /usr/lib/perl5/site_perl > /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/ven > > dor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at > /usr/local/nagios/libexec/check_ifstatus line 39. > > BEGIN failed--compilation aborted at > /usr/local/nagios/libexec/check_ifstatus line 39. > > > > Now, I was told to install the Net::SNMP module which I did. However, it > still does not work. After a lot of reading, I also tried to fix the > problem by going to the default_store and installing (Makefile.PL, make, > make install). This didn't help either. I have seen other people with this > problem from web searches, but I have not found a solution that works. > > > > Also, if I look at /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi I > see SNMP.pm there: > > > > [root at ns1 i386-linux-thread-multi]# pwd > > /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi > > [root at ns1 i386-linux-thread-multi]# ls > > auto Bundle Gimp Gimp.pm Image NetSNMP perllocal.pod SNMP.pm > > [root at ns1 i386-linux-thread-multi]# > > > > Any help at all is appreciated. I did look through all of the documentation > I could find and I couldn't get this answered. > > > > Thanks. > > > > Mike > The Net::SNMP perl module from CPAN should install in /usr/lib/perl5/site_perl/5.x.x/Net/ not in "i386-linux-thread" It is an all perl module not an xs module like SNMP.pm from the Net-SNMP project (net-snmp.sf.net) can you run "perldoc Net::SNMP" - if not Net::SNMP is not installed can you run "perldoc SNMP" - if so - you chave installed Net-SNMP's perl module. try the following to verify installation: perl -MCPAN -e 'install Net::SNMP' -- -sg ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Sat Feb 5 00:38:39 2005 From: ae at op5.se (Andreas Ericsson) Date: Sat, 05 Feb 2005 00:38:39 +0100 Subject: Nagios-MySQL Locking Issues? In-Reply-To: References: <42028B6B.5050307@op5.se> Message-ID: <4204077F.8050804@op5.se> William R. Lorenz wrote: > Hi Andreas, > > On Thu, 3 Feb 2005, Andreas Ericsson wrote: > >>> Nagios 1.2 starting... (PID=12131) >>> Error: Could not read program retention data from table programretention >>> Error: Could not read host retention data from table hostretention >>> Error: Could not read service retention data from table serviceretention >>> Error: Could not lock status data tables in database '' > > >> Could not lock status data tables in database '' means you haven't >> specified a database. It's no wonder nagios can't update things in the > > > Well, I followed all the instructions for configuring the database at: > > http://nagios.sourceforge.net/docs/1_0/xdata-db.html > > This is NAGIOS 1.2, and my configuration files seem to be alright (see > below). I even tried recompiling, just to make sure the ./configure > script got all the right options in place (and all --with-mysql's are > there). Do you have any other suggestions as to what I can try? > > Would it help if I sent over the complete configuration files? > Most likely not. I'm not terribly experienced in setting up nagios with mysql, since it went away in 2.0. > [root at bmsmnt01 etc]# grep db_ cgi.cfg What does nagios.cfg say? The nagios core daemon doesn't read cgi.cfg. > xeddb_host=localhost > xeddb_port=3306 > xeddb_database=nagios > xeddb_username=nagios > xeddb_password=[not shown again, sorry folks] You might want to try not sending passwords in emails. It's not terribly hard to track after all, and nagios' log files/tables provides an excellent map to your network (os type, open ports, services, IP's, etc. etc). -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Sat Feb 5 00:40:13 2005 From: ae at op5.se (Andreas Ericsson) Date: Sat, 05 Feb 2005 00:40:13 +0100 Subject: How to configure and run NRPE? In-Reply-To: References: Message-ID: <420407DD.6040303@op5.se> Yolanda Santos wrote: > Hi, > > I have installed Nagios in a Linux Red Hat and i'm trying to check > memory and CPU using NRPE and NRPE_NT. > I have installed the 'Nagios Remote Plugin Executor for NT/W2K' > service in a host with XP, and in the nagios server the check_nrpe > command. > I follow the help to check this parameters but I don't get the value, > only this message: > > ./check_nrpe -H (XP's IP)10.170.17.38 -c check_disk > > Message: > > NRPE_NT failed to create process, exitig.... > > Am i launching the command incorrectly? > > The nrpe.cfg file is in /sr/local/nagios/etc and the command configuration: > > command [check_disk]=/usr/local/nagios/libexec/check_disk -w 20 -c 10 > > Is something wrong in the command definition? > Yes. You can't run linux plugins under Windows. > Is there another way to get this information of remote hosts? > (NSClient??, SNMP??...) > NSClient is simple and straightforward enough. I recommend you give it a try. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Sat Feb 5 00:44:22 2005 From: ae at op5.se (Andreas Ericsson) Date: Sat, 05 Feb 2005 00:44:22 +0100 Subject: nrpe and multiple lines? In-Reply-To: <003b01c50ac5$02762760$10fea8c0@conet.es> References: <86144ED6CE5B004DA23E1EAC0B569B5803E5E109@isabella.herefordshire.gov.uk> <003b01c50ac5$02762760$10fea8c0@conet.es> Message-ID: <420408D6.9040101@op5.se> Gotzon Astondoa wrote: > Yes, but, if i don?t remember bad, there is a limit in the number o > characters of the line (80?) 348 chars (linebreaks are cut anyway) as defined by MAX_PLUGINOUTPUT_LENGTH (Ethan has a way with macro names, dunnhe? ;)) in include/objects.h > ----- Original Message ----- > From: "Randal, Phil" > To: "Werner Flamme" ; > > Sent: Friday, February 04, 2005 3:13 PM > Subject: RE: [Nagios-users] nrpe and multiple lines? > > > >>Easiest way is to replace the "end of lines" with
before returning >>the result. One real line but still looks good on the Nagios page :-) >> >>Phil >> >>---- >>Phil Randal >>Network Engineer >>Herefordshire Council >>Hereford, UK >> >> >>>-----Original Message----- >>>From: nagios-users-admin at lists.sourceforge.net >>>[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf >>>Of Werner Flamme >>>Sent: 04 February 2005 12:22 >>>To: Nagios-users at lists.sourceforge.net >>>Subject: [Nagios-users] nrpe and multiple lines? >>> >>>Hi all, >>> >>>we have a nagios host working (quite ;-) fine. Up to now, >>>local checks, ping and http-checks work as they should, the >>>rest will be tested soon ;-) >>> >>>The first problem we got is related to nrpe. >>> >>>We want to check a foreign host running SAP. When we do this >>>manually there is an output of 6 lines. When we invoke this >>>check via check_nrpe from our nagios host, there is only one >>>line (the first) coming back. >>> >>># nrpe -h >>> >>>NRPE - Nagios Remote Plugin Executor >>>Copyright (c) 1999-2003 Ethan Galstad (nagios at nagios.org) >>>Version: 2.0 >>>Last Modified: 09-08-2003 >>>License: GPL with exemptions (-l for more info) SSL/TLS >>>Available: Anonymous DH Mode, OpenSSL 0.9.6 or higher required >>> >>>#rpm -q openssl >>>openssl-0.9.6g-114 >>> >>>OpenSSL is not the problem, we use "-n" on the command line >>>on both machines - thanks to this list's archive ;-). Both >>>machines are running SuSE Linux Exterprise Server 8 for x86. >>> >>>Maybe I'm too dumb, but I did not find a possibility to get >>>more than 1 line back to our nagios host. Someone here to help me? >>> >>>Thanks in advance, >>>\/\/erner >>> >>>-- >>>Werner Flamme, Abt. WKDV >>>UFZ Umweltforschungszentrum Leipzig-Halle GmbH, Permoserstr. >>>15, 04318 Leipzig - http://www.ufz.de >>>eMail: werner.flamme at ufz.de, Tel.: (0341) 235-2500 >>> >>> >>> >>> >>> >>> >>>------------------------------------------------------- >>>This SF.Net email is sponsored by: IntelliVIEW -- Interactive >>>Reporting >>>Tool for open source databases. Create drag-&-drop reports. Save time >>>by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. >>>Download a FREE copy at http://www.intelliview.com/go/osdn_nl >>>_______________________________________________ >>>Nagios-users mailing list >>>Nagios-users at lists.sourceforge.net >>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>::: Please 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: IntelliVIEW -- Interactive Reporting >>Tool for open source databases. Create drag-&-drop reports. Save time >>by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. >>Download a FREE copy at http://www.intelliview.com/go/osdn_nl >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >>::: Please 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: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Sat Feb 5 00:46:55 2005 From: ae at op5.se (Andreas Ericsson) Date: Sat, 05 Feb 2005 00:46:55 +0100 Subject: using check_http with a proxy? In-Reply-To: References: Message-ID: <4204096F.7020903@op5.se> Marc Powell wrote: > >>-----Original Message----- >>From: Chris Mann [mailto:csmann at gmail.com] >>Sent: Friday, February 04, 2005 2:58 PM >>To: Marc Powell >>Cc: nagios-users at lists.sourceforge.net >>Subject: Re: [Nagios-users] using check_http with a proxy? >> >>On Fri, 4 Feb 2005 10:04:07 -0600, Marc Powell > > wrote: > >>># 'check_via_proxy' command definition >>>define command{ >>> command_name check_via_proxy >>> command_line $USER1$/ check_http -H > > www.sitetoretrieve.org -I > >>>ip.of.proxy --onredirect follow -p 8080 -wt 20 -ct 30 -to 35 -u >>>http://www.sitetoretrieve.org -R \/HTML >> >>Thanks Marc, that did the trick. >>Would this work for ssl sites as well? > > > > I haven't had reason to do that but a quick test seems to indicate the > answer is no. -- > > ./check_http -H my.test.host -I my.test.proxy --onredirect follow -p > 8080 -wt 20 -ct 30 -to 35 https://my.test.host --ssl > > ERROR: Cannot retrieve server certificate. > > In order to use SSL via a proxy, the proxy must be instructed to set up > an ssl tunnel to the remote host via the CONNECT method. Glancing at the > code, check_http seems to assume that all SSL connections are > direct-to-host and there doesn't appear to be code to set up the > necessary tunnel, at least that I can see. > > That said, I'm using a version of the plugin that was recent as of > 20031203. The latest plugins package may include this functionality. > It doesn't. Some are asking for it though, so it might be implemented if you nag enough. In the meantime, I believe someone wrote up something really ugly to utilize wget in order to check https through proxies. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Sat Feb 5 00:54:09 2005 From: ae at op5.se (Andreas Ericsson) Date: Sat, 05 Feb 2005 00:54:09 +0100 Subject: Moving from a commercial product to Nagios In-Reply-To: <369E6D11A6CCA64BB73C1D1EFDB0D2C156DD04@srv-cob-00-0014.elaxy.org> References: <369E6D11A6CCA64BB73C1D1EFDB0D2C156DD04@srv-cob-00-0014.elaxy.org> Message-ID: <42040B21.6090808@op5.se> Mohr James wrote: > Hi All! > > As I mentioned several months ago, we are in the process of moving from > a commercial product to Nagios. I would like to get some feedback from > someone who has gone through this process, discussing primarily the > administrative aspects. For example, how many people were on the project > team, how much time was spent per time, how long the process lasted > (i.e. in months), any pitfalls and problems, etc. > For a company solution, I would seriously recommend enlisting the aid of a consultant. It should help immensely in initial setting up and you'll get a quicker return of investment and get to an acceptable level on the rather steep learning-curve quickly. That usually makes everybody happy. I believe you can find one at www.findopensourcesupport.com (or something similar, there's a link at www.nagios.org anyway) (marketing, look away if you're easily offended by such things) If you're interested in a complete solution based on Nagios and other opensource packages, you should send an email to janj at op5.se and ask for details and a demo of our implementation and all the fancy add-ons. > Any help is greatly appreaciated. > > James Mohr > --------------------------------------- > "Be more concerned with your character than with your > reputation. Your character is what you really are while > your reputation is merely what others think you are." -- > John Wooden > --------------------------------------- > Be sure to visit the Linux Tutorial: > http://www.linux-tutorial.info > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.Smith at demandtec.com Sat Feb 5 01:07:08 2005 From: Edward.Smith at demandtec.com (Edward Smith) Date: Fri, 4 Feb 2005 16:07:08 -0800 Subject: Disk failures Message-ID: <2B5C62C548D2FC48BC0334E8AE494185058C79EF@parrot.demandtec.com> Hi, Is it possible to setup nagios to detect disk failures? How about getting the load on a cpu? Would something like MRTG be better for this? Thanks. Ed smith ------------------------ Edward Smith Systems Application Engineer Demandtec, Inc esmith at demandtec.com 650-226-4609 --------------------------------------------------------------------------------------------------------------------------------------------- DEMANDTEC EMAIL NOTICE:

NOTICE: This email transmission and all attached files contain information intended for the designated individual or entity to whom it is addressed and may contain information that is proprietary, privileged and/or exempt from disclosure under applicable law. If you are not the intended recipient or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, copying, or other use of this email or its attachments is strictly prohibited. If you have received this email in error, please notify the sender immediately by replying to this message and please delete the original message without making any copies.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. Although we have taken reasonable precautions to ensure that this email and all attachments are free from viruses, we accept no liability for any loss or damage arising from the use of this email or its attachments. ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhmartin at toger.us Sat Feb 5 01:07:24 2005 From: jhmartin at toger.us (Jason Martin) Date: Fri, 4 Feb 2005 16:07:24 -0800 Subject: Moving from a commercial product to Nagios In-Reply-To: <369E6D11A6CCA64BB73C1D1EFDB0D2C156DD04@srv-cob-00-0014.elaxy.org> References: <369E6D11A6CCA64BB73C1D1EFDB0D2C156DD04@srv-cob-00-0014.elaxy.org> Message-ID: <20050205000724.GB1574@zippy.toger.us> On Fri, Feb 04, 2005 at 10:03:09PM +0100, Mohr James wrote: > administrative aspects. For example, how many people were on the project > team, how much time was spent per time, how long the process lasted > (i.e. in months), any pitfalls and problems, etc. It is very important to remember that Nagios is a service monitor, not an event management console. Nagios is designed to actively go out and check on the status of individal items, unlike a EM system that passively waits for data and reacts to whatever comes in. The implementation paradigm is very different. If the machines being monitored cross administrative domains then there will be disagreement over who controls the Nagios configuration. Nagios doesn't include any sort of config management interface (it reads config from text files at startup, no way to change just one service w/o restarting the whole process), and the config management addons are all very single-user oriented. A single instance of Nagios will experience problems monitoring thousands of hosts, depending on how many services are on each host. Distributed monitoring helps some but the CGI's will experience significant performance problems.There are some addons to assist with that. Managing the distribution of plugins can also be a challenge. I recommend CFEngine (www.cfengine.org) to help with that. -Jason Martin -- This message is PGP/MIME signed. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 211 bytes Desc: not available URL: From jhmartin at toger.us Sat Feb 5 01:11:03 2005 From: jhmartin at toger.us (Jason Martin) Date: Fri, 4 Feb 2005 16:11:03 -0800 Subject: Disk failures In-Reply-To: <2B5C62C548D2FC48BC0334E8AE494185058C79EF@parrot.demandtec.com> References: <2B5C62C548D2FC48BC0334E8AE494185058C79EF@parrot.demandtec.com> Message-ID: <20050205001103.GC1574@zippy.toger.us> On Fri, Feb 04, 2005 at 04:07:08PM -0800, Edward Smith wrote: > Is it possible to setup nagios to detect disk failures? How > about getting the load on a cpu? Would something like MRTG be > better for this? Thanks. If there is a logfile, snmp mib, or command that can be accessed to determine that a disk has failed then yes. If it is via some command then you might have to write a special plugin for it. CPU load is monitorable by check_load, however if you want graphs over time then MRTG would be a good adjunct. -Jason Martin -- I am but a vehicle for my tie. This message is PGP/MIME signed. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 211 bytes Desc: not available URL: From strombrg at dcs.nac.uci.edu Sat Feb 5 01:34:02 2005 From: strombrg at dcs.nac.uci.edu (Dan Stromberg) Date: Fri, 04 Feb 2005 16:34:02 -0800 Subject: Disk failures In-Reply-To: <20050205001103.GC1574@zippy.toger.us> References: <2B5C62C548D2FC48BC0334E8AE494185058C79EF@parrot.demandtec.com> <20050205001103.GC1574@zippy.toger.us> Message-ID: <1107563642.11145.39.camel@seki.nac.uci.edu> On Fri, 2005-02-04 at 16:11 -0800, Jason Martin wrote: > On Fri, Feb 04, 2005 at 04:07:08PM -0800, Edward Smith wrote: > > Is it possible to setup nagios to detect disk failures? How > > about getting the load on a cpu? Would something like MRTG be > > better for this? Thanks. > If there is a logfile, snmp mib, or command that can be accessed > to determine that a disk has failed then yes. If it is via some > command then you might have to write a special plugin for it. > > CPU load is monitorable by check_load, however if you want > graphs over time then MRTG would be a good adjunct. > > -Jason Martin Another option for load checking is to enable rpc.rstatd, and use the following plugin: #!/usr/bin/python import sys import os import re import string host=sys.argv[1] pipe=os.popen('/usr/bin/maxtime 10 /dcs/etc/rup '+host+' 2>&1','r') line = pipe.readline() #meter.eng up 154 days, 4:40, load average: 2.73 4.21 4.25 r = re.compile('^.*load average: ([0-9\.]*) ([0-9\.]*) ([0-9\.]*).*$') m = r.match(line) if not m: print 'service unavailable' sys.exit(2) one_min = string.atof(m.group(1)) five_min = string.atof(m.group(2)) if one_min > 16.0 or five_min > 12.0: print 'load critical:',m.group(1), m.group(2), m.group(3) sys.exit(2) if one_min > 12.0 or five_min > 8.0: print 'load warning:',m.group(1), m.group(2), m.group(3) sys.exit(1) else: print 'load:',m.group(1), m.group(2), m.group(3) sys.exit(0) maxtime is available from: http://dcs.nac.uci.edu/~strombrg/maxtime.html -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From jnichols at pbp.net Sat Feb 5 03:11:39 2005 From: jnichols at pbp.net (Jonathan Nichols) Date: Fri, 04 Feb 2005 18:11:39 -0800 Subject: Nagios install on gentoo In-Reply-To: References: Message-ID: <42042B5B.2040908@pbp.net> Nolan, Greg wrote: > Jonathon, > > Thanks, although I removed mysql from the USE in /etc/make.conf, it > still compiled it with mysql. I suppose it has to be explicitly told > not to. Thanks for the help, I am rebuilding the packages now. > No problem... package.use is a new Portage feature that will solve that, tho. I have the following in /etc/portage/package.use net-analyzer/nagios -mysql -postgres net-analyzer/nagios-core -mysql -postgres Something is probably telling Nagios to drag MySQL into the mix with it.. clutter sudo # emerge -pv --tree nagios-core These are the packages that I would merge, in reverse order: Calculating dependencies ...done! [ebuild R ] net-analyzer/nagios-core-1.2-r2 -apache2 -debug -mysql -noweb +perl -postgres 1,587 kB Total size of downloads: 1,587 kB clutter sudo # the "emerge -pv --tree" flags might shed some more light on it. I forgot exactly how to tell what dependency is bringing MySQL to the party. :) But going forward, package.use should resolve that.. ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mbday at daywebhosting.com Sat Feb 5 06:14:48 2005 From: mbday at daywebhosting.com (MIchael B. Day) Date: Fri, 4 Feb 2005 23:14:48 -0600 Subject: Getting this error In-Reply-To: References: Message-ID: <200502050510.j155ASQO128628@pimout4-ext.prodigy.net> Here is the out put. [root at XXXX plugins]# /usr/local/nagios/nagios-plugins-1.3.1/plugins/check_procs -a strace OK - 0 processes running with args strace As you can see there is none. So what could be the problem here? How can I get this to work so that there is no report of errors unless there is an error? -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Harper Mann Sent: Friday, January 28, 2005 5:41 PM To: 'MIchael B. Day'; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Getting this error This looks like it's from the check_proc plugin that is running on 64.182.35.81. Do you get the error when it's run locally? If you are out of swap, that could cause this. If you can reproduce the error by running check_procs locally, you can run strace "". Strace shows system calls and should tell which one is complaining. Post output here and we'll see what kind of suggestions we can make. Regards, - Harper Harper Mann Groundwork Open Source Solutions 510-599-2075 (cell) http://itgroundwork.com > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of MIchael B. Day > Sent: Friday, January 28, 2005 11:55 AM > To: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Getting this error > > I'm getting the follow error and can not find out why. If any one has any > idea please let me know. > This was emailed to me from the Nagios system. > > ***** Nagios ***** > > Notification Type: PROBLEM > > Service: Total Processes > Host: Linux Server #1 > Address: 64.182.35.81 > State: WARNING > > Date/Time: Thu Jan 27 13:28:20 CST 2005 > > Additional Info: > > System call sent warnings to stderr > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please 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: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From amontibello at gmail.com Sat Feb 5 06:35:19 2005 From: amontibello at gmail.com (Anthony Montibello) Date: Sat, 5 Feb 2005 00:35:19 -0500 Subject: NC_Net -passive checks (test version) In-Reply-To: <003f01c50aed$2f25cae0$3201280a@unknown> References: <003f01c50aed$2f25cae0$3201280a@unknown> Message-ID: The documentation on passive checks was written prior to implementing the passive checks. What you are requesting is for the most part what I am planning on implementing. the other port thing was a earlier thought about having a management application in windows that can modify the configuration (this is probably not going to happen). The current plan that should be implemented next week some time, is to have check_nt amended with a new option that will push the passive check command to NC_Net. The passive checks can be configured at startup. the startup.cfg file is where all the startup information about flags, ports and intervals goes. the passive.cfg file is read each iteration that passive check should run, currently prior to starting NC_net you can add a bunch of checks to the end of the passive.cfg file. Passive.cfg is parsed every iteration for what passive checks to do. So if the passive.cfg is manually changed the new changes will occur at the next passive check. I use the file "Sample Passive.cfg" and save as to modify my checks while NC_Net is running. For Changing the checks via Check_nt, I need to add 1) a few active checks that change current configuration (this is already in NC_Net but not in check_nt) 2) a active check that changes startup.cfg (not in either check_nt nor NC_Net) 3) a switch to add to a passive check that will add it to the passive.cfg ( i am thinking of using the [-s serviceDescrip] each passive check MUST have a service description so the command should fail if it is not present. Also the result from this command should be OK if the check was added and tested with an OK result. 2) Warning - if the check was added and tested with a non OK result. 3)Critical - if the check was not added - a check will not be added if it testing it returned an ERROR 4) Unknown - if the check fails for some other error. check_nt needs to catch the -s switch prior to its main service check routine because - check_nt sends very little information to NC_Net for a service check and we basically need it to send over the entire service check options. ( -d,-w,-c,-l,-v,-s) I also will need to add an active check command to delete a passive check - this will be just the service description with another switch.(any suggestions) A point worth mentioning about the changing the configuration. several flags exist in the Setup.cfg that will disable the ability to make changes to NC_Net. setting lock_active_config to true prevents changes from an active check. While lock_passive_config set to true prevents a configuration change in passive.cfg from running. Also the Mode variable at the end of the Startup.cfg is not an actual variable, it is actually a mask com mad that overwrites the explicit settings of these variables that were set earlier in the file. (this was done intentionally, the mode is the primary interface for changing all true/false variables at the same time, so I use ti to change the configuration during testing. One of the goals of having the Startup.cfg file was to enumerate all the configuration variables that a user has access to change since this list will not be available from a command sent to NC_Net. The Testrun also overwrites other variables that may have been set. testrun disables the actual sending of the passive checks via NSCA as well as increases the frequency to check each minute. I hope this post more appropiatly lays out the intentions of the updating passive checks remotly via Check_nt. Tony On Fri, 4 Feb 2005 11:10:25 -0800, Chris Hale wrote: > I've read the documentation on passive checks... and I like where you are > going, but wanted to give some feedback on the remote controllability of the > passive checks. > > By the documentation... It looks like you are planning on having any remote > configuration of the passive commands be done on a separate port from the > active checks. > > Before reading the docs... I always thought it would be nice, if check_nt > could send just another optional variable along with an active check to set > a timer, having nc_net then send back passive results to the configure NSCA > server > > IE: > > 1) NC_Net is installed and configured with information about the NSCA to > report too. (But unlike right now... it does not have a local config of > passive checks) > > 2) Nagios is setup to receive passive only results for a particular test > > 3) This service is also set with freshness checking and the command for the > check is the appropriate check_nt active check command including the extra > --passive (X seconds) variable. > > So the real time scenarios are: > > A) > > A server reboots... therefore the service starts with no passive checks > configured. The Nagios server comes to the freshness check limit and send > the active check (which gets the first test result after the reboot) and > also set the passive check that will be used from there on. > > B) > > Someone in management decides that they want the alerts for drive space on > 500 servers changed from 85% to 86%. You change the check command for this > one service check (with the 500 hosts :) ) and then force an active check on > these hosts. The nc_net receives the check_command with the new warning > level and changes the passive check that is on timer. > > ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marcus.hildenbrand at sap.com Sat Feb 5 11:14:35 2005 From: marcus.hildenbrand at sap.com (Hildenbrand, Marcus) Date: Sat, 5 Feb 2005 11:14:35 +0100 Subject: AW: monitoring thousands of servers using Nagios Message-ID: Hi Kerry, I'm monitoring 3300 servers with 15000 services with all active service checks. This is running on a single 4 x 2.4 GHz AMD Opteron Linux box with 4 GB RAM. Every 5 minutes a ping for all servers is scheduled with also getting network statistics via SNMP. Every 15 minutes other stuff like cpu and mem usage is done. For the Nagios scheduler to be able to handle this traffic you have to modify the file include/config.h.in before compiling Nagios. Set "#define USE_MEMORY_PERFORMANCE_TWEAKS". The performance of the webinterface is quite good. tac.cgi for example needs about 2-3 seconds to display. But this is only true for Nagios 2.0. Older versions had some problems with large configurations. Regards Marcus -----Urspr?ngliche Nachricht----- Von: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] Im Auftrag von Kerry Cox Gesendet: Montag, 3. Januar 2005 23:57 An: nagios-users at lists.sourceforge.net Betreff: [Nagios-users] monitoring thousands of servers using Nagios Has anyone had any experience monitoring thousands of servers in a data center-type environment using open source tools, specifically Nagios? I've been using Nagios for some time now, but am concerned about scalability issues. We're looking to manage roughly 2000-3000 machines. Is Nagios up to this task? It needs to be more than a simple ping server. We will need to be polling all sorts of data off our machines, including SNMP data; CPU temperature, network load, etc. Thanks. KJ ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Wengrzik at ewr.de Sun Feb 6 16:49:24 2005 From: Wengrzik at ewr.de (Wengrzik, Andreas) Date: Sun, 6 Feb 2005 16:49:24 +0100 Subject: AW: plugins 1.3.1 basic problem Message-ID: <90D32590BAD135448DC12C1EA3EB4482209E8B@epsewr01.ewrlan.ewr.int> andy iam wondering why MY Name is used by IAN. ?!? -----Urspr?ngliche Nachricht----- Von: Wengrzik, Andreas [mailto:ian at kingcon.com] Gesendet: Sonntag, 6. Februar 2005 16:47 An: nagios-users at lists.sourceforge.net Betreff: [Nagios-users] plugins 1.3.1 basic problem Im wondering where in the documentation it tells explicitly how to make the plugins work with the nagios distribution. I downloaded (a non beta thanks for the hint) distribution, 1.2, installed it. Then downloaded the 1.3.1 distribution of the nagios plugins. Currently my nagios etc folder has a checkcommands.cfg, from various help files I gather I must use the command.cfg file in the plugins distribution. From that file I gather I must use the convertcfg file to convert the commands file to a commands object type. When I do this and replace checkcommands.cfg with the command.cfg in the nagios.cfg file, it still tells me I have invalid arguments in the command.cfg file, just like it did in the checkcommands.cfg file. Im probably confused, but Im interested. So if the above sounds stupid tell me. I've looked through the docs and I see the sections on making these object files... but if I cant use the suplied commands file, how do I go about figuring out all the arguments for the different commands to build it from scratch? Ian Hardy Network Administrator Network + The Kingdom Connection 1-802-748-5866 P.O. Box 526 St. Johnsbury VT 05819 416E67656C697175652C20616B752063696E7461206B616D7521203A58 Check out www.missingkids.com Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Employees of Merrill Information systems Inc. are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy and outside the scope of the employment of the individual concerned. The company will not accept any liability in respect of such communication, and the employee responsible will be personally liable for any damages or other liability arising. ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hjp+nagios at wsr.ac.at Sun Feb 6 19:49:30 2005 From: hjp+nagios at wsr.ac.at (Peter J. Holzer) Date: Sun, 6 Feb 2005 19:49:30 +0100 Subject: plugins 1.3.1 basic problem In-Reply-To: <90D32590BAD135448DC12C1EA3EB4482209E8B@epsewr01.ewrlan.ewr.int> References: <90D32590BAD135448DC12C1EA3EB4482209E8B@epsewr01.ewrlan.ewr.int> Message-ID: <20050206184930.GA31883@wsr.ac.at> On 2005-02-06 16:49:24 +0100, Wengrzik, Andreas wrote: > andy iam wondering why MY Name is used by IAN. ?!? > > -----Urspr?ngliche Nachricht----- > Von: Wengrzik, Andreas [mailto:ian at kingcon.com] It isn't. The From header of Ian's mail was: From: "" Obviously your software replaces "" with your name. hp -- _ | Peter J. Holzer | If the code is old but the problem is new |_|_) | Sysadmin WSR / LUGA | then the code probably isn't the problem. | | | hjp at wsr.ac.at | __/ | http://www.hjp.at/ | -- Tim Bunce on dbi-users, 2004-11-05 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 388 bytes Desc: not available URL: From erek at blumenthals.com Sun Feb 6 21:50:07 2005 From: erek at blumenthals.com (Erek Dyskant) Date: Sun, 6 Feb 2005 13:50:07 -0700 Subject: Compiling Nagios 2.0b1 on Solaris 7 Message-ID: <20050206205006.GB30125@nbtsc.org> Hi All, I'm attempting to compile Nagios 2.0b1 on a somewhat geriatric Solaris box, and running into a compile error. Nagios 1.2 compiles fine. I'm using gcc 3.3.2 and have tried both sun make and gnu make 3.80 Thanks in advance for all your help. Regards, Erek In file included from ../include/nebmods.h:31, from broker.c:33: ../include/nebmodules.h:78: error: parse error before "lt_ptr" ../include/nebmodules.h:78: warning: no semicolon at end of struct or union ../include/nebmodules.h:79: warning: data definition has no type or storage class ../include/nebmodules.h:89: error: parse error before '}' token ../include/nebmodules.h:89: warning: data definition has no type or storage class In file included from broker.c:33: ../include/nebmods.h:51: error: parse error before '*' token ../include/nebmods.h:54: error: parse error before '*' token *** Error code 1 make: Fatal error: Command failed for target `broker.o' Current working directory /opt/home2/erek/src/nagios-2.0b1/base *** Error code 1 make: Fatal error: Command failed for target `all' ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Sun Feb 6 21:54:21 2005 From: ae at op5.se (Andreas Ericsson) Date: Sun, 06 Feb 2005 21:54:21 +0100 Subject: Compiling Nagios 2.0b1 on Solaris 7 In-Reply-To: <20050206205006.GB30125@nbtsc.org> References: <20050206205006.GB30125@nbtsc.org> Message-ID: <420683FD.3010202@op5.se> Erek Dyskant wrote: > Hi All, > I'm attempting to compile Nagios 2.0b1 on a somewhat geriatric Solaris > box, and running into a compile error. Nagios 1.2 compiles fine. > I'm using gcc 3.3.2 and have tried both sun make and gnu make > 3.80 > Thanks in advance for all your help. > > Regards, > Erek > > In file included from ../include/nebmods.h:31, > from broker.c:33: > ../include/nebmodules.h:78: error: parse error before "lt_ptr" > ../include/nebmodules.h:78: warning: no semicolon at end of struct or > union > ../include/nebmodules.h:79: warning: data definition has no type or > storage class > ../include/nebmodules.h:89: error: parse error before '}' token > ../include/nebmodules.h:89: warning: data definition has no type or > storage class > In file included from broker.c:33: > ../include/nebmods.h:51: error: parse error before '*' token > ../include/nebmods.h:54: error: parse error before '*' token > *** Error code 1 > make: Fatal error: Command failed for target `broker.o' > Current working directory /opt/home2/erek/src/nagios-2.0b1/base > *** Error code 1 > make: Fatal error: Command failed for target `all' > It appears you do not have the libtool header files installed. They proved the lt_dlopen() and friends. Run ./configure --disable-event-broker. That might sort it out for you. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From erek at blumenthals.com Sun Feb 6 22:28:55 2005 From: erek at blumenthals.com (Erek Dyskant) Date: Sun, 6 Feb 2005 14:28:55 -0700 Subject: Compiling Nagios 2.0b1 on Solaris 7 Message-ID: <20050206212855.GA17369@nbtsc.org> Andreas, Thanks a lot for the help. That made it go a bit further. Now it is getting stuck on "undefined symbol: setenv"... Sorry if the answer is obvious. I'm new to compiling on non-typical systems. Regards, Erek gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o xdowntime-base.o ../xdata/xdddefault.c gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -o nagios nagios.c checks.o config.o commands.o events.o flapping.o logging.o notifications.o sehandlers.o utils.o retention-base.o xretention-base.o comments-base.o xcomments-base.o objects-base.o xobjects-base.o statusdata-base.o xstatusdata-base.o perfdata-base.o xperfdata-base.o downtime-base.o xdowntime-base.o -lm -lnsl -lsocket -lpthread -lrt Undefined first referenced symbol in file setenv utils.o unsetenv utils.o ld: fatal: Symbol referencing errors. No output written to nagios collect2: ld returned 1 exit status make[1]: *** [nagios] Error 1 make[1]: Leaving directory `/opt/home2/erek/src/nagios-2.0b1/base' make: *** [all] Error 2 > > It appears you do not have the libtool header files installed. They > proved the lt_dlopen() and friends. Run ./configure > --disable-event-broker. That might sort it out for you. > > -- > Andreas Ericsson andreas.ericsson at op5.se > OP5 AB www.op5.se > Lead Developer > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please 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: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Mon Feb 7 00:05:23 2005 From: ae at op5.se (Andreas Ericsson) Date: Mon, 07 Feb 2005 00:05:23 +0100 Subject: Compiling Nagios 2.0b1 on Solaris 7 In-Reply-To: <20050206212855.GA17369@nbtsc.org> References: <20050206212855.GA17369@nbtsc.org> Message-ID: <4206A2B3.1090200@op5.se> Erek Dyskant wrote: > Andreas, > Thanks a lot for the help. That made it go a bit further. > Now it is getting stuck on "undefined symbol: setenv"... > Sorry if the answer is obvious. I'm new to compiling on > non-typical systems. > That's an issue I believe has been fixed in CVS. Download latest CVS code and try with that. If it doesn't work, gimme a holler and I'll patch it so it does. > Regards, > Erek > > gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o xdowntime-base.o > ../xdata/xdddefault.c > gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -o nagios nagios.c checks.o > config.o commands.o events.o flapping.o logging.o notifications.o > sehandlers.o utils.o retention-base.o xretention-base.o comments-base.o > xcomments-base.o objects-base.o xobjects-base.o statusdata-base.o > xstatusdata-base.o perfdata-base.o xperfdata-base.o downtime-base.o > xdowntime-base.o -lm -lnsl -lsocket -lpthread -lrt > Undefined first referenced > symbol in file > setenv utils.o > unsetenv utils.o > ld: fatal: Symbol referencing errors. No output written to nagios > collect2: ld returned 1 exit status > make[1]: *** [nagios] Error 1 > make[1]: Leaving directory `/opt/home2/erek/src/nagios-2.0b1/base' > make: *** [all] Error 2 > > > >>It appears you do not have the libtool header files installed. They >>proved the lt_dlopen() and friends. Run ./configure >>--disable-event-broker. That might sort it out for you. >> >>-- >>Andreas Ericsson andreas.ericsson at op5.se >>OP5 AB www.op5.se >>Lead Developer >> >> >>------------------------------------------------------- >>This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting >>Tool for open source databases. Create drag-&-drop reports. Save time >>by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. >>Download a FREE copy at http://www.intelliview.com/go/osdn_nl >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >>::: Please 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: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From g.vickers at qut.edu.au Mon Feb 7 06:57:49 2005 From: g.vickers at qut.edu.au (Greg Vickers) Date: Mon, 07 Feb 2005 15:57:49 +1000 Subject: Nagios 1.2 terminating unexpectedly Message-ID: <4207035D.6030208@qut.edu.au> Hi all, I've had to regress to Nagios 1.2 temporarily - I downloaded the source and compiled OK, all good. I kept the Nagios 2 files in place, but copied them to a different directory so my /usr/local/nagios looks like this: drwxrwxr-x 2 nagios nagios 4096 Feb 7 14:35 bin lrwxrwxrwx 1 nagios nagios 11 Feb 7 13:40 etc -> etc.nagios1 drwxrwxr-x 5 nagios nagios 4096 Feb 7 15:25 etc.nagios1 drwxrwxr-x 5 nagios nagios 4096 Jan 25 12:46 etc.nagios2 drwxr-xr-x 2 root root 4096 Jan 25 15:55 libexec lrwxrwxrwx 1 nagios nagios 12 Feb 7 13:40 sbin -> sbin.nagios1 drwxrwxr-x 2 nagios nagios 4096 Feb 7 14:01 sbin.nagios1 drwxrwxr-x 3 nagios nagios 4096 Jan 27 10:13 sbin.nagios2 lrwxrwxrwx 1 nagios nagios 13 Feb 7 13:59 share -> share.nagios1 drwxrwxr-x 8 nagios nagios 4096 Feb 7 14:02 share.nagios1 drwxrwxr-x 9 nagios nagios 4096 Jan 20 15:36 share.nagios2 drwxrwxr-x 6 nagios nagios 4096 Feb 7 15:51 var bin looks like this: lrwxrwxrwx 1 root root 10 Feb 7 14:35 nagios -> nagios.1.2 -rwxr-xr-- 1 nagios nagios 208048 Feb 7 14:01 nagios.1.2 -rwxr-xr-- 1 nagios nagios 352044 Feb 3 13:30 nagios.2.0b1 -rwxr-xr-- 1 nagios nagios 741487 Feb 3 13:30 nagios.cvs.20050203 So i've got the files co-existing. The config files in etc.nagios1 verify OK and Nagios daemonizes OK. However after a few minutes it just terminates silently, no output to the log file or anything. Has anyone got any ideas for me to try?? Thanks, -- Greg Vickers Lab Monitor Project Manager Teaching and Learning Support Services Information Technology Services Queensland University of Technology email: g.vickers at qut.edu.au phone: (07) 3864 8276 mobile: 0416 001 674, SD #6 6147 CIROS code: 00213J ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From benny at bennyvision.com Mon Feb 7 07:05:08 2005 From: benny at bennyvision.com (C. Bensend) Date: Mon, 7 Feb 2005 00:05:08 -0600 (CST) Subject: Nagios 1.2 terminating unexpectedly In-Reply-To: <4207035D.6030208@qut.edu.au> References: <4207035D.6030208@qut.edu.au> Message-ID: <61236.63.227.74.41.1107756308.squirrel@webmail.stinkweasel.net> > So i've got the files co-existing. The config files in etc.nagios1 > verify OK and Nagios daemonizes OK. However after a few minutes it just > terminates silently, no output to the log file or anything. > > Has anyone got any ideas for me to try?? strace/ktrace/insert-process-tracing-program-here. Run it through gdb. Bump up the debug level. There's three. :) Benny -- "I'm on the Zoloft to keep from killing y'all." -- Mike Tyson ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From james.mohr at elaxy.com Mon Feb 7 07:24:44 2005 From: james.mohr at elaxy.com (Mohr James) Date: Mon, 7 Feb 2005 07:24:44 +0100 Subject: AW: Moving from a commercial product to Nagios Message-ID: <369E6D11A6CCA64BB73C1D1EFDB0D2C15082AB@srv-cob-00-0014.elaxy.org> > -----Urspr?ngliche Nachricht----- > von Andreas Ericsson > Gesendet: Samstag, 5. Februar 2005 00:54 > For a company solution, I would seriously recommend enlisting > the aid of > a consultant. It should help immensely in initial setting up > and you'll > get a quicker return of investment and get to an acceptable > level on the > rather steep learning-curve quickly. That usually makes > everybody happy. Everyone except the accounting department. One reason we are moving away from the commerical product is the cost and there is no way we are going to get approval to have a consultant come in. ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Philipp.Sand at sycor.de Mon Feb 7 09:29:58 2005 From: Philipp.Sand at sycor.de (Sand Philipp) Date: Mon, 7 Feb 2005 09:29:58 +0100 Subject: Monitoring HP ProLiant Linux servers -- Nagios vs. OVO vs. SIM Message-ID: <6943DE9E9934CD42BBE4A20E0E28E10E011C9693@SYGOMAIL.GOE.AD.SYCOR.DE> Yes, I'm talking about that script. On the Insight Board, there have to be a configuration point, where you can insert the snmp community string, i think. When you have a Windows Server, you have to install the Simple Network Management Protocol and the HP/Compaq Management Agents. In the Services.msc, you have to go to the security tap of the snmp services, and set the right community. Here's what I did in checkcommands.cfg: # 'check_insight' command definition define command{ command_name check_insight command_line $USER1$/check_compaq_insight.pl -H $HOSTADDRESS$ -C $USER3$ } > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf > Of Paul Dulaba > Sent: Friday, February 04, 2005 6:22 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Monitoring HP ProLiant Linux > servers -- Nagios vs. OVO vs. SIM > > Are you talking about the check_compaq_insight.pl script? > > Also, can you provide som examples of how you are using this script? > What I am having difficulties understanding is how to setup > the server that is being monitored. I don't see anyplace in > iLO to configure the insight board to have a community string. > > Hope you can offer some details. > > On Thu, 3 Feb 2005 16:30:57 +0100, Sand Philipp > wrote: > > Hi, > > > > I didn't wrote the plugin, so I can't distribute > it...although, it is already distributed and can be found in > the nagios plugins contrib folder . > > > > Greets, > > Philipp > > > > > -----Original Message----- > > > From: nagios-users-admin at lists.sourceforge.net > > > [mailto:nagios-users-admin at lists.sourceforge.net ] On Behalf Of > > > Benoit Mortier > > > Sent: Tuesday, February 01, 2005 11:19 PM > > > To: nagios-users at lists.sourceforge.net > > > Subject: Re: [Nagios-users] Monitoring HP ProLiant Linux > servers -- > > > Nagios vs. OVO vs. SIM > > > > > > Le Mardi 1 F?vrier 2005 16:52, Sand Philipp a ?crit : > > > > Hi, > > > > > > > > We're using Nagios + Insight Manager. Works fine for us. > > > > > > > > We use Nagios as our main monitoring Platform, and have > > > integrated the > > > > HP Insight Manager into the Nagios. The Plugin we're using > > > is based on > > > > snmp queries to get the status of the local insight manager > > > > client, and reports them to the nagios. When it detects > an error, > > > the status > > > > in nagios changes, we get a little Status info like "SCSI > > > degraded" or > > > > something, and we connect to the insight manager and have a > > > > further look. All the other stuff like monitoring disk space, > > > > processes, memory, some handwritten stuff is beeing > checked by nagios plugins. > > > > I think the HP Insight Manager is very good to monitor all the > > > > Hardware Issues, but Nagios is much more flexible with > other checks. > > > > > > Hi, > > > > > > could you share the plugin with us ? is it gpl ? i yes could you > > > upload it to nagiosplug project at sourceforge. > > > > > > Thanks > > > > > > -- > > > Benoit Mortier > > > Linux Engineer > > > www.opensides.be > > > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive > Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please 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: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stephan.janosch at interface-business.de Mon Feb 7 10:11:51 2005 From: stephan.janosch at interface-business.de (Stephan Janosch) Date: Mon, 07 Feb 2005 10:11:51 +0100 Subject: Problem with nagios.cfg and perl variable In-Reply-To: References: Message-ID: <420730D7.2060206@interface-business.de> ian at kingcon.com wrote: > Hello, > > I just started with nagios, and linux for that matter, and am in the process of setting it up. When I run the nagios -v command I get the following error: > > Error in configuration file '/usr/local/nagios/etc/nagios.cfg' - Line 868 (UNKNOWN VARIABLE) > > That variable is in the section entitled: > > # MAXIMUM EMBEDDED PERL INTERPRETER CALLS > # This value determines how often (if at all) the embedded Perl > # interpreter is reinitialized during runtime. This is useful > # if you notice that the Perl interpreter is causing slow > # memory leaks over time. Setting this value to 0 means the > # embedded Perl interpreter will never be reinitialized. Any > # value > 0 is the number of times the embedded Perl interpreter > # is used (i.e. a Perl plugin is executed) before it is > # reinitialized during runtime. If you didn't compile Nagios with > # embedded Perl support, this option has no effect. > > max_embedded_perl_calls=0 > > What is this refering too? I checked my version of perl, and mod_perl and they are up to date? > > Where should I go to begin diagnosing this. You can try to hash that variable out. I think, your config is not error-free. Stephan ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ac at itpartner.nu Mon Feb 7 11:29:36 2005 From: ac at itpartner.nu (Anders Christensen) Date: Mon, 7 Feb 2005 11:29:36 +0100 Subject: NSclient. "Connection refused by host " Message-ID: <9370773F5F35CB4281A6C3EC61E3A0CA0F9C1B@itpdk-srv01.itpartner.dom> My NSclient 2.01 sometimes goes into the state of " Connection refused by host" Sometimes, I can correct the problem simply by restarting the service. If the service is "locked", I can sometimes kill the pnsclient process using taskmanager. Otherwice, Im forced to reboot the server :-( What causes this "connection refused" ? How can I find the error and how to correct it? It sometimes helps to change the port number. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ac at itpartner.nu Mon Feb 7 11:32:42 2005 From: ac at itpartner.nu (Anders Christensen) Date: Mon, 7 Feb 2005 11:32:42 +0100 Subject: Collapse multible services under service status. Message-ID: <9370773F5F35CB4281A6C3EC61E3A0CA0F9C1C@itpdk-srv01.itpartner.dom> When a server is down, all the services fails, and the server then uses 15 lines of space displaying all the failed services. I have tried using dependicys, but no go... I want ONLY 1 error under service state when an entire host fails, or all services on that server. Is that possible ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From philc at foundation-it.com Mon Feb 7 12:08:59 2005 From: philc at foundation-it.com (Phil Costelloe) Date: Mon, 7 Feb 2005 11:08:59 -0000 Subject: NSclient. "Connection refused by host " Message-ID: <4E71CFD68DCB4E49B04AD93E84827EE92A8FEA@netfinity-1.foundation-it.local> Anders Christensen wrote: > My NSclient 2.01 sometimes goes into the state of " Connection > refused by host" Sometimes, I can correct the problem simply by > restarting the service. > If the service is "locked", I can sometimes kill the pnsclient > process using taskmanager. Otherwice, Im forced to reboot the server > > What causes this "connection refused" ? How can I find the error and > how to correct it? It sometimes helps to change the port number. If the server also runs MS Exchange, it may be grabbing hold of port 1248 and preventing NSClient from working. Configure NSClient to use a much higher port number, above 2000 should be plenty high enough. Make sure the port isn't used by anything else. If you can't kill off a process using Task Manager, try using the pstools (specifically pskill) freeware package available from www.sysinternals.com. Phil ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ovig.degrouard at jouy.inra.fr Mon Feb 7 15:22:16 2005 From: ovig.degrouard at jouy.inra.fr (Ovig Degrouard) Date: Mon, 07 Feb 2005 15:22:16 +0100 Subject: bad plugins package? Message-ID: <42077998.2090905@jouy.inra.fr> Hi, I have two computers but the second has plugins problems when I test it in a shell. THE FIRST running with Mandrake 10.1 (it works good) Name : nagios Version : 2.0a1 Release : 0.2004*1002*.2mdk Name : nagios-plugins Version : 1.4.0 Release : 0.2004*0930*.1mdk [me at pc1 nagios]# /usr/lib/nagios/plugins/check_ping -H 138.xxx.xxx.xxx -w 3000.0,80% -c 5000.0,100% -p 1 PING OK - Packet loss = 0%, RTA = 0.22 ms [me at pc1 nagios]$ /usr/lib/nagios/plugins/check_load -w 5,10,50 -c 10,15,55 OK - load average: 0.30, 0.20, 0.13|load1=0.300000;5.000000;10.000000;0.000000 load5=0.200000;10.000000;15.000000;0.000000 load15=0.130000;50.000000;55.000000;0.000000 THE SECOND running with Mandrake 10.2 beta1 Name : nagios Version : 2.0a1 Release : 0.2004*1024*.2mdk Name : nagios-plugins Version : 1.4.0 Release : 0.2004*1220*.3mdk [me at pc2 nagios]# /usr/lib/nagios/plugins/check_ping -H 138.xxx.xxx.xxx -w 3000.0,80% -c 5000.0,100% -p 1 /bin/ping -n -U -w 10 -c 1 138.102.22.168 *CRITICAL - Could not interpret output from ping command* [me at pc2 nagios]# /usr/lib/nagios/plugins/check_load -w 5,10,50 -c 10,15,55 *Warning threshold must be float or float triplet!* Usage: check_load -w WLOAD1,WLOAD5,WLOAD15 -c CLOAD1,CLOAD5,CLOAD15 Is the package nagios-plugins release 0.2004*1220*.3mdk bad? Thank you, Ovig Degrouard ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ovig.degrouard at jouy.inra.fr Mon Feb 7 15:35:38 2005 From: ovig.degrouard at jouy.inra.fr (Ovig Degrouard) Date: Mon, 07 Feb 2005 15:35:38 +0100 Subject: bad plugins release? Message-ID: <42077CBA.5020900@jouy.inra.fr> Hi, I have two computers but the second has plugins problems when I test it in a shell. THE FIRST running with Mandrake 10.1 (it works good) Name : nagios Version : 2.0a1 Release : 0.2004*1002*.2mdk Name : nagios-plugins Version : 1.4.0 Release : 0.2004*0930*.1mdk [me at pc1 nagios]# /usr/lib/nagios/plugins/check_ping -H 192.168.0.1 -w 3000.0,80% -c 5000.0,100% -p 1 PING OK - Packet loss = 0%, RTA = 0.22 ms [me at pc1 nagios]$ /usr/lib/nagios/plugins/check_load -w 5,10,50 -c 10,15,55 OK - load average: 0.30, 0.20, 0.13|load1=0.3000;5.0000;10.0000;0.0000 load5=0.2000;10.0000;15.0000;0.0000 load15=0.1300;50.0000;55.0000;0.0000 THE SECOND running with Mandrake 10.2 beta1 Name : nagios Version : 2.0a1 Release : 0.2004*1024*.2mdk Name : nagios-plugins Version : 1.4.0 Release : 0.2004*1220*.3mdk [me at pc2 nagios]# /usr/lib/nagios/plugins/check_ping -H 192.168.0.1 -w 3000.0,80% -c 5000.0,100% -p 1 /bin/ping -n -U -w 10 -c 1 138.102.22.168 *CRITICAL - Could not interpret output from ping command* [me at pc2 nagios]# /usr/lib/nagios/plugins/check_load -w 5,10,50 -c 10,15,55 **Warning threshold must be float or float triplet!* * Usage: check_load -w WLOAD1,WLOAD5,WLOAD15 -c CLOAD1,CLOAD5,CLOAD15 Is the package nagios-plugins release 0.2004*1220*.3mdk bad? Thank you, Ovig Degrouard ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Mon Feb 7 15:49:10 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Mon, 7 Feb 2005 09:49:10 -0500 (EST) Subject: bad plugins release? In-Reply-To: <42077CBA.5020900@jouy.inra.fr> References: <42077CBA.5020900@jouy.inra.fr> Message-ID: release 1.4 was just made recently - so anything from december would have been the CVS code which was in flux. Try the full release - not sure if the mandrake package maintainer has issued new rpms. -sg On Mon, 7 Feb 2005, Ovig Degrouard wrote: > Hi, > I have two computers but the second has plugins problems when I test it in a > shell. > > THE FIRST running with Mandrake 10.1 (it works good) > > Name : nagios > Version : 2.0a1 > Release : 0.2004*1002*.2mdk > > Name : nagios-plugins > Version : 1.4.0 > Release : 0.2004*0930*.1mdk > > [me at pc1 nagios]# /usr/lib/nagios/plugins/check_ping -H 192.168.0.1 -w > 3000.0,80% -c 5000.0,100% -p 1 > PING OK - Packet loss = 0%, RTA = 0.22 ms > > [me at pc1 nagios]$ /usr/lib/nagios/plugins/check_load -w 5,10,50 -c 10,15,55 > OK - load average: 0.30, 0.20, 0.13|load1=0.3000;5.0000;10.0000;0.0000 > load5=0.2000;10.0000;15.0000;0.0000 load15=0.1300;50.0000;55.0000;0.0000 > > > > THE SECOND running with Mandrake 10.2 beta1 > > Name : nagios > Version : 2.0a1 > Release : 0.2004*1024*.2mdk > > Name : nagios-plugins > Version : 1.4.0 > Release : 0.2004*1220*.3mdk > > [me at pc2 nagios]# /usr/lib/nagios/plugins/check_ping -H 192.168.0.1 -w > 3000.0,80% -c 5000.0,100% -p 1 > /bin/ping -n -U -w 10 -c 1 138.102.22.168 > *CRITICAL - Could not interpret output from ping command* > > [me at pc2 nagios]# /usr/lib/nagios/plugins/check_load -w 5,10,50 -c 10,15,55 > **Warning threshold must be float or float triplet!* * > Usage: check_load -w WLOAD1,WLOAD5,WLOAD15 -c CLOAD1,CLOAD5,CLOAD15 > > > Is the package nagios-plugins release 0.2004*1220*.3mdk bad? > > Thank you, > Ovig Degrouard > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please 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: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From j.karsch at radeberger-gruppe.de Mon Feb 7 15:54:17 2005 From: j.karsch at radeberger-gruppe.de (Karsch, Jonas) Date: Mon, 7 Feb 2005 15:54:17 +0100 Subject: AW: bad plugins release? Message-ID: Hi, i have the same Problem with Fedora 3, nagios-2.0b1.tar.gz, nagios-plugins-1.4.tar.gz. All hosts seem to be down. check_ping even results: CRITICAL - Could not interpret output from ping command Configuration was runing on an earlier Nagios relase properly. Thank you Jonas Karsch -----Urspr?ngliche Nachricht----- Von: Ovig Degrouard [mailto:ovig.degrouard at jouy.inra.fr] Gesendet: Montag, 7. Februar 2005 15:36 An: nagios-users at lists.sourceforge.net Betreff: [Nagios-users] bad plugins release? Hi, I have two computers but the second has plugins problems when I test it in a shell. THE FIRST running with Mandrake 10.1 (it works good) Name : nagios Version : 2.0a1 Release : 0.2004*1002*.2mdk Name : nagios-plugins Version : 1.4.0 Release : 0.2004*0930*.1mdk [me at pc1 nagios]# /usr/lib/nagios/plugins/check_ping -H 192.168.0.1 -w 3000.0,80% -c 5000.0,100% -p 1 PING OK - Packet loss = 0%, RTA = 0.22 ms [me at pc1 nagios]$ /usr/lib/nagios/plugins/check_load -w 5,10,50 -c 10,15,55 OK - load average: 0.30, 0.20, 0.13|load1=0.3000;5.0000;10.0000;0.0000 load5=0.2000;10.0000;15.0000;0.0000 load15=0.1300;50.0000;55.0000;0.0000 THE SECOND running with Mandrake 10.2 beta1 Name : nagios Version : 2.0a1 Release : 0.2004*1024*.2mdk Name : nagios-plugins Version : 1.4.0 Release : 0.2004*1220*.3mdk [me at pc2 nagios]# /usr/lib/nagios/plugins/check_ping -H 192.168.0.1 -w 3000.0,80% -c 5000.0,100% -p 1 /bin/ping -n -U -w 10 -c 1 138.102.22.168 *CRITICAL - Could not interpret output from ping command* [me at pc2 nagios]# /usr/lib/nagios/plugins/check_load -w 5,10,50 -c 10,15,55 **Warning threshold must be float or float triplet!* * Usage: check_load -w WLOAD1,WLOAD5,WLOAD15 -c CLOAD1,CLOAD5,CLOAD15 Is the package nagios-plugins release 0.2004*1220*.3mdk bad? Thank you, Ovig Degrouard ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From csmann at gmail.com Mon Feb 7 16:46:55 2005 From: csmann at gmail.com (Chris Mann) Date: Mon, 7 Feb 2005 10:46:55 -0500 Subject: check_http socket time out? Message-ID: <25de63b50502070746770e2423@mail.gmail.com> Hi all, I'm having a problem getting check_http to run on an internal webserver here. When I run the check_http command from the command line it works fine: HTTP OK HTTP/1.1 200 OK - 6029 bytes in 0.004 seconds |time=0.004218s;;;0.000000 size=6029B;;;0 However, when I have nagios use the check_http command I get the following showing in nagios: CRITICAL - Socket timeout after 10 seconds nagios.log shows the following: [1107790920] SERVICE;webmail;HTTP;CRITICAL;3/3;HARD;1107790596;1107790973;ACTIVE;1;1;1;1107787954;0;CRITICAL;120;0;0;2741;1107787954;1;1;0;0;1;0;0.00;0;1;1;1;CRITICAL - Socket timeout after 10 seconds Here's the checkcommand.cfg entry: # 'check_http' command definition define command{ command_name check_http command_line $USER1$/check_http -H $HOSTADDRESS$ } Any thoughts? -- Chris Mann "I was killing all my money, Spending brain cells just as fast" ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From csmann at gmail.com Mon Feb 7 17:25:55 2005 From: csmann at gmail.com (Chris Mann) Date: Mon, 7 Feb 2005 11:25:55 -0500 Subject: check_http socket time out? In-Reply-To: <25de63b50502070746770e2423@mail.gmail.com> References: <25de63b50502070746770e2423@mail.gmail.com> Message-ID: <25de63b50502070825f5946f8@mail.gmail.com> Umm never mind, I sorted it out on my own. Seems I forgot to go through my proxy. On Mon, 7 Feb 2005 10:46:55 -0500, Chris Mann wrote: > Hi all, > > I'm having a problem getting check_http to run on an internal > webserver here. When I run the check_http command from the command > line it works fine: > > HTTP OK HTTP/1.1 200 OK - 6029 bytes in 0.004 seconds > |time=0.004218s;;;0.000000 size=6029B;;;0 > > However, when I have nagios use the check_http command I get the > following showing in nagios: > > CRITICAL - Socket timeout after 10 seconds > > nagios.log shows the following: > [1107790920] SERVICE;webmail;HTTP;CRITICAL;3/3;HARD;1107790596;1107790973;ACTIVE;1;1;1;1107787954;0;CRITICAL;120;0;0;2741;1107787954;1;1;0;0;1;0;0.00;0;1;1;1;CRITICAL > - Socket timeout after 10 seconds > > Here's the checkcommand.cfg entry: > > # 'check_http' command definition > define command{ > command_name check_http > command_line $USER1$/check_http -H $HOSTADDRESS$ > } > > Any thoughts? > > -- > Chris Mann > "I was killing all my money, Spending brain cells just as fast" > -- Chris Mann "I was killing all my money, Spending brain cells just as fast" ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From BolducB at brandonrha.mb.ca Mon Feb 7 17:31:23 2005 From: BolducB at brandonrha.mb.ca (Bolduc, Blair) Date: Mon, 7 Feb 2005 10:31:23 -0600 Subject: NSclient. "Connection refused by host " Message-ID: <6E667F3B5B568D4BBF4765BE662D5EF6991CAD@brha-exch-2k.brandonrha.mb.ca> -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Phil Costelloe Sent: Monday, February 07, 2005 05:09 To: nagios-users at lists.sourceforge.net Subject: [SPAM] - RE: [Nagios-users] NSclient. "Connection refused by host " - Email found in subject Anders Christensen wrote: > My NSclient 2.01 sometimes goes into the state of " Connection > refused by host" Sometimes, I can correct the problem simply by > restarting the service. > If the service is "locked", I can sometimes kill the pnsclient > process using taskmanager. Otherwice, Im forced to reboot the server > > What causes this "connection refused" ? How can I find the error and > how to correct it? It sometimes helps to change the port number. If the server also runs MS Exchange, it may be grabbing hold of port 1248 and preventing NSClient from working. Configure NSClient to use a much higher port number, above 2000 should be plenty high enough. Make sure the port isn't used by anything else. If you can't kill off a process using Task Manager, try using the pstools (specifically pskill) freeware package available from www.sysinternals.com. Phil CONFIDENTIALITY NOTICE: This message is intended only for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient you are hereby notified that any distribution, copying, disclosure and use of, or reliance on the contents of this transmission is strictly prohibited. If you have received this transmission in error, please notify us immediately by return e-mail and destroy the transmission by deleting the original message, attachments and all copies.7/2/2005 ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From csmann at gmail.com Mon Feb 7 18:04:27 2005 From: csmann at gmail.com (Chris Mann) Date: Mon, 7 Feb 2005 12:04:27 -0500 Subject: check_disk_smb error: Result from smbclient not suitable Message-ID: <25de63b5050207090456ca178c@mail.gmail.com> I'm trying to use the check_disk_smb plugin to check disk space on windows servers. via the command line it works fine, returns the info. When the plugin is configured, nagios reports the following error: Result from smbclient not suitable Any thoughts as to where to start to look to fix this? -- Chris Mann "I was killing all my money, Spending brain cells just as fast" ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From EmmettH at Examen.com Mon Feb 7 20:54:54 2005 From: EmmettH at Examen.com (Emmett Hogan) Date: Mon, 07 Feb 2005 11:54:54 -0800 Subject: Odd "RESTART" service check problem................ Message-ID: <4207C78E.5050803@Examen.com> Hi Folks, We had an odd problem this weekend, and I am wondering if anyone else has seen the same thing. We are running Nagios v2.0b1 on a Debian box. We had to take a bunch of machines down, so we turned off all service and host checks...from the logs: [02-06-2005 19:40:45] EXTERNAL COMMAND: STOP_EXECUTING_HOST_CHECKS; [02-06-2005 19:39:57] EXTERNAL COMMAND: STOP_EXECUTING_SVC_CHECKS; After the maintenance was done, we restarted host and service checks: [02-06-2005 22:13:45] EXTERNAL COMMAND: START_EXECUTING_HOST_CHECKS; [02-06-2005 22:13:45] EXTERNAL COMMAND: START_EXECUTING_SVC_CHECKS; As luck would have it, we had a server problem later that night which Nagios failed to catch with a simple "http_check". So........I went back through the web server logs looking for the nagios checks (we have two going to the same machine checking two different backend services). One of the services was being checked just fine, but the other (of course the one that later went down) was not being checked at all AFTER the restart of svc checks! Once I restarted the Nagios process the checks started happening again. Needless to say, we are wondering what other services were not being checked. Has anyone else experienced this? Where seemingly random services are not getting checked after a "START_EXECUTING_SVC_CHECKS" command? Thanks, -Emmett -- ================ Examen, Inc. ================ Emmett Hogan Senior UNIX Administrator emmetth at examen.com ==== Outside Counsel Management Solutions ==== CONFIDENTIAL - PRIVILEGED INFORMATION This e-mail may include confidential, trade secret or legally privileged information. If you are not the intended recipient, please do not read, copy, use, distribute or disclose this communication to anyone other than the intended recipient. Please notify the sender of any error in transmission or delivery and delete any misdirected e-mail from your system. -------------- next part -------------- A non-text attachment was scrubbed... Name: EmmettH.vcf Type: text/x-vcard Size: 260 bytes Desc: not available URL: From chris.stankaitis at datawire.net Mon Feb 7 21:26:39 2005 From: chris.stankaitis at datawire.net (Chris Stankaitis) Date: Mon, 07 Feb 2005 15:26:39 -0500 Subject: Complicated Cascading Dependency & Nagios 2.0 Message-ID: <4207CEFF.8060505@datawire.net> Hello all here is my issue which I need some help on. t1 -> fw-eth0 -> fw-eth1 -> fw-ethX -> box1,2,3 I need to setup a dependency tree for the above, the boxes need to be depandant on the eth port on the firewall they are plugged into, that port is dependant on a main ingress port on the fw, which itself is then depandant the port on the fw which connect to the t1, the uplink port is depandant on the t1 router. so if the t1 proper goes down nothing behind it will page, we'll only get a single page for the t1, as well if any of the eth's inbetween go down we'll have appropiate pages, here is a bit of a curve though... anything behing the eth0 on the firewall is being monitored passively, and sent via NSCA to an external Nagios box, using active host/service checks. here is the current config: define servicedependency{ host_name t1-router service_description PING dependent_host_name fw-eth0 dependent_service_description * execution_failure_criteria n notification_failure_criteria u,c } define servicedependency{ host_name fw-eth0 service_description PING dependent_host_name fw-eth1 dependent_service_description * execution_failure_criteria n notification_failure_criteria u,c } define servicedependency{ host_name fw-eth1 service_description PING dependent_host_name fw-eth2,fw-eth5,fw-eth8,fw-eth9 dependent_service_description * execution_failure_criteria n notification_failure_criteria u,c } define servicedependency{ host_name fw-eth2 service_description PING dependent_host_name box1,box2,box3,box4,box5 dependent_service_description * execution_failure_criteria n notification_failure_criteria u,c } I have freshness checking set on, and my "not-fresh" script will put the serivce into an UNKNOWN state if it hasn't gotten passive info in X mins. what I need in short is.. when ethX behind the fw goes into Unknown for PING the host needs to go down and be treaded as a network outage, and supress the notification for everything behind it which is dependant on, what I get now is ethX goes into unknown and the host is up and happy when it is not. I am also not 100% clear in the docs about the proper usage of the "inherits_parent" config directive, I am probally reading it wrong but it seems like a redundant config option to me, (now saying that I KNOW I am using it wrong) if fw-eth1 goes down then by proxy since eth2 is confged as a dependant of it, and box2 is configed as a dependant of eth2 wouldn't everything behind eth1 not notify based on a cascading dependency, and not require the inherits_parent config option?? Thanks for reading this novel. --Chris ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Jeff.Engstrom at fortix.net Tue Feb 8 01:49:24 2005 From: Jeff.Engstrom at fortix.net (Jeff Engstrom) Date: Mon, 7 Feb 2005 16:49:24 -0800 Subject: Nagios fails to start Message-ID: <6E8A7F9B09E71340A7BCFF709CBEC5974F5069@ftx2k3-pdc01> Greetings all, When attempting to start the nagios daemon I get the following error... "Starting network monitor: nagios No lock file found in /usr/local/nagios/var/nagios.lock" Everything seems to have compiled correctly from what I can tell. The following items have been checked... 1. Verified the configuration options using the -v command-line option. 2. Checked the Nagios log file for messages relating to startup or status data errors. 3. Verified the rights on all Nagios directories. Any ideas as to what could be causing this issue and or how I can get more log information? ________________________________ Jeff Engstrom Systems Engineer FORTiX - Technology Solutions DIRECT | 503.439.7660 FAX | 503.645.6684 www.fortix.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 2832 bytes Desc: image001.gif URL: From s.shipway at auckland.ac.nz Tue Feb 8 02:25:51 2005 From: s.shipway at auckland.ac.nz (Steve Shipway) Date: Tue, 8 Feb 2005 14:25:51 +1300 Subject: Host searchbox for lefthand menu Message-ID: <039401c50d7d$204cbbe0$01fea8c0@itss.auckland.ac.nz> If anyone is interested, I've created a host searchbox for the side menu. To add it, you need: 1) The Nagios.pm perl module 2) Install my findhost.pl script into /nagios/cgi-bin 3) Modify /nagios/html/side.html to add a couple of lines. It gives you a single textbox and a 'Go' button. Put the hostname in the box, click go, and the main frame will show the service details for that host. I created this quickly because 300 hosts is too many to wait for the Host Detail list! If anyone would like a copy, email me. When it's a bit more mature I'll stick it up on the NagiosExchange. Steve --- Steve Shipway: ITSS, University of Auckland Email: s.shipway at auckland.ac.nz Web: http://www.steveshipway.org/ ** We can only discover new oceans when we have the ** ** courage to lose sight of the shore. ** -------------- next part -------------- A non-text attachment was scrubbed... Name: Steve Shipway.vcf Type: text/x-vcard Size: 154 bytes Desc: not available URL: From sac_bagus at yahoo.com Tue Feb 8 06:15:22 2005 From: sac_bagus at yahoo.com (bagus a rahman) Date: Tue, 8 Feb 2005 05:15:22 +0000 (GMT) Subject: basic question Message-ID: <20050208051522.8790.qmail@web54210.mail.yahoo.com> do nagios only monitors router, server or it can monitor every node in the network such as client pc? ________________________________________________________________________ Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now http://uk.messenger.yahoo.com/download/index.html ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Philipp.Sand at sycor.de Tue Feb 8 09:03:40 2005 From: Philipp.Sand at sycor.de (Sand Philipp) Date: Tue, 8 Feb 2005 09:03:40 +0100 Subject: basic question Message-ID: <6943DE9E9934CD42BBE4A20E0E28E10E011C96A3@SYGOMAIL.GOE.AD.SYCOR.DE> Generally Nagios can Monitor everything, you can run a script against. If you want to monitor clients...have fun :) > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf > Of bagus a rahman > Sent: Tuesday, February 08, 2005 6:15 AM > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] basic question > > do nagios only monitors router, server or it can monitor > every node in the network such as client pc? > > ______________________________________________________________ > __________ > Yahoo! Messenger - Communicate instantly..."Ping" > your friends today! Download Messenger Now > http://uk.messenger.yahoo.com/download/index.html > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from > real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ecasbas at unav.es Tue Feb 8 09:20:37 2005 From: ecasbas at unav.es (Emilio Casbas) Date: Tue, 08 Feb 2005 09:20:37 +0100 Subject: hp printer Message-ID: <42087655.5040403@unav.es> Hi, Is possible to use Nagios to monitor the HP printer status such as; blocked printer, missing paper and more specific parameters from a Printer? Thanks in Advance. Emilio C. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Feb 8 09:27:32 2005 From: ae at op5.se (Andreas Ericsson) Date: Tue, 08 Feb 2005 09:27:32 +0100 Subject: Host searchbox for lefthand menu In-Reply-To: <039401c50d7d$204cbbe0$01fea8c0@itss.auckland.ac.nz> References: <039401c50d7d$204cbbe0$01fea8c0@itss.auckland.ac.nz> Message-ID: <420877F4.8060002@op5.se> Steve Shipway wrote: > If anyone is interested, I've created a host searchbox for the side menu. > > To add it, you need: > 1) The Nagios.pm perl module > 2) Install my findhost.pl script into /nagios/cgi-bin > 3) Modify /nagios/html/side.html to add a couple of lines. > > It gives you a single textbox and a 'Go' button. Put the hostname in the > box, click go, and the main frame will show the service details for that > host. > > I created this quickly because 300 hosts is too many to wait for the Host > Detail list! > > If anyone would like a copy, email me. When it's a bit more mature I'll > stick it up on the NagiosExchange. > This is already default in Nagios 2.0, and implemented in the cgi's. > Steve > > --- > Steve Shipway: ITSS, University of Auckland > Email: s.shipway at auckland.ac.nz Web: http://www.steveshipway.org/ > ** We can only discover new oceans when we have the ** > ** courage to lose sight of the shore. ** -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Feb 8 09:28:21 2005 From: ae at op5.se (Andreas Ericsson) Date: Tue, 08 Feb 2005 09:28:21 +0100 Subject: hp printer In-Reply-To: <42087655.5040403@unav.es> References: <42087655.5040403@unav.es> Message-ID: <42087825.7030204@op5.se> Emilio Casbas wrote: > Hi, > > Is possible to use Nagios to monitor the HP printer status such as; > blocked printer, missing paper and > more specific parameters from a Printer? > Yes. man snmpwalk; check_hpjd --help > Thanks in Advance. > Emilio C. > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk > being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dkirhlarov at oilspace.com Tue Feb 8 09:46:39 2005 From: dkirhlarov at oilspace.com (Dmitriy Kirhlarov) Date: Tue, 8 Feb 2005 08:46:39 +0000 Subject: hp printer In-Reply-To: <42087655.5040403@unav.es> References: <42087655.5040403@unav.es> Message-ID: <20050208084639.GA6597@office.oilspace.com> Hi! On Tue, Feb 08, 2005 at 09:20:37AM +0100, Emilio Casbas wrote: > Is possible to use Nagios to monitor the HP printer status such as; > blocked printer, missing paper and > more specific parameters from a Printer? Nagios -- very advanced crond. If you can write script for get information from printer -- you can use this script under nagios. WBR -- Dmitriy Kirhlarov OILspace, 4, B. Spasskaya str. room 01, 107978 Moscow, Russia P:+7 095 787 4700 F:+7 095 787 4701 E:DmitriyKirhlarov at oilspace.com OILspace - The resource enriched - www.oilspace.com ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From srunschke at abit.de Tue Feb 8 10:23:56 2005 From: srunschke at abit.de (Sascha Runschke) Date: Tue, 8 Feb 2005 10:23:56 +0100 Subject: Antwort: Moving from a commercial product to Nagios [Virus scanned] Message-ID: G'morning! > As I mentioned several months ago, we are in the process of moving from > a commercial product to Nagios. I would like to get some feedback from > someone who has gone through this process, discussing primarily the > administrative aspects. For example, how many people were on the project > team, how much time was spent per time, how long the process lasted > (i.e. in months), any pitfalls and problems, etc. I migrated an IBM Tivoli Netview environment to Nagios. I planned, customized and deployed it all on my own basically. Took me about 3 months from the concept until it went live. sash -------------------------------------------------- Sascha Runschke Netzwerk Administration IT-Services ABIT AG Robert-Bosch-Str. 1 40668 Meerbusch Tel.:+49 (0) 2150.9153.226 mailto:SRunschke at abit.de http://www.abit.net http://www.abit-epos.net http://www.my-academy.net -------------------------------------------------- Der Inhalt dieser Email sowie die Anh?nge sind ausschlie?lich f?r den bezeichneten Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser Email oder dessen Vertreter sein sollten, so beachten Sie bitte, da? jede Form der Kenntnisnahme, Ver?ffentlichung, Vervielf?ltigung oder Weitergabe des Inhalts dieser Email unzul?ssig ist. Wir m?chten Sie au?erdem darauf hinweisen, da? die Kommunikation per Email ?ber das Internet unsicher ist, da fuer unberechtigte Dritte grunds?tzlich die M?glichkeit der Kenntnisnahme und Manipulation besteht. Wenn Sie diese Nachricht versehentlich erhalten, informieren Sie bitte den Absender und l?schen diese Nachricht mit den Anh?ngen. Herzlichen Dank The information and any attachments contained in this email are intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any form of disclosure, reproduction, distribution or any action taken or refrained from in reliance on it, is prohibited and may be unlawful. We also like to inform you that communication via email over the internet is insecure because third parties may have the possibility to access and manipulate emails. If you have received the message in error, please advise the sender and delete the message and any attachments. Thank you very much. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ivan.Garcia at leroymerlin.es Tue Feb 8 10:47:15 2005 From: Ivan.Garcia at leroymerlin.es (Ivan.Garcia at leroymerlin.es) Date: Tue, 8 Feb 2005 10:47:15 +0100 Subject: nrpe error? help me Message-ID: Hi all, i have a problem with the plugin nrpe installed in a UNIXWARE machine. I have installed Nagios Version 2.0b1, and nagiosplug 1.4 release version. I have compiled the pluggins in the unixware machine and it?s all OK, when I execute the check_disk in local mode it?s OK . unixware001:/opt/nagios/libexec# ./check_disk_uw /dev/root DISK OK - free space: / 571 MB (44%);| /=713MB;1284;1284;0;1284 But when the pluggin is called from the nagios server (red-hat 9 ) with the pluggin nrpe this is the message: linuxtrf:/opt/nagios/libexec# ./check_nrpe -H 10.24.74.30 -c check_disk CHECK_NRPE: Received 0 bytes. Are we allowed to connect to the host? I have configured the services and tcpwrappers for guarantee the access from nagios-server to unixware-client The check_disk_uw was compiled in unixware machine and it don?t works in the linux machine. How i could do it work? Any idea? excuse me my bad english regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ian.chard at sers.ox.ac.uk Tue Feb 8 10:48:27 2005 From: ian.chard at sers.ox.ac.uk (Ian Chard) Date: Tue, 08 Feb 2005 09:48:27 +0000 Subject: Monitoring Unix logs Message-ID: <42088AEB.6080706@sers.ox.ac.uk> Hi, I'm wondering how other Nagios users use check_log to monitor their Unix logs. I've got my Nagios server also acting as a central syslog server, so I have all messages in one place and run check_log over all of them. I have a couple of questions: - is it best to set these services up as volatile? - has anyone compiled a list of "bad words" to watch for in the logs of particular version of Unix? Incidentally, the first thing I did was modify check_log so that it uses egrep instead of grep (so I can match things like "error|warning"). Cheers - Ian -- Ian Chard, Unix & Network Administrator | E: ian.chard at sers.ox.ac.uk Systems and Electronic Resources Service | T: 80587 / (01865) 280587 Oxford University Library Services | F: (01865) 204937 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Feb 8 10:52:28 2005 From: ae at op5.se (Andreas Ericsson) Date: Tue, 08 Feb 2005 10:52:28 +0100 Subject: Monitoring Unix logs In-Reply-To: <42088AEB.6080706@sers.ox.ac.uk> References: <42088AEB.6080706@sers.ox.ac.uk> Message-ID: <42088BDC.3070301@op5.se> Ian Chard wrote: > Hi, > > I'm wondering how other Nagios users use check_log to monitor their > Unix logs. I've got my Nagios server also acting as a central syslog > server, so I have all messages in one place and run check_log over > all of them. I have a couple of questions: > > - is it best to set these services up as volatile? Yes. > - has anyone compiled a list of "bad words" to watch for in the logs > of particular version of Unix? > No. That would be highly individual, so there isn't much chance of any such one being very portable. > Incidentally, the first thing I did was modify check_log so that it > uses egrep instead of grep (so I can match things like "error|warning"). > Probably a good idea. Or you could have used check_log2.pl, which does pcre matching. > Cheers > - Ian > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From g.vickers at qut.edu.au Tue Feb 8 11:02:17 2005 From: g.vickers at qut.edu.au (Greg Vickers) Date: Tue, 08 Feb 2005 20:02:17 +1000 Subject: Nagios fails to start In-Reply-To: <6E8A7F9B09E71340A7BCFF709CBEC5974F5069@ftx2k3-pdc01> References: <6E8A7F9B09E71340A7BCFF709CBEC5974F5069@ftx2k3-pdc01> Message-ID: <42088E29.1060605@qut.edu.au> Jeff: Run nagios manually: nagios -v ../path/to/nagios.cfg To see what is happening (oh yeah init.d/nagios verify works too) Jeff Engstrom wrote: > Greetings all, > > > > When attempting to start the nagios daemon I get the following error? > > ?Starting network monitor: nagios > > No lock file found in /usr/local/nagios/var/nagios.lock? > > > > Everything seems to have compiled correctly from what I can tell. The > following items have been checked? > > > > 1. Verified the configuration options using the ?v command-line option. > > 2. Checked the Nagios log file for messages relating to startup or > status data errors. > > 3. Verified the rights on all Nagios directories. > > > > Any ideas as to what could be causing this issue and or how I can get > more log information? > > > > ------------------------------------------------------------------------ > > > > **Jeff Engstrom** > > Systems Engineer > > *FORTiX ? Technology Solutions* > > DIRECT | 503.439.7660 > > > > FAX | 503.645.6684 > > www.fortix.com > > > -- Greg Vickers Lab Monitor Project Manager Teaching and Learning Support Services Information Technology Services Queensland University of Technology email: g.vickers at qut.edu.au phone: (07) 3864 8276 mobile: 0416 001 674, SD #6 6147 CIROS code: 00213J ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ivan.Garcia at leroymerlin.es Tue Feb 8 11:09:05 2005 From: Ivan.Garcia at leroymerlin.es (Ivan.Garcia at leroymerlin.es) Date: Tue, 8 Feb 2005 11:09:05 +0100 Subject: nrpe error? help me Message-ID: Hi all, i have a problem with the plugin nrpe installed in a UNIXWARE machine. I have installed Nagios Version 2.0b1, and nagiosplug 1.4 release version. I have compiled the pluggins in the unixware machine and it?s all OK, when I execute the check_disk in local mode it?s OK . unixware001:/opt/nagios/libexec# ./check_disk_uw /dev/root DISK OK - free space: / 571 MB (44%);| /=713MB;1284;1284;0;1284 But when the pluggin is called from the nagios server (red-hat 9 ) with the pluggin nrpe this is the message: linuxtrf:/opt/nagios/libexec# ./check_nrpe -H 10.24.74.30 -c check_disk CHECK_NRPE: Received 0 bytes. Are we allowed to connect to the host? I have configured the services and tcpwrappers for guarantee the access from nagios-server to unixware-client The check_disk_uw was compiled in unixware machine and it don?t works in the linux machine. How i could do it work? Any idea? Regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Sebastian.Bergstroem at kunskapsskolan.se Tue Feb 8 09:46:22 2005 From: Sebastian.Bergstroem at kunskapsskolan.se (=?iso-8859-1?Q?Bergstr=F6m_Sebastian?=) Date: Tue, 8 Feb 2005 09:46:22 +0100 Subject: check_icmp Message-ID: Andreas Ericsson, I know you're involved in this so perhaps you could give me an answer? Anyone is encouraged to answer of course :o) I'm trying to find information about the check_icmp plugin for Nagios. Some e-mails in the past has touched this but I'm not getting the complete picture. Is there any webpage or other information channel that shows progress on the check_icmp development and perhaps some of it's benefits over check_ping (I assume _icmp is to replace _ping?). Some documentation like switches would be handy as well. Thanks in advance! Best regards, Sebastian Bergstroem ---------------------------------------------- Sebastian Bergstroem Technical coordinator Kunskapsskolan i Sverige AB sebastian.bergstroem at kunskapsskolan.se ----------------------------------------------- ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gastondoa at conet.es Tue Feb 8 11:28:22 2005 From: gastondoa at conet.es (Gotzon Astondoa) Date: Tue, 8 Feb 2005 11:28:22 +0100 Subject: nrpe error? help me References: Message-ID: <004501c50dc8$eeff5ba0$10fea8c0@conet.es> In the host that will run check_disk, is defined in allowed_hosts variable the host 10.24.74.30, ? (this variable is in nrpe.cfg) If it is not. Add it, kill nrpe daemon and run nrpe daemon again. bye... ----- Original Message ----- From: Ivan.Garcia at leroymerlin.es To: nagios-users at lists.sourceforge.net Sent: Tuesday, February 08, 2005 11:09 AM Subject: [Nagios-users] nrpe error? help me Hi all, i have a problem with the plugin nrpe installed in a UNIXWARE machine. I have installed Nagios Version 2.0b1, and nagiosplug 1.4 release version. I have compiled the pluggins in the unixware machine and it?s all OK, when I execute the check_disk in local mode it?s OK . unixware001:/opt/nagios/libexec# ./check_disk_uw /dev/root DISK OK - free space: / 571 MB (44%);| /=713MB;1284;1284;0;1284 But when the pluggin is called from the nagios server (red-hat 9 ) with the pluggin nrpe this is the message: linuxtrf:/opt/nagios/libexec# ./check_nrpe -H 10.24.74.30 -c check_disk CHECK_NRPE: Received 0 bytes. Are we allowed to connect to the host? I have configured the services and tcpwrappers for guarantee the access from nagios-server to unixware-client The check_disk_uw was compiled in unixware machine and it don?t works in the linux machine. How i could do it work? Any idea? Regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ae at op5.se Tue Feb 8 12:51:09 2005 From: ae at op5.se (Andreas Ericsson) Date: Tue, 08 Feb 2005 12:51:09 +0100 Subject: check_icmp In-Reply-To: References: Message-ID: <4208A7AD.90306@op5.se> Bergstr?m Sebastian wrote: > Andreas Ericsson, I know you're involved in this so perhaps you could > give me an answer? Anyone is encouraged to answer of course :o) > Being the original author, I think I can. > I'm trying to find information about the check_icmp plugin for > Nagios. Some e-mails in the past has touched this but I'm not getting > the complete picture. Is there any webpage or other information > channel that shows progress on the check_icmp development and perhaps > some of it's benefits over check_ping (I assume _icmp is to replace > _ping?). Some documentation like switches would be handy as well. > > Thanks in advance! > check_icmp is included in the official plugin package as a drop-in replacement for check_ping. check_icmp -h provides the necessary help output. The latest version of check_icmp (as coded by my humble self) is available at https://devel.op5.se/oss or http://oss.op5.se/nagios as check_icmp-.tar.gz. Be aware that the code might change without version increment while I'm researching a weird network error on *bsd (most likely a kernel issue, but it's hard to know for sure), although only for fixing this particular bug. Look for the mtime as provided by apache to find out if it is indeed a new release or not (a fresh one just hatched 2 seconds ago, actually). > > Best regards, Sebastian Bergstroem > > ---------------------------------------------- Sebastian Bergstroem > Technical coordinator Kunskapsskolan i Sverige AB > sebastian.bergstroem at kunskapsskolan.se > ----------------------------------------------- > > > ------------------------------------------------------- SF email is > sponsored by - The IT Product Guide Read honest & candid reviews on > hundreds of IT Products from real users. Discover which products > truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id396&op=click > _______________________________________________ Nagios-users mailing > list Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please > include Nagios version, plugin version (-v) and OS when reporting any > issue. ::: Messages without supporting info will risk being sent to > /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From amontibello at gmail.com Tue Feb 8 13:01:43 2005 From: amontibello at gmail.com (Anthony Montibello) Date: Tue, 8 Feb 2005 07:01:43 -0500 Subject: NC_Net setup Documentation Message-ID: Hi, The preliminary release of passive checks in NC_Net was uploaded to the official NC_Net web site last week, and in my haste to make it available I neglected to update the Documentation. The install package will be updated within a day or two. However, new drafts of the read me, and Passive check read me are available for viewing/saving from the official NC_Net web site. These files still are not perfect, but they should be a easier to read to assist with configuration process. official NC_Net web site: www.shatterit.com/NC_Net Any problems or comments please contact me at amontibello at shatterit.com Good Luck Tony ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Sebastian.Bergstroem at kunskapsskolan.se Tue Feb 8 13:37:05 2005 From: Sebastian.Bergstroem at kunskapsskolan.se (=?iso-8859-1?Q?Bergstr=F6m_Sebastian?=) Date: Tue, 8 Feb 2005 13:37:05 +0100 Subject: check_icmp Message-ID: Thanks! That truly answers most of my questions. What is the reason that you made check_icmp a drop-in replacement for _ping? Is it that much better? I know that check_ping has a weird problem of timing out everynow and then, even with increased host_check_timeout values... ---------------------------------------------- Sebastian Bergstroem Technical coordinator Kunskapsskolan i Sverige AB sebastian.bergstroem at kunskapsskolan.se ----------------------------------------------- > -----Original Message----- > From: Andreas Ericsson [mailto:ae at op5.se] > Sent: den 8 februari 2005 12:51 > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] check_icmp > > Bergstr?m Sebastian wrote: > > Andreas Ericsson, I know you're involved in this so perhaps > you could > > give me an answer? Anyone is encouraged to answer of course :o) > > > > Being the original author, I think I can. > > > I'm trying to find information about the check_icmp plugin > for Nagios. > > Some e-mails in the past has touched this but I'm not getting the > > complete picture. Is there any webpage or other information channel > > that shows progress on the check_icmp development and > perhaps some of > > it's benefits over check_ping (I assume _icmp is to replace > _ping?). > > Some documentation like switches would be handy as well. > > > > Thanks in advance! > > > > check_icmp is included in the official plugin package as a > drop-in replacement for check_ping. check_icmp -h provides > the necessary help output. > > The latest version of check_icmp (as coded by my humble self) > is available at https://devel.op5.se/oss or > http://oss.op5.se/nagios as check_icmp-.tar.gz. Be > aware that the code might change without version increment > while I'm researching a weird network error on *bsd (most > likely a kernel issue, but it's hard to know for sure), > although only for fixing this particular bug. Look for the > mtime as provided by apache to find out if it is indeed a new > release or not (a fresh one just hatched 2 seconds ago, actually). > > > > > Best regards, Sebastian Bergstroem > > > > ---------------------------------------------- Sebastian Bergstroem > > Technical coordinator Kunskapsskolan i Sverige AB > > sebastian.bergstroem at kunskapsskolan.se > > ----------------------------------------------- > > > > > > ------------------------------------------------------- SF email is > > sponsored by - The IT Product Guide Read honest & candid reviews on > > hundreds of IT Products from real users. Discover which > products truly > > live up to the hype. Start reading now. > > http://ads.osdn.com/?ad_ide95&alloc_id396&op=click > > _______________________________________________ > Nagios-users mailing > > list Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please > > include Nagios version, plugin version (-v) and OS when > reporting any > > issue. ::: Messages without supporting info will risk being sent to > > /dev/null > > > > -- > Andreas Ericsson andreas.ericsson at op5.se > OP5 AB www.op5.se > Lead Developer > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide Read honest & > candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Karim.Amri at uptime.be Tue Feb 8 14:01:11 2005 From: Karim.Amri at uptime.be (Amri Karim) Date: Tue, 8 Feb 2005 14:01:11 +0100 Subject: Nagios logfile checker for windows Message-ID: <27FA63FC15F4C243A37B07D57C891E3CB90061@ws03-exchange.iconos.be> Hi, I am looking for a logfile checker for windows like check_log2 in the contrib directory of the nagios plugins. I want to use the logchecker together with nrpe_nt. Unfortunatly I can't install perl on the windows machines, as they are production machines. Does anyone know if such a plugin already exists? Thx in advance! -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 3107 bytes Desc: not available URL: From ae at op5.se Tue Feb 8 14:16:21 2005 From: ae at op5.se (Andreas Ericsson) Date: Tue, 08 Feb 2005 14:16:21 +0100 Subject: check_icmp In-Reply-To: References: Message-ID: <4208BBA5.8080604@op5.se> Bergstr?m Sebastian wrote: > Thanks! That truly answers most of my questions. > > What is the reason that you made check_icmp a drop-in replacement for > _ping? Is it that much better? > Yes. It's a lot faster (especially for detecting down hosts), more portable ("unable to parse ping output" goes away), it requires less memory (fewer fork()'s = fewer PTE's and fewer task-structures) and has more features. You can f.e. set TTL on outgoing packets, meaning you can monitor which of several redundant routes is being used, and if BGP fucks up and starts routing your traffic through a nearby continent you'll know it soon enough. Also, it's a very common plugin to use, as nearly everybody use ping to find out if their hosts are up (and usually as a service as well). Even a minor speed increase in this plugin can make a dramatic change in nagios performance. Especially with network outages, where the usual check_ping would get ICMP_HOSTUNREACH several times, whereas check_icmp drops the target immediately upon such a reply and deemes it dead (saves roughly 12 seconds per hostcheck with identical default configurations). > I know that check_ping has a weird problem of timing out everynow and > then, even with increased host_check_timeout values... > I don't know about that. I've been using check_icmp since version 0.6. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Philipp.Sand at sycor.de Tue Feb 8 14:16:49 2005 From: Philipp.Sand at sycor.de (Sand Philipp) Date: Tue, 8 Feb 2005 14:16:49 +0100 Subject: Nagios logfile checker for windows Message-ID: <6943DE9E9934CD42BBE4A20E0E28E10E011C96AC@SYGOMAIL.GOE.AD.SYCOR.DE> Hi, I don't know if there's already a plugin for that on windows, but maybe as a suggestion...what about a Sambamount to the nagios server and then use check_log2? :) ________________________________ From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Amri Karim Sent: Tuesday, February 08, 2005 2:01 PM To: nagios-users at lists.sourceforge.net Subject: Nagios logfile checker for windows Hi, I am looking for a logfile checker for windows like check_log2 in the contrib directory of the nagios plugins. I want to use the logchecker together with nrpe_nt. Unfortunatly I can't install perl on the windows machines, as they are production machines. Does anyone know if such a plugin already exists? Thx in advance! ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Feb 8 14:17:17 2005 From: ae at op5.se (Andreas Ericsson) Date: Tue, 08 Feb 2005 14:17:17 +0100 Subject: Nagios logfile checker for windows In-Reply-To: <27FA63FC15F4C243A37B07D57C891E3CB90061@ws03-exchange.iconos.be> References: <27FA63FC15F4C243A37B07D57C891E3CB90061@ws03-exchange.iconos.be> Message-ID: <4208BBDD.2040701@op5.se> Amri Karim wrote: > Hi, > > I am looking for a logfile checker for windows like check_log2 in the > contrib directory of the nagios plugins. I want to use the > logchecker together with nrpe_nt. > > Unfortunatly I can't install perl on the windows machines, as they > are production machines. > > Does anyone know if such a plugin already exists? > Install perl2exe on some other machine and run perl2exe check_log2.pl -o check_log2.exe (or something similar). > Thx in advance! > > > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From james.mohr at elaxy.com Tue Feb 8 14:27:36 2005 From: james.mohr at elaxy.com (Mohr James) Date: Tue, 8 Feb 2005 14:27:36 +0100 Subject: AW: Antwort: Moving from a commercial product to Nagios [Virus scanned] Message-ID: <369E6D11A6CCA64BB73C1D1EFDB0D2C15082C4@srv-cob-00-0014.elaxy.org> > -----Urspr?ngliche Nachricht----- > Von: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] Im Auftrag > von Sascha Runschke > Gesendet: Dienstag, 8. Februar 2005 10:24 > An: Nagios-users at lists.sourceforge.net > Betreff: Antwort: [Nagios-users] Moving from a commercial > product to Nagios [Virus scanned] > > > G'morning! > > > As I mentioned several months ago, we are in the process of moving > > from a commercial product to Nagios. I would like to get > some feedback > > from someone who has gone through this process, discussing > primarily > > the administrative aspects. For example, how many people > were on the > > project team, how much time was spent per time, how long > the process > > lasted (i.e. in months), any pitfalls and problems, etc. > > I migrated an IBM Tivoli Netview environment to Nagios. > I planned, customized and deployed it all on my own > basically. Took me about 3 months from the concept until it went live. Thanks for the reply! Was that all you were doing during the 3 months or did you have other task? How many nodes? How many different things on each node are you monitoring? Regards, Jim Mohr ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From julien at avedya.com Tue Feb 8 14:53:13 2005 From: julien at avedya.com (julien) Date: Tue, 08 Feb 2005 14:53:13 +0100 Subject: check_cluster2 documentation Message-ID: <4208C449.7060005@avedya.com> Hi, I'm looking for a comprehensive documentation for the "check_cluster2" plugin ... seems that it hasnt been written officially. Thanks in advance, Julien. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From srunschke at abit.de Tue Feb 8 15:33:10 2005 From: srunschke at abit.de (Sascha Runschke) Date: Tue, 8 Feb 2005 15:33:10 +0100 Subject: Antwort: AW: Antwort: Moving from a commercial product to Nagios [Virus scanned] Message-ID: > Thanks for the reply! Was that all you were doing during the 3 months or did you have other task? Well basically yes. It did actually last longer (like 6 months), but I aproximately worked only half of the time on the nagios project and on other projects the rest of the time. So that my time estimate has already incorporated work on other projects and I broke it down to an estimate of 3 months actual worktime. > How many nodes? How many different things on each node are you monitoring? Currently monitoring 7 different sites with aprox. 600 services on 200 hosts. I have to admit that I didn't add any of our unix servers yet since those are not a big issue, they never really have any problems ;) I only monitor the applications running on them. For Windows-Servers I mainly deployed NSClient remotely, doing standard checks (mem, disks, cpu, etc). Checks of SAP, MySQL, Oracle, MS-SQL, general Webservers, VPN tunnels to our remote sites, SNMP checks of all routers/firewalls and our data center monitoring system (temperature, air moisture, water sensor), etc.pp. Quite a big list. Once you set up a good structure of templates and such adding the actual hosts/services works like a charm. Took me 4 weeks to work out the templates and like 2 days to actually enter the hosts/services. sash -------------------------------------------------- Sascha Runschke Netzwerk Administration IT-Services ABIT AG Robert-Bosch-Str. 1 40668 Meerbusch Tel.:+49 (0) 2150.9153.226 mailto:SRunschke at abit.de http://www.abit.net http://www.abit-epos.net http://www.my-academy.net -------------------------------------------------- Der Inhalt dieser Email sowie die Anh?nge sind ausschlie?lich f?r den bezeichneten Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser Email oder dessen Vertreter sein sollten, so beachten Sie bitte, da? jede Form der Kenntnisnahme, Ver?ffentlichung, Vervielf?ltigung oder Weitergabe des Inhalts dieser Email unzul?ssig ist. Wir m?chten Sie au?erdem darauf hinweisen, da? die Kommunikation per Email ?ber das Internet unsicher ist, da fuer unberechtigte Dritte grunds?tzlich die M?glichkeit der Kenntnisnahme und Manipulation besteht. Wenn Sie diese Nachricht versehentlich erhalten, informieren Sie bitte den Absender und l?schen diese Nachricht mit den Anh?ngen. Herzlichen Dank The information and any attachments contained in this email are intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any form of disclosure, reproduction, distribution or any action taken or refrained from in reliance on it, is prohibited and may be unlawful. We also like to inform you that communication via email over the internet is insecure because third parties may have the possibility to access and manipulate emails. If you have received the message in error, please advise the sender and delete the message and any attachments. Thank you very much. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From timothy at icts.uct.ac.za Tue Feb 8 15:41:01 2005 From: timothy at icts.uct.ac.za (Timothy Carr) Date: Tue, 08 Feb 2005 16:41:01 +0200 Subject: NagMIN Message-ID: <4208CF7D.2050007@icts.uct.ac.za> Hi All, I found a WebMIN module called " NagMin ". Has anyone used it with success? Mabe you could also mention the flaws ? Much appreciated.. -- Tim ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mpowell at ena.com Tue Feb 8 16:14:18 2005 From: mpowell at ena.com (Marc Powell) Date: Tue, 8 Feb 2005 09:14:18 -0600 Subject: basic question Message-ID: <2B79966571B4B842B9C07E9910E38CE602BE58@mismail.ena.com> > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of bagus a rahman > Sent: Monday, February 07, 2005 11:15 PM > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] basic question > > do nagios only monitors router, server or it can > monitor every node in the network such as client pc? Nagios can monitor any device or service that you can test via command line or script. The limit is really your imagination and your ability to turn that into a script. -- Marc ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jason-sourceforge at microlnk.net Tue Feb 8 18:59:51 2005 From: jason-sourceforge at microlnk.net (Jason Byrns) Date: Tue, 08 Feb 2005 11:59:51 -0600 Subject: NagMIN In-Reply-To: <4208CF7D.2050007@icts.uct.ac.za> References: <4208CF7D.2050007@icts.uct.ac.za> Message-ID: <4208FE17.3080102@microlnk.net> We've been using NagMIN for, oh, 6-8 months now. It's not too shabby for a basic Webmin way to run Nagios. The author rarely touches it; I'm guessing he's too busy. So it is generally undocumented and each release has been incomplete as well. The only way to get the current NagMIN 2.2 installed is by first using 2.1, then upgrading. (2.1 has setup scripts, 2.2 is missing them) The author claimed a 2.3 version was due out months ago, but again, I think he hardly ever touches the code at all. (He took the MySQL Webmin module and modified it) Let me know if you'd like help getting it set up. I happen to be moving our Nagios to a new server right this moment, so I'm setting NagMIN up again from scratch. (Not time consuming if you know how to do it) Timothy Carr wrote: > Hi All, > > I found a WebMIN module called " NagMin ". Has anyone used it with > success? Mabe you could also mention the flaws ? > > Much appreciated.. -- Jason Byrns System Administrator, MicroLnk http://www.MicroLnk.com/ 402-328-8600 ext. 653 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From AlOclarit at aol.com Tue Feb 8 20:37:37 2005 From: AlOclarit at aol.com (AlOclarit at aol.com) Date: Tue, 08 Feb 2005 14:37:37 -0500 Subject: 2nd tier escalation problem Message-ID: <56B21D24.62729D75.021D000F@aol.com> I have the following in my /etc/nagios/escalations define hostgroupescalation{ hostgroup_name hosts-high-priority first_notification 2 last_notification 3 notification_interval 0 contact_groups escalation_level_1 } define hostgroupescalation{ hostgroup_name hosts-high-priority first_notification 3 last_notification 3 notification_interval 0 contact_groups escalation_level_2 } The level_1 escalation kicks in as expected but the level_2 escalation doesn't kick in at all. Not only that, it also appears that the regular notifications stop as well in other words: after the level_1 notification gets sent I stop receiving any alerts for this host until it comes back up. That's when I get the expected host up alert. I've read the escalation howto several times now and can't see what's wrong with my setup. Besides, even if there was somehting wrong with it, at least the regular notification should be triggered again after 3 notifications and not even that happens. I run gentoo 2.6 kernel and nagios 1.2 Anyone ? ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.Kemp at xerox.com Tue Feb 8 21:06:56 2005 From: Darren.Kemp at xerox.com (Kemp, Darren) Date: Tue, 8 Feb 2005 15:06:56 -0500 Subject: file perfdata issues. Message-ID: <330CE9F92C02064B86090D40B479712F2423D2@usa0300ms04.na.xerox.net> I seem to be having issues getting file perfdata compiled into NAGIOS. I am running 2.0b1, compiled as so: ./configure --enable-embedded-perl --with-perlcache --with-file-perfdata --with-command-group=nagcmd I then added the following to nagios.cfg: xpdfile_host_perfdata_file=/usr/local/nagios/var/hostperf.log xpdfile_host_perfdata_template=$TIMET$\t$HOSTNAME$\t$HOSTOUTPUT$\t$HOSTP ERFDATA$ xpdfile_service_perfdata_file=/usr/local/nagios/var/serviceperf.log xpdfile_service_perfdata_template=$TIMET$\t$HOSTNAME$\t$SERVICEDESC$\t$S ERVICEOU TPUT$\t$SERVICESTATE$\t$SERVICEPERFDATA$ All other existing host_perfdata lines were commented. Starting NAGIOS then will not create any perf logs. If I stop NAGIOS and put back in the "default" perfdata settings, the files are created. (as if I had compiled --with-default-perfdata) What am I missing? -dkk ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From s.shipway at auckland.ac.nz Tue Feb 8 21:18:53 2005 From: s.shipway at auckland.ac.nz (Steve Shipway) Date: Wed, 9 Feb 2005 09:18:53 +1300 Subject: Host searchbox for lefthand menu In-Reply-To: <420877F4.8060002@op5.se> References: <420877F4.8060002@op5.se> Message-ID: <03c701c50e1b$68aed000$01fea8c0@itss.auckland.ac.nz> Anyone using Nagios 2.x already knows that v2.x has this already, but we still use 1.x here (and are likely to for some time). Since there were a lot of requests for this, I have uploaded the simple script to the Nagios Exchange site www.nagiosexchange.org for anyone interested to download. Steve ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Sebastian.Bergstroem at kunskapsskolan.se Tue Feb 8 21:38:07 2005 From: Sebastian.Bergstroem at kunskapsskolan.se (=?iso-8859-1?Q?Bergstr=F6m_Sebastian?=) Date: Tue, 8 Feb 2005 21:38:07 +0100 Subject: check_icmp Message-ID: > Yes. It's a lot faster (especially for detecting down hosts), > more portable ("unable to parse ping output" goes away), it > requires less memory (fewer fork()'s = fewer PTE's and fewer > task-structures) and has more features. You can f.e. set TTL > on outgoing packets, meaning you can monitor which of several > redundant routes is being used, and if BGP fucks up and > starts routing your traffic through a nearby continent you'll > know it soon enough. > > Also, it's a very common plugin to use, as nearly everybody > use ping to find out if their hosts are up (and usually as a > service as well). Even a minor speed increase in this plugin > can make a dramatic change in nagios performance. Especially > with network outages, where the usual check_ping would get > ICMP_HOSTUNREACH several times, whereas check_icmp drops the > target immediately upon such a reply and deemes it dead > (saves roughly 12 seconds per hostcheck with identical > default configurations). Sounds superb! > > I know that check_ping has a weird problem of timing out > everynow and > > then, even with increased host_check_timeout values... > > > > I don't know about that. I've been using check_icmp since version 0.6. I will definitively implement check_icmp and look for improvements. My problem might just be that I have a pretty slow machine related to the number of checks performed (currently running 222 service checks - will grow to around 1.000 soon enough). Does anyone have recommendations for what kind of machine (processor, RAM etc) one needs for a certain amount of checks? I see the problem in this question since a service check can be quick and light as well as slow and big. I'm currently using NSClient and ping service checks only. I tried to look this up once we decided to implement Nagios, however, I didn't find anything useful. Any hints are deeply appreciated. ---------------------------------------------- Sebastian Bergstroem Technical coordinator Kunskapsskolan i Sverige AB sebastian.bergstroem at kunskapsskolan.se ----------------------------------------------- > -----Original Message----- > From: Andreas Ericsson [mailto:ae at op5.se] > Sent: den 8 februari 2005 14:16 > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] check_icmp > > Bergstr?m Sebastian wrote: > > Thanks! That truly answers most of my questions. > > > > What is the reason that you made check_icmp a drop-in > replacement for > > _ping? Is it that much better? > > > > Yes. It's a lot faster (especially for detecting down hosts), > more portable ("unable to parse ping output" goes away), it > requires less memory (fewer fork()'s = fewer PTE's and fewer > task-structures) and has more features. You can f.e. set TTL > on outgoing packets, meaning you can monitor which of several > redundant routes is being used, and if BGP fucks up and > starts routing your traffic through a nearby continent you'll > know it soon enough. > > Also, it's a very common plugin to use, as nearly everybody > use ping to find out if their hosts are up (and usually as a > service as well). Even a minor speed increase in this plugin > can make a dramatic change in nagios performance. Especially > with network outages, where the usual check_ping would get > ICMP_HOSTUNREACH several times, whereas check_icmp drops the > target immediately upon such a reply and deemes it dead > (saves roughly 12 seconds per hostcheck with identical > default configurations). > > > I know that check_ping has a weird problem of timing out > everynow and > > then, even with increased host_check_timeout values... > > > > I don't know about that. I've been using check_icmp since version 0.6. > > -- > Andreas Ericsson andreas.ericsson at op5.se > OP5 AB www.op5.se > Lead Developer > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide Read honest & > candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ross.minkov at hp.com Tue Feb 8 23:09:42 2005 From: ross.minkov at hp.com (Minkov, Ross) Date: Tue, 8 Feb 2005 17:09:42 -0500 Subject: check_http -S Message-ID: <192E38594ACFAF4EB4F40E1C4B60472306014CF5@tayexc13.americas.cpqcorp.net> Hi I just updated my plugins from 1.3 to 1.4 and noticed that the new check_http does not support -S for SSL. Does anyone know how to check HTTPS? TIA, Ross ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mkent at magoazul.com Tue Feb 8 23:26:56 2005 From: mkent at magoazul.com (Matthew Kent) Date: Tue, 08 Feb 2005 15:26:56 -0700 Subject: file perfdata issues. In-Reply-To: <330CE9F92C02064B86090D40B479712F2423D2@usa0300ms04.na.xerox.net> References: <330CE9F92C02064B86090D40B479712F2423D2@usa0300ms04.na.xerox.net> Message-ID: <1107901616.19730.14.camel@fuego> On Tue, 2005-08-02 at 15:06 -0500, Kemp, Darren wrote: > I seem to be having issues getting file perfdata compiled into NAGIOS. > > I am running 2.0b1, compiled as so: > > ./configure --enable-embedded-perl --with-perlcache > --with-file-perfdata --with-command-group=nagcmd > > I then added the following to nagios.cfg: > > xpdfile_host_perfdata_file=/usr/local/nagios/var/hostperf.log > xpdfile_host_perfdata_template=$TIMET$\t$HOSTNAME$\t$HOSTOUTPUT$\t$HOSTP > ERFDATA$ > xpdfile_service_perfdata_file=/usr/local/nagios/var/serviceperf.log > xpdfile_service_perfdata_template=$TIMET$\t$HOSTNAME$\t$SERVICEDESC$\t$S > ERVICEOU > TPUT$\t$SERVICESTATE$\t$SERVICEPERFDATA$ --with-file-perfdata has been removed, see the host_perfdata_file=/tmp/host-perfdata service_perfdata_file=/tmp/service-perfdata directives in nagios/sample-config/nagios.cfg.in - Matt ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lgetschel at denver.westerngeco.slb.com Wed Feb 9 00:21:22 2005 From: lgetschel at denver.westerngeco.slb.com (Lewis Getschel) Date: Tue, 08 Feb 2005 16:21:22 -0700 Subject: check_icmp In-Reply-To: <4208A7AD.90306@op5.se> References: <4208A7AD.90306@op5.se> Message-ID: <42094972.5020509@denver.westerngeco.slb.com> All- I just compiled check_icmp 1.0 (as myself) and for users other than root I get: Failed to obtain ICMP socket: Operation not permitted First as myself, second with sudo > ./check_icmp masterserver002 check_icmp: Failed to obtain ICMP socket: Operation not permitted > sudo ./check_icmp masterserver002 OK - masterserver002: rta 0.229ms, lost 0%|rta=0.229ms;200.000;500.000;0; pl=0%;40;80;; > Any suggestions for me to resolve this? Thanks, Lewis Andreas Ericsson wrote: > Bergstr?m Sebastian wrote: > >> Andreas Ericsson, I know you're involved in this so perhaps you could >> give me an answer? Anyone is encouraged to answer of course :o) >> > > Being the original author, I think I can. > >> I'm trying to find information about the check_icmp plugin for >> Nagios. Some e-mails in the past has touched this but I'm not getting >> the complete picture. Is there any webpage or other information >> channel that shows progress on the check_icmp development and perhaps >> some of it's benefits over check_ping (I assume _icmp is to replace >> _ping?). Some documentation like switches would be handy as well. >> >> Thanks in advance! >> > > check_icmp is included in the official plugin package as a drop-in > replacement for check_ping. check_icmp -h provides the necessary help > output. > > The latest version of check_icmp (as coded by my humble self) is > available at https://devel.op5.se/oss or http://oss.op5.se/nagios as > check_icmp-.tar.gz. Be aware that the code might change > without version increment while I'm researching a weird network error > on *bsd (most likely a kernel issue, but it's hard to know for sure), > although only for fixing this particular bug. Look for the mtime as > provided by apache to find out if it is indeed a new release or not (a > fresh one just hatched 2 seconds ago, actually). > >> >> Best regards, Sebastian Bergstroem >> >> ---------------------------------------------- Sebastian Bergstroem >> Technical coordinator Kunskapsskolan i Sverige AB >> sebastian.bergstroem at kunskapsskolan.se >> ----------------------------------------------- >> >> >> ------------------------------------------------------- SF email is >> sponsored by - The IT Product Guide Read honest & candid reviews on >> hundreds of IT Products from real users. Discover which products >> truly live up to the hype. Start reading now. >> http://ads.osdn.com/?ad_ide95&alloc_id396&op=click >> _______________________________________________ Nagios-users mailing >> list Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please >> include Nagios version, plugin version (-v) and OS when reporting any >> issue. ::: Messages without supporting info will risk being sent to >> /dev/null >> > -- Lewis Getschel | Today is done... WesternGeco | Today was fun... 1625 Broadway | Tomorrow is another one. Denver, CO 80202 | Direct Phone - 303-389-4407| -- Dr. Seuss -- ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From micpre at aent.com Wed Feb 9 00:35:14 2005 From: micpre at aent.com (Michael J. Prentice) Date: Tue, 8 Feb 2005 18:35:14 -0500 Subject: check_icmp Message-ID: It needs to have a SUID of root. In case you are like me and new to Linux you do that by; Chown root check_icmp Chgrp root check_icmp Chmod u+s check_icmp Chmod g+s check_icmp Of course there might be a quicker way to do that.. Michael J. Prentice AEC One Stop Group Inc. Phone (954) 255-4359 -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Lewis Getschel Sent: Tuesday, February 08, 2005 6:21 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] check_icmp All- I just compiled check_icmp 1.0 (as myself) and for users other than root I get: Failed to obtain ICMP socket: Operation not permitted First as myself, second with sudo > ./check_icmp masterserver002 check_icmp: Failed to obtain ICMP socket: Operation not permitted > sudo ./check_icmp masterserver002 OK - masterserver002: rta 0.229ms, lost 0%|rta=0.229ms;200.000;500.000;0; pl=0%;40;80;; > Any suggestions for me to resolve this? Thanks, Lewis Andreas Ericsson wrote: > Bergstr?m Sebastian wrote: > >> Andreas Ericsson, I know you're involved in this so perhaps you could >> give me an answer? Anyone is encouraged to answer of course :o) >> > > Being the original author, I think I can. > >> I'm trying to find information about the check_icmp plugin for >> Nagios. Some e-mails in the past has touched this but I'm not getting >> the complete picture. Is there any webpage or other information >> channel that shows progress on the check_icmp development and perhaps >> some of it's benefits over check_ping (I assume _icmp is to replace >> _ping?). Some documentation like switches would be handy as well. >> >> Thanks in advance! >> > > check_icmp is included in the official plugin package as a drop-in > replacement for check_ping. check_icmp -h provides the necessary help > output. > > The latest version of check_icmp (as coded by my humble self) is > available at https://devel.op5.se/oss or http://oss.op5.se/nagios as > check_icmp-.tar.gz. Be aware that the code might change > without version increment while I'm researching a weird network error > on *bsd (most likely a kernel issue, but it's hard to know for sure), > although only for fixing this particular bug. Look for the mtime as > provided by apache to find out if it is indeed a new release or not (a > fresh one just hatched 2 seconds ago, actually). > >> >> Best regards, Sebastian Bergstroem >> >> ---------------------------------------------- Sebastian Bergstroem >> Technical coordinator Kunskapsskolan i Sverige AB >> sebastian.bergstroem at kunskapsskolan.se >> ----------------------------------------------- >> >> >> ------------------------------------------------------- SF email is >> sponsored by - The IT Product Guide Read honest & candid reviews on >> hundreds of IT Products from real users. Discover which products >> truly live up to the hype. Start reading now. >> http://ads.osdn.com/?ad_ide95&alloc_id396&op=click >> _______________________________________________ Nagios-users mailing >> list Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please >> include Nagios version, plugin version (-v) and OS when reporting any >> issue. ::: Messages without supporting info will risk being sent to >> /dev/null >> > -- Lewis Getschel | Today is done... WesternGeco | Today was fun... 1625 Broadway | Tomorrow is another one. Denver, CO 80202 | Direct Phone - 303-389-4407| -- Dr. Seuss -- ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=ick _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lgetschel at denver.westerngeco.slb.com Wed Feb 9 00:48:43 2005 From: lgetschel at denver.westerngeco.slb.com (Lewis Getschel) Date: Tue, 08 Feb 2005 16:48:43 -0700 Subject: check_icmp In-Reply-To: References: Message-ID: <42094FDB.9040508@denver.westerngeco.slb.com> Ah, of course! Thanks for the steps too :-) It works now. Michael J. Prentice wrote: >It needs to have a SUID of root. In case you are like me and new to Linux you do that by; > >Chown root check_icmp >Chgrp root check_icmp >Chmod u+s check_icmp >Chmod g+s check_icmp > >Of course there might be a quicker way to do that.. > >Michael J. Prentice >AEC One Stop Group Inc. >Phone (954) 255-4359 > > >-----Original Message----- >From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Lewis Getschel >Sent: Tuesday, February 08, 2005 6:21 PM >To: nagios-users at lists.sourceforge.net >Subject: Re: [Nagios-users] check_icmp > >All- > I just compiled check_icmp 1.0 (as myself) and for users other than >root I get: >Failed to obtain ICMP socket: Operation not permitted > >First as myself, second with sudo > > ./check_icmp masterserver002 >check_icmp: Failed to obtain ICMP socket: Operation not permitted > > sudo ./check_icmp masterserver002 >OK - masterserver002: rta 0.229ms, lost >0%|rta=0.229ms;200.000;500.000;0; pl=0%;40;80;; > > > >Any suggestions for me to resolve this? >Thanks, >Lewis > >Andreas Ericsson wrote: > > > >>Bergstr?m Sebastian wrote: >> >> >> >>>Andreas Ericsson, I know you're involved in this so perhaps you could >>>give me an answer? Anyone is encouraged to answer of course :o) >>> >>> >>> >>Being the original author, I think I can. >> >> >> >>>I'm trying to find information about the check_icmp plugin for >>>Nagios. Some e-mails in the past has touched this but I'm not getting >>>the complete picture. Is there any webpage or other information >>>channel that shows progress on the check_icmp development and perhaps >>>some of it's benefits over check_ping (I assume _icmp is to replace >>>_ping?). Some documentation like switches would be handy as well. >>> >>>Thanks in advance! >>> >>> >>> >>check_icmp is included in the official plugin package as a drop-in >>replacement for check_ping. check_icmp -h provides the necessary help >>output. >> >>The latest version of check_icmp (as coded by my humble self) is >>available at https://devel.op5.se/oss or http://oss.op5.se/nagios as >>check_icmp-.tar.gz. Be aware that the code might change >>without version increment while I'm researching a weird network error >>on *bsd (most likely a kernel issue, but it's hard to know for sure), >>although only for fixing this particular bug. Look for the mtime as >>provided by apache to find out if it is indeed a new release or not (a >>fresh one just hatched 2 seconds ago, actually). >> >> >> >>>Best regards, Sebastian Bergstroem >>> >>>---------------------------------------------- Sebastian Bergstroem >>>Technical coordinator Kunskapsskolan i Sverige AB >>>sebastian.bergstroem at kunskapsskolan.se >>>----------------------------------------------- >>> >>> >>>------------------------------------------------------- SF email is >>>sponsored by - The IT Product Guide Read honest & candid reviews on >>>hundreds of IT Products from real users. Discover which products >>>truly live up to the hype. Start reading now. >>>http://ads.osdn.com/?ad_ide95&alloc_id396&op=click >>>_______________________________________________ Nagios-users mailing >>>list Nagios-users at lists.sourceforge.net >>>https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please >>>include Nagios version, plugin version (-v) and OS when reporting any >>>issue. ::: Messages without supporting info will risk being sent to >>>/dev/null >>> >>> >>> > > > -- Lewis Getschel | Today is done... WesternGeco | Today was fun... 1625 Broadway | Tomorrow is another one. Denver, CO 80202 | Direct Phone - 303-389-4407| -- Dr. Seuss -- ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Joe.Leone at Beacon.com.au Wed Feb 9 00:59:28 2005 From: Joe.Leone at Beacon.com.au (Joe Leone) Date: Wed, 9 Feb 2005 07:59:28 +0800 Subject: Getting this error Message-ID: <625D3E3C37F378439E59202BA15ADBD2C83319@opal.beacon.com.au> I am also getting the error. I am running RedHat 8, Fedora core2 and Fedora core3. The errors occurs on Fedora core 3 only. I get the same error on all Fedora core3 boxes. I have downloaded and compiled the plug-in 1.3 and 1.4. This did not resolve the error. Running the command locally /usr/local/nagios/libexec/check_procs -c 1:1 -C crond System call sent warnings to stderr OK - 1 processes running with command name crond Output from strace # strace ./check_procs -c 1:1 -C /usr/sbin/cron execve("./check_procs", ["./check_procs", "-c", "1:1", "-C", "/usr/sbin/cron"], [/* 18 vars */]) = 0 uname({sys="Linux", node="app-dev", ...}) = 0 brk(0) = 0x99cd000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=20694, ...}) = 0 old_mmap(NULL, 20694, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf6ffa000 close(3) = 0 open("/lib/tls/libc.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \337\242"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=1512400, ...}) = 0 old_mmap(0xa19000, 1207532, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xa19000 old_mmap(0xb3a000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x120000) = 0xb3a000 old_mmap(0xb3e000, 7404, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb3e000 close(3) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf6ff9000 mprotect(0xb3a000, 8192, PROT_READ) = 0 mprotect(0xa15000, 4096, PROT_READ) = 0 set_thread_area({entry_number:-1 -> 6, base_addr:0xf6ff98e0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0 munmap(0xf6ffa000, 20694) = 0 brk(0) = 0x99cd000 brk(0x99ee000) = 0x99ee000 open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=38680544, ...}) = 0 mmap2(NULL, 2097152, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf6df9000 mmap2(NULL, 4096, PROT_READ, MAP_PRIVATE, 3, 0x7c5) = 0xf6df8000 close(3) = 0 open("/usr/share/locale/locale.alias", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=2528, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf6df7000 read(3, "# Locale name alias data base.\n#"..., 4096) = 2528 read(3, "", 4096) = 0 close(3) = 0 munmap(0xf6df7000, 4096) = 0 open("/usr/local/nagios/share/locale/en_AU.UTF-8/LC_MESSAGES/nagios-plug ins.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/nagios/share/locale/en_AU.utf8/LC_MESSAGES/nagios-plugi ns.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/nagios/share/locale/en_AU/LC_MESSAGES/nagios-plugins.mo ", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/nagios/share/locale/en.UTF-8/LC_MESSAGES/nagios-plugins .mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/nagios/share/locale/en.utf8/LC_MESSAGES/nagios-plugins. mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/nagios/share/locale/en/LC_MESSAGES/nagios-plugins.mo", O_RDONLY) = -1 ENOENT (No such file or directory) rt_sigaction(SIGALRM, {0x804b3fc, [ALRM], SA_RESTORER|SA_RESTART, 0xa40a48}, {SIG_DFL}, 8) = 0 alarm(10) = 0 getrlimit(RLIMIT_CORE, {rlim_cur=0, rlim_max=0}) = 0 setrlimit(RLIMIT_CORE, {rlim_cur=0, rlim_max=0}) = 0 getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0 pipe([3, 4]) = 0 pipe([5, 6]) = 0 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xf6ff9928) = 13639 close(4) = 0 fcntl64(3, F_GETFL) = 0 (flags O_RDONLY) fstat64(3, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf6df7000 _llseek(3, 0, 0xfee2b0fc, SEEK_CUR) = -1 ESPIPE (Illegal seek) close(6) = 0 fcntl64(5, F_GETFL) = 0 (flags O_RDONLY) fstat64(5, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf6df6000 _llseek(5, 0, 0xfee2b15c, SEEK_CUR) = -1 ESPIPE (Illegal seek) read(3, "STAT UID PPID VSZ RSS %CPU"..., 4096) = 3977 read(3, "", 4096) = 0 read(5, "Warning: bad syntax, perhaps a b"..., 4096) = 78 fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf6df5000 write(1, "System call sent warnings to std"..., 36System call sent warnings to stderr ) = 36 read(5, "", 4096) = 0 close(5) = 0 munmap(0xf6df6000, 4096) = 0 close(3) = 0 munmap(0xf6df7000, 4096) = 0 waitpid(13639, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 13639 --- SIGCHLD (Child exited) @ 0 (0) --- write(1, "PROCS CRITICAL: 0 processes with"..., 63PROCS CRITICAL: 0 processes with command name '/usr/sbin/cron' ) = 63 munmap(0xf6df5000, 4096) = 0 exit_group(2) = ? Any help appreciated Joe Joe.Leone at beacon.com.au -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Harper Mann Sent: Saturday, 29 January 2005 7:41 AM To: 'MIchael B. Day'; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Getting this error This looks like it's from the check_proc plugin that is running on 64.182.35.81. Do you get the error when it's run locally? If you are out of swap, that could cause this. If you can reproduce the error by running check_procs locally, you can run strace "". Strace shows system calls and should tell which one is complaining. Post output here and we'll see what kind of suggestions we can make. Regards, - Harper Harper Mann Groundwork Open Source Solutions 510-599-2075 (cell) http://itgroundwork.com > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of MIchael B. Day > Sent: Friday, January 28, 2005 11:55 AM > To: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Getting this error > > I'm getting the follow error and can not find out why. If any one has any > idea please let me know. > This was emailed to me from the Nagios system. > > ***** Nagios ***** > > Notification Type: PROBLEM > > Service: Total Processes > Host: Linux Server #1 > Address: 64.182.35.81 > State: WARNING > > Date/Time: Thu Jan 27 13:28:20 CST 2005 > > Additional Info: > > System call sent warnings to stderr > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please 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: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ratty at they.org Wed Feb 9 02:59:36 2005 From: ratty at they.org (frank) Date: Tue, 8 Feb 2005 17:59:36 -0800 (PST) Subject: Found it! RE: Getting this error Message-ID: I came across this just today myself. I'm confused as to why I never hit it before because the bug is in the plugins 1.4-beta1 also and I've been using it for a couple weeks. The problem is how check_procs calls the 'ps' command. After running ./configure on the plugins you'll find a config.h file that defines a ton of things, including: #define PS_COMMAND "/bin/ps -axwo 'stat uid ppid vsz rss pcpu comm args'" The args to 'ps' are clearly BSD based, but they're being called in the SysV style. >From the 'ps' man-page: COMMAND-LINE OPTIONS This version of ps accepts several kinds of options: 1 UNIX options, which may be grouped and must be preceeded by a dash. 2 BSD options, which may be grouped and must not be used with a dash. 3 GNU long options, which are preceeded by two dashes. Options of different types may be freely mixed, but conflicts can appear. There are some synonomous options, which are functionally identical, due to the many standards and ps implementations that this ps is compatible with. Note that "ps -aux" is distinct from "ps aux". The POSIX and UNIX standards require that "ps -aux" print all processes owned by a user named "x", as well as printing all processes that would be selected by the -a option. If the user named "x" does not exist, this ps may interpret the command as "ps aux" instead and print a warning. This behavior is intended to aid in transitioning old scripts and habits. It is fragile, subject to change, and thus should not be relied upon. This can be fixed by hand between the ./configure and make commands by editing the config.h but really its up to the package owner to fix it in configure.in and re-release. -frank P.S. It can be helpful to run your strace commands with a '-sX' option (where X is a reasonable integer) so your read() and write() calls display more of the data being read and written. The default is 32 characters. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From s.shipway at auckland.ac.nz Wed Feb 9 03:24:11 2005 From: s.shipway at auckland.ac.nz (Steve Shipway) Date: Wed, 9 Feb 2005 15:24:11 +1300 Subject: Host searchbox for lefthand menu v0.2 In-Reply-To: <039401c50d7d$204cbbe0$01fea8c0@itss.auckland.ac.nz> References: <039401c50d7d$204cbbe0$01fea8c0@itss.auckland.ac.nz> Message-ID: <03f201c50e4e$72410970$01fea8c0@itss.auckland.ac.nz> Thanks to Stinkybob, I've found that Nagios::Object version 0.7c is not compatible with my searchbox (I was using v0.5). Version 0.2 of the searchbox is now on the Nagios Exchange, and this one works correctly with Nagios::Object v0.7c. All you who use Nagios v2.0 can sit happily in the knowledge that you don't need this add-on, anyway. :) Steve ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Feb 9 10:06:39 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 09 Feb 2005 10:06:39 +0100 Subject: check_icmp In-Reply-To: References: Message-ID: <4209D29F.7090900@op5.se> Michael J. Prentice wrote: > It needs to have a SUID of root. In case you are like me and new to Linux you do that by; > > Chown root check_icmp > Chgrp root check_icmp > Chmod u+s check_icmp > Chmod g+s check_icmp > > Of course there might be a quicker way to do that.. > That quicker way would be chown root:root check_icmp; chmod 4755 check_icmp The chmod g+s check_icmp isn't strictly necessary. > Michael J. Prentice > AEC One Stop Group Inc. > Phone (954) 255-4359 > > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Lewis Getschel > Sent: Tuesday, February 08, 2005 6:21 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] check_icmp > > All- > I just compiled check_icmp 1.0 (as myself) and for users other than > root I get: > Failed to obtain ICMP socket: Operation not permitted > > First as myself, second with sudo > > ./check_icmp masterserver002 > check_icmp: Failed to obtain ICMP socket: Operation not permitted > > sudo ./check_icmp masterserver002 > OK - masterserver002: rta 0.229ms, lost > 0%|rta=0.229ms;200.000;500.000;0; pl=0%;40;80;; > > > > Any suggestions for me to resolve this? > Thanks, > Lewis > > Andreas Ericsson wrote: > > >>Bergstr?m Sebastian wrote: >> >> >>>Andreas Ericsson, I know you're involved in this so perhaps you could >>>give me an answer? Anyone is encouraged to answer of course :o) >>> >> >>Being the original author, I think I can. >> >> >>>I'm trying to find information about the check_icmp plugin for >>>Nagios. Some e-mails in the past has touched this but I'm not getting >>>the complete picture. Is there any webpage or other information >>>channel that shows progress on the check_icmp development and perhaps >>>some of it's benefits over check_ping (I assume _icmp is to replace >>>_ping?). Some documentation like switches would be handy as well. >>> >>>Thanks in advance! >>> >> >>check_icmp is included in the official plugin package as a drop-in >>replacement for check_ping. check_icmp -h provides the necessary help >>output. >> >>The latest version of check_icmp (as coded by my humble self) is >>available at https://devel.op5.se/oss or http://oss.op5.se/nagios as >>check_icmp-.tar.gz. Be aware that the code might change >>without version increment while I'm researching a weird network error >>on *bsd (most likely a kernel issue, but it's hard to know for sure), >>although only for fixing this particular bug. Look for the mtime as >>provided by apache to find out if it is indeed a new release or not (a >>fresh one just hatched 2 seconds ago, actually). >> >> >>>Best regards, Sebastian Bergstroem >>> >>>---------------------------------------------- Sebastian Bergstroem >>>Technical coordinator Kunskapsskolan i Sverige AB >>>sebastian.bergstroem at kunskapsskolan.se >>>----------------------------------------------- >>> >>> >>>------------------------------------------------------- SF email is >>>sponsored by - The IT Product Guide Read honest & candid reviews on >>>hundreds of IT Products from real users. Discover which products >>>truly live up to the hype. Start reading now. >>>http://ads.osdn.com/?ad_ide95&alloc_id396&op=click >>>_______________________________________________ Nagios-users mailing >>>list Nagios-users at lists.sourceforge.net >>>https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please >>>include Nagios version, plugin version (-v) and OS when reporting any >>>issue. ::: Messages without supporting info will risk being sent to >>>/dev/null >>> >> > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Feb 9 10:13:12 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 09 Feb 2005 10:13:12 +0100 Subject: Getting this error In-Reply-To: <625D3E3C37F378439E59202BA15ADBD2C83319@opal.beacon.com.au> References: <625D3E3C37F378439E59202BA15ADBD2C83319@opal.beacon.com.au> Message-ID: <4209D428.3020004@op5.se> Joe Leone wrote: > I am also getting the error. I am running RedHat 8, Fedora core2 and > Fedora core3. The errors occurs on Fedora core 3 only. I get the same > error on all Fedora core3 boxes. > I have downloaded and compiled the plug-in 1.3 and 1.4. This did not > resolve the error. > > Running the command locally > /usr/local/nagios/libexec/check_procs -c 1:1 -C crond > System call sent warnings to stderr > OK - 1 processes running with command name crond > > > Output from strace > > > # strace ./check_procs -c 1:1 -C /usr/sbin/cron > execve("./check_procs", ["./check_procs", "-c", "1:1", "-C", > "/usr/sbin/cron"], [/* 18 vars */]) = 0 > uname({sys="Linux", node="app-dev", ...}) = 0 > brk(0) = 0x99cd000 > access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or > directory) > open("/etc/ld.so.cache", O_RDONLY) = 3 > fstat64(3, {st_mode=S_IFREG|0644, st_size=20694, ...}) = 0 > old_mmap(NULL, 20694, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf6ffa000 > close(3) = 0 > open("/lib/tls/libc.so.6", O_RDONLY) = 3 > read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \337\242"..., > 512) = 512 > fstat64(3, {st_mode=S_IFREG|0755, st_size=1512400, ...}) = 0 > old_mmap(0xa19000, 1207532, PROT_READ|PROT_EXEC, > MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xa19000 > old_mmap(0xb3a000, 16384, PROT_READ|PROT_WRITE, > MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x120000) = 0xb3a000 > old_mmap(0xb3e000, 7404, PROT_READ|PROT_WRITE, > MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb3e000 > close(3) = 0 > old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, > -1, 0) = 0xf6ff9000 > mprotect(0xb3a000, 8192, PROT_READ) = 0 > mprotect(0xa15000, 4096, PROT_READ) = 0 > set_thread_area({entry_number:-1 -> 6, base_addr:0xf6ff98e0, > limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, > limit_in_pages:1, seg_not_present:0, useable:1}) = 0 > munmap(0xf6ffa000, 20694) = 0 > brk(0) = 0x99cd000 > brk(0x99ee000) = 0x99ee000 > open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3 > fstat64(3, {st_mode=S_IFREG|0644, st_size=38680544, ...}) = 0 > mmap2(NULL, 2097152, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf6df9000 > mmap2(NULL, 4096, PROT_READ, MAP_PRIVATE, 3, 0x7c5) = 0xf6df8000 > close(3) = 0 > open("/usr/share/locale/locale.alias", O_RDONLY) = 3 > fstat64(3, {st_mode=S_IFREG|0644, st_size=2528, ...}) = 0 > mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, > 0) = 0xf6df7000 > read(3, "# Locale name alias data base.\n#"..., 4096) = 2528 > read(3, "", 4096) = 0 > close(3) = 0 > munmap(0xf6df7000, 4096) = 0 > open("/usr/local/nagios/share/locale/en_AU.UTF-8/LC_MESSAGES/nagios-plug > ins.mo", O_RDONLY) = -1 ENOENT (No such file or directory) > open("/usr/local/nagios/share/locale/en_AU.utf8/LC_MESSAGES/nagios-plugi > ns.mo", O_RDONLY) = -1 ENOENT (No such file or directory) > open("/usr/local/nagios/share/locale/en_AU/LC_MESSAGES/nagios-plugins.mo > ", O_RDONLY) = -1 ENOENT (No such file or directory) > open("/usr/local/nagios/share/locale/en.UTF-8/LC_MESSAGES/nagios-plugins > .mo", O_RDONLY) = -1 ENOENT (No such file or directory) > open("/usr/local/nagios/share/locale/en.utf8/LC_MESSAGES/nagios-plugins. > mo", O_RDONLY) = -1 ENOENT (No such file or directory) > open("/usr/local/nagios/share/locale/en/LC_MESSAGES/nagios-plugins.mo", > O_RDONLY) = -1 ENOENT (No such file or directory) > rt_sigaction(SIGALRM, {0x804b3fc, [ALRM], SA_RESTORER|SA_RESTART, > 0xa40a48}, {SIG_DFL}, 8) = 0 > alarm(10) = 0 > getrlimit(RLIMIT_CORE, {rlim_cur=0, rlim_max=0}) = 0 > setrlimit(RLIMIT_CORE, {rlim_cur=0, rlim_max=0}) = 0 > getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0 > pipe([3, 4]) = 0 > pipe([5, 6]) = 0 > clone(child_stack=0, > flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, > child_tidptr=0xf6ff9928) = 13639 > close(4) = 0 > fcntl64(3, F_GETFL) = 0 (flags O_RDONLY) > fstat64(3, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0 > mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, > 0) = 0xf6df7000 > _llseek(3, 0, 0xfee2b0fc, SEEK_CUR) = -1 ESPIPE (Illegal seek) > close(6) = 0 > fcntl64(5, F_GETFL) = 0 (flags O_RDONLY) > fstat64(5, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0 > mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, > 0) = 0xf6df6000 > _llseek(5, 0, 0xfee2b15c, SEEK_CUR) = -1 ESPIPE (Illegal seek) > read(3, "STAT UID PPID VSZ RSS %CPU"..., 4096) = 3977 > read(3, "", 4096) = 0 > read(5, "Warning: bad syntax, perhaps a b"..., 4096) = 78 > fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0 > mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, > 0) = 0xf6df5000 > write(1, "System call sent warnings to std"..., 36System call sent > warnings to stderr > ) = 36 This is wildly inaccurate. It should say "Command sent warnings to stderr". A system call never sends warnings anywhere, except on to the stack in the form of a 32 bit number. > read(5, "", 4096) = 0 > close(5) = 0 > munmap(0xf6df6000, 4096) = 0 > close(3) = 0 > munmap(0xf6df7000, 4096) = 0 > waitpid(13639, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 13639 > --- SIGCHLD (Child exited) @ 0 (0) --- > write(1, "PROCS CRITICAL: 0 processes with"..., 63PROCS CRITICAL: 0 > processes with command name '/usr/sbin/cron' > ) = 63 > munmap(0xf6df5000, 4096) = 0 > exit_group(2) = ? > > > > > > Any help appreciated > It basically means that your ps as invoked by the check_proc plugin printed something on stderr. In this case it was "Warning: bad syntax, perhaps a b" followed by something which was cut by strace. > Joe > > Joe.Leone at beacon.com.au > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Harper > Mann > Sent: Saturday, 29 January 2005 7:41 AM > To: 'MIchael B. Day'; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Getting this error > > This looks like it's from the check_proc plugin that is running on > 64.182.35.81. Do you get the error when it's run locally? > > If you are out of swap, that could cause this. > > If you can reproduce the error by running check_procs locally, you can > run > strace "". Strace shows > system > calls and should tell which one is complaining. > > Post output here and we'll see what kind of suggestions we can make. > > Regards, > > - Harper > > Harper Mann > Groundwork Open Source Solutions > 510-599-2075 (cell) > http://itgroundwork.com > > > >>-----Original Message----- >>From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- >>admin at lists.sourceforge.net] On Behalf Of MIchael B. Day >>Sent: Friday, January 28, 2005 11:55 AM >>To: nagios-users at lists.sourceforge.net >>Subject: RE: [Nagios-users] Getting this error >> >>I'm getting the follow error and can not find out why. If any one has > > any > >>idea please let me know. >>This was emailed to me from the Nagios system. >> >>***** Nagios ***** >> >>Notification Type: PROBLEM >> >>Service: Total Processes >>Host: Linux Server #1 >>Address: 64.182.35.81 >>State: WARNING >> >>Date/Time: Thu Jan 27 13:28:20 CST 2005 >> >>Additional Info: >> >>System call sent warnings to stderr >> >> >> >>------------------------------------------------------- >>This SF.Net email is sponsored by: IntelliVIEW -- Interactive > > Reporting > >>Tool for open source databases. Create drag-&-drop reports. Save time >>by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. >>Download a FREE copy at http://www.intelliview.com/go/osdn_nl >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >>::: Please 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: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From soydamaso at gmail.com Wed Feb 9 10:23:07 2005 From: soydamaso at gmail.com (Pedro A. Damaso) Date: Wed, 09 Feb 2005 10:23:07 +0100 Subject: Check services with NC_NET with nsca Message-ID: <1107940987.3496.16.camel@damaso> I'm trying to recover information from windows machines out of my network. They are behind a router because of that I'm planning to use the passive checks from NC_Net. Rigth now I'm trying to configure one host but I'm lost about the sintax of service check that I must use in my nagios server. For this moment this is my configuration: Windows Machine: passive.cfg ---- 1 clientversion 2 cputotal -l 10,80,90,5,20,90 3 uptime Nagios Server: ------------- | hosts.cfg | ------------- define host { name windows-nsca ; nombre de la clase de la que deben heredar todos los chequeos pasivos notifications_enabled 1 ; Host notifications are enabled check_command ; asi esta bien max_check_attempts 1 ; como no hacemos check-command, esto tloco event_handler_enabled 0 ; Host event handler is disabled flap_detection_enabled 1 ; Flap detection is disabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! passive 1 ; Tipo de Chequeo } define host { use windows-nsca host_name XP_Ofi alias Xp de la Ofi address 192.168.1.203 notification_interval 120 notification_period 24x7 notification_options d,u,r register 1; } ---------------- | services.cfg | ---------------- define service { name windows-service-nsca ; The 'name' of this service template, referenced in other service definitions active_checks_enabled 0 ; Active service checks are disabled is_volatile 0 ; no es un servicio volatil passive_checks_enabled 1 ; Passive service checks are enabled/accepted parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major performance problems) obsess_over_service 1 ; We should obsess over this service (if necessary) check_freshness 0 ; Default is to NOT check service 'freshness' notifications_enabled 1 ; Service notifications are enabled event_handler_enabled 1 ; Service event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! } define service { host_name XP_Ofi service_description XP monitorized with NC_Net with passive support check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups admins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command ????????????????????? } Thanks -- Pedro Antonio D?maso Guill?n Avansys Asesores soydamaso at gmail.com ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Feb 9 11:00:45 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 09 Feb 2005 11:00:45 +0100 Subject: Check services with NC_NET with nsca In-Reply-To: <1107940987.3496.16.camel@damaso> References: <1107940987.3496.16.camel@damaso> Message-ID: <4209DF4D.3060908@op5.se> Pedro A. Damaso wrote: > I'm trying to recover information from windows machines out of my > network. They are behind a router because of that I'm planning to use > the passive checks from NC_Net. Rigth now I'm trying to configure one > host but I'm lost about the sintax of service check that I must use in > my nagios server. > > For this moment this is my configuration: > > Windows Machine: > > passive.cfg ---- > > 1 clientversion > 2 cputotal -l 10,80,90,5,20,90 > 3 uptime > > Nagios Server: > > ------------- > | hosts.cfg | > ------------- > > define host { > name windows-nsca ; nombre de la clase de > la que deben heredar todos los chequeos pasivos > notifications_enabled 1 ; Host notifications are enabled > check_command ; asi esta bien > max_check_attempts 1 ; como no hacemos check-command, > esto tloco > event_handler_enabled 0 ; Host event handler is disabled > flap_detection_enabled 1 ; Flap detection is disabled > process_perf_data 1 ; Process performance data > retain_status_information 1 ; Retain status information > across program restarts > retain_nonstatus_information 1 ; Retain non-status information > across program restarts > register 0 ; DONT REGISTER THIS DEFINITION - > ITS NOT A REAL HOST, JUST A TEMPLATE! > passive 1 ; Tipo de Chequeo > } > > define host { > use windows-nsca > host_name XP_Ofi > alias Xp de la Ofi > address 192.168.1.203 > notification_interval 120 > notification_period 24x7 > notification_options d,u,r > register 1; > } > > ---------------- > | services.cfg | > ---------------- > > define service { > name windows-service-nsca ; The 'name' of > this service template, referenced in other service definitions > active_checks_enabled 0 ; Active service checks are > disabled > is_volatile 0 ; no es un servicio volatil > passive_checks_enabled 1 ; Passive service checks are > enabled/accepted > parallelize_check 1 ; Active service checks should > be parallelized (disabling this can lead to major performance problems) > obsess_over_service 1 ; We should obsess over this > service (if necessary) > check_freshness 0 ; Default is to NOT check > service 'freshness' > notifications_enabled 1 ; Service notifications are > enabled > event_handler_enabled 1 ; Service event handler is > enabled > flap_detection_enabled 1 ; Flap detection is enabled > process_perf_data 1 ; Process performance data > retain_status_information 1 ; Retain status information > across program restarts > retain_nonstatus_information 1 ; Retain non-status information > across program restarts > register 0 ; DONT REGISTER THIS DEFINITION > - ITS NOT A REAL SERVICE, JUST A TEMPLATE! > } > > define service { > host_name XP_Ofi > service_description XP monitorized with NC_Net with passive > support > check_period 24x7 > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 1 > contact_groups admins > notification_interval 120 > notification_period 24x7 > notification_options w,u,c,r > check_command ????????????????????? > } > > > Thanks > Was there a question in here or were you just telling us of your plans? If you're referring to the thousand and one question marks at check_command, set it to something that returns critical upon invocation but set the check_period (or some such) to none. Then read up on freshness checking and implement away til your heart's content. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From soydamaso at gmail.com Wed Feb 9 11:15:14 2005 From: soydamaso at gmail.com (Pedro A. Damaso) Date: Wed, 09 Feb 2005 11:15:14 +0100 Subject: Check services with NC_NET with nsca In-Reply-To: <4209DF4D.3060908@op5.se> References: <1107940987.3496.16.camel@damaso> <4209DF4D.3060908@op5.se> Message-ID: <1107944114.4695.14.camel@damaso> > > define service { > > host_name XP_Ofi > > service_description XP monitorized with NC_Net with passive > > support > > check_period 24x7 > > max_check_attempts 3 > > normal_check_interval 5 > > retry_check_interval 1 > > contact_groups admins > > notification_interval 120 > > notification_period 24x7 > > notification_options w,u,c,r > > check_command ????????????????????? > > } > > > > > > Thanks > > > > Was there a question in here or were you just telling us of your plans? > If you're referring to the thousand and one question marks at > check_command, set it to something that returns critical upon invocation > but set the check_period (or some such) to none. Then read up on > freshness checking and implement away til your heart's content. > Oh!, yes there's a question. What should I put in here in order to recover information from nsca: check_command ????????????????????? I have read the NC_Net doc, nagios doc, and I haven't found what command and sintax should I use to recover information from nsca daemon. Thanks. -- Pedro Antonio D?maso Guill?n Avansys Asesores soydamaso at gmail.com ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ovig.degrouard at jouy.inra.fr Wed Feb 9 11:32:26 2005 From: ovig.degrouard at jouy.inra.fr (Ovig Degrouard) Date: Wed, 09 Feb 2005 11:32:26 +0100 Subject: hostgroup_name in servicegroup Message-ID: <4209E6BA.5070700@jouy.inra.fr> Hi, Is it possible to add a hostgroup instead of a host in my servicegroup.cfg? I remember the original syntax: define servicegroup{ servicegroup_name dbservices alias Database Services members ms1,SQL Server,ms2,SQL Server,ms3,SQL Server } How to replace all my hosts by my hostgroup? Thanks, Ovig Degrouard ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mmonge at gmail.com Wed Feb 9 12:06:52 2005 From: mmonge at gmail.com (Marcos Monge) Date: Wed, 9 Feb 2005 12:06:52 +0100 Subject: nagios running under RHCluster stop checking Message-ID: <48e9aa4e050209030617ec130d@mail.gmail.com> Hi I have installed "succesfull" a nagios under a Redhat Cluster suite of 2 nodes, sharing disk with iSCSI exported from a Netapp Filer. All in a RHES 3.0 update4. In general it work fine, switch from one node to the other without problem, and all seens ok. But after some time running (that it's, some moment beteween 1 hour and 1 week from last start) nagios stop executing the checks. All the daemons are running, the web cgi interface work, etc. But if you see the "scheduling queue" for example, the "next check" time is stoped in the time that the problem beging. In the logs thereis no errors, all seens ok. Stop and start again nagios solve the problem until the next fail. Any idea about this problem? This beging from the moment that we put it under the cluster. When nagios was running alone in one machine, all was ok. Best Regards Marcos ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ataraxya_iii at yahoo.fr Wed Feb 9 13:07:34 2005 From: ataraxya_iii at yahoo.fr (aragorn angwen) Date: Wed, 9 Feb 2005 13:07:34 +0100 (CET) Subject: Nagios 1.2 : Status information - no output! Message-ID: <20050209120734.26144.qmail@web26801.mail.ukl.yahoo.com> Hi, I have installed Nagios successfully and I am now Logging into the web interface I can see that Nagios sees the servers as up, but the individual services on the boxes are all 'warning', and in the 'status information' column on the 'Service Detail' page I see the comment (No output!). It's probably a schoolboy error but I can't see anything obvious that would be causing these basic service checks to fail. Any ideas? I can provide config as and when required... Many thanks in advance. D?couvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails ! Cr?ez votre Yahoo! Mail sur http://fr.mail.yahoo.com/ ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Feb 9 14:06:06 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 09 Feb 2005 14:06:06 +0100 Subject: hostgroup_name in servicegroup In-Reply-To: <4209E6BA.5070700@jouy.inra.fr> References: <4209E6BA.5070700@jouy.inra.fr> Message-ID: <420A0ABE.8040406@op5.se> Ovig Degrouard wrote: > Hi, > > Is it possible to add a hostgroup instead of a host in my servicegroup.cfg? > No. > I remember the original syntax: > define servicegroup{ > servicegroup_name dbservices > alias Database Services > members ms1,SQL Server,ms2,SQL Server,ms3,SQL Server > } > > How to replace all my hosts by my hostgroup? > > > Thanks, > Ovig Degrouard > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk > being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From SrvFaucon at cslaval.qc.ca Wed Feb 9 15:05:11 2005 From: SrvFaucon at cslaval.qc.ca (Serveur-Faucon Surveillance) Date: Wed, 09 Feb 2005 09:05:11 -0500 Subject: =?ISO-8859-1?Q?R=E9p.=20:=20[Nagios-users]=20Nagios=201.2=20:=20?= =?ISO-8859-1?Q?Status=20information=20-=20no=20output!?= Message-ID: Yep, provide us the config. Did you red the entire doc? :) --------------------------------------------------- Alexandre Racine - www.gardienvirtuel.com Montr?al, Qu?bec, Canada >>> aragorn angwen 2005-02-09 07:07:34 >>> Hi, I have installed Nagios successfully and I am now Logging into the web interface I can see that Nagios sees the servers as up, but the individual services on the boxes are all 'warning', and in the 'status information' column on the 'Service Detail' page I see the comment (No output!). It's probably a schoolboy error but I can't see anything obvious that would be causing these basic service checks to fail. Any ideas? I can provide config as and when required... Many thanks in advance. D?couvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails ! Cr?ez votre Yahoo! Mail sur http://fr.mail.yahoo.com/ ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.Kemp at xerox.com Wed Feb 9 15:23:53 2005 From: Darren.Kemp at xerox.com (Kemp, Darren) Date: Wed, 9 Feb 2005 09:23:53 -0500 Subject: file perfdata issues. Message-ID: <330CE9F92C02064B86090D40B479712FD4D2AB@usa0300ms04.na.xerox.net> Thanks! Someone should update the 2.0 doc at http://nagios.sourceforge.net/docs/2_0/xpdfile.html to reflect the change. -dkk -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Matthew Kent Sent: Tuesday, February 08, 2005 5:27 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] file perfdata issues. On Tue, 2005-08-02 at 15:06 -0500, Kemp, Darren wrote: > I seem to be having issues getting file perfdata compiled into NAGIOS. > > I am running 2.0b1, compiled as so: > > ./configure --enable-embedded-perl --with-perlcache > --with-file-perfdata --with-command-group=nagcmd > > I then added the following to nagios.cfg: > > xpdfile_host_perfdata_file=/usr/local/nagios/var/hostperf.log > xpdfile_host_perfdata_template=$TIMET$\t$HOSTNAME$\t$HOSTOUTPUT$\t$HOSTP > ERFDATA$ > xpdfile_service_perfdata_file=/usr/local/nagios/var/serviceperf.log > xpdfile_service_perfdata_template=$TIMET$\t$HOSTNAME$\t$SERVICEDESC$\t$S > ERVICEOU > TPUT$\t$SERVICESTATE$\t$SERVICEPERFDATA$ --with-file-perfdata has been removed, see the host_perfdata_file=/tmp/host-perfdata service_perfdata_file=/tmp/service-perfdata directives in nagios/sample-config/nagios.cfg.in - Matt ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From SrvFaucon at cslaval.qc.ca Wed Feb 9 15:36:40 2005 From: SrvFaucon at cslaval.qc.ca (Serveur-Faucon Surveillance) Date: Wed, 09 Feb 2005 09:36:40 -0500 Subject: host down but up problem Message-ID: Hi all, I have been using Nagios for quite a while now over 2 years, so I am pretty familiar with it. One of my host recently went to a down state on the network status, but is actually UP. This is not FAQ F0015 or F0016 related, since the same command is used by all other hosts (and they are just fine). I use the check_host_alive default command to check on hosts status (yeah I know, I dont use the hip (new, cool) check_icmp from Andreas Ericsson for now. Later) So I went to my console to try a couple of things... ping myhost = ok! check_ping -H myhost etc etc = ok! (exactly like the check_host_alive) So... my next theory would be to erase everything from that host in the history, and start over. But before that, is there someone who actually had something like that? There was the bug witch two nagios process could run at the same time, but that's not it. Thanks! --------------------------------------------------- Alexandre Racine - www.gardienvirtuel.com Montr?al, Qu?bec, Canada ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From roland at robelix.com Wed Feb 9 15:40:14 2005 From: roland at robelix.com (robelix) Date: Wed, 09 Feb 2005 15:40:14 +0100 Subject: servicedependencies and recovery alerts Message-ID: <420A20CE.7000800@robelix.com> Hi, I've got some troubles with service dependencis - resulting in too many recovery alerts being sent. A short example: Service B and C depend on Service A. (mostly stuff like nrpe) So I defined dependencies: define servicedependency{ name a-deps host_name myhost service_description A dependent_host_name myhost execution_failure_criteria u,c notification_failure_criteria u,c register 0 } define servicedependency{ use a-deps dependent_service_description B } define servicedependency{ use a-deps dependent_service_description C } It works with Problem Alerts. A is checked more often, so when they all fail I usally get only the alert for serivce A. But when they recover I always get recovery alerts for A, B and C. Since I've got up to 25 dependent services on some hosts it can turn into an sms-flooder. Any ideas how to get rid of these additional recovery alerts. I want to get a recovery alert, but only the one for A. (nagios-1.2 on gentoo) -- Roland "Robelix" Obermayer http://www.robelix.com roland at robelix.com robelix at gmx.at robelix at web.de Jabber: robelix at jabber.at GPG encrypted Mail welcome Fingerprint: DE1E F624 C36A 9D64 090E 5D35 5927 AD7C B143 836A -- Drive C: not found! [Ignore] [Retry] [Linux] -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 256 bytes Desc: OpenPGP digital signature URL: From ae at op5.se Wed Feb 9 16:37:38 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 09 Feb 2005 16:37:38 +0100 Subject: host down but up problem In-Reply-To: References: Message-ID: <420A2E42.1080309@op5.se> Serveur-Faucon Surveillance wrote: > Hi all, > > I have been using Nagios for quite a while now over 2 years, so I am > pretty familiar with it. > > One of my host recently went to a down state on the network status, > but is actually UP. This is not FAQ F0015 or F0016 related, since the > same command is used by all other hosts (and they are just fine). > > I use the check_host_alive default command to check on hosts status > (yeah I know, I dont use the hip (new, cool) check_icmp from Andreas > Ericsson for now. Later) > Don't know about hip and cool, but you're probably better off without it. "Don't fix it if it ain't broken". > So I went to my console to try a couple of things... ping myhost = > ok! check_ping -H myhost etc etc = ok! (exactly like the > check_host_alive) > > So... my next theory would be to erase everything from that host in > the history, and start over. But before that, is there someone who > actually had something like that? > > There was the bug witch two nagios process could run at the same > time, but that's not it. Thanks! > This can happen properly when the host starts flapping while down and comes out OK on the other end of the flapping. Assuming you aren't running 2.0 with f among your notification_options, ofcourse. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From benoit.panizzon at imp.ch Wed Feb 9 17:13:16 2005 From: benoit.panizzon at imp.ch (Benoit Panizzon) Date: Wed, 9 Feb 2005 17:13:16 +0100 Subject: How to handle 'single bad' or 'trap' messages? Message-ID: <200502091713.17117.benoit.panizzon@imp.ch> Hi We have the requirement of handling what I call a 'single bad' message. When such an event happens, somebody would need to aknowledge the message and the status should turn to OK. Example: We monitor a logfile and get a message about say, memory corruption. This message stays in the logs, it's not going to be fixed, so it's being alerted as critical. But as soon as a tech has seen this message, he should be able to aknowledge it, order new memory and the message should turn green again. Antoher example: The backup software tells us that one host could not successfully be saved. => Alert. Tech in duty takes a look, acknowledges the problem. => ok. Does somebody have a solution how to implement that in nagios? Regards -- Beno?t Panizzon, ------------------------------------------------------------------------ ImproWare AG, UNIXSP & ISP Phone: +41 61 826 93 00 Zurlindenstrasse 29 Fax: +41 61 826 93 01 CH-4133 Pratteln Net: http://www.imp.ch/ ------------------------------------------------------------------------ ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From JoeRegular at gov.nl.ca Wed Feb 9 18:12:04 2005 From: JoeRegular at gov.nl.ca (Joe Regular) Date: Wed, 09 Feb 2005 13:42:04 -0330 Subject: Trends Not Working Message-ID: When trying to access the Trends section I get the following error. Has anyone encountered this before? Server error! The server encountered an internal error and was unable to complete your request. Error message: Premature end of script headers: trends.cgi If you think this is a server error, please contact the webmaster. Error 500 10.15.0.205 Wed Feb 9 13:05:50 2005 Apache/2.0.49 (Linux/SuSE) Thanks, Joe ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mpowell at ena.com Wed Feb 9 18:21:07 2005 From: mpowell at ena.com (Marc Powell) Date: Wed, 9 Feb 2005 11:21:07 -0600 Subject: Trends Not Working Message-ID: <2B79966571B4B842B9C07E9910E38CE602BF25@mismail.ena.com> > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Joe Regular > Sent: Wednesday, February 09, 2005 11:12 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Trends Not Working > > When trying to access the Trends section I get the following error. Has > anyone encountered this before? > > Server error! > The server encountered an internal error and was unable to complete > your request. > > Error message: > Premature end of script headers: trends.cgi > > If you think this is a server error, please contact the webmaster. > > Error 500 > 10.15.0.205 > Wed Feb 9 13:05:50 2005 > Apache/2.0.49 (Linux/SuSE) HTTP Error 500 is a generic error message when the web server can't figure out what the problem is. There will be more specific information in your apache error_log that should tell you what the problem is. If you can't decipher it, post the full error from the logs to the list as well as specifics about your environment. It's purely a guess but it may be that the gd libraries aren't in the default library path for your web server. -- Marc ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From philippe.lebreton at cti-paysloire.cnamts.fr Wed Feb 9 18:25:26 2005 From: philippe.lebreton at cti-paysloire.cnamts.fr (LEBRETON Philippe) Date: Wed, 09 Feb 2005 18:25:26 +0100 Subject: Nagios 1.2: Problem with archive Log Message-ID: <420A4786.9030506@cti-paysloire.cnamts.fr> Hello, i have problem with the archive log. For the same date i have to files : nagios-01-14-2005-00.log and nagios-01-14-2005-23.log The first file is empty and the second content informaion but the CGI use only the first file. where is the problem? thanks Philippe LEBRETON ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mpowell at ena.com Wed Feb 9 18:28:44 2005 From: mpowell at ena.com (Marc Powell) Date: Wed, 9 Feb 2005 11:28:44 -0600 Subject: Nagios 1.2: Problem with archive Log Message-ID: <2B79966571B4B842B9C07E9910E38CE602BF29@mismail.ena.com> > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of LEBRETON Philippe > Sent: Wednesday, February 09, 2005 11:25 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nagios 1.2: Problem with archive Log > > Hello, > > i have problem with the archive log. For the same date i have to files : > nagios-01-14-2005-00.log and nagios-01-14-2005-23.log > The first file is empty and the second content informaion but the CGI > use only the first file. > > where is the problem? http://www.nagios.org/faqs/viewfaq.php?faq_id=93 I suspect it's also possible for this to happen if you have multiple nagios processes running at the same time. -- Marc ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From csmann at gmail.com Wed Feb 9 20:48:33 2005 From: csmann at gmail.com (Chris Mann) Date: Wed, 9 Feb 2005 14:48:33 -0500 Subject: outages.cgi error Message-ID: <25de63b5050209114873e0e3a7@mail.gmail.com> My final issue with getting Nagios up and running. All of the other cgi's work correctly and wonderfully. However, when I try to access the outages.cgi from the web interface, I get the dreaded: It appears as though you do not have permission to view information you requested... If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI and check the authorization options in your CGI configuration file. I've RTFM'ed and googled and I'm at a loss as to where to go at this point. Any thoughts? -- Chris Mann "I was killing all my money, Spending brain cells just as fast" ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Sam.Reynolds at networkts.com Wed Feb 9 20:52:18 2005 From: Sam.Reynolds at networkts.com (Sam Reynolds) Date: Wed, 9 Feb 2005 14:52:18 -0500 Subject: Check_SNMP_INT.PL help needed Message-ID: <6A1DD050FEF19644B488BD3889A0A221733BEF@FLASH.nts.local> Hello all, I am trying to monitor my Cisco Routers Bandwidth utilization using check_snmp_int.pl. I can use the plugin so long as I don't use the -k switch. As I understand it, the -k switch creates a tmp file on the nagios server that it uses to compare the bandwidth, unfortunately it is unable to create the tmp file as I am checking an interface with a / in it (ie: Serial5/2). Is there a work around for this, or a better way of doing it? Thanks in advance. Sam -------------- next part -------------- An HTML attachment was scrubbed... URL: From ratty at they.org Wed Feb 9 21:02:44 2005 From: ratty at they.org (frank) Date: Wed, 9 Feb 2005 12:02:44 -0800 (PST) Subject: outages.cgi error In-Reply-To: <25de63b5050209114873e0e3a7@mail.gmail.com> References: <25de63b5050209114873e0e3a7@mail.gmail.com> Message-ID: >From output.c: /* user must be authorized for all hosts.. */ if(is_authorized_for_all_hosts(¤t_authdata)==FALSE){ >From cgi.cfg: authorized_for_all_hosts=nagiosadmin,guest Add/replace your login name in cgi.cfg .enjoy -f On Wed, 9 Feb 2005, Chris Mann wrote: > Date: Wed, 9 Feb 2005 14:48:33 -0500 > From: Chris Mann > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] outages.cgi error > > My final issue with getting Nagios up and running. All of the other > cgi's work correctly and wonderfully. > > However, when I try to access the outages.cgi from the web interface, > I get the dreaded: > > It appears as though you do not have permission to view information > you requested... > > If you believe this is an error, check the HTTP server authentication > requirements for accessing this CGI > and check the authorization options in your CGI configuration file. > > I've RTFM'ed and googled and I'm at a loss as to where to go at this > point. Any thoughts? > > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From astephens at ptera.net Wed Feb 9 21:07:19 2005 From: astephens at ptera.net (Arthur Stephens) Date: Wed, 09 Feb 2005 12:07:19 -0800 Subject: browser failed Message-ID: <420A6D77.5010702@ptera.net> My system .... So after rebooting, when I try to start the web interface for nagios I get The connection was refused when attempting to contact 127.0.0.1:8082 I tried just 127.0.01 but that gets the same message. Ideas? -- Arthur Stephens Senior Sales Technician Ptera Wireless Internet astephens at ptera.net 509-927-Ptera ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From psbourgeau at mpccorp.com Wed Feb 9 21:06:19 2005 From: psbourgeau at mpccorp.com (Paul Bourgeau) Date: Wed, 9 Feb 2005 13:06:19 -0700 Subject: Nagios and SQL databases Message-ID: <2638AB7E1672B842901B0B49421B87DF0FCD10@mpc00email3.micronpc.com> I tried to search, but I did not see anything dealing with exactlly what I needed. I know that you are able to monitor TCP ports, services and drive utilization, but I wanted to know how (if at all) to set up Nagios to monitor SQL databases themselves. I am currently watching the SQL server services (mssql), but that's it. Can you monitor each individual database(size of, activity, health, etc..)? Can you monitor who accesses the databases, number of users? I'm guessing that I just need to add entries to the checkcommand.cfg file with SQL OID's, right? Or is there a bit more to setup? I am running ver 1.2 on redhat 8 (2.4.18-19.8.0) Any help would be appreciated. Thanks, Paul Disclaimer: 9/2/2005 MPC Computers is providing the following information in compliance with federal regulations: MPC Computers, LLC 906 E. Karcher Road Nampa, Idaho 83687 1-888-224-4247 http://www.mpccorp.com To discontinue receiving e-mail communications from MPC in the future, please go to: http://www.mpccorp.com/email/manage.html and follow the instructions. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From csmann at gmail.com Wed Feb 9 21:06:57 2005 From: csmann at gmail.com (Chris Mann) Date: Wed, 9 Feb 2005 15:06:57 -0500 Subject: outages.cgi error In-Reply-To: References: <25de63b5050209114873e0e3a7@mail.gmail.com> Message-ID: <25de63b505020912061d07811a@mail.gmail.com> On Wed, 9 Feb 2005 12:02:44 -0800 (PST), frank wrote: > > From output.c: > /* user must be authorized for all hosts.. */ > if(is_authorized_for_all_hosts(¤t_authdata)==FALSE){ > > From cgi.cfg: > authorized_for_all_hosts=nagiosadmin,guest > > Add/replace your login name in cgi.cfg > > .enjoy > -f Ahh stupid typo. I had a - instead of a _ in authorized_for_all_hosts. I'm a moron. Thanks for the help Frank -- Chris Mann "I was killing all my money, Spending brain cells just as fast" ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ross.minkov at hp.com Wed Feb 9 21:20:24 2005 From: ross.minkov at hp.com (Minkov, Ross) Date: Wed, 9 Feb 2005 15:20:24 -0500 Subject: Getting this error Message-ID: <192E38594ACFAF4EB4F40E1C4B60472306014D07@tayexc13.americas.cpqcorp.net> I get the same error from my Total Processes service -- System call sent warnings to stderr. How do I fix this? -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Andreas Ericsson Sent: Wednesday, February 09, 2005 4:13 AM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Getting this error Joe Leone wrote: > I am also getting the error. I am running RedHat 8, Fedora core2 and > Fedora core3. The errors occurs on Fedora core 3 only. I get the same > error on all Fedora core3 boxes. > I have downloaded and compiled the plug-in 1.3 and 1.4. This did not > resolve the error. > > Running the command locally > /usr/local/nagios/libexec/check_procs -c 1:1 -C crond > System call sent warnings to stderr > OK - 1 processes running with command name crond > > > Output from strace > > > # strace ./check_procs -c 1:1 -C /usr/sbin/cron > execve("./check_procs", ["./check_procs", "-c", "1:1", "-C", > "/usr/sbin/cron"], [/* 18 vars */]) = 0 > uname({sys="Linux", node="app-dev", ...}) = 0 > brk(0) = 0x99cd000 > access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or > directory) > open("/etc/ld.so.cache", O_RDONLY) = 3 > fstat64(3, {st_mode=S_IFREG|0644, st_size=20694, ...}) = 0 > old_mmap(NULL, 20694, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf6ffa000 > close(3) = 0 > open("/lib/tls/libc.so.6", O_RDONLY) = 3 > read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \337\242"..., > 512) = 512 > fstat64(3, {st_mode=S_IFREG|0755, st_size=1512400, ...}) = 0 > old_mmap(0xa19000, 1207532, PROT_READ|PROT_EXEC, > MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xa19000 > old_mmap(0xb3a000, 16384, PROT_READ|PROT_WRITE, > MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x120000) = 0xb3a000 > old_mmap(0xb3e000, 7404, PROT_READ|PROT_WRITE, > MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb3e000 > close(3) = 0 > old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, > -1, 0) = 0xf6ff9000 > mprotect(0xb3a000, 8192, PROT_READ) = 0 > mprotect(0xa15000, 4096, PROT_READ) = 0 > set_thread_area({entry_number:-1 -> 6, base_addr:0xf6ff98e0, > limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, > limit_in_pages:1, seg_not_present:0, useable:1}) = 0 > munmap(0xf6ffa000, 20694) = 0 > brk(0) = 0x99cd000 > brk(0x99ee000) = 0x99ee000 > open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3 > fstat64(3, {st_mode=S_IFREG|0644, st_size=38680544, ...}) = 0 > mmap2(NULL, 2097152, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf6df9000 > mmap2(NULL, 4096, PROT_READ, MAP_PRIVATE, 3, 0x7c5) = 0xf6df8000 > close(3) = 0 > open("/usr/share/locale/locale.alias", O_RDONLY) = 3 > fstat64(3, {st_mode=S_IFREG|0644, st_size=2528, ...}) = 0 > mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, > 0) = 0xf6df7000 > read(3, "# Locale name alias data base.\n#"..., 4096) = 2528 > read(3, "", 4096) = 0 > close(3) = 0 > munmap(0xf6df7000, 4096) = 0 > open("/usr/local/nagios/share/locale/en_AU.UTF-8/LC_MESSAGES/nagios-plug > ins.mo", O_RDONLY) = -1 ENOENT (No such file or directory) > open("/usr/local/nagios/share/locale/en_AU.utf8/LC_MESSAGES/nagios-plugi > ns.mo", O_RDONLY) = -1 ENOENT (No such file or directory) > open("/usr/local/nagios/share/locale/en_AU/LC_MESSAGES/nagios-plugins.mo > ", O_RDONLY) = -1 ENOENT (No such file or directory) > open("/usr/local/nagios/share/locale/en.UTF-8/LC_MESSAGES/nagios-plugins > .mo", O_RDONLY) = -1 ENOENT (No such file or directory) > open("/usr/local/nagios/share/locale/en.utf8/LC_MESSAGES/nagios-plugins. > mo", O_RDONLY) = -1 ENOENT (No such file or directory) > open("/usr/local/nagios/share/locale/en/LC_MESSAGES/nagios-plugins.mo", > O_RDONLY) = -1 ENOENT (No such file or directory) > rt_sigaction(SIGALRM, {0x804b3fc, [ALRM], SA_RESTORER|SA_RESTART, > 0xa40a48}, {SIG_DFL}, 8) = 0 > alarm(10) = 0 > getrlimit(RLIMIT_CORE, {rlim_cur=0, rlim_max=0}) = 0 > setrlimit(RLIMIT_CORE, {rlim_cur=0, rlim_max=0}) = 0 > getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0 > pipe([3, 4]) = 0 > pipe([5, 6]) = 0 > clone(child_stack=0, > flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, > child_tidptr=0xf6ff9928) = 13639 > close(4) = 0 > fcntl64(3, F_GETFL) = 0 (flags O_RDONLY) > fstat64(3, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0 > mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, > 0) = 0xf6df7000 > _llseek(3, 0, 0xfee2b0fc, SEEK_CUR) = -1 ESPIPE (Illegal seek) > close(6) = 0 > fcntl64(5, F_GETFL) = 0 (flags O_RDONLY) > fstat64(5, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0 > mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, > 0) = 0xf6df6000 > _llseek(5, 0, 0xfee2b15c, SEEK_CUR) = -1 ESPIPE (Illegal seek) > read(3, "STAT UID PPID VSZ RSS %CPU"..., 4096) = 3977 > read(3, "", 4096) = 0 > read(5, "Warning: bad syntax, perhaps a b"..., 4096) = 78 > fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0 > mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, > 0) = 0xf6df5000 > write(1, "System call sent warnings to std"..., 36System call sent > warnings to stderr > ) = 36 This is wildly inaccurate. It should say "Command sent warnings to stderr". A system call never sends warnings anywhere, except on to the stack in the form of a 32 bit number. > read(5, "", 4096) = 0 > close(5) = 0 > munmap(0xf6df6000, 4096) = 0 > close(3) = 0 > munmap(0xf6df7000, 4096) = 0 > waitpid(13639, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 13639 > --- SIGCHLD (Child exited) @ 0 (0) --- > write(1, "PROCS CRITICAL: 0 processes with"..., 63PROCS CRITICAL: 0 > processes with command name '/usr/sbin/cron' > ) = 63 > munmap(0xf6df5000, 4096) = 0 > exit_group(2) = ? > > > > > > Any help appreciated > It basically means that your ps as invoked by the check_proc plugin printed something on stderr. In this case it was "Warning: bad syntax, perhaps a b" followed by something which was cut by strace. > Joe > > Joe.Leone at beacon.com.au > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Harper > Mann > Sent: Saturday, 29 January 2005 7:41 AM > To: 'MIchael B. Day'; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Getting this error > > This looks like it's from the check_proc plugin that is running on > 64.182.35.81. Do you get the error when it's run locally? > > If you are out of swap, that could cause this. > > If you can reproduce the error by running check_procs locally, you can > run > strace "". Strace shows > system > calls and should tell which one is complaining. > > Post output here and we'll see what kind of suggestions we can make. > > Regards, > > - Harper > > Harper Mann > Groundwork Open Source Solutions > 510-599-2075 (cell) > http://itgroundwork.com > > > >>-----Original Message----- >>From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- >>admin at lists.sourceforge.net] On Behalf Of MIchael B. Day >>Sent: Friday, January 28, 2005 11:55 AM >>To: nagios-users at lists.sourceforge.net >>Subject: RE: [Nagios-users] Getting this error >> >>I'm getting the follow error and can not find out why. If any one has > > any > >>idea please let me know. >>This was emailed to me from the Nagios system. >> >>***** Nagios ***** >> >>Notification Type: PROBLEM >> >>Service: Total Processes >>Host: Linux Server #1 >>Address: 64.182.35.81 >>State: WARNING >> >>Date/Time: Thu Jan 27 13:28:20 CST 2005 >> >>Additional Info: >> >>System call sent warnings to stderr >> >> >> >>------------------------------------------------------- >>This SF.Net email is sponsored by: IntelliVIEW -- Interactive > > Reporting > >>Tool for open source databases. Create drag-&-drop reports. Save time >>by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. >>Download a FREE copy at http://www.intelliview.com/go/osdn_nl >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >>::: Please 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: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From s.shipway at auckland.ac.nz Wed Feb 9 21:36:38 2005 From: s.shipway at auckland.ac.nz (Steve Shipway) Date: Thu, 10 Feb 2005 09:36:38 +1300 Subject: How to handle 'single bad' or 'trap' messages? In-Reply-To: <200502091713.17117.benoit.panizzon@imp.ch> References: <200502091713.17117.benoit.panizzon@imp.ch> Message-ID: <041101c50ee7$0f00c4b0$01fea8c0@itss.auckland.ac.nz> >We have the requirement of handling what I call a 'single bad' message. >When such an event happens, somebody would need to aknowledge >the message and the status should turn to OK. We handle this one of two ways (depending on the needs). 1. Set up passive service, which receives the alerts. Have state stalking on the criticals. max_check_attempts is 1. Check_period is never. We also set up a freshness check with a 2-hour timeout that calls a script returning an 'OK'. This makes all alerts disappear after 2 hours of silence. This is OK in some cases (if you havent heard anything for a certain period of time, assume it's OK) but not others. 2. Set up a passive service, with critical state stalking. When people go to acknowledge the alert, it gets the normal 'man at work' icon. When the problem is solved, you go in again and submit a manual passive 'OK' to reset the state. This is better when you don't want the state to clear until you've done the task. By using (1) and a lower freshness threshold and >1 max_check_attempts, you can make an SNMP trap sink which will show an alert provided it is currently receving more than X alerts within a set time period. This is handy to alert if we start getting a flurry of failed login attempts (each triggering a SNMP auth trap) but not alert for just a single one where I mistype the password. Steve ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Feb 9 22:02:33 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 09 Feb 2005 22:02:33 +0100 Subject: browser failed In-Reply-To: <420A6D77.5010702@ptera.net> References: <420A6D77.5010702@ptera.net> Message-ID: <420A7A69.7070001@op5.se> Arthur Stephens wrote: > My system .... So after rebooting, when I try to start the web interface > for nagios I get > > The connection was refused when attempting to contact 127.0.0.1:8082 > > I tried just 127.0.01 but that gets the same message. > > Ideas? > I try never to be rude, so I think I'll pass and just recommend a visit to the local bookstore. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chale at nwscan.net Wed Feb 9 23:43:13 2005 From: chale at nwscan.net (Chris Hale) Date: Wed, 9 Feb 2005 14:43:13 -0800 Subject: Freshness checking, Service dependicies and status output of all this... Message-ID: <004701c50ef8$bda5b8c0$3201280a@unknown> I guess I actually have two separate questions. 1) I would like to use dependencies, but I don't see anyway of indicating that the service being checked, is not, when the dependency fails. IE: I have on average 6 active checks per host... one of them being a ping test, the other 5 system variables (drive space, memory usage, etc.). There is no reason to eat up forks and processor time (waiting for the timeout) on the other five tests when the ping test is definitely hard down (especially when the outage is close to the nagios server, causing a lot of hosts to go into timeout loops), hence the reason why we would like to use dependencies. But it appears that you can only suppress the active check and/or the notification. In suppressing the check, effectively we would only be skipping the check, and there is no indication in the test results that we did so. We would like to have the status be updated with something like "Unknown state: PING dependency failed" I thought about a event handler, but since there is no state change, you can't use that. 2) If we switched to passive checks with the new NC_Net client (Thanks very much too the coders working on that), are freshness checks affected by service dependencies? (My suspicion is that they are not) Same scenario applies. Why bother doing the freshness checks if the still active ping test is failing. And then just like above. Can we change the state too indicate the unknown results (and not the normal critical: plugin timeout if it is tested or last known state if it is skipped with dependencies) ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From robin at frbconsulting.com Thu Feb 10 01:38:57 2005 From: robin at frbconsulting.com (Robin Brown) Date: Wed, 09 Feb 2005 19:38:57 -0500 Subject: Russel Scibetti's CGI config file location path Message-ID: <6.1.1.1.0.20050209193143.01a3beb0@mail.frbconsulting.com> Good evening, I've installed Nagios 2.01b in order to try 'Russel Scibetti's CGI config file location path' patch. The email I read regarding this patch uses an Apache setting per directory to use custom cgi.cfg files where you can then specify different hostextinfo.cfg files: SetEnv NAGIOS_CGI_CONFIG Now that the extended host information is contained within the hosts.cfg file, is this still the correct way to implement this feature? If so is it still the xedtemplate setting in cgi.cfg that needs to reflect the desired hostextinfo.cfg file? Thanks, Robin ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 virtualhaze.org Thu Feb 10 02:33:23 2005 From: nagios at virtualhaze.org (Haze) Date: Thu, 10 Feb 2005 01:33:23 +0000 Subject: Nagios2 on FreeBSD 5.3 Message-ID: <420AB9E3.3020408@virtualhaze.org> Hello all, I am looking at moving our Nagios 1.2 clusters to Nagios 2 and I am asking if anyone has had any experience as to how well it works on FreeBSD 5.3. In brief we have 1 logger/cgi server and 4 remote servers with 60, 80, 500 and 2000 hosts. Total services across all the remote servers is ~10000. The top heavy service to host ratio is due to 90% of the devices being routers, where we check for all interfaces that at in an ifAdminUp status (nagios conf population is done automatically) and all the env stuff (about 5 on most routers). All done via Perl Net::SNMP and ofc embedded Perl. From the docs there looks like there is an issue with pthreads with large setups, is this still so? Any other advice or pitfalls to avoid would be gratefully accepted. Thanks ------------------------------- Haze Synetrix PLC ------------------------------- ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Brad.Henshaw at qbuild.qld.gov.au Thu Feb 10 04:34:05 2005 From: Brad.Henshaw at qbuild.qld.gov.au (HENSHAW Brad) Date: Thu, 10 Feb 2005 13:34:05 +1000 Subject: Backslash problems in notifications Message-ID: <6227E947B877F8478B87FEA8B0649CF602357B97@SQBHOEXS02.qbuild.dpw.qld.gov.au> This one has me stumped. I have nagios configured to send e-mail alerts to various staff when certain host and service issues arise. One problem I've encountered however is a complication with dealing with the output of check_disk_smb in that its output looks something like this: CRITICAL: Only 1.74G (5%) free on \\10.x.x.x\d$ The relevant line in misccommands.cfg looks something like this: command_line /usr/bin/printf "%b" "Alert\n-----------------\n\nIssue: $NOTIFICATIONTYPE - $SERVICEDESC$ on $HOSTNAME$ ($HOSTALIAS$) is $SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional Info:\n$OUTPUT$\n\n---\nBlah blah blah" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ - $HOSTNAME$/$SERVICEDESC$ status is $SERVICESTATE$ **" -a "X-Priority: 1 (Highest)" $CONTACTEMAIL$ Now, for most alerts this works fine. But for the disk space alerts, printf looks at the backslash followed by a one and reports it as being an invalid escape sequence. The e-mail comes through but is truncated from the word "on", thus blasting away the last half of the alert message. I had thought of piping the text to sed and doing a substitution on backslashes followed by certain characters before passing to printf, but I can't think of a way to do this since `echo` (which I could pipe to sed) breaks in a similar fashion. Has anyone figured out a way to deal with backslashes in command output which screw up printf? (other than by modifying check_disk_smb) Any input is appreciated! Regards, Brad ##################################################################################### This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal For more information please visit www.marshalsoftware.com ##################################################################################### ############################################################################# This electronic message and any attachments are supplied in good faith. QBuild accepts no responsibility for the damage or loss which may occur through the use or transmission of this message and attachments. The contents of this electronic message and any attachments are intended only for the addressee and may contain privileged or confidential information. If you are not the addressee, you are notified that any transmission, distribution, downloading, printing or photocopying of the contents of this message or attachments is strictly prohibited. The privilege of confidentiality attached to this message and attachments is not waived, lost or destroyed by reason of mistaken delivery to you. If you receive this message in error please notify the sender by return e-mail or telephone. ############################################################################## ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From b00mer at gmx.net Thu Feb 10 07:24:12 2005 From: b00mer at gmx.net (Hendrik "Boomer" Baecker) Date: Thu, 10 Feb 2005 07:24:12 +0100 Subject: Nagios and SQL databases In-Reply-To: <2638AB7E1672B842901B0B49421B87DF0FCD10@mpc00email3.micronpc.com> References: <2638AB7E1672B842901B0B49421B87DF0FCD10@mpc00email3.micronpc.com> Message-ID: <420AFE0C.9040309@gmx.net> Paul Bourgeau schrieb: >I tried to search, but I did not see anything dealing with exactlly what I needed. I know that you are able to monitor TCP ports, services and drive utilization, but I wanted to know how (if at all) to set up Nagios to monitor SQL databases themselves. I am currently watching the SQL server services (mssql), but that's it. > >Can you monitor each individual database(size of, activity, health, etc..)? > > Yes. There exist a Nagios Plugin called "check_mssql.sh" --> http://www.nagios.org/faqs/viewfaq.php?faq_id=156 >Can you monitor who accesses the databases, number of users? > > Long time ago since I've played with it but I think with a little bit of work you can do whatever you want with. Hope this helps. >I'm guessing that I just need to add entries to the checkcommand.cfg file with SQL OID's, right? Or is there a bit more to setup? > >I am running ver 1.2 on redhat 8 (2.4.18-19.8.0) Any help would be appreciated. > >Thanks, >Paul > >Disclaimer: 9/2/2005 > >MPC Computers is providing the following information in compliance with federal regulations: > >MPC Computers, LLC >906 E. Karcher Road >Nampa, Idaho 83687 >1-888-224-4247 >http://www.mpccorp.com > >To discontinue receiving e-mail communications from MPC in the future, please go to: >http://www.mpccorp.com/email/manage.html and follow the instructions. > > > > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_ide95&alloc_id396&op=click >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > > > > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From harman at amazon.co.in Thu Feb 10 08:07:16 2005 From: harman at amazon.co.in (Harmanjit Singh) Date: Thu, 10 Feb 2005 12:37:16 +0530 Subject: Erratic behaviour by cgi scripts Message-ID: Hi, I am running Nagios 1.2 with Plugins 1.3.1. I have 23 hosts defined in my hosts.cfg. Whenever I click on host detail or service detail (executing status.cgi), it sometimes shows me all 23 hosts, sometimes it shows only 17. If I press refresh on my web-browser, the display changes back and forth from 17 to 23 and back to 17 in an unpredictable fashion. I have checked my nagios.cfg etc. and there are no warnings or errors in nagios.log when I start nagios. Any hints? Harman. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From m at rtij.nl Thu Feb 10 09:07:57 2005 From: m at rtij.nl (Martijn Lievaart) Date: Thu, 10 Feb 2005 09:07:57 +0100 Subject: check_disk_smb error: Result from smbclient not suitable In-Reply-To: <25de63b5050207090456ca178c@mail.gmail.com> References: <25de63b5050207090456ca178c@mail.gmail.com> Message-ID: <420B165D.2010002@rtij.nl> Chris Mann wrote: >I'm trying to use the check_disk_smb plugin to check disk space on >windows servers. via the command line it works fine, returns the info. > >When the plugin is configured, nagios reports the following error: >Result from smbclient not suitable > >Any thoughts as to where to start to look to fix this? > > Start fiddling with the commandline arguments. I had this same problem, somehow this plugin reacts differently when run from the commandline or from nagios. IIRC put the -c and -w flags first on the commandline. HTH, M4 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nagios-user at proy.org Thu Feb 10 09:44:37 2005 From: nagios-user at proy.org (Patrick Proy) Date: Thu, 10 Feb 2005 09:44:37 +0100 Subject: Check_SNMP_INT.PL help needed In-Reply-To: <6A1DD050FEF19644B488BD3889A0A221733BEF@FLASH.nts.local> References: <6A1DD050FEF19644B488BD3889A0A221733BEF@FLASH.nts.local> Message-ID: <20050210084444.AC78AAC476@www.manubulon.com> Hi, This was a known problem on version 1.2 : download the latest version (1.2 of Jan 31) on my web site : http://www.manubulon.com/nagios/check_snmp_int.pl Patrick nagios at proy.org ________________________________ De : nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] De la part de Sam Reynolds Envoy? : mercredi 9 f?vrier 2005 20:52 ? : nagios-users at lists.sourceforge.net Objet : [Nagios-users] Check_SNMP_INT.PL help needed Hello all, I am trying to monitor my Cisco Routers Bandwidth utilization using check_snmp_int.pl. I can use the plugin so long as I don?t use the ?k switch. As I understand it, the ?k switch creates a tmp file on the nagios server that it uses to compare the bandwidth, unfortunately it is unable to create the tmp file as I am checking an interface with a / in it (ie: Serial5/2). Is there a work around for this, or a better way of doing it? Thanks in advance. Sam ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Feb 10 09:54:38 2005 From: ae at op5.se (Andreas Ericsson) Date: Thu, 10 Feb 2005 09:54:38 +0100 Subject: Backslash problems in notifications In-Reply-To: <6227E947B877F8478B87FEA8B0649CF602357B97@SQBHOEXS02.qbuild.dpw.qld.gov.au> References: <6227E947B877F8478B87FEA8B0649CF602357B97@SQBHOEXS02.qbuild.dpw.qld.gov.au> Message-ID: <420B214E.20906@op5.se> HENSHAW Brad wrote: > This one has me stumped. > > I have nagios configured to send e-mail alerts to various staff when > certain host and service issues arise. > One problem I've encountered however is a complication with dealing with > the output of check_disk_smb in that its output looks something like > this: > > CRITICAL: Only 1.74G (5%) free on \\10.x.x.x\d$ > > The relevant line in misccommands.cfg looks something like this: > > command_line /usr/bin/printf "%b" "Alert\n-----------------\n\nIssue: > $NOTIFICATIONTYPE - $SERVICEDESC$ on $HOSTNAME$ ($HOSTALIAS$) is > $SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional > Info:\n$OUTPUT$\n\n---\nBlah blah blah" | /usr/bin/mail -s "** > $NOTIFICATIONTYPE$ - $HOSTNAME$/$SERVICEDESC$ status is $SERVICESTATE$ > **" -a "X-Priority: 1 (Highest)" $CONTACTEMAIL$ > > Now, for most alerts this works fine. But for the disk space alerts, > printf looks at the backslash followed by a one and reports it as being > an invalid escape sequence. The e-mail comes through but is truncated > from the word "on", thus blasting away the last half of the alert > message. > > I had thought of piping the text to sed and doing a substitution on > backslashes followed by certain characters before passing to printf, but > I can't think of a way to do this since `echo` (which I could pipe to > sed) breaks in a similar fashion. > > Has anyone figured out a way to deal with backslashes in command output > which screw up printf? (other than by modifying check_disk_smb) > echo -n from echo(1) -n never substitute I suppose you'll see one backslash less, but that might even be acceptable. > Any input is appreciated! > > Regards, > Brad > > ##################################################################################### > This e-mail message has been scanned for Viruses and Content and cleared > by MailMarshal > For more information please visit www.marshalsoftware.com > ##################################################################################### > > ############################################################################# > This electronic message and any attachments are supplied in good faith. > QBuild accepts no responsibility for the damage or loss which may occur > through the use or transmission of this message and attachments. > > The contents of this electronic message and any attachments are intended > only for the addressee and may contain privileged or confidential information. > If you are not the addressee, you are notified that any transmission, distribution, > downloading, printing or photocopying of the contents of this message or attachments > is strictly prohibited. The privilege of confidentiality attached to this message and > attachments is not waived, lost or destroyed by reason of mistaken delivery to you. > > If you receive this message in error please notify the sender by return e-mail or telephone. > ############################################################################## > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From srunschke at abit.de Thu Feb 10 09:39:09 2005 From: srunschke at abit.de (Sascha Runschke) Date: Thu, 10 Feb 2005 09:39:09 +0100 Subject: Antwort: Backslash problems in notifications [Virus scanned] Message-ID: > Now, for most alerts this works fine. But for the disk space alerts, > printf looks at the backslash followed by a one and reports it as being > an invalid escape sequence. The e-mail comes through but is truncated > from the word "on", thus blasting away the last half of the alert > message. This is a known issue. Ethan should have updated the CVS by now and a new snapshot should fix the problem. You just need to add \ to the illegal_macro_chars variable in nagios.cfg, if not done already. If using the newest snapshot is not feasable for you, you can use this workaround: define command{ command_name notify-by-email command_line /bin/bash -c "printf \"%b\" \"***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTNAME$\nDescription: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $DATE$ $TIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$\n\n\"" | /bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTNAME$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ } The built-in printf function of bash doesn't suffer from misinterpreting wrong escapesequences. sash -------------------------------------------------- Sascha Runschke Netzwerk Administration IT-Services ABIT AG Robert-Bosch-Str. 1 40668 Meerbusch Tel.:+49 (0) 2150.9153.226 mailto:SRunschke at abit.de http://www.abit.net http://www.abit-epos.net http://www.my-academy.net -------------------------------------------------- Der Inhalt dieser Email sowie die Anh?nge sind ausschlie?lich f?r den bezeichneten Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser Email oder dessen Vertreter sein sollten, so beachten Sie bitte, da? jede Form der Kenntnisnahme, Ver?ffentlichung, Vervielf?ltigung oder Weitergabe des Inhalts dieser Email unzul?ssig ist. Wir m?chten Sie au?erdem darauf hinweisen, da? die Kommunikation per Email ?ber das Internet unsicher ist, da fuer unberechtigte Dritte grunds?tzlich die M?glichkeit der Kenntnisnahme und Manipulation besteht. Wenn Sie diese Nachricht versehentlich erhalten, informieren Sie bitte den Absender und l?schen diese Nachricht mit den Anh?ngen. Herzlichen Dank The information and any attachments contained in this email are intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any form of disclosure, reproduction, distribution or any action taken or refrained from in reliance on it, is prohibited and may be unlawful. We also like to inform you that communication via email over the internet is insecure because third parties may have the possibility to access and manipulate emails. If you have received the message in error, please advise the sender and delete the message and any attachments. Thank you very much. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dan.hopkins at uk.easynet.net Thu Feb 10 10:02:51 2005 From: dan.hopkins at uk.easynet.net (Dan Hopkins) Date: Thu, 10 Feb 2005 09:02:51 -0000 Subject: Freshness checking, Service dependicies and st atus output of all this... Message-ID: <13E80BCA327C4D43AC2EFCE6B06E53140495ED@exch0-tmshm.uk.easynet.corp> > -----Original Message----- > From: Chris Hale [mailto:chale at nwscan.net] > Sent: 09 February 2005 22:43 > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Freshness checking, Service dependicies and > status output of all this... > > > I guess I actually have two separate questions. > > 1) I would like to use dependencies, but I don't see anyway > of indicating > that the service being checked, is not, when the dependency fails. > > IE: I have on average 6 active checks per host... one of > them being a ping > test, the other 5 system variables (drive space, memory > usage, etc.). There > is no reason to eat up forks and processor time (waiting for > the timeout) on > the other five tests when the ping test is definitely hard > down (especially > when the outage is close to the nagios server, causing a lot > of hosts to go > into timeout loops), hence the reason why we would like to > use dependencies. > But it appears that you can only suppress the active check and/or the > notification. In suppressing the check, effectively we would only be > skipping the check, and there is no indication in the test > results that we > did so. We would like to have the status be updated with > something like > "Unknown state: PING dependency failed" I thought about a > event handler, > but since there is no state change, you can't use that. Chris, Perhaps I'm missing you're point, but I'm not sure why you're going to all this trouble yourself - what you're describing is a native feature of Nagios: if any service check fails, the host check is performed, if the host check fails, it's marked down and no other service checks for the host are performed i.e. all service checks are dependent on the host (ping) check. It could be that you've disabled host checks (but generally the only reason to disable host checks is when you want all service checks to be scheduled regardless of the state of the host - which doesn't seem to be what you want) Regards Dan ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dan.hopkins at uk.easynet.net Thu Feb 10 10:07:15 2005 From: dan.hopkins at uk.easynet.net (Dan Hopkins) Date: Thu, 10 Feb 2005 09:07:15 -0000 Subject: Erratic behaviour by cgi scripts Message-ID: <13E80BCA327C4D43AC2EFCE6B06E53140495EE@exch0-tmshm.uk.easynet.corp> > -----Original Message----- > From: Harmanjit Singh [mailto:harman at amazon.co.in] > Sent: 10 February 2005 07:07 > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Erratic behaviour by cgi scripts > > > > Hi, > > I am running Nagios 1.2 with Plugins 1.3.1. > > I have 23 hosts defined in my hosts.cfg. > > Whenever I click on host detail or service detail > (executing status.cgi), it sometimes shows me all 23 hosts, > sometimes it shows only 17. If I press refresh on my web-browser, > the display changes back and forth from 17 to 23 and back to 17 > in an unpredictable fashion. > > I have checked my nagios.cfg etc. and there are no warnings or > errors in nagios.log when I start nagios. > > Any hints? > Harman. Sounds like the sort of effect you get from multiple nagios instances running. Have you tried shutting down nagios, killing any remaining nagios processes and restarting it? Dan ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From remko at elvandar.org Thu Feb 10 10:58:18 2005 From: remko at elvandar.org (Remko Lodder) Date: Thu, 10 Feb 2005 10:58:18 +0100 Subject: Erratic behaviour by cgi scripts In-Reply-To: <13E80BCA327C4D43AC2EFCE6B06E53140495EE@exch0-tmshm.uk.easynet.corp> References: <13E80BCA327C4D43AC2EFCE6B06E53140495EE@exch0-tmshm.uk.easynet.corp> Message-ID: <420B303A.1040503@elvandar.org> Dan Hopkins wrote: >>-----Original Message----- >>From: Harmanjit Singh [mailto:harman at amazon.co.in] >>Sent: 10 February 2005 07:07 >>To: nagios-users at lists.sourceforge.net >>Subject: [Nagios-users] Erratic behaviour by cgi scripts >> >> >> >>Hi, >> >>I am running Nagios 1.2 with Plugins 1.3.1. >> >>I have 23 hosts defined in my hosts.cfg. >> >>Whenever I click on host detail or service detail >>(executing status.cgi), it sometimes shows me all 23 hosts, >>sometimes it shows only 17. If I press refresh on my web-browser, >>the display changes back and forth from 17 to 23 and back to 17 >>in an unpredictable fashion. >> >>I have checked my nagios.cfg etc. and there are no warnings or >>errors in nagios.log when I start nagios. >> >>Any hints? >>Harman. > > > Sounds like the sort of effect you get from multiple nagios instances > running. Have you tried shutting down nagios, killing any remaining nagios > processes and restarting it? > > Dan > Well it can also mean that someone enabled new stuff in the config files (or altered something) and did not restart nagios yet. I had that myself 2 days ago :-) Cheers, -- Kind regards, Remko Lodder ** remko at elvandar.org Reporter DSINET ** remko at DSINet.org Founder Tienervaders ** remko at tienervaders.org FreeBSD Documentation Project ** remko at FreeBSD.org ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From remko at elvandar.org Thu Feb 10 11:04:48 2005 From: remko at elvandar.org (Remko Lodder) Date: Thu, 10 Feb 2005 11:04:48 +0100 Subject: nagios monitoring process may not be running Message-ID: <420B31C0.8000107@elvandar.org> Hi, I run FreeBSD 5.3 latest revision with Nagios 1.2. When i had setup nagios i got external commands for authorized users and i was able to enable and disable checks and such. However, due to some unknown change, the monitoring proces just says : "Warning: Monitoring process may not be running". So i added the check_nagios feature manually and i run that now for the nagios host. It is green all the time giving the correct output [1] while the application keeps telling that it might not be running. Someone has any ideas on where i can look to get this back up again? [1] ./check_nagios -F /var/spool/nagios/status.log -e 5 -C \ /usr/local/bin/nagios Nagios ok: located 1 process, status log updated 6 seconds ago -- Kind regards, Remko Lodder ** remko at elvandar.org Reporter DSINET ** remko at DSINet.org Founder Tienervaders ** remko at tienervaders.org FreeBSD Documentation Project ** remko at FreeBSD.org ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From harman at amazon.co.in Thu Feb 10 11:00:48 2005 From: harman at amazon.co.in (Harmanjit Singh) Date: Thu, 10 Feb 2005 15:30:48 +0530 Subject: More problems and RE: Erratic behaviour by cgi scripts Message-ID: Ok, more than one nagios processes were running. I killed all, restarted nagios and that fixed it. By the way, the init scripts for the 2.0b2 Nagios are all broken. Nagios doesn't even write to the lockfile (which should contain the PID). The nagios.lock file is empty. Also, when I see the HOST Status info in Nagios, it shows that "Host assumed to be up" and last status check was like, 40minutes in the past. In my config files, I have check-host-alive for every host in hosts.cfg and a PING service defined as well in the services.cfg. How can I speed up the host status check frequency? Thanks, Harman. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Remko Lodder Sent: Thursday, February 10, 2005 3:28 PM To: Dan Hopkins; nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Erratic behaviour by cgi scripts Dan Hopkins wrote: >>-----Original Message----- >>From: Harmanjit Singh [mailto:harman at amazon.co.in] >>Sent: 10 February 2005 07:07 >>To: nagios-users at lists.sourceforge.net >>Subject: [Nagios-users] Erratic behaviour by cgi scripts >> >> >> >>Hi, >> >>I am running Nagios 1.2 with Plugins 1.3.1. >> >>I have 23 hosts defined in my hosts.cfg. >> >>Whenever I click on host detail or service detail (executing >>status.cgi), it sometimes shows me all 23 hosts, sometimes it shows >>only 17. If I press refresh on my web-browser, the display changes >>back and forth from 17 to 23 and back to 17 in an unpredictable >>fashion. >> >>I have checked my nagios.cfg etc. and there are no warnings or errors >>in nagios.log when I start nagios. >> >>Any hints? >>Harman. > > > Sounds like the sort of effect you get from multiple nagios instances > running. Have you tried shutting down nagios, killing any remaining > nagios processes and restarting it? > > Dan > Well it can also mean that someone enabled new stuff in the config files (or altered something) and did not restart nagios yet. I had that myself 2 days ago :-) Cheers, -- Kind regards, Remko Lodder ** remko at elvandar.org Reporter DSINET ** remko at DSINet.org Founder Tienervaders ** remko at tienervaders.org FreeBSD Documentation Project ** remko at FreeBSD.org ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Feb 10 12:30:18 2005 From: ae at op5.se (Andreas Ericsson) Date: Thu, 10 Feb 2005 12:30:18 +0100 Subject: More problems and RE: Erratic behaviour by cgi scripts In-Reply-To: References: Message-ID: <420B45CA.3080205@op5.se> Harmanjit Singh wrote: > Ok, more than one nagios processes were running. > I killed all, restarted nagios and that fixed it. > > By the way, the init scripts for the 2.0b2 Nagios are all broken. > Nagios doesn't even write to the lockfile (which should contain the > PID). > The nagios.lock file is empty. > > Also, when I see the HOST Status info in Nagios, it shows > that "Host assumed to be up" and last status check was like, 40minutes > in the past. In my config files, I have check-host-alive for every host > in hosts.cfg and a PING service defined as well in the services.cfg. > > How can I speed up the host status check frequency? > You can't. Host statuses are only checked if a service changes state unless you force host checks (bad idea). Read the docs on how to accomplish this, and to find out why it isn't recommended. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ian.chard at sers.ox.ac.uk Thu Feb 10 12:36:01 2005 From: ian.chard at sers.ox.ac.uk (Ian Chard) Date: Thu, 10 Feb 2005 11:36:01 +0000 Subject: Checking hosts with no services Message-ID: <420B4721.7030806@sers.ox.ac.uk> Hi, If I have hosts with no associated services (e.g. routers that I can't SNMP query), will host checks be scheduled for them, or do I need to use check_interval? Thanks - Ian -- Ian Chard, Unix & Network Administrator | E: ian.chard at sers.ox.ac.uk Systems and Electronic Resources Service | T: 80587 / (01865) 280587 Oxford University Library Services | F: (01865) 204937 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From b00mer at gmx.net Thu Feb 10 12:52:17 2005 From: b00mer at gmx.net (Hendrik "Boomer" Baecker) Date: Thu, 10 Feb 2005 12:52:17 +0100 Subject: Checking hosts with no services In-Reply-To: <420B4721.7030806@sers.ox.ac.uk> References: <420B4721.7030806@sers.ox.ac.uk> Message-ID: <420B4AF1.2000108@gmx.net> Ian Chard schrieb: > Hi, > > If I have hosts with no associated services (e.g. routers that I can't > SNMP query), will host checks be scheduled for them, or do I need to > use check_interval? > > Thanks > - Ian > Hi, when I am not wrong, you can't do this. Nagios checks Service not Hosts. The hosts were just checked if one Service-Check failes. Try to use the check_ping or check_icmp (it's nice and very fast!) as a standard service for your hosts which can't be monitored by other checks. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From julien at avedya.com Thu Feb 10 13:15:30 2005 From: julien at avedya.com (Julien DEHEE) Date: Thu, 10 Feb 2005 13:15:30 +0100 Subject: check_imap with SSL Message-ID: <420B5062.3020208@avedya.com> hi, How can I use check_imap with SSL ? my check_imap is 1.13.2.3 (nagios-plugins 1.3.1) thanks in advance, Julien. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From remko at elvandar.org Thu Feb 10 13:20:04 2005 From: remko at elvandar.org (Remko Lodder) Date: Thu, 10 Feb 2005 13:20:04 +0100 Subject: check_imap with SSL In-Reply-To: <420B5062.3020208@avedya.com> References: <420B5062.3020208@avedya.com> Message-ID: <420B5174.4010006@elvandar.org> Julien DEHEE wrote: > hi, > How can I use check_imap with SSL ? > > my check_imap is 1.13.2.3 (nagios-plugins 1.3.1) Hi, there is a check_simap command in the nagiosplugin package. Perhaps you can check that out? > > thanks in advance, > > Julien. > -- Kind regards, Remko Lodder ** remko at elvandar.org Reporter DSINET ** remko at DSINet.org Founder Tienervaders ** remko at tienervaders.org FreeBSD Documentation Project ** remko at FreeBSD.org ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From amontibello at gmail.com Thu Feb 10 13:55:29 2005 From: amontibello at gmail.com (Anthony Montibello) Date: Thu, 10 Feb 2005 07:55:29 -0500 Subject: NC_Net v2.15 - New Version (with Perfomance counter FIX) Message-ID: NC_Net has a new version In this the documentaiton has been updated and several checks command have been rewriten inside NC_Net Some debuggin of configuration varibles (more debugging is needed) for instance now you should be able to stop passive checks via the check_nt then reenable at some latter time via check_nt Check_Nt - with NC_Net enhancements included with NC_Net has had CONFIG command added. Event log BUG fix ( older event log from 1.09 had a bug with parsing the arguments) performance counter Bug fix - no longer 0 for per second counters other changes... NC_Net official site: www.shatterit.com/NC_Net Good luck with it. Tony ps The issue about installing to a location other than C:\Program Files\Shatter It\NC_Net has NOT been resolved yet. I am currently working on it. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ovig.degrouard at jouy.inra.fr Thu Feb 10 14:47:11 2005 From: ovig.degrouard at jouy.inra.fr (Ovig Degrouard) Date: Thu, 10 Feb 2005 14:47:11 +0100 Subject: run nrpe and nagios at the same time Message-ID: <420B65DF.8000206@jouy.inra.fr> Hi, Is-it possible to run nrpe in my nagios server? I would like to use my generic nrpe configuration (used for all my clients) for my nagios server (localhost). That will allow me to don't use check_local_disk single once. [root at me]# service nrpe status nrpe dead but subsys locked Thank you, Ovig Degrouard ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dyioulos at firstbhph.com Thu Feb 10 15:44:50 2005 From: dyioulos at firstbhph.com (Dimitri Yioulos) Date: Thu, 10 Feb 2005 09:44:50 -0500 Subject: Upgrade questions Message-ID: <200502101433.j1AEXZl2003530@mail1.firstbhph.com> Hello to all. With some help from the group, and a lot of experimentation, I've had nagios-1.2-0.rhel3.dag up and running great on a CentOS 3.3 box. I'd like to upgrade to version 2.0b2, and have compiled an rpm from the tarball. I don't want to sound like a wimp (although I probably do), but after all the work I've done, I don't want to break my current installation. So my question are: Is there anything special I should do when upgrading? Will I have to do severe editing to my configuration files? Has anyone successfully (and easily) upgraded such as I'm planning on either CentOS os RHEL3? As a side question, if I may, I've never gotten the icons to show up in the status map. It's probably been answered a thousand times, but I can't seem to find the one that works for me. The icons live in /usr/share/nagios/images/logos/base on my system (I even created /usr/local/nagios/share/images/logos, as per the example in cgi.cfg. - no joy). In the cgi.cfg file, I've added lines like the following to show the icons: hostextinfo[norwell]=;/base/redhat.gif;/base/redhat.gif;/base/redhat.gif;Cen tOS 3.3;;; Is this correct? Do I have to do anything else? Many thanks! Dimitri -------------- next part -------------- An HTML attachment was scrubbed... URL: From noureddin at belbone.be Thu Feb 10 15:45:03 2005 From: noureddin at belbone.be (noureddin) Date: Thu, 10 Feb 2005 15:45:03 +0100 Subject: Could not read object configuration data! In-Reply-To: <420A2E42.1080309@op5.se> References: <420A2E42.1080309@op5.se> Message-ID: <420B736F.7080101@belbone.be> An HTML attachment was scrubbed... URL: From wirtz at dfn.de Thu Feb 10 15:47:22 2005 From: wirtz at dfn.de (Holger Wirtz) Date: Thu, 10 Feb 2005 15:47:22 +0100 Subject: Nagios 2.0 CVS and contact_groups Message-ID: <20050210144722.GI6329@arktur.dfn.de> Hi, I have lots of hosts and services. Today I tried Nagios 2.0 CVS. It works fine for me (I am an admin and I see EVERY host and service). If I try to insert a line with "contact_groups" inside a host or service definition I get an error while reloading for each host/service: --- cut here --- Nagios 2.0b1 Copyright (c) 1999-2005 Ethan Galstad (www.nagios.org) Last Modified: 12-15-2004 License: GPL Reading configuration data... Running pre-flight check on configuration data... Checking services... Warning: Service 'PING' on host 'foo.bar' has no default contact group(s) defined! ... --- cut here --- The sample configs have this line... and even the hostgroups file. But putting a contact_groups line inside a hostgroup definition I get also an error: --- cut here --- Nagios 2.0b1 Copyright (c) 1999-2005 Ethan Galstad (www.nagios.org) Last Modified: 12-15-2004 License: GPL Reading configuration data... Error: Invalid hostgroup object directive 'contact_groups'. Error: Could not add object property in file '/usr/local/nagios/etc/hostgroups.c fg' on line 23. --- cut here --- Hm, this seems to be very strange because putting a line with "contact_groups" inside the object definition (hosts and services) works... Is this a bug or am I to stupid to configure nagios? Regards, Holger -- ##### #### ## ## Holger Wirtz Phone : (+49 30) 884299-40 ## ## ## ### ## DFN-Verein Fax : (+49 30) 884299-70 ## ## #### ###### Stresemannstr. 78 E-Mail: wirtz at dfn.de ## ## ## ## ### 10963 Berlin ##### ## ## ## GERMANY WWW : http://www.dfn.de GPG-Fingerprint: ABFA 1F51 DD8D 503C 85DC 0C51 E961 79E2 6685 9BCF ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From boinger at tradingtechnologies.com Thu Feb 10 16:11:05 2005 From: boinger at tradingtechnologies.com (jeff vier) Date: Thu, 10 Feb 2005 09:11:05 -0600 Subject: run nrpe and nagios at the same time In-Reply-To: <420B65DF.8000206@jouy.inra.fr> References: <420B65DF.8000206@jouy.inra.fr> Message-ID: <1108048278.1876.16.camel@chi100627.int.tt.local> On Thu, 2005-02-10 at 14:47 +0100, Ovig Degrouard wrote: > Is-it possible to run nrpe in my nagios server? Absolutely. > I would like to use my generic nrpe configuration (used for all my > clients) for my nagios server (localhost). > That will allow me to don't use check_local_disk single once. that is true. I actually do this exact thing for quite a few services exactly for the reason you're describing - to not kludge up the configs with an exception for each check. > [root at me]# service nrpe status > nrpe dead but subsys locked this error is well "documented": http://www.google.com/search?complete=1&hl=en&q=%22dead+but+subsys +locked%22 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Michael.Huettig at medien-systempartner.de Thu Feb 10 17:09:04 2005 From: Michael.Huettig at medien-systempartner.de (Michael =?iso-8859-1?q?H=FCttig?=) Date: Thu, 10 Feb 2005 17:09:04 +0100 Subject: nrpe2 is bailing out Message-ID: <200502101709.04131.Michael.Huettig@medien-systempartner.de> Hi all, since yesterday nrpe on some clients in our DMZ creates messages "nrpe[29828]: Could not read request from client, bailing out..." But when i checked manual from shell with check_nrpe -H -c check_load -a 3,2,1 3,3,2 i didn?t get the message. NRPE 2 ist compiled with option --disable-ssl --enable-command-args, the nrpe_daemon run?s under suse73 and suse82. Yes, i?ve read the faq?s and documentation, googled a lot and also searched the whole nagios-mailarchiv, but i didn?t find any answer, FW-Rules also don?t changed. If you have a great idea, please let me know. thx With best regards Michael ********************************************************************** Diese E-Mail wurde auf Viren ueberprueft. www.mimesweeper.com ********************************************************************** ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From alan_maxwell at hilton.com Thu Feb 10 17:17:03 2005 From: alan_maxwell at hilton.com (Alan Maxwell) Date: Thu, 10 Feb 2005 10:17:03 -0600 Subject: freshness_threshold Message-ID: <1108052223.18306.19.camel@amaxred.hilton.com> I understand how this works, i.e. set this to an integer seconds on a service to "expect" results. I have some checks that are in days and some in weeks. Will freshness_threshold work with numbers that large? -------------- next part -------------- An HTML attachment was scrubbed... URL: From jorbir at gmail.com Thu Feb 10 18:13:32 2005 From: jorbir at gmail.com (=?ISO-8859-1?Q?J=F8rgen_Birkhaug?=) Date: Thu, 10 Feb 2005 18:13:32 +0100 Subject: Nagios/NSCA/Munin Integration Message-ID: <6e60528f05021009136e5db92@mail.gmail.com> Munin (third party monitoring software) is successfully sending alerts to nagios.cmd via NSCA, but I'm still (after having read just about everything about volatile services that I can find) having problems getting the Nagios Daemon to react upon passive service alerts written to nagios.cmd by NSCA. nagios.cmd might contain: ----------------------------------------------------------------------- EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;kang.os.ergo.no;df;2;Filesystem usage (in %):CRITICALs: /mnt/media is 100.00 (outside range [:98]). ----------------------------------------------------------------------- shortly followed by message stating that the service 'df' could not be found by Nagios. Sorry for yet again bringing up syntax questions regarding passive alerts, but how do I correctly define a service that will pick up alerts written to nagios.cmd? My services.cfg contains: ----------------------------------------------------------------------- define service { use generic-service name munin register 0 service_description munin_alert is_volatile 1 check_command check-host-alive active_checks_enabled 0 passive_checks_enabled 1 max_check_attempts 1 normal_check_interval 1 retry_check_interval 1 check_period none notification_interval 31536000 } define service { use munin host_name host service_description df register 1 } ----------------------------------------------------------------------- -- J?rgen Birkhaug ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mpowell at ena.com Thu Feb 10 18:34:15 2005 From: mpowell at ena.com (Marc Powell) Date: Thu, 10 Feb 2005 11:34:15 -0600 Subject: Nagios/NSCA/Munin Integration Message-ID: <2B79966571B4B842B9C07E9910E38CE602BFE7@mismail.ena.com> > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of J?rgen Birkhaug > Sent: Thursday, February 10, 2005 11:14 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nagios/NSCA/Munin Integration > > Munin (third party monitoring software) is successfully sending alerts > to nagios.cmd via NSCA, but I'm still (after having read just about > everything about volatile services that I can find) having problems > getting the Nagios Daemon to react upon passive service alerts written > to nagios.cmd by NSCA. > > nagios.cmd might contain: > > ----------------------------------------------------------------------- > EXTERNAL COMMAND: > PROCESS_SERVICE_CHECK_RESULT;kang.os.ergo.no;df;2;Filesystem usage (in > %):CRITICALs: /mnt/media is 100.00 (outside range [:98]). > ----------------------------------------------------------------------- > > shortly followed by message stating that the service 'df' could not be > found by Nagios. > > Sorry for yet again bringing up syntax questions regarding passive > alerts, but how do I correctly define a service that will pick up > alerts written to nagios.cmd? > > My services.cfg contains: > > ----------------------------------------------------------------------- > define service { > use generic-service > name munin > register 0 > service_description munin_alert > is_volatile 1 > check_command check-host-alive > active_checks_enabled 0 > passive_checks_enabled 1 > max_check_attempts 1 > normal_check_interval 1 > retry_check_interval 1 > check_period none > notification_interval 31536000 > } > > define service { > use munin > host_name host > service_description df > register 1 > } Is this your actual service definition or a munged one? host-name above should be 'kang.os.ergo.no', not 'host'. -- Marc ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jorbir at gmail.com Thu Feb 10 18:46:53 2005 From: jorbir at gmail.com (=?ISO-8859-1?Q?J=F8rgen_Birkhaug?=) Date: Thu, 10 Feb 2005 18:46:53 +0100 Subject: Nagios/NSCA/Munin Integration In-Reply-To: <2B79966571B4B842B9C07E9910E38CE602BFE7@mismail.ena.com> References: <2B79966571B4B842B9C07E9910E38CE602BFE7@mismail.ena.com> Message-ID: <6e60528f050210094634af2a00@mail.gmail.com> On Thu, 10 Feb 2005 11:34:15 -0600, Marc Powell wrote: > > Is this your actual service definition or a munged one? host-name above should be 'kang.os.ergo.no', not 'host'. > > -- > Marc > > DOH! Sorry. It's "munged". In real life the hostnames match. -- J?rgen Birkhaug ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bakers at web-ster.com Thu Feb 10 18:48:35 2005 From: bakers at web-ster.com (Scott Baker) Date: Thu, 10 Feb 2005 09:48:35 -0800 Subject: Nagios Monitor MAX Tnt? Message-ID: <420B9E73.60704@web-ster.com> I have a Lucent/Ascent Max TNT that I want to monitor alarms on. I'm curious if anyone is already doing this? I was planning on writing a perl script to telnet in and check alarms, but I thought before I went to all that trouble I'd see if someone was already doing what I need to. Scott -- Scott Baker Canby Telephone - Network Administrator - RHCE Ph: 503.266.8253 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dwarner at ctinetworks.com Thu Feb 10 18:57:35 2005 From: dwarner at ctinetworks.com (Douglas E. Warner) Date: Thu, 10 Feb 2005 12:57:35 -0500 Subject: Nagios Monitor MAX Tnt? In-Reply-To: <420B9E73.60704@web-ster.com> References: <420B9E73.60704@web-ster.com> Message-ID: <200502101257.35701.dwarner@ctinetworks.com> On Thursday 10 February 2005 12:48, Scott Baker wrote: > I have a Lucent/Ascent Max TNT that I want to monitor alarms on. I'm > curious if anyone is already doing this? I was planning on writing a > perl script to telnet in and check alarms, but I thought before I > went to all that trouble I'd see if someone was already doing what I > need to. Alarms.. like on T1/PRIs? This is all available via SNMP. See attached perl script.. -Doug -- Douglas E. Warner Network Engineer CTI Networks, Inc. http://www.ctinetworks.com +1 717 975 9000 -------------- next part -------------- A non-text attachment was scrubbed... Name: check_snmp_if Type: application/x-perl Size: 15305 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From Sam.Reynolds at networkts.com Thu Feb 10 19:22:27 2005 From: Sam.Reynolds at networkts.com (Sam Reynolds) Date: Thu, 10 Feb 2005 13:22:27 -0500 Subject: Check_SNMP_INT.PL help needed Message-ID: <6A1DD050FEF19644B488BD3889A0A2217DE61B@FLASH.nts.local> Thanks for the help! That was the issue. Although I am now having an issue that says "Serial5/2:UP No usable data on file (3 rows) :(1 UP): UNKNOWN". I look in the tmp file that was created and there is data there. The command I am using is check_snmp_int.pl -H 127.0.0.1 -C -n Serial5/2 -k -w 200,400 -c 0,0 (IP and community name are real when I put in the command). I was expecting to determine what kind of bandwidth I am using on this interface. If I am using the wrong tool for this please let me know. Thanks, Sam -------------- next part -------------- An HTML attachment was scrubbed... URL: From ae at op5.se Thu Feb 10 19:50:05 2005 From: ae at op5.se (Andreas Ericsson) Date: Thu, 10 Feb 2005 19:50:05 +0100 Subject: NC_Net v2.15 - New Version (with Perfomance counter FIX) In-Reply-To: References: Message-ID: <420BACDD.5030507@op5.se> Anthony Montibello wrote: > NC_Net has a new version > In this the documentaiton has been updated > and several checks command have been rewriten inside NC_Net > Some debuggin of configuration varibles (more debugging is needed) > for instance now you should be able to stop passive checks via the > check_nt then reenable at some latter time via check_nt > > Check_Nt - with NC_Net enhancements included with NC_Net has had > CONFIG command added. I suppose you've thought about adding some sort of non-plaintext authentication scheme for this. The idea of random hosts reconfiguring even the smallest thing really doesn't feel all too good. > Event log BUG fix ( older event log from 1.09 had a bug with parsing > the arguments) > performance counter Bug fix - no longer 0 for per second counters > > other changes... > > NC_Net official site: www.shatterit.com/NC_Net > > Good luck with it. > Tony > > ps > The issue about installing to a location other than C:\Program > Files\Shatter It\NC_Net > has NOT been resolved yet. I am currently working on it. > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From coreyva at gmail.com Thu Feb 10 19:51:45 2005 From: coreyva at gmail.com (Corey Van Allen) Date: Thu, 10 Feb 2005 11:51:45 -0700 Subject: nrpe (No output returned from plugin) works fine from cli Message-ID: <8bd4a096050210105174c1d83e@mail.gmail.com> I'm having an issue with nrpe where I can run /usr/lib/nagios/plugins/check_nrpe -H 206.135.x.x -c check_load and it returns OK - load average: 0.88, 0.65, 0.59 but the web client shows (No output returned from plugin). I have debugging on client side and will see the cli connection from the server, but nothing from the daemon. I have tried debugging the plugin using this information, but the file is never created. http://www.nagios.org/faqs/viewfaq.php?faq_id=162 Looking through the archives, I've seen that -a $ARG2$ should be removed if not using arguments, which I'm not, so I did. No change. Here are the relevant file contents /etc/nagios-plugins/config/check_nrpe.cfg define command { command_name check_nrpe command_line /usr/lib/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ } services.cfg define service{ use generic-service ; Name of service template to use host_name linux service_description LOAD is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups foo-admins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_nrpe!check_load } client side /usr/local/nagios/etc/nrpe.cfg command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20 BTW, This happens with all the nrpe commands not just the load. Client side debug output Feb 10 10:45:55 qmail nrpe[26034]: Connection from 206.135.x.x port 53767 Feb 10 10:45:55 qmail nrpe[26034]: Host address checks out ok Feb 10 10:45:55 qmail nrpe[26034]: Handling the connection... Feb 10 10:45:56 qmail nrpe[26034]: Host is asking for command 'check_load' to be run... Feb 10 10:45:56 qmail nrpe[26034]: Running command: /usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20 Feb 10 10:45:56 qmail nrpe[26034]: Command completed with return code 0 and output: OK - load average: 1.37, 0.65, 0.59 Feb 10 10:45:56 qmail nrpe[26034]: Return Code: 0, Output: OK - load average: 1.37, 0.65, 0.59 Feb 10 10:45:56 qmail nrpe[26034]: Connection from 206.135.x.x closed. versions ii nagios-common 1.3-cvs.200501 A host/service/network monitoring and manage ii nagios-mysql 1.3-cvs.200501 A host/service/network monitoring and manage ii nagios-nrpe-do 2.0-7 Documentation for nagios-nrpe ii nagios-nrpe-pl 2.0-7 Nagios Remote Plugin Exectutor Plugin ii nagios-nrpe-se 2.0-7 Nagios Remote Plugin Exectutor Server ii nagios-plugins 1.3.1.0-12 Plugins for the nagios network monitoring an ii nagios-statd-c 3.09-7 nagios client for montioring remote system i ii nagios-statd-s 3.09-7 nagios server for monitoring remote system i Ideas? At this point I'm baffled. -- Corey ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Feb 10 19:52:38 2005 From: ae at op5.se (Andreas Ericsson) Date: Thu, 10 Feb 2005 19:52:38 +0100 Subject: Nagios 2.0 CVS and contact_groups In-Reply-To: <20050210144722.GI6329@arktur.dfn.de> References: <20050210144722.GI6329@arktur.dfn.de> Message-ID: <420BAD76.5080007@op5.se> Holger Wirtz wrote: > Hi, > > I have lots of hosts and services. Today I tried Nagios 2.0 CVS. It > works fine for me (I am an admin and I see EVERY host and service). > > If I try to insert a line with "contact_groups" inside a host or service > definition I get an error while reloading for each host/service: > > --- cut here --- > Nagios 2.0b1 > Copyright (c) 1999-2005 Ethan Galstad (www.nagios.org) > Last Modified: 12-15-2004 > License: GPL > > Reading configuration data... > > Running pre-flight check on configuration data... > > Checking services... > Warning: Service 'PING' on host 'foo.bar' has no default contact group(s) > defined! > ... > --- cut here --- > > The sample configs have this line... and even the hostgroups file. But > putting a contact_groups line inside a hostgroup definition I get also > an error: > > --- cut here --- > Nagios 2.0b1 > Copyright (c) 1999-2005 Ethan Galstad (www.nagios.org) > Last Modified: 12-15-2004 > License: GPL > > Reading configuration data... > > Error: Invalid hostgroup object directive 'contact_groups'. Read the changelog. contact_groups have been moved to host objects so as to adhere to the way services are configured. > Error: Could not add object property in file > '/usr/local/nagios/etc/hostgroups.c fg' on line 23. > --- cut here --- > > Hm, this seems to be very strange because putting a line with > "contact_groups" inside the object definition (hosts and services) works... > > Is this a bug or am I to stupid to configure nagios? > > Regards, Holger -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Feb 10 19:54:00 2005 From: ae at op5.se (Andreas Ericsson) Date: Thu, 10 Feb 2005 19:54:00 +0100 Subject: nrpe2 is bailing out In-Reply-To: <200502101709.04131.Michael.Huettig@medien-systempartner.de> References: <200502101709.04131.Michael.Huettig@medien-systempartner.de> Message-ID: <420BADC8.8010107@op5.se> Michael H?ttig wrote: > Hi all, > since yesterday nrpe on some clients in our DMZ creates messages > > "nrpe[29828]: Could not read request from client, bailing out..." > > But when i checked manual from shell with > check_nrpe -H -c check_load -a 3,2,1 3,3,2 > i didn?t get the message. > > NRPE 2 ist compiled with option --disable-ssl --enable-command-args, the > nrpe_daemon run?s under suse73 and suse82. > Make sure the client (check_nrpe) also runs without ssl. This is the most common error for server/client issues. > Yes, i?ve read the faq?s and documentation, googled a lot and also searched > the whole nagios-mailarchiv, but i didn?t find any answer, FW-Rules also don?t changed. > > If you have a great idea, please let me know. thx > > With best regards > > Michael > > > ********************************************************************** > Diese E-Mail wurde auf Viren ueberprueft. > www.mimesweeper.com > ********************************************************************** > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sobrien at ci.bend.or.us Thu Feb 10 19:59:40 2005 From: sobrien at ci.bend.or.us (Steve OBrien) Date: Thu, 10 Feb 2005 10:59:40 -0800 Subject: E-Pager Alerts only contain From: line Message-ID: I recently moved nagios from an old redhat box to Solaris. Since the move my epager alerts only show the from: nagios at host.domain line. They used to contain all the other information. Any ideas? Here is my notify-by-epager macro: # 'notify-by-epager' command definition define command{ command_name notify-by-epager command_line /usr/bin/printf "%b" "Service: $SERVICEDESC$\nHost: $HO STNAME$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\nInfo: $SERVICEOUTPUT$\n Date: $LONGDATETIME$" | /usr/bin/mail -s "$NOTIFICATIONTYPE$: $HOSTALIAS$/$SERV ICEDESC$ is $SERVICESTATE$" $CONTACTPAGER$ } Thanks, Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddunham at taos.com Thu Feb 10 20:13:53 2005 From: ddunham at taos.com (Darren Dunham) Date: Thu, 10 Feb 2005 11:13:53 -0800 (PST) Subject: E-Pager Alerts only contain From: line In-Reply-To: from "Steve OBrien" at Feb 10, 2005 10:59:40 AM References: Message-ID: <200502101913.LAA01226@redwood.taos.com> > I recently moved nagios from an old redhat box to Solaris. Since the move > my epager alerts only show the from: nagios at host.domain line. They used to > contain all the other information. Any ideas? Here is my notify-by-epager > macro: > # 'notify-by-epager' command definition > define command{ > command_name notify-by-epager > command_line /usr/bin/printf "%b" "Service: $SERVICEDESC$\nHost: > $HO > STNAME$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\nInfo: > $SERVICEOUTPUT$\n > Date: $LONGDATETIME$" | /usr/bin/mail -s "$NOTIFICATIONTYPE$: > $HOSTALIAS$/$SERV > ICEDESC$ is $SERVICESTATE$" $CONTACTPAGER$ > } /usr/bin/mail on Solaris is not similar to BSD style 'mail'. You probably need to change that to /usr/bin/mailx (or /usr/ucb/mail, but I prefer the first way). -- Darren Dunham ddunham at taos.com Senior Technical Consultant TAOS http://www.taos.com/ Got some Dr Pepper? San Francisco, CA bay area < This line left intentionally blank to confuse you. > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From strombrg at dcs.nac.uci.edu Thu Feb 10 20:26:38 2005 From: strombrg at dcs.nac.uci.edu (Dan Stromberg) Date: Thu, 10 Feb 2005 11:26:38 -0800 Subject: Checking hosts with no services In-Reply-To: <420B4AF1.2000108@gmx.net> References: <420B4721.7030806@sers.ox.ac.uk> <420B4AF1.2000108@gmx.net> Message-ID: <1108063598.9216.36.camel@seki.nac.uci.edu> On Thu, 2005-02-10 at 12:52 +0100, Hendrik "Boomer" Baecker wrote: > Ian Chard schrieb: > > > Hi, > > > > If I have hosts with no associated services (e.g. routers that I can't > > SNMP query), will host checks be scheduled for them, or do I need to > > use check_interval? > > > > Thanks > > - Ian > > > Hi, > > when I am not wrong, you can't do this. Nagios checks Service not Hosts. > The hosts were just checked if one Service-Check failes. > > Try to use the check_ping or check_icmp (it's nice and very fast!) as a > standard service for your hosts which can't be monitored by other checks. I concur - a check_icmp for the host check, and another check_icmp as service would be a good idea for a box that has no ports open whatsoever. However, you may want to confirm that you really do have no ports open at all, by running: nmap -sS router.box.com nmap -sU router.box.com You may even want to through in a -p1-65535 on both commands, to make nmap scan all 128K ports, instead of just common ones. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From jstone at fivepoints.net Thu Feb 10 20:34:11 2005 From: jstone at fivepoints.net (Joshua Stone) Date: Thu, 10 Feb 2005 14:34:11 -0500 Subject: check_snmp problem Message-ID: <9B870348FF06EB40890E74110C24259F1D1C63@FPNYEXCBE02.opus-i.corp> I am trying to monitor available swap space on a Borderware mail gateway. I am having trouble configuring the warning and critical thresholds and could use some help. Here is some relevant details: Looks correct from the commandline: [root at chimera etc]# ../libexec/check_snmp -H 1.2.168.15 -o "BORDERWARE-MIB::memAvailSwap.0" -w 300000:200001 -c 200000:0 -C XXXXXX -m "/usr/share/snmp/mibs/BORDERWARE-SMG-MIB.txt" SNMP OK - 440492 [root at chimera etc]# Here is the entry in checkcommands.cfg: define command{ command_name check-bw_memAvailSwap command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o "BORDERWARE-MIB:memAvailSwap.0" -w $ARG1$ -c $ARG2$ -C XXXXX -m "/usr/share/snmp/mibs/BORDERWA E-SMG-MIB.txt" } And services.cfg: define service{ use snmp-service host_name bdware1 check_command check-bw_memAvailSwap!300000:200001!200000:0 } However, the service returns a warning state for every check. [1108061224] SERVICE NOTIFICATION: blert;bdware1;memAvailSwap;WARNING;notify-by-email;SNMP WARNING - 440100 Thanks in advance for any help/ideas. -- jds ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From EmmettH at Examen.com Thu Feb 10 21:19:06 2005 From: EmmettH at Examen.com (Emmett Hogan) Date: Thu, 10 Feb 2005 12:19:06 -0800 Subject: Turn off RED for PASSIVE ONLY checks? Message-ID: <420BC1BA.5090003@Examen.com> Hi Everyone, Is it possible to turn off the red "Services Disabled" display on the TAC page for passive ONLY checks? Basically, I have a passive check that processes emails from the backup system, and there is no active checks for this to do (unless of course the "freshness" period expires). But, it is very distracting to have the RED display under "Active Checks" when it's actually not an error, the checks are intentionally turned off (as recommended by the Nagios docs). Anybody found a way around this? Thanks, Emmett -- ================ Examen, Inc. ================ Emmett Hogan Senior UNIX Administrator emmetth at examen.com ==== Outside Counsel Management Solutions ==== CONFIDENTIAL - PRIVILEGED INFORMATION This e-mail may include confidential, trade secret or legally privileged information. If you are not the intended recipient, please do not read, copy, use, distribute or disclose this communication to anyone other than the intended recipient. Please notify the sender of any error in transmission or delivery and delete any misdirected e-mail from your system. -------------- next part -------------- A non-text attachment was scrubbed... Name: EmmettH.vcf Type: text/x-vcard Size: 260 bytes Desc: not available URL: From mpowell at ena.com Thu Feb 10 21:42:13 2005 From: mpowell at ena.com (Marc Powell) Date: Thu, 10 Feb 2005 14:42:13 -0600 Subject: Turn off RED for PASSIVE ONLY checks? Message-ID: <2B79966571B4B842B9C07E9910E38CE60C9D11@mismail.ena.com> > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Emmett Hogan > Sent: Thursday, February 10, 2005 2:19 PM > To: Nagios Users List > Subject: [Nagios-users] Turn off RED for PASSIVE ONLY checks? > > Hi Everyone, > > Is it possible to turn off the red "Services Disabled" display on the > TAC page for passive ONLY checks? > > Basically, I have a passive check that processes emails from the backup > system, and there is no active checks for this to do (unless of course > the "freshness" period expires). But, it is very distracting to have > the RED display under "Active Checks" when it's actually not an error, > the checks are intentionally turned off (as recommended by the Nagios > docs). > > Anybody found a way around this? active_checks_enabled 1 passive_checks_enabled 1 check_period none -- Marc ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From EmmettH at Examen.com Thu Feb 10 21:46:21 2005 From: EmmettH at Examen.com (Emmett Hogan) Date: Thu, 10 Feb 2005 12:46:21 -0800 Subject: Turn off RED for PASSIVE ONLY checks? In-Reply-To: <2B79966571B4B842B9C07E9910E38CE60C9D11@mismail.ena.com> References: <2B79966571B4B842B9C07E9910E38CE60C9D11@mismail.ena.com> Message-ID: <420BC81D.9010208@Examen.com> Marc Powell wrote: >>Is it possible to turn off the red "Services Disabled" display on the >>TAC page for passive ONLY checks? >> >> >active_checks_enabled 1 >passive_checks_enabled 1 >check_period none > > But this causes my Freshness checks to never run. (The result of check_period = none) :-( -Emmett -- ================ Examen, Inc. ================ Emmett Hogan Senior UNIX Administrator emmetth at examen.com ==== Outside Counsel Management Solutions ==== CONFIDENTIAL - PRIVILEGED INFORMATION This e-mail may include confidential, trade secret or legally privileged information. If you are not the intended recipient, please do not read, copy, use, distribute or disclose this communication to anyone other than the intended recipient. Please notify the sender of any error in transmission or delivery and delete any misdirected e-mail from your system. -------------- next part -------------- A non-text attachment was scrubbed... Name: EmmettH.vcf Type: text/x-vcard Size: 260 bytes Desc: not available URL: From jorbir at gmail.com Thu Feb 10 22:38:20 2005 From: jorbir at gmail.com (=?ISO-8859-1?Q?J=F8rgen_Birkhaug?=) Date: Thu, 10 Feb 2005 22:38:20 +0100 Subject: Nagios/NSCA/Munin Integration In-Reply-To: <420BAF2B.1030102@op5.se> References: <6e60528f05021009136e5db92@mail.gmail.com> <420BAF2B.1030102@op5.se> Message-ID: <6e60528f050210133843697cb8@mail.gmail.com> On Thu, 10 Feb 2005 19:59:55 +0100, Andreas Ericsson wrote: > J?rgen Birkhaug wrote: > > Munin (third party monitoring software) is successfully sending alerts > > to nagios.cmd via NSCA, but I'm still (after having read just about > > everything about volatile services that I can find) having problems > > getting the Nagios Daemon to react upon passive service alerts written > > to nagios.cmd by NSCA. > > > > nagios.cmd might contain: > > > > ----------------------------------------------------------------------- > > EXTERNAL COMMAND: > > PROCESS_SERVICE_CHECK_RESULT;kang.os.ergo.no;df;2;Filesystem usage (in > > %):CRITICALs: /mnt/media is 100.00 (outside range [:98]). > > ----------------------------------------------------------------------- > > > > nagios.cmd isn't supposed to contain anything humanly readable. It's a > named pipe used for inter-process communication and exists only as a > fixed buffer of (usually, on linux) 4096 bytes of RAM allocated inside > the kernel, which punts the incoming bytes to the ipc-channel on the > reading end. No filesystem IO takes place, there has to be a reading end > connected for writing to succeed, and if you actually access it with cat > (or something else) you will empty the pipe (and possibly steal it) > before nagios can read the message. > > > shortly followed by message stating that the service 'df' could not be > > found by Nagios. > > > > Sorry for yet again bringing up syntax questions regarding passive > > alerts, but how do I correctly define a service that will pick up > > alerts written to nagios.cmd? > > > > My services.cfg contains: > > > > ----------------------------------------------------------------------- > > define service { > > use generic-service > > name munin > > register 0 > > service_description munin_alert > > is_volatile 1 > > check_command check-host-alive > > active_checks_enabled 0 > > passive_checks_enabled 1 > > max_check_attempts 1 > > normal_check_interval 1 > > retry_check_interval 1 > > check_period none > > notification_interval 31536000 > > } > > > > define service { > > use munin > > host_name host > > service_description df > > register 1 > > } > > ----------------------------------------------------------------------- > > > > -- > Andreas Ericsson andreas.ericsson at op5.se > OP5 AB www.op5.se > Lead Developer I should probably have clarified this in my initial post. The above message (EXTERNAL COMMAND) is derived from Nagios' own log file; nagios.log. It is not entered directly into nagios.cmd but rather dumped there by using the NSCA Daemon's 'command_file' parameter). So, presuming that external events are supposed to end up in nagios.cmd, how do I define a service that will actually generate a warning in Nagios? -- J?rgen Birkhaug ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mpowell at ena.com Thu Feb 10 22:40:32 2005 From: mpowell at ena.com (Marc Powell) Date: Thu, 10 Feb 2005 15:40:32 -0600 Subject: Turn off RED for PASSIVE ONLY checks? Message-ID: <2B79966571B4B842B9C07E9910E38CE60C9D18@mismail.ena.com> > -----Original Message----- > From: Emmett Hogan [mailto:EmmettH at Examen.com] > Sent: Thursday, February 10, 2005 2:46 PM > To: Marc Powell > Cc: Nagios Users List > Subject: Re: [Nagios-users] Turn off RED for PASSIVE ONLY checks? > > Marc Powell wrote: > > >>Is it possible to turn off the red "Services Disabled" display on the > >>TAC page for passive ONLY checks? > >> > >> > >active_checks_enabled 1 > >passive_checks_enabled 1 > >check_period none > > > > > But this causes my Freshness checks to never run. (The result of > check_period = none) Are you sure about that? "What Happens When A Service Check Result Becomes "Stale" If the check results of a service are found to be "stale" (as described above), Nagios will force an active check of the service by executing the command specified by the check_command option in the service definition. ***It is important to note that an active service check which is being forced because the service was detected as being "stale" gets executed even if active service checks are disabled on a program-wide or service-specific basis.***" (emphasis mine) Also, looking at checks.c and commands.c, there appears to be a clear distinction between normally scheduled checks and forced checks. Freshness uses the latter. Additionally, this bit of code seems to indicate to me that the checks _will_ occur -- /* make sure this is a valid time to check the service */ if(check_time_against_period((unsigned long)current_time,svc-(check_period)==ERROR){ /* don't check the service if we're not forcing it through */ if(!(svc->check_options & CHECK_OPTION_FORCE_EXECUTION)) check_service=FALSE; /* get the next valid time we can run the check */ preferred_time=current_time; /* set the invalid time flag */ time_is_valid=FALSE; } -- Marc ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mpowell at ena.com Thu Feb 10 22:43:36 2005 From: mpowell at ena.com (Marc Powell) Date: Thu, 10 Feb 2005 15:43:36 -0600 Subject: Nagios/NSCA/Munin Integration Message-ID: <2B79966571B4B842B9C07E9910E38CE60C9D19@mismail.ena.com> > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of J?rgen Birkhaug > Sent: Thursday, February 10, 2005 3:38 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Nagios/NSCA/Munin Integration > > On Thu, 10 Feb 2005 19:59:55 +0100, Andreas Ericsson wrote: > > J?rgen Birkhaug wrote: > > > Munin (third party monitoring software) is successfully sending alerts > > > to nagios.cmd via NSCA, but I'm still (after having read just about > > > everything about volatile services that I can find) having problems > > > getting the Nagios Daemon to react upon passive service alerts written > > > to nagios.cmd by NSCA. > > > > > > nagios.cmd might contain: > > > > > > ---------------------------------------------------------------------- > - > > > EXTERNAL COMMAND: > > > PROCESS_SERVICE_CHECK_RESULT;kang.os.ergo.no;df;2;Filesystem usage (in > > > %):CRITICALs: /mnt/media is 100.00 (outside range [:98]). > > > ---------------------------------------------------------------------- > - > > > > > > > nagios.cmd isn't supposed to contain anything humanly readable. It's a > > named pipe used for inter-process communication and exists only as a > > fixed buffer of (usually, on linux) 4096 bytes of RAM allocated inside > > the kernel, which punts the incoming bytes to the ipc-channel on the > > reading end. No filesystem IO takes place, there has to be a reading end > > connected for writing to succeed, and if you actually access it with cat > > (or something else) you will empty the pipe (and possibly steal it) > > before nagios can read the message. > > > > > shortly followed by message stating that the service 'df' could not be > > > found by Nagios. > > > > > > Sorry for yet again bringing up syntax questions regarding passive > > > alerts, but how do I correctly define a service that will pick up > > > alerts written to nagios.cmd? > > > > > > My services.cfg contains: > > > > > > ---------------------------------------------------------------------- > - > > > define service { > > > use generic-service > > > name munin > > > register 0 > > > service_description munin_alert > > > is_volatile 1 > > > check_command check-host-alive > > > active_checks_enabled 0 > > > passive_checks_enabled 1 > > > max_check_attempts 1 > > > normal_check_interval 1 > > > retry_check_interval 1 > > > check_period none > > > notification_interval 31536000 > > > } > > > > > > define service { > > > use munin > > > host_name host > > > service_description df > > > register 1 > > > } > > > ---------------------------------------------------------------------- > - > > > > > > > -- > > Andreas Ericsson andreas.ericsson at op5.se > > OP5 AB www.op5.se > > Lead Developer > > I should probably have clarified this in my initial post. The above > message (EXTERNAL COMMAND) is derived from Nagios' own log file; > nagios.log. > > It is not entered directly into nagios.cmd but rather dumped there by > using the NSCA Daemon's 'command_file' parameter). > > So, presuming that external events are supposed to end up in > nagios.cmd, how do I define a service that will actually generate a > warning in Nagios? The error message you see -- > > shortly followed by message stating that the service 'df' could not > > be found by Nagios. Indicates that nagios can't find the service df associated with the host that was also in that error message. This could be because you added it without restarting nagios or that there is a typo of some sort or it's really not associated with the host. Try running '/path/to/nagios -v /path/to/nagios.cfg' to check for errors and restart nagios. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From billwinkles at lucent.com Thu Feb 10 22:59:08 2005 From: billwinkles at lucent.com (Winkles, William (Bill)) Date: Thu, 10 Feb 2005 14:59:08 -0700 Subject: NagMin Help Message-ID: <0DB72ED9B906754EB93DA5D814E66F320BA6F88C@co7010exch004u.milehi.lucent.com> Can anyone clarify the instructions for setting up NagMIN after running the setup scrip? I got the below output of instructions after running setup. On step 4, should I be specifying /usr/local/nagmin/nagmin instead of /usr/local/nagios/etc for the path? Any help or suggestions are appreciated. Thanks. Bill NagMIN Database Setup Complete # # 1 - Now access WebMIN and install the NagMIN plugin # 2 - Configure NagMIN Nagios default values clicking Module Config in WebMIN # 3 - Edit your database tables and run Verification until you get # a clean configuration. This will create NagMIN configuration files in # /usr/local/nagmin/nagmin/ directory # 4 - Modify your nagios.cfg and cgi.cfg files to replace configuration file se ttings # with new NagMIN configuration files listed below. This must be done befo re # you can successfully activate your first NagMIN configuration. # 5 - Run Activate Config. Check the verification output for any errors. # 6 - Remove any unnecessary configuration files from your /usr/local/nagios/et c # directory. # 7 - Install the following optional software for full NagMIN functionality: # # - fping-2.3b1 # - nmap-3.50 # - rrdtool # - net-snmp-5.0.8 # # 8 - Install the following perl modules for full NagMIN functionality # - Net::SNMP # - CGI # - DBI # - Apache::DBI # # NagMIN Configuration Files # # cfg_file=/usr/local/nagios/etc/Contact.cfg # cfg_file=/usr/local/nagios/etc/ContactGroup.cfg # cfg_file=/usr/local/nagios/etc/Host.cfg # cfg_file=/usr/local/nagios/etc/HostEscalation.cfg # cfg_file=/usr/local/nagios/etc/HostGroup.cfg # cfg_file=/usr/local/nagios/etc/HostGroupEscalation.cfg # cfg_file=/usr/local/nagios/etc/Service.cfg # cfg_file=/usr/local/nagios/etc/ServiceDependency.cfg # cfg_file=/usr/local/nagios/etc/ServiceEscalation.cfg # cfg_file=/usr/local/nagios/etc/ServiceExtInfo.cfg # cfg_file=/usr/local/nagios/etc/ServiceTemplate.cfg # cfg_file=/usr/local/nagios/etc/TimePeriod.cfg Bill Winkles Lucent Technologies * Sr. Technical Engineer Global Network Operations Center - Denver * +1 720/482-6528 (Voice) * +1 303/941-2455 (Mobile) -------------- next part -------------- An HTML attachment was scrubbed... URL: From EmmettH at Examen.com Thu Feb 10 23:08:07 2005 From: EmmettH at Examen.com (Emmett Hogan) Date: Thu, 10 Feb 2005 14:08:07 -0800 Subject: Turn off RED for PASSIVE ONLY checks? In-Reply-To: <2B79966571B4B842B9C07E9910E38CE60C9D18@mismail.ena.com> References: <2B79966571B4B842B9C07E9910E38CE60C9D18@mismail.ena.com> Message-ID: <420BDB47.8010406@Examen.com> Marc Powell wrote: >Are you sure about that? > >"What Happens When A Service Check Result Becomes "Stale" > >If the check results of a service are found to be "stale" (as described >above), Nagios will force an active check of the service by executing >the command specified by the check_command option in the service >definition. ***It is important to note that an active service check >which is being forced because the service was detected as being "stale" >gets executed even if active service checks are disabled on a >program-wide or service-specific basis.***" > >(emphasis mine) > >Also, looking at checks.c and commands.c, there appears to be a clear >distinction between normally scheduled checks and forced checks. >Freshness uses the latter. Additionally, this bit of code seems to >indicate to me that the checks _will_ occur -- > >/* make sure this is a valid time to check the service */ >if(check_time_against_period((unsigned >long)current_time,svc-(check_period)==ERROR){ > > /* don't check the service if we're not forcing it through */ > if(!(svc->check_options & CHECK_OPTION_FORCE_EXECUTION)) > check_service=FALSE; > > /* get the next valid time we can run the check */ > preferred_time=current_time; > > /* set the invalid time flag */ > time_is_valid=FALSE; > } > > Hmmmm.....I was going off of another user's observations that I found in the archives. I guess I should have looked at the code myself. :-( Anyway, that brings up a different problem then...our backups only run Monday-Friday. So, is it possible to have the freshness check only run on those days? I guess I could put the intelligence into my "active_check" command to return an "OK - No weekend backups" result. Now that I think about it, that might be the easiest thing to do. Thanks for your help (and patience) :-) -Emmett -------------- next part -------------- A non-text attachment was scrubbed... Name: EmmettH.vcf Type: text/x-vcard Size: 260 bytes Desc: not available URL: From jorbir at gmail.com Thu Feb 10 23:12:19 2005 From: jorbir at gmail.com (=?ISO-8859-1?Q?J=F8rgen_Birkhaug?=) Date: Thu, 10 Feb 2005 23:12:19 +0100 Subject: Nagios/NSCA/Munin Integration In-Reply-To: <2B79966571B4B842B9C07E9910E38CE60C9D19@mismail.ena.com> References: <2B79966571B4B842B9C07E9910E38CE60C9D19@mismail.ena.com> Message-ID: <6e60528f05021014125f2dfbe@mail.gmail.com> On Thu, 10 Feb 2005 15:43:36 -0600, Marc Powell wrote: > > The error message you see -- > > > > shortly followed by message stating that the service 'df' could not > > > be found by Nagios. > > Indicates that nagios can't find the service df associated with the host that was also in that error message. This could be because you added it without restarting nagios or that there is a typo of some sort or it's really not associated with the host. Try running '/path/to/nagios -v /path/to/nagios.cfg' to check for errors and restart nagios. > > hehe. I've triple checked the config many times... 'nagios -v nagios.cfg' generates no errors or warnings related to the 'df' service or the host. Also, Nagios has been reloaded/restarted. Here's the complete message from nagios.log: ------------------------------------------------------- [02-10-2005 22:55:59] Warning: Message queue contained results for service 'df' on host 'kang.os.ergo.no'. The service could not be found! [02-10-2005 22:55:54] EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;kang.os.ergo.no;df;2;Filesystem usage (in %):CRITICALs: /mnt/media is 100.00 (outside range [:98]). ------------------------------------------------------- -- J?rgen Birkhaug ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Feb 10 23:22:49 2005 From: ae at op5.se (Andreas Ericsson) Date: Thu, 10 Feb 2005 23:22:49 +0100 Subject: Nagios/NSCA/Munin Integration In-Reply-To: <6e60528f05021014125f2dfbe@mail.gmail.com> References: <2B79966571B4B842B9C07E9910E38CE60C9D19@mismail.ena.com> <6e60528f05021014125f2dfbe@mail.gmail.com> Message-ID: <420BDEB9.5060905@op5.se> J?rgen Birkhaug wrote: > On Thu, 10 Feb 2005 15:43:36 -0600, Marc Powell > wrote: > > >> The error message you see -- >> >> >>>> shortly followed by message stating that the service 'df' could >>>> not be found by Nagios. >> >> Indicates that nagios can't find the service df associated with the >> host that was also in that error message. This could be because you >> added it without restarting nagios or that there is a typo of some >> sort or it's really not associated with the host. Try running >> '/path/to/nagios -v /path/to/nagios.cfg' to check for errors and >> restart nagios. >> >> > > > hehe. I've triple checked the config many times... 'nagios -v > nagios.cfg' generates no errors or warnings related to the 'df' > service or the host. > > Also, Nagios has been reloaded/restarted. > > Here's the complete message from nagios.log: > > ------------------------------------------------------- [02-10-2005 > 22:55:59] Warning: Message queue contained results for service 'df' > on host 'kang.os.ergo.no'. The service could not be found! Hmm.... mighty weird. Are you absolutely certain the host 'kang.os.ergo.no' has a service named 'df' that accepts passive service check results? Do a cut'n paste and grep for it. Otherwise this must be some problem with having dots in the submitted command. > [02-10-2005 22:55:54] EXTERNAL COMMAND: > PROCESS_SERVICE_CHECK_RESULT;kang.os.ergo.no;df;2;Filesystem usage > (in %):CRITICALs: /mnt/media is 100.00 (outside range [:98]). > ------------------------------------------------------- > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From amontibello at gmail.com Fri Feb 11 07:44:07 2005 From: amontibello at gmail.com (Anthony Montibello) Date: Fri, 11 Feb 2005 01:44:07 -0500 Subject: NC_Net v2.15 - New Version (with Perfomance counter FIX) In-Reply-To: References: <420BACDD.5030507@op5.se> Message-ID: The CONFIG command in NC_Net - is only capable of changing NC_Net parameters that were initially set durring the parsing of the startup.cfg. This feature was added primarily as a mechanism for testing NC_Net, as well as giving it a mechanism for changing certain variables durring the setup phase of a new Host. For instance if the Host name of the Windows server was to change in Nagios Config, this command would enable a mechanism for pushing the change to NC_Net via an active check. Another use of CONFIG command is if the address or port of either passive or active checks was to be changed. This may happen in a distributed nagios environment. Also, NC_Net can be configured at startup to reject these commands. I am not sure how I would be able to add non-plaintext authentication scheme to this command at this time. How would this be implemented into check_nt? because check_NT uses plain only. I do understand the concerns about random host reconfiguration, but I have also had requests for minimizing the necessity of logging onto the windows host once NC_Net has been installed. besides, I had a need for changing configuration dynamically and I added the capabilities of this command for my own testing using the test console tool. I figured I might as well make the command available via Check_nt as well. The lock_active_config parameter was added to help with this balance. NC_Net will reject any NC_Net reconfiguration command sent via active check port if lock_actice_config is set to true. I will make sure in future releases of NC_Net that this option is set by default so that NC_Net system config changes via check_nt are locked out unless this option is explicitly changed in the startup.cfg of the NC_Net or locally via passive.cfg. -- passive.cfg also has a lock parameter that will remain false (open) in the startup, allowing for NC_Net config changes by adding to the passive.cfg. The next enhancement that was going to be implemented was the ability to push new passive check commands into NC_Net passive check queue (the passive check queue is actually the passive.cfg file). So basically using check_Nt and a new option added to the service check, Check_nt would send the check to be added to the passive check queue instead of running the check as an active check. Thanks you for the comments. Tony On Thu, 10 Feb 2005 19:50:05 +0100, Andreas Ericsson wrote: > > Check_Nt - with NC_Net enhancements included with NC_Net has had > > CONFIG command added. > > I suppose you've thought about adding some sort of non-plaintext > authentication scheme for this. The idea of random hosts reconfiguring > even the smallest thing really doesn't feel all too good. > > -- > Andreas Ericsson andreas.ericsson at op5.se > OP5 AB www.op5.se > Lead Developer > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Anthony.Caetano at t-systems.co.za Fri Feb 11 08:42:41 2005 From: Anthony.Caetano at t-systems.co.za (Anthony.Caetano at t-systems.co.za) Date: Fri, 11 Feb 2005 09:42:41 +0200 Subject: Turn off RED for PASSIVE ONLY checks? Message-ID: I agree with Emmet on both counts. Freshness checks will not be done if you check_period is not set (most likely what you want is to 24x7), at least with 2.0b1. Here is my post from a month ago where I detailed this: ----- Forwarded by Anthony Caetano/RUN/debis on 02/11/2005 09:35 AM ----- Anthony Caetano 01/14/2005 09:51 AM To: nagios-users at lists.sourceforge.net cc: Subject: heads up on freshness checking and your check_period Hi I have spent upwards of 4 hours trying to get freshness checking working in Nagios 2.0b1. So I am just posting this so it is in the archives. The nagios documentation says to set for the service you passively monitor active_checks_enabled 0 The documentation doesn't make mention of the check_period... I had set my check period to none since there would be no checks. Contrary to the docs I set active_checks_enabled to 1 in an attempt to avoid all the "red" for disabled services. (This is also recommended by the naplax.sf.net REL package which i was using for the passive checks) active_checks_enabled 1 check_period none No freshness checks were done, ever. I later saw that the Nagios documentation says to disable active checks. So I then had this active_checks_enabled 0 check_period none No freshness checks were done, ever. Only after looking at the code did i see in check.c /* see if the time is right... */ if(check_time_against_period(current_time,temp_service->check_period)==ERROR) continue; So basically you MUST set the equivalent of check_period 24x7 Otherwise the actual freshness check on that service is aborted. cheers -ant ************ Any views expressed in this message are those of the individual sender and not necessarily that of T-Systems South Africa (Pty) Ltd, its directors or employees, and accordingly no liability can be accepted therefore. Although this message has been scanned for the possible presence of computer viruses prior to dispatch, T-Systems South Africa (Pty) Ltd cannot be held responsible for the transmission of any virus or other material transmitted with, or part of, this message. ************ Any views expressed in this message are those of the individual sender and not necessarily that of T-Systems South Africa (Pty) Ltd, its directors or employees, and accordingly no liability can be accepted therefore. Although this message has been scanned for the possible presence of computer viruses prior to dispatch, T-Systems South Africa (Pty) Ltd cannot be held responsible for the transmission of any virus or other material transmitted with, or part of, this message. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kar at kakidata.dk Fri Feb 11 09:51:26 2005 From: kar at kakidata.dk (Kaare Rasmussen) Date: Fri, 11 Feb 2005 09:51:26 +0100 Subject: Different views? Message-ID: <200502110951.26752.kar@kakidata.dk> Hi I'd like to be able to partition the view from Nagios so some servers are presented on different pages. The way I figure to do this is to have different paths, ie http://www.server.name/view1 http://www.server.name/view2 http://www.server.name/view3 etc. and then to have different cgi configuration files. I can't find a way to limit the display of hosts though. Has anyone done this before so I can get some hints about what to do and pitfalls etc ? ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 caa.is Fri Feb 11 10:06:04 2005 From: art at caa.is (Arnar Thorarinsson) Date: 11 Feb 2005 09:06:04 +0000 Subject: Different views? In-Reply-To: <200502110951.26752.kar@kakidata.dk> References: <200502110951.26752.kar@kakidata.dk> Message-ID: <1108112764.3709.33.camel@black148> http://www.nagiosexchange.org/Frontends.37.0.html?&tx_netnagext_pi1[p_view]=167 shows different hostgroups, ok but not perfect in my view. On Fri, 2005-02-11 at 08:51, Kaare Rasmussen wrote: > Hi > > I'd like to be able to partition the view from Nagios so some servers are > presented on different pages. > > The way I figure to do this is to have different paths, ie > http://www.server.name/view1 > http://www.server.name/view2 > http://www.server.name/view3 > etc. > > and then to have different cgi configuration files. I can't find a way to > limit the display of hosts though. > > Has anyone done this before so I can get some hints about what to do and > pitfalls etc ? > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Kve?ja Arnar ??rarinsson T?lvunarfr??ingur Kerfisdeild S?mi : 569 4289 GSM : 861 2871 ---------------------- Flugm?lastj?rn ?slands Reykjav?kurflugv?llur 121 Reykjav?k http://www.caa.is ---------------------- ?essi t?lvup?stur og vi?hengi hans geta innihaldi? tr?na?aruppl?singar og er eing?ngu ?tla?ur ?eim sem hann er st?la?ur ?. ?heimil me?fer? t?lvup?sts ?essa og vi?hengja hans getur var?a? ska?ab?ta- og refsi?byrg? samkv?mt l?gum um fjarskipti. Efni t?lvup?stsins og vi?hengja er ? ?byrg? sendanda ef ?a? tengist ekki starfsemi Flugm?lastj?rnar ?slands. Ef ?? ert ekki skr??ur m?ttakandi og hefur fengi? skeyti? vegna mistaka, vinsamlegast haf?u strax samband vi? sendanda. ------------ This e-mail and its attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Feb 11 10:10:05 2005 From: ae at op5.se (Andreas Ericsson) Date: Fri, 11 Feb 2005 10:10:05 +0100 Subject: NC_Net v2.15 - New Version (with Perfomance counter FIX) In-Reply-To: References: <420BACDD.5030507@op5.se> Message-ID: <420C766D.50501@op5.se> Anthony Montibello wrote: > The CONFIG command in NC_Net - is only capable of changing NC_Net > parameters that were initially set durring the parsing of the > startup.cfg. > > This feature was added primarily as a mechanism for testing NC_Net, as > well as giving it a mechanism for changing certain variables durring > the setup phase of a new Host. For instance if the Host name of the > Windows server was to change in Nagios Config, this command would > enable a mechanism for pushing the change to NC_Net via an active > check. Another use of CONFIG command is if the address or port of > either passive or active checks was to be changed. This may happen in > a distributed nagios environment. Also, NC_Net can be configured at > startup to reject these commands. > > I am not sure how I would be able to add non-plaintext authentication > scheme to this command at this time. How would this be implemented > into check_nt? because check_NT uses plain only. > But nsca is able to select from a wide range of different ciphers. It wouldn't be an overwhelming feat to add that same sort of encryption to check_nt (although a bit timeconsuming). > I do understand the concerns about random host reconfiguration, but I > have also had requests for minimizing the necessity of logging onto > the windows host once NC_Net has been installed. besides, I had a need > for changing configuration dynamically and I added the capabilities of > this command for my own testing using the test console tool. I > figured I might as well make the command available via Check_nt as > well. > The lock_active_config parameter was added to help with this balance. > NC_Net will reject any NC_Net reconfiguration command sent via active > check port if lock_actice_config is set to true. I will make sure in > future releases of NC_Net that this option is set by default so that > NC_Net system config changes via check_nt are locked out unless this > option is explicitly changed in the startup.cfg of the NC_Net or > locally via passive.cfg. Sound thinking. > -- passive.cfg also has a lock parameter that > will remain false (open) in the startup, allowing for NC_Net config > changes by adding to the passive.cfg. > > The next enhancement that was going to be implemented was the ability > to push new passive check commands into NC_Net passive check queue > (the passive check queue is actually the passive.cfg file). So > basically using check_Nt and a new option added to the service > check, Check_nt would send the check to be added to the passive check > queue instead of running the check as an active check. > > Thanks you for the comments. > Tony > > On Thu, 10 Feb 2005 19:50:05 +0100, Andreas Ericsson wrote: > >>>Check_Nt - with NC_Net enhancements included with NC_Net has had >>>CONFIG command added. >> >>I suppose you've thought about adding some sort of non-plaintext >>authentication scheme for this. The idea of random hosts reconfiguring >>even the smallest thing really doesn't feel all too good. >> >>-- >>Andreas Ericsson andreas.ericsson at op5.se >>OP5 AB www.op5.se >>Lead Developer >> > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From wirtz at dfn.de Fri Feb 11 10:10:08 2005 From: wirtz at dfn.de (Holger Wirtz) Date: Fri, 11 Feb 2005 10:10:08 +0100 Subject: Nagios 2.0 CVS and contact_groups In-Reply-To: <420BAD76.5080007@op5.se> References: <20050210144722.GI6329@arktur.dfn.de> <420BAD76.5080007@op5.se> Message-ID: <20050211091008.GW6329@arktur.dfn.de> Andreas, On Thu, Feb 10, 2005 at 07:52:38PM +0100, Andreas Ericsson wrote: [Problem with contact_group defintion] > >Reading configuration data... > > > >Error: Invalid hostgroup object directive 'contact_groups'. > > Read the changelog. contact_groups have been moved to host objects so as > to adhere to the way services are configured. Ahhh, ok, sorry - that it. Now it works - but I really don't know exactly why. I put contact_groups only in the host definitions - that won't work. It worked after putting contact_groups in the absolute base template of my host AND service definitions... Holger > > >Error: Could not add object property in file > >'/usr/local/nagios/etc/hostgroups.c fg' on line 23. > >--- cut here --- > > > >Hm, this seems to be very strange because putting a line with > >"contact_groups" inside the object definition (hosts and services) works... > > > >Is this a bug or am I to stupid to configure nagios? > > > >Regards, Holger > > -- > Andreas Ericsson andreas.ericsson at op5.se > OP5 AB www.op5.se > Lead Developer > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk being > sent to /dev/null -- ##### #### ## ## Holger Wirtz Phone : (+49 30) 884299-40 ## ## ## ### ## DFN-Verein Fax : (+49 30) 884299-70 ## ## #### ###### Stresemannstr. 78 E-Mail: wirtz at dfn.de ## ## ## ## ### 10963 Berlin ##### ## ## ## GERMANY WWW : http://www.dfn.de GPG-Fingerprint: ABFA 1F51 DD8D 503C 85DC 0C51 E961 79E2 6685 9BCF ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Feb 11 10:17:12 2005 From: ae at op5.se (Andreas Ericsson) Date: Fri, 11 Feb 2005 10:17:12 +0100 Subject: Nagios 2.0 CVS and contact_groups In-Reply-To: <20050211091008.GW6329@arktur.dfn.de> References: <20050210144722.GI6329@arktur.dfn.de> <420BAD76.5080007@op5.se> <20050211091008.GW6329@arktur.dfn.de> Message-ID: <420C7818.4020007@op5.se> Holger Wirtz wrote: > Andreas, > > On Thu, Feb 10, 2005 at 07:52:38PM +0100, Andreas Ericsson wrote: > [Problem with contact_group defintion] > >>>Reading configuration data... >>> >>>Error: Invalid hostgroup object directive 'contact_groups'. >> >>Read the changelog. contact_groups have been moved to host objects so as >>to adhere to the way services are configured. > > > Ahhh, ok, sorry - that it. Now it works - but I really don't know > exactly why. > > I put contact_groups only in the host definitions - that won't work. > It worked after putting contact_groups in the absolute base template of > my host AND service definitions... > Hosts and services can have different contactgroups and they must be configured explicitly for both. I have long thought of adding cascading style contactgroups options (hostgroup -> host -> service, unless overridden somewhere), although that would in some ways rob the templates of one of their functions. > Holger > > >>>Error: Could not add object property in file >>>'/usr/local/nagios/etc/hostgroups.c fg' on line 23. >>>--- cut here --- >>> >>>Hm, this seems to be very strange because putting a line with >>>"contact_groups" inside the object definition (hosts and services) works... >>> >>>Is this a bug or am I to stupid to configure nagios? >>> >>>Regards, Holger >> >>-- >>Andreas Ericsson andreas.ericsson at op5.se >>OP5 AB www.op5.se >>Lead Developer >> >> >>------------------------------------------------------- >>SF email is sponsored by - The IT Product Guide >>Read honest & candid reviews on hundreds of IT Products from real users. >>Discover which products truly live up to the hype. Start reading now. >>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >>::: Please include Nagios version, plugin version (-v) and OS when >>reporting any issue. ::: Messages without supporting info will risk being >>sent to /dev/null > > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jorbir at gmail.com Fri Feb 11 10:35:07 2005 From: jorbir at gmail.com (=?ISO-8859-1?Q?J=F8rgen_Birkhaug?=) Date: Fri, 11 Feb 2005 10:35:07 +0100 Subject: Nagios/NSCA/Munin Integration In-Reply-To: <420BDEB9.5060905@op5.se> References: <2B79966571B4B842B9C07E9910E38CE60C9D19@mismail.ena.com> <6e60528f05021014125f2dfbe@mail.gmail.com> <420BDEB9.5060905@op5.se> Message-ID: <6e60528f0502110135272657e6@mail.gmail.com> On Thu, 10 Feb 2005 23:22:49 +0100, Andreas Ericsson wrote: > Hmm.... mighty weird. Indeed. I tried with the same setup on a second Nagios server and passive alerts started working as expected! (which is semi annoying considering that the servers are identical (OS, hardware, LAN), but atleast it now works.) -- J?rgen Birkhaug ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ross at rbecker.org Fri Feb 11 10:44:40 2005 From: ross at rbecker.org (Ross Becker) Date: Fri, 11 Feb 2005 01:44:40 -0800 Subject: fresh install of nagios 2.0b2, issues I found Message-ID: <420C7E88.4020305@rbecker.org> Hello, I'm attempting to do a fresh install of nagios 2.0b2, and I've run into some issues, so I figured I'd post about them. Most are fairly minor. 1. the "INSTALLING" file tells you to give the configure command "--with-nagios-grp" for the group to use for nagios. The correct form is "--with-nagios-group". 2. The minimal.cfg-sample has the contact_groups directive within the hostgroup definition instead of the host definition, so it does not work "out of the box". 3. The daemon startup script "/etc/sbin/nagios" assumes that whichever username you start nagios under is the same as the group you run nagios under, and attempts to chown the run file for the service to username:username. If you configured nagios to use a different groupname than username, this will produce errors. 4. The daemon startup script also goes awry if the daemon fails to start because of a configuration error- it attempts to run "ps -p $NagiosPID", and if the daemon failed to start, there is nothing in $NagiosPID- the end result is you get an error message from PS instead of an error that the daemon failed to start. This is on SuSE 9.1, so it may be related to the OS and the flavor of ps on SuSE. The last issue I've encountered so far is actually related to the order of the documentation. Because I was doing a first time install, I was following the documentation. I used the minimal.cfg in order to get a basic version of things up and running, but when I went to the web interface, I got an error from all of the cgi's about not being able to load the object configuration because of issue #2 above. Unfortunately, that's the ONLY error message it gives. Not until I gave up on the web interface and moved on to configuring the daemon did I get an entry in the log file that told me what was wrong with the object configuration. I think either more detailed error reporting is needed in the web interface, or CGI's need to be able to write errors to a log file, or the documentation order ought to be changed, because that one kept me stumped for a while. Cheers Ross ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From amontibello at gmail.com Fri Feb 11 10:51:08 2005 From: amontibello at gmail.com (Anthony Montibello) Date: Fri, 11 Feb 2005 04:51:08 -0500 Subject: NC_Net v2.15 - New Version (with Perfomance counter FIX) In-Reply-To: <420C766D.50501@op5.se> References: <420BACDD.5030507@op5.se> <420C766D.50501@op5.se> Message-ID: That is true, However my concern about adding encryption to check_nt is how to implement it so that the TCP listener port of NC_Net does not loose backwards compatibility with older versions of check_nt. (this is a part of my original requirements goals of NC_Net being a drop in replacement for NS_Client) About the level of complexity for the conversion; this would be moderate. It did take over full week to get the Xor running when I converter send_NSCA to c#. This is mostly due to c# being more like Java than C in both semantics and syntax. Once some of the current objective are met, I can look into adding encryption to the check_nt/NC_Net port while still maintaining its backwards compatibility. On Fri, 11 Feb 2005 10:10:05 +0100, Andreas Ericsson wrote: > Anthony Montibello wrote: > > I am not sure how I would be able to add non-plaintext authentication > > scheme to this command at this time. How would this be implemented > > into check_nt? because check_NT uses plain only. > > > > But nsca is able to select from a wide range of different ciphers. It > wouldn't be an overwhelming feat to add that same sort of encryption to > check_nt (although a bit timeconsuming). > > >>-- > Andreas Ericsson andreas.ericsson at op5.se > OP5 AB www.op5.se > Lead Developer > >> Thanks for the advise, Tony ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tomvanoverbeke at yahoo.co.uk Fri Feb 11 12:55:24 2005 From: tomvanoverbeke at yahoo.co.uk (tom van overbeke) Date: Fri, 11 Feb 2005 11:55:24 +0000 (GMT) Subject: notification Message-ID: <20050211115524.66774.qmail@web26510.mail.ukl.yahoo.com> Hi, I'm just getting to grips with nagios, and i have a small question: Is it possible to assign other contact groups to a warning and to a critical state of the same service check ? example: if it's a warning, assign to MAIL1,MAIL2 and if it's a critical, assign to MAIL1,MAIL2,SMS1,SMS2 I'm sure it's possible, but I can't see how right now. thx, tom. ___________________________________________________________ ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Michael.Huettig at medien-systempartner.de Fri Feb 11 13:01:42 2005 From: Michael.Huettig at medien-systempartner.de (Michael =?iso-8859-1?q?H=FCttig?=) Date: Fri, 11 Feb 2005 13:01:42 +0100 Subject: scheduling queue holds disabled services Message-ID: <200502111301.42251.Michael.Huettig@medien-systempartner.de> Hi all, i?m having a problem with nagios1.3 : During a problem with nrpe i disabled checks for a lot of services, Web-Interface shows, that next scheduled active check is not available, but the checks are scheduled and executed and web-interface shows "last update " Has anyone same problems with scheduling queue and disabling service-checks? -- Regards Michael ********************************************************************** Diese E-Mail wurde auf Viren ueberprueft. www.mimesweeper.com ********************************************************************** ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Feb 11 13:05:48 2005 From: ae at op5.se (Andreas Ericsson) Date: Fri, 11 Feb 2005 13:05:48 +0100 Subject: NC_Net v2.15 - New Version (with Perfomance counter FIX) In-Reply-To: References: <420BACDD.5030507@op5.se> <420C766D.50501@op5.se> Message-ID: <420C9F9C.2060503@op5.se> Anthony Montibello wrote: > That is true, However my concern about adding encryption to check_nt > is how to implement it so that the TCP listener port of NC_Net does > not loose backwards compatibility with older versions of check_nt. If you can parse the incoming request plaintext, don't decrypt it. If you can't, decrypt it and try again. Still no go? Invalid request or incompatible cipher. How hard is that? > (this is a part of my original requirements goals of NC_Net being a > drop in replacement for NS_Client) > > > About the level of complexity for the conversion; this would be > moderate. It did take over full week to get the Xor running when I > converter send_NSCA to c#. This is mostly due to c# being more like > Java than C in both semantics and syntax. Doesn't it have inline assembly? An xor cipher is about 8 lines of asm, with bounds and error checking, so it couldn't possibly take a full week even with the monkey+typewriter theory. > Once some of the current > objective are met, I can look into adding encryption to the > check_nt/NC_Net port while still maintaining its backwards > compatibility. > > > > On Fri, 11 Feb 2005 10:10:05 +0100, Andreas Ericsson wrote: > >>Anthony Montibello wrote: >> >>>I am not sure how I would be able to add non-plaintext authentication >>>scheme to this command at this time. How would this be implemented >>>into check_nt? because check_NT uses plain only. >>> >> >>But nsca is able to select from a wide range of different ciphers. It >>wouldn't be an overwhelming feat to add that same sort of encryption to >>check_nt (although a bit timeconsuming). >> >> >>>>-- >> >>Andreas Ericsson andreas.ericsson at op5.se >>OP5 AB www.op5.se >>Lead Developer >> > Thanks for the advise, > Tony > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Feb 11 13:07:29 2005 From: ae at op5.se (Andreas Ericsson) Date: Fri, 11 Feb 2005 13:07:29 +0100 Subject: notification In-Reply-To: <20050211115524.66774.qmail@web26510.mail.ukl.yahoo.com> References: <20050211115524.66774.qmail@web26510.mail.ukl.yahoo.com> Message-ID: <420CA001.5020207@op5.se> tom van overbeke wrote: > Hi, > > > I'm just getting to grips with nagios, and i have a > small question: > > Is it possible to assign other contact groups to a > warning and to a critical state of the same service > check ? > > example: > > if it's a warning, assign to MAIL1,MAIL2 > > and if it's a critical, assign to > MAIL1,MAIL2,SMS1,SMS2 > > I'm sure it's possible, but I can't see how right now. > Set up dual contacts for those receiving both mail and sms and have sms-contacts only receive critical notifications. It's standard procedure for setting such things up. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nagios-user at proy.org Fri Feb 11 14:26:51 2005 From: nagios-user at proy.org (Patrick Proy) Date: Fri, 11 Feb 2005 14:26:51 +0100 Subject: Check_SNMP_INT.PL help needed Message-ID: <20050211132655.7B1F4AC476@www.manubulon.com> Hi, The "No usable data on file (3 rows)" means the script can't make an average because he hasn't got enough data. By default (or use the -d option) he will look at the last value and a value between 4'30 and 15' earlier. So you just have to wait 5 minutes between 2 checks (when doing it by hand) and it will give you the bandwidth. Patrick nagios AT proy.org ________________________________ De : nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] De la part de Sam Reynolds Envoy? : jeudi 10 f?vrier 2005 19:22 ? : nagios-users at lists.sourceforge.net Objet : [Nagios-users] Check_SNMP_INT.PL help needed Thanks for the help! That was the issue. Although I am now having an issue that says ?Serial5/2:UP No usable data on file (3 rows) :(1 UP): UNKNOWN?. I look in the tmp file that was created and there is data there. The command I am using is check_snmp_int.pl -H 127.0.0.1 -C -n Serial5/2 -k -w 200,400 -c 0,0 (IP and community name are real when I put in the command). I was expecting to determine what kind of bandwidth I am using on this interface. If I am using the wrong tool for this please let me know. Thanks, Sam ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 at reseau.nl Fri Feb 11 14:39:18 2005 From: alex at reseau.nl (alex at reseau.nl) Date: Fri, 11 Feb 2005 14:39:18 +0100 Subject: External Command, scheduled downtime Message-ID: <1108129158.420cb586697bc@webmail.reseau.nl> I've been investigating Nagios for a while now. I had the last stable, beta1 and now beta2 installed. I have problems scheduling Service and Host downtime using external commands. I haven't used it before and started with it in beta1. I have seen that multiple people have had this issue, though they never got a reaction. I hope I will because I don't have much time left for this investigation and using external commands to schedule downtime is critical in our system. When I use the Addon nagdtsched i get a message in the Event log: [2005-02-11 11:08:10] EXTERNAL COMMAND: SCHEDULE_SVC_DOWNTIME;linux1;PING;1108137600;1108195200;1;57600;nagios;Regularly Scheduled Dowtime but nothing shows up in the 'Downtime' page. If I schedule downtime via the webinterface then everythign goes ok. I tried echo-ing to var/rw/nagios.cmd myself and that worked like above. And both external commands for host and service downtime don't work. I first tried all of this in beta1, but hoping beta2 might have it fixed i installed that over 1, but that didn't help either. What I am using this for is to create performance data during business hours. But I want those hours defined in nagios, not in the data processing. I found out that I can use a macro that shows the downtime level, so i can easily use that calculating performance myself. It would help if there was a variant to the service&host notification hour settings. But this works just as well. Regards, Alex Haan ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Sam.Reynolds at networkts.com Fri Feb 11 16:06:02 2005 From: Sam.Reynolds at networkts.com (Sam Reynolds) Date: Fri, 11 Feb 2005 10:06:02 -0500 Subject: Check_SNMP_INT.PL help needed Message-ID: <6A1DD050FEF19644B488BD3889A0A2217DE658@FLASH.nts.local> Thanks! -----Original Message----- From: Patrick Proy [mailto:nagios-user at proy.org] Sent: Friday, February 11, 2005 8:27 AM To: Sam Reynolds; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Check_SNMP_INT.PL help needed Hi, The "No usable data on file (3 rows)" means the script can't make an average because he hasn't got enough data. By default (or use the -d option) he will look at the last value and a value between 4'30 and 15' earlier. So you just have to wait 5 minutes between 2 checks (when doing it by hand) and it will give you the bandwidth. Patrick nagios AT proy.org ________________________________ De : nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] De la part de Sam Reynolds Envoy? : jeudi 10 f?vrier 2005 19:22 ? : nagios-users at lists.sourceforge.net Objet : [Nagios-users] Check_SNMP_INT.PL help needed Thanks for the help! That was the issue. Although I am now having an issue that says "Serial5/2:UP No usable data on file (3 rows) :(1 UP): UNKNOWN". I look in the tmp file that was created and there is data there. The command I am using is check_snmp_int.pl -H 127.0.0.1 -C -n Serial5/2 -k -w 200,400 -c 0,0 (IP and community name are real when I put in the command). I was expecting to determine what kind of bandwidth I am using on this interface. If I am using the wrong tool for this please let me know. Thanks, Sam ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From csmith at RadioFrameNetworks.com Fri Feb 11 16:18:38 2005 From: csmith at RadioFrameNetworks.com (Christopher Smith) Date: Fri, 11 Feb 2005 07:18:38 -0800 Subject: [Possible Spam] - Re: host down but up problem Message-ID: <4EE8236B66247849BD4E1B5383AF4F48233259@exchwaus01.redmond.radioframenetworks.com> Okay, so I am having this problem with the Check_Icmp plugin. If I run the check_icmp as the default nagios user account, I receive a status information message in Nagios stating that 'Root access needed (for raw sockets)' is necessary. Yet, as stipulated by another's post, it runs as root, no problem. I have verified that the permissions (from Linux) are set correctly. This is 1.4.x of the plugins running on SuSE 9.1 and Nagios 1.2. How does one get around this? -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Andreas Ericsson Sent: Wednesday, February 09, 2005 7:38 AM To: nagios-users at lists.sourceforge.net Subject: [Possible Spam] - Re: [Nagios-users] host down but up problem Serveur-Faucon Surveillance wrote: > Hi all, > > I have been using Nagios for quite a while now over 2 years, so I am > pretty familiar with it. > > One of my host recently went to a down state on the network status, > but is actually UP. This is not FAQ F0015 or F0016 related, since the > same command is used by all other hosts (and they are just fine). > > I use the check_host_alive default command to check on hosts status > (yeah I know, I dont use the hip (new, cool) check_icmp from Andreas > Ericsson for now. Later) > Don't know about hip and cool, but you're probably better off without it. "Don't fix it if it ain't broken". > So I went to my console to try a couple of things... ping myhost = ok! > check_ping -H myhost etc etc = ok! (exactly like the > check_host_alive) > > So... my next theory would be to erase everything from that host in > the history, and start over. But before that, is there someone who > actually had something like that? > > There was the bug witch two nagios process could run at the same time, > but that's not it. Thanks! > This can happen properly when the host starts flapping while down and comes out OK on the other end of the flapping. Assuming you aren't running 2.0 with f among your notification_options, ofcourse. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chris.stankaitis at datawire.net Fri Feb 11 16:49:04 2005 From: chris.stankaitis at datawire.net (Chris Stankaitis) Date: Fri, 11 Feb 2005 10:49:04 -0500 Subject: Nagios 2.0 - Force a host check ever 2 mins. Message-ID: <420CD3F0.6010306@datawire.net> Hello All, a quick question about Passive host checks. I am setting up a distributed Nagios, and am using passive host checks to monitor hosts behind my FW. the passive host check and the Obsessive -ness work fine however I am getting into an issue. on the external Nagios box (the one that receives all the nsca service/host checks from the internal Nagios) I have freshness checking turned on for the host as well as the services... the problem is because of the default Nagios behaviour host checks are only run if there are service problems... So thus I am in the spot where all my services are OK on the box but the host's are critical because of freshness checking. Is there a way that I can get my internal Nagios to run Host Checks for the internal boxes every X mins like it would for a service check.. or is there another good way to deal with this? --Chris ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From srunschke at abit.de Fri Feb 11 16:48:05 2005 From: srunschke at abit.de (Sascha Runschke) Date: Fri, 11 Feb 2005 16:48:05 +0100 Subject: Antwort: RE: [Possible Spam] - Re: host down but up problem [Virus scanned] Message-ID: Yes, set the permissions properly. Judging from your error message, I guess it isn't set suid root. chown root check_icmp chmod 4755 check_icmp regards sash -------------------------------------------------- Sascha Runschke Netzwerk Administration IT-Services ABIT AG Robert-Bosch-Str. 1 40668 Meerbusch Tel.:+49 (0) 2150.9153.226 mailto:SRunschke at abit.de http://www.abit.net http://www.abit-epos.net http://www.my-academy.net -------------------------------------------------- Der Inhalt dieser Email sowie die Anh?nge sind ausschlie?lich f?r den bezeichneten Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser Email oder dessen Vertreter sein sollten, so beachten Sie bitte, da? jede Form der Kenntnisnahme, Ver?ffentlichung, Vervielf?ltigung oder Weitergabe des Inhalts dieser Email unzul?ssig ist. Wir m?chten Sie au?erdem darauf hinweisen, da? die Kommunikation per Email ?ber das Internet unsicher ist, da fuer unberechtigte Dritte grunds?tzlich die M?glichkeit der Kenntnisnahme und Manipulation besteht. Wenn Sie diese Nachricht versehentlich erhalten, informieren Sie bitte den Absender und l?schen diese Nachricht mit den Anh?ngen. Herzlichen Dank The information and any attachments contained in this email are intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any form of disclosure, reproduction, distribution or any action taken or refrained from in reliance on it, is prohibited and may be unlawful. We also like to inform you that communication via email over the internet is insecure because third parties may have the possibility to access and manipulate emails. If you have received the message in error, please advise the sender and delete the message and any attachments. Thank you very much. "Christopher Smith" Gesendet von: nagios-users-admin at lists.sourceforge.net 11.02.2005 16:18 An: "Andreas Ericsson" , Kopie: Thema: RE: [Possible Spam] - Re: [Nagios-users] host down but up problem [Virus scanned] Okay, so I am having this problem with the Check_Icmp plugin. If I run the check_icmp as the default nagios user account, I receive a status information message in Nagios stating that 'Root access needed (for raw sockets)' is necessary. Yet, as stipulated by another's post, it runs as root, no problem. I have verified that the permissions (from Linux) are set correctly. This is 1.4.x of the plugins running on SuSE 9.1 and Nagios 1.2. How does one get around this? -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Andreas Ericsson Sent: Wednesday, February 09, 2005 7:38 AM To: nagios-users at lists.sourceforge.net Subject: [Possible Spam] - Re: [Nagios-users] host down but up problem Serveur-Faucon Surveillance wrote: > Hi all, > > I have been using Nagios for quite a while now over 2 years, so I am > pretty familiar with it. > > One of my host recently went to a down state on the network status, > but is actually UP. This is not FAQ F0015 or F0016 related, since the > same command is used by all other hosts (and they are just fine). > > I use the check_host_alive default command to check on hosts status > (yeah I know, I dont use the hip (new, cool) check_icmp from Andreas > Ericsson for now. Later) > Don't know about hip and cool, but you're probably better off without it. "Don't fix it if it ain't broken". > So I went to my console to try a couple of things... ping myhost = ok! > check_ping -H myhost etc etc = ok! (exactly like the > check_host_alive) > > So... my next theory would be to erase everything from that host in > the history, and start over. But before that, is there someone who > actually had something like that? > > There was the bug witch two nagios process could run at the same time, > but that's not it. Thanks! > This can happen properly when the host starts flapping while down and comes out OK on the other end of the flapping. Assuming you aren't running 2.0 with f among your notification_options, ofcourse. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From csmith at RadioFrameNetworks.com Fri Feb 11 17:16:41 2005 From: csmith at RadioFrameNetworks.com (Christopher Smith) Date: Fri, 11 Feb 2005 08:16:41 -0800 Subject: Antwort: RE: [Possible Spam] - Re: host down but up problem [Virus scanned] Message-ID: <4EE8236B66247849BD4E1B5383AF4F48233260@exchwaus01.redmond.radioframenetworks.com> Currently, the permissions on check_icmp are listed below: -rwsr-xr-x 1 root root I believe this complies with not only what Sash suggests but what Andreas stated earlier. Still a no-go. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Sascha Runschke Sent: Friday, February 11, 2005 7:48 AM To: nagios-users at lists.sourceforge.net Subject: Antwort: RE: [Possible Spam] - Re: [Nagios-users] host down but up problem [Virus scanned] Yes, set the permissions properly. Judging from your error message, I guess it isn't set suid root. chown root check_icmp chmod 4755 check_icmp regards sash -------------------------------------------------- Sascha Runschke Netzwerk Administration IT-Services ABIT AG Robert-Bosch-Str. 1 40668 Meerbusch Tel.:+49 (0) 2150.9153.226 mailto:SRunschke at abit.de http://www.abit.net http://www.abit-epos.net http://www.my-academy.net -------------------------------------------------- Der Inhalt dieser Email sowie die Anh?nge sind ausschlie?lich f?r den bezeichneten Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser Email oder dessen Vertreter sein sollten, so beachten Sie bitte, da? jede Form der Kenntnisnahme, Ver?ffentlichung, Vervielf?ltigung oder Weitergabe des Inhalts dieser Email unzul?ssig ist. Wir m?chten Sie au?erdem darauf hinweisen, da? die Kommunikation per Email ?ber das Internet unsicher ist, da fuer unberechtigte Dritte grunds?tzlich die M?glichkeit der Kenntnisnahme und Manipulation besteht. Wenn Sie diese Nachricht versehentlich erhalten, informieren Sie bitte den Absender und l?schen diese Nachricht mit den Anh?ngen. Herzlichen Dank The information and any attachments contained in this email are intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any form of disclosure, reproduction, distribution or any action taken or refrained from in reliance on it, is prohibited and may be unlawful. We also like to inform you that communication via email over the internet is insecure because third parties may have the possibility to access and manipulate emails. If you have received the message in error, please advise the sender and delete the message and any attachments. Thank you very much. "Christopher Smith" Gesendet von: nagios-users-admin at lists.sourceforge.net 11.02.2005 16:18 An: "Andreas Ericsson" , Kopie: Thema: RE: [Possible Spam] - Re: [Nagios-users] host down but up problem [Virus scanned] Okay, so I am having this problem with the Check_Icmp plugin. If I run the check_icmp as the default nagios user account, I receive a status information message in Nagios stating that 'Root access needed (for raw sockets)' is necessary. Yet, as stipulated by another's post, it runs as root, no problem. I have verified that the permissions (from Linux) are set correctly. This is 1.4.x of the plugins running on SuSE 9.1 and Nagios 1.2. How does one get around this? -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Andreas Ericsson Sent: Wednesday, February 09, 2005 7:38 AM To: nagios-users at lists.sourceforge.net Subject: [Possible Spam] - Re: [Nagios-users] host down but up problem Serveur-Faucon Surveillance wrote: > Hi all, > > I have been using Nagios for quite a while now over 2 years, so I am > pretty familiar with it. > > One of my host recently went to a down state on the network status, > but is actually UP. This is not FAQ F0015 or F0016 related, since the > same command is used by all other hosts (and they are just fine). > > I use the check_host_alive default command to check on hosts status > (yeah I know, I dont use the hip (new, cool) check_icmp from Andreas > Ericsson for now. Later) > Don't know about hip and cool, but you're probably better off without it. "Don't fix it if it ain't broken". > So I went to my console to try a couple of things... ping myhost = ok! > check_ping -H myhost etc etc = ok! (exactly like the > check_host_alive) > > So... my next theory would be to erase everything from that host in > the history, and start over. But before that, is there someone who > actually had something like that? > > There was the bug witch two nagios process could run at the same time, > but that's not it. Thanks! > This can happen properly when the host starts flapping while down and comes out OK on the other end of the flapping. Assuming you aren't running 2.0 with f among your notification_options, ofcourse. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=ick _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From csmith at RadioFrameNetworks.com Fri Feb 11 17:17:27 2005 From: csmith at RadioFrameNetworks.com (Christopher Smith) Date: Fri, 11 Feb 2005 08:17:27 -0800 Subject: Antwort: RE: [Possible Spam] - Re: host down but up problem [Virus scanned] Message-ID: <4EE8236B66247849BD4E1B5383AF4F48233261@exchwaus01.redmond.radioframenetworks.com> BTW, this is running as daemon (default SuSE user account for Nagios). Does this have anything to do with it? -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Sascha Runschke Sent: Friday, February 11, 2005 7:48 AM To: nagios-users at lists.sourceforge.net Subject: Antwort: RE: [Possible Spam] - Re: [Nagios-users] host down but up problem [Virus scanned] Yes, set the permissions properly. Judging from your error message, I guess it isn't set suid root. chown root check_icmp chmod 4755 check_icmp regards sash -------------------------------------------------- Sascha Runschke Netzwerk Administration IT-Services ABIT AG Robert-Bosch-Str. 1 40668 Meerbusch Tel.:+49 (0) 2150.9153.226 mailto:SRunschke at abit.de http://www.abit.net http://www.abit-epos.net http://www.my-academy.net -------------------------------------------------- Der Inhalt dieser Email sowie die Anh?nge sind ausschlie?lich f?r den bezeichneten Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser Email oder dessen Vertreter sein sollten, so beachten Sie bitte, da? jede Form der Kenntnisnahme, Ver?ffentlichung, Vervielf?ltigung oder Weitergabe des Inhalts dieser Email unzul?ssig ist. Wir m?chten Sie au?erdem darauf hinweisen, da? die Kommunikation per Email ?ber das Internet unsicher ist, da fuer unberechtigte Dritte grunds?tzlich die M?glichkeit der Kenntnisnahme und Manipulation besteht. Wenn Sie diese Nachricht versehentlich erhalten, informieren Sie bitte den Absender und l?schen diese Nachricht mit den Anh?ngen. Herzlichen Dank The information and any attachments contained in this email are intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any form of disclosure, reproduction, distribution or any action taken or refrained from in reliance on it, is prohibited and may be unlawful. We also like to inform you that communication via email over the internet is insecure because third parties may have the possibility to access and manipulate emails. If you have received the message in error, please advise the sender and delete the message and any attachments. Thank you very much. "Christopher Smith" Gesendet von: nagios-users-admin at lists.sourceforge.net 11.02.2005 16:18 An: "Andreas Ericsson" , Kopie: Thema: RE: [Possible Spam] - Re: [Nagios-users] host down but up problem [Virus scanned] Okay, so I am having this problem with the Check_Icmp plugin. If I run the check_icmp as the default nagios user account, I receive a status information message in Nagios stating that 'Root access needed (for raw sockets)' is necessary. Yet, as stipulated by another's post, it runs as root, no problem. I have verified that the permissions (from Linux) are set correctly. This is 1.4.x of the plugins running on SuSE 9.1 and Nagios 1.2. How does one get around this? -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Andreas Ericsson Sent: Wednesday, February 09, 2005 7:38 AM To: nagios-users at lists.sourceforge.net Subject: [Possible Spam] - Re: [Nagios-users] host down but up problem Serveur-Faucon Surveillance wrote: > Hi all, > > I have been using Nagios for quite a while now over 2 years, so I am > pretty familiar with it. > > One of my host recently went to a down state on the network status, > but is actually UP. This is not FAQ F0015 or F0016 related, since the > same command is used by all other hosts (and they are just fine). > > I use the check_host_alive default command to check on hosts status > (yeah I know, I dont use the hip (new, cool) check_icmp from Andreas > Ericsson for now. Later) > Don't know about hip and cool, but you're probably better off without it. "Don't fix it if it ain't broken". > So I went to my console to try a couple of things... ping myhost = ok! > check_ping -H myhost etc etc = ok! (exactly like the > check_host_alive) > > So... my next theory would be to erase everything from that host in > the history, and start over. But before that, is there someone who > actually had something like that? > > There was the bug witch two nagios process could run at the same time, > but that's not it. Thanks! > This can happen properly when the host starts flapping while down and comes out OK on the other end of the flapping. Assuming you aren't running 2.0 with f among your notification_options, ofcourse. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=ick _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From eduard.iacoboaia at distinctgroup.net Fri Feb 11 17:21:05 2005 From: eduard.iacoboaia at distinctgroup.net (Eduard Iacoboaia) Date: Fri, 11 Feb 2005 18:21:05 +0200 Subject: Notification missing parameters Message-ID: <420CDB71.30401@distinctgroup.net> Hello. From time to time, on various hosts i get some bad notifications. In stead of timestamp PROBLEM: host(ip)/ plugin is CRITICAL ::Info:... I get PROBLEM: host(ip)/ is Can anybody help me? What is the problem? Thank you, Eduard ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhmartin at toger.us Fri Feb 11 18:42:15 2005 From: jhmartin at toger.us (Jason Martin) Date: Fri, 11 Feb 2005 09:42:15 -0800 Subject: Failover & passive checks Message-ID: <20050211174215.GA24306@zippy.toger.us> Has anycome come up with a reliable way of implementing passive checks that properly handles a Nagios failover? I'm looking at using SEC to send passive checks about syslog to Nagios. How should I go about handling the situation where my Nagios host fails over to another machine? send_nsca doesn't have any capability to attempt to detect if Nagios is running on the destination host when it transmits, and the 'failure' might not be as simple as a machine going down. The failover machine is in another datacenter, so a simple IP-handoff isn't feasible. How has everyone else handled this sort if situation? Thanks, -Jason Martin -- I parked my hard disk and now I can't find it! This message is PGP/MIME signed. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 211 bytes Desc: not available URL: From chris.stankaitis at datawire.net Fri Feb 11 18:49:38 2005 From: chris.stankaitis at datawire.net (Chris Stankaitis) Date: Fri, 11 Feb 2005 12:49:38 -0500 Subject: Failover & passive checks In-Reply-To: <20050211174215.GA24306@zippy.toger.us> References: <20050211174215.GA24306@zippy.toger.us> Message-ID: <420CF032.3050809@datawire.net> Jason Martin wrote: > Has anycome come up with a reliable way of implementing passive > checks that properly handles a Nagios failover? > > I'm looking at using SEC to send passive checks about syslog to > Nagios. How should I go about handling the situation where my > Nagios host fails over to another machine? send_nsca doesn't > have any capability to attempt to detect if Nagios is running on > the destination host when it transmits, and the 'failure' might > not be as simple as a machine going down. > > The failover machine is in another datacenter, so a simple > IP-handoff isn't feasible. How has everyone else handled this > sort if situation? > > Thanks, > -Jason Martin It may be an idea for your fall-over nagios to execute an event handler which switches the IP of the main "nagios dns" and reloads your name servers, your NSCA boxes would hopefully be setup to use DNS rather then IP for the nsca config, and the boxes would be using your name servers, so when they lookup the main nagios dns it'll be the failover box. --Chris ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From EmmettH at Examen.com Fri Feb 11 18:57:10 2005 From: EmmettH at Examen.com (Emmett Hogan) Date: Fri, 11 Feb 2005 09:57:10 -0800 Subject: Turn off RED for PASSIVE ONLY checks? In-Reply-To: References: Message-ID: <420CF1F6.1020208@Examen.com> Ok....here's what I did: - Set active_check to 1 - Set check_period to "none" - Set active_checks_enabled to 1 - Set freshness_threshold to 120 seconds - Set passive_checks_enabled to 1 According to Marc, if the "Status Data Age" is more than 2 minutes, the check_command should be run even though "check_period" is set to "none". Do I have this right so far? Well, this gets rid of the red on the TAC page since I don't have any active_checks disabled, but even though my "Status Data Age" is " 0d 8h 47m 26s" the active check is NOT being run. :-( -Emmett Anthony.Caetano at t-systems.co.za wrote: >I agree with Emmet on both counts. >Freshness checks will not be done if you check_period is not set (most >likely what you want is to 24x7), at least with 2.0b1. >Here is my post from a month ago where I detailed this: > > >----- Forwarded by Anthony Caetano/RUN/debis on 02/11/2005 09:35 AM ----- > > >Anthony Caetano >01/14/2005 09:51 AM > > > To: nagios-users at lists.sourceforge.net > cc: > Subject: heads up on freshness checking and your check_period > >Hi > >I have spent upwards of 4 hours trying to get freshness checking working >in Nagios 2.0b1. So I am just posting this so it is in the archives. > >The nagios documentation says to set for the service you passively monitor >active_checks_enabled 0 > >The documentation doesn't make mention of the check_period... I had set >my check period to none since there would be no checks. Contrary to the >docs I set active_checks_enabled to 1 in an attempt to avoid all the "red" >for disabled services. (This is also recommended by the naplax.sf.net REL >package which i was using for the passive checks) >active_checks_enabled 1 >check_period none > >No freshness checks were done, ever. > >I later saw that the Nagios documentation says to disable active checks. >So I then had this >active_checks_enabled 0 >check_period none > >No freshness checks were done, ever. > >Only after looking at the code did i see in check.c > /* see if the time is right... */ > >if(check_time_against_period(current_time,temp_service->check_period)==ERROR) > continue; > >So basically you MUST set the equivalent of >check_period 24x7 > >Otherwise the actual freshness check on that service is aborted. > >cheers >-ant >************ >Any views expressed in this message are those of the individual sender and >not necessarily that of T-Systems South Africa (Pty) Ltd, its directors or >employees, and accordingly no liability can be accepted therefore. >Although this message has been scanned for the possible presence of >computer viruses prior to dispatch, T-Systems South Africa (Pty) Ltd >cannot be held responsible for the transmission of any virus or other >material transmitted with, or part of, this message. > > >************ >Any views expressed in this message are those of the individual sender and >not necessarily that of T-Systems South Africa (Pty) Ltd, its directors or >employees, and accordingly no liability can be accepted therefore. >Although this message has been scanned for the possible presence of >computer viruses prior to dispatch, T-Systems South Africa (Pty) Ltd >cannot be held responsible for the transmission of any virus or other >material transmitted with, or part of, this message. > > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > > -- ================ Examen, Inc. ================ Emmett Hogan Senior UNIX Administrator emmetth at examen.com ==== Outside Counsel Management Solutions ==== CONFIDENTIAL - PRIVILEGED INFORMATION This e-mail may include confidential, trade secret or legally privileged information. If you are not the intended recipient, please do not read, copy, use, distribute or disclose this communication to anyone other than the intended recipient. Please notify the sender of any error in transmission or delivery and delete any misdirected e-mail from your system. -------------- next part -------------- A non-text attachment was scrubbed... Name: EmmettH.vcf Type: text/x-vcard Size: 260 bytes Desc: not available URL: From beckhardt at infonow.com Fri Feb 11 19:20:59 2005 From: beckhardt at infonow.com (Bob Eckhardt) Date: Fri, 11 Feb 2005 11:20:59 -0700 Subject: solaris 2.5.1 Message-ID: Anyone know where I can find binaries for nagios-plugins.1.3.1 for solaris 2.5.1 and nrpe. I am having trouble compiling them myself here on these ancient legacy boxes. Bob -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrsouza at ig.com.br Fri Feb 11 20:46:11 2005 From: chrsouza at ig.com.br (Christian Souza) Date: Fri, 11 Feb 2005 16:46:11 -0300 Subject: error in nagios.cmd for update References: <420CF1F6.1020208@Examen.com> Message-ID: <00cf01c51072$56eaed00$1900a8c0@new.com.br> I have been searching anything about this error, but i can't found. When I tried do add a new coment for a service (as exemple), i receive the follow: 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. was verified the configuration, bellow: #more nagios.cfg |grep check_ext check_external_commands=1 #ls -l /usr/local/nagios/var drwxrwxr-x 2 nagios nagios 4096 Feb 11 00:00 archives -rw-rw-r-- 1 nagios nagios 0 Feb 11 12:59 comment.log -rw-rw-r-- 1 nagios nagios 0 Feb 11 12:59 downtime.log -rw-r--r-- 1 root root 5 Feb 11 12:59 nagios.lock -rw-r--r-- 1 nagios nagios 33512 Feb 11 16:51 nagios.log drwxrwsr-x 2 nagios nagios 4096 Feb 11 12:59 rw -rw-rw-r-- 1 nagios nagios 13248 Feb 11 16:52 status.log -rw-r--r-- 1 nagios nagios 9924 Feb 11 15:59 status.sav Any idea? Thanks ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Fri Feb 11 19:53:54 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Fri, 11 Feb 2005 13:53:54 -0500 (EST) Subject: error in nagios.cmd for update In-Reply-To: <00cf01c51072$56eaed00$1900a8c0@new.com.br> References: <420CF1F6.1020208@Examen.com> <00cf01c51072$56eaed00$1900a8c0@new.com.br> Message-ID: On Fri, 11 Feb 2005, Christian Souza wrote: > I have been searching anything about this error, but i can't found. > > When I tried do add a new coment for a service (as exemple), i receive the > follow: > > > 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. > > > was verified the configuration, bellow: > > #more nagios.cfg |grep check_ext > check_external_commands=1 > > > #ls -l /usr/local/nagios/var > drwxrwxr-x 2 nagios nagios 4096 Feb 11 00:00 archives > -rw-rw-r-- 1 nagios nagios 0 Feb 11 12:59 comment.log > -rw-rw-r-- 1 nagios nagios 0 Feb 11 12:59 downtime.log > -rw-r--r-- 1 root root 5 Feb 11 12:59 nagios.lock > -rw-r--r-- 1 nagios nagios 33512 Feb 11 16:51 nagios.log > drwxrwsr-x 2 nagios nagios 4096 Feb 11 12:59 rw > -rw-rw-r-- 1 nagios nagios 13248 Feb 11 16:52 status.log > -rw-r--r-- 1 nagios nagios 9924 Feb 11 15:59 status.sav > > Is the web server a member of the "nagios" group? otherwise it does not have write perms -- -sg ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chrsouza at ig.com.br Fri Feb 11 21:02:16 2005 From: chrsouza at ig.com.br (Christian Souza) Date: Fri, 11 Feb 2005 17:02:16 -0300 Subject: error in nagios.cmd for update References: <420CF1F6.1020208@Examen.com> <00cf01c51072$56eaed00$1900a8c0@new.com.br> Message-ID: <00e301c51074$95ca21b0$1900a8c0@new.com.br> Yes. look: #more /etc/group .... nagios:x:503:nagios,apache ----- Original Message ----- From: "Subhendu Ghosh" To: "Christian Souza" Cc: Sent: Friday, February 11, 2005 3:53 PM Subject: Re: [Nagios-users] error in nagios.cmd for update > On Fri, 11 Feb 2005, Christian Souza wrote: > > > I have been searching anything about this error, but i can't found. > > > > When I tried do add a new coment for a service (as exemple), i receive the > > follow: > > > > > > 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. > > > > > > was verified the configuration, bellow: > > > > #more nagios.cfg |grep check_ext > > check_external_commands=1 > > > > > > #ls -l /usr/local/nagios/var > > drwxrwxr-x 2 nagios nagios 4096 Feb 11 00:00 archives > > -rw-rw-r-- 1 nagios nagios 0 Feb 11 12:59 comment.log > > -rw-rw-r-- 1 nagios nagios 0 Feb 11 12:59 downtime.log > > -rw-r--r-- 1 root root 5 Feb 11 12:59 nagios.lock > > -rw-r--r-- 1 nagios nagios 33512 Feb 11 16:51 nagios.log > > drwxrwsr-x 2 nagios nagios 4096 Feb 11 12:59 rw > > -rw-rw-r-- 1 nagios nagios 13248 Feb 11 16:52 status.log > > -rw-r--r-- 1 nagios nagios 9924 Feb 11 15:59 status.sav > > > > > > Is the web server a member of the "nagios" group? otherwise it does not > have write perms > > > -- > -sg > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jvanas at jackofallgames.com Fri Feb 11 20:10:47 2005 From: jvanas at jackofallgames.com (Josh Van As) Date: Fri, 11 Feb 2005 14:10:47 -0500 Subject: Help with Host checks Message-ID: I have hosts setup with no services (on 2.0b1). I am trying to use active checks only on the hosts. For some reason, I don't think that the check is every occurring because my "host status detail" says (null) under the "status information: c12-idf10-w12 UP N/A 0d 0h 10m 27s+ (null) Here is how my host.cfg is setup: define host{ name noservice-host notifications_enabled 1 active_checks_enabled 1 event_handler_enabled 1 flap_detection_enabled 1 low_flap_threshold 0 high_flap_threshold 0 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 0 check_interval 1 passive_checks_enabled 1 max_check_attempts 5 notification_interval 5 notification_period 24x7 notification_options d,r contact_groups nullcontact register 0 } define host{ use noservice-host host_name c12-idf10-w12 alias c12-idf10-w12.joag.com address 10.10.90.100 parents c37-idf10-m02 } Can anyone help me troubleshoot this? If I look at "view config" under "hosts" I notice one strange thing: None of my hosts have "yes" under "Enable Active Checks". Which I thought should be turned on since I am setting both check_interval=1 and active_checks_enabled=1. TIA! Josh Van As ********************************************************************************************************************************************************************************************************************************** The information transmitted is intended only for the person to whom it is addressed and may be confidential and privileged and protected from disclosure. Any review, retransmission, dissemination or other use of, or taking any action in reliance upon, this information by persons or entities other than the intended recipients are prohibited. If you are not the intended recipient, please contact the sender and delete the material from any computer. ********************************************************************************************************************************************************************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From kmoogle at gmail.com Fri Feb 11 20:42:06 2005 From: kmoogle at gmail.com (kmoogle) Date: Fri, 11 Feb 2005 13:42:06 -0600 Subject: Compile issues on older system Message-ID: <5483568f050211114232106d03@mail.gmail.com> I'm trying to compile nagios-2.0b2 on an older system (my apologies in advance) -- but have run into an issue. './configure' runs properly, but fails on the 'make'. It currently runs Nagios 1.2. Any assistance is appreciated. Thank you. ======> Specifics gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) GNU Make version 3.78.1 GNU ld version 2.9.5 (with BFD 2.9.5.0.22) ldd (GNU libc) 2.1.3 kernel 2.4.23 GNU C Library stable release version 2.1.3 ======> 'make all' output [nagios-2.0b2]# make all cd ./base && make make[1]: Entering directory `/opt/src/nagios-2.0b2/base' gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o broker.o broker.c In file included from ../include/nebmods.h:31, from broker.c:33: ../include/nebmodules.h:78: parse error before `lt_ptr' ../include/nebmodules.h:78: warning: no semicolon at end of struct or union ../include/nebmodules.h:79: warning: data definition has no type or storage class ../include/nebmodules.h:89: parse error before `}' ../include/nebmodules.h:89: warning: data definition has no type or storage class In file included from broker.c:33: ../include/nebmods.h:51: parse error before `*' ../include/nebmods.h:54: parse error before `*' make[1]: *** [broker.o] Error 1 make[1]: Leaving directory `/opt/src/nagios-2.0b2/base' make: *** [all] Error 2 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lgetschel at denver.westerngeco.slb.com Fri Feb 11 22:07:03 2005 From: lgetschel at denver.westerngeco.slb.com (Lewis Getschel) Date: Fri, 11 Feb 2005 14:07:03 -0700 Subject: External Command, scheduled downtime In-Reply-To: <1108129158.420cb586697bc@webmail.reseau.nl> References: <1108129158.420cb586697bc@webmail.reseau.nl> Message-ID: <420D1E77.9050908@denver.westerngeco.slb.com> OK, I may be off here, but I'll give it a try... I'm using 1.2, not the 2.0, but this sounds familiar... Question, how do you know that your command is getting into the nagios.cmd file? I ask because I did monitoring with tail -f var/rw/nagios.cmd and found that whenever I did that, I would SEE the command, but it would NEVER get processed. It was only after 'forgetting' to do the tail command that I figured that I was actually interfering with it! (I didn't realize it wasn't a 'file', but a named pipe until Andreas pointed it out. I have the following lines in an event handler I'm using (so nagios acknowledges this file system service is reaching a warning/critical level. This happens after another script mails out a message to the correct users) This builds up the proper format for the nagios.cmd "named pipe" to use: ---- cut here ---- # Now put the acknowledgment into Nagios so it doesn't continue to show warning/critical state echocmd="/bin/echo" CommandFile="/usr/local/nagios/var/rw/nagios.cmd" # get the current date/time in seconds since UNIX epoch datetime=`date +%s` # create the command lines to add to the command file # the 4th parameter is 0=non-persistant, 1=persistant cmdline1="[$datetime] ADD_SVC_COMMENT;$4;$5;1;Nagios_script;ACKNOWLEDGEMENT: FS $freediskspace free disk,mail sent to $numberofmailsent users" cmdline2="[$datetime] ACKNOWLEDGE_SVC_PROBLEM;$4;$5;0;FS $freediskspace free disk, mail sent to $numberofmailsent users" `$echocmd $cmdline1 >> $CommandFile` `$echocmd $cmdline2 >> $CommandFile` ---- cut here ---- I'm not sure this helps, but I thought it might. Lewis alex at reseau.nl wrote: >I've been investigating Nagios for a while now. > >I had the last stable, beta1 and now beta2 installed. > >I have problems scheduling Service and Host downtime using external >commands. I haven't used it before and started with it in beta1. > >I have seen that multiple people have had this issue, though they >never got a reaction. I hope I will because I don't have much time >left for this investigation and using external commands to schedule >downtime is critical in our system. > >When I use the Addon nagdtsched i get a message in the Event log: > >[2005-02-11 11:08:10] EXTERNAL COMMAND: >SCHEDULE_SVC_DOWNTIME;linux1;PING;1108137600;1108195200;1;57600;nagios;Regularly >Scheduled Dowtime > >but nothing shows up in the 'Downtime' page. If I schedule downtime >via the webinterface then everythign goes ok. > >I tried echo-ing to var/rw/nagios.cmd myself and that worked like >above. And both external commands for host and service downtime don't >work. I first tried all of this in beta1, but hoping beta2 might have >it fixed i installed that over 1, but that didn't help either. > >What I am using this for is to create performance data during business >hours. But I want those hours defined in nagios, not in the data >processing. I found out that I can use a macro that shows the >downtime level, so i can easily use that calculating performance >myself. >It would help if there was a variant to the service&host notification >hour settings. But this works just as well. > >Regards, >Alex Haan > >---------------------------------------------------------------- >This message was sent using IMP, the Internet Messaging Program. > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_ide95&alloc_id396&opclick >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > > > -- Lewis Getschel | Today is done... WesternGeco | Today was fun... 1625 Broadway | Tomorrow is another one. Denver, CO 80202 | Direct Phone - 303-389-4407| -- Dr. Seuss -- ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From SLOANE at mail.ku.edu Fri Feb 11 22:43:49 2005 From: SLOANE at mail.ku.edu (Sloane, Robert Raymond) Date: Fri, 11 Feb 2005 15:43:49 -0600 Subject: Turn off RED for PASSIVE ONLY checks? Message-ID: <759618CD64AD564AB3756EF0B33D85332261E3@meadowlark2.home.ku.edu> It sounds like the behavior had changed from version 1.2 to 2.0. That would be a problem for me, since I use quiet a few passive checks with the check_period set to none. Is there any possibility of getting the old behavior back? -- Bob Sloane, University of Kansas Computer Center, Lawrence, KS, 66045 Email:sloane at ku.edu http://www.ku.edu/home/sloane Phone:(785)864-0444 > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf > Of Emmett Hogan > Sent: Friday, February 11, 2005 11:57 AM > To: Anthony.Caetano at t-systems.co.za > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Turn off RED for PASSIVE ONLY checks? > > > Ok....here's what I did: > > - Set active_check to 1 > - Set check_period to "none" > - Set active_checks_enabled to 1 > - Set freshness_threshold to 120 seconds > - Set passive_checks_enabled to 1 > > According to Marc, if the "Status Data Age" is more than 2 > minutes, the > check_command should be run even though "check_period" is set to > "none". Do I have this right so far? Well, this gets rid of > the red on > the TAC page since I don't have any active_checks disabled, but even > though my "Status Data Age" is " 0d 8h 47m 26s" the active > check is NOT > being run. :-( > > -Emmett ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Sat Feb 12 11:52:26 2005 From: ae at op5.se (Andreas Ericsson) Date: Sat, 12 Feb 2005 11:52:26 +0100 Subject: [Possible Spam] - Re: host down but up problem In-Reply-To: <4EE8236B66247849BD4E1B5383AF4F48233259@exchwaus01.redmond.radioframenetworks.com> References: <4EE8236B66247849BD4E1B5383AF4F48233259@exchwaus01.redmond.radioframenetworks.com> Message-ID: <420DDFEA.3070304@op5.se> Christopher Smith wrote: > Okay, so I am having this problem with the Check_Icmp plugin. > > If I run the check_icmp as the default nagios user account, I receive a > status information message in Nagios stating that 'Root access needed > (for raw sockets)' is necessary. Yet, as stipulated by another's post, > it runs as root, no problem. I have verified that the permissions (from > Linux) are set correctly. > > This is 1.4.x of the plugins running on SuSE 9.1 and Nagios 1.2. > > How does one get around this? > Nagios doesn't run it as root, so it needs to be setuid 0 to get access to raw sockets and send ICMP messages. The following commands should get it working for you. su - root chown root:root /usr/local/nagios/libexec/check_icmp chmod 4755 /usr/local/nagios/libexec/check_icmp su - nagios /usr/local/nagios/libexec/check_icmp -H localhost > > > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Andreas > Ericsson > Sent: Wednesday, February 09, 2005 7:38 AM > To: nagios-users at lists.sourceforge.net > Subject: [Possible Spam] - Re: [Nagios-users] host down but up problem > > Serveur-Faucon Surveillance wrote: > >>Hi all, >> >>I have been using Nagios for quite a while now over 2 years, so I am >>pretty familiar with it. >> >>One of my host recently went to a down state on the network status, >>but is actually UP. This is not FAQ F0015 or F0016 related, since the >>same command is used by all other hosts (and they are just fine). >> >>I use the check_host_alive default command to check on hosts status >>(yeah I know, I dont use the hip (new, cool) check_icmp from Andreas >>Ericsson for now. Later) >> > > > Don't know about hip and cool, but you're probably better off without > it. "Don't fix it if it ain't broken". > > >>So I went to my console to try a couple of things... ping myhost = ok! > > >>check_ping -H myhost etc etc = ok! (exactly like the >>check_host_alive) >> >>So... my next theory would be to erase everything from that host in >>the history, and start over. But before that, is there someone who >>actually had something like that? >> >>There was the bug witch two nagios process could run at the same time, > > >>but that's not it. Thanks! >> > > > This can happen properly when the host starts flapping while down and > comes out OK on the other end of the flapping. Assuming you aren't > running 2.0 with f among your notification_options, ofcourse. > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Sat Feb 12 11:54:19 2005 From: ae at op5.se (Andreas Ericsson) Date: Sat, 12 Feb 2005 11:54:19 +0100 Subject: Nagios 2.0 - Force a host check ever 2 mins. In-Reply-To: <420CD3F0.6010306@datawire.net> References: <420CD3F0.6010306@datawire.net> Message-ID: <420DE05B.9050102@op5.se> Chris Stankaitis wrote: > > Hello All, a quick question about Passive host checks. > > I am setting up a distributed Nagios, and am using passive host checks > to monitor hosts behind my FW. the passive host check and the Obsessive > -ness work fine however I am getting into an issue. > > on the external Nagios box (the one that receives all the nsca > service/host checks from the internal Nagios) I have freshness checking > turned on for the host as well as the services... the problem is because > of the default Nagios behaviour host checks are only run if there are > service problems... > > So thus I am in the spot where all my services are OK on the box but the > host's are critical because of freshness checking. > > Is there a way that I can get my internal Nagios to run Host Checks for > the internal boxes every X mins like it would for a service check.. or > is there another good way to deal with this? > In 2.0 there is. Read the docs on host object configuration and the main config file for it. Be warned though that forcing host checks can prove to be a major slowdown as they aren't done in parallell. > --Chris > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk > being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Sat Feb 12 12:06:51 2005 From: ae at op5.se (Andreas Ericsson) Date: Sat, 12 Feb 2005 12:06:51 +0100 Subject: Antwort: RE: [Possible Spam] - Re: host down but up problem [Virus scanned] In-Reply-To: <4EE8236B66247849BD4E1B5383AF4F48233261@exchwaus01.redmond.radioframenetworks.com> References: <4EE8236B66247849BD4E1B5383AF4F48233261@exchwaus01.redmond.radioframenetworks.com> Message-ID: <420DE34B.5050903@op5.se> Christopher Smith wrote: > BTW, this is running as daemon (default SuSE user account for > Nagios). Does this have anything to do with it? > Only if there are some restrictions on the daemon account to execute setuid programs. SuSE does a lot of things in a paranoid manner, so that might be it. You also need to check that the disk the check_icmp plugin resides on is mounted without the nosuid option, using the 'mount' command. > > > > > -----Original Message----- From: > nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Sascha > Runschke Sent: Friday, February 11, 2005 7:48 AM To: > nagios-users at lists.sourceforge.net Subject: Antwort: RE: [Possible > Spam] - Re: [Nagios-users] host down but up problem [Virus scanned] > > Yes, set the permissions properly. Judging from your error message, I > guess it isn't set suid root. > > chown root check_icmp chmod 4755 check_icmp > > regards sash > > -------------------------------------------------- Sascha Runschke > Netzwerk Administration IT-Services > > ABIT AG Robert-Bosch-Str. 1 40668 Meerbusch > > Tel.:+49 (0) 2150.9153.226 mailto:SRunschke at abit.de > > http://www.abit.net http://www.abit-epos.net > http://www.my-academy.net > -------------------------------------------------- Der Inhalt dieser > Email sowie die Anh?nge sind ausschlie?lich f?r den bezeichneten > Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser > Email oder dessen Vertreter sein sollten, so beachten Sie bitte, da? > jede Form der Kenntnisnahme, Ver?ffentlichung, Vervielf?ltigung oder > Weitergabe des Inhalts dieser Email unzul?ssig ist. Wir m?chten Sie > au?erdem darauf hinweisen, da? die Kommunikation per Email ?ber das > Internet unsicher ist, da fuer unberechtigte Dritte grunds?tzlich die > M?glichkeit der Kenntnisnahme und Manipulation besteht. Wenn Sie > diese Nachricht versehentlich erhalten, informieren Sie bitte den > Absender und l?schen diese Nachricht mit den Anh?ngen. Herzlichen > Dank > > The information and any attachments contained in this email are > intended solely for the addressee. Access to this email by anyone > else is unauthorized. If you are not the intended recipient, any form > of disclosure, reproduction, distribution or any action taken or > refrained from in reliance on it, is prohibited and may be unlawful. > We also like to inform you that communication via email over the > internet is insecure because third parties may have the possibility > to access and manipulate emails. If you have received the message in > error, please advise the sender and delete the message and any > attachments. Thank you very much. > > > > > "Christopher Smith" Gesendet von: > nagios-users-admin at lists.sourceforge.net 11.02.2005 16:18 > > > An: "Andreas Ericsson" , > Kopie: Thema: RE: [Possible > Spam] - Re: [Nagios-users] host down but up problem [Virus scanned] > > > Okay, so I am having this problem with the Check_Icmp plugin. > > If I run the check_icmp as the default nagios user account, I receive > a status information message in Nagios stating that 'Root access > needed (for raw sockets)' is necessary. Yet, as stipulated by > another's post, it runs as root, no problem. I have verified that the > permissions (from Linux) are set correctly. > > This is 1.4.x of the plugins running on SuSE 9.1 and Nagios 1.2. > > How does one get around this? > > > > > -----Original Message----- From: > nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of > Andreas Ericsson Sent: Wednesday, February 09, 2005 7:38 AM To: > nagios-users at lists.sourceforge.net Subject: [Possible Spam] - Re: > [Nagios-users] host down but up problem > > Serveur-Faucon Surveillance wrote: > >> Hi all, >> >> I have been using Nagios for quite a while now over 2 years, so I >> am pretty familiar with it. >> >> One of my host recently went to a down state on the network status, >> but is actually UP. This is not FAQ F0015 or F0016 related, since >> the same command is used by all other hosts (and they are just >> fine). >> >> I use the check_host_alive default command to check on hosts status >> (yeah I know, I dont use the hip (new, cool) check_icmp from >> Andreas Ericsson for now. Later) >> > > > Don't know about hip and cool, but you're probably better off without > it. "Don't fix it if it ain't broken". > > >> So I went to my console to try a couple of things... ping myhost = >> ok! > > >> check_ping -H myhost etc etc = ok! (exactly like the >> check_host_alive) >> >> So... my next theory would be to erase everything from that host in >> the history, and start over. But before that, is there someone who >> actually had something like that? >> >> There was the bug witch two nagios process could run at the same >> time, > > >> but that's not it. Thanks! >> > > > This can happen properly when the host starts flapping while down and > comes out OK on the other end of the flapping. Assuming you aren't > running 2.0 with f among your notification_options, ofcourse. > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Sat Feb 12 12:13:08 2005 From: ae at op5.se (Andreas Ericsson) Date: Sat, 12 Feb 2005 12:13:08 +0100 Subject: Failover & passive checks In-Reply-To: <20050211174215.GA24306@zippy.toger.us> References: <20050211174215.GA24306@zippy.toger.us> Message-ID: <420DE4C4.7000305@op5.se> Jason Martin wrote: > Has anycome come up with a reliable way of implementing passive > checks that properly handles a Nagios failover? > > I'm looking at using SEC to send passive checks about syslog to > Nagios. How should I go about handling the situation where my > Nagios host fails over to another machine? send_nsca doesn't > have any capability to attempt to detect if Nagios is running on > the destination host when it transmits, and the 'failure' might > not be as simple as a machine going down. > > The failover machine is in another datacenter, so a simple > IP-handoff isn't feasible. How has everyone else handled this > sort if situation? > A code solution would be to have your primary nsca cache results to a file and submitted periodically every seconds by a script. At submit-time, the script could check if nagios is running on its own host and if not, submit to the fail-over host. If nsca also goes down (or the entire server) you're shit out of luck, but you're going to have to choose what you think will work in the end anyways. > Thanks, > -Jason Martin -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Sat Feb 12 12:19:08 2005 From: ae at op5.se (Andreas Ericsson) Date: Sat, 12 Feb 2005 12:19:08 +0100 Subject: Turn off RED for PASSIVE ONLY checks? In-Reply-To: <759618CD64AD564AB3756EF0B33D85332261E3@meadowlark2.home.ku.edu> References: <759618CD64AD564AB3756EF0B33D85332261E3@meadowlark2.home.ku.edu> Message-ID: <420DE62C.7000203@op5.se> Sloane, Robert Raymond wrote: > It sounds like the behavior had changed from version 1.2 to 2.0. That > would be a problem for me, since I use quiet a few passive checks with > the check_period set to none. Is there any possibility of getting the > old behavior back? Add some proper code to the if() statement at line 1652 in checks.c (as per latest CVS sourceforge would consent to hand out) or remove it altogether. Then recompile. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Sat Feb 12 12:22:38 2005 From: ae at op5.se (Andreas Ericsson) Date: Sat, 12 Feb 2005 12:22:38 +0100 Subject: Compile issues on older system In-Reply-To: <5483568f050211114232106d03@mail.gmail.com> References: <5483568f050211114232106d03@mail.gmail.com> Message-ID: <420DE6FE.4050505@op5.se> kmoogle wrote: > I'm trying to compile nagios-2.0b2 on an older system (my apologies in > advance) -- but have run into an issue. './configure' runs properly, > but fails on the 'make'. It currently runs Nagios 1.2. > > Any assistance is appreciated. > > Thank you. > > ======> Specifics > gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) > GNU Make version 3.78.1 > GNU ld version 2.9.5 (with BFD 2.9.5.0.22) > ldd (GNU libc) 2.1.3 > kernel 2.4.23 > GNU C Library stable release version 2.1.3 > > ======> 'make all' output > [nagios-2.0b2]# make all > cd ./base && make > make[1]: Entering directory `/opt/src/nagios-2.0b2/base' > gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o broker.o broker.c > In file included from ../include/nebmods.h:31, > from broker.c:33: > ../include/nebmodules.h:78: parse error before `lt_ptr' Install latest libtool with header files and such, or try ./configure --disable-event-broker. It's enabled by default, but the libtool support autodetection is a bit shoddy. There aren't that many modules to Nagios as of yet, so the usefulness of the event broker is still pretty limited. > ../include/nebmodules.h:78: warning: no semicolon at end of struct or union > ../include/nebmodules.h:79: warning: data definition has no type or > storage class > ../include/nebmodules.h:89: parse error before `}' > ../include/nebmodules.h:89: warning: data definition has no type or > storage class > In file included from broker.c:33: > ../include/nebmods.h:51: parse error before `*' > ../include/nebmods.h:54: parse error before `*' > make[1]: *** [broker.o] Error 1 > make[1]: Leaving directory `/opt/src/nagios-2.0b2/base' > make: *** [all] Error 2 > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From info at prounix.net Sun Feb 13 19:20:53 2005 From: info at prounix.net (Alin S) Date: Sun, 13 Feb 2005 12:20:53 -0600 (CST) Subject: Compile issue on Solaris 10 Sparc Edition Message-ID: <5857105.1108318853855.SLOX.WebMail.wwwrun@mail.prounix.net> Hello, I'm trying to compile nagios-2.0b2 on Solaris10 sparc edition and I run into an issue during the "make all" sequence. Any help is appreciated. Thanks, Alin *********************************************************************************************************** root:ultra60/packages/nagios-2.0b2# make all cd ./base && make make[1]: Entering directory `/packages/nagios-2.0b2/base' gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o checks.o checks.c In file included from /usr/include/sys/signal.h:34, from /usr/include/signal.h:26, from ../include/config.h:134, from checks.c:26: /usr/include/sys/siginfo.h:259: error: parse error before "ctid_t" /usr/include/sys/siginfo.h:292: error: parse error before '}' token /usr/include/sys/siginfo.h:294: error: parse error before '}' token /usr/include/sys/siginfo.h:390: error: parse error before "ctid_t" /usr/include/sys/siginfo.h:392: error: conflicting types for `__proc' /usr/include/sys/siginfo.h:261: error: previous declaration of `__proc' /usr/include/sys/siginfo.h:398: error: conflicting types for `__fault' /usr/include/sys/siginfo.h:267: error: previous declaration of `__fault' /usr/include/sys/siginfo.h:404: error: conflicting types for `__file' /usr/include/sys/siginfo.h:273: error: previous declaration of `__file' /usr/include/sys/siginfo.h:420: error: conflicting types for `__prof' /usr/include/sys/siginfo.h:287: error: previous declaration of `__prof' /usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl' /usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl' /usr/include/sys/siginfo.h:426: error: parse error before '}' token /usr/include/sys/siginfo.h:428: error: parse error before '}' token /usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t" /usr/include/sys/siginfo.h:437: error: parse error before '}' token In file included from /usr/include/signal.h:26, from ../include/config.h:134, from checks.c:26: /usr/include/sys/signal.h:85: error: parse error before "siginfo_t" In file included from ../include/config.h:134, from checks.c:26: /usr/include/signal.h:111: error: parse error before "siginfo_t" /usr/include/signal.h:113: error: parse error before "siginfo_t" make[1]: *** [checks.o] Error 1 make[1]: Leaving directory `/packages/nagios-2.0b2/base' make: *** [all] Error 2 ********************************************************************* ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From xavier at rootshell.be Sun Feb 13 19:30:53 2005 From: xavier at rootshell.be (Xavier) Date: Sun, 13 Feb 2005 19:30:53 +0100 (CET) Subject: Keep data from Nagios 1.x/MySQL -> Nagios 2.0 Message-ID: Hi *, Running a Nagios 1.x with DB support for a while, I'd like to keep the most part of my data when upgrading to 2.0 (commands, data retention, ...) Anybody experienced this? Xavier -- LOAD "vmunix",8,1 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Sun Feb 13 19:43:31 2005 From: ae at op5.se (Andreas Ericsson) Date: Sun, 13 Feb 2005 19:43:31 +0100 Subject: Keep data from Nagios 1.x/MySQL -> Nagios 2.0 In-Reply-To: References: Message-ID: <420F9FD3.5050302@op5.se> Xavier wrote: > Hi *, > > Running a Nagios 1.x with DB support for a while, I'd like to keep > the most part of my data when upgrading to 2.0 > (commands, data retention, ...) > Anybody experienced this? > Nopes, but it should be pretty straightforward to write a script and pull everything from database and put it in flat files. I've got a couple of scripts for fixing config and comments and such if you're interested (not database based though, but that should be simple enough anyways). > Xavier > -- > LOAD "vmunix",8,1 > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From xavier at rootshell.be Sun Feb 13 19:52:16 2005 From: xavier at rootshell.be (Xavier Mertens) Date: Sun, 13 Feb 2005 19:52:16 +0100 (CET) Subject: Keep data from Nagios 1.x/MySQL -> Nagios 2.0 In-Reply-To: <420F9FD3.5050302@op5.se> References: <420F9FD3.5050302@op5.se> Message-ID: Hi Andreas, I'll investigate so! Maybe could you put your existing scripts online? Regards, Xavier -- It is easier to fix Unix than to live with NT. On Sun, 13 Feb 2005, Andreas Ericsson wrote: > Xavier wrote: > > Hi *, > > > > Running a Nagios 1.x with DB support for a while, I'd like to keep > > the most part of my data when upgrading to 2.0 > > (commands, data retention, ...) Anybody experienced this? > > > > Nopes, but it should be pretty straightforward to write a script and pull > everything from database and put it in flat files. I've got a couple of > scripts for fixing config and comments and such if you're interested (not > database based though, but that should be simple enough anyways). > > > Xavier > > -- > > LOAD "vmunix",8,1 > > > > > > ------------------------------------------------------- > > SF email is sponsored by - The IT Product Guide > > Read honest & candid reviews on hundreds of IT Products from real users. > > Discover which products truly live up to the hype. Start reading now. > > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when reporting > > any issue. ::: Messages without supporting info will risk being sent to > > /dev/null > > > > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Sun Feb 13 19:54:36 2005 From: ae at op5.se (Andreas Ericsson) Date: Sun, 13 Feb 2005 19:54:36 +0100 Subject: Compile issue on Solaris 10 Sparc Edition In-Reply-To: <5857105.1108318853855.SLOX.WebMail.wwwrun@mail.prounix.net> References: <5857105.1108318853855.SLOX.WebMail.wwwrun@mail.prounix.net> Message-ID: <420FA26C.9000705@op5.se> Alin S wrote: > Hello, > I'm trying to compile nagios-2.0b2 on Solaris10 sparc edition and I run into an issue during the "make all" sequence. > Any help is appreciated. > Thanks, > Alin > > *********************************************************************************************************** > root:ultra60/packages/nagios-2.0b2# make all > cd ./base && make > make[1]: Entering directory `/packages/nagios-2.0b2/base' > gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o checks.o checks.c > In file included from /usr/include/sys/signal.h:34, > from /usr/include/signal.h:26, > from ../include/config.h:134, > from checks.c:26: > /usr/include/sys/siginfo.h:259: error: parse error before "ctid_t" > /usr/include/sys/siginfo.h:292: error: parse error before '}' token > /usr/include/sys/siginfo.h:294: error: parse error before '}' token > /usr/include/sys/siginfo.h:390: error: parse error before "ctid_t" This seems to indicate that your system header files are severely broken or that some header file defining the variable type ctid_t isn't being included. > /usr/include/sys/siginfo.h:392: error: conflicting types for `__proc' > /usr/include/sys/siginfo.h:261: error: previous declaration of `__proc' > /usr/include/sys/siginfo.h:398: error: conflicting types for `__fault' > /usr/include/sys/siginfo.h:267: error: previous declaration of `__fault' > /usr/include/sys/siginfo.h:404: error: conflicting types for `__file' > /usr/include/sys/siginfo.h:273: error: previous declaration of `__file' > /usr/include/sys/siginfo.h:420: error: conflicting types for `__prof' > /usr/include/sys/siginfo.h:287: error: previous declaration of `__prof' > /usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl' > /usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl' This is supposed to never ever happen. Have you managed to compile some other signal handling software on this system? > /usr/include/sys/siginfo.h:426: error: parse error before '}' token > /usr/include/sys/siginfo.h:428: error: parse error before '}' token > /usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t" > /usr/include/sys/siginfo.h:437: error: parse error before '}' token > In file included from /usr/include/signal.h:26, > from ../include/config.h:134, > from checks.c:26: > /usr/include/sys/signal.h:85: error: parse error before "siginfo_t" > In file included from ../include/config.h:134, > from checks.c:26: > /usr/include/signal.h:111: error: parse error before "siginfo_t" > /usr/include/signal.h:113: error: parse error before "siginfo_t" > make[1]: *** [checks.o] Error 1 > make[1]: Leaving directory `/packages/nagios-2.0b2/base' > make: *** [all] Error 2 > > ********************************************************************* > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Sun Feb 13 20:07:09 2005 From: ae at op5.se (Andreas Ericsson) Date: Sun, 13 Feb 2005 20:07:09 +0100 Subject: Keep data from Nagios 1.x/MySQL -> Nagios 2.0 In-Reply-To: References: <420F9FD3.5050302@op5.se> Message-ID: <420FA55D.8070803@op5.se> Xavier Mertens wrote: > Hi Andreas, > I'll investigate so! Maybe could you put your existing scripts online? > http://oss.op5.se/nagios You want the gzipped php scripts. Mainly 12to20comments and object_config_fix. object_config_fix will mangle your notification commands, but 2.0 doesn't have the same macro names so you'd have to change them sooner or later anyway. I'm sure you get the general idea. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From info at prounix.net Sun Feb 13 20:15:26 2005 From: info at prounix.net (Alin S) Date: Sun, 13 Feb 2005 13:15:26 -0600 (CST) Subject: Compile issue on Solaris 10 Sparc Edition References: <5857105.1108318853855.SLOX.WebMail.wwwrun@mail.prounix.net><420FA26C.9000705@op5.se> Message-ID: <2478770.1108322126539.SLOX.WebMail.wwwrun@mail.prounix.net> This is a fresh installation on Solaris10 (entire distribution). I didn?t' compile anything else on the system since I installed the OS (last night). The only thing that I have done is to load some standard packages on the system. Do you think that one of the packages loaded on the system corrupted the headers? Listed below are the packages installed on the system: application SMCautoc autoconf application SMCautom automake application SMCcurl curl application SMCdb db application SMCdiffu diffutils application SMCegd egd application SMCexpat expat application SMCfontc fontconfig application SMCfreet freetype application SMCgawk gawk application SMCgcc gcc application SMCgd gd application SMCgdbm gdbm application SMCglib1 glib application SMCgtk gtk+ application SMCiconv libiconv application SMCimlib imlib application SMCjpeg jpeg application SMClibnet libnet application SMClibtool libtool application SMClpng libpng application SMClungif libungif application SMClxslt libxslt application SMCm4 m4 application SMCmake make application SMCncurs ncurses application SMCossh openssh application SMCpango pango application SMCpgsql postgresql application SMCphp php application SMCprngd prngd application SMCpythn python application SMCsmake smake application SMCsudo sudo application SMCtop top application SMCvnc vnc Thanks, Alin On Feb 13, 2005 06:54 PM, Andreas Ericsson wrote: > Alin S wrote: > > Hello, > > I'm trying to compile nagios-2.0b2 on Solaris10 sparc edition and I run into an issue during the "make all" sequence. > > Any help is appreciated. > > Thanks, > > Alin > > > > *********************************************************************************************************** > > root:ultra60/packages/nagios-2.0b2# make all > > cd ./base && make > > make[1]: Entering directory `/packages/nagios-2.0b2/base' > > gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o checks.o checks.c > > In file included from /usr/include/sys/signal.h:34, > > from /usr/include/signal.h:26, > > from ../include/config.h:134, > > from checks.c:26: > > /usr/include/sys/siginfo.h:259: error: parse error before "ctid_t" > > /usr/include/sys/siginfo.h:292: error: parse error before '}' token > > /usr/include/sys/siginfo.h:294: error: parse error before '}' token > > /usr/include/sys/siginfo.h:390: error: parse error before "ctid_t" > > This seems to indicate that your system header files are severely broken > or that some header file defining the variable type ctid_t isn't being > included. > > > /usr/include/sys/siginfo.h:392: error: conflicting types for `__proc' > > /usr/include/sys/siginfo.h:261: error: previous declaration of `__proc' > > /usr/include/sys/siginfo.h:398: error: conflicting types for `__fault' > > /usr/include/sys/siginfo.h:267: error: previous declaration of `__fault' > > /usr/include/sys/siginfo.h:404: error: conflicting types for `__file' > > /usr/include/sys/siginfo.h:273: error: previous declaration of `__file' > > /usr/include/sys/siginfo.h:420: error: conflicting types for `__prof' > > /usr/include/sys/siginfo.h:287: error: previous declaration of `__prof' > > /usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl' > > /usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl' > > This is supposed to never ever happen. Have you managed to compile some > other signal handling software on this system? > > > /usr/include/sys/siginfo.h:426: error: parse error before '}' token > > /usr/include/sys/siginfo.h:428: error: parse error before '}' token > > /usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t" > > /usr/include/sys/siginfo.h:437: error: parse error before '}' token > > In file included from /usr/include/signal.h:26, > > from ../include/config.h:134, > > from checks.c:26: > > /usr/include/sys/signal.h:85: error: parse error before "siginfo_t" > > In file included from ../include/config.h:134, > > from checks.c:26: > > /usr/include/signal.h:111: error: parse error before "siginfo_t" > > /usr/include/signal.h:113: error: parse error before "siginfo_t" > > make[1]: *** [checks.o] Error 1 > > make[1]: Leaving directory `/packages/nagios-2.0b2/base' > > make: *** [all] Error 2 > > > > ********************************************************************* > > > > > > > > > > ------------------------------------------------------- > > SF email is sponsored by - The IT Product Guide > > Read honest & candid reviews on hundreds of IT Products from real users. > > Discover which products truly live up to the hype. Start reading now. > > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > -- > Andreas Ericsson andreas.ericsson at op5.se > OP5 AB www.op5.se > Lead Developer > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Sun Feb 13 20:58:11 2005 From: ae at op5.se (Andreas Ericsson) Date: Sun, 13 Feb 2005 20:58:11 +0100 Subject: Compile issue on Solaris 10 Sparc Edition In-Reply-To: <2478770.1108322126539.SLOX.WebMail.wwwrun@mail.prounix.net> References: <5857105.1108318853855.SLOX.WebMail.wwwrun@mail.prounix.net><420FA26C.9000705@op5.se> <2478770.1108322126539.SLOX.WebMail.wwwrun@mail.prounix.net> Message-ID: <420FB153.6030100@op5.se> Alin S wrote: > This is a fresh installation on Solaris10 (entire distribution). > I didn???t' compile anything else on the system since I installed > the OS (last night). The only thing that I have done is to load > some standard packages on the system. Do you think that one of the > packages loaded on the system corrupted the headers? No, I think you have either missed to load one or more packages containing development files (most likely), or the files included in one or more of the packages are corrupt (not likely), or the header files are simply poorly written (somewhat likely). > Listed below > are the packages installed on the system: > > application SMCautoc autoconf > application SMCautom automake > application SMCcurl curl > application SMCdb db > application SMCdiffu diffutils > application SMCegd egd > application SMCexpat expat > application SMCfontc fontconfig > application SMCfreet freetype > application SMCgawk gawk > application SMCgcc gcc > application SMCgd gd > application SMCgdbm gdbm > application SMCglib1 glib > application SMCgtk gtk+ > application SMCiconv libiconv > application SMCimlib imlib > application SMCjpeg jpeg > application SMClibnet libnet > application SMClibtool libtool > application SMClpng libpng > application SMClungif libungif > application SMClxslt libxslt > application SMCm4 m4 > application SMCmake make > application SMCncurs ncurses > application SMCossh openssh > application SMCpango pango > application SMCpgsql postgresql > application SMCphp php > application SMCprngd prngd > application SMCpythn python > application SMCsmake smake > application SMCsudo sudo > application SMCtop top > application SMCvnc vnc > > Thanks, > Alin > > On Feb 13, 2005 06:54 PM, Andreas Ericsson wrote: > > >>Alin S wrote: >> >>> Hello, >>> I'm trying to compile nagios-2.0b2 on Solaris10 sparc edition and I run into an issue during the "make all" sequence. >>> Any help is appreciated. >>>Thanks, >>>Alin >>> >>>*********************************************************************************************************** >>>root:ultra60/packages/nagios-2.0b2# make all >>>cd ./base && make >>>make[1]: Entering directory `/packages/nagios-2.0b2/base' >>>gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o checks.o checks.c >>>In file included from /usr/include/sys/signal.h:34, >>> from /usr/include/signal.h:26, >>> from ../include/config.h:134, >>> from checks.c:26: >>>/usr/include/sys/siginfo.h:259: error: parse error before "ctid_t" >>>/usr/include/sys/siginfo.h:292: error: parse error before '}' token >>>/usr/include/sys/siginfo.h:294: error: parse error before '}' token >>>/usr/include/sys/siginfo.h:390: error: parse error before "ctid_t" >> >>This seems to indicate that your system header files are severely broken >>or that some header file defining the variable type ctid_t isn't being >>included. >> >> >>>/usr/include/sys/siginfo.h:392: error: conflicting types for `__proc' >>>/usr/include/sys/siginfo.h:261: error: previous declaration of `__proc' >>>/usr/include/sys/siginfo.h:398: error: conflicting types for `__fault' >>>/usr/include/sys/siginfo.h:267: error: previous declaration of `__fault' >>>/usr/include/sys/siginfo.h:404: error: conflicting types for `__file' >>>/usr/include/sys/siginfo.h:273: error: previous declaration of `__file' >>>/usr/include/sys/siginfo.h:420: error: conflicting types for `__prof' >>>/usr/include/sys/siginfo.h:287: error: previous declaration of `__prof' >>>/usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl' >>>/usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl' >> >>This is supposed to never ever happen. Have you managed to compile some >>other signal handling software on this system? >> >> >>>/usr/include/sys/siginfo.h:426: error: parse error before '}' token >>>/usr/include/sys/siginfo.h:428: error: parse error before '}' token >>>/usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t" >>>/usr/include/sys/siginfo.h:437: error: parse error before '}' token >>>In file included from /usr/include/signal.h:26, >>> from ../include/config.h:134, >>> from checks.c:26: >>>/usr/include/sys/signal.h:85: error: parse error before "siginfo_t" >>>In file included from ../include/config.h:134, >>> from checks.c:26: >>>/usr/include/signal.h:111: error: parse error before "siginfo_t" >>>/usr/include/signal.h:113: error: parse error before "siginfo_t" >>>make[1]: *** [checks.o] Error 1 >>>make[1]: Leaving directory `/packages/nagios-2.0b2/base' >>>make: *** [all] Error 2 >>> >>>********************************************************************* >>> >>> >>> >>> >>>------------------------------------------------------- >>>SF email is sponsored by - The IT Product Guide >>>Read honest & candid reviews on hundreds of IT Products from real users. >>>Discover which products truly live up to the hype. Start reading now. >>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >>>_______________________________________________ >>>Nagios-users mailing list >>>Nagios-users at lists.sourceforge.net >>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >>>::: Messages without supporting info will risk being sent to /dev/null >>> >> >>-- >>Andreas Ericsson andreas.ericsson at op5.se >>OP5 AB www.op5.se >>Lead Developer >> >> >>------------------------------------------------------- >>SF email is sponsored by - The IT Product Guide >>Read honest & candid reviews on hundreds of IT Products from real users. >>Discover which products truly live up to the hype. Start reading now. >>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >>::: Messages without supporting info will risk being sent to /dev/null >> > > > > > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From benny at bennyvision.com Mon Feb 14 00:41:06 2005 From: benny at bennyvision.com (C. Bensend) Date: Sun, 13 Feb 2005 17:41:06 -0600 (CST) Subject: Service dependencies not working as I would think? Message-ID: <52446.63.227.74.41.1108338066.squirrel@webmail.stinkweasel.net> Hey folks, So, after an unintentional barrage of alerts, I started playing around with service dependencies. I do an awful lot of checks using check_by_ssh, so I'd like to set up dependencies for other services that depend on ssh. Simple, I would think. In my dependencies.cfg (this is Nagios 1.2): # Servicedependency definition define servicedependency{ host_name neutron service_description ssh dependent_host_name neutron dependent_service_description postgresql execution_failure_criteria w,u,c ; These are the criteria ; for which check execution ; will be supressed notification_failure_criteria w,u,c ; These are the criteria ; for which notifications ; will be supressed } For the above host (neutron), I use check_by_ssh to execute check_pgsql locally. So, with the above config, I would think that if ssh goes away, the postgresql service will not be tested and will not alert. To test, I killed ssh on neutron, and watched what happened - and to my dismay, Nagios alerted on both ssh and postgresql. :( The "view config" in the web interface seems to show the dependency set up correctly - what the heck am I missing? Thanks! Benny -- "I'm so Goth, my wrists slit themselves." -- bash.org ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From leonardomachado at gmail.com Mon Feb 14 04:00:05 2005 From: leonardomachado at gmail.com (Leonardo Henrique Machado) Date: Mon, 14 Feb 2005 01:00:05 -0200 Subject: Service dependencies not working as I would think? In-Reply-To: <52446.63.227.74.41.1108338066.squirrel@webmail.stinkweasel.net> References: <52446.63.227.74.41.1108338066.squirrel@webmail.stinkweasel.net> Message-ID: The following could happen: - ssh is OK - you kill ssh - nagios chek pgsql (it thinks that ssh is OK, since no check occured since last OK) - nagios says pgsql is DOWN (because you killed ssh) - after a while nagios check ssh - nagios says ssh is DOWN Dependencies means that nagios will check last result of a service before checking the dependent service. It does not means that nagios will check service ssh every time it needs to check pgsql. On Sun, 13 Feb 2005 17:41:06 -0600 (CST), C. Bensend wrote: > > Hey folks, > > So, after an unintentional barrage of alerts, I started playing > around with service dependencies. I do an awful lot of checks using > check_by_ssh, so I'd like to set up dependencies for other services > that depend on ssh. Simple, I would think. > > In my dependencies.cfg (this is Nagios 1.2): > > # Servicedependency definition > define servicedependency{ > host_name neutron > service_description ssh > dependent_host_name neutron > dependent_service_description postgresql > execution_failure_criteria w,u,c ; These are the criteria > ; for which check execution > ; will be supressed > notification_failure_criteria w,u,c ; These are the criteria > ; for which notifications > ; will be supressed > } > > For the above host (neutron), I use check_by_ssh to execute > check_pgsql locally. So, with the above config, I would think that > if ssh goes away, the postgresql service will not be tested and will > not alert. > > To test, I killed ssh on neutron, and watched what happened - > and to my dismay, Nagios alerted on both ssh and postgresql. :( > The "view config" in the web interface seems to show the dependency > set up correctly - what the heck am I missing? > > Thanks! > > Benny > > -- > "I'm so Goth, my wrists slit themselves." > -- bash.org > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Leonardo Henrique Machado ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From benny at bennyvision.com Mon Feb 14 04:18:01 2005 From: benny at bennyvision.com (C. Bensend) Date: Sun, 13 Feb 2005 21:18:01 -0600 (CST) Subject: Service dependencies not working as I would think? In-Reply-To: References: <52446.63.227.74.41.1108338066.squirrel@webmail.stinkweasel.net> Message-ID: <64969.63.227.74.41.1108351081.squirrel@webmail.stinkweasel.net> > The following could happen: > > - ssh is OK > - you kill ssh > - nagios chek pgsql (it thinks that ssh is OK, since no check occured > since last OK) > - nagios says pgsql is DOWN (because you killed ssh) > - after a while nagios check ssh > - nagios says ssh is DOWN > > Dependencies means that nagios will check last result of a service > before checking the dependent service. It does not means that nagios > will check service ssh every time it needs to check pgsql. Hi Leonardo, Looking at the docs, it appears that the dependency will look at the last HARD state of the depended-upon service. By using the soft_state_dependencies option, it should notice that the ssh service (the depended-on service) is not in an OK state, and hopefully will not alert. Not sure how I missed that bit of info, but it's been One Of Those Days(tm). So, I added 'soft_state_dependencies=1' to nagios.cfg, and restarted. Killing ssh seems to be producing the results I wanted - it logged the postgresql failure, and immediately started testing the ssh service, and ONLY the ssh service. Yay! To me, it seems like soft_state_dependencies should default to on - why would you not want a failure in a depended-upon service to be ignored when checking a dependent service, even if it is in a SOFT failure? Ethan? Anyhoo - thanks much, Leonardo. That got me thinking in the right direction. :) Benny -- "I'm so Goth, my wrists slit themselves." -- bash.org ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From aurbain at adeptra.com Mon Feb 14 04:25:51 2005 From: aurbain at adeptra.com (Aaron Urbain) Date: Sun, 13 Feb 2005 22:25:51 -0500 Subject: distributed nagios config Message-ID: <42101A3F.1000004@adeptra.com> I have a master and 5 slave nagios servers. I'm interested in getting all the slaves to #include the same main config options but cant find a directive which will include properly. cfg_file and resource_file will not work. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhmartin at toger.us Mon Feb 14 04:28:37 2005 From: jhmartin at toger.us (Jason Martin) Date: Sun, 13 Feb 2005 19:28:37 -0800 Subject: distributed nagios config In-Reply-To: <42101A3F.1000004@adeptra.com> References: <42101A3F.1000004@adeptra.com> Message-ID: <20050214032837.GC24306@zippy.toger.us> On Sun, Feb 13, 2005 at 10:25:51PM -0500, Aaron Urbain wrote: > I have a master and 5 slave nagios servers. > I'm interested in getting all the slaves to #include the same main > config options but cant find a directive which will include properly. The main nagios.cfg is not include'able. -Jason Martin -- You are only young once, but you can be immature forever. This message is PGP/MIME signed. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 211 bytes Desc: not available URL: From frederik.vanhee at perso.be Mon Feb 14 09:31:37 2005 From: frederik.vanhee at perso.be (Vanhee Frederik) Date: Mon, 14 Feb 2005 09:31:37 +0100 Subject: authentication issue Nagios2.0b2 Message-ID: <002b01c5126f$99905510$570312ac@t03017> Hello, I have this problem (probably not related to a certain Nagios-version). I have nagios configured with apache-authentication, so each user must login before having access to the Nagios pages I want to setup one user for demonstration purposes, who can view everything, but can't touch anything, so I added the user to "authorized_for_all_hosts"-directive in cgi-config-file and so, he can see all hosts and all services and as described in the documentation : "Users in this list are not automatically authorized to issue commands for all hosts or services". To make things clear : my user isn't defined in any contacts or contactgroups, so it's an authenticated user but not an authenticated contact. And now my problem : the user doesn't have the permission to issue host commands, which is normal, but the user DOES have permissions to execute hostgroups commands, thus : scheduling downtime, disable notifications,... and I don't want him to do that. Thanks, Frederik -------------- next part -------------- An HTML attachment was scrubbed... URL: From matato at pregi.net Mon Feb 14 17:32:20 2005 From: matato at pregi.net (matato at pregi.net) Date: Mon, 14 Feb 2005 16:32:20 -0000 (GMT) Subject: Where are the $ARGn$ macros will come from?? Message-ID: <1433.202.90.128.21.1108398740.squirrel@mail.pregi.net> Hi, I'm a little bit confuse about where the $ARGn$ macros will come from. for example, I have a service named squid and I used the check_tcp as its checkcommand.the actual command_line is: /usr/local/nagios/libexec/check_tcp -H $HOSTADDRESS$ -p $ARG1$ Where $ARG1$ must be the port the service is listening on. In my case 3128. I know that the $HOSTADDRESS$ will automatically be the address of the host the service belongs to, but how about the $ARG1$. How will I tell nagios that, "hey, this number "3128" is the $ARG1$, this is the port you should check for tcp connection". Is it included in any configuration file? Any idea?? thanks. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Mon Feb 14 10:05:33 2005 From: ae at op5.se (Andreas Ericsson) Date: Mon, 14 Feb 2005 10:05:33 +0100 Subject: Service dependencies not working as I would think? In-Reply-To: <64969.63.227.74.41.1108351081.squirrel@webmail.stinkweasel.net> References: <52446.63.227.74.41.1108338066.squirrel@webmail.stinkweasel.net> <64969.63.227.74.41.1108351081.squirrel@webmail.stinkweasel.net> Message-ID: <421069DD.6070306@op5.se> C. Bensend wrote: >>The following could happen: >> >>- ssh is OK >>- you kill ssh >>- nagios chek pgsql (it thinks that ssh is OK, since no check occured >>since last OK) >>- nagios says pgsql is DOWN (because you killed ssh) >>- after a while nagios check ssh >>- nagios says ssh is DOWN >> >>Dependencies means that nagios will check last result of a service >>before checking the dependent service. It does not means that nagios >>will check service ssh every time it needs to check pgsql. > > > Hi Leonardo, > > Looking at the docs, it appears that the dependency will look at > the last HARD state of the depended-upon service. By using the > soft_state_dependencies option, it should notice that the ssh > service (the depended-on service) is not in an OK state, and hopefully > will not alert. Not sure how I missed that bit of info, but it's been > One Of Those Days(tm). > > So, I added 'soft_state_dependencies=1' to nagios.cfg, and restarted. > Killing ssh seems to be producing the results I wanted - it logged the > postgresql failure, and immediately started testing the ssh service, and > ONLY the ssh service. Yay! > > To me, it seems like soft_state_dependencies should default to on - > why would you not want a failure in a depended-upon service to be > ignored when checking a dependent service, even if it is in a SOFT > failure? Ethan? > Because SOFT states are considered temporary network flukes. A probably more accurate way would be to implement some sort of dependency_freshness interval, so that the SSH gets checked once more (and re-scheduled appropriately) when check_pgsql is about to run if more than (timing_interval * dependency_freshness) seconds have passed since last logged HARD ok. If that checks fails to, then put check_pgsql in a dependent soft state down. > Anyhoo - thanks much, Leonardo. That got me thinking in the right > direction. :) > > Benny > > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Mon Feb 14 10:08:08 2005 From: ae at op5.se (Andreas Ericsson) Date: Mon, 14 Feb 2005 10:08:08 +0100 Subject: Where are the $ARGn$ macros will come from?? In-Reply-To: <1433.202.90.128.21.1108398740.squirrel@mail.pregi.net> References: <1433.202.90.128.21.1108398740.squirrel@mail.pregi.net> Message-ID: <42106A78.9040603@op5.se> matato at pregi.net wrote: > Hi, > I'm a little bit confuse about where the $ARGn$ macros will come from. > for example, I have a service named squid and I used the check_tcp as its > checkcommand.the actual command_line is: > /usr/local/nagios/libexec/check_tcp -H $HOSTADDRESS$ -p $ARG1$ > Where $ARG1$ must be the port the service is listening on. In my case 3128. > > I know that the $HOSTADDRESS$ will automatically be the address of the > host the service belongs to, but how about the $ARG1$. How will I tell > nagios that, "hey, this number "3128" is the $ARG1$, this is the port you > should check for tcp connection". Is it included in any configuration > file? > Any idea?? thanks. > check_command check_squid!arg1!arg2!arg3!arg4 I'm sure you get the idea, and I believe this is documented somewhere. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stephan.janosch at interface-business.de Mon Feb 14 10:35:32 2005 From: stephan.janosch at interface-business.de (Stephan Janosch) Date: Mon, 14 Feb 2005 10:35:32 +0100 Subject: Why we need a check_period at hosts? Message-ID: <421070E4.6060603@interface-business.de> Hi Readers around! Looking and searching in the docu gives me absolut no idea why I need a check_period at the host definition. The check_command is not required, but the strange _not documented_ check_period. So I could imagine, that the check_period determines, when the host gets checked. Is that right? Regards; Stephan ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 at reseau.nl Mon Feb 14 10:57:07 2005 From: alex at reseau.nl (alex at reseau.nl) Date: Mon, 14 Feb 2005 10:57:07 +0100 Subject: External Command, scheduled downtime Message-ID: <1108375027.421075f33c0d8@webmail.reseau.nl> Hmm, now a bit edited and send to the group.. Quoting Lewis Getschel : > OK, I may be off here, but I'll give it a try... > I'm using 1.2, not the 2.0, but this sounds familiar... > > Question, how do you know that your command is getting into the > nagios.cmd file? > I ask because I did monitoring with tail -f var/rw/nagios.cmd > and found that whenever I did that, I would SEE the command, but it > would NEVER get processed. > It was only after 'forgetting' to do the tail command that I > figured > that I was actually interfering with it! > (I didn't realize it wasn't a 'file', but a named pipe until > Andreas pointed it out. Yes well, seeing the event being added to the Event Log in Nagios shows me it is being read by Nagios. But it isn't handled any further. > > I have the following lines in an event handler I'm using (so nagios > acknowledges this file system service > is reaching a warning/critical level. This happens after another > script > mails out a message to the correct users) > This builds up the proper format for the nagios.cmd "named pipe" to > use: > ---- cut here ---- > # Now put the acknowledgment into Nagios so it doesn't continue to > show > warning/critical state > echocmd="/bin/echo" > CommandFile="/usr/local/nagios/var/rw/nagios.cmd" > # get the current date/time in seconds since UNIX epoch > datetime=`date +%s` > # create the command lines to add to the command file > # the 4th parameter is 0=non-persistant, 1=persistant > cmdline1="[$datetime] > ADD_SVC_COMMENT;$4;$5;1;Nagios_script;ACKNOWLEDGEMENT: FS > $freediskspace > free disk,mail sent to $numberofmailsent users" > cmdline2="[$datetime] ACKNOWLEDGE_SVC_PROBLEM;$4;$5;0;FS > $freediskspace free disk, mail sent to $numberofmailsent users" > `$echocmd $cmdline1 >> $CommandFile` > `$echocmd $cmdline2 >> $CommandFile` > ---- cut here ---- > > I'm not sure this helps, but I thought it might. > Lewis Well thanks for replying (3 times ;). That script has some undefined variables in it, but that isn't too much a problem. That pointed me to something though.. running that script by itself gave this first line in the Event Log: [2005-02-14 09:38:22] EXTERNAL COMMAND: ADD_SVC_COMMENT;;;1;Nagios_script;ACKNOWLEDGEMENT: FS free disk,mail sent to users Even though the host_name and service_description fields are empty, it is loaded into the logfile. I know Nagios does report it when it finds an unknown command. But apparently it doesn't check whether the host or service exists. I guess, to start with, this is a bug. Ofcourse this check is done at a different level, but still. In cgi.cfg 'my' user has is in all the user-permission lists, so that can't be it either (authorized_for_system_information, authorized_for_configuration_information, authorized_for_system_commands, authorized_for_all_services, authorized_for_all_hosts, authorized_for_all_service_commands, authorized_for_all_host_commands). I checked all logfiles I could think of, but I don't find an error message from Nagios anywhere, even though somewhere that command has to be rejected. Unfortunately I'm not so much a 'compiler' myself, nor do I really have the time to check the code myself. So I really hope one of the developers has an idea here. Btw, adding te right parameters a service did get a comment, so that IS working. Regards, Alex Haan > > alex at reseau.nl wrote: > > >I've been investigating Nagios for a while now. > > > >I had the last stable, beta1 and now beta2 installed. > > > >I have problems scheduling Service and Host downtime using > external > >commands. I haven't used it before and started with it in beta1. > > > >I have seen that multiple people have had this issue, though they > >never got a reaction. I hope I will because I don't have much time > >left for this investigation and using external commands to > schedule > >downtime is critical in our system. > > > >When I use the Addon nagdtsched i get a message in the Event log: > > > >[2005-02-11 11:08:10] EXTERNAL COMMAND: > >SCHEDULE_SVC_DOWNTIME;linux1;PING;1108137600;1108195200;1;57600;nagios;Regularly > >Scheduled Dowtime > > > >but nothing shows up in the 'Downtime' page. If I schedule > downtime > >via the webinterface then everythign goes ok. > > > >I tried echo-ing to var/rw/nagios.cmd myself and that worked like > >above. And both external commands for host and service downtime > don't > >work. I first tried all of this in beta1, but hoping beta2 might > have > >it fixed i installed that over 1, but that didn't help either. > > > >What I am using this for is to create performance data during > business > >hours. But I want those hours defined in nagios, not in the data > >processing. I found out that I can use a macro that shows the > >downtime level, so i can easily use that calculating performance > >myself. > >It would help if there was a variant to the service&host > notification > >hour settings. But this works just as well. > > > >Regards, > >Alex Haan > > > >---------------------------------------------------------------- > >This message was sent using IMP, the Internet Messaging Program. > > > > > >------------------------------------------------------- > >SF email is sponsored by - The IT Product Guide > >Read honest & candid reviews on hundreds of IT Products from real > users. > >Discover which products truly live up to the hype. Start reading > now. > >http://ads.osdn.com/?ad_ide95&alloc_id396&opclick > >_______________________________________________ > >Nagios-users mailing list > >Nagios-users at lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/nagios-users > >::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > >::: Messages without supporting info will risk being sent to > /dev/null > > > > > > > > -- > Lewis Getschel | Today is done... > WesternGeco | Today was fun... > 1625 Broadway | Tomorrow is another one. > Denver, CO 80202 | > Direct Phone - 303-389-4407| -- Dr. Seuss -- > ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ecasbas at unav.es Mon Feb 14 13:28:39 2005 From: ecasbas at unav.es (Emilio Casbas) Date: Mon, 14 Feb 2005 13:28:39 +0100 Subject: monitorizing cups Message-ID: <42109977.3020105@unav.es> Hi Is possible use nagios to monitor a print's server with cups? Thanks Emilio C. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Mon Feb 14 13:36:13 2005 From: ae at op5.se (Andreas Ericsson) Date: Mon, 14 Feb 2005 13:36:13 +0100 Subject: monitorizing cups In-Reply-To: <42109977.3020105@unav.es> References: <42109977.3020105@unav.es> Message-ID: <42109B3D.1090507@op5.se> Emilio Casbas wrote: > Hi > > Is possible use nagios to monitor a print's server with cups? > Yes. > > Thanks > Emilio C. > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk > being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From leonardomachado at gmail.com Mon Feb 14 14:06:01 2005 From: leonardomachado at gmail.com (Leonardo Henrique Machado) Date: Mon, 14 Feb 2005 11:06:01 -0200 Subject: force "CURRENT SERVICE STATE" check Message-ID: I noticed that nagios does a check on every services and hosts and outputs in the following format: ---------- [1106359200] CURRENT SERVICE STATE: comp1;Usuarios;OK;HARD;1;Output [1106359200] CURRENT SERVICE STATE: comp2;Usuarios;OK;HARD;1;Output [1106359200] CURRENT SERVICE STATE: comp3;Usuarios;OK;HARD;1;Output [1106359200] CURRENT SERVICE STATE: comp4;Usuarios;OK;HARD;1;Output [1106359200] CURRENT SERVICE STATE: comp5;Usuarios;OK;HARD;1;Output ----------- I have 2 questions about it: 1- When does CURRENT SERVICE STATE check occurs? At startup? 2- How can I force nagios to output the CURRENT SERVICE STATE every 5 minutes and redirect the output to file? -- Leonardo Henrique Machado ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Mon Feb 14 14:43:14 2005 From: ae at op5.se (Andreas Ericsson) Date: Mon, 14 Feb 2005 14:43:14 +0100 Subject: force "CURRENT SERVICE STATE" check In-Reply-To: References: Message-ID: <4210AAF2.1040601@op5.se> Leonardo Henrique Machado wrote: > I noticed that nagios does a check on every services and hosts and > outputs in the following format: > ---------- > [1106359200] CURRENT SERVICE STATE: comp1;Usuarios;OK;HARD;1;Output > [1106359200] CURRENT SERVICE STATE: comp2;Usuarios;OK;HARD;1;Output > [1106359200] CURRENT SERVICE STATE: comp3;Usuarios;OK;HARD;1;Output > [1106359200] CURRENT SERVICE STATE: comp4;Usuarios;OK;HARD;1;Output > [1106359200] CURRENT SERVICE STATE: comp5;Usuarios;OK;HARD;1;Output > ----------- > > I have 2 questions about it: > > 1- When does CURRENT SERVICE STATE check occurs? At startup? Yes. > 2- How can I force nagios to output the CURRENT SERVICE STATE every 5 > minutes and redirect the output to file? > Why would you want to? Nagios writes it every time the state changes and every time it rotates its logs. It's possible through a loadable NEB-module or some such, I expect. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jvanas at jackofallgames.com Mon Feb 14 14:52:14 2005 From: jvanas at jackofallgames.com (Josh Van As) Date: Mon, 14 Feb 2005 08:52:14 -0500 Subject: Help with Host checks Message-ID: Oops... Sorry to have bothered everyone. I see my error. I am missing the check command. ________________________________ From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Josh Van As Sent: Friday, February 11, 2005 2:11 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Help with Host checks I have hosts setup with no services (on 2.0b1). I am trying to use active checks only on the hosts. For some reason, I don't think that the check is every occurring because my "host status detail" says (null) under the "status information: c12-idf10-w12 UP N/A 0d 0h 10m 27s+ (null) Here is how my host.cfg is setup: define host{ name noservice-host notifications_enabled 1 active_checks_enabled 1 event_handler_enabled 1 flap_detection_enabled 1 low_flap_threshold 0 high_flap_threshold 0 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 0 check_interval 1 passive_checks_enabled 1 max_check_attempts 5 notification_interval 5 notification_period 24x7 notification_options d,r contact_groups nullcontact register 0 } define host{ use noservice-host host_name c12-idf10-w12 alias c12-idf10-w12.joag.com address 10.10.90.100 parents c37-idf10-m02 } Can anyone help me troubleshoot this? If I look at "view config" under "hosts" I notice one strange thing: None of my hosts have "yes" under "Enable Active Checks". Which I thought should be turned on since I am setting both check_interval=1 and active_checks_enabled=1. TIA! Josh Van As ************************************************************************ ************************************************************************ ************************************************************************ ********** The information transmitted is intended only for the person to whom it is addressed and may be confidential and privileged and protected from disclosure. Any review, retransmission, dissemination or other use of, or taking any action in reliance upon, this information by persons or entities other than the intended recipients are prohibited. If you are not the intended recipient, please contact the sender and delete the material from any computer. ************************************************************************ ************************************************************************ ************************************************************************ ********** -------------- next part -------------- An HTML attachment was scrubbed... URL: From matt.garrett at shell.com Mon Feb 14 14:57:55 2005 From: matt.garrett at shell.com (Garrett, Matt M SITI-ITISEEEE) Date: Mon, 14 Feb 2005 13:57:55 -0000 Subject: Nagios V2 Hostgroup escalations Message-ID: <4E88F6699E4BAE41B724A3EC3CC457D50147889F@abe-s-039.europe.shell.com> Folks As I understand Hostgroup / Service escalations have now been removed. I am sure there must have been a good reason for this , but now need to re-write *.cfg files. A small sample of the autogenerated nagios config file # Host abe-u-s00055 sun check host alive define host{ use generic-host host_name abe-u-s00055 alias abe_geoportal_apps_servers address 134.What.ever check_command check-host-alive max_check_attempts 10 notification_interval 7 notification_period 24x7 notification_options d,u,r } #Serviceescalation definition abe-u-s00055 sun PING define serviceescalation{ host_name abe-u-s00055 service_description PING first_notification 2 last_notification 2 contact_groups sun-admins-escalation notification_interval 0 } #Service Definition abe-u-s00055 sun PING define service{ use generic-service host_name abe-u-s00055 service_description PING is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups sun-admins notification_interval 7 notification_period 24x7 notification_options c,r check_command check_newping } # List of which machines are part of Sun-Servers group define hostgroup{ hostgroup_name sun-servers alias Sun Servers contact_groups sun-admins members abe-u-s00055 # Hostgroup 'sun-servers' escalation definition define hostgroupescalation{ hostgroup_name sun-servers first_notification 2 last_notification 2 contact_groups sccalert-admins notification_interval 0 } Any idea , on how to re-write this under Nagios V2.X Thanks Matt Matthew Garrett Linux / Unix Help Desk EP Shell Information Technology International Limited Seafield House, North Anderson Drive, Aberdeen AB15 6GZ, United Kingdom Tel: +44 (0)1224 81 7920 Other Tel: Internal 630 1506 Email: Internet: http://www.shell.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Werner.Flamme at ufz.de Mon Feb 14 15:16:17 2005 From: Werner.Flamme at ufz.de (Werner Flamme) Date: Mon, 14 Feb 2005 15:16:17 +0100 Subject: SSL won't work Message-ID: <4210B2B1.9030800@ufz.de> Hi all, I installed nagios on 1 host and nrpe on 4 hosts and everythings works fine - as long as I use "-n" on both sides. When leaving -n away, I find the following lines in /var/log/messages: ---snip--- Feb 14 14:58:34 sapsid nrpe[23577]: connect from 141.65.xx.yyy (141.65.xx.yyy) Feb 14 14:58:34 sapsid nrpe[23577]: Added command[check_sap_psapfull]=/usr/lib/nagios/plugins/check_sap_cons psapfull SID Feb 14 14:58:34 sapsid nrpe[23577]: Added command[check_sap_psap620full]=/usr/lib/nagios/plugins/check_sap_cons psap620full SID Feb 14 14:58:34 sapsid nrpe[23577]: Added command[check_sap_systemfull]=/usr/lib/nagios/plugins/check_sap_cons systemfull SID Feb 14 14:58:34 sapsid nrpe[23577]: Added command[check_sap_instanz]=/usr/lib/nagios/plugins/check_sap_cons instanzstatus SID Feb 14 14:58:34 sapsid nrpe[23577]: INFO: SSL/TLS initialized. All network traffic will be encrypted. Feb 14 14:58:34 sapsid nrpe[23577]: Handling the connection... Feb 14 14:58:34 sapsid nrpe[23577]: Error: Could not complete SSL handshake. 1 ---pins--- All nagios hosts (SuSE Linux Enterprise Server 8) have openssl-devel-0.9.6g-114 installed. nrpe (and nagios and all plugins) were compiled on the hosts. On the man page of openssl I don't read anything about AES, so I may have the problem Derrick speaks about in README.SSL. I think I need another set of certificate, right? How do I get them? Where to store them? Thanks in advance, \/\/erner -- Werner Flamme, Abt. WKDV UFZ Umweltforschungszentrum Leipzig-Halle GmbH, Permoserstr. 15, 04318 Leipzig - http://www.ufz.de eMail: werner.flamme at ufz.de, Tel.: (0341) 235-2500 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From glestadt4 at yahoo.com Mon Feb 14 17:23:49 2005 From: glestadt4 at yahoo.com (joe ritter) Date: Mon, 14 Feb 2005 08:23:49 -0800 (PST) Subject: nrpe check_disk Message-ID: <20050214162349.65788.qmail@web90109.mail.scd.yahoo.com> Hello, I am usig nagios with check_nrpe to monitor remote hosts running the nrpe daemon. I anm having difficulty with the plugin check_disk. If I run the the command by hand on the nagios hosts all is well: /usr/lib/nagios/plugins/check_nrpe -H 192.168.120.11 -c check_disk -a 20% 10% /dev/cciss/c0d0p1 DISK OK [67334 kB (71%) free on /dev/cciss/c0d0p1] If run the command on the remote hosts all look fine as well: /usr/lib/nagios/plugins/check_disk -w 20% -c 10% /dev/cciss/c0d0p1 DISK OK [67334 kB (71%) free on /dev/cciss/c0d0p1] However when the command is run by the nagios daemon on the moniting host the I recieve the follwoing error in the web interface: Warning threshold must be integer or percentage! Here are the relevant defines I have set up for this plugin: nrpe.cfg on remote host: command[check_disk]=/usr/lib/nagios/plugins/check_disk -w $ARG1$ -c $ARG2$ - p $ARG3$ service.cfg on nagios host: define service{ use generic-service check_period 24x7 max_check_attempts 15 normal_check_interval 5 retry_check_interval 1 hostgroup_name web_servers contact_groups devs service_description partition_usage2 check_command check_nrpe!check_disk!20%!10%!/ If someone could shed some light on where I am going wrong I would greatly appreciate. Thanks in advance. j. __________________________________ Do you Yahoo!? The all-new My Yahoo! - What will yours do? http://my.yahoo.com ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nuffers at tsainc.com Mon Feb 14 18:10:52 2005 From: nuffers at tsainc.com (nuffers at tsainc.com) Date: Mon, 14 Feb 2005 11:10:52 -0600 Subject: Keep data from Nagios 1.x/MySQL -> Nagios 2.0 In-Reply-To: <20050214041403.E38D68833C@sc8-sf-spam1.sourceforge.net> References: <20050214041403.E38D68833C@sc8-sf-spam1.sourceforge.net> Message-ID: I have been using Nagios 1.x for about 8 months now and we are going to go production very soon. We have some new servers and I thought about going to Nagios 2.x. One of the reasons, I don't want to go there is managing the configuration files. I currently use Nagmin with MySQL database. Works great for entering information. You mentioned about keeping the data in MySQL. How are you going to manage the MySQL database? Entering data? NagMin? I would also be interested in the MySQL export scripts that someone has created. Last question. Is my concern in entering the data in the flat files over the top? We may have a couple of people entering data and I don't want to create problems with that. Thoughts? Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From yatindra.ranpura at ukbroadband.com Mon Feb 14 18:52:36 2005 From: yatindra.ranpura at ukbroadband.com (Yatindra Ranpura) Date: Mon, 14 Feb 2005 17:52:36 -0000 Subject: check_disk plugin problem In-Reply-To: <20050214162349.65788.qmail@web90109.mail.scd.yahoo.com> References: <20050214162349.65788.qmail@web90109.mail.scd.yahoo.com> Message-ID: <20050214175237.2548E4B685@netpilot.ukbroadband.com> Im not sure if I am doing this the correct way, I have pasted the services.cfg portion below that isnt correct, # Service definition define service{ use generic-service ; Name of service template to use host_name fileServer service_description DISK is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 1 retry_check_interval 1 contact_groups admins notification_interval 1 notification_period 24x7 notification_options w,u,c,r check_command check_disk 85%, 95% } I would like to monitor all hard drives on a machine called fileServer and set warning and critical alarms at 85% and 95%, Thanks in advance, Yatindra -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.7 - Release Date: 10/02/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.7 - Release Date: 10/02/2005 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.gage at handleman.com Mon Feb 14 19:17:25 2005 From: ron.gage at handleman.com (Gage, Ron) Date: Mon, 14 Feb 2005 13:17:25 -0500 Subject: check_disk plugin problem Message-ID: <283990F4F0B37641AF824B7AC258E1BE046E1E2E@troy-exch3.handleman.com> Yatrindra: Not sure what version you are running, but this advice is specific for 1.3 The default command name (unless you changed the command name in checkcommands.cfg) is check_local_disk. The default setup has this command with 3 parameters, -w, -c and -p. -w is the warning value, -c is the critical value and -p is path. Thus, to make your command work, try the following: check_command check_local_disk!85!95!/usr/disk1 This, of course, presumes that the volume you want to check space on is mounted as /usr/disk1. Adjust this accordingly... Ron Gage - IT Support Team (IBM) Handleman Corp. Troy, Michigan (248) 362-4400 x4626 ron.gage at handleman.com -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Yatindra Ranpura Sent: Monday, February 14, 2005 12:53 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] check_disk plugin problem Im not sure if I am doing this the correct way, I have pasted the services.cfg portion below that isnt correct, # Service definition define service{ use generic-service ; Name of service template to use host_name fileServer service_description DISK is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 1 retry_check_interval 1 contact_groups admins notification_interval 1 notification_period 24x7 notification_options w,u,c,r check_command check_disk 85%, 95% } I would like to monitor all hard drives on a machine called fileServer and set warning and critical alarms at 85% and 95%, Thanks in advance, Yatindra -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.7 - Release Date: 10/02/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.7 - Release Date: 10/02/2005 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From JoeRegular at gov.nl.ca Mon Feb 14 20:27:25 2005 From: JoeRegular at gov.nl.ca (Joe Regular) Date: Mon, 14 Feb 2005 15:57:25 -0330 Subject: Trends Not Working - Problem Solved Message-ID: After getting a hint from Marc Powell and Lionel Verscheur concerning the gd libraries I noticed that in the Apache2 error log I was getting errors concerning libgd.so.1.8. However, since I am using SUSE 9.1, I didn't have a libgd.so.1.8 library, I had a libgd.so.2.0.0 library. To solve the problem I simply created a symbolic link to libgd.so.2.0.0 called libgd.so.1.8. Problem solved. Thanks guys, Joe >>> "Marc Powell" 2005-02-09 1:51:07 PM >>> > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Joe Regular > Sent: Wednesday, February 09, 2005 11:12 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Trends Not Working > > When trying to access the Trends section I get the following error. Has > anyone encountered this before? > > Server error! > The server encountered an internal error and was unable to complete > your request. > > Error message: > Premature end of script headers: trends.cgi > > If you think this is a server error, please contact the webmaster. > > Error 500 > 10.15.0.205 > Wed Feb 9 13:05:50 2005 > Apache/2.0.49 (Linux/SuSE) HTTP Error 500 is a generic error message when the web server can't figure out what the problem is. There will be more specific information in your apache error_log that should tell you what the problem is. If you can't decipher it, post the full error from the logs to the list as well as specifics about your environment. It's purely a guess but it may be that the gd libraries aren't in the default library path for your web server. -- Marc ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Mon Feb 14 20:43:42 2005 From: ae at op5.se (Andreas Ericsson) Date: Mon, 14 Feb 2005 20:43:42 +0100 Subject: Trends Not Working - Problem Solved In-Reply-To: References: Message-ID: <4210FF6E.1070102@op5.se> Joe Regular wrote: > After getting a hint from Marc Powell and Lionel Verscheur concerning > the gd libraries I noticed that in the Apache2 error log I was getting > errors concerning libgd.so.1.8. However, since I am using SUSE 9.1, I > didn't have a libgd.so.1.8 library, I had a libgd.so.2.0.0 library. To > solve the problem I simply created a symbolic link to libgd.so.2.0.0 > called libgd.so.1.8. Problem solved. > This link might vanish the next time you or a package you install runs ldconfig. > Thanks guys, > Joe > > >>>>"Marc Powell" 2005-02-09 1:51:07 PM >>> > > > >>-----Original Message----- >>From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- >>admin at lists.sourceforge.net] On Behalf Of Joe Regular >>Sent: Wednesday, February 09, 2005 11:12 AM >>To: nagios-users at lists.sourceforge.net >>Subject: [Nagios-users] Trends Not Working >> >>When trying to access the Trends section I get the following error. > > Has > >>anyone encountered this before? >> >>Server error! >>The server encountered an internal error and was unable to complete >>your request. >> >>Error message: >>Premature end of script headers: trends.cgi >> >>If you think this is a server error, please contact the webmaster. >> >>Error 500 >>10.15.0.205 >>Wed Feb 9 13:05:50 2005 >>Apache/2.0.49 (Linux/SuSE) > > > HTTP Error 500 is a generic error message when the web server can't > figure out what the problem is. There will be more specific > information > in your apache error_log that should tell you what the problem is. If > you can't decipher it, post the full error from the logs to the list > as > well as specifics about your environment. It's purely a guess but it > may > be that the gd libraries aren't in the default library path for your > web > server. > > -- > Marc > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real > users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From csmith at RadioFrameNetworks.com Mon Feb 14 21:48:30 2005 From: csmith at RadioFrameNetworks.com (Christopher Smith) Date: Mon, 14 Feb 2005 12:48:30 -0800 Subject: [Possible Spam] - Re: host down but up problem Message-ID: <4EE8236B66247849BD4E1B5383AF4F48021EB5@exchwaus01.redmond.radioframenetworks.com> Andreas, et al: Thank you for your assistance in this matter. The steps listed below provided the necessary link. While I was changing the permissions on the "/usr/lib/nagios/plugins/check_icmp," it also needed to be set at the "/usr/local/nagios/libexec/check_icmp" (or maybe that is where I should have been initially). Again, thank you. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Andreas Ericsson Sent: Saturday, February 12, 2005 2:52 AM To: nagios-users at lists.sourceforge.net Subject: Re: [Possible Spam] - Re: [Nagios-users] host down but up problem Christopher Smith wrote: > Okay, so I am having this problem with the Check_Icmp plugin. > > If I run the check_icmp as the default nagios user account, I receive > a status information message in Nagios stating that 'Root access > needed (for raw sockets)' is necessary. Yet, as stipulated by > another's post, it runs as root, no problem. I have verified that the > permissions (from > Linux) are set correctly. > > This is 1.4.x of the plugins running on SuSE 9.1 and Nagios 1.2. > > How does one get around this? > Nagios doesn't run it as root, so it needs to be setuid 0 to get access to raw sockets and send ICMP messages. The following commands should get it working for you. su - root chown root:root /usr/local/nagios/libexec/check_icmp chmod 4755 /usr/local/nagios/libexec/check_icmp su - nagios /usr/local/nagios/libexec/check_icmp -H localhost > > > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Andreas > Ericsson > Sent: Wednesday, February 09, 2005 7:38 AM > To: nagios-users at lists.sourceforge.net > Subject: [Possible Spam] - Re: [Nagios-users] host down but up problem > > Serveur-Faucon Surveillance wrote: > >>Hi all, >> >>I have been using Nagios for quite a while now over 2 years, so I am >>pretty familiar with it. >> >>One of my host recently went to a down state on the network status, >>but is actually UP. This is not FAQ F0015 or F0016 related, since the >>same command is used by all other hosts (and they are just fine). >> >>I use the check_host_alive default command to check on hosts status >>(yeah I know, I dont use the hip (new, cool) check_icmp from Andreas >>Ericsson for now. Later) >> > > > Don't know about hip and cool, but you're probably better off without > it. "Don't fix it if it ain't broken". > > >>So I went to my console to try a couple of things... ping myhost = ok! > > >>check_ping -H myhost etc etc = ok! (exactly like the >>check_host_alive) >> >>So... my next theory would be to erase everything from that host in >>the history, and start over. But before that, is there someone who >>actually had something like that? >> >>There was the bug witch two nagios process could run at the same time, > > >>but that's not it. Thanks! >> > > > This can happen properly when the host starts flapping while down and > comes out OK on the other end of the flapping. Assuming you aren't > running 2.0 with f among your notification_options, ofcourse. > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From aurbain at adeptra.com Mon Feb 14 22:06:55 2005 From: aurbain at adeptra.com (Aaron Urbain) Date: Mon, 14 Feb 2005 16:06:55 -0500 Subject: Nagios V2 Hostgroup escalations In-Reply-To: <4E88F6699E4BAE41B724A3EC3CC457D50147889F@abe-s-039.europe.shell.com> References: <4E88F6699E4BAE41B724A3EC3CC457D50147889F@abe-s-039.europe.shell.com> Message-ID: <421112EF.1010605@adeptra.com> same here, would be very good to have hostgroup service escalations, or better yet, host name and service name of * for all hosts and services. Garrett, Matt M SITI-ITISEEEE wrote: > Folks > > As I understand Hostgroup / Service escalations have now been removed. > > I am sure there must have been a good reason for this , but now need > to re-write *.cfg files. > > A small sample of the autogenerated nagios config file > > # Host abe-u-s00055 sun check host alive > define host{ > use generic-host > host_name abe-u-s00055 > alias abe_geoportal_apps_servers > address 134.What.ever > check_command check-host-alive > max_check_attempts 10 > notification_interval 7 > notification_period 24x7 > notification_options d,u,r > } > > #Serviceescalation definition abe-u-s00055 sun PING > define serviceescalation{ > host_name abe-u-s00055 > service_description PING > first_notification 2 > last_notification 2 > contact_groups sun-admins-escalation > notification_interval 0 > } > > #Service Definition abe-u-s00055 sun PING > define service{ > use generic-service > host_name abe-u-s00055 > service_description PING > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 1 > contact_groups sun-admins > notification_interval 7 > notification_period 24x7 > notification_options c,r > check_command check_newping > } > > > # List of which machines are part of Sun-Servers group > define hostgroup{ > hostgroup_name sun-servers > alias Sun Servers > contact_groups sun-admins > members abe-u-s00055 > > # Hostgroup 'sun-servers' escalation definition > define hostgroupescalation{ > hostgroup_name sun-servers > first_notification 2 > last_notification 2 > contact_groups sccalert-admins > notification_interval 0 > } > > > > Any idea , on how to re-write this under Nagios V2.X > > Thanks > > Matt > > > > > > Matthew Garrett > Linux / Unix Help Desk EP > Shell Information Technology International Limited > Seafield House, North Anderson Drive, Aberdeen AB15 6GZ, United Kingdom > > * Tel: * +44 (0)1224 81 7920 * Other Tel: * Internal 630 1506 > * Email: * > * Internet: * http://www.shell.com > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kmoogle at gmail.com Mon Feb 14 22:29:11 2005 From: kmoogle at gmail.com (kmoogle) Date: Mon, 14 Feb 2005 15:29:11 -0600 Subject: Compile issues on older system In-Reply-To: <20050213041307.02B3A130AE@sc8-sf-spam2.sourceforge.net> References: <20050213041307.02B3A130AE@sc8-sf-spam2.sourceforge.net> Message-ID: <5483568f050214132958eccfb0@mail.gmail.com> Things were looking great until.. cgi.o xstatusdata-cgi.o -lgd -lttf -lpng -ljpeg -lz -lm gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI -o histogram.cgi histogram.c getcgi.o cgiutils.o cgiauth.o objects-cgi.o xobjects-cgi.o statu sdata-cgi.o xstatusdata-cgi.o -lgd -lttf -lpng -ljpeg -lz -lm make[1]: Leaving directory `/opt/src/nagios-2.0b2/cgi' cd ./html && make make[1]: Entering directory `/opt/src/nagios-2.0b2/html' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/opt/src/nagios-2.0b2/html' cd ./module && make make[1]: Entering directory `/opt/src/nagios-2.0b2/module' gcc -g -O2 -DHAVE_CONFIG_H -o helloworld.o helloworld.c /usr/lib/crt1.o: In function `_start': /usr/lib/crt1.o(.text+0x18): undefined reference to `main' /tmp/ccJ6bUlv.o: In function `nebmodule_init': /opt/src/nagios-2.0b2/module/helloworld.c:45: undefined reference to `write_to_all_logs' /opt/src/nagios-2.0b2/module/helloworld.c:50: undefined reference to `write_to_all_logs' /opt/src/nagios-2.0b2/module/helloworld.c:55: undefined reference to `schedule_new_event' /tmp/ccJ6bUlv.o: In function `nebmodule_deinit': /opt/src/nagios-2.0b2/module/helloworld.c:68: undefined reference to `write_to_all_logs' /tmp/ccJ6bUlv.o: In function `reminder_message': /opt/src/nagios-2.0b2/module/helloworld.c:81: undefined reference to `write_to_all_logs' collect2: ld returned 1 exit status make[1]: *** [helloworld.o] Error 1 make[1]: Leaving directory `/opt/src/nagios-2.0b2/module' make: *** [all] Error 2 Not a huge deal. I'm going to upgrade the box soon anyway. If you have any suggestions, as always, they're appreciated. Take care. :) > Date: Sat, 12 Feb 2005 12:22:38 +0100 > From: Andreas Ericsson > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Compile issues on older system > > kmoogle wrote: > > I'm trying to compile nagios-2.0b2 on an older system (my apologies in > > advance) -- but have run into an issue. './configure' runs properly, > > but fails on the 'make'. It currently runs Nagios 1.2. > > > > Any assistance is appreciated. > > > > Thank you. > > > > ======> Specifics > > gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) > > GNU Make version 3.78.1 > > GNU ld version 2.9.5 (with BFD 2.9.5.0.22) > > ldd (GNU libc) 2.1.3 > > kernel 2.4.23 > > GNU C Library stable release version 2.1.3 > > > > ======> 'make all' output > > [nagios-2.0b2]# make all > > cd ./base && make > > make[1]: Entering directory `/opt/src/nagios-2.0b2/base' > > gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o broker.o broker.c > > In file included from ../include/nebmods.h:31, > > from broker.c:33: > > ../include/nebmodules.h:78: parse error before `lt_ptr' > > Install latest libtool with header files and such, or try ./configure > --disable-event-broker. It's enabled by default, but the libtool support > autodetection is a bit shoddy. > > There aren't that many modules to Nagios as of yet, so the usefulness of > the event broker is still pretty limited. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From m at rtij.nl Mon Feb 14 23:32:29 2005 From: m at rtij.nl (Martijn Lievaart) Date: Mon, 14 Feb 2005 23:32:29 +0100 Subject: nrpe check_disk In-Reply-To: <20050214162349.65788.qmail@web90109.mail.scd.yahoo.com> References: <20050214162349.65788.qmail@web90109.mail.scd.yahoo.com> Message-ID: <421126FD.7010503@rtij.nl> joe ritter wrote: >Hello, >I am usig nagios with check_nrpe to monitor remote >hosts running the nrpe daemon. I anm having difficulty >with the plugin check_disk. If I run the the command >by hand on the nagios hosts all is well: > > /usr/lib/nagios/plugins/check_nrpe -H 192.168.120.11 >-c check_disk -a 20% 10% /dev/cciss/c0d0p1 >DISK OK [67334 kB (71%) free on /dev/cciss/c0d0p1] > >If run the command on the remote hosts all look fine >as well: > > /usr/lib/nagios/plugins/check_disk -w 20% -c 10% >/dev/cciss/c0d0p1 >DISK OK [67334 kB (71%) free on /dev/cciss/c0d0p1] > > >However when the command is run by the nagios daemon >on the moniting host the I recieve the follwoing error >in the web interface: > >Warning threshold must be integer or percentage! > >Here are the relevant defines I have set up for this >plugin: > >nrpe.cfg on remote host: > >command[check_disk]=/usr/lib/nagios/plugins/check_disk > -w $ARG1$ -c $ARG2$ - >p $ARG3$ > > > You do have nrpe compiled with remote args? Otherwise it will not see the arguments. M4 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jvanas at jackofallgames.com Tue Feb 15 00:10:44 2005 From: jvanas at jackofallgames.com (Josh Van As) Date: Mon, 14 Feb 2005 18:10:44 -0500 Subject: Statusmap page errors Message-ID: When I go to the status map page I get this error: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, root at localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Here is the error in the httpd error_log: [Mon Feb 14 18:06:09 2005] [error] [client 10.10.22.11] Premature end of script headers: statusmap.cgi, referer: http://t2utlmon03.joag.com/nagios/side.html [Mon Feb 14 18:06:09 2005] [error] [client 10.10.22.11] /usr/local/nagios/sbin/statusmap.cgi: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory, referer: http://t2utlmon03.joag.com/nagios/side.html [Mon Feb 14 18:06:13 2005] [error] [client 10.10.22.11] Premature end of script headers: statusmap.cgi, referer: http://t2utlmon03.joag.com/nagios/side.html [Mon Feb 14 18:06:13 2005] [error] [client 10.10.22.11] /usr/local/nagios/sbin/statusmap.cgi: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory, referer: http://t2utlmon03.joag.com/nagios/side.html I am running: Red Hat Linux Enterprise V3. Nagios 2.0b2. Any ideas? TIA! Josh Van As ********************************************************************************************************************************************************************************************************************************** The information transmitted is intended only for the person to whom it is addressed and may be confidential and privileged and protected from disclosure. Any review, retransmission, dissemination or other use of, or taking any action in reliance upon, this information by persons or entities other than the intended recipients are prohibited. If you are not the intended recipient, please contact the sender and delete the material from any computer. ********************************************************************************************************************************************************************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From sghosh at sghosh.org Tue Feb 15 00:20:00 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Mon, 14 Feb 2005 18:20:00 -0500 (EST) Subject: Where are the $ARGn$ macros will come from?? In-Reply-To: <1433.202.90.128.21.1108398740.squirrel@mail.pregi.net> References: <1433.202.90.128.21.1108398740.squirrel@mail.pregi.net> Message-ID: On Mon, 14 Feb 2005 matato at pregi.net wrote: > Hi, > I'm a little bit confuse about where the $ARGn$ macros will come from. > for example, I have a service named squid and I used the check_tcp as its > checkcommand.the actual command_line is: > /usr/local/nagios/libexec/check_tcp -H $HOSTADDRESS$ -p $ARG1$ > Where $ARG1$ must be the port the service is listening on. In my case 3128. > > I know that the $HOSTADDRESS$ will automatically be the address of the > host the service belongs to, but how about the $ARG1$. How will I tell > nagios that, "hey, this number "3128" is the $ARG1$, this is the port you > should check for tcp connection". Is it included in any configuration > file? > Any idea?? thanks. > In the service definition's check command, all items demarcated by "!" (bang) following the command name are the ARGn macro values check_squid!3128 $ARG1$ == 3128 -- -sg ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Tue Feb 15 00:35:35 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Mon, 14 Feb 2005 18:35:35 -0500 (EST) Subject: Statusmap page errors In-Reply-To: References: Message-ID: On Mon, 14 Feb 2005, Josh Van As wrote: > When I go to the status map page I get this error: > > > Internal Server Error > > > The server encountered an internal error or misconfiguration and was > unable to complete your request. > > Please contact the server administrator, root at localhost and inform them > of the time the error occurred, and anything you might have done that > may have caused the error. > > More information about this error may be available in the server error > log. > > > > Here is the error in the httpd error_log: > > [Mon Feb 14 18:06:09 2005] [error] [client 10.10.22.11] Premature end of > script headers: statusmap.cgi, referer: > http://t2utlmon03.joag.com/nagios/side.html > > [Mon Feb 14 18:06:09 2005] [error] [client 10.10.22.11] > /usr/local/nagios/sbin/statusmap.cgi: error while loading shared > libraries: libgd.so.2: cannot open shared object file: No such file or > directory, referer: http://t2utlmon03.joag.com/nagios/side.html > > [Mon Feb 14 18:06:13 2005] [error] [client 10.10.22.11] Premature end of > script headers: statusmap.cgi, referer: > http://t2utlmon03.joag.com/nagios/side.html > > [Mon Feb 14 18:06:13 2005] [error] [client 10.10.22.11] > /usr/local/nagios/sbin/statusmap.cgi: error while loading shared > libraries: libgd.so.2: cannot open shared object file: No such file or > directory, referer: http://t2utlmon03.joag.com/nagios/side.html > > > > > > I am running: Red Hat Linux Enterprise V3. Nagios 2.0b2. > > RHEL3 ships with gd v1.8 so during compile time you must have specified gd v2 from a /usr/local other non-default install location. You need to add this lib path to /etc/ld.so.conf and run ldconfig -- -sg ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From csmith at RadioFrameNetworks.com Tue Feb 15 00:38:49 2005 From: csmith at RadioFrameNetworks.com (Christopher Smith) Date: Mon, 14 Feb 2005 15:38:49 -0800 Subject: Question regarding custom notifications Message-ID: <4EE8236B66247849BD4E1B5383AF4F48021EB9@exchwaus01.redmond.radioframenetworks.com> I lost the email thread from roughly 1 month, detailing the custom notifications. Is there a permanent link to this somewhere? Christopher M. Smith Systems Administrator RadioFrame Networks 1120 112th Avenue N.E., Suite 600 Bellevue, WA 98004 http://www.radioframenetworks.com O: 425.278.2661 F: 425.278.2861 M: 425.208.5198 csmith at radioframenetworks.com ........................................................................ .......... The only converged system designed to optimize in-building voice over cellular / PCS and WLANs Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sghosh at sghosh.org Tue Feb 15 00:47:47 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Mon, 14 Feb 2005 18:47:47 -0500 (EST) Subject: Question regarding custom notifications In-Reply-To: <4EE8236B66247849BD4E1B5383AF4F48021EB9@exchwaus01.redmond.radioframenetworks.com> References: <4EE8236B66247849BD4E1B5383AF4F48021EB9@exchwaus01.redmond.radioframenetworks.com> Message-ID: http://news.gmane.org/gmane.network.nagios.user On Mon, 14 Feb 2005, Christopher Smith wrote: > I lost the email thread from roughly 1 month, detailing the custom > notifications. Is there a permanent link to this somewhere? > > > Christopher M. Smith > Systems Administrator > RadioFrame Networks > 1120 112th Avenue N.E., Suite 600 > Bellevue, WA 98004 > http://www.radioframenetworks.com > > O: 425.278.2661 > F: 425.278.2861 > M: 425.208.5198 > csmith at radioframenetworks.com > -- ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From matato at pregi.net Tue Feb 15 09:48:28 2005 From: matato at pregi.net (matato at pregi.net) Date: Tue, 15 Feb 2005 08:48:28 -0000 (GMT) Subject: Do I really need to have an account for postgresql and mysql?? Message-ID: <3493.202.90.128.27.1108457308.squirrel@mail.pregi.net> Hi, We have servers running postgresql and mysql. The plugin requires username and password. Do I really need to ask for the password and username of the administrator of those database servers? Thank you very much. jay ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From s.shipway at auckland.ac.nz Tue Feb 15 02:30:55 2005 From: s.shipway at auckland.ac.nz (Steve Shipway) Date: Tue, 15 Feb 2005 14:30:55 +1300 Subject: check_ldaps problems with startTLS Message-ID: <011b01c512fd$fe7dcb90$01fea8c0@itss.auckland.ac.nz> I'm having problems in making check_ldap work with our SSL LDAP servers. I'm trying to do an authenticated bind, with TLS, but the TLS can never start. ./check_ldaps -H ecedir-01.ec -b ou=ec,o=uoa -D cn=yyyyyyyy,ou=webapps,ou=ec,o=uoa -P xxxxxx Could not init startTLS at port 389: Connect error This is nagios-plugins v1.4 with a slightly enhanced error output. I have softlinked check_ldaps->check_ldap as required. I can successfully perform an anonymous bind without SSL ./check_ldap -H ecedir-01.ec -b ou=ec,o=uoa LDAP OK - 0.282 seconds response time|time=0.281768s;;;0.000000 but out server does not permit authenticated binds unless you use SSL, and if you use SSL, then you must authenticate. ./check_ldap -H ecedir-01.ec -b o=uoa -D cn=yyyyyyyyy,ou=webapps,ou=ec,o=uoa -P xxxxxxx Could not bind to the ldap-server: Confidentiality required Now this would seem to indicate that the SSL is somehow screwed; however the OpenSSL is working fine for ssh and other applications. The compile of check_ldap was also done on this machine and the configure process went through cleanly. It's not a bad password; it doesn't get that far. It fails in the StartTLS, for which I (inconveniently) have no documentation. Does anyone have any ideas what the problem could be? Hopefully, I am merely doing something amazingly stupid which is easy to correct :) Thanks in advance, Steve --- Steve Shipway: ITSS, University of Auckland Email: s.shipway at auckland.ac.nz Web: http://www.steveshipway.org/ ** We can only discover new oceans when we have the ** ** courage to lose sight of the shore. ** -------------- next part -------------- A non-text attachment was scrubbed... Name: Steve Shipway.vcf Type: text/x-vcard Size: 154 bytes Desc: not available URL: From matato at pregi.net Tue Feb 15 10:38:56 2005 From: matato at pregi.net (matato at pregi.net) Date: Tue, 15 Feb 2005 09:38:56 -0000 (GMT) Subject: Question regarding services without plugins to check them Message-ID: <3770.202.90.128.27.1108460336.squirrel@mail.pregi.net> Hi, We have these servers running services that doesn't have any plugin associated with them(though i'm not so sure). Some of these services are: zebra ospf ospfd bgp bgpd netbios-ssn netview-aix-1 squid I did a google on squid however and learned from someone that he used check_tcp for it. Since these services runs on tcp, is it safe to assume that a tcp checking made by check_tcp will definitely prove that the service is running ok? If this is so, does it mean that check_tcp will work for any other services like ftp, smtp, pop etc.??? And one more thing, do I really need to have a database account for mysql and postgresql to be able to run the check_mysql and check_pgsql plugins?I've tried the one for pgsql because I have a database account and the plugin worked using the default template of postgresql as its data... I'm thinking perhaps I'm going to create a dummy template on each servers running mysql and postgresql and also dummy accounts to make the plugins work, but I guess that would be troublesome and I'm not so sure if the database administrators of those servers will allow me to do so.Any idea? Thanks. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From matato at pregi.net Tue Feb 15 10:41:43 2005 From: matato at pregi.net (matato at pregi.net) Date: Tue, 15 Feb 2005 09:41:43 -0000 (GMT) Subject: Question regarding services without plugins to check them Message-ID: <4253.202.90.128.27.1108460503.squirrel@mail.pregi.net> Hi, We have these servers running services that doesn't have any plugin associated with them(though i'm not so sure). Some of these services are: zebra ospf ospfd bgp bgpd netbios-ssn netview-aix-1 squid I did a google on squid however and learned from someone that he used check_tcp for it. Since these services runs on tcp, is it safe to assume that a tcp checking made by check_tcp will definitely prove that the service is running ok? If this is so, does it mean that check_tcp will work for any other services like ftp, smtp, pop etc.??? And one more thing, do I really need to have a database account for mysql and postgresql to be able to run the check_mysql and check_pgsql plugins?I've tried the one for pgsql because I have a database account and the plugin worked using the default template of postgresql as its data... I'm thinking perhaps I'm going to create a dummy template on each servers running mysql and postgresql and also dummy accounts to make the plugins work, but I guess that would be troublesome and I'm not so sure if the database administrators of those servers will allow me to do so.Any idea? Thanks. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 mm.quex.org Tue Feb 15 03:03:55 2005 From: nagios at mm.quex.org (nagios at mm.quex.org) Date: Tue, 15 Feb 2005 10:03:55 +0800 Subject: Question regarding services without plugins to check them In-Reply-To: <4253.202.90.128.27.1108460503.squirrel@mail.pregi.net> References: <4253.202.90.128.27.1108460503.squirrel@mail.pregi.net> Message-ID: <20050215020355.GA29431@quex.org> On Tue, Feb 15, 2005 at 09:41:43AM -0000, matato at pregi.net wrote: > I did a google on squid however and learned from someone that he used > check_tcp for it. Since these services runs on tcp, is it safe to > assume that a tcp checking made by check_tcp will definitely prove > that the service is running ok? No, a TCP connection check does not definitely prove that the service is running okay. If it's out of disc space or the upstream network is broken, a server may very well accept a connection but not be able to do anything useful with it. It is a reasonable indicator that the service is actually running on the host, however. > If this is so, does it mean that check_tcp will work for any other > services like ftp, smtp, pop etc.??? It isn't so, but you can use it to test if the service is running. Some of these do have specific plugins, or you can use the options of the check_tcp plugin to check for the expected "welcome banner" that FTP, SMTP, POP3, and many other services send when they receive a client connection. This will give you a better idea of whether the program providing the service is functioning, but many servers will still send a welcome banner even if they're unable to do their task; it's not until a client requests an action that it discovers it hasn't sufficient resources to carry it out. You need to decide how thoroughly you want to test services. For squid, you could send an HTTP request through it and make sure it's able to retrieve the page - but then, if the server you've picked as your testbed goes down, you'll get an error even though your proxy is actually functioning fine. For SMTP, you can even do a complete test - send the mail through one server, and make sure it's received at the final destination. This takes a bit more work, of course, but provides a better check than just "when I connect to port 25, does it say hello?". When deciding how thorough to make your tests, keep in mind that you'll probably need to write your own plugins for some of them (not that it's difficult, but can take some time), and also that you'll be increasing the load on your services. You might like to start with basic check_tcp type checks, and then get more elaborate for especially critical services. > And one more thing, do I really need to have a database account for > mysql and postgresql to be able to run the check_mysql and check_pgsql > plugins? Of course. These plugins log in to the database and check it's functioning correctly; exactly how they check it I'm not sure, but they do obviously require access to the database they're checking. You could use a check_tcp to ensure the port is open, but that doesn't check authentication is working, or that the drive the database is on hasn't failed and it's all completely broken (unless the database server exits/crashes when the media fails), etc. > I've tried the one for pgsql because I have a database account and the > plugin worked using the default template of postgresql as its data... > I'm thinking perhaps I'm going to create a dummy template on each > servers running mysql and postgresql and also dummy accounts to make > the plugins work, but I guess that would be troublesome and I'm not so > sure if the database administrators of those servers will allow me to > do so.Any idea? That's what you'll need to do, pretty much - though testing a dummy database won't tell you if the ones people actually need are broken. When creating the database accounts for the plugin, make sure they have the least required privileges possible. I'm not sure how the plugins work, but you may be able to get a stored procedure created that does the testing, and allow the account Nagios uses for the checks to run the stored procedure, but with no other access. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bugsweber at yahoo.com.sg Tue Feb 15 05:12:29 2005 From: bugsweber at yahoo.com.sg (bugs killa) Date: Tue, 15 Feb 2005 12:12:29 +0800 (CST) Subject: basic question again Message-ID: <20050215041229.69554.qmail@web41505.mail.yahoo.com> i'm about to try nagios to monitor my network could you tell me the list of package that i need to install nagios thanks advance and sorry for my bad english __________________________________________________ Do You Yahoo!? Download the latest ringtones, games, and more! http://sg.mobile.yahoo.com ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From g.vickers at qut.edu.au Tue Feb 15 06:05:55 2005 From: g.vickers at qut.edu.au (Greg Vickers) Date: Tue, 15 Feb 2005 15:05:55 +1000 Subject: Running Nagios 1.2 on RH EL3 Message-ID: <42118333.6080108@qut.edu.au> Hi all, Has anyone here run Nagios 1.2 (stable) on RH EL3? I'm trying to find the cause of the segfaults that Nagios is giving me... -- Greg Vickers Lab Monitor Project Manager Teaching and Learning Support Services Information Technology Services Queensland University of Technology email: g.vickers at qut.edu.au phone: (07) 3864 8276 mobile: 0416 001 674, SD #6 6147 CIROS code: 00213J ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dmourati at cm.math.uiuc.edu Tue Feb 15 06:40:20 2005 From: dmourati at cm.math.uiuc.edu (Demetri Mouratis) Date: Mon, 14 Feb 2005 23:40:20 -0600 (CST) Subject: Running Nagios 1.2 on RH EL3 In-Reply-To: <42118333.6080108@qut.edu.au> References: <42118333.6080108@qut.edu.au> Message-ID: On Tue, 15 Feb 2005, Greg Vickers wrote: > Hi all, > > Has anyone here run Nagios 1.2 (stable) on RH EL3? I'm trying to find > the cause of the segfaults that Nagios is giving me... I'm running the Nagios 1.2 binary provided by the Dag RPM here: http://dag.wieers.com/packages/nagios/nagios-1.1-6.rhel3.dag.i386.rpm I've had no problems with any of the RH kernels, 2.4.21-4 through 2.4.21-27. Tried strace? --------------------------------------------------------------------- Demetri Mouratis dmourati at linfactory.com ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From trevorwarren at gmail.com Tue Feb 15 07:33:56 2005 From: trevorwarren at gmail.com (Trevor Warren) Date: Tue, 15 Feb 2005 12:03:56 +0530 Subject: Running Nagios 1.2 on RH EL3 In-Reply-To: <42118333.6080108@qut.edu.au> References: <42118333.6080108@qut.edu.au> Message-ID: <559e3cb605021422334e0a3be6@mail.gmail.com> If your rpm -qa gives you "nagios-1.2-0.rhel3.dag" then yeh i have used it for quite sometime. Untill i migrated to 2 which i compiled from the source. Trevor On Tue, 15 Feb 2005 15:05:55 +1000, Greg Vickers wrote: > Hi all, > > Has anyone here run Nagios 1.2 (stable) on RH EL3? I'm trying to find > the cause of the segfaults that Nagios is giving me... > > -- > Greg Vickers > Lab Monitor Project Manager > Teaching and Learning Support Services > Information Technology Services > Queensland University of Technology > > email: g.vickers at qut.edu.au > phone: (07) 3864 8276 > mobile: 0416 001 674, SD #6 6147 > > CIROS code: 00213J > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- ___________________________________ ( >- / Scaling FreeSoftware & OpenSource \ -< ) /~\ / In the Enterprise \ /~\ | \) \ | www.fsf.org | www.opensource.org | / (/ | |_|_ \____________________________________/ _|_| ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From trevorwarren at gmail.com Tue Feb 15 07:35:09 2005 From: trevorwarren at gmail.com (Trevor Warren) Date: Tue, 15 Feb 2005 12:05:09 +0530 Subject: basic question again In-Reply-To: <20050215041229.69554.qmail@web41505.mail.yahoo.com> References: <20050215041229.69554.qmail@web41505.mail.yahoo.com> Message-ID: <559e3cb6050214223577c7a821@mail.gmail.com> The "Readme" and "Install" should help. Please RTFM and then revert back for any clarifcations you may have. Trevor On Tue, 15 Feb 2005 12:12:29 +0800 (CST), bugs killa wrote: > > i'm about to try nagios to monitor my network > could you tell me the list of package that i need to > install nagios > > thanks advance and sorry for my bad english > > __________________________________________________ > Do You Yahoo!? > Download the latest ringtones, games, and more! > http://sg.mobile.yahoo.com > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- ___________________________________ ( >- / Scaling FreeSoftware & OpenSource \ -< ) /~\ / In the Enterprise \ /~\ | \) \ | www.fsf.org | www.opensource.org | / (/ | |_|_ \____________________________________/ _|_| ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bugsweber at yahoo.com.sg Tue Feb 15 07:41:48 2005 From: bugsweber at yahoo.com.sg (bugs killa) Date: Tue, 15 Feb 2005 14:41:48 +0800 (CST) Subject: another basic question Message-ID: <20050215064148.74188.qmail@web41506.mail.yahoo.com> need help how to install nagios plugin why there are no docs about it thanks __________________________________________________ Do You Yahoo!? Download the latest ringtones, games, and more! http://sg.mobile.yahoo.com ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Feb 15 08:22:14 2005 From: ae at op5.se (Andreas Ericsson) Date: Tue, 15 Feb 2005 08:22:14 +0100 Subject: Nagios V2 Hostgroup escalations In-Reply-To: <421112EF.1010605@adeptra.com> References: <4E88F6699E4BAE41B724A3EC3CC457D50147889F@abe-s-039.europe.shell.com> <421112EF.1010605@adeptra.com> Message-ID: <4211A326.7060100@op5.se> Aaron Urbain wrote: > same here, > would be very good to have hostgroup service escalations, or better yet, > host name and service name of * for all hosts and services. > Hostgroup service escalations can be done. It's the service-name wildcarding that doesn't work if there are hosts in the group that has services the other hosts don't have. > > > Garrett, Matt M SITI-ITISEEEE wrote: > >> Folks >> >> As I understand Hostgroup / Service escalations have now been removed. >> >> I am sure there must have been a good reason for this , but now need >> to re-write *.cfg files. >> >> A small sample of the autogenerated nagios config file >> >> # Host abe-u-s00055 sun check host alive >> define host{ >> use generic-host >> host_name abe-u-s00055 >> alias abe_geoportal_apps_servers >> address 134.What.ever >> check_command check-host-alive >> max_check_attempts 10 >> notification_interval 7 >> notification_period 24x7 >> notification_options d,u,r >> } >> >> #Serviceescalation definition abe-u-s00055 sun PING >> define serviceescalation{ >> host_name abe-u-s00055 >> service_description PING >> first_notification 2 >> last_notification 2 >> contact_groups sun-admins-escalation >> notification_interval 0 >> } >> >> #Service Definition abe-u-s00055 sun PING >> define service{ >> use generic-service >> host_name abe-u-s00055 >> service_description PING >> is_volatile 0 >> check_period 24x7 >> max_check_attempts 3 >> normal_check_interval 5 >> retry_check_interval 1 >> contact_groups sun-admins >> notification_interval 7 >> notification_period 24x7 >> notification_options c,r >> check_command check_newping >> } >> >> >> # List of which machines are part of Sun-Servers group >> define hostgroup{ >> hostgroup_name sun-servers >> alias Sun Servers >> contact_groups sun-admins >> members abe-u-s00055 >> >> # Hostgroup 'sun-servers' escalation definition >> define hostgroupescalation{ >> hostgroup_name sun-servers >> first_notification 2 >> last_notification 2 >> contact_groups sccalert-admins >> notification_interval 0 >> } >> >> >> >> Any idea , on how to re-write this under Nagios V2.X >> >> Thanks >> >> Matt >> >> >> >> >> >> Matthew Garrett >> Linux / Unix Help Desk EP >> Shell Information Technology International Limited >> Seafield House, North Anderson Drive, Aberdeen AB15 6GZ, United Kingdom >> >> * Tel: * +44 (0)1224 81 7920 * Other Tel: * Internal 630 1506 >> * Email: * >> * Internet: * http://www.shell.com >> > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk > being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Feb 15 08:28:07 2005 From: ae at op5.se (Andreas Ericsson) Date: Tue, 15 Feb 2005 08:28:07 +0100 Subject: Compile issues on older system In-Reply-To: <5483568f050214132958eccfb0@mail.gmail.com> References: <20050213041307.02B3A130AE@sc8-sf-spam2.sourceforge.net> <5483568f050214132958eccfb0@mail.gmail.com> Message-ID: <4211A487.7090506@op5.se> kmoogle wrote: > Things were looking great until.. > > cgi.o xstatusdata-cgi.o -lgd -lttf -lpng -ljpeg -lz -lm > gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI -o histogram.cgi histogram.c > getcgi.o cgiutils.o cgiauth.o objects-cgi.o xobjects-cgi.o statu > sdata-cgi.o xstatusdata-cgi.o -lgd -lttf -lpng -ljpeg -lz -lm > make[1]: Leaving directory `/opt/src/nagios-2.0b2/cgi' > cd ./html && make > make[1]: Entering directory `/opt/src/nagios-2.0b2/html' > make[1]: Nothing to be done for `all'. > make[1]: Leaving directory `/opt/src/nagios-2.0b2/html' > cd ./module && make > make[1]: Entering directory `/opt/src/nagios-2.0b2/module' > gcc -g -O2 -DHAVE_CONFIG_H -o helloworld.o helloworld.c > /usr/lib/crt1.o: In function `_start': > /usr/lib/crt1.o(.text+0x18): undefined reference to `main' The module directory contains code that hooks up to an undocumented API in Nagios. To build modules, you need to compile with gcc -shared helloworld.c -o helloworld.so What you've found is a bug in the Makefile (should have -shared in LDFLAGS), but noone competent enough to use the module API cares since it's a trivial fix and the only reason for anyone to meddle with it is if they're writing their own module. Incidentally, the -shared flag tells GCC to add extra symbol tables for all exported symbols in the object, and not to worry about unresolved ones because they will be fixed when the code is loaded. > /tmp/ccJ6bUlv.o: In function `nebmodule_init': > /opt/src/nagios-2.0b2/module/helloworld.c:45: undefined reference to > `write_to_all_logs' > /opt/src/nagios-2.0b2/module/helloworld.c:50: undefined reference to > `write_to_all_logs' > /opt/src/nagios-2.0b2/module/helloworld.c:55: undefined reference to > `schedule_new_event' > /tmp/ccJ6bUlv.o: In function `nebmodule_deinit': > /opt/src/nagios-2.0b2/module/helloworld.c:68: undefined reference to > `write_to_all_logs' > /tmp/ccJ6bUlv.o: In function `reminder_message': > /opt/src/nagios-2.0b2/module/helloworld.c:81: undefined reference to > `write_to_all_logs' > collect2: ld returned 1 exit status > make[1]: *** [helloworld.o] Error 1 > make[1]: Leaving directory `/opt/src/nagios-2.0b2/module' > make: *** [all] Error 2 > > Not a huge deal. I'm going to upgrade the box soon anyway. If you have > any suggestions, as always, they're appreciated. > > Take care. :) > > >>Date: Sat, 12 Feb 2005 12:22:38 +0100 >>From: Andreas Ericsson >>To: nagios-users at lists.sourceforge.net >>Subject: Re: [Nagios-users] Compile issues on older system >> >>kmoogle wrote: >> >>>I'm trying to compile nagios-2.0b2 on an older system (my apologies in >>>advance) -- but have run into an issue. './configure' runs properly, >>>but fails on the 'make'. It currently runs Nagios 1.2. >>> >>>Any assistance is appreciated. >>> >>>Thank you. >>> >>>======> Specifics >>>gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) >>>GNU Make version 3.78.1 >>>GNU ld version 2.9.5 (with BFD 2.9.5.0.22) >>>ldd (GNU libc) 2.1.3 >>>kernel 2.4.23 >>>GNU C Library stable release version 2.1.3 >>> >>>======> 'make all' output >>>[nagios-2.0b2]# make all >>>cd ./base && make >>>make[1]: Entering directory `/opt/src/nagios-2.0b2/base' >>>gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o broker.o broker.c >>>In file included from ../include/nebmods.h:31, >>> from broker.c:33: >>>../include/nebmodules.h:78: parse error before `lt_ptr' >> >>Install latest libtool with header files and such, or try ./configure >>--disable-event-broker. It's enabled by default, but the libtool support >>autodetection is a bit shoddy. >> >>There aren't that many modules to Nagios as of yet, so the usefulness of >>the event broker is still pretty limited. > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Feb 15 08:47:58 2005 From: ae at op5.se (Andreas Ericsson) Date: Tue, 15 Feb 2005 08:47:58 +0100 Subject: another basic question In-Reply-To: <20050215064148.74188.qmail@web41506.mail.yahoo.com> References: <20050215064148.74188.qmail@web41506.mail.yahoo.com> Message-ID: <4211A92E.3080203@op5.se> bugs killa wrote: > need help > how to install nagios plugin > why there are no docs about it > http://nagiosplug.sourceforge.net RTAD and you're good to go. > thanks > > > __________________________________________________ > Do You Yahoo!? > Download the latest ringtones, games, and more! > http://sg.mobile.yahoo.com > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From vuhung16duong at yahoo.co.jp Tue Feb 15 11:53:37 2005 From: vuhung16duong at yahoo.co.jp (Bit Takeshi) Date: Tue, 15 Feb 2005 19:53:37 +0900 (JST) Subject: ps error when /etc/init.d/nagios start Message-ID: <20050215105337.65949.qmail@web2912.mail.bbt.yahoo.co.jp> Hello all, I think this is kinda FAQ but google didn't help me. I read the documentation but found nothing related "ps". Below are errors when I start nagios deamon and ouput of nagios with -v option. Any help is appreciated [root at ns1 analog]# /etc/init.d/nagios start Starting network monitor: nagios ps: error: List of process IDs must follow -p. usage: ps -[Unix98 options] ps [BSD-style options] ps --[GNU-style long options] ps --help for a command summary [root at ns1 analog]# [root at ns1 analog]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg Nagios 2.0b2 Copyright (c) 1999-2005 Ethan Galstad (www.nagios.org) Last Modified: 02-09-2005 License: GPL Reading configuration data... Running pre-flight check on configuration data... Checking services... Error: There are no services defined! Checked 0 services. Checking hosts... Error: There are no hosts defined! Checked 0 hosts. Checking host groups... Error: There are no host groups defined! Checked 0 host groups. Checking service groups... Checked 0 service groups. Checking contacts... Error: There are no contacts defined! Checked 0 contacts. Checking contact groups... Error: There are no contact groups defined! Checked 0 contact groups. Checking service escalations... Checked 0 service escalations. Checking service dependencies... Checked 0 service dependencies. Checking host escalations... Checked 0 host escalations. Checking host dependencies... Checked 0 host dependencies. Checking commands... Checked 16 commands. Checking time periods... Checked 0 time periods. Checking extended host info definitions... Checked 0 extended host info definitions. Checking extended service info definitions... Checked 0 extended service info definitions. Checking for circular paths between hosts... Checking for circular host and service dependencies... Checking global event handlers... Checking obsessive compulsive processor commands... Checking misc settings... Total Warnings: 0 Total Errors: 5 ***> One or more problems was encountered while running the pre-flight check... Check your configuration file(s) to ensure that they contain valid directives and data defintions. If you are upgrading from a previous version of Nagios, you should be aware that some variables/definitions may have been removed or modified in this version. Make sure to read the HTML documentation regarding the config files, as well as the 'Whats New' section to find out what has changed. [root at ns1 analog]# http://www.fedu.uec.ac.jp/~vuhung/ http://chuiyang.org __________________________________ Let's Celebrate Together! Yahoo! JAPAN http://pr.mail.yahoo.co.jp/so2005/ ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Tue Feb 15 12:36:40 2005 From: Werner.Flamme at ufz.de (Werner Flamme) Date: Tue, 15 Feb 2005 12:36:40 +0100 Subject: ps error when /etc/init.d/nagios start In-Reply-To: <20050215105337.65949.qmail@web2912.mail.bbt.yahoo.co.jp> References: <20050215105337.65949.qmail@web2912.mail.bbt.yahoo.co.jp> Message-ID: <4211DEC8.5060603@ufz.de> Bit Takeshi schrieb am 15.02.2005 11:53: > Hello all, Hi Bit, > I think this is kinda FAQ but google didn't help me. I read the > documentation but found nothing related "ps". Below are errors when I > start nagios deamon and ouput of nagios with -v option. > > Any help is appreciated > you seem not to be familiar with linux in any way... otherways you would know that ps tells you abot the process status. With "man ps" on the console (without the ") you get more info. > [root at ns1 analog]# /etc/init.d/nagios start Starting network monitor: > nagios ps: error: List of process IDs must follow -p. usage: ps -[Unix98 > options] ps [BSD-style options] ps --[GNU-style long options] ps --help > for a command summary [root at ns1 analog]# Or you may even try to enter ps --help, just as you are told... ;-) > > [root at ns1 analog]# /usr/local/nagios/bin/nagios -v > /usr/local/nagios/etc/nagios.cfg > > Nagios 2.0b2 Copyright (c) 1999-2005 Ethan Galstad (www.nagios.org) Last > Modified: 02-09-2005 License: GPL > > Reading configuration data... > > Running pre-flight check on configuration data... > > Checking services... Error: There are no services defined! Checked 0 > services. Checking hosts... Error: There are no hosts defined! Checked 0 > hosts. Checking host groups... Error: There are no host groups defined! > Checked 0 host groups. Checking service groups... Checked 0 service > groups. Checking contacts... Error: There are no contacts defined! > Checked 0 contacts. Checking contact groups... Error: There are no > contact groups defined! Checked 0 contact groups. Checking service > escalations... Checked 0 service escalations. Checking service > dependencies... Checked 0 service dependencies. Checking host > escalations... Checked 0 host escalations. Checking host dependencies... > Checked 0 host dependencies. Checking commands... Checked 16 commands. > Checking time periods... Checked 0 time periods. Checking extended host > info definitions... Checked 0 extended host info definitions. Checking > extended service info definitions... Checked 0 extended service info > definitions. Checking for circular paths between hosts... Checking for > circular host and service dependencies... Checking global event > handlers... Checking obsessive compulsive processor commands... Checking > misc settings... > > Total Warnings: 0 Total Errors: 5 > > ***> One or more problems was encountered while running the pre-flight > check... > > Check your configuration file(s) to ensure that they contain valid > directives and data defintions. If you are upgrading from a previous > version of Nagios, you should be aware that some variables/definitions > may have been removed or modified in this version. Make sure to read the > HTML documentation regarding the config files, as well as the 'Whats > New' section to find out what has changed. > > [root at ns1 analog]# Well, since you did not configure nagios (this is what nagios tells you here), nagios cannot start. So when you invoke the nagios start script nagios does not start and the pid file does not exist. This start script uses "ps -p $NagiosPID" to determine whether nagios runs or not. Since there is not $NagiosPID (nagios did not start because of the missing config) you get the error message you gave at the beginning. So, first configure nagios, then call "/usr/local/nagios/bin/nagios -v > /usr/local/nagios/etc/nagios.cfg" to see if the config is correct and only then you may "/etc/init.d/nagios start". BTW: did you "make install-config" after "make install"? > > > http://www.fedu.uec.ac.jp/~vuhung/ http://chuiyang.org > > __________________________________ Let's Celebrate Together! Yahoo! > JAPAN http://pr.mail.yahoo.co.jp/so2005/ > > > > ------------------------------------------------------- SF email is > sponsored by - The IT Product Guide Read honest & candid reviews on > hundreds of IT Products from real users. Discover which products truly > live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ Nagios-users mailing > list Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please > include Nagios version, plugin version (-v) and OS when reporting any > issue. ::: Messages without supporting info will risk being sent to > /dev/null > HTH, Werner -- Werner Flamme, Abt. WKDV UFZ Umweltforschungszentrum Leipzig-Halle GmbH, Permoserstr. 15, 04318 Leipzig - http://www.ufz.de eMail: werner.flamme at ufz.de, Tel.: (0341) 235-2500 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mime at forumsql.se Tue Feb 15 12:38:11 2005 From: mime at forumsql.se (Michael Medin) Date: Tue, 15 Feb 2005 12:38:11 +0100 Subject: =?iso-8859-1?Q?NSClient++_=28Early_=DFeta_release=29?= Message-ID: Hi, I just spent some time adding a project on source forge (http://sourceforge.net/projects/nscplus) for a program I wrote about a year ago. The program is a simple NSClient clone written in C++ for W32 (obviously). It has most of the feature of NSClient (at least I think so). Some of the features are untested and to put it plainly I haven't used the program nor NSClient for over a year and don't even recall exactly the status of things. But I promised I would release it as open source a few months back. Unfortunately the process took a bit more time than I thought but here it is. The main difference between NSClient and NSClient++ is; 1, It is modularized and has plug-in support 2, It is written in C++ and should (haven't really looked into it though) be fairly lightweight. It is also a straight W32 API application meaning it does not have any third party dependencies (apart from STLPort which is statically linked, and can be removed as MS STL works just as fine) like MFC etc. 3, It also features (though this is as of yet unsupported, as I haven't written any *nix client yet) a Windows EventLog Checker. 4, I think it should be compatible with most NT-base (as it uses threads, mutexes and such w9x might be off?) versions of Windows. (NSClient might have been this but I had a lot of problems with PDH library dependences). The modularization is in the form of DLLs that are loaded on start-up and have a pretty simple and straight forward API. Thus it should make it quite simple to write a module that does pretty much anything if there is any interest. (Also as modules are external they can be provided as third party extensions as well as toggled off to provide a minimalist resource footprint) Future plans are (if there is an interest): Modules for: * SSL (need to read up on the subject first). * Event log (already there but not finished). * Scripting support (would be I think simple to allow scripts to be written in some language and executed (much like Nagios). * Passive checking (is this really useful, haven't ever used it myself) But the big question is: is there any need for this? A year ago I wrote it because NSClient broke our exchange server. And a few weeks ago I refactored parts of it to support modules and wrote a module for the event log (because I wanted to check the windows event log). But I think that SNMP is much simpler and works better in mixed environments. So personally I don't really see much demand for a "NSClient:ish" plug-in but I don't really know. Secondly there is NC_net (which I personally am not to keen on as I dislike the whole .NET concept, but that's a passing issue). So is there an interest? Should I continue to write this (apart from the event log monitoring module that I need). I would like to get feedback on this so I know what to do about it, but regardless of that issue the program will become "production stable" and get an event log as that is what I need. As for when to expect anything from this project? As of now (well my SF skills broke everything) the project should (in extreme theory) be a drop in replacement for NSClient barring two (IIRC) features (I think it was file age and something more along those lines). But proc, service, mem, disk, uptime, version, etc is there. I will spend the next weekend and some spare time working on this (don't want to do to much of this during work hours as we have a tight schedule now, with a deploy of a few new servers) so perhaps Monday for a "production version" (expect bugs but should be stable). This includes the Event log plug-in (with a client). Something to test and feel it out will be available tonight (GMT+1). >From this point on it all depends on the interest and/or feedback from testers and ideas. BTW; I just noticed that the zip file on SF was broken (don't really know why) so you have to wait a few hours (we are talking something along the lines of 18:00-19:00 GMT when I get home) before you can try it. I also noticed that the CVS only had directories in it so Ill have to check about that too, my 1337 SourceForge skillz are not what they should be I suppose but this is pretty much the first time in years I post to SF :) Regards, Michael Medin Direkt: 08-410 052 42 Mobil: 0733-35 55 42 E-mail: michael.medin at altcom.se Internet: WWW.ALTCOM.SE ALTCOM AB SEGELB?TSV?GEN 2, 11264 STOCKHOLM TELEFON: 08-7 300 300 FAX: 08-7 300 305 EMAIL: INFO at ALTCOM.SE INTERNET: WWW.ALTCOM.SE This message contains information that may be privileged or confidential and is the property of the Altcom AB. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify me immediately and delete all copies of this message. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Stanley.Hopcroft at IPAustralia.Gov.AU Tue Feb 15 12:52:38 2005 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Tue, 15 Feb 2005 22:52:38 +1100 Subject: Nagios2 on FreeBSD 5.3 In-Reply-To: <20050210041151.2AC3BFC67@sc8-sf-spam2.sourceforge.net> References: <20050210041151.2AC3BFC67@sc8-sf-spam2.sourceforge.net> Message-ID: <20050215115236.GC242@IPAustralia.Gov.AU> Dear Sir, I am writing to thank you for your letter and say, On Wed, Feb 09, 2005 at 08:09:44PM -0800, nagios-users-request at lists.sourceforge.net wrote: > Message: 31 > Date: Thu, 10 Feb 2005 01:33:23 +0000 > From: Haze > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nagios2 on FreeBSD 5.3 > > Hello all, > I am looking at moving our Nagios 1.2 clusters to Nagios 2 and I am > asking if anyone has had any experience as to how well it works on > FreeBSD 5.3. > Unfortunately no (yet, maybe) but since the KSE feature is in '5, this is certainly worth trying. Thread support in '4 seems pretty average from this dumb users persepctive. It's only after going to a threaded Perl (5.8.5, built from ports), that I have witnessed the massive leak rate in embedded Perl Nagios that others have complained about. > In brief we have 1 logger/cgi server and 4 remote servers with 60, 80, > 500 and 2000 hosts. Total services across all the remote servers is > ~10000. The top heavy service to host ratio is due to 90% of the devices > being routers, where we check for all interfaces that at in an ifAdminUp > status (nagios conf population is done automatically) and all the env > stuff (about 5 on most routers). All done via Perl Net::SNMP and ofc > embedded Perl. Glad to hear that there are at least a few sites that make heavy use of what I consider a valuable feature (and wouldn't start Nagios without it). If you don't mind me asking, do you have a Net::SNMP process running as a monolithic (ie polling all your routers) poller in non-blocking mode and submitting passive service check results to Nagios ? Maybe not since it would be hard to synchronise the configs unless your poller was re-reading the Nag configs with perhaps Nagios::Config. You should be aware that the embedded Perl support in Nagios 2 _may_ have taken a step backward from that in 1.x. At least one large embedded Perl Nagios (ePN) site has reported a much greater leak rate (presumably with the same Perl and platform) after going to 2.x. Sites of your magnitude, as it stands, have no option but to monitor the size of the Nagios process (with check_procs/check_vsz) and restart Nagios if the memory usage is over threshold. Either that or disable Perl caching and take the performance hit. Testing is underway now to try and determine, by reversing the changes in ePN, whether this is caused by the ePN changes or something else in Nagios. If you choose, please keep the list (or me) informed of how you go. If the testing shows that there is a simple fix (by backing out ePN changes), you are welcome to try them. > > From the docs there looks like there is an issue with pthreads with > large setups, is this still so? > I think I have witnessed the occasional stagnant service check that I think is caused by this (FreeBSD 4.10-RELEASE). This too on a modest setup (200 hosts/300 active/50 passive). > Any other advice or pitfalls to avoid would be gratefully accepted. > > Thanks > > ------------------------------- > Haze > Synetrix PLC > ------------------------------- > Yours sincerely. -- Stanley Hopcroft IP Australia Ph: (02) 6283 3189 Fax: (02) 6281 1353 PO Box 200 Woden ACT 2606 http://www.ipaustralia.gov.au -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: disclaimer.txt URL: From scantos at technodiva.com Tue Feb 15 15:55:35 2005 From: scantos at technodiva.com (Sébastien Cantos) Date: Tue, 15 Feb 2005 15:55:35 +0100 Subject: Include file in conf file Message-ID: Hi, Is there a way to include a text file into another configuration text file ? (Like the #include in C). I've very big configuration files and I would like to split them. Regards, -- Sebastien Cantos Network / System Manager Neopost DIVA ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jfontain at free.fr Tue Feb 15 15:59:30 2005 From: jfontain at free.fr (jfontain at free.fr) Date: Tue, 15 Feb 2005 15:59:30 +0100 Subject: ANNOUNCE: moodss-19.6 Message-ID: <1108479570.42120e529e54f@imp4-q.free.fr> (I apologize for the intrusion, but I thought this might be of interest to all of you. Please post all comments, bug reports, ... about the new Nagios plugins support in moodss at the http://moodss.sourceforge.net/ site. Thanks!) ### CHANGES ### --- moodss 19.6 --- - added nagios module, which can use any plugin from the Nagios monitoring software, with automatically preset thresholds, extending the number of potential moodss modules to a total of about 100 in the process - in moodss GUI: - also allow minimum value (both fixed and dynamic as dropped from a data cell) in following viewers: graph, overlap bar and side bar charts viewers - for graphs and stacked graphs viewers: - added the ability to choose the plot background color and whether a grid is displayed, in preferences and in dashboard configuration - added grid entry in popup menu to allow grid setting per graph - in the lower right cell of displayed module data tables, the widget tip (balloon) would sometimes fail to display - prevent internal instance and formulas modules from being listed as loadable and loadable from command line - implemented FreeBSD compatibility for the following modules: cpustats, memstats, mounts, ps, psbyname and psbyuser (many thanks to Ira Lee for his support) - in all remote capable modules: - added -p port option for remote monitoring with ssh - made scripts used for remote monitoring compatible with sh Bourne shell, so that bash is no longer required - in all MySQL modules, fixed mysqlinfo bug that occured when mysqltcl library version 3 was used - in formulas documentation and help, last(), diff() and delta() documentation is also available in Japanese - in ps module, in command line column, "c" characters were wrongly stripped - in ps, psbyname and psbyuser modules, gracefully handle invalid remote data, such as generated by echo statements in a user's .profile, for example - in mounts modules, fixed remote monitoring for Linux (via rsh or ssh, bug introduced in 19.4 moodss release) - added Log sample Perl asynchronous module, using threads to monitor a log file - fixed standalone binary, which lacked tktable library ### README ### This is moodss (Modular Object Oriented Dynamic SpreadSheet) version 19.6 and moomps (Modular Object Oriented Multi-Purpose Service) version 4.5. For Unix Review, moodss is "a must-have application for today's network and systems administrators", and for Eric S. Raymond, in "The Art of UNIX Programming" book: "the code is polished, mature, and considered an exemplar in the Tcl community." Linux Magazine calls it a "lifesaver". Tucows gives it 5 stars (cows or penguins :-). Moodss is a modular application. It displays data described and updated in one or more modules, which can be specified in the command line or dynamically loaded or unloaded while the application is running. Data is originally displayed in tables. Graphical viewers (graph, bar, 3D pie charts, ...), summary tables (with current, average, minimum and maximum values), tables of mathematical formulas and free text viewers can be created from any number of table cells, originating from any of the displayed tables or viewers. The display area can be extended by adding pages with notebook tabs. Thresholds can be set on any number of cells. Moomps (shipped with moodss) is a monitoring daemon which works using configuration files created by moodss. Thresholds, when crossed, create messages in the system log, and eventually trigger the sending of email alert messages and the execution of user defined scripts. For both moodss and moomps, it is also possible to use a database as a storage mean, so that data history is recorder and later made available, for example, in presentations and graphs, via commonly available spreadsheet software. Specific modules can easily be developed in the Tcl, Perl and Python scripting languages or in C. A thorough and intuitive drag'n'drop scheme is used for most viewer editing tasks: creation, modification, type mutation, destruction, ... and thresholds creation. Table rows can be sorted in increasing or decreasing order by clicking on column titles. The current configuration (modules, tables and viewers geometry, ...) can be saved in a file at any time, and later loaded at the user's convenience, thus achieving a dashboard functionality. The module code is the link between the moodss core and the data to be displayed. All the specific code is kept in the module package. Since module data access is entirely customizable (through C code, Tcl, Perl, Python, HTTP, ...) and since several modules can be loaded at once, applications for moodss become limitless. Many modules are provided, such as a comprehensive set for Linux system monitoring, MySQL, network, SNMP, Nagios compatibility, Python and Perl modules examples. For example, thoroughly monitor a dynamic web server on a single dashboard with graphs, using the Apache, MySQL, ODBC, cpustats, memstats, ... modules. If you have replicated servers, dynamically add them to your view, even load the snmp module on the fly and let your imagination take over... There are currently about 100 usable modules for moodss (counting the Nagios plugins) Thorough help is provided through menus, widget tips, a message area, a module help window and a global help window with a complete HTML documentation. Moodss is multi-lingual thanks to Tcl internationalization capabilities. English, Japanese and French are supported. Help with other languages will be very warmly welcomed. Development of moodss is continuing and as more features are added in future versions, backward module code compatibility will be maintained. ### You may find it now at the following locations: http://download.sourceforge.net/moodss/moodss-19.6.tar.bz2 http://jfontain.free.fr/moodss-19.6.zip http://jfontain.free.fr/moodss-19.6.i386.tar.bz2 http://jfontain.free.fr/moodss-19.6-0.fdr.1.i386.rpm http://jfontain.free.fr/moodss-19.6-0.fdr.1.spec http://download.sourceforge.net/moodss/moomps-4.5.tar.bz2 http://jfontain.free.fr/moomps-4.5-0.fdr.1.noarch.rpm http://jfontain.free.fr/moomps-4.5-0.fdr.1.spec -- Jean-Luc Fontaine ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stephan.janosch at interface-business.de Tue Feb 15 16:03:51 2005 From: stephan.janosch at interface-business.de (Stephan Janosch) Date: Tue, 15 Feb 2005 16:03:51 +0100 Subject: Include file in conf file In-Reply-To: References: Message-ID: <42120F57.7060505@interface-business.de> ? Cantos wrote: > Hi, > > Is there a way to include a text file into another configuration text file ? > (Like the #include in C). I've very big configuration files and I would like > to split them. > With nagios version 2 you can include the content of a whole directory with one statement. withnagios version 1.x you can also include many files. you find the directive in nagios.cfg file. Stephan ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From scantos at technodiva.com Tue Feb 15 16:15:23 2005 From: scantos at technodiva.com (Sébastien Cantos) Date: Tue, 15 Feb 2005 16:15:23 +0100 Subject: Include file in conf file In-Reply-To: <42120F57.7060505@interface-business.de> References: <42120F57.7060505@interface-business.de> Message-ID: Ok good, thx for your answer. -- Sebastien Cantos Network / System Manager Neopost DIVA > -----Message d'origine----- > De : nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] De la part > de Stephan Janosch > Envoy? : mardi 15 f?vrier 2005 16:04 > ? : S?bastien Cantos > Cc : nagios-users at lists.sourceforge.net > Objet : Re: [Nagios-users] Include file in conf file > > ? Cantos wrote: > > Hi, > > > > Is there a way to include a text file into another > configuration text file ? > > (Like the #include in C). I've very big configuration files > and I would like > > to split them. > > > With nagios version 2 you can include the content of a whole > directory > with one statement. > > withnagios version 1.x you can also include many files. you find the > directive in nagios.cfg file. > > Stephan > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from > real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id396&op=ick > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From GWCOOK at mactec.com Tue Feb 15 16:17:17 2005 From: GWCOOK at mactec.com (Cook, Garry) Date: Tue, 15 Feb 2005 08:17:17 -0700 Subject: Include file in conf file Message-ID: <41FD7929498A174DAB86C45F28E0EC0D01198E8C@golden-m.mactec.com> nagios-users-admin at lists.sourceforge.net wrote: > Cantos wrote: >> Hi, >> >> Is there a way to include a text file into another configuration >> text file ? (Like the #include in C). I've very big configuration >> files and I would like to split them. >> > With nagios version 2 you can include the content of a whole directory > with one statement. > You can also do this with earlier versions. I use directory includes in 1.2. > withnagios version 1.x you can also include many files. you find the > directive in nagios.cfg file. > > Stephan Garry W. Cook, CCNA Network Infrastructure Manager MACTEC, Inc. - http://www.mactec.com/ 303.273.5050 (Office) - 720.220.1862 (Mobile) ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From psbourgeau at mpccorp.com Tue Feb 15 16:53:04 2005 From: psbourgeau at mpccorp.com (Paul Bourgeau) Date: Tue, 15 Feb 2005 08:53:04 -0700 Subject: Nagios and SQL databases Message-ID: <2638AB7E1672B842901B0B49421B87DF0C2581@mpc00email3.micronpc.com> Thanks for the info. I was able to install SQSH just fine and I can connect to the SQL server (and database). But now I am at a loss as to how to translate everything into Nagios. I am not exactly sure how to pull the Dbase values (size, users, etc...) in. Every time I try to set the check command I get the "Return code of 127" error. This is how my entry looks: # 'check_mssql_DBInfoSize' command definition define command{ command_name check_mssql_DBInfoSize command_line $USER1$/sqsh -H $HOSTADDRESS$ -U sa -P xxxxxxxxxx. -o .1.3.6.1.4.1.311.1.4.1.1.6.1.5 -l 'Database Info Size (KB)' } I have also tried: # 'check_mssql_DBInfoSize' command definition define command{ command_name check_mssql_DBInfoSize command_line $USER1$/check_mssql $HOSTADDRESS$ -o .1.3.6.1.4.1.311.1.4.1.1.6.1.5 -l 'Database Info Size (KB)' } I am fairly new to dealing with SQL and I am looking to see what the possibilities are for my customer. Any help would be appreciated. Thank You, Paul Bourgeau Ph: 262-523-3300 x60279 Fx: 208-898-2371 psbourgeau at mpccorp.com -----Original Message----- From: Hendrik "Boomer" Baecker [mailto:b00mer at gmx.net] Sent: Thursday, February 10, 2005 12:24 AM To: Paul Bourgeau Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Nagios and SQL databases Paul Bourgeau schrieb: >I tried to search, but I did not see anything dealing with exactlly what I needed. I know that you are able to monitor TCP ports, services and drive utilization, but I wanted to know how (if at all) to set up Nagios to monitor SQL databases themselves. I am currently watching the SQL server services (mssql), but that's it. > >Can you monitor each individual database(size of, activity, health, etc..)? > > Yes. There exist a Nagios Plugin called "check_mssql.sh" --> http://www.nagios.org/faqs/viewfaq.php?faq_id=156 >Can you monitor who accesses the databases, number of users? > > Long time ago since I've played with it but I think with a little bit of work you can do whatever you want with. Hope this helps. >I'm guessing that I just need to add entries to the checkcommand.cfg file with SQL OID's, right? Or is there a bit more to setup? > >I am running ver 1.2 on redhat 8 (2.4.18-19.8.0) Any help would be appreciated. > >Thanks, >Paul > >Disclaimer: 9/2/2005 > >MPC Computers is providing the following information in compliance with federal regulations: > >MPC Computers, LLC >906 E. Karcher Road >Nampa, Idaho 83687 >1-888-224-4247 >http://www.mpccorp.com > >To discontinue receiving e-mail communications from MPC in the future, please go to: >http://www.mpccorp.com/email/manage.html and follow the instructions. > > > > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_ide95&alloc_id396&op=click >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > > > > Disclaimer: 15/2/2005 MPC Computers is providing the following information in compliance with federal regulations: MPC Computers, LLC 906 E. Karcher Road Nampa, Idaho 83687 1-888-224-4247 http://www.mpccorp.com To discontinue receiving e-mail communications from MPC in the future, please go to: http://www.mpccorp.com/email/manage.html and follow the instructions. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From csmith at RadioFrameNetworks.com Tue Feb 15 17:23:12 2005 From: csmith at RadioFrameNetworks.com (Christopher Smith) Date: Tue, 15 Feb 2005 08:23:12 -0800 Subject: Ntray and HTTP Port redirection Message-ID: <4EE8236B66247849BD4E1B5383AF4F48021EC4@exchwaus01.redmond.radioframenetworks.com> Okay folks, you all have been very helpful. I was going to send this directly to Robert Wagner, but I figured that I would share the fun. My network analyst and I have been using Nagios for about 1 year. We have tweaked and extended in in several directions, the latest iteration involving the new Treo 650 from Cingular. We have altered the web port from port 80 to some alternate port to deter would-be hackers. All works well: we can access the web page from the Handheld devices, etc. The problem is this: on our desktops, we use the new and improved NTray utility (a far cry from the original, thanks). However, with the new port change, the Ntray does not like it. I have tried adding the address to the URL line (http://:/nagios/), but to no avail. Any thoughts? Christopher M. Smith Systems Administrator RadioFrame Networks 1120 112th Avenue N.E., Suite 600 Bellevue, WA 98004 http://www.radioframenetworks.com O: 425.278.2661 F: 425.278.2861 M: 425.208.5198 csmith at radioframenetworks.com ........................................................................ .......... The only converged system designed to optimize in-building voice over cellular / PCS and WLANs Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From DWilmot at tngus.com Tue Feb 15 17:53:14 2005 From: DWilmot at tngus.com (Wilmot, Doug) Date: Tue, 15 Feb 2005 11:53:14 -0500 Subject: Notification issues Message-ID: <7FED619E7720714C957E9CA14231C5263C487B@crn-mail02.tngus.com> Hello, My company is currently running Nagios 1.2 and we seem to be having some notification problems. One of the most frequent problems is a host down alert "plug-in timed out after 10 seconds". Then Nagios sends an email alert which is becoming very redundant and making us almost "immune" to these alerts. Meanwhile, we have a second build of Nagios version 2.x running on a separate node which we are "building from scratch". Our goal is to have an alert sent to our helpdesk app (via email) to open a ticket if a host is down for 5 or more minutes, then another when the host is back up. We are currently using check_ping for monitoring but I have heard some people use check_icmp. Which one would be better for us and what are the differences? Should we be using escalations to achieve this 5 minute delay? We have tried the rtfm approach and quite frankly I feel like I am spinning wheels here. Any help is greatly appreciated. Thanks Doug Wilmot -------------- next part -------------- An HTML attachment was scrubbed... URL: From sghosh at sghosh.org Tue Feb 15 18:41:28 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 15 Feb 2005 12:41:28 -0500 (EST) Subject: Notification issues In-Reply-To: <7FED619E7720714C957E9CA14231C5263C487B@crn-mail02.tngus.com> References: <7FED619E7720714C957E9CA14231C5263C487B@crn-mail02.tngus.com> Message-ID: On Tue, 15 Feb 2005, Wilmot, Doug wrote: > Hello, > My company is currently running Nagios 1.2 and we seem to be > having some notification problems. One of the most frequent problems is a > host down alert "plug-in timed out after 10 seconds". Then Nagios sends an > email alert which is becoming very redundant and making us almost "immune" > to these alerts. Meanwhile, we have a second build of Nagios version 2.x > running on a separate node which we are "building from scratch". > > Our goal is to have an alert sent to our helpdesk app (via email) to open a > ticket if a host is down for 5 or more minutes, then another when the host > is back up. We are currently using check_ping for monitoring but I have > heard some people use check_icmp. Which one would be better for us and what > are the differences? Should we be using escalations to achieve this 5 > minute delay? We have tried the rtfm approach and quite frankly I feel like > I am spinning wheels here. Any help is greatly appreciated. > You should probably look at why the plugin is timing out. Nagios expects plugins to return with a value within the values defined under "timeout" in nagios.cfg. The defaults are usually 60 seconds for services and 30 seconds for hosts. For a host check to occur, you must have had service check failures as well. Usually a host check can be performed with a single ping - either check_ping or check_fping or check_icmp will work. However you need to make sure the command definitions is not sending out more packets than necessasry and that the timeout for packet expiry is less than the plugin timeout. For the 5-min delay, you can approximate that 5 check repetitions with a 1 min interval before notification. However, this will block the scheduling queue if you have a large number of hosts and services. You are better off, defining a service notification for the host that mimics host down and limiting the repetition of host checks. -- -sg ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Tue Feb 15 19:01:56 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 15 Feb 2005 13:01:56 -0500 (EST) Subject: error in nagios.cmd for update In-Reply-To: <00e301c51074$95ca21b0$1900a8c0@new.com.br> References: <420CF1F6.1020208@Examen.com> <00cf01c51072$56eaed00$1900a8c0@new.com.br> <00e301c51074$95ca21b0$1900a8c0@new.com.br> Message-ID: did you restart the webserver after adding it to the group? On Fri, 11 Feb 2005, Christian Souza wrote: > Yes. > > look: > > #more /etc/group > .... > nagios:x:503:nagios,apache > > > > ----- Original Message ----- > From: "Subhendu Ghosh" > To: "Christian Souza" > Cc: > Sent: Friday, February 11, 2005 3:53 PM > Subject: Re: [Nagios-users] error in nagios.cmd for update > > >> On Fri, 11 Feb 2005, Christian Souza wrote: >> >>> I have been searching anything about this error, but i can't found. >>> >>> When I tried do add a new coment for a service (as exemple), i receive > the >>> follow: >>> >>> >>> 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. >>> >>> >>> was verified the configuration, bellow: >>> >>> #more nagios.cfg |grep check_ext >>> check_external_commands=1 >>> >>> >>> #ls -l /usr/local/nagios/var >>> drwxrwxr-x 2 nagios nagios 4096 Feb 11 00:00 archives >>> -rw-rw-r-- 1 nagios nagios 0 Feb 11 12:59 comment.log >>> -rw-rw-r-- 1 nagios nagios 0 Feb 11 12:59 downtime.log >>> -rw-r--r-- 1 root root 5 Feb 11 12:59 nagios.lock >>> -rw-r--r-- 1 nagios nagios 33512 Feb 11 16:51 nagios.log >>> drwxrwsr-x 2 nagios nagios 4096 Feb 11 12:59 rw >>> -rw-rw-r-- 1 nagios nagios 13248 Feb 11 16:52 status.log >>> -rw-r--r-- 1 nagios nagios 9924 Feb 11 15:59 status.sav >>> >>> >> >> Is the web server a member of the "nagios" group? otherwise it does not >> have write perms >> >> >> -- >> -sg >> >> >> ------------------------------------------------------- >> SF email is sponsored by - The IT Product Guide >> Read honest & candid reviews on hundreds of IT Products from real users. >> Discover which products truly live up to the hype. Start reading now. >> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From strombrg at dcs.nac.uci.edu Tue Feb 15 19:13:29 2005 From: strombrg at dcs.nac.uci.edu (Dan Stromberg) Date: Tue, 15 Feb 2005 10:13:29 -0800 Subject: Running Nagios 1.2 on RH EL3 In-Reply-To: <42118333.6080108@qut.edu.au> References: <42118333.6080108@qut.edu.au> Message-ID: <1108491209.26432.258.camel@seki.nac.uci.edu> We run nagios 1.2 stably on RHEL3 here. I compiled the binaries myself. Biggest problem was getting check_ping to work. :) We also use a python script that generates nagios' config files from a sybase database describing our clients. You might try strace'ing your nagios process (or plugins?) to see what's causing the segfaults. If you're not accustomed to interpreting such things, you could probably put the results on the web and send the URL to the list. On Tue, 2005-02-15 at 15:05 +1000, Greg Vickers wrote: > Hi all, > > Has anyone here run Nagios 1.2 (stable) on RH EL3? I'm trying to find > the cause of the segfaults that Nagios is giving me... > -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From chrsouza at ig.com.br Tue Feb 15 20:14:23 2005 From: chrsouza at ig.com.br (Christian Souza) Date: Tue, 15 Feb 2005 16:14:23 -0300 Subject: error in nagios.cmd for update References: <420CF1F6.1020208@Examen.com> <00cf01c51072$56eaed00$1900a8c0@new.com.br> <00e301c51074$95ca21b0$1900a8c0@new.com.br> Message-ID: <001801c51392$90aae900$1900a8c0@new.com.br> no.. this was my error, fixed after I restart the webserver. thx ----- Original Message ----- From: "Subhendu Ghosh" To: "Christian Souza" Cc: Sent: Tuesday, February 15, 2005 3:01 PM Subject: Re: [Nagios-users] error in nagios.cmd for update > did you restart the webserver after adding it to the group? > > On Fri, 11 Feb 2005, Christian Souza wrote: > > > Yes. > > > > look: > > > > #more /etc/group > > .... > > nagios:x:503:nagios,apache > > > > > > > > ----- Original Message ----- > > From: "Subhendu Ghosh" > > To: "Christian Souza" > > Cc: > > Sent: Friday, February 11, 2005 3:53 PM > > Subject: Re: [Nagios-users] error in nagios.cmd for update > > > > > >> On Fri, 11 Feb 2005, Christian Souza wrote: > >> > >>> I have been searching anything about this error, but i can't found. > >>> > >>> When I tried do add a new coment for a service (as exemple), i receive > > the > >>> follow: > >>> > >>> > >>> 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. > >>> > >>> > >>> was verified the configuration, bellow: > >>> > >>> #more nagios.cfg |grep check_ext > >>> check_external_commands=1 > >>> > >>> > >>> #ls -l /usr/local/nagios/var > >>> drwxrwxr-x 2 nagios nagios 4096 Feb 11 00:00 archives > >>> -rw-rw-r-- 1 nagios nagios 0 Feb 11 12:59 comment.log > >>> -rw-rw-r-- 1 nagios nagios 0 Feb 11 12:59 downtime.log > >>> -rw-r--r-- 1 root root 5 Feb 11 12:59 nagios.lock > >>> -rw-r--r-- 1 nagios nagios 33512 Feb 11 16:51 nagios.log > >>> drwxrwsr-x 2 nagios nagios 4096 Feb 11 12:59 rw > >>> -rw-rw-r-- 1 nagios nagios 13248 Feb 11 16:52 status.log > >>> -rw-r--r-- 1 nagios nagios 9924 Feb 11 15:59 status.sav > >>> > >>> > >> > >> Is the web server a member of the "nagios" group? otherwise it does not > >> have write perms > >> > >> > >> -- > >> -sg > >> > >> > >> ------------------------------------------------------- > >> SF email is sponsored by - The IT Product Guide > >> Read honest & candid reviews on hundreds of IT Products from real users. > >> Discover which products truly live up to the hype. Start reading now. > >> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > >> _______________________________________________ > >> Nagios-users mailing list > >> Nagios-users at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/nagios-users > >> ::: Please include Nagios version, plugin version (-v) and OS when > > reporting any issue. > >> ::: Messages without supporting info will risk being sent to /dev/null > >> > > > > > > > > ------------------------------------------------------- > > SF email is sponsored by - The IT Product Guide > > Read honest & candid reviews on hundreds of IT Products from real users. > > Discover which products truly live up to the hype. Start reading now. > > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > -- > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From billwinkles at lucent.com Tue Feb 15 23:30:41 2005 From: billwinkles at lucent.com (Winkles, William (Bill)) Date: Tue, 15 Feb 2005 15:30:41 -0700 Subject: Activating nagios 1.2 in NagMIN Message-ID: <0DB72ED9B906754EB93DA5D814E66F320BB6FD9D@co7010exch004u.milehi.lucent.com> Can anyone shed some light on the nagios init.d scripts? I'm running Nagios 1.2 on Solaris 9 with WebMin. Anytime I call the nagios init.d script within WebMIN, it fails with: Running configuration check...failed - aborting restart. If I run the same command from the command line, it works fine. I think it is just a permissions issue, but not sure. Can anyone offer any pointers? Thanks. Bill -------------- next part -------------- An HTML attachment was scrubbed... URL: From g.vickers at qut.edu.au Wed Feb 16 00:19:33 2005 From: g.vickers at qut.edu.au (Greg Vickers) Date: Wed, 16 Feb 2005 09:19:33 +1000 Subject: Running Nagios 1.2 on RH EL3 In-Reply-To: <1108491209.26432.258.camel@seki.nac.uci.edu> References: <42118333.6080108@qut.edu.au> <1108491209.26432.258.camel@seki.nac.uci.edu> Message-ID: <42128385.4090002@qut.edu.au> OK now I'm confuzzled - I started the server last night before I left work and did not access the web site - I attached gdb to the PID and left it. This morning the process is still running but the log file has not been written to since yesterday afternoon when I started the process. Argh! I did do a strace of the program yesterday, it is available here: https://fileshare.qut.edu.au/public/vickersg/nagios.strace.tar.gz I'm going to look at permissions of cgi's and quadrouple check that the variables in /etc/init.d/nagios match the variables in nagios.cfg... I'm tearing my hair out here! Thanks, Greg Dan Stromberg wrote: > We run nagios 1.2 stably on RHEL3 here. I compiled the binaries myself. > Biggest problem was getting check_ping to work. :) We also use a > python script that generates nagios' config files from a sybase database > describing our clients. > > You might try strace'ing your nagios process (or plugins?) to see what's > causing the segfaults. If you're not accustomed to interpreting such > things, you could probably put the results on the web and send the URL > to the list. > > On Tue, 2005-02-15 at 15:05 +1000, Greg Vickers wrote: > >>Hi all, >> >>Has anyone here run Nagios 1.2 (stable) on RH EL3? I'm trying to find >>the cause of the segfaults that Nagios is giving me... >> -- Greg Vickers Lab Monitor Project Manager Teaching and Learning Support Services Information Technology Services Queensland University of Technology email: g.vickers at qut.edu.au phone: (07) 3864 8276 mobile: 0416 001 674, SD #6 6147 CIROS code: 00213J ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From g.vickers at qut.edu.au Wed Feb 16 03:20:54 2005 From: g.vickers at qut.edu.au (Greg Vickers) Date: Wed, 16 Feb 2005 12:20:54 +1000 Subject: Running Nagios 1.2 on RH EL3 In-Reply-To: <42118333.6080108@qut.edu.au> References: <42118333.6080108@qut.edu.au> Message-ID: <4212AE06.3000501@qut.edu.au> Well I've removed all of the stuff I compiled and tried the rpm packages of Nagios 1.2 and plugins 1.3.1. The same thing is happening! Nagios is crashing when a plugin is executed, I just started Nagios and had top running when the first service check is executed. Viola the Nagios process goes away just after Nagios tries to run a plugin! This is repeatable and happens every time. I have done a 'su nagios' and run the plugin from the command line and this works! The permissions of the plugins look ok: -rwxrwxr-x 1 root root 20065 Jul 11 2003 check_load Am I missing something obvious here? Thanks, Greg Greg Vickers wrote: > Hi all, > > Has anyone here run Nagios 1.2 (stable) on RH EL3? I'm trying to find > the cause of the segfaults that Nagios is giving me... > -- Greg Vickers Lab Monitor Project Manager Teaching and Learning Support Services Information Technology Services Queensland University of Technology email: g.vickers at qut.edu.au phone: (07) 3864 8276 mobile: 0416 001 674, SD #6 6147 CIROS code: 00213J ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From g.vickers at qut.edu.au Wed Feb 16 04:14:11 2005 From: g.vickers at qut.edu.au (Greg Vickers) Date: Wed, 16 Feb 2005 13:14:11 +1000 Subject: Running Nagios 1.2 on RH EL3 In-Reply-To: <4212AE06.3000501@qut.edu.au> References: <42118333.6080108@qut.edu.au> <4212AE06.3000501@qut.edu.au> Message-ID: <4212BA83.1070907@qut.edu.au> I've removed all active checks and have run nagios with time: # time nagios nagios.cfg and it fails at the two minute twenty four second mark every time! Greg Vickers wrote: > Well I've removed all of the stuff I compiled and tried the rpm packages > of Nagios 1.2 and plugins 1.3.1. The same thing is happening! > > Nagios is crashing when a plugin is executed, I just started Nagios and > had top running when the first service check is executed. Viola the > Nagios process goes away just after Nagios tries to run a plugin! This > is repeatable and happens every time. > > I have done a 'su nagios' and run the plugin from the command line and > this works! The permissions of the plugins look ok: > -rwxrwxr-x 1 root root 20065 Jul 11 2003 check_load > > Am I missing something obvious here? > > Thanks, > Greg > > Greg Vickers wrote: > >> Hi all, >> >> Has anyone here run Nagios 1.2 (stable) on RH EL3? I'm trying to find >> the cause of the segfaults that Nagios is giving me... >> > -- Greg Vickers Lab Monitor Project Manager Teaching and Learning Support Services Information Technology Services Queensland University of Technology email: g.vickers at qut.edu.au phone: (07) 3864 8276 mobile: 0416 001 674, SD #6 6147 CIROS code: 00213J ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From g.vickers at qut.edu.au Wed Feb 16 04:37:33 2005 From: g.vickers at qut.edu.au (Greg Vickers) Date: Wed, 16 Feb 2005 13:37:33 +1000 Subject: Nagios SIGSEGV problem Message-ID: <4212BFFD.8020309@qut.edu.au> Hi all, (Started a new thread) I'm running Nagios 1.2 and plugins 1.3.1 on RH EL3 and Nagios is throwing up SIGSEGV faults two minutes and twenty four second after it starts. (ran Nagios with 'time') I ran gdb on Nagios and got the attached output. I think the relevant stuff is at the end: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1218551680 (LWP 13742)] 0x00c4e722 in strncpy () from /lib/tls/libc.so.6 (gdb) c Continuing. Program received signal SIGSEGV, Segmentation fault. 0x00c4e722 in strncpy () from /lib/tls/libc.so.6 (gdb) c Continuing. Program exited with code 0376. Does anyone have any ideas about what is wrong? Thanks, -- Greg Vickers Lab Monitor Project Manager Teaching and Learning Support Services Information Technology Services Queensland University of Technology email: g.vickers at qut.edu.au phone: (07) 3864 8276 mobile: 0416 001 674, SD #6 6147 CIROS code: 00213J -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: gdb.nagios.txt URL: From trevorwarren at gmail.com Wed Feb 16 04:41:03 2005 From: trevorwarren at gmail.com (Trevor Warren) Date: Wed, 16 Feb 2005 09:11:03 +0530 Subject: Running Nagios 1.2 on RH EL3 In-Reply-To: <4212BA83.1070907@qut.edu.au> References: <42118333.6080108@qut.edu.au> <4212AE06.3000501@qut.edu.au> <4212BA83.1070907@qut.edu.au> Message-ID: <559e3cb605021519412662e187@mail.gmail.com> Can i make you a simple suggestions dear. Please have nagios compiled from source on the box. Compile the plugins too and try out some extensive tests with various plugins and drop us an email about the results. Trevor On Wed, 16 Feb 2005 13:14:11 +1000, Greg Vickers wrote: > I've removed all active checks and have run nagios with time: > # time nagios nagios.cfg > and it fails at the two minute twenty four second mark every time! > > Greg Vickers wrote: > > Well I've removed all of the stuff I compiled and tried the rpm packages > > of Nagios 1.2 and plugins 1.3.1. The same thing is happening! > > > > Nagios is crashing when a plugin is executed, I just started Nagios and > > had top running when the first service check is executed. Viola the > > Nagios process goes away just after Nagios tries to run a plugin! This > > is repeatable and happens every time. > > > > I have done a 'su nagios' and run the plugin from the command line and > > this works! The permissions of the plugins look ok: > > -rwxrwxr-x 1 root root 20065 Jul 11 2003 check_load > > > > Am I missing something obvious here? > > > > Thanks, > > Greg > > > > Greg Vickers wrote: > > > >> Hi all, > >> > >> Has anyone here run Nagios 1.2 (stable) on RH EL3? I'm trying to find > >> the cause of the segfaults that Nagios is giving me... > >> > > > > -- > Greg Vickers > Lab Monitor Project Manager > Teaching and Learning Support Services > Information Technology Services > Queensland University of Technology > > email: g.vickers at qut.edu.au > phone: (07) 3864 8276 > mobile: 0416 001 674, SD #6 6147 > > CIROS code: 00213J > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- ___________________________________ ( >- / Scaling FreeSoftware & OpenSource \ -< ) /~\ / In the Enterprise \ /~\ | \) \ | www.fsf.org | www.opensource.org | / (/ | |_|_ \____________________________________/ _|_| ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From g.vickers at qut.edu.au Wed Feb 16 04:55:07 2005 From: g.vickers at qut.edu.au (Greg Vickers) Date: Wed, 16 Feb 2005 13:55:07 +1000 Subject: Running Nagios 1.2 on RH EL3 In-Reply-To: <559e3cb605021519412662e187@mail.gmail.com> References: <42118333.6080108@qut.edu.au> <4212AE06.3000501@qut.edu.au> <4212BA83.1070907@qut.edu.au> <559e3cb605021519412662e187@mail.gmail.com> Message-ID: <4212C41B.5040808@qut.edu.au> I've seen the same behavior using binaries compiled from source and from rpm packages. I've removed the use of any plugins (as well as check_nagios in cgi.cfg) and Nagios still fails at the same point. Thanks, Greg Trevor Warren wrote: > Can i make you a simple suggestions dear. Please have nagios compiled > from source on the box. Compile the plugins too and try out some > extensive tests with various plugins and drop us an email about the > results. > > Trevor > > > On Wed, 16 Feb 2005 13:14:11 +1000, Greg Vickers wrote: > >>I've removed all active checks and have run nagios with time: >># time nagios nagios.cfg >>and it fails at the two minute twenty four second mark every time! >> >>Greg Vickers wrote: >> >>>Well I've removed all of the stuff I compiled and tried the rpm packages >>>of Nagios 1.2 and plugins 1.3.1. The same thing is happening! >>> >>>Nagios is crashing when a plugin is executed, I just started Nagios and >>>had top running when the first service check is executed. Viola the >>>Nagios process goes away just after Nagios tries to run a plugin! This >>>is repeatable and happens every time. >>> >>>I have done a 'su nagios' and run the plugin from the command line and >>>this works! The permissions of the plugins look ok: >>>-rwxrwxr-x 1 root root 20065 Jul 11 2003 check_load >>> >>>Am I missing something obvious here? >>> >>>Thanks, >>>Greg >>> >>>Greg Vickers wrote: >>> >>> >>>>Hi all, >>>> >>>>Has anyone here run Nagios 1.2 (stable) on RH EL3? I'm trying to find >>>>the cause of the segfaults that Nagios is giving me... >>>> >>> >>-- >>Greg Vickers >>Lab Monitor Project Manager >>Teaching and Learning Support Services >>Information Technology Services >>Queensland University of Technology >> >>email: g.vickers at qut.edu.au >>phone: (07) 3864 8276 >>mobile: 0416 001 674, SD #6 6147 >> >>CIROS code: 00213J >> >>------------------------------------------------------- >>SF email is sponsored by - The IT Product Guide >>Read honest & candid reviews on hundreds of IT Products from real users. >>Discover which products truly live up to the hype. Start reading now. >>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >>::: Messages without supporting info will risk being sent to /dev/null >> > > > -- Greg Vickers Lab Monitor Project Manager Teaching and Learning Support Services Information Technology Services Queensland University of Technology email: g.vickers at qut.edu.au phone: (07) 3864 8276 mobile: 0416 001 674, SD #6 6147 CIROS code: 00213J ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Feb 16 05:05:59 2005 From: benny at bennyvision.com (C. Bensend) Date: Tue, 15 Feb 2005 22:05:59 -0600 (CST) Subject: Running Nagios 1.2 on RH EL3 In-Reply-To: <4212C41B.5040808@qut.edu.au> References: <42118333.6080108@qut.edu.au> <4212AE06.3000501@qut.edu.au> <4212BA83.1070907@qut.edu.au> <559e3cb605021519412662e187@mail.gmail.com> <4212C41B.5040808@qut.edu.au> Message-ID: <55841.63.227.74.41.1108526759.squirrel@webmail.stinkweasel.net> > I've seen the same behavior using binaries compiled from source and from > rpm packages. > > I've removed the use of any plugins (as well as check_nagios in cgi.cfg) > and Nagios still fails at the same point. I haven't followed every single email in this thread, so apologies if this has already been asked... There aren't any resource limits on the account you're running Nagios as that might be kicking in, are there? Open files? Memory limits? Disk quotas? What groups is the nagios user in? What's the output of 'ulimit -a'? No selinux stuff enabled? Benny -- "I'm so Goth, my wrists slit themselves." -- bash.org ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From aaronhcarr at gmail.com Wed Feb 16 05:17:01 2005 From: aaronhcarr at gmail.com (Aaron Carr) Date: Tue, 15 Feb 2005 23:17:01 -0500 Subject: MySQL plugin Message-ID: I've been reading through the mailing list archives about this, and I saw a post that stated "The mysql plugin will automatically build if you compile the plugin package on a machine that has the mysql libraries installed." I know it didn't build for me, and I do have MySQL installed and running. The following rpms are installed. MySQL-client-4.1.9-0 perl-DBD-MySQL-2.9003-4 MySQL-server-4.1.9-0 MySQL-shared-4.1.9-0 MySQL-Max-4.1.9-0 Which one(s) am I missing to get the plugin to compile? Thanks in advance. Aaron ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Wed Feb 16 05:36:05 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 15 Feb 2005 23:36:05 -0500 (EST) Subject: MySQL plugin In-Reply-To: References: Message-ID: Need the -devel rpms with the header files ;) On Tue, 15 Feb 2005, Aaron Carr wrote: > I've been reading through the mailing list archives about this, and I > saw a post that stated "The mysql plugin will automatically build if > you compile the plugin package on a machine that has the mysql > libraries installed." > > I know it didn't build for me, and I do have MySQL installed and running. > > The following rpms are installed. > > MySQL-client-4.1.9-0 > perl-DBD-MySQL-2.9003-4 > MySQL-server-4.1.9-0 > MySQL-shared-4.1.9-0 > MySQL-Max-4.1.9-0 > > Which one(s) am I missing to get the plugin to compile? > > Thanks in advance. > > Aaron > -- ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From g.vickers at qut.edu.au Wed Feb 16 06:05:52 2005 From: g.vickers at qut.edu.au (Greg Vickers) Date: Wed, 16 Feb 2005 15:05:52 +1000 Subject: Running Nagios 1.2 on RH EL3 - FIXED! In-Reply-To: <55841.63.227.74.41.1108526759.squirrel@webmail.stinkweasel.net> References: <42118333.6080108@qut.edu.au> <4212AE06.3000501@qut.edu.au> <4212BA83.1070907@qut.edu.au> <559e3cb605021519412662e187@mail.gmail.com> <4212C41B.5040808@qut.edu.au> <55841.63.227.74.41.1108526759.squirrel@webmail.stinkweasel.net> Message-ID: <4212D4B0.3070800@qut.edu.au> Ahhahaha. AHHAHAAHAHA. Cue user error, aka POBKAC... After compiling with --enable-DEBUG(0,1,2) and attaching gdb to this new executable I find: (gdb) bt #0 0x007366d6 in strncpy () from /lib/tls/libc.so.6 #1 0x08059906 in get_raw_command_line ( cmd=0x9591300 "check_service_cluster!CA-R203b!31!32!$SERVICESTATEID:CA-R203b-PC01:Lab PC available$,$SERVICESTATEID:CA-R203b-PC02:Lab PC available$,$SERVICESTATEID:CA-R203b-PC03:Lab PC available$,$SERVICESTATEID:CA-"..., raw_command=0x2d41433a

, buffer_length=858796626) at utils.c:1277 Gee, that looks like a cluster check service command for Nagios 2.0... and I'm running a Nagios executable 1.2... gosh could be a buffer overflow! I had converted all my config files to 2.0 and then regressed them to 1.2 (a lot of host names had been updated) and missed the cluster check services... duh. Sorry for the hundreds of emails and thanks for the replies and suggestions! Greg C. Bensend wrote: >>I've seen the same behavior using binaries compiled from source and from >>rpm packages. >> >>I've removed the use of any plugins (as well as check_nagios in cgi.cfg) >>and Nagios still fails at the same point. > > > I haven't followed every single email in this thread, so apologies if > this has already been asked... > > There aren't any resource limits on the account you're running Nagios > as that might be kicking in, are there? Open files? Memory limits? > Disk quotas? What groups is the nagios user in? What's the output > of 'ulimit -a'? > > No selinux stuff enabled? > > Benny > > -- Greg Vickers Lab Monitor Project Manager Teaching and Learning Support Services Information Technology Services Queensland University of Technology email: g.vickers at qut.edu.au phone: (07) 3864 8276 mobile: 0416 001 674, SD #6 6147 CIROS code: 00213J ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From g.vickers at qut.edu.au Wed Feb 16 06:06:34 2005 From: g.vickers at qut.edu.au (Greg Vickers) Date: Wed, 16 Feb 2005 15:06:34 +1000 Subject: Nagios SIGSEGV problem - FIXED! In-Reply-To: <4212BFFD.8020309@qut.edu.au> References: <4212BFFD.8020309@qut.edu.au> Message-ID: <4212D4DA.8040509@qut.edu.au> Never mind - the problem was with the user :p i.e. me Greg Vickers wrote: > Hi all, > > (Started a new thread) I'm running Nagios 1.2 and plugins 1.3.1 on RH > EL3 and Nagios is throwing up SIGSEGV faults two minutes and twenty four > second after it starts. (ran Nagios with 'time') > > I ran gdb on Nagios and got the attached output. I think the relevant > stuff is at the end: > > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread -1218551680 (LWP 13742)] > 0x00c4e722 in strncpy () from /lib/tls/libc.so.6 > (gdb) c > Continuing. > > Program received signal SIGSEGV, Segmentation fault. > 0x00c4e722 in strncpy () from /lib/tls/libc.so.6 > (gdb) c > Continuing. > > Program exited with code 0376. > > Does anyone have any ideas about what is wrong? > > Thanks, > > > ------------------------------------------------------------------------ > > # gdb nagios 13742 > GNU gdb Red Hat Linux (6.1post-1.20040607.52rh) > Copyright 2004 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you are > welcome to change it and/or distribute copies of it under certain conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "i386-redhat-linux-gnu"...(no debugging symbols found)...Using host libthread_db library "/lib/tls/libthread_db.so.1". > > Attaching to program: /usr/bin/nagios, process 13742 > Reading symbols from /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/libperl.so...(no debugging symbols found)...done. > Loaded symbols for /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/libperl.so > Reading symbols from /lib/libnsl.so.1...(no debugging symbols found)...done. > Loaded symbols for /lib/libnsl.so.1 > Reading symbols from /lib/libdl.so.2...(no debugging symbols found)...done. > Loaded symbols for /lib/libdl.so.2 > Reading symbols from /lib/tls/libm.so.6...(no debugging symbols found)...done. > Loaded symbols for /lib/tls/libm.so.6 > Reading symbols from /lib/tls/libpthread.so.0...(no debugging symbols found)...done. > [Thread debugging using libthread_db enabled] > [New Thread -1218551680 (LWP 13742)] > Loaded symbols for /lib/tls/libpthread.so.0 > Reading symbols from /lib/tls/libc.so.6...(no debugging symbols found)...done. > Loaded symbols for /lib/tls/libc.so.6 > Reading symbols from /lib/libcrypt.so.1...(no debugging symbols found)...done. > Loaded symbols for /lib/libcrypt.so.1 > Reading symbols from /lib/libutil.so.1...(no debugging symbols found)...done. > Loaded symbols for /lib/libutil.so.1 > Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done. > Loaded symbols for /lib/ld-linux.so.2 > Reading symbols from /usr/lib/perl5/5.8.0/i386-linux-thread-multi/auto/IO/IO.so...(no debugging symbols found)...done. > Loaded symbols for /usr/lib/perl5/5.8.0/i386-linux-thread-multi/auto/IO/IO.so > Reading symbols from /usr/lib/perl5/5.8.0/i386-linux-thread-multi/auto/Fcntl/Fcntl.so...(no debugging symbols found)...done. > Loaded symbols for /usr/lib/perl5/5.8.0/i386-linux-thread-multi/auto/Fcntl/Fcntl.so > Reading symbols from /usr/lib/perl5/5.8.0/i386-linux-thread-multi/auto/Cwd/Cwd.so...(no debugging symbols found)...done. > Loaded symbols for /usr/lib/perl5/5.8.0/i386-linux-thread-multi/auto/Cwd/Cwd.so > Reading symbols from /lib/libnss_files.so.2...(no debugging symbols found)...done. > Loaded symbols for /lib/libnss_files.so.2 > 0x00c7f8bb in __nanosleep_nocancel () from /lib/tls/libc.so.6 > (gdb) c > Continuing. > Detaching after fork from child process 13748. > Detaching after fork from child process 13754. > Detaching after fork from child process 13758. > Detaching after fork from child process 13762. > Detaching after fork from child process 13767. > Detaching after fork from child process 13770. > Detaching after fork from child process 13774. > Detaching after fork from child process 13777. > Detaching after fork from child process 13782. > Detaching after fork from child process 13784. > Detaching after fork from child process 13787. > Detaching after fork from child process 13791. > Detaching after fork from child process 13796. > Detaching after fork from child process 13798. > Detaching after fork from child process 13801. > Detaching after fork from child process 13804. > Detaching after fork from child process 13807. > Detaching after fork from child process 13812. > Detaching after fork from child process 13814. > Detaching after fork from child process 13819. > Detaching after fork from child process 13821. > Detaching after fork from child process 13824. > Detaching after fork from child process 13829. > Detaching after fork from child process 13831. > Detaching after fork from child process 13835. > Detaching after fork from child process 13838. > Detaching after fork from child process 13845. > Detaching after fork from child process 13848. > > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread -1218551680 (LWP 13742)] > 0x00c4e722 in strncpy () from /lib/tls/libc.so.6 > (gdb) c > Continuing. > > Program received signal SIGSEGV, Segmentation fault. > 0x00c4e722 in strncpy () from /lib/tls/libc.so.6 > (gdb) c > Continuing. > > Program exited with code 0376. > (gdb) -- Greg Vickers Lab Monitor Project Manager Teaching and Learning Support Services Information Technology Services Queensland University of Technology email: g.vickers at qut.edu.au phone: (07) 3864 8276 mobile: 0416 001 674, SD #6 6147 CIROS code: 00213J ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhmartin at toger.us Wed Feb 16 06:19:02 2005 From: jhmartin at toger.us (Jason Martin) Date: Tue, 15 Feb 2005 21:19:02 -0800 Subject: Nagios SIGSEGV problem - FIXED! In-Reply-To: <4212D4DA.8040509@qut.edu.au> References: <4212BFFD.8020309@qut.edu.au> <4212D4DA.8040509@qut.edu.au> Message-ID: <20050216051902.GA12420@zippy.toger.us> On Wed, Feb 16, 2005 at 03:06:34PM +1000, Greg Vickers wrote: > Never mind - the problem was with the user :p i.e. me What did you do to solve the problem? Even in the face of user error, the daemon should not SEGV. -Jason Martin -- Every thing in this world is an idea acted on. This message is PGP/MIME signed. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 211 bytes Desc: not available URL: From g.vickers at qut.edu.au Wed Feb 16 06:51:48 2005 From: g.vickers at qut.edu.au (Greg Vickers) Date: Wed, 16 Feb 2005 15:51:48 +1000 Subject: Nagios SIGSEGV problem - FIXED! In-Reply-To: <20050216051902.GA12420@zippy.toger.us> References: <4212BFFD.8020309@qut.edu.au> <4212D4DA.8040509@qut.edu.au> <20050216051902.GA12420@zippy.toger.us> Message-ID: <4212DF74.2080808@qut.edu.au> After compiling with --enable-DEBUG(0,1,2) and attaching gdb to this new executable I find: (gdb) bt #0 0x007366d6 in strncpy () from /lib/tls/libc.so.6 #1 0x08059906 in get_raw_command_line ( cmd=0x9591300 "check_service_cluster!CA-R203b!31!32!$SERVICESTATEID:CA-R203b-PC01:Lab PC available$,$SERVICESTATEID:CA-R203b-PC02:Lab PC available$,$SERVICESTATEID:CA-R203b-PC03:Lab PC available$,$SERVICESTATEID:CA-"..., raw_command=0x2d41433a
, buffer_length=858796626) at utils.c:1277 Gee, that looks like a cluster check service command for Nagios 2.0... and I'm running a Nagios executable 1.2... gosh could be a buffer overflow! I had converted all my config files to 2.0 and then regressed them to 1.2 (a lot of host names had been updated) and missed regressing the cluster check services... duh. So the buffer overflow was being caused by passing too much stuff to check_cluster which was causing a SIGSEGV. Greg Jason Martin wrote: > On Wed, Feb 16, 2005 at 03:06:34PM +1000, Greg Vickers wrote: > >>Never mind - the problem was with the user :p i.e. me > > What did you do to solve the problem? Even in the face of user > error, the daemon should not SEGV. > > -Jason Martin -- Greg Vickers Lab Monitor Project Manager Teaching and Learning Support Services Information Technology Services Queensland University of Technology email: g.vickers at qut.edu.au phone: (07) 3864 8276 mobile: 0416 001 674, SD #6 6147 CIROS code: 00213J ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From matato at pregi.net Wed Feb 16 17:00:54 2005 From: matato at pregi.net (matato at pregi.net) Date: Wed, 16 Feb 2005 16:00:54 -0000 (GMT) Subject: Can I create my own macros?? Message-ID: <3201.202.90.128.27.1108569654.squirrel@mail.pregi.net> Hi, I've installed nagios and used jabber as its chatlert notification. What I did was to pipe the different macros to a perl script that I made such that the script will do the chat alert thing. The script named jabberalert.pl looks like this: #!/usr/local/bin/perl use warnings; use strict; use Notice; our @array; our $contact = shift @ARGV; while(){ push @array, $_; } my $alert = new Notice; $alert->contact_jabber('myaccount at jabber.server'); $alert->message('Nagios', "@array"); $alert->jabber; The command definition for chatalert looks like this: define command{ command_name hostchatalert command_line /usr/bin/printf "HOST $HOSTSTATE$!!!\n\nHost: $HOSTNAME$($HOSTALIAS$)\nAddress: $HOSTADDRESS$\nLastCheck: $DATETIME$\n\nAlert Message:\n $OUTPUT$" | jabberalert.pl } For now, the script works fine with a hard coded contact_jabber. But what I wanted to do is to use a variable in place of that contact_jabber, let's say:$alert->contact_jabber("$contact"); Upon reading the manual of the macros, I found out that the Email and pager really exist. Is it possible if I could just create a jabber entry in the contacts.cfg like that of the email and pager so that I can use the $CONTACTJABBER$ in my command definition of chatalert like this: define command{ command_name hostchatalert command_line /usr/bin/printf "HOST $HOSTSTATE$!!!\n\nHost: $HOSTNAME$($HOSTALIAS$)\nAddress: $HOSTADDRESS$\nLastCheck: $DATETIME$\n\nAlert Message:\n $OUTPUT$" | jabberalert.pl $CONTACTJABBER$} and change my perl script such that these line: $alert->contact_jabber('myaccount at jabber.server'); will look like this. my $contact = shift @ARGV; $alert->contact_jabber("$contact"); Or do you have any other idea?? thanks. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Feb 16 10:40:34 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 16 Feb 2005 10:40:34 +0100 Subject: NSClient++ (Early =?ISO-8859-1?Q?=DFeta_rel?= =?ISO-8859-1?Q?ease=29?= In-Reply-To: References: Message-ID: <42131512.7060204@op5.se> Michael Medin wrote: > Hi, > > > > I just spent some time adding a project on source forge > (http://sourceforge.net/projects/nscplus) for a program I wrote about > a year ago. The program is a simple NSClient clone written in C++ for > W32 (obviously). It has most of the feature of NSClient (at least I > think so). Some of the features are untested and to put it plainly I > haven't used the program nor NSClient for over a year and don't even > recall exactly the status of things. But I promised I would release > it as open source a few months back. Unfortunately the process took a > bit more time than I thought but here it is. > > The main difference between NSClient and NSClient++ is; > > 1, It is modularized and has plug-in support > > 2, It is written in C++ and should (haven't really looked into it > though) be fairly lightweight. It is also a straight W32 API > application meaning it does not have any third party dependencies > (apart from STLPort which is statically linked, and can be removed as > MS STL works just as fine) like MFC etc. > > 3, It also features (though this is as of yet unsupported, as I > haven't written any *nix client yet) a Windows EventLog Checker. > > 4, I think it should be compatible with most NT-base (as it uses > threads, mutexes and such w9x might be off?) versions of Windows. > (NSClient might have been this but I had a lot of problems with PDH > library dependences). > > > > The modularization is in the form of DLLs that are loaded on start-up > and have a pretty simple and straight forward API. Thus it should > make it quite simple to write a module that does pretty much anything > if there is any interest. (Also as modules are external they can be > provided as third party extensions as well as toggled off to provide > a minimalist resource footprint) > > > > Future plans are (if there is an interest): > > Modules for: > > * SSL (need to read up on the subject first). > It's fairly straightforward. I believe there are win32 ports of openssl (or the likes). Look at SSL-enabled plugins if you're curious about simple SSL functionality, and openssh if you're interested in advanced features (PKE and such). > * Event log (already there but not finished). > > * Scripting support (would be I think simple to allow scripts to be > written in some language and executed (much like Nagios). > This would be nice. If it could be made compatible with check_nrpe and bind both ports if told to support the feature I think it would be made really useful. > * Passive checking (is this really useful, haven't ever used it > myself) > > > > But the big question is: is there any need for this? > Perhaps, and perhaps not. I'm a firm believer in touching the monitored objects as little as possible. It seems an additional scheduler running on the host can never be a good thing. > A year ago I wrote it because NSClient broke our exchange server. And > a few weeks ago I refactored parts of it to support modules and wrote > a module for the event log (because I wanted to check the windows > event log). But I think that SNMP is much simpler and works better in > mixed environments. So personally I don't really see much demand for > a "NSClient:ish" plug-in but I don't really know. Secondly there is > NC_net (which I personally am not to keen on as I dislike the whole > .NET concept, but that's a passing issue). I second that. > So is there an interest? Definitely. If I knew anything about windows programming I would help. > Should I continue to write this (apart from the event log monitoring > module that I need). I would like to get feedback on this so I know > what to do about it, but regardless of that issue the program will > become "production stable" and get an event log as that is what I > need. > > > > As for when to expect anything from this project? > > As of now (well my SF skills broke everything) the project should (in > extreme theory) be a drop in replacement for NSClient barring two > (IIRC) features (I think it was file age and something more along > those lines). But proc, service, mem, disk, uptime, version, etc is > there. > > I will spend the next weekend and some spare time working on this > (don't want to do to much of this during work hours as we have a > tight schedule now, with a deploy of a few new servers) so perhaps > Monday for a "production version" (expect bugs but should be stable). > This includes the Event log plug-in (with a client). > > Something to test and feel it out will be available tonight (GMT+1). > >> From this point on it all depends on the interest and/or feedback >> from testers and ideas. > I'll get back to you with those as soon as we've got anything to report. The module API sounds very interesting. > > > BTW; I just noticed that the zip file on SF was broken (don't really > know why) so you have to wait a few hours (we are talking something > along the lines of 18:00-19:00 GMT when I get home) before you can > try it. I also noticed that the CVS only had directories in it so Ill > have to check about that too, my 1337 SourceForge skillz are not what > they should be I suppose but this is pretty much the first time in > years I post to SF :) > > > > Regards, > > > > Michael Medin > > > > Direkt: 08-410 052 42 > > Mobil: 0733-35 55 42 > > E-mail: michael.medin at altcom.se > > Internet: WWW.ALTCOM.SE > > > > ALTCOM AB SEGELB?TSV?GEN 2, 11264 STOCKHOLM TELEFON: 08-7 300 300 > FAX: 08-7 300 305 EMAIL: INFO at ALTCOM.SE > INTERNET: WWW.ALTCOM.SE > > > > > This message contains information that may be privileged or > confidential and is the property of the Altcom AB. It is intended > only for the person to whom it is addressed. If you are not the > intended recipient, you are not authorized to read, print, retain, > copy, disseminate, distribute, or use this message or any part > thereof. If you receive this message in error, please notify me > immediately and delete all copies of this message. > > > > > > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Feb 16 10:56:18 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 16 Feb 2005 10:56:18 +0100 Subject: Ntray and HTTP Port redirection In-Reply-To: <4EE8236B66247849BD4E1B5383AF4F48021EC4@exchwaus01.redmond.radioframenetworks.com> References: <4EE8236B66247849BD4E1B5383AF4F48021EC4@exchwaus01.redmond.radioframenetworks.com> Message-ID: <421318C2.7040407@op5.se> Christopher Smith wrote: > Okay folks, you all have been very helpful. I was going to send this > directly to Robert Wagner, but I figured that I would share the fun. My > network analyst and I have been using Nagios for about 1 year. We have > tweaked and extended in in several directions, the latest iteration > involving the new Treo 650 from Cingular. We have altered the web port > from port 80 to some alternate port to deter would-be hackers. All works > well: we can access the web page from the Handheld devices, etc. > > The problem is this: on our desktops, we use the new and improved NTray > utility (a far cry from the original, thanks). However, with the new > port change, the Ntray does not like it. I have tried adding the address > to the URL line (http://:/nagios/), but to no > avail. > > Any thoughts? > First thought; NTray should support this (as in, the author should have thought about it). Did you restart it after changing the url? Second thought; Relocating http to use another port is a fairly stupid way to stop culprits (nmap fingerprints, sniffing, whatnot). Running it on a non-privileged port as a non-privileged user so that it doesn't ever run as root is a good idea. Add a firewall rule to rewrite incoming requests on that port to use the new one instead, and a similar on outgoing requests ofcourse. A google on iptables will tell you (about 2000 times) how to accomplish this. > > Christopher M. Smith > Systems Administrator > RadioFrame Networks > 1120 112th Avenue N.E., Suite 600 > Bellevue, WA 98004 > http://www.radioframenetworks.com > > O: 425.278.2661 > F: 425.278.2861 > M: 425.208.5198 > csmith at radioframenetworks.com > > ........................................................................ > .......... > The only converged system designed to optimize in-building voice over > cellular / PCS and WLANs > Privileged/Confidential Information may be contained in this message. If > you are not the addressee indicated in this message (or responsible for > delivery of the message to such person), you may not copy or deliver > this message to anyone. In such case, you should destroy this message > and kindly notify the sender by reply email. > > > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Feb 16 11:08:40 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 16 Feb 2005 11:08:40 +0100 Subject: Notification issues In-Reply-To: <7FED619E7720714C957E9CA14231C5263C487B@crn-mail02.tngus.com> References: <7FED619E7720714C957E9CA14231C5263C487B@crn-mail02.tngus.com> Message-ID: <42131BA8.60604@op5.se> Wilmot, Doug wrote: > Hello, > > > > My company is currently running Nagios 1.2 and we seem to be > having some notification problems. One of the most frequent problems is a > host down alert "plug-in timed out after 10 seconds". Then Nagios sends an > email alert which is becoming very redundant and making us almost "immune" > to these alerts. Meanwhile, we have a second build of Nagios version 2.x > running on a separate node which we are "building from scratch". > > Our goal is to have an alert sent to our helpdesk app (via email) to open a > ticket if a host is down for 5 or more minutes, then another when the host > is back up. We are currently using check_ping for monitoring but I have > heard some people use check_icmp. Which one would be better for us and what > are the differences? check_icmp implements a more clever scheduling algorithm and sends packets at a faster rate (and thus completes faster which doesn't hold up Nagios for so long). Since it doesn't use a backend program and parse output it can usually also detect what is causing the packets to be lost and, more importantly, WHERE they are lost, as such; ./check_icmp -H 193.201.96.144 CRITICAL - 193.201.96.144: Time to live exceeded in transit @ 213.88.215.13. rta nan, lost 100% In this case, 213.88.215.13 is the failing router. A cautionary note though; One user has reported check_icmp to fail from a NetBSD hosted Nagios. I'm fairly certain this is a network issue that has nothing to do with check_icmp. > Should we be using escalations to achieve this 5 > minute delay? We have tried the rtfm approach and quite frankly I feel like > I am spinning wheels here. Any help is greatly appreciated. > Escalations would be the proper way to go, yes. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Feb 16 11:23:37 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 16 Feb 2005 11:23:37 +0100 Subject: Nagios SIGSEGV problem - FIXED! In-Reply-To: <4212DF74.2080808@qut.edu.au> References: <4212BFFD.8020309@qut.edu.au> <4212D4DA.8040509@qut.edu.au> <20050216051902.GA12420@zippy.toger.us> <4212DF74.2080808@qut.edu.au> Message-ID: <42131F29.4010409@op5.se> Greg Vickers wrote: > After compiling with --enable-DEBUG(0,1,2) and attaching gdb to this new > executable I find: > (gdb) bt > #0 0x007366d6 in strncpy () from /lib/tls/libc.so.6 That's weird. I suppose it tried to strncpy(dest, src, strlen(src)) or something, as opposed to strncpy(dest, src, sizeof(dest)). > #1 0x08059906 in get_raw_command_line ( > cmd=0x9591300 > "check_service_cluster!CA-R203b!31!32!$SERVICESTATEID:CA-R203b-PC01:Lab > PC available$,$SERVICESTATEID:CA-R203b-PC02:Lab PC > available$,$SERVICESTATEID:CA-R203b-PC03:Lab PC > available$,$SERVICESTATEID:CA-"..., raw_command=0x2d41433a
0x2d41433a out of bounds>, buffer_length=858796626) at utils.c:1277 > > Gee, that looks like a cluster check service command for Nagios 2.0... > and I'm running a Nagios executable 1.2... gosh could be a buffer > overflow! > > I had converted all my config files to 2.0 and then regressed them to > 1.2 (a lot of host names had been updated) and missed regressing the > cluster check services... duh. > > So the buffer overflow was being caused by passing too much stuff to > check_cluster which was causing a SIGSEGV. > > Greg > > Jason Martin wrote: > >> On Wed, Feb 16, 2005 at 03:06:34PM +1000, Greg Vickers wrote: >> >>> Never mind - the problem was with the user :p i.e. me >> >> >> What did you do to solve the problem? Even in the face of user >> error, the daemon should not SEGV. >> >> -Jason Martin > > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Feb 16 11:26:48 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 16 Feb 2005 11:26:48 +0100 Subject: Can I create my own macros?? In-Reply-To: <3201.202.90.128.27.1108569654.squirrel@mail.pregi.net> References: <3201.202.90.128.27.1108569654.squirrel@mail.pregi.net> Message-ID: <42131FE8.3090305@op5.se> matato at pregi.net wrote: > Hi, > I've installed nagios and used jabber as its chatlert notification. What > I did was to pipe the different macros to a perl script that I made such > that the script will do the chat alert thing. > The script named jabberalert.pl looks like this: > > #!/usr/local/bin/perl > use warnings; > use strict; > > use Notice; > our @array; > our $contact = shift @ARGV; > > while(){ > push @array, $_; > } > > > my $alert = new Notice; > $alert->contact_jabber('myaccount at jabber.server'); > $alert->message('Nagios', "@array"); > $alert->jabber; > > > The command definition for chatalert looks like this: > define command{ > command_name hostchatalert > command_line /usr/bin/printf "HOST $HOSTSTATE$!!!\n\nHost: > $HOSTNAME$($HOSTALIAS$)\nAddress: $HOSTADDRESS$\nLastCheck: $DATETIME$\n\nAlert Message:\n $OUTPUT$" | jabberalert.pl > } > > For now, the script works fine with a hard coded contact_jabber. But what > I wanted to do is to use a variable in place of that contact_jabber, let's > say:$alert->contact_jabber("$contact"); > > Upon reading the manual of the macros, I found out that the Email and > pager really exist. Is it possible if I could just create a jabber entry > in the contacts.cfg like that of the email and pager so that I can use the > $CONTACTJABBER$ in my command definition of chatalert like this: > define command{ > command_name hostchatalert > command_line /usr/bin/printf "HOST $HOSTSTATE$!!!\n\nHost: > $HOSTNAME$($HOSTALIAS$)\nAddress: $HOSTADDRESS$\nLastCheck: $DATETIME$\n\nAlert Message:\n $OUTPUT$" | jabberalert.pl > $CONTACTJABBER$} > No. In nagios 2.x you could use the address1 through address6 for that though, or simply add a new contact or do any of a hundred different things. What you cannot do is invent macros on the fly. > and change my perl script such that these line: > $alert->contact_jabber('myaccount at jabber.server'); > > will look like this. > my $contact = shift @ARGV; > $alert->contact_jabber("$contact"); > > > Or do you have any other idea?? > > thanks. > > > > > > > > > > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Lukasz.Kurzyna at snt.pl Wed Feb 16 12:22:44 2005 From: Lukasz.Kurzyna at snt.pl (Kurzyna Lukasz) Date: Wed, 16 Feb 2005 12:22:44 +0100 Subject: Stats with timeperiods Message-ID: Hi, I have problem with status data in Nagios (1.2). I'd like to check stats (availability) but only in defined timeperiods. It seems to me somebody wrote some extensions and wrote about it here but I'm not able to find the post in archive. Any hints ? I would be thankful. Regards Lukasz -------------- next part -------------- An HTML attachment was scrubbed... URL: From aaronhcarr at gmail.com Wed Feb 16 12:24:00 2005 From: aaronhcarr at gmail.com (Aaron Carr) Date: Wed, 16 Feb 2005 06:24:00 -0500 Subject: MySQL plugin In-Reply-To: References: Message-ID: Understood. One final question about the plugin. Once built, is it transportable? Meaning...if I build it on the database host that has the MySQL RPMs installed, can I then move the check_mysql binary over to my Nagios host that does NOT have MySQL installed on it (The two hosts are the same build/version of Linux)? Aaron On Tue, 15 Feb 2005 23:36:05 -0500 (EST), Subhendu Ghosh wrote: > > Need the -devel rpms with the header files ;) > > On Tue, 15 Feb 2005, Aaron Carr wrote: > > > I've been reading through the mailing list archives about this, and I > > saw a post that stated "The mysql plugin will automatically build if > > you compile the plugin package on a machine that has the mysql > > libraries installed." > > > > I know it didn't build for me, and I do have MySQL installed and running. > > > > The following rpms are installed. > > > > MySQL-client-4.1.9-0 > > perl-DBD-MySQL-2.9003-4 > > MySQL-server-4.1.9-0 > > MySQL-shared-4.1.9-0 > > MySQL-Max-4.1.9-0 > > > > Which one(s) am I missing to get the plugin to compile? > > > > Thanks in advance. > > > > Aaron > > > > -- > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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-Lists at RalfGross.de Wed Feb 16 12:31:53 2005 From: Ralf-Lists at RalfGross.de (Ralf Gross) Date: Wed, 16 Feb 2005 12:31:53 +0100 (CET) Subject: HOSTNOTES, SERVICEACKAUTHOR, HOSTACKAUTHOR in notifications Message-ID: <29031.141.113.101.32.1108553513.squirrel@webmail.ssorgflar.de> Hi, I started to tune the format and content of our notifications. We use Email, SMS and Winpopups. We want to use the $HOSTNOTES$ macro to add contact addresses for hosts and services. This should be added to every notification. If I add the $HOSTNOTES$ macro(misccommands.cfg) and there are no notes defined in hostextinfo.cfg for this host, instead of the (empty) $HOSTNOTES$ macro a $ sign is added to the notification text. Can I avoid this anyhow? If someone acks a problem, I want to add the name of the person to the notification that is send out. But if I add $HOSTACKAUTHOR$ or $SERVICEACKAUTHOR$ to the (host-)notify-by-email/sms/winpopup definition, and the $NOTIFICATIONTYPE$ macro is not set to "ACKNOWLEDGEMENT" (PROBLEM, RECOLVERY...) a $ sign is added to the notification too. Do I have to add additional notification commands if it may be possible that some macros may not be present in a notification? I can't see how to avoid the $ sign. Ralf ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Feb 16 12:35:34 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 16 Feb 2005 12:35:34 +0100 Subject: MySQL plugin In-Reply-To: References: Message-ID: <42133006.1030406@op5.se> Aaron Carr wrote: > Understood. > > One final question about the plugin. Once built, is it transportable? > Meaning...if I build it on the database host that has the MySQL RPMs > installed, can I then move the check_mysql binary over to my Nagios > host that does NOT have MySQL installed on it (The two hosts are the > same build/version of Linux)? > No. You would need libmysqlclient.so (and whatever files it points to, naturally) or symbol name lookups will fail miserably at run-time. This is "linking for beginners". man ldd might prove a good starting point to find this kind of discrepancies. > Aaron > > > On Tue, 15 Feb 2005 23:36:05 -0500 (EST), Subhendu Ghosh > wrote: > >>Need the -devel rpms with the header files ;) >> >>On Tue, 15 Feb 2005, Aaron Carr wrote: >> >> >>>I've been reading through the mailing list archives about this, and I >>>saw a post that stated "The mysql plugin will automatically build if >>>you compile the plugin package on a machine that has the mysql >>>libraries installed." >>> >>>I know it didn't build for me, and I do have MySQL installed and running. >>> >>>The following rpms are installed. >>> >>>MySQL-client-4.1.9-0 >>>perl-DBD-MySQL-2.9003-4 >>>MySQL-server-4.1.9-0 >>>MySQL-shared-4.1.9-0 >>>MySQL-Max-4.1.9-0 >>> >>>Which one(s) am I missing to get the plugin to compile? >>> >>>Thanks in advance. >>> >>>Aaron >>> >> >>-- >> >>------------------------------------------------------- >>SF email is sponsored by - The IT Product Guide >>Read honest & candid reviews on hundreds of IT Products from real users. >>Discover which products truly live up to the hype. Start reading now. >>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >>::: Messages without supporting info will risk being sent to /dev/null >> > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Feb 16 12:36:54 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 16 Feb 2005 12:36:54 +0100 Subject: Stats with timeperiods In-Reply-To: References: Message-ID: <42133056.2070602@op5.se> Kurzyna Lukasz wrote: > Hi, > > > > I have problem with status data in Nagios (1.2). I'd like to check stats > (availability) but only in defined timeperiods. It seems to me somebody > wrote some extensions and wrote about it here but I'm not able to find the > post in archive. > The patch was submitted to Nagios 2.x. It was accepted and applied to the official distro so you should give 2.x a try. > > > Any hints ? I would be thankful. > > > > Regards > > Lukasz > > > > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From aaronhcarr at gmail.com Wed Feb 16 13:06:31 2005 From: aaronhcarr at gmail.com (Aaron Carr) Date: Wed, 16 Feb 2005 07:06:31 -0500 Subject: MySQL plugin In-Reply-To: <42133006.1030406@op5.se> References: <42133006.1030406@op5.se> Message-ID: Understood. Thanks for the info. Aaron On Wed, 16 Feb 2005 12:35:34 +0100, Andreas Ericsson wrote: > Aaron Carr wrote: > > Understood. > > > > One final question about the plugin. Once built, is it transportable? > > Meaning...if I build it on the database host that has the MySQL RPMs > > installed, can I then move the check_mysql binary over to my Nagios > > host that does NOT have MySQL installed on it (The two hosts are the > > same build/version of Linux)? > > > > No. You would need libmysqlclient.so (and whatever files it points to, > naturally) or symbol name lookups will fail miserably at run-time. This > is "linking for beginners". man ldd might prove a good starting point to > find this kind of discrepancies. > > > Aaron > > > > > > On Tue, 15 Feb 2005 23:36:05 -0500 (EST), Subhendu Ghosh > > wrote: > > > >>Need the -devel rpms with the header files ;) > >> > >>On Tue, 15 Feb 2005, Aaron Carr wrote: > >> > >> > >>>I've been reading through the mailing list archives about this, and I > >>>saw a post that stated "The mysql plugin will automatically build if > >>>you compile the plugin package on a machine that has the mysql > >>>libraries installed." > >>> > >>>I know it didn't build for me, and I do have MySQL installed and running. > >>> > >>>The following rpms are installed. > >>> > >>>MySQL-client-4.1.9-0 > >>>perl-DBD-MySQL-2.9003-4 > >>>MySQL-server-4.1.9-0 > >>>MySQL-shared-4.1.9-0 > >>>MySQL-Max-4.1.9-0 > >>> > >>>Which one(s) am I missing to get the plugin to compile? > >>> > >>>Thanks in advance. > >>> > >>>Aaron > >>> > >> > >>-- > >> > >>------------------------------------------------------- > >>SF email is sponsored by - The IT Product Guide > >>Read honest & candid reviews on hundreds of IT Products from real users. > >>Discover which products truly live up to the hype. Start reading now. > >>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > >>_______________________________________________ > >>Nagios-users mailing list > >>Nagios-users at lists.sourceforge.net > >>https://lists.sourceforge.net/lists/listinfo/nagios-users > >>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > >>::: Messages without supporting info will risk being sent to /dev/null > >> > > > > > > > > ------------------------------------------------------- > > SF email is sponsored by - The IT Product Guide > > Read honest & candid reviews on hundreds of IT Products from real users. > > Discover which products truly live up to the hype. Start reading now. > > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > -- > Andreas Ericsson andreas.ericsson at op5.se > OP5 AB www.op5.se > Lead Developer > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mime at forumsql.se Wed Feb 16 13:13:01 2005 From: mime at forumsql.se (Michael Medin) Date: Wed, 16 Feb 2005 13:13:01 +0100 Subject: =?iso-8859-1?Q?RE=3A_=5BNagios-users=5D_NSClient++_=28Early_=DFeta_rele?= =?iso-8859-1?Q?ase=29?= Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On > Behalf Of Andreas Ericsson > Sent: den 16 februari 2005 10:41 > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] NSClient++ (Early ?eta > release) > > Michael Medin wrote: > > Hi, > > [snipped, out...] > > > > Future plans are (if there is an interest): > > > > Modules for: > > > > * SSL (need to read up on the subject first). > > > > It's fairly straightforward. I believe there are win32 > ports of openssl > (or the likes). Look at SSL-enabled plugins if you're > curious about > simple SSL functionality, and openssh if you're > interested in advanced > features (PKE and such). > I was considering using W32 APIs to reduce lib dependencies (but I have never used that so I need to look into what's there, also I would like something that doesn't require certificates to use as I found it a bit tedious to manage certificates for all my servers). > > * Event log (already there but not finished). > > > > * Scripting support (would be I think simple to allow > scripts to be > > written in some language and executed (much like > Nagios). > > > > This would be nice. If it could be made compatible with > check_nrpe and > bind both ports if told to support the feature I think > it would be made > really useful. Sounds interesting, someone else pointed this out and I shall have a look at this, if NRPE is similar in structure I think it would be doable. The internal structure as of now is on the following form: [, , ..., ] The command as a string and the arguments as a list of strings. > > > * Passive checking (is this really useful, haven't > ever used it > > myself) > > > > > > > > But the big question is: is there any need for this? > > > > Perhaps, and perhaps not. I'm a firm believer in > touching the monitored > objects as little as possible. It seems an additional > scheduler running > on the host can never be a good thing. > Hehe, this was my main issue with the plugin support. A lot of our computers already have SNMP monitoring but need event log. So I didn't want to duplicate the "performace counters" and what not in NSClient++ unless I have to. What Im getting at is that the passive checker would be implemented as a module and thus be togglable. If I do SSL I will also refactor out the "NSClient socket responder" as a module (or as two modules, one that uses SSL and one that doesn't) and then you can technically have a NSClient++ that does nothing, and uses pretty much no resources at all, well it is windows so 4-5 megs of ram and a few CPU cycles :) As of now there are five plugins: 1, NSClientCompat (plugin to emulate NSClient) 2, SysTray Module (plugin to display a system tray icon) 3, EventLog module (eventlog polling plugin) 4, Console Logger (used to log to stdout for debug pourpouses) 5, File Logger (used to log to file) Any and all of them can be disabled making the footprint of NSCLient++ up to the deployer. [snipped out a bit more ] > > > So is there an interest? > > Definitely. If I knew anything about windows > programming I would help. As of now I probably need more "monitoring experience" then Windows programming help :) So if you or anyone else have ideas on *how* you would *like* things to function let me know :) [ more snipped out part ] > > > > I'll get back to you with those as soon as we've got > anything to report. > The module API sounds very interesting. > The API is quite simple: The following functions are available for a module to "export": (think DLL) NSLoadModule - Loading of modules (done when the service starts) NSGetModuleName - Used to get a nice name for the module. NSGetModuleVersion - Not really used but... NSHasCommandHandler - Let the "core" know it can handle commands (from nagios) NSHasMessageHandler - Used to let the "core" know it wants to see all log/debug/error messages that are generated. NSHandleMessage - Used to digest a log/debug/error message. NSHandleCommand - Used to (possibly) digest a command. When a command is "injected" then command is parsed and then sent along to all plugins (which accept commands) in order (they are listed in NSC.ini) and they are allowed to act on the command. If they do act on the command the "injection" is aborted and the resulting "return string" is returned to the "injecter" (normaly check_nt through a TCP stream. The ordering can thus be used to 1, optimize if things are slow (though I fail to see that unless someone makes some pretty f*cked up modules) and priority if one module overlaps the command of another (though then I would recommend someone to change the plugin command strings :) NSUnloadModule - Used to unload and terminate "stuff" nicely. (Generally this is when the service terminates) NSModuleHelperInit - Used to send along callbacks to the module (for making calls to the "core". (Ie. To allow the module to inject commands, get versions, names, and settings) So the API is quite simple and straight forward (I hope :) To make a simple call graph: * Service starts: * For each plugin - call NSLoadModule - call NSModuleHelperInit - if NSHasCommandHandler . Send to "command plugin" stack - if NSHasMessageHandler . Send to "message plugin" stack * Wait for socket data - Parse socket data - For each "command plugin" . call NSHandleCommand . if Command handled abort * For each plugin - NSUnloadModule * Terminate service * On incoming message: - For each "message plugin" . call NSHandleMessage There are a few more things to this but overall I have tried to keep things simple. The extensions (to the API) I'm considering as of now (depending on the fallout) is: * "SettingsHandler" to allow registry/INI/* settings modules. As the overhead of reg/ini settings system is quite low, perhaps this is overkill. But I don't know: thinking wildly there might be a reason for someone to want to load settings from a central server or whatever :) * "SocketHandlers" though this will not be a specific handler I have considered to refactor out the code and allow the socket handler (that reads the TCP socket and parses the command) to be a plugin when I do SSL as I assume SSL will come with quite a high overhead and thus I might not need it all the time. Also as mentioned this might be a good place to do a NRPE socket parser module to allow compatibility with NRPE. But this I assume is a bit in the future as I need to get "NSClient++" before I can get "NRPEClient++"... As for PassiveChecks that could be implemented as a plugin today as any plugin can inject commands into the "core". Thus a plugin can be loaded, have a background thread that every X minutes calls "core".injectCommand(); and sends the result over to nagios. (This is how I assume that passive checks work) Whoooha... long email that I think I will turn into documentation when I get home tonight, hope I haven't bored anyone to death :) // Michael Medin > > > > > > BTW; I just noticed that the zip file on SF was > broken (don't really > > know why) so you have to wait a few hours (we are > talking something > > along the lines of 18:00-19:00 GMT when I get home) > before you can > > try it. I also noticed that the CVS only had > directories in it so Ill > > have to check about that too, my 1337 SourceForge > skillz are not what > > they should be I suppose but this is pretty much the > first time in > > years I post to SF :) > > > > > > > > Regards, > > > > > > > > Michael Medin > > > > > > > > Direkt: 08-410 052 42 > > > > Mobil: 0733-35 55 42 > > > > E-mail: michael.medin at altcom.se > > > > Internet: WWW.ALTCOM.SE > > > > > > > > > ALTCOM AB SEGELB?TSV?GEN 2, 11264 STOCKHOLM TELEFON: > 08-7 300 300 > > FAX: 08-7 300 305 EMAIL: INFO at ALTCOM.SE > > INTERNET: > WWW.ALTCOM.SE > > > > > > > > > > This message contains information that may be > privileged or > > confidential and is the property of the Altcom AB. It > is intended > > only for the person to whom it is addressed. If you > are not the > > intended recipient, you are not authorized to read, > print, retain, > > copy, disseminate, distribute, or use this message or > any part > > thereof. If you receive this message in error, please > notify me > > immediately and delete all copies of this message. > > > > > > > > > > > > > > -- > Andreas Ericsson > andreas.ericsson at op5.se > OP5 AB www.op5.se > Lead Developer > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products > from real users. > Discover which products truly live up to the hype. > Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios- > users > ::: Please include Nagios version, plugin version (-v) > and OS when reporting any issue. > ::: Messages without supporting info will risk being > sent to /dev/null ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mime at forumsql.se Wed Feb 16 13:27:41 2005 From: mime at forumsql.se (Michael Medin) Date: Wed, 16 Feb 2005 13:27:41 +0100 Subject: Notification issues Message-ID: Hi, I tried this but it needed to be run as root so should I a+s and chown the file to root or is there some better (as in more secure) way to handle it ? Root suid sounds dangerous to me... // Michael Medin > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On > Behalf Of Andreas Ericsson > Sent: den 16 februari 2005 11:09 > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Notification issues > > Wilmot, Doug wrote: > > Hello, > > > > > > > > My company is currently running Nagios > 1.2 and we seem to be > > having some notification problems. One of the most > frequent problems is a > > host down alert "plug-in timed out after 10 seconds". > Then Nagios sends an > > email alert which is becoming very redundant and > making us almost "immune" > > to these alerts. Meanwhile, we have a second build of > Nagios version 2.x > > running on a separate node which we are "building > from scratch". > > > > Our goal is to have an alert sent to our helpdesk > app (via email) to open a > > ticket if a host is down for 5 or more minutes, then > another when the host > > is back up. We are currently using check_ping for > monitoring but I have > > heard some people use check_icmp. Which one would be > better for us and what > > are the differences? > > check_icmp implements a more clever scheduling > algorithm and sends > packets at a faster rate (and thus completes faster > which doesn't hold > up Nagios for so long). Since it doesn't use a backend > program and parse > output it can usually also detect what is causing the > packets to be lost > and, more importantly, WHERE they are lost, as such; > ./check_icmp -H 193.201.96.144 > CRITICAL - 193.201.96.144: Time to live exceeded in > transit @ > 213.88.215.13. rta nan, lost 100% > > In this case, 213.88.215.13 is the failing router. > > A cautionary note though; One user has reported > check_icmp to fail from > a NetBSD hosted Nagios. I'm fairly certain this is a > network issue that > has nothing to do with check_icmp. > > > Should we be using escalations to achieve this 5 > > minute delay? We have tried the rtfm approach and > quite frankly I feel like > > I am spinning wheels here. Any help is greatly > appreciated. > > > > Escalations would be the proper way to go, yes. > > -- > Andreas Ericsson > andreas.ericsson at op5.se > OP5 AB www.op5.se > Lead Developer > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products > from real users. > Discover which products truly live up to the hype. > Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios- > users > ::: Please include Nagios version, plugin version (-v) > and OS when reporting any issue. > ::: Messages without supporting info will risk being > sent to /dev/null ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Feb 16 13:52:05 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 16 Feb 2005 13:52:05 +0100 Subject: Notification issues In-Reply-To: References: Message-ID: <421341F5.1060907@op5.se> Michael Medin wrote: > Hi, > > I tried this but it needed to be run as root so should I a+s and chown > the file to root or is there some better (as in more secure) way to > handle it ? The paranoid way of setting suid root on a program goes as follows; chmod 000 check_icmp chown root:nagios check_icmp chmod 710 check_icmp > Root suid sounds dangerous to me... > That depends on the program having the honor. For check_icmp, it's really quite safe. check_icmp obtains the raw socket prior to parsing any input at all and then immediately drops privileges (in case it isn't run by root in the first place). During run-time it implements a whitelist of what kind of network retrieved responses it will handle, copies nothing of it anywhere (no remotely triggered buffer overflows) and doesn't ever point beyond packet boundaries (no harmless sigsegv's either). The only way anyone can cause it to sigsegv is by injecting bogus but carefully calculated packets in kernel memory and then make the kernel believe it actually arrived on the socket assigned to whatever pid check_icmp might have. This would require a fairly extensive kernel rewrite and root privileges. Even then the sigsegv would be due to a read-only request on out-of-bounds memory (i.e. non-exploitable). I believe I have commented on the security features in the code so that others may find it and comment on it easily (and so that no idiot will remove them should he decide to improve on it). -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Wed Feb 16 14:55:51 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed, 16 Feb 2005 08:55:51 -0500 (EST) Subject: Can I create my own macros?? In-Reply-To: <3201.202.90.128.27.1108569654.squirrel@mail.pregi.net> References: <3201.202.90.128.27.1108569654.squirrel@mail.pregi.net> Message-ID: On Wed, 16 Feb 2005 matato at pregi.net wrote: > Hi, > I've installed nagios and used jabber as its chatlert notification. What > I did was to pipe the different macros to a perl script that I made such > that the script will do the chat alert thing. > The script named jabberalert.pl looks like this: > > #!/usr/local/bin/perl > use warnings; > use strict; > > use Notice; > our @array; > our $contact = shift @ARGV; > > while(){ > push @array, $_; > } > > > my $alert = new Notice; > $alert->contact_jabber('myaccount at jabber.server'); > $alert->message('Nagios', "@array"); > $alert->jabber; > > > The command definition for chatalert looks like this: > define command{ > command_name hostchatalert > command_line /usr/bin/printf "HOST $HOSTSTATE$!!!\n\nHost: > $HOSTNAME$($HOSTALIAS$)\nAddress: $HOSTADDRESS$\nLastCheck: $DATETIME$\n\nAlert Message:\n $OUTPUT$" | jabberalert.pl > } > > For now, the script works fine with a hard coded contact_jabber. But what > I wanted to do is to use a variable in place of that contact_jabber, let's > say:$alert->contact_jabber("$contact"); > > Upon reading the manual of the macros, I found out that the Email and > pager really exist. Is it possible if I could just create a jabber entry > in the contacts.cfg like that of the email and pager so that I can use the > $CONTACTJABBER$ in my command definition of chatalert like this: > define command{ > command_name hostchatalert > command_line /usr/bin/printf "HOST $HOSTSTATE$!!!\n\nHost: > $HOSTNAME$($HOSTALIAS$)\nAddress: $HOSTADDRESS$\nLastCheck: $DATETIME$\n\nAlert Message:\n $OUTPUT$" | jabberalert.pl > $CONTACTJABBER$} > > and change my perl script such that these line: > $alert->contact_jabber('myaccount at jabber.server'); > > will look like this. > my $contact = shift @ARGV; > $alert->contact_jabber("$contact"); > > > Or do you have any other idea?? > > thanks. > You cannot make your own macros - except for the $USERn$ and $ARGn$ macros However - you can create a nagios contact for the jabber account and use $CONTACTEMAIL$ printf .... | jabberalert $CONTACTEMAIL$ -- -sg ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From prandal at herefordshire.gov.uk Wed Feb 16 14:57:40 2005 From: prandal at herefordshire.gov.uk (Randal, Phil) Date: Wed, 16 Feb 2005 13:57:40 -0000 Subject: =?iso-8859-1?Q?RE=3A_=5BNagios-users=5D_NSClient++_=28Early_=DF?= =?iso-8859-1?Q?eta_release=29?= Message-ID: <86144ED6CE5B004DA23E1EAC0B569B580465618E@isabella.herefordshire.gov.uk> We already have nrpe_nt (http://www.miwi-dv.com/nrpent/ ) with its own ability to run "plugins". It also talks SSL if you want any hints on how to do it. I'd love to see a single program with the combined functionality of nsclient, nrpe_nt, and your own enhancements. Cheers, Phil ---- Phil Randal Network Engineer Herefordshire Council Hereford, UK _____ From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Michael Medin Sent: 15 February 2005 11:38 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] NSClient++ (Early ?eta release) Hi, I just spent some time adding a project on source forge (http://sourceforge.net/projects/nscplus) for a program I wrote about a year ago. The program is a simple NSClient clone written in C++ for W32 (obviously). It has most of the feature of NSClient (at least I think so). Some of the features are untested and to put it plainly I haven't used the program nor NSClient for over a year and don't even recall exactly the status of things. But I promised I would release it as open source a few months back. Unfortunately the process took a bit more time than I thought but here it is. The main difference between NSClient and NSClient++ is; 1, It is modularized and has plug-in support 2, It is written in C++ and should (haven't really looked into it though) be fairly lightweight. It is also a straight W32 API application meaning it does not have any third party dependencies (apart from STLPort which is statically linked, and can be removed as MS STL works just as fine) like MFC etc. 3, It also features (though this is as of yet unsupported, as I haven't written any *nix client yet) a Windows EventLog Checker. 4, I think it should be compatible with most NT-base (as it uses threads, mutexes and such w9x might be off?) versions of Windows. (NSClient might have been this but I had a lot of problems with PDH library dependences). The modularization is in the form of DLLs that are loaded on start-up and have a pretty simple and straight forward API. Thus it should make it quite simple to write a module that does pretty much anything if there is any interest. (Also as modules are external they can be provided as third party extensions as well as toggled off to provide a minimalist resource footprint) Future plans are (if there is an interest): Modules for: * SSL (need to read up on the subject first). * Event log (already there but not finished). * Scripting support (would be I think simple to allow scripts to be written in some language and executed (much like Nagios). * Passive checking (is this really useful, haven't ever used it myself) But the big question is: is there any need for this? A year ago I wrote it because NSClient broke our exchange server. And a few weeks ago I refactored parts of it to support modules and wrote a module for the event log (because I wanted to check the windows event log). But I think that SNMP is much simpler and works better in mixed environments. So personally I don't really see much demand for a "NSClient:ish" plug-in but I don't really know. Secondly there is NC_net (which I personally am not to keen on as I dislike the whole .NET concept, but that's a passing issue). So is there an interest? Should I continue to write this (apart from the event log monitoring module that I need). I would like to get feedback on this so I know what to do about it, but regardless of that issue the program will become "production stable" and get an event log as that is what I need. As for when to expect anything from this project? As of now (well my SF skills broke everything) the project should (in extreme theory) be a drop in replacement for NSClient barring two (IIRC) features (I think it was file age and something more along those lines). But proc, service, mem, disk, uptime, version, etc is there. I will spend the next weekend and some spare time working on this (don't want to do to much of this during work hours as we have a tight schedule now, with a deploy of a few new servers) so perhaps Monday for a "production version" (expect bugs but should be stable). This includes the Event log plug-in (with a client). Something to test and feel it out will be available tonight (GMT+1). >From this point on it all depends on the interest and/or feedback from testers and ideas. BTW; I just noticed that the zip file on SF was broken (don't really know why) so you have to wait a few hours (we are talking something along the lines of 18:00-19:00 GMT when I get home) before you can try it. I also noticed that the CVS only had directories in it so Ill have to check about that too, my 1337 SourceForge skillz are not what they should be I suppose but this is pretty much the first time in years I post to SF :) Regards, Michael Medin Direkt: 08-410 052 42 Mobil: 0733-35 55 42 E-mail: michael.medin at altcom.se Internet: WWW.ALTCOM.SE ALTCOM AB SEGELB?TSV?GEN 2, 11264 STOCKHOLM TELEFON: 08-7 300 300 FAX: 08-7 300 305 EMAIL: INFO at ALTCOM.SE INTERNET: WWW.ALTCOM.SE This message contains information that may be privileged or confidential and is the property of the Altcom AB. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify me immediately and delete all copies of this message. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sghosh at sghosh.org Wed Feb 16 15:09:15 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed, 16 Feb 2005 09:09:15 -0500 (EST) Subject: MySQL plugin In-Reply-To: References: Message-ID: No - the plugin links to the client libs. so you need to have -shared and -client at the very least installed locally. -sg On Wed, 16 Feb 2005, Aaron Carr wrote: > Understood. > > One final question about the plugin. Once built, is it transportable? > Meaning...if I build it on the database host that has the MySQL RPMs > installed, can I then move the check_mysql binary over to my Nagios > host that does NOT have MySQL installed on it (The two hosts are the > same build/version of Linux)? > > Aaron > > > On Tue, 15 Feb 2005 23:36:05 -0500 (EST), Subhendu Ghosh > wrote: >> >> Need the -devel rpms with the header files ;) >> >> On Tue, 15 Feb 2005, Aaron Carr wrote: >> >>> I've been reading through the mailing list archives about this, and I >>> saw a post that stated "The mysql plugin will automatically build if >>> you compile the plugin package on a machine that has the mysql >>> libraries installed." >>> >>> I know it didn't build for me, and I do have MySQL installed and running. >>> >>> The following rpms are installed. >>> >>> MySQL-client-4.1.9-0 >>> perl-DBD-MySQL-2.9003-4 >>> MySQL-server-4.1.9-0 >>> MySQL-shared-4.1.9-0 >>> MySQL-Max-4.1.9-0 >>> >>> Which one(s) am I missing to get the plugin to compile? >>> >>> Thanks in advance. >>> >>> Aaron >>> >> -- ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Carsten.Schmitz at aegon.com Wed Feb 16 15:13:49 2005 From: Carsten.Schmitz at aegon.com (Schmitz, Carsten) Date: Wed, 16 Feb 2005 15:13:49 +0100 Subject: Can someone have a look please? Message-ID: <49977F7CEA035C46A2D47108CE0F032FF74C1F@ANGELIA.aegon.com> > Just plain bullshit. We have one that I'm trying to make OSS at the > moment (it will be, someday). Weird. One part of my schizophrenic soul says that this will be a great thing. The other part is hiding behind the Hypocalamus, fearing that folks who have up to now left their hands off my Nagios config will suddenly be able to piece things together with mouse clicks, and will set it up so it pages me at night because some puny Windows box BSOD'ed over sol.exe ;) Seriously: Looking forward to seeing that software one day. Cheers, Carsten -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Andreas Ericsson Sent: Wednesday, January 26, 2005 12:33 PM To: Stephan Janosch Cc: Nagios Users List Subject: Re: [Nagios-users] Can someone have a look please? Stephan Janosch wrote: > Schmitz, Carsten wrote: > >> Hi Stefan, >> >> Its probably just the weird way my brain is wired ;) but if I imagine >> for a second knowing nothing about Nagios (okay, I don't know much >> anyway ;) then I'd have my difficulties with the pic and would start >> digging for a textual representation. >> >> Some ideas maybe: >> >> - the arrows could have a text in the middle of them, pointing out >> what actually happens. And include file names. Like this: >> PLUGIN --- is defined in ---> COMMAND DEFINITION --- is >> used to check ---> SERVICE >> (checkcommands.cfg) >> >> - maybe it could also be beneficial to make graphically clear that >> hostgroups are containers for hosts? Like having a few boxes for hosts >> pointing to a common hostgroup. >> >> Host1 Host2 Host3 [...] >> | | | | >> --------------------------- >> | Hostgroup 1 | >> --------------------------- >> >> Or even use simplified real life names, i.e. like this: >> >> Oracle Sybase Postgresql [...] >> | | | | >> --------------------------------- >> | Hostgroup DATABASE BOXES | >> --------------------------------- >> >> Exactly the same goes for contacts / contactgroups I guess. >> >> - In any case, a textual explaination should be nearby, on the same >> page or such. >> >> Just my $0.02 (oder, meine zwei Eurocent :) >> >> Cheers, >> Carsten >> >> > > > This image is firstly made for an presentation. You are right, there > must be some explanation. In case of the presentation, my oral > explaination will clear it up. This image is more an additional helper. > > The image shows also another fact. You have quiet a lot of arrows. If > you want to do a config software for nagios, you have to implement all > these arrows. I think that amount of work prevents the existence of a > full (open source) featured config solution. > Just plain bullshit. We have one that I'm trying to make OSS at the moment (it will be, someday). The only thing not implemented so far (although correctly interpreted at parse-time) is the hostgroup for host substitution where that can be made, although I expect that to be a very small change for a rainy day. > Danke d?r die Eurocent. *fg* > > Stephan > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk > being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From David.Andrzejewski at oeconnection.com Wed Feb 16 15:26:22 2005 From: David.Andrzejewski at oeconnection.com (Andrzejewski, David) Date: Wed, 16 Feb 2005 09:26:22 -0500 Subject: Passive Checks with Active Checks Enabled Message-ID: I know this question has been asked about a million times on this list. After spending about an hour searching and trying to find a solution that works, I've been unable to make this behave like I want. I'm really hoping that someone on this list has actually been able to make this work. We're running version 1.2. We have about 700 total checks. 70 of them are passive checks. I want to leave active service checks enabled on these services so that the tactical overview screen isn't quite as confusing (some people tend to assume that if it is critical, but says "disabled", it's okay). Here's the service template I'm using: # Passive check service definition template define service{ name passive-service-notdisabled active_checks_enabled 1 passive_checks_enabled 1 parallelize_check 1 obsess_over_service 1 # check_freshness 0 ; This gets enabled on a per-service basis notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 register 0 } And here's the service I have defined: define service{ use passive-service-notdisabled ; Name of service template to use host_name TEST-HOST service_description TEST-IGNORE is_volatile 1 check_freshness 1 freshness_threshold 60 check_period none max_check_attempts 1 normal_check_interval 5 retry_check_interval 2 contact_groups dev-group notification_interval 70 notification_period 24x7 notification_options w,c,r,u check_command check_fresh_crit } Now, as far as I know, this should never do an active check, but should give me a critical after one minute if it does not receive a passive check. I'm not getting this critical. Has anyone been able to make this work, or am I simply doing something wrong? Feel free to shun me if I missed something in my searches. :) - Dave ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jpiszcz at servervault.com Wed Feb 16 19:35:45 2005 From: jpiszcz at servervault.com (Justin Piszcz) Date: Wed, 16 Feb 2005 13:35:45 -0500 Subject: SNMP_CPU Error With Dual CPU Systems? Message-ID: On two identical system setups (software wise), on one, I have this problem with a box that has two CPUs: Under Status Details for Host: machine_name SNMP_CPU UNKNOWN 2005-02-16 18:31:31 339d 15h 33m 17s 3/3 CPU usage not reported by agent [Microsoft:informant] On the other machine with a SINGLE CPU, it works fine: SNMP_CPU OK 2005-02-16 18:34:35 0d 0h 4m 17s 1/3 CPU Ok (99% idle) Does anyone know if boxes with more than 1 CPU (physical (not just HT)) are supported via SNMP+NAGIOS? Thanks! ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Wed Feb 16 19:40:42 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed, 16 Feb 2005 13:40:42 -0500 (EST) Subject: SNMP_CPU Error With Dual CPU Systems? In-Reply-To: References: Message-ID: On Wed, 16 Feb 2005, Justin Piszcz wrote: > On two identical system setups (software wise), on one, I have this > problem with a box that has two CPUs: > > Under Status Details for Host: machine_name > > SNMP_CPU > > UNKNOWN 2005-02-16 18:31:31 339d 15h 33m 17s > 3/3 CPU usage not reported by agent [Microsoft:informant] > > > On the other machine with a SINGLE CPU, it works fine: > > SNMP_CPU > > OK 2005-02-16 18:34:35 0d 0h 4m 17s 1/3 CPU Ok > (99% idle) > > > Does anyone know if boxes with more than 1 CPU (physical (not just HT)) > are supported via SNMP+NAGIOS? > > Thanks! > which plugin version and which agent software? -- -sg ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jpiszcz at servervault.com Wed Feb 16 20:04:06 2005 From: jpiszcz at servervault.com (Justin Piszcz) Date: Wed, 16 Feb 2005 14:04:06 -0500 Subject: SNMP_CPU Error With Dual CPU Systems? Message-ID: I am actually partially responsible for this machine, I am new to NAGIOS, the version of NAGIOS being used is NAGIOS 1.0. How would I find the plug-in information? Grepping through the nagios root directory, I see the nagios-plugins at version 1.3.0-beta2. Do you have any suggestions as how I could further diagnose this issue? I have tried snmp-walking the devices, one that works, one that does not; I did not see any major differences. I checked the SV_auto_gen.cfg the define service { .. } part for the machine that does not work and the machine that does are identical. Any other suggestions you can think of? Thanks. -----Original Message----- From: Subhendu Ghosh [mailto:sghosh at sghosh.org] Sent: Wednesday, February 16, 2005 1:41 PM To: Justin Piszcz Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] SNMP_CPU Error With Dual CPU Systems? On Wed, 16 Feb 2005, Justin Piszcz wrote: > On two identical system setups (software wise), on one, I have this > problem with a box that has two CPUs: > > Under Status Details for Host: machine_name > > SNMP_CPU > > UNKNOWN 2005-02-16 18:31:31 339d 15h 33m 17s > 3/3 CPU usage not reported by agent [Microsoft:informant] > > > On the other machine with a SINGLE CPU, it works fine: > > SNMP_CPU > > OK 2005-02-16 18:34:35 0d 0h 4m 17s 1/3 CPU Ok > (99% idle) > > > Does anyone know if boxes with more than 1 CPU (physical (not just HT)) > are supported via SNMP+NAGIOS? > > Thanks! > which plugin version and which agent software? -- -sg ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From psbourgeau at mpccorp.com Wed Feb 16 20:34:12 2005 From: psbourgeau at mpccorp.com (Paul Bourgeau) Date: Wed, 16 Feb 2005 12:34:12 -0700 Subject: Custom Counters with SQL Message-ID: <2638AB7E1672B842901B0B49421B87DF0FCD1E@mpc00email3.micronpc.com> I am trying to set up some custom SQL counters to pull from Performance monitor and I keep getting a 0 value. Even when I run the command from the command line and I still get a value of 0. Can anyone give me a hand? Thanks, Paul Here's what I have so far: checkcommands.cfg define command{ command_name check_mvagent_SQL_DB_Size command_line $USER1$/check_nt -H $HOSTADDRESS$ -v COUNTER -l "\\SQLServer:Datadases(_Total)\\Data File(s) Size(KB)","Total Database Size: %.f" -w $ARG1$ -c $ARG2$ -s $ARG3$ } services.cfg # SQL DBase Size check_mvagent_SQL_DB_Size ##############TEST############# define service{ use notify-service ; Name of service template to use host_name SQLserver service_description TESTING - SQL Dbase Size is_volatile 0 check_period 24x7 max_check_attempts 5 normal_check_interval 1 retry_check_interval 1 contact_groups group-statuslog notification_interval 30 notification_period 24x7 notification_options c,w,u,r check_command check_mvagent_SQL_DB_Size!85!95!passwd } Disclaimer: 16/2/2005 MPC Computers is providing the following information in compliance with federal regulations: MPC Computers, LLC 906 E. Karcher Road Nampa, Idaho 83687 1-888-224-4247 http://www.mpccorp.com To discontinue receiving e-mail communications from MPC in the future, please go to: http://www.mpccorp.com/email/manage.html and follow the instructions. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From psbourgeau at mpccorp.com Wed Feb 16 22:52:05 2005 From: psbourgeau at mpccorp.com (Paul Bourgeau) Date: Wed, 16 Feb 2005 14:52:05 -0700 Subject: Custom Counters with SQL Message-ID: <2638AB7E1672B842901B0B49421B87DF0C2585@mpc00email3.micronpc.com> Sorry, I fat fingered. Misspelled database and was missing a space between Size and (KB). Thank You, Paul Bourgeau Ph: 262-523-3300 x60279 Fx: 208-898-2371 psbourgeau at mpccorp.com -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Paul Bourgeau Sent: Wednesday, February 16, 2005 1:34 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Custom Counters with SQL I am trying to set up some custom SQL counters to pull from Performance monitor and I keep getting a 0 value. Even when I run the command from the command line and I still get a value of 0. Can anyone give me a hand? Thanks, Paul Here's what I have so far: checkcommands.cfg define command{ command_name check_mvagent_SQL_DB_Size command_line $USER1$/check_nt -H $HOSTADDRESS$ -v COUNTER -l "\\SQLServer:Datadases(_Total)\\Data File(s) Size(KB)","Total Database Size: %.f" -w $ARG1$ -c $ARG2$ -s $ARG3$ } services.cfg # SQL DBase Size check_mvagent_SQL_DB_Size ##############TEST############# define service{ use notify-service ; Name of service template to use host_name SQLserver service_description TESTING - SQL Dbase Size is_volatile 0 check_period 24x7 max_check_attempts 5 normal_check_interval 1 retry_check_interval 1 contact_groups group-statuslog notification_interval 30 notification_period 24x7 notification_options c,w,u,r check_command check_mvagent_SQL_DB_Size!85!95!passwd } Disclaimer: 16/2/2005 MPC Computers is providing the following information in compliance with federal regulations: MPC Computers, LLC 906 E. Karcher Road Nampa, Idaho 83687 1-888-224-4247 http://www.mpccorp.com To discontinue receiving e-mail communications from MPC in the future, please go to: http://www.mpccorp.com/email/manage.html and follow the instructions. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=ick _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From g.vickers at qut.edu.au Thu Feb 17 00:19:01 2005 From: g.vickers at qut.edu.au (Greg Vickers) Date: Thu, 17 Feb 2005 09:19:01 +1000 Subject: Running Nagios 1.2 on RH EL3 - FIXED! In-Reply-To: <1108576108.26432.373.camel@seki.nac.uci.edu> References: <42118333.6080108@qut.edu.au> <4212AE06.3000501@qut.edu.au> <4212BA83.1070907@qut.edu.au> <559e3cb605021519412662e187@mail.gmail.com> <4212C41B.5040808@qut.edu.au> <55841.63.227.74.41.1108526759.squirrel@webmail.stinkweasel.net> <4212D4B0.3070800@qut.edu.au> <1108576108.26432.373.camel@seki.nac.uci.edu> Message-ID: <4213D4E5.5070805@qut.edu.au> Really? I didn't think that $SERVICESTATEID:hostname:servicename$ macros were available in Nagios 1.x??? In my situation I am using check_cluster, not check_cluster2. Passing that long a line to check_cluster was causing the segfault. Greg Dan Stromberg wrote: > UCI/NACS/DCS is using the check_cluster2 with nagios 1.2 without > segfaults. > > On Wed, 2005-02-16 at 15:05 +1000, Greg Vickers wrote: > >>Ahhahaha. AHHAHAAHAHA. Cue user error, aka POBKAC... >> >>After compiling with --enable-DEBUG(0,1,2) and attaching gdb to this new >>executable I find: >>(gdb) bt >>#0 0x007366d6 in strncpy () from /lib/tls/libc.so.6 >>#1 0x08059906 in get_raw_command_line ( >> cmd=0x9591300 >>"check_service_cluster!CA-R203b!31!32!$SERVICESTATEID:CA-R203b-PC01:Lab >>PC available$,$SERVICESTATEID:CA-R203b-PC02:Lab PC >>available$,$SERVICESTATEID:CA-R203b-PC03:Lab PC >>available$,$SERVICESTATEID:CA-"..., raw_command=0x2d41433a
>0x2d41433a out of bounds>, buffer_length=858796626) at utils.c:1277 >> >>Gee, that looks like a cluster check service command for Nagios 2.0... >>and I'm running a Nagios executable 1.2... gosh could be a buffer >>overflow! >> >>I had converted all my config files to 2.0 and then regressed them to >>1.2 (a lot of host names had been updated) and missed the cluster check >>services... duh. >> >>Sorry for the hundreds of emails and thanks for the replies and suggestions! >> >>Greg >> >>C. Bensend wrote: >> >>>>I've seen the same behavior using binaries compiled from source and from >>>>rpm packages. >>>> >>>>I've removed the use of any plugins (as well as check_nagios in cgi.cfg) >>>>and Nagios still fails at the same point. >>> >>> >>>I haven't followed every single email in this thread, so apologies if >>>this has already been asked... >>> >>>There aren't any resource limits on the account you're running Nagios >>>as that might be kicking in, are there? Open files? Memory limits? >>>Disk quotas? What groups is the nagios user in? What's the output >>>of 'ulimit -a'? >>> >>>No selinux stuff enabled? >>> >>>Benny >>> >>> >> -- Greg Vickers Lab Monitor Project Manager Teaching and Learning Support Services Information Technology Services Queensland University of Technology email: g.vickers at qut.edu.au phone: (07) 3864 8276 mobile: 0416 001 674, SD #6 6147 CIROS code: 00213J ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jgefaell at netblue.com Thu Feb 17 02:35:41 2005 From: jgefaell at netblue.com (Jon Gefaell) Date: Wed, 16 Feb 2005 17:35:41 -0800 Subject: check_command in Nagios 2 no longer allows "Raw" Command Line?? Message-ID: I'm working to try to port my existing nagios system(s) to nagios V.2. I'm well along and iteratively addressing problems a nagios -v nagios.cfg complains about. I've found a very painful difference, option 3.) "Raw" Command Line is no longer available! So, I've got a thousand (or so) http checks which all use this method. Different parameters are required for each check command. Using this option has allowed me to create simple definitions for these commands. Doing it the 'new'(?) way would require me to come up with a unique and descriptive label for each (of over 1,000) service, then chain those to the checkcommands.cfg with a unique stanza for each one! That's .... Well I don't want to contemplate it. Not only is the existing conversion tremenedously difficut, but adding services is daunting as well. Is there something I'm missing? Thanks so much! -JG ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From brett.stevens at hubbub.com.au Thu Feb 17 05:50:18 2005 From: brett.stevens at hubbub.com.au (Brett Stevens) Date: Thu, 17 Feb 2005 15:50:18 +1100 Subject: Service status not resetting Message-ID: <60736F697E66E542B9672458913B91150C0279@TOTO.oz.hubbub.com.au> Hi. Ive only just started to use nagios and so far it has been a great system. Ive configured a plugin check_rrd_data to check rrds created by cacti. This seems to be working well but if a service goes to critical it never returns. For example server x cpu0 util goes to 99.9999 for a few minutes I get a critical showing in the gui and an email. This is exactly what I would expect server x Down Date duration message CPU Util CRITICAL: 99.9999 however when it comes back on line I get the same except the message will show a good value such as CPU OK: 25.99 but the gui shows the host as still down. I think this shows that the plugin is working but I may have screwed up the server config or the service config. This behaviour exists if a server is non contactable as well and shows the same behaviour in the host detail cgi Service config for the example (sanitised) define service{ use generic-service host_name problem_server service_description CPU0 Utilization check_command check_rrd_data!$USER3$/grandma_cpudpc_71.rrd !cpuProcessor!50!70!CPU } Generic service def define service{ name generic-service active_checks_enabled 1 ; Active service checks are enabled passive_checks_enabled 1 ; Passive service checks are enabled/accepted parallelize_check 1 ; Active service checks should be parallelized obsess_over_service 1 ; We should obsess over this service (if necessary) check_freshness 0 ; Default is to NOT check service 'freshness' check_period 24x7 notifications_enabled 1 ; Service notifications are enabled event_handler_enabled 1 ; Service event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts max_check_attempts 3 ; Number of times ito check before sending an alert. normal_check_interval 5 ; Check the service every 5 mins retry_check_interval 1 ; Time to wait before scheduling a re-check of a service notification_interval 5 ; The number of "time units" to wait before re-notifying a contact that this service is still in a non-OK state.Time units are minutes notification_period 24x7 notifications_enabled 1 ; Enable notifications contact_groups Win32-Admins register 0 } host def define host{ host_name problem_server alias problem_server address www.xxx.yyy .zzz use generic-win32 parents vLan3,vLan4 } generic host def define host{ name generic-win32 check_command check_http max_check_attempts 5 process_perf_data 0 retain_nonstatus_information 0 notification_interval 30 notification_period 24x7 notification_options d,u,r contact_groups Win32-Admins notifications_enabled 1 ; Host notifications are enabled event_handler_enabled 1 ; Host event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! } Ive probably screwed up a definition somewhere as I have been mucking around a bit to try different config layouts. We have quite a few servers and gear to montior Any help would be greatly apreciated. thanks in advance Brett Stevens -------------- next part -------------- An HTML attachment was scrubbed... URL: From Ross.Hosman at chartercom.com Thu Feb 17 06:01:49 2005 From: Ross.Hosman at chartercom.com (Hosman, Ross) Date: Wed, 16 Feb 2005 23:01:49 -0600 Subject: Web Interface problem Message-ID: <2EF66C501EE2964A995C473CE72A0F31011F018F@kstlmexc06.CORP.CHARTERCOM.COM> One thing we have noticed is in the status summary page when we have added new hosts that when you keep refreshing that page the hosts/alerts dissapear and go to no matching hosts found if in a new hostgroup. Any ideas on why this happeneds? Ross Hosman HSD Administrator ross.hosman at chartercom.com O: 314-543-5823 C: 314-898-3381 Y!: rosshosman ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From r_jai_ganesh at yahoo.com Thu Feb 17 07:45:16 2005 From: r_jai_ganesh at yahoo.com (Jai Ganesh) Date: Thu, 17 Feb 2005 06:45:16 +0000 (GMT) Subject: Configuration files ?? In-Reply-To: <60736F697E66E542B9672458913B91150C0279@TOTO.oz.hubbub.com.au> References: <60736F697E66E542B9672458913B91150C0279@TOTO.oz.hubbub.com.au> Message-ID: <20050217064516.39139.qmail@web52709.mail.yahoo.com> Hello Guys, I've just installed Nagios and i have trouble (configuration files) getting it to work Nagios version : 2.x (CVS) OS : Fedora2 1. Can anyone list me the configuration files to get nagios working (i.e, i need all the configuration files + examples ? [http://demo.square-box.com/hostextinfocfg.htm -> is for nagios 1. version] [ http://nagios.sourceforge.net/docs/2_0/xodtemplate.html ] doesn't tell the configuration files.. I get this error when clicking the links in the left : Whoops! Error: Could not read object configuration data! Here are some things you should check in order to resolve this error: 1. Verify configuration options using the -v command-line option to check for errors. 2. Check the Nagios log file for messages relating to startup or status data errors. 3. Make sure you've compiled the main program and the CGIs to use the same object data storage options (i.e. default text file or template-based file). 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. and even trying to restart nagios gives some error, i guess something wrong in the configuration part. http://nagios.sourceforge.net/docs/2_0/xodtemplate.html doesn't work. Please help ___________________________________________________________ ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Feb 17 09:28:38 2005 From: ae at op5.se (Andreas Ericsson) Date: Thu, 17 Feb 2005 09:28:38 +0100 Subject: check_command in Nagios 2 no longer allows "Raw" Command Line?? In-Reply-To: References: Message-ID: <421455B6.6060307@op5.se> Jon Gefaell wrote: > I'm working to try to port my existing nagios system(s) to nagios V.2. > > I'm well along and iteratively addressing problems a nagios -v > nagios.cfg complains about. > > I've found a very painful difference, option 3.) "Raw" Command Line is > no longer available! > > So, I've got a thousand (or so) http checks which all use this method. > Different parameters are required for each check command. Using this > option has allowed me to create simple definitions for these commands. > > Doing it the 'new'(?) way would require me to come up with a unique and > descriptive label for each (of over 1,000) service, then chain those to > the checkcommands.cfg with a unique stanza for each one! > > That's .... Well I don't want to contemplate it. Not only is the > existing conversion tremenedously difficut, but adding services is > daunting as well. Is there something I'm missing? > Probably. Are you aware of the fact that you can pass an arbitrary amount of parameters to a single check_command simply by omitting the separating !. A "raw" command line would then look as such; check_http_raw!--ssl --url=/some-url --port=8080 With a command definition of; define command { command_name check_http_raw command_line check_http -H $HOSTADDRESS$ $ARG1$ } To quickly change it, I would suggest using something along these lines; sed -i 's/\(check_command[\t ]*\)"check_http\([^"]*\)"/\1check_http_raw\2/ services.cfg Mind the linebreaks, and make sure you make a backup. I haven't tested the above line. > Thanks so much! > You're welcome. > -JG > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Feb 17 09:31:35 2005 From: ae at op5.se (Andreas Ericsson) Date: Thu, 17 Feb 2005 09:31:35 +0100 Subject: Notification issues In-Reply-To: <1108577714.26432.389.camel@seki.nac.uci.edu> References: <421341F5.1060907@op5.se> <1108577714.26432.389.camel@seki.nac.uci.edu> Message-ID: <42145667.1010903@op5.se> Dan Stromberg wrote: > On Wed, 2005-02-16 at 13:52 +0100, Andreas Ericsson wrote: > >>Michael Medin wrote: >> >>>Hi, >>> >>>I tried this but it needed to be run as root so should I a+s and chown >>>the file to root or is there some better (as in more secure) way to >>>handle it ? >> >>The paranoid way of setting suid root on a program goes as follows; >> >>chmod 000 check_icmp >>chown root:nagios check_icmp >>chmod 710 check_icmp > > > Do you mean chmod 4710 check_icmp? > Naturally. Sorry, and thank you for catching it. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Feb 17 09:30:57 2005 From: ae at op5.se (Andreas Ericsson) Date: Thu, 17 Feb 2005 09:30:57 +0100 Subject: Web Interface problem In-Reply-To: <2EF66C501EE2964A995C473CE72A0F31011F018F@kstlmexc06.CORP.CHARTERCOM.COM> References: <2EF66C501EE2964A995C473CE72A0F31011F018F@kstlmexc06.CORP.CHARTERCOM.COM> Message-ID: <42145641.4040007@op5.se> Hosman, Ross wrote: > One thing we have noticed is in the status summary page when we have added > new hosts that when you keep refreshing that page the hosts/alerts dissapear > and go to no matching hosts found if in a new hostgroup. Any ideas on why > this happeneds? > You have several instances of Nagios running. The nagios 1.x init-script (and 2.x, according to recent sources) is poorly written, so this sometimes happens. > Ross Hosman > HSD Administrator > ross.hosman at chartercom.com > O: 314-543-5823 > C: 314-898-3381 > Y!: rosshosman > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From b00mer at gmx.net Thu Feb 17 11:57:41 2005 From: b00mer at gmx.net (Hendrik "Boomer" Baecker) Date: Thu, 17 Feb 2005 11:57:41 +0100 Subject: NSClient and Teaming LAN Message-ID: <421478A5.4060603@gmx.net> Hi List, I hope someone has this Problem before. I have a M$ Windows 2003 Server with 2 NICs in Teaming mode and just installed the Nagios pnsclient. The Service ist started but I can't get Infos with the check_nt Plugin: ./libexec/check_nt -H 10.215.10.244 -p 1248 -v CLIENTVERSION Socket timeout after 10 seconds On other servers it runs fine even on MS 2003 Servers. Out of the DOS-Box and a netstat -an I can see that the TCP Port is bind to 0.0.0.0 like on my other Servers, start / stop of the service doesn't help, rebooting the system brought no help too. From my Box I can: "telnet localhost 1248" and I am connected. From a neighbor box I can't. Any ideas? Best regards, Hendrik ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From amontibello at gmail.com Thu Feb 17 13:28:50 2005 From: amontibello at gmail.com (Anthony Montibello) Date: Thu, 17 Feb 2005 07:28:50 -0500 Subject: NC_Net - Beta Release of Passive checks V 2.17 Message-ID: This new version of NC_Net incorporates most of the feedback that I have been recieving over the past few weeks. Other than the documentation being rewriten, it also includes several Bug fixes. Some new featchures are also incorperated into this version. Passive checks can be configured using either the Check # or the Check_Nt -v check_name. Both Passive and Active checks can be started or stoped dynamiclly through commands. (If both are stoped you need to restart the service) Startup configuration is recorded into its event log started entry. Some of the bug Fixes include: Installing to Non-Default location Fixed- now NC_Net check the registy for the installed location. Event Log had some issues with the filters being parsed correctly -Fixed Some average per X Performance counters were returning 0 instead of correct Value. - Fixed You can now download the newest version from either nagios_exchange or the official web site www.shatterit.com/NC_Net ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From b00mer at gmx.net Thu Feb 17 15:10:17 2005 From: b00mer at gmx.net (Hendrik Baecker) Date: Thu, 17 Feb 2005 15:10:17 +0100 Subject: NSClient and Teaming LAN In-Reply-To: <421478A5.4060603@gmx.net> References: <421478A5.4060603@gmx.net> Message-ID: <4214A5C9.3060001@gmx.net> Hi List, please forget my mail... problem solved. I hate default enabled options in their Firewall Field for new connections.... Hendrik "Boomer" Baecker schrieb: > Hi List, > > I hope someone has this Problem before. > > I have a M$ Windows 2003 Server with 2 NICs in Teaming mode and just > installed the Nagios pnsclient. The Service ist started but I can't > get Infos with the check_nt Plugin: > > ./libexec/check_nt -H 10.215.10.244 -p 1248 -v CLIENTVERSION > Socket timeout after 10 seconds > > On other servers it runs fine even on MS 2003 Servers. > > Out of the DOS-Box and a netstat -an I can see that the TCP Port is > bind to 0.0.0.0 like on my other Servers, start / stop of the service > doesn't help, rebooting the system brought no help too. > > From my Box I can: "telnet localhost 1248" and I am connected. > From a neighbor box I can't. > > Any ideas? > > Best regards, > Hendrik > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk > being sent to /dev/null > > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ac at itpartner.nu Thu Feb 17 15:18:02 2005 From: ac at itpartner.nu (Anders Christensen) Date: Thu, 17 Feb 2005 15:18:02 +0100 Subject: Upgrading from Nagios 1.3 to 2.0 (or newer) Message-ID: <9370773F5F35CB4281A6C3EC61E3A0CA0F9C3F@itpdk-srv01.itpartner.dom> What do I need to consider before upgradering my Nagios server ? Can I use my previous configuration files (services.cfg, host.cfg etc etc) Or is it better to install Nagios 2.0 (2.0b2) on a different server, and thereby creating af new installation, and then importing the configuration files. can anyone tell me the difference between the configuration files ? All i can find about this, is that i should be easier to administre, but I can see the major difference. Am currently monitoringer around 500 checks, running on somewhere around 100 servers. Is there a new nsclient, or is it still using the nsclient from http://nsclient.ready2run.nl/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From ae at op5.se Thu Feb 17 15:30:48 2005 From: ae at op5.se (Andreas Ericsson) Date: Thu, 17 Feb 2005 15:30:48 +0100 Subject: Upgrading from Nagios 1.3 to 2.0 (or newer) In-Reply-To: <9370773F5F35CB4281A6C3EC61E3A0CA0F9C3F@itpdk-srv01.itpartner.dom> References: <9370773F5F35CB4281A6C3EC61E3A0CA0F9C3F@itpdk-srv01.itpartner.dom> Message-ID: <4214AA98.40208@op5.se> Anders Christensen wrote: > What do I need to consider before upgradering my Nagios server ? > Make sure you can back it up and restore the running copy exactly as it was. > Can I use my previous configuration files (services.cfg, host.cfg etc > etc) > No. You will need to make a couple of changes. The tools at http://oss.op5.se/nagios are useful. Esp. object_config_fix.php and 12to20comments.php (although they require that you have the command line version of php installed). > Or is it better to install Nagios 2.0 (2.0b2) on a different server, and > thereby creating af new installation, and then importing the > configuration files. > This is always the preferrable approach for upgrading/testing, so if you have the opportunity, please go ahead. > can anyone tell me the difference between the configuration files ? All > i can find about this, is that i should be easier to administre, but I > can see the major difference. > contact_groups are moved from hostgroup to host object definition. A couple of nagios.cfg arguments are removed (and some other added, although not necessary for runtime operations). hostgroup-escalations doesn't exist any more, since hostgroup_name can be used in (almost) every host-referencing object. > Is there a new nsclient, or is it still using the nsclient from > http://nsclient.ready2run.nl/ > Funny you should ask. There has been an absolute explosion in nsclient replacement development (comparatively, that is) lately. Michael Medin has a C++-based modularized version which I believe isn't available for download, although it seems highly interesting (I've read the man's code before, and he knows what he's doing). Anthony Montibello has developed the .NET-based NC_Net which has some cool features, although it isn't very compatible with NT4-based platforms and eats an obscene amount of memory (last time I checked). My thoughts on the two is that Anthony's code isn't so well-planned (security-wise, although I'm sure he disagrees with me), but has more features, while Michael has implemented a more stable ground but doesn't support as many functions yet. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From SrvFaucon at cslaval.qc.ca Thu Feb 17 15:31:51 2005 From: SrvFaucon at cslaval.qc.ca (Serveur-Faucon Surveillance) Date: Thu, 17 Feb 2005 09:31:51 -0500 Subject: =?ISO-8859-1?Q?R=E9p.=20:=20Re:=20[Nagios-users]=20host=20down?= =?ISO-8859-1?Q?=20but=20up=20problem?= Message-ID: Hi Andreas, Actually, I think I find the problem. (I am running Nagios 1.2 since you asked) I have only one service for that host that check SNMP uptime. If this service does not work or does not respond, Nagios thinks that the host is down and put it in red. I added the ping service to the same host, and up the host goes. So I guess this "asume to be up" is really just assuming :) --------------------------------------------------- Alexandre Racine - www.gardienvirtuel.com Montr?al, Qu?bec, Canada >>> Andreas Ericsson 2005-02-09 10:37:38 >>> Serveur-Faucon Surveillance wrote: > Hi all, > > I have been using Nagios for quite a while now over 2 years, so I am > pretty familiar with it. > > One of my host recently went to a down state on the network status, > but is actually UP. This is not FAQ F0015 or F0016 related, since the > same command is used by all other hosts (and they are just fine). > > I use the check_host_alive default command to check on hosts status > (yeah I know, I dont use the hip (new, cool) check_icmp from Andreas > Ericsson for now. Later) > Don't know about hip and cool, but you're probably better off without it. "Don't fix it if it ain't broken". > So I went to my console to try a couple of things... ping myhost = > ok! check_ping -H myhost etc etc = ok! (exactly like the > check_host_alive) > > So... my next theory would be to erase everything from that host in > the history, and start over. But before that, is there someone who > actually had something like that? > > There was the bug witch two nagios process could run at the same > time, but that's not it. Thanks! > This can happen properly when the host starts flapping while down and comes out OK on the other end of the flapping. Assuming you aren't running 2.0 with f among your notification_options, ofcourse. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cortez at tiscali.it Thu Feb 17 15:51:28 2005 From: cortez at tiscali.it (Luca Corti) Date: Thu, 17 Feb 2005 15:51:28 +0100 Subject: MSN notifications Message-ID: <1108651889.19287.3.camel@luca> Hello, I'm looking for a way to deliver notifications to MSN contacts. Has anyone ideas on how to do this? thanks Luca ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Feb 17 18:06:43 2005 From: ae at op5.se (Andreas Ericsson) Date: Thu, 17 Feb 2005 18:06:43 +0100 Subject: notification_failure_criteria syntax In-Reply-To: <1108653742.13109.2.camel@penguin> References: <1108653742.13109.2.camel@penguin> Message-ID: <4214CF23.5050200@op5.se> jrichie at bible.edu wrote: > In notification_failure_criteria what do 'd' and 'u' stand for? The > example in the docs shows both in one and I figure that doesn't make > sense if they mean the obvious 'down' and 'up'. > Yes it does, as it excludes UNREACHABLE, which means don't send if a parent host is causing an outage, otherwise just go ahead (sort of). > JSR/ > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Feb 17 18:18:21 2005 From: ae at op5.se (Andreas Ericsson) Date: Thu, 17 Feb 2005 18:18:21 +0100 Subject: check_icmp/check_ping trigger values In-Reply-To: References: Message-ID: <4214D1DD.4030101@op5.se> Bergstr?m Sebastian wrote: > We are using Nagios 1.2 and are evaluating check_icmp as a check_ping > replacement. Nagios is currently monitoring 21 branchoffices with > Cisco switches and routers using 2mBit connections to each site. > > The reason for replacing check_ping is that it produces critical > errors sporadicly. It is pertinent to mention that the critical > errors only occurs during the first checks and therefore does not > send notifications. My mission is to drasticly lower the amount of > errors occuring to an absolute minimum. > > What are the most sensible trigger values to use with check_icmp or > check_ping? Short answer (read archives for longer one); For service checks, these values should work in most networks with normal-to-high load. check_icmp -H $HOSTADDRESS$ -w 200.0,40% -c 500.0,60% -i 200ms max_check_attempts 3 For host checks; # ln -s check_icmp check_host check_host -H $HOSTADDRESS$ -i 0.5s -p 10 -t 20 max_check_attempts 3 check_icmp returns immediately upon any received packet when called as check_host, so it's safe to use a higher packet count and timeout and lower the max_check_attempts accordingly (it won't let nagios sit and wait as check_ping does). Remember that check_icmp must be setuid root to work properly on nearly all linux boxen. > The original Nagios configuration (the same I am using) > are: check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 1 -t > 20 > > My definition of sensible in this case is using a value that is > producing as few errors as possible, when there are no real problems. > Not sure if this is a attainable goal or not since I know that some > equipment drops ICMP packets if they are to busy. > > Any views or comments are appreciated. > > > Best regards, Sebastian Bergstroem > > ---------------------------------------------- Sebastian Bergstroem > Technical coordinator Kunskapsskolan i Sverige AB > sebastian.bergstroem at kunskapsskolan.se > ----------------------------------------------- > > > ------------------------------------------------------- SF email is > sponsored by - The IT Product Guide Read honest & candid reviews on > hundreds of IT Products from real users. Discover which products > truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id396&op=click > _______________________________________________ Nagios-users mailing > list Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please > include Nagios version, plugin version (-v) and OS when reporting any > issue. ::: Messages without supporting info will risk being sent to > /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From emartine at bsd.uchicago.edu Thu Feb 17 19:22:48 2005 From: emartine at bsd.uchicago.edu (Eduardo Martinez) Date: Thu, 17 Feb 2005 12:22:48 -0600 Subject: Nagios 2.0b2 Message-ID: <4214E0F8.8010905@bsd.uchicago.edu> Anyone know why I am getting the following error when trying to start Nagios 2.0b2: Ran the following: /opt/nagios/bin/nagios -v /opt/nagios/etc/nagios.cfg Error: Command 'process-host-perfdata' has already been defined Error: Could not register command (config file '/opt/nagios/etc/nagios_perfparse.cfg', starting on line 19) My install is in /opt/nagios I have, in my - nagios.cfg: host_perfdata_command=process-host-perfdata service_perfdata_command=process-service-perfdata I have, in my - nagios_perfparse.cfg: define command{ command_name process-service-perfdata command_line /opt/nagios/bin/perfparse_nagios_pipe_command.pl /opt/nagios/var/perfdata-service.log "$TIMET$" "$HOSTNAME$" "$SERVICEDESC$" "$OUTPUT$" "$SERVICESTATE$" "$PERFDATA$" } define command{ command_name process-host-perfdata command_line /opt/nagios/bin/perfparse_nagios_pipe_command.pl /opt/nagios/var/var/perfdata-host.log "$TIMET$" "$HOSTNAME$" "$OUTPUT$" "$PERFDATA$" } I used grep recursively (inside /nagios) to find process-host-perfdata and process-service-perfdata commands, I have looked at checkcommands.cfg, and did not find any duplicates. Anyone know what is going on here? Is there something I am missing? Please help. Thank you, -Eduardo ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Millard.Matt at principal.com Thu Feb 17 19:24:38 2005 From: Millard.Matt at principal.com (Millard, Matt) Date: Thu, 17 Feb 2005 12:24:38 -0600 Subject: Acknowledge Event Handler? Message-ID: <6201DF063335254BA0D6AA7053D1011706AD6BED@pfgdsmmbx006.principalusa.corp.principal.com> I it possible to kick off an event handler for an acknowledgement? Basically I want to be able to acknowledge a critical event in Nagios and have it update our Tivoli TEC console as well. I've go the scripted notification to TEC working fine now. I just need to be able to kick off the script whenever this type of event comes through: EXTERNAL COMMAND: ACKNOWLEDGE_SVC_PROBLEM >From what I see in the docs event handlers are only available on state changes? I don't believe that this is considered a state change is it? Any suggestions? Matt -----Message Disclaimer----- This e-mail message is intended only for the use of the individual or entity to which it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended recipient, any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by reply email to Connect at principal.com and delete or destroy all copies of the original message and attachments thereto. Email sent to or from the Principal Financial Group or any of its member companies may be retained as required by law or regulation. Nothing in this message is intended to constitute an Electronic signature for purposes of the Uniform Electronic Transactions Act (UETA) or the Electronic Signatures in Global and National Commerce Act ("E-Sign") unless a specific statement to the contrary is included in this message. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ray.ward at mapfusion.com Thu Feb 17 19:48:18 2005 From: ray.ward at mapfusion.com (Ray Ward) Date: Thu, 17 Feb 2005 13:48:18 -0500 Subject: Acknowledge Event Handler? In-Reply-To: <6201DF063335254BA0D6AA7053D1011706AD6BED@pfgdsmmbx006.principalusa.corp.principal.com> References: <6201DF063335254BA0D6AA7053D1011706AD6BED@pfgdsmmbx006.principalusa.corp.principal.com> Message-ID: <200502171848.j1HImIq10630@qube3.mapfusion.com> You could add a service_notification_command to point to a script of your own, pass it the $NOTIFICATIONTYPE$ macro and if it ="ACKNOWLEDGEMENT" run your other script. Take a look at the notify-by-email command definition in the misccommands.cfg file. Ray, -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Millard, Matt Sent: Thursday, February 17, 2005 1:25 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Acknowledge Event Handler? I it possible to kick off an event handler for an acknowledgement? Basically I want to be able to acknowledge a critical event in Nagios and have it update our Tivoli TEC console as well. I've go the scripted notification to TEC working fine now. I just need to be able to kick off the script whenever this type of event comes through: EXTERNAL COMMAND: ACKNOWLEDGE_SVC_PROBLEM >From what I see in the docs event handlers are only available on state changes? I don't believe that this is considered a state change is it? Any suggestions? Matt -----Message Disclaimer----- This e-mail message is intended only for the use of the individual or entity to which it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended recipient, any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by reply email to Connect at principal.com and delete or destroy all copies of the original message and attachments thereto. Email sent to or from the Principal Financial Group or any of its member companies may be retained as required by law or regulation. Nothing in this message is intended to constitute an Electronic signature for purposes of the Uniform Electronic Transactions Act (UETA) or the Electronic Signatures in Global and National Commerce Act ("E-Sign") unless a specific statement to the contrary is included in this message. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op?k _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Thu Feb 17 19:48:46 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 17 Feb 2005 13:48:46 -0500 (EST) Subject: Acknowledge Event Handler? In-Reply-To: <6201DF063335254BA0D6AA7053D1011706AD6BED@pfgdsmmbx006.principalusa.corp.principal.com> References: <6201DF063335254BA0D6AA7053D1011706AD6BED@pfgdsmmbx006.principalusa.corp.principal.com> Message-ID: On Thu, 17 Feb 2005, Millard, Matt wrote: > > I it possible to kick off an event handler for an acknowledgement? > Basically I want to be able to acknowledge a critical event in Nagios > and have it update our Tivoli TEC console as well. I've go the scripted > notification to TEC working fine now. I just need to be able to kick > off the script whenever this type of event comes through: > > EXTERNAL COMMAND: ACKNOWLEDGE_SVC_PROBLEM > >> From what I see in the docs event handlers are only available on state > changes? I don't believe that this is considered a state change is it? > > Any suggestions? > > Matt Normally acknowledgement can generate a notification message. - use the notification message to launch the script... -sg -- ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ratty at they.org Thu Feb 17 19:58:18 2005 From: ratty at they.org (frank) Date: Thu, 17 Feb 2005 10:58:18 -0800 (PST) Subject: check_icmp/check_ping trigger values In-Reply-To: <4214D1DD.4030101@op5.se> References: <4214D1DD.4030101@op5.se> Message-ID: Is this behavior documented anywhere other than in the source code? I've been grepping thru my copy of nagios-cvs and nagios-plugins-1.4 (which also contain their respective docs) and the only reference I've come across is: plugins/check_icmp.c: else if(!strcmp(progname, "check_host")) { This would seem to be a very important configuration setting. Maybe I just missed it. -frank On Thu, 17 Feb 2005, Andreas Ericsson wrote: > Date: Thu, 17 Feb 2005 18:18:21 +0100 > From: Andreas Ericsson > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] check_icmp/check_ping trigger values > [snip] > > Short answer (read archives for longer one); > For service checks, these values should work in most networks with > normal-to-high load. > check_icmp -H $HOSTADDRESS$ -w 200.0,40% -c 500.0,60% -i 200ms > max_check_attempts 3 > > For host checks; > # ln -s check_icmp check_host > check_host -H $HOSTADDRESS$ -i 0.5s -p 10 -t 20 > max_check_attempts 3 > > check_icmp returns immediately upon any received packet when called as > check_host, so it's safe to use a higher packet count and timeout and lower > the max_check_attempts accordingly (it won't let nagios sit and wait as > check_ping does). > > Remember that check_icmp must be setuid root to work properly on nearly all > linux boxen. > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chienclu at gmail.com Thu Feb 17 20:23:05 2005 From: chienclu at gmail.com (Lu) Date: Thu, 17 Feb 2005 11:23:05 -0800 Subject: Installation of 2.0 -missing /usr/local/nagios/etc Message-ID: <1077d8f0050217112310e04777@mail.gmail.com> Hi, Got some problem on installing 2.0. I have to say the installation procedure in the following URL is excellent. http://nagios.sourceforge.net/docs/2_0/installing.html After I Installed the Binaries and HTML files, I only have 4 directories in /usr/local/nagios bin sbin share var I am missing the /usr/local/nagios/etc I was able to bring up web interface http://monitor/nagios However, when I click on any of item on the left side (i.e. Tactical Overview) I got Error: Could not open CGI config file '/usr/local/nagios/etc/cgi.cfg' for reading! This is redhat ES installation, nothing has been altered after installation of OS. Please advise. -- Best Regards, -lu ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Feb 17 20:26:54 2005 From: marc at ena.com (Marc Powell) Date: Thu, 17 Feb 2005 13:26:54 -0600 Subject: Installation of 2.0 -missing /usr/local/nagios/etc Message-ID: <2B79966571B4B842B9C07E9910E38CE60CA035@mismail.ena.com> > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Lu > Sent: Thursday, February 17, 2005 1:23 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Installation of 2.0 -missing /usr/local/nagios/etc > > Hi, > Got some problem on installing 2.0. > I have to say the installation procedure in the following URL is > excellent. > http://nagios.sourceforge.net/docs/2_0/installing.html > > After I Installed the Binaries and HTML files, > I only have 4 directories in /usr/local/nagios > bin > sbin > share > var > I am missing the /usr/local/nagios/etc > > I was able to bring up web interface > http://monitor/nagios > However, when I click on any of item on the left side (i.e. Tactical > Overview) > I got > Error: Could not open CGI config file '/usr/local/nagios/etc/cgi.cfg' > for reading! > > This is redhat ES installation, nothing has been altered after > installation of OS. > Please advise. The final part of the Installation Docs at http://nagios.sourceforge.net/docs/2_0/installing.html points you to directions for configuring Nagios at http://nagios.sourceforge.net/docs/2_0/config.html. On that page you'll find -- "A sample main configuration file is generated automatically when you run the configure script before compiling the binaries. Look for it either in the distribution directory or the etc/ subdirectory of your installation. When you install the sample config files using the make install-config command, a sample main configuration file will be placed into your settings directory (usually /usr/local/nagios/etc). The default name of the main configuration file is nagios.cfg." -- Marc ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chienclu at gmail.com Thu Feb 17 20:37:13 2005 From: chienclu at gmail.com (Lu) Date: Thu, 17 Feb 2005 11:37:13 -0800 Subject: Installation of 2.0 -missing /usr/local/nagios/etc In-Reply-To: <2B79966571B4B842B9C07E9910E38CE60CA035@mismail.ena.com> References: <2B79966571B4B842B9C07E9910E38CE60CA035@mismail.ena.com> Message-ID: <1077d8f005021711377d82643b@mail.gmail.com> Thanks alot. After make install-config, I am still getting Whoops! Error: Could not open CGI config file '/usr/local/nagios/etc/cgi.cfg' for reading! Should I expect to see a sample page? Does it mean my CGI is not working properly? -lu On Thu, 17 Feb 2005 13:26:54 -0600, Marc Powell wrote: > > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of Lu > > Sent: Thursday, February 17, 2005 1:23 PM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Installation of 2.0 -missing > /usr/local/nagios/etc > > > > Hi, > > Got some problem on installing 2.0. > > I have to say the installation procedure in the following URL is > > excellent. > > http://nagios.sourceforge.net/docs/2_0/installing.html > > > > After I Installed the Binaries and HTML files, > > I only have 4 directories in /usr/local/nagios > > bin > > sbin > > share > > var > > I am missing the /usr/local/nagios/etc > > > > I was able to bring up web interface > > http://monitor/nagios > > However, when I click on any of item on the left side (i.e. Tactical > > Overview) > > I got > > Error: Could not open CGI config file '/usr/local/nagios/etc/cgi.cfg' > > for reading! > > > > This is redhat ES installation, nothing has been altered after > > installation of OS. > > Please advise. > > The final part of the Installation Docs at > http://nagios.sourceforge.net/docs/2_0/installing.html points you to > directions for configuring Nagios at > http://nagios.sourceforge.net/docs/2_0/config.html. On that page you'll > find -- > > "A sample main configuration file is generated automatically when you > run the configure script before compiling the binaries. Look for it > either in the distribution directory or the etc/ subdirectory of your > installation. When you install the sample config files using the make > install-config command, a sample main configuration file will be placed > into your settings directory (usually /usr/local/nagios/etc). The > default name of the main configuration file is nagios.cfg." > > -- > Marc > > -- Best Regards, -lu ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From brianmas at highstream.net Thu Feb 17 21:04:08 2005 From: brianmas at highstream.net (brianmas at highstream.net) Date: Thu, 17 Feb 2005 15:04:08 -0500 Subject: odd problem with check_dns Message-ID: <1108670648.4214f8b8e9ca8@webmail.highstream.net> I am checking a total of 9 servers with a generic check_dns template using nagios 1.2, 4 of the servers respond properly, 5 do not. If I check from command line with libexec/check_dns -H www.yahoo.com -s {hostname} (which should be the same as the checkcommand.cfg command) it works most of the time (it has timed out a few times which I don't see as being a problem) these 5 hosts are in the same host_name line in the services.cfg file. meanwhile ... ok I just tried using check_dig, same results. so weird. I also tried as nagios user to just make sure that worked as well and it did. I'm stumped. any suggestions whatsoever? ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Feb 17 21:31:02 2005 From: marc at ena.com (Marc Powell) Date: Thu, 17 Feb 2005 14:31:02 -0600 Subject: Installation of 2.0 -missing /usr/local/nagios/etc Message-ID: <2B79966571B4B842B9C07E9910E38CE60CA03B@mismail.ena.com> make install-config does install it but it's named cgi.cfg-sample. You need edit it to reflect your environment and rename it. That appears to be a slightly changed process from what I remember from installing 1.x... Also, I do not believe that the example config files are (fully) functional. They just give you examples of various configuration possibilities. -- Marc > -----Original Message----- > From: Lu [mailto:chienclu at gmail.com] > Sent: Thursday, February 17, 2005 1:37 PM > To: Marc Powell > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Installation of 2.0 -missing > /usr/local/nagios/etc > > Thanks alot. > After make install-config, I am still getting > Whoops! > Error: Could not open CGI config file '/usr/local/nagios/etc/cgi.cfg' > for reading! > > Should I expect to see a sample page? > Does it mean my CGI is not working properly? > > -lu > > On Thu, 17 Feb 2005 13:26:54 -0600, Marc Powell wrote: > > > > > > > -----Original Message----- > > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > > admin at lists.sourceforge.net] On Behalf Of Lu > > > Sent: Thursday, February 17, 2005 1:23 PM > > > To: nagios-users at lists.sourceforge.net > > > Subject: [Nagios-users] Installation of 2.0 -missing > > /usr/local/nagios/etc > > > > > > Hi, > > > Got some problem on installing 2.0. > > > I have to say the installation procedure in the following URL is > > > excellent. > > > http://nagios.sourceforge.net/docs/2_0/installing.html > > > > > > After I Installed the Binaries and HTML files, > > > I only have 4 directories in /usr/local/nagios > > > bin > > > sbin > > > share > > > var > > > I am missing the /usr/local/nagios/etc > > > > > > I was able to bring up web interface > > > http://monitor/nagios > > > However, when I click on any of item on the left side (i.e. Tactical > > > Overview) > > > I got > > > Error: Could not open CGI config file '/usr/local/nagios/etc/cgi.cfg' > > > for reading! > > > > > > This is redhat ES installation, nothing has been altered after > > > installation of OS. > > > Please advise. > > > > The final part of the Installation Docs at > > http://nagios.sourceforge.net/docs/2_0/installing.html points you to > > directions for configuring Nagios at > > http://nagios.sourceforge.net/docs/2_0/config.html. On that page you'll > > find -- > > > > "A sample main configuration file is generated automatically when you > > run the configure script before compiling the binaries. Look for it > > either in the distribution directory or the etc/ subdirectory of your > > installation. When you install the sample config files using the make > > install-config command, a sample main configuration file will be placed > > into your settings directory (usually /usr/local/nagios/etc). The > > default name of the main configuration file is nagios.cfg." > > > > -- > > Marc > > > > > > > -- > Best Regards, > -lu ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Sebastian.Bergstroem at kunskapsskolan.se Thu Feb 17 22:16:55 2005 From: Sebastian.Bergstroem at kunskapsskolan.se (=?iso-8859-1?Q?Bergstr=F6m_Sebastian?=) Date: Thu, 17 Feb 2005 22:16:55 +0100 Subject: check_icmp/check_ping trigger values Message-ID: Seems like I've missunderstood something very vital. The difference between service checks and host checks. I honestly don't get it. So far I haven't separated the two but I realise that I should but I'm still not sure how or why. When should I use check_host and when should I use check_icmp? If someone could explain this to me in a simple way I will be most grateful. //Sebastian > -----Original Message----- > From: Andreas Ericsson [mailto:ae at op5.se] > Sent: den 17 februari 2005 18:18 > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] check_icmp/check_ping trigger values > > > Bergstr?m Sebastian wrote: > > We are using Nagios 1.2 and are evaluating check_icmp as a > check_ping > > replacement. Nagios is currently monitoring 21 branchoffices with > > Cisco switches and routers using 2mBit connections to each site. > > > > The reason for replacing check_ping is that it produces critical > > errors sporadicly. It is pertinent to mention that the > critical errors > > only occurs during the first checks and therefore does not send > > notifications. My mission is to drasticly lower the amount > of errors > > occuring to an absolute minimum. > > > > What are the most sensible trigger values to use with check_icmp or > > check_ping? > > Short answer (read archives for longer one); For service > checks, these values should work in most networks with > normal-to-high load. > check_icmp -H $HOSTADDRESS$ -w 200.0,40% -c 500.0,60% -i > 200ms max_check_attempts 3 > > For host checks; > # ln -s check_icmp check_host > check_host -H $HOSTADDRESS$ -i 0.5s -p 10 -t 20 max_check_attempts 3 > > check_icmp returns immediately upon any received packet when > called as check_host, so it's safe to use a higher packet > count and timeout and lower the max_check_attempts > accordingly (it won't let nagios sit and wait as check_ping does). > > Remember that check_icmp must be setuid root to work properly > on nearly all linux boxen. > > > The original Nagios configuration (the same I am using) > > are: check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c > 5000.0,100% -p 1 -t > > 20 > > > > My definition of sensible in this case is using a value that is > > producing as few errors as possible, when there are no real > problems. > > Not sure if this is a attainable goal or not since I know that some > > equipment drops ICMP packets if they are to busy. > > > > Any views or comments are appreciated. > > > > > > Best regards, Sebastian Bergstroem > > > > ---------------------------------------------- Sebastian Bergstroem > > Technical coordinator Kunskapsskolan i Sverige AB > > sebastian.bergstroem at kunskapsskolan.se > > ----------------------------------------------- > > > > > > ------------------------------------------------------- SF email is > > sponsored by - The IT Product Guide Read honest & candid reviews on > > hundreds of IT Products from real users. Discover which > products truly > > live up to the hype. Start reading now. > > http://ads.osdn.com/?ad_ide95&alloc_id396&op=click > > _______________________________________________ > Nagios-users mailing > > list Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please > > include Nagios version, plugin version (-v) and OS when > reporting any > > issue. ::: Messages without supporting info will risk being sent to > > /dev/null > > > > -- > Andreas Ericsson andreas.ericsson at op5.se > OP5 AB www.op5.se > Lead Developer > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide Read honest & > candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Thu Feb 17 22:50:47 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 17 Feb 2005 16:50:47 -0500 (EST) Subject: check_icmp/check_ping trigger values In-Reply-To: References: Message-ID: check_host is a command name that points to some plugin with pre-defined parameters - i.e. there is no plugin call chck_host (that I know of) check_icmp is a plugin Nagios has host checks and service checks. It primarily does service checks using the command defined for the service. If the service check fails (returns unknown or timeout), Nagios performs verifies if the host is up using the command defined for the host. check_icmp as a plugin can be used instead of the check_ping in the check_host command with appropriate arguments. hope this helps. -sg On Thu, 17 Feb 2005, Bergstr?m Sebastian wrote: > Seems like I've missunderstood something very vital. The difference between service checks and host checks. I honestly don't get it. > So far I haven't separated the two but I realise that I should but I'm still not sure how or why. > > When should I use check_host and when should I use check_icmp? > > If someone could explain this to me in a simple way I will be most grateful. > > > //Sebastian > >> -----Original Message----- >> From: Andreas Ericsson [mailto:ae at op5.se] >> Sent: den 17 februari 2005 18:18 >> To: nagios-users at lists.sourceforge.net >> Subject: Re: [Nagios-users] check_icmp/check_ping trigger values >> >> >> Bergstr?m Sebastian wrote: >>> We are using Nagios 1.2 and are evaluating check_icmp as a >> check_ping >>> replacement. Nagios is currently monitoring 21 branchoffices with >>> Cisco switches and routers using 2mBit connections to each site. >>> >>> The reason for replacing check_ping is that it produces critical >>> errors sporadicly. It is pertinent to mention that the >> critical errors >>> only occurs during the first checks and therefore does not send >>> notifications. My mission is to drasticly lower the amount >> of errors >>> occuring to an absolute minimum. >>> >>> What are the most sensible trigger values to use with check_icmp or >>> check_ping? >> >> Short answer (read archives for longer one); For service >> checks, these values should work in most networks with >> normal-to-high load. >> check_icmp -H $HOSTADDRESS$ -w 200.0,40% -c 500.0,60% -i >> 200ms max_check_attempts 3 >> >> For host checks; >> # ln -s check_icmp check_host >> check_host -H $HOSTADDRESS$ -i 0.5s -p 10 -t 20 max_check_attempts 3 >> >> check_icmp returns immediately upon any received packet when >> called as check_host, so it's safe to use a higher packet >> count and timeout and lower the max_check_attempts >> accordingly (it won't let nagios sit and wait as check_ping does). >> >> Remember that check_icmp must be setuid root to work properly >> on nearly all linux boxen. >> >>> The original Nagios configuration (the same I am using) >>> are: check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c >> 5000.0,100% -p 1 -t >>> 20 >>> >>> My definition of sensible in this case is using a value that is >>> producing as few errors as possible, when there are no real >> problems. >>> Not sure if this is a attainable goal or not since I know that some >>> equipment drops ICMP packets if they are to busy. >>> >>> Any views or comments are appreciated. >>> >>> >>> Best regards, Sebastian Bergstroem >>> >>> ---------------------------------------------- Sebastian Bergstroem >>> Technical coordinator Kunskapsskolan i Sverige AB >>> sebastian.bergstroem at kunskapsskolan.se >>> ----------------------------------------------- >>> >>> >>> ------------------------------------------------------- SF email is >>> sponsored by - The IT Product Guide Read honest & candid reviews on >>> hundreds of IT Products from real users. Discover which >> products truly >>> live up to the hype. Start reading now. >>> http://ads.osdn.com/?ad_ide95&alloc_id396&op=click >>> _______________________________________________ >> Nagios-users mailing >>> list Nagios-users at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please >>> include Nagios version, plugin version (-v) and OS when >> reporting any >>> issue. ::: Messages without supporting info will risk being sent to >>> /dev/null >>> >> >> -- >> Andreas Ericsson andreas.ericsson at op5.se >> OP5 AB www.op5.se >> Lead Developer >> >> >> ------------------------------------------------------- >> SF email is sponsored by - The IT Product Guide Read honest & >> candid reviews on hundreds of IT Products from real users. >> Discover which products truly live up to the hype. Start reading now. >> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS >> when reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> >> > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id396&op?k > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- From Edward.Smith at demandtec.com Thu Feb 17 23:27:30 2005 From: Edward.Smith at demandtec.com (Ed Smith) Date: Thu, 17 Feb 2005 14:27:30 -0800 Subject: check_disk Message-ID: <2B5C62C548D2FC48BC0334E8AE494185058C7A78@parrot.demandtec.com> Hi, Has anyone else experienced a problem with check_disk not saying anything but DISK OK no matter what the thresholds are set to ? This is what I get when I run the command from the command line. Nagios gets the same thing: thumper:/usr/local/nagios/libexec% ./check_disk -w 90 -c 85 -p /dev/sda8 DISK OK [513560 kB (26%) free on /dev/sda8] thumper:/usr/local/nagios/libexec% ./check_disk -w 10 -c 5 -p /dev/sda8 DISK OK [513560 kB (26%) free on /dev/sda8] ------------------------ Edward Smith Systems Application Engineer Demandtec, Inc esmith at demandtec.com 650-226-4609 --------------------------------------------------------------------------------------------------------------------------------------------- DEMANDTEC EMAIL NOTICE:

NOTICE: This email transmission and all attached files contain information intended for the designated individual or entity to whom it is addressed and may contain information that is proprietary, privileged and/or exempt from disclosure under applicable law. If you are not the intended recipient or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, copying, or other use of this email or its attachments is strictly prohibited. If you have received this email in error, please notify the sender immediately by replying to this message and please delete the original message without making any copies.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. Although we have taken reasonable precautions to ensure that this email and all attachments are free from viruses, we accept no liability for any loss or damage arising from the use of this email or its attachments. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Feb 17 23:30:44 2005 From: ae at op5.se (Andreas Ericsson) Date: Thu, 17 Feb 2005 23:30:44 +0100 Subject: check_icmp/check_ping trigger values In-Reply-To: References: <4214D1DD.4030101@op5.se> Message-ID: <42151B14.7040308@op5.se> frank wrote: > > Is this behavior documented anywhere other than in the source code? Nopes. I'm still working out the "FreeBSD-server-in-weird-network" kinks, so I haven't gotten round to writing a README yet. It's also highly untested, although the theory is sound. > I've been grepping thru my copy of nagios-cvs and nagios-plugins-1.4 (which > also contain their respective docs) and the only reference I've come > across is: > > plugins/check_icmp.c: else if(!strcmp(progname, "check_host")) { > > This would seem to be a very important configuration setting. Maybe I > just missed it. > Probably not. I don't know if I've mentioned it before. Feel free to give it a try though, and please report back with how it works. A nice opportunity for anyone to be an alpha-feature tester. > -frank > > > On Thu, 17 Feb 2005, Andreas Ericsson wrote: > >> Date: Thu, 17 Feb 2005 18:18:21 +0100 >> From: Andreas Ericsson >> To: nagios-users at lists.sourceforge.net >> Subject: Re: [Nagios-users] check_icmp/check_ping trigger values >> > [snip] > >> >> Short answer (read archives for longer one); >> For service checks, these values should work in most networks with >> normal-to-high load. >> check_icmp -H $HOSTADDRESS$ -w 200.0,40% -c 500.0,60% -i 200ms >> max_check_attempts 3 >> >> For host checks; >> # ln -s check_icmp check_host >> check_host -H $HOSTADDRESS$ -i 0.5s -p 10 -t 20 >> max_check_attempts 3 >> >> check_icmp returns immediately upon any received packet when called as >> check_host, so it's safe to use a higher packet count and timeout and >> lower the max_check_attempts accordingly (it won't let nagios sit and >> wait as check_ping does). >> >> Remember that check_icmp must be setuid root to work properly on >> nearly all linux boxen. >> > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tearl at cacdhh.org Thu Feb 17 23:28:33 2005 From: tearl at cacdhh.org (Thomas Earl) Date: Thu, 17 Feb 2005 17:28:33 -0500 Subject: Warning: Monitoring process may not be running! Message-ID: <20050217222838.66E4FBA05@www.prhobbies.com> Greetings to all, Ok, Looks like our Nagios crashed some time in the last day or so without so much as a peep... Now when I restart it (pre-flight is ok) there is no problem with the process, but on the webpage I'm getting "Warning: Monitoring process may not be running!" and when I look under the process Info I see the following... Program Start Time: 02-17-2005 22:17:24 Total Running Time: 0d 0h 5m 16s Last External Command Check: 02-17-2005 22:22:24 Last Log File Rotation: N/A Nagios PID 20634 Notifications Enabled? YES Service Checks Being Executed? YES Passive Service Checks Being Accepted? YES Event Handlers Enabled? Yes Obsessing Over Services? No Flap Detection Enabled? No Performance Data Being Processed? No Process Commands It appears as though Nagios is not running, so commands are temporarily unavailable... Process Status: CRITICAL Check Command Output: Could not locate a running Nagios process! Looking in the /usr/local/nagios/var, I see the nagios.lock file and I see the nagios.cmd in /usr/local/nagios/var/rw What am I not seeing/checking for here? Thanks! Tom -- Thomas Earl Network Engineer & Designer Communications Access Center (CAC) 1631 Miller Road Flint, Michigan, 48503 248-705-7408 (cell) 810-239-3112 (office) "Life is not a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside, thoroughly used up, totally worn out, and loudly proclaiming...'Wow! What a ride!!'" --Jack Wilson ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Feb 17 23:38:16 2005 From: marc at ena.com (Marc Powell) Date: Thu, 17 Feb 2005 16:38:16 -0600 Subject: check_disk Message-ID: <2B79966571B4B842B9C07E9910E38CE60CA04F@mismail.ena.com> > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Ed Smith > Sent: Thursday, February 17, 2005 4:28 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] check_disk > > > Hi, > > Has anyone else experienced a problem with check_disk not saying anything > but DISK OK no matter what the thresholds are set to ? > > This is what I get when I run the command from the command line. Nagios > gets the same thing: > > thumper:/usr/local/nagios/libexec% ./check_disk -w 90 -c 85 -p /dev/sda8 > DISK OK [513560 kB (26%) free on /dev/sda8] > > thumper:/usr/local/nagios/libexec% ./check_disk -w 10 -c 5 -p /dev/sda8 > DISK OK [513560 kB (26%) free on /dev/sda8] Looks like it's working as you've asked it to. In all cases there are more than 90, 85, 10 and 5 kilobytes of free disk space. Did you mean to use 90%, 85%, 10% and 5%? check_disk --help snippet -- -w, --warning=INTEGER Exit with WARNING status if less than INTEGER kilobytes of disk are free -w, --warning=PERCENT% Exit with WARNING status if more than PERCENT of disk space is free -c, --critical=INTEGER Exit with CRITICAL status if less than INTEGER kilobytes of disk are free -c, --critical=PERCENT% Exit with CRITCAL status if more than PERCENT of disk space is free -- Marc ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Feb 17 23:43:14 2005 From: marc at ena.com (Marc Powell) Date: Thu, 17 Feb 2005 16:43:14 -0600 Subject: Warning: Monitoring process may not be running! Message-ID: <2B79966571B4B842B9C07E9910E38CE60CA050@mismail.ena.com> > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Thomas Earl > Sent: Thursday, February 17, 2005 4:29 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Warning: Monitoring process may not be running! > > Greetings to all, > > Ok, Looks like our Nagios crashed some time in the last day or so without > so > much as a peep... Now when I restart it (pre-flight is ok) there is no > problem with the process, but on the webpage I'm getting "Warning: > Monitoring process may not be running!" and when I look under the process > Info I see the following... > > Program Start Time: 02-17-2005 22:17:24 > Total Running Time: 0d 0h 5m 16s > Last External Command Check: 02-17-2005 22:22:24 > Last Log File Rotation: N/A > Nagios PID 20634 > Notifications Enabled? YES > Service Checks Being Executed? YES > Passive Service Checks Being Accepted? YES > Event Handlers Enabled? Yes > Obsessing Over Services? No > Flap Detection Enabled? No > Performance Data Being Processed? No > > Process Commands > It appears as though Nagios is not running, so commands are temporarily > unavailable... > > Process Status: CRITICAL > Check Command Output: Could not locate a running Nagios process! > > Looking in the /usr/local/nagios/var, I see the nagios.lock file and I see > the nagios.cmd in /usr/local/nagios/var/rw > > What am I not seeing/checking for here? A 'ps' to see if nagios is actually running and that the ps output is the same as what the nagios_check_command in cgi.cfg is expecting. Had you upgraded anything without restarting that became effective when the machine rebooted? -- Marc ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tarmon at spamcop.net Fri Feb 18 00:00:37 2005 From: tarmon at spamcop.net (Mike Z) Date: Thu, 17 Feb 2005 18:00:37 -0500 Subject: Random Plugin failures in 1.2 Message-ID: <42152215.2070409@spamcop.net> I'm having a very odd problem with Nagios 1.2 (1.4 plugins): On startup, the system runs its initial service and hosts checks, a mix of pings, httpd, ftp, smtp, and pop3. All checks are successful, and the information returned from the plugins show up in the service detail correctly. However, sometimes Nagios starts failing all checks completely, spitting out "(Return code of 127 is out of bounds - plugin may be missing)" in the details field for all checks. This problem doesn't seem to clear until Nagios is restarted. I don't have to tell you, the mailbox spam is crazy when this happens, and it makes it impossible to determine real issues from false positives. This install is on a RH 7.2 machine, and previously was running 1.0b2 without trouble. When I brought Nagios back online, I moved to 1.2 and the 1.4 plugins. Running the commands Nagios is running from the command line as the nagios user return as expected while this problem is occuring. Any help would be appreciated. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mac at biviumcorp.com Fri Feb 18 00:50:32 2005 From: mac at biviumcorp.com (Edward MacGillivray) Date: Thu, 17 Feb 2005 17:50:32 -0600 Subject: check_hpjd plugin in Plugins 1.4 Message-ID: <200502171750.32459.mac@biviumcorp.com> Hello all, I just downloaded and upgraded to the nagios-plugins-1.4 and I've found that the checks that us the check_hpjd plugin are failing with the following output: Unknown output option passed to -O: Q. : Timeout from host This both shows up in the web status for the hosts and is the result of running the command from the command line as root. I had made a copy of the 1.4.0alpha2 plugins that I was using previously and so after restoring this plugin its not complaining any longer. I also searched the list archive for hpjd and only found one entry in the last year. Does anyone know what this error is about? I don't see and didn't use any -O option, so was this compiled into the plugin? The command I'm running looks like: $USER1$/check_hpjd -H $HOSTADDRESS$ -C public Any thoughts are appreciated. mac -- Edward MacGillivray 504-200-1600x322 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.Smith at demandtec.com Fri Feb 18 01:42:12 2005 From: Edward.Smith at demandtec.com (Ed Smith) Date: Thu, 17 Feb 2005 16:42:12 -0800 Subject: Command line? Message-ID: <2B5C62C548D2FC48BC0334E8AE494185058C7A7C@parrot.demandtec.com> Hi, Two questions: 1) Is there a command line interface to do things like force checks and acknowledge via the command line in stead of the web interface? 2) We have a ton of pending requests queued up. Is there a way to kill those? Ed ------------------------ Edward Smith Systems Application Engineer Demandtec, Inc esmith at demandtec.com 650-226-4609 --------------------------------------------------------------------------------------------------------------------------------------------- DEMANDTEC EMAIL NOTICE:

NOTICE: This email transmission and all attached files contain information intended for the designated individual or entity to whom it is addressed and may contain information that is proprietary, privileged and/or exempt from disclosure under applicable law. If you are not the intended recipient or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, copying, or other use of this email or its attachments is strictly prohibited. If you have received this email in error, please notify the sender immediately by replying to this message and please delete the original message without making any copies.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. Although we have taken reasonable precautions to ensure that this email and all attachments are free from viruses, we accept no liability for any loss or damage arising from the use of this email or its attachments. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Tong at ingenio.com Fri Feb 18 01:48:02 2005 From: Tong at ingenio.com (Tong Young) Date: Thu, 17 Feb 2005 16:48:02 -0800 Subject: Problem compiling with embedded perl option Message-ID: <4C52BE6F38D0174897566E644CE20F6102A88D66@keenx02.keencorp.keen.com> I am trying to use the --enable-embedded-perl flag but I get the following error when running make all. This is nagios 2.0b2 on debian sarge. I have perl 5.8 installed. Any help would be appreciated. I'm assuming that I'm missing some packages. gcc -g -O2 -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.8/CORE -DHAVE_CONFIG_H -DNSCORE -o nagios nagios.c broker.o nebmods.o checks.o config.o commands.o events.o flapping.o logging.o notifications.o sehandlers.o utils.o retention-base.o xretention-base.o comments-base.o xcomments-base.o objects-base.o xobjects-base.o statusdata-base.o xstatusdata-base.o perfdata-base.o xperfdata-base.o downtime-base.o xdowntime-base.o perlxsi.o -Wl,-export-dynamic -Wl,-E -L/usr/local/lib /usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl/5.8/CORE -ldl -lm -lpthread -lc -lcrypt -lm -lnsl -lpthread -ldl checks.o(.text+0x56): In function `run_service_check': /tmp/nagios-2.0b2/base/checks.c:118: undefined reference to `PL_thr_key' checks.o(.text+0x73e):/tmp/nagios-2.0b2/base/checks.c:338: undefined reference to `Perl_push_scope' checks.o(.text+0x759):/tmp/nagios-2.0b2/base/checks.c:339: undefined reference to `Perl_save_int' .... .... : undefined reference to `Perl_form' /usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a(DynaLoader.o)(.text+0xbdb ): In function `boot_DynaLoader': : undefined reference to `Perl_get_sv' /usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a(DynaLoader.o)(.text+0xc05 ): In function `boot_DynaLoader': : undefined reference to `Perl_sv_2pv_flags' collect2: ld returned 1 exit status make[1]: *** [nagios] Error 1 make[1]: Leaving directory `/tmp/nagios-2.0b2/base' make: *** [all] Error 2 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tearl at cacdhh.org Fri Feb 18 02:45:04 2005 From: tearl at cacdhh.org (Thomas Earl) Date: Thu, 17 Feb 2005 20:45:04 -0500 Subject: Warning: Monitoring process may not be running! In-Reply-To: <2B79966571B4B842B9C07E9910E38CE60CA050@mismail.ena.com> References: <2B79966571B4B842B9C07E9910E38CE60CA050@mismail.ena.com> Message-ID: <20050218014509.2E398BA05@www.prhobbies.com> [tearl at ns1 ~]$ ps -ax | grep nagios Warning: bad syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html 23621 ? S 0:01 ../bin/nagios -d ../etc/nagios.cfg 25521 pts/1 S 0:00 grep nagios This is the output from the PS... Nagios is running and we are getting alerts. Nothing seems to be wrong, just that output from the website saying that isn't not running. Pretty strange, I think. Any other suggestions? -- Thomas Earl Network Engineer & Designer Communications Access Center (CAC) 1631 Miller Road Flint, Michigan, 48503 248-705-7408 (cell) 810-239-3112 (office) "Life is not a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside, thoroughly used up, totally worn out, and loudly proclaiming...'Wow! What a ride!!'" --Jack Wilson > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Marc Powell > Sent: Thursday, February 17, 2005 5:43 PM > To: tearl at cacdhh.org; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Warning: Monitoring process may not be > running! > > > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of Thomas Earl > > Sent: Thursday, February 17, 2005 4:29 PM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Warning: Monitoring process may not be > running! > > > > Greetings to all, > > > > Ok, Looks like our Nagios crashed some time in the last day or so > without > > so > > much as a peep... Now when I restart it (pre-flight is ok) there is no > > problem with the process, but on the webpage I'm getting "Warning: > > Monitoring process may not be running!" and when I look under the > process > > Info I see the following... > > > > Program Start Time: 02-17-2005 22:17:24 > > Total Running Time: 0d 0h 5m 16s > > Last External Command Check: 02-17-2005 22:22:24 > > Last Log File Rotation: N/A > > Nagios PID 20634 > > Notifications Enabled? YES > > Service Checks Being Executed? YES > > Passive Service Checks Being Accepted? YES > > Event Handlers Enabled? Yes > > Obsessing Over Services? No > > Flap Detection Enabled? No > > Performance Data Being Processed? No > > > > Process Commands > > It appears as though Nagios is not running, so commands are > temporarily > > unavailable... > > > > Process Status: CRITICAL > > Check Command Output: Could not locate a running Nagios process! > > > > Looking in the /usr/local/nagios/var, I see the nagios.lock file and I > see > > the nagios.cmd in /usr/local/nagios/var/rw > > > > What am I not seeing/checking for here? > > A 'ps' to see if nagios is actually running and that the ps output is > the same as what the nagios_check_command in cgi.cfg is expecting. Had > you upgraded anything without restarting that became effective when the > machine rebooted? > > -- > Marc > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id396&opLk > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tearl at cacdhh.org Fri Feb 18 02:48:24 2005 From: tearl at cacdhh.org (Thomas Earl) Date: Thu, 17 Feb 2005 20:48:24 -0500 Subject: Warning: Monitoring process may not be running! In-Reply-To: <2B79966571B4B842B9C07E9910E38CE60CA050@mismail.ena.com> References: <2B79966571B4B842B9C07E9910E38CE60CA050@mismail.ena.com> Message-ID: <20050218014828.A88BFBA05@www.prhobbies.com> You know, I went back and ready what you said again, Marc. This time it made sense (This lack of sleep thing is getting old)... That was it, I was starting it in a way the cgi.cfg didn't agree with. Thanks for the help! Tom -- Thomas Earl Network Engineer & Designer Communications Access Center (CAC) 1631 Miller Road Flint, Michigan, 48503 248-705-7408 (cell) 810-239-3112 (office) "Life is not a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside, thoroughly used up, totally worn out, and loudly proclaiming...'Wow! What a ride!!'" --Jack Wilson > -----Original Message----- > From: Marc Powell [mailto:marc at ena.com] > Sent: Thursday, February 17, 2005 5:43 PM > To: tearl at cacdhh.org; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Warning: Monitoring process may not be > running! > > > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of Thomas Earl > > Sent: Thursday, February 17, 2005 4:29 PM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Warning: Monitoring process may not be > running! > > > > Greetings to all, > > > > Ok, Looks like our Nagios crashed some time in the last day or so > without > > so > > much as a peep... Now when I restart it (pre-flight is ok) there is no > > problem with the process, but on the webpage I'm getting "Warning: > > Monitoring process may not be running!" and when I look under the > process > > Info I see the following... > > > > Program Start Time: 02-17-2005 22:17:24 > > Total Running Time: 0d 0h 5m 16s > > Last External Command Check: 02-17-2005 22:22:24 > > Last Log File Rotation: N/A > > Nagios PID 20634 > > Notifications Enabled? YES > > Service Checks Being Executed? YES > > Passive Service Checks Being Accepted? YES > > Event Handlers Enabled? Yes > > Obsessing Over Services? No > > Flap Detection Enabled? No > > Performance Data Being Processed? No > > > > Process Commands > > It appears as though Nagios is not running, so commands are > temporarily > > unavailable... > > > > Process Status: CRITICAL > > Check Command Output: Could not locate a running Nagios process! > > > > Looking in the /usr/local/nagios/var, I see the nagios.lock file and I > see > > the nagios.cmd in /usr/local/nagios/var/rw > > > > What am I not seeing/checking for here? > > A 'ps' to see if nagios is actually running and that the ps output is > the same as what the nagios_check_command in cgi.cfg is expecting. Had > you upgraded anything without restarting that became effective when the > machine rebooted? > > -- > Marc ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dkoffler at rsmexperts.com Fri Feb 18 03:24:30 2005 From: dkoffler at rsmexperts.com (dkoffler at rsmexperts.com) Date: Thu, 17 Feb 2005 21:24:30 -0500 Subject: Nagios 2.0 PDF Docs In-Reply-To: <20050217185022.6A254125EB@sc8-sf-spam2.sourceforge.net> References: <20050217185022.6A254125EB@sc8-sf-spam2.sourceforge.net> Message-ID: Hey guys, I wanted to let you know I've compiled a PDF with Nagios 2.0 docs. I sent the doc to Ethan a few days ago, but I guess he hasn't gotten around to posting it, so if anyone wants to download it, you can grab it from: http://www.kiranskitchen.com/rsmexperts/nagios_2_docs.pdf __________________ Daniel Koffler RSM Experts http://www.rsmexperts.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill_akins at emoryhealthcare.org Fri Feb 18 04:35:14 2005 From: bill_akins at emoryhealthcare.org (Bill Akins) Date: Thu, 17 Feb 2005 22:35:14 -0500 Subject: Random Down times? Message-ID: Hi folks, Running Nagios 2.0b1 on RHEL3 I have about 160 servers monitored with over 600 services monitored and Nagios is working great. I do have a problem with a pool of Citrix servers I monitor. Through Control-M, machines are rebooted at random times (once no users are logged on and certain other conditions are met) and then they are added back into the pool. My question is how can I turn off or delay alerting on unreachable for 5 minutes to accommodate the reboot? I want to know if the machine goes away for more than 5 minutes. I am currently checking for several services running on these machines as well as disk space and ping. Any suggestions? Bill Akins, CNE SSS III Emory Healthcare (404) 712-2879 - Office 12674 - PIC bill_akins at emoryhealthcare.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From r_jai_ganesh at yahoo.com Fri Feb 18 04:44:48 2005 From: r_jai_ganesh at yahoo.com (Jai Ganesh) Date: Fri, 18 Feb 2005 03:44:48 +0000 (GMT) Subject: Nagios Configuration files ?? In-Reply-To: <20050217064516.39139.qmail@web52709.mail.yahoo.com> References: <20050217064516.39139.qmail@web52709.mail.yahoo.com> Message-ID: <20050218034448.88968.qmail@web52702.mail.yahoo.com> > Hello Guys, > > I've just installed Nagios and i have trouble > (configuration files) getting it to work > > Nagios version : 2.x (CVS) > OS : Fedora2 > > 1. Can anyone list me the configuration files to get > nagios working (i.e, i need all the configuration > files + examples ? > [http://demo.square-box.com/hostextinfocfg.htm -> is > for nagios 1. version] > [ > http://nagios.sourceforge.net/docs/2_0/xodtemplate.html > ] doesn't tell the configuration files.. > > I get this error when clicking the links in the left > : > Whoops! > > Error: Could not read object configuration data! > > Here are some things you should check in order to > resolve this error: > > 1. Verify configuration options using the -v > command-line option to check for errors. > 2. Check the Nagios log file for messages > relating > to startup or status data errors. > 3. Make sure you've compiled the main program and > the CGIs to use the same object data storage options > (i.e. default text file or template-based file). > > 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. > and even trying to restart nagios gives some error, > i > guess something wrong in the configuration part. > > http://nagios.sourceforge.net/docs/2_0/xodtemplate.html > doesn't work. Please help ___________________________________________________________ ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cecil.williams at autozone.com Fri Feb 18 05:54:53 2005 From: cecil.williams at autozone.com (cecil.williams at autozone.com) Date: Thu, 17 Feb 2005 22:54:53 -0600 Subject: Cecil Williams/STS/AUTOZONE is out of the office. Message-ID: I will be out of the office starting 02/17/2005 and will not return until 02/28/2005. I will respond to your message when I return. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bigserpent at gmail.com Fri Feb 18 06:02:13 2005 From: bigserpent at gmail.com (Jacky Chan) Date: Fri, 18 Feb 2005 13:02:13 +0800 Subject: (no subject) Message-ID: Hi, I have Nagios working well and I just upgraded my workstation from Windows to Redhat Fedora Core-3. In the past, when problem occurred, I can hear the audio alert on Windows FireFox and windows I.E. But there are no audio alert FC3+FireFox. Anyone have the same problem before and could you tell me how to fix it ? Thanks, ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jritchie at bible.edu Thu Feb 17 16:22:22 2005 From: jritchie at bible.edu (jrichie@bible.edu) Date: Thu, 17 Feb 2005 10:22:22 -0500 Subject: notification_failure_criteria syntax Message-ID: <1108653742.13109.2.camel@penguin> In notification_failure_criteria what do 'd' and 'u' stand for? The example in the docs shows both in one and I figure that doesn't make sense if they mean the obvious 'down' and 'up'. JSR/ ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From aaron.cline at gmail.com Thu Feb 17 16:28:50 2005 From: aaron.cline at gmail.com (A Cline) Date: Thu, 17 Feb 2005 15:28:50 +0000 Subject: Test Message-ID: <2f8a29cb05021707285920cb26@mail.gmail.com> Very sorry, I haven't been able to submit to the list yet. Just a test. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From boinger at tradingtechnologies.com Thu Feb 17 16:38:09 2005 From: boinger at tradingtechnologies.com (jeff vier) Date: Thu, 17 Feb 2005 09:38:09 -0600 Subject: Ignoring a particular alarm (on purpose)? Message-ID: <1108654689.7902.25.camel@localhost> Here's a weird one. I have a request to be able to filter out a particular alarm on the Service Status Page. The problem is that I have Nagios set up to watch for Windows Update (WU) availability, but it can take WEEKS for the Windows Admin to roll them out to all the Windows Servers. So, in the interim, we're staring down a few hundred WU alerts. A couple of the folks in the NOC have asked if there's a way to not see them (but still see everything else). I figure I *COULD* code it out of the cgi, but then why watch for the WUs at all (we don't page on them). Any idea? (regex filter that can be passed arbitrary values via GET variables? *fingers crossed*) Thanks for any help. --jeff ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From GWCOOK at mactec.com Thu Feb 17 16:48:00 2005 From: GWCOOK at mactec.com (Cook, Garry) Date: Thu, 17 Feb 2005 08:48:00 -0700 Subject: check_icmp/check_ping trigger values Message-ID: <41FD7929498A174DAB86C45F28E0EC0D01198EF6@golden-m.mactec.com> nagios-users-admin at lists.sourceforge.net wrote: > We are using Nagios 1.2 and are evaluating check_icmp as a check_ping > replacement. Nagios is currently monitoring 21 branchoffices with > Cisco > switches and routers using 2mBit connections to each site. > > The reason for replacing check_ping is that it produces > critical errors sporadicly. It is pertinent to mention that > the critical errors only occurs during the first checks and > therefore does not send notifications. My mission is to > drasticly lower the amount of errors occuring to an absolute minimum. > > What are the most sensible trigger values to use with > check_icmp or check_ping? > The original Nagios configuration (the same I am using) are: > check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 1 -t 20 Sensible trigger values really depend on the reliability and latency of YOUR network. With that said, the values that you are using above appear to be the default for check_ping when used to check Host UP/DOWN status, not for a standard ICMP service check. > My definition of sensible in this case is using a value that > is producing as few errors as possible, when there are no > real problems. Not sure if this is a attainable goal or not > since I know that some equipment drops ICMP packets if they > are to busy. I think you may need to answer a few different quesitons here. Q1) Do I want to use check_ping or check_icmp? A1) Search the list for information on check_icmp, Andreas (author) has posted many times as to why check_icmp might be considered a better replacement for check_ping. Q2) Am I using the correct values for my service checks? A2) No matter which one of the plugins you decide to use, I believe that you will want to send more than one packet, and possibly alert on lower thresholds than what you have defined above. > Any views or comments are appreciated. I'm using check_icmp. For Service checks I send the default amount of packets (5 or maybe 10, can't recall), and Warn on 300ms RTT and/or 40% packet loss. Critical is defined as any check that reports 500ms RTT and/or 60% packet loss. In some cases where I have known high latency/unreliable links, I've defined a new check called SLOW_PING that reports WARNING/CRITICAL on 600ms/900ms. For my host checks, I use exactly what you have defined above. HTH Garry W. Cook, CCNA Network Infrastructure Manager MACTEC, Inc. - http://www.mactec.com/ 303.273.5050 (Office) - 720.220.1862 (Mobile) > Best regards, > Sebastian Bergstroem > > ---------------------------------------------- > Sebastian Bergstroem > Technical coordinator > Kunskapsskolan i Sverige AB > sebastian.bergstroem at kunskapsskolan.se > ----------------------------------------------- ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From swg22 at cornell.edu Thu Feb 17 16:43:19 2005 From: swg22 at cornell.edu (Seth Gregg) Date: Thu, 17 Feb 2005 10:43:19 -0500 Subject: pre-flight check error in cgi.cfg Message-ID: <1108655000.5006.14.camel@localhost.localdomain> I am configuring nagios 1.2 on an FC3 machine with apache 2.0 When I run nagios with the -v option I get the following: "Error: Unexpected token or statement in file '/usr/local/nagios/etc/config/cgi.cfg' on line 15." Line 15 of cgi.cfg reads: "main_config_file=/usr/local/nagios/etc/nagios.cfg" I am sure this is the location of my main config file (since I have to specify its location to even run nagios. I am not using an RPM install and most of my files are in default locations. I have tried the following: 1) opening up permissions on every file and folder I can find. 2) disabled selinux and re-booted 3) starting over with new cgi.cfg and nagios.cfg files based on sample config files. I have also searched forums and mailing lists and done some reality checks with other people to make sure I am doing what I think I am doing. Any suggestions would be greatly appreciated. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Feb 17 17:05:15 2005 From: marc at ena.com (Marc Powell) Date: Thu, 17 Feb 2005 10:05:15 -0600 Subject: pre-flight check error in cgi.cfg Message-ID: <2B79966571B4B842B9C07E9910E38CE60CA020@mismail.ena.com> > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Seth Gregg > Sent: Thursday, February 17, 2005 9:43 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] pre-flight check error in cgi.cfg > > I am configuring nagios 1.2 on an FC3 machine with apache 2.0 > > When I run nagios with the -v option I get the following: > > > "Error: Unexpected token or statement in file > '/usr/local/nagios/etc/config/cgi.cfg' on line 15." > > Line 15 of cgi.cfg reads: > > "main_config_file=/usr/local/nagios/etc/nagios.cfg" You should not have cgi.cfg listed as a cfg_file in nagios.cfg. There should be no reference to it there. -- Marc ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhmartin at toger.us Thu Feb 17 17:42:34 2005 From: jhmartin at toger.us (Jason Martin) Date: Thu, 17 Feb 2005 08:42:34 -0800 Subject: Nagios Reporting In-Reply-To: <4214C802.2010401@interhost.com> References: <4214C802.2010401@interhost.com> Message-ID: <20050217164234.GF12420@zippy.toger.us> On Thu, Feb 17, 2005 at 04:36:18PM +0000, Henrique Oliveira wrote: > the occupation of a disk increasing and decreasing over time and showing > that occupation in a graphic. This isn't supported internally, but there are hooks for integrating outside applications for this. There is one called PerfParse that seems to be pretty popular. -Jason Martin -- Backups? We don' *NEED* no steenking backups. This message is PGP/MIME signed. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 211 bytes Desc: not available URL: From boinger at tradingtechnologies.com Thu Feb 17 17:56:13 2005 From: boinger at tradingtechnologies.com (jeff vier) Date: Thu, 17 Feb 2005 10:56:13 -0600 Subject: Ignoring a particular alarm (on purpose)? In-Reply-To: <2B79966571B4B842B9C07E9910E38CE60CA025@mismail.ena.com> References: <2B79966571B4B842B9C07E9910E38CE60CA025@mismail.ena.com> Message-ID: <1108659373.7902.35.camel@localhost> On Thu, 2005-02-17 at 10:47 -0600, Marc Powell wrote: > > Is there a guide to the various servicestatustypes and serviceprops > and > > such that can be passed? (google was no help, and the code is...less > > than user friendly in this case). > > Not that I've ever seen. It might be just as easy to click around > tac.cgi and status.cgi to see what's passed for the various views. I was manually editing my GETs while waiting for a reply and came up with serviceprops=10 as the golden value for us (Non-downtime, non-ack'd). We have a lot on no-active-checks, so 42 was no good :) Perhaps I'll whip up a little chart and forward it to the list today or tomorrow. Thanks again - Julie and Jerry are very pleased :) --jeff ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From holiveira at interhost.com Thu Feb 17 17:36:18 2005 From: holiveira at interhost.com (Henrique Oliveira) Date: Thu, 17 Feb 2005 16:36:18 +0000 Subject: Nagios Reporting Message-ID: <4214C802.2010401@interhost.com> I'm running Nagios 1.2 with Nagmin (DB support) running with no problems. Nagios reporting is based on thresholds for warnings and critical events and only reports on these thresholds if they are reached. Is it possible to produce graphics from values gathered? I mean, for example, the occupation of a disk increasing and decreasing over time and showing that occupation in a graphic. Thanks in advance, Henrique ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From boinger at tradingtechnologies.com Thu Feb 17 17:43:38 2005 From: boinger at tradingtechnologies.com (jeff vier) Date: Thu, 17 Feb 2005 10:43:38 -0600 Subject: Ignoring a particular alarm (on purpose)? In-Reply-To: <2B79966571B4B842B9C07E9910E38CE60CA021@mismail.ena.com> References: <2B79966571B4B842B9C07E9910E38CE60CA021@mismail.ena.com> Message-ID: <1108658618.7902.31.camel@localhost> On Thu, 2005-02-17 at 10:10 -0600, Marc Powell wrote: > > Any idea? (regex filter that can be passed arbitrary values via GET > > variables? *fingers crossed*) > I don't know anything about your process for dealing with alerts but our > helpdesk acknowledges alerts as tickets are created and their view only > shows un-acknowledged problems -- Ah, good call. Yes, they are acknowledged. > http://your.nagios.host/cgi/status.cgi?host=all&type=detail&servicestatu > stypes=32&hoststatustypes=3&serviceprops=42 > > Using this method, they only see new problems, not ones that are already > being worked. Maybe that option will work for you. There is no regex > filter either built in or as an addon that I am aware of. No, that's perfect Is there a guide to the various servicestatustypes and serviceprops and such that can be passed? (google was no help, and the code is...less than user friendly in this case). Given no other resource, of course I can wade through the code and make my own table of options, but I'd rather not re-invent any wheels today :) Thanks very much. --jeff ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Feb 17 17:10:31 2005 From: marc at ena.com (Marc Powell) Date: Thu, 17 Feb 2005 10:10:31 -0600 Subject: Ignoring a particular alarm (on purpose)? Message-ID: <2B79966571B4B842B9C07E9910E38CE60CA021@mismail.ena.com> > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of jeff vier > Sent: Thursday, February 17, 2005 9:38 AM > To: nagios-users > Subject: [Nagios-users] Ignoring a particular alarm (on purpose)? > > Here's a weird one. > > I have a request to be able to filter out a particular alarm on the > Service Status Page. > > The problem is that I have Nagios set up to watch for Windows Update > (WU) availability, but it can take WEEKS for the Windows Admin to roll > them out to all the Windows Servers. So, in the interim, we're staring > down a few hundred WU alerts. > > A couple of the folks in the NOC have asked if there's a way to not see > them (but still see everything else). > > I figure I *COULD* code it out of the cgi, but then why watch for the > WUs at all (we don't page on them). > > Any idea? (regex filter that can be passed arbitrary values via GET > variables? *fingers crossed*) I don't know anything about your process for dealing with alerts but our helpdesk acknowledges alerts as tickets are created and their view only shows un-acknowledged problems -- http://your.nagios.host/cgi/status.cgi?host=all&type=detail&servicestatu stypes=32&hoststatustypes=3&serviceprops=42 Using this method, they only see new problems, not ones that are already being worked. Maybe that option will work for you. There is no regex filter either built in or as an addon that I am aware of. -- Marc ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Sebastian.Bergstroem at kunskapsskolan.se Thu Feb 17 16:28:43 2005 From: Sebastian.Bergstroem at kunskapsskolan.se (=?iso-8859-1?Q?Bergstr=F6m_Sebastian?=) Date: Thu, 17 Feb 2005 16:28:43 +0100 Subject: check_icmp/check_ping trigger values Message-ID: We are using Nagios 1.2 and are evaluating check_icmp as a check_ping replacement. Nagios is currently monitoring 21 branchoffices with Cisco switches and routers using 2mBit connections to each site. The reason for replacing check_ping is that it produces critical errors sporadicly. It is pertinent to mention that the critical errors only occurs during the first checks and therefore does not send notifications. My mission is to drasticly lower the amount of errors occuring to an absolute minimum. What are the most sensible trigger values to use with check_icmp or check_ping? The original Nagios configuration (the same I am using) are: check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 1 -t 20 My definition of sensible in this case is using a value that is producing as few errors as possible, when there are no real problems. Not sure if this is a attainable goal or not since I know that some equipment drops ICMP packets if they are to busy. Any views or comments are appreciated. Best regards, Sebastian Bergstroem ---------------------------------------------- Sebastian Bergstroem Technical coordinator Kunskapsskolan i Sverige AB sebastian.bergstroem at kunskapsskolan.se ----------------------------------------------- ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From swg22 at cornell.edu Thu Feb 17 17:22:03 2005 From: swg22 at cornell.edu (Seth Gregg) Date: Thu, 17 Feb 2005 11:22:03 -0500 Subject: pre-flight check error in cgi.cfg In-Reply-To: <2B79966571B4B842B9C07E9910E38CE60CA020@mismail.ena.com> References: <2B79966571B4B842B9C07E9910E38CE60CA020@mismail.ena.com> Message-ID: <1108657323.5006.16.camel@localhost.localdomain> Marc, Thank you, that clears things up. Seth On Thu, 2005-02-17 at 10:05 -0600, Marc Powell wrote: > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of Seth Gregg > > Sent: Thursday, February 17, 2005 9:43 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] pre-flight check error in cgi.cfg > > > > I am configuring nagios 1.2 on an FC3 machine with apache 2.0 > > > > When I run nagios with the -v option I get the following: > > > > > > "Error: Unexpected token or statement in file > > '/usr/local/nagios/etc/config/cgi.cfg' on line 15." > > > > Line 15 of cgi.cfg reads: > > > > "main_config_file=/usr/local/nagios/etc/nagios.cfg" > > You should not have cgi.cfg listed as a cfg_file in nagios.cfg. There > should be no reference to it there. > > -- > Marc > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Feb 17 17:47:32 2005 From: marc at ena.com (Marc Powell) Date: Thu, 17 Feb 2005 10:47:32 -0600 Subject: Ignoring a particular alarm (on purpose)? Message-ID: <2B79966571B4B842B9C07E9910E38CE60CA025@mismail.ena.com> > -----Original Message----- > From: jeff vier [mailto:boinger at tradingtechnologies.com] > Sent: Thursday, February 17, 2005 10:44 AM > To: Marc Powell > Cc: nagios-users > Subject: RE: [Nagios-users] Ignoring a particular alarm (on purpose)? > > On Thu, 2005-02-17 at 10:10 -0600, Marc Powell wrote: > > > Any idea? (regex filter that can be passed arbitrary values via GET > > > variables? *fingers crossed*) > > I don't know anything about your process for dealing with alerts but our > > helpdesk acknowledges alerts as tickets are created and their view only > > shows un-acknowledged problems -- > > Ah, good call. > > Yes, they are acknowledged. > > > http://your.nagios.host/cgi/status.cgi?host=all&type=detail&servicestatu > > stypes=32&hoststatustypes=3&serviceprops=42 > > > > Using this method, they only see new problems, not ones that are already > > being worked. Maybe that option will work for you. There is no regex > > filter either built in or as an addon that I am aware of. > > No, that's perfect > > Is there a guide to the various servicestatustypes and serviceprops and > such that can be passed? (google was no help, and the code is...less > than user friendly in this case). Not that I've ever seen. It might be just as easy to click around tac.cgi and status.cgi to see what's passed for the various views. -- marc ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Carsten.Schmitz at aegon.com Thu Feb 17 16:33:05 2005 From: Carsten.Schmitz at aegon.com (Schmitz, Carsten) Date: Thu, 17 Feb 2005 16:33:05 +0100 Subject: MSN notifications Message-ID: <49977F7CEA035C46A2D47108CE0F032FF74C35@ANGELIA.aegon.com> Does your Nagios run on a Unix/Linux box? Do a quick Google for "centericq", its an ASCII (well, ANSI really) based multi-protocol messenger client that speaks MSN, too. It can use pipes, so with a few lines of shell script, you could pipe Nagios alerts into it. Cheers, Carsten -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Luca Corti Sent: Thursday, February 17, 2005 3:51 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] MSN notifications Hello, I'm looking for a way to deliver notifications to MSN contacts. Has anyone ideas on how to do this? thanks Luca ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Carsten.Schmitz at aegon.com Thu Feb 17 16:35:22 2005 From: Carsten.Schmitz at aegon.com (Schmitz, Carsten) Date: Thu, 17 Feb 2005 16:35:22 +0100 Subject: MSN notifications Message-ID: <49977F7CEA035C46A2D47108CE0F032FF74C36@ANGELIA.aegon.com> > It can use pipes Clarification: Not pipes exactly, but a plugin architecture that can take stdout from external programs for IMs, and can also take IMs as stdin for external programs. -----Original Message----- From: Schmitz, Carsten Sent: Thursday, February 17, 2005 4:33 PM To: 'Luca Corti'; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] MSN notifications Does your Nagios run on a Unix/Linux box? Do a quick Google for "centericq", its an ASCII (well, ANSI really) based multi-protocol messenger client that speaks MSN, too. It can use pipes, so with a few lines of shell script, you could pipe Nagios alerts into it. Cheers, Carsten -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Luca Corti Sent: Thursday, February 17, 2005 3:51 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] MSN notifications Hello, I'm looking for a way to deliver notifications to MSN contacts. Has anyone ideas on how to do this? thanks Luca ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dmourati at cm.math.uiuc.edu Fri Feb 18 07:41:32 2005 From: dmourati at cm.math.uiuc.edu (Demetri Mouratis) Date: Fri, 18 Feb 2005 00:41:32 -0600 (CST) Subject: Random Down times? In-Reply-To: References: Message-ID: On Thu, 17 Feb 2005, Bill Akins wrote: > Hi folks, > > Running Nagios 2.0b1 on RHEL3 > > I have about 160 servers monitored with over 600 services monitored and > Nagios is working great. I do have a problem with a pool of Citrix > servers I monitor. Through Control-M, machines are rebooted at random > times (once no users are logged on and certain other conditions are met) > and then they are added back into the pool. > > My question is how can I turn off or delay alerting on unreachable for > 5 minutes to accommodate the reboot? I want to know if the machine goes > away for more than 5 minutes. I am currently checking for several > services running on these machines as well as disk space and ping. Have your citrix servers send a passive service check to your Nagios box saying to deactivate service checks for that host. Then have you init script, or some such on your citrix box turn checks back on once it comes back up. That or increase your service check times or retries times to accommodate a 5 minute outage but not a 10 minute one. --------------------------------------------------------------------- Demetri Mouratis dmourati at linfactory.com ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mason_ssl at yahoo.com Fri Feb 18 07:42:33 2005 From: mason_ssl at yahoo.com (first last) Date: Thu, 17 Feb 2005 22:42:33 -0800 (PST) Subject: Storing data in MySQL Message-ID: <20050218064233.57889.qmail@web61305.mail.yahoo.com> Hi, I am running nagios 1.2 with mysql support on FC3. When I click on the "trend" option on the webpage. I can see graphs for my services. There are services that I have ran for more than 2 weeks, but the graph show me data that starts from this week only even though the day range I pick is for this month. Worst yet, the graph sometimes is blank. I am wondering where do those data store? I can't see any of them in the mysql db. I tried to querry the mysql db and all I really see are data from the last check. Where do the historical data store or does it store at all? When I click the "availability" option and set the "first assumed state" to "State OK" I see the services are in the OK state 99.9%, but when I change teh "assumed state" to "State Critical", the OK state changes to 60% and suddenly teh Critical State becomes 39%. I am trying to understand nagios more. At last what is the differnet between "soft" and "hard" state? My understanding from the document is when a service flip between say "Warning" and "Critical", it is in soft state because it is flapping. If it states in "Critical", that is a hard state. Is this correct? Thanks __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From vuhung16duong at yahoo.co.jp Fri Feb 18 08:11:00 2005 From: vuhung16duong at yahoo.co.jp (Bit Takeshi) Date: Fri, 18 Feb 2005 16:11:00 +0900 (JST) Subject: ps error when /etc/init.d/nagios start In-Reply-To: <4211DEC8.5060603@ufz.de> References: <4211DEC8.5060603@ufz.de> Message-ID: <20050218071100.48386.qmail@web2902.mail.bbt.yahoo.co.jp> --- Werner Flamme > Well, since you did not configure nagios (this is > what nagios tells you > here), nagios cannot start. So when you invoke the > nagios start script > nagios does not start and the pid file does not > exist. This start script > uses "ps -p $NagiosPID" to determine whether nagios > runs or not. Since > there is not $NagiosPID (nagios did not start > because of the missing > config) you get the error message you gave at the > beginning. > > So, first configure nagios, then call > "/usr/local/nagios/bin/nagios -v > > /usr/local/nagios/etc/nagios.cfg" to see if the > config is correct and > only then you may "/etc/init.d/nagios start". > > BTW: did you "make install-config" after "make > install"? > Hello, Thanks for your your reply. I am sure I did a "make install; make install-config". I double checked what i did with history | grep install-config. And it was there. But this time I did it again and watch the output more carefully, --------------////////////////////-------------------- [root at ns1 /home/vuhung/tmp/nagios-2.0b2]#make install-config /usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/etc /usr/bin/install -c -m 664 -o nagios -g nagios sample-config/nagios.cfg /usr/local/nagios/etc/nagios.cfg-sample /usr/bin/install -c -m 664 -o nagios -g nagios sample-config/cgi.cfg /usr/local/nagios/etc/cgi.cfg-sample /usr/bin/install -c -m 660 -o nagios -g nagios sample-config/resource.cfg /usr/local/nagios/etc/resource.cfg-sample /usr/bin/install -c -m 664 -o nagios -g nagios sample-config/template-object/bigger.cfg /usr/local/nagios/etc/bigger.cfg-sample /usr/bin/install -c -m 664 -o nagios -g nagios sample-config/template-object/minimal.cfg /usr/local/nagios/etc/minimal.cfg-sample /usr/bin/install -c -m 664 -o nagios -g nagios sample-config/template-object/checkcommands.cfg /usr/local/nagios/etc/checkcommands.cfg-sample /usr/bin/install -c -m 664 -o nagios -g nagios sample-config/template-object/misccommands.cfg /usr/local/nagios/etc/misccommands.cfg-sample *** Sample config file installed *** Remember, these are *SAMPLE* config files. You'll need to read the documentation for more information on how to actually define services, hosts, etc. to fit your particular needs. If you have questions about configuring Nagios properly, please: - Look at the sample config files - Read the HTML documentation - Read the FAQs online at http://www.nagios.org/faqs *BEFORE* you post a question to one of the mailing lists. -------------/////////////////////---------------------------- As you can see, some critical files were not copied: timeperiods.cfg dependencies.cfg hosts.cfg hostgroups.cfg contacts.cfg contactgroups.cfg Where I can get samples for these files? Vu Hung http://www.fedu.uec.ac.jp/~vuhung/ http://chuiyang.org __________________________________ Let's Celebrate Together! Yahoo! JAPAN http://pr.mail.yahoo.co.jp/so2005/ ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Murat.Kuru at comfone.com Fri Feb 18 08:53:47 2005 From: Murat.Kuru at comfone.com (Kuru Murat) Date: Fri, 18 Feb 2005 08:53:47 +0100 Subject: Monitoring CPU Temperuture on Solaris8 Message-ID: <81B2B4AE03A22D4490CD35A0F20F89E001147D19@thsvml00.togewa.com> Hi All I need to monitore the CPU temperatur on a Sun Solaris8 machine. It seams that the plugin check_sensors is only working with lm_sensors, which is avaiblable only for Linux. Is there a plugin out there that is also compactibel with solaris8? Thank you. Murat Kuru -------------- next part -------------- An HTML attachment was scrubbed... URL: From Werner.Flamme at ufz.de Fri Feb 18 09:14:34 2005 From: Werner.Flamme at ufz.de (Werner Flamme) Date: Fri, 18 Feb 2005 09:14:34 +0100 Subject: ps error when /etc/init.d/nagios start In-Reply-To: <20050218061044.9909.qmail@web2908.mail.bbt.yahoo.co.jp> References: <20050218061044.9909.qmail@web2908.mail.bbt.yahoo.co.jp> Message-ID: <4215A3EA.4050500@ufz.de> Bit Takeshi schrieb am 18.02.2005 07:10: > --- Werner Flamme > >>Well, since you did not configure nagios (this is >>what nagios tells you >>here), nagios cannot start. So when you invoke the >>nagios start script >>nagios does not start and the pid file does not >>exist. This start script >>uses "ps -p $NagiosPID" to determine whether nagios >>runs or not. Since >>there is not $NagiosPID (nagios did not start >>because of the missing >>config) you get the error message you gave at the >>beginning. >> >>So, first configure nagios, then call >>"/usr/local/nagios/bin/nagios -v >> >>>/usr/local/nagios/etc/nagios.cfg" to see if the >> >>config is correct and >>only then you may "/etc/init.d/nagios start". >> >>BTW: did you "make install-config" after "make >>install"? >> > > > Hello, > > Thanks for your your reply. I am sure I did a "make > install; make install-config". I double checked what i did > with history | grep install-config. And it was there. > > But this time I did it again and watch the output more > carefully, > > --------------////////////////////-------------------- > [root at ns1 /home/vuhung/tmp/nagios-2.0b2]#make > install-config > /usr/bin/install -c -m 775 -o nagios -g nagios -d > /usr/local/nagios/etc > /usr/bin/install -c -m 664 -o nagios -g nagios > sample-config/nagios.cfg > /usr/local/nagios/etc/nagios.cfg-sample > /usr/bin/install -c -m 664 -o nagios -g nagios > sample-config/cgi.cfg /usr/local/nagios/etc/cgi.cfg-sample > /usr/bin/install -c -m 660 -o nagios -g nagios > sample-config/resource.cfg > /usr/local/nagios/etc/resource.cfg-sample > /usr/bin/install -c -m 664 -o nagios -g nagios > sample-config/template-object/bigger.cfg > /usr/local/nagios/etc/bigger.cfg-sample > /usr/bin/install -c -m 664 -o nagios -g nagios > sample-config/template-object/minimal.cfg > /usr/local/nagios/etc/minimal.cfg-sample > /usr/bin/install -c -m 664 -o nagios -g nagios > sample-config/template-object/checkcommands.cfg > /usr/local/nagios/etc/checkcommands.cfg-sample > /usr/bin/install -c -m 664 -o nagios -g nagios > sample-config/template-object/misccommands.cfg > /usr/local/nagios/etc/misccommands.cfg-sample > > *** Sample config file installed *** > > Remember, these are *SAMPLE* config files. You'll need to > read > the documentation for more information on how to actually > define > services, hosts, etc. to fit your particular needs. > > If you have questions about configuring Nagios properly, > please: > - Look at the sample config files > - Read the HTML documentation > - Read the FAQs online at > http://www.nagios.org/faqs > *BEFORE* you post a question to one of the mailing lists. > -------------/////////////////////---------------------------- > > As you can see, some critical files were not copied: > > > timeperiods.cfg > dependencies.cfg > hosts.cfg > hostgroups.cfg > contacts.cfg > contactgroups.cfg > > Where I can get samples for these files? > > Vu Hung > > > http://www.fedu.uec.ac.jp/~vuhung/ > http://chuiyang.org > > __________________________________ > Let's Celebrate Together! > Yahoo! JAPAN > http://pr.mail.yahoo.co.jp/so2005/ > > Hi Vu Hung, have a look at the sample-config subdir after "make". You will find something like ---snip--- . README cgi.cfg.in nagios.cfg resource.cfg template-extinfo .. cgi.cfg default-object nagios.cfg.in resource.cfg.in template-object ./default-object: . contacts.cfg.in hosts.cfg.in .. dependencies.cfg misccommands.cfg README dependencies.cfg.in misccommands.cfg.in checkcommands.cfg escalations.cfg services.cfg checkcommands.cfg.in escalations.cfg.in services.cfg.in contactgroups.cfg hostgroups.cfg timeperiods.cfg contactgroups.cfg.in hostgroups.cfg.in timeperiods.cfg.in contacts.cfg hosts.cfg ./template-extinfo: . .. README hostextinfo.cfg serviceextinfo.cfg ./template-object: . dependencies.cfg minimal.cfg.in .. dependencies.cfg.in misccommands.cfg README escalations.cfg misccommands.cfg.in checkcommands.cfg escalations.cfg.in services.cfg checkcommands.cfg.in hostgroups.cfg services.cfg.in contactgroups.cfg hostgroups.cfg.in timeperiods.cfg contactgroups.cfg.in hosts.cfg timeperiods.cfg.in contacts.cfg hosts.cfg.in contacts.cfg.in minimal.cfg ---pins--- in this dir and its subdirectories. Now I see by myself, that not all those .cfg files were copied into the etc directory with "make install-config": I am missing hostextinfo.cfg... Well, I don't need it since my hostextinfos are stored in MySQL, but it was nice to have, since the "hostextinfo" entries in cgi.cfg did not work for me. When you don't have those files, you should consider to download nagios anew... :-) HTH, \/\/erner -- Werner Flamme, Abt. WKDV UFZ Umweltforschungszentrum Leipzig-Halle GmbH, Permoserstr. 15, 04318 Leipzig - http://www.ufz.de eMail: werner.flamme at ufz.de, Tel.: (0341) 235-2500 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From srunschke at abit.de Fri Feb 18 10:00:27 2005 From: srunschke at abit.de (Sascha Runschke) Date: Fri, 18 Feb 2005 10:00:27 +0100 Subject: Antwort: RE: Antwort: RE: [Possible Spam] - Re: host down but up problem [Virus scanned] Message-ID: > Currently, the permissions on check_icmp are listed below: > -rwsr-xr-x 1 root root > > I believe this complies with not only what Sash suggests but what Andreas stated earlier. Still a no-go. Frankly, I don't understand it then. Either SuSe totally screws things up (wouldn't surprise me overly too much), or you have another issue. Possible solutions: - Double check that no other check_icmp exists on that machine. Maybe a second non-suid version is in $path? - You did not mount the partition check_icmp resides on as nosuid, did you? sash -------------------------------------------------- Sascha Runschke Netzwerk Administration IT-Services ABIT AG Robert-Bosch-Str. 1 40668 Meerbusch Tel.:+49 (0) 2150.9153.226 mailto:SRunschke at abit.de http://www.abit.net http://www.abit-epos.net http://www.my-academy.net -------------------------------------------------- Der Inhalt dieser Email sowie die Anh?nge sind ausschlie?lich f?r den bezeichneten Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser Email oder dessen Vertreter sein sollten, so beachten Sie bitte, da? jede Form der Kenntnisnahme, Ver?ffentlichung, Vervielf?ltigung oder Weitergabe des Inhalts dieser Email unzul?ssig ist. Wir m?chten Sie au?erdem darauf hinweisen, da? die Kommunikation per Email ?ber das Internet unsicher ist, da fuer unberechtigte Dritte grunds?tzlich die M?glichkeit der Kenntnisnahme und Manipulation besteht. Wenn Sie diese Nachricht versehentlich erhalten, informieren Sie bitte den Absender und l?schen diese Nachricht mit den Anh?ngen. Herzlichen Dank The information and any attachments contained in this email are intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any form of disclosure, reproduction, distribution or any action taken or refrained from in reliance on it, is prohibited and may be unlawful. We also like to inform you that communication via email over the internet is insecure because third parties may have the possibility to access and manipulate emails. If you have received the message in error, please advise the sender and delete the message and any attachments. Thank you very much. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Feb 18 10:52:37 2005 From: ae at op5.se (Andreas Ericsson) Date: Fri, 18 Feb 2005 10:52:37 +0100 Subject: check_hpjd plugin in Plugins 1.4 In-Reply-To: <200502171750.32459.mac@biviumcorp.com> References: <200502171750.32459.mac@biviumcorp.com> Message-ID: <4215BAE5.109@op5.se> Edward MacGillivray wrote: > Hello all, > > I just downloaded and upgraded to the nagios-plugins-1.4 and I've found that > the checks that us the check_hpjd plugin are failing with the following > output: > > Unknown output option passed to -O: Q. : Timeout from host > check_hpjd (along with many other output parsing programs) is a cesspool of sloppy code. It assumes the program timed out if it prints anything to stderr (or if it doesn't print anything to stdout), which explains why you see the wildly inaccurate and somewhat incoherent message you see above. > This both shows up in the web status for the hosts and is the result of > running the command from the command line as root. I had made a copy of the > 1.4.0alpha2 plugins that I was using previously and so after restoring this > plugin its not complaining any longer. It seems then that a regression fix is in order. > I also searched the list archive for > hpjd and only found one entry in the last year. Does anyone know what this > error is about? I don't see and didn't use any -O option, so was this > compiled into the plugin? The command I'm running looks like: > > $USER1$/check_hpjd -H $HOSTADDRESS$ -C public > > Any thoughts are appreciated. > mac > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Feb 18 10:56:55 2005 From: ae at op5.se (Andreas Ericsson) Date: Fri, 18 Feb 2005 10:56:55 +0100 Subject: check_hpjd plugin in Plugins 1.4 In-Reply-To: <200502171750.32459.mac@biviumcorp.com> References: <200502171750.32459.mac@biviumcorp.com> Message-ID: <4215BBE7.7010906@op5.se> (sorry for posting again, I'm trying to patch this issue and just need some verification). Edward MacGillivray wrote: > Hello all, > > I just downloaded and upgraded to the nagios-plugins-1.4 and I've found that > the checks that us the check_hpjd plugin are failing with the following > output: > > Unknown output option passed to -O: Q. : Timeout from host > > This both shows up in the web status for the hosts and is the result of > running the command from the command line as root. I had made a copy of the > 1.4.0alpha2 plugins that I was using previously and so after restoring this > plugin its not complaining any longer. I also searched the list archive for > hpjd and only found one entry in the last year. Does anyone know what this > error is about? I don't see and didn't use any -O option, so was this > compiled into the plugin? The command I'm running looks like: > > $USER1$/check_hpjd -H $HOSTADDRESS$ -C public > > Any thoughts are appreciated. Does your snmpget support the -Ovq output option? > mac > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From vuhung16duong at yahoo.co.jp Fri Feb 18 10:58:23 2005 From: vuhung16duong at yahoo.co.jp (Bit Takeshi) Date: Fri, 18 Feb 2005 18:58:23 +0900 (JST) Subject: contact settings error notify-by-epager Message-ID: <20050218095824.91825.qmail@web2904.mail.bbt.yahoo.co.jp> Greetings, I think I am getting close to the goal. Latest nagios-2.0b2.tar.gz downloaded from sf.net, redhat 9, kernel, 2.4.20-8smp and nagios was installed in /usr/local/nagios. When I check nagios with -v option: [root at ns1 /usr/local/nagios/etc]#/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg I got error: ------------- Checking contacts... Error: Service notification command 'notify-by-epager' specified for contact 'nagios' is not defined anywhere! Error: Service notification command 'notify-by-email' specified for contact 'nagios' is not defined anywhere! Error: Host notification command 'host-notify-by-epager' specified for contact 'nagios' is not defined anywhere! Error: Host notification command 'host-notify-by-email' specified for contact 'nagios' is not defined anywhere! Checked 1 contacts. ------------- Here is my contacts.cfg -------------- define contact{ contact_name nagios alias Nagios Admin service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c,r host_notification_options d,u,r service_notification_commands notify-by-email,notify-by-epager host_notification_commands host-notify-by-email,host-notify-by-epager email system at xxx.com pager system at xxx.com } -------------- I dont know what was wrong ... http://www.fedu.uec.ac.jp/~vuhung/ http://chuiyang.org __________________________________ Let's Celebrate Together! Yahoo! JAPAN http://pr.mail.yahoo.co.jp/so2005/ ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Feb 18 11:14:12 2005 From: ae at op5.se (Andreas Ericsson) Date: Fri, 18 Feb 2005 11:14:12 +0100 Subject: Random Down times? In-Reply-To: References: Message-ID: <4215BFF4.20509@op5.se> Demetri Mouratis wrote: > On Thu, 17 Feb 2005, Bill Akins wrote: > > >>Hi folks, >> >>Running Nagios 2.0b1 on RHEL3 >> >>I have about 160 servers monitored with over 600 services monitored and >>Nagios is working great. I do have a problem with a pool of Citrix >>servers I monitor. Through Control-M, machines are rebooted at random >>times (once no users are logged on and certain other conditions are met) >>and then they are added back into the pool. >> >>My question is how can I turn off or delay alerting on unreachable for >>5 minutes to accommodate the reboot? I want to know if the machine goes >>away for more than 5 minutes. I am currently checking for several >>services running on these machines as well as disk space and ping. > > > Have your citrix servers send a passive service check to your Nagios box > saying to deactivate service checks for that host. Then have you init > script, or some such on your citrix box turn checks back on once it comes > back up. > This is a good idea, and not terribly cumbersome to implement. > That or increase your service check times or retries times to accommodate > a 5 minute outage but not a 10 minute one. This won't work. Nagios will start checking host status upon soft service states and do ALL host checks in serial until it gets a good response or runs out of max_check_attempts, meaning this idea would effectively DOS your nagios every time a machine reboots for (hostobject)max_check_attempts * hostcheck_timeout seconds. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Feb 18 11:15:41 2005 From: ae at op5.se (Andreas Ericsson) Date: Fri, 18 Feb 2005 11:15:41 +0100 Subject: (no subject) In-Reply-To: References: Message-ID: <4215C04D.8010406@op5.se> Jacky Chan wrote: > Hi, > I have Nagios working well and I just upgraded my workstation from > Windows to Redhat Fedora Core-3. > > In the past, when problem occurred, I can hear the audio alert on > Windows FireFox and windows I.E. But there are no audio alert > FC3+FireFox. > > Anyone have the same problem before and could you tell me how to fix it ? You need to install an audio-plugin for firefox in order for it to be able to play sounds. There are legio around. Pick one. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Feb 18 11:18:45 2005 From: ae at op5.se (Andreas Ericsson) Date: Fri, 18 Feb 2005 11:18:45 +0100 Subject: Monitoring CPU Temperuture on Solaris8 In-Reply-To: <81B2B4AE03A22D4490CD35A0F20F89E001147D19@thsvml00.togewa.com> References: <81B2B4AE03A22D4490CD35A0F20F89E001147D19@thsvml00.togewa.com> Message-ID: <4215C105.4080208@op5.se> Kuru Murat wrote: > Hi All > > I need to monitore the CPU temperatur on a Sun Solaris8 machine. > > It seams that the plugin check_sensors is only working with lm_sensors, > which is avaiblable > only for Linux. > > Is there a plugin out there that is also compactibel with solaris8? > There is most likely a program, but not a plugin. Getting CPU temp and such requires tight cooperation with the kernel/hardware mix in a way that no standards exist for. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Fri Feb 18 12:03:03 2005 From: Werner.Flamme at ufz.de (Werner Flamme) Date: Fri, 18 Feb 2005 12:03:03 +0100 Subject: contact settings error notify-by-epager In-Reply-To: <20050218095824.91825.qmail@web2904.mail.bbt.yahoo.co.jp> References: <20050218095824.91825.qmail@web2904.mail.bbt.yahoo.co.jp> Message-ID: <4215CB67.7080505@ufz.de> Bit Takeshi schrieb am 18.02.2005 10:58: > Greetings, > > I think I am getting close to the goal. > > Latest nagios-2.0b2.tar.gz downloaded from sf.net, redhat > 9, kernel, 2.4.20-8smp and nagios was installed in > /usr/local/nagios. > > When I check nagios with -v option: > > [root at ns1 > /usr/local/nagios/etc]#/usr/local/nagios/bin/nagios -v > /usr/local/nagios/etc/nagios.cfg > > I got error: > > ------------- > Checking contacts... > Error: Service notification command 'notify-by-epager' > specified for contact 'nagios' is not defined anywhere! > Error: Service notification command 'notify-by-email' > specified for contact 'nagios' is not defined anywhere! > Error: Host notification command 'host-notify-by-epager' > specified for contact 'nagios' is not defined anywhere! > Error: Host notification command 'host-notify-by-email' > specified for contact 'nagios' is not defined anywhere! > Checked 1 contacts. > ------------- > [snip] > > I dont know what was wrong ... > > http://www.fedu.uec.ac.jp/~vuhung/ > http://chuiyang.org > > __________________________________ > Let's Celebrate Together! > Yahoo! JAPAN > http://pr.mail.yahoo.co.jp/so2005/ > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > Hi Bit Takeshi, you should have a line like cfg_file=/usr/local/nagios/etc/misccommands.cfg in your nagios.cfg. In the lot of files I just sent you you will find misccommands.cfg where all these commands are defined. HTH, Werner -- Werner Flamme, Abt. WKDV UFZ Umweltforschungszentrum Leipzig-Halle GmbH, Permoserstr. 15, 04318 Leipzig - http://www.ufz.de eMail: werner.flamme at ufz.de, Tel.: (0341) 235-2500 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Feb 18 12:34:06 2005 From: ae at op5.se (Andreas Ericsson) Date: Fri, 18 Feb 2005 12:34:06 +0100 Subject: check_hpjd hack. Any testers? Message-ID: <4215D2AE.30102@op5.se> I accidentally deleted the mail from the guy having problems with his check_hpjd from nagiosplug cvs. I've reworked it a bit and added some cool features, although I don't have any hp printer to test it on. It's attached. I'll send a patch to the tracker item when I've gotten it tested a bit more. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Feb 18 12:39:09 2005 From: ae at op5.se (Andreas Ericsson) Date: Fri, 18 Feb 2005 12:39:09 +0100 Subject: check_hpjd hack. Any testers? In-Reply-To: <4215D2AE.30102@op5.se> References: <4215D2AE.30102@op5.se> Message-ID: <4215D3DD.7070805@op5.se> Andreas Ericsson wrote: > I accidentally deleted the mail from the guy having problems with his > check_hpjd from nagiosplug cvs. > > I've reworked it a bit and added some cool features, although I don't > have any hp printer to test it on. > > It's attached. I'll send a patch to the tracker item when I've gotten it > tested a bit more. > Perhaps I should be so kind as to really attach it as well. ;) Sorry about that. Howto; Copy this check_hpjd.c to your plugin distribution, run ./configure if you haven't previously done so, and then make. If you're using a wonky sort of MS mailer that adds funky line endings to the file, you can wash it by the following command; sed 's/.$//' check_hpjd.c > foo && mv foo check_hpjd.c Cheers. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer -------------- next part -------------- A non-text attachment was scrubbed... Name: check_hpjd.c Type: text/x-csrc Size: 9746 bytes Desc: not available URL: From ae at op5.se Fri Feb 18 12:44:24 2005 From: ae at op5.se (Andreas Ericsson) Date: Fri, 18 Feb 2005 12:44:24 +0100 Subject: check_hpjd hack. Any testers? In-Reply-To: <4215D3DD.7070805@op5.se> References: <4215D2AE.30102@op5.se> <4215D3DD.7070805@op5.se> Message-ID: <4215D518.6040403@op5.se> (this isn't a good day for me). I just found a small issue with it. This new one is the one to try. Andreas Ericsson wrote: > Andreas Ericsson wrote: > >> I accidentally deleted the mail from the guy having problems with his >> check_hpjd from nagiosplug cvs. >> >> I've reworked it a bit and added some cool features, although I don't >> have any hp printer to test it on. >> >> It's attached. I'll send a patch to the tracker item when I've gotten >> it tested a bit more. >> > > Perhaps I should be so kind as to really attach it as well. ;) > Sorry about that. > > Howto; Copy this check_hpjd.c to your plugin distribution, run > ./configure if you haven't previously done so, and then make. > > If you're using a wonky sort of MS mailer that adds funky line endings > to the file, you can wash it by the following command; > sed 's/.$//' check_hpjd.c > foo && mv foo check_hpjd.c > > Cheers. > > > ------------------------------------------------------------------------ > > /****************************************************************************** > * > * This program is free software; you can redistribute it and/or modify > * it under the terms of the GNU General Public License as published by > * the Free Software Foundation; either version 2 of the License, or > * (at your option) any later version. > * > * This program is distributed in the hope that it will be useful, > * but WITHOUT ANY WARRANTY; without even the implied warranty of > * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > * GNU General Public License for more details. > * > * You should have received a copy of the GNU General Public License > * along with this program; if not, write to the Free Software > * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. > * > * $Id: check_hpjd.c,v 1.31 2004/12/25 23:17:44 opensides Exp $ > *****************************************************************************/ > > const char *progname = "check_hpjd"; > const char *revision = "$Revision: 1.31 $"; > const char *copyright = "2000-2004"; > const char *email = "nagiosplug-devel at lists.sourceforge.net"; > > #include "common.h" > #include "popen.h" > #include "utils.h" > #include "netutils.h" > > #define DEFAULT_COMMUNITY "public" > > > const char *option_summary = "-H host [-C community]\n"; > > #define HPJD_LINE_STATUS ".1.3.6.1.4.1.11.2.3.9.1.1.2.1" > #define HPJD_PAPER_STATUS ".1.3.6.1.4.1.11.2.3.9.1.1.2.2" > #define HPJD_INTERVENTION_REQUIRED ".1.3.6.1.4.1.11.2.3.9.1.1.2.3" > #define HPJD_GD_PERIPHERAL_ERROR ".1.3.6.1.4.1.11.2.3.9.1.1.2.6" > #define HPJD_GD_PAPER_JAM ".1.3.6.1.4.1.11.2.3.9.1.1.2.8" > #define HPJD_GD_PAPER_OUT ".1.3.6.1.4.1.11.2.3.9.1.1.2.9" > #define HPJD_GD_TONER_LOW ".1.3.6.1.4.1.11.2.3.9.1.1.2.10" > #define HPJD_GD_PAGE_PUNT ".1.3.6.1.4.1.11.2.3.9.1.1.2.11" > #define HPJD_GD_MEMORY_OUT ".1.3.6.1.4.1.11.2.3.9.1.1.2.12" > #define HPJD_GD_DOOR_OPEN ".1.3.6.1.4.1.11.2.3.9.1.1.2.17" > #define HPJD_GD_PAPER_OUTPUT ".1.3.6.1.4.1.11.2.3.9.1.1.2.19" > #define HPJD_GD_STATUS_DISPLAY ".1.3.6.1.4.1.11.2.3.9.1.1.3" > #define SNMP_VARS 12 > > #define ONLINE 0 > #define OFFLINE 1 > > int process_arguments (int, char **); > int validate_arguments (void); > void print_help (void); > void print_usage (void); > > char *community = NULL; > char *address = NULL; > > int > main (int argc, char **argv) > { > char command_line[1024]; > int result = STATE_UNKNOWN; > int line, val = 0; > char input_buffer[MAX_INPUT_BUFFER]; > char query_string[512]; > char *errmsg; > char *temp_buffer; > int line_status = ONLINE; > int errorflag = 0; /* bitflag error tracker */ > char *display_message; > char *errmsg_strings[11]; > int i; > > /* get the error messages. Will complain about discarded qualifiers > * with --disable-nls, but that doesn't matter since they're immutable */ > errmsg_strings[0] = _("Paper Jam"); > errmsg_strings[1] = _("Out of Paper"); > errmsg_strings[2] = _("Printer Offline"); > errmsg_strings[3] = _("Peripheral Error"); > errmsg_strings[4] = _("Intervention Required"); > errmsg_strings[5] = _("Toner Low"); > errmsg_strings[6] = _("Insufficient Memory"); > errmsg_strings[7] = _("A Door is Open"); > errmsg_strings[8] = _("Output Tray is Full"); > errmsg_strings[9] = _("Data too Slow for Engine"); > errmsg_strings[10] = _("Unknown Paper Error"); > > errmsg = malloc(MAX_INPUT_BUFFER); > > setlocale (LC_ALL, ""); > bindtextdomain (PACKAGE, LOCALEDIR); > textdomain (PACKAGE); > > if (process_arguments (argc, argv) == ERROR) > usage4 (_("Could not parse arguments")); > > /* removed ' 2>1' at end of command 10/27/1999 - EG */ > /* create the query string */ > /* get status display line first, so we can match line status against > * powersave as we parse it */ > sprintf > (query_string, > "%s.0 %s.0 %s.0 %s.0 %s.0 %s.0 %s.0 %s.0 %s.0 %s.0 %s.0 %s.0", > HPJD_GD_STATUS_DISPLAY, > HPJD_LINE_STATUS, > HPJD_PAPER_STATUS, > HPJD_INTERVENTION_REQUIRED, > HPJD_GD_PERIPHERAL_ERROR, > HPJD_GD_PAPER_JAM, > HPJD_GD_PAPER_OUT, > HPJD_GD_TONER_LOW, > HPJD_GD_PAGE_PUNT, > HPJD_GD_MEMORY_OUT, > HPJD_GD_DOOR_OPEN, HPJD_GD_PAPER_OUTPUT); > > /* get the command to run */ > sprintf (command_line, "%s -Oqa -m : -v 1 -c %s %s %s", PATH_TO_SNMPGET, community, > address, query_string); > > /* run the command */ > child_process = spopen (command_line); > if (child_process == NULL) { > printf (_("Could not open pipe: %s\n"), command_line); > return STATE_UNKNOWN; > } > > child_stderr = fdopen (child_stderr_array[fileno (child_process)], "r"); > if (child_stderr == NULL) { > /* don't print newline here, or we might return OK while > * only printing an error message (highly confusing) */ > printf (_("Could not open stderr for %s :: "), command_line); > } > > result = STATE_OK; > > line = 0; > /* end parsing when we have display_message, since we won't know > * what to do with line 13 or more anyway */ > while (fgets (input_buffer, MAX_INPUT_BUFFER - 1, child_process)) { > /* strip the newline character from the end of the input, if any */ > temp_buffer = strrchr(input_buffer, '\n'); > if(temp_buffer) *temp_buffer = '\0'; > > if(line == 0) { > display_message = strdup(input_buffer); > continue; > } > val = (int)strtol(input_buffer, NULL, 0); > if(!val) continue; /* no errors here, so don't handle it */ > errorflag |= 1 << line; /* set the error flag */ > > /* this switch statement is largely for adding additional > * exception handling (POWERSAVE and such) */ > switch (line) { > case 1: /* line status */ > /* clear the flag if it's powersaving */ > if(!strstr("POWERSAVE ON", display_message) != 0) > errorflag ^= 1 << line; > case 2: /* paper status */ > case 3: /* intervention required */ > case 4: /* peripheral error */ > case 5: /* paper jam */ > case 6: /* paper out */ > case 7: /* toner low */ > case 8: /* data came too slow for engine */ > case 9: /* out of memory */ > case 10: /* is there a door open */ > case 11: /* is output tray full */ > default: /* notreached */ > break; > } > > if(++line >= SNMP_VARS) > break; > } > > /* WARNING if output found on stderr, but only if we > * haven't already found an error condition */ > if (!errorflag && fgets (input_buffer, MAX_INPUT_BUFFER - 1, child_stderr)) { > result = max_state (result, STATE_WARNING); > /* remove CRLF */ > if (input_buffer[strlen (input_buffer) - 1] == '\n') > input_buffer[strlen (input_buffer) - 1] = 0; > strncpy(errmsg, input_buffer, sizeof(errmsg)); > } > > /* close stderr */ > (void) fclose (child_stderr); > > /* close the pipe. set warning at least if snmpget didn't return 0 */ > if (spclose (child_process)) > result = STATE_WARNING; > > /* if there wasn't any output, display an error */ > if (line == 0) { > /* timeout is not necessarily the problem, and produces wildly > * inaccurate error messages when it isn't, so just say > * the host didn't return anything and return immediately > * (old plugin unconditionally escalated STATE_UNKNOWN to > * STATE_CRITICAL at the end, so this just saves a bit of > * output really. */ > /* it will unconditionally be escalated to STATE_CRITICAL later, > * so we might as well return that now. */ > printf (_("%s : No data returned from %s\n"), errmsg, address ); > return STATE_CRITICAL; > } > > /* obviously no read errors, so check the printer status results... */ > if (!errors) { > result = STATE_OK; > printf (_("Printer ok - (%s)\n"), display_message); > } > else { > /* some error occured, so print them all */ > while(i < SNMP_VARS) { > printf ("%s (%s)\n", errmsg ? errmsg : "", display_message); > if((errorflag >> i) & 1) /* only print if flag is set */ > printf(":: %s", errmsg_strings[i++]); > } > } > > return result; > } > > > /* process command-line arguments */ > int > process_arguments (int argc, char **argv) > { > int c; > > int option = 0; > static struct option longopts[] = { > {"hostname", required_argument, 0, 'H'}, > {"community", required_argument, 0, 'C'}, > /* {"critical", required_argument,0,'c'}, */ > /* {"warning", required_argument,0,'w'}, */ > /* {"port", required_argument,0,'P'}, */ > {"version", no_argument, 0, 'V'}, > {"help", no_argument, 0, 'h'}, > {0, 0, 0, 0} > }; > > if (argc < 2) > return ERROR; > > > while (1) { > c = getopt_long (argc, argv, "+hVH:C:", longopts, &option); > > if (c == -1 || c == EOF || c == 1) > break; > > switch (c) { > case 'H': /* hostname */ > if (is_host (optarg)) { > address = strscpy(address, optarg) ; > } > else { > usage2 (_("Invalid hostname/address"), optarg); > } > break; > case 'C': /* community */ > community = strscpy (community, optarg); > break; > case 'V': /* version */ > print_revision (progname, revision); > exit (STATE_OK); > case 'h': /* help */ > print_help (); > exit (STATE_OK); > case '?': /* help */ > usage2 (_("Unknown argument"), optarg); > } > } > > c = optind; > if (address == NULL) { > if (is_host (argv[c])) { > address = argv[c++]; > } > else { > usage2 (_("Invalid hostname/address"), argv[c]); > } > } > > if (community == NULL) { > if (argv[c] != NULL ) > community = argv[c]; > else > community = DEFAULT_COMMUNITY; > } > > return validate_arguments (); > } > > > int > validate_arguments (void) > { > return OK; > } > > > void > print_help (void) > { > print_revision (progname, revision); > > printf ("Copyright (c) 1999 Ethan Galstad \n"); > printf (COPYRIGHT, copyright, email); > > printf (_("\ > This plugin tests the STATUS of an HP printer with a JetDirect card.\n\ > Net-snmp must be installed on the computer running the plugin.\n\n")); > > print_usage (); > > printf (_(UT_HELP_VRSN)); > > printf (_("\ > -C, --community=STRING\n\ > The SNMP community name (default=%s)\n"), DEFAULT_COMMUNITY); > > printf (_(UT_SUPPORT)); > } > > > > void > print_usage (void) > { > printf ("Usage: %s -H host [-C community]\n", progname); > } -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer -------------- next part -------------- A non-text attachment was scrubbed... Name: check_hpjd.c Type: text/x-csrc Size: 9758 bytes Desc: not available URL: From andre.bergei at ementor.no Fri Feb 18 12:48:12 2005 From: andre.bergei at ementor.no (Andre Bergei) Date: Fri, 18 Feb 2005 12:48:12 +0100 Subject: SNMP_CPU Error With Dual CPU Systems? Message-ID: <447B76ECA7A8ED45B831D4D419A7AE560D732A@100NOOSLMSG004.common.alpharoot.net> > Does anyone know if boxes with more than 1 CPU (physical (not > just HT)) are supported via SNMP+NAGIOS? > > Thanks! > Are you using the net-snmp deamon? Then read this: http://www.net-snmp.com/docs/FAQ.html#What_about_multi_processor_systems_ Multi cpu systems are not supported :/ Best /andr? ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From v-alloo at ti.com Fri Feb 18 12:50:26 2005 From: v-alloo at ti.com (Alloo, Vincent) Date: Fri, 18 Feb 2005 12:50:26 +0100 Subject: check_memory plugin ?? Message-ID: Hello, I'm looking for a generic plugin which can monitor on Solaris and Linux boxes free memory. Where can I find a good one? Thanks in advance, Vincent Alloo TI France Design Systems Operations Manager Europe and Middle East IT Services Texas Instruments France E-Mail: v-alloo at ti.com Phone: +33 4 93 22 26 97 Mobile: +33 6 82 13 00 80 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From andre.bergei at ementor.no Fri Feb 18 12:56:19 2005 From: andre.bergei at ementor.no (Andre Bergei) Date: Fri, 18 Feb 2005 12:56:19 +0100 Subject: check_memory plugin ?? Message-ID: <447B76ECA7A8ED45B831D4D419A7AE560D732B@100NOOSLMSG004.common.alpharoot.net> > Hello, > I'm looking for a generic plugin which can monitor on Solaris > and Linux boxes free memory. Where can I find a good one? > Thanks in advance, Hi. If you want to use SNMP, Try this one: http://www.manubulon.com/nagios/snmp_storage.html I think it uses the host resource mib, and should therefore work both on solaris and linux snmp deamons. best /andr? ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From v-alloo at ti.com Fri Feb 18 13:01:56 2005 From: v-alloo at ti.com (Alloo, Vincent) Date: Fri, 18 Feb 2005 13:01:56 +0100 Subject: check_memory plugin ?? Message-ID: Thanks Andre, but I had already tried this one. It works fine on Linux, but the SNMP table doesn't exist on regular Sparc Solaris machines ... I'm looking so for something else. Regards, Vincent Alloo TI France Design Systems Operations Manager Europe and Middle East IT Services Texas Instruments France E-Mail: v-alloo at ti.com Phone: +33 4 93 22 26 97 Mobile: +33 6 82 13 00 80 > -----Original Message----- > From: Andre Bergei [mailto:andre.bergei at ementor.no] > Sent: Friday, February 18, 2005 12:56 PM > To: Alloo, Vincent; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] check_memory plugin ?? > > > Hello, > > I'm looking for a generic plugin which can monitor on Solaris > > and Linux boxes free memory. Where can I find a good one? > > Thanks in advance, > > > Hi. > > If you want to use SNMP, Try this one: > http://www.manubulon.com/nagios/snmp_storage.html > > I think it uses the host resource mib, and should therefore work both on > solaris and linux snmp deamons. > > best > /andr? ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Carsten.Schmitz at aegon.com Fri Feb 18 13:07:12 2005 From: Carsten.Schmitz at aegon.com (Schmitz, Carsten) Date: Fri, 18 Feb 2005 13:07:12 +0100 Subject: Monitoring CPU Temperuture on Solaris8 Message-ID: <49977F7CEA035C46A2D47108CE0F032FF74C39@ANGELIA.aegon.com> see http://www.bolthole.com/solaris/drivers/health.html for such a tool. You can write your own Nagios plugin arround it with shell script, exit 0, 1 or 2 for ok, warn, critical, respectively. I should note I haven't yet used or installed it myself, I just googled for it after you asked because I was curious. Cheers, Carsten -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Andreas Ericsson Sent: Friday, February 18, 2005 11:19 AM To: Kuru Murat Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Monitoring CPU Temperuture on Solaris8 Kuru Murat wrote: > Hi All > > I need to monitore the CPU temperatur on a Sun Solaris8 machine. > > It seams that the plugin check_sensors is only working with lm_sensors, > which is avaiblable > only for Linux. > > Is there a plugin out there that is also compactibel with solaris8? > There is most likely a program, but not a plugin. Getting CPU temp and such requires tight cooperation with the kernel/hardware mix in a way that no standards exist for. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From philc at foundation-it.com Fri Feb 18 13:17:43 2005 From: philc at foundation-it.com (Phil Costelloe) Date: Fri, 18 Feb 2005 12:17:43 -0000 Subject: Monitoring CPU Temperuture on Solaris8 Message-ID: <4E71CFD68DCB4E49B04AD93E84827EE933A6CB@netfinity-1.foundation-it.local> Kuru Murat wrote: > I need to monitore the CPU temperatur on a Sun Solaris8 machine. > > It seams that the plugin check_sensors is only working with > lm_sensors, which is avaiblable only for Linux. > > Is there a plugin out there that is also compactibel with solaris8? I'm not aware of one. The temperature of the CPU(s) is contained in the output of /usr/platform/`uname -m`/prtdiag -v. If you only need to monitor a single server (or single class of server) then it should be fairly easy to put a custom plugin together. Given that the output of prtdiag varies considerably according to the underlying hardware platform, writing and maintaining a generic plugin would be a life's work. Phil ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From philc at foundation-it.com Fri Feb 18 13:23:09 2005 From: philc at foundation-it.com (Phil Costelloe) Date: Fri, 18 Feb 2005 12:23:09 -0000 Subject: Monitoring CPU Temperuture on Solaris8 Message-ID: <4E71CFD68DCB4E49B04AD93E84827EE92A8FFB@netfinity-1.foundation-it.local> Schmitz, Carsten wrote: > see http://www.bolthole.com/solaris/drivers/health.html for such a > tool. You can write your own Nagios plugin arround it with shell > script, exit 0, 1 or 2 for ok, warn, critical, respectively. I think that monitors specific PC motherboards so will only help if you're running Solaris x86. The OP specifically mentioned Sun hardware. Phil ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From v-alloo at ti.com Fri Feb 18 13:37:45 2005 From: v-alloo at ti.com (Alloo, Vincent) Date: Fri, 18 Feb 2005 13:37:45 +0100 Subject: Monitoring CPU Temperuture on Solaris8 Message-ID: Another solution is to install the SUN SNMP agent (SUNWmasfr package) which is platform specific and use snmpget to collect HW infos (see http://www.sun.com/servers/entry/sun_management.html for entry level servers). I have already tried and it works fine. Regards, Vincent Alloo TI France Design Systems Operations Manager Europe and Middle East IT Services Texas Instruments France E-Mail: v-alloo at ti.com Phone: +33 4 93 22 26 97 Mobile: +33 6 82 13 00 80 > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Phil Costelloe > Sent: Friday, February 18, 2005 1:18 PM > To: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Monitoring CPU Temperuture on Solaris8 > > Kuru Murat wrote: > > > I need to monitore the CPU temperatur on a Sun Solaris8 machine. > > > > It seams that the plugin check_sensors is only working with > > lm_sensors, which is avaiblable only for Linux. > > > > Is there a plugin out there that is also compactibel with solaris8? > > I'm not aware of one. The temperature of the CPU(s) is contained in the > output of /usr/platform/`uname -m`/prtdiag -v. If you only need to > monitor a single server (or single class of server) then it should be > fairly easy to put a custom plugin together. Given that the output of > prtdiag varies considerably according to the underlying hardware > platform, writing and maintaining a generic plugin would be a life's > work. > > Phil > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id396&op=ick > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From vuhung16duong at yahoo.co.jp Fri Feb 18 14:08:02 2005 From: vuhung16duong at yahoo.co.jp (Bit Takeshi) Date: Fri, 18 Feb 2005 22:08:02 +0900 (JST) Subject: contact settings error notify-by-epager In-Reply-To: <4215CB67.7080505@ufz.de> References: <4215CB67.7080505@ufz.de> Message-ID: <20050218130802.64816.qmail@web2909.mail.bbt.yahoo.co.jp> --- Werner Flamme ??????? ?? > Hi Bit Takeshi, > > you should have a line like > > cfg_file=/usr/local/nagios/etc/misccommands.cfg > > in your nagios.cfg. In the lot of files I just sent > you you will find > misccommands.cfg where all these commands are > defined. > > HTH, > Werner > > -- > Werner Flamme, Abt. WKDV > UFZ Umweltforschungszentrum Leipzig-Halle GmbH, > Permoserstr. 15, 04318 Leipzig - http://www.ufz.de > eMail: werner.flamme at ufz.de, Tel.: (0341) 235-2500 > Hello Werner, The file misccommands.cfg was missing before I made make install-config. And I ran nagios -v and it told me that misccommands.cfg was missing. And what I did is ignorant: touch misccommands.cfg because I thought that "It is misc command, just touch the file and error gone". The error was GONE but the problem in fact, not solved. These are all I have in sample-config folder. Some critical config files are not there and it's me whom to blame: Using a beta version :) Thanks Werner for your nice help and thanks all nagios community for making a great yet OSS tool! [root at ns1 /home/vuhung/tmp/nagios-2.0b2/sample-config]#pwd /home/vuhung/tmp/nagios-2.0b2/sample-config [root at ns1 /home/vuhung/tmp/nagios-2.0b2/sample-config]#ls cgi.cfg cgi.cfg.in httpd.conf httpd.conf.in nagios.cfg nagios.cfg.in README resource.cfg resource.cfg.in template-object [root at ns1 /home/vuhung/tmp/nagios-2.0b2/sample-config]#ls template-object/ bigger.cfg checkcommands.cfg minimal.cfg misccommands.cfg README bigger.cfg.in checkcommands.cfg.in minimal.cfg.in misccommands.cfg.in [root at ns1 /home/vuhung/tmp/nagios-2.0b2/sample-config]# http://www.fedu.uec.ac.jp/~vuhung/ http://chuiyang.org __________________________________ Let's Celebrate Together! Yahoo! JAPAN http://pr.mail.yahoo.co.jp/so2005/ ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Fri Feb 18 14:43:06 2005 From: marc at ena.com (Marc Powell) Date: Fri, 18 Feb 2005 07:43:06 -0600 Subject: Storing data in MySQL Message-ID: <2B79966571B4B842B9C07E9910E38CE60CA069@mismail.ena.com> > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of first last > Sent: Friday, February 18, 2005 12:43 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Storing data in MySQL > > Hi, > > I am running nagios 1.2 with mysql support on FC3. When I click on the > "trend" option on the webpage. I can see graphs for my services. There > are services that I have ran for more than 2 weeks, but the graph show me > data that starts from this week only even though the day range I pick is > for this month. Worst yet, the graph sometimes is blank. I am wondering > where do those data store? I can't see any of them in the mysql db. I > tried to querry the mysql db and all I really see are data from the last > check. Where do the historical data store or does it store at all? /path/to/nagios/var/archives/ if you've installed from tarball. The database is only designed to hold last checks. Historical information is kept in flat files. > > When I click the "availability" option and set the "first assumed state" > to "State OK" I see the services are in the OK state 99.9%, but when I > change teh "assumed state" to "State Critical", the OK state changes to > 60% and suddenly teh Critical State becomes 39%. I am trying to > understand nagios more. The two key bits of information here are that nagios typically only logs state changes and that it will not lie to you on the availability reports. If you run an availability report for a period of one month for a service that was down the last half of the month, Nagios will show the first half of the month as undetermined and the last half of the month as critical unless it can determine the exact state of the service at the beginning of the report period. The first assumed state option is a way of telling nagios that you know that at the beginning of the report period that the service was in X state. You can also use the backtracked archives option to increase the chances that nagios will find a logged state for your service further back in time to use as an initial starting state. You can also set log_initial_states=1 in nagios.cfg and perform nightly reloads of the service to log current states of all hosts and services on a daily basis. http://www.nagios.org/faqs/viewfaq.php?faq_id=136&expand=false&showdesc= false > > At last what is the differnet between "soft" and "hard" state? My > understanding from the document is when a service flip between say > "Warning" and "Critical", it is in soft state because it is flapping. If > it states in "Critical", that is a hard state. Is this correct? Basically, a soft state is used when a service or host check has not yet reached max_check_attempts. Additional processing happens for hosts and services when they are in a soft state. A hard state is used when it has. http://nagios.sourceforge.net/docs/1_0/statetypes.html ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cecil.williams at autozone.com Fri Feb 18 14:57:53 2005 From: cecil.williams at autozone.com (cecil.williams at autozone.com) Date: Fri, 18 Feb 2005 07:57:53 -0600 Subject: Cecil Williams/STS/AUTOZONE is out of the office. Message-ID: I will be out of the office starting 02/17/2005 and will not return until 02/28/2005. I will respond to your message when I return. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From SrvFaucon at cslaval.qc.ca Fri Feb 18 15:12:58 2005 From: SrvFaucon at cslaval.qc.ca (Serveur-Faucon Surveillance) Date: Fri, 18 Feb 2005 09:12:58 -0500 Subject: check_load weird behavior in French config Message-ID: Hi all, The is somehow a weird behavior with check_load with my French Mandrake 10.x (plugins version 1.4) Somehow, when I reboot the server, check_load does not work anymore. I go on the console, /init.d/nrpe restart the program and everything is fine after. Is there someone with/had the same problem? --- all the tests --- On another normal system (rh9) root# /usr/local/nagios/libexec/check_load -w 20,15,10 -c 35,30,25 OK - load average: 0.37, 0.66, 0.82|load1=0;20;35;0 load5=0;15;30;0 load15=0;10;25;0 Everything is fine... On a English Mandrake 10.x root]# /usr/local/nagios/libexec/check_load -w 20,15,10 -c 35,30,25 OK - load average: 0.31, 0.23, 0.20|load1=0.310000;20.000000;35.000000;0.000000 load5=0.230000;15.000000;30.000000;0.000000 load15=0.200000;10.000000;25.000000;0.000000 Everything is fine... But... on a French Mandrake 10.x /usr/local/nagios/libexec/check_load -w 20,15,10 -c 35,30,25 Warning threshold must be float or float triplet! Usage: check_load -w WLOAD1,WLOAD5,WLOAD15 -c CLOAD1,CLOAD5,CLOAD15 check_load (-h | --help) for detailed help check_load (-V | --version) for version information So he needs some " " " since the command "w" returns with "," insted of "." root]# w 09:08:23 up 15:48, 1 user, load average: 0,00, 0,00, 0,00 USER TTY LOGIN@ IDLE JCPU PCPU WHAT root pts/0 09:07 0.00s 0.10s 0.01s w root]# /usr/local/nagios/libexec/check_load -w "20,0","15,0","10,0" -c "35,0","30,0","25,0" OK - load average: 0,00, 0,00, 0,00|load1=0;20;35;0 load5=0;15;30;0 load15=0;10;25;0 everything works now. But when I reboot, there is a critical situation. When I restart nrpe, everything is fine. --------------------------------------------------- Alexandre Racine - www.gardienvirtuel.com Montr?al, Qu?bec, Canada ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Feb 18 15:43:41 2005 From: ae at op5.se (Andreas Ericsson) Date: Fri, 18 Feb 2005 15:43:41 +0100 Subject: check_load weird behavior in French config In-Reply-To: References: Message-ID: <4215FF1D.5090908@op5.se> Serveur-Faucon Surveillance wrote: > Hi all, > > The is somehow a weird behavior with check_load with my French > Mandrake 10.x (plugins version 1.4) > > Somehow, when I reboot the server, check_load does not work anymore. > I go on the console, /init.d/nrpe restart the program and everything > is fine after. Is there someone with/had the same problem? > > > --- all the tests --- > > On another normal system (rh9) > > root# /usr/local/nagios/libexec/check_load -w 20,15,10 -c 35,30,25 OK > - load average: 0.37, 0.66, 0.82|load1=0;20;35;0 load5=0;15;30;0 > load15=0;10;25;0 > > Everything is fine... > > On a English Mandrake 10.x > > root]# /usr/local/nagios/libexec/check_load -w 20,15,10 -c 35,30,25 > OK - load average: 0.31, 0.23, > 0.20|load1=0.310000;20.000000;35.000000;0.000000 > load5=0.230000;15.000000;30.000000;0.000000 > load15=0.200000;10.000000;25.000000;0.000000 > > Everything is fine... > > But... on a French Mandrake 10.x > > /usr/local/nagios/libexec/check_load -w 20,15,10 -c 35,30,25 Warning > threshold must be float or float triplet! Usage: check_load -w > WLOAD1,WLOAD5,WLOAD15 -c CLOAD1,CLOAD5,CLOAD15 check_load (-h | > --help) for detailed help check_load (-V | --version) for version > information > > So he needs some " " " since the command "w" returns with "," insted > of "." > > root]# w 09:08:23 up 15:48, 1 user, load average: 0,00, 0,00, 0,00 > USER TTY LOGIN@ IDLE JCPU PCPU WHAT root pts/0 > 09:07 0.00s 0.10s 0.01s w > > root]# /usr/local/nagios/libexec/check_load -w "20,0","15,0","10,0" > -c "35,0","30,0","25,0" OK - load average: 0,00, 0,00, > 0,00|load1=0;20;35;0 load5=0;15;30;0 load15=0;10;25;0 > > everything works now. But when I reboot, there is a critical > situation. When I restart nrpe, everything is fine. > This has to do with locale settings. The french numbers locale appoints ',' to be the decimal point (decimal comma or whatever), which clashes horribly with the plugins since it's using strtod() to get the thresholds. strtod() barfs on more than one decimal point (decimal comma, whatever), since any number can only have one decimal point (comma...). It's terribly involved to try to write code to parse all different locales properly. The best bet would probably be to use a semi-colon, but that would leave current users stumped because the shell will think you're starting a new command. Like I said; Terribly involved. > > > --------------------------------------------------- Alexandre Racine > - www.gardienvirtuel.com Montr?al, Qu?bec, Canada > > > > ------------------------------------------------------- SF email is > sponsored by - The IT Product Guide Read honest & candid reviews on > hundreds of IT Products from real users. Discover which products > truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id396&op=click > _______________________________________________ Nagios-users mailing > list Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please > include Nagios version, plugin version (-v) and OS when reporting any > issue. ::: Messages without supporting info will risk being sent to > /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fred.blaise at excilan.com Fri Feb 18 16:14:41 2005 From: fred.blaise at excilan.com (Fred Blaise) Date: Fri, 18 Feb 2005 16:14:41 +0100 Subject: SMS issue Message-ID: <1108739681.3868.52.camel@localhost.localdomain> Hello all I am in need of a new eye on my problem. Nagios 1.3, latest update of debian testing - ( web piece disfunctional after upgrade btw. Note: the pb was present before the upgrade). I am using the files backend. I am sending alerts via emails and SMS (classic). Emails are always being sent and received. No problems there. The problem lies in the SMSes are actually not being sent, but only when they are sent by Nagios. They are not even leaving the server! I used tcpdump to monitor the nw traffic for those SMS... total silence. This is my misccommands.cfg for this SMS notification: define command{ command_name notify-by-sms command_line /usr/local/bin/sms_notify_2 $CONTACTPAGER$ "Service: $SERVICEDESC$ Host: $HOSTALIAS$ State: $SERVICESTATE$ Time: $DATETIME$ Info: $OUTPUT$" } I can see nagios logging the alert, and also logging that the SMS alerts were sent: [1108738026] SERVICE NOTIFICATION: renaud;rolo;RADIUS;CRITICAL;notify-by-sms;Auth Error [1108738026] SERVICE NOTIFICATION: renaud;rolo;RADIUS;CRITICAL;notify-by-email;Auth Error [1108738026] SERVICE NOTIFICATION: nagios;rolo;RADIUS;CRITICAL;notify-by-sms;Auth Error [1108738026] SERVICE NOTIFICATION: nagios;rolo;RADIUS;CRITICAL;notify-by-email;Auth Error [1108738026] SERVICE NOTIFICATION: chris;rolo;RADIUS;CRITICAL;notify-by-sms;Auth Error [1108738026] SERVICE NOTIFICATION: chris;rolo;RADIUS;CRITICAL;notify-by-email;Auth Error The script (sms_notify_2) works fine if run manually. Also, I tried to reproduce the problem in writing a small bash script to try to simulate how nagios sends those SMSes: ------ #!/bin/bash PH_NUM=( 000000000000 111111111111 222222222222 ) for i in ${PH_NUM[@]}; do echo "Sending to $i" /usr/local/bin/sms_notify_2 $i "Tests en rafales" & done ------- That script works perfectly, I receive the SMS everytime on the 3 cell phones. But Nagios still doesn't send the SMSes.. I also tried putting a random sleep statement in the php script that generates the actual SMSes, just in case that it was being triggered too fast by Nagios, and that for some reasons didn't work because that. No luck there either. Please note the above is (trying) to generate 3 SMSes.. If I try with only 1 SMS recipient, I _sometimes_ get the SMS... and I can see the trace on tcpdump, of course. Anyone having any idea? How is Nagios actually triggering the sending of the alerts? Any ideas, pointers, suggestions are very welcome. Thanks a lot. Regards ))fred -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From nixon at nsc.liu.se Fri Feb 18 16:42:38 2005 From: nixon at nsc.liu.se (Leif Nixon) Date: Fri, 18 Feb 2005 16:42:38 +0100 Subject: SMS issue In-Reply-To: <1108739681.3868.52.camel@localhost.localdomain> (Fred Blaise's message of "Fri, 18 Feb 2005 16:14:41 +0100") References: <1108739681.3868.52.camel@localhost.localdomain> Message-ID: Fred Blaise writes: > The problem lies in the SMSes are actually not being sent, but only when > they are sent by Nagios. They are not even leaving the server! I used > tcpdump to monitor the nw traffic for those SMS... total silence. > [...] > The script (sms_notify_2) works fine if run manually. As which user? This sounds like a privilege problem. -- Leif Nixon - Systems expert ------------------------------------------------------------ National Supercomputer Centre - Linkoping University ------------------------------------------------------------ ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fred.blaise at excilan.com Fri Feb 18 16:56:58 2005 From: fred.blaise at excilan.com (Fred Blaise) Date: Fri, 18 Feb 2005 16:56:58 +0100 Subject: SMS issue In-Reply-To: References: <1108739681.3868.52.camel@localhost.localdomain> Message-ID: <1108742218.3818.3.camel@localhost.localdomain> Already checked privileges. This is not it. Why would it work with only 1 SMS, and not several, if it was a privilege problem? ;) On Fri, 2005-02-18 at 16:42 +0100, Leif Nixon wrote: > Fred Blaise writes: > > > The problem lies in the SMSes are actually not being sent, but only when > > they are sent by Nagios. They are not even leaving the server! I used > > tcpdump to monitor the nw traffic for those SMS... total silence. > > [...] > > The script (sms_notify_2) works fine if run manually. > > As which user? This sounds like a privilege problem. > -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From ae at op5.se Fri Feb 18 17:04:33 2005 From: ae at op5.se (Andreas Ericsson) Date: Fri, 18 Feb 2005 17:04:33 +0100 Subject: SMS issue In-Reply-To: <1108742218.3818.3.camel@localhost.localdomain> References: <1108739681.3868.52.camel@localhost.localdomain> <1108742218.3818.3.camel@localhost.localdomain> Message-ID: <42161211.9090801@op5.se> Fred Blaise wrote: > Already checked privileges. This is not it. > Why would it work with only 1 SMS, and not several, if it was a > privilege problem? ;) > Do you have some sort of spooler mechanism or are you printing directly to the serial port? If you do, the ones that get printed after the first has been processed will most likely be deleted. > On Fri, 2005-02-18 at 16:42 +0100, Leif Nixon wrote: > >>Fred Blaise writes: >> >> >>>The problem lies in the SMSes are actually not being sent, but only when >>>they are sent by Nagios. They are not even leaving the server! I used >>>tcpdump to monitor the nw traffic for those SMS... total silence. >>>[...] >>>The script (sms_notify_2) works fine if run manually. >> >>As which user? This sounds like a privilege problem. >> -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fred.blaise at excilan.com Fri Feb 18 17:15:11 2005 From: fred.blaise at excilan.com (Fred Blaise) Date: Fri, 18 Feb 2005 17:15:11 +0100 Subject: SMS issue In-Reply-To: <42161211.9090801@op5.se> References: <1108739681.3868.52.camel@localhost.localdomain> <1108742218.3818.3.camel@localhost.localdomain> <42161211.9090801@op5.se> Message-ID: <1108743311.3818.6.camel@localhost.localdomain> the php script (sms_notify_2) is generating a http request to some outside company that does SMS business. Serial port? Sorry I don't understand this... No spooling of some sort I guess.. the php script takes about 3 seconds to return if run from command line. Hope this helps a bit.. didn't quite understand your response. Sorry :/ Thanks ))fred On Fri, 2005-02-18 at 17:04 +0100, Andreas Ericsson wrote: > Fred Blaise wrote: > > Already checked privileges. This is not it. > > Why would it work with only 1 SMS, and not several, if it was a > > privilege problem? ;) > > > > Do you have some sort of spooler mechanism or are you printing directly > to the serial port? If you do, the ones that get printed after the first > has been processed will most likely be deleted. > > > On Fri, 2005-02-18 at 16:42 +0100, Leif Nixon wrote: > > > >>Fred Blaise writes: > >> > >> > >>>The problem lies in the SMSes are actually not being sent, but only when > >>>they are sent by Nagios. They are not even leaving the server! I used > >>>tcpdump to monitor the nw traffic for those SMS... total silence. > >>>[...] > >>>The script (sms_notify_2) works fine if run manually. > >> > >>As which user? This sounds like a privilege problem. > >> > -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From Ross.Hosman at chartercom.com Fri Feb 18 17:20:44 2005 From: Ross.Hosman at chartercom.com (Hosman, Ross) Date: Fri, 18 Feb 2005 10:20:44 -0600 Subject: Web Interface problem Message-ID: <2EF66C501EE2964A995C473CE72A0F31011F01AF@kstlmexc06.CORP.CHARTERCOM.COM> Any idea on how to fix this as this is rather annoying. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Andreas Ericsson Sent: Thursday, February 17, 2005 2:31 AM To: 'nagios-users at lists.sourceforge.net' Subject: Re: [Nagios-users] Web Interface problem Hosman, Ross wrote: > One thing we have noticed is in the status summary page when we have added > new hosts that when you keep refreshing that page the hosts/alerts dissapear > and go to no matching hosts found if in a new hostgroup. Any ideas on why > this happeneds? > You have several instances of Nagios running. The nagios 1.x init-script (and 2.x, according to recent sources) is poorly written, so this sometimes happens. > Ross Hosman > HSD Administrator > ross.hosman at chartercom.com > O: 314-543-5823 > C: 314-898-3381 > Y!: rosshosman > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ross.Hosman at chartercom.com Fri Feb 18 17:25:14 2005 From: Ross.Hosman at chartercom.com (Hosman, Ross) Date: Fri, 18 Feb 2005 10:25:14 -0600 Subject: Web Interface problem Message-ID: <2EF66C501EE2964A995C473CE72A0F31011F01B1@kstlmexc06.CORP.CHARTERCOM.COM> n/m fixed it -----Original Message----- From: Hosman, Ross Sent: Friday, February 18, 2005 10:21 AM To: 'nagios-users at lists.sourceforge.net' Subject: RE: [Nagios-users] Web Interface problem Any idea on how to fix this as this is rather annoying. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Andreas Ericsson Sent: Thursday, February 17, 2005 2:31 AM To: 'nagios-users at lists.sourceforge.net' Subject: Re: [Nagios-users] Web Interface problem Hosman, Ross wrote: > One thing we have noticed is in the status summary page when we have added > new hosts that when you keep refreshing that page the hosts/alerts dissapear > and go to no matching hosts found if in a new hostgroup. Any ideas on why > this happeneds? > You have several instances of Nagios running. The nagios 1.x init-script (and 2.x, according to recent sources) is poorly written, so this sometimes happens. > Ross Hosman > HSD Administrator > ross.hosman at chartercom.com > O: 314-543-5823 > C: 314-898-3381 > Y!: rosshosman > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Feb 18 17:48:50 2005 From: ae at op5.se (Andreas Ericsson) Date: Fri, 18 Feb 2005 17:48:50 +0100 Subject: Web Interface problem In-Reply-To: <2EF66C501EE2964A995C473CE72A0F31011F01AF@kstlmexc06.CORP.CHARTERCOM.COM> References: <2EF66C501EE2964A995C473CE72A0F31011F01AF@kstlmexc06.CORP.CHARTERCOM.COM> Message-ID: <42161C72.20303@op5.se> Hosman, Ross wrote: > Any idea on how to fix this as this is rather annoying. > I saw your other post. This is for the archives (although noone ever reads them..); killall -9 nagios /etc/init.d/nagios start > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Andreas > Ericsson > Sent: Thursday, February 17, 2005 2:31 AM > To: 'nagios-users at lists.sourceforge.net' > Subject: Re: [Nagios-users] Web Interface problem > > > Hosman, Ross wrote: > >>One thing we have noticed is in the status summary page when we have added >>new hosts that when you keep refreshing that page the hosts/alerts > > dissapear > >>and go to no matching hosts found if in a new hostgroup. Any ideas on why >>this happeneds? >> > > > You have several instances of Nagios running. The nagios 1.x init-script > (and 2.x, according to recent sources) is poorly written, so this > sometimes happens. > > >>Ross Hosman >>HSD Administrator >>ross.hosman at chartercom.com >>O: 314-543-5823 >>C: 314-898-3381 >>Y!: rosshosman >> >> >>------------------------------------------------------- >>SF email is sponsored by - The IT Product Guide >>Read honest & candid reviews on hundreds of IT Products from real users. >>Discover which products truly live up to the hype. Start reading now. >>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >>::: Please include Nagios version, plugin version (-v) and OS when > > reporting any issue. > >>::: Messages without supporting info will risk being sent to /dev/null >> > > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jgiles at joeman1.com Fri Feb 18 17:50:49 2005 From: jgiles at joeman1.com (Joe Giles) Date: Fri, 18 Feb 2005 09:50:49 -0700 Subject: Multiple E-Mail Address Message-ID: <42161CE9.6000800@joeman1.com> Hey all, I was wondering how I can set up multiple e-mail address for my contacts. I want alerts sent to more than one e-mail address and I tried adding one e-mail address, then separating with a comma, then another e-mail address and only the first is sent. How can I specify multiple e-mail address to send alerts too. Thanks!!! Joe ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Feb 18 17:51:39 2005 From: ae at op5.se (Andreas Ericsson) Date: Fri, 18 Feb 2005 17:51:39 +0100 Subject: SMS issue In-Reply-To: <1108743311.3818.6.camel@localhost.localdomain> References: <1108739681.3868.52.camel@localhost.localdomain> <1108742218.3818.3.camel@localhost.localdomain> <42161211.9090801@op5.se> <1108743311.3818.6.camel@localhost.localdomain> Message-ID: <42161D1B.8040100@op5.se> Fred Blaise wrote: > the php script (sms_notify_2) is generating a http request to some > outside company that does SMS business. > Serial port? Sorry I don't understand this... > No spooling of some sort I guess.. the php script takes about 3 seconds > to return if run from command line. > > Hope this helps a bit.. didn't quite understand your response. Sorry :/ > The serial port is where you connect the GSM-capable modem (any cell-phone, practically) to send your sms's. It doesn't apply if you're using a remote service to send your messages. > Thanks > > ))fred > > On Fri, 2005-02-18 at 17:04 +0100, Andreas Ericsson wrote: > >>Fred Blaise wrote: >> >>>Already checked privileges. This is not it. >>>Why would it work with only 1 SMS, and not several, if it was a >>>privilege problem? ;) >>> >> >>Do you have some sort of spooler mechanism or are you printing directly >>to the serial port? If you do, the ones that get printed after the first >>has been processed will most likely be deleted. >> >> >>>On Fri, 2005-02-18 at 16:42 +0100, Leif Nixon wrote: >>> >>> >>>>Fred Blaise writes: >>>> >>>> >>>> >>>>>The problem lies in the SMSes are actually not being sent, but only when >>>>>they are sent by Nagios. They are not even leaving the server! I used >>>>>tcpdump to monitor the nw traffic for those SMS... total silence. >>>>>[...] >>>>>The script (sms_notify_2) works fine if run manually. >>>> >>>>As which user? This sounds like a privilege problem. >>>> >> -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From glestadt4 at yahoo.com Fri Feb 18 18:06:31 2005 From: glestadt4 at yahoo.com (joe ritter) Date: Fri, 18 Feb 2005 09:06:31 -0800 (PST) Subject: nrpe check_disk In-Reply-To: <421126FD.7010503@rtij.nl> References: <421126FD.7010503@rtij.nl> Message-ID: <20050218170631.57457.qmail@web90108.mail.scd.yahoo.com> Yes nrpe does have remote argument functionality compiled in. The reason I know this and that I beleive it is built correctly is that on these hosts where the check_disk plugin does not work, the check_swap plugin does and displays correctly in the web interface. Does anyone have any other things that I might check? Thanks J. --- Martijn Lievaart wrote: > joe ritter wrote: > > >Hello, > >I am usig nagios with check_nrpe to monitor remote > >hosts running the nrpe daemon. I anm having > difficulty > >with the plugin check_disk. If I run the the > command > >by hand on the nagios hosts all is well: > > > > /usr/lib/nagios/plugins/check_nrpe -H > 192.168.120.11 > >-c check_disk -a 20% 10% /dev/cciss/c0d0p1 > >DISK OK [67334 kB (71%) free on /dev/cciss/c0d0p1] > > > >If run the command on the remote hosts all look > fine > >as well: > > > > /usr/lib/nagios/plugins/check_disk -w 20% -c 10% > >/dev/cciss/c0d0p1 > >DISK OK [67334 kB (71%) free on /dev/cciss/c0d0p1] > > > > > >However when the command is run by the nagios > daemon > >on the moniting host the I recieve the follwoing > error > >in the web interface: > > > >Warning threshold must be integer or percentage! > > > >Here are the relevant defines I have set up for > this > >plugin: > > > >nrpe.cfg on remote host: > > > >command[check_disk]=/usr/lib/nagios/plugins/check_disk > > -w $ARG1$ -c $ARG2$ - > >p $ARG3$ > > > > > > > > You do have nrpe compiled with remote args? > Otherwise it will not see > the arguments. > > M4 > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT > Products from real users. > Discover which products truly live up to the hype. > Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version > (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being > sent to /dev/null > __________________________________ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mac at biviumcorp.com Fri Feb 18 18:14:40 2005 From: mac at biviumcorp.com (Edward MacGillivray) Date: Fri, 18 Feb 2005 11:14:40 -0600 Subject: check_hpjd plugin in Plugins 1.4 In-Reply-To: <4215BBE7.7010906@op5.se> References: <200502171750.32459.mac@biviumcorp.com> <4215BBE7.7010906@op5.se> Message-ID: <200502181114.41250.mac@biviumcorp.com> On Friday 18 February 2005 3:56 am, Andreas Ericsson wrote: > (sorry for posting again, I'm trying to patch this issue and just need > some verification). > > Does your snmpget support the -Ovq output option? Yes, thanks for the information, the snmpget has both -Oq and -Ov, I believe they'd work together as you have them. The snmpget that the server has is ucdsnmp-4.2.6-152. I also saw the "check_hpjd hack" email thread, and I went through to test it. However it didn't compile for me. I renamed the old check_hpjd.c file to check_hpjd-dist.c and then put the new check_hpjd.c file in the plugins folder. Then I deleted the check_hpjd file and the check_hpjd.o file, and finally ran make (I'd previously done ./configure and didn't think that'd be needed again). The make command reported: check_hpjd.c: In function `main': check_hpjd.c:211: error: `errors' undeclared (first use in this function) check_hpjd.c:211: error: (Each undeclared identifier is reported only once check_hpjd.c:211: error: for each function it appears in.) This is the block in which line 211 is. 210 /* obviously no read errors, so check the printer status results... */ 211 if (!errors) { 212 result = STATE_OK; 213 printf (_("Printer ok - (%s)\n"), display_message); 214 } Is this supposed to be the errorflag that is declared and used above the if construct on line 211? thanks mac ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jgiles at joeman1.com Fri Feb 18 18:20:41 2005 From: jgiles at joeman1.com (Joe Giles) Date: Fri, 18 Feb 2005 10:20:41 -0700 Subject: Multiple E-Mail Address In-Reply-To: <42161CE9.6000800@joeman1.com> References: <42161CE9.6000800@joeman1.com> Message-ID: <421623E9.1020102@joeman1.com> Joe Giles wrote: > Hey all, > > I was wondering how I can set up multiple e-mail address for my > contacts. I want alerts sent to more than one e-mail address and I > tried adding one e-mail address, then separating with a comma, then > another e-mail address and only the first is sent. > > How can I specify multiple e-mail address to send alerts too. > > Thanks!!! > > Joe > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk > being sent to /dev/null Ok, I figured it out. You have to specify more contacts in the contact.cfg file and then add those names to the contactgroups.cfg file members line. Simple enough :) Joe ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Fri Feb 18 18:22:17 2005 From: marc at ena.com (Marc Powell) Date: Fri, 18 Feb 2005 11:22:17 -0600 Subject: Multiple E-Mail Address Message-ID: <2B79966571B4B842B9C07E9910E38CE60CA08E@mismail.ena.com> > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Joe Giles > Sent: Friday, February 18, 2005 10:51 AM > To: Nagios Users List > Subject: [Nagios-users] Multiple E-Mail Address > > Hey all, > > I was wondering how I can set up multiple e-mail address for my > contacts. I want alerts sent to more than one e-mail address and I tried > adding one e-mail address, then separating with a comma, then another > e-mail address and only the first is sent. > > How can I specify multiple e-mail address to send alerts too. There are two ways that I can think of -- 1) Create multiple contacts and add them to the same contactgroup. 2) Does the mailer program you are using for your notifications support multiple addresses? The email address is simply passed to your notify command as $CONTACTEMAIL$, as long as the format of that variable and the command definition match what the program is expecting, it should just work. For example, /bin/mail allows you to specify multiple email addresses on the command line as long as they are separated by commas so I could use the following -- # 'nateng-servers' contact definition define contact{ contact_name nateng-servers alias Servers On Call service_notification_period 24x7 host_notification_period 24x7 service_notification_options c,r host_notification_options d,r service_notification_commands service-notify-by-email host_notification_commands host-notify-by-email email marc at ena.com,someotheremail at address.foo } # 'service-notify-by-email' command definition define command{ command_name service-notify-by-email command_line /bin/echo -e "Subject: Service $SERVICEDESC$ $SERVICESTATE$ alert for $HOSTNAME$!\n\n***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$ \nHost: $HOSTNAME$\nState: $SERVICESTATE$\nAddress: $HOSTADDRESS$\n\nService: $SERVICEDESC$\nInfo: $OUTPUT$\n\nDate/Time: $DATETIME$\n" | /bin/mail -s '** $NOTIFICATION TYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **' $CONTACTEMAIL$ } I've just tested this and it works as expected. Make sure you're not stripping out ',' in illegal_macro_output_chars. -- Marc ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jgiles at joeman1.com Fri Feb 18 18:25:43 2005 From: jgiles at joeman1.com (Joe Giles) Date: Fri, 18 Feb 2005 10:25:43 -0700 Subject: Multiple E-Mail Address In-Reply-To: <2B79966571B4B842B9C07E9910E38CE60CA08E@mismail.ena.com> References: <2B79966571B4B842B9C07E9910E38CE60CA08E@mismail.ena.com> Message-ID: <42162517.5060601@joeman1.com> Marc Powell wrote: > > >>-----Original Message----- >>From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- >>admin at lists.sourceforge.net] On Behalf Of Joe Giles >>Sent: Friday, February 18, 2005 10:51 AM >>To: Nagios Users List >>Subject: [Nagios-users] Multiple E-Mail Address >> >>Hey all, >> >>I was wondering how I can set up multiple e-mail address for my >>contacts. I want alerts sent to more than one e-mail address and I >> >> >tried > > >>adding one e-mail address, then separating with a comma, then another >>e-mail address and only the first is sent. >> >>How can I specify multiple e-mail address to send alerts too. >> >> > >There are two ways that I can think of -- > >1) Create multiple contacts and add them to the same contactgroup. > >2) Does the mailer program you are using for your notifications support >multiple addresses? The email address is simply passed to your notify >command as $CONTACTEMAIL$, as long as the format of that variable and >the command definition match what the program is expecting, it should >just work. For example, /bin/mail allows you to specify multiple email >addresses on the command line as long as they are separated by commas so >I could use the following -- > ># 'nateng-servers' contact definition >define contact{ > contact_name nateng-servers > alias Servers On Call > service_notification_period 24x7 > host_notification_period 24x7 > service_notification_options c,r > host_notification_options d,r > service_notification_commands service-notify-by-email > host_notification_commands host-notify-by-email > email >marc at ena.com,someotheremail at address.foo > } > ># 'service-notify-by-email' command definition >define command{ > command_name service-notify-by-email > command_line /bin/echo -e "Subject: Service $SERVICEDESC$ >$SERVICESTATE$ alert for $HOSTNAME$!\n\n***** Nagios >*****\n\nNotification Type: $NOTIFICATIONTYPE$ >\nHost: $HOSTNAME$\nState: $SERVICESTATE$\nAddress: >$HOSTADDRESS$\n\nService: $SERVICEDESC$\nInfo: $OUTPUT$\n\nDate/Time: >$DATETIME$\n" | /bin/mail -s '** $NOTIFICATION >TYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **' >$CONTACTEMAIL$ > } > >I've just tested this and it works as expected. Make sure you're not >stripping out ',' in illegal_macro_output_chars. > >-- >Marc > > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_ide95&alloc_id396&op=click >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > > Thanks for the reply... I opted for option 1 :) Thanks again!!! Joe ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From noyler at khimetrics.com Fri Feb 18 18:35:18 2005 From: noyler at khimetrics.com (Nathan Oyler) Date: Fri, 18 Feb 2005 10:35:18 -0700 Subject: Check_disk plugin, how to exclude without specifying path. Message-ID: <59B15593F41BD24591D59436E7226EAD01673E40@Khiphx2.khimetrics.com> Check_disk will only exclude when you specify a particular path to check. However, I have several mount points which display 100% full, and I would like to exclude them on the general check for disk. Is there a way to do this? Is there another plugin which can do this? Alternatively, I can make checks for each path, and assign them per box, but considering we didn't have any sort of partition scheme till a couple of months ago, it seems like a ton of work to setup, and maintain. Nathan Oyler Information Technology 480-308-2342 Office Khimetrics Inc. Maximizing Sales & Profit Revenue Management from Khimetrics ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mac at biviumcorp.com Fri Feb 18 18:46:43 2005 From: mac at biviumcorp.com (Edward MacGillivray) Date: Fri, 18 Feb 2005 11:46:43 -0600 Subject: check_hpjd plugin in Plugins 1.4 In-Reply-To: <200502181114.41250.mac@biviumcorp.com> References: <200502171750.32459.mac@biviumcorp.com> <4215BBE7.7010906@op5.se> <200502181114.41250.mac@biviumcorp.com> Message-ID: <200502181146.44249.mac@biviumcorp.com> Sorry to be replying to my own message, but I've did some more research into the differences between the three versions (1.4alpha2, 1.4, and the new test version). I've found that the command_line variables are being filled in the following ways: 1.4alpha2: sprintf (command_line, "%s -m : -v 1 -c %s %s %s", PATH_TO_SNMPGET, community, 1.4 sprintf (command_line, "%s -OQa -m : -v 1 -c %s %s %s", PATH_TO_SNMPGET, community, new-test sprintf (command_line, "%s -Oqa -m : -v 1 -c %s %s %s", PATH_TO_SNMPGET, community, Then I looked again at snmpget (or actually snmpcmd) and was not able to find the option -Oa. I also don't see the option -OQ, which is in the newest one that I can compile. I changed the 1.4 version that I have to -Ovq (the options that Andreas asked about), and after compiling with this mods the plugin doesn't have the error output from snmpget. However the plugin only prints a '0' and the exit value of the plugin is 3, so I don't know that this "worked". So I then took the -O snmpget options out completely and recompiled. After doing this the plugin puts 'Printer ok - ("")' on stdout and has an exit value of 0, which is what happens with the 1.4alpha2 version. Anyway, I hope this helps. mac On Friday 18 February 2005 11:14 am, Edward MacGillivray wrote: > On Friday 18 February 2005 3:56 am, Andreas Ericsson wrote: > > (sorry for posting again, I'm trying to patch this issue and just need > > some verification). > > > > Does your snmpget support the -Ovq output option? > > Yes, thanks for the information, the snmpget has both -Oq and -Ov, I > believe they'd work together as you have them. The snmpget that the server > has is ucdsnmp-4.2.6-152. > > I also saw the "check_hpjd hack" email thread, and I went through to test > it. However it didn't compile for me. I renamed the old check_hpjd.c file > to check_hpjd-dist.c and then put the new check_hpjd.c file in the plugins > folder. Then I deleted the check_hpjd file and the check_hpjd.o file, and > finally ran make (I'd previously done ./configure and didn't think that'd > be needed again). The make command reported: > > check_hpjd.c: In function `main': > check_hpjd.c:211: error: `errors' undeclared (first use in this function) > check_hpjd.c:211: error: (Each undeclared identifier is reported only once > check_hpjd.c:211: error: for each function it appears in.) > > This is the block in which line 211 is. > > 210 /* obviously no read errors, so check the printer status results... > */ 211 if (!errors) { > 212 result = STATE_OK; > 213 printf (_("Printer ok - (%s)\n"), display_message); > 214 } > > Is this supposed to be the errorflag that is declared and used above the if > construct on line 211? > > thanks > mac > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > ::: reporting any issue. Messages without supporting info will risk being > ::: sent to /dev/null -- Edward MacGillivray 504-200-1600x322 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From noyler at khimetrics.com Fri Feb 18 18:53:58 2005 From: noyler at khimetrics.com (Nathan Oyler) Date: Fri, 18 Feb 2005 10:53:58 -0700 Subject: Check_disk plugin, how to exclude without specifying path. Message-ID: <59B15593F41BD24591D59436E7226EAD01673E5A@Khiphx2.khimetrics.com> This is wrong. It's an or, You cannot use -p with -x. However, when I use -x, It only works once. Is there a way to have it work multiple times? A verbose shows me that regardless of how many -x's I put, only one is ever used. Thank you, excuse the mistake before. > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Nathan Oyler > Sent: Friday, February 18, 2005 10:35 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Check_disk plugin, how to exclude without > specifying path. > > Check_disk will only exclude when you specify a particular path to > check. > > However, I have several mount points which display 100% full, and I > would like to exclude them on the general check for disk. > > Is there a way to do this? Is there another plugin which can do this? > > Alternatively, I can make checks for each path, and assign them per box, > but considering we didn't have any sort of partition scheme till a > couple of months ago, it seems like a ton of work to setup, and > maintain. > > Nathan Oyler > Information Technology > 480-308-2342 Office > > Khimetrics Inc. > Maximizing Sales & Profit > Revenue Management from Khimetrics > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id396&op=ick > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 at n2sw.com Fri Feb 18 19:03:58 2005 From: steve at n2sw.com (steverieger) Date: Fri, 18 Feb 2005 13:03:58 -0500 Subject: Multiple E-Mail Address In-Reply-To: <42161CE9.6000800@joeman1.com> References: <42161CE9.6000800@joeman1.com> Message-ID: Use aliases for that its easiest On 2/18/05 11:50 AM, "Joe Giles" wrote: > Hey all, > > I was wondering how I can set up multiple e-mail address for my > contacts. I want alerts sent to more than one e-mail address and I tried > adding one e-mail address, then separating with a comma, then another > e-mail address and only the first is sent. > > How can I specify multiple e-mail address to send alerts too. > > Thanks!!! > > Joe > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dmourati at cm.math.uiuc.edu Fri Feb 18 19:28:20 2005 From: dmourati at cm.math.uiuc.edu (Demetri Mouratis) Date: Fri, 18 Feb 2005 12:28:20 -0600 (CST) Subject: Random Down times? In-Reply-To: <4215BFF4.20509@op5.se> References: <4215BFF4.20509@op5.se> Message-ID: On Fri, 18 Feb 2005, Andreas Ericsson wrote: > Demetri Mouratis wrote: > > On Thu, 17 Feb 2005, Bill Akins wrote: > > > > > >>Hi folks, > >> > >>Running Nagios 2.0b1 on RHEL3 > >> > >>I have about 160 servers monitored with over 600 services monitored and > >>Nagios is working great. I do have a problem with a pool of Citrix > >>servers I monitor. Through Control-M, machines are rebooted at random > >>times (once no users are logged on and certain other conditions are met) > >>and then they are added back into the pool. > >> > >>My question is how can I turn off or delay alerting on unreachable for > >>5 minutes to accommodate the reboot? I want to know if the machine goes > >>away for more than 5 minutes. I am currently checking for several > >>services running on these machines as well as disk space and ping. > > > > > > Have your citrix servers send a passive service check to your Nagios box > > saying to deactivate service checks for that host. Then have you init > > script, or some such on your citrix box turn checks back on once it comes > > back up. > > > > This is a good idea, and not terribly cumbersome to implement. > > > That or increase your service check times or retries times to accommodate > > a 5 minute outage but not a 10 minute one. > > This won't work. Nagios will start checking host status upon soft > service states and do ALL host checks in serial until it gets a good > response or runs out of max_check_attempts, meaning this idea would > effectively DOS your nagios every time a machine reboots for > (hostobject)max_check_attempts * hostcheck_timeout seconds. You're right. I was thinking about my own environment where I fake host checks with check_dummy to avoid the problem you mention above. --------------------------------------------------------------------- Demetri Mouratis dmourati at linfactory.com ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Feb 18 19:36:38 2005 From: ae at op5.se (Andreas Ericsson) Date: Fri, 18 Feb 2005 19:36:38 +0100 Subject: check_hpjd plugin in Plugins 1.4 In-Reply-To: <200502181146.44249.mac@biviumcorp.com> References: <200502171750.32459.mac@biviumcorp.com> <4215BBE7.7010906@op5.se> <200502181114.41250.mac@biviumcorp.com> <200502181146.44249.mac@biviumcorp.com> Message-ID: <421635B6.5020901@op5.se> Edward MacGillivray wrote: > Sorry to be replying to my own message, but I've did some more research into > the differences between the three versions (1.4alpha2, 1.4, and the new test > version). I've found that the command_line variables are being filled in the > following ways: > > 1.4alpha2: > sprintf (command_line, "%s -m : -v 1 -c %s %s %s", PATH_TO_SNMPGET, community, > > 1.4 > sprintf (command_line, "%s -OQa -m : -v 1 -c %s %s %s", PATH_TO_SNMPGET, > community, > > new-test > sprintf (command_line, "%s -Oqa -m : -v 1 -c %s %s %s", PATH_TO_SNMPGET, > community, > > Then I looked again at snmpget (or actually snmpcmd) and was not able to find > the option -Oa. I also don't see the option -OQ, which is in the newest one > that I can compile. I changed the 1.4 version that I have to -Ovq (the > options that Andreas asked about), and after compiling with this mods the > plugin doesn't have the error output from snmpget. However the plugin only > prints a '0' and the exit value of the plugin is 3, so I don't know that this > "worked". > It doesn't. The logic that parses the snmpget output assumes that there is text in a certain sequence prior to the actual value. > So I then took the -O snmpget options out completely and recompiled. After > doing this the plugin puts 'Printer ok - ("")' on stdout and has an exit > value of 0, which is what happens with the 1.4alpha2 version. > This is also busted. The logic expects the MIB-description of the OID and an equal sign, which is impossible to get with ucd-snmp and net-snmp < 5.0.2. It's just poorly coded, that's all. What happens if you run snmpget -Ovq on the target? If that works, then at least I know that much. The "errors" being undefined is an easy fix, so long as I know the rest of the code is sound. > Anyway, I hope this helps. > mac > > On Friday 18 February 2005 11:14 am, Edward MacGillivray wrote: > >>On Friday 18 February 2005 3:56 am, Andreas Ericsson wrote: >> >>>(sorry for posting again, I'm trying to patch this issue and just need >>>some verification). >>> >>>Does your snmpget support the -Ovq output option? >> >>Yes, thanks for the information, the snmpget has both -Oq and -Ov, I >>believe they'd work together as you have them. The snmpget that the server >>has is ucdsnmp-4.2.6-152. >> >>I also saw the "check_hpjd hack" email thread, and I went through to test >>it. However it didn't compile for me. I renamed the old check_hpjd.c file >>to check_hpjd-dist.c and then put the new check_hpjd.c file in the plugins >>folder. Then I deleted the check_hpjd file and the check_hpjd.o file, and >>finally ran make (I'd previously done ./configure and didn't think that'd >>be needed again). The make command reported: >> >>check_hpjd.c: In function `main': >>check_hpjd.c:211: error: `errors' undeclared (first use in this function) >>check_hpjd.c:211: error: (Each undeclared identifier is reported only once >>check_hpjd.c:211: error: for each function it appears in.) >> >>This is the block in which line 211 is. >> >>210 /* obviously no read errors, so check the printer status results... >>*/ 211 if (!errors) { >>212 result = STATE_OK; >>213 printf (_("Printer ok - (%s)\n"), display_message); >>214 } >> >>Is this supposed to be the errorflag that is declared and used above the if >>construct on line 211? >> >>thanks >>mac >> >> >>------------------------------------------------------- >>SF email is sponsored by - The IT Product Guide >>Read honest & candid reviews on hundreds of IT Products from real users. >>Discover which products truly live up to the hype. Start reading now. >>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >> >>::: Please include Nagios version, plugin version (-v) and OS when >>::: reporting any issue. Messages without supporting info will risk being >>::: sent to /dev/null > > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From noyler at khimetrics.com Fri Feb 18 19:41:27 2005 From: noyler at khimetrics.com (Nathan Oyler) Date: Fri, 18 Feb 2005 11:41:27 -0700 Subject: Check_disk plugin, how to exclude without specifying path. Message-ID: <59B15593F41BD24591D59436E7226EAD01673EA8@Khiphx2.khimetrics.com> And the new version of the plugins, 1.4 corrects all check_disk issues I've been having. Thank you. > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Nathan Oyler > Sent: Friday, February 18, 2005 10:54 AM > To: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Check_disk plugin, how to exclude without > specifying path. > > This is wrong. It's an or, You cannot use -p with -x. > > However, when I use -x, It only works once. Is there a way to have it > work multiple times? > > A verbose shows me that regardless of how many -x's I put, only one is > ever used. > > Thank you, excuse the mistake before. > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of Nathan Oyler > > Sent: Friday, February 18, 2005 10:35 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Check_disk plugin, how to exclude without > > specifying path. > > > > Check_disk will only exclude when you specify a particular path to > > check. > > > > However, I have several mount points which display 100% full, and I > > would like to exclude them on the general check for disk. > > > > Is there a way to do this? Is there another plugin which can do this? > > > > Alternatively, I can make checks for each path, and assign them per > box, > > but considering we didn't have any sort of partition scheme till a > > couple of months ago, it seems like a ton of work to setup, and > > maintain. > > > > Nathan Oyler > > Information Technology > > 480-308-2342 Office > > > > Khimetrics Inc. > > Maximizing Sales & Profit > > Revenue Management from Khimetrics > > > > > > > > > > ------------------------------------------------------- > > SF email is sponsored by - The IT Product Guide > > Read honest & candid reviews on hundreds of IT Products from real > users. > > Discover which products truly live up to the hype. Start reading now. > > http://ads.osdn.com/?ad_ide95&alloc_id396&op=ick > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id396&op=ick > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From brylon at jla.rutgers.edu Fri Feb 18 19:46:32 2005 From: brylon at jla.rutgers.edu (Bryan Loniewski) Date: Fri, 18 Feb 2005 13:46:32 -0500 (EST) Subject: cfg_dir directory recursion Message-ID: Does anyone have the cfg_dir directory recursion working? I found a reference to this on the list: https://sourceforge.net/mailarchive/message.php?msg_id=9352997 claiming it does not work... but I have'nt seen anymore about it and I can't get it to work either! I'm running: nagios-2.0b2 solaris 9, sparc64 _________________________ Bryan Loniewski Rutgers University NBCS - Systems Programmer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ggobin at rcfoundry.com Fri Feb 18 19:47:32 2005 From: ggobin at rcfoundry.com (Gary Gobin) Date: Fri, 18 Feb 2005 12:47:32 -0600 Subject: Internal Server Error Message-ID: I install and configured Nagios 1.2 with Plugins 1.4 on Fedora Core 3 with kernel 2.6.9-1.667 and HTTP server is Apache 2.0. The pre-flight check is OK and nagios starts OK. Type in localhost/nagios using Firefox. The Webpage loads OK. Able to browse Nagios documentation. When I click on Tactical Overview, I get the login screen. After logging in the Webpage says Internal Server Error. Apache error log says permission denied followed by premature end to script headers. Apache access log mostly shows 404 284 and in some places 500 615. I not sure how to eliminate permission denied. I have double checked the documentation; files httpd.conf, cgi.cfg, nagios.cfg, and the rest of the files in nagios/etc folder. Any help, would be greatly appreciated. Thank you for your time. Gary Gobin IS Technician Richland Center Foundry Company -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bill_Akins at emoryhealthcare.org Fri Feb 18 19:54:20 2005 From: Bill_Akins at emoryhealthcare.org (Bill Akins) Date: Fri, 18 Feb 2005 13:54:20 -0500 Subject: Random Down times? Message-ID: Thanks for the ideas. I'll look into the passive service check. I just have to convince the Citrix guys to let me install a client on them. >>> Demetri Mouratis 2/18/2005 1:28:20 PM >>> On Fri, 18 Feb 2005, Andreas Ericsson wrote: > Demetri Mouratis wrote: > > On Thu, 17 Feb 2005, Bill Akins wrote: > > > > > >>Hi folks, > >> > >>Running Nagios 2.0b1 on RHEL3 > >> > >>I have about 160 servers monitored with over 600 services monitored and > >>Nagios is working great. I do have a problem with a pool of Citrix > >>servers I monitor. Through Control-M, machines are rebooted at random > >>times (once no users are logged on and certain other conditions are met) > >>and then they are added back into the pool. > >> > >>My question is how can I turn off or delay alerting on unreachable for > >>5 minutes to accommodate the reboot? I want to know if the machine goes > >>away for more than 5 minutes. I am currently checking for several > >>services running on these machines as well as disk space and ping. > > > > > > Have your citrix servers send a passive service check to your Nagios box > > saying to deactivate service checks for that host. Then have you init > > script, or some such on your citrix box turn checks back on once it comes > > back up. > > > > This is a good idea, and not terribly cumbersome to implement. > > > That or increase your service check times or retries times to accommodate > > a 5 minute outage but not a 10 minute one. > > This won't work. Nagios will start checking host status upon soft > service states and do ALL host checks in serial until it gets a good > response or runs out of max_check_attempts, meaning this idea would > effectively DOS your nagios every time a machine reboots for > (hostobject)max_check_attempts * hostcheck_timeout seconds. You're right. I was thinking about my own environment where I fake host checks with check_dummy to avoid the problem you mention above. --------------------------------------------------------------------- Demetri Mouratis dmourati at linfactory.com ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: From tgwilt at suite224.net Fri Feb 18 19:56:36 2005 From: tgwilt at suite224.net (Tom Gwilt) Date: Fri, 18 Feb 2005 13:56:36 -0500 (EST) Subject: Warning: Monitoring process may not be running! (take 2) In-Reply-To: <20050218014828.A88BFBA05@www.prhobbies.com> References: <20050218014828.A88BFBA05@www.prhobbies.com> Message-ID: Hi all, I recently installed nagios 1.2 on a FreeBSD 5.3 box from the ports, along with the plugins, slifeed plugins, snmp plugins, and nagiostat. I'm new to Nagios, but not to Unix, nor to config files - so I've spent the previous few days reading the documentation, writing the config files, and testing. Everything seems to be well, execpt for the error referenced in the subject. Here is some of the pertinent info: cgi.cfg - nagios_check_command: /usr/local/libexec/check_nagios /var/spool/nagios/status.sav 5 '/usr/local/bin/nagios' nagios.cfg - logfiles, etc. log_file=/var/spool/nagios/nagios.log status_file=/var/spool/nagios/status.log command_file=/var/spool/nagios/rw/nagios.cmd etc. When checking the Process Status Information via the web interface, here is the message: Check Command Output: Nagios problem: located 1 process, status log updated 1108752482 seconds ago What's interesting is the update looks like it goes back to the epoch. /var/spool/nagios/status.log and status.sav show 0 bytes. There is a lot of free space on var: lab01# df -H | grep var Filesystem Size Used Avail Capacity Mounted on /dev/da0s1e 1.0G 29M 902M 3% /var Also a log of free inodes. Permissions are as follows: lab01# ls -l /var/spool total 18 drwxrwx--- 2 smmsp smmsp 512 Feb 17 15:35 clientmqueue drwxr-xr-x 3 root daemon 512 Feb 4 23:56 cups drwxrwxr-x 2 uucp dialer 512 Feb 17 22:42 lock drwxr-xr-x 2 root daemon 512 Nov 4 20:23 lpd drwxr-xr-x 2 root daemon 512 Nov 4 20:23 mqueue drwxrwxr-x 5 nagios nagios 512 Feb 18 13:29 nagios drwx------ 2 root daemon 512 Nov 4 20:23 opielocks drwxr-xr-x 4 root daemon 512 Feb 14 12:31 output drwxrwxrwt 2 root wheel 512 Feb 4 23:56 samba lab01# ls -l /var/spool/nagios total 14 drw-r--r-- 2 nagios nagios 512 Feb 18 10:47 archives -rw-r--r-- 1 nagios nagios 0 Feb 18 12:02 comment.log -rw-r--r-- 1 nagios nagios 0 Feb 18 12:02 downtime.log -rw-r--r-- 1 nagios nagios 6 Feb 18 13:29 nagios.lock -rw-r--r-- 1 nagios nagios 5886 Feb 18 13:29 nagios.log drwxr-xr-x 2 root nagios 512 Feb 18 10:26 nagiostatrrd drwxrwxr-x 2 nagios www 512 Feb 18 13:29 rw -rw-r--r-- 1 nagios nagios 0 Feb 18 13:29 status.sav -rw-r--r-- 1 nagios nagios 0 Feb 18 13:29 status.log The output of the ps command as defined by the config.h for the plugins: /bin/ps -axwo 'stat uid ppid ucomm command' Ss 1003 1 nagios /usr/local/bin/nagios -d /usr/local/etc/nagios/nagios.cfg Anybody got any thoughts? Thanks, Tom Gwilt Internet Services Director Suite224 Internet ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mac at biviumcorp.com Fri Feb 18 19:59:19 2005 From: mac at biviumcorp.com (Edward MacGillivray) Date: Fri, 18 Feb 2005 12:59:19 -0600 Subject: check_hpjd plugin in Plugins 1.4 In-Reply-To: <421635B6.5020901@op5.se> References: <200502171750.32459.mac@biviumcorp.com> <200502181146.44249.mac@biviumcorp.com> <421635B6.5020901@op5.se> Message-ID: <200502181259.20162.mac@biviumcorp.com> On Friday 18 February 2005 12:36 pm, Andreas Ericsson wrote: > Edward MacGillivray wrote: > > Sorry to be replying to my own message, but I've did some more research > > into the differences between the three versions (1.4alpha2, 1.4, and the > > new test version). I've found that the command_line variables are being > > filled in the following ways: > > > > 1.4alpha2: > > sprintf (command_line, "%s -m : -v 1 -c %s %s %s", PATH_TO_SNMPGET, > > community, > > > > 1.4 > > sprintf (command_line, "%s -OQa -m : -v 1 -c %s %s %s", PATH_TO_SNMPGET, > > community, > > > > new-test > > sprintf (command_line, "%s -Oqa -m : -v 1 -c %s %s %s", PATH_TO_SNMPGET, > > community, > > > > Then I looked again at snmpget (or actually snmpcmd) and was not able to > > find the option -Oa. I also don't see the option -OQ, which is in the > > newest one that I can compile. I changed the 1.4 version that I have to > > -Ovq (the options that Andreas asked about), and after compiling with > > this mods the plugin doesn't have the error output from snmpget. However > > the plugin only prints a '0' and the exit value of the plugin is 3, so I > > don't know that this "worked". > > It doesn't. The logic that parses the snmpget output assumes that there > is text in a certain sequence prior to the actual value. > > > So I then took the -O snmpget options out completely and recompiled. > > After doing this the plugin puts 'Printer ok - ("")' on stdout and has an > > exit value of 0, which is what happens with the 1.4alpha2 version. > > This is also busted. The logic expects the MIB-description of the OID > and an equal sign, which is impossible to get with ucd-snmp and net-snmp > < 5.0.2. It's just poorly coded, that's all. What happens if you run > snmpget -Ovq on the target? If that works, then at least I know that > much. The "errors" being undefined is an easy fix, so long as I know the > rest of the code is sound. Hi Andreas and thanks, When I do: # snmpget -Ovq -m : -v 1 -c public or # snmpget -Ovq I get the usage information for snmpget, so it doesn't even do any snmp communication, right? So I then copied the source file and made a shell script from the stuff it had and ran the full command with the OIDs and all like: # snmpget -Ovq -m : -v 1 -c public Which did actually work. I got twelve lines of output (there were 12 OIDs in the command) with all but the last one being '0', and the last one was two double quotes. So I think the -Ovq will be fine, so long as the OIDs are there. again, thanks mac ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From strombrg at dcs.nac.uci.edu Fri Feb 18 20:24:55 2005 From: strombrg at dcs.nac.uci.edu (Dan Stromberg) Date: Fri, 18 Feb 2005 11:24:55 -0800 Subject: Monitoring CPU Temperuture on Solaris8 In-Reply-To: <4215C105.4080208@op5.se> References: <81B2B4AE03A22D4490CD35A0F20F89E001147D19@thsvml00.togewa.com> <4215C105.4080208@op5.se> Message-ID: <1108754695.5897.123.camel@seki.nac.uci.edu> On Fri, 2005-02-18 at 11:18 +0100, Andreas Ericsson wrote: > Kuru Murat wrote: > > Hi All > > > > I need to monitore the CPU temperatur on a Sun Solaris8 machine. > > > > It seams that the plugin check_sensors is only working with lm_sensors, > > which is avaiblable > > only for Linux. > > > > Is there a plugin out there that is also compactibel with solaris8? > > > > There is most likely a program, but not a plugin. Getting CPU temp and > such requires tight cooperation with the kernel/hardware mix in a way > that no standards exist for. Please see: http://www.bolthole.com/solaris/drivers/health.html http://docs.sun.com/app/docs/doc/816-0239-10/6m6o6vo5r?a=view Most likely, some assembly required. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From strombrg at dcs.nac.uci.edu Fri Feb 18 20:27:50 2005 From: strombrg at dcs.nac.uci.edu (Dan Stromberg) Date: Fri, 18 Feb 2005 11:27:50 -0800 Subject: check_memory plugin ?? In-Reply-To: References: Message-ID: <1108754870.5897.126.camel@seki.nac.uci.edu> Pretty sure solaris comes with an snmp daemon. You may have a different name for this variable under Solaris though. snmpwalk is your friend. On Fri, 2005-02-18 at 13:01 +0100, Alloo, Vincent wrote: > Thanks Andre, but I had already tried this one. It works fine on Linux, but the SNMP table doesn't exist on regular Sparc Solaris machines ... > I'm looking so for something else. > > Regards, > > Vincent Alloo > TI France Design Systems Operations Manager > Europe and Middle East IT Services > Texas Instruments France > > E-Mail: v-alloo at ti.com > Phone: +33 4 93 22 26 97 > Mobile: +33 6 82 13 00 80 > > > -----Original Message----- > > From: Andre Bergei [mailto:andre.bergei at ementor.no] > > Sent: Friday, February 18, 2005 12:56 PM > > To: Alloo, Vincent; nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] check_memory plugin ?? > > > > > Hello, > > > I'm looking for a generic plugin which can monitor on Solaris > > > and Linux boxes free memory. Where can I find a good one? > > > Thanks in advance, > > > > > > Hi. > > > > If you want to use SNMP, Try this one: > > http://www.manubulon.com/nagios/snmp_storage.html > > > > I think it uses the host resource mib, and should therefore work both on > > solaris and linux snmp deamons. > > > > best > > /andr? > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id396&op?k > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From strombrg at dcs.nac.uci.edu Fri Feb 18 20:33:55 2005 From: strombrg at dcs.nac.uci.edu (Dan Stromberg) Date: Fri, 18 Feb 2005 11:33:55 -0800 Subject: Monitoring CPU Temperuture on Solaris8 In-Reply-To: <4E71CFD68DCB4E49B04AD93E84827EE933A6CB@netfinity-1.foundation-it.local> References: <4E71CFD68DCB4E49B04AD93E84827EE933A6CB@netfinity-1.foundation-it.local> Message-ID: <1108755235.5897.129.camel@seki.nac.uci.edu> On Fri, 2005-02-18 at 12:17 +0000, Phil Costelloe wrote: > Kuru Murat wrote: > > > I need to monitore the CPU temperatur on a Sun Solaris8 machine. > > > > It seams that the plugin check_sensors is only working with > > lm_sensors, which is avaiblable only for Linux. > > > > Is there a plugin out there that is also compactibel with solaris8? > > I'm not aware of one. The temperature of the CPU(s) is contained in the > output of /usr/platform/`uname -m`/prtdiag -v. If you only need to > monitor a single server (or single class of server) then it should be > fairly easy to put a custom plugin together. Given that the output of > prtdiag varies considerably according to the underlying hardware > platform, writing and maintaining a generic plugin would be a life's > work. I'm seeing /usr/platform/sun4u/sbin/prtdiag -v on a SunFire 4800, but it doesn't appear to include any temperature data. Perhaps it only shows up when the temperature is too high? Also, there may be an SNMP way of getting this more consistently across suns. > Phil > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id396&opk > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From Tong at ingenio.com Fri Feb 18 20:40:12 2005 From: Tong at ingenio.com (Tong Young) Date: Fri, 18 Feb 2005 11:40:12 -0800 Subject: Problem compiling with embedded perl option Message-ID: <4C52BE6F38D0174897566E644CE20F61058283@keenx02.keencorp.keen.com> I am trying to use the --enable-embedded-perl flag but I get the following error when running make all. This is nagios 2.0b2 on debian sarge. I have perl 5.8 installed. Any help would be appreciated. I'm assuming that I'm missing some packages. gcc -g -O2 -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.8/CORE -DHAVE_CONFIG_H -DNSCORE -o nagios nagios.c broker.o nebmods.o checks.o config.o commands.o events.o flapping.o logging.o notifications.o sehandlers.o utils.o retention-base.o xretention-base.o comments-base.o xcomments-base.o objects-base.o xobjects-base.o statusdata-base.o xstatusdata-base.o perfdata-base.o xperfdata-base.o downtime-base.o xdowntime-base.o perlxsi.o -Wl,-export-dynamic -Wl,-E -L/usr/local/lib /usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl/5.8/CORE -ldl -lm -lpthread -lc -lcrypt -lm -lnsl -lpthread -ldl checks.o(.text+0x56): In function `run_service_check': /tmp/nagios-2.0b2/base/checks.c:118: undefined reference to `PL_thr_key' checks.o(.text+0x73e):/tmp/nagios-2.0b2/base/checks.c:338: undefined reference to `Perl_push_scope' checks.o(.text+0x759):/tmp/nagios-2.0b2/base/checks.c:339: undefined reference to `Perl_save_int' .... .... : undefined reference to `Perl_form' /usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a(DynaLoader.o)(.text+0xbdb): In function `boot_DynaLoader': : undefined reference to `Perl_get_sv' /usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a(DynaLoader.o)(.text+0xc05): In function `boot_DynaLoader': : undefined reference to `Perl_sv_2pv_flags' collect2: ld returned 1 exit status make[1]: *** [nagios] Error 1 make[1]: Leaving directory `/tmp/nagios-2.0b2/base' make: *** [all] Error 2 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Feb 18 20:46:40 2005 From: ae at op5.se (Andreas Ericsson) Date: Fri, 18 Feb 2005 20:46:40 +0100 Subject: cfg_dir directory recursion In-Reply-To: References: Message-ID: <42164620.3090405@op5.se> Compile this attached program and run it with getnagioscfg If it spits out every file you think should be included I'll get a patch for nagios. Compile with; gcc getnagioscfg.c -o getnagioscfg You might have to change header files or something or linking or something. I'm not very familiar with solaris. Bryan Loniewski wrote: > Does anyone have the cfg_dir directory recursion working? I found a reference to this on the > list: > > https://sourceforge.net/mailarchive/message.php?msg_id=9352997 > > claiming it does not work... but I have'nt seen anymore about it and I can't get it to work > either! > > I'm running: > > nagios-2.0b2 > solaris 9, sparc64 > > _________________________ > Bryan Loniewski > Rutgers University > NBCS - Systems Programmer > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer -------------- next part -------------- A non-text attachment was scrubbed... Name: getnagioscfg.c Type: text/x-csrc Size: 3673 bytes Desc: not available URL: From ae at op5.se Fri Feb 18 20:52:38 2005 From: ae at op5.se (Andreas Ericsson) Date: Fri, 18 Feb 2005 20:52:38 +0100 Subject: Monitoring CPU Temperuture on Solaris8 In-Reply-To: <1108754695.5897.123.camel@seki.nac.uci.edu> References: <81B2B4AE03A22D4490CD35A0F20F89E001147D19@thsvml00.togewa.com> <4215C105.4080208@op5.se> <1108754695.5897.123.camel@seki.nac.uci.edu> Message-ID: <42164786.2090302@op5.se> Dan Stromberg wrote: > On Fri, 2005-02-18 at 11:18 +0100, Andreas Ericsson wrote: > >>Kuru Murat wrote: >> >>>Hi All >>> >>>I need to monitore the CPU temperatur on a Sun Solaris8 machine. >>> >>>It seams that the plugin check_sensors is only working with lm_sensors, >>>which is avaiblable >>>only for Linux. >>> >>>Is there a plugin out there that is also compactibel with solaris8? >>> >> >>There is most likely a program, but not a plugin. Getting CPU temp and >>such requires tight cooperation with the kernel/hardware mix in a way >>that no standards exist for. > > > Please see: > > http://www.bolthole.com/solaris/drivers/health.html > > http://docs.sun.com/app/docs/doc/816-0239-10/6m6o6vo5r?a=view > > Most likely, some assembly required. > That should be fun on a list where most users squeak with discomfort if you ask them to compile a C program without a Makefile, or run a command that has backslashes in it. :) -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Feb 18 21:01:49 2005 From: ae at op5.se (Andreas Ericsson) Date: Fri, 18 Feb 2005 21:01:49 +0100 Subject: Warning: Monitoring process may not be running! (take 2) In-Reply-To: References: <20050218014828.A88BFBA05@www.prhobbies.com> Message-ID: <421649AD.4030400@op5.se> Tom Gwilt wrote: > Hi all, > > I recently installed nagios 1.2 on a FreeBSD 5.3 box from the ports, > along with the plugins, slifeed plugins, snmp plugins, and nagiostat. > > I'm new to Nagios, but not to Unix, nor to config files - so I've spent > the previous few days reading the documentation, writing the config > files, and testing. > That's a first. Most users dive headlong into the list after having failed getting the sample config to monitor their entire network. ;) > Everything seems to be well, execpt for the error referenced in the > subject. > > Here is some of the pertinent info: > > cgi.cfg - nagios_check_command: > /usr/local/libexec/check_nagios /var/spool/nagios/status.sav 5 > '/usr/local/bin/nagios' > > nagios.cfg - logfiles, etc. > log_file=/var/spool/nagios/nagios.log > status_file=/var/spool/nagios/status.log > command_file=/var/spool/nagios/rw/nagios.cmd > > etc. > > When checking the Process Status Information via the web interface, here > is the message: > > Check Command Output: Nagios problem: located 1 process, status log > updated 1108752482 seconds ago > > What's interesting is the update looks like it goes back to the epoch. > > /var/spool/nagios/status.log and status.sav show 0 bytes. There is a lot > of free space on var: > What does strace tell you? Perhaps its stuck somewhere (filesystem spinlocks?) in interruptable IO. I know this can happen with named pipes on Linux, but I've never seen Nagios stall from it. > lab01# df -H | grep var > > Filesystem Size Used Avail Capacity Mounted on > /dev/da0s1e 1.0G 29M 902M 3% /var > > Also a log of free inodes. Permissions are as follows: > Neither permissions nor inodes should be a problem since the files are created properly. > lab01# ls -l /var/spool > total 18 > drwxrwx--- 2 smmsp smmsp 512 Feb 17 15:35 clientmqueue > drwxr-xr-x 3 root daemon 512 Feb 4 23:56 cups > drwxrwxr-x 2 uucp dialer 512 Feb 17 22:42 lock > drwxr-xr-x 2 root daemon 512 Nov 4 20:23 lpd > drwxr-xr-x 2 root daemon 512 Nov 4 20:23 mqueue > drwxrwxr-x 5 nagios nagios 512 Feb 18 13:29 nagios > drwx------ 2 root daemon 512 Nov 4 20:23 opielocks > drwxr-xr-x 4 root daemon 512 Feb 14 12:31 output > drwxrwxrwt 2 root wheel 512 Feb 4 23:56 samba > > lab01# ls -l /var/spool/nagios > total 14 > drw-r--r-- 2 nagios nagios 512 Feb 18 10:47 archives > -rw-r--r-- 1 nagios nagios 0 Feb 18 12:02 comment.log > -rw-r--r-- 1 nagios nagios 0 Feb 18 12:02 downtime.log > -rw-r--r-- 1 nagios nagios 6 Feb 18 13:29 nagios.lock > -rw-r--r-- 1 nagios nagios 5886 Feb 18 13:29 nagios.log Any hints in nagios.log? The fact that it has written some data to it is encouraging. > drwxr-xr-x 2 root nagios 512 Feb 18 10:26 nagiostatrrd > drwxrwxr-x 2 nagios www 512 Feb 18 13:29 rw > -rw-r--r-- 1 nagios nagios 0 Feb 18 13:29 status.sav > -rw-r--r-- 1 nagios nagios 0 Feb 18 13:29 status.log > > The output of the ps command as defined by the config.h for the plugins: > > /bin/ps -axwo 'stat uid ppid ucomm command' > > Ss 1003 1 nagios /usr/local/bin/nagios -d > /usr/local/etc/nagios/nagios.cfg > > Anybody got any thoughts? > Run it in gdb. Step 1000 instructions or so at a time and put a breakpopint at write_to_all_logs so you see what's going on. Run an unstripped version. You could also try compiling from source (and bypass the ports directory). I know for a fact that Nagios runs successfully on many *bsd systems, so it's at least solveable. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From strombrg at dcs.nac.uci.edu Fri Feb 18 21:22:12 2005 From: strombrg at dcs.nac.uci.edu (Dan Stromberg) Date: Fri, 18 Feb 2005 12:22:12 -0800 Subject: Monitoring CPU Temperuture on Solaris8 In-Reply-To: <42164786.2090302@op5.se> References: <81B2B4AE03A22D4490CD35A0F20F89E001147D19@thsvml00.togewa.com> <4215C105.4080208@op5.se> <1108754695.5897.123.camel@seki.nac.uci.edu> <42164786.2090302@op5.se> Message-ID: <1108758132.5897.145.camel@seki.nac.uci.edu> On Fri, 2005-02-18 at 20:52 +0100, Andreas Ericsson wrote: > > Please see: > > > > http://www.bolthole.com/solaris/drivers/health.html > > > > http://docs.sun.com/app/docs/doc/816-0239-10/6m6o6vo5r?a=view > > > > Most likely, some assembly required. > > > > That should be fun on a list where most users squeak with discomfort if > you ask them to compile a C program without a Makefile, or run a command > that has backslashes in it. :) Hee. :) Well, I don't know about most users, but certainly some fraction does. Actually, the group I work in might have a use for this (temp monitoring on suns)... So if someone comes up with a reasonably reliable command that will show the value, I might code a plugin for it. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From robert at webtent.com Fri Feb 18 22:17:24 2005 From: robert at webtent.com (Robert Fitzpatrick) Date: Fri, 18 Feb 2005 16:17:24 -0500 Subject: Logs not logging notifications Message-ID: <1108761443.1226.75.camel@columbus.webtent.org> In version 1.2 running on SuSE 9.2 installed via SuSE distribution packages, I have log_notifications set to 1. But the only thing I'm getting in the logs is startup and shutdown messages. I also have all other loggings enabled, but only get startup and shutdown messages. Is there somewhere else to set for this to happen? -- Robert ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From glestadt4 at yahoo.com Fri Feb 18 22:42:26 2005 From: glestadt4 at yahoo.com (joe ritter) Date: Fri, 18 Feb 2005 13:42:26 -0800 (PST) Subject: nagios not passing arguments to nrpe for check_disk ??? In-Reply-To: <1108761443.1226.75.camel@columbus.webtent.org> References: <1108761443.1226.75.camel@columbus.webtent.org> Message-ID: <20050218214226.63154.qmail@web90105.mail.scd.yahoo.com> Hello, I just configured and installed the 1.4 plugins from source on a remote host that I want to monitor using check_disk. In the web interface all I have see is are messages like: Warning threshold must be integer or percentage! So I decided to turn on debugging in the nrpe.cfg file and this is what I see but I can not tell if the nagios hosts in providing arguments of the nrpe daemon is not seeing them. Feb 18 16:34:02 web01 nrpe[28793]: Handling the connection... Feb 18 16:34:02 web01 nrpe[28793]: Host is asking for command 'check_disk1' to be run... Feb 18 16:34:02 web01 nrpe[28793]: Running command: /usr/lib/nagios/plugins/check_disk -w -c -p Feb 18 16:34:02 web01 nrpe[28793]: Command completed with return code 3 and output: check_disk: Warning threshold must be integer or percentage! Feb 18 16:34:02 web01 nrpe[28793]: Return Code: 3, Output: check_disk: Warning threshold must be integer or percentage! Here are the relevant config entries. nrpe.cfg on remote host: command[check_disk1]=/usr/lib/nagios/plugins/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$ command[check_disk2]=/usr/lib/nagios/plugins/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$ service.cfg on the nagios host: define service{ use generic-service check_period 24x7 max_check_attempts 15 normal_check_interval 5 retry_check_interval 1 hostgroup_name web_servers contact_groups devs service_description partition_usage1 check_command check_nrpe!check_disk1!10% 5% /boot } define service{ use generic-service check_period 24x7 max_check_attempts 15 normal_check_interval 5 retry_check_interval 1 hostgroup_name web_servers contact_groups devs service_description partition_usage2 check_command check_nrpe!check_disk2!20% 10% / } Now the sytax of the check_command from the above to entries was a suggestion from someone on this list which did not work. Earlier I specified the above two entries like this(which did not work either): define service{ use generic-service check_period 24x7 max_check_attempts 15 normal_check_interval 5 retry_check_interval 1 hostgroup_name web_servers contact_groups devs service_description partition_usage1 check_command check_nrpe!check_disk1!10%!5%!/boot } define service{ use generic-service check_period 24x7 max_check_attempts 15 normal_check_interval 5 retry_check_interval 1 hostgroup_name web_servers contact_groups devs service_description partition_usage2 check_command check_nrpe!check_disk2!20%!10%!/ } If someone could shed some light on the I would greatly appreciate. I feel like I am at my wits end with this. Thank you again for all your help. C. __________________________________ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From SrvFaucon at cslaval.qc.ca Fri Feb 18 22:49:37 2005 From: SrvFaucon at cslaval.qc.ca (Serveur-Faucon Surveillance) Date: Fri, 18 Feb 2005 16:49:37 -0500 Subject: =?ISO-8859-1?Q?R=E9p.=20:=20Re:=20[Nagios-users]=20check=5Fload?= =?ISO-8859-1?Q?=20weird=20behavior=20in=20French=20config?= Message-ID: I know about the ". or ," issue, and I have compensate with " " " and it does work great. root]# /usr/local/nagios/libexec/check_load -w "20,0","15,0","10,0" -c "35,0","30,0","25,0" OK - load average: 0,00, 0,00,0,00|load1=0;20;35;0 load5=0;15;30;0 load15=0;10;25;0 But since, I made more tests, when starting in the startup (chkconfig) the error occurs. When I log in and restart the service, the error disapear. If I start the service later (with at) in the service startup, the error occurs. So I would somehow conclude that there is a difference between starting a service in the chkconfig and at the console. Can you think of another way to bypass this situation? :) Mabe I could log in the nagios user and make him execute nrpe? --------------------------------------------------- Alexandre Racine - www.gardienvirtuel.com Montr?al, Qu?bec, Canada >>> Andreas Ericsson 2005-02-18 09:43:41 >>> This has to do with locale settings. The french numbers locale appoints ',' to be the decimal point (decimal comma or whatever), which clashes horribly with the plugins since it's using strtod() to get the thresholds. strtod() barfs on more than one decimal point (decimal comma, whatever), since any number can only have one decimal point (comma...). It's terribly involved to try to write code to parse all different locales properly. The best bet would probably be to use a semi-colon, but that would leave current users stumped because the shell will think you're starting a new command. Like I said; Terribly involved. Serveur-Faucon Surveillance wrote: > Hi all, > > The is somehow a weird behavior with check_load with my French > Mandrake 10.x (plugins version 1.4) > > Somehow, when I reboot the server, check_load does not work anymore. > I go on the console, /init.d/nrpe restart the program and everything > is fine after. Is there someone with/had the same problem? > > > --- all the tests --- > > On another normal system (rh9) > > root# /usr/local/nagios/libexec/check_load -w 20,15,10 -c 35,30,25 OK > - load average: 0.37, 0.66, 0.82|load1=0;20;35;0 load5=0;15;30;0 > load15=0;10;25;0 > > Everything is fine... > > On a English Mandrake 10.x > > root]# /usr/local/nagios/libexec/check_load -w 20,15,10 -c 35,30,25 > OK - load average: 0.31, 0.23, > 0.20|load1=0.310000;20.000000;35.000000;0.000000 > load5=0.230000;15.000000;30.000000;0.000000 > load15=0.200000;10.000000;25.000000;0.000000 > > Everything is fine... > > But... on a French Mandrake 10.x > > /usr/local/nagios/libexec/check_load -w 20,15,10 -c 35,30,25 Warning > threshold must be float or float triplet! Usage: check_load -w > WLOAD1,WLOAD5,WLOAD15 -c CLOAD1,CLOAD5,CLOAD15 check_load (-h | > --help) for detailed help check_load (-V | --version) for version > information > > So he needs some " " " since the command "w" returns with "," insted > of "." > > root]# w 09:08:23 up 15:48, 1 user, load average: 0,00, 0,00, 0,00 > USER TTY LOGIN@ IDLE JCPU PCPU WHAT root pts/0 > 09:07 0.00s 0.10s 0.01s w > > root]# /usr/local/nagios/libexec/check_load -w "20,0","15,0","10,0" > -c "35,0","30,0","25,0" OK - load average: 0,00, 0,00, > 0,00|load1=0;20;35;0 load5=0;15;30;0 load15=0;10;25;0 > > everything works now. But when I reboot, there is a critical > situation. When I restart nrpe, everything is fine. > This has to do with locale settings. The french numbers locale appoints ',' to be the decimal point (decimal comma or whatever), which clashes horribly with the plugins since it's using strtod() to get the thresholds. strtod() barfs on more than one decimal point (decimal comma, whatever), since any number can only have one decimal point (comma...). It's terribly involved to try to write code to parse all different locales properly. The best bet would probably be to use a semi-colon, but that would leave current users stumped because the shell will think you're starting a new command. Like I said; Terribly involved. > > > --------------------------------------------------- Alexandre Racine > - www.gardienvirtuel.com Montr?al, Qu?bec, Canada > > > > ------------------------------------------------------- SF email is > sponsored by - The IT Product Guide Read honest & candid reviews on > hundreds of IT Products from real users. Discover which products > truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id396&op=click > _______________________________________________ Nagios-users mailing > list Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please > include Nagios version, plugin version (-v) and OS when reporting any > issue. ::: Messages without supporting info will risk being sent to > /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Feb 18 23:00:54 2005 From: ae at op5.se (Andreas Ericsson) Date: Fri, 18 Feb 2005 23:00:54 +0100 Subject: =?ISO-8859-1?Q?R=E9p=2E_=3A_Re=3A_=5BNa?= =?ISO-8859-1?Q?gios-users=5D_check=5Fload_weird_behavior_in_Fr?= =?ISO-8859-1?Q?ench_config?= In-Reply-To: References: Message-ID: <42166596.2030001@op5.se> Serveur-Faucon Surveillance wrote: > I know about the ". or ," issue, and I have compensate with " " " and > it does work great. > > root]# /usr/local/nagios/libexec/check_load -w "20,0","15,0","10,0" > -c "35,0","30,0","25,0" OK - load average: 0,00, > 0,00,0,00|load1=0;20;35;0 load5=0;15;30;0 load15=0;10;25;0 > > But since, I made more tests, when starting in the startup > (chkconfig) the error occurs. When I log in and restart the service, > the error disapear. If I start the service later (with at) in the > service startup, the error occurs. > > So I would somehow conclude that there is a difference between > starting a service in the chkconfig and at the console. > > Can you think of another way to bypass this situation? :) Mabe I > could log in the nagios user and make him execute nrpe? > locale > locale.save LC_ALL=POSIX start nrpe eval `cat locale.save` or put nrpe last in startup sequence so as to emulate the re-start environment as close as possible. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tdondich at gmail.com Fri Feb 18 23:57:03 2005 From: tdondich at gmail.com (Taylor Dondich) Date: Fri, 18 Feb 2005 14:57:03 -0800 Subject: I made a nagios config util to help Message-ID: <3d2eb72a0502181457226e283f@mail.gmail.com> Hi all, first post on the nagios mailing list. I love Nagios and have been using it. However, it was very tiring to input all the configuration for all the hosts I wanted to monitor. So I did something about it. I've made a php web app to help ease configuration of nagios. It's in the rough beta stages, and I just released a version that allows you to import current nagios configs. So I think it's ready to start showing to people, that way I can get more test results out of it. If you'd like to give it a shot, please go to http://fruity.nakedgeek.com . Join the mailing list to share the results, and to help debug fruity to make it the best tool to use to easilly configure nagios in a logical fashion. Thanks! Taylor ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jgefaell at netblue.com Sat Feb 19 03:11:59 2005 From: jgefaell at netblue.com (Jon Gefaell) Date: Fri, 18 Feb 2005 18:11:59 -0800 Subject: check_command in Nagios 2 no longer allows "Raw" Command Line?? Message-ID: I can't thank you enough Andreas for your rapid response. I wasn't aware that I could pass all the arguments that easily. Your offhand example was close to perfect. I had to add the bang (!) after _raw and I use an absolute path to the binaries so I had to change the sed line just a tad. This technique made for a very quick conversion of my http, smtp and other check commands using the previous method. Wonderful, Thanks Millions! -JG -----Original Message----- From: nagios-users-admin at lists.sourceforge.net on behalf of Andreas Ericsson Sent: Thu 2/17/2005 12:28 AM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] check_command in Nagios 2 no longer allows "Raw" Command Line?? Jon Gefaell wrote: > I'm working to try to port my existing nagios system(s) to nagios V.2. > > I'm well along and iteratively addressing problems a nagios -v > nagios.cfg complains about. > > I've found a very painful difference, option 3.) "Raw" Command Line is > no longer available! > > So, I've got a thousand (or so) http checks which all use this method. > Different parameters are required for each check command. Using this > option has allowed me to create simple definitions for these commands. > > Doing it the 'new'(?) way would require me to come up with a unique and > descriptive label for each (of over 1,000) service, then chain those to > the checkcommands.cfg with a unique stanza for each one! > > That's .... Well I don't want to contemplate it. Not only is the > existing conversion tremenedously difficut, but adding services is > daunting as well. Is there something I'm missing? > Probably. Are you aware of the fact that you can pass an arbitrary amount of parameters to a single check_command simply by omitting the separating !. A "raw" command line would then look as such; check_http_raw!--ssl --url=/some-url --port=8080 With a command definition of; define command { command_name check_http_raw command_line check_http -H $HOSTADDRESS$ $ARG1$ } To quickly change it, I would suggest using something along these lines; sed -i 's/\(check_command[\t ]*\)"check_http\([^"]*\)"/\1check_http_raw\2/ services.cfg Mind the linebreaks, and make sure you make a backup. I haven't tested the above line. > Thanks so much! > You're welcome. > -JG > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: From Stanley.Hopcroft at IPAustralia.Gov.AU Sat Feb 19 10:47:25 2005 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Sat, 19 Feb 2005 20:47:25 +1100 Subject: Problem compiling with embedded perl option In-Reply-To: <20050219041151.4E210881A4@sc8-sf-spam1.sourceforge.net> References: <20050219041151.4E210881A4@sc8-sf-spam1.sourceforge.net> Message-ID: <20050219094723.GA236@IPAustralia.Gov.AU> Dear Sir, I am writing to thank you for your letter and say, On Fri, Feb 18, 2005 at 08:10:15PM -0800, nagios-users-request at lists.sourceforge.net wrote: > Date: Fri, 18 Feb 2005 11:40:12 -0800 > From: "Tong Young" > To: > Subject: [Nagios-users] Problem compiling with embedded perl option > > I am trying to use the --enable-embedded-perl flag but I get the = > following error when running make all. > You were heard the first time. No reply means that 1 no one knows an answer 2 no one is able to spare the time to answer > This is nagios 2.0b2 on debian sarge. I have perl 5.8 installed. Any = > help would be appreciated. I'm assuming that I'm missing some packages. > No. All you need is Perl (famous Beatles song). > gcc -g -O2 -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN = > -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE = > -D_FILE_OFFSET_BITS=3D64 -I/usr/lib/perl/5.8/CORE -DHAVE_CONFIG_H = > -DNSCORE -o nagios nagios.c broker.o nebmods.o checks.o config.o = > commands.o events.o flapping.o logging.o notifications.o sehandlers.o = > utils.o retention-base.o xretention-base.o comments-base.o = > xcomments-base.o objects-base.o xobjects-base.o statusdata-base.o = > xstatusdata-base.o perfdata-base.o xperfdata-base.o downtime-base.o = > xdowntime-base.o perlxsi.o -Wl,-export-dynamic -Wl,-E = > -L/usr/local/lib /usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a = > -L/usr/lib/perl/5.8/CORE -ldl -lm -lpthread -lc -lcrypt -lm -lnsl = > -lpthread -ldl > checks.o(.text+0x56): In function `run_service_check': > /tmp/nagios-2.0b2/base/checks.c:118: undefined reference to `PL_thr_key' > checks.o(.text+0x73e):/tmp/nagios-2.0b2/base/checks.c:338: undefined = > reference to `Perl_push_scope' > checks.o(.text+0x759):/tmp/nagios-2.0b2/base/checks.c:339: undefined = > reference to `Perl_save_int' > I think this is beause, the correct Perl headers have not been included because of either a programming error, or Make and friends have picked up the wrong headers. The Perl code has been stable for a while and known to compile and run on a number of platforms, so programming errors seem less likely. How many Perls are there on your system ? If more than one, finding the wrong Perl headers seems more likely. Please would you either post the list or me personally which perl and if there is only one Perl perl -V Does /usr/lib/perl/5.8/CORE contain (below it somewhere) perl.h, EXTERN.h ? I have noX access to Debian. Is there any chance of a temporary shell (via ssh) on the problem host to try and work out what's wrong ? I expect the contrib/mini_epn would also fail to compile. Is that the case ? Yours sincerely. -- Stanley Hopcroft IP Australia Ph: (02) 6283 3189 Fax: (02) 6281 1353 PO Box 200 Woden ACT 2606 http://www.ipaustralia.gov.au -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: disclaimer.txt URL: From ae at op5.se Sat Feb 19 11:29:30 2005 From: ae at op5.se (Andreas Ericsson) Date: Sat, 19 Feb 2005 11:29:30 +0100 Subject: I made a nagios config util to help In-Reply-To: <3d2eb72a0502181457226e283f@mail.gmail.com> References: <3d2eb72a0502181457226e283f@mail.gmail.com> Message-ID: <4217150A.3000709@op5.se> Taylor Dondich wrote: > Hi all, first post on the nagios mailing list. I love Nagios and have > been using it. However, it was very tiring to input all the > configuration for all the hosts I wanted to monitor. So I did > something about it. > > I've made a php web app to help ease configuration of nagios. It's in > the rough beta stages, and I just released a version that allows you > to import current nagios configs. So I think it's ready to start > showing to people, that way I can get more test results out of it. > > If you'd like to give it a shot, please go to > http://fruity.nakedgeek.com . Join the mailing list to share the > results, and to help debug fruity to make it the best tool to use to > easilly configure nagios in a logical fashion. > A word of caution to the unaware user; The parsing class of fruity (naupy) was last updated in 2003, so it won't be able to handle the 2.0 config format. > Thanks! > > Taylor > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tommy at tommy.adsl.dk Sat Feb 19 11:30:14 2005 From: tommy at tommy.adsl.dk (Tommy Abrahamsson) Date: Sat, 19 Feb 2005 11:30:14 +0100 Subject: Sending a notification based on "Status Data Age" or similar Message-ID: <1108809015.18264.9.camel@superbox> Hi I'd like Nagios to send out a notification when a Service (passively checked service) hasn't been updated for ie. more than 30 minutes. If I view the Service Information through the web-interface, I can see that Nagios registers a timestamp of the last recorded service update - Status Data Age. So my question is: is it possible to alert on this value? Thanks in advance for all your help. Best regards ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Sat Feb 19 11:40:40 2005 From: ae at op5.se (Andreas Ericsson) Date: Sat, 19 Feb 2005 11:40:40 +0100 Subject: Sending a notification based on "Status Data Age" or similar In-Reply-To: <1108809015.18264.9.camel@superbox> References: <1108809015.18264.9.camel@superbox> Message-ID: <421717A8.6000000@op5.se> Tommy Abrahamsson wrote: > Hi > > I'd like Nagios to send out a notification when a Service (passively > checked service) hasn't been updated for ie. more than 30 minutes. > > If I view the Service Information through the web-interface, I can see > that Nagios registers a timestamp of the last recorded service update - > Status Data Age. > So my question is: is it possible to alert on this value? > grep the docs for freshness checks. It does exactly this. > Thanks in advance for all your help. > Best regards > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From amontibello at gmail.com Sat Feb 19 14:09:04 2005 From: amontibello at gmail.com (Anthony Montibello) Date: Sat, 19 Feb 2005 08:09:04 -0500 Subject: NC_Net v2.18 - Some minor enhancements from V2.17 Message-ID: NC_Net has a new version, v2.18. This version has several minor enhancements from v2.17 so those that have 2.17 already should not need to update. BUG Fix - Replaced newlines with white spaces in WMICHECK. BUG Fix Replaced newlines with semicolon in eventlog check. Added Command ENUMCONFIG (views the NC_Net config from an active check result). Enhancement: Event Log checks now Supports -w -c. (both active and passive) The check_nt with nc_net enhancements is included in the install package and needs to be compiled to run the newer enhancements remotly. This is also availible on NC_Net official web site. www.shatterit.com/NC_Net NC_Net v2.18 can be downloaded from its official website or from nagiosexchange. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tpblists at terranovum.com Sat Feb 19 14:27:52 2005 From: tpblists at terranovum.com (Thomas Bolioli) Date: Sat, 19 Feb 2005 08:27:52 -0500 Subject: plugins ./configure hangs Message-ID: <42173ED8.9030006@terranovum.com> The configure script for the plugins hangs at the last line there for ping syntax. Anyone know why? Also, I have 1.02 config files I would like to use. Can I use them with 2.0b with little issue or should I start from scratch? Thanks, Tom checking for strtol... yes checking for strtoul... yes checking return type of socket size... int checking for ps... /bin/ps checking for ps syntax... /bin/ps -axwo 'stat uid ppid vsz rss pcpu comm args' checking for ping... /bin/ping checking for ping6... /usr/bin/ping6 checking for ICMP ping syntax... -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3194 bytes Desc: S/MIME Cryptographic Signature URL: From tdondich at gmail.com Sat Feb 19 16:16:21 2005 From: tdondich at gmail.com (Taylor Dondich) Date: Sat, 19 Feb 2005 07:16:21 -0800 Subject: I made a nagios config util to help In-Reply-To: <4217150A.3000709@op5.se> References: <3d2eb72a0502181457226e283f@mail.gmail.com> <4217150A.3000709@op5.se> Message-ID: <3d2eb72a050219071668e5c360@mail.gmail.com> I've been modifying the naupy php class to be more flexible. And I'm only using it for importing configurations. I'm wondering, should I strictly be developing fruity to be towards nagios 2.x, or should I continue to develop for 1.x, until 2.x is considered a stable release? Taylor On Sat, 19 Feb 2005 11:29:30 +0100, Andreas Ericsson wrote: > Taylor Dondich wrote: > > Hi all, first post on the nagios mailing list. I love Nagios and have > > been using it. However, it was very tiring to input all the > > configuration for all the hosts I wanted to monitor. So I did > > something about it. > > > > I've made a php web app to help ease configuration of nagios. It's in > > the rough beta stages, and I just released a version that allows you > > to import current nagios configs. So I think it's ready to start > > showing to people, that way I can get more test results out of it. > > > > If you'd like to give it a shot, please go to > > http://fruity.nakedgeek.com . Join the mailing list to share the > > results, and to help debug fruity to make it the best tool to use to > > easilly configure nagios in a logical fashion. > > > > A word of caution to the unaware user; > The parsing class of fruity (naupy) was last updated in 2003, so it > won't be able to handle the 2.0 config format. > > > Thanks! > > > > Taylor > > > > > > ------------------------------------------------------- > > SF email is sponsored by - The IT Product Guide > > Read honest & candid reviews on hundreds of IT Products from real users. > > Discover which products truly live up to the hype. Start reading now. > > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > -- > Andreas Ericsson andreas.ericsson at op5.se > OP5 AB www.op5.se > Lead Developer > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Sat Feb 19 17:29:41 2005 From: ae at op5.se (Andreas Ericsson) Date: Sat, 19 Feb 2005 17:29:41 +0100 Subject: I made a nagios config util to help In-Reply-To: <3d2eb72a050219071668e5c360@mail.gmail.com> References: <3d2eb72a0502181457226e283f@mail.gmail.com> <4217150A.3000709@op5.se> <3d2eb72a050219071668e5c360@mail.gmail.com> Message-ID: <42176975.3050300@op5.se> Taylor Dondich wrote: > I've been modifying the naupy php class to be more flexible. And I'm > only using it for importing configurations. I'm wondering, should I > strictly be developing fruity to be towards nagios 2.x, or should I > continue to develop for 1.x, until 2.x is considered a stable release? > Develop for what you're using but make sure it can easily be extended to understand other versions as well. That way you can always hope someone else hops in and does the easy but timeconsuming job. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From benoit.mortier at opensides.be Sat Feb 19 20:05:06 2005 From: benoit.mortier at opensides.be (Benoit Mortier) Date: Sat, 19 Feb 2005 20:05:06 +0100 Subject: I made a nagios config util to help In-Reply-To: <42176975.3050300@op5.se> References: <3d2eb72a0502181457226e283f@mail.gmail.com> <3d2eb72a050219071668e5c360@mail.gmail.com> <42176975.3050300@op5.se> Message-ID: <200502192005.07600.benoit.mortier@opensides.be> Le Samedi 19 F?vrier 2005 17:29, Andreas Ericsson a ?crit?: > Taylor Dondich wrote: > > I've been modifying the naupy php class to be more flexible. And I'm > > only using it for importing configurations. I'm wondering, should I > > strictly be developing fruity to be towards nagios 2.x, or should I > > continue to develop for 1.x, until 2.x is considered a stable release? > > Develop for what you're using but make sure it can easily be extended to > understand other versions as well. That way you can always hope someone > else hops in and does the easy but timeconsuming job. We started developping a frontend for 2.0 and we are interested in the modified naupy classes, we could had the 2.0 fonctionnalities. Have a nice day. -- Benoit Mortier Linux Engineer www.opensides.be ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tdondich at gmail.com Sat Feb 19 20:07:33 2005 From: tdondich at gmail.com (Taylor Dondich) Date: Sat, 19 Feb 2005 11:07:33 -0800 Subject: I made a nagios config util to help In-Reply-To: <42176975.3050300@op5.se> References: <3d2eb72a0502181457226e283f@mail.gmail.com> <4217150A.3000709@op5.se> <3d2eb72a050219071668e5c360@mail.gmail.com> <42176975.3050300@op5.se> Message-ID: <3d2eb72a050219110714c2eb7a@mail.gmail.com> The problem with developing for the 2.x configuration structure, is that it may change somewhat until it finally goes into a stable release. I'll check with the 2.x configuration format and see what differences there are. From first glance, they don't appear to be much different. I could probably make Fruity version aware, so it can operate with both versions of Nagios. I'll look more into it next week (enjoying my three day weekend). Andreas, have you gotten the chance to take a look at Fruity? Can you give me any other ideas of comments? Taylor On Sat, 19 Feb 2005 17:29:41 +0100, Andreas Ericsson wrote: > Taylor Dondich wrote: > > I've been modifying the naupy php class to be more flexible. And I'm > > only using it for importing configurations. I'm wondering, should I > > strictly be developing fruity to be towards nagios 2.x, or should I > > continue to develop for 1.x, until 2.x is considered a stable release? > > > > Develop for what you're using but make sure it can easily be extended to > understand other versions as well. That way you can always hope someone > else hops in and does the easy but timeconsuming job. > > -- > Andreas Ericsson andreas.ericsson at op5.se > OP5 AB www.op5.se > Lead Developer > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tdondich at gmail.com Sat Feb 19 22:58:42 2005 From: tdondich at gmail.com (Taylor Dondich) Date: Sat, 19 Feb 2005 13:58:42 -0800 Subject: I made a nagios config util to help In-Reply-To: <200502192005.07600.benoit.mortier@opensides.be> References: <3d2eb72a0502181457226e283f@mail.gmail.com> <3d2eb72a050219071668e5c360@mail.gmail.com> <42176975.3050300@op5.se> <200502192005.07600.benoit.mortier@opensides.be> Message-ID: <3d2eb72a05021913583da96f4@mail.gmail.com> It's really been modified purely for the purpose of importing the data into fruity. So a lot of naupy's internal structure of keeping the data has changed. once it's been imported into fruity, the naupy class isn't used at all anymore. I doubt it'd be useful. But the modified naupy.inc.php is in the latest fruity (sans comments). I'll clean it up a bit for the next release, if you want to use it. However, a lot of it's "usefullness" is stripped. ;) Taylor On Sat, 19 Feb 2005 20:05:06 +0100, Benoit Mortier wrote: > Le Samedi 19 F?vrier 2005 17:29, Andreas Ericsson a ?crit : > > Taylor Dondich wrote: > > > I've been modifying the naupy php class to be more flexible. And I'm > > > only using it for importing configurations. I'm wondering, should I > > > strictly be developing fruity to be towards nagios 2.x, or should I > > > continue to develop for 1.x, until 2.x is considered a stable release? > > > > Develop for what you're using but make sure it can easily be extended to > > understand other versions as well. That way you can always hope someone > > else hops in and does the easy but timeconsuming job. > > We started developping a frontend for 2.0 and we are interested in the > modified naupy classes, we could had the 2.0 fonctionnalities. > > Have a nice day. > -- > Benoit Mortier > Linux Engineer > www.opensides.be > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id396&opclick > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dido at imperium.ph Sun Feb 20 13:17:01 2005 From: dido at imperium.ph (Rafael 'Dido' Sevilla) Date: Sun, 20 Feb 2005 20:17:01 +0800 Subject: exclamation points inside check command arguments Message-ID: <20050220121701.GA24288@imperium.ph> The manual doesn't seem to explain clearly how these are supposed to be handled. If I need to pass an argument to a check_command that has exclamation points, how would I escape it so that it the actual '!' is not interpreted by Nagios as an argument separator? -- We get answers that don't answer; explanations that don't explain; and conclusions that don't conclude. http://stormwyrm.blogspot.com/ ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tommy at tommy.adsl.dk Sun Feb 20 17:27:10 2005 From: tommy at tommy.adsl.dk (Tommy Abrahamsson) Date: Sun, 20 Feb 2005 17:27:10 +0100 Subject: Monitoring clamav signature updates Message-ID: <1108916830.2609.14.camel@superbox> Hi I'm trying to figure out the best way of monitoring if a ClamAV daemon (www.clamav.net) is updated properly with the latest signatures. My idea was to have some kind of plugin comparing the local value - "sigtool -i /path/to/signature" - with the official values - "host -t txt current.cvd.clamav.net". It'll be cool if Nagios could do this. So do somebody out here already have experiences with this, or maybe already written a plugin? What would be the best way, using a NSCA or NRPE to achieve this kind of monitoring? Thanks in advance. Best regards ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Stanley.Hopcroft at IPAustralia.Gov.AU Mon Feb 21 04:57:51 2005 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Mon, 21 Feb 2005 14:57:51 +1100 Subject: Problem compiling with embedded perl option Message-ID: <20050221035749.GB42647@IPAustralia.Gov.AU> Some recent noise said :- From: Stanley Hopcroft IPAustralia.Gov.AU> Subject: Re: Problem compiling with embedded perl option Newsgroups: gmane.network.nagios.user Date: Sat, 19 Feb 2005 20:47:25 +1100 On Fri, Feb 18, 2005 at 08:10:15PM -0800, nagios-users-request lists.sourceforge.net wrote: > > Date: Fri, 18 Feb 2005 11:40:12 -0800 > > From: "Tong Young" ingenio.com> > > To: lists.sourceforge.net> > > Subject: [Nagios-users] Problem compiling with embedded perl option > > > > I am trying to use the --enable-embedded-perl flag but I get the = > > following error when running make all. > > ... snip > > help would be appreciated. I'm assuming that I'm missing some > > packages. > No. > All you need is Perl (famous Beatles song). Some more reflection about this suggested that if you are on a platform that distinguishes between devel and binary packages (ie headers aren't installed with the binaries), you may need the 'devel' package for Perl. The bottom line is that your problem _is_ missing packages if your system does not have perl.h EXTERN.h in a path refered to by perl -V. (To be sure, you may want to try find /usr -name 'perl.h' -ls) If you are sure, you don't have the headers, you will need to .. STFW shows quite a lot of stuff about embedded Perl on Deb. http://www.debian.org/doc/packaging-manuals/perl-policy/ch-embed.html talks about a libperl-dev ? Does that mean anything to you ? Yours sincerely. -- Stanley Hopcroft IP Australia Ph: (02) 6283 3189 Fax: (02) 6281 1353 PO Box 200 Woden ACT 2606 http://www.ipaustralia.gov.au -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: disclaimer.txt URL: From tommy at tommy.adsl.dk Mon Feb 21 08:35:44 2005 From: tommy at tommy.adsl.dk (Tommy Abrahamsson) Date: Mon, 21 Feb 2005 08:35:44 +0100 Subject: AW: Monitoring clamav signature updates In-Reply-To: <779CADFF8B1E254B9FC83FBA6AC88B4B685F01@ex03.vie.at.nextra.com> References: <779CADFF8B1E254B9FC83FBA6AC88B4B685F01@ex03.vie.at.nextra.com> Message-ID: <1108971344.2609.19.camel@superbox> Thank you, but maybe I wasn't clear enough. Sending emails is not a problem, Nagios does this very well. I'm interested in seeing the status of a clamav daemon - whether it's updated or not - with the latest virus signatures. The 2 mentioned commands, can get the values, but how to integrate with Nagios? Thanks. Best regards On Mon, 2005-02-21 at 08:16 +0100, Thomas Jungbauer wrote: > Hi, > > I am using a perl script, which can be downloaded at: http://www.logix.cz/michal/devel/smtp/smtp-client.pl > > However, to use this script together with nagios you will have to make some modifications on the script. (ie: using utils and libs for nagios and changing some error-codes, to retrieve correct return states which can be used by the nagios deamon.) > > Best Regards > Thomas > > > > -----Urspr?ngliche Nachricht----- > Von: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] Im Auftrag von Tommy Abrahamsson > Gesendet: Sonntag, 20. Februar 2005 17:27 > An: nagios-users at lists.sourceforge.net > Betreff: [Nagios-users] Monitoring clamav signature updates > > Hi > > I'm trying to figure out the best way of monitoring if a ClamAV daemon > (www.clamav.net) is updated properly with the latest signatures. > > My idea was to have some kind of plugin comparing the local value - > "sigtool -i /path/to/signature" - with the official values - "host -t > txt current.cvd.clamav.net". > > It'll be cool if Nagios could do this. So do somebody out here already > have experiences with this, or maybe already written a plugin? > What would be the best way, using a NSCA or NRPE to achieve this kind of > monitoring? > > Thanks in advance. > Best regards > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Carsten.Schmitz at aegon.com Mon Feb 21 11:48:12 2005 From: Carsten.Schmitz at aegon.com (Schmitz, Carsten) Date: Mon, 21 Feb 2005 11:48:12 +0100 Subject: AW: Monitoring clamav signature updates Message-ID: <49977F7CEA035C46A2D47108CE0F032FF74C4C@ANGELIA.aegon.com> > but how to integrate with Nagios? Shell script. Code your "signature compare" logic in your prefered shell using awk or cut and test (or perl or any other language), output error level 0 for okay, 1 warning, 2 error. But I have troubles seeing how to deduct the signature freshness from those commands (maybe thats just me, my clamav isn't production and not up-to-date). But why not just use freshclam for Nagios? Call freshclam from shell script, grep for " is is up to date", return code 0 if found, 2 if not. Much easier. Here's my (much outdated ;) freshclam output so you can see what to grep for: freshclam ClamAV update process started at Mon Feb 21 11:43:30 2005 Reading CVD header (main.cvd): OK main.cvd is up to date (version: 29, sigs: 29086, f-level: 3, builder: tomek) Reading CVD header (daily.cvd): OK daily.cvd is up to date (version: 718, sigs: 1929, f-level: 4, builder: tkojm) WARNING: Your ClamAV installation is OUTDATED - please update immediately! WARNING: Current functionality level = 3, required = 4 Cheers, Carsten -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Tommy Abrahamsson Sent: Monday, February 21, 2005 8:36 AM To: nagios-users at lists.sourceforge.net Subject: Re: AW: [Nagios-users] Monitoring clamav signature updates Thank you, but maybe I wasn't clear enough. Sending emails is not a problem, Nagios does this very well. I'm interested in seeing the status of a clamav daemon - whether it's updated or not - with the latest virus signatures. The 2 mentioned commands, can get the values, but how to integrate with Nagios? Thanks. Best regards On Mon, 2005-02-21 at 08:16 +0100, Thomas Jungbauer wrote: > Hi, > > I am using a perl script, which can be downloaded at: http://www.logix.cz/michal/devel/smtp/smtp-client.pl > > However, to use this script together with nagios you will have to make some modifications on the script. (ie: using utils and libs for nagios and changing some error-codes, to retrieve correct return states which can be used by the nagios deamon.) > > Best Regards > Thomas > > > > -----Urspr?ngliche Nachricht----- > Von: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] Im Auftrag von Tommy Abrahamsson > Gesendet: Sonntag, 20. Februar 2005 17:27 > An: nagios-users at lists.sourceforge.net > Betreff: [Nagios-users] Monitoring clamav signature updates > > Hi > > I'm trying to figure out the best way of monitoring if a ClamAV daemon > (www.clamav.net) is updated properly with the latest signatures. > > My idea was to have some kind of plugin comparing the local value - > "sigtool -i /path/to/signature" - with the official values - "host -t > txt current.cvd.clamav.net". > > It'll be cool if Nagios could do this. So do somebody out here already > have experiences with this, or maybe already written a plugin? > What would be the best way, using a NSCA or NRPE to achieve this kind of > monitoring? > > Thanks in advance. > Best regards > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=ick _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tommy at tommy.adsl.dk Mon Feb 21 12:15:03 2005 From: tommy at tommy.adsl.dk (Tommy Abrahamsson) Date: Mon, 21 Feb 2005 12:15:03 +0100 Subject: AW: Monitoring clamav signature updates In-Reply-To: <49977F7CEA035C46A2D47108CE0F032FF74C4C@ANGELIA.aegon.com> References: <49977F7CEA035C46A2D47108CE0F032FF74C4C@ANGELIA.aegon.com> Message-ID: <1108984503.2609.29.camel@superbox> Thanks, I think I got it. By using NSCA and my poorly written script ;), it provides some basic monitoring of clamav signature status. Please feel free to use it - but don't blame me for the coding ;) Thanks for your input. Tommy --- #!/bin/sh # Arguments # $1 = name of host in service definition # $2 = name/description of service in service definition # $3 = return code # Determine the local signature versions, and the real live versions. myDailyVersion=`/usr/bin/sigtool -i /var/amavisd/daily.cvd | grep -i version | awk '{print $2}'` myMainVersion=`/usr/bin/sigtool -i /var/amavisd/main.cvd | grep -i version | awk '{print $2}'` realDailyVersion=`host -t txt current.cvd.clamav.net|awk 'BEGIN {FS=":"} {print $3}'` realMainVersion=`host -t txt current.cvd.clamav.net|awk 'BEGIN {FS=":"} {print $2}'` # Generate the output for nagios output="Official: $realMainVersion/$realDailyVersion. Local: $myMainVersion/$myDailyVersion" # If the return code has been specified, then just use this. Otherwise calculate the return code if [ $3 ]; then status=$3 else # Set the return code, based on the local and real signatures if [ "$myDailyVersion" != "$realDailyVersion" ] || [ "$myMainVersion" != "$realMainVersion" ]; then status=2 else status=0 fi fi # Submit the result /bin/echo -e "$1\t$2\t$status\t$output\n" | /usr/sbin/send_nsca -H nagiosserver ---------- On Mon, 2005-02-21 at 11:48 +0100, Schmitz, Carsten wrote: > > but how to integrate with Nagios? > > Shell script. Code your "signature compare" logic in your prefered shell using awk or cut and test (or perl or any other language), output error level 0 for okay, 1 warning, 2 error. > > But I have troubles seeing how to deduct the signature freshness from those commands (maybe thats just me, my clamav isn't production and not up-to-date). > > But why not just use freshclam for Nagios? Call freshclam from shell script, grep for " is is up to date", return code 0 if found, 2 if not. Much easier. > > Here's my (much outdated ;) freshclam output so you can see what to grep for: > > freshclam > ClamAV update process started at Mon Feb 21 11:43:30 2005 > Reading CVD header (main.cvd): OK > main.cvd is up to date (version: 29, sigs: 29086, f-level: 3, builder: tomek) > Reading CVD header (daily.cvd): OK > daily.cvd is up to date (version: 718, sigs: 1929, f-level: 4, builder: tkojm) > WARNING: Your ClamAV installation is OUTDATED - please update immediately! > WARNING: Current functionality level = 3, required = 4 > > Cheers, > Carsten > > > > > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Tommy > Abrahamsson > Sent: Monday, February 21, 2005 8:36 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: AW: [Nagios-users] Monitoring clamav signature updates > > > Thank you, but maybe I wasn't clear enough. Sending emails is not a > problem, Nagios does this very well. I'm interested in seeing the status > of a clamav daemon - whether it's updated or not - with the latest virus > signatures. The 2 mentioned commands, can get the values, but how to > integrate with Nagios? > Thanks. > Best regards > > On Mon, 2005-02-21 at 08:16 +0100, Thomas Jungbauer wrote: > > Hi, > > > > I am using a perl script, which can be downloaded at: http://www.logix.cz/michal/devel/smtp/smtp-client.pl > > > > However, to use this script together with nagios you will have to make some modifications on the script. (ie: using utils and libs for nagios and changing some error-codes, to retrieve correct return states which can be used by the nagios deamon.) > > > > Best Regards > > Thomas > > > > > > > > -----Urspr?ngliche Nachricht----- > > Von: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] Im Auftrag von Tommy Abrahamsson > > Gesendet: Sonntag, 20. Februar 2005 17:27 > > An: nagios-users at lists.sourceforge.net > > Betreff: [Nagios-users] Monitoring clamav signature updates > > > > Hi > > > > I'm trying to figure out the best way of monitoring if a ClamAV daemon > > (www.clamav.net) is updated properly with the latest signatures. > > > > My idea was to have some kind of plugin comparing the local value - > > "sigtool -i /path/to/signature" - with the official values - "host -t > > txt current.cvd.clamav.net". > > > > It'll be cool if Nagios could do this. So do somebody out here already > > have experiences with this, or maybe already written a plugin? > > What would be the best way, using a NSCA or NRPE to achieve this kind of > > monitoring? > > > > Thanks in advance. > > Best regards > > > > > > > > > > ------------------------------------------------------- > > SF email is sponsored by - The IT Product Guide > > Read honest & candid reviews on hundreds of IT Products from real users. > > Discover which products truly live up to the hype. Start reading now. > > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id396&op=ick > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ��HWj)bh+yNLv-yv'z\jwbv,xnv!3?jj[z('! lXzm^*^J?v)!lgri?}e?^7)brCZ*,?f)+-5"?z%lqzm?X( ~zwXb?"?zz)?^5"??n)z"{??h?.x? ib~"ZF?x,z{m^ ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fred.blaise at excilan.com Mon Feb 21 12:40:10 2005 From: fred.blaise at excilan.com (Fred Blaise) Date: Mon, 21 Feb 2005 12:40:10 +0100 Subject: SMS issue In-Reply-To: <42161211.9090801@op5.se> References: <1108739681.3868.52.camel@localhost.localdomain> <1108742218.3818.3.camel@localhost.localdomain> <42161211.9090801@op5.se> Message-ID: <1108986011.4038.22.camel@localhost.localdomain> So now, it actually seems to work well when there's only one user in the group to be alerted, but fails to send anything when several users are in the group... what's going on??? I don't know what to do anymore, I am running out of ideas. Thanks for your help. fred On Fri, 2005-02-18 at 17:04 +0100, Andreas Ericsson wrote: > Fred Blaise wrote: > > Already checked privileges. This is not it. > > Why would it work with only 1 SMS, and not several, if it was a > > privilege problem? ;) > > > > Do you have some sort of spooler mechanism or are you printing directly > to the serial port? If you do, the ones that get printed after the first > has been processed will most likely be deleted. > > > On Fri, 2005-02-18 at 16:42 +0100, Leif Nixon wrote: > > > >>Fred Blaise writes: > >> > >> > >>>The problem lies in the SMSes are actually not being sent, but only when > >>>they are sent by Nagios. They are not even leaving the server! I used > >>>tcpdump to monitor the nw traffic for those SMS... total silence. > >>>[...] > >>>The script (sms_notify_2) works fine if run manually. > >> > >>As which user? This sounds like a privilege problem. > >> > -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From benoit.mortier at opensides.be Mon Feb 21 12:41:08 2005 From: benoit.mortier at opensides.be (Benoit Mortier) Date: Mon, 21 Feb 2005 12:41:08 +0100 Subject: I made a nagios config util to help In-Reply-To: <3d2eb72a05021913583da96f4@mail.gmail.com> References: <3d2eb72a0502181457226e283f@mail.gmail.com> <200502192005.07600.benoit.mortier@opensides.be> <3d2eb72a05021913583da96f4@mail.gmail.com> Message-ID: <200502211241.10084.benoit.mortier@opensides.be> Le Samedi 19 F?vrier 2005 22:58, Taylor Dondich a ?crit?: > It's really been modified purely for the purpose of importing the data > into fruity. So a lot of naupy's internal structure of keeping the > data has changed. once it's been imported into fruity, the naupy > class isn't used at all anymore. I doubt it'd be useful. But the > modified naupy.inc.php is in the latest fruity (sans comments). I'll > clean it up a bit for the next release, if you want to use it. > However, a lot of it's "usefullness" is stripped. ;) that's to bad ;-) so we can start a php classes for nagios 2.0 Have a nice day -- Benoit Mortier Linux Engineer www.opensides.be ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kar at kakidata.dk Mon Feb 21 16:25:28 2005 From: kar at kakidata.dk (Kaare Rasmussen) Date: Mon, 21 Feb 2005 16:25:28 +0100 Subject: Multiple remote checks Message-ID: <200502211625.28654.kar@kakidata.dk> Hi I would like to check some services running on servers behind a firewall from a Nagios server which is behind another firewall. Some options comes to mind: 1. check_by_ssh This will work, but i imagine that it will use lots of resources, given that there are perhaps 10 services per server to be checked. It would have to ssh to the remote firewall, and then from the firewall to each host for every service check. 2. nrpe Would require a hole in the remote firewall. Not sure that it would use less resources. 3. nsca Would require a hole in the local (nagios) firewall. Still a lot of connecting going on. 4. rel ? Could work, but I'm not sure that it's being maintained. Also, using mail as transport may not add to security. Or efficiency. 5. Do it myself I'm surprised that I couldn't find something like this: 5.1. Service check on remote systems will store results in a file. 5.2 Once in a while, nagios will collect this file through ssh and update the external command file. Is this stupid/unnecessary/done before? ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Carsten.Schmitz at aegon.com Mon Feb 21 16:27:39 2005 From: Carsten.Schmitz at aegon.com (Schmitz, Carsten) Date: Mon, 21 Feb 2005 16:27:39 +0100 Subject: Donations where? Message-ID: <49977F7CEA035C46A2D47108CE0F032FF74C5B@ANGELIA.aegon.com> Warning: Non-tech question follows ;) After I nagged about it some months ago, my manager recently voiced the possibility of "giving some money to Nagios". Weird thing: On nagios.org, in the FAQs, in the 1.2 help I can't find any hint on donations, and on sf.net it says that "egalstad has not opted in to receive donations" Am I just blind? Did anyone else stumble about a paypal link on the Nagios site or anything like that? Cheers, Carsten ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Mon Feb 21 16:36:29 2005 From: ae at op5.se (Andreas Ericsson) Date: Mon, 21 Feb 2005 16:36:29 +0100 Subject: Donations where? In-Reply-To: <49977F7CEA035C46A2D47108CE0F032FF74C5B@ANGELIA.aegon.com> References: <49977F7CEA035C46A2D47108CE0F032FF74C5B@ANGELIA.aegon.com> Message-ID: <4219FFFD.6070008@op5.se> Schmitz, Carsten wrote: > Warning: Non-tech question follows ;) > > After I nagged about it some months ago, my manager recently voiced > the possibility of "giving some money to Nagios". > > Weird thing: On nagios.org, in the FAQs, in the 1.2 help I can't find > any hint on donations, and on sf.net it says that "egalstad has not > opted in to receive donations" > > Am I just blind? Did anyone else stumble about a paypal link on the > Nagios site or anything like that? > Perhaps you could just send him sixpack and a bag of crisps? ;) -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Mon Feb 21 16:41:07 2005 From: ae at op5.se (Andreas Ericsson) Date: Mon, 21 Feb 2005 16:41:07 +0100 Subject: Multiple remote checks In-Reply-To: <200502211625.28654.kar@kakidata.dk> References: <200502211625.28654.kar@kakidata.dk> Message-ID: <421A0113.3040903@op5.se> Kaare Rasmussen wrote: > Hi > > I would like to check some services running on servers behind a firewall from > a Nagios server which is behind another firewall. > > Some options comes to mind: > > 1. check_by_ssh > This will work, but i imagine that it will use lots of resources, given that > there are perhaps 10 services per server to be checked. > It would have to ssh to the remote firewall, and then from the firewall to > each host for every service check. > > 2. nrpe > Would require a hole in the remote firewall. Not sure that it would use less > resources. > > 3. nsca > Would require a hole in the local (nagios) firewall. Still a lot of connecting > going on. > > 4. rel ? > Could work, but I'm not sure that it's being maintained. Also, using mail as > transport may not add to security. Or efficiency. > > 5. Do it myself > I'm surprised that I couldn't find something like this: > 5.1. Service check on remote systems will store results in a file. > 5.2 Once in a while, nagios will collect this file through ssh and update the > external command file. > Is this stupid/unnecessary/done before? > Almost certainly done before. When firewalls are involved, it's usually desirable to send things from the secure side to the open one, so that the insecure part of the network never initates connections to the secure side. With duplexed firewalls you'll have to open somewhere anyway, so just make up your mind and get to work. > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From brylon at jla.rutgers.edu Mon Feb 21 16:48:59 2005 From: brylon at jla.rutgers.edu (Bryan Loniewski) Date: Mon, 21 Feb 2005 10:48:59 -0500 (EST) Subject: Monitoring clamav signature updates In-Reply-To: <20050221041652.281D912672@sc8-sf-spam2.sourceforge.net> References: <20050221041652.281D912672@sc8-sf-spam2.sourceforge.net> Message-ID: > Hi > > I'm trying to figure out the best way of monitoring if a ClamAV daemon > (www.clamav.net) is updated properly with the latest signatures. > > My idea was to have some kind of plugin comparing the local value - > "sigtool -i /path/to/signature" - with the official values - "host -t > txt current.cvd.clamav.net". > > It'll be cool if Nagios could do this. So do somebody out here already > have experiences with this, or maybe already written a plugin? > What would be the best way, using a NSCA or NRPE to achieve this kind of > monitoring? > > Thanks in advance. > Best regards We kind of do this... We just check the file age of our *.cvd file and if its older than X (we use 48 hours to warn and 72 hours for critical) determine if in fact it should have been updated! In the past few months since we've been doing this check, we rarely ever see the warning and I don't ever recall seeing the critical. Bryan ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From brylon at jla.rutgers.edu Mon Feb 21 17:37:59 2005 From: brylon at jla.rutgers.edu (Bryan Loniewski) Date: Mon, 21 Feb 2005 11:37:59 -0500 (EST) Subject: cfg_dir directory recursion Message-ID: >Compile this attached program and run it with >getnagioscfg >If it spits out every file you think should be included I'll get a patch >for nagios. Does not spit out anything... bash-2.05# ./getnagioscfg nagios.cfg bash-2.05# exit code is 0 and if I don't give an argument it prints usage, so it does run? > >Compile with; >gcc getnagioscfg.c -o getnagioscfg Compiled... but with warnings: bash-2.05# gcc getnagioscfg.c -o getnagioscfg getnagioscfg.c: In function `read_strip_split': getnagioscfg.c:52: warning: comparison between pointer and integer getnagioscfg.c:57: warning: assignment makes integer from pointer without a cast > >You might have to change header files or something or linking or >something. I'm not very familiar with solaris. Only had to change one header file (err.h > errno.h). > My setup looks like... nagios.cfg: cfg_dir=/usr/local/nagios2/etc/CCF_SC bash-2.05# pwd /usr/local/nagios2/etc bash-2.05# ls -dl CCF_SC/ drwxr-xr-x 4 nagios nagios 512 Feb 18 11:30 CCF_SC/ bash-2.05# ls -dl CCF_SC/ccf/ drwxr-xr-x 2 nagios nagios 512 Feb 18 11:17 CCF_SC/ccf/ bash-2.05# ls -dl CCF_SC/ccf/ccf.cfg -rw-r--r-- 1 nagios nagios 9518 Feb 18 11:06 CCF_SC/ccf/ccf.cfg ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Mon Feb 21 18:12:18 2005 From: ae at op5.se (Andreas Ericsson) Date: Mon, 21 Feb 2005 18:12:18 +0100 Subject: cfg_dir directory recursion In-Reply-To: References: Message-ID: <421A1672.4020906@op5.se> Bryan Loniewski wrote: >>Compile this attached program and run it with >>getnagioscfg >>If it spits out every file you think should be included I'll get a patch >>for nagios. > > > Does not spit out anything... > > bash-2.05# ./getnagioscfg nagios.cfg > bash-2.05# > Is that the complete path to your nagios.cfg file? That's what you have to give, anyways. I didn't put much effort into it, considering it's rather stupid and has the life expectancy normally associated with glittery insects hovering over trout streams in the summer. > exit code is 0 and if I don't give an argument it prints usage, so it does run? > > >>Compile with; >>gcc getnagioscfg.c -o getnagioscfg > > > Compiled... but with warnings: > > bash-2.05# gcc getnagioscfg.c -o getnagioscfg > getnagioscfg.c: In function `read_strip_split': > getnagioscfg.c:52: warning: comparison between pointer and integer > getnagioscfg.c:57: warning: assignment makes integer from pointer without a cast > For a 5 minute hack, that's pretty good. > >>You might have to change header files or something or linking or >>something. I'm not very familiar with solaris. > > > Only had to change one header file (err.h > errno.h). > > > > My setup looks like... > > nagios.cfg: > cfg_dir=/usr/local/nagios2/etc/CCF_SC > > > bash-2.05# pwd > /usr/local/nagios2/etc > > bash-2.05# ls -dl CCF_SC/ > drwxr-xr-x 4 nagios nagios 512 Feb 18 11:30 CCF_SC/ > > bash-2.05# ls -dl CCF_SC/ccf/ > drwxr-xr-x 2 nagios nagios 512 Feb 18 11:17 CCF_SC/ccf/ > > bash-2.05# ls -dl CCF_SC/ccf/ccf.cfg > -rw-r--r-- 1 nagios nagios 9518 Feb 18 11:06 CCF_SC/ccf/ccf.cfg > Should find that without a problem. Is that your only configuration file? > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Toby_Kraft at KSAinc.com Mon Feb 21 18:53:00 2005 From: Toby_Kraft at KSAinc.com (Toby Kraft) Date: Mon, 21 Feb 2005 11:53:00 -0600 Subject: Nagios occasionally does not send notifications when a service goes down Message-ID: Hi all, I've been using Nagios 1.2 (and Netsaint before) with some clients for a while. One installation (on Fedora Core 2) has an issue where a service will go down, but Nagios does not send any notification. The service check is a simple tcp port check, the host_alive_check is *default (ping), the host can be pinged. This host has one and only one service. It's a pretty vanilla install and everything works fine most of the time. This past weekend, a host went down. No notifications were sent. Monday morning the staff came in, saw the host was down and restarted it. After they restarted the target host, Nagios then sent out a bunch of Host Down alerts followed by a Host Up alert. Notifications for this server or host were NOT disabled (nagios.log archives show they were enabled on 2/9/05). Okay now you're saying - it's your mail server. But Nagios did not log any notifications at the time of the problem! The Host Alert History shows: Sun Feb 20 00:00:00 CST 2005 to Mon Feb 21 00:00:00 CST 2005 [02-20-2005 18:08:43] SERVICE ALERT: ucisvr5.champlabs.com;Sandbox - DB;CRITICAL;HARD;1;Connection refused or timed out [02-20-2005 18:08:43] HOST ALERT: ucisvr5.champlabs.com;DOWN;HARD;3;/bin/ping -n -U -c 1 ucisvr5.champlabs.com [02-20-2005 18:08:40] HOST ALERT: ucisvr5.champlabs.com;DOWN;SOFT;2;/bin/ping -n -U -c 1 ucisvr5.champlabs.com [02-20-2005 18:08:37] HOST ALERT: ucisvr5.champlabs.com;DOWN;SOFT;1;/bin/ping -n -U -c 1 ucisvr5.champlabs.com The Host Notification History shows: Sun Feb 20 00:00:00 CST 2005 to Mon Feb 21 00:00:00 CST 2005 No notifications have been recorded for this host in this archived log file The Service Alert History shows: Sun Feb 20 00:00:00 CST 2005 to Mon Feb 21 00:00:00 CST 2005 [02-20-2005 18:08:43] SERVICE ALERT: ucisvr5.champlabs.com;Sandbox - DB;CRITICAL;HARD;1;Connection refused or timed out The Service Notification History shows: Sun Feb 20 00:00:00 CST 2005 to Mon Feb 21 00:00:00 CST 2005 No notifications have been recorded for this service in this archived log file It seems that this occurs after Nagios has been up and running for a while. The system and Nagsio have been up for 11 days which doesn't seem like a long time. Mainly just fishing for any ideas on what could cause this or how to troubleshoot the problem. It would be nice if Nagios logged some info when it processes an event and then decides NOT to send a notification, like "Notification for event xxxx suppressed because yyyyy" or some such. Thanks for listening. I'll check into any debug and/or logging options. Toby -------------- next part -------------- An HTML attachment was scrubbed... URL: From ldg at tls.net Mon Feb 21 20:31:53 2005 From: ldg at tls.net (Dave Goodrich) Date: Mon, 21 Feb 2005 14:31:53 -0500 Subject: StyleSheets Message-ID: <421A3729.10205@tls.net> Good afternoon all, I have just gotten Nagios up and running, seems to be working fine, still reading docs. Our company president, a past programmer is legally blind, he can see but we setup his desktop with large font bold white on black. The default calors for Nagios make it nearly impossible for him to read. Before I turn one of our designers loose on this are there any other stylesheets already available for Nagios? Once I get a set of stylesheets, icons done I'd be happy to share. Thanks, DAve -- Dave Goodrich Systems Administrator http://www.tls.net Get rid of Unwanted Emails...get TLS Spam Blocker! ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Mon Feb 21 21:17:02 2005 From: ae at op5.se (Andreas Ericsson) Date: Mon, 21 Feb 2005 21:17:02 +0100 Subject: StyleSheets In-Reply-To: <421A3729.10205@tls.net> References: <421A3729.10205@tls.net> Message-ID: <421A41BE.30708@op5.se> Dave Goodrich wrote: > Good afternoon all, > > I have just gotten Nagios up and running, seems to be working fine, > still reading docs. > > Our company president, a past programmer is legally blind, he can see > but we setup his desktop with large font bold white on black. The > default calors for Nagios make it nearly impossible for him to read. > > Before I turn one of our designers loose on this are there any other > stylesheets already available for Nagios? Once I get a set of > stylesheets, icons done I'd be happy to share. > Not that I know of, but you should be aware of the possibility to include a "common" stylesheet (common.css) that you should simplify the setting up quite a bit. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Mon Feb 21 22:02:17 2005 From: ae at op5.se (Andreas Ericsson) Date: Mon, 21 Feb 2005 22:02:17 +0100 Subject: cfg_dir directory recursion In-Reply-To: References: Message-ID: <421A4C59.8040408@op5.se> Daniel maher wrote: > Just for reference, I compiled your app on a Debian-testing platform, > and it didn't even produce a single error. Works as advertised. :) > Umkay. I'll put it at oss.op5.se in case anyone needs it for something, although I can't for the life of me imagine why. > > Daniel Maher System Engineer ACE TECHNOLOGY INC. > > > > -----Original Message----- From: Andreas Ericsson [mailto:ae at op5.se] > Sent: February 21, 2005 12:12 PM To: > nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] > cfg_dir directory recursion > > Bryan Loniewski wrote: > >>> Compile this attached program and run it with getnagioscfg >> nagios.cfg file> If it spits out every file you think should be >>> included I'll get a patch for nagios. >> >> >> Does not spit out anything... >> >> bash-2.05# ./getnagioscfg nagios.cfg bash-2.05# >> > > > Is that the complete path to your nagios.cfg file? That's what you > have to give, anyways. I didn't put much effort into it, considering > it's rather stupid and has the life expectancy normally associated > with glittery insects hovering over trout streams in the summer. > > >> exit code is 0 and if I don't give an argument it prints usage, so >> it does run? >> >> >> >>> Compile with; gcc getnagioscfg.c -o getnagioscfg >> >> >> Compiled... but with warnings: >> >> bash-2.05# gcc getnagioscfg.c -o getnagioscfg getnagioscfg.c: In >> function `read_strip_split': getnagioscfg.c:52: warning: comparison >> between pointer and integer getnagioscfg.c:57: warning: assignment >> makes integer from pointer without a cast >> > > > For a 5 minute hack, that's pretty good. > > >>> You might have to change header files or something or linking or >>> something. I'm not very familiar with solaris. >> >> >> Only had to change one header file (err.h > errno.h). >> >> >> >> My setup looks like... >> >> nagios.cfg: cfg_dir=/usr/local/nagios2/etc/CCF_SC >> >> >> bash-2.05# pwd /usr/local/nagios2/etc >> >> bash-2.05# ls -dl CCF_SC/ drwxr-xr-x 4 nagios nagios 512 >> Feb 18 11:30 CCF_SC/ >> >> bash-2.05# ls -dl CCF_SC/ccf/ drwxr-xr-x 2 nagios nagios >> 512 Feb 18 11:17 CCF_SC/ccf/ >> >> bash-2.05# ls -dl CCF_SC/ccf/ccf.cfg -rw-r--r-- 1 nagios nagios >> 9518 Feb 18 11:06 CCF_SC/ccf/ccf.cfg >> > > > Should find that without a problem. Is that your only configuration > file? > > >> ------------------------------------------------------- SF email is >> sponsored by - The IT Product Guide Read honest & candid reviews on >> hundreds of IT Products from real users. Discover which products >> truly live up to the hype. Start reading now. >> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >> _______________________________________________ Nagios-users >> mailing list Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users ::: >> Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. ::: Messages without supporting info will risk >> being sent to /dev/null >> > > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tmelendez at bascom.com Mon Feb 21 22:23:38 2005 From: tmelendez at bascom.com (tmelendez at bascom.com) Date: Mon, 21 Feb 2005 16:23:38 -0500 Subject: plugins parse error on compile Message-ID: <1109021018.421a515a344c9@mailserver.bascom.com> Hey Folks, I'm a long time nagios user, and have really enjoyed the product. I'm trying to get it to run on Suse 7.2 (yes, old, I know) box. I'm getting a parse error: ########### make[2]: Entering directory `/tmp/nagios-2.0b2/nagios-plugins-1.4/plugins' source='check_http.c' object='check_http.o' libtool=no \ depfile='.deps/check_http.Po' tmpdepfile='.deps/check_http.TPo' \ depmode=gcc /bin/sh ../depcomp \ gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../intl -I/usr/include/ldap -g -O2 -c check_http.c check_http.c:64: parse error before `*' check_http.c:64: warning: data definition has no type or storage class check_http.c:65: parse error before `*' check_http.c:65: warning: data definition has no type or storage class check_http.c:66: parse error before `*' check_http.c:66: warning: data definition has no type or storage class check_http.c:68: parse error before `*' check_http.c: In function `main': check_http.c:173: warning: assignment makes pointer from integer without a cast check_http.c: In function `check_http': check_http.c:803: warning: assignment makes pointer from integer without a cast check_http.c:888: `SSL_ERROR_SSL' undeclared (first use in this function) check_http.c:888: (Each undeclared identifier is reported only once check_http.c:888: for each function it appears in.) check_http.c: In function `connect_SSL': check_http.c:1252: `SSL_METHOD' undeclared (first use in this function) check_http.c:1252: `meth' undeclared (first use in this function) check_http.c:1263: warning: assignment makes pointer from integer without a cast check_http.c:1280: warning: assignment makes pointer from integer without a cast check_http.c: At top level: check_http.c:1304: parse error before `*' check_http.c: In function `check_certificate': check_http.c:1306: `ASN1_STRING' undeclared (first use in this function) check_http.c:1306: `tm' undeclared (first use in this function) check_http.c:1307: parse error before `int' check_http.c:1313: `certificate' undeclared (first use in this function) check_http.c:1316: `V_ASN1_UTCTIME' undeclared (first use in this function) check_http.c:1322: `stamp' undeclared (first use in this function) check_http.c:1325: `offset' undeclared (first use in this function) check_http.c:1352: `days_left' undeclared (first use in this function) make[2]: *** [check_http.o] Error 1 make[2]: Leaving directory `/tmp/nagios-2.0b2/nagios-plugins-1.4/plugins' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/nagios-2.0b2/nagios-plugins-1.4' make: *** [all] Error 2 ########## The actual line that it is failing on is: SSL_CTX *ctx; I'm assuming that I don't have that data type available to me. Is this part of the openssl package? I'm running openssl-0.9.7e-1 My kernel is 2.4.27 gcc is 2.95.2 The main nagios package compiled and installed without issue. Any help anyone can give would be greatly appreciated. Thanks, Tom ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From HarlanRichardC at JohnDeere.com Mon Feb 21 22:59:18 2005 From: HarlanRichardC at JohnDeere.com (Harlan Richard C) Date: Mon, 21 Feb 2005 15:59:18 -0600 Subject: Outage Time Message-ID: We are using Nagios to Open and close tickets in Service Center. The problem we have now is we need to have Nagios pass the Outage time or the time from the fist down alert it sent out to the time it send out the up alert. Does any one know of anything that does this? If not I was planning to change my notification script to grep through the status log to find the time stamp on the down alert and attach the total outage in the Up alert. Thanks Richard Harlan Enterprise Infrastructure Shared Services Application Infrastructure Support harlanrichardc at johndeere.com 309-765-3225 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From funraps at yahoo.com Mon Feb 21 23:37:27 2005 From: funraps at yahoo.com (funraps too) Date: Mon, 21 Feb 2005 14:37:27 -0800 (PST) Subject: Updated to latest Nagios, now init.d scripts don't work...?? Message-ID: <20050221223727.62398.qmail@web41129.mail.yahoo.com> Hello everyone, now after the update I can't use the init script anymore, any ideas? service nagios status ERROR: List of process IDs must follow -p. ********* simple selection ********* ********* selection by list ********* -A all processes -C by command name -N negate selection -G by real group ID (supports names) -a all w/ tty except session leaders -U by real user ID (supports names) -d all except session leaders -g by session OR by effective group name -e all processes -p by process ID T all processes on this terminal -s processes in the sessions given a all w/ tty, including other users -t by tty g OBSOLETE -- DO NOT USE -u by effective user ID (supports names) r only running processes U processes for specified users x processes w/o controlling ttys t by tty *********** output format ********** *********** long options *********** -o,o user-defined -f full --Group --User --pid --cols --ppid -j,j job control s signal --group --user --sid --rows --info -O,O preloaded -o v virtual memory --cumulative --format --deselect -l,l long u user-oriented --sort --tty --forest --version -F extra full X registers --heading --no-heading --context ********* misc options ********* -V,V show version L list format codes f ASCII art forest -m,m,-L,-T,H threads S children in sum -y change -l format -M,Z security data c true command name -c scheduling class -w,w wide output n numeric WCHAN,UID -H process hierarchy --------------------------------- Do you Yahoo!? All your favorites on one personal page ? Try My Yahoo! -------------- next part -------------- An HTML attachment was scrubbed... URL: From matato at pregi.net Tue Feb 22 11:04:13 2005 From: matato at pregi.net (matato at pregi.net) Date: Tue, 22 Feb 2005 10:04:13 -0000 (GMT) Subject: Router has many interfaces(and ip's) what will be the parent? Message-ID: <4199.202.90.128.27.1109066653.squirrel@mail.pregi.net> Hi, I'm currently monitoring servers of two different networks. 202.90.158.x and 202.90.128.x Nagios works fine alerting me when the host goes down or up, but the entries for hosts.cfg doesn't include a "parent"(I have commented it.) Upon further readings of the documentation, I've came across the monitoring remote hosts. I've found out that alert for host status can either be DOWN or UNREACHEABLE if I put something in the "parent" section right? The network setup with those two subnets above looks like this: ISP | | Router |||||| / \ / \ 158 Switch 128 Switch / \ / \ nagios,server1,2 server3,server4 As you can see, the router has many interfaces. Nagios belongs to 158 network. I'm monitoring servers 1,2,3,4 both from different networks. I have tracerouted from my nagios server to a 128 server(server4) and found out that 202.90.158.1 is the ip of the interface in the router where nagios is passing to get to the 128 servers. Questions: What will be the parent for a 128 server? Is it the 202.90.158.1 or is it the ip of the interface in the router where 128 block passes to get through 158 block if I am to do a traceroute this time from a 128 machine to a 158 machine? And if I already know what the parent should be, do I have to create additional hosts.cfg entry for this host? Will it have a parent two? Thanks. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From g.vickers at qut.edu.au Tue Feb 22 03:39:36 2005 From: g.vickers at qut.edu.au (Greg Vickers) Date: Tue, 22 Feb 2005 12:39:36 +1000 Subject: Router has many interfaces(and ip's) what will be the parent? In-Reply-To: <4199.202.90.128.27.1109066653.squirrel@mail.pregi.net> References: <4199.202.90.128.27.1109066653.squirrel@mail.pregi.net> Message-ID: <421A9B68.4060309@qut.edu.au> matato at pregi.net wrote: > Hi, > I'm currently monitoring servers of two different networks. > > 202.90.158.x and > 202.90.128.x > > Nagios works fine alerting me when the host goes down or up, but the > entries for hosts.cfg doesn't include a "parent"(I have commented it.) If you don't use the parent directive, consider the following situation: Say you are monitoring 100 hosts on the 128 subnet and the 128 Switch goes down. If you don't have the 128 Switch set as the parent of all the subnet 128 hosts you will receive 100 notifications instead of ONE. > Upon further readings of the documentation, I've came across the > monitoring remote hosts. I've found out that alert for host status can > either be DOWN or UNREACHEABLE if I put something in the "parent" section > right? > The network setup with those two subnets above looks like this: > > > ISP > | > | > Router > |||||| > / \ > / \ > 158 Switch 128 Switch > / \ > / \ > nagios,server1,2 server3,server4 > > As you can see, the router has many interfaces. Nagios belongs to 158 > network. I'm monitoring servers 1,2,3,4 both from different networks. I > have tracerouted from my nagios server to a 128 server(server4) and found > out that 202.90.158.1 is the ip of the interface in the router where > nagios is passing to get to the 128 servers. > Questions: > What will be the parent for a 128 server? The 128 Switch > Is it the 202.90.158.1 or is it the ip of the interface in the router > where 128 block passes to get through 158 block if I am to do a traceroute > this time from a 128 machine to a 158 machine? Any traffic from Nagios goes to the 158 Switch then to the 158 interface on the router then out the 128 interface on the router then to the 128 Switch then on to the host in question. So the traceroute passes through both of these interfaces. > And if I already know what the parent should be, do I have to create > additional hosts.cfg entry for this host? Will it have a parent two? Yes you do have to create more hosts: server4, parent '128 Switch' server3, parent '128 Switch' 128 Switch, parent 128routerinterface 128routerinterface, parent 158routerinterface 158routerinterface, parent '158 Switch' (depending on how much you want to monitor, you could make one router host and create several services on that host to check each interface) server1, parent '158 Switch' '158 Switch', parent nagiosserver With the above hosts and parent directives you will get a pretty network-like layout in your Nagios maps (rather than a heap of hosts all clustered around the nagios process...) and if a Switch or router interface goes down you will only receive one notification, and not for all the servers on the 158 subnet. GL, -- Greg Vickers Lab Monitor Project Manager Teaching and Learning Support Services Information Technology Services Queensland University of Technology email: g.vickers at qut.edu.au phone: (07) 3864 8276 mobile: 0416 001 674, SD #6 6147 CIROS code: 00213J ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From matato at pregi.net Tue Feb 22 12:26:04 2005 From: matato at pregi.net (matato at pregi.net) Date: Tue, 22 Feb 2005 11:26:04 -0000 (GMT) Subject: Router has many interfaces(and ip's) what will be the parent? In-Reply-To: <421A9B68.4060309@qut.edu.au> References: <4199.202.90.128.27.1109066653.squirrel@mail.pregi.net> <421A9B68.4060309@qut.edu.au> Message-ID: <1068.202.90.128.27.1109071564.squirrel@mail.pregi.net> > matato at pregi.net wrote: >> Hi, >> I'm currently monitoring servers of two different networks. >> >> 202.90.158.x and >> 202.90.128.x >> >> Nagios works fine alerting me when the host goes down or up, but the >> entries for hosts.cfg doesn't include a "parent"(I have commented it.) > > If you don't use the parent directive, consider the following > situation: Say you are monitoring 100 hosts on the 128 subnet and the > 128 Switch goes down. If you don't have the 128 Switch set as the > parent of all the subnet 128 hosts you will receive 100 notifications > instead of ONE. > >> Upon further readings of the documentation, I've came across the >> monitoring remote hosts. I've found out that alert for host status can >> either be DOWN or UNREACHEABLE if I put something in the "parent" >> section right? >> The network setup with those two subnets above looks like this: >> >> >> ISP >> | >> | >> Router >> |||||| >> / \ >> / \ >> 158 Switch 128 Switch >> / \ >> / \ >> nagios,server1,2 server3,server4 >> >> As you can see, the router has many interfaces. Nagios belongs to 158 >> network. I'm monitoring servers 1,2,3,4 both from different networks. >> I have tracerouted from my nagios server to a 128 server(server4) and >> found out that 202.90.158.1 is the ip of the interface in the router >> where nagios is passing to get to the 128 servers. >> Questions: >> What will be the parent for a 128 server? > > The 128 Switch I think I know what my problem is. I've asked our network administrator and found out that our switch isn't manageable(3com 24 port). It can't be assigned any ip. I have investigate the device further and there isn't any unusual port separated from those 24 ports it has, unlike the other switch(cisco) we also have. Worst, both of the 158 and 128 subnet uses the same switch model(24 port 3com) Do I have any other option for this smart host monitoring? > >> Is it the 202.90.158.1 or is it the ip of the interface in the router >> where 128 block passes to get through 158 block if I am to do a >> traceroute this time from a 128 machine to a 158 machine? > > Any traffic from Nagios goes to the 158 Switch then to the 158 > interface on the router then out the 128 interface on the router then > to the 128 Switch then on to the host in question. So the traceroute > passes through both of these interfaces. > >> And if I already know what the parent should be, do I have to create >> additional hosts.cfg entry for this host? Will it have a parent too? > > Yes you do have to create more hosts: > > server4, parent '128 Switch' > server3, parent '128 Switch' > 128 Switch, parent 128routerinterface > 128routerinterface, parent 158routerinterface > 158routerinterface, parent '158 Switch' > (depending on how much you want to monitor, you could make one router > host and create several services on that host to check each interface) > server1, parent '158 Switch' > '158 Switch', parent nagiosserver > > With the above hosts and parent directives you will get a pretty > network-like layout in your Nagios maps (rather than a heap of hosts > all clustered around the nagios process...) and if a Switch or router > interface goes down you will only receive one notification, and not for > all the servers on the 158 subnet. > > GL, > -- > Greg Vickers > Lab Monitor Project Manager > Teaching and Learning Support Services > Information Technology Services > Queensland University of Technology > > email: g.vickers at qut.edu.au > phone: (07) 3864 8276 > mobile: 0416 001 674, SD #6 6147 > > CIROS code: 00213J > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real > users. Discover which products truly live up to the hype. Start reading > now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk > being sent to /dev/null ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From g.vickers at qut.edu.au Tue Feb 22 04:50:22 2005 From: g.vickers at qut.edu.au (Greg Vickers) Date: Tue, 22 Feb 2005 13:50:22 +1000 Subject: Router has many interfaces(and ip's) what will be the parent? In-Reply-To: <1068.202.90.128.27.1109071564.squirrel@mail.pregi.net> References: <4199.202.90.128.27.1109066653.squirrel@mail.pregi.net> <421A9B68.4060309@qut.edu.au> <1068.202.90.128.27.1109071564.squirrel@mail.pregi.net> Message-ID: <421AABFE.40000@qut.edu.au> Toss the 3com out the window and replace it with something manageable! You could make a very strong case (depending on the size of your company and the amount of $$ available etc etc) that you should have a manageable switch providing the CORE of your network! If it is not able to have an address (of any protocol) assigned to it, you cannot monitor it. Check and see if there is any firmware updates available, or you may be able to purchase a management component for it from 3com. Even if you are stuck with this switch, you can still make the hosts that represent the interfaces, and assign a check_dummy service to those hosts. Be aware that this service and host will never be checked and you can't rely on it to provide you with an accurate representation of what is happening on your network. But if that switch dies then you will lose your connecting to the 'net so it will be pretty obvious :P Greg matato at pregi.net wrote: >>matato at pregi.net wrote: >> >>>Hi, >>> I'm currently monitoring servers of two different networks. >>> >>>202.90.158.x and >>>202.90.128.x >>> >>>Nagios works fine alerting me when the host goes down or up, but the >>>entries for hosts.cfg doesn't include a "parent"(I have commented it.) >> >>If you don't use the parent directive, consider the following >>situation: Say you are monitoring 100 hosts on the 128 subnet and the >>128 Switch goes down. If you don't have the 128 Switch set as the >>parent of all the subnet 128 hosts you will receive 100 notifications >>instead of ONE. >> >> >>>Upon further readings of the documentation, I've came across the >>>monitoring remote hosts. I've found out that alert for host status can >>>either be DOWN or UNREACHEABLE if I put something in the "parent" >>>section right? >>>The network setup with those two subnets above looks like this: >>> >>> >>> ISP >>> | >>> | >>> Router >>> |||||| >>> / \ >>> / \ >>> 158 Switch 128 Switch >>> / \ >>> / \ >>> nagios,server1,2 server3,server4 >>> >>>As you can see, the router has many interfaces. Nagios belongs to 158 >>>network. I'm monitoring servers 1,2,3,4 both from different networks. >>>I have tracerouted from my nagios server to a 128 server(server4) and >>>found out that 202.90.158.1 is the ip of the interface in the router >>>where nagios is passing to get to the 128 servers. >>>Questions: >>>What will be the parent for a 128 server? >> >>The 128 Switch > > I think I know what my problem is. I've asked our network administrator > and found out that our switch isn't manageable(3com 24 port). It can't be > assigned any ip. I have investigate the device further and there isn't any > unusual port separated from those 24 ports it has, unlike the other > switch(cisco) we also have. Worst, both of the 158 and 128 subnet uses the > same switch model(24 port 3com) > Do I have any other option for this smart host monitoring? > >>>Is it the 202.90.158.1 or is it the ip of the interface in the router >>>where 128 block passes to get through 158 block if I am to do a >>>traceroute this time from a 128 machine to a 158 machine? >> >>Any traffic from Nagios goes to the 158 Switch then to the 158 >>interface on the router then out the 128 interface on the router then >>to the 128 Switch then on to the host in question. So the traceroute >>passes through both of these interfaces. >> >> >>>And if I already know what the parent should be, do I have to create >>>additional hosts.cfg entry for this host? Will it have a parent too? >> >>Yes you do have to create more hosts: >> >>server4, parent '128 Switch' >>server3, parent '128 Switch' >>128 Switch, parent 128routerinterface >>128routerinterface, parent 158routerinterface >>158routerinterface, parent '158 Switch' >>(depending on how much you want to monitor, you could make one router >>host and create several services on that host to check each interface) >>server1, parent '158 Switch' >>'158 Switch', parent nagiosserver >> >>With the above hosts and parent directives you will get a pretty >>network-like layout in your Nagios maps (rather than a heap of hosts >>all clustered around the nagios process...) and if a Switch or router >>interface goes down you will only receive one notification, and not for >> all the servers on the 158 subnet. >> >>GL, >>-- >>Greg Vickers >>Lab Monitor Project Manager >>Teaching and Learning Support Services >>Information Technology Services >>Queensland University of Technology >> >>email: g.vickers at qut.edu.au >>phone: (07) 3864 8276 >>mobile: 0416 001 674, SD #6 6147 >> >>CIROS code: 00213J >> >> >>------------------------------------------------------- >>SF email is sponsored by - The IT Product Guide >>Read honest & candid reviews on hundreds of IT Products from real >>users. Discover which products truly live up to the hype. Start reading >>now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >>::: Please include Nagios version, plugin version (-v) and OS when >>reporting any issue. ::: Messages without supporting info will risk >>being sent to /dev/null > > > > > -- Greg Vickers Lab Monitor Project Manager Teaching and Learning Support Services Information Technology Services Queensland University of Technology email: g.vickers at qut.edu.au phone: (07) 3864 8276 mobile: 0416 001 674, SD #6 6147 CIROS code: 00213J ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jamie.roughan at mizuho-sc.com Tue Feb 22 10:06:51 2005 From: jamie.roughan at mizuho-sc.com (Jamie Roughan) Date: Tue, 22 Feb 2005 18:06:51 +0900 Subject: Nag-ios v2.0b2 Message-ID: <000001c518bd$d8cf5880$4618680a@ad.mizuhosc.com> I have some general install questions on the v2.0b2 related to the new template system. I edited out the following in the nagios.cfg ; after finding the following post http://www.meulie.net/forum_viewtopic.php?21.232.10 which related to the cannot find the contactgroups.cfg error that I was previously receiving... #cfg_file=/usr/local/nagios/etc/contactgroups.cfg #cfg_file=/usr/local/nagios/etc/contacts.cfg #cfg_file=/usr/local/nagios/etc/dependencies.cfg #cfg_file=/usr/local/nagios/etc/escalations.cfg #cfg_file=/usr/local/nagios/etc/hostgroups.cfg #cfg_file=/usr/local/nagios/etc/hosts.cfg #cfg_file=/usr/local/nagios/etc/services.cfg #cfg_file=/usr/local/nagios/etc/timeperiods.cfg 1) if I receive the following message after a nagios -v /usr/local/nagios/etc/nagios.cfg Total Warnings: 0 Total Errors: 5 Does this mean that my install is working properly and that I now need to "set up" the various sections contained therein: hosts, services,contacts 2) I set up apache according to the rtfm -setting up the web interface -authent & author in the cgi And tested apache but did not receive the nice login window that I was familiar with in the 1.2 version Any hints 3) Is the v2.0b2 suppose to be installed on top of 1.2 or can it be its own, as in a fresh install Any clues appreciated, else I will go the way of 1.2 & as always thankyou ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Feb 22 10:09:53 2005 From: ae at op5.se (Andreas Ericsson) Date: Tue, 22 Feb 2005 10:09:53 +0100 Subject: plugins parse error on compile In-Reply-To: <1109021018.421a515a344c9@mailserver.bascom.com> References: <1109021018.421a515a344c9@mailserver.bascom.com> Message-ID: <421AF6E1.9050008@op5.se> tmelendez at bascom.com wrote: > Hey Folks, > > I'm a long time nagios user, and have really enjoyed the product. I'm trying to > get it to run on Suse 7.2 (yes, old, I know) box. > > I'm getting a parse error: > ########### > make[2]: Entering directory `/tmp/nagios-2.0b2/nagios-plugins-1.4/plugins' > source='check_http.c' object='check_http.o' libtool=no \ > depfile='.deps/check_http.Po' tmpdepfile='.deps/check_http.TPo' \ > depmode=gcc /bin/sh ../depcomp \ > gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. > -I.. -I../lib -I../intl -I/usr/include/ldap -g -O2 -c check_http.c > check_http.c:64: parse error before `*' > check_http.c:64: warning: data definition has no type or storage class > check_http.c:65: parse error before `*' > check_http.c:65: warning: data definition has no type or storage class > check_http.c:66: parse error before `*' > check_http.c:66: warning: data definition has no type or storage class > check_http.c:68: parse error before `*' > check_http.c: In function `main': > check_http.c:173: warning: assignment makes pointer from integer without a cast > check_http.c: In function `check_http': > check_http.c:803: warning: assignment makes pointer from integer without a cast > check_http.c:888: `SSL_ERROR_SSL' undeclared (first use in this function) > check_http.c:888: (Each undeclared identifier is reported only once > check_http.c:888: for each function it appears in.) > check_http.c: In function `connect_SSL': > check_http.c:1252: `SSL_METHOD' undeclared (first use in this function) > check_http.c:1252: `meth' undeclared (first use in this function) > check_http.c:1263: warning: assignment makes pointer from integer without a cast > check_http.c:1280: warning: assignment makes pointer from integer without a cast > check_http.c: At top level: > check_http.c:1304: parse error before `*' > check_http.c: In function `check_certificate': > check_http.c:1306: `ASN1_STRING' undeclared (first use in this function) > check_http.c:1306: `tm' undeclared (first use in this function) > check_http.c:1307: parse error before `int' > check_http.c:1313: `certificate' undeclared (first use in this function) > check_http.c:1316: `V_ASN1_UTCTIME' undeclared (first use in this function) > check_http.c:1322: `stamp' undeclared (first use in this function) > check_http.c:1325: `offset' undeclared (first use in this function) > check_http.c:1352: `days_left' undeclared (first use in this function) > make[2]: *** [check_http.o] Error 1 > make[2]: Leaving directory `/tmp/nagios-2.0b2/nagios-plugins-1.4/plugins' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/tmp/nagios-2.0b2/nagios-plugins-1.4' > make: *** [all] Error 2 > ########## > > The actual line that it is failing on is: > > SSL_CTX *ctx; > > I'm assuming that I don't have that data type available to me. Is this part of > the openssl package? I'm running openssl-0.9.7e-1 > You also need to have the openssl header files installed. If you don't, this will happen. > My kernel is 2.4.27 > > gcc is 2.95.2 > > The main nagios package compiled and installed without issue. > Nagios doesn't use SSL. Only the plugins. > Any help anyone can give would be greatly appreciated. > Re-install openssl, or pass its exact location to ./configure > Thanks, > > Tom > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mime at forumsql.se Tue Feb 22 10:24:51 2005 From: mime at forumsql.se (Michael Medin) Date: Tue, 22 Feb 2005 10:24:51 +0100 Subject: NSClient 0.0.1 RC1 Message-ID: Hi, I have just released RC1 of NSClient++ it has basic functionality and supports most of the basic commands of NSClient. (only REQ_COUNTER, REQ_FILEAGE and REQ_INSTANCES are missing). It can be found at http://sourceforge.net/projects/nscplus/ Simple installation instructions: Unzip to a directory of you choice, run "NSClient++ /install" to install the service definition and then "NSCLient++ /start" to start the service. If you rather not run it as a service run "NSClient++ /test" to start the program interactively. A few important things: be sure to comment out either ConsoleLogger.dll or FileLogger.dll depending on if you run it interactively or as a service. Also note that this by default binds to port 1234 (as to not collide with NSClient). Check out readme.txt for details on how to install / configure and use the application. As for resources/leaks I ran this for about 24 hours on a few of our servers during yesterday polling about 5 times each second without much impact (used 2.2Mb memory and pretty much no CPU, according to ProcExp www.sysinternals.com) **IMPORTANT** Don't go changing all you NSClient's as of yet, this is a work in progress, settings/options/things might change and you will have to do it all over again, but please feel free to test this on all your installations :) A few things I am interested in (read feedback): 1, Does it work on ? 2, Does it work as expected? 3, Settings is not 100% compatible with NSClient, should I add an option "settings=read from nsclient" or similar to make it a *drop in* replacement? To me this feels a bit excessive as you need to "install" the exe file anyway so you might as well fix your own custom config and install that as well. 4, Installation procedure? (I don't really know at all how people generally installs these kinds of things so feedback here would be interesting) 5, How does: Counters work, can someone send me an example of this ? 6, How does REQ_FILEAGE work? (I can find no documentation in check_nt for this command.) 7, How does REQ_INSTANCES work? (I can find no documentation in check_nt for this command.) 8, Should I post to this list ? (should I move this to "my own" list) Regards, Michael Medin Direkt: 08-410 052 42 Mobil: 0733-35 55 42 E-mail: michael.medin at altcom.se Internet: WWW.ALTCOM.SE ALTCOM AB SEGELB?TSV?GEN 2, 11264 STOCKHOLM TELEFON: 08-7 300 300 FAX: 08-7 300 305 EMAIL: INFO at ALTCOM.SE INTERNET: WWW.ALTCOM.SE This message contains information that may be privileged or confidential and is the property of the Altcom AB. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify me immediately and delete all copies of this message. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ae at op5.se Tue Feb 22 10:32:54 2005 From: ae at op5.se (Andreas Ericsson) Date: Tue, 22 Feb 2005 10:32:54 +0100 Subject: NSClient 0.0.1 RC1 In-Reply-To: References: Message-ID: <421AFC46.40002@op5.se> Michael Medin wrote: > Hi, > > > > I have just released RC1 of NSClient++ it has basic functionality and > supports most of the basic commands of NSClient. (only REQ_COUNTER, > REQ_FILEAGE and REQ_INSTANCES are missing). > Nice work. I'll get to testing immediately. On which versions of MS os'es should this theoretically work? > It can be found at http://sourceforge.net/projects/nscplus/ > > Simple installation instructions: > > Unzip to a directory of you choice, run "NSClient++ /install" to > install the service definition and then "NSCLient++ /start" to start > the service. If you rather not run it as a service run "NSClient++ > /test" to start the program interactively. A few important things: be > sure to comment out either ConsoleLogger.dll or FileLogger.dll > depending on if you run it interactively or as a service. Also note > that this by default binds to port 1234 (as to not collide with > NSClient). Perhaps it would be prudent to get rid of the ancient MS Exchange problem and have it bind 12248 or some other address in the "free fire zone" (non-standard, non-common) by default instead? > Check out readme.txt for details on how to install / > configure and use the application. > > As for resources/leaks I ran this for about 24 hours on a few of our > servers during yesterday polling about 5 times each second without > much impact (used 2.2Mb memory and pretty much no CPU, according to > ProcExp www.sysinternals.com) > > > > **IMPORTANT** > > Don't go changing all you NSClient's as of yet, this is a work in > progress, settings/options/things might change and you will have to > do it all over again, but please feel free to test this on all your > installations :) > > > > A few things I am interested in (read feedback): > > 1, Does it work on ? > > 2, Does it work as expected? > > 3, Settings is not 100% compatible with NSClient, should I add an > option "settings=read from nsclient" or similar to make it a *drop > in* replacement? > > To me this feels a bit excessive as you need to "install" the exe > file anyway so you might as well fix your own custom config and > install that as well. > > 4, Installation procedure? (I don't really know at all how people > generally installs these kinds of things so feedback here would be > interesting) > > 5, How does: Counters work, can someone send me an example of this ? > > 6, How does REQ_FILEAGE work? (I can find no documentation in > check_nt for this command.) > > 7, How does REQ_INSTANCES work? (I can find no documentation in > check_nt for this command.) > > 8, Should I post to this list ? (should I move this to "my own" list) > > > > > > > Regards, > > > > Michael Medin > > > > Direkt: 08-410 052 42 > > Mobil: 0733-35 55 42 > > E-mail: michael.medin at altcom.se > > Internet: WWW.ALTCOM.SE > > > > ALTCOM AB SEGELB?TSV?GEN 2, 11264 STOCKHOLM TELEFON: 08-7 300 300 > FAX: 08-7 300 305 EMAIL: INFO at ALTCOM.SE > INTERNET: WWW.ALTCOM.SE > > > > > This message contains information that may be privileged or > confidential and is the property of the Altcom AB. It is intended > only for the person to whom it is addressed. If you are not the > intended recipient, you are not authorized to read, print, retain, > copy, disseminate, distribute, or use this message or any part > thereof. If you receive this message in error, please notify me > immediately and delete all copies of this message. > > > > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From andrew.barker at nottingham.ac.uk Tue Feb 22 10:42:19 2005 From: andrew.barker at nottingham.ac.uk (Andy Barker) Date: Tue, 22 Feb 2005 09:42:19 +0000 Subject: Nagios occasionally does not send notifications when a service goes down In-Reply-To: References: Message-ID: <1109065340.30409.5.camel@pccajrb.nottingham.ac.uk> My *guess* would be along the lines that your contacts (in contacts.cfg) are only getting notifications sent between certain times usually "workhours" (which is initially 9am-5pm weekdays). This is configured in the timeperiods.cfg . Either that or possibly the host in question is using the workhours time period in it's definition. Andy On Mon, 2005-02-21 at 11:53 -0600, Toby Kraft wrote: > > Hi all, > > I've been using Nagios 1.2 (and Netsaint before) with some clients for > a while. One installation (on Fedora Core 2) has an issue where a > service will go down, but Nagios does not send any notification. > > The service check is a simple tcp port check, the host_alive_check is > *default (ping), the host can be pinged. This host has one and only > one service. It's a pretty vanilla install and everything works fine > most of the time. > > This past weekend, a host went down. No notifications were sent. > Monday morning the staff came in, saw the host was down and restarted > it. After they restarted the target host, Nagios then sent out a > bunch of Host Down alerts followed by a Host Up alert. Notifications > for this server or host were NOT disabled (nagios.log archives show > they were enabled on 2/9/05). > > Okay now you're saying - it's your mail server. But Nagios did not > log any notifications at the time of the problem! > > The Host Alert History shows: > Sun Feb 20 00:00:00 CST 2005 to Mon Feb 21 00:00:00 CST 2005 > > [02-20-2005 18:08:43] SERVICE ALERT: ucisvr5.champlabs.com;Sandbox - > DB;CRITICAL;HARD;1;Connection refused or timed out > [02-20-2005 18:08:43] HOST ALERT: ucisvr5.champlabs.com;DOWN; > HARD;3;/bin/ping -n -U -c 1 ucisvr5.champlabs.com > [02-20-2005 18:08:40] HOST ALERT: ucisvr5.champlabs.com;DOWN; > SOFT;2;/bin/ping -n -U -c 1 ucisvr5.champlabs.com > [02-20-2005 18:08:37] HOST ALERT: ucisvr5.champlabs.com;DOWN; > SOFT;1;/bin/ping -n -U -c 1 ucisvr5.champlabs.com > > The Host Notification History shows: > Sun Feb 20 00:00:00 CST 2005 to Mon Feb 21 00:00:00 CST 2005 > No notifications have been recorded for this host in this archived log > file > > The Service Alert History shows: > Sun Feb 20 00:00:00 CST 2005 to Mon Feb 21 00:00:00 CST 2005 > [02-20-2005 18:08:43] SERVICE ALERT: ucisvr5.champlabs.com;Sandbox - > DB;CRITICAL;HARD;1;Connection refused or timed out > > The Service Notification History shows: > Sun Feb 20 00:00:00 CST 2005 to Mon Feb 21 00:00:00 CST 2005 > No notifications have been recorded for this service in this archived > log file > > It seems that this occurs after Nagios has been up and running for a > while. The system and Nagsio have been up for 11 days which doesn't > seem like a long time. > > Mainly just fishing for any ideas on what could cause this or how to > troubleshoot the problem. It would be nice if Nagios logged some info > when it processes an event and then decides NOT to send a > notification, like "Notification for event xxxx suppressed because > yyyyy" or some such. > > Thanks for listening. I'll check into any debug and/or logging > options. > > Toby > This message has been checked for viruses but the contents of an attachment may still contain software viruses, which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From brianmas at highstream.net Tue Feb 22 15:56:10 2005 From: brianmas at highstream.net (brianmas at highstream.net) Date: Tue, 22 Feb 2005 09:56:10 -0500 Subject: Monitoring clamav signature updates In-Reply-To: <1108916830.2609.14.camel@superbox> References: <1108916830.2609.14.camel@superbox> Message-ID: <1109084170.421b480a7cd1e@webmail.highstream.net> Quoting Tommy Abrahamsson : > Hi > > I'm trying to figure out the best way of monitoring if a ClamAV daemon > (www.clamav.net) is updated properly with the latest signatures. > > My idea was to have some kind of plugin comparing the local value - > "sigtool -i /path/to/signature" - with the official values - "host -t > txt current.cvd.clamav.net". > > It'll be cool if Nagios could do this. So do somebody out here already > have experiences with this, or maybe already written a plugin? > What would be the best way, using a NSCA or NRPE to achieve this kind of > monitoring? Here is a related tip: on nrpe monitored side: freshclam running with these options in freshclam.conf file: UpdateLogFile /tmp/freshclam.log OnUpdateExecute chmod o+r /tmp/freshclam.log this might be needed as well not sure: LogVerbose nrpe with this in nrpe.cfg file: command[check_freshclam]=/usr/local/nagios/libexec/check_log -F /tmp/freshclam.log -O /home/nagios/freshclam.log -q OUTDATED (above line wrapped) you can figure out the rest. This will inform you if they have released a new version of clamav basically, I always find out about new clamav versions from my logs anyway it seems. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From holiveira at interhost.com Tue Feb 22 17:32:45 2005 From: holiveira at interhost.com (Henrique Oliveira) Date: Tue, 22 Feb 2005 16:32:45 +0000 Subject: Check disk space NS_Client Message-ID: <421B5EAD.6060000@interhost.com> Hello, I'm running Nagios 1.2 with Nagmin (DB support) with no problems. We have a webserver running multiple sites and we need to know is a given site (folder) has reached a certain amount of disk usage. Is it possible to monitor directories in a hard-drive, opposed to only checking the whole hard-drive? Regards, Henrique Oliveira -------------- next part -------------- An HTML attachment was scrubbed... URL: From philc at foundation-it.com Tue Feb 22 18:07:57 2005 From: philc at foundation-it.com (Phil Costelloe) Date: Tue, 22 Feb 2005 17:07:57 -0000 Subject: Check disk space NS_Client Message-ID: <4E71CFD68DCB4E49B04AD93E84827EE92A9009@netfinity-1.foundation-it.local> Henrique Oliveira wrote: > I'm running Nagios 1.2 with Nagmin (DB support) with no problems. > > We have a webserver running multiple sites and we need to know is a > given site (folder) has reached a certain amount of disk usage. > > Is it possible to monitor directories in a hard-drive, opposed to > only checking the whole hard-drive? NSClient uses the standard Windows performance counters and I'm pretty certain those don't give you information at the directory level, just at the physical and logical disk level. One way to do it would be with a custom nrpe_nt script. Phil ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Feb 22 18:08:49 2005 From: ae at op5.se (Andreas Ericsson) Date: Tue, 22 Feb 2005 18:08:49 +0100 Subject: Check disk space NS_Client In-Reply-To: <421B5EAD.6060000@interhost.com> References: <421B5EAD.6060000@interhost.com> Message-ID: <421B6721.1070405@op5.se> Henrique Oliveira wrote: > Hello, > > I'm running Nagios 1.2 with Nagmin (DB support) with no problems. > > We have a webserver running multiple sites and we need to know is a > given site > (folder) has reached a certain amount of disk usage. > > Is it possible to monitor directories in a hard-drive, opposed to only > checking > the whole hard-drive? > Yes. Write a script/program that recurses into said folder and adds up the filesizes as it goes along. Shouldn't be too difficult. > Regards, > Henrique Oliveira > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cortez at tiscali.it Tue Feb 22 18:21:02 2005 From: cortez at tiscali.it (Luca Corti) Date: Tue, 22 Feb 2005 18:21:02 +0100 Subject: Authenticated contacts and statusmap Message-ID: <1109092863.29639.10.camel@luca> Hello! I've just configured an auth contact in my nagios setup. It works fine but in the statusmap the background looks heavily partitioned. And my statusmap is still a bit compressed. Is this a bug? thanks Luca ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From wob at swobspace.de Tue Feb 22 19:49:11 2005 From: wob at swobspace.de (Wolfgang Barth) Date: Tue, 22 Feb 2005 19:49:11 +0100 Subject: Updated to latest Nagios, now init.d scripts don't work...?? In-Reply-To: <20050221223727.62398.qmail@web41129.mail.yahoo.com> References: <20050221223727.62398.qmail@web41129.mail.yahoo.com> Message-ID: <20050222184911.GB7429@swobspace.swobspace.de> On Mon, Feb 21, 2005 at 02:37:27PM -0800, funraps too wrote: > Hello everyone, now after the update I can't use the init script anymore, any ideas? > > service nagios status > ERROR: List of process IDs must follow -p. > ********* simple selection ********* ********* selection by list ********* > -A all processes -C by command name > -N negate selection -G by real group ID (supports names) Same problem with Nagios 2.0b2 on debian/woody. On debian/sarge it works as espected. I downgraded the init script on debian/woody to an cvs-version before 2.0b1. wob ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From holiveira at interhost.com Tue Feb 22 19:57:41 2005 From: holiveira at interhost.com (Henrique Oliveira) Date: Tue, 22 Feb 2005 18:57:41 +0000 Subject: Check disk space NS_Client In-Reply-To: <421B6721.1070405@op5.se> References: <421B5EAD.6060000@interhost.com> <421B6721.1070405@op5.se> Message-ID: <421B80A5.9050008@interhost.com> Andreas Ericsson wrote: > Henrique Oliveira wrote: > >> Hello, >> >> I'm running Nagios 1.2 with Nagmin (DB support) with no problems. >> >> We have a webserver running multiple sites and we need to know is a >> given site >> (folder) has reached a certain amount of disk usage. >> >> Is it possible to monitor directories in a hard-drive, opposed to >> only checking >> the whole hard-drive? >> > > Yes. Write a script/program that recurses into said folder and adds up > the filesizes as it goes along. Shouldn't be too difficult. Has anyone else tried this. If so, please mail me. Writing scripts/programs isn't my strongest quality :) Thanx in advance Henrique ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Feb 22 20:08:55 2005 From: ae at op5.se (Andreas Ericsson) Date: Tue, 22 Feb 2005 20:08:55 +0100 Subject: Check disk space NS_Client In-Reply-To: <4E71CFD68DCB4E49B04AD93E84827EE92A9009@netfinity-1.foundation-it.local> References: <4E71CFD68DCB4E49B04AD93E84827EE92A9009@netfinity-1.foundation-it.local> Message-ID: <421B8347.8000207@op5.se> Phil Costelloe wrote: > Henrique Oliveira wrote: > > >>I'm running Nagios 1.2 with Nagmin (DB support) with no problems. >> >>We have a webserver running multiple sites and we need to know is a >>given site (folder) has reached a certain amount of disk usage. >> >>Is it possible to monitor directories in a hard-drive, opposed to >>only checking the whole hard-drive? > > > NSClient uses the standard Windows performance counters and I'm pretty > certain those don't give you information at the directory level, just > at the physical and logical disk level. One way to do it would be with > a custom nrpe_nt script. > He. Funny. I was assuming this was on Unix, but come to think of it, the OS was never mentioned. I assume we work in different networks. ;) -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From holiveira at interhost.com Tue Feb 22 20:12:42 2005 From: holiveira at interhost.com (Henrique Oliveira) Date: Tue, 22 Feb 2005 19:12:42 +0000 Subject: Check disk space NS_Client In-Reply-To: <421B8347.8000207@op5.se> References: <4E71CFD68DCB4E49B04AD93E84827EE92A9009@netfinity-1.foundation-it.local> <421B8347.8000207@op5.se> Message-ID: <421B842A.5060305@interhost.com> Andreas Ericsson wrote: > Phil Costelloe wrote: > >> Henrique Oliveira wrote: >> >> >>> I'm running Nagios 1.2 with Nagmin (DB support) with no problems. >>> >>> We have a webserver running multiple sites and we need to know is a >>> given site (folder) has reached a certain amount of disk usage. >>> >>> Is it possible to monitor directories in a hard-drive, opposed to >>> only checking the whole hard-drive? >> >> >> >> NSClient uses the standard Windows performance counters and I'm pretty >> certain those don't give you information at the directory level, just >> at the physical and logical disk level. One way to do it would be with >> a custom nrpe_nt script. >> > > He. Funny. I was assuming this was on Unix, but come to think of it, > the OS was never mentioned. I assume we work in different networks. ;) Well, the disk space I'd like to monitor is on a W2K and running NS_Client. Of course the monitoring server is a Linux... -------------- next part -------------- An HTML attachment was scrubbed... URL: From tgwilt at suite224.net Tue Feb 22 20:38:20 2005 From: tgwilt at suite224.net (Tom Gwilt) Date: Tue, 22 Feb 2005 14:38:20 -0500 (EST) Subject: Warning: Monitoring process may not be running! (take 2) In-Reply-To: <421649AD.4030400@op5.se> References: <20050218014828.A88BFBA05@www.prhobbies.com> <421649AD.4030400@op5.se> Message-ID: On Fri, 18 Feb 2005, Andreas Ericsson wrote: > Tom Gwilt wrote: >> Hi all, >> >> I recently installed nagios 1.2 on a FreeBSD 5.3 box from the ports, along >> with the plugins, slifeed plugins, snmp plugins, and nagiostat. >> >> Everything seems to be well, execpt for the error referenced in the >> subject. >> Just thought I'd pass this on: Found the answer while researching a different issue - it was in the FAQ in the Error message section (Checking the status of Nagios with MySQL or PostgreSQL DB support). Modifying the nagios_check command as instructed fixed the problem. It's smooth sailing! Tom ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From massctrl at skynet.be Tue Feb 22 21:41:00 2005 From: massctrl at skynet.be (massctrl) Date: Tue, 22 Feb 2005 21:41:00 +0100 Subject: [Fwd: SNMP status : alarm if value is lower than treshold for 5 minutes.] Message-ID: <421B98DC.1020603@skynet.be> Hello all, I'm completely new to Nagios, and I haven't installed it yet so bear with me. I want to be sure it's 100% suited for my needs before I install and go any further. I have this temperature device which I can poll the Temperature using snmp. I have found all the info concerning this, so this is not the issue. I'm wondering if it's possible to configure nagios to send a message (mail, sms, whatever) if the temperature is > 21? for 5 minutes and longer. It's the possibility to put the timeframe for this condition that interests me. In other words if the temperature peaks above >21? for 2 minutes or so drops back to 15? I don't want to receive a warning. Only if the temperature is >21? for 5 minutes and longer. Is this possible? Thanks in advance! ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From langseth at aero.und.edu Tue Feb 22 22:15:44 2005 From: langseth at aero.und.edu (Ryan Langseth) Date: Tue, 22 Feb 2005 15:15:44 -0600 Subject: Check disk space NS_Client In-Reply-To: <421B842A.5060305@interhost.com> References: <4E71CFD68DCB4E49B04AD93E84827EE92A9009@netfinity-1.foundation-i t.local> <421B8347.8000207@op5.se> <421B842A.5060305@interhost.com> Message-ID: <421BA100.60106@aero.und.edu> If you do use nrpe_nt, and have some decent scripting language available on the server, the size of a directory can be found using "dir /S c:\path\to\directory\", and some parsing since it will also print the size of each file within the directory, recursively. But the end result will be useful: Total Files Listed: 1188 File(s) 2,844,230,018 bytes 500 Dir(s) 2,968,420,352 bytes free I may be possible to create a bat file to do it also, but I have no clue how. Henrique Oliveira wrote: > Andreas Ericsson wrote: > >> Phil Costelloe wrote: >> >>> Henrique Oliveira wrote: >>> >>> >>>> I'm running Nagios 1.2 with Nagmin (DB support) with no problems. >>>> >>>> We have a webserver running multiple sites and we need to know is a >>>> given site (folder) has reached a certain amount of disk usage. >>>> >>>> Is it possible to monitor directories in a hard-drive, opposed to >>>> only checking the whole hard-drive? >>> >>> >>> >>> NSClient uses the standard Windows performance counters and I'm pretty >>> certain those don't give you information at the directory level, just >>> at the physical and logical disk level. One way to do it would be with >>> a custom nrpe_nt script. >>> >> >> He. Funny. I was assuming this was on Unix, but come to think of it, >> the OS was never mentioned. I assume we work in different networks. ;) > > > Well, the disk space I'd like to monitor is on a W2K and running > NS_Client. > > Of course the monitoring server is a Linux... -- Ryan Langseth UND Aerospace Systems Team langseth at aero.und.edu ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From psbourgeau at mpccorp.com Tue Feb 22 22:38:35 2005 From: psbourgeau at mpccorp.com (Paul Bourgeau) Date: Tue, 22 Feb 2005 14:38:35 -0700 Subject: NS_Client and event logs Message-ID: <2638AB7E1672B842901B0B49421B87DF0FCD30@mpc00email3.micronpc.com> I am running RH8, Nagios 1.2 and NSClient 2.01. I am trying to get event log (system, app, etc) information with check_nt and I am coming up short. Is there something else I can use to get to the logs? Thank You, Paul Bourgeau Ph: 262-523-3300 x60279 Fx: 208-898-2371 psbourgeau at mpccorp.com -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Ryan Langseth Sent: Tuesday, February 22, 2005 3:16 PM To: Henrique Oliveira Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Check disk space NS_Client If you do use nrpe_nt, and have some decent scripting language available on the server, the size of a directory can be found using "dir /S c:\path\to\directory\", and some parsing since it will also print the size of each file within the directory, recursively. But the end result will be useful: Total Files Listed: 1188 File(s) 2,844,230,018 bytes 500 Dir(s) 2,968,420,352 bytes free I may be possible to create a bat file to do it also, but I have no clue how. Henrique Oliveira wrote: > Andreas Ericsson wrote: > >> Phil Costelloe wrote: >> >>> Henrique Oliveira wrote: >>> >>> >>>> I'm running Nagios 1.2 with Nagmin (DB support) with no problems. >>>> >>>> We have a webserver running multiple sites and we need to know is a >>>> given site (folder) has reached a certain amount of disk usage. >>>> >>>> Is it possible to monitor directories in a hard-drive, opposed to >>>> only checking the whole hard-drive? >>> >>> >>> >>> NSClient uses the standard Windows performance counters and I'm pretty >>> certain those don't give you information at the directory level, just >>> at the physical and logical disk level. One way to do it would be with >>> a custom nrpe_nt script. >>> >> >> He. Funny. I was assuming this was on Unix, but come to think of it, >> the OS was never mentioned. I assume we work in different networks. ;) > > > Well, the disk space I'd like to monitor is on a W2K and running > NS_Client. > > Of course the monitoring server is a Linux... -- Ryan Langseth UND Aerospace Systems Team langseth at aero.und.edu ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null Disclaimer: 22/2/2005 MPC Computers is providing the following information in compliance with federal regulations: MPC Computers, LLC 906 E. Karcher Road Nampa, Idaho 83687 1-888-224-4247 http://www.mpccorp.com To discontinue receiving e-mail communications from MPC in the future, please go to: http://www.mpccorp.com/email/manage.html and follow the instructions. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From naman.latif at inamed.com Tue Feb 22 22:51:31 2005 From: naman.latif at inamed.com (Naman Latif) Date: Tue, 22 Feb 2005 13:51:31 -0800 Subject: Event Handler Problem in Nagios 2.0b2 Message-ID: <7BEA54411F802C4CB84E72EB6AD509F620A33F@sigma.inamed.com> Hi, I just up-graded our Nagios Monitoring system from 1.2 to 2.0b2. After the Upgrade the Event-Handler has stopped working. I can see the entry in the Log File, which says that the Event Handler script was executed. But in reality the script is never executed. I created a simple Perl Test Scrip to be executed by the event-handler, which will write some text in a file. The script works from the command line. As far as I can tell, Nagios never even tries to execute the script though the log files says the opposite. Has anyone seen a similar problem ? Has anything changed in 2.0 that requires to define some special entry for Event handlers ? Thanks \\ Naman ? ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mac at biviumcorp.com Tue Feb 22 23:35:49 2005 From: mac at biviumcorp.com (Edward MacGillivray) Date: Tue, 22 Feb 2005 16:35:49 -0600 Subject: check_hpjd plugin in Plugins 1.4 In-Reply-To: <200502181259.20162.mac@biviumcorp.com> References: <200502171750.32459.mac@biviumcorp.com> <421635B6.5020901@op5.se> <200502181259.20162.mac@biviumcorp.com> Message-ID: <200502221635.49659.mac@biviumcorp.com> Sorry to be replying to my own message, but I hadn't heard back after reporting the results of the snmpget -Ovq command. Is there anything else that I can do to help? Would it be best to upgrade to net-snmp? I noticed that on my workstation I have net-snmp-5.1.2-3 and it seems to behave the same way as the ucd-snmp (-Ovq works when the OIDs are specified) thanks mac On Friday 18 February 2005 12:59 pm, Edward MacGillivray wrote: > On Friday 18 February 2005 12:36 pm, Andreas Ericsson wrote: > > This is also busted. The logic expects the MIB-description of the OID > > and an equal sign, which is impossible to get with ucd-snmp and net-snmp > > < 5.0.2. It's just poorly coded, that's all. What happens if you run > > snmpget -Ovq on the target? If that works, then at least I know that > > much. The "errors" being undefined is an easy fix, so long as I know the > > rest of the code is sound. > > Hi Andreas and thanks, > > When I do: > > # snmpget -Ovq -m : -v 1 -c public > > or > > # snmpget -Ovq > > I get the usage information for snmpget, so it doesn't even do any snmp > communication, right? So I then copied the source file and made a shell > script from the stuff it had and ran the full command with the OIDs and all > like: > > # snmpget -Ovq -m : -v 1 -c public > > Which did actually work. I got twelve lines of output (there were 12 OIDs > in the command) with all but the last one being '0', and the last one was > two double quotes. So I think the -Ovq will be fine, so long as the OIDs > are there. > > again, thanks > mac > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > ::: reporting any issue. Messages without supporting info will risk being > ::: sent to /dev/null -- Edward MacGillivray 504-200-1600x322 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From brianmas at highstream.net Tue Feb 22 23:49:00 2005 From: brianmas at highstream.net (brianmas at highstream.net) Date: Tue, 22 Feb 2005 17:49:00 -0500 Subject: anyone monitoring with aaccli (adaptec raid cli bin)? Message-ID: <1109112540.421bb6dc96d95@webmail.highstream.net> Anyone have a plugin written for this already before I embark on writing one? ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From langseth at aero.und.edu Tue Feb 22 23:56:09 2005 From: langseth at aero.und.edu (Ryan Langseth) Date: Tue, 22 Feb 2005 16:56:09 -0600 Subject: anyone monitoring with aaccli (adaptec raid cli bin)? In-Reply-To: <1109112540.421bb6dc96d95@webmail.highstream.net> References: <1109112540.421bb6dc96d95@webmail.highstream.net> Message-ID: <421BB889.2070709@aero.und.edu> Do you mean afacli? If so, this should work for you. http://www.nagiosexchange.org/DELL_Server.61.0.html?&tx_netnagext_pi1[p_view]=11 brianmas at highstream.net wrote: >Anyone have a plugin written for this already before I embark on writing one? > > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cortez at tiscali.it Wed Feb 23 00:24:31 2005 From: cortez at tiscali.it (Luca Corti) Date: Wed, 23 Feb 2005 00:24:31 +0100 Subject: MSN notifications In-Reply-To: <49977F7CEA035C46A2D47108CE0F032FF74C36@ANGELIA.aegon.com> References: <49977F7CEA035C46A2D47108CE0F032FF74C36@ANGELIA.aegon.com> Message-ID: <1109114671.8850.7.camel@luca> On Thu, 2005-02-17 at 16:35 +0100, Schmitz, Carsten wrote: > > It can use pipes > > Clarification: Not pipes exactly, but a plugin architecture that can take stdout from external programs for IMs, and can also take IMs as stdin for external programs. Thanks a lot, I owe you a solution. -- Luca Corti PGP Key ID 1F38C091 BOFH excuse of the moment: It's stuck in the Web. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From mitch.lien at medtronic.com Tue Feb 22 17:46:43 2005 From: mitch.lien at medtronic.com (Mitch Lien) Date: Tue, 22 Feb 2005 16:46:43 +0000 (UTC) Subject: =?utf-8?b?Y2hlY2tfZGlzaw==?= and filesystem issue. Message-ID: Hi. I am having a problem with the check_disk plugin on an HP/UX 11.11 server. A portion of the "df -Pk" command output is shown below. . . /dev/vgexeBKBCV/lvPRD 1938469 282786 1655683 15% /backupBCV/usr/sap/PRD /dev/vgexeBKBCV/lvoraclePRD 1486472 742937 743535 50% /backupBCV/oracle/PRD /dev/vg00/lvol7 2083352 329976 1753376 16% /home /dev/vg00/lvol4 4169904 1065488 3104416 26% /opt /dev/vg00/lvol5 523656 436496 87160 84% /tmp /dev/vg_veritas/lvveritas 143654360 66712376 76941984 47% /usr/openv /dev/vg00/lvol6 4171528 1272152 2899376 31% /usr /dev/vg00/lvol8 6107712 1442320 4665392 24% /var /dev/vg00/lvol1 269032 91968 177064 35% /stand /dev/vg00/lvol3 212216 109480 102736 52% / ======================== When I run the check_disk plugin against any file system that occupies a single line output (i.e. /, /var, /usr, etc.), the output is fine (example shown below). $ ./check_disk -w 80 -w 90 -p /usr DISK OK - [2899376 kB (69%) free on /dev/vg00/lvol6] However, when I run the check_disk command against any file system that occupies has a two (2) line output (i.e. /usr/openv, /backupBCV/usr/sap/PRD, etc.), I am getting the following output (shown below). $ ./check_disk -c 80 -w 90 -p /usr/openv Unable to read output: /usr/bin/df -Pk /usr/openv /dev/vg_veritas/lvveritas I think the issue revolves around the two-line output, but am not sure. I need to know if anyone has encountered this before and if there may be a possible work-around. Thanks for everyones help. Mitch ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Tong at ingenio.com Wed Feb 23 00:29:45 2005 From: Tong at ingenio.com (Tong Young) Date: Tue, 22 Feb 2005 15:29:45 -0800 Subject: Problem compiling with embedded perl option Message-ID: <4C52BE6F38D0174897566E644CE20F6102A88D70@keenx02.keencorp.keen.com> My apologies for sending my request multiple times, it won't happen again. You were correct. I did need to install the devlopment package for perl, which was the libperl-dev package as you indicated. Thank you for your assistance! ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Feb 23 00:42:55 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 23 Feb 2005 00:42:55 +0100 Subject: [Fwd: SNMP status : alarm if value is lower than treshold for 5 minutes.] In-Reply-To: <421B98DC.1020603@skynet.be> References: <421B98DC.1020603@skynet.be> Message-ID: <421BC37F.4080309@op5.se> massctrl wrote: > Hello all, > > I'm completely new to Nagios, and I haven't installed it yet so bear > with me. I want to be sure it's 100% suited for my needs before I > install and go any further. > I have this temperature device which I can poll the Temperature using > snmp. I have found all the info concerning this, so this is not the > issue. > > I'm wondering if it's possible to configure nagios to send a message > (mail, sms, whatever) if the temperature is > 21? for 5 minutes and > longer. > It's the possibility to put the timeframe for this condition that > interests me. In other words if the temperature peaks above >21? for 2 > minutes or so drops back to 15? I don't want to > receive a warning. > Only if the temperature is >21? for 5 minutes and longer. > > Is this possible? > This is what nagios does. It's basically a cron with dynamic rules for when to run the configured commands. > > Thanks in advance! > > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk > being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Feb 23 00:45:36 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 23 Feb 2005 00:45:36 +0100 Subject: check_disk and filesystem issue. In-Reply-To: References: Message-ID: <421BC420.4000405@op5.se> Mitch Lien wrote: > Hi. > > I am having a problem with the check_disk plugin on an HP/UX 11.11 server. > > A portion of the "df -Pk" command output is shown below. > . > . > /dev/vgexeBKBCV/lvPRD > 1938469 282786 1655683 15% /backupBCV/usr/sap/PRD > /dev/vgexeBKBCV/lvoraclePRD > 1486472 742937 743535 50% /backupBCV/oracle/PRD > /dev/vg00/lvol7 2083352 329976 1753376 16% /home > /dev/vg00/lvol4 4169904 1065488 3104416 26% /opt > /dev/vg00/lvol5 523656 436496 87160 84% /tmp > /dev/vg_veritas/lvveritas > 143654360 66712376 76941984 47% /usr/openv > /dev/vg00/lvol6 4171528 1272152 2899376 31% /usr > /dev/vg00/lvol8 6107712 1442320 4665392 24% /var > /dev/vg00/lvol1 269032 91968 177064 35% /stand > /dev/vg00/lvol3 212216 109480 102736 52% / > ======================== > > When I run the check_disk plugin against any file system that occupies a > single line output (i.e. /, /var, /usr, etc.), the output is fine (example > shown below). > > $ ./check_disk -w 80 -w 90 -p /usr > DISK OK - [2899376 kB (69%) free on /dev/vg00/lvol6] > > > However, when I run the check_disk command against any file system that > occupies has a two (2) line output (i.e. /usr/openv, /backupBCV/usr/sap/PRD, > etc.), I am getting the following output (shown below). > > $ ./check_disk -c 80 -w 90 -p /usr/openv > Unable to read output: > /usr/bin/df -Pk /usr/openv > /dev/vg_veritas/lvveritas > > I think the issue revolves around the two-line output, but am not sure. I need > to know if anyone has encountered this before and if there may be a possible > work-around. > It does. Many have. Noone has a workaround (yet). > Thanks for everyones help. > > Mitch > > > > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From strombrg at dcs.nac.uci.edu Wed Feb 23 00:47:21 2005 From: strombrg at dcs.nac.uci.edu (Dan Stromberg) Date: Tue, 22 Feb 2005 15:47:21 -0800 Subject: check_disk and filesystem issue. In-Reply-To: <421BC420.4000405@op5.se> References: <421BC420.4000405@op5.se> Message-ID: <1109116041.5897.403.camel@seki.nac.uci.edu> On Wed, 2005-02-23 at 00:45 +0100, Andreas Ericsson wrote: > Mitch Lien wrote: > > Hi. > > > > I am having a problem with the check_disk plugin on an HP/UX 11.11 server. > > > > A portion of the "df -Pk" command output is shown below. > > . > > . > > /dev/vgexeBKBCV/lvPRD > > 1938469 282786 1655683 15% /backupBCV/usr/sap/PRD > > /dev/vgexeBKBCV/lvoraclePRD > > 1486472 742937 743535 50% /backupBCV/oracle/PRD > > /dev/vg00/lvol7 2083352 329976 1753376 16% /home > > /dev/vg00/lvol4 4169904 1065488 3104416 26% /opt > > /dev/vg00/lvol5 523656 436496 87160 84% /tmp > > /dev/vg_veritas/lvveritas > > 143654360 66712376 76941984 47% /usr/openv > > /dev/vg00/lvol6 4171528 1272152 2899376 31% /usr > > /dev/vg00/lvol8 6107712 1442320 4665392 24% /var > > /dev/vg00/lvol1 269032 91968 177064 35% /stand > > /dev/vg00/lvol3 212216 109480 102736 52% / > > ======================== > > > > When I run the check_disk plugin against any file system that occupies a > > single line output (i.e. /, /var, /usr, etc.), the output is fine (example > > shown below). > > > > $ ./check_disk -w 80 -w 90 -p /usr > > DISK OK - [2899376 kB (69%) free on /dev/vg00/lvol6] > > > > > > However, when I run the check_disk command against any file system that > > occupies has a two (2) line output (i.e. /usr/openv, /backupBCV/usr/sap/PRD, > > etc.), I am getting the following output (shown below). > > > > $ ./check_disk -c 80 -w 90 -p /usr/openv > > Unable to read output: > > /usr/bin/df -Pk /usr/openv > > /dev/vg_veritas/lvveritas > > > > I think the issue revolves around the two-line output, but am not sure. I need > > to know if anyone has encountered this before and if there may be a possible > > work-around. > > > > It does. Many have. Noone has a workaround (yet). Has anyone tried getting around this sort of thing by using GNU df? -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From ae at op5.se Wed Feb 23 00:49:10 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 23 Feb 2005 00:49:10 +0100 Subject: check_hpjd plugin in Plugins 1.4 In-Reply-To: <200502221635.49659.mac@biviumcorp.com> References: <200502171750.32459.mac@biviumcorp.com> <421635B6.5020901@op5.se> <200502181259.20162.mac@biviumcorp.com> <200502221635.49659.mac@biviumcorp.com> Message-ID: <421BC4F6.4020203@op5.se> Edward MacGillivray wrote: > Sorry to be replying to my own message, but I hadn't heard back after > reporting the results of the snmpget -Ovq command. It wasn't very much to reply to. > Is there anything else that I can do to help? Help who? Yourself or the project? > Would it be best to upgrade to net-snmp? I noticed > that on my workstation I have net-snmp-5.1.2-3 and it seems to behave the > same way as the ucd-snmp (-Ovq works when the OIDs are specified) > If you upgrade to net-snmp 5.1.2 (earliest known working for me) you might be able to use the original plugin (without the snmpget changes). -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Feb 23 00:55:52 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 23 Feb 2005 00:55:52 +0100 Subject: check_disk and filesystem issue. In-Reply-To: <1109116041.5897.403.camel@seki.nac.uci.edu> References: <421BC420.4000405@op5.se> <1109116041.5897.403.camel@seki.nac.uci.edu> Message-ID: <421BC688.1010503@op5.se> Dan Stromberg wrote: > On Wed, 2005-02-23 at 00:45 +0100, Andreas Ericsson wrote: > >>Mitch Lien wrote: >> >>>Hi. >>> >>>I am having a problem with the check_disk plugin on an HP/UX 11.11 server. >>> >>>A portion of the "df -Pk" command output is shown below. >>>. >>>. >>>/dev/vgexeBKBCV/lvPRD >>> 1938469 282786 1655683 15% /backupBCV/usr/sap/PRD >>>/dev/vgexeBKBCV/lvoraclePRD >>> 1486472 742937 743535 50% /backupBCV/oracle/PRD >>>/dev/vg00/lvol7 2083352 329976 1753376 16% /home >>>/dev/vg00/lvol4 4169904 1065488 3104416 26% /opt >>>/dev/vg00/lvol5 523656 436496 87160 84% /tmp >>>/dev/vg_veritas/lvveritas >>> 143654360 66712376 76941984 47% /usr/openv >>>/dev/vg00/lvol6 4171528 1272152 2899376 31% /usr >>>/dev/vg00/lvol8 6107712 1442320 4665392 24% /var >>>/dev/vg00/lvol1 269032 91968 177064 35% /stand >>>/dev/vg00/lvol3 212216 109480 102736 52% / >>>======================== >>> >>>When I run the check_disk plugin against any file system that occupies a >>>single line output (i.e. /, /var, /usr, etc.), the output is fine (example >>>shown below). >>> >>>$ ./check_disk -w 80 -w 90 -p /usr >>>DISK OK - [2899376 kB (69%) free on /dev/vg00/lvol6] >>> >>> >>>However, when I run the check_disk command against any file system that >>>occupies has a two (2) line output (i.e. /usr/openv, /backupBCV/usr/sap/PRD, >>>etc.), I am getting the following output (shown below). >>> >>>$ ./check_disk -c 80 -w 90 -p /usr/openv >>>Unable to read output: >>>/usr/bin/df -Pk /usr/openv >>>/dev/vg_veritas/lvveritas >>> >>>I think the issue revolves around the two-line output, but am not sure. I need >>>to know if anyone has encountered this before and if there may be a possible >>>work-around. >>> >> >>It does. Many have. Noone has a workaround (yet). > > > Has anyone tried getting around this sort of thing by using GNU df? > Not that I know of, although it should be fairly simple to use the statfs(2) equivalence on HP-UX. I'm sure there must be some syscall doing roughly the same work. GNU df would be a good starting point here. Perhaps that was what you were referring to? -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From strombrg at dcs.nac.uci.edu Wed Feb 23 00:58:57 2005 From: strombrg at dcs.nac.uci.edu (Dan Stromberg) Date: Tue, 22 Feb 2005 15:58:57 -0800 Subject: check_disk and filesystem issue. In-Reply-To: <421BC688.1010503@op5.se> References: <421BC420.4000405@op5.se> <1109116041.5897.403.camel@seki.nac.uci.edu> <421BC688.1010503@op5.se> Message-ID: <1109116737.5897.413.camel@seki.nac.uci.edu> On Wed, 2005-02-23 at 00:55 +0100, Andreas Ericsson wrote: > > > > Has anyone tried getting around this sort of thing by using GNU df? > > > > Not that I know of, although it should be fairly simple to use the > statfs(2) equivalence on HP-UX. I'm sure there must be some syscall > doing roughly the same work. GNU df would be a good starting point here. > Perhaps that was what you were referring to? Well, I'd be rather surprised if GNU df wouldn't build on HPUX out of the box, but if it doesn't, then sure, GNU df would be a good starting point. We've used GNU df on Solaris, IRIX, Tru64 for years... -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From ae at op5.se Wed Feb 23 01:25:50 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 23 Feb 2005 01:25:50 +0100 Subject: check_disk and filesystem issue. In-Reply-To: <1109116041.5897.403.camel@seki.nac.uci.edu> References: <421BC420.4000405@op5.se> <1109116041.5897.403.camel@seki.nac.uci.edu> Message-ID: <421BCD8E.40609@op5.se> It should be fairly straightforward. From the statfs manpage (sorry for possibly wonky formatting); CONFORMING TO The Linux statfs was inspired by the 4.4BSD one (but they do not use the same structure). NOTES ON f_fsid Solaris, Irix and POSIX have a system call statvfs(2) that returns a struct statvfs (defined in ) containing an unsigned long f_fsid. Linux, SunOS, HPUX, 4.4BSD have a system call statfs that returns a struct statfs (defined in ) containing a fsid_t f_fsid, where fsid_t is defined as struct { int val[2]; }. The same holds for FreeBSD, except that it uses the include file . The general idea is that f_fsid contains some random stuff such that the pair (f_fsid,ino) uniquely determines a file. Some OSes use (a variation on) the device number, or the device number combined with the filesystem type. Several OSes restrict giving out the f_fsid field to the superuser only (and zero it for nonprivileged users), because this field is used in the filehandle of the filesystem when NFS-exported, and giving it out is a security concern. Under some OSes the fsid can be used as second parameter to the sysfs() system call. NOTES The kernel has system calls statfs, fstatfs, statfs64, fstatfs64 to support this library call. Some systems only have , other systems also have , where the former includes the latter. So it seems including the former is the best choice. LSB has deprecated the library calls [f]statfs() and tells us to use [f]statvfs() instead. Dan Stromberg wrote: > On Wed, 2005-02-23 at 00:45 +0100, Andreas Ericsson wrote: > >>Mitch Lien wrote: >> >>>Hi. >>> >>>I am having a problem with the check_disk plugin on an HP/UX 11.11 server. >>> >>>A portion of the "df -Pk" command output is shown below. >>>. >>>. >>>/dev/vgexeBKBCV/lvPRD >>> 1938469 282786 1655683 15% /backupBCV/usr/sap/PRD >>>/dev/vgexeBKBCV/lvoraclePRD >>> 1486472 742937 743535 50% /backupBCV/oracle/PRD >>>/dev/vg00/lvol7 2083352 329976 1753376 16% /home >>>/dev/vg00/lvol4 4169904 1065488 3104416 26% /opt >>>/dev/vg00/lvol5 523656 436496 87160 84% /tmp >>>/dev/vg_veritas/lvveritas >>> 143654360 66712376 76941984 47% /usr/openv >>>/dev/vg00/lvol6 4171528 1272152 2899376 31% /usr >>>/dev/vg00/lvol8 6107712 1442320 4665392 24% /var >>>/dev/vg00/lvol1 269032 91968 177064 35% /stand >>>/dev/vg00/lvol3 212216 109480 102736 52% / >>>======================== >>> >>>When I run the check_disk plugin against any file system that occupies a >>>single line output (i.e. /, /var, /usr, etc.), the output is fine (example >>>shown below). >>> >>>$ ./check_disk -w 80 -w 90 -p /usr >>>DISK OK - [2899376 kB (69%) free on /dev/vg00/lvol6] >>> >>> >>>However, when I run the check_disk command against any file system that >>>occupies has a two (2) line output (i.e. /usr/openv, /backupBCV/usr/sap/PRD, >>>etc.), I am getting the following output (shown below). >>> >>>$ ./check_disk -c 80 -w 90 -p /usr/openv >>>Unable to read output: >>>/usr/bin/df -Pk /usr/openv >>>/dev/vg_veritas/lvveritas >>> >>>I think the issue revolves around the two-line output, but am not sure. I need >>>to know if anyone has encountered this before and if there may be a possible >>>work-around. >>> >> >>It does. Many have. Noone has a workaround (yet). > > > Has anyone tried getting around this sort of thing by using GNU df? > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From RNathan at baxglobal.com Wed Feb 23 03:03:46 2005 From: RNathan at baxglobal.com (Ranga Nathan) Date: Tue, 22 Feb 2005 18:03:46 -0800 Subject: nrpep plug in - how to return results Message-ID: I have some difficulty with nrpep. When I return the result of a command, what should I prefix for nagios to think that it is OK? I have an nrpep command that returns the string "Items (55)" for example. Nagios interprets it as "RC: 0 ". I have not been able to figure out the format of the response. Help please! Thanks __________________________________________ Ranga Nathan / CSG Systems Programmer - Specialist; Technical Services; BAX Global Inc. Irvine-California Tel: 714-442-7591 Fax: 714-442-2840 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhmartin at toger.us Wed Feb 23 03:17:20 2005 From: jhmartin at toger.us (Jason Martin) Date: Tue, 22 Feb 2005 18:17:20 -0800 Subject: nrpep plug in - how to return results In-Reply-To: References: Message-ID: <20050223021720.GK8380@zippy.toger.us> On Tue, Feb 22, 2005 at 06:03:46PM -0800, Ranga Nathan wrote: > I have an nrpep command that returns the string "Items (55)" for example. > Nagios interprets it as "RC: 0 ". I have not been able to figure out the > format of the response. Nagios doesn't attempt to parse your output at all. Instead it looks for the return code of the plugin. So, the last line if your script should be something like "exit 2" for a CRITICAL alert, or "exit 1" for a warning, or "exit 0" for an OK. -Jason Martin -- Did you know that 7/5 people don't know how to use fractions? This message is PGP/MIME signed. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 211 bytes Desc: not available URL: From RNathan at baxglobal.com Wed Feb 23 03:27:30 2005 From: RNathan at baxglobal.com (Ranga Nathan) Date: Tue, 22 Feb 2005 18:27:30 -0800 Subject: nrpep plug in - how to return results In-Reply-To: <20050223021720.GK8380@zippy.toger.us> References: <20050223021720.GK8380@zippy.toger.us> Message-ID: But I also need to return a piece of information that will be displayed on the page: E.g the following is supposed to show the number of items in the queue. command[check_baxp_inboundq]=echo "DISPLAY QUEUE(BAXP.AMS.RECEIVE.LOCAL) CURDEPTH" | runmqsc -e BAXP.AMS.QMGR | grep CURDEPTH | sed "s/^.*CURDEPTH(/Item s (/" and it returns the result : Items (0) So I want to return some status as well as a piece of data just like what the "ping" does: PING OK - Packet loss = 0%, RTA = 0.71 m Thanks __________________________________________ Ranga Nathan / CSG Systems Programmer - Specialist; Technical Services; BAX Global Inc. Irvine-California Tel: 714-442-7591 Fax: 714-442-2840 Jason Martin Sent by: nagios-users-admin at lists.sourceforge.net 02/22/2005 06:17 PM To nagios-users at lists.sourceforge.net cc Subject Re: [Nagios-users] nrpep plug in - how to return results On Tue, Feb 22, 2005 at 06:03:46PM -0800, Ranga Nathan wrote: > I have an nrpep command that returns the string "Items (55)" for example. > Nagios interprets it as "RC: 0 ". I have not been able to figure out the > format of the response. Nagios doesn't attempt to parse your output at all. Instead it looks for the return code of the plugin. So, the last line if your script should be something like "exit 2" for a CRITICAL alert, or "exit 1" for a warning, or "exit 0" for an OK. -Jason Martin -- Did you know that 7/5 people don't know how to use fractions? This message is PGP/MIME signed. -------------- next part -------------- A non-text attachment was scrubbed... Name: att9vu6j.dat Type: application/octet-stream Size: 219 bytes Desc: not available URL: From jhmartin at toger.us Wed Feb 23 03:36:38 2005 From: jhmartin at toger.us (Jason Martin) Date: Tue, 22 Feb 2005 18:36:38 -0800 Subject: nrpe plug in - how to return results In-Reply-To: References: <20050223021720.GK8380@zippy.toger.us> Message-ID: <20050223023637.GL8380@zippy.toger.us> On Tue, Feb 22, 2005 at 06:27:30PM -0800, Ranga Nathan wrote: > But I also need to return a piece of information that will be displayed on > the page: > E.g the following is supposed to show the number of items in the queue. > command[check_baxp_inboundq]=echo "DISPLAY QUEUE(BAXP.AMS.RECEIVE.LOCAL) > CURDEPTH" | runmqsc -e BAXP.AMS.QMGR | grep CURDEPTH | sed I'm hoping you'll share your MQ Series plugin when you are done :> I could use it. The first line text to STDOUT will go back Nagios. However the decision as to the thresholds needs to be done by the plugin. You'll need to wrap that echo and such in a shell script and include code to test the depth of the queue. Nagios has no concept of thresholds, except that it can pass values on to the plugins. -Jason Martin -- This message is PGP/MIME signed. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 211 bytes Desc: not available URL: From amontibello at gmail.com Wed Feb 23 07:34:57 2005 From: amontibello at gmail.com (Anthony Montibello) Date: Wed, 23 Feb 2005 01:34:57 -0500 Subject: NS_Client and event logs In-Reply-To: <2638AB7E1672B842901B0B49421B87DF0FCD30@mpc00email3.micronpc.com> References: <2638AB7E1672B842901B0B49421B87DF0FCD30@mpc00email3.micronpc.com> Message-ID: NS_Client V 2.01 does not have any service checks for process event logs. Your would need to use transfer over to using a different client on your Window servers. options available: NC_Net Does implement Event Log checks, (It is also a drop in replacement that should not require any reconfiguring of Nagios Configs -just disabling of NS_client) NS_Client++ -Says it can process event Logs. NRPE - has several Event Log checks plugins for NT. I have only tested NC_Net's Event Log test, and I have not recieved any negative feedback about it. Good Luck, Tony On Tue, 22 Feb 2005 14:38:35 -0700, Paul Bourgeau wrote: > I am running RH8, Nagios 1.2 and NSClient 2.01. I am trying to get > event log (system, app, etc) information with check_nt and I am coming > up short. Is there something else I can use to get to the logs? > > Thank You, > Paul Bourgeau > > Ph: 262-523-3300 x60279 > Fx: 208-898-2371 > psbourgeau at mpccorp.com > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From langseth at aero.und.edu Wed Feb 23 07:48:45 2005 From: langseth at aero.und.edu (Ryan Langseth) Date: Wed, 23 Feb 2005 00:48:45 -0600 Subject: anyone monitoring with aaccli (adaptec raid cli bin)? Message-ID: <1109141325.4182.5.camel@localhost.localdomain> I realise you need it for aacli but here is some more information, this one came across a dell list I am on. -Ryan -------------- next part -------------- An embedded message was scrubbed... From: Neil Prockter Subject: Re: Dell 2650 + nagios monitoring Date: Sun, 9 Jan 2005 16:47:33 +0000 Size: 4663 URL: From ae at op5.se Wed Feb 23 09:29:23 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 23 Feb 2005 09:29:23 +0100 Subject: NS_Client and event logs In-Reply-To: References: <2638AB7E1672B842901B0B49421B87DF0FCD30@mpc00email3.micronpc.com> Message-ID: <421C3EE3.8090308@op5.se> Anthony Montibello wrote: > NS_Client V 2.01 does not have any service checks for process event logs. > > Your would need to use transfer over to using a different client on > your Window servers. > options available: > NC_Net Does implement Event Log checks, (It is also a drop in > replacement that should not require any reconfiguring of Nagios > Configs -just disabling of NS_client) > NS_Client++ -Says it can process event Logs. > NRPE - has several Event Log checks plugins for NT. > You could also use NTSyslog and send all your NT logs to a unix boxen where you can parse them in peace with the full array of Unix power-tools at your command. > I have only tested NC_Net's Event Log test, and I have not recieved > any negative feedback about it. > > Good Luck, > Tony > > > > On Tue, 22 Feb 2005 14:38:35 -0700, Paul Bourgeau > wrote: > >>I am running RH8, Nagios 1.2 and NSClient 2.01. I am trying to get >>event log (system, app, etc) information with check_nt and I am coming >>up short. Is there something else I can use to get to the logs? >> >>Thank You, >>Paul Bourgeau >> >>Ph: 262-523-3300 x60279 >>Fx: 208-898-2371 >>psbourgeau at mpccorp.com >> > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From h_majnoonian at yahoo.com Wed Feb 23 13:50:35 2005 From: h_majnoonian at yahoo.com (Hamed Majnoonian) Date: Wed, 23 Feb 2005 16:20:35 +0330 Subject: Problem on installation of Nagios on BSD! Message-ID: Dear all, I have a 4.10 BSD box and I am trying to install Nagios on it. The problem is: 1- The "make" phase is good. 2- When I want to "make install" I've received this message "p5-NET-SNMP-5.0.1_1 requires perl 5.6.xor later." I have installed the perl 5 and everything was fine during installation. Tried again to install nagios but the same error message appeared. I deinstalled perl 5 and installed perl 5.8 but the problem still is there. Can anybody help? Many thanks ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From naman.latif at inamed.com Wed Feb 23 13:48:39 2005 From: naman.latif at inamed.com (Naman Latif) Date: Wed, 23 Feb 2005 04:48:39 -0800 Subject: Event Handler Problem in Nagios 2.0b2 Message-ID: <7BEA54411F802C4CB84E72EB6AD509F620A34A@sigma.inamed.com> Going to answer my own question. The $STATETYPE$ macro is changed to $SERVICESTATETYPE in Nagios2. Updating my script fixed the problem. -----Original Message----- From: Naman Latif Sent: Tuesday, February 22, 2005 1:52 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Event Handler Problem in Nagios 2.0b2 Hi, I just up-graded our Nagios Monitoring system from 1.2 to 2.0b2. After the Upgrade the Event-Handler has stopped working. I can see the entry in the Log File, which says that the Event Handler script was executed. But in reality the script is never executed. I created a simple Perl Test Scrip to be executed by the event-handler, which will write some text in a file. The script works from the command line. As far as I can tell, Nagios never even tries to execute the script though the log files says the opposite. Has anyone seen a similar problem ? Has anything changed in 2.0 that requires to define some special entry for Event handlers ? ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From naman.latif at inamed.com Wed Feb 23 14:05:23 2005 From: naman.latif at inamed.com (Naman Latif) Date: Wed, 23 Feb 2005 05:05:23 -0800 Subject: Macros Available as Environmental Variables Message-ID: <7BEA54411F802C4CB84E72EB6AD509F620A34D@sigma.inamed.com> Hi, As per the Nagios2 documentation, the Macros are now available as Environmental Variables. Does that mean I can have a Perl\Shell Script executed by a Cronjob that can access these variables ? I am interested in the Macros $TOTALSERVICESCRITICAL$. Can an external script access this variable's value ? If yes, can someone point me to how (I am not a Unix Expert..!) ? Regards \\ Naman ? ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Feb 23 14:10:27 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 23 Feb 2005 14:10:27 +0100 Subject: Macros Available as Environmental Variables In-Reply-To: <7BEA54411F802C4CB84E72EB6AD509F620A34D@sigma.inamed.com> References: <7BEA54411F802C4CB84E72EB6AD509F620A34D@sigma.inamed.com> Message-ID: <421C80C3.6020105@op5.se> Naman Latif wrote: > Hi, As per the Nagios2 documentation, the Macros are now available as > Environmental Variables. Does that mean I can have a Perl\Shell > Script executed by a Cronjob that can access these variables ? No. Only processes forked by Nagios have access to these variables. > I am > interested in the Macros $TOTALSERVICESCRITICAL$. Can an external > script access this variable's value ? Not unless executed by Nagios, no. > If yes, can someone point me to > how (I am not a Unix Expert..!) ? > foo=bar echo $foo should get you on the learning curve. The topic is far too wide and deep for this forum. I'm sure O'Reilly and friends have a vast pile of books on the topic. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tgwilt at suite224.net Wed Feb 23 14:13:11 2005 From: tgwilt at suite224.net (Tom Gwilt) Date: Wed, 23 Feb 2005 08:13:11 -0500 (EST) Subject: Problem on installation of Nagios on BSD! In-Reply-To: References: Message-ID: On Wed, 23 Feb 2005, Hamed Majnoonian wrote: > Dear all, > > I have a 4.10 BSD box and I am trying to install Nagios on it. The problem > is: > 1- The "make" phase is good. > 2- When I want to "make install" I've received this message > "p5-NET-SNMP-5.0.1_1 requires perl 5.6.xor later." > > I have installed the perl 5 and everything was fine during installation. > Tried again to install nagios but the same error message appeared. I > deinstalled perl 5 and installed perl 5.8 but the problem still is there. > > Can anybody help? > did you run the use.perl port command after the install (provided you upgraded perl via the ports...) Tom ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Sebastian.Bergstroem at kunskapsskolan.se Wed Feb 23 14:43:53 2005 From: Sebastian.Bergstroem at kunskapsskolan.se (=?iso-8859-1?Q?Bergstr=F6m_Sebastian?=) Date: Wed, 23 Feb 2005 14:43:53 +0100 Subject: SV: NSClient 0.0.1 RC1 Message-ID: NSClient++ is indeed a highly interesting project. I will definitively test NSClient++ as soon as I can. Some feedback... > 3, Settings is not 100% compatible with NSClient, should I > add an option "settings=read from nsclient" or similar to > make it a *drop in* replacement? > To me this feels a bit excessive as you need to "install" the > exe file anyway so you might as well fix your own custom > config and install that as well. I would say skip the drop in. It's no big deal to change the config settings since (as you said) you need to replace the .exe file anyways. > 4, Installation procedure? (I don't really know at all how > people generally installs these kinds of things so feedback > here would be interesting) I made a batch file that made a directory and copied the needed files, put the configuration into the Windows registry and started NSClient as a service. Just let me know if you'd like to see the batch file. It's very basic stuff, but still makes installation a lot faster and simpler (compared with doing it manually). > 8, Should I post to this list ? (should I move this to "my own" list) In my opinion, you should definitively post to this list but I can't speak for everyone here. > Andreas Ericsson wrote: > > Perhaps it would be prudent to get rid of the ancient MS Exchange > problem and have it bind 12248 or some other address in the > "free fire > zone" (non-standard, non-common) by default instead? I agree with Andreas Ericsson here. Using an alternative port (maybe a high one) would be a good idea. Port conflicts is no fun dealing with... Best regards, Sebastian Bergstroem ---------------------------------------------- Sebastian Bergstroem Technical coordinator Kunskapsskolan i Sverige AB sebastian.bergstroem at kunskapsskolan.se ----------------------------------------------- -----Ursprungligt meddelande----- Fr?n: Michael Medin [mailto:mime at forumsql.se] Skickat: den 22 februari 2005 10:25 Till: nagios-users at lists.sourceforge.net ?mne: [Nagios-users] NSClient 0.0.1 RC1 Hi, I have just released RC1 of NSClient++ it has basic functionality and supports most of the basic commands of NSClient. (only REQ_COUNTER, REQ_FILEAGE and REQ_INSTANCES are missing). It can be found at http://sourceforge.net/projects/nscplus/ Simple installation instructions: Unzip to a directory of you choice, run "NSClient++ /install" to install the service definition and then "NSCLient++ /start" to start the service. If you rather not run it as a service run "NSClient++ /test" to start the program interactively. A few important things: be sure to comment out either ConsoleLogger.dll or FileLogger.dll depending on if you run it interactively or as a service. Also note that this by default binds to port 1234 (as to not collide with NSClient). Check out readme.txt for details on how to install / configure and use the application. As for resources/leaks I ran this for about 24 hours on a few of our servers during yesterday polling about 5 times each second without much impact (used 2.2Mb memory and pretty much no CPU, according to ProcExp www.sysinternals.com) **IMPORTANT** Don't go changing all you NSClient's as of yet, this is a work in progress, settings/options/things might change and you will have to do it all over again, but please feel free to test this on all your installations :) A few things I am interested in (read feedback): 1, Does it work on ? 2, Does it work as expected? 3, Settings is not 100% compatible with NSClient, should I add an option "settings=read from nsclient" or similar to make it a *drop in* replacement? To me this feels a bit excessive as you need to "install" the exe file anyway so you might as well fix your own custom config and install that as well. 4, Installation procedure? (I don't really know at all how people generally installs these kinds of things so feedback here would be interesting) 5, How does: Counters work, can someone send me an example of this ? 6, How does REQ_FILEAGE work? (I can find no documentation in check_nt for this command.) 7, How does REQ_INSTANCES work? (I can find no documentation in check_nt for this command.) 8, Should I post to this list ? (should I move this to "my own" list) Regards, Michael Medin Direkt: 08-410 052 42 Mobil: 0733-35 55 42 E-mail: michael.medin at altcom.se Internet: WWW.ALTCOM.SE ALTCOM AB SEGELB?TSV?GEN 2, 11264 STOCKHOLM TELEFON: 08-7 300 300 FAX: 08-7 300 305 EMAIL: INFO at ALTCOM.SE INTERNET: WWW.ALTCOM.SE This message contains information that may be privileged or confidential and is the property of the Altcom AB. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify me immediately and delete all copies of this message. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Philipp.Sand at sycor.de Wed Feb 23 14:50:28 2005 From: Philipp.Sand at sycor.de (Sand Philipp) Date: Wed, 23 Feb 2005 14:50:28 +0100 Subject: Check disk space NS_Client Message-ID: <6943DE9E9934CD42BBE4A20E0E28E10E011C9738@SYGOMAIL.GOE.AD.SYCOR.DE> Hi, This may not be the nicest way, but, you can give it a try ... ;) Simply mount the folder you want to check to a Driveletter e.g. net use x: \\127.0.0.1\c$\blablabla and then check for free space on x. Regards, Philipp ________________________________ From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Henrique Oliveira Sent: Tuesday, February 22, 2005 5:33 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Check disk space NS_Client Hello, I'm running Nagios 1.2 with Nagmin (DB support) with no problems. We have a webserver running multiple sites and we need to know is a given site (folder) has reached a certain amount of disk usage. Is it possible to monitor directories in a hard-drive, opposed to only checking the whole hard-drive? Regards, Henrique Oliveira ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mitch.lien at medtronic.com Wed Feb 23 15:42:56 2005 From: mitch.lien at medtronic.com (Lien, Mitch) Date: Wed, 23 Feb 2005 08:42:56 -0600 Subject: check_disk and filesystem issue. Message-ID: While searching for GNU df, I was able to find a pre-compiled binary for "di" at: http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/di-3.3/ Even though I didn't use the GNU df as suggested, your assistance got me pointed in the right direction. I think this will work. Thanks again. Mitch -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Dan Stromberg Sent: Tuesday, February 22, 2005 5:59 PM To: Andreas Ericsson Cc: strombrg at dcs.nac.uci.edu; nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] check_disk and filesystem issue. On Wed, 2005-02-23 at 00:55 +0100, Andreas Ericsson wrote: > > > > Has anyone tried getting around this sort of thing by using GNU df? > > > > Not that I know of, although it should be fairly simple to use the > statfs(2) equivalence on HP-UX. I'm sure there must be some syscall > doing roughly the same work. GNU df would be a good starting point here. > Perhaps that was what you were referring to? Well, I'd be rather surprised if GNU df wouldn't build on HPUX out of the box, but if it doesn't, then sure, GNU df would be a good starting point. We've used GNU df on Solaris, IRIX, Tru64 for years... ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From anders.iderstrom at hsv.se Wed Feb 23 16:40:02 2005 From: anders.iderstrom at hsv.se (=?ISO-8859-1?Q?Anders_Iderstr=F6m?=) Date: Wed, 23 Feb 2005 16:40:02 +0100 Subject: nrpe: fails when check command outputs to stderr [CRC32] Message-ID: <421CA3D2.7050001@hsv.se> 2003-12-22 Simon Kitching posted this: http://sourceforge.net/mailarchive/message.php?msg_id=6818296 ..where he aks if somebody is willing to look at a patch for nrpe.c to fix the issue with nrpe 2.0 reporting "invalid CRC32". I am willing to test your patch Simon. The organisation i work for are using nrpe 2.0 on Solaris 8, Solaris 9 and RedHat 7.2 (We have nrpe 2.0 in production and our servers /var/adm/messages are FULL of the following errors) Feb 23 10:06:16 nrpe[9177]: [ID 261363 daemon.error] Error: Request packet had invalid CRC32. Feb 23 10:06:16 nrpe[9177]: [ID 900267 daemon.error] Client request was invalid, bailing out... Best regards Anders Iderstrom ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jvanas at jackofallgames.com Wed Feb 23 16:40:35 2005 From: jvanas at jackofallgames.com (Josh Van As) Date: Wed, 23 Feb 2005 10:40:35 -0500 Subject: Help with Crontab scheduling downtimejdets2,6:15:00,2700,CRONTAB,0123456 Message-ID: I am using the sched_host_downtime script written by Kelly Cobean. I am running it on RedHat Enterprise v3 Linux against Nagios 2.0b2. I believe I am correctly scheduling downtime for the hosts listed below between 6:15am and 7:45AM. However, when these hosts rebooted, we were notified by Nagios. The other oddity I noticed is that the downtime, although listed in the log, never appeared in the downtime.cfg file or in the CGI interface for "Downtime". Here is my host_downtime.cfg file: jdets2,6:15:00,2700,CRONTAB,0123456 jdets3,6:30:00,2700,CRONTAB,0123456 jdets6,6:45:00,2700,CRONTAB,0123456 jdets8,7:00:00,2700,CRONTAB,0123456 jgerpctx05,7:15:00,2700,CRONTAB,0123456 jdets7,7:30:00,2700,CRONTAB,0123456 jgerpctx04,7:45:00,2700,CRONTAB,0123456 Here are the relevant log entries from nagios.log to prove that the cron script executed at 12:01AM. [02-23-2005 00:01:11] EXTERNAL COMMAND: SCHEDULE_HOST_DOWNTIME;jgerpctx04;1109162700;1109165400;1;2700;CRONTAB;S cheduled Maintenance [02-23-2005 00:01:11] EXTERNAL COMMAND: SCHEDULE_HOST_DOWNTIME;jdets7;1109161800;1109164500;1;2700;CRONTAB;Sched uled Maintenance [02-23-2005 00:01:11] EXTERNAL COMMAND: SCHEDULE_HOST_DOWNTIME;jgerpctx05;1109160900;1109163600;1;2700;CRONTAB;S cheduled Maintenance [02-23-2005 00:01:11] EXTERNAL COMMAND: SCHEDULE_HOST_DOWNTIME;jdets8;1109160000;1109162700;1;2700;CRONTAB;Sched uled Maintenance [02-23-2005 00:01:11] EXTERNAL COMMAND: SCHEDULE_HOST_DOWNTIME;jdets6;1109159100;1109161800;1;2700;CRONTAB;Sched uled Maintenance [02-23-2005 00:01:11] EXTERNAL COMMAND: SCHEDULE_HOST_DOWNTIME;jdets3;1109158200;1109160900;1;2700;CRONTAB;Sched uled Maintenance [02-23-2005 00:01:01] EXTERNAL COMMAND: SCHEDULE_HOST_DOWNTIME;jdets2;1109157300;1109160000;1;2700;CRONTAB;Sched uled Maintenance TIA for the help! Josh Van As ********************************************************************************************************************************************************************************************************************************** The information transmitted is intended only for the person to whom it is addressed and may be confidential and privileged and protected from disclosure. Any review, retransmission, dissemination or other use of, or taking any action in reliance upon, this information by persons or entities other than the intended recipients are prohibited. If you are not the intended recipient, please contact the sender and delete the material from any computer. ********************************************************************************************************************************************************************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From holiveira at interhost.com Wed Feb 23 17:26:11 2005 From: holiveira at interhost.com (Henrique Oliveira) Date: Wed, 23 Feb 2005 16:26:11 +0000 Subject: Check disk space NS_Client In-Reply-To: <6943DE9E9934CD42BBE4A20E0E28E10E011C9738@SYGOMAIL.GOE.AD.SYCOR.DE> References: <6943DE9E9934CD42BBE4A20E0E28E10E011C9738@SYGOMAIL.GOE.AD.SYCOR.DE> Message-ID: <421CAEA3.5060409@interhost.com> Sand Philipp wrote: >Hi, > >This may not be the nicest way, but, you can give it a try ... ;) >Simply mount the folder you want to check to a Driveletter e.g. net use >x: \\127.0.0.1\c$\blablabla and then check for free space on x. > > It's not possible because "net use" is used to map network folders or shares, which is not the case. And of course the number of available letters is very limited (at this point we have around 40 sites on this webserver) >________________________________ > > From: nagios-users-admin at lists.sourceforge.net >[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Henrique >Oliveira > Sent: Tuesday, February 22, 2005 5:33 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Check disk space NS_Client > > > Hello, > > I'm running Nagios 1.2 with Nagmin (DB support) with no >problems. > > We have a webserver running multiple sites and we need to know >is a given site > (folder) has reached a certain amount of disk usage. > > Is it possible to monitor directories in a hard-drive, opposed >to only checking > the whole hard-drive? > > Regards, > Henrique Oliveira > -------------- next part -------------- An HTML attachment was scrubbed... URL: From psbourgeau at mpccorp.com Wed Feb 23 17:55:21 2005 From: psbourgeau at mpccorp.com (Paul Bourgeau) Date: Wed, 23 Feb 2005 09:55:21 -0700 Subject: NS_Client and event logs Message-ID: <2638AB7E1672B842901B0B49421B87DF0FCD32@mpc00email3.micronpc.com> Well I have the NagEvLog agent loaded on the windows server and NSCA loaded on the Nagios box (I think it's up and running). Shouldn't it be showing up when I do a ps -aux | grep nsca? I set the windows piece to forward to my Nagios box. Now I can't seem to get any event log notifications out of Nagios. Here's what I have set up: ###checkcommand.cfg: define command{ command_name check_evtlog command_line $USER1$/eventhandlers/submit_check_result -H $HOSTADDRESS$ '$SERVICEDESC$' $SERVICESTATE$ '$OUTPUT$' } ###services.cfg: define service{ use notify-service ; Name of service template to use host_name miller service_description TESTING - Event Log is_volatile 1 check_period none active_checks_enabled 1 passive_checks_enabled 1 max_check_attempts 1 normal_check_interval 1 retry_check_interval 1 contact_groups group-oncall notification_interval 5 notification_period 24x7 notification_options c,w,r,u freshness_threshold 1800 check_command check_evtlog } In the GUI page of Nagios, I get, (No output!). What am I missing? -----Original Message----- From: Steve Shipway [mailto:s.shipway at auckland.ac.nz] Sent: Tue 2/22/2005 4:52 PM To: Paul Bourgeau Cc: Subject: RE: [Nagios-users] NS_Client and event logs You can use a passive service, and then install NSCA on your Nagios box, and us my NagEvLog agent to forward filtered eventlog messages to your Nagios server. You can get it from www.steveshipway.org/software but be aware this is an early release, and v1.3 has a reported problem with non-English Windows versions. We are using v1.3 (under English Windows) here on several dozen machines with no problems yet. Steve >-----Original Message----- >From: nagios-users-admin at lists.sourceforge.net >[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of >Paul Bourgeau >Sent: Wednesday, 23 February 2005 10:39 a.m. >To: nagios-users at lists.sourceforge.net >Subject: [Nagios-users] NS_Client and event logs > > >I am running RH8, Nagios 1.2 and NSClient 2.01. I am trying >to get event log (system, app, etc) information with check_nt >and I am coming up short. Is there something else I can use >to get to the logs? > > > >Thank You, >Paul Bourgeau > >Ph: 262-523-3300 x60279 >Fx: 208-898-2371 >psbourgeau at mpccorp.com > > > > > >-----Original Message----- >From: nagios-users-admin at lists.sourceforge.net >[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of >Ryan Langseth >Sent: Tuesday, February 22, 2005 3:16 PM >To: Henrique Oliveira >Cc: nagios-users at lists.sourceforge.net >Subject: Re: [Nagios-users] Check disk space NS_Client > >If you do use nrpe_nt, and have some decent scripting language >available > >on the server, the size of a directory can be found using "dir /S >c:\path\to\directory\", and some parsing since it will also print the >size of each file within the directory, recursively. But the >end result >will be useful: > > Total Files Listed: > 1188 File(s) 2,844,230,018 bytes > 500 Dir(s) 2,968,420,352 bytes free > >I may be possible to create a bat file to do it also, but I >have no clue > >how. > >Henrique Oliveira wrote: > >> Andreas Ericsson wrote: >> >>> Phil Costelloe wrote: >>> >>>> Henrique Oliveira wrote: >>>> >>>> >>>>> I'm running Nagios 1.2 with Nagmin (DB support) with no problems. >>>>> >>>>> We have a webserver running multiple sites and we need to >know is a >>>>> given site (folder) has reached a certain amount of disk usage. >>>>> >>>>> Is it possible to monitor directories in a hard-drive, opposed to >>>>> only checking the whole hard-drive? >>>> >>>> >>>> >>>> NSClient uses the standard Windows performance counters and I'm >pretty >>>> certain those don't give you information at the directory level, >just >>>> at the physical and logical disk level. One way to do it would be >with >>>> a custom nrpe_nt script. >>>> >>> >>> He. Funny. I was assuming this was on Unix, but come to think of it, >>> the OS was never mentioned. I assume we work in different networks. >;) >> >> >> Well, the disk space I'd like to monitor is on a W2K and running >> NS_Client. >> >> Of course the monitoring server is a Linux... > > >-- >Ryan Langseth >UND Aerospace Systems Team >langseth at aero.und.edu > > > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from >real users. Discover which products truly live up to the hype. >Start reading now. >http://ads.osdn.com/?ad_id=6595&alloc_id=14396>&op=click > >_______________________________________________ > >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS >when reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > >Disclaimer: 22/2/2005 > >MPC Computers is providing the following information in >compliance with federal regulations: > >MPC Computers, LLC >906 E. Karcher Road >Nampa, Idaho 83687 >1-888-224-4247 >http://www.mpccorp.com > >To discontinue receiving e-mail communications from MPC in the >future, please go to: >http://www.mpccorp.com/email/manage.html and follow the instructions. > > > > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from >real users. Discover which products truly live up to the hype. >Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=ick >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS >when reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > Disclaimer: 23/2/2005 MPC Computers is providing the following information in compliance with federal regulations: MPC Computers, LLC 906 E. Karcher Road Nampa, Idaho 83687 1-888-224-4247 http://www.mpccorp.com To discontinue receiving e-mail communications from MPC in the future, please go to: http://www.mpccorp.com/email/manage.html and follow the instructions. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From behrens at mcs.anl.gov Wed Feb 23 17:56:41 2005 From: behrens at mcs.anl.gov (Scott Behrens) Date: Wed, 23 Feb 2005 10:56:41 -0600 Subject: trouble with latency Message-ID: <421CB5C9.7030405@mcs.anl.gov> I am getting roughly 3354 seconds of latency per check and I am not sure why. Everything is enabled in smart mode except for max_concurent_checks because I had trobule with swap. I took the minimum recommended number and multiplied it by to and set max_concurent_checks to 100. Any suggestions? Also 95% of my checks use NRPE. Total services: 1812 Total hosts: 175 Metric Min. Max. Average Check Execution Time: < 1 sec 6 sec 0.345 sec Check Latency: 2967 sec 3859 sec 3748.046 sec Percent State Change: 0.00% 0.00% 0.00% -- Scott Behrens Network and Systems Staff Room B-244 1-630-252-4198 Mathematics and Computer Science Division Argonne National Laboratory -------------- next part -------------- An HTML attachment was scrubbed... URL: From ae at op5.se Wed Feb 23 18:26:52 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 23 Feb 2005 18:26:52 +0100 Subject: trouble with latency In-Reply-To: <421CB5C9.7030405@mcs.anl.gov> References: <421CB5C9.7030405@mcs.anl.gov> Message-ID: <421CBCDC.7060602@op5.se> Scott Behrens wrote: > > I am getting roughly 3354 seconds of latency per check and I am not sure > why. Everything is enabled in smart mode except for > max_concurent_checks because I had trobule with swap. I took the > minimum recommended number and multiplied it by to and set > max_concurent_checks to 100. Any suggestions? Also 95% of my checks With 1812 checks you should really try having max_concurrent_checks at 0 (unlimited) or at least roughly 300. Otherwise it won't have room for re-checks in case of failures, and you get latency. If 300 is too much for the hardware then adjust downwards. Also, if you're using Nagios 1.x, the smart mode isn't really all that smart if you have different default_check_interval's, in which case it will do some seriously erratic math and come up with a check interval that is way too high for it to manage all of them. > use NRPE. > Total services: 1812 > Total hosts: 175 > Metric Min. Max. Average > Check Execution Time: < 1 sec 6 sec 0.345 sec > Check Latency: 2967 sec 3859 sec 3748.046 sec > Percent State Change: 0.00% 0.00% 0.00% > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From GWCOOK at mactec.com Wed Feb 23 18:27:19 2005 From: GWCOOK at mactec.com (Cook, Garry) Date: Wed, 23 Feb 2005 10:27:19 -0700 Subject: trouble with latency Message-ID: <41FD7929498A174DAB86C45F28E0EC0D01199040@golden-m.mactec.com> Scott Behrens wrote: > I am getting roughly 3354 seconds of latency per check and I am not > sure why. Everything is enabled in smart mode except for > max_concurent_checks because I had trobule with swap. I took the > minimum recommended number and multiplied it by to and set > max_concurent_checks to 100. Any suggestions? Also 95% of my checks > use NRPE. Total services: 1812 > Total hosts: 175 > MetricMin.Max.Average > Check Execution Time: < 1 sec6 sec0.345 sec > Check Latency:2967 sec3859 sec3748.046 sec > Percent State Change:0.00%0.00%0.00% I'm assuming that you have run the following command: /path/to/nagios/bin/nagios -s /path/to/nagios/etc/nagios.cfg Because you mention the recommended value for max_concurrent_checks. However, this will will also give you information about how max_concurrent_checks and service_reaper_frequency are related to latency. If the reaper frequency is set too high, or max concurrent is too low, you can end up with latency issues. You'll have to play around with different values until you find something that works. I recently added about 1500 service checks, and also raised my max concurrent checks value to about 150. I ended up with about 11 seconds of check latency. So, I've since dropped my reaper frequency to 3 seconds (from 5) and dropped concurrent checks to 60. So far, this is working out well. My recommended min/max concurrent checks are 2 & 6. Garry W. Cook, CCNA Network Infrastructure Manager MACTEC, Inc. - http://www.mactec.com/ 303.273.5050 (Office) - 720.220.1862 (Mobile) ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From behrens at mcs.anl.gov Wed Feb 23 19:08:42 2005 From: behrens at mcs.anl.gov (Scott Behrens) Date: Wed, 23 Feb 2005 12:08:42 -0600 Subject: trouble with latency In-Reply-To: <41FD7929498A174DAB86C45F28E0EC0D01199040@golden-m.mactec.com> References: <41FD7929498A174DAB86C45F28E0EC0D01199040@golden-m.mactec.com> Message-ID: <421CC6AA.5030706@mcs.anl.gov> Cook, Garry wrote: >Scott Behrens wrote: > > >>I am getting roughly 3354 seconds of latency per check and I am not >>sure why. Everything is enabled in smart mode except for >>max_concurent_checks because I had trobule with swap. I took the >>minimum recommended number and multiplied it by to and set >>max_concurent_checks to 100. Any suggestions? Also 95% of my checks >>use NRPE. Total services: 1812 >>Total hosts: 175 >>MetricMin.Max.Average >>Check Execution Time: < 1 sec6 sec0.345 sec >>Check Latency:2967 sec3859 sec3748.046 sec >>Percent State Change:0.00%0.00%0.00% >> >> > >I'm assuming that you have run the following command: >/path/to/nagios/bin/nagios -s /path/to/nagios/etc/nagios.cfg >Because you mention the recommended value for max_concurrent_checks. > >However, this will will also give you information about how >max_concurrent_checks and service_reaper_frequency are related to >latency. If the reaper frequency is set too high, or max concurrent is >too low, you can end up with latency issues. > >You'll have to play around with different values until you find >something that works. I recently added about 1500 service checks, and >also raised my max concurrent checks value to about 150. I ended up with >about 11 seconds of check latency. So, I've since dropped my reaper >frequency to 3 seconds (from 5) and dropped concurrent checks to 60. So >far, this is working out well. My recommended min/max concurrent checks >are 2 & 6. > >Garry W. Cook, CCNA >Network Infrastructure Manager >MACTEC, Inc. - http://www.mactec.com/ >303.273.5050 (Office) - 720.220.1862 (Mobile) > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_ide95&alloc_id396&op=click >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > > > > So i did drop down the reaper frequency to three seconds and i Did up the max concurrenct checks to 150 (i noticed anything past 150 i was using up to much swap) and im still having intense latency problems. I'm wondering if since most of my checks use NRPE if that could have anything to do with it although I am not sure why. Any additional pointers would be appreciated. Thanks, Scott -- Scott Behrens Network and Systems Staff Room B-244 1-630-252-4198 Mathematics and Computer Science Division Argonne National Laboratory ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhmartin at toger.us Wed Feb 23 19:16:07 2005 From: jhmartin at toger.us (Jason Martin) Date: Wed, 23 Feb 2005 10:16:07 -0800 Subject: trouble with latency In-Reply-To: <421CC6AA.5030706@mcs.anl.gov> References: <41FD7929498A174DAB86C45F28E0EC0D01199040@golden-m.mactec.com> <421CC6AA.5030706@mcs.anl.gov> Message-ID: <20050223181606.GC21822@zippy.toger.us> On Wed, Feb 23, 2005 at 12:08:42PM -0600, Scott Behrens wrote: > the max concurrenct checks to 150 (i noticed anything past 150 i was > using up to much swap) That seems to be your problem there. check_nrpe is a fairly lightweight process, so it sounds like your monitoring machine isn't beefy enough to handle that much monitoring. -Jason Martin -- Facts are stubborn things. This message is PGP/MIME signed. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 211 bytes Desc: not available URL: From behrens at mcs.anl.gov Wed Feb 23 19:32:57 2005 From: behrens at mcs.anl.gov (Scott Behrens) Date: Wed, 23 Feb 2005 12:32:57 -0600 Subject: trouble with latency In-Reply-To: <20050223181606.GC21822@zippy.toger.us> References: <41FD7929498A174DAB86C45F28E0EC0D01199040@golden-m.mactec.com> <421CC6AA.5030706@mcs.anl.gov> <20050223181606.GC21822@zippy.toger.us> Message-ID: <421CCC59.8030806@mcs.anl.gov> Jason Martin wrote: >On Wed, Feb 23, 2005 at 12:08:42PM -0600, Scott Behrens wrote: > > >>the max concurrenct checks to 150 (i noticed anything past 150 i was >>using up to much swap) >> >> >That seems to be your problem there. check_nrpe is a fairly >lightweight process, so it sounds like your monitoring machine >isn't beefy enough to handle that much monitoring. > >-Jason Martin > > It seems that bumping down the interleave (which was in smart mode) to about .8 seconds reduced my latency significantly. I'll work on finding the sweet spot. Thanks everyone, for you help ---Scott -- Scott Behrens Network and Systems Staff Room B-244 1-630-252-4198 Mathematics and Computer Science Division Argonne National Laboratory ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.Smith at demandtec.com Wed Feb 23 20:00:12 2005 From: Edward.Smith at demandtec.com (Ed Smith) Date: Wed, 23 Feb 2005 11:00:12 -0800 Subject: Acknowledgements and Comments Message-ID: <2B5C62C548D2FC48BC0334E8AE494185058C7AAD@parrot.demandtec.com> Hi, We are not seeing acknowledgements and comment show up immediately after we enter them (in fact, not at all) and I was wondering if anyone knows what could cause this. Also, is there a log where we might see acknowledgements and comments that are added. The same problem occurs when we try to schedule downtime for a host and services. Thanks. Ed ------------------------ Edward Smith Systems Application Engineer Demandtec, Inc esmith at demandtec.com 650-226-4609 --------------------------------------------------------------------------------------------------------------------------------------------- DEMANDTEC EMAIL NOTICE:

NOTICE: This email transmission and all attached files contain information intended for the designated individual or entity to whom it is addressed and may contain information that is proprietary, privileged and/or exempt from disclosure under applicable law. If you are not the intended recipient or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, copying, or other use of this email or its attachments is strictly prohibited. If you have received this email in error, please notify the sender immediately by replying to this message and please delete the original message without making any copies.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. Although we have taken reasonable precautions to ensure that this email and all attachments are free from viruses, we accept no liability for any loss or damage arising from the use of this email or its attachments. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From psbourgeau at mpccorp.com Wed Feb 23 20:27:57 2005 From: psbourgeau at mpccorp.com (Paul Bourgeau) Date: Wed, 23 Feb 2005 12:27:57 -0700 Subject: check_users Message-ID: <2638AB7E1672B842901B0B49421B87DF0C25AC@mpc00email3.micronpc.com> Is it possible to see what users are logged in with this check_ command? Thank You, Paul Bourgeau Ph: 262-523-3300 x60279 Fx: 208-898-2371 psbourgeau at mpccorp.com -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Ed Smith Sent: Wednesday, February 23, 2005 1:00 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Acknowledgements and Comments Hi, We are not seeing acknowledgements and comment show up immediately after we enter them (in fact, not at all) and I was wondering if anyone knows what could cause this. Also, is there a log where we might see acknowledgements and comments that are added. The same problem occurs when we try to schedule downtime for a host and services. Thanks. Ed ------------------------ Edward Smith Systems Application Engineer Demandtec, Inc esmith at demandtec.com 650-226-4609 ------------------------------ ------------------------------------------------------------------------ --------------------------------------- DEMANDTEC EMAIL NOTICE:

NOTICE: This email transmission and all attached files contain information intended for the designated individual or entity to whom it is addressed and may contain information that is proprietary, privileged and/or exempt from disclosure under applicable law. If you are not the intended recipient or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, copying, or other use of this email or its attachments is strictly prohibited. If you have received this email in error, please notify the sender immediately by replying to this message and please delete the original message without making any copies.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. Although we have taken reasonable precautions to ensure that this email and all attachments are free from viruses, we accept no liability for any loss or damage arising from the use of this email or its attachments. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=ick _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null Disclaimer: 23/2/2005 MPC Computers is providing the following information in compliance with federal regulations: MPC Computers, LLC 906 E. Karcher Road Nampa, Idaho 83687 1-888-224-4247 http://www.mpccorp.com To discontinue receiving e-mail communications from MPC in the future, please go to: http://www.mpccorp.com/email/manage.html and follow the instructions. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From psbourgeau at mpccorp.com Wed Feb 23 21:13:35 2005 From: psbourgeau at mpccorp.com (Paul Bourgeau) Date: Wed, 23 Feb 2005 13:13:35 -0700 Subject: receiving SNMP traps to page Message-ID: <2638AB7E1672B842901B0B49421B87DF0C25AF@mpc00email3.micronpc.com> I want to set up Nagios to receive traps from other devices/programs but I am unsure how to do it. Can anyone give me a quick hand? Thank You, Paul Bourgeau Ph: 262-523-3300 x60279 Fx: 208-898-2371 psbourgeau at mpccorp.com Disclaimer: 23/2/2005 MPC Computers is providing the following information in compliance with federal regulations: MPC Computers, LLC 906 E. Karcher Road Nampa, Idaho 83687 1-888-224-4247 http://www.mpccorp.com To discontinue receiving e-mail communications from MPC in the future, please go to: http://www.mpccorp.com/email/manage.html and follow the instructions. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 552 bytes Desc: image001.gif URL: From brianmas at highstream.net Wed Feb 23 21:19:36 2005 From: brianmas at highstream.net (brianmas at highstream.net) Date: Wed, 23 Feb 2005 15:19:36 -0500 Subject: anyone else using check_email_loop.sh? Message-ID: <1109189976.421ce55860e02@webmail.highstream.net> I'm not sure if there is a problem with my servers or the script itself, with a threshold of 3 lost mails for critical status it usually hits that at least once per day. anyone else use this script and getting what seem to be false positives? this is a pretty standard qmail set up, I can't imagine I'm losing this much mail on 2 servers that seem to be totally fine. brian ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From psbourgeau at mpccorp.com Wed Feb 23 21:28:57 2005 From: psbourgeau at mpccorp.com (Paul Bourgeau) Date: Wed, 23 Feb 2005 13:28:57 -0700 Subject: receiving SNMP traps to page Message-ID: <2638AB7E1672B842901B0B49421B87DF0C25B0@mpc00email3.micronpc.com> No, I did not. I apologize. -----Original Message----- From: Dan Stromberg [mailto:strombrg at dcs.nac.uci.edu] Sent: Wednesday, February 23, 2005 2:16 PM To: Paul Bourgeau Cc: strombrg at dcs.nac.uci.edu Subject: Re: [Nagios-users] receiving SNMP traps to page You're aware that your great big disclaimer is setting off some antispam filters? On Wed, 2005-02-23 at 13:13 -0700, Paul Bourgeau wrote: > I want to set up Nagios to receive traps from other devices/programs > but I am unsure how to do it. Can anyone give me a quick hand? > Disclaimer: 23/2/2005 MPC Computers is providing the following information in compliance with federal regulations: MPC Computers, LLC 906 E. Karcher Road Nampa, Idaho 83687 1-888-224-4247 http://www.mpccorp.com To discontinue receiving e-mail communications from MPC in the future, please go to: http://www.mpccorp.com/email/manage.html and follow the instructions. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ac at itpartner.nu Wed Feb 23 22:56:09 2005 From: ac at itpartner.nu (Anders Christensen) Date: Wed, 23 Feb 2005 22:56:09 +0100 Subject: SV: receiving SNMP traps to page References: <2638AB7E1672B842901B0B49421B87DF0C25AF@mpc00email3.micronpc.com> Message-ID: <9370773F5F35CB4281A6C3EC61E3A0CA041903@itpdk-srv01.itpartner.dom> I could really use some information about, how to setup Nagios 1.3 (Guess it is the same ways as in 1.2) to recieve SNMP traps. ________________________________ Fra: nagios-users-admin at lists.sourceforge.net p? vegne af Paul Bourgeau Sendt: on 23-02-2005 21:13 Til: nagios-users at lists.sourceforge.net Emne: [Nagios-users] receiving SNMP traps to page I want to set up Nagios to receive traps from other devices/programs but I am unsure how to do it. Can anyone give me a quick hand? Disclaimer: 23/2/2005 MPC Computers is providing the following information in compliance with federal regulations: MPC Computers, LLC 906 E. Karcher Road Nampa, Idaho 83687 1-888-224-4247 http://www.mpccorp.com To discontinue receiving e-mail communications from MPC in the future, please go to: http://www.mpccorp.com/email/manage.html and follow the instructions. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 552 bytes Desc: image001.gif URL: From amacks at techtarget.com Wed Feb 23 23:21:47 2005 From: amacks at techtarget.com (Aaron Macks) Date: Wed, 23 Feb 2005 17:21:47 -0500 Subject: problem with new installation: "Could not expand member hosts..." Message-ID: <1278f8a9d82bbe518f8d98ccec50d632@techtarget.com> I've noticed several records of similar problems in the archive, but no concrete answers. I'm upgrading fron netsaint 0.0.7 (yes I know) to Nagios 1.2 with some scripts to translate the config file, but I'm getting the following error: Error: Could not find host 'erica' Error: Could not expand member hosts specified in hostgroup (config file '/apps/nagios/etc/hostgroups.cfg', line 97) Here is the hostgroup definition(and the previous): define hostgroup{ hostgroup_name mci.crosscheck alias mci.crosscheck contact_groups oncall,sysadmins members otto } define hostgroup { hostgroup_name eng.jboss alias eng.jboss contact_groups oncall,sysadmins members erica,mario } and here is the host definition(and the previous): define host { use generic-host name otto.xxx.com alias otto address xxx.xxx.xxx.xxx check_command check-host-alive max_check_attempts 5 notification_interval 60 notification_period 24x7 notification_options r,d,u } define host { use generic-host name erica.xxx.com alias erica address xxx.xxx.xxx.xxx check_command check-host-alive max_check_attempts 5 notification_interval 60 notification_period 24x7 notification_options r,d,u } any thoughts? Aaron ____________________________________________ Aaron Macks amacks at techtarget.com TechTarget PGP keyid: FBE946C5 117 Kendrick St, Suite 800 Phone: (781) 657-1519 Needham, MA 02494 Fax: (781) 657-1100 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From g.vickers at qut.edu.au Wed Feb 23 23:49:10 2005 From: g.vickers at qut.edu.au (Greg Vickers) Date: Thu, 24 Feb 2005 08:49:10 +1000 Subject: problem with new installation: "Could not expand member hosts..." In-Reply-To: <1278f8a9d82bbe518f8d98ccec50d632@techtarget.com> References: <1278f8a9d82bbe518f8d98ccec50d632@techtarget.com> Message-ID: <421D0866.9070109@qut.edu.au> alias != name The 'name' directive is what has to be unique, the 'alias' directive is a meaningless (well, it can be) string. e.g. name erica alias Erica is a fat server Looks like your script is writing alias to name and vice versa. My other thought is why are you using Nagios 1.x? Sure Nagios 2.0 is beta but damn it has a lot of advantages over 1.x... (faster, better reporting, etc etc) HTH, Greg Aaron Macks wrote: > I've noticed several records of similar problems in the archive, but no > concrete answers. I'm upgrading fron netsaint 0.0.7 (yes I know) to > Nagios 1.2 with some scripts to translate the config file, but I'm > getting the following error: > Error: Could not find host 'erica' > Error: Could not expand member hosts specified in hostgroup (config file > '/apps/nagios/etc/hostgroups.cfg', line 97) > > Here is the hostgroup definition(and the previous): > define hostgroup{ > hostgroup_name mci.crosscheck > alias mci.crosscheck > contact_groups oncall,sysadmins > members otto > } > define hostgroup { > hostgroup_name eng.jboss > alias eng.jboss > contact_groups oncall,sysadmins > members erica,mario > } > > and here is the host definition(and the previous): > define host { > use generic-host > name otto.xxx.com > alias otto > address xxx.xxx.xxx.xxx > check_command check-host-alive > max_check_attempts 5 > notification_interval 60 > notification_period 24x7 > notification_options r,d,u > } > define host { > use generic-host > name erica.xxx.com > alias erica > address xxx.xxx.xxx.xxx > check_command check-host-alive > max_check_attempts 5 > notification_interval 60 > notification_period 24x7 > notification_options r,d,u > } > > any thoughts? > Aaron > ____________________________________________ > Aaron Macks amacks at techtarget.com > TechTarget PGP keyid: FBE946C5 > 117 Kendrick St, Suite 800 Phone: (781) 657-1519 > Needham, MA 02494 Fax: (781) 657-1100 > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk > being sent to /dev/null > -- Greg Vickers Lab Monitor Project Manager Teaching and Learning Support Services Information Technology Services Queensland University of Technology email: g.vickers at qut.edu.au phone: (07) 3864 8276 mobile: 0416 001 674, SD #6 6147 CIROS code: 00213J ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.Smith at demandtec.com Thu Feb 24 00:00:25 2005 From: Edward.Smith at demandtec.com (Ed Smith) Date: Wed, 23 Feb 2005 15:00:25 -0800 Subject: nagios interals Message-ID: <2B5C62C548D2FC48BC0334E8AE494185058C7AB3@parrot.demandtec.com> Hi, Anyone know where I can get some information about nagios internals such as finidng the sheduling queue, more error logging than standard and just something that lets me know the process that requests and checks go through after I click on the "okay" button? We often have intermittent problems with our installation, and knowing a bit more about it (mostly from verbose log files if possible) would help a lot in the debug process. Thanks. Ed ------------------------ Edward Smith Systems Application Engineer Demandtec, Inc esmith at demandtec.com 650-226-4609 --------------------------------------------------------------------------------------------------------------------------------------------- DEMANDTEC EMAIL NOTICE:

NOTICE: This email transmission and all attached files contain information intended for the designated individual or entity to whom it is addressed and may contain information that is proprietary, privileged and/or exempt from disclosure under applicable law. If you are not the intended recipient or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, copying, or other use of this email or its attachments is strictly prohibited. If you have received this email in error, please notify the sender immediately by replying to this message and please delete the original message without making any copies.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. Although we have taken reasonable precautions to ensure that this email and all attachments are free from viruses, we accept no liability for any loss or damage arising from the use of this email or its attachments. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From noyler at khimetrics.com Thu Feb 24 00:19:47 2005 From: noyler at khimetrics.com (Nathan Oyler) Date: Wed, 23 Feb 2005 16:19:47 -0700 Subject: Check_mount? Message-ID: <59B15593F41BD24591D59436E7226EAD016EB1C4@Khiphx2.khimetrics.com> Does anyone know of, or use a plugin that would verify that all mounts on the machine are accessable? We are having some problems with umounts and errors because we mount so many machines to so many different boxes, and that's hard to keep track of. Nathan Oyler Information Technology 480-308-2342 Office Khimetrics Inc. Maximizing Sales & Profit Revenue Management from Khimetrics ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rickm at 3d3.com Thu Feb 24 01:35:33 2005 From: rickm at 3d3.com (Rick Measham) Date: Thu, 24 Feb 2005 11:35:33 +1100 Subject: Users Warning .. on virtual users Message-ID: <1109205332.8632.151.camel@rickm.local> > USERS WARNING - 10 users currently logged in We're getting the above warning. Personally I'd like to bring that number down as there's only a handful of us who log in. HOWEVER, once logged in I run `screen`, with up to 10 screens running. The output of `who` shows each of these screens in it's list, but they're easily parsable. I'd probably be able to delve into the source-code etc, and find what needs changing, however I thought I'd first ask if anyone else has this problem and if anyone has any hints. I'm not in charge of Nagios here, but as I'm the one who keeps triggering the alert, I need to fix it! I've not even looked at the config, so if there's an option in there somewhere to get it to ignore screens, please let me know and accept my appologies for not having a clue! Cheers! Rick -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From mjb at clari.net.au Thu Feb 24 01:51:21 2005 From: mjb at clari.net.au (Marcus Barczak) Date: Thu, 24 Feb 2005 11:51:21 +1100 Subject: Users Warning .. on virtual users In-Reply-To: <1109205332.8632.151.camel@rickm.local> References: <1109205332.8632.151.camel@rickm.local> Message-ID: Rick, > I'm not in charge of Nagios here, but as I'm the one who keeps > triggering the alert, I need to fix it! I've not even looked at the > config, so if there's an option in there somewhere to get it to ignore > screens, please let me know and accept my appologies for not having a > clue! Checkout the 'deflogin' option in .screenrc you can set screen up such that it won't create a utmp entry for new screens. You can also use the -l command line option, or Ctrl+A L to toggle a login on or off in utmp. Checkout the screen manpage for further details. Cheers, Marcus ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rickm at 3d3.com Thu Feb 24 03:49:48 2005 From: rickm at 3d3.com (Rick Measham) Date: Thu, 24 Feb 2005 13:49:48 +1100 Subject: Users Warning .. on virtual users In-Reply-To: References: Message-ID: <1109213388.8632.154.camel@rickm.local> I wrote: > > I'm not in charge of Nagios here, but as I'm the one who keeps > > triggering the alert, I need to fix it! I've not even looked at the > > config, so if there's an option in there somewhere to get it to ignore > > screens, please let me know and accept my appologies for not having a > > clue! On Thu, 2005-02-24 at 11:51, Marcus Barczak kindly replied: > Checkout the 'deflogin' option in .screenrc you can set screen up such that > it won't create a utmp entry for new screens. You can also use the -l > command line option, or Ctrl+A L to toggle a login on or off in utmp. I knew it would be something simple ... I'll do just as you suggest. Thanks! Rick -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From Stanley.Hopcroft at IPAustralia.Gov.AU Thu Feb 24 04:10:53 2005 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Thu, 24 Feb 2005 14:10:53 +1100 Subject: Nagios-users digest, Vol 1 #2481 - 27 msgs In-Reply-To: <20050223220049.1592213853@sc8-sf-spam2.sourceforge.net> References: <20050223220049.1592213853@sc8-sf-spam2.sourceforge.net> Message-ID: <20050224031053.GG51212@IPAustralia.Gov.AU> Dear Sir, I am writing to thank you for your letter and say, On Wed, Feb 23, 2005 at 01:58:33PM -0800, nagios-users-request at lists.sourceforge.net wrote: > Message: 8 > Date: Wed, 23 Feb 2005 08:13:11 -0500 (EST) > From: Tom Gwilt > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Problem on installation of Nagios on BSD! > > On Wed, 23 Feb 2005, Hamed Majnoonian wrote: > > > Dear all, > > > > I have a 4.10 BSD box and I am trying to install Nagios on it. The problem > > is: > > 1- The "make" phase is good. > > 2- When I want to "make install" I've received this message > > "p5-NET-SNMP-5.0.1_1 requires perl 5.6.xor later." > > > > I have installed the perl 5 and everything was fine during installation. > > Tried again to install nagios but the same error message appeared. I > > deinstalled perl 5 and installed perl 5.8 but the problem still is there. > > > > Can anybody help? > > > > did you run the use.perl port command after the install (provided you > upgraded perl via the ports...) > use.perl port is probably what you need, but otherwise, you may want to delete config.cache and repeat the configuration phase. BTW, do you mean 'Nagios' or 'Nagios plugins'. I don't think Nagios requires anything to do with SNMP let alone the Perl module Net::SNMP. Lastly, FreeBSD has Perl 5.005_03 built in (and has since about RELENG 3) so you should never need to install Perl unless, as may be the case here, you need a module that requires Perl > 5.6. If you do install a new Perl remember that you _must_ do something about the Perl modules to make them available to the new Perl ... (I thought a procedure for reinstalling the p5 ports was described in the port directory but I can't find it now. I reinstalled manually after the screams ...; the XS modules [C code] must be recompiled with the new Perl) > Tom > Yours sincerely. -- Stanley Hopcroft IP Australia Ph: (02) 6283 3189 Fax: (02) 6281 1353 PO Box 200 Woden ACT 2606 http://www.ipaustralia.gov.au -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: disclaimer.txt URL: From jkanimea at itc.gov.fj Thu Feb 24 04:21:16 2005 From: jkanimea at itc.gov.fj (Jack A. Kanimea) Date: Thu, 24 Feb 2005 15:21:16 +1200 Subject: Status Map Message-ID: <215C20B52BAEB9439EF08A32483AE9DC0151D3A2@suvxch02.govnet.local> Help on Status Map, How do we attached a image to status map. FOr example am monitor routers, switches, as well as wireless devices. I want to attach a router image to all routers. Any ideas or thoughts, thanks in advance, Jack K ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 at webtent.com Thu Feb 24 05:17:52 2005 From: robert at webtent.com (Robert Fitzpatrick) Date: Wed, 23 Feb 2005 23:17:52 -0500 Subject: Logging Message-ID: <1667DBD8004CAD4D48EF58F5@[192.168.1.57]> I have a new install of Nagios 1.2 on SuSE 9.2 and it will not log anything except startup and shutdown. Even though I have most logging options enabled including log_notifications=1, I am only getting startup and shutdown messages. I even compared my nagios.cfg file to a working Nagios install and cannot find differences. Any ideas? -- Robert ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From amacks at techtarget.com Thu Feb 24 05:35:45 2005 From: amacks at techtarget.com (Aaron Macks) Date: Wed, 23 Feb 2005 23:35:45 -0500 Subject: config changes between 1.2 and 2,0 In-Reply-To: <421D0866.9070109@qut.edu.au> References: <1278f8a9d82bbe518f8d98ccec50d632@techtarget.com> <421D0866.9070109@qut.edu.au> Message-ID: <867e6a4a71c8211187ccf790d1fe86aa@techtarget.com> are there any changes to config files between 1.2 and 2.x? Aaron ____________________________________________ Aaron Macks amacks at techtarget.com TechTarget PGP keyid: FBE946C5 117 Kendrick St, Suite 800 Phone: (781) 657-1519 Needham, MA 02494 Fax: (781) 657-1100 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From amontibello at gmail.com Thu Feb 24 06:19:52 2005 From: amontibello at gmail.com (Anthony Montibello) Date: Thu, 24 Feb 2005 00:19:52 -0500 Subject: trouble with latency In-Reply-To: <421CB5C9.7030405@mcs.anl.gov> References: <421CB5C9.7030405@mcs.anl.gov> Message-ID: hi Scott, The company I work for was having a similar issue with Nagios V1.2. My coworker repaired this issue, It was due to our nagios configuration using an OBSESS OVER SERVICE command to push each check result into an external database. This command was causing the latency. He replaced the check_command to resolve the issue. So to verify that your problem is not something similar, set obsess_over_services=0 and if this reduces the latency then you know the issue may be related to the ocsp_command that is being run. On Wed, 23 Feb 2005 10:56:41 -0600, Scott Behrens wrote: > > I am getting roughly 3354 seconds of latency per check and I am not sure > why. Everything is enabled in smart mode except for max_concurent_checks > because I had trobule with swap. I took the minimum recommended number and > multiplied it by to and set max_concurent_checks to 100. Any suggestions? > Also 95% of my checks use NRPE. > Total services: 1812 > Total hosts: 175 > MetricMin.Max.Average > Check Execution Time: < 1 sec6 sec0.345 sec > Check Latency:2967 sec3859 sec3748.046 sec > Percent State Change:0.00%0.00%0.00%-- Scott Behrens Network and Systems > Staff Room B-244 1-630-252-4198 Mathematics and Computer Science > Division Argonne National Laboratory ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mime at forumsql.se Thu Feb 24 09:39:35 2005 From: mime at forumsql.se (Michael Medin) Date: Thu, 24 Feb 2005 09:39:35 +0100 Subject: NSClient 0.0.1 RC1 Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Andreas Ericsson > Sent: Tuesday, February 22, 2005 10:33 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] NSClient 0.0.1 RC1 > > Michael Medin wrote: > > Hi, > > > > > > > > I have just released RC1 of NSClient++ it has basic functionality and > > supports most of the basic commands of NSClient. (only REQ_COUNTER, > > REQ_FILEAGE and REQ_INSTANCES are missing). > > > > Nice work. I'll get to testing immediately. On which versions of MS > os'es should this theoretically work? Theoretically it should work on *all* w32 based OSes (that's I believe NT 3.51 and Windows 95 and above). But given the kernel architecture of w98 I'm not 100% sure all the APIs I use are there/do what they should. But to be realistically, NT4, W2K, W2K3, XP should work. (I have tested on 2K, 2K3, and XP. Haven't had time to test on our NT4 servers yet (as they are in production it's hard to get access to them ;) > > > It can be found at http://sourceforge.net/projects/nscplus/ > > > > Simple installation instructions: > > > > Unzip to a directory of you choice, run "NSClient++ /install" to > > install the service definition and then "NSCLient++ /start" to start > > the service. If you rather not run it as a service run "NSClient++ > > /test" to start the program interactively. A few important things: be > > sure to comment out either ConsoleLogger.dll or FileLogger.dll > > depending on if you run it interactively or as a service. Also note > > that this by default binds to port 1234 (as to not collide with > > NSClient). > > Perhaps it would be prudent to get rid of the ancient MS Exchange > problem and have it bind 12248 or some other address in the "free fire > zone" (non-standard, non-common) by default instead? Well it is of course configurable in the INI-file but a high default port might be better. Will do in the next release. // Michael Medin > > > Check out readme.txt for details on how to install / > > configure and use the application. > > > > As for resources/leaks I ran this for about 24 hours on a few of our > > servers during yesterday polling about 5 times each second without > > much impact (used 2.2Mb memory and pretty much no CPU, according to > > ProcExp www.sysinternals.com) > > > > > > > > **IMPORTANT** > > > > Don't go changing all you NSClient's as of yet, this is a work in > > progress, settings/options/things might change and you will have to > > do it all over again, but please feel free to test this on all your > > installations :) > > > > > > > > A few things I am interested in (read feedback): > > > > 1, Does it work on ? > > > > 2, Does it work as expected? > > > > 3, Settings is not 100% compatible with NSClient, should I add an > > option "settings=read from nsclient" or similar to make it a *drop > > in* replacement? > > > > To me this feels a bit excessive as you need to "install" the exe > > file anyway so you might as well fix your own custom config and > > install that as well. > > > > 4, Installation procedure? (I don't really know at all how people > > generally installs these kinds of things so feedback here would be > > interesting) > > > > 5, How does: Counters work, can someone send me an example of this ? > > > > 6, How does REQ_FILEAGE work? (I can find no documentation in > > check_nt for this command.) > > > > 7, How does REQ_INSTANCES work? (I can find no documentation in > > check_nt for this command.) > > > > 8, Should I post to this list ? (should I move this to "my own" list) > > > > > > > > > > > > > > Regards, > > > > > > > > Michael Medin > > > > > > > > Direkt: 08-410 052 42 > > > > Mobil: 0733-35 55 42 > > > > E-mail: michael.medin at altcom.se > > > > Internet: WWW.ALTCOM.SE > > > > > > > > ALTCOM AB SEGELB?TSV?GEN 2, 11264 STOCKHOLM TELEFON: 08-7 300 300 > > FAX: 08-7 300 305 EMAIL: INFO at ALTCOM.SE > > INTERNET: WWW.ALTCOM.SE > > > > > > > > > > This message contains information that may be privileged or > > confidential and is the property of the Altcom AB. It is intended > > only for the person to whom it is addressed. If you are not the > > intended recipient, you are not authorized to read, print, retain, > > copy, disseminate, distribute, or use this message or any part > > thereof. If you receive this message in error, please notify me > > immediately and delete all copies of this message. > > > > > > > > > > -- > Andreas Ericsson andreas.ericsson at op5.se > OP5 AB www.op5.se > Lead Developer > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Feb 24 09:49:04 2005 From: ae at op5.se (Andreas Ericsson) Date: Thu, 24 Feb 2005 09:49:04 +0100 Subject: check_users In-Reply-To: <2638AB7E1672B842901B0B49421B87DF0C25AC@mpc00email3.micronpc.com> References: <2638AB7E1672B842901B0B49421B87DF0C25AC@mpc00email3.micronpc.com> Message-ID: <421D9500.40802@op5.se> Paul Bourgeau wrote: > Is it possible to see what users are logged in with this check_ command? > > check_users --help -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Feb 24 09:51:20 2005 From: ae at op5.se (Andreas Ericsson) Date: Thu, 24 Feb 2005 09:51:20 +0100 Subject: anyone else using check_email_loop.sh? In-Reply-To: <1109189976.421ce55860e02@webmail.highstream.net> References: <1109189976.421ce55860e02@webmail.highstream.net> Message-ID: <421D9588.9080407@op5.se> brianmas at highstream.net wrote: > > I'm not sure if there is a problem with my servers or the script itself, with a > threshold of 3 lost mails for critical status it usually hits that at least > once per day. > > anyone else use this script and getting what seem to be false positives? this is > a pretty standard qmail set up, I can't imagine I'm losing this much mail on 2 > servers that seem to be totally fine. > Do you have any filters deleting duplicates? Spam-filters? Check those logs if you have them. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Feb 24 09:53:18 2005 From: ae at op5.se (Andreas Ericsson) Date: Thu, 24 Feb 2005 09:53:18 +0100 Subject: config changes between 1.2 and 2,0 In-Reply-To: <867e6a4a71c8211187ccf790d1fe86aa@techtarget.com> References: <1278f8a9d82bbe518f8d98ccec50d632@techtarget.com> <421D0866.9070109@qut.edu.au> <867e6a4a71c8211187ccf790d1fe86aa@techtarget.com> Message-ID: <421D95FE.4000902@op5.se> Aaron Macks wrote: > are there any changes to config files between 1.2 and 2.x? Yes. The tools at http://oss.op5.se/nagios can help you migrate, provided you have a working config for 1.2 and the command line version of php installed. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Feb 24 09:53:59 2005 From: ae at op5.se (Andreas Ericsson) Date: Thu, 24 Feb 2005 09:53:59 +0100 Subject: nagios interals In-Reply-To: <2B5C62C548D2FC48BC0334E8AE494185058C7AB3@parrot.demandtec.com> References: <2B5C62C548D2FC48BC0334E8AE494185058C7AB3@parrot.demandtec.com> Message-ID: <421D9627.7000806@op5.se> Ed Smith wrote: > Hi, > > Anyone know where I can get some information about nagios internals > such as finidng the sheduling queue, more error logging than standard > and just something that lets me know the process that requests and > checks go through after I click on the "okay" button? We often have > intermittent problems with our installation, and knowing a bit more > about it (mostly from verbose log files if possible) would help a lot > in the debug process. Thanks. > The source is open. Read it. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Feb 24 09:56:25 2005 From: ae at op5.se (Andreas Ericsson) Date: Thu, 24 Feb 2005 09:56:25 +0100 Subject: Status Map In-Reply-To: <215C20B52BAEB9439EF08A32483AE9DC0151D3A2@suvxch02.govnet.local> References: <215C20B52BAEB9439EF08A32483AE9DC0151D3A2@suvxch02.govnet.local> Message-ID: <421D96B9.3010204@op5.se> Jack A. Kanimea wrote: > Help on Status Map, > How do we attached a image to status map. FOr example > am monitor routers, switches, as well as wireless devices. I want to > attach a router image to all routers. Any ideas or thoughts, > thanks in advance, grep the docs for statusmap_image and hostextinfo object definitions. > Jack K > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Philipp.Sand at sycor.de Thu Feb 24 10:37:32 2005 From: Philipp.Sand at sycor.de (Sand Philipp) Date: Thu, 24 Feb 2005 10:37:32 +0100 Subject: receiving SNMP traps to page Message-ID: <6943DE9E9934CD42BBE4A20E0E28E10E011C973E@SYGOMAIL.GOE.AD.SYCOR.DE> There had been a nice threat regarding the integration auf eventlog traps from windows in nagios. Just search the archive for it. There is a good how to integrate the traps into nagios. Keywords you could use for search is snmptt (snmptrap translator). Ist a little prog, in which you can configure how your system handles incoming traps. ________________________________ From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Paul Bourgeau Sent: Wednesday, February 23, 2005 9:14 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] receiving SNMP traps to page I want to set up Nagios to receive traps from other devices/programs but I am unsure how to do it. Can anyone give me a quick hand? ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From timothy at icts.uct.ac.za Thu Feb 24 11:02:47 2005 From: timothy at icts.uct.ac.za (Timothy Carr) Date: Thu, 24 Feb 2005 12:02:47 +0200 Subject: receiving SNMP traps to page In-Reply-To: <6943DE9E9934CD42BBE4A20E0E28E10E011C973E@SYGOMAIL.GOE.AD.SYCOR.DE> References: <6943DE9E9934CD42BBE4A20E0E28E10E011C973E@SYGOMAIL.GOE.AD.SYCOR.DE> Message-ID: <421DA647.7020104@icts.uct.ac.za> Hi, Mabe you wanna have a look at this next months issue of the " SYS Admin ". They have a very interesting article on how they have setup Nagios and SNMP traps. -- Tim Sand Philipp wrote: > >There had been a nice threat regarding the integration auf eventlog >traps from windows in nagios. Just search the archive for it. There is a >good how to integrate the traps into nagios. >Keywords you could use for search is snmptt (snmptrap translator). Ist a >little prog, in which you can configure how your system handles incoming >traps. > >________________________________ > > From: nagios-users-admin at lists.sourceforge.net >[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Paul >Bourgeau > Sent: Wednesday, February 23, 2005 9:14 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] receiving SNMP traps to page > > > > I want to set up Nagios to receive traps from other >devices/programs but I am unsure how to do it. Can anyone give me a >quick hand? > > > > > > > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_ide95&alloc_id396&op=click >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > > > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From arne.martin at gmail.com Thu Feb 24 12:03:33 2005 From: arne.martin at gmail.com (Arne Martin Moen) Date: Thu, 24 Feb 2005 12:03:33 +0100 Subject: Status Map In-Reply-To: <215C20B52BAEB9439EF08A32483AE9DC0151D3A2@suvxch02.govnet.local> References: <215C20B52BAEB9439EF08A32483AE9DC0151D3A2@suvxch02.govnet.local> Message-ID: Hi! Just download the logos and put them in the /your/nagiosdir/share/images/logos folder. Then make a file called "hostextinfo.cfg" i your etc-folder and here's an example from my file: define hostextinfo { host_name Abilene icon_image router40.png icon_image_alt Cisco 2500 Router vrml_image router40.png statusmap_image router40.gd2 } This adds the router called Abilene to the map with the router-logo. Then you have to add this line to your cgi.cfg: xedtemplate_config_file=/your/nagiosdir/etc/hostextinfo.cfg That should be it, I think...! Good luck anyway! -- ARNi tha friendly ghost +++++++++++++++++++++++++++++++++++++++++++++ | In a world without fences, there's no need for Gates | +++++++++++++++++++++++++++++++++++++++++++++ On Thu, 24 Feb 2005 15:21:16 +1200, Jack A. Kanimea wrote: > Help on Status Map, > How do we attached a image to status map. FOr example > am monitor routers, switches, as well as wireless devices. I want to > attach a router image to all routers. Any ideas or thoughts, > thanks in advance, > Jack K > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id396&opclick > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Philipp.Sand at sycor.de Thu Feb 24 12:21:33 2005 From: Philipp.Sand at sycor.de (Sand Philipp) Date: Thu, 24 Feb 2005 12:21:33 +0100 Subject: receiving SNMP traps to page Message-ID: <6943DE9E9934CD42BBE4A20E0E28E10E011C9745@SYGOMAIL.GOE.AD.SYCOR.DE> Sounds interesting. I don't know this magazine, in which countries can it be purchased? Maybe thisould be interesting for Ethan, to post it on nagios.org... > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf > Of Timothy Carr > Sent: Thursday, February 24, 2005 11:03 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] receiving SNMP traps to page > > Hi, > > Mabe you wanna have a look at this next months issue of the " > SYS Admin ". They have a very interesting article on how they > have setup Nagios and SNMP traps. > > -- > Tim > > Sand Philipp wrote: > > > > >There had been a nice threat regarding the integration auf eventlog > >traps from windows in nagios. Just search the archive for > it. There is > >a good how to integrate the traps into nagios. > >Keywords you could use for search is snmptt (snmptrap > translator). Ist > >a little prog, in which you can configure how your system handles > >incoming traps. > > > >________________________________ > > > > From: nagios-users-admin at lists.sourceforge.net > >[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Paul > >Bourgeau > > Sent: Wednesday, February 23, 2005 9:14 PM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] receiving SNMP traps to page > > > > > > > > I want to set up Nagios to receive traps from other > devices/programs > >but I am unsure how to do it. Can anyone give me a quick hand? > > > > > > > > > > > > > > > > > >------------------------------------------------------- > >SF email is sponsored by - The IT Product Guide Read honest & candid > >reviews on hundreds of IT Products from real users. > >Discover which products truly live up to the hype. Start reading now. > >http://ads.osdn.com/?ad_ide95&alloc_id396&op=click > >_______________________________________________ > >Nagios-users mailing list > >Nagios-users at lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/nagios-users > >::: Please include Nagios version, plugin version (-v) and > OS when reporting any issue. > >::: Messages without supporting info will risk being sent to > /dev/null > > > > > > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide Read honest & > candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lgetschel at denver.westerngeco.slb.com Thu Feb 24 17:34:14 2005 From: lgetschel at denver.westerngeco.slb.com (Lewis Getschel) Date: Thu, 24 Feb 2005 09:34:14 -0700 Subject: event handler runs for timeouts, not state changes, why? Message-ID: <421E0206.7040807@denver.westerngeco.slb.com> All- I didn't try to do this, and don't even know if nagios is supposed to be this specific Short description: My event handler seems to be called ONLY when an 'error' occurs like "connection refused" or "CHECK_NRPE: Socket timeout after 25 seconds.". I know this because the start of the script echos the parameters into a file. But when a state change occurs, the handler doesn't echo anything, which seems to be proof that it isn't being called, even though the event log says it was called. Longer description: I have an event handler defined for a service, the first lines are a set of echos of the parameters into a text file. Here is an event that was a timeout and the event handler (event_diskmail) is called: [02-24-2005 04:22:16] SERVICE EVENT HANDLER: dvfs004;linux-fsdisk1;CRITICAL;SOFT;2;event_diskmail [02-24-2005 04:22:16] SERVICE ALERT: dvfs004;linux-fsdisk1;CRITICAL;SOFT;2;CHECK_NRPE: Socket timeout after 25 seconds. and here is the text from the /tmp/nagios_event_debug.txt (echo of $1 - $9) Thu Feb 24 04:22:16 MST 2005 1 -CRITICAL -SERVICESTATE 2 -SOFT -STATETYPE 3 -2 -SERVICEATTEMPT 4 -dvfs004 -HOSTNAME 5 -linux-fsdisk1 -SERVICEDESC 6-9 -CHECK_NRPE: Socket timeout after -OUTPUT nagios ---------------- OK, that part's fine, the script checks for the timeout errors and exits properly. Here the nagios event log shows that the handler is called for a state change (and a 'regular' notification was sent): [02-24-2005 05:42:35] SERVICE EVENT HANDLER: dvfs001;linux-fsdisk1;WARNING;HARD;4;event_diskmail [02-24-2005 05:42:34] SERVICE NOTIFICATION: deop00;dvfs001;linux-fsdisk1;WARNING;notify-by-email;DISK WARNING [182453808 kB (10%) free on /dev/sdb1] [02-24-2005 05:42:34] SERVICE ALERT: dvfs001;linux-fsdisk1;WARNING;HARD;4;DISK WARNING [182453808 kB (10%) free on /dev/sdb1] BUT, the debug text file does NOT show it being called at all (no text/date/parameters are present), (Don't confuse notification email with my diskmail routine, my diskmail routine sends mail to the users who are running low on disk space) Specifics: Nagios 1.2 1160 hosts, 1396 services in services.cfg: (I define the service that will use the event handler) define service{ use linux-service name linux-fsdisk1 service_description linux-fsdisk1 check_command check_nrpe!check_fsdisk1 event_handler_enabled 1 event_handler event_diskmail register 0 } (and I define the event handler itself) # Service definition for sending email on dvfs00x systems define command{ command_name event_diskmail command_line /usr/lib/nagios/plugins/event_handler_diskmail $SERVICESTATE$ $STATETYPE$ $SERVICEATTEMPT$ $HOSTNAME$ $SERVICEDESC$ $OUTPUT$ }# Service definition define service{ use generic-service name linux-service is_volatile 0 check_period 24x7 max_check_attempts 4 normal_check_interval 20 retry_check_interval 3 contact_groups ops-escalation-group , dets-escalation-group notification_interval 60 notification_period 24x7 notification_options w,c,r register 0 } in hosts.cfg (I assign the service to a host system) # service definition define service{ use linux-fsdisk1 host_name dvfs001,dvfs002, (and so on for the rest of the servers) } Finally, the head of the event_handler_diskmail file: (extra file comments removed here) #!/bin/sh # Whenever I test this, I forget to run as NAGIOS, NOT root or myself, check it! CURRENT_USER=`whoami` if [ "$CURRENT_USER" != "nagios" ] ; then echo ========================================== >> /tmp/nagios_event_debug.txt echo "_WRONG_ you are running this as $CURRENT_USER , you should be _nagios_" echo --- WRONG user. it is not _nagios_ user >> /tmp/nagios_event_debug.txt echo `whoami` >> /tmp/nagios_event_debug.txt echo =========== Bailing out of script! =============================== >> /tmp/nagios_event_debug.txt exit 255 fi # Echo parameters that were passed for debugging purposes. # echo "-------------------------------------------" >> /tmp/nagios_event_debug.txt echo `date` >> /tmp/nagios_event_debug.txt # echo Passed Parameters are: echo 1 -$1 -SERVICESTATE >> /tmp/nagios_event_debug.txt echo 2 -$2 -STATETYPE >> /tmp/nagios_event_debug.txt echo 3 -$3 -SERVICEATTEMPT >> /tmp/nagios_event_debug.txt echo 4 -$4 -HOSTNAME >> /tmp/nagios_event_debug.txt echo 5 -$5 -SERVICEDESC >> /tmp/nagios_event_debug.txt echo 6-9 -$6 $7 $8 $9 -OUTPUT >> /tmp/nagios_event_debug.txt echo `whoami` >> /tmp/nagios_event_debug.txt echo --------------------------------------------- >> /tmp/nagios_event_debug.txt (BTW, the script runs perfectly fine if I sudo su nagios, and run the script manually with the parameters) HELP, I can't figure out how to get the event handler to be called for state changes. Any help would be greatly appreciated. Thanks. -- Lewis Getschel | Today is done... WesternGeco | Today was fun... 1625 Broadway | Tomorrow is another one. Denver, CO 80202 | Direct Phone - 303-389-4407| -- Dr. Seuss -- ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rajeshkr206 at yahoo.com Thu Feb 24 18:22:29 2005 From: rajeshkr206 at yahoo.com (Rajesh Kumar) Date: 24 Feb 2005 09:22:29 PST Subject: Please help me update my address book on Ringo Message-ID: <20050224172229.6509277EAE@slice.ringo.com> Hi I'm updating my address book. Please click on the link below and enter your contact info for me: http://ringo.com/i?uid=IJjqAm8__oPocd2R& I'm using a new, free service where I put in my contact info for you, you put in your contact info for me, and everyone stays up to date automatically. It's surprisingly easy and useful. Thanks for your help. Rajesh ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From psbourgeau at mpccorp.com Thu Feb 24 20:11:03 2005 From: psbourgeau at mpccorp.com (Paul Bourgeau) Date: Thu, 24 Feb 2005 12:11:03 -0700 Subject: check_users Message-ID: <2638AB7E1672B842901B0B49421B87DF0C25B4@mpc00email3.micronpc.com> Yeah, there is nothing except to list the warning and critical levels to alert on. Is there anything else that I can use to view users (usernames) that are logged on? Thank You, Paul Bourgeau Ph: 262-523-3300 x60279 Fx: 208-898-2371 psbourgeau at mpccorp.com -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Andreas Ericsson Sent: Thursday, February 24, 2005 2:49 AM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] check_users Paul Bourgeau wrote: > Is it possible to see what users are logged in with this check_ command? > > check_users --help -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null Disclaimer: 24/2/2005 MPC Computers is providing the following information in compliance with federal regulations: MPC Computers, LLC 906 E. Karcher Road Nampa, Idaho 83687 1-888-224-4247 http://www.mpccorp.com To discontinue receiving e-mail communications from MPC in the future, please go to: http://www.mpccorp.com/email/manage.html and follow the instructions. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From don.alfredo at pandora.be Fri Feb 25 00:05:41 2005 From: don.alfredo at pandora.be (Don Alfredo) Date: Fri, 25 Feb 2005 00:05:41 +0100 Subject: NSClient 0.0.1 RC1 In-Reply-To: References: Message-ID: <200502250005.41962.don.alfredo@pandora.be> On Tuesday 22 February 2005 10:24, Michael Medin wrote: > 4, Installation procedure? (I don't really know at all how people generally > installs these kinds of things so feedback here would be interesting) we use Inno Setup (http://www.jrsoftware.org/isinfo.php) to quick-install NSClient, NRPE_NT and Steve Shipways' nagevlog along with or own config files, registry settings, external scripts/exes,... it also allows a "decent" uninstall (aka add-remove-programs), An install tool is a real time-saver for larger roll-outs. Inno Setup is free, source is available, but copyrighted. Best of all, once you get the hang of it outperforms a lot of "professional" installers. - it does not produce .msi, so it isn't usable with software distribution tools like MS SMS. Can post the install scripts here if there is any interest. > 8, Should I post to this list ? (should I move this to "my own" list) Yes, i would like you to post here or at least announcements here... NC_Net puts announcements here as well -No time to test yet, will definitely do soon grtz, Fred ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From s.shipway at auckland.ac.nz Fri Feb 25 01:59:57 2005 From: s.shipway at auckland.ac.nz (Steve Shipway) Date: Fri, 25 Feb 2005 13:59:57 +1300 Subject: NagEvLog and event logs In-Reply-To: <200502250030.52212.don.alfredo@pandora.be> References: <200502250030.52212.don.alfredo@pandora.be> Message-ID: <018101c51ad5$52f0b4b0$01fea8c0@itss.auckland.ac.nz> >On Wednesday 23 February 2005 17:55, Paul Bourgeau wrote: >> Well I have the NagEvLog agent loaded on the windows server and NSCA >> loaded on the Nagios box (I think it's up and running). Shouldn't it >> be showing up when I do a ps -aux | grep nsca? I set the windows >> piece to forward to my Nagios box. Now I can't seem to get any event >> log notifications out of Nagios. >> >don't think it's running, check it. yes it should show up in >ps. check starting nsca manually. check all paths in nsca >startup script (in /etc/init.d ?) check nsca.cfg for allowed >clients , make sure passwords are same as on >windows boxes. The next version (1.4) of NagEvLog will contain some test functions in the NagEvLogCtrl configuration utility that check that the NSCA daemon can be contacted as well as checking the filtering and inserting a test eventlog entry. Until then, you'll have to try 'telnet nscahost 5667' from your nagevlog host to see if you can contact the nscahost. Steve ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bill_akins at emoryhealthcare.org Fri Feb 25 03:25:49 2005 From: bill_akins at emoryhealthcare.org (Bill Akins) Date: Thu, 24 Feb 2005 21:25:49 -0500 Subject: check_users Message-ID: Hi Paul, You can write your own script as a wrapper around the who command. You could set the script to always return OK and the list of users as output or if there is a specific ID you want to monitor for, have the script return Warning or Critical if that ID is found (along with the list of users). >>> "Paul Bourgeau" 2/24/2005 2:11 PM >>> Yeah, there is nothing except to list the warning and critical levels to alert on. Is there anything else that I can use to view users (usernames) that are logged on? Thank You, Paul Bourgeau Ph: 262-523-3300 x60279 Fx: 208-898-2371 psbourgeau at mpccorp.com -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Andreas Ericsson Sent: Thursday, February 24, 2005 2:49 AM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] check_users Paul Bourgeau wrote: > Is it possible to see what users are logged in with this check_ command? > > check_users --help -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null Disclaimer: 24/2/2005 MPC Computers is providing the following information in compliance with federal regulations: MPC Computers, LLC 906 E. Karcher Road Nampa, Idaho 83687 1-888-224-4247 http://www.mpccorp.com To discontinue receiving e-mail communications from MPC in the future, please go to: http://www.mpccorp.com/email/manage.html and follow the instructions. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: From Carsten.Schmitz at aegon.com Fri Feb 25 12:43:22 2005 From: Carsten.Schmitz at aegon.com (Schmitz, Carsten) Date: Fri, 25 Feb 2005 12:43:22 +0100 Subject: A plug-in for Nagios to check the a terminal server is runing ? Message-ID: <49977F7CEA035C46A2D47108CE0F032FF74C8A@ANGELIA.aegon.com> Hi, > Is there a plugin the tests if a terminal server is up and running ? What kind of terminal server? Citrix? I am using a perl script that emulates the ICA protocol by replaying captured packets and checks for published applications. I don't know anymore where I originally downloaded it, but I attach it below. Place in a file in your nagios/libexec directory, then reference in checkcommands.cfg. Cheers, Carsten ------------ #!/usr/bin/perl -w # $Id: check_citrix,v 1.1 2002/11/29 12:02:00 stanleyhopcroft Exp $ # $Log: check_citrix,v $ # Revision 1.1 2002/11/29 12:02:00 stanleyhopcroft # # New plugin to check the ICA browse service (used by Citrix Metaframe servers) from # Ed Rolison and Tom De Blende. # # Ed Rolison 15/06/02 # ed at nightstalker.net # If it doesn't work, please let me know, I've only had access to my # environment so I'm not 100% sure. # # If you want to mess around with this script, then please feel free # to do so. # However, if you add anything 'funky' then I'd really appreciate # hearing about it. # # Oh, and if you do ever make huge amounts of money out of it, cut me # in :) use strict ; use IO::Socket; use IO::Select; use FileHandle; use Getopt::Long ; use vars qw($opt_H $opt_B $opt_W $opt_T $debug @citrix_servers $crit_pub_apps $warn_pub_apps $long_list); use utils qw(%ERRORS &print_revision &support &usage); my $PROGNAME = 'check_citrix' ; sub print_help (); sub print_usage (); sub help (); sub version (); delete @ENV{'PATH', 'IFS', 'CDPATH', 'ENV', 'BASH_ENV'}; # You might have to change this... use constant PACKET_TIMEOUT=> 1; # Number of seconds to wait for further UDP packets use constant TEST_COUNT=> 2; # Number of datagrams sent without reply use constant BUFFER_SIZE=> 1500; # buffer size used for 'recv' calls. use constant LONG_LIST=> 0 ; # this is for if you have many published applications. # if you set it, it won't do any harm, but may slow the test # down a little. (Since it does a 'recv' twice instead of # once and therefore may have to wait for a timeout). use constant ICA_PORT=> 1604; # what port ICA runs on. Unlikely to change. # End user config. Getopt::Long::Configure('bundling', 'no_ignore_case'); GetOptions ("V|version" => \&version, "h|help" => \&help, "d|debug" => \$debug, "B|broadcast_addr:s"=> \$opt_B, "C|citrix_servers:s"=> \@citrix_servers, "L|long_list"=> \$long_list, "P|crit_pub_apps:s"=> \$crit_pub_apps, "T|Packet_timeout:i" => \$opt_T, "W|warn_pub_apps:s"=> \$warn_pub_apps, ) ; # configuration section my $broadcast_addr = $1 if $opt_B and $opt_B =~ m#(\d+\.\d+\.\d+\.\d+)# ; usage("Invalid broadcast address: $opt_B\n") if $opt_B and not defined($broadcast_addr) ; usage("You must provide either the names of citrix servers or the broadcast address of the subnet containing them\n") unless (@citrix_servers or $broadcast_addr) ; my @target = defined $broadcast_addr ? ($broadcast_addr) : @citrix_servers ; usage("You must provide the names of the published applications that the Citrix browser should be advertising\n") unless $crit_pub_apps or $warn_pub_apps ; my $Timeout = $opt_T if defined $opt_T ; $Timeout = PACKET_TIMEOUT unless defined $Timeout ; $long_list = LONG_LIST unless defined $long_list ; my @crit_pub_apps = $crit_pub_apps ? split(/,/, $crit_pub_apps) : () ; my @warn_pub_apps = $warn_pub_apps ? split(/,/, $warn_pub_apps) : () ; # definitions of query strings. Change at your own risk :) # this info was gathered with tcpdump whilst trying to use an ICA client, # so I'm not 100% sure of what each value is. my @bcast_helo = &tethereal2list(<<'End_of_Tethereal_trace', '1e') ; 0020 ff ff 04 d6 06 44 00 26 4a 76 1e 00 01 30 02 fd .....D.&Jv...0.. 0030 a8 e3 00 02 f5 95 9f f5 30 07 00 00 00 00 00 00 ........0....... 0040 00 00 00 00 00 00 01 00 End_of_Tethereal_trace my @bcast_query_app = &tethereal2list(<<'End_of_Tethereal_trace', '24') ; 0020 64 17 04 50 06 44 00 2c 85 6a 24 00 01 32 02 fd d..P.D.,.j$..2.. 0030 a8 e3 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0040 00 00 00 00 00 00 21 00 02 00 00 00 00 00 ......!...... End_of_Tethereal_trace my @direct_helo = &tethereal2list(<<'End_of_Tethereal_trace', '20') ; 0020 64 17 05 0f 06 44 00 28 ab b5 20 00 01 30 02 fd d....D.(.. ..0.. 0030 a8 e3 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0040 00 00 00 00 00 00 00 00 00 00 End_of_Tethereal_trace my @direct_query_app = &tethereal2list(<<'End_of_Tethereal_trace', '2c') ; 0020 64 17 05 10 06 44 00 34 7a 9a 2c 00 02 32 02 fd d....D.4z.,..2.. 0030 a8 e3 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0040 00 00 00 00 00 00 21 00 02 00 01 00 00 00 00 00 ......!......... 0050 00 00 00 00 00 00 End_of_Tethereal_trace my $Udp = IO::Socket::INET->new( Proto => 'udp' ) || die "Socket failure: $!"; # select is here to allow us to set timeouts on the connections. Otherwise they # just 'stop' until a server appears. my $select = IO::Select->new($Udp) || die "Select failure: $!"; # helo needs to be broadcast, but query does not. $Udp->sockopt(SO_BROADCAST, 1 ); $Udp->autoflush(1); my ($remote_host, $buff, $buff2, $raddr, $rport, $rhost, @remote_response); my (@query_message, $send_addr, $this_test) ; $buff = $buff2 = ''; $this_test = 0; # If there is no response to the first helo packet it will be resent # up to TEST_COUNT (see at the top). while ( ++$this_test <= TEST_COUNT && !$buff ) { print "Sending helo datagram. datagram number: ", $this_test, "\n" if $debug ; # if we have multiple targets, we probe each of them until we get a # response... foreach my $destination (@target) { @query_message = ( $broadcast_addr ? @bcast_helo : @direct_helo) ; print "Querying $destination for master browser\n" if $debug ; $send_addr = sockaddr_in(ICA_PORT, inet_aton($destination) ); &dump(pack('C*', @query_message)) if $debug ; $Udp->send( pack('C*', @query_message), 0, $send_addr ); if ( $select->can_read($Timeout) ) { $remote_host = $Udp->recv($buff, BUFFER_SIZE, 0 ); } last if $buff ; sleep 1 ; } # foreach destination } # while loop # ok we've looped several times, looking for a response. If we don't have one # yet, we simply mark the whole lot as being unavailable. unless ( $buff ) { print "Failed. No response to helo datagram (master browser query) from ", $broadcast_addr ? $broadcast_addr : "@citrix_servers", ".\n" ; exit $ERRORS{CRITICAL} ; } ($rport, $raddr) = sockaddr_in( $remote_host ); $rhost = gethostbyaddr( $raddr, AF_INET ); my @tmpbuf = unpack('C*', $buff ); if ( $debug ) { print "$rhost:$rport responded with: ",length($buff), " bytes\n"; &dump($buff) ; } #if debug # now we have a response, then we need to figure out the master browser, and # query it for published applications... my $master_browser = join '.', @tmpbuf[32..35] ; # ok should probably error check this, because it's remotely possible # that a server response might be completely wrong... print "Master browser = $master_browser\n" if $debug ; $send_addr = sockaddr_in(ICA_PORT, inet_aton($master_browser)); if ( $broadcast_addr ) { print "using broadcast query\n" if $debug ; @query_message = @bcast_query_app; } else { print "using directed query\n" if $debug ; @query_message = @direct_query_app; } # now we send the appropriate query string, to the master browser we've found. $buff = ''; $this_test = 0 ; print "Querying master browser for published application list\n" if $debug ; while ( ++$this_test <= TEST_COUNT && !$buff ) { print "Sending application query datagram. datagram number: ", $this_test, "\n" if $debug ; &dump(pack('C*', @query_message)) if $debug ; $Udp->send( pack ('C*', @query_message), 0, $send_addr ); if ( $select->can_read($Timeout) ) { $remote_host = $Udp->recv($buff, BUFFER_SIZE, 0 ); # $buff = substr($buff, 32) ; # Hope that ICA preamble is first 32 bytes } # long application lists are delivered in multiple packets my $buff2 = '' ; while ( $long_list && $select->can_read($Timeout) ) { $remote_host = $Udp->recv($buff2, BUFFER_SIZE, 0 ); $buff .= $buff2 if $buff2 ; # $buff .= substr($buff2, 32) if $buff2 ; # Hope that ICA preamble is first 32 bytes } last if $buff ; sleep 1 ; } # while test_count unless ( $buff ) { print "Failed. No response to application query datagram from ", $master_browser, ".\n" ; exit $ERRORS{CRITICAL} ; } # we got a response from a couple of retries of the app query ($rport, $raddr) = sockaddr_in ( $remote_host ); $rhost = gethostbyaddr ( $raddr, AF_INET ); if ( $debug ) { print "$rhost:$rport responded to app query with: ",length($buff), " bytes\n"; &dump($buff) ; } #debug my $app_list = $buff ; # delete nulls in unicode # but only if there is unicode (usually from # broadcast query) $app_list =~ s/(?:(\w| |-)\x00)/$1/g if $app_list =~ /(?:(?:(?:\w| |-)\x00){3,})/ ; # FIXME an application name is # 3 or more unicoded characters # FIXME locale # extract null terminated strings my (@clean_app_list, $clean_app_list) ; $clean_app_list = join(',', @clean_app_list = $app_list =~ m#([A-Za-z](?:\w| |-|[???????])+?(?=\x00))#g ) ; # patch for German umlauts et al from Herr Mike Gerber. # $clean_app_list = join(',', @clean_app_list = $app_list =~ m#([A-Z](?:\w| |-)+?(?=\x00))#g ) ; # FIXME everyones apps don't start with caps print qq(Received list of applications: "$clean_app_list".\n) if $debug ; if ( scalar @crit_pub_apps and my @missing = &simple_diff(\@clean_app_list, \@crit_pub_apps) ) { print qq(Failed. "@missing" not found in list of published applications), qq( "$clean_app_list" from master browser "$master_browser".\n) ; exit $ERRORS{CRITICAL} ; } if ( my @missing = &simple_diff(\@clean_app_list, \@warn_pub_apps) ) { print qq(Warning. "@missing" not found in list of published applications), qq( "$clean_app_list" from master browser "$master_browser".\n) ; exit $ERRORS{WARNING} ; } my @x = (@crit_pub_apps, @warn_pub_apps) ; my $blah = ( scalar(@x) == 1 ? 'the published application "' . join(',', @x) . '" is available' : 'the published applications "' . join(',', @x) . '" are available' ) ; print qq(Ok. Citrix master browser "$master_browser" reported that $blah.\n) ; exit $ERRORS{OK} ; # sleep $Timeout; # because otherwise we can get responses from # the WRONG servers. DOH close $Udp; sub print_usage () { print "Usage: $PROGNAME (-B | -C ..) -W -P \n"; } sub print_help () { print_revision($PROGNAME,'$Revision: 1.1 $ '); print "Copyright (c) 2002 Ed Rolison/Tom De Blende/Karl DeBisschop/S Hopcroft Perl Check Citrix plugin for NetSaint. Returns OK if the Citrix master browser returns a 'published application' list that contain names specified by the -W or -P options The plugin works by If the -B option is specified, sending a broadcast helo to find the address of the Citrix master browser in the specified subnet. return critical if there is no reply; Else if the -C option is specified send a direct helo to the specified server until there is a response (containing the address of the Citrix master browser) Query the master browser (using a 'broadcast published applications query ' if -B) and compare the published applications returned to those specified by -W and -P options return Critical if the published applications specified by -P is not a subset of the query responses; return Warning if the published applications specified by -W is not a subset of the query responses; return OK "; print_usage(); print ' -B, --broadcast_address=STRING The broadcast address that should contain Citrix master browser. This option takes precedence over -C. -C, --citrix_server:STRING Optional __name(s)__ of Citrix servers that could be the master browser (used when broadcast not possible). -L, --long_list Set this if you have heaps of published applications (ie more than will fit in _one_ UDP packet) -P, --crit_published_app=STRING Optional comma separated list of published application that must be in the response from the master browser. Check returns critical otherwise. -T, --packet-timeout:INTEGER Time to wait for UDP packets (default 1 sec). -W, --warn_published_app=STRING Optional comma separated list of published application that should be in the response from the master browser. Check returns warning otherwise. -d, --debug Debugging output. -h, --help This stuff. '; support(); } sub version () { print_revision($PROGNAME,'$Revision: 1.1 $ '); exit $ERRORS{'OK'}; } sub help () { print_help(); exit $ERRORS{'OK'}; } sub dump { my ($x) = shift @_ ; my (@x, @y, $y, $i, $rowcount) ; my ($nr, $j, $number_in_row, $number_of_bytes) ; my $dump ; $number_in_row = 16 ; $number_of_bytes = length $x ; $nr = 0 ; # styled on tethereal. foreach $j (1 .. int( $number_of_bytes / $number_in_row) ) { $y = substr($x, ($j - 1)*$number_in_row, $number_in_row) ; @y = unpack("C*", $y) ; $y =~ tr /\x00-\x19/./ ; $rowcount = sprintf("%4.4x", ($j - 1) * 0x10 ) ; $dump .= sprintf "%s %s %s\n", $rowcount, join(" ", map { sprintf "%2.2x", $_} @y), $y ; $nr++ ; } if ( $number_of_bytes % $number_in_row > 0 ) { my $spaces_to_text = $number_in_row * 3 - 1 + 3 ; $rowcount = sprintf("%4.4x", $nr * 0x10 ) ; $y = substr($x, $nr * $number_in_row ) ; @y = unpack("C*", $y) ; my $bytes = join(" ", map { sprintf "%2.2x", $_} @y) ; my $spaces = ' ' x ($spaces_to_text - length($bytes)) ; $dump .= sprintf "%s %s%s%s\n", $rowcount, $bytes, $spaces, $y ; } print $dump, "\n" ; } sub tethereal2list { my ($tethereal_dump, $start_byte) = @_ ; # return an array containing qw(0xef 0xab 0x00 ...) from a tethereal trace. # skip all stuff until the first byte given by $start_byte. return undef unless $tethereal_dump =~ /\d\d\d\d \S\S(?: \S\S){1,15}/ ; my $hex_start_byte = hex($start_byte) ; my @x = $tethereal_dump =~ m#(.+)#g ; my @y = map unpack("x6 a47", $_), @x ; my @z = map { my $y = $_; $y =~ s/(\S\S)/hex($1)/eg; my @a = split(' ', $y); @a } @y ; shift @z, while $z[0] ne $hex_start_byte ; @z ; } sub simple_diff { my ( $a_list, $b_list) = @_ ; # simple set difference 'Recipe 4.7 Perl Cookbook', Christiansen and Torkington my (%seen, @missing) ; @seen{@$a_list} = () ; foreach my $item (@$b_list) { push @missing, $item unless exists $seen{$item} ; } @missing ; } -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Anders Christensen Sent: Friday, February 25, 2005 11:50 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] A plug-in for Nagios to check the a terminal server is runing ? Is there a plugin the tests if a terminal server is up and running ? I could just check the terminal services, but sometimes, they continue to "run", while the terminal server is not accepting new connections. And some of our terminal servers are using load balancing, and the clients connects to at fictional IP adresse for the "cluster" ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ac at itpartner.nu Fri Feb 25 12:46:58 2005 From: ac at itpartner.nu (Anders Christensen) Date: Fri, 25 Feb 2005 12:46:58 +0100 Subject: SV: A plug-in for Nagios to check the a terminal server is runing ? Message-ID: <9370773F5F35CB4281A6C3EC61E3A0CA0F9C97@itpdk-srv01.itpartner.dom> Windows - Terminal Server 2003. But I could also use the plugin for the Citrix server. Thanks Carsten Schmitz. -----Oprindelig meddelelse----- Fra: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] P? vegne af Schmitz, Carsten Sendt: 25. februar 2005 12:43 Til: Anders Christensen; nagios-users at lists.sourceforge.net Emne: RE: [Nagios-users] A plug-in for Nagios to check the a terminal server is runing ? Hi, > Is there a plugin the tests if a terminal server is up and running ? What kind of terminal server? Citrix? I am using a perl script that emulates the ICA protocol by replaying captured packets and checks for published applications. I don't know anymore where I originally downloaded it, but I attach it below. Place in a file in your nagios/libexec directory, then reference in checkcommands.cfg. Cheers, Carsten ------------ #!/usr/bin/perl -w # $Id: check_citrix,v 1.1 2002/11/29 12:02:00 stanleyhopcroft Exp $ # $Log: check_citrix,v $ # Revision 1.1 2002/11/29 12:02:00 stanleyhopcroft # # New plugin to check the ICA browse service (used by Citrix Metaframe servers) from # Ed Rolison and Tom De Blende. # # Ed Rolison 15/06/02 # ed at nightstalker.net # If it doesn't work, please let me know, I've only had access to my # environment so I'm not 100% sure. # # If you want to mess around with this script, then please feel free # to do so. # However, if you add anything 'funky' then I'd really appreciate # hearing about it. # # Oh, and if you do ever make huge amounts of money out of it, cut me # in :) use strict ; use IO::Socket; use IO::Select; use FileHandle; use Getopt::Long ; use vars qw($opt_H $opt_B $opt_W $opt_T $debug @citrix_servers $crit_pub_apps $warn_pub_apps $long_list); use utils qw(%ERRORS &print_revision &support &usage); my $PROGNAME = 'check_citrix' ; sub print_help (); sub print_usage (); sub help (); sub version (); delete @ENV{'PATH', 'IFS', 'CDPATH', 'ENV', 'BASH_ENV'}; # You might have to change this... use constant PACKET_TIMEOUT=> 1; # Number of seconds to wait for further UDP packets use constant TEST_COUNT=> 2; # Number of datagrams sent without reply use constant BUFFER_SIZE=> 1500; # buffer size used for 'recv' calls. use constant LONG_LIST=> 0 ; # this is for if you have many published applications. # if you set it, it won't do any harm, but may slow the test # down a little. (Since it does a 'recv' twice instead of # once and therefore may have to wait for a timeout). use constant ICA_PORT=> 1604; # what port ICA runs on. Unlikely to change. # End user config. Getopt::Long::Configure('bundling', 'no_ignore_case'); GetOptions ("V|version" => \&version, "h|help" => \&help, "d|debug" => \$debug, "B|broadcast_addr:s"=> \$opt_B, "C|citrix_servers:s"=> \@citrix_servers, "L|long_list"=> \$long_list, "P|crit_pub_apps:s"=> \$crit_pub_apps, "T|Packet_timeout:i" => \$opt_T, "W|warn_pub_apps:s"=> \$warn_pub_apps, ) ; # configuration section my $broadcast_addr = $1 if $opt_B and $opt_B =~ m#(\d+\.\d+\.\d+\.\d+)# ; usage("Invalid broadcast address: $opt_B\n") if $opt_B and not defined($broadcast_addr) ; usage("You must provide either the names of citrix servers or the broadcast address of the subnet containing them\n") unless (@citrix_servers or $broadcast_addr) ; my @target = defined $broadcast_addr ? ($broadcast_addr) : @citrix_servers ; usage("You must provide the names of the published applications that the Citrix browser should be advertising\n") unless $crit_pub_apps or $warn_pub_apps ; my $Timeout = $opt_T if defined $opt_T ; $Timeout = PACKET_TIMEOUT unless defined $Timeout ; $long_list = LONG_LIST unless defined $long_list ; my @crit_pub_apps = $crit_pub_apps ? split(/,/, $crit_pub_apps) : () ; my @warn_pub_apps = $warn_pub_apps ? split(/,/, $warn_pub_apps) : () ; # definitions of query strings. Change at your own risk :) # this info was gathered with tcpdump whilst trying to use an ICA client, # so I'm not 100% sure of what each value is. my @bcast_helo = &tethereal2list(<<'End_of_Tethereal_trace', '1e') ; 0020 ff ff 04 d6 06 44 00 26 4a 76 1e 00 01 30 02 fd .....D.&Jv...0.. 0030 a8 e3 00 02 f5 95 9f f5 30 07 00 00 00 00 00 00 ........0....... 0040 00 00 00 00 00 00 01 00 End_of_Tethereal_trace my @bcast_query_app = &tethereal2list(<<'End_of_Tethereal_trace', '24') ; 0020 64 17 04 50 06 44 00 2c 85 6a 24 00 01 32 02 fd d..P.D.,.j$..2.. 0030 a8 e3 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0040 00 00 00 00 00 00 21 00 02 00 00 00 00 00 ......!...... End_of_Tethereal_trace my @direct_helo = &tethereal2list(<<'End_of_Tethereal_trace', '20') ; 0020 64 17 05 0f 06 44 00 28 ab b5 20 00 01 30 02 fd d....D.(.. ..0.. 0030 a8 e3 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0040 00 00 00 00 00 00 00 00 00 00 End_of_Tethereal_trace my @direct_query_app = &tethereal2list(<<'End_of_Tethereal_trace', '2c') ; 0020 64 17 05 10 06 44 00 34 7a 9a 2c 00 02 32 02 fd d....D.4z.,..2.. 0030 a8 e3 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0040 00 00 00 00 00 00 21 00 02 00 01 00 00 00 00 00 ......!......... 0050 00 00 00 00 00 00 End_of_Tethereal_trace my $Udp = IO::Socket::INET->new( Proto => 'udp' ) || die "Socket failure: $!"; # select is here to allow us to set timeouts on the connections. Otherwise they # just 'stop' until a server appears. my $select = IO::Select->new($Udp) || die "Select failure: $!"; # helo needs to be broadcast, but query does not. $Udp->sockopt(SO_BROADCAST, 1 ); $Udp->autoflush(1); my ($remote_host, $buff, $buff2, $raddr, $rport, $rhost, @remote_response); my (@query_message, $send_addr, $this_test) ; $buff = $buff2 = ''; $this_test = 0; # If there is no response to the first helo packet it will be resent # up to TEST_COUNT (see at the top). while ( ++$this_test <= TEST_COUNT && !$buff ) { print "Sending helo datagram. datagram number: ", $this_test, "\n" if $debug ; # if we have multiple targets, we probe each of them until we get a # response... foreach my $destination (@target) { @query_message = ( $broadcast_addr ? @bcast_helo : @direct_helo) ; print "Querying $destination for master browser\n" if $debug ; $send_addr = sockaddr_in(ICA_PORT, inet_aton($destination) ); &dump(pack('C*', @query_message)) if $debug ; $Udp->send( pack('C*', @query_message), 0, $send_addr ); if ( $select->can_read($Timeout) ) { $remote_host = $Udp->recv($buff, BUFFER_SIZE, 0 ); } last if $buff ; sleep 1 ; } # foreach destination } # while loop # ok we've looped several times, looking for a response. If we don't have one # yet, we simply mark the whole lot as being unavailable. unless ( $buff ) { print "Failed. No response to helo datagram (master browser query) from ", $broadcast_addr ? $broadcast_addr : "@citrix_servers", ".\n" ; exit $ERRORS{CRITICAL} ; } ($rport, $raddr) = sockaddr_in( $remote_host ); $rhost = gethostbyaddr( $raddr, AF_INET ); my @tmpbuf = unpack('C*', $buff ); if ( $debug ) { print "$rhost:$rport responded with: ",length($buff), " bytes\n"; &dump($buff) ; } #if debug # now we have a response, then we need to figure out the master browser, and # query it for published applications... my $master_browser = join '.', @tmpbuf[32..35] ; # ok should probably error check this, because it's remotely possible # that a server response might be completely wrong... print "Master browser = $master_browser\n" if $debug ; $send_addr = sockaddr_in(ICA_PORT, inet_aton($master_browser)); if ( $broadcast_addr ) { print "using broadcast query\n" if $debug ; @query_message = @bcast_query_app; } else { print "using directed query\n" if $debug ; @query_message = @direct_query_app; } # now we send the appropriate query string, to the master browser we've found. $buff = ''; $this_test = 0 ; print "Querying master browser for published application list\n" if $debug ; while ( ++$this_test <= TEST_COUNT && !$buff ) { print "Sending application query datagram. datagram number: ", $this_test, "\n" if $debug ; &dump(pack('C*', @query_message)) if $debug ; $Udp->send( pack ('C*', @query_message), 0, $send_addr ); if ( $select->can_read($Timeout) ) { $remote_host = $Udp->recv($buff, BUFFER_SIZE, 0 ); # $buff = substr($buff, 32) ; # Hope that ICA preamble is first 32 bytes } # long application lists are delivered in multiple packets my $buff2 = '' ; while ( $long_list && $select->can_read($Timeout) ) { $remote_host = $Udp->recv($buff2, BUFFER_SIZE, 0 ); $buff .= $buff2 if $buff2 ; # $buff .= substr($buff2, 32) if $buff2 ; # Hope that ICA preamble is first 32 bytes } last if $buff ; sleep 1 ; } # while test_count unless ( $buff ) { print "Failed. No response to application query datagram from ", $master_browser, ".\n" ; exit $ERRORS{CRITICAL} ; } # we got a response from a couple of retries of the app query ($rport, $raddr) = sockaddr_in ( $remote_host ); $rhost = gethostbyaddr ( $raddr, AF_INET ); if ( $debug ) { print "$rhost:$rport responded to app query with: ",length($buff), " bytes\n"; &dump($buff) ; } #debug my $app_list = $buff ; # delete nulls in unicode # but only if there is unicode (usually from # broadcast query) $app_list =~ s/(?:(\w| |-)\x00)/$1/g if $app_list =~ /(?:(?:(?:\w| |-)\x00){3,})/ ; # FIXME an application name is # 3 or more unicoded characters # FIXME locale # extract null terminated strings my (@clean_app_list, $clean_app_list) ; $clean_app_list = join(',', @clean_app_list = $app_list =~ m#([A-Za-z](?:\w| |-|[???????])+?(?=\x00))#g ) ; # patch for German umlauts et al from Herr Mike Gerber. # $clean_app_list = join(',', @clean_app_list = $app_list =~ m#([A-Z](?:\w| |-)+?(?=\x00))#g ) ; # FIXME everyones apps don't start with caps print qq(Received list of applications: "$clean_app_list".\n) if $debug ; if ( scalar @crit_pub_apps and my @missing = &simple_diff(\@clean_app_list, \@crit_pub_apps) ) { print qq(Failed. "@missing" not found in list of published applications), qq( "$clean_app_list" from master browser "$master_browser".\n) ; exit $ERRORS{CRITICAL} ; } if ( my @missing = &simple_diff(\@clean_app_list, \@warn_pub_apps) ) { print qq(Warning. "@missing" not found in list of published applications), qq( "$clean_app_list" from master browser "$master_browser".\n) ; exit $ERRORS{WARNING} ; } my @x = (@crit_pub_apps, @warn_pub_apps) ; my $blah = ( scalar(@x) == 1 ? 'the published application "' . join(',', @x) . '" is available' : 'the published applications "' . join(',', @x) . '" are available' ) ; print qq(Ok. Citrix master browser "$master_browser" reported that $blah.\n) ; exit $ERRORS{OK} ; # sleep $Timeout; # because otherwise we can get responses from # the WRONG servers. DOH close $Udp; sub print_usage () { print "Usage: $PROGNAME (-B | -C ..) -W -P \n"; } sub print_help () { print_revision($PROGNAME,'$Revision: 1.1 $ '); print "Copyright (c) 2002 Ed Rolison/Tom De Blende/Karl DeBisschop/S Hopcroft Perl Check Citrix plugin for NetSaint. Returns OK if the Citrix master browser returns a 'published application' list that contain names specified by the -W or -P options The plugin works by If the -B option is specified, sending a broadcast helo to find the address of the Citrix master browser in the specified subnet. return critical if there is no reply; Else if the -C option is specified send a direct helo to the specified server until there is a response (containing the address of the Citrix master browser) Query the master browser (using a 'broadcast published applications query ' if -B) and compare the published applications returned to those specified by -W and -P options return Critical if the published applications specified by -P is not a subset of the query responses; return Warning if the published applications specified by -W is not a subset of the query responses; return OK "; print_usage(); print ' -B, --broadcast_address=STRING The broadcast address that should contain Citrix master browser. This option takes precedence over -C. -C, --citrix_server:STRING Optional __name(s)__ of Citrix servers that could be the master browser (used when broadcast not possible). -L, --long_list Set this if you have heaps of published applications (ie more than will fit in _one_ UDP packet) -P, --crit_published_app=STRING Optional comma separated list of published application that must be in the response from the master browser. Check returns critical otherwise. -T, --packet-timeout:INTEGER Time to wait for UDP packets (default 1 sec). -W, --warn_published_app=STRING Optional comma separated list of published application that should be in the response from the master browser. Check returns warning otherwise. -d, --debug Debugging output. -h, --help This stuff. '; support(); } sub version () { print_revision($PROGNAME,'$Revision: 1.1 $ '); exit $ERRORS{'OK'}; } sub help () { print_help(); exit $ERRORS{'OK'}; } sub dump { my ($x) = shift @_ ; my (@x, @y, $y, $i, $rowcount) ; my ($nr, $j, $number_in_row, $number_of_bytes) ; my $dump ; $number_in_row = 16 ; $number_of_bytes = length $x ; $nr = 0 ; # styled on tethereal. foreach $j (1 .. int( $number_of_bytes / $number_in_row) ) { $y = substr($x, ($j - 1)*$number_in_row, $number_in_row) ; @y = unpack("C*", $y) ; $y =~ tr /\x00-\x19/./ ; $rowcount = sprintf("%4.4x", ($j - 1) * 0x10 ) ; $dump .= sprintf "%s %s %s\n", $rowcount, join(" ", map { sprintf "%2.2x", $_} @y), $y ; $nr++ ; } if ( $number_of_bytes % $number_in_row > 0 ) { my $spaces_to_text = $number_in_row * 3 - 1 + 3 ; $rowcount = sprintf("%4.4x", $nr * 0x10 ) ; $y = substr($x, $nr * $number_in_row ) ; @y = unpack("C*", $y) ; my $bytes = join(" ", map { sprintf "%2.2x", $_} @y) ; my $spaces = ' ' x ($spaces_to_text - length($bytes)) ; $dump .= sprintf "%s %s%s%s\n", $rowcount, $bytes, $spaces, $y ; } print $dump, "\n" ; } sub tethereal2list { my ($tethereal_dump, $start_byte) = @_ ; # return an array containing qw(0xef 0xab 0x00 ...) from a tethereal trace. # skip all stuff until the first byte given by $start_byte. return undef unless $tethereal_dump =~ /\d\d\d\d \S\S(?: \S\S){1,15}/ ; my $hex_start_byte = hex($start_byte) ; my @x = $tethereal_dump =~ m#(.+)#g ; my @y = map unpack("x6 a47", $_), @x ; my @z = map { my $y = $_; $y =~ s/(\S\S)/hex($1)/eg; my @a = split(' ', $y); @a } @y ; shift @z, while $z[0] ne $hex_start_byte ; @z ; } sub simple_diff { my ( $a_list, $b_list) = @_ ; # simple set difference 'Recipe 4.7 Perl Cookbook', Christiansen and Torkington my (%seen, @missing) ; @seen{@$a_list} = () ; foreach my $item (@$b_list) { push @missing, $item unless exists $seen{$item} ; } @missing ; } -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Anders Christensen Sent: Friday, February 25, 2005 11:50 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] A plug-in for Nagios to check the a terminal server is runing ? Is there a plugin the tests if a terminal server is up and running ? I could just check the terminal services, but sometimes, they continue to "run", while the terminal server is not accepting new connections. And some of our terminal servers are using load balancing, and the clients connects to at fictional IP adresse for the "cluster" ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=ick _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From matt.garrett at shell.com Fri Feb 25 11:41:45 2005 From: matt.garrett at shell.com (Garrett, Matt M SITI-ITISEEEE) Date: Fri, 25 Feb 2005 10:41:45 -0000 Subject: config changes between 1.2 and 2,0 (Andreas Ericsson) Message-ID: <4E88F6699E4BAE41B724A3EC3CC457D501478928@abe-s-039.europe.shell.com> Subject: Re: [Nagios-users] config changes between 1.2 and 2,0 >>Aaron Macks wrote: >> are there any changes to config files between 1.2 and 2.x? Andreas Ericsson wrote: >Yes. The tools at http://oss.op5.se/nagios can help you migrate, >provided you have a working config for 1.2 and the command line version >of php installed. The tools work very well , with only a small minor change of one of the cfg files. Which was properly my mistake in the first place. Well done Andreas Oh BTW the tools quite happily work with php version 4 Matt ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From timothy at icts.uct.ac.za Thu Feb 24 13:35:07 2005 From: timothy at icts.uct.ac.za (Timothy Carr) Date: Thu, 24 Feb 2005 14:35:07 +0200 Subject: receiving SNMP traps to page In-Reply-To: <6943DE9E9934CD42BBE4A20E0E28E10E011C9745@SYGOMAIL.GOE.AD.SYCOR.DE> References: <6943DE9E9934CD42BBE4A20E0E28E10E011C9745@SYGOMAIL.GOE.AD.SYCOR.DE> Message-ID: <421DC9FB.10005@icts.uct.ac.za> www.sysadminmag.com -- Tim Sand Philipp wrote: >Sounds interesting. I don't know this magazine, in which countries can >it be purchased? >Maybe thisould be interesting for Ethan, to post it on nagios.org... > > > >>-----Original Message----- >>From: nagios-users-admin at lists.sourceforge.net >>[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf >>Of Timothy Carr >>Sent: Thursday, February 24, 2005 11:03 AM >>To: nagios-users at lists.sourceforge.net >>Subject: Re: [Nagios-users] receiving SNMP traps to page >> >>Hi, >> >>Mabe you wanna have a look at this next months issue of the " >>SYS Admin ". They have a very interesting article on how they >>have setup Nagios and SNMP traps. >> >>-- >>Tim >> >>Sand Philipp wrote: >> >> >> >>>There had been a nice threat regarding the integration auf eventlog >>>traps from windows in nagios. Just search the archive for >>> >>> >>it. There is >> >> >>>a good how to integrate the traps into nagios. >>>Keywords you could use for search is snmptt (snmptrap >>> >>> >>translator). Ist >> >> >>>a little prog, in which you can configure how your system handles >>>incoming traps. >>> >>>________________________________ >>> >>> From: nagios-users-admin at lists.sourceforge.net >>>[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Paul >>>Bourgeau >>> Sent: Wednesday, February 23, 2005 9:14 PM >>> To: nagios-users at lists.sourceforge.net >>> Subject: [Nagios-users] receiving SNMP traps to page >>> >>> >>> >>> I want to set up Nagios to receive traps from other >>> >>> >>devices/programs >> >> >>>but I am unsure how to do it. Can anyone give me a quick hand? >>> >>> >>> >>> >>> >>> >>> >>> >>>------------------------------------------------------- >>>SF email is sponsored by - The IT Product Guide Read honest & candid >>>reviews on hundreds of IT Products from real users. >>>Discover which products truly live up to the hype. Start reading now. >>>http://ads.osdn.com/?ad_ide95&alloc_id396&op=click >>>_______________________________________________ >>>Nagios-users mailing list >>>Nagios-users at lists.sourceforge.net >>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>::: Please include Nagios version, plugin version (-v) and >>> >>> >>OS when reporting any issue. >> >> >>>::: Messages without supporting info will risk being sent to >>> >>> >>/dev/null >> >> >>> >>> >>> >>> >> >>------------------------------------------------------- >>SF email is sponsored by - The IT Product Guide Read honest & >>candid reviews on hundreds of IT Products from real users. >>Discover which products truly live up to the hype. Start reading now. >>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >>::: Please include Nagios version, plugin version (-v) and OS >>when reporting any issue. >>::: Messages without supporting info will risk being sent to /dev/null >> >> >> > > > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From muksyed at yahoo.com Thu Feb 24 21:17:50 2005 From: muksyed at yahoo.com (Mukarram Syed) Date: Thu, 24 Feb 2005 12:17:50 -0800 (PST) Subject: Help on check_http to check a certain URL. Message-ID: <20050224201750.97046.qmail@web13606.mail.yahoo.com> Hi, I am trying to use Nagios plugin check_http to check a certain url. This works fine: # ./check_http www.yahoo.com HTTP ok: HTTP/1.1 200 OK - 0.213 second response time |time= 0.213 But I am trying to check for SiteScope URL on an internal server. # ./check_http http://10.0.2.100:8888/SiteScope/htdocs/Detailestore.html Invalid host name 'http://10.0.2.100:8888/SiteScope/htdocs/Detailestore.html' Unable to open TCP socket and tried this... # ./check_http 10.0.2.100:8888/SiteScope/htdocs/Detailestore.html Invalid host name '10.0.2.100:8888/SiteScope/htdocs/Detailestore.html' Unable to open TCP socket I entered the hostname instead of the IP but same error. How else should I check this URL? Help is appreciated. Thanks -Mukarram Syed. __________________________________ Do you Yahoo!? Yahoo! Sports - Sign up for Fantasy Baseball. http://baseball.fantasysports.yahoo.com/ ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Fri Feb 25 14:36:33 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Fri, 25 Feb 2005 08:36:33 -0500 (EST) Subject: Help on check_http to check a certain URL. In-Reply-To: <20050224201750.97046.qmail@web13606.mail.yahoo.com> References: <20050224201750.97046.qmail@web13606.mail.yahoo.com> Message-ID: On Thu, 24 Feb 2005, Mukarram Syed wrote: > Hi, > I am trying to use Nagios plugin check_http to check a > certain url. > > This works fine: > > # ./check_http www.yahoo.com > HTTP ok: HTTP/1.1 200 OK - 0.213 second response > time |time= 0.213 > > But I am trying to check for SiteScope URL on an > internal server. > > # ./check_http > http://10.0.2.100:8888/SiteScope/htdocs/Detailestore.html > Invalid host name > 'http://10.0.2.100:8888/SiteScope/htdocs/Detailestore.html' > Unable to open TCP socket > > and tried this... > > # ./check_http > 10.0.2.100:8888/SiteScope/htdocs/Detailestore.html > Invalid host name > '10.0.2.100:8888/SiteScope/htdocs/Detailestore.html' > Unable to open TCP socket > > I entered the hostname instead of the IP but same > error. > > How else should I check this URL? > > Help is appreciated. > > Thanks > > -Mukarram Syed. > check_http -h for help on options. you are looking for the -u option -- -sg ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jpatters at ihets.org Thu Feb 24 19:23:21 2005 From: jpatters at ihets.org (Jason Patterson) Date: Thu, 24 Feb 2005 13:23:21 -0500 Subject: Alias instead of hostname in summary pages cgi Message-ID: So has anyone actually done this (consistently shown alias in place of hostname) or is there an existing patch out there? Thanks yan Moreton wrote: > Hi, > > Is it possible for all the summary pages to display the alias instead of the > hostname? No, but it is possible to exchange host_name for alias (assuming you"re willing to remove whitespace and other non-allowed chars). > If not, is it possible to re-compile the cgi to reflect this > requirement? > Naturally, but it would require a couple of alterations of the code. If you are to create a patch, try to make it a configurable option, and I"m sure Ethan won"t mind incorporating it. That way you can update the program without risk of it breaking. > Many Thanks in advance, > > Ryan > -- Andreas Ericsson andreas.ericsson at op... OP5 AB http://www.op5.se Lead Developer Jason Patterson Indiana Higher Education Telecommunication System Desk: (317) 263-8821 Cell: (317) 430-2743 -------------- next part -------------- An HTML attachment was scrubbed... URL: From ae at op5.se Thu Feb 24 21:20:24 2005 From: ae at op5.se (Andreas Ericsson) Date: Thu, 24 Feb 2005 21:20:24 +0100 Subject: check_users In-Reply-To: <2638AB7E1672B842901B0B49421B87DF0C25B4@mpc00email3.micronpc.com> References: <2638AB7E1672B842901B0B49421B87DF0C25B4@mpc00email3.micronpc.com> Message-ID: <421E3708.40909@op5.se> Paul Bourgeau wrote: > Yeah, there is nothing except to list the warning and critical levels to > alert on. Is there anything else that I can use to view users > (usernames) that are logged on? > Not currently, no. If you're thinking of implementing this as some sort of anti-hack protection you'd better think again though. It's not designed to be, and it's too easily defeated if implemented as such. > > > Thank You, > Paul Bourgeau > > Ph: 262-523-3300 x60279 > Fx: 208-898-2371 > psbourgeau at mpccorp.com > > > > > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Andreas > Ericsson > Sent: Thursday, February 24, 2005 2:49 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] check_users > > Paul Bourgeau wrote: > >>Is it possible to see what users are logged in with this check_ > > command? > >> > > > check_users --help > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From don.alfredo at pandora.be Fri Feb 25 00:30:52 2005 From: don.alfredo at pandora.be (Don Alfredo) Date: Fri, 25 Feb 2005 00:30:52 +0100 Subject: NS_Client and event logs In-Reply-To: <2638AB7E1672B842901B0B49421B87DF0FCD32@mpc00email3.micronpc.com> References: <2638AB7E1672B842901B0B49421B87DF0FCD32@mpc00email3.micronpc.com> Message-ID: <200502250030.52212.don.alfredo@pandora.be> On Wednesday 23 February 2005 17:55, Paul Bourgeau wrote: > Well I have the NagEvLog agent loaded on the windows server and NSCA loaded > on the Nagios box (I think it's up and running). Shouldn't it be showing > up when I do a ps -aux | grep nsca? I set the windows piece to forward to > my Nagios box. Now I can't seem to get any event log notifications out of > Nagios. > don't think it's running, check it. yes it should show up in ps. check starting nsca manually. check all paths in nsca startup script (in /etc/init.d ?) check nsca.cfg for allowed clients , make sure passwords are same as on windows boxes. check any distro-specific stuff : i know that on SuSE, with a "default" suse rpm install, the init.d/nsca is broken (wrong paths), i made a "SuSE-fied" init script that behaves as one would expect on SuSE; i'm running nagevelog fine on w2k, w2k3 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From m.borsani at it.net Fri Feb 25 10:45:06 2005 From: m.borsani at it.net (Marco Borsani) Date: Fri, 25 Feb 2005 10:45:06 +0100 Subject: Downtime Scheduled In-Reply-To: <60736F697E66E542B9672458913B91150C0279@TOTO.oz.hubbub.com.au> References: <60736F697E66E542B9672458913B91150C0279@TOTO.oz.hubbub.com.au> Message-ID: MessageHi all ! I need to develop a script that (gived a list file with hosts and services description) start a downtime. I do it, starting via crontab, but I don't not understand why nagios did not start downtime scheduled as soon as it received the commands! Every time I have to wait a different time before it begin. I set "fixed mode". In nagios.cfg I set "command_check_interval=-1" Does anyone know why ? Thanks Marco -------------- next part -------------- An HTML attachment was scrubbed... URL: From ac at itpartner.nu Fri Feb 25 11:49:52 2005 From: ac at itpartner.nu (Anders Christensen) Date: Fri, 25 Feb 2005 11:49:52 +0100 Subject: A plug-in for Nagios to check the a terminal server is runing ? Message-ID: <9370773F5F35CB4281A6C3EC61E3A0CA0F9C96@itpdk-srv01.itpartner.dom> Is there a plugin the tests if a terminal server is up and running ? I could just check the terminal services, but sometimes, they continue to "run", while the terminal server is not accepting new connections. And some of our terminal servers are using load balancing, and the clients connects to at fictional IP adresse for the "cluster" -------------- next part -------------- An HTML attachment was scrubbed... URL: From ae at op5.se Thu Feb 24 21:28:45 2005 From: ae at op5.se (Andreas Ericsson) Date: Thu, 24 Feb 2005 21:28:45 +0100 Subject: Help on check_http to check a certain URL. In-Reply-To: <20050224201750.97046.qmail@web13606.mail.yahoo.com> References: <20050224201750.97046.qmail@web13606.mail.yahoo.com> Message-ID: <421E38FD.4080404@op5.se> Mukarram Syed wrote: > Hi, > I am trying to use Nagios plugin check_http to check a > certain url. > > This works fine: > > # ./check_http www.yahoo.com > HTTP ok: HTTP/1.1 200 OK - 0.213 second response > time |time= 0.213 > > But I am trying to check for SiteScope URL on an > internal server. > > # ./check_http > http://10.0.2.100:8888/SiteScope/htdocs/Detailestore.html > Invalid host name > 'http://10.0.2.100:8888/SiteScope/htdocs/Detailestore.html' > Unable to open TCP socket > > and tried this... > > # ./check_http > 10.0.2.100:8888/SiteScope/htdocs/Detailestore.html > Invalid host name > '10.0.2.100:8888/SiteScope/htdocs/Detailestore.html' > Unable to open TCP socket > > I entered the hostname instead of the IP but same > error. > > How else should I check this URL? > The option syntax of check_http is quite stupid, actually, since it doesn't even try to interpret full URI's. check_http -H 10.0.2.100 -p 8888 -u /SiteScope/htdocs/Detailestore.html should do roughly what you want. If not, try check_http --help -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From matt.garrett at shell.com Fri Feb 25 16:02:13 2005 From: matt.garrett at shell.com (Garrett, Matt M SITI-ITISEEEE) Date: Fri, 25 Feb 2005 15:02:13 -0000 Subject: Nagios 2.0b2 hostextinfo is broken after approx 66 host entries Message-ID: <4E88F6699E4BAE41B724A3EC3CC457D501478930@abe-s-039.europe.shell.com> Folks I have been trying to use hostextinfo ,which worked fine in Version 1.2 Doing the following ../bin/nagios -v nagios.cfg Nagios 2.0b2 Copyright (c) 1999-2005 Ethan Galstad (www.nagios.org) Last Modified: 02-09-2005 License: GPL Reading configuration data... Segmentation Fault(coredump) The cgi.cfg file as over 66 host entries. If I reduce the file (cgi.cfg) down to less then 66 host entries then Nagios does not core dump. Does any body have any thoughts / idea's Thanks Matt Matthew Garrett Linux / Unix Help Desk EP Shell Information Technology International Limited Seafield House, North Anderson Drive, Aberdeen AB15 6GZ, United Kingdom Tel: +44 (0)1224 81 7920 Other Tel: Internal 630 1506 Email: Internet: http://www.shell.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ac at itpartner.nu Fri Feb 25 16:00:10 2005 From: ac at itpartner.nu (Anders Christensen) Date: Fri, 25 Feb 2005 16:00:10 +0100 Subject: Statusmap icon, while nagios runs on mySQL Message-ID: <9370773F5F35CB4281A6C3EC61E3A0CA0F9C9B@itpdk-srv01.itpartner.dom> I cannot locate information about, how to use statusmap icons, when Nagios uses SQL. How do I add icons to my hosts ? I have made this files Hostextinfo.cfg define hostextinfo { host_name ProCurve_2523 icon_image itpartner.png icon_image_alt Cisco 2500 Router vrml_image itpartner.png statusmap_image nagios.gd2 } And placed the ipartner.png logo in the folder /usr/share/nagios/htdocs/images/logos/, but as far as I can read, I doesnt work, while using SQL database. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ac at itpartner.nu Fri Feb 25 16:22:28 2005 From: ac at itpartner.nu (Anders Christensen) Date: Fri, 25 Feb 2005 16:22:28 +0100 Subject: SV: NSClient 0.0.1 RC1 Message-ID: <9370773F5F35CB4281A6C3EC61E3A0CA0F9C9C@itpdk-srv01.itpartner.dom> I crashes on my Windows XP SP2, Danish version. I will try to install it on another Danish version of Windows XP, inorder to see if it is the language that is the problem. I crashes after 10 seconds, with a runtime ++ error ________________________________ Fra: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] P? vegne af Michael Medin Sendt: 22. februar 2005 10:25 Til: nagios-users at lists.sourceforge.net Emne: [Nagios-users] NSClient 0.0.1 RC1 Hi, I have just released RC1 of NSClient++ it has basic functionality and supports most of the basic commands of NSClient. (only REQ_COUNTER, REQ_FILEAGE and REQ_INSTANCES are missing). It can be found at http://sourceforge.net/projects/nscplus/ Simple installation instructions: Unzip to a directory of you choice, run "NSClient++ /install" to install the service definition and then "NSCLient++ /start" to start the service. If you rather not run it as a service run "NSClient++ /test" to start the program interactively. A few important things: be sure to comment out either ConsoleLogger.dll or FileLogger.dll depending on if you run it interactively or as a service. Also note that this by default binds to port 1234 (as to not collide with NSClient). Check out readme.txt for details on how to install / configure and use the application. As for resources/leaks I ran this for about 24 hours on a few of our servers during yesterday polling about 5 times each second without much impact (used 2.2Mb memory and pretty much no CPU, according to ProcExp www.sysinternals.com) **IMPORTANT** Don't go changing all you NSClient's as of yet, this is a work in progress, settings/options/things might change and you will have to do it all over again, but please feel free to test this on all your installations :) A few things I am interested in (read feedback): 1, Does it work on ? 2, Does it work as expected? 3, Settings is not 100% compatible with NSClient, should I add an option "settings=read from nsclient" or similar to make it a *drop in* replacement? To me this feels a bit excessive as you need to "install" the exe file anyway so you might as well fix your own custom config and install that as well. 4, Installation procedure? (I don't really know at all how people generally installs these kinds of things so feedback here would be interesting) 5, How does: Counters work, can someone send me an example of this ? 6, How does REQ_FILEAGE work? (I can find no documentation in check_nt for this command.) 7, How does REQ_INSTANCES work? (I can find no documentation in check_nt for this command.) 8, Should I post to this list ? (should I move this to "my own" list) Regards, Michael Medin Direkt: 08-410 052 42 Mobil: 0733-35 55 42 E-mail: michael.medin at altcom.se Internet: WWW.ALTCOM.SE ALTCOM AB SEGELB?TSV?GEN 2, 11264 STOCKHOLM TELEFON: 08-7 300 300 FAX: 08-7 300 305 EMAIL: INFO at ALTCOM.SE INTERNET: WWW.ALTCOM.SE This message contains information that may be privileged or confidential and is the property of the Altcom AB. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify me immediately and delete all copies of this message. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ae at op5.se Thu Feb 24 21:18:31 2005 From: ae at op5.se (Andreas Ericsson) Date: Thu, 24 Feb 2005 21:18:31 +0100 Subject: Alias instead of hostname in summary pages cgi In-Reply-To: References: Message-ID: <421E3697.2020602@op5.se> Jason Patterson wrote: > So has anyone actually done this (consistently shown alias in place of > hostname) or is there an existing patch out there? > No, but it is a trivial fix which I expect won't catch on very quickly if you send it upstream. A better one would be to add a html "title" element to the host so that it displays the alias when you hover your mouse over the link. This way you could also have some hope of getting a patch accepted if you send it upstream. > Thanks > > yan Moreton wrote: > > Hi, > > > > Is it possible for all the summary pages to display the alias instead > of the > > hostname? > > No, but it is possible to exchange host_name for alias (assuming you"re > > willing to remove whitespace and other non-allowed chars). > > > If not, is it possible to re-compile the cgi to reflect this > > requirement? > > > > Naturally, but it would require a couple of alterations of the code. If > > you are to create a patch, try to make it a configurable option, and > I"m > sure Ethan won"t mind incorporating it. That way you can update the > program without risk of it breaking. > > > Many Thanks in advance, > > > > Ryan > > > > -- > Andreas Ericsson andreas.ericsson at op... > OP5 AB http://www.op5.se > Lead Developer > > > > > > Jason Patterson > Indiana Higher Education Telecommunication System > Desk: (317) 263-8821 > Cell: (317) 430-2743 > > > > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From vuhung16duong at yahoo.co.jp Fri Feb 25 08:44:28 2005 From: vuhung16duong at yahoo.co.jp (Bit Takeshi) Date: Fri, 25 Feb 2005 16:44:28 +0900 (JST) Subject: reading load status Message-ID: <20050225074428.96068.qmail@web2912.mail.bbt.yahoo.co.jp> Hello all, How we read "load average" in load Load Service? I got noticed( see below) but don't know what "soft" and "hard" mean. I just think "0.04, 0.39, 0.27" is not-that-bad load. Please give me some advices. Thank you in advance. ######################################### 02-24-2005 03:07:50 Service Alert linux1 LOAD OK SOFT OK - load average: 0.44, 0.58, 0.28 02-24-2005 03:07:00 Service Alert linux1 LOAD WARNING SOFT WARNING - load average: 1.12, 0.71, 0.30 02-24-2005 03:05:50 Service Alert linux1 LOAD WARNING SOFT WARNING - load average: 1.18, 0.62, 0.24 02-23-2005 03:10:50 Service Alert linux1 LOAD OK HARD OK - load average: 0.04, 0.39, 0.27 02-23-2005 03:05:50 Service Alert linux1 LOAD WARNING HARD WARNING - load average: 1.29, 0.67, 0.26 02-23-2005 03:04:50 Service Alert linux1 LOAD WARNING SOFT WARNING - load average: 1.15, 0.52, 0.19 02-23-2005 03:03:50 Service Alert linux1 LOAD WARNING SOFT WARNING - load average: 1.02, 0.36, 0.13 ########################### My system: Red Hat Linux release 9 (Shrike) Nagios 2.0b2 Mem: 1054822400 1037209600 17612800 0 179134464 700030976 Swap: 2089209856 108093440 1981116416 MemTotal: 1030100 kB CPU: (Intel(R) Xeon(TM) CPU 3.20GHz)x4. http://www.fedu.uec.ac.jp/~vuhung/ http://chuiyang.org __________________________________ Let's Celebrate Together! Yahoo! JAPAN http://pr.mail.yahoo.co.jp/so2005/ ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Feb 25 17:18:03 2005 From: ae at op5.se (Andreas Ericsson) Date: Fri, 25 Feb 2005 17:18:03 +0100 Subject: Nagios 2.0b2 hostextinfo is broken after approx 66 host entries In-Reply-To: <4E88F6699E4BAE41B724A3EC3CC457D501478930@abe-s-039.europe.shell.com> References: <4E88F6699E4BAE41B724A3EC3CC457D501478930@abe-s-039.europe.shell.com> Message-ID: <421F4FBB.5060707@op5.se> Garrett, Matt M SITI-ITISEEEE wrote: > Folks > > I have been trying to use hostextinfo ,which worked fine in Version 1.2 > > Doing the following > > ../bin/nagios -v nagios.cfg > > Nagios 2.0b2 > Copyright (c) 1999-2005 Ethan Galstad (www.nagios.org) > Last Modified: 02-09-2005 > License: GPL > > Reading configuration data... > > Segmentation Fault(coredump) > > The cgi.cfg file as over 66 host entries. > > If I reduce the file (cgi.cfg) down to less then 66 host entries then Nagios does not core dump. > cgi.cfg is not supposed to have host entries. It's pretty bad that nagios dumps core instead of barfing, but in case your setup is anywhere near normal, hostextinfo isn't supposed to be in cgi.cfg. > Does any body have any thoughts / idea's > > Thanks > > Matt > > > Matthew Garrett > Linux / Unix Help Desk EP > Shell Information Technology International Limited > Seafield House, North Anderson Drive, Aberdeen AB15 6GZ, United Kingdom > > Tel: +44 (0)1224 81 7920 Other Tel: Internal 630 1506 > Email: > Internet: http://www.shell.com > > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Feb 25 17:22:31 2005 From: ae at op5.se (Andreas Ericsson) Date: Fri, 25 Feb 2005 17:22:31 +0100 Subject: reading load status In-Reply-To: <20050225074428.96068.qmail@web2912.mail.bbt.yahoo.co.jp> References: <20050225074428.96068.qmail@web2912.mail.bbt.yahoo.co.jp> Message-ID: <421F50C7.1010100@op5.se> Bit Takeshi wrote: > Hello all, > > How we read "load average" in load Load Service? I got > noticed( see below) but don't know what "soft" and "hard" > mean. SOFT means nagios still hasn't checked the service max_check_attempts times. HARD is the exact opposite. When nagios hits a HARD state change, it sends a notification. > I just think "0.04, 0.39, 0.27" is not-that-bad > load. > True, but it warned for 1min average being over 1. You most likely need to adjust your threshold values for these checks. More suitable would be 5,3,2 for warning, and 8,4,3 for critical (or something like that). > Please give me some advices. > > Thank you in advance. > > ######################################### > 02-24-2005 03:07:50 Service Alert linux1 LOAD OK SOFT OK - > load average: 0.44, 0.58, 0.28 > 02-24-2005 03:07:00 Service Alert linux1 LOAD WARNING SOFT > WARNING - load average: 1.12, 0.71, 0.30 > 02-24-2005 03:05:50 Service Alert linux1 LOAD WARNING SOFT > WARNING - load average: 1.18, 0.62, 0.24 > 02-23-2005 03:10:50 Service Alert linux1 LOAD OK HARD OK - > load average: 0.04, 0.39, 0.27 > 02-23-2005 03:05:50 Service Alert linux1 LOAD WARNING HARD > WARNING - load average: 1.29, 0.67, 0.26 > 02-23-2005 03:04:50 Service Alert linux1 LOAD WARNING SOFT > WARNING - load average: 1.15, 0.52, 0.19 > 02-23-2005 03:03:50 Service Alert linux1 LOAD WARNING SOFT > WARNING - load average: 1.02, 0.36, 0.13 > ########################### > > My system: > Red Hat Linux release 9 (Shrike) > Nagios 2.0b2 > Mem: 1054822400 1037209600 17612800 0 179134464 > 700030976 > Swap: 2089209856 108093440 1981116416 > MemTotal: 1030100 kB > CPU: (Intel(R) Xeon(TM) CPU 3.20GHz)x4. > > > > > http://www.fedu.uec.ac.jp/~vuhung/ > http://chuiyang.org > > __________________________________ > Let's Celebrate Together! > Yahoo! JAPAN > http://pr.mail.yahoo.co.jp/so2005/ > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From erik-spigle at mihlfeld.com Fri Feb 25 17:29:35 2005 From: erik-spigle at mihlfeld.com (Erik Spigle) Date: Fri, 25 Feb 2005 10:29:35 -0600 Subject: Is there a way to prevent a host check in a give time period? Message-ID: Why is there a "check_period" directive for service definitions, but not for host definitions? Here is the reason I ask. We have a particular server which doesn't need to have ANY host or service checks / notifications during a 1 hour period any day of the week. I easily created this time period in the timeperiods.cfg file. I assigned this time period for all notification_period directives for the host and services of this particular server. I also assigned this time period to the check_period directive for the services. However, there is no such directive for hosts. Where is the problem? Well service checks / notifications worked as expected during this 1 hour dead period. It didn't check anyting or notify anyone regarding services during this timeframe. However, it still did a host check during this period. It just didn't notify during this 1 hour dead time. Once this dead time was up, though, it proceeded to send out a host notification because it was queued up to do so--there was no way to tell it "don't check this host during this time period." As a result it went ahead and checked it and then queued up a notification for a later time (when notifications were re-enabled after the 1 hour dead time). Unless there is some other way to accomplish this, I am stumped. The service checks and notifications are working as expected during this time perdiod on this server, but host checks are not (and as a result, it still sends out the notification--just not until after the dead time). Nagios Version: 1.2 (Debian package 2:1.2-3.3) Operating System: Ubuntu 4.10 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hjp+nagios at wsr.ac.at Fri Feb 25 17:29:34 2005 From: hjp+nagios at wsr.ac.at (Peter J. Holzer) Date: Fri, 25 Feb 2005 17:29:34 +0100 Subject: reading load status In-Reply-To: <20050225074428.96068.qmail@web2912.mail.bbt.yahoo.co.jp> References: <20050225074428.96068.qmail@web2912.mail.bbt.yahoo.co.jp> Message-ID: <20050225162934.GB6293@wsr.ac.at> On 2005-02-25 16:44:28 +0900, Bit Takeshi wrote: > How we read "load average" in load Load Service? I got > noticed( see below) but don't know what "soft" and "hard" > mean. Read the manual: http://nagios.sourceforge.net/docs/1_0/statetypes.html > I just think "0.04, 0.39, 0.27" is not-that-bad load. That's the load when the state got back to OK: > 02-23-2005 03:10:50 Service Alert linux1 LOAD OK HARD OK - > load average: 0.04, 0.39, 0.27 The load was at "1.29, 0.67, 0.26" when nagios entered the hard warning state: > 02-23-2005 03:05:50 Service Alert linux1 LOAD WARNING HARD > WARNING - load average: 1.29, 0.67, 0.26 and had been above 1.0 for at least two minutes before (soft warning): > 02-23-2005 03:04:50 Service Alert linux1 LOAD WARNING SOFT > WARNING - load average: 1.15, 0.52, 0.19 > 02-23-2005 03:03:50 Service Alert linux1 LOAD WARNING SOFT > WARNING - load average: 1.02, 0.36, 0.13 hp -- _ | Peter J. Holzer | If the code is old but the problem is new |_|_) | Sysadmin WSR / LUGA | then the code probably isn't the problem. | | | hjp at wsr.ac.at | __/ | http://www.hjp.at/ | -- Tim Bunce on dbi-users, 2004-11-05 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 388 bytes Desc: not available URL: From boinger at tradingtechnologies.com Fri Feb 25 18:08:15 2005 From: boinger at tradingtechnologies.com (jeff vier) Date: Fri, 25 Feb 2005 11:08:15 -0600 Subject: Is there a way to prevent a host check in a give time period? In-Reply-To: References: Message-ID: <1109351295.22819.29.camel@localhost> On Fri, 2005-02-25 at 10:29 -0600, Erik Spigle wrote: > Why is there a "check_period" directive for service definitions, but not for host definitions? because host checks only "go off" if that host has a service alert. > it still did a host check during this period Why you got a host check fired off is likely an issue of freshness checking overriding your timeperiod (or, perhaps something else...hard to say offhand). ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From JHershkowitz at merklenet.com Fri Feb 25 18:01:29 2005 From: JHershkowitz at merklenet.com (Jason Hershkowitz) Date: Fri, 25 Feb 2005 12:01:29 -0500 Subject: MiscCommands.CFG Woes Message-ID: <5A9462EA063CC24DB3250399DD6DD24E078ECA2C@post.merklenet.com> HELP! Whenever I use VI to edit the MiscCommands.cfg file, and save it, the changes stick ... however when I restart Nagios, they are gone again. Does anyone know what I am doing wrong? Thank You! Jason Hershkowitz Corporate Systems Administrator Merkle Direct Marketing, Inc. Direct Line: 301-429-4147 Fax Number: 301-429-2865 Email: jhershkowitz at merklenet.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bill_Akins at emoryhealthcare.org Fri Feb 25 18:28:04 2005 From: Bill_Akins at emoryhealthcare.org (Bill Akins) Date: Fri, 25 Feb 2005 12:28:04 -0500 Subject: A plug-in for Nagios to check the a terminal server is runing ? Message-ID: You can check to see if the TermService service is running. I do pretty much the same but checking for the Citrix IMAService using check_wsc.pl My checkcommands.cfg entry: # 'check_ima' command define command { command_name check_ima command_line $USER1$/check_wsc.pl -H $HOSTADDRESS$ -r $USER6 -t services -p "IMAService" } $USER1 is the path to libexec dir $USER6 is the M$ server running the webserver portion of wsc You can just replace "IMAService" with "TermService" My services.cfg entry: # Service definition for checking Citrix IMA service define service{ use generic-service host_name server1,server2,server3 service_description IMA_Service is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups someone_that_cares notification_interval 30 notification_period 24x7 notification_options w,u,c,r check_command check_ima } Running Nagios v2.x... HTH! >>> "Anders Christensen" 2/25/2005 5:49 AM >>> Is there a plugin the tests if a terminal server is up and running ? I could just check the terminal services, but sometimes, they continue to "run", while the terminal server is not accepting new connections. And some of our terminal servers are using load balancing, and the clients connects to at fictional IP adresse for the "cluster" ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kfrankovich at fortdearborn.com Fri Feb 25 19:11:54 2005 From: kfrankovich at fortdearborn.com (Kirk Frankovich) Date: Fri, 25 Feb 2005 12:11:54 -0600 Subject: Host v Service Check Message-ID: Nagios 2 allows for scheduled host checks...however this is discouraged for reasons I am still not clear on. Currently, we do not have host checks scheduled regularly, but instead have a separate "Ping" service that pings each host every 5 minutes to see if it is up. My question is does it make sense for us to enable and optimize host checks and get rid of the ping service or is there a really good reason to never enable regular host checks? Thanks in advance for any help/advice. Kirk Frankovich Systems Administrator Fort Dearborn Company -------------- next part -------------- An HTML attachment was scrubbed... URL: From jvanas at jackofallgames.com Fri Feb 25 19:20:31 2005 From: jvanas at jackofallgames.com (Josh Van As) Date: Fri, 25 Feb 2005 13:20:31 -0500 Subject: Help with Crontab scheduling downtime Message-ID: Can anyone help with this? Or at least recommend a downtime scheduler that works in 2.02b? I can't figure out how to automate scheduling downtime. TIA? ________________________________ From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Josh Van As Sent: Wednesday, February 23, 2005 10:41 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Help with Crontab scheduling downtimejdets2,6:15:00,2700,CRONTAB,0123456 I am using the sched_host_downtime script written by Kelly Cobean. I am running it on RedHat Enterprise v3 Linux against Nagios 2.0b2. I believe I am correctly scheduling downtime for the hosts listed below between 6:15am and 7:45AM. However, when these hosts rebooted, we were notified by Nagios. The other oddity I noticed is that the downtime, although listed in the log, never appeared in the downtime.cfg file or in the CGI interface for "Downtime". Here is my host_downtime.cfg file: jdets2,6:15:00,2700,CRONTAB,0123456 jdets3,6:30:00,2700,CRONTAB,0123456 jdets6,6:45:00,2700,CRONTAB,0123456 jdets8,7:00:00,2700,CRONTAB,0123456 jgerpctx05,7:15:00,2700,CRONTAB,0123456 jdets7,7:30:00,2700,CRONTAB,0123456 jgerpctx04,7:45:00,2700,CRONTAB,0123456 Here are the relevant log entries from nagios.log to prove that the cron script executed at 12:01AM. [02-23-2005 00:01:11] EXTERNAL COMMAND: SCHEDULE_HOST_DOWNTIME;jgerpctx04;1109162700;1109165400;1;2700;CRONTAB;S cheduled Maintenance [02-23-2005 00:01:11] EXTERNAL COMMAND: SCHEDULE_HOST_DOWNTIME;jdets7;1109161800;1109164500;1;2700;CRONTAB;Sched uled Maintenance [02-23-2005 00:01:11] EXTERNAL COMMAND: SCHEDULE_HOST_DOWNTIME;jgerpctx05;1109160900;1109163600;1;2700;CRONTAB;S cheduled Maintenance [02-23-2005 00:01:11] EXTERNAL COMMAND: SCHEDULE_HOST_DOWNTIME;jdets8;1109160000;1109162700;1;2700;CRONTAB;Sched uled Maintenance [02-23-2005 00:01:11] EXTERNAL COMMAND: SCHEDULE_HOST_DOWNTIME;jdets6;1109159100;1109161800;1;2700;CRONTAB;Sched uled Maintenance [02-23-2005 00:01:11] EXTERNAL COMMAND: SCHEDULE_HOST_DOWNTIME;jdets3;1109158200;1109160900;1;2700;CRONTAB;Sched uled Maintenance [02-23-2005 00:01:01] EXTERNAL COMMAND: SCHEDULE_HOST_DOWNTIME;jdets2;1109157300;1109160000;1;2700;CRONTAB;Sched uled Maintenance TIA for the help! Josh Van As ************************************************************************ ************************************************************************ ************************************************************************ ********** The information transmitted is intended only for the person to whom it is addressed and may be confidential and privileged and protected from disclosure. Any review, retransmission, dissemination or other use of, or taking any action in reliance upon, this information by persons or entities other than the intended recipients are prohibited. If you are not the intended recipient, please contact the sender and delete the material from any computer. ************************************************************************ ************************************************************************ ************************************************************************ ********** -------------- next part -------------- An HTML attachment was scrubbed... URL: From ccasler at ihets.org Fri Feb 25 19:48:49 2005 From: ccasler at ihets.org (Cory Casler) Date: Fri, 25 Feb 2005 13:48:49 -0500 Subject: Hostname change. Message-ID: I have a hostname that needs to be changed, how do I change the hostname and maintain its reference to old data? Cory ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Bill_Akins at emoryhealthcare.org Fri Feb 25 19:51:44 2005 From: Bill_Akins at emoryhealthcare.org (Bill Akins) Date: Fri, 25 Feb 2005 13:51:44 -0500 Subject: Check disk space NS_Client Message-ID: Got Python? I came across this today while looking for something totaly unrelated... http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/86554 I'm sure you can do the same in Perl, VB, etc. >>> Henrique Oliveira 2/23/2005 11:26:11 AM >>> Sand Philipp wrote: Hi,This may not be the nicest way, but, you can give it a try ... ;)Simply mount the folder you want to check to a Driveletter e.g. net usex: \\127.0.0.1\c$\blablabla and then check for free space on x. It's not possible because "net use" is used to map network folders or shares, which is not the case. And of course the number of available letters is very limited (at this point we have around 40 sites on this webserver) ________________________________ From: nagios-users-admin at lists.sourceforge.net[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of HenriqueOliveira Sent: Tuesday, February 22, 2005 5:33 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Check disk space NS_Client Hello, I'm running Nagios 1.2 with Nagmin (DB support) with noproblems. We have a webserver running multiple sites and we need to knowis a given site (folder) has reached a certain amount of disk usage. Is it possible to monitor directories in a hard-drive, opposedto only checking the whole hard-drive? Regards, Henrique Oliveira -------------- next part -------------- An HTML attachment was scrubbed... URL: From ac at itpartner.nu Fri Feb 25 20:07:20 2005 From: ac at itpartner.nu (Anders Christensen) Date: Fri, 25 Feb 2005 20:07:20 +0100 Subject: SV: A plug-in for Nagios to check the a terminal server is runing ? Message-ID: <9370773F5F35CB4281A6C3EC61E3A0CA0F9C9D@itpdk-srv01.itpartner.dom> Getting this error itpdk-nagios:/usr/lib/nagios/plugins# ./check_citrix -H 192.168.0.12 Bareword "BUFFER_SIZE" not allowed while "strict subs" in use at ./check_citrix line 135. Bareword "TEST_COUNT" not allowed while "strict subs" in use at ./check_citrix line 139. Bareword "BUFFER_SIZE" not allowed while "strict subs" in use at ./check_citrix line 187. Bareword "BUFFER_SIZE" not allowed while "strict subs" in use at ./check_citrix line 196. Bareword "TEST_COUNT" not allowed while "strict subs" in use at ./check_citrix line 202. Execution of ./check_citrix aborted due to compilation errors. Mvh Anders Christensen IT Partner Danmark ApS ac at itpartner.nu -----Oprindelig meddelelse----- Fra: Schmitz, Carsten [mailto:Carsten.Schmitz at aegon.com] Sendt: 25. februar 2005 12:43 Til: Anders Christensen; nagios-users at lists.sourceforge.net Emne: RE: [Nagios-users] A plug-in for Nagios to check the a terminal server is runing ? Hi, > Is there a plugin the tests if a terminal server is up and running ? What kind of terminal server? Citrix? I am using a perl script that emulates the ICA protocol by replaying captured packets and checks for published applications. I don't know anymore where I originally downloaded it, but I attach it below. Place in a file in your nagios/libexec directory, then reference in checkcommands.cfg. Cheers, Carsten ------------ #!/usr/bin/perl -w # $Id: check_citrix,v 1.1 2002/11/29 12:02:00 stanleyhopcroft Exp $ # $Log: check_citrix,v $ # Revision 1.1 2002/11/29 12:02:00 stanleyhopcroft # # New plugin to check the ICA browse service (used by Citrix Metaframe servers) from # Ed Rolison and Tom De Blende. # # Ed Rolison 15/06/02 # ed at nightstalker.net # If it doesn't work, please let me know, I've only had access to my # environment so I'm not 100% sure. # # If you want to mess around with this script, then please feel free # to do so. # However, if you add anything 'funky' then I'd really appreciate # hearing about it. # # Oh, and if you do ever make huge amounts of money out of it, cut me # in :) use strict ; use IO::Socket; use IO::Select; use FileHandle; use Getopt::Long ; use vars qw($opt_H $opt_B $opt_W $opt_T $debug @citrix_servers $crit_pub_apps $warn_pub_apps $long_list); use utils qw(%ERRORS &print_revision &support &usage); my $PROGNAME = 'check_citrix' ; sub print_help (); sub print_usage (); sub help (); sub version (); delete @ENV{'PATH', 'IFS', 'CDPATH', 'ENV', 'BASH_ENV'}; # You might have to change this... use constant PACKET_TIMEOUT=> 1; # Number of seconds to wait for further UDP packets use constant TEST_COUNT=> 2; # Number of datagrams sent without reply use constant BUFFER_SIZE=> 1500; # buffer size used for 'recv' calls. use constant LONG_LIST=> 0 ; # this is for if you have many published applications. # if you set it, it won't do any harm, but may slow the test # down a little. (Since it does a 'recv' twice instead of # once and therefore may have to wait for a timeout). use constant ICA_PORT=> 1604; # what port ICA runs on. Unlikely to change. # End user config. Getopt::Long::Configure('bundling', 'no_ignore_case'); GetOptions ("V|version" => \&version, "h|help" => \&help, "d|debug" => \$debug, "B|broadcast_addr:s"=> \$opt_B, "C|citrix_servers:s"=> \@citrix_servers, "L|long_list"=> \$long_list, "P|crit_pub_apps:s"=> \$crit_pub_apps, "T|Packet_timeout:i" => \$opt_T, "W|warn_pub_apps:s"=> \$warn_pub_apps, ) ; # configuration section my $broadcast_addr = $1 if $opt_B and $opt_B =~ m#(\d+\.\d+\.\d+\.\d+)# ; usage("Invalid broadcast address: $opt_B\n") if $opt_B and not defined($broadcast_addr) ; usage("You must provide either the names of citrix servers or the broadcast address of the subnet containing them\n") unless (@citrix_servers or $broadcast_addr) ; my @target = defined $broadcast_addr ? ($broadcast_addr) : @citrix_servers ; usage("You must provide the names of the published applications that the Citrix browser should be advertising\n") unless $crit_pub_apps or $warn_pub_apps ; my $Timeout = $opt_T if defined $opt_T ; $Timeout = PACKET_TIMEOUT unless defined $Timeout ; $long_list = LONG_LIST unless defined $long_list ; my @crit_pub_apps = $crit_pub_apps ? split(/,/, $crit_pub_apps) : () ; my @warn_pub_apps = $warn_pub_apps ? split(/,/, $warn_pub_apps) : () ; # definitions of query strings. Change at your own risk :) # this info was gathered with tcpdump whilst trying to use an ICA client, # so I'm not 100% sure of what each value is. my @bcast_helo = &tethereal2list(<<'End_of_Tethereal_trace', '1e') ; 0020 ff ff 04 d6 06 44 00 26 4a 76 1e 00 01 30 02 fd .....D.&Jv...0.. 0030 a8 e3 00 02 f5 95 9f f5 30 07 00 00 00 00 00 00 ........0....... 0040 00 00 00 00 00 00 01 00 End_of_Tethereal_trace my @bcast_query_app = &tethereal2list(<<'End_of_Tethereal_trace', '24') ; 0020 64 17 04 50 06 44 00 2c 85 6a 24 00 01 32 02 fd d..P.D.,.j$..2.. 0030 a8 e3 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0040 00 00 00 00 00 00 21 00 02 00 00 00 00 00 ......!...... End_of_Tethereal_trace my @direct_helo = &tethereal2list(<<'End_of_Tethereal_trace', '20') ; 0020 64 17 05 0f 06 44 00 28 ab b5 20 00 01 30 02 fd d....D.(.. ..0.. 0030 a8 e3 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0040 00 00 00 00 00 00 00 00 00 00 End_of_Tethereal_trace my @direct_query_app = &tethereal2list(<<'End_of_Tethereal_trace', '2c') ; 0020 64 17 05 10 06 44 00 34 7a 9a 2c 00 02 32 02 fd d....D.4z.,..2.. 0030 a8 e3 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0040 00 00 00 00 00 00 21 00 02 00 01 00 00 00 00 00 ......!......... 0050 00 00 00 00 00 00 End_of_Tethereal_trace my $Udp = IO::Socket::INET->new( Proto => 'udp' ) || die "Socket failure: $!"; # select is here to allow us to set timeouts on the connections. Otherwise they # just 'stop' until a server appears. my $select = IO::Select->new($Udp) || die "Select failure: $!"; # helo needs to be broadcast, but query does not. $Udp->sockopt(SO_BROADCAST, 1 ); $Udp->autoflush(1); my ($remote_host, $buff, $buff2, $raddr, $rport, $rhost, @remote_response); my (@query_message, $send_addr, $this_test) ; $buff = $buff2 = ''; $this_test = 0; # If there is no response to the first helo packet it will be resent # up to TEST_COUNT (see at the top). while ( ++$this_test <= TEST_COUNT && !$buff ) { print "Sending helo datagram. datagram number: ", $this_test, "\n" if $debug ; # if we have multiple targets, we probe each of them until we get a # response... foreach my $destination (@target) { @query_message = ( $broadcast_addr ? @bcast_helo : @direct_helo) ; print "Querying $destination for master browser\n" if $debug ; $send_addr = sockaddr_in(ICA_PORT, inet_aton($destination) ); &dump(pack('C*', @query_message)) if $debug ; $Udp->send( pack('C*', @query_message), 0, $send_addr ); if ( $select->can_read($Timeout) ) { $remote_host = $Udp->recv($buff, BUFFER_SIZE, 0 ); } last if $buff ; sleep 1 ; } # foreach destination } # while loop # ok we've looped several times, looking for a response. If we don't have one # yet, we simply mark the whole lot as being unavailable. unless ( $buff ) { print "Failed. No response to helo datagram (master browser query) from ", $broadcast_addr ? $broadcast_addr : "@citrix_servers", ".\n" ; exit $ERRORS{CRITICAL} ; } ($rport, $raddr) = sockaddr_in( $remote_host ); $rhost = gethostbyaddr( $raddr, AF_INET ); my @tmpbuf = unpack('C*', $buff ); if ( $debug ) { print "$rhost:$rport responded with: ",length($buff), " bytes\n"; &dump($buff) ; } #if debug # now we have a response, then we need to figure out the master browser, and # query it for published applications... my $master_browser = join '.', @tmpbuf[32..35] ; # ok should probably error check this, because it's remotely possible # that a server response might be completely wrong... print "Master browser = $master_browser\n" if $debug ; $send_addr = sockaddr_in(ICA_PORT, inet_aton($master_browser)); if ( $broadcast_addr ) { print "using broadcast query\n" if $debug ; @query_message = @bcast_query_app; } else { print "using directed query\n" if $debug ; @query_message = @direct_query_app; } # now we send the appropriate query string, to the master browser we've found. $buff = ''; $this_test = 0 ; print "Querying master browser for published application list\n" if $debug ; while ( ++$this_test <= TEST_COUNT && !$buff ) { print "Sending application query datagram. datagram number: ", $this_test, "\n" if $debug ; &dump(pack('C*', @query_message)) if $debug ; $Udp->send( pack ('C*', @query_message), 0, $send_addr ); if ( $select->can_read($Timeout) ) { $remote_host = $Udp->recv($buff, BUFFER_SIZE, 0 ); # $buff = substr($buff, 32) ; # Hope that ICA preamble is first 32 bytes } # long application lists are delivered in multiple packets my $buff2 = '' ; while ( $long_list && $select->can_read($Timeout) ) { $remote_host = $Udp->recv($buff2, BUFFER_SIZE, 0 ); $buff .= $buff2 if $buff2 ; # $buff .= substr($buff2, 32) if $buff2 ; # Hope that ICA preamble is first 32 bytes } last if $buff ; sleep 1 ; } # while test_count unless ( $buff ) { print "Failed. No response to application query datagram from ", $master_browser, ".\n" ; exit $ERRORS{CRITICAL} ; } # we got a response from a couple of retries of the app query ($rport, $raddr) = sockaddr_in ( $remote_host ); $rhost = gethostbyaddr ( $raddr, AF_INET ); if ( $debug ) { print "$rhost:$rport responded to app query with: ",length($buff), " bytes\n"; &dump($buff) ; } #debug my $app_list = $buff ; # delete nulls in unicode # but only if there is unicode (usually from # broadcast query) $app_list =~ s/(?:(\w| |-)\x00)/$1/g if $app_list =~ /(?:(?:(?:\w| |-)\x00){3,})/ ; # FIXME an application name is # 3 or more unicoded characters # FIXME locale # extract null terminated strings my (@clean_app_list, $clean_app_list) ; $clean_app_list = join(',', @clean_app_list = $app_list =~ m#([A-Za-z](?:\w| |-|[???????])+?(?=\x00))#g ) ; # patch for German umlauts et al from Herr Mike Gerber. # $clean_app_list = join(',', @clean_app_list = $app_list =~ m#([A-Z](?:\w| |-)+?(?=\x00))#g ) ; # FIXME everyones apps don't start with caps print qq(Received list of applications: "$clean_app_list".\n) if $debug ; if ( scalar @crit_pub_apps and my @missing = &simple_diff(\@clean_app_list, \@crit_pub_apps) ) { print qq(Failed. "@missing" not found in list of published applications), qq( "$clean_app_list" from master browser "$master_browser".\n) ; exit $ERRORS{CRITICAL} ; } if ( my @missing = &simple_diff(\@clean_app_list, \@warn_pub_apps) ) { print qq(Warning. "@missing" not found in list of published applications), qq( "$clean_app_list" from master browser "$master_browser".\n) ; exit $ERRORS{WARNING} ; } my @x = (@crit_pub_apps, @warn_pub_apps) ; my $blah = ( scalar(@x) == 1 ? 'the published application "' . join(',', @x) . '" is available' : 'the published applications "' . join(',', @x) . '" are available' ) ; print qq(Ok. Citrix master browser "$master_browser" reported that $blah.\n) ; exit $ERRORS{OK} ; # sleep $Timeout; # because otherwise we can get responses from # the WRONG servers. DOH close $Udp; sub print_usage () { print "Usage: $PROGNAME (-B | -C ..) -W -P \n"; } sub print_help () { print_revision($PROGNAME,'$Revision: 1.1 $ '); print "Copyright (c) 2002 Ed Rolison/Tom De Blende/Karl DeBisschop/S Hopcroft Perl Check Citrix plugin for NetSaint. Returns OK if the Citrix master browser returns a 'published application' list that contain names specified by the -W or -P options The plugin works by If the -B option is specified, sending a broadcast helo to find the address of the Citrix master browser in the specified subnet. return critical if there is no reply; Else if the -C option is specified send a direct helo to the specified server until there is a response (containing the address of the Citrix master browser) Query the master browser (using a 'broadcast published applications query ' if -B) and compare the published applications returned to those specified by -W and -P options return Critical if the published applications specified by -P is not a subset of the query responses; return Warning if the published applications specified by -W is not a subset of the query responses; return OK "; print_usage(); print ' -B, --broadcast_address=STRING The broadcast address that should contain Citrix master browser. This option takes precedence over -C. -C, --citrix_server:STRING Optional __name(s)__ of Citrix servers that could be the master browser (used when broadcast not possible). -L, --long_list Set this if you have heaps of published applications (ie more than will fit in _one_ UDP packet) -P, --crit_published_app=STRING Optional comma separated list of published application that must be in the response from the master browser. Check returns critical otherwise. -T, --packet-timeout:INTEGER Time to wait for UDP packets (default 1 sec). -W, --warn_published_app=STRING Optional comma separated list of published application that should be in the response from the master browser. Check returns warning otherwise. -d, --debug Debugging output. -h, --help This stuff. '; support(); } sub version () { print_revision($PROGNAME,'$Revision: 1.1 $ '); exit $ERRORS{'OK'}; } sub help () { print_help(); exit $ERRORS{'OK'}; } sub dump { my ($x) = shift @_ ; my (@x, @y, $y, $i, $rowcount) ; my ($nr, $j, $number_in_row, $number_of_bytes) ; my $dump ; $number_in_row = 16 ; $number_of_bytes = length $x ; $nr = 0 ; # styled on tethereal. foreach $j (1 .. int( $number_of_bytes / $number_in_row) ) { $y = substr($x, ($j - 1)*$number_in_row, $number_in_row) ; @y = unpack("C*", $y) ; $y =~ tr /\x00-\x19/./ ; $rowcount = sprintf("%4.4x", ($j - 1) * 0x10 ) ; $dump .= sprintf "%s %s %s\n", $rowcount, join(" ", map { sprintf "%2.2x", $_} @y), $y ; $nr++ ; } if ( $number_of_bytes % $number_in_row > 0 ) { my $spaces_to_text = $number_in_row * 3 - 1 + 3 ; $rowcount = sprintf("%4.4x", $nr * 0x10 ) ; $y = substr($x, $nr * $number_in_row ) ; @y = unpack("C*", $y) ; my $bytes = join(" ", map { sprintf "%2.2x", $_} @y) ; my $spaces = ' ' x ($spaces_to_text - length($bytes)) ; $dump .= sprintf "%s %s%s%s\n", $rowcount, $bytes, $spaces, $y ; } print $dump, "\n" ; } sub tethereal2list { my ($tethereal_dump, $start_byte) = @_ ; # return an array containing qw(0xef 0xab 0x00 ...) from a tethereal trace. # skip all stuff until the first byte given by $start_byte. return undef unless $tethereal_dump =~ /\d\d\d\d \S\S(?: \S\S){1,15}/ ; my $hex_start_byte = hex($start_byte) ; my @x = $tethereal_dump =~ m#(.+)#g ; my @y = map unpack("x6 a47", $_), @x ; my @z = map { my $y = $_; $y =~ s/(\S\S)/hex($1)/eg; my @a = split(' ', $y); @a } @y ; shift @z, while $z[0] ne $hex_start_byte ; @z ; } sub simple_diff { my ( $a_list, $b_list) = @_ ; # simple set difference 'Recipe 4.7 Perl Cookbook', Christiansen and Torkington my (%seen, @missing) ; @seen{@$a_list} = () ; foreach my $item (@$b_list) { push @missing, $item unless exists $seen{$item} ; } @missing ; } -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Anders Christensen Sent: Friday, February 25, 2005 11:50 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] A plug-in for Nagios to check the a terminal server is runing ? Is there a plugin the tests if a terminal server is up and running ? I could just check the terminal services, but sometimes, they continue to "run", while the terminal server is not accepting new connections. And some of our terminal servers are using load balancing, and the clients connects to at fictional IP adresse for the "cluster" ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Fri Feb 25 21:38:37 2005 From: marc at ena.com (Marc Powell) Date: Fri, 25 Feb 2005 14:38:37 -0600 Subject: Hostname change. Message-ID: <2B79966571B4B842B9C07E9910E38CE61AA7C1@mismail.ena.com> > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Cory Casler > Sent: Friday, February 25, 2005 12:49 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Hostname change. > > I have a hostname that needs to be changed, how do I change the hostname > and maintain its reference to old data? - Change the hostname in the nagios config files; restart or reload nagios - Change every occurrence of the hostname in every file in your archive dir (/usr/local/nagios/var/archives). A simple sed, shell or perl script can handle this. -- Marc ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From aaronhcarr at gmail.com Fri Feb 25 22:12:30 2005 From: aaronhcarr at gmail.com (Aaron Carr) Date: Fri, 25 Feb 2005 16:12:30 -0500 Subject: Statusmap icon, while nagios runs on mySQL In-Reply-To: <9370773F5F35CB4281A6C3EC61E3A0CA0F9C9B@itpdk-srv01.itpartner.dom> References: <9370773F5F35CB4281A6C3EC61E3A0CA0F9C9B@itpdk-srv01.itpartner.dom> Message-ID: Make sure you define the hostextinfo.cfg file in the cgi.cfg as such: xedtemplate_config_file=/etc/nagios/hostextinfo.cfg On Fri, 25 Feb 2005 16:00:10 +0100, Anders Christensen wrote: > > > > I cannot locate information about, how to use statusmap icons, when Nagios > uses SQL. > > > > How do I add icons to my hosts ? > > > > I have made this files Hostextinfo.cfg > > > > > > define hostextinfo > > { > > host_name ProCurve_2523 > > icon_image itpartner.png > > icon_image_alt Cisco 2500 Router > > vrml_image itpartner.png > > statusmap_image nagios.gd2 > > } > > > > And placed the ipartner.png logo in the folder > /usr/share/nagios/htdocs/images/logos/, but as far as I can read, I doesnt > work, while using SQL database. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From RLAdams at Kelsey-Seybold.com Fri Feb 25 22:23:56 2005 From: RLAdams at Kelsey-Seybold.com (Adams, Russell L.) Date: Fri, 25 Feb 2005 15:23:56 -0600 Subject: Template Based Configuration Issues Message-ID: <20050225212356.GJ3463@pingu.ksnet.com> I'm migrating from a Netsaint 0.0.7 installation to Nagios 1.2, and was frustrated by portions of the template based configuration. I thought I'd check here for advice. I love the new inheritance features using templates and being able to apply services across hostgroups. In Netsaint I was using some elaborate custom perl scripting to accomplish similar tasks and was hoping to avoid similar scripts for Nagios by utilizing the templates. One problem I'm having is that wildcards cannot contain glob patterns (ie: members server* ). I did a quick test to see if it worked, which failed for me. Is this correct that a wildcard can mean all hosts, and only all hosts? Secondly, it appears that the template definitions cannot be squeezed into one line, for example: define host{ host_name host ; alias hostalias ; use Template }; Is there a format for this I missed in the documentation, or must each template based record truly be newline separated? Third, I'm frustrated by the fact that I have to list every member host in the hostgroup definition. For automation purposes I was hoping to be able to define which hostgroup to join in the host definition, reducing the hostgroup definition to specifying the contact group for the hostgroup. Are there any workarounds for this? I'm trying to automate our Nagios configuration to a degree to keep up with our constantly changing network without constant manual intervention. I'm doing a domain transfer and matching hostnames in order to create host records for Nagios, which is why having to collect all of the hosts for a hostgroup definition is so problematic. However, defining services by the hostgroup and using host templates works wonderfully! Any suggestions are appreciated. Russell ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeffm at nicusa.com Fri Feb 25 23:01:01 2005 From: jeffm at nicusa.com (Jeff McCombs) Date: Fri, 25 Feb 2005 17:01:01 -0500 Subject: Passive service checks w/ alerts on no update? Message-ID: Gang, I'm trying to figure out the best way to monitor our NetBackup systems via Nagios. Right now, I've got it setup so that the netBackup backup_exit_notify, sends updates to services on a per-client basis via nsca. Each host then has a list of paths that are backed up as a "service", an example of how things are configured is below.. define service{ use production-cdc register 0 name generic-backup-service service_description generic-backup-service is_volatile 1 check_command check-host-alive max_check_attempts 1 normal_check_interval 1 retry_check_interval 1 active_checks_enabled 0 passive_checks_enabled 1 check_period 24x7 obsess_over_service 0 notification_period 24x7 notification_options w,u,c,r notifications_enabled 1 contact_groups nics-admin } Define service{ use generic-backup-service service_description backup on /var host_name hostA.mydomain.com,hostB.mydomain.com } Problem is, is that I'd like to be able to have a fallback position incase the backup_exit_notify script ever fails to fire off. Is there a way to setup Nagios so that "if passive service last update was > (seconds|minutes|hours|days|weeks|whatever) ago, then generate an alert" ? Is that how freshness thresholds are supposed to be used, or am I way off base? -Jeff -- Jeff McCombs | NIC, Inc Systems Administrator | http://www.nicusa.com jeffm at nicusa.com | NASDAQ: EGOV Phone: (703) 909-3277 | "NIC - the People Behind eGovernment" -- "Computers in the future may weigh no more than 1.5 tons" - Popular Mechanics, 1949 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nagios at the-galloways.us Sat Feb 26 03:04:45 2005 From: nagios at the-galloways.us (Robert S. Galloway - Nagios) Date: Fri, 25 Feb 2005 19:04:45 -0700 Subject: Passive service checks w/ alerts on no update? In-Reply-To: References: Message-ID: <1109383485.5622.1.camel@archer.ikano.com> Jeff, I have no idea what they do, but there are several scripts for NetBackup monitoring on the NagiosExchange page here: http://www.nagiosexchange.org/Misc.54.0.html? &tx_netnagext_pi1[p_view]=22 Robert On Fri, 2005-02-25 at 17:01 -0500, Jeff McCombs wrote: > Gang, > > I'm trying to figure out the best way to monitor our NetBackup systems > via Nagios. > > Right now, I've got it setup so that the netBackup backup_exit_notify, > sends updates to services on a per-client basis via nsca. Each host then has > a list of paths that are backed up as a "service", an example of how things > are configured is below.. > > define service{ > use production-cdc > register 0 > name generic-backup-service > service_description generic-backup-service > is_volatile 1 > check_command check-host-alive > max_check_attempts 1 > normal_check_interval 1 > retry_check_interval 1 > active_checks_enabled 0 > passive_checks_enabled 1 > check_period 24x7 > obsess_over_service 0 > notification_period 24x7 > notification_options w,u,c,r > notifications_enabled 1 > contact_groups nics-admin > } > > Define service{ > use generic-backup-service > service_description backup on /var > host_name hostA.mydomain.com,hostB.mydomain.com > } > > Problem is, is that I'd like to be able to have a fallback position > incase the backup_exit_notify script ever fails to fire off. > > Is there a way to setup Nagios so that "if passive service last update > was > (seconds|minutes|hours|days|weeks|whatever) ago, then generate an > alert" ? > > Is that how freshness thresholds are supposed to be used, or am I way > off base? > > -Jeff > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Stanley.Hopcroft at IPAustralia.Gov.AU Sat Feb 26 09:48:57 2005 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Sat, 26 Feb 2005 19:48:57 +1100 Subject: A plug-in for Nagios to check the a terminal server is runing ? In-Reply-To: <20050226041614.2263C13BEC@sc8-sf-spam2.sourceforge.net> References: <20050226041614.2263C13BEC@sc8-sf-spam2.sourceforge.net> Message-ID: <20050226084855.GA239@IPAustralia.Gov.AU> Dear Folks, I am writing to thank you for your letter and say, On Fri, Feb 25, 2005 at 08:10:21PM -0800, nagios-users-request at lists.sourceforge.net wrote: > -----Oprindelig meddelelse----- > Fra: Schmitz, Carsten [mailto:Carsten.Schmitz at aegon.com]=20 > Sendt: 25. februar 2005 12:43 > Til: Anders Christensen; nagios-users at lists.sourceforge.net > Emne: RE: [Nagios-users] A plug-in for Nagios to check the a terminal = > server is runing ? > > > Hi, > > > Is there a plugin the tests if a terminal server is up and running ? > > What kind of terminal server? Citrix? > > I am using a perl script that emulates the ICA protocol by replaying = > captured packets and checks for published applications. I don't know = > anymore where I originally downloaded it, but I attach it below. Place = > in a file in your nagios/libexec directory, then reference in = > checkcommands.cfg. > > Cheers, > Carsten > > > > ------------ > > #!/usr/bin/perl -w > > # $Id: check_citrix,v 1.1 2002/11/29 12:02:00 stanleyhopcroft Exp $ > > # $Log: check_citrix,v $ > # Revision 1.1 2002/11/29 12:02:00 stanleyhopcroft > # > # New plugin to check the ICA browse service (used by Citrix Metaframe = > servers) from > # Ed Rolison and Tom De Blende. > # > The latest version of this plugin is contrib/check_ica_metaframe_pub_apps.pl in the 1.4 plugin distro (it also requires contrib/net_utils.pm and have a few less bugs than the version above). Note it doesn't check that the terminal server is working, only that the ICA layer is responding to queries for the hosts of published applications. That said, in my limited experience, the largest cause of 'terminal services/metaframe' failure is failure of these peripheral services. Finally, 1 There are a family of contrib/check_ica plugins that check the Citrix apps that run 'on the top of' terminal services. In Metaframe XP, the server locater service is called 'Citrix Program Neigbourhood' and runs over HTTP (not UDP as in the plugin above) 2 I have no idea about using RDP or whatever terminal server uses for its remote sessions, but there _is_ a plugin on SF - that didn't make it into the 1.4 release (purely for lack of time and energy) - that checks RDP 3 NC_Client (?) may do checks of terminal services ?? 4 Some of the Terminal services perf data may be exposed by SNMP ?? Yours sincerely. -- Stanley Hopcroft IP Australia Ph: (02) 6283 3189 Fax: (02) 6281 1353 PO Box 200 Woden ACT 2606 http://www.ipaustralia.gov.au -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: disclaimer.txt URL: From ae at op5.se Sat Feb 26 16:29:01 2005 From: ae at op5.se (Andreas Ericsson) Date: Sat, 26 Feb 2005 16:29:01 +0100 Subject: Template Based Configuration Issues In-Reply-To: <20050225212356.GJ3463@pingu.ksnet.com> References: <20050225212356.GJ3463@pingu.ksnet.com> Message-ID: <422095BD.6020505@op5.se> Adams, Russell L. wrote: > I'm migrating from a Netsaint 0.0.7 installation to Nagios 1.2, and > was frustrated by portions of the template based configuration. I > thought I'd check here for advice. > Nagios 2 is out. > I love the new inheritance features using templates and being able to > apply services across hostgroups. In Netsaint I was using some > elaborate custom perl scripting to accomplish similar tasks and was > hoping to avoid similar scripts for Nagios by utilizing the templates. > > One problem I'm having is that wildcards cannot contain glob patterns > (ie: members server* ). I did a quick test to see if it worked, > which failed for me. Is this correct that a wildcard can mean all > hosts, and only all hosts? > Sort of. Nagios 2 has regex support for referencing though. > Secondly, it appears that the template definitions cannot be squeezed > into one line, for example: > > define host{ host_name host ; alias hostalias ; use Template }; > > Is there a format for this I missed in the documentation, or must each > template based record truly be newline separated? > Each template based record must truly be newline separated. ; marks rest of the line as a comment, so that's a no go for variable separation. > Third, I'm frustrated by the fact that I have to list every member > host in the hostgroup definition. For automation purposes I was hoping > to be able to define which hostgroup to join in the host definition, > reducing the hostgroup definition to specifying the contact group for > the hostgroup. Are there any workarounds for this? > Nagios 2 supports this. > I'm trying to automate our Nagios configuration to a degree to keep up > with our constantly changing network without constant manual > intervention. > > I'm doing a domain transfer and matching hostnames in order to create > host records for Nagios, which is why having to collect all of the > hosts for a hostgroup definition is so problematic. However, defining > services by the hostgroup and using host templates works wonderfully! > > Any suggestions are appreciated. > Upgrade to nagios 2 while you're at it. Seems it would solve at least some of your problems. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From naman.latif at inamed.com Sat Feb 26 19:45:37 2005 From: naman.latif at inamed.com (Naman Latif) Date: Sat, 26 Feb 2005 10:45:37 -0800 Subject: check_nagios Plugin not working with Nagios 2.0b2 Message-ID: <7BEA54411F802C4CB84E72EB6AD509F620A3E1@sigma.inamed.com> Hi, The check_nagios plug-in is not working with Nagios2.0b2. Even though the status.dat file is updated, it still comes back and reports the file as outdated and a Warning message. bash-2.05# ./check_nagios -V check_nagios (nagios-plugins 1.4) 1.25 bash-2.05# ls -l /usr/local/nagios2/var total 438 drwxrwxr-x 2 nagios nagios 512 Feb 26 00:00 archives -rw-rw-r-- 1 nagios nagios 240 Feb 25 12:50 comments.dat -rw-rw-r-- 1 nagios nagios 241 Feb 25 12:50 downtime.dat -rw-r--r-- 1 nagios nagios 5 Feb 25 12:50 nagios.lock -rw-r--r-- 1 nagios nagios 7365 Feb 26 18:06 nagios.log -rw-r--r-- 1 nagios nagios 58033 Feb 25 21:06 objects.cache -rw-r--r-- 1 nagios nagios 77272 Feb 26 18:06 retention.dat drwxr-xr-x 2 nagios other 512 Feb 20 22:36 rw -rw-rw-r-- 1 nagios nagios 74469 Feb 26 18:42 status.dat bash-2.05# date Sat Feb 26 18:42:23 GMT 2005 bash-2.05# ./check_nagios -F /usr/local/nagios2/var/status.dat -e 60 -C /usr/local/nagios2/bin/nagios Nagios problem: located 1 process, status log updated 1109443407 seconds ago Any Help ? Thanks \\ Naman ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From thawn at yahoo.com Sun Feb 27 09:06:41 2005 From: thawn at yahoo.com (mike feldman) Date: Sun, 27 Feb 2005 00:06:41 -0800 (PST) Subject: semicolon in notes_url Message-ID: <20050227080641.18537.qmail@web50709.mail.yahoo.com> Fedora w/ Nagios 1.2 I have two questions revolving around extended service information. 1) I have a pretty simple servicesextinfo.cfg (using templates), and it almost does what I want it to do, except the url the link to does not include the ";" or anything after it. I tried a $; an \; and neither worked. define serviceextinfo { host_name atlas889 service_description BL 03/13 up/down notes_url http:///cricket/grapher.cgi?target=%2Fcu%2Fbl-b;view=Octets icon_image_alt usage-graph } 2) another and less important questions, is there a way to have multiple notes_url listed without creating additional webpages outside of nagios? thanks, mike feldman __________________________________ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mailinglists at lucassen.org Sun Feb 27 11:50:01 2005 From: mailinglists at lucassen.org (richard lucassen) Date: Sun, 27 Feb 2005 11:50:01 +0100 Subject: debian sarge: no logrotating Message-ID: <20050227115001.7f9d53e2.mailinglists@lucassen.org> Hello list, The nagios-1.3 that comes with Debian Sarge is not rotating its logs, although the logrotate variable is set to daily: log_rotation_method=d Is this a bug or am I missing something crucial? Richard. -- ___________________________________________________________________ Recursion: see recursion +------------------------------------------------------------------+ | Richard Lucassen, Utrecht | | Public key and email address: | | http://www.lucassen.org/mail-pubkey.html | +------------------------------------------------------------------+ ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From yoavd at qballtech.net Sun Feb 27 13:41:13 2005 From: yoavd at qballtech.net (Yoav Daniely) Date: Sun, 27 Feb 2005 14:41:13 +0200 Subject: Check_procs plugin bug In-Reply-To: <20050227041512.A26E088CEC@sc8-sf-spam1.sourceforge.net> References: <20050227041512.A26E088CEC@sc8-sf-spam1.sourceforge.net> Message-ID: <20050227124126.A41CC1276CE@hawk.qballtech.com> Greetings, The check_procs plugin did not run correctly on my Fedora Core 3 host, it never returned an "OK" status. I fixed the problem by editing config.h and changing the ps command (removing the - operator). FYI, Yoav Details: ----------- check_procs -v STDERR: Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.3/FAQ System call sent warnings to stderr PROCS WARNING: 87 processes In config.h : ----------------- Changed from: /* Verbatim command to execute for ps in check_procs */ #define PS_COMMAND "/bin/ps axwo 'stat uid ppid vsz rss pcpu comm args'" Changed to: /* Verbatim command to execute for ps in check_procs */ #define PS_COMMAND "/bin/ps -axwo 'stat uid ppid vsz rss pcpu comm args'" -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 266.5.0 - Release Date: 25/02/2005 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From naman.latif at inamed.com Sun Feb 27 20:15:47 2005 From: naman.latif at inamed.com (Naman Latif) Date: Sun, 27 Feb 2005 11:15:47 -0800 Subject: Can't Compile nrpe on Solaris 8 - getopt_long error Message-ID: <7BEA54411F802C4CB84E72EB6AD509F620A3EA@sigma.inamed.com> Hi, I am getting the below error when compiling NRPE on a SPARC Solaris 8 machine gcc -g -O2 -I/usr/local/ssl/include/openssl -I/usr/local/ssl/include -DHAVE_CONF IG_H -o nrpe nrpe.c utils.c -L/usr/local/ssl/lib/ -lssl -lcrypto -lnsl -lsocket /local1/local/bin/../lib/gcc/sparc-sun-solaris2.8/3.4.0/../../../../sparc-sun-so laris2.8/bin/ld: Dwarf Error: Invalid or unhandled FORM value: 14. /var/tmp//ccvz71wu.o: In function `process_arguments': /var/tmp//ccvz71wu.o(.text+0x18ec): undefined reference to `getopt_long' /var/tmp//ccvz71wu.o(.text+0x1944): undefined reference to `getopt_long' collect2: ld returned 1 exit status Any Help ? \\ Naman ? ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Onsite.DeTeWe at firstgroup.com Mon Feb 28 05:41:41 2005 From: Onsite.DeTeWe at firstgroup.com (Onsite DeTeWe) Date: Mon, 28 Feb 2005 04:41:41 +0000 Subject: Onsite DeTeWe is out of the office. Message-ID: I will be out of the office starting 28/02/2005 and will not return until 14/03/2005. Please call Guy Highfield on 07901854270 or Andy Abraham on 07901854235. For South Eastern Trains enquires please contact pete.tidy at ontrack-projects.co.uk or paul.dowsing at firstgroup.com ********************************************************************** This message is confidential. It may not be disclosed to, or used by, anyone other than the addressee. If you receive this message in error, please advise us immediately. Internet email is not necessarily secure. First does not accept responsibility for changes to any email which occur after the email has been sent. Attachments to this email could contain software viruses which could damage your system. First have checked the attachments for viruses before sending, but you should virus-check them before opening. For more information on our range of services or to book your tickets online, please visit:- http://www.firstgroup.com ********************************************************************** ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From guruprasadgv at world2web.com Mon Feb 28 07:59:17 2005 From: guruprasadgv at world2web.com (guruprasad g v) Date: Mon, 28 Feb 2005 12:29:17 +0530 Subject: Nagios Error Message-ID: hi ! i can across the same error while configuring nagio-2.0b2 Error: Host 'localhost' has no default contact group(s) defined!".I have configure the minimal.cfg file .I was in doubt of where exactly do we put the contact_group ">I put contact_groups only in the host definitions - that won"t work. > It worked after putting contact_groups in the absolute base template of > my host AND service definitions..." what is a absolute base template?i am no programer ,network engineer with limited knowlegde of scripting!! Please help!! Regards, Guru ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Mon Feb 28 08:15:22 2005 From: ae at op5.se (Andreas Ericsson) Date: Mon, 28 Feb 2005 08:15:22 +0100 Subject: Nagios Error In-Reply-To: References: Message-ID: <4222C50A.8090705@op5.se> guruprasad g v wrote: > hi ! > i can across the same error while configuring nagio-2.0b2 Error: Host > 'localhost' has no default contact group(s) defined!".I have configure the > minimal.cfg file .I was in doubt of where exactly do we put the > contact_group > http://www.nagios.org/docs > ">I put contact_groups only in the host definitions - that won"t work. > > It worked after putting contact_groups in the absolute base template of > > my host AND service definitions..." > what is a absolute base template?i am no programer ,network engineer with > limited knowlegde of scripting!! > > Please help!! > > Regards, > Guru > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From amontibello at gmail.com Mon Feb 28 08:25:18 2005 From: amontibello at gmail.com (Anthony Montibello) Date: Mon, 28 Feb 2005 02:25:18 -0500 Subject: NC_Net v2.20 -New version Message-ID: Hi, This is a announcement that NC_Net has a new version that has several new enhancements that were requested. This version of NC_Net includes everything from prior versions (active checks, passive checks, remote configuration of passive checks, etc...) New: BUG FIX event Log - Log type was case sensitive. BUG FOUND and fixed in Check_NT for event log did not return OK when not using -w or -c. BUG FIX - Modified WMI check to use ';' delimiter. Added ENUMPROCESS - lists all running processes. Added ENUMSERVICE - lists services based on services. Filters are available for this command they include- short name or display name. Running status (Running or Stopped), or Startup type (Automatic, Manual or Disabled). Added ENUMCOUNTER - Enumerate performance counter categories or counters. Updated USEDDISKSPACE and FREEDISKSPACE TO both use percent (when -c or -w less than 100) or Megabytes (When -c or -w greater than 100) for critical and warning. Coming in Next version: WMICOUNTER - this will be able to check a wmi query result against warning or critical value. ENUMCOUNTERDESC- this will display the official description that is in a performance counter. To help diagnose that the right counter is being used it is advised to read the descriptions of the counters first. WMIQUERY - will run a WMICHECK with a filter to limit the return results.- This is useful for viewing the class tree of WMI, since the cimv2 root contains over 500 classes. Download the newest version from Nagiosexchange or the official website www.shatterit.com/NC_Net ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From JORUIZ at azertia.com Mon Feb 28 13:21:59 2005 From: JORUIZ at azertia.com (Jorge Ruiz Martinez) Date: Mon, 28 Feb 2005 13:21:59 +0100 Subject: Apan Problem Message-ID: Hi, I'm using apan to ping routers and switches in Nagios. I'm having certain problems with some routers and switches not with all. I don't understand it. Perhaps, somebody could helps me... 1.- Viewing the Apan.debug: vie feb 25 10:06:30 CET 2005 Args: ping Switch_Axpe1 Ping 1109322390 100.0,20% 500.0,60% vie feb 25 10:06:30 CET 2005 Args: ping Switch_Axpe6 Ping 1109322390 100.0,20% 500.0,60% vie feb 25 10:06:30 CET 2005 Args: ping Router_Axpe Ping 1109322390 3000.0,80% 5000.0,100% Inserting 'ping' , '1109322390:.00189000000000000000' into /usr/share/nagios/rrd/Switch_Axpe6.rrd Inserting 'ping' , '1109322390:.00175000000000000000' into /usr/share/nagios/rrd/Switch_Axpe1.rrd Inserting 'ping' , '1109322390:.00320000000000000000' into /usr/share/nagios/rrd/Router_Axpe_Ping.rrd vie feb 25 10:06:36 CET 2005 Args: Router_Axpe 1109322396 Could not insert '' , '' into vie feb 25 10:06:36 CET 2005 Args: Switch_Axpe6 1109322396 Could not insert '' , '' into vie feb 25 10:07:26 CET 2005 Args: ping Switch_Axpe2 Ping 1109322446 100.0,20% 500.0,60% vie feb 25 10:07:26 CET 2005 Args: ping Router_Barna Ping 1109322446 3000.0,80% 5000.0,100% vie feb 25 10:07:27 CET 2005 Args: ping Switch_Axpe7 Ping 1109322447 100.0,20% 500.0,60% Inserting 'ping' , '1109322446:.00131000000000000000' into /usr/share/nagios/rrd/Switch_Axpe2.rrd Inserting 'ping' , '1109322446:.24063000000000000000' into /usr/share/nagios/rrd/Router_Barna_Ping.rrd Inserting 'ping' , '1109322447:.00344000000000000000' into /usr/share/nagios/rrd/Switch_Axpe7.rrd vie feb 25 10:07:36 CET 2005 Args: Switch_Axpe2 1109322456 Could not insert '' , '' into vie feb 25 10:08:24 CET 2005 Args: ping Router_JuanDeGaray Ping 1109322504 3000.0,80% 5000.0,100% vie feb 25 10:08:26 CET 2005 Args: ping Switch_Axpe3 Ping 1109322506 100.0,20% 500.0,60% vie feb 25 10:08:28 CET 2005 Args: ping Switch_CAI1 Ping 1109322508 100.0,20% 500.0,60% Inserting 'ping' , '1109322504:.19269000000000000000' into /usr/share/nagios/rrd/Router_JuanDeGaray_Ping.rrd Inserting 'ping' , '1109322506:.00200000000000000000' into /usr/share/nagios/rrd/Switch_Axpe3.rrd Inserting 'ping' , '1109322508:.18327000000000000000' into /usr/share/nagios/rrd/Switch_CAI1.rrd 2.- Viewing the checkcommand.cfg: #'apan' command definition. Runs apan on selected commands define command { command_name apan command_line /usr/share/nagios/apan/apan.sh $ARG1$ $HOSTNAME$ $SERVICEDESC$ $TIMET$ $ARG2$ $ARG3$ } 3.- Viewing the Apan.defs: #Base-directory for nagios: NAGIOSDIR=/usr/share/nagios #The directory where apan is installed APANDIR=/usr/share/nagios/apan #The directory where Nagios plugins resides PLUGINSDIR=/usr/local/nagios/libexec #The directory where Nagios .cfg-files resides ETCDIR=/etc/nagios # The directory where apans plugins resides PLUGSDIR=$APANDIR/plugs # The main config-file for apan CFGFILE=$APANDIR/apan.cfg # Path to rrdtool RRDTOOL=/usr/bin/rrdtool # Set DEBUG to 1 and define a DEBUGFILE to get debug-info from apan DEBUG=1 DEBUGFILE=/tmp/apan.debug # Set CGIDEBUG to 1 and define a CGIDEBUGFILE to get debug-info from the cgi's CGIDEBUG=1 CGIDEBUGFILE=/tmp/apancgi.debug # A list of colors that are used to draw the lines in the graphs. # Beware of the syntax!! COLS=("#ff0000" "#00ff00" "#0000ff" "#ffff00" "#ff00ff" "#00ffff" "#ff8080" "#808080" "#8080ff" ) # The type of image that is created. Valid values are PNG, GIF or GD IMGTYPE=PNG # #End Configuration 4.- Viewing the apan.cfg: Router_Axpe;Ping;/usr/share/nagios/rrd/Router_Axpe_Ping.rrd;ping;ping:LINE2;P ing round-trip time;Seconds Router_JuanDeGaray;Ping;/usr/share/nagios/rrd/Router_JuanDeGaray_Ping.rrd;pin g;ping:LINE2;Ping round-trip time;Seconds RouterCAI;Ping;/usr/share/nagios/rrd/RouterCAI_Ping.rrd;ping;ping:LINE2;Ping round-trip time;Seconds Router_Madrid;Ping;/usr/share/nagios/rrd/Router_Madrid_Ping.rrd;ping;ping:LIN E2;Ping round-trip time;Seconds Router_Pamplona;Ping;/usr/share/nagios/rrd/Router_Pamplona_Ping.rrd;ping;ping :LINE2;Ping round-trip time;Seconds Router_Barna;Ping;/usr/share/nagios/rrd/Router_Barna_Ping.rrd;ping;ping:LINE2 ;Ping round-trip time;Seconds Switch_CAI1;Ping;/usr/share/nagios/rrd/Switch_CAI1.rrd;ping;ping:LINE2;Ping round-trip time;Seconds Switch_CAI2;Ping;/usr/share/nagios/rrd/Switch_CAI2.rrd;ping;ping:LINE2;Ping round-trip time;Seconds Switch_CAI3;Ping;/usr/share/nagios/rrd/Switch_CAI3.rrd;ping;ping:LINE2;Ping round-trip time;Seconds Switch_Axpe1;Ping;/usr/share/nagios/rrd/Switch_Axpe1.rrd;ping;ping:LINE2;Ping round-trip time;Seconds Switch_Axpe2;Ping;/usr/share/nagios/rrd/Switch_Axpe2.rrd;ping;ping:LINE2;Ping round-trip time;Seconds Switch_Axpe3;Ping;/usr/share/nagios/rrd/Switch_Axpe3.rrd;ping;ping:LINE2;Ping round-trip time;Seconds Switch_Axpe4;Ping;/usr/share/nagios/rrd/Switch_Axpe4.rrd;ping;ping:LINE2;Ping round-trip time;Seconds Switch_Axpe5;Ping;/usr/share/nagios/rrd/Switch_Axpe5.rrd;ping;ping:LINE2;Ping round-trip time;Seconds Switch_Axpe6;Ping;/usr/share/nagios/rrd/Switch_Axpe6.rrd;ping;ping:LINE2;Ping round-trip time;Seconds Switch_Axpe7;Ping;/usr/share/nagios/rrd/Switch_Axpe7.rrd;ping;ping:LINE2;Ping round-trip time;Seconds 5.- Viewing routers.cfg: # Generic host definition template define host{ name generic-host ; The name of this host template - referenced in other host definition s, used for template recursion/resolution notifications_enabled 1 ; Host notifications are enabled event_handler_enabled 1 ; Host event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! } # Definicion de host 'Cisco Axpe' define host{ use generic-host ; Name of host template to use host_name Router_Axpe alias Router de Axpe address 192.168.51.9 check_command apan max_check_attempts 20 notification_interval 60 notification_period 24x7 notification_options d,u,r } # Definicion de host 'Cisco JuanDeGaray' define host{ use generic-host ; Name of host template to use host_name Router_JuanDeGaray alias Router de Juan de Garay address 192.168.58.254 parents Router_Axpe check_command apan max_check_attempts 20 notification_interval 60 notification_period 24x7 notification_options d,u,r } # Definicion de host 'Cisco CAI' define host{ use generic-host ; Name of host template to use host_name RouterCAI alias Router del CAI address 13.9.200.100 parents Router_Axpe check_command apan max_check_attempts 20 notification_interval 60 notification_period 24x7 notification_options d,u,r } # Defcion de host 'Cisco Iru??a' define host{ use generic-host ; Name of host template to use host_name Router_Pamplona alias Router de Pamplona address 192.168.54.2 parents Router_Axpe check_command apan max_check_attempts 20 notification_interval 60 notification_period 24x7 notification_options d,u,r } # Defcion de host 'Cisco Madrid' define host{ use generic-host ; Name of host template to use host_name Router_Madrid alias Router de Madrid address 172.16.1.1 parents Router_Axpe check_command apan max_check_attempts 20 notification_interval 60 notification_period 24x7 notification_options d,u,r } # Defcion de host 'Cisco Barna' define host{ use generic-host ; Name of host template to use host_name Router_Barna alias Router de Barcelona address 172.17.1.1 parents Router_Axpe check_command apan max_check_attempts 20 notification_interval 60 notification_period 24x7 notification_options d,u,r } 6.- Viewing Routerserv.cfg: # Generic service definition template define service{ name generic-service ; The 'name' of this service template, referenced in other service def initions active_checks_enabled 1 ; Active service checks are enabled passive_checks_enabled 1 ; Passive service checks are enabled/accepted parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to maj or performance problems) obsess_over_service 1 ; We should obsess over this service (if necessary) check_freshness 0 ; Default is to NOT check service 'freshness' notifications_enabled 1 ; Service notifications are enabled event_handler_enabled 1 ; Service event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! } # Service definition define service{ use generic-service ; Name of service template to use host_name Router_Axpe service_description Ping is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups router-admins notification_interval 240 notification_period 24x7 notification_options c,r name Ping check_command apan!ping!3000.0,80%!5000.0,100% } # Service definition define service{ use generic-service ; Name of service template to use host_name Router_JuanDeGaray service_description Ping is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups router-admins notification_interval 240 notification_period 24x7 notification_options c,r name Ping check_command apan!ping!3000.0,80%!5000.0,100% } # Service definition define service{ use generic-service ; Name of service template to use host_name RouterCAI service_description Ping is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups router-admins notification_interval 240 notification_period 24x7 notification_options c,r name Ping check_command apan!ping!3000.0,80%!5000.0,100% } # Service definition define service{ use generic-service ; Name of service template to use host_name Router_Pamplona service_description Ping is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups router-admins notification_interval 240 notification_period 24x7 notification_options c,r name Ping check_command apan!ping!3000.0,80%!5000.0,100% } # Service definition define service{ use generic-service ; Name of service template to use host_name Router_Madrid service_description Ping is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups router-admins notification_interval 240 notification_period 24x7 notification_options c,r name Ping check_command apan!ping!3000.0,80%!5000.0,100% } # Service definition define service{ use generic-service ; Name of service template to use host_name Router_Barna service_description Ping is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups router-admins notification_interval 240 notification_period 24x7 notification_options c,r name Ping check_command apan!ping!3000.0,80%!5000.0,100% } 7.- Viewing routersgrupo.cfg: # 'routers' host group definition define hostgroup{ hostgroup_name Routers alias Enrutadores contact_groups router-admins members Router_Axpe,Router_JuanDeGaray,RouterCAI,Router_Pamplona,Router_Madrid,Router _Barna } 8.- Viewing the /etc/hosts: # Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 Popeye localhost.localdomain localhost #Routers 13.9.200.100 RouterCAI 192.168.51.9 Router_Axpe 192.168.58.254 Router_JuanDeGaray 192.168.54.2 Router_Pamplona 172.16.1.1 Router_Madrid 172.17.1.1 Router_Barna #Switches de Axpe 192.168.51.1 Switch_Axpe1 192.168.51.2 Switch_Axpe2 192.168.51.3 Switch_Axpe3 192.168.51.5 Switch_Axpe4 192.168.51.6 Switch_Axpe5 192.168.51.7 Switch_Axpe6 192.168.51.8 Switch_Axpe7 # Switches del CAI 13.9.200.41 Switch_CAI1 13.9.200.42 Switch_CAI2 13.9.200.43 Switch_CAI3 ----------------------------------------------------------------------- Este mensaje y los documentos, que en su caso, lleve anexos, pueden contener informacion confidencial y ata?e exclusivamente a las personas a las que va dirigido. Cualquier opinion en el contenida, es exclusiva de su autor y no representa necesariamente la opinion de AZERTIA. Si usted no es el destinatario de este mensaje, considerese advertido de que lo ha recibido por error y que cualquier uso, difusion o copia estan prohibidos legalmente. Si ha recibido este mensaje por error, le rogamos que nos lo comunique por la misma via o al telefono 93 207 55 11 y proceda a destruirlo inmediatamente. This email is confidential and intended solely for the use of the individual to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of AZERTIA. If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you have received this email in error please notify it to AZERTIA by telephone on number +34 93 207 55 11. ----------------------------------------------------------------------- ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From RLAdams at Kelsey-Seybold.com Mon Feb 28 14:01:58 2005 From: RLAdams at Kelsey-Seybold.com (Adams, Russell L.) Date: Mon, 28 Feb 2005 07:01:58 -0600 Subject: Template Based Configuration Issues In-Reply-To: <422095BD.6020505@op5.se> References: <20050225212356.GJ3463@pingu.ksnet.com> <422095BD.6020505@op5.se> Message-ID: <20050228130158.GB26932@pingu.ksnet.com> I'm glad to see that Nagios 2 covers everything. I'll consider it, thanks! Russell On Sat, Feb 26, 2005 at 04:29:01PM +0100, Andreas Ericsson wrote: > Adams, Russell L. wrote: > >I'm migrating from a Netsaint 0.0.7 installation to Nagios 1.2, and > >was frustrated by portions of the template based configuration. I > >thought I'd check here for advice. > > > > Nagios 2 is out. > > >I love the new inheritance features using templates and being able to > >apply services across hostgroups. In Netsaint I was using some > >elaborate custom perl scripting to accomplish similar tasks and was > >hoping to avoid similar scripts for Nagios by utilizing the templates. > > > >One problem I'm having is that wildcards cannot contain glob patterns > >(ie: members server* ). I did a quick test to see if it worked, > >which failed for me. Is this correct that a wildcard can mean all > >hosts, and only all hosts? > > > > Sort of. Nagios 2 has regex support for referencing though. > > >Secondly, it appears that the template definitions cannot be squeezed > >into one line, for example: > > > >define host{ host_name host ; alias hostalias ; use Template }; > > > >Is there a format for this I missed in the documentation, or must each > >template based record truly be newline separated? > > > > Each template based record must truly be newline separated. ; marks rest > of the line as a comment, so that's a no go for variable separation. > > >Third, I'm frustrated by the fact that I have to list every member > >host in the hostgroup definition. For automation purposes I was hoping > >to be able to define which hostgroup to join in the host definition, > >reducing the hostgroup definition to specifying the contact group for > >the hostgroup. Are there any workarounds for this? > > > > Nagios 2 supports this. > > >I'm trying to automate our Nagios configuration to a degree to keep up > >with our constantly changing network without constant manual > >intervention. > > > >I'm doing a domain transfer and matching hostnames in order to create > >host records for Nagios, which is why having to collect all of the > >hosts for a hostgroup definition is so problematic. However, defining > >services by the hostgroup and using host templates works wonderfully! > > > >Any suggestions are appreciated. > > > > Upgrade to nagios 2 while you're at it. Seems it would solve at least > some of your problems. > > -- > Andreas Ericsson andreas.ericsson at op5.se > OP5 AB www.op5.se > Lead Developer > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk being > sent to /dev/null ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From erik-spigle at mihlfeld.com Mon Feb 28 15:03:23 2005 From: erik-spigle at mihlfeld.com (Erik Spigle) Date: Mon, 28 Feb 2005 08:03:23 -0600 Subject: Is there a way to prevent a host check in agive time period? Message-ID: Is there a way, then, to prevent a host check / notification from ever happening during a specific timeframe? It doesn't really mean much if you can prevent a host notification from happening during a specific timeframe only for it to fire off immediately when that timeframe is up because it checked the host anyway and queued up a notification. -----Original Message----- From: jeff vier [mailto:boinger at tradingtechnologies.com] Sent: Friday, February 25, 2005 11:08 AM To: Erik Spigle Cc: nagios-users Subject: Re: [Nagios-users] Is there a way to prevent a host check in agive time period? On Fri, 2005-02-25 at 10:29 -0600, Erik Spigle wrote: > Why is there a "check_period" directive for service definitions, but not for host definitions? because host checks only "go off" if that host has a service alert. > it still did a host check during this period Why you got a host check fired off is likely an issue of freshness checking overriding your timeperiod (or, perhaps something else...hard to say offhand). ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From agrajag at dragaera.net Mon Feb 28 15:14:58 2005 From: agrajag at dragaera.net (Sean Dilda) Date: Mon, 28 Feb 2005 09:14:58 -0500 Subject: Template Based Configuration Issues In-Reply-To: <422095BD.6020505@op5.se> References: <20050225212356.GJ3463@pingu.ksnet.com> <422095BD.6020505@op5.se> Message-ID: <42232762.7090106@dragaera.net> Andreas Ericsson wrote: > > Nagios 2 is out. Last I checked (about 2 seconds ago), Nagios 2 was still in beta. Which means it is not in fact out. Maybe things work different in Nagios-land, but typically when someone says software is beta, they mean 'please try it out, but don't count on it for mission-critical stuff'. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From RLAdams at Kelsey-Seybold.com Mon Feb 28 15:44:19 2005 From: RLAdams at Kelsey-Seybold.com (Adams, Russell L.) Date: Mon, 28 Feb 2005 08:44:19 -0600 Subject: Template Based Configuration Issues In-Reply-To: <42232762.7090106@dragaera.net> References: <20050225212356.GJ3463@pingu.ksnet.com> <422095BD.6020505@op5.se> <42232762.7090106@dragaera.net> Message-ID: <20050228144419.GC26932@pingu.ksnet.com> Actually, in Netsaint-land, beta ran for years without problems. ;] In this case, I've already coded around the holes in the template based configuration so I'll stay at 1.2 for now. However, it sounds like my next upgrade to 2.0 will be trivial compared to my current change from Netsaint to Nagios. Russell On Mon, Feb 28, 2005 at 09:14:58AM -0500, Sean Dilda wrote: > Andreas Ericsson wrote: > > > >Nagios 2 is out. > > Last I checked (about 2 seconds ago), Nagios 2 was still in beta. Which > means it is not in fact out. Maybe things work different in > Nagios-land, but typically when someone says software is beta, they mean > 'please try it out, but don't count on it for mission-critical stuff'. > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk being > sent to /dev/null ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Mon Feb 28 18:30:20 2005 From: ae at op5.se (Andreas Ericsson) Date: Mon, 28 Feb 2005 18:30:20 +0100 Subject: Template Based Configuration Issues In-Reply-To: <42232762.7090106@dragaera.net> References: <20050225212356.GJ3463@pingu.ksnet.com> <422095BD.6020505@op5.se> <42232762.7090106@dragaera.net> Message-ID: <4223552C.6000807@op5.se> Sean Dilda wrote: > Andreas Ericsson wrote: > >> >> Nagios 2 is out. > > > Last I checked (about 2 seconds ago), Nagios 2 was still in beta. Which > means it is not in fact out. Maybe things work different in > Nagios-land, but typically when someone says software is beta, they mean > 'please try it out, but don't count on it for mission-critical stuff'. > In opensource-land, the "please try it out" is a cvs snapshot. Companies don't have that, so they're forced to use their beta releases for it. Beta means "we're down to fixing misspelled comments in the source, and you might run into a memory leak if you enable embedded haskell as a loadable module and write your plugins upside-down in lisp". As always, don't upgrade if you don't need to. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chris at aidworld.org Mon Feb 28 18:37:03 2005 From: chris at aidworld.org (Chris Wilson) Date: Mon, 28 Feb 2005 17:37:03 +0000 Subject: Notifications stopped Message-ID: <1109612222.9333.24.camel@rocio.int.aidworld.org> Hi all, I have been using Nagios very successfully for a number of years. However, one instance has started behaving strangely in the last few weeks. I first noticed it because notifications had stopped without any explanation. Restarting Nagios caused them to come back, and I thought little more of it until a week later, when it happened again. I configured Nagios to log all output of the notify commands to a log file, for example: define command{ command_name notify-by-email command_line /usr/bin/printf "%b" 'This is an automated alert from the AidWorld website monitoring system\n(aka Nagios). The $SERVICEDESC$ on $HOSTALIAS$ is now $SERVICESTATE$.\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $SERVICESTATE$\nAddress: $HOSTADDRESS$\nDate/Time: $DATETIME$\nAdditional Info:\n\n$OUTPUT$' | /bin/mail -s '[NAGIOS] Alert: $HOSTALIAS$ $SERVICEDESC$ is $SERVICESTATE$' $CONTACTEMAIL$ >>/usr/local/nagios/var/notify.out 2>&1 } The file notify.out was created, but nothing written to it. So I left nagios running... and again notifications stopped, about a week later. I couldn't find any errors in the notify.out file. nagios.log says that a notification was sent to each contact, but the system mail logs show no record of it. Mail configuration works, I can send email using /bin/mail and it does appear in /var/log/maillog. How can I go about diagnosing this problem further? Could Nagios itself capture the standard output and error from notification plugins and log it to syslog or the Nagios log file? That would make diagnosing problems like this much easier, in my opinion. Thank you all in advance for your help. Cheers, Chris. -- (aidworld) chris wilson | chief engineer (chris at aidworld.org) ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From toddm at toddles.com Mon Feb 28 20:26:32 2005 From: toddm at toddles.com (Todd McNeill) Date: Mon, 28 Feb 2005 11:26:32 -0800 Subject: Question on Nagios Service Detail Layout Message-ID: Hi- I've been using Nagios since the Netsaint days, so I've got a pretty good understanding of how it works, however, I would like to get some recommendations on how to organize and present data from the CGIs, especially the Service Detail screen. I'm doing quite a bit of DBA work on DB2, and I've written a bunch of active and passive service checks to keep track of the health of the databases. However, I'm now running into an issue of the Service Detail screen looking pretty messy. Hierarchically speaking, I have multiple hosts, each with multiple database instances. Each of these instances can have multiple databases. Each of these databases has multiple (5 - 7) service checks running against it. Each instance also has a service check running against it. I've set up a service dependency for each of the database checks against the instance check. My development host now has 25 instances with over 30 databases, so for that one host entry, I have about 180 service checks. I've named the service checks by database name, so at least they are sorted properly, but I'd love to hear any thoughts about how to better organize this visually. What I'd love to see is a way to group beyond the host/service hierarchy, and have additional levels that would be presented on the service detail screen, such that the instance service checks would be indented (as they are now) from the host level, and there would be an additional indent for the service checks of the databases that belonged to that instance. Example: Dev Host 1 --Dev Instance #1 ----Dev DB1 Check #1 ----Dev DB1 Check #2 --Dev Instance #2 ----Dev DB2 Check #1 ----Dev DB2 Check #2 Dev Host 2 --Dev Instance #3 ----Dev DB3 Check #1 ----Dev DB3 Check #2 ... I'm still using Nagios 1.x, so if this is new functionality of 2.0, if someone could point me into the right direction on the documentation, that would be helpful. If this has been answered previously, please forgive me. If none of this makes sense, I completely understand :) TIA, Todd ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From alan_maxwell at hilton.com Mon Feb 28 20:39:17 2005 From: alan_maxwell at hilton.com (Alan Maxwell) Date: Mon, 28 Feb 2005 13:39:17 -0600 Subject: notifications seperate for warnings, critical Message-ID: <1109619557.20596.40.camel@amaxred.hilton.com> Is there a way to have one service def, have warning emails go to one contact and critical emails for the same service go to a different address? -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc at ena.com Mon Feb 28 20:49:15 2005 From: marc at ena.com (Marc Powell) Date: Mon, 28 Feb 2005 13:49:15 -0600 Subject: notifications seperate for warnings, critical Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Alan Maxwell > Sent: Monday, February 28, 2005 1:39 PM > To: nagios-list > Subject: [Nagios-users] notifications seperate for warnings, critical > > Is there a way to have one service def, have warning emails go to one > contact > and critical emails for the same service go to a different address? > Not within nagios but it can certain be done easily enough. The host/service-notify-by-email commands just call external programs and pass them certain bits of information ($NOTIFICATIONTYPE$, $HOSTALIAS$, $SERVICEDESC$, $CONTACTEMAIL$, etc). A simple little script that takes those parameters and emails different people based on $SERVICESTATE$ should be pretty straightforward. -- Marc ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From albdanilist at gmail.com Mon Feb 28 21:08:01 2005 From: albdanilist at gmail.com (Alban Dani) Date: Mon, 28 Feb 2005 15:08:01 -0500 Subject: Notifications Message-ID: <1d6defde050228120850556c11@mail.gmail.com> Hi all, the box where I have Nagios running ran out of disk space ( some misconfigured logs ) in its root partition. As a result Nagios stoped running , or it was runnig on empty. The box was rebooted once and then after we fixed the space problem I restared Nagios. It seems to be running fine with one exception. I had a few hosts for which I had disabled the notifications more then a month ago. After all what happened this notifications are back alive and I am not able to disable them again. Meanwhile the hosts/service status page tells me that they are disabled. I tried enabling and disabling them again. That did not help. Can anybody tell me what's wrong? Thanks Alban ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From EmmettH at Examen.com Mon Feb 28 21:21:02 2005 From: EmmettH at Examen.com (Emmett Hogan) Date: Mon, 28 Feb 2005 12:21:02 -0800 Subject: notifications seperate for warnings, critical In-Reply-To: References: Message-ID: <42237D2E.6010102@Examen.com> Marc Powell wrote: > > >>-----Original Message----- >>From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- >>admin at lists.sourceforge.net] On Behalf Of Alan Maxwell >>Sent: Monday, February 28, 2005 1:39 PM >>To: nagios-list >>Subject: [Nagios-users] notifications seperate for warnings, critical >> >>Is there a way to have one service def, have warning emails go to one >>contact >>and critical emails for the same service go to a different address? >> >> >> > >Not within nagios but it can certain be done easily enough. The >host/service-notify-by-email commands just call external programs and >pass them certain bits of information ($NOTIFICATIONTYPE$, $HOSTALIAS$, >$SERVICEDESC$, $CONTACTEMAIL$, etc). A simple little script that takes >those parameters and emails different people based on $SERVICESTATE$ >should be pretty straightforward. > >-- >Marc > > > Why can't it? Won't this work: 1) Set up the two contacts like this: (NOTE The "options").... #WARNINGS ONLY CONTACT... define contact{ contact_name warning_contact alias WARNINGS Only Contact service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,r service_notification_commands notify-by-email,notify-by-epager host_notification_commands host-notify-by-email, host-notify-by-epager email warning_recipient at someplace.com pager warning_pager at someplace.com } #CRITICAL ONLY CONTACT... define contact{ contact_name critical_contact alias CRITICAL Only Contact service_notification_period 24x7 host_notification_period 24x7 service_notification_options c,r host_notification_options d,r service_notification_commands notify-by-email,notify-by-epager host_notification_commands host-notify-by-email, host-notify-by-epager email critical_recipient at someplace.com pager critical_pager at someplace.com } 2) Create a contactgroup that has BOTH of these contacts in it. define contactgroup{ contactgroup_name unix-admins alias Unix Administrators members warning_contact,crictical_contact } 3) Associate the new contact group "unix-admins" with the services in question. It seems to work for us. -Emmett -- ================ Examen, Inc. ================ Emmett Hogan Senior UNIX Administrator emmetth at examen.com ==== Outside Counsel Management Solutions ==== CONFIDENTIAL - PRIVILEGED INFORMATION This e-mail may include confidential, trade secret or legally privileged information. If you are not the intended recipient, please do not read, copy, use, distribute or disclose this communication to anyone other than the intended recipient. Please notify the sender of any error in transmission or delivery and delete any misdirected e-mail from your system. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: EmmettH.vcf Type: text/x-vcard Size: 260 bytes Desc: not available URL: From marc at ena.com Mon Feb 28 21:21:57 2005 From: marc at ena.com (Marc Powell) Date: Mon, 28 Feb 2005 14:21:57 -0600 Subject: notifications seperate for warnings, critical Message-ID: > -----Original Message----- > From: Emmett Hogan [mailto:EmmettH at Examen.com] > Sent: Monday, February 28, 2005 2:21 PM > To: Marc Powell > Cc: Alan Maxwell; nagios-list > Subject: Re: [Nagios-users] notifications seperate for warnings, critical > > Marc Powell wrote: > > > > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios- > users- > admin at lists.sourceforge.net] On Behalf Of Alan Maxwell > Sent: Monday, February 28, 2005 1:39 PM > To: nagios-list > Subject: [Nagios-users] notifications seperate for warnings, > critical > > Is there a way to have one service def, have warning emails go > to one > contact > and critical emails for the same service go to a different > address? > > > > > Not within nagios but it can certain be done easily enough. The > host/service-notify-by-email commands just call external programs > and > pass them certain bits of information ($NOTIFICATIONTYPE$, > $HOSTALIAS$, > $SERVICEDESC$, $CONTACTEMAIL$, etc). A simple little script that > takes > those parameters and emails different people based on $SERVICESTATE$ > should be pretty straightforward. > > -- > Marc > > > > > Why can't it? > > Won't this work: > > 1) Set up the two contacts like this: (NOTE The "options").... > > #WARNINGS ONLY CONTACT... > define contact{ > contact_name warning_contact > alias WARNINGS Only Contact > service_notification_period 24x7 > host_notification_period 24x7 > service_notification_options w,r > service_notification_commands notify-by-email,notify-by-epager > host_notification_commands host-notify-by-email, host-notify- > by-epager > email warning_recipient at someplace.com > pager warning_pager at someplace.com > } > > > > #CRITICAL ONLY CONTACT... > define contact{ > contact_name critical_contact > alias CRITICAL Only Contact > service_notification_period 24x7 > host_notification_period 24x7 > service_notification_options c,r > host_notification_options d,r > service_notification_commands notify-by-email,notify-by-epager > host_notification_commands host-notify-by-email, host-notify- > by-epager > email critical_recipient at someplace.com > pager critical_pager at someplace.com > } > > 2) Create a contactgroup that has BOTH of these contacts in it. > define contactgroup{ > contactgroup_name unix-admins > alias Unix Administrators > members warning_contact,crictical_contact > } > > 3) Associate the new contact group "unix-admins" with the services in > question. > > It seems to work for us. You're absolutely right. I'm so used to doing creative things with Nagios that I sometimes forget basic functionality. My apologies... -- Marc ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Mon Feb 28 21:54:26 2005 From: ae at op5.se (Andreas Ericsson) Date: Mon, 28 Feb 2005 21:54:26 +0100 Subject: Question on Nagios Service Detail Layout In-Reply-To: References: Message-ID: <42238502.2090802@op5.se> Todd McNeill wrote: > Hi- > > I've been using Nagios since the Netsaint days, so I've got a pretty good > understanding of how it works, however, I would like to get some > recommendations on how to organize and present data from the CGIs, > especially the Service Detail screen. > > I'm doing quite a bit of DBA work on DB2, and I've written a bunch of active > and passive service checks to keep track of the health of the databases. > However, I'm now running into an issue of the Service Detail screen looking > pretty messy. Hierarchically speaking, I have multiple hosts, each with > multiple database instances. Each of these instances can have multiple > databases. Each of these databases has multiple (5 - 7) service checks > running against it. Each instance also has a service check running against > it. I've set up a service dependency for each of the database checks > against the instance check. My development host now has 25 instances with > over 30 databases, so for that one host entry, I have about 180 service > checks. > > I've named the service checks by database name, so at least they are sorted > properly, but I'd love to hear any thoughts about how to better organize > this visually. What I'd love to see is a way to group beyond the > host/service hierarchy, and have additional levels that would be presented > on the service detail screen, such that the instance service checks would be > indented (as they are now) from the host level, and there would be an > additional indent for the service checks of the databases that belonged to > that instance. > > Example: > > Dev Host 1 > --Dev Instance #1 > ----Dev DB1 Check #1 > ----Dev DB1 Check #2 > --Dev Instance #2 > ----Dev DB2 Check #1 > ----Dev DB2 Check #2 > Dev Host 2 > --Dev Instance #3 > ----Dev DB3 Check #1 > ----Dev DB3 Check #2 > ... > > I'm still using Nagios 1.x, so if this is new functionality of 2.0, if > someone could point me into the right direction on the documentation, that > would be helpful. If this has been answered previously, please forgive me. > If none of this makes sense, I completely understand :) > Nagios 2 has service groups. It does roughly what you want. > TIA, > Todd > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Mon Feb 28 22:12:44 2005 From: ae at op5.se (Andreas Ericsson) Date: Mon, 28 Feb 2005 22:12:44 +0100 Subject: Notifications stopped In-Reply-To: <1109612222.9333.24.camel@rocio.int.aidworld.org> References: <1109612222.9333.24.camel@rocio.int.aidworld.org> Message-ID: <4223894C.3060600@op5.se> Chris Wilson wrote: > Hi all, > > I have been using Nagios very successfully for a number of years. > However, one instance has started behaving strangely in the last few > weeks. > > I first noticed it because notifications had stopped without any > explanation. Restarting Nagios caused them to come back, and I thought > little more of it until a week later, when it happened again. > > I configured Nagios to log all output of the notify commands to a log > file, for example: > > define command{ > command_name notify-by-email > command_line /usr/bin/printf "%b" 'This is an automated alert > from the AidWorld website monitoring system\n(aka Nagios). The > $SERVICEDESC$ on $HOSTALIAS$ is now $SERVICESTATE$.\n\nNotification > Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: > $SERVICESTATE$\nAddress: $HOSTADDRESS$\nDate/Time: > $DATETIME$\nAdditional Info:\n\n$OUTPUT$' | /bin/mail -s '[NAGIOS] > Alert: $HOSTALIAS$ $SERVICEDESC$ is $SERVICESTATE$' $CONTACTEMAIL$ > >>>/usr/local/nagios/var/notify.out 2>&1 > > } > > The file notify.out was created, but nothing written to it. The mail command doesn't print anything to stdout normally, and if nothing goes wrong it won't print to stderr either, so it's supposed to be empty. > So I left > nagios running... and again notifications stopped, about a week later. > grep -i 'shutting down' nagios.cfg It might have not dumped core and just shut down gracefully. If you're using CVS code a month or so old, that was the default behaviour. > I couldn't find any errors in the notify.out file. nagios.log says that > a notification was sent to each contact, but the system mail logs show > no record of it. Mail configuration works, I can send email using > /bin/mail and it does appear in /var/log/maillog. > > How can I go about diagnosing this problem further? Could Nagios itself > capture the standard output and error from notification plugins and log > it to syslog or the Nagios log file? It does that by default if the notify command returns non-zero. > That would make diagnosing problems > like this much easier, in my opinion. > > Thank you all in advance for your help. > > Cheers, Chris. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From aaron.cline at gmail.com Mon Feb 28 23:02:52 2005 From: aaron.cline at gmail.com (A Cline) Date: Mon, 28 Feb 2005 22:02:52 +0000 Subject: Writing own plugins Message-ID: <2f8a29cb050228140212b17c64@mail.gmail.com> We're writing some Windows plugins using VBscript and nrpe_nt. Everything seems to work great but when the plugin goes into a "Warning" or "Critical" state, Nagios doesn't seem to pick that up. I thought that nagios keyed off of the WARNING or CRITICAL or OK verbage that is common in most of the output of the other plugins. Is this correct or is there some other mechanism that nagios uses to determine if things are in a Warning or Critical state? Thanks for any info. Aaron ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Mon Feb 28 23:05:52 2005 From: marc at ena.com (Marc Powell) Date: Mon, 28 Feb 2005 16:05:52 -0600 Subject: Writing own plugins Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of A Cline > Sent: Monday, February 28, 2005 4:03 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Writing own plugins > > We're writing some Windows plugins using VBscript and nrpe_nt. > Everything seems to work great but when the plugin goes into a > "Warning" or "Critical" state, Nagios doesn't seem to pick that up. I > thought that nagios keyed off of the WARNING or CRITICAL or OK verbage > that is common in most of the output of the other plugins. Is this > correct or is there some other mechanism that nagios uses to determine > if things are in a Warning or Critical state? > Nagios only looks at the exit code of the program to determine state. http://nagiosplug.sourceforge.net/developer-guidelines.html#AEN75 -- Marc ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From aaron.cline at gmail.com Mon Feb 28 23:13:47 2005 From: aaron.cline at gmail.com (A Cline) Date: Mon, 28 Feb 2005 22:13:47 +0000 Subject: Writing own plugins In-Reply-To: References: Message-ID: <2f8a29cb0502281413381863f8@mail.gmail.com> OK, I think I just found that on the web. 0 == OK 1 == WARNING 2 == CRITICAL 3 == UNKNOWN I will start working on this. Thank you very much. Aaron On Mon, 28 Feb 2005 16:05:52 -0600, Marc Powell wrote: > > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of A Cline > > Sent: Monday, February 28, 2005 4:03 PM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Writing own plugins > > > > We're writing some Windows plugins using VBscript and nrpe_nt. > > Everything seems to work great but when the plugin goes into a > > "Warning" or "Critical" state, Nagios doesn't seem to pick that up. I > > thought that nagios keyed off of the WARNING or CRITICAL or OK verbage > > that is common in most of the output of the other plugins. Is this > > correct or is there some other mechanism that nagios uses to determine > > if things are in a Warning or Critical state? > > > > Nagios only looks at the exit code of the program to determine state. > > http://nagiosplug.sourceforge.net/developer-guidelines.html#AEN75 > > -- > Marc > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Mon Feb 28 23:31:45 2005 From: ae at op5.se (Andreas Ericsson) Date: Mon, 28 Feb 2005 23:31:45 +0100 Subject: Writing own plugins In-Reply-To: <2f8a29cb050228140212b17c64@mail.gmail.com> References: <2f8a29cb050228140212b17c64@mail.gmail.com> Message-ID: <42239BD1.2000303@op5.se> A Cline wrote: > We're writing some Windows plugins using VBscript and nrpe_nt. > Everything seems to work great but when the plugin goes into a > "Warning" or "Critical" state, Nagios doesn't seem to pick that up. nagiosplug.sourceforge.net You want the guidelines section. > I thought that nagios keyed off of the WARNING or CRITICAL or OK verbage > that is common in most of the output of the other plugins. ... > Is this > correct or is there some other mechanism that nagios uses to determine > if things are in a Warning or Critical state? > Read up on the exit() function. It's a pretty standard thing, so it's probably available even in vb-script. > Thanks for any info. > > Aaron > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null