From marc at ena.com Fri Jul 1 00:09:09 2005 From: marc at ena.com (Marc Powell) Date: Thu, 30 Jun 2005 17:09:09 -0500 Subject: Setting up distributed monitoring Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Evert Goor > Sent: Thursday, June 30, 2005 4:54 PM > To: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Setting up distributed monitoring > > Tanx just saw it. I thought only nsca was the option. > Can only not find the check by ssh plugin. Curious what that is ? > Is that it just opens an ssh to an other unix box and activate from > there the check ? It's been one of the standard plugins for quite a while. It's actually check_by_ssh. It can be used to execute a plugin living on a remote host via ssh and return the results to Nagios. -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 1 00:53:58 2005 From: ae at op5.se (Andreas Ericsson) Date: Fri, 01 Jul 2005 00:53:58 +0200 Subject: ld: 0711-317 ERROR: Undefined symbol: .VA_COPY <-- Can anyone tell me how to fix this???? In-Reply-To: <42C4410A.803@uky.edu> References: <42C4410A.803@uky.edu> Message-ID: <42C47806.5030607@op5.se> Kenneth Klein wrote: > I finally got nagios to "make all" and make etc. Then I dl.ed the source > for the plugins, I grabbed the latest stable verson. > > I got this error when I ran make all. > > ar: Creating an archive file libsnprintf.a. > gcc -g -O2 -L. -L/lib -o check_disk check_disk.o utils.o > ../lib/libnagiosplug.a popen.o -lsnprintf -lsnprintf > ld: 0711-317 ERROR: Undefined symbol: .VA_COPY > ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more > information. > collect2: ld returned 8 exit status > make: 1254-004 The error code from the last command is 1. > The configure script seems to not have picked up that your system can't handle the VA_COPY macro properly. There are macros for it in lib/snprintf.c which can circumvent this. Adding #undef HAVE_VA_COPY #undef HAVE__VA_COPY to the top of the file should at least make the plugins compile, although I can't guarantee they won't segfault en masse. That will depend on your systems vsprintf() implementation. If it's at all possible, you should try running Nagios on either Linux or *BSD. Older systems doesn't have the asprintf() function and the current plugin distribution sadly relies heavily on it being there. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From niederha at us.ibm.com Fri Jul 1 00:59:07 2005 From: niederha at us.ibm.com (Kyle Niederhauser) Date: Thu, 30 Jun 2005 16:59:07 -0600 Subject: Kyle Niederhauser is out of the office. Message-ID: I will be out of the office starting 06/30/2005 and will not return until 07/13/2005. I will be out of the office Thursday June, 30 until Wednesday July, 13. If you need assistance, please call the Solution Center at 918-573-2336 and ask for IBM UNIX support. -------------- next part -------------- An HTML attachment was scrubbed... URL: From kirby_12172004 at yahoo.com Fri Jul 1 01:20:08 2005 From: kirby_12172004 at yahoo.com (Michael Carel) Date: Fri, 1 Jul 2005 00:20:08 +0100 (BST) Subject: Router Monitoring Plugins Message-ID: <20050630232008.30628.qmail@web31307.mail.mud.yahoo.com> Hi to all; Is there a Plugins that can monitor router/switches interfaces traffic, uptime etc... via snmp. I'll be integrating all monitoring to nagios including routers/switches. I'm previously using MRTG to monitor router/switches traffic and status. Is there anyone knows where and how? tnx, Kirby Send instant messages to your online friends http://uk.messenger.yahoo.com ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From james at lovedthanlost.net Fri Jul 1 04:07:04 2005 From: james at lovedthanlost.net (James Turnbull) Date: Fri, 01 Jul 2005 12:07:04 +1000 Subject: Router Monitoring Plugins In-Reply-To: <20050630232008.30628.qmail@web31307.mail.mud.yahoo.com> References: <20050630232008.30628.qmail@web31307.mail.mud.yahoo.com> Message-ID: <42C4A548.1050500@lovedthanlost.net> Michael Carel wrote: >Hi to all; > >Is there a Plugins that can monitor router/switches >interfaces traffic, uptime etc... via snmp. > >I'll be integrating all monitoring to nagios including >routers/switches. I'm previously using MRTG to monitor >router/switches traffic and status. > >Is there anyone knows where and how? > > You could start with the check_ifoperstatus and check_ifstatus plugins. Also there is a check_mtrg plugin that allows you to monitor MRTG log files that may prove useful. Regards James Turnbull -- James Turnbull --- Author of Hardening Linux, Apress (http://www.amazon.com/exec/obidos/tg/detail/-/1590594444/) --- PGP Key (http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x0C42DF40) -------------- 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 s.shipway at auckland.ac.nz Fri Jul 1 05:24:26 2005 From: s.shipway at auckland.ac.nz (Steve Shipway) Date: Fri, 1 Jul 2005 15:24:26 +1200 Subject: Router Monitoring Plugins In-Reply-To: <42C4A548.1050500@lovedthanlost.net> References: <42C4A548.1050500@lovedthanlost.net> Message-ID: <004901c57dec$62119340$01fea8c0@itss.auckland.ac.nz> >Michael Carel wrote: >>I'll be integrating all monitoring to nagios including >>routers/switches. I'm previously using MRTG to monitor >>router/switches traffic and status. >>Is there anyone knows where and how? We have an integrated MRTG/Nagios setup here, with several thousand services being monitored by both. I've used the routers2 frontend to MRTG, and set up web cross-linking between the two so that the host/service extinfo has links to MRTG and the MRTG pages can embed the Nagios service status pages. This works well, since MRTG is no use at alertnig and Nagios does not (natively) handle graphing. I have some MRTG plugins that can query the Nagios agents, and currently run MRTG and Nagios queries in parallel. However, we're investigating the check_rrd Nagios plugins to alert on the RRD files from MRTG, and the perfparse for Nagios to feed data to MRTG. Steve ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gavin at openfusion.com.au Fri Jul 1 07:52:06 2005 From: gavin at openfusion.com.au (Gavin Carr) Date: Fri, 1 Jul 2005 15:52:06 +1000 Subject: Exploding check commands batman ... Message-ID: <20050701055206.GD25733@openfusion.com.au> Hi all, I'm just wanting to sanity check whether I'm missing something in how check_commands and services work together. To do various kinds of http checks, for instance, I've currently got the following defined in check_commands.cfg (Nagios 1.2, btw): define command{ command_name check_http command_line $USER1$/check_http -H $HOSTADDRESS$ } define command{ command_name check_http_auth command_line $USER1$/check_http -H $HOSTADDRESS$ -a '$ARG1$' } define command{ command_name check_http_str command_line $USER1$/check_http -H $HOSTADDRESS$ -s '$ARG1$' } define command{ command_name check_http_re command_line $USER1$/check_http -H $HOSTADDRESS$ -l -R '$ARG1$' } define command{ command_name check_http_uri_str command_line $USER1$/check_http -H $HOSTADDRESS$ -u '$ARG1$' -s '$ARG2$' } define command{ command_name check_http_uri_re command_line $USER1$/check_http -H $HOSTADDRESS$ -u '$ARG1$' -l -R '$ARG2$' } I've got another set where I want to specify the host using '-H $ARG1$', and then all of those are duplicated with '-S' for https tests, etc., so I've got 24 or so http test so far. Now I want to monitor another set of sites on a non-standard port, so I need an additional '-p' argument! Is this the way other people are doing it, or am I missing something obvious? Is this handled any differently in version 2.0? Cheers, Gavin ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Andrew_Hoying at blm.gov Fri Jul 1 08:01:21 2005 From: Andrew_Hoying at blm.gov (Andrew_Hoying at blm.gov) Date: Fri, 1 Jul 2005 00:01:21 -0600 Subject: Exploding check commands batman ... In-Reply-To: <20050701055206.GD25733@openfusion.com.au> References: <20050701055206.GD25733@openfusion.com.au> Message-ID: I think in your situation you'd be better off doing something like this: define command{ command_name check_http command_line $USER1$/check_http -H $HOSTADDRESS$ $ARG1$ } Then your ARG1 can contain flags and parameters specific to the needs of that one check. Like check_http_str!localhost!-u '/' -s 'Nagios' or whatever. That's how I do it. Andrew Gavin Carr To Sent by: Nagios Users nagios-users-admi ge.net cc Subject 06/30/2005 11:52 [Nagios-users] Exploding check PM commands batman ... Hi all, I'm just wanting to sanity check whether I'm missing something in how check_commands and services work together. To do various kinds of http checks, for instance, I've currently got the following defined in check_commands.cfg (Nagios 1.2, btw): define command{ command_name check_http command_line $USER1$/check_http -H $HOSTADDRESS$ } define command{ command_name check_http_auth command_line $USER1$/check_http -H $HOSTADDRESS$ -a '$ARG1$' } define command{ command_name check_http_str command_line $USER1$/check_http -H $HOSTADDRESS$ -s '$ARG1$' } define command{ command_name check_http_re command_line $USER1$/check_http -H $HOSTADDRESS$ -l -R '$ARG1$' } define command{ command_name check_http_uri_str command_line $USER1$/check_http -H $HOSTADDRESS$ -u '$ARG1$' -s '$ARG2$' } define command{ command_name check_http_uri_re command_line $USER1$/check_http -H $HOSTADDRESS$ -u '$ARG1$' -l -R '$ARG2$' } I've got another set where I want to specify the host using '-H $ARG1$', and then all of those are duplicated with '-S' for https tests, etc., so I've got 24 or so http test so far. Now I want to monitor another set of sites on a non-standard port, so I need an additional '-p' argument! Is this the way other people are doing it, or am I missing something obvious? Is this handled any differently in version 2.0? Cheers, Gavin ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Evert.Goor at benp.nl Fri Jul 1 10:47:24 2005 From: Evert.Goor at benp.nl (Evert Goor) Date: Fri, 1 Jul 2005 10:47:24 +0200 Subject: checking workstations Message-ID: <19CCC8E70E4FA941848269F0C5D832CC8986F0@post.systems.nl> Hi List Tanx for all the nice answers and help. I just have one question left. I Have to monitor printers/workstations and they can be offline. Is there a way to manipulate that I only get events when there is realy a problem (disk full ) not when the host is shutdown for the day and the plugin cannot be excuted right. For the rest I love Nagios for all the options only some are a little less explained. Still looking into the Compaq tools. Greetings, Evert Goor -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3026 bytes Desc: not available URL: From ae at op5.se Fri Jul 1 11:27:41 2005 From: ae at op5.se (Andreas Ericsson) Date: Fri, 01 Jul 2005 11:27:41 +0200 Subject: Router Monitoring Plugins In-Reply-To: <20050630232008.30628.qmail@web31307.mail.mud.yahoo.com> References: <20050630232008.30628.qmail@web31307.mail.mud.yahoo.com> Message-ID: <42C50C8D.3050401@op5.se> Michael Carel wrote: > Hi to all; > > Is there a Plugins that can monitor router/switches > interfaces traffic, uptime etc... via snmp. > > I'll be integrating all monitoring to nagios including > routers/switches. I'm previously using MRTG to monitor > router/switches traffic and status. > > Is there anyone knows where and how? > You can take a look at the plugins at http://oss.op5.se/nagios/op5plugins.tar.gz It builds and installs check_traffic and check_iferrors along with the other check_if* plugins and complements them nicely. > > tnx, > > Kirby > > Send instant messages to your online friends http://uk.messenger.yahoo.com > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From capt at krastel.ru Fri Jul 1 13:13:40 2005 From: capt at krastel.ru (capt at krastel.ru) Date: Fri, 1 Jul 2005 19:13:40 +0800 Subject: Handler for "HOST UP" event not called Message-ID: <1120216420.42c525648dbca@mail.yartelecom.net> Hello, nagios users! I created handler for my host up/down events. For "down" event handler calls, but when host assumed be up, no handler called. Why? My nagios version: /var/log/nagios # nagios Nagios 1.2 Copyright (c) 1999-2004 Ethan Galstad (nagios at nagios.org) Last Modified: 02-02-2004 License: GPL ... /var/log/nagios # rpm -q nagios nagios-1.2-0 My config: ============================================================================= define host{ name generic-host ; The name of this host template - reference 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 resta check_command check-host-alive max_check_attempts 10 notification_interval 120 notification_period 24x7 notification_options d,u,r register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOS } define host{ use generic-host ; Name of host template to use host_name planetsky-gw alias PlanetSky server router address 10.10.182.188 event_handler dialup_planetsky_on_off max_check_attempts 3 } ============================================================================= My nagios.log : ============================================================================= [1120212931] HOST ALERT: planetsky-gw;DOWN;SOFT;1;CRITICAL - Plugin timed out after 10 seconds [1120212931] HOST EVENT HANDLER: planetsky-gw;DOWN;SOFT;1;dialup_planetsky_on_off [1120212941] HOST ALERT: planetsky-gw;DOWN;SOFT;2;CRITICAL - Plugin timed out after 10 seconds [1120212941] HOST EVENT HANDLER: planetsky-gw;DOWN;SOFT;2;dialup_planetsky_on_off [1120212951] HOST ALERT: planetsky-gw;DOWN;SOFT;3;CRITICAL - Plugin timed out after 10 seconds [1120212951] HOST EVENT HANDLER: planetsky-gw;DOWN;SOFT;3;dialup_planetsky_on_off [1120212951] HOST ALERT: planetsky-gw;DOWN;SOFT;4;/bin/ping -n -U -c 1 62.33.182.88 [1120212951] HOST EVENT HANDLER: planetsky-gw;DOWN;SOFT;4;dialup_planetsky_on_off [1120212951] HOST ALERT: planetsky-gw;DOWN;SOFT;5;/bin/ping -n -U -c 1 62.33.182.88 [1120212951] HOST EVENT HANDLER: planetsky-gw;DOWN;SOFT;5;dialup_planetsky_on_off [1120212951] HOST ALERT: planetsky-gw;DOWN;SOFT;6;/bin/ping -n -U -c 1 62.33.182.88 [1120212951] HOST EVENT HANDLER: planetsky-gw;DOWN;SOFT;6;dialup_planetsky_on_off [1120212951] HOST ALERT: planetsky-gw;DOWN;SOFT;7;/bin/ping -n -U -c 1 62.33.182.88 [1120212951] HOST EVENT HANDLER: planetsky-gw;DOWN;SOFT;7;dialup_planetsky_on_off [1120212951] HOST ALERT: planetsky-gw;DOWN;SOFT;8;/bin/ping -n -U -c 1 62.33.182.88 [1120212951] HOST EVENT HANDLER: planetsky-gw;DOWN;SOFT;8;dialup_planetsky_on_off [1120212951] HOST ALERT: planetsky-gw;DOWN;SOFT;9;/bin/ping -n -U -c 1 62.33.182.88 [1120212951] HOST EVENT HANDLER: planetsky-gw;DOWN;SOFT;9;dialup_planetsky_on_off [1120212951] HOST ALERT: planetsky-gw;DOWN;HARD;10;/bin/ping -n -U -c 1 62.33.182.88 [1120212951] HOST NOTIFICATION: janem;planetsky-gw;DOWN;host-notify-by-email;/bin/ping -n -U -c 1 62 [1120212951] HOST NOTIFICATION: capt;planetsky-gw;DOWN;host-notify-by-email;/bin/ping -n -U -c 1 62. [1120212951] HOST EVENT HANDLER: planetsky-gw;DOWN;HARD;10;dialup_planetsky_on_off ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ !!!!!!Handler called!!!!! .. .. .. [1120214134] HOST ALERT: planetsky-gw;UP;HARD;10;(Host assumed to be up) [1120214134] SERVICE ALERT: planetsky-gw;ssh;OK;HARD;3;SSH OK - OpenSSH_3.4p1 Debian 1:3.4p1-1.woody [1120214134] SERVICE ALERT: planetsky-gw;ssh;OK;HARD;3;SSH OK - OpenSSH_3.4p1 Debian 1:3.4p1-1.woody [1120214134] SERVICE NOTIFICATION: capt;planetsky-gw;ssh;OK;notify-by-email;SSH OK - OpenSSH_3.4p1 D ============================================================================ Where is "HOST EVENT HANDLER: planetsky-gw;UP;..." ????!!!!!!!! Help me, please. Alexander ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Fri Jul 1 13:57:20 2005 From: pla at softflare.com (Paul L. Allen) Date: Fri, 01 Jul 2005 12:57:20 +0100 Subject: Exploding check commands batman ... In-Reply-To: <20050701055206.GD25733@openfusion.com.au> References: <20050701055206.GD25733@openfusion.com.au> Message-ID: <20050701115720.18802.qmail@mullet.softflare.net> Gavin Carr writes: > Is this the way other people are doing it, or am I missing > something obvious? Is this handled any differently in version > 2.0? There are several ways of doing it, but they're all rather clunky (IMHO). I'd like to see something along the lines of: $USER1$/check_http ... $CONDARG4${-p $ARG4$} along with the ability to have null arguments as in: check_http!a!b!c!!e so that if the fourth argument is omitted then the "-p $ARG4$" is dropped and you get the default http port whereas if you want a different port then check_http!a!b!c!3192!e. That still means a lot of extra stuff in your service checks. So maybe a better approach would be to allow argument over-riding. Your template would then have check_http!a!b!c!d!e where you specify all options giving them their default values but in the specific service checks you could have "command_arg4 3192". I expect somebody can think of reasons why neither of the above could be implemented and somebody else (or maybe the same person) can think of a far better way of doing it. I'm not attached to either of those approaches, they are just first thoughts - if somebody has a better way of doing it then that's great. I'm not holding my breath though - if it were a popular request and easy to implement then it would have gone into Nagios ages ago. -- Paul Allen Softflare Support ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 1 14:59:34 2005 From: ae at op5.se (Andreas Ericsson) Date: Fri, 01 Jul 2005 14:59:34 +0200 Subject: Exploding check commands batman ... In-Reply-To: <20050701115720.18802.qmail@mullet.softflare.net> References: <20050701055206.GD25733@openfusion.com.au> <20050701115720.18802.qmail@mullet.softflare.net> Message-ID: <42C53E36.7000805@op5.se> Paul L. Allen wrote: > Gavin Carr writes: > >> Is this the way other people are doing it, or am I missing something >> obvious? Is this handled any differently in version 2.0? > > > There are several ways of doing it, but they're all rather clunky (IMHO). > I'd like to see something along the lines of: > $USER1$/check_http ... $CONDARG4${-p $ARG4$} > along with the ability to have null arguments as in: > check_http!a!b!c!!e > so that if the fourth argument is omitted then the "-p $ARG4$" is > dropped and you get the default http port whereas if you want a different > port then check_http!a!b!c!3192!e. I'm working on overloading the plugins a bit to support behaviour like this. It will require the arguments in the check_command definition to be enclosed in quotes (due to how POSIX getopt() works), but will otherwise work nicely. > That still means a lot of extra stuff in your service checks. So maybe > a better approach would be to allow argument over-riding. Your template > would then have check_http!a!b!c!d!e where you specify all options > giving them their default values but in the specific service checks you > could have "command_arg4 3192". > I expect somebody can think of reasons why neither of the above could be > implemented and somebody else (or maybe the same person) can think of > a far better way of doing it. I'm not attached to either of those > approaches, they are just first thoughts - if somebody has a better way > of doing it then that's great. I'm not holding my breath though - if it > were a popular request and easy to implement then it would have gone into > Nagios ages ago. I believe it's best left out of Nagios. String mangling is rather expensive and error-prone. Checking if(str[0] == 0) from the command executed is a fairly simple process. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 1 15:01:51 2005 From: nagios-user at proy.org (Patrick Proy) Date: Fri, 1 Jul 2005 15:01:51 +0200 Subject: Router Monitoring Plugins In-Reply-To: <20050630232008.30628.qmail@web31307.mail.mud.yahoo.com> References: <20050630232008.30628.qmail@web31307.mail.mud.yahoo.com> Message-ID: <20050701130159.E7F3FAB715@www.manubulon.com> Hi, You can also use check_snmp_interface (http://sourceforge.net/projects/nagios-snmp/). Patrick -----Message d'origine----- De : nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] De la part de Michael Carel Envoy? : vendredi 1 juillet 2005 01:20 ? : nagios-users at lists.sourceforge.net Objet : [Nagios-users] Router Monitoring Plugins Hi to all; Is there a Plugins that can monitor router/switches interfaces traffic, uptime etc... via snmp. I'll be integrating all monitoring to nagios including routers/switches. I'm previously using MRTG to monitor router/switches traffic and status. Is there anyone knows where and how? tnx, Kirby Send instant messages to your online friends http://uk.messenger.yahoo.com ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mcunietti at enter.it Fri Jul 1 15:22:22 2005 From: mcunietti at enter.it (Mariano Cunietti) Date: Fri, 01 Jul 2005 15:22:22 +0200 Subject: passive checks Message-ID: <1120224142.19849.41.camel@bytecode.enter.it> Hi list, I'm trying to configure a passive check on Nagios for an ATM router with MPLS VPN VRFs ( to be monitored. I configured a service like this: define service{ host_name atm1-mi service_description MPLS-VRF is_volatile 1 active_checks_enabled 0 passive_checks_enabled 1 max_check_attempts 1 normal_check_interval 5 retry_check_interval 2 contact_groups admins-SMS notification_interval 60 notification_period 24x7 notification_options w,u,c,r check_command check_none } I configured snmptrapd to handle Cisco traps and pass them to a perl script, which calls submit_check_result: /usr/lib/nagios/plugins/eventhandlers/submit_check_result atm1-mi MPLS-VRF $retval $vrf_name Here's what is logged in /var/log/nagios/rw/nagios.cmd when VRF goes down: [1120147489] PROCESS_SERVICE_CHECK_RESULT;atm1-mi;MPLS-VRF;2;my_vrf_name Yet, nothing is done by Nagios. On the web panle, at Service Detail, i get: Host atm1-mi MPLS-VRF (P) Pending N/A 0d 21h 8m 1s+ 0/1 Service check scheduled for Fri Jul 1 15:13:16 2005 It seems that Nagios is not processing passive checks correctly. Any hint? I'm stuck :-( Thanks -- ------------------------- Mariano Cunietti System Administrator Enter S.r.l. Via Stefanardo da Vimercate, 28 20128 - Milano - Italy Tel. +39 02 25514319 Fax +39 02 25514303 mcunietti at enter.it www.enter.it - www.enterpoint.it --------------------------- Gruppo Y2K - www.gruppoy2k.it ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sudhirmahalein at yahoo.co.uk Fri Jul 1 15:43:15 2005 From: sudhirmahalein at yahoo.co.uk (Sudhir Mahale) Date: Fri, 1 Jul 2005 14:43:15 +0100 (BST) Subject: Notifications not visible for certain days Message-ID: <20050701134315.12398.qmail@web86904.mail.ukl.yahoo.com> All, I am running Nagios 1.2 and am facing this problem in vieiwing notifications for particular days. I do not see any notifications for particular days. During the day I see notifications being recorded. But the next day, after the log rotation the notifications disappear.If i go to Notifications => Earlier archive in the web interface, I see the message "No notifications have been recorded in this archived log file" I checked the var/archives and found that for the days that notifications are missing we have two archive files, for example one nagios-06-30-2005-00.log and the other nagios-06-30-2005-23.log For the days that we see the notifications, only one archive file , for example nagios-06-29-2005-00.log is seen Any help will be greatly appreciated. I use "24x7" for all my servers and "test" for one of the test boxes Thanks, Sudhir Note:- My time periods definition looks like this # '24x7' timeperiod definition define timeperiod{ timeperiod_name 24x7 alias 24 Hours A Day, 7 Days A Week sunday 08:00-24:00 monday 00:00-24:00 tuesday 00:00-24:00 wednesday 00:00-24:00 thursday 00:00-24:00 friday 00:00-24:00 saturday 00:00-20:00 } # 'test' timeperiod definition define timeperiod{ timeperiod_name test_ftmfedora alias Test time period for ftmfedora sunday 08:00-24:00 monday 00:00-24:00 tuesday 00:00-24:00 wednesday 00:00-24:00 thursday 00:00-22:20 friday 00:00-22:20 saturday 00:00-20:00 } # 'workhours' timeperiod definition define timeperiod{ timeperiod_name workhours alias "Normal" Working Hours monday 09:00-17:00 tuesday 09:00-17:00 wednesday 09:00-17:00 thursday 09:00-17:00 friday 09:00-17:00 } # 'nonworkhours' timeperiod definition define timeperiod{ timeperiod_name nonworkhours alias Non-Work Hours sunday 00:00-24:00 monday 00:00-09:00,17:00-24:00 tuesday 00:00-09:00,17:00-24:00 wednesday 00:00-09:00,17:00-24:00 thursday 00:00-09:00,17:00-24:00 friday 00:00-09:00,17:00-24:00 saturday 00:00-24:00 } # 'none' timeperiod definition define timeperiod{ timeperiod_name none alias No Time Is A Good Time } ___________________________________________________________ How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sivan.deray at net-aptitude.fr Fri Jul 1 16:04:54 2005 From: sivan.deray at net-aptitude.fr (Sivan DERAY) Date: Fri, 1 Jul 2005 16:04:54 +0200 Subject: Notifications not visible for certain days Message-ID: <4E13BD0442DACA4D9606CAD98924F09A45D00F@srv-nap-atlas-1.net-aptitude.fr> Got the same problem : the disk was full :( -----Message d'origine----- De : Sudhir Mahale [mailto:sudhirmahalein at yahoo.co.uk] Envoy? : vendredi 1 juillet 2005 15:43 ? : nagios-users at lists.sourceforge.net Objet : [Nagios-users] Notifications not visible for certain days All, I am running Nagios 1.2 and am facing this problem in vieiwing notifications for particular days. I do not see any notifications for particular days. During the day I see notifications being recorded. But the next day, after the log rotation the notifications disappear.If i go to Notifications => Earlier archive in the web interface, I see the message "No notifications have been recorded in this archived log file" I checked the var/archives and found that for the days that notifications are missing we have two archive files, for example one nagios-06-30-2005-00.log and the other nagios-06-30-2005-23.log For the days that we see the notifications, only one archive file , for example nagios-06-29-2005-00.log is seen Any help will be greatly appreciated. I use "24x7" for all my servers and "test" for one of the test boxes Thanks, Sudhir Note:- My time periods definition looks like this # '24x7' timeperiod definition define timeperiod{ timeperiod_name 24x7 alias 24 Hours A Day, 7 Days A Week sunday 08:00-24:00 monday 00:00-24:00 tuesday 00:00-24:00 wednesday 00:00-24:00 thursday 00:00-24:00 friday 00:00-24:00 saturday 00:00-20:00 } # 'test' timeperiod definition define timeperiod{ timeperiod_name test_ftmfedora alias Test time period for ftmfedora sunday 08:00-24:00 monday 00:00-24:00 tuesday 00:00-24:00 wednesday 00:00-24:00 thursday 00:00-22:20 friday 00:00-22:20 saturday 00:00-20:00 } # 'workhours' timeperiod definition define timeperiod{ timeperiod_name workhours alias "Normal" Working Hours monday 09:00-17:00 tuesday 09:00-17:00 wednesday 09:00-17:00 thursday 09:00-17:00 friday 09:00-17:00 } # 'nonworkhours' timeperiod definition define timeperiod{ timeperiod_name nonworkhours alias Non-Work Hours sunday 00:00-24:00 monday 00:00-09:00,17:00-24:00 tuesday 00:00-09:00,17:00-24:00 wednesday 00:00-09:00,17:00-24:00 thursday 00:00-09:00,17:00-24:00 friday 00:00-09:00,17:00-24:00 saturday 00:00-24:00 } # 'none' timeperiod definition define timeperiod{ timeperiod_name none alias No Time Is A Good Time } ___________________________________________________________ How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From miguel-r-matos at ptinovacao.pt Fri Jul 1 16:06:28 2005 From: miguel-r-matos at ptinovacao.pt (Miguel Matos) Date: Fri, 1 Jul 2005 15:06:28 +0100 Subject: passive checks Message-ID: <75D349FBF7C131408F5061B7168072C3014914D3@INOAVREX06.ptin.corpPT.com> Hi Mariano, I have the same problem with passive checks. I think there's a bug with the functions that process passive checks because I have nagios 1.2 installed on some machines and sometimes nagios doesn't process the alarms that are sent to him. Regards, Miguel -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Mariano Cunietti Sent: sexta-feira, 1 de Julho de 2005 14:22 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] passive checks Hi list, I'm trying to configure a passive check on Nagios for an ATM router with MPLS VPN VRFs ( to be monitored. I configured a service like this: define service{ host_name atm1-mi service_description MPLS-VRF is_volatile 1 active_checks_enabled 0 passive_checks_enabled 1 max_check_attempts 1 normal_check_interval 5 retry_check_interval 2 contact_groups admins-SMS notification_interval 60 notification_period 24x7 notification_options w,u,c,r check_command check_none } I configured snmptrapd to handle Cisco traps and pass them to a perl script, which calls submit_check_result: /usr/lib/nagios/plugins/eventhandlers/submit_check_result atm1-mi MPLS-VRF $retval $vrf_name Here's what is logged in /var/log/nagios/rw/nagios.cmd when VRF goes down: [1120147489] PROCESS_SERVICE_CHECK_RESULT;atm1-mi;MPLS-VRF;2;my_vrf_name Yet, nothing is done by Nagios. On the web panle, at Service Detail, i get: Host atm1-mi MPLS-VRF (P) Pending N/A 0d 21h 8m 1s+ 0/1 Service check scheduled for Fri Jul 1 15:13:16 2005 It seems that Nagios is not processing passive checks correctly. Any hint? I'm stuck :-( Thanks -- ------------------------- Mariano Cunietti System Administrator Enter S.r.l. Via Stefanardo da Vimercate, 28 20128 - Milano - Italy Tel. +39 02 25514319 Fax +39 02 25514303 mcunietti at enter.it www.enter.it - www.enterpoint.it --------------------------- Gruppo Y2K - www.gruppoy2k.it ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kklein9 at uky.edu Fri Jul 1 16:15:35 2005 From: kklein9 at uky.edu (Kenneth Klein) Date: Fri, 01 Jul 2005 10:15:35 -0400 Subject: ld: 0711-317 ERROR: Undefined symbol: .VA_COPY <-- Can anyone tell me how to fix this???? In-Reply-To: <42C47806.5030607@op5.se> References: <42C4410A.803@uky.edu> <42C47806.5030607@op5.se> Message-ID: <42C55007.1020800@uky.edu> Thanks for the advice. "to the top of the file" <-- which file are you referring to? Makefile? The systems I am working on all run AIX 5.3. I do have Linux (SLES) running on one partition in one of our 3 p570's, but the AIX LPARs are the ones I want to monitor. Andreas Ericsson wrote: > Kenneth Klein wrote: > >> I finally got nagios to "make all" and make etc. Then I dl.ed the >> source for the plugins, I grabbed the latest stable verson. >> >> I got this error when I ran make all. >> >> ar: Creating an archive file libsnprintf.a. >> gcc -g -O2 -L. -L/lib -o check_disk check_disk.o utils.o >> ../lib/libnagiosplug.a popen.o -lsnprintf -lsnprintf >> ld: 0711-317 ERROR: Undefined symbol: .VA_COPY >> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more >> information. >> collect2: ld returned 8 exit status >> make: 1254-004 The error code from the last command is 1. >> > > The configure script seems to not have picked up that your system > can't handle the VA_COPY macro properly. There are macros for it in > lib/snprintf.c which can circumvent this. Adding > #undef HAVE_VA_COPY > #undef HAVE__VA_COPY > to the top of the file should at least make the plugins compile, > although I can't guarantee they won't segfault en masse. That will > depend on your systems vsprintf() implementation. > > If it's at all possible, you should try running Nagios on either Linux > or *BSD. Older systems doesn't have the asprintf() function and the > current plugin distribution sadly relies heavily on it being there. > -- I am told that the US spent a lot of money trying to find a pen that would write in weightlessness. They showed the "Space Pen" to the competing Russians. They showed the US reps - a pencil. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Joseph.Petrucci at ddiworld.com Fri Jul 1 16:42:59 2005 From: Joseph.Petrucci at ddiworld.com (Petrucci, Joseph) Date: Fri, 1 Jul 2005 10:42:59 -0400 Subject: passive checks Message-ID: I have written a lot of my own SQL2000 plugins but this one stumps me. Can someone review this and let me know if I am way off base on this. I want to check ODBC connectivity from my application server to my database server. I have ActivePerl on the application server so I want to write an ASP page that connects to the database through ODBC and returns the name of the database that it is connected to. Then use check_http to call that page and look for the database name in the page. Does this sound feasible I usually try not to put special code on the monitored host, but to check if the host can connect to a service on another host I cannot see any other way. Joseph A. Petrucci E Systems DBA ------------------------------------------------ Desk: 412-220-2646 Cell: 412-916-2867 Text message (e-mail) 4129162867 at mobile.att.net e-mail joseph.petrucci at ddiworld.com Personal Cell: 724-462-0443 Personal e-mail: japetrucci at hotmail.com ________________________________ From: nagios-users-admin at lists.sourceforge.net on behalf of Miguel Matos Sent: Fri 7/1/2005 10:06 AM To: Mariano Cunietti; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] passive checks Hi Mariano, I have the same problem with passive checks. I think there's a bug with the functions that process passive checks because I have nagios 1.2 installed on some machines and sometimes nagios doesn't process the alarms that are sent to him. Regards, Miguel -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Mariano Cunietti Sent: sexta-feira, 1 de Julho de 2005 14:22 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] passive checks Hi list, I'm trying to configure a passive check on Nagios for an ATM router with MPLS VPN VRFs ( to be monitored. I configured a service like this: define service{ host_name atm1-mi service_description MPLS-VRF is_volatile 1 active_checks_enabled 0 passive_checks_enabled 1 max_check_attempts 1 normal_check_interval 5 retry_check_interval 2 contact_groups admins-SMS notification_interval 60 notification_period 24x7 notification_options w,u,c,r check_command check_none } I configured snmptrapd to handle Cisco traps and pass them to a perl script, which calls submit_check_result: /usr/lib/nagios/plugins/eventhandlers/submit_check_result atm1-mi MPLS-VRF $retval $vrf_name Here's what is logged in /var/log/nagios/rw/nagios.cmd when VRF goes down: [1120147489] PROCESS_SERVICE_CHECK_RESULT;atm1-mi;MPLS-VRF;2;my_vrf_name Yet, nothing is done by Nagios. On the web panle, at Service Detail, i get: Host atm1-mi MPLS-VRF (P) Pending N/A 0d 21h 8m 1s+ 0/1 Service check scheduled for Fri Jul 1 15:13:16 2005 It seems that Nagios is not processing passive checks correctly. Any hint? I'm stuck :-( Thanks -- ------------------------- Mariano Cunietti System Administrator Enter S.r.l. Via Stefanardo da Vimercate, 28 20128 - Milano - Italy Tel. +39 02 25514319 Fax +39 02 25514303 mcunietti at enter.it www.enter.it - www.enterpoint.it --------------------------- Gruppo Y2K - www.gruppoy2k.it ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From pla at softflare.com Fri Jul 1 16:48:45 2005 From: pla at softflare.com (Paul L. Allen) Date: Fri, 01 Jul 2005 15:48:45 +0100 Subject: Exploding check commands batman ... In-Reply-To: <42C53E36.7000805@op5.se> References: <20050701055206.GD25733@openfusion.com.au> <20050701115720.18802.qmail@mullet.softflare.net> <42C53E36.7000805@op5.se> Message-ID: <20050701144845.30135.qmail@mullet.softflare.net> Andreas Ericsson writes: > I'm working on overloading the plugins a bit to support behaviour like > this. It will require the arguments in the check_command definition to be > enclosed in quotes (due to how POSIX getopt() works), but will otherwise > work nicely. Sounds good. > I believe it's best left out of Nagios. String mangling is rather > expensive and error-prone. Checking if(str[0] == 0) from the command > executed is a fairly simple process. Somewhat more complex for the perl plugins since they generally use the strict pragma. Easy for options which take string arguments and where the string "0" is never valid or sensible: $opt_x ||= $opt_x_default; A little extra work for options which take numeric arguments and where the numeric value 0 is valid and sensible but some other numeric value is the default: $opt_x = $opt_x_default if ($x eq ''); A bigger problem for numerics if you expect the plugin to cope gracefully if somebody manages to not pass "" as the argument for the option and the option is therefore unitialized: $opt_x = $opt_x_default if (not defined($x) or $x eq ''); or: $opt_x .= '' # ensure $opt_x is initialized with something $opt_x = $opt_x_default if ($x eq ''); That's the price you have to pay for asking perl to do run-time checking. Then again, the GetOpt module shouldn't be letting you get away with specifying an option that requires an argument without giving an argument, but I'm sure somebody will find a way. -- Paul Allen Softflare Support ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 1 16:57:17 2005 From: marc at ena.com (Marc Powell) Date: Fri, 1 Jul 2005 09:57:17 -0500 Subject: passive checks Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Petrucci, Joseph > Sent: Friday, July 01, 2005 9:43 AM > To: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] passive checks > > I have written a lot of my own SQL2000 plugins but this one stumps me. Can > someone review this and let me know if I am way off base on this. I want > to check ODBC connectivity from my application server to my database > server. I have ActivePerl on the application server so I want to write an > ASP page that connects to the database through ODBC and returns the name > of the database that it is connected to. Then use check_http to call that > page and look for the database name in the page. Does this sound feasible > I usually try not to put special code on the monitored host, but to check > if the host can connect to a service on another host I cannot see any > other way. We do the same thing with a couple of our applications. It's essentially two checks in one: your HTTP server is working and your database server is working.... -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mcunietti at enter.it Fri Jul 1 17:02:50 2005 From: mcunietti at enter.it (Mariano Cunietti) Date: Fri, 01 Jul 2005 17:02:50 +0200 Subject: passive checks In-Reply-To: References: Message-ID: <1120230170.19849.44.camel@bytecode.enter.it> On Fri, 2005-07-01 at 16:42, Petrucci, Joseph wrote: > I have written a lot of my own SQL2000 plugins but this one stumps me. > Can someone review this and let me know if I am way off base on this. > I want to check ODBC connectivity from my application server to my > database server. I have ActivePerl on the application server so I want > to write an ASP page that connects to the database through ODBC and > returns the name of the database that it is connected to. Then use > check_http to call that page and look for the database name in the > page. Does this sound feasible I usually try not to put special code > on the monitored host, but to check if the host can connect to a > service on another host I cannot see any other way. maybe you could a open a new thread on your own, couldn't you? you know, it's free... ------------------------- Mariano Cunietti System Administrator Enter S.r.l. Via Stefanardo da Vimercate, 28 20128 - Milano - Italy Tel. +39 02 25514319 Fax +39 02 25514303 mcunietti at enter.it www.enter.it - www.enterpoint.it --------------------------- Gruppo Y2K - www.gruppoy2k.it ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 1 17:07:23 2005 From: marc at ena.com (Marc Powell) Date: Fri, 1 Jul 2005 10:07:23 -0500 Subject: passive checks Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Mariano Cunietti > Sent: Friday, July 01, 2005 8:22 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] passive checks > > Hi list, > I'm trying to configure a passive check on Nagios for an ATM router with > MPLS VPN VRFs ( to be monitored. > > I configured a service like this: > > define service{ > host_name atm1-mi > service_description MPLS-VRF > is_volatile 1 > active_checks_enabled 0 > passive_checks_enabled 1 > max_check_attempts 1 > normal_check_interval 5 > retry_check_interval 2 > contact_groups admins-SMS > notification_interval 60 > notification_period 24x7 > notification_options w,u,c,r > check_command check_none > } > > I configured snmptrapd to handle Cisco traps and pass them to a perl > script, which calls submit_check_result: > > /usr/lib/nagios/plugins/eventhandlers/submit_check_result atm1-mi > MPLS-VRF $retval $vrf_name > > Here's what is logged in /var/log/nagios/rw/nagios.cmd when VRF goes > down: > > [1120147489] PROCESS_SERVICE_CHECK_RESULT;atm1-mi;MPLS-VRF;2;my_vrf_name > > Yet, nothing is done by Nagios. On the web panle, at Service Detail, i > get: > > Host atm1-mi > MPLS-VRF (P) Pending N/A 0d 21h 8m 1s+ 0/1 Service check > scheduled for > Fri Jul 1 15:13:16 2005 > > It seems that Nagios is not processing passive checks correctly. > Any hint? I'm stuck :-( Do you have passive checks enabled globally in nagios.cfg? accept_passive_service_checks=1 -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mcunietti at enter.it Fri Jul 1 17:32:09 2005 From: mcunietti at enter.it (Mariano Cunietti) Date: Fri, 01 Jul 2005 17:32:09 +0200 Subject: passive checks In-Reply-To: References: Message-ID: <1120231929.19849.48.camel@bytecode.enter.it> > Do you have passive checks enabled globally in nagios.cfg? > > accept_passive_service_checks=1 > they're enabled. ------------------------- Mariano Cunietti System Administrator Enter S.r.l. Via Stefanardo da Vimercate, 28 20128 - Milano - Italy Tel. +39 02 25514319 Fax +39 02 25514303 mcunietti at enter.it www.enter.it - www.enterpoint.it --------------------------- Gruppo Y2K - www.gruppoy2k.it ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 1 18:28:10 2005 From: ae at op5.se (Andreas Ericsson) Date: Fri, 01 Jul 2005 18:28:10 +0200 Subject: ld: 0711-317 ERROR: Undefined symbol: .VA_COPY <-- Can anyone tell me how to fix this???? In-Reply-To: <42C55007.1020800@uky.edu> References: <42C4410A.803@uky.edu> <42C47806.5030607@op5.se> <42C55007.1020800@uky.edu> Message-ID: <42C56F1A.6050302@op5.se> Kenneth Klein wrote: > Thanks for the advice. > > "to the top of the file" <-- which file are you referring to? Makefile? > lib/snprintf.c #undef is a C preprocessor directive, so I thought it was obvious. Sorry about that. > The systems I am working on all run AIX 5.3. I do have Linux (SLES) > running on one partition in one of our 3 p570's, but the AIX LPARs are > the ones I want to monitor. > > Andreas Ericsson wrote: > >> Kenneth Klein wrote: >> >>> I finally got nagios to "make all" and make etc. Then I dl.ed the >>> source for the plugins, I grabbed the latest stable verson. >>> >>> I got this error when I ran make all. >>> >>> ar: Creating an archive file libsnprintf.a. >>> gcc -g -O2 -L. -L/lib -o check_disk check_disk.o utils.o >>> ../lib/libnagiosplug.a popen.o -lsnprintf -lsnprintf >>> ld: 0711-317 ERROR: Undefined symbol: .VA_COPY >>> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more >>> information. >>> collect2: ld returned 8 exit status >>> make: 1254-004 The error code from the last command is 1. >>> >> >> The configure script seems to not have picked up that your system >> can't handle the VA_COPY macro properly. There are macros for it in >> lib/snprintf.c which can circumvent this. Adding >> #undef HAVE_VA_COPY >> #undef HAVE__VA_COPY >> to the top of the file should at least make the plugins compile, >> although I can't guarantee they won't segfault en masse. That will >> depend on your systems vsprintf() implementation. >> >> If it's at all possible, you should try running Nagios on either Linux >> or *BSD. Older systems doesn't have the asprintf() function and the >> current plugin distribution sadly relies heavily on it being there. >> > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 1 20:04:23 2005 From: ae at op5.se (Andreas Ericsson) Date: Fri, 01 Jul 2005 20:04:23 +0200 Subject: Exploding check commands batman ... In-Reply-To: <20050701144845.30135.qmail@mullet.softflare.net> References: <20050701055206.GD25733@openfusion.com.au> <20050701115720.18802.qmail@mullet.softflare.net> <42C53E36.7000805@op5.se> <20050701144845.30135.qmail@mullet.softflare.net> Message-ID: <42C585A7.7060900@op5.se> Paul L. Allen wrote: > Andreas Ericsson writes: > >> I'm working on overloading the plugins a bit to support behaviour like >> this. It will require the arguments in the check_command definition to >> be enclosed in quotes (due to how POSIX getopt() works), but will >> otherwise work nicely. > > > Sounds good. > >> I believe it's best left out of Nagios. String mangling is rather >> expensive and error-prone. Checking if(str[0] == 0) from the command >> executed is a fairly simple process. > > > Somewhat more complex for the perl plugins since they generally use > the strict pragma. That's something I'm willing to live with. Most of the plugins that would benefit to any greater extent from overloading are written in C anyways (check_snmp, check_tcp, check_http). > Easy for options which take string arguments and > where the string "0" is never valid or sensible: The string "0" and str[0] = 0 are two quite different things. The second is just an optimized way of writing if(strlen(str) == 0). > $opt_x ||= $opt_x_default; > A little extra work for options which take numeric arguments and where the > numeric value 0 is valid and sensible but some other numeric value is > the default: > $opt_x = $opt_x_default if ($x eq ''); > A bigger problem for numerics if you expect the plugin to cope gracefully > if somebody manages to not pass "" as the argument for the option and the > option is therefore unitialized: Making them cope gracefully is exactly what I meant by making them overloaded. > $opt_x = $opt_x_default if (not defined($x) or $x eq ''); > or: > $opt_x .= '' # ensure $opt_x is initialized with something > $opt_x = $opt_x_default if ($x eq ''); > That's the price you have to pay for asking perl to do run-time checking. > Then again, the GetOpt module shouldn't be letting you get away with > specifying an option that requires an argument without giving an argument, > but I'm sure somebody will find a way. POSIX quite clearly states that empty arguments are still arguments. Any implementation doing otherwise is decidedly broken, even if it errs on the side of prudence. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sudhirmahalein at yahoo.co.uk Fri Jul 1 20:40:48 2005 From: sudhirmahalein at yahoo.co.uk (Sudhir Mahale) Date: Fri, 1 Jul 2005 19:40:48 +0100 (BST) Subject: Notifications not visible for certain days Message-ID: <20050701184048.3008.qmail@web86908.mail.ukl.yahoo.com> Thanks Sivan... checked the disk space, there is more than 50% space available. is it related to the time periods that we define? Thanks, Sudhir ___________________________________________________________ How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Fri Jul 1 21:01:44 2005 From: pla at softflare.com (Paul L. Allen) Date: Fri, 01 Jul 2005 20:01:44 +0100 Subject: Exploding check commands batman ... In-Reply-To: <42C585A7.7060900@op5.se> References: <20050701055206.GD25733@openfusion.com.au> <20050701115720.18802.qmail@mullet.softflare.net> <42C53E36.7000805@op5.se> <20050701144845.30135.qmail@mullet.softflare.net> <42C585A7.7060900@op5.se> Message-ID: <20050701190144.18504.qmail@mullet.softflare.net> Andreas Ericsson writes: > Paul L. Allen wrote: >> Easy for options which take string arguments and >> where the string "0" is never valid or sensible: > > The string "0" and str[0] = 0 are two quite different things. In C they are. In perl there are some overlaps between "0", the null string, the number 0 and unitialized variables, depending on what exactly you do with them. Variable is Is defined? Boolean val Num val String val ----------- ----------- -------- ------- ---------- uninitialized NO false 0 null string null string yes false 0 null string number 0 yes false 0 "0" string "0" yes false 0 "0" string "0.0" yes TRUE 0 "0.0" string "00" yes TRUE 0 "00" In strict mode uninitialized variables cannot be used in comparisons. So if somebody does manage to do something that results in a variable holding an option being uninitialized, as opposed to being initialized with the null string, things break. Outside of strict mode an uninitialized variable is false in a boolean context, 0 in a numeric context and the null string in a string context; in strict mode all you can do with an unitialized variable without causing an error is assign to it. That may seem arbitrary and bizarre to you, but generally that behaviour is exactly what you want most of the time in a language where strings that look like numbers can be used as numbers and numbers can be used as strings. $x = "5"; $x++; print "$x\n"; print "The value is $x\n"; $x = "The value is $x"; print "$x\n"; gives the number 6 as the first output (and $x is now stored as a number rather than a string), 'The value is 6' as the second output (and $x is still stored as as number), the third output is the same but now $x is now stored as a string again. On the other hand, $x = 'five'; $x++; print "$x\n"; gives an answer of one (the string 'five', when evaluated as a number, is equivalent to 0). But $x = '5 four three two 1'; $x++; print "$x\n"; Gives 6 as the answer. Perl takes as much as it can from the start of the string that looks like a number and uses it that way. So 0 and "0" are both false if used as a boolean, because you expect 0 to be false; 0 and "0" are both zero when used as numerics, because you expect 0 to be zero; and both "0" when used as strings, because you expect that as well. Admittedly, it would get very confusing if it were not for perl having different operators for manipulating numbers and string: $x = '0'; $y = 0; $z = '7'; print "$x$y$z\n"; print $x + $y + $z, "\n"; gives '007' for the first answer and 7 for the second. It does make sense. Sort of. Once you get used to it. Where perl gets truly bizarre is that you can do $x = 'perl'; $x++; print "$x\n"; and the output is 'perm', provided you didn't use $x as a string between defining it and the increment, and it only works with auto-increments. There's a reason for all that too, and it's not so you can make hair jokes about perl. > POSIX quite clearly states that empty arguments are still arguments. Any > implementation doing otherwise is decidedly broken, even if it errs on the > side of prudence. There's a difference between the null string and being uninitialized. check_foo -x '' Means $opt_x contains the null string. check_foo -x IF you can somehow sneak it past the shell and the GetOpt module (or whatever method the plugin uses) could conceivably result in $opt_x being undefined, unless something takes steps to ensure otherwise. And that would result in comparisons causing output to standard error and returning what will almost certainly be an incorrect status code for the situation. This situation happens in perl plugins that parse output using regular expressions when they encounter output the author didn't expect. One or more variables are left undefined because the output doesn't match a regex, the variable is used in a comparison and bang (the 1.3.1 check_ntp comes to mind). -- Paul Allen Softflare Support ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 1 21:28:45 2005 From: ae at op5.se (Andreas Ericsson) Date: Fri, 01 Jul 2005 21:28:45 +0200 Subject: Exploding check commands batman ... In-Reply-To: <20050701190144.18504.qmail@mullet.softflare.net> References: <20050701055206.GD25733@openfusion.com.au> <20050701115720.18802.qmail@mullet.softflare.net> <42C53E36.7000805@op5.se> <20050701144845.30135.qmail@mullet.softflare.net> <42C585A7.7060900@op5.se> <20050701190144.18504.qmail@mullet.softflare.net> Message-ID: <42C5996D.60902@op5.se> Paul L. Allen wrote: > Andreas Ericsson writes: > >> Paul L. Allen wrote: > > >>> Easy for options which take string arguments and >>> where the string "0" is never valid or sensible: >> >> >> The string "0" and str[0] = 0 are two quite different things. > > > In C they are. In perl there are some overlaps between "0", the > null string, the number 0 and unitialized variables, depending on what > exactly you do with them. > Variable is Is defined? Boolean val Num val String val > ----------- ----------- -------- ------- ---------- > uninitialized NO false 0 null string > null string yes false 0 null string > number 0 yes false 0 "0" > string "0" yes false 0 "0" Note that all boolean values here are false. It gets important further down. > string "0.0" yes TRUE 0 "0.0" > string "00" yes TRUE 0 "00" These are no longer null-strings in any sense, so they aren't very interesting. > In strict mode uninitialized variables cannot be used in comparisons. > So if somebody does manage to do something that results in a variable > holding an option being uninitialized, as opposed to being initialized > with the null string, This won't be possible. I was thinking along the lines of this; command_name check_foo_command command_line check_foo -H $HOSTADDRESS$ -C "$ARG1$" -p "$ARG2$" Where check_foo is a plugin written in perl that checks something via SNMP. It's reasonable to assume that most will want to give the community as an argument from the service-object, while most want to use the default port. Nagios will translate all 32 $ARGx$ macros even if some aren't set (which is a bit weird, but useful for this purpose) and simply remove the macro-tags since their counterparts will be NULL pointers (as opposed to null strings). So, the resulting command turns out to check_foo -H host -C bar -p "" which means the imaginary variable $port will be set to the null-string and thus it will be defined but will evaluate to false when being evaluated as a boolean expression, as it would have if it wasn't specified at all. The -H argument in this case is not "overloadable" because it doesn't makes sense to have it that way considering how Nagios does things. > things break. Outside of strict mode an > uninitialized variable is false in a boolean context, 0 in a numeric > context and the null string in a string context; in strict mode all you > can do with an unitialized variable without causing an error is assign > to it. Which is why the simple approach to make perl-scripts overloaded is to apply defaults after getopt parsing and conditionally of a boolean evaluation. > >> POSIX quite clearly states that empty arguments are still arguments. >> Any implementation doing otherwise is decidedly broken, even if it >> errs on the side of prudence. > > > There's a difference between the null string and being uninitialized. > check_foo -x '' This is how it will be used, as explained above. > Means $opt_x contains the null string. > check_foo -x > IF you can somehow sneak it past the shell and the GetOpt module The shell will handle it, along with Nagios' macro replacement code. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Fri Jul 1 22:30:26 2005 From: pla at softflare.com (Paul L. Allen) Date: Fri, 01 Jul 2005 21:30:26 +0100 Subject: Exploding check commands batman ... In-Reply-To: <42C5996D.60902@op5.se> References: <20050701055206.GD25733@openfusion.com.au> <20050701115720.18802.qmail@mullet.softflare.net> <42C53E36.7000805@op5.se> <20050701144845.30135.qmail@mullet.softflare.net> <42C585A7.7060900@op5.se> <20050701190144.18504.qmail@mullet.softflare.net> <42C5996D.60902@op5.se> Message-ID: <20050701203026.5068.qmail@mullet.softflare.net> Andreas Ericsson writes: > Paul L. Allen wrote: >> Variable is Is defined? Boolean val Num val String val >> ----------- ----------- -------- ------- ---------- >> uninitialized NO false 0 null string >> null string yes false 0 null string >> number 0 yes false 0 "0" >> string "0" yes false 0 "0" > > > Note that all boolean values here are false. Outside of strict mode they are all false. Inside strict mode, which the plugin guidelines encourage, the boolean value of an uninitialized variable is "fatal error." >> string "0.0" yes TRUE 0 "0.0" >> string "00" yes TRUE 0 "00" > > These are no longer null-strings in any sense, so they aren't very > interesting. They are not null strings, but they do have the numeric value zero yet have a different boolean value than either 0 or '0'. A potential cause of surprises because a simple $opt_x = 20 unless ($opt_x) is going to behave differently from $opt_x ||= 20 if the plugin is given -x 0.0 or -x 00. Usually perl's implicit type conversions help you, but sometimes they turn around and bite you. >> In strict mode uninitialized variables cannot be used in comparisons. >> So if somebody does manage to do something that results in a variable >> holding an option being uninitialized, as opposed to being initialized >> with the null string, > > This won't be possible. If you're absolutely certain it won't be possible, then there no need to cope with that situation other than being paranoid about coding defensively. > I was thinking along the lines of this; > > command_name check_foo_command > command_line check_foo -H $HOSTADDRESS$ -C "$ARG1$" -p "$ARG2$" Of course this has problems when the community string is 'foo"bar', so Nagios will have to do some escaping before calling plugins. But I'm sure you already thought of that. > So, the resulting command turns out to > > check_foo -H host -C bar -p "" > > which means the imaginary variable $port will be set to the null-string > and thus it will be defined but will evaluate to false when being > evaluated as a boolean expression, as it would have if it wasn't specified > at all. That should probably work, modulo embedded double quotes. But people are surprisingly inventive and the GetOpt module has some strange twists and turns in it that probably haven't been fully verified for correctness, so it's conceivable that certain input could result in unitialized variables. Which is why I'd probably code a plugin defensively, just to be on the safe side. -- Paul Allen Softflare Support ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ddunham at taos.com Fri Jul 1 22:43:35 2005 From: ddunham at taos.com (Darren Dunham) Date: Fri, 1 Jul 2005 13:43:35 -0700 (PDT) Subject: Exploding check commands batman ... In-Reply-To: <20050701190144.18504.qmail@mullet.softflare.net> from "Paul L. Allen" at Jul 01, 2005 08:01:44 PM References: <20050701190144.18504.qmail@mullet.softflare.net> Message-ID: <200507012043.NAA28126@redwood.taos.com> > In strict mode uninitialized variables cannot be used in comparisons. > So if somebody does manage to do something that results in a variable > holding an option being uninitialized, as opposed to being initialized > with the null string, things break. Outside of strict mode an > uninitialized variable is false in a boolean context, 0 in a numeric > context and the null string in a string context; in strict mode all you > can do with an unitialized variable without causing an error is assign > to it. Perl's strict deals with "compile time" issues like lexical scoping (declaration rather than initialization). It doesn't do anything with run time issues like undefined variables. That would be noticed by warnings, not strict. It certainly doesn't preclude comparisons with the undefined value or uninitialized variables. In no case is it an error. $ perl -le 'use strict;my $v;if(5==$v){print "equal"}else{print "not equal";}' not equal $ perl -le 'use warnings;my $v;if(5==$v){print "equal"}else{print "not equal";}' Use of uninitialized value in numeric eq (==) at -e line 1. not equal -- 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.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From efinleywork at efinley.com Fri Jul 1 22:47:16 2005 From: efinleywork at efinley.com (Elliot Finley) Date: Fri, 1 Jul 2005 14:47:16 -0600 Subject: Exploding check commands batman ... References: <20050701055206.GD25733@openfusion.com.au> <20050701115720.18802.qmail@mullet.softflare.net> <42C53E36.7000805@op5.se> <20050701144845.30135.qmail@mullet.softflare.net> <42C585A7.7060900@op5.se> <20050701190144.18504.qmail@mullet.softflare.net> Message-ID: <08b001c57e7e$111d0220$37cba1cd@emerytelcom.com> ----- Original Message ----- From: "Paul L. Allen" > On the other hand, > > $x = 'five'; > $x++; > print "$x\n"; > > gives an answer of one (the string 'five', when evaluated as a number, > is equivalent to 0). > > $x = 'perl'; > $x++; > print "$x\n"; > > and the output is 'perm', provided you didn't use $x as a string between > defining it and the increment, and it only works with auto-increments. > There's a reason for all that too, and it's not so you can make hair > jokes about perl. Why would these two cases be different? Elliot ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Fri Jul 1 22:57:20 2005 From: pla at softflare.com (Paul L. Allen) Date: Fri, 01 Jul 2005 21:57:20 +0100 Subject: Exploding check commands batman ... In-Reply-To: <200507012043.NAA28126@redwood.taos.com> References: <200507012043.NAA28126@redwood.taos.com> Message-ID: <20050701205720.16568.qmail@mullet.softflare.net> Darren Dunham writes: >> In strict mode uninitialized variables cannot be used in comparisons. >> So if somebody does manage to do something that results in a variable >> holding an option being uninitialized, as opposed to being initialized >> with the null string, things break. Outside of strict mode an >> uninitialized variable is false in a boolean context, 0 in a numeric >> context and the null string in a string context; in strict mode all you >> can do with an unitialized variable without causing an error is assign >> to it. > > Perl's strict deals with "compile time" issues like lexical scoping > (declaration rather than initialization). It doesn't do anything with > run time issues like undefined variables. That would be noticed by > warnings, not strict. Ooops, you're right. My error. I did tests with both to simulate a typical plugin. I don't use either strict or -w often enough for which is responsible for which headaches to make it reliably into my memory (most of the perl I write is one-off, fix up this immediate problem, won't be run by anybody but me). > It certainly doesn't preclude comparisons with the undefined value or > uninitialized variables. In no case is it an error. Add -w and it is a warning - enough usually to mess up your day with a plugin because the variable being undefined when it shouldn't have been usually causes it to bomb out with an error. Thanks for the correction. -- Paul Allen Softflare Support ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ludo.Bosmans at aureusim.be Fri Jul 1 23:13:47 2005 From: Ludo.Bosmans at aureusim.be (Ludo Bosmans) Date: Fri, 1 Jul 2005 23:13:47 +0200 Subject: Notifications not visible for certain days Message-ID: <02769B432700E649B14C0847840DC83B02F0A6@becompanysrv020.consulting.becompany> Sudhir, Was there an adjustment of the system time on your nagios server ? When system time is adapted and time is stepped back, this cause strange results. Convert the epoch date in the two archives files to spit it out. To avoid such problems, sync your nagios server clock with xntpd. kind regards, ludo ________________________________ Van: nagios-users-admin at lists.sourceforge.net namens Sudhir Mahale Verzonden: vr 1/07/2005 15:43 Aan: nagios-users at lists.sourceforge.net Onderwerp: [Nagios-users] Notifications not visible for certain days All, I am running Nagios 1.2 and am facing this problem in vieiwing notifications for particular days. I do not see any notifications for particular days. During the day I see notifications being recorded. But the next day, after the log rotation the notifications disappear.If i go to Notifications => Earlier archive in the web interface, I see the message "No notifications have been recorded in this archived log file" I checked the var/archives and found that for the days that notifications are missing we have two archive files, for example one nagios-06-30-2005-00.log and the other nagios-06-30-2005-23.log For the days that we see the notifications, only one archive file , for example nagios-06-29-2005-00.log is seen Any help will be greatly appreciated. I use "24x7" for all my servers and "test" for one of the test boxes Thanks, Sudhir Note:- My time periods definition looks like this # '24x7' timeperiod definition define timeperiod{ timeperiod_name 24x7 alias 24 Hours A Day, 7 Days A Week sunday 08:00-24:00 monday 00:00-24:00 tuesday 00:00-24:00 wednesday 00:00-24:00 thursday 00:00-24:00 friday 00:00-24:00 saturday 00:00-20:00 } # 'test' timeperiod definition define timeperiod{ timeperiod_name test_ftmfedora alias Test time period for ftmfedora sunday 08:00-24:00 monday 00:00-24:00 tuesday 00:00-24:00 wednesday 00:00-24:00 thursday 00:00-22:20 friday 00:00-22:20 saturday 00:00-20:00 } # 'workhours' timeperiod definition define timeperiod{ timeperiod_name workhours alias "Normal" Working Hours monday 09:00-17:00 tuesday 09:00-17:00 wednesday 09:00-17:00 thursday 09:00-17:00 friday 09:00-17:00 } # 'nonworkhours' timeperiod definition define timeperiod{ timeperiod_name nonworkhours alias Non-Work Hours sunday 00:00-24:00 monday 00:00-09:00,17:00-24:00 tuesday 00:00-09:00,17:00-24:00 wednesday 00:00-09:00,17:00-24:00 thursday 00:00-09:00,17:00-24:00 friday 00:00-09:00,17:00-24:00 saturday 00:00-24:00 } # 'none' timeperiod definition define timeperiod{ timeperiod_name none alias No Time Is A Good Time } ___________________________________________________________ How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 ae at op5.se Sat Jul 2 02:18:38 2005 From: ae at op5.se (Andreas Ericsson) Date: Sat, 02 Jul 2005 02:18:38 +0200 Subject: Exploding check commands batman ... In-Reply-To: <20050701203026.5068.qmail@mullet.softflare.net> References: <20050701055206.GD25733@openfusion.com.au> <20050701115720.18802.qmail@mullet.softflare.net> <42C53E36.7000805@op5.se> <20050701144845.30135.qmail@mullet.softflare.net> <42C585A7.7060900@op5.se> <20050701190144.18504.qmail@mullet.softflare.net> <42C5996D.60902@op5.se> <20050701203026.5068.qmail@mullet.softflare.net> Message-ID: <42C5DD5E.3090904@op5.se> Paul L. Allen wrote: > Andreas Ericsson writes: > >> Paul L. Allen wrote: > > >>> Variable is Is defined? Boolean val Num val String val >>> ----------- ----------- -------- ------- ---------- >>> uninitialized NO false 0 null string >>> null string yes false 0 null string >>> number 0 yes false 0 "0" >>> string "0" yes false 0 "0" >> >> >> >> Note that all boolean values here are false. > > > Outside of strict mode they are all false. Inside strict mode, which > the plugin guidelines encourage, the boolean value of an uninitialized > variable is "fatal error." > >>> string "0.0" yes TRUE 0 "0.0" >>> string "00" yes TRUE 0 "00" >> >> >> These are no longer null-strings in any sense, so they aren't very >> interesting. > > > They are not null strings, but they do have the numeric value zero yet > have a different boolean value than either 0 or '0'. How on earth does that matter when the string initializing them will either be a null-string or perhaps not a null-string? I don't think you quite understand what I mean here. >>> In strict mode uninitialized variables cannot be used in comparisons. >>> So if somebody does manage to do something that results in a variable >>> holding an option being uninitialized, as opposed to being initialized >>> with the null string, >> >> >> This won't be possible. > > > If you're absolutely certain it won't be possible, then there no need > to cope with that situation other than being paranoid about coding > defensively. > >> I was thinking along the lines of this; >> command_name check_foo_command >> command_line check_foo -H $HOSTADDRESS$ -C "$ARG1$" -p "$ARG2$" > > > Of course this has problems when the community string is 'foo"bar', so > Nagios will have to do some escaping before calling plugins. But I'm > sure you already thought of that. > Naturally. That community string would fail with the current code and there's no sane way of making it pass (short of escaping it manually, which is what one needs to do today anyway). The thing I'm suggesting won't break something that's working today. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From james at lovedthanlost.net Sat Jul 2 14:22:15 2005 From: james at lovedthanlost.net (James Turnbull) Date: Sat, 02 Jul 2005 22:22:15 +1000 Subject: Nagios CGIs and CGIWrap Message-ID: <42C686F7.3010506@lovedthanlost.net> Hi The Nagios documentation mentions running the CGIs with CGIWrap as an option for increased security. Is anyone out there doing that and if so would care to share a brief explanation of how their configuration works or samples of their configuration files? Thanks James Turnbull -- James Turnbull --- Author of Hardening Linux from Apress (http://www.amazon.com/exec/obidos/tg/detail/-/1590594444/) --- PGP Key (http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x0C42DF40) ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gavin at openfusion.com.au Sun Jul 3 00:42:51 2005 From: gavin at openfusion.com.au (Gavin Carr) Date: Sun, 3 Jul 2005 08:42:51 +1000 Subject: Exploding check commands batman ... In-Reply-To: <42C5996D.60902@op5.se> References: <20050701055206.GD25733@openfusion.com.au> <20050701115720.18802.qmail@mullet.softflare.net> <42C53E36.7000805@op5.se> <20050701144845.30135.qmail@mullet.softflare.net> <42C585A7.7060900@op5.se> <20050701190144.18504.qmail@mullet.softflare.net> <42C5996D.60902@op5.se> Message-ID: <20050702224251.GA27937@openfusion.com.au> On Fri, Jul 01, 2005 at 09:28:45PM +0200, Andreas Ericsson wrote: > I was thinking along the lines of this; > > command_name check_foo_command > command_line check_foo -H $HOSTADDRESS$ -C "$ARG1$" -p "$ARG2$" > > Where check_foo is a plugin written in perl that checks something via > SNMP. It's reasonable to assume that most will want to give the > community as an argument from the service-object, while most want to use > the default port. > > Nagios will translate all 32 $ARGx$ macros even if some aren't set > (which is a bit weird, but useful for this purpose) and simply remove > the macro-tags since their counterparts will be NULL pointers (as > opposed to null strings). > > So, the resulting command turns out to > > check_foo -H host -C bar -p "" > > which means the imaginary variable $port will be set to the null-string > and thus it will be defined but will evaluate to false when being > evaluated as a boolean expression, as it would have if it wasn't > specified at all. That's a nice idea Andreas. So are you adding the boolean testing to the current nagios plugin infrastructure? The only real negative is that you're then likely to use check commands with more options, and because we're using positional arguments you're likely to end up with lots of empty placeholders e.g. check_command check_http!/foo/bar.html!!!!!404 etc. A nasty example of this is things like check_by_ssh checks, where your arguments are typically on the inner command rather than the other check_by_ssh one e.g. command_line $USER1$/check_by_ssh -4 -H $HOSTADDRESS$ -t 20 -C '/usr/lib/nagios/plugins/check_disk -w $ARG1$ -c $ARG2$ -l' command_line $USER1$/check_by_ssh -4 -H $HOSTADDRESS$ -t 20 -C '/usr/lib/nagios/plugins/check_swap -w $ARG1$ -c $ARG2$' I've got 10 or so of these tests defined, and now have a host that is listening on a non-standard ssh port. Adding a '-p "$ARG1$"' to the check_by_ssh is doable, of course, but it necessitates an empty first argument for all test on hosts with standard ssh ports, which is a bit ugly too. Anyone think of an elegant way to handle this? Cheers, Gavin ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 3 01:40:05 2005 From: ae at op5.se (Andreas Ericsson) Date: Sun, 03 Jul 2005 01:40:05 +0200 Subject: Exploding check commands batman ... In-Reply-To: <20050702224251.GA27937@openfusion.com.au> References: <20050701055206.GD25733@openfusion.com.au> <20050701115720.18802.qmail@mullet.softflare.net> <42C53E36.7000805@op5.se> <20050701144845.30135.qmail@mullet.softflare.net> <42C585A7.7060900@op5.se> <20050701190144.18504.qmail@mullet.softflare.net> <42C5996D.60902@op5.se> <20050702224251.GA27937@openfusion.com.au> Message-ID: <42C725D5.8060701@op5.se> Gavin Carr wrote: > On Fri, Jul 01, 2005 at 09:28:45PM +0200, Andreas Ericsson wrote: > >>I was thinking along the lines of this; >> >>command_name check_foo_command >>command_line check_foo -H $HOSTADDRESS$ -C "$ARG1$" -p "$ARG2$" >> >>Where check_foo is a plugin written in perl that checks something via >>SNMP. It's reasonable to assume that most will want to give the >>community as an argument from the service-object, while most want to use >>the default port. >> >>Nagios will translate all 32 $ARGx$ macros even if some aren't set >>(which is a bit weird, but useful for this purpose) and simply remove >>the macro-tags since their counterparts will be NULL pointers (as >>opposed to null strings). >> >>So, the resulting command turns out to >> >>check_foo -H host -C bar -p "" >> >>which means the imaginary variable $port will be set to the null-string >>and thus it will be defined but will evaluate to false when being >>evaluated as a boolean expression, as it would have if it wasn't >>specified at all. > > > That's a nice idea Andreas. So are you adding the boolean testing to the > current nagios plugin infrastructure? > To my fork of it, actually. Perhaps it'll be the default branch some day (I certainly hope so). I've long since given up juggling the 30 or so patches I had to match the latest CVS. > The only real negative is that you're then likely to use check commands > with more options, and because we're using positional arguments you're > likely to end up with lots of empty placeholders e.g. > > check_command check_http!/foo/bar.html!!!!!404 > > etc. > > A nasty example of this is things like check_by_ssh checks, where your > arguments are typically on the inner command rather than the other > check_by_ssh one e.g. > For check_by_ssh and friends which in turn execute other plugins it's most likely preferrable to not use overloaded plugins, because the diversity is too great. For some plugins the syntax needs to be changed somewhat. check_http should for instance be capable of understanding 10.0.0.1/foobar as a hostaddress with a url attached which would make things a bit easier (as well as more obvious). > command_line $USER1$/check_by_ssh -4 -H $HOSTADDRESS$ -t 20 -C '/usr/lib/nagios/plugins/check_disk -w $ARG1$ -c $ARG2$ -l' > command_line $USER1$/check_by_ssh -4 -H $HOSTADDRESS$ -t 20 -C '/usr/lib/nagios/plugins/check_swap -w $ARG1$ -c $ARG2$' > > I've got 10 or so of these tests defined, and now have a host that is > listening on a non-standard ssh port. Adding a '-p "$ARG1$"' to the > check_by_ssh is doable, of course, but it necessitates an empty first > argument for all test on hosts with standard ssh ports, which is a bit > ugly too. > > Anyone think of an elegant way to handle this? > Put optional and less used arguments last in the command definition. You obviously wouldn't want port to be the sixth argument to generic check_tcp, since it's required when not using one of the symlinks. I'm not looking to removing the need for multiple commands altogether. I just want to improve things a bit so users have more flexibility, that's all. For true overloading one would have to implement parsing in nagios and a more complex syntax. I'm not sure that would help very many people. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From brian.murphy at gmx.net Mon Jul 4 07:41:19 2005 From: brian.murphy at gmx.net (Brian Murphy) Date: Mon, 4 Jul 2005 07:41:19 +0200 (MEST) Subject: =?ISO-8859-1?Q?Nagios_and_apan,_rrdtool_in_iplanet_webserver?= Message-ID: <4861.1120455679@www84.gmx.net> Hello List Has anyone out there got nagios/apan running in an Iplanet enviroment? Specifically the generate.cgi, which writes the rrdtool output to stdout when called, does not result in a graph being displayed. Using the command lines from the apancgi.debug file I can generate graphs if I redirect stout to a file (via >xxx.png) or by replacing the "-" with a filename Any ideas welcome Brian -- Weitersagen: GMX DSL-Flatrates mit Tempo-Garantie! Ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sivan.deray at net-aptitude.fr Mon Jul 4 10:46:51 2005 From: sivan.deray at net-aptitude.fr (Sivan DERAY) Date: Mon, 4 Jul 2005 10:46:51 +0200 Subject: - plugin to check file system writeable ? Message-ID: <4E13BD0442DACA4D9606CAD98924F09A45D025@srv-nap-atlas-1.net-aptitude.fr> hi, Is there a way to check if the file sytem is writeable ? (windows & linux) ? Thanks for help Sivan DERAY Ing?nieur S?curit? NET APTITUDE S.A.S. 215 rue Jean-Jacques Rousseau 92130 ISSY LES MOULINEAUX Mobile : 06 15 30 73 67 T?l?phone : 01 41 09 77 71 Fax : 01 41 09 77 78 Site Internet http://www.net-aptitude.fr -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: logo.JPG Type: image/jpeg Size: 2335 bytes Desc: logo.JPG URL: From Philipp.Sand at sycor.de Mon Jul 4 11:01:00 2005 From: Philipp.Sand at sycor.de (Sand Philipp) Date: Mon, 4 Jul 2005 11:01:00 +0200 Subject: Scheduled Downtime Message-ID: <6943DE9E9934CD42BBE4A20E0E28E10E01CC9B66@SYGOMAIL.GOE.AD.SYCOR.DE> Hello, is it possible to schedule a downtime for an event in the past? For example: in our SLAs we affirm a availability of 98%. But if there is a Router down because of let's say an Cisco IOS Bug, or something, we couldn't foreknow, this Downtime shouldn't affect our affirmed 98%. But because we couldn't foreknow this fault, we couldn't plan a scheduled downtime before. In cases like this it would be great to plan a scheduled downtime for the past. There has to be a possibility for doing that. I know, that Nagios uses the archived Nagios logfiles to generate the availability reports. What do you have to modify in them to plan such a downtime? Has anyone already done something like this? Thanks in advance! Philipp _____________________________ Philipp Sand OC-CC-TEC-SYS SYCOR GmbH Heinrich-von-Stephan-Stra?e 1-5 D - 37073 G?ttingen Telefon +49 (0) 551 - 490 - 0 Telefax +49 (0) 551 - 490 - 232468 philipp.sand at sycor.de www.sycor.de ------------------------------------------------ ? ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 4 11:30:36 2005 From: ae at op5.se (Andreas Ericsson) Date: Mon, 04 Jul 2005 11:30:36 +0200 Subject: Scheduled Downtime In-Reply-To: <6943DE9E9934CD42BBE4A20E0E28E10E01CC9B66@SYGOMAIL.GOE.AD.SYCOR.DE> References: <6943DE9E9934CD42BBE4A20E0E28E10E01CC9B66@SYGOMAIL.GOE.AD.SYCOR.DE> Message-ID: <42C901BC.9000407@op5.se> Sand Philipp wrote: > Hello, > > is it possible to schedule a downtime for an event in the past? It wouldn't make much sense to do that, would it? Downtime reflects KNOWN downtime. If you've forgotten to add it, it won't do much good. > For > example: in our SLAs we affirm a availability of 98%. But if there is > a Router down because of let's say an Cisco IOS Bug, or something, we > couldn't foreknow, this Downtime shouldn't affect our affirmed 98%. You can hack the logfiles manually, I suppose. > But because we couldn't foreknow this fault, we couldn't plan a > scheduled downtime before. In cases like this it would be great to > plan a scheduled downtime for the past. > > There has to be a possibility for doing that. I know, that Nagios > uses the archived Nagios logfiles to generate the availability > reports. What do you have to modify in them to plan such a downtime? RAFO (Read And Find Out). Schedule downtime with some arbitrary message that you can grep for in the logfiles. grep for it and find out what the syntax is. I've never bothered with it myself. > Has anyone already done something like this? > Probably not. It's a weird sort of thing to want to have. Better then to have a paragraph in the report you send to your customers; "This many hours (this many %) of the aforementioned downtime was caused by issues out of our control, such as bugs in Cisco IOS". If I were your customer, I'd tell you to go stuff it however. The reason the SLA responsibility is never 100% is that things out of the providers control sometimes happen. If you take those mishaps away, the only downtime you can cause is when you've fucked up one way or another (assuming you have some time for patches and upgrades which aren't inside the hours you promise uptime for). -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ralf.prengel at comline.de Mon Jul 4 13:21:28 2005 From: ralf.prengel at comline.de (Ralf Prengel) Date: Mon, 04 Jul 2005 13:21:28 +0200 Subject: ho to inform a person without using groups Message-ID: <42C91BB8.5050409@comline.de> I ve to organise the following: 5 Systems, to configure a notifaction for a system-managemt-group is no problem but there are 5 different admins (one for each system) who should be informed too. Is there a way to configure a person for one system ore is the only way to define an own group for each person. Thanks for hints ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Evert.Goor at benp.nl Mon Jul 4 14:52:39 2005 From: Evert.Goor at benp.nl (Evert Goor) Date: Mon, 4 Jul 2005 14:52:39 +0200 Subject: Nagios_grapher Message-ID: <19CCC8E70E4FA941848269F0C5D832CC898727@post.systems.nl> Hi all Is there a somewhere a forum about Nagios Grapher. Having some fights to get it running under RedHat Tanx Evert Goor -------------- next part -------------- An HTML attachment was scrubbed... URL: From idavidso at juniper.net Mon Jul 4 17:05:23 2005 From: idavidso at juniper.net (Ian Davidson) Date: Mon, 04 Jul 2005 16:05:23 +0100 Subject: Service alerts misinterpreted Message-ID: The 3x service alerts which are nsca'd to the central server are: SERVICE ALERT: emea-cns3;check-halo-service;CRITICAL;SOFT;1; Halo: Stopped SERVICE ALERT: emea-cns3;check-halo-service;CRITICAL;SOFT;2; Halo: Stopped SERVICE ALERT: emea-cns3;check-halo-service;CRITICAL;HARD;3; Halo: Stopped But in the nagios.log file, these are interpreted as: EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;emea-cns3;check-halo-service;2; Halo: Stopped EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;emea-cns3;check-halo-service;2; Halo: Stopped EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;emea-cns3;check-halo-service;2; Halo: Stopped Why!!! How are these being misunderstood? Cheers, -- Ian Davidson Corporate Network Services Juniper Networks Tel: +44-1372-385653 GSM: +44-7952-173703 "Chaos, panic & disorder - my work here is done." ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mon Jul 4 19:57:03 2005 From: noyler at khimetrics.com (Nathan Oyler) Date: Mon, 4 Jul 2005 10:57:03 -0700 Subject: Nagios_grapher Message-ID: <59B15593F41BD24591D59436E7226EAD021A366D@Khiphx2.khimetrics.com> There isn't a forum I've seen, although I've installed it and have it running on RHES3. What's the problem? ________________________________ From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Evert Goor Sent: Monday, July 04, 2005 5:53 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Nagios_grapher Hi all Is there a somewhere a forum about Nagios Grapher. Having some fights to get it running under RedHat Tanx Evert Goor ________________________________ Disclaimer B&P Computersystems BV The information contained in this e-mail message is confidential and may be legally privileged. It is intended solely for the use of the individual or entity to whom it is addressed and others authorised to receive it. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender as soon as possible. B+P Computersystems bv is neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt. ________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From noyler at khimetrics.com Mon Jul 4 20:04:27 2005 From: noyler at khimetrics.com (Nathan Oyler) Date: Mon, 4 Jul 2005 11:04:27 -0700 Subject: Using perfdata to read log files. Message-ID: <59B15593F41BD24591D59436E7226EAD021A366E@Khiphx2.khimetrics.com> I have Nagios Grapher installed, and it's a nice tool. I am using Nagios 2b3. Since I already have graphing of several difference services, I was thinking about how to get the data from a tomcat statistics logfile into nagios, so that I can wrap everything up into one nice tool to manage it with. I was thinking I could write a perl plugin to parse the logfile, and then send back information as perfdata to send to Nagios, which would then be sent to Nagios Grapher. Has anyone done this, suggest against it for any particular reason, any other thoughts? The logfiles are created with dates for when they were started, and statistics are created on the hour. I was thinking about marking each one that's been taken, and calling an event handler if there are any left. Incase for some reason Nagios doesn't run the check when there's new data. Maybe making the check an OK unless there are no files in the intended directory in which case it would give a warning. Any suggestions would be appreciated. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From chris at aidworld.org Mon Jul 4 20:09:03 2005 From: chris at aidworld.org (Chris Wilson) Date: Mon, 04 Jul 2005 19:09:03 +0100 Subject: avail.cgi incorrect statistics Message-ID: <1120500543.25695.6.camel@localhost> Hi all, I'm concerned about the accuracy of the statistics reported by avail.cgi, compared to the actual log contents and the history.cgi report. I have saved exmaple outputs from both which demonstrate the problem, but the HTML files are quite large so I have posted them here: avail.cgi: http://dev.aidworld.org:81/virt2.loband.org-google-avail.html history.cgi: http://dev.aidworld.org:81/virt2.loband.org-google-history.html The report from avail.cgi shows an 18 hour downtime period, from 30-06-2005 16:00:53 to 01-07-2005 10:33:21: SERVICE CRITICAL (Network is unreachable). However, the history shows that the downtime was only 12 minutes: [30-06-2005 16:00:53] SERVICE ALERT: virt2.loband.org;filter www.google.co.uk;CRITICAL;HARD;1;Network is unreachable [30-06-2005 16:10:54] SERVICE ALERT: virt2.loband.org;filter www.google.co.uk;WARNING;SOFT;1;HTTP problem: HTTP/1.1 200 OK - 13.370 second response time [30-06-2005 16:12:12] SERVICE ALERT: virt2.loband.org;filter www.google.co.uk;OK;SOFT;2;HTTP ok: HTTP/1.1 200 OK - 0.205 second response time It seems that avail.cgi counted from the start of downtime until the next Nagios restart, ignoring the fact that the service came back up. This makes the very nice-looking and potentially useful availability reports, completely useless to me, as I can't trust the figures at all. Does anyone have any ideas? Cheers, Chris. -- (aidworld) chris wilson | chief engineer (chris at aidworld.org) ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From niceforums at yahoo.com Mon Jul 4 21:02:36 2005 From: niceforums at yahoo.com (h d) Date: Mon, 4 Jul 2005 12:02:36 -0700 (PDT) Subject: internal server error and cgi problem ! Message-ID: <20050704190236.26087.qmail@web30105.mail.mud.yahoo.com> i changed the OS version from red hat9 to redhat AS , i'm going to install nagios 1.2 on this new OS, i added required lines to httpd.conf file but i 've get " internal server error " these lines are written in errorlog file of web server : " permission denied : exec of '/usr/local/nagios/sbin/status.cgi ' failed ....." . it means it can't execute cgi scripts? would you guide me ? nagios 1.2 worked well on redhat 9 . what i added to httpd.conf are these : for CGIs : scriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all and for html : Alias /nagios/ /usr/local/nagios/share/ Options None AllowOverride AuthConfig Order allow,deny Allow from all ____________________________________________________ Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football http://football.fantasysports.yahoo.com ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From holgilein at woosh.co.nz Mon Jul 4 21:29:18 2005 From: holgilein at woosh.co.nz (Holger (Woosh)) Date: Tue, 05 Jul 2005 07:29:18 +1200 Subject: Perfdata invocation problem Message-ID: <42C98E0E.102@woosh.co.nz> Hi Nagios list, I am trying to integrate Nagiosgraph into Nagios to store perfdata in RRD files, but for some unknown reason the nagiosgraph insert.pl script never gets called (no entries in its log file). What I currently use is: Nagios 2.0.3b Nagiosgraph 0.5 In nagios.conf I have activated perfdata processing like so: process_performance_data=1 service_perfdata_command=process-service-perfdata Within my appropriate service I have activated perfdata processing: process_perf_data 1 And misccommands contains: define command { command_name process-service-perfdata command_line /usr/local/nagios/nagiosgraph/insert.pl "$LASTSERVICECHECK$ ||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$" } Any ideas what I am doing wrong? Many thanks in advance, Holger ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From spoon at triparish.net Mon Jul 4 21:38:08 2005 From: spoon at triparish.net (Ed Spoon) Date: Mon, 4 Jul 2005 14:38:08 -0500 Subject: Qmail-inject command In-Reply-To: <20050704190236.26087.qmail@web30105.mail.mud.yahoo.com> References: <20050704190236.26087.qmail@web30105.mail.mud.yahoo.com> Message-ID: <4404pq$155dit6@mxip18a.cluster1.charter.net> Could someone post the command_line for using qmail to do 'notify-by-email' Thanks ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Evert.Goor at benp.nl Mon Jul 4 21:43:12 2005 From: Evert.Goor at benp.nl (Evert Goor) Date: Mon, 4 Jul 2005 21:43:12 +0200 Subject: Nagios_grapher Message-ID: <19CCC8E70E4FA941848269F0C5D832CC58A473@post.systems.nl> Hi After following the installation instruction by the letter. And installing the debian deamon script. I try to start the deamon. But no proces. Later i start ./collect2.pl -v to see what happens and it just tells me can not open log file. Checked for the permissions try to make by hand a log file and more of these things. Still the same error. got a litle stuck how to go further. Al input how to solve this would be handy. Tanx Evert Goor ----Original Message---- From: Nathan Oyler Sent: 04/07/05 20:00 To: Evert Goor ; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Nagios_grapher -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= There isn't a forum I've seen, although I've installed it and have it running on RHES3. What's the problem? ________________________________ From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Evert Goor Sent: Monday, July 04, 2005 5:53 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Nagios_grapher Hi all Is there a somewhere a forum about Nagios Grapher. Having some fights to get it running under RedHat Tanx Evert Goor ________________________________ Disclaimer B&P Computersystems BV The information contained in this e-mail message is confidential and may be legally privileged. It is intended solely for the use of the individual or entity to whom it is addressed and others authorised to receive it. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender as soon as possible. B+P Computersystems bv is neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt. ________________________________ ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Tue Jul 5 01:34:56 2005 From: ae at op5.se (Andreas Ericsson) Date: Tue, 05 Jul 2005 01:34:56 +0200 Subject: Service alerts misinterpreted In-Reply-To: References: Message-ID: <42C9C7A0.4090109@op5.se> Ian Davidson wrote: > The 3x service alerts which are nsca'd to the central server are: > > SERVICE ALERT: emea-cns3;check-halo-service;CRITICAL;SOFT;1; Halo: Stopped > SERVICE ALERT: emea-cns3;check-halo-service;CRITICAL;SOFT;2; Halo: Stopped > SERVICE ALERT: emea-cns3;check-halo-service;CRITICAL;HARD;3; Halo: Stopped > > > But in the nagios.log file, these are interpreted as: > > EXTERNAL COMMAND: > PROCESS_SERVICE_CHECK_RESULT;emea-cns3;check-halo-service;2; Halo: Stopped > EXTERNAL COMMAND: > PROCESS_SERVICE_CHECK_RESULT;emea-cns3;check-halo-service;2; Halo: Stopped > EXTERNAL COMMAND: > PROCESS_SERVICE_CHECK_RESULT;emea-cns3;check-halo-service;2; Halo: Stopped > > > Why!!! Because nagios doesn't log exactly what's sent into the pipe. > How are these being misunderstood? > They aren't. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Tue Jul 5 01:38:16 2005 From: ae at op5.se (Andreas Ericsson) Date: Tue, 05 Jul 2005 01:38:16 +0200 Subject: internal server error and cgi problem ! In-Reply-To: <20050704190236.26087.qmail@web30105.mail.mud.yahoo.com> References: <20050704190236.26087.qmail@web30105.mail.mud.yahoo.com> Message-ID: <42C9C868.2090508@op5.se> h d wrote: > i changed the OS version from red hat9 to redhat AS , > i'm going to install nagios 1.2 on this new OS, > i added required lines to httpd.conf file but i 've > get " internal server error " > these lines are written in errorlog file of web server > : > > " permission denied : exec of > '/usr/local/nagios/sbin/status.cgi ' failed ....." . > it means it can't execute cgi scripts? > would you guide me ? > Read the list archives. This is SELinux related and has been answered about 60 times over the past 3 months. > > nagios 1.2 worked well on redhat 9 . > RH9 didn't have SELinux. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 5 05:03:18 2005 From: s.shipway at auckland.ac.nz (Steve Shipway) Date: Tue, 5 Jul 2005 15:03:18 +1200 Subject: nsclient memory check? Message-ID: <00c101c5810e$18212dc0$01fea8c0@itss.auckland.ac.nz> Can anyone confirm for me just exactly what is being checked by the NSClient 'MEMUSE' check? (Currently using pNSclient v2.0.1) I always assumed that it represented the Total and Available virtual memory, which was then used to calculate percentage. However, this no longer seems to match observations. As far as I can tell it seems to be returning the page file available and used space, which is a bit odd. It doesn't seem to match either physical or virtual counts as reported by perfmon or sysinfo... sadly, I do not have the source code or documentation for it, and there seem to be no more web sites supporting this software since ready2run dropped it and ran :). Upgrading to NCNet is not an option as we cannot install .Net on our servers. Can anyone enlighten me? 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 jhmartin at toger.us Tue Jul 5 05:33:34 2005 From: jhmartin at toger.us (Jason Martin) Date: Mon, 4 Jul 2005 20:33:34 -0700 Subject: Service alerts misinterpreted In-Reply-To: References: Message-ID: <20050705033333.GA28474@zippy.toger.us> On Mon, Jul 04, 2005 at 04:05:23PM +0100, Ian Davidson wrote: > The 3x service alerts which are nsca'd to the central server are: > > SERVICE ALERT: emea-cns3;check-halo-service;CRITICAL;SOFT;1; Halo: Stopped > SERVICE ALERT: emea-cns3;check-halo-service;CRITICAL;SOFT;2; Halo: Stopped > SERVICE ALERT: emea-cns3;check-halo-service;CRITICAL;HARD;3; Halo: Stopped > > > But in the nagios.log file, these are interpreted as: > > EXTERNAL COMMAND: > PROCESS_SERVICE_CHECK_RESULT;emea-cns3;check-halo-service;2; Halo: Stopped > EXTERNAL COMMAND: > PROCESS_SERVICE_CHECK_RESULT;emea-cns3;check-halo-service;2; Halo: Stopped > EXTERNAL COMMAND: > PROCESS_SERVICE_CHECK_RESULT;emea-cns3;check-halo-service;2; Halo: Stopped Looks right to me. What is wrong with this? External commands are how NSCA communicates to Nagios. The concept of hard and soft is something the central server has to decide for itself. '2' in the externla command means CRITICAL. -Jason Martin -- Useless Invention: Ejector seats for helicopters. 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 Tue Jul 5 05:50:44 2005 From: amontibello at gmail.com (Anthony Montibello) Date: Mon, 4 Jul 2005 23:50:44 -0400 Subject: nsclient memory check? In-Reply-To: <00c101c5810e$18212dc0$01fea8c0@itss.auckland.ac.nz> References: <00c101c5810e$18212dc0$01fea8c0@itss.auckland.ac.nz> Message-ID: When I was making NC_Net I struggled briefly with this issue, and found that it is using: Performance counter category Memory: and counters: Commit Limit and Committed Bytes I hope this helps with your problem. Maybe you can try nsclient++ Good Luck TOny On 7/4/05, Steve Shipway wrote: > Can anyone confirm for me just exactly what is being checked by the NSClient > 'MEMUSE' check? (Currently using pNSclient v2.0.1) > > I always assumed that it represented the Total and Available virtual memory, > which was then used to calculate percentage. However, this no longer seems > to match observations. > > As far as I can tell it seems to be returning the page file available and > used space, which is a bit odd. It doesn't seem to match either physical or > virtual counts as reported by perfmon or sysinfo... sadly, I do not have > the source code or documentation for it, and there seem to be no more web > sites supporting this software since ready2run dropped it and ran :). > Upgrading to NCNet is not an option as we cannot install .Net on our > servers. > > Can anyone enlighten me? > > 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. ** > > > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 5 07:52:10 2005 From: Philipp.Sand at sycor.de (Sand Philipp) Date: Tue, 5 Jul 2005 07:52:10 +0200 Subject: AW: Perfdata invocation problem Message-ID: <6943DE9E9934CD42BBE4A20E0E28E10E01CC9BB2@SYGOMAIL.GOE.AD.SYCOR.DE> I had the same Problem with Nagios 2.0a1, but with b3 it just startet to work without Problems. Are you sure the nagios User can call the insert.pl? Is the logfile writable? Did you tried to execute the script manually? Have you turned on debug? Philipp > -----Urspr?ngliche Nachricht----- > Von: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] Im Auftrag von Holger (Woosh) > Gesendet: Montag, 4. Juli 2005 21:29 > An: nagios-users at lists.sourceforge.net > Betreff: [Nagios-users] Perfdata invocation problem > > Hi Nagios list, > > I am trying to integrate Nagiosgraph into Nagios to store perfdata in > RRD files, but for some unknown reason the nagiosgraph insert.pl script > never gets called (no entries in its log file). > > What I currently use is: > > Nagios 2.0.3b > Nagiosgraph 0.5 > > In nagios.conf I have activated perfdata processing like so: > > process_performance_data=1 > service_perfdata_command=process-service-perfdata > > Within my appropriate service I have activated perfdata processing: > > process_perf_data 1 > > And misccommands contains: > > define command { > > command_name process-service-perfdata > command_line /usr/local/nagios/nagiosgraph/insert.pl > "$LASTSERVICECHECK$ > ||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$" > } > > Any ideas what I am doing wrong? > > Many thanks in advance, > > Holger > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From holgilein at woosh.co.nz Tue Jul 5 09:01:07 2005 From: holgilein at woosh.co.nz (Holger (Woosh)) Date: Tue, 05 Jul 2005 19:01:07 +1200 Subject: Perfdata invocation problem In-Reply-To: <6943DE9E9934CD42BBE4A20E0E28E10E01CC9BB2@SYGOMAIL.GOE.AD.SYCOR.DE> References: <6943DE9E9934CD42BBE4A20E0E28E10E01CC9BB2@SYGOMAIL.GOE.AD.SYCOR.DE> Message-ID: <42CA3033.5060206@woosh.co.nz> Hi Philipp, First of all, thanks for your response. Much appreciated! > I had the same Problem with Nagios 2.0a1, but with b3 it just startet to work without Problems. > Are you sure the nagios User can call the insert.pl? > Is the logfile writable? > Did you tried to execute the script manually? > Have you turned on debug? Will check tomorrow (at work), since I just came home (we are 12h ahead of you... - New Zealand / Euro refugees from D ;-)). If you want to do me a favour you could have a look at your [working] configuration and let me know if I miss out something. Anyhow, have a smooth day! Servus, Holger PS: Played with passive checks today, as well (SNMPTT/SEC). Ran into "Service has not been scheduled yet", despite the fact that SEC's input goes into the nagios.cmd file and the external_* stuff in nagios.cfg is turned on. Any quick shots on that from your side, probably? :-) >>-----Urspr?ngliche Nachricht----- >>Von: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- >>admin at lists.sourceforge.net] Im Auftrag von Holger (Woosh) >>Gesendet: Montag, 4. Juli 2005 21:29 >>An: nagios-users at lists.sourceforge.net >>Betreff: [Nagios-users] Perfdata invocation problem >> >>Hi Nagios list, >> >>I am trying to integrate Nagiosgraph into Nagios to store perfdata in >>RRD files, but for some unknown reason the nagiosgraph insert.pl script >>never gets called (no entries in its log file). >> >>What I currently use is: >> >>Nagios 2.0.3b >>Nagiosgraph 0.5 >> >>In nagios.conf I have activated perfdata processing like so: >> >>process_performance_data=1 >>service_perfdata_command=process-service-perfdata >> >>Within my appropriate service I have activated perfdata processing: >> >>process_perf_data 1 >> >>And misccommands contains: >> >>define command { >> >> command_name process-service-perfdata >> command_line /usr/local/nagios/nagiosgraph/insert.pl >>"$LASTSERVICECHECK$ >>||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$" >> } >> >>Any ideas what I am doing wrong? >> >>Many thanks in advance, >> >>Holger >> >> >>------------------------------------------------------- >>SF.Net email is sponsored by: Discover Easy Linux Migration Strategies >>from IBM. Find simple to follow Roadmaps, straightforward articles, >>informative Webcasts and more! Get everything you need to get up to >>speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >>::: Please include Nagios version, plugin version (-v) and OS when >>reporting any issue. >>::: Messages without supporting info will risk being sent to /dev/null > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 5 12:44:50 2005 From: Philipp.Sand at sycor.de (Sand Philipp) Date: Tue, 5 Jul 2005 12:44:50 +0200 Subject: AW: Perfdata invocation problem Message-ID: <6943DE9E9934CD42BBE4A20E0E28E10E01CC9BE2@SYGOMAIL.GOE.AD.SYCOR.DE> > Hi Philipp, > > First of all, thanks for your response. Much appreciated! You're welcome :-) > > > I had the same Problem with Nagios 2.0a1, but with b3 it just startet to > work without Problems. > > Are you sure the nagios User can call the insert.pl? > > Is the logfile writable? > > Did you tried to execute the script manually? > > Have you turned on debug? > Will check tomorrow (at work), since I just came home (we are 12h > ahead of you... - New Zealand / Euro refugees from D ;-)). :-) I plan to visit New Zealand next year, but that don't belongs to this list I think ;-) > If you want to do me a favour you could have a look at your [working] > configuration and let me know if I miss out something. > Anyhow, have a smooth day! Your config appears to look ok as far as you posted it. Maybe you have to look at the path in the insert.pl (you have to config the path to your nagiosgraph.conf in the insert.pl and show.cgi! ) > PS: Played with passive checks today, as well (SNMPTT/SEC). Ran into > "Service has not been scheduled yet", despite the fact that SEC's > input goes into the nagios.cmd file and the external_* stuff in > nagios.cfg is turned on. Any quick shots on that from your side, > probably? :-) The "Service has not been scheduled yet" is ok, because the Nagios Server which receives the passive checks won't schedule them unless you configure the passive check + an active check. For SNMPTT you have to browse the list, there are pretty good posts for this in combination with windows eventlog checks in the list. Have a nice day! Philipp > > >>-----Urspr?ngliche Nachricht----- > >>Von: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > >>admin at lists.sourceforge.net] Im Auftrag von Holger (Woosh) > >>Gesendet: Montag, 4. Juli 2005 21:29 > >>An: nagios-users at lists.sourceforge.net > >>Betreff: [Nagios-users] Perfdata invocation problem > >> > >>Hi Nagios list, > >> > >>I am trying to integrate Nagiosgraph into Nagios to store perfdata in > >>RRD files, but for some unknown reason the nagiosgraph insert.pl script > >>never gets called (no entries in its log file). > >> > >>What I currently use is: > >> > >>Nagios 2.0.3b > >>Nagiosgraph 0.5 > >> > >>In nagios.conf I have activated perfdata processing like so: > >> > >>process_performance_data=1 > >>service_perfdata_command=process-service-perfdata > >> > >>Within my appropriate service I have activated perfdata processing: > >> > >>process_perf_data 1 > >> > >>And misccommands contains: > >> > >>define command { > >> > >> command_name process-service-perfdata > >> command_line /usr/local/nagios/nagiosgraph/insert.pl > >>"$LASTSERVICECHECK$ > >>||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$" > >> } > >> > >>Any ideas what I am doing wrong? > >> > >>Many thanks in advance, > >> > >>Holger > >> > >> > >>------------------------------------------------------- > >>SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > >>from IBM. Find simple to follow Roadmaps, straightforward articles, > >>informative Webcasts and more! Get everything you need to get up to > >>speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > >>_______________________________________________ > >>Nagios-users mailing list > >>Nagios-users at lists.sourceforge.net > >>https://lists.sourceforge.net/lists/listinfo/nagios-users > >>::: Please include Nagios version, plugin version (-v) and OS when > >>reporting any issue. > >>::: Messages without supporting info will risk being sent to /dev/null > > > > > > > > ------------------------------------------------------- > > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > > from IBM. Find simple to follow Roadmaps, straightforward articles, > > informative Webcasts and more! Get everything you need to get up to > > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From andre.bergei at ementor.no Tue Jul 5 14:09:05 2005 From: andre.bergei at ementor.no (Andre Bergei) Date: Tue, 5 Jul 2005 14:09:05 +0200 Subject: avail.cgi incorrect statistics Message-ID: <447B76ECA7A8ED45B831D4D419A7AE560D75C1@100NOOSLMSG004.common.alpharoot.net> > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf > Of Chris Wilson > Sent: Monday, July 04, 2005 8:09 PM > To: Nagios Users > Subject: [Nagios-users] avail.cgi incorrect statistics > > Hi all, > > I'm concerned about the accuracy of the statistics reported > by avail.cgi, compared to the actual log contents and the > history.cgi report. Hi Seems like you run the cgi with "assume initial states" and "assume state Retention" flags on. If these options dont corrulate with your options in nagios.cfg, you'll might get wrong Results, i've seen this a couple times with the 1.2 cgi's at least. Check your nagios.cfg, and run avail.cfg with correct flags if the options differ. Best /andr? ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Tue Jul 5 14:20:11 2005 From: chris at aidworld.org (Chris Wilson) Date: Tue, 05 Jul 2005 13:20:11 +0100 Subject: avail.cgi incorrect statistics In-Reply-To: <447B76ECA7A8ED45B831D4D419A7AE560D75C1@100NOOSLMSG004.common.alpharoot.net> References: <447B76ECA7A8ED45B831D4D419A7AE560D75C1@100NOOSLMSG004.common.alpharoot.net> Message-ID: <1120566011.3674.43.camel@localhost> Hi Andre, Thanks for replying! > Seems like you run the cgi with "assume initial states" and "assume state > Retention" flags on. > > If these options dont corrulate with your options in nagios.cfg, you'll might get wrong > Results, i've seen this a couple times with the 1.2 cgi's at least. > > Check your nagios.cfg, and run avail.cfg with correct flags if the options differ. In nagios.cfg I have: log_initial_states=1 retain_state_information=1 Does that correlate with both options being turned on in avail.cgi, or am I looking in the wrong place? Cheers, Chris. -- (aidworld) chris wilson | chief engineer (chris at aidworld.org) ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From andre.bergei at ementor.no Tue Jul 5 14:57:40 2005 From: andre.bergei at ementor.no (Andre Bergei) Date: Tue, 5 Jul 2005 14:57:40 +0200 Subject: avail.cgi incorrect statistics Message-ID: <447B76ECA7A8ED45B831D4D419A7AE560D75C2@100NOOSLMSG004.common.alpharoot.net> > In nagios.cfg I have: > > log_initial_states=1 > retain_state_information=1 > > Does that correlate with both options being turned on in > avail.cgi, or am I looking in the wrong place? > That's them yes. Your options is correct, seems like there is something fishy going on. The avail.cgi don't need the "log_initial_states" option, it's mainly Used for external reporting. In order to pin this problem down, you might wanna try to run the avail.cgi with the "assume initial states" flag Turned off, and see if you get a different result. Also, try the latest cvs version of the avail.cgi, who knows Maybe the issue is allready resolved. /andr? ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 5 15:03:27 2005 From: Philipp.Sand at sycor.de (Sand Philipp) Date: Tue, 5 Jul 2005 15:03:27 +0200 Subject: Nagiosgrap MAP File for known Plugins Message-ID: <6943DE9E9934CD42BBE4A20E0E28E10E01CC9BF8@SYGOMAIL.GOE.AD.SYCOR.DE> Hello, I just startet with nagiosgraph, after having some Problems with Nagios 2.0a1 and Nagiosgraph, it's working fine now with Nagios 2.0b3. Now I wonder if there exists some kind of "global Map File" for all known Plugins. I suppose that some of you already did a map File entry for let's say all check_nt stuff, or check_icmp, I've already seen those topics in the list. But to be honest, wouldn't it be better to put those entries for all standard Plugins into one map file you could download, and then provide this map file on the sourceforge Page, or direct with the nagiosgraph download? This would make installing a lot easier and would save a lot of time. If there already exists such a map file: Pleeaaase give it to me :) I'm pretty lazy and don't want to search the list for all the stuff one by one :) Regards, Philipp Sand _____________________________ Philipp Sand OC-CC-TEC-SYS SYCOR GmbH Heinrich-von-Stephan-Stra?e 1-5 D - 37073 G?ttingen Telefon +49 (0) 551 - 490 - 0 Telefax +49 (0) 551 - 490 - 232468 philipp.sand at sycor.de www.sycor.de ------------------------------------------------ ? ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Tue Jul 5 15:12:32 2005 From: ae at op5.se (Andreas Ericsson) Date: Tue, 05 Jul 2005 15:12:32 +0200 Subject: Nagiosgrap MAP File for known Plugins In-Reply-To: <6943DE9E9934CD42BBE4A20E0E28E10E01CC9BF8@SYGOMAIL.GOE.AD.SYCOR.DE> References: <6943DE9E9934CD42BBE4A20E0E28E10E01CC9BF8@SYGOMAIL.GOE.AD.SYCOR.DE> Message-ID: <42CA8740.2050107@op5.se> Sand Philipp wrote: > Hello, > > I just startet with nagiosgraph, after having some Problems with > Nagios 2.0a1 and Nagiosgraph, it's working fine now with Nagios > 2.0b3. > > Now I wonder if there exists some kind of "global Map File" for all > known Plugins. I suppose that some of you already did a map File > entry for let's say all check_nt stuff, or check_icmp, I've already > seen those topics in the list. But to be honest, wouldn't it be > better to put those entries for all standard Plugins into one map > file you could download, and then provide this map file on the > sourceforge Page, or direct with the nagiosgraph download? This would > make installing a lot easier and would save a lot of time. > > If there already exists such a map file: Pleeaaase give it to me :) > I'm pretty lazy and don't want to search the list for all the stuff > one by one :) > By the sound of it, nagiosgraph is superceded by perfparse, which lets plugins write graphable output in a standardized way. I know perfparse has a sourceforge page. Perhaps you should look into it? -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 5 15:39:22 2005 From: Philipp.Sand at sycor.de (Sand Philipp) Date: Tue, 5 Jul 2005 15:39:22 +0200 Subject: AW: Nagiosgrap MAP File for known Plugins Message-ID: <6943DE9E9934CD42BBE4A20E0E28E10E01CC9BFC@SYGOMAIL.GOE.AD.SYCOR.DE> > Sand Philipp wrote: > > Hello, > > > > I just startet with nagiosgraph, after having some Problems with > > Nagios 2.0a1 and Nagiosgraph, it's working fine now with Nagios > > 2.0b3. > > > > Now I wonder if there exists some kind of "global Map File" for all > > known Plugins. I suppose that some of you already did a map File > > entry for let's say all check_nt stuff, or check_icmp, I've already > > seen those topics in the list. But to be honest, wouldn't it be > > better to put those entries for all standard Plugins into one map > > file you could download, and then provide this map file on the > > sourceforge Page, or direct with the nagiosgraph download? This would > > make installing a lot easier and would save a lot of time. > > If there already exists such a map file: Pleeaaase give it to me :) > > I'm pretty lazy and don't want to search the list for all the stuff > > one by one :) > By the sound of it, nagiosgraph is superceded by perfparse, which lets > plugins write graphable output in a standardized way. No, nagiosgraph and perfparse are two totally different Types of Programs to generate graphs. In fact, nagiosgraph uses rrd files and uses a perl script to push the plugin output into those rrd files, and perfparse uses a mysql db and some other ways to handle the data. > I know perfparse has a sourceforge page. Perhaps you should look into it? I know perfparse, too. My Perfparse DB has just grown to 40GB, so I decided to have a look at some other tools on the "marked" which may waste a little bit less hdd space :) Regards, Philipp ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Tue Jul 5 15:40:15 2005 From: JoeRegular at gov.nl.ca (Joe Regular) Date: Tue, 05 Jul 2005 11:10:15 -0230 Subject: nagios.cmd Permissions and External Commands Message-ID: I seem to have run into a problem with Nagios to which I hope there is a simple solution. From what I can tell, I have followed the setup instructions correctly and Nagios appears to be working with the exception of external commands. When I try to schedule host downtime, I get the "Sorry, but you are not authorized to commit the specified command." error message. I've since read the "authentication and authorization in the CGIs" section of the manual and the "External Command File Permissions" file but it's still isn't working. Can anyone offer any advice into a solution to this problem? Jason ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Tue Jul 5 16:05:21 2005 From: chris at aidworld.org (Chris Wilson) Date: Tue, 05 Jul 2005 15:05:21 +0100 Subject: avail.cgi incorrect statistics In-Reply-To: <1120500543.25695.6.camel@localhost> References: <1120500543.25695.6.camel@localhost> Message-ID: <1120572321.3674.115.camel@localhost> Hi all, > The report from avail.cgi shows an 18 hour downtime period, from > 30-06-2005 16:00:53 to 01-07-2005 10:33:21: SERVICE CRITICAL > (Network is unreachable). > > However, the history shows that the downtime was only 12 minutes: On further investigation, it seems that the service came back up in a SOFT state, and never transitioned to a HARD state until Nagios was restarted. I assume that was the reason that avail.cgi reported it as still being down. Can anyone think of a reason why Nagios might not change a service from SOFT to HARD state? There are no events logged for that service between the transition to SOFT OK, and the nagios restart. Just after restart, I saw the following: [Fri Jul 1 10:35:21 2005] Warning: The results of service 'filter www.google.co.uk' on host 'virt2.loband.org' are stale by 45 seconds (threshold=75 seconds). I'm forcing an immediate check of the service. and then a transition to HARD OK state. Cheers, Chris. -- (aidworld) chris wilson | chief engineer (chris at aidworld.org) ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kevin.hart at centerstone.org Tue Jul 5 16:06:07 2005 From: kevin.hart at centerstone.org (Kevin Hart) Date: Tue, 05 Jul 2005 09:06:07 -0500 Subject: nagios.cmd Permissions and External Commands Message-ID: Make sure your rw directory and the nagios.cmd file have read write permissions on them. When I changed the permissions on that directory and that file it started working, almost magicly :) -Kevin >>>Joe Regular 07/05 8:40 am >>> I seem to have run into a problem with Nagios to which I hope there is a simple solution. From what I can tell, I have followed the setup instructions correctly and Nagios appears to be working with the exception of external commands. When I try to schedule host downtime, I get the Sorry, but you are not authorized to commit the specified command. error message. I've since read the authentication and authorization in the CGIs section of the manual and the External Command File Permissions file but it's still isn't working. Can anyone offer any advice into a solution to this problem? Jason ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ******************************************************* This message is confidential, intended only for the named recipient[s] and may contain information that is private under applicable law. If you are not an intended recipient, be aware that any disclosure, copying, distribution or use of this message is prohibited.************************** <<<>>> -------------- next part -------------- An HTML attachment was scrubbed... URL: From JoeRegular at gov.nl.ca Tue Jul 5 16:56:00 2005 From: JoeRegular at gov.nl.ca (Joe Regular) Date: Tue, 05 Jul 2005 12:26:00 -0230 Subject: nagios.cmd Permissions and External Commands Message-ID: Permissions are set as follows: drwxrwxr-x 4 nagios nagios 288 Jul 5 11:55 var drwxrwsr-x 2 nagios nagioscmd 80 Jul 5 10:11 rw prw-rw---- 1 nagios nagioscmd 0 Jul 5 10:11 nagios.cmd Does this look correct, or should the ~/var directory be "drwxrwxr-x 4 nagios nagioscmd 288 Jul 5 11:55 var"? Jason >>> "Kevin Hart" 2005-07-05 11:36 AM >>> Make sure your rw directory and the nagios.cmd file have read write permissions on them. When I changed the permissions on that directory and that file it started working, almost magicly :) -Kevin >>>Joe Regular 07/05 8:40 am >>> I seem to have run into a problem with Nagios to which I hope there is a simple solution. From what I can tell, I have followed the setup instructions correctly and Nagios appears to be working with the exception of external commands. When I try to schedule host downtime, I get the Sorry, but you are not authorized to commit the specified command. error message. I've since read the authentication and authorization in the CGIs section of the manual and the External Command File Permissions file but it's still isn't working. Can anyone offer any advice into a solution to this problem? Jason ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ******************************************************* This message is confidential, intended only for the named recipient[s] and may contain information that is private under applicable law. If you are not an intended recipient, be aware that any disclosure, copying, distribution or use of this message is prohibited.************************** <<<>>> ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sekuela at gmail.com Tue Jul 5 17:02:20 2005 From: sekuela at gmail.com (Daniel Szortyka) Date: Tue, 5 Jul 2005 12:02:20 -0300 Subject: nagios.cmd Permissions and External Commands In-Reply-To: References: Message-ID: <806f904f050705080213afe43b@mail.gmail.com> Hi, First you have to look your cgi.cfg and verify the users that have permission to acess this files. After you have to set the nagios.cmd with apache:nagios (or nagios:apache) I dont remember... But first try to change the nagios.cmd permissions, if the error continue verify your cgi.cfg Try this... Daniel On 7/5/05, Joe Regular wrote: > Permissions are set as follows: > drwxrwxr-x 4 nagios nagios 288 Jul 5 11:55 var > drwxrwsr-x 2 nagios nagioscmd 80 Jul 5 10:11 rw > prw-rw---- 1 nagios nagioscmd 0 Jul 5 10:11 nagios.cmd > > Does this look correct, or should the ~/var directory be "drwxrwxr-x 4 nagios nagioscmd 288 Jul 5 11:55 var"? > > Jason > > > >>> "Kevin Hart" 2005-07-05 11:36 AM >>> > Make sure your rw directory and the nagios.cmd file have read write > permissions on them. When I changed the permissions on that directory > and that file it started working, almost magicly :) > > -Kevin > > >>>Joe Regular 07/05 8:40 am >>> > > I seem to have run into a problem with Nagios to which I hope there is a > simple solution. From what I can tell, I have followed the setup > instructions correctly and Nagios appears to be working with the > exception of external commands. > > > When I try to schedule host downtime, I get the Sorry, but you are not > authorized to commit the specified command. error message. I've since > read the authentication and authorization in the CGIs section of the > manual and the External Command File Permissions file but it's still > isn't working. > > > Can anyone offer any advice into a solution to this problem? > > > Jason > > > > > ------------------------------------------------------- > > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > > from IBM. Find simple to follow Roadmaps, straightforward articles, > > informative Webcasts and more! Get everything you need to get up to > > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click > > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > ******************************************************* > This message is confidential, intended only for the named > recipient[s] and may contain information that is private > under applicable law. If you are not an intended recipient, > be aware that any disclosure, copying, distribution or use > of this message is prohibited.************************** > <<<>>> > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&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.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sekuela at gmail.com Tue Jul 5 17:04:15 2005 From: sekuela at gmail.com (Daniel Szortyka) Date: Tue, 5 Jul 2005 12:04:15 -0300 Subject: nagios.cmd Permissions and External Commands In-Reply-To: <806f904f050705080213afe43b@mail.gmail.com> References: <806f904f050705080213afe43b@mail.gmail.com> Message-ID: <806f904f0507050804199860e7@mail.gmail.com> Hi, Excuse me , but dont need to change nagios.cmd permissions. Sorry :( Daniel On 7/5/05, Daniel Szortyka wrote: > Hi, > > First you have to look your cgi.cfg and verify the users that have > permission to acess this files. > > After you have to set the nagios.cmd with apache:nagios (or > nagios:apache) I dont remember... > > But first try to change the nagios.cmd permissions, if the error > continue verify your cgi.cfg > > Try this... > > Daniel > > On 7/5/05, Joe Regular wrote: > > Permissions are set as follows: > > drwxrwxr-x 4 nagios nagios 288 Jul 5 11:55 var > > drwxrwsr-x 2 nagios nagioscmd 80 Jul 5 10:11 rw > > prw-rw---- 1 nagios nagioscmd 0 Jul 5 10:11 nagios.cmd > > > > Does this look correct, or should the ~/var directory be "drwxrwxr-x 4 nagios nagioscmd 288 Jul 5 11:55 var"? > > > > Jason > > > > > > >>> "Kevin Hart" 2005-07-05 11:36 AM >>> > > Make sure your rw directory and the nagios.cmd file have read write > > permissions on them. When I changed the permissions on that directory > > and that file it started working, almost magicly :) > > > > -Kevin > > > > >>>Joe Regular 07/05 8:40 am >>> > > > > I seem to have run into a problem with Nagios to which I hope there is a > > simple solution. From what I can tell, I have followed the setup > > instructions correctly and Nagios appears to be working with the > > exception of external commands. > > > > > > When I try to schedule host downtime, I get the Sorry, but you are not > > authorized to commit the specified command. error message. I've since > > read the authentication and authorization in the CGIs section of the > > manual and the External Command File Permissions file but it's still > > isn't working. > > > > > > Can anyone offer any advice into a solution to this problem? > > > > > > Jason > > > > > > > > > > ------------------------------------------------------- > > > > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > > > > from IBM. Find simple to follow Roadmaps, straightforward articles, > > > > informative Webcasts and more! Get everything you need to get up to > > > > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click > > > > > > Nagios-users mailing list > > > > Nagios-users at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > ::: Please include Nagios version, plugin version (-v) and OS when > > reporting any issue. > > > > ::: Messages without supporting info will risk being sent to /dev/null > > > > ******************************************************* > > This message is confidential, intended only for the named > > recipient[s] and may contain information that is private > > under applicable law. If you are not an intended recipient, > > be aware that any disclosure, copying, distribution or use > > of this message is prohibited.************************** > > <<<>>> > > > > > > > > ------------------------------------------------------- > > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > > from IBM. Find simple to follow Roadmaps, straightforward articles, > > informative Webcasts and more! Get everything you need to get up to > > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&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.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jqualkenbush at iso-ne.com Tue Jul 5 17:10:36 2005 From: jqualkenbush at iso-ne.com (Jason Qualkenbush) Date: Tue, 05 Jul 2005 11:10:36 -0400 Subject: nagios.cmd Permissions and External Commands In-Reply-To: References: Message-ID: <42CAA2EC.3040506@iso-ne.com> Joe Regular wrote: > Permissions are set as follows: > drwxrwxr-x 4 nagios nagios 288 Jul 5 11:55 var > drwxrwsr-x 2 nagios nagioscmd 80 Jul 5 10:11 rw > prw-rw---- 1 nagios nagioscmd 0 Jul 5 10:11 nagios.cmd > > Does this look correct, or should the ~/var directory be "drwxrwxr-x 4 nagios nagioscmd 288 Jul 5 11:55 var"? This brings up a question for me. On the 'rw' directory, I always just made the owner apache:apache. If I issue a command via the web page, the file that gets created is going to be written by apache, not nagios. This says to do it a different way http://nagios.sourceforge.net/docs/2_0/commandfile.html Would I run into problems keeping the web server and nagios seperate? Nagios isn't the only website running so I figured it's better to keep the two seperate. -- -JasonQ- ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jqualkenbush at iso-ne.com Tue Jul 5 17:17:02 2005 From: jqualkenbush at iso-ne.com (Jason Qualkenbush) Date: Tue, 05 Jul 2005 11:17:02 -0400 Subject: nagios.cmd Permissions and External Commands In-Reply-To: <42CAA2EC.3040506@iso-ne.com> References: <42CAA2EC.3040506@iso-ne.com> Message-ID: <42CAA46E.8060401@iso-ne.com> Jason Qualkenbush wrote: > Would I run into problems keeping the web server and nagios seperate? > Nagios isn't the only website running so I figured it's better to keep > the two seperate. > Doh. Sometimes I need to slow down and re-read a couple of times. All the documentation is saying is make sure apache and nagios are in the same group. I misunderstood the docs. -- -JasonQ- ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dons at somanetworks.com Tue Jul 5 17:23:10 2005 From: dons at somanetworks.com (Don Shesnicky) Date: Tue, 05 Jul 2005 11:23:10 -0400 Subject: telnetd check throwing ttloop errors into syslog Message-ID: <1120576990.27211.45.camel@dynamic-232.yow.somanetworks.com> Our syslog checker is picking up errors from the check_telnet: telnetd: [ID 485252 daemon.info] ttloop: peer died: Invalid argument Is there a way to turn these off, perhaps by cleanly exiting? I checked the archives but didn't see anything relevant. Nagios is running on a Fedora Core3 host and probing Solaris 8 clients. Don ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mcunietti at enter.it Tue Jul 5 17:29:11 2005 From: mcunietti at enter.it (Mariano Cunietti) Date: Tue, 05 Jul 2005 17:29:11 +0200 Subject: passive checks AGAIN Message-ID: <1120577351.6099.158.camel@bytecode.enter.it> Hello everybody, I'm getting crazy to get passive checks to work on Nagios 1.2. I've set up everything so that snmp traps sent from Cisco ATM router write correctly to nagios.cmd. I've set up a service to handle more Virtual lines, and to declare which VRF virtual line is going up or down, using the text space in the nagios.cmd line. Here's nagios.cmd: [1120576366] PROCESS_SERVICE_CHECK_RESULT;atm1-mi;MPLS-VRF;0;milko Yet, I was forced by Nagios to set up also a dummy active check (check_dummy), otherwise it would refuse to startup. services.cfg define service { use generic-service name passive-service is_volatile 1 passive_checks_enabled 1 max_check_attempts 10 normal_check_interval 1 retry_check_interval 1 notification_interval 60 ; 2h active_checks_enabled 0 notification_period 24x7 notification_options c,r check_command check_dummy!3 check_period 24x7 check_freshness 1 register 0 } define service{ use passive-service host_name atm1-mi service_description MPLS-VRF contact_groups admins-SMS } checkcommands.cfg: define command{ command_name check_dummy command_line $USER1$/check_dummy $ARG1$ } Now, the BIG problem is that Nagios parses nagios.cmd, but the status reported is the one set in check_command statement, and not the one reported in nagios.cmd. So I always get all lines in UNKNOWN(=exit status 3) state. Any hint? Please help Regards, Mariano -- ------------------------- Mariano Cunietti System Administrator Enter S.r.l. Via Stefanardo da Vimercate, 28 20128 - Milano - Italy Tel. +39 02 25514319 Fax +39 02 25514303 mcunietti at enter.it www.enter.it - www.enterpoint.it --------------------------- Gruppo Y2K - www.gruppoy2k.it ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Tue Jul 5 17:51:52 2005 From: JoeRegular at gov.nl.ca (Joe Regular) Date: Tue, 05 Jul 2005 13:21:52 -0230 Subject: nagios.cmd Permissions and External Commands Message-ID: I've already edited my cgi.cfg file so that nagiosadmin has authorization. The nagiosadmin account is the account used to log into the website and is listed only in the htpasswd.users file. My Apache2 is running as nobody and has been made a member of the nagioscmd group. The nagioscmd group in turn has rw permissions to the nagios.cmd file. Should the nagiosadmin account be an actual user account as being listed in the /etc/passwd file or is this just a virtual account listed in the ~/nagios/etc/htpasswd.user file? cgi.cfg authorized_for_system_information=nagiosadmin authorized_for_configuration_information=nagiosadmin authorized_for_system_commands=nagiosadmin authorized_for_all_services=nagiosadmin authorized_for_all_hosts=nagiosadmin authorized_for_all_service_commands=nagiosadmin authorized_for_all_host_commands=nagiosadmin use_authentication=1 Jason >>> Daniel Szortyka 2005-07-05 12:34:15 PM >>> Hi, Excuse me , but dont need to change nagios.cmd permissions. Sorry :( Daniel On 7/5/05, Daniel Szortyka wrote: > Hi, > > First you have to look your cgi.cfg and verify the users that have > permission to acess this files. > > After you have to set the nagios.cmd with apache:nagios (or > nagios:apache) I dont remember... > > But first try to change the nagios.cmd permissions, if the error > continue verify your cgi.cfg > > Try this... > > Daniel > > On 7/5/05, Joe Regular wrote: > > Permissions are set as follows: > > drwxrwxr-x 4 nagios nagios 288 Jul 5 11:55 var > > drwxrwsr-x 2 nagios nagioscmd 80 Jul 5 10:11 rw > > prw-rw---- 1 nagios nagioscmd 0 Jul 5 10:11 nagios.cmd > > > > Does this look correct, or should the ~/var directory be "drwxrwxr-x 4 nagios nagioscmd 288 Jul 5 11:55 var"? > > > > Jason > > > > > > >>> "Kevin Hart" 2005-07-05 11:36 AM >>> > > Make sure your rw directory and the nagios.cmd file have read write > > permissions on them. When I changed the permissions on that directory > > and that file it started working, almost magicly :) > > > > -Kevin > > > > >>>Joe Regular 07/05 8:40 am >>> > > > > I seem to have run into a problem with Nagios to which I hope there is a > > simple solution. From what I can tell, I have followed the setup > > instructions correctly and Nagios appears to be working with the > > exception of external commands. > > > > > > When I try to schedule host downtime, I get the Sorry, but you are not > > authorized to commit the specified command. error message. I've since > > read the authentication and authorization in the CGIs section of the > > manual and the External Command File Permissions file but it's still > > isn't working. > > > > > > Can anyone offer any advice into a solution to this problem? > > > > > > Jason > > > > > > > > > > ------------------------------------------------------- > > > > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > > > > from IBM. Find simple to follow Roadmaps, straightforward articles, > > > > informative Webcasts and more! Get everything you need to get up to > > > > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click > > > > > > Nagios-users mailing list > > > > Nagios-users at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > ::: Please include Nagios version, plugin version (-v) and OS when > > reporting any issue. > > > > ::: Messages without supporting info will risk being sent to /dev/null > > > > ******************************************************* > > This message is confidential, intended only for the named > > recipient[s] and may contain information that is private > > under applicable law. If you are not an intended recipient, > > be aware that any disclosure, copying, distribution or use > > of this message is prohibited.************************** > > <<<>>> > > > > > > > > ------------------------------------------------------- > > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > > from IBM. Find simple to follow Roadmaps, straightforward articles, > > informative Webcasts and more! Get everything you need to get up to > > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&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.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kex604 at gmail.com Tue Jul 5 19:04:17 2005 From: kex604 at gmail.com (Fred Reinthaler) Date: Tue, 5 Jul 2005 13:04:17 -0400 Subject: check_jabber problem Message-ID: <541c888d050705100453524b2a@mail.gmail.com> Hi, I am getting weird behaviour with the check_jabber plugin. If I try to do a check: nagios:/usr/lib/nagios/plugins# ./check_jabber -H 172.16.230.234 -p 5222 I get: " CRITICAL - Cannot make SSL connection 15582:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:s23_clnt.c:478: " Jabber runs on port 5222 and is not using SSL and as you can see I am not even specifying the -S flag for SSL. This is the wierd part: nagios:/usr/lib/nagios/plugins# ls -l check_jabber lrwxrwxrwx 1 root root 9 Jun 24 13:13 check_jabber -> check_tcp nagios:/usr/lib/nagios/plugins# ./check_tcp -H 172.16.230.234 -p 5222 TCP OK - 0.001 second response time on port 5222 |time=0.000526s;0.000000;0.000000;0.000000;10.000000 Can anyone enlighten me on why check_jabber is soft-linked to check_tcp but they both return a different result? thanks, fred ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sekuela at gmail.com Tue Jul 5 19:26:03 2005 From: sekuela at gmail.com (Daniel Szortyka) Date: Tue, 5 Jul 2005 14:26:03 -0300 Subject: nagios.cmd Permissions and External Commands In-Reply-To: References: Message-ID: <806f904f05070510263f415cc9@mail.gmail.com> Hey Man... I'm was right when I say... I tried at this moment... Change the nagios.cmd permissions... my apache run as apache user... so my ls -la is: prw-rw---- 1 nagios apache 0 Jul 5 15:27 nagios.cmd Change this and return the result to us!!! Regards, Daniel Szortyka aka sekuela :-) On 7/5/05, Joe Regular wrote: > I've already edited my cgi.cfg file so that nagiosadmin has authorization. The nagiosadmin account is the account used to log into the website and is listed only in the htpasswd.users file. My Apache2 is running as nobody and has been made a member of the nagioscmd group. The nagioscmd group in turn has rw permissions to the nagios.cmd file. Should the nagiosadmin account be an actual user account as being listed in the /etc/passwd file or is this just a virtual account listed in the ~/nagios/etc/htpasswd.user file? > > cgi.cfg > authorized_for_system_information=nagiosadmin > authorized_for_configuration_information=nagiosadmin > authorized_for_system_commands=nagiosadmin > authorized_for_all_services=nagiosadmin > authorized_for_all_hosts=nagiosadmin > authorized_for_all_service_commands=nagiosadmin > authorized_for_all_host_commands=nagiosadmin > use_authentication=1 > > Jason > > >>> Daniel Szortyka 2005-07-05 12:34:15 PM >>> > Hi, > > Excuse me , but dont need to change nagios.cmd permissions. Sorry :( > > Daniel > > On 7/5/05, Daniel Szortyka wrote: > > Hi, > > > > First you have to look your cgi.cfg and verify the users that have > > permission to acess this files. > > > > After you have to set the nagios.cmd with apache:nagios (or > > nagios:apache) I dont remember... > > > > But first try to change the nagios.cmd permissions, if the error > > continue verify your cgi.cfg > > > > Try this... > > > > Daniel > > > > On 7/5/05, Joe Regular wrote: > > > Permissions are set as follows: > > > drwxrwxr-x 4 nagios nagios 288 Jul 5 11:55 var > > > drwxrwsr-x 2 nagios nagioscmd 80 Jul 5 10:11 rw > > > prw-rw---- 1 nagios nagioscmd 0 Jul 5 10:11 nagios.cmd > > > > > > Does this look correct, or should the ~/var directory be "drwxrwxr-x 4 nagios nagioscmd 288 Jul 5 11:55 var"? > > > > > > Jason > > > > > > > > > >>> "Kevin Hart" 2005-07-05 11:36 AM >>> > > > Make sure your rw directory and the nagios.cmd file have read write > > > permissions on them. When I changed the permissions on that directory > > > and that file it started working, almost magicly :) > > > > > > -Kevin > > > > > > >>>Joe Regular 07/05 8:40 am >>> > > > > > > I seem to have run into a problem with Nagios to which I hope there is a > > > simple solution. From what I can tell, I have followed the setup > > > instructions correctly and Nagios appears to be working with the > > > exception of external commands. > > > > > > > > > When I try to schedule host downtime, I get the Sorry, but you are not > > > authorized to commit the specified command. error message. I've since > > > read the authentication and authorization in the CGIs section of the > > > manual and the External Command File Permissions file but it's still > > > isn't working. > > > > > > > > > Can anyone offer any advice into a solution to this problem? > > > > > > > > > Jason > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > > > > > > from IBM. Find simple to follow Roadmaps, straightforward articles, > > > > > > informative Webcasts and more! Get everything you need to get up to > > > > > > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click > > > > > > > > > Nagios-users mailing list > > > > > > Nagios-users at lists.sourceforge.net > > > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > ::: Please include Nagios version, plugin version (-v) and OS when > > > reporting any issue. > > > > > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > > ******************************************************* > > > This message is confidential, intended only for the named > > > recipient[s] and may contain information that is private > > > under applicable law. If you are not an intended recipient, > > > be aware that any disclosure, copying, distribution or use > > > of this message is prohibited.************************** > > > <<<>>> > > > > > > > > > > > > ------------------------------------------------------- > > > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > > > from IBM. Find simple to follow Roadmaps, straightforward articles, > > > informative Webcasts and more! Get everything you need to get up to > > > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&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.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&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.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Tue Jul 5 19:30:49 2005 From: JoeRegular at gov.nl.ca (Joe Regular) Date: Tue, 05 Jul 2005 15:00:49 -0230 Subject: nagios.cmd Permissions and External Commands - Problem Solved Message-ID: Thanks to everyone who offered advise. The problem is/was, that while I might have followed the instructions correctly, the instructions were not correct. When creating the nagioscmd group I added nagios and nobody just like the instructions stated. In my setup however, apache is running as wwwrun not nobody. Once I modified the group to add wwwrun, the external commands begain to work. Thanks for all the suggestions. Jason ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rsantiago at rcm.upr.edu Tue Jul 5 20:00:13 2005 From: rsantiago at rcm.upr.edu (Richard Santiago) Date: Tue, 5 Jul 2005 14:00:13 -0400 Subject: check_ldap plugin? Message-ID: Hi, For some reason, my check_ldap plugin doesn't compile from the Official Nagios Plugins 1.4 tarball. All I get is a symbolic link to check_ldaps but the target file is not present. Can somebody point me to the check_ldap plugin for Slackware 10.1 or at least tell me how to correctly compile it because all I have is the check_ldap.c file but not the object file. Thanks. Richard Santiago rsantiago at rcm.upr.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc at ena.com Tue Jul 5 19:57:18 2005 From: marc at ena.com (Marc Powell) Date: Tue, 5 Jul 2005 12:57:18 -0500 Subject: passive checks AGAIN Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Mariano Cunietti > Sent: Tuesday, July 05, 2005 10:29 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] passive checks AGAIN > > Hello everybody, > I'm getting crazy to get passive checks to work on Nagios 1.2. > I've set up everything so that snmp traps sent from Cisco ATM router > write correctly to nagios.cmd. > I've set up a service to handle more Virtual lines, and to declare which > VRF virtual line is going up or down, using the text space in the > nagios.cmd line. > > Here's nagios.cmd: > > [1120576366] PROCESS_SERVICE_CHECK_RESULT;atm1-mi;MPLS-VRF;0;milko > > Yet, I was forced by Nagios to set up also a dummy active check > (check_dummy), otherwise it would refuse to startup. > > services.cfg > > define service { > use generic-service > name passive-service > is_volatile 1 > passive_checks_enabled 1 > max_check_attempts 10 > normal_check_interval 1 > retry_check_interval 1 > notification_interval 60 ; 2h > active_checks_enabled 0 > notification_period 24x7 > notification_options c,r > check_command check_dummy!3 > check_period 24x7 > check_freshness 1 > register 0 > } > > define service{ > use passive-service > host_name atm1-mi > service_description MPLS-VRF > contact_groups admins-SMS > } > > checkcommands.cfg: > > define command{ > command_name check_dummy > command_line $USER1$/check_dummy $ARG1$ > } > > Now, the BIG problem is that Nagios parses nagios.cmd, but the status > reported is the one set in check_command statement, and not the one > reported in nagios.cmd. So I always get all lines in UNKNOWN(=exit > status 3) state. > > Any hint? Please help Do you have retention enabled? If so, read the Retention Notes at http://nagios.sourceforge.net/docs/1_0/xodtemplate.html. Does the Scheduling Queue show a valid Next Check time for this service? It should show 'N/A'. A valid time would indicate a retention problem. You also have freshness checking enabled but didn't specify your freshness_check_interval from nagios.cfg. If your freshness_check_interval is <= 60 seconds you'd probably see the results above. I'd try disabling freshness checking on this service to see if that helps resolve the problem. More information on how freshness checking works can be found at http://nagios.sourceforge.net/docs/1_0/freshness.html -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Tue Jul 5 20:03:54 2005 From: marc at ena.com (Marc Powell) Date: Tue, 5 Jul 2005 13:03:54 -0500 Subject: check_ldap plugin? Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Richard Santiago > Sent: Tuesday, July 05, 2005 1:00 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] check_ldap plugin? > > Hi, > > > > For some reason, my check_ldap plugin doesn't compile from the Official > Nagios Plugins 1.4 tarball. All I get is a symbolic link to check_ldaps > but the target file is not present. > > > > Can somebody point me to the check_ldap plugin for Slackware 10.1 or at > least tell me how to correctly compile it because all I have is the > check_ldap.c file but not the object file. >From the REQUIREMENTS file -- check_ldap: - Requires the LDAP libraries available from http://www.openldap.org Lib: libldap, liblber Redhat Source: openldap-1.2.9-6.i386.rpm, openldap-devel-1.2.9-6.i386.rpm -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Tue Jul 5 20:17:55 2005 From: marc at ena.com (Marc Powell) Date: Tue, 5 Jul 2005 13:17:55 -0500 Subject: check_jabber problem Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Fred Reinthaler > Sent: Tuesday, July 05, 2005 12:04 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] check_jabber problem > > Hi, > > I am getting weird behaviour with the check_jabber plugin. If I try > to do a check: > > nagios:/usr/lib/nagios/plugins# ./check_jabber -H 172.16.230.234 -p 5222 > > I get: > > " > CRITICAL - Cannot make SSL connection 15582:error:140770FC:SSL > routines:SSL23_GET_SERVER_HELLO:unknown protocol:s23_clnt.c:478: > " > > Jabber runs on port 5222 and is not using SSL and as you can see I am > not even specifying the -S flag for SSL. > > This is the wierd part: > > nagios:/usr/lib/nagios/plugins# ls -l check_jabber > lrwxrwxrwx 1 root root 9 Jun 24 13:13 check_jabber -> check_tcp > > nagios:/usr/lib/nagios/plugins# ./check_tcp -H 172.16.230.234 -p 5222 > TCP OK - 0.001 second response time on port 5222 > |time=0.000526s;0.000000;0.000000;0.000000;10.000000 > > Can anyone enlighten me on why check_jabber is soft-linked to > check_tcp but they both return a different result? check_tcp behaves differently depending on the name it was called as. Looking at the source, there are several -- if (strstr (argv[0], "check_udp")) { else if (strstr (argv[0], "check_tcp")) { else if (strstr (argv[0], "check_ftp")) { else if (strstr (argv[0], "check_smtp")) { else if (strstr (argv[0], "check_pop")) { else if (strstr (argv[0], "check_imap")) { else if (strstr(argv[0],"check_simap")) { else if (strstr(argv[0],"check_spop")) { else if (strstr(argv[0],"check_jabber")) { else if (strstr (argv[0], "check_nntps")) { else if (strstr (argv[0], "check_nntp")) { When jabber support was added to check_tcp, SSL connections were required regardless of whether -S was used or not (per the ChangeLog and a glance at the code). It looks like the jabber code was made to respect the -S flag on June 5th in CVS. Try the latest CVS version. -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jnakamura at akento.com Tue Jul 5 21:29:56 2005 From: jnakamura at akento.com (Jay Nakamura) Date: Tue, 5 Jul 2005 14:29:56 -0500 Subject: obsess_over_service in services.cfg Message-ID: <1D415981A2C4614AA6BE02293A9C79EF128A51@Marvel.akento.com.private> What does the obsess_over_service option in service configuration do? I want to be able to send service check result to another server but only for select few services. I have tried setting obsess_over_services = 1 in main config, then define service { obsess_over_service 0 } in services.cfg for all the services that I don't want sent to main server. This still results in all services sent to the main server. If I do the reverse and set obsess_over_services = 0 in main config, then set obsess_over_service in service.cfg to 1 for those I want to send but 0 for ones I don't want to send, nothing gets sent. Is this suppose to work like I want to? I didn't find any comment in the documentation for obsess_over_service in services.cfg Any help will be appreciated. Just FYI, I am running nagios v1.2 from nagios-1.2-2.1.fc3.rf.rpm ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Tue Jul 5 21:53:40 2005 From: Bill_Akins at emoryhealthcare.org (Bill Akins) Date: Tue, 05 Jul 2005 15:53:40 -0400 Subject: obsess_over_service in services.cfg Message-ID: http://nagios.sourceforge.net/docs/2_0/configmain.html#obsess_over_services >>> "Jay Nakamura" 7/5/2005 3:29 PM >>> What does the obsess_over_service option in service configuration do? I want to be able to send service check result to another server but only for select few services. I have tried setting obsess_over_services = 1 in main config, then define service { obsess_over_service 0 } in services.cfg for all the services that I don't want sent to main server. This still results in all services sent to the main server. If I do the reverse and set obsess_over_services = 0 in main config, then set obsess_over_service in service.cfg to 1 for those I want to send but 0 for ones I don't want to send, nothing gets sent. Is this suppose to work like I want to? I didn't find any comment in the documentation for obsess_over_service in services.cfg Any help will be appreciated. Just FYI, I am running nagios v1.2 from nagios-1.2-2.1.fc3.rf.rpm ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 marc at ena.com Tue Jul 5 22:05:30 2005 From: marc at ena.com (Marc Powell) Date: Tue, 5 Jul 2005 15:05:30 -0500 Subject: obsess_over_service in services.cfg Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Jay Nakamura > Sent: Tuesday, July 05, 2005 2:30 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] obsess_over_service in services.cfg > > > What does the obsess_over_service option in service configuration do? I don't know what happened to it in the 1.x doccos, but from 2.x (which is still the same) -- This directive determines whether or not checks for the service will be "obsessed" over using the ocsp_command. > > I want to be able to send service check result to another server but > only for select few services. > > I have tried setting > > obsess_over_services = 1 > > in main config, then > > define service { > > obsess_over_service 0 > > } > > in services.cfg for all the services that I don't want sent to main > server. That should do what you want. > This still results in all services sent to the main server. Did you previously have it set to 1 for all services? > If I do the reverse and set > > obsess_over_services = 0 > > in main config, then set obsess_over_service in service.cfg to 1 for > those I want to send but 0 for ones I don't want to send, nothing gets > sent. Expected. > Is this suppose to work like I want to? Yes. > I didn't find any comment in the documentation for obsess_over_service > in services.cfg > > Any help will be appreciated. It sounds like you may have retain_state_information enabled. If you do, and previously had obsess_over_service set to 1 then the values in the retention file will take precedence over the values in the config. See the retention notes at http://nagios.sourceforge.net/docs/1_0/xodtemplate.html if that scenario fits. -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jnakamura at akento.com Tue Jul 5 22:18:28 2005 From: jnakamura at akento.com (Jay Nakamura) Date: Tue, 5 Jul 2005 15:18:28 -0500 Subject: obsess_over_service in services.cfg Message-ID: <1D415981A2C4614AA6BE02293A9C79EF128A59@Marvel.akento.com.private> > It sounds like you may have retain_state_information enabled. > If you do, and previously had obsess_over_service set to 1 > then the values in the retention file will take precedence > over the values in the config. See the retention notes at > http://nagios.sourceforge.net/docs/1_0/xodtemplate.html if > that scenario fits. Oh yes... I read that two days ago and I spaced it. I got it working! Thanks for the sanity check! :) ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From HJahn at woosh.com Tue Jul 5 23:09:31 2005 From: HJahn at woosh.com (Holger Jahn) Date: Wed, 6 Jul 2005 09:09:31 +1200 Subject: Perfdata invocation problem Message-ID: <44C4DC99A083FA48864ACEFF85B96261030299C6@wwl_mail1.intwwl.net> Good morning, Guys! > > Are you sure the nagios User can call the insert.pl? > > Is the logfile writable? > > Did you tried to execute the script manually? > > Have you turned on debug? You came very close to the reason why it was not working... I had configured nagiosgraph to write the RRDs to /var/nagios/rrd, but the nagios user was not allowed to write into it. :-( Doh. OTOH, why do we have log files (nagiosgraph.log) if errors like these are not logged there? Anyway, thanks for pointing me to re-think things. ;-) Have a good one, you all! Cheers, Holger ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Evert.Goor at benp.nl Wed Jul 6 01:24:25 2005 From: Evert.Goor at benp.nl (Evert Goor) Date: Wed, 6 Jul 2005 01:24:25 +0200 Subject: Nagios_grapher Message-ID: <19CCC8E70E4FA941848269F0C5D832CC58A475@post.systems.nl> Got a litle further with trouble shooting. Looks like that the program cannot the NAgiosGrapher.pm. Even wen it is located localy. Any idea how to fix this ----Original Message---- From: Nathan Oyler Sent: 04/07/05 20:00 To: Evert Goor ; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Nagios_grapher -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= There isn't a forum I've seen, although I've installed it and have it running on RHES3. What's the problem? ________________________________ From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Evert Goor Sent: Monday, July 04, 2005 5:53 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Nagios_grapher Hi all Is there a somewhere a forum about Nagios Grapher. Having some fights to get it running under RedHat Tanx Evert Goor ________________________________ Disclaimer B&P Computersystems BV The information contained in this e-mail message is confidential and may be legally privileged. It is intended solely for the use of the individual or entity to whom it is addressed and others authorised to receive it. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender as soon as possible. B+P Computersystems bv is neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt. ________________________________ ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Evert.Goor at benp.nl Wed Jul 6 01:41:12 2005 From: Evert.Goor at benp.nl (Evert Goor) Date: Wed, 6 Jul 2005 01:41:12 +0200 Subject: Nagios_grapher Message-ID: <19CCC8E70E4FA941848269F0C5D832CC58A477@post.systems.nl> Fixed The NagiosGrapher.pm was also in perl path. Can not remember to coppied there. But now it is fixed ----Original Message---- From: Evert Goor Sent: 06/07/05 01:26 To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Nagios_grapher -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Got a litle further with trouble shooting. Looks like that the program cannot the NAgiosGrapher.pm. Even wen it is located localy. Any idea how to fix this ----Original Message---- From: Nathan Oyler Sent: 04/07/05 20:00 To: Evert Goor ; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Nagios_grapher -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= There isn't a forum I've seen, although I've installed it and have it running on RHES3. What's the problem? ________________________________ From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Evert Goor Sent: Monday, July 04, 2005 5:53 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Nagios_grapher Hi all Is there a somewhere a forum about Nagios Grapher. Having some fights to get it running under RedHat Tanx Evert Goor ________________________________ Disclaimer B&P Computersystems BV The information contained in this e-mail message is confidential and may be legally privileged. It is intended solely for the use of the individual or entity to whom it is addressed and others authorised to receive it. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender as soon as possible. B+P Computersystems bv is neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt. ________________________________ ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=ick _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ladams at cloudmark.com Wed Jul 6 02:04:05 2005 From: ladams at cloudmark.com (Lori Adams) Date: Tue, 5 Jul 2005 17:04:05 -0700 Subject: - plugin to check file system writeable ? Message-ID: How about a script that creates a file? If the creation fails, it's not writable. If the file is created, it succeeded, and then delete created file. -Lori ________________________________ From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Sivan DERAY Sent: Monday, July 04, 2005 1:47 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] - plugin to check file system writeable ? hi, Is there a way to check if the file sytem is writeable ? (windows & linux) ? Thanks for help Sivan DERAY Ing?nieur S?curit? NET APTITUDE S.A.S. 215 rue Jean-Jacques Rousseau 92130 ISSY LES MOULINEAUX Mobile : 06 15 30 73 67 T?l?phone : 01 41 09 77 71 Fax : 01 41 09 77 78 Site Internet http://www.net-aptitude.fr -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 2335 bytes Desc: image001.jpg URL: From mark at redbrick.dcu.ie Wed Jul 6 02:27:00 2005 From: mark at redbrick.dcu.ie (Mark Campbell) Date: Tue, 5 Jul 2005 17:27:00 -0700 Subject: Nagios Deamon failing on FreeBSD Message-ID: <20050706002700.GA31378@carbon.redbrick.dcu.ie> Hi all, I'm having some problems with the lastest nagios on FreeBSD 5.2.1 (more information below), I am not experiencing the same trouble on my Linux machines. When I start the nagios daemon it seems to zombify itself instantly and none of the scheduled nagios checks (remain in a PENDING state). Here are the options I used at compile time: ./configure --prefix=/disk/saint --with-cgiurl=/cgi-bin --with-htmurl= --with-nagios-user=nagios --with-nagios-grp=nagios --with-default-perfdata --enable-embedded-perl --with-perlcache --with-gd-lib=/usr/local/lib --with-gd-inc=/usr/local/include # uname -a FreeBSD fap.redbrick.dcu.ie 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #3: Tue Jun 15 18:50:26 IST 2004 dizer at fap.cobweb:/disk/usr/obj/disk/usr/src/sys/FAP i386 # ps auxwww | grep nagios nagios 74570 0.0 0.5 3516 2644 ?? Ss Mon09PM 0:07.40 /disk/saint/bin/nagios -d /disk/saint/etc/nagios.cfg nagios 0 0.0 0.0 0 0 ?? ZW - 0:00.00 (nagios) The Nagios log doesn't seem to be having problems: [1120507507] Nagios 2.0b3 starting... (PID=74569) [1120507507] LOG VERSION: 2.0 [1120507507] Warning: Contact 'admin' is not a member of any contact groups! [1120507507] Warning: Contact group 'elected-admins' is not used in any host/service definitions or host/service escalations! [1120507507] Finished daemonizing... (New PID=74570) The only other thing that could be different is on this machine / is read-only, however I don't see how this could have an impact on the problem: # mount /dev/ad0s1a on / (ufs, local, read-only) devfs on /dev (devfs, local) /dev/ad0s1d on /disk (ufs, local, soft-updates) /dev/md0 on /var (ufs, local, soft-updates) Anyone have any ideas what could be up? If you require any further information from me, please let me know Thanks in advance for any assistance on this issue Mark -- Mark Campbell http://mark.redbrick.dcu.ie - "Trying is the first step towards Failure"- Homer J. Simpson ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 6 02:53:35 2005 From: Stanley.Hopcroft at IPAustralia.gov.au (Stanley Hopcroft) Date: Wed, 6 Jul 2005 10:53:35 +1000 Subject: OT SourceForge project of the month for June In-Reply-To: <20050705200434.9688112ADF@sc8-sf-spam2.sourceforge.net> References: <20050705200434.9688112ADF@sc8-sf-spam2.sourceforge.net> Message-ID: <20050706005334.GB82688@ws11114.aipo.gov.au> Dear Folks, FYI (hope it hasn't been posted before) http://sourceforge.net/potm/potm-2005-06.php Yours sincerely. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: disclaimer.txt URL: From james at lovedthanlost.net Wed Jul 6 07:46:15 2005 From: james at lovedthanlost.net (James Turnbull) Date: Wed, 06 Jul 2005 15:46:15 +1000 Subject: Nagios and CGIWrap issue Message-ID: <20050706154615.hp5r5odw8c04gc8k@webmail.lovedthanlost.net> I've configured Nagios and Apache to work with CGIWrap. I sym-linked a /home/nagios/public_html/ directory to the Nagios CGI directory /usr/local/nagios/sbin. Everything seems to work and cgiwrap seems to be working but I also use authentication (Digest authentication) to authenticate my users. In Nagios authenticated users are then used to determine what access is granted to the Nagios web console. But after installing CGIWrap Nagios seems unable to work out what user is signed in and hence doesn't correctly authorize users. In Nagios this shows up as the signed in user name being replaced with a ?, ie. instead of the console saying jsmith is signed in it says that ? is signed in. I am running Red Hat ES 4 with Apache 2.0.52, Nagios 2.0b3 and cgiwrap 3.9. Happy to provide any further information if this is not detailed enough. Regards James Turnbull -- James Turnbull --- Author of Hardening Linux from Apress (http://www.amazon.com/exec/obidos/tg/detail/-/1590594444/) --- PGP Key (http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x0C42DF40) ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Evert.Goor at benp.nl Wed Jul 6 10:02:05 2005 From: Evert.Goor at benp.nl (Evert Goor) Date: Wed, 6 Jul 2005 10:02:05 +0200 Subject: weird error in rrd Message-ID: <19CCC8E70E4FA941848269F0C5D832CC58A478@post.systems.nl> Hi all Got the nagios_grapher partly working only having one problem left all the graps show me a error like "cannot parse CF in 'DEF:RTA=/var/lib/nagios/rrd/pc-name/345435345435.rrd:RTA:MAX What means this CF error. Looked around on de RRDTool site but not a clue where to look now. ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Javier.Castillo at alhambra-eidos.com Wed Jul 6 10:20:49 2005 From: Javier.Castillo at alhambra-eidos.com (Javier Castillo Alcibar) Date: Wed, 6 Jul 2005 10:20:49 +0200 Subject: performance problems Message-ID: <635868854FEE3845B2D264D9D0E4017D14B13F@ALHM3SRV.alhpridom.as> Hi everybody!! I have strange performance problem with my nagios 1.3 server(debian sarge). It checks very slowly, I can see this info using extinfo.cgi. How can I debug this? Any hint/trick? Any parameter? Program-Wide Performance Information Active Checks: Time Frame Checks Completed <= 1 minute: 95 (28.1%) <= 5 minutes: 283 (83.7%) <= 15 minutes: 338 (100.0%) <= 1 hour: 338 (100.0%) Since program start: 338 (100.0%) Metric Min. Max. Average Check Execution Time: < 1 sec 24 sec 7.201 sec Check Latency: 99 sec 135 sec 119.867 sec Percent State Change: 0.00% 0.00% 0.00% Passive Checks: Time Frame Checks Completed <= 1 minute: 0 (0.0%) <= 5 minutes: 0 (0.0%) <= 15 minutes: 0 (0.0%) <= 1 hour: 0 (0.0%) Since program start: 0 (0.0%) Metric Min. Max. Average Percent State Change: 0.00% 0.00% 0.00% # log_file=/var/log/nagios/nagios.log cfg_file=/etc/nagios/checkcommands.cfg cfg_file=/etc/nagios/misccommands.cfg cfg_file=/etc/nagios/contactgroups.cfg cfg_file=/etc/nagios/contacts.cfg cfg_file=/etc/nagios/dependencies.cfg cfg_file=/etc/nagios/escalations.cfg cfg_file=/etc/nagios/hostgroups.cfg cfg_file=/etc/nagios/hosts.cfg cfg_file=/etc/nagios/services.cfg cfg_file=/etc/nagios/timeperiods.cfg resource_file=/etc/nagios/resource.cfg temp_file=/var/log/nagios/nagios.tmp status_file=/var/log/nagios/status.log aggregate_status_updates=1 status_update_interval=15 nagios_user=nagios nagios_group=nagios enable_notifications=1 execute_service_checks=1 accept_passive_service_checks=1 enable_event_handlers=1 log_rotation_method=d log_archive_path=/var/log/nagios/archives check_external_commands=1 command_check_interval=-1 comment_file=/var/log/nagios/comment.log downtime_file=/var/log/nagios/downtime.log command_file=/var/log/nagios/rw/nagios.cmd lock_file=/var/log/nagios/nagios.lock retain_state_information=1 state_retention_file=/var/log/nagios/status.sav retention_update_interval=60 use_retained_program_state=0 use_syslog=1 log_notifications=1 log_service_retries=1 log_host_retries=1 log_event_handlers=1 log_initial_states=0 log_external_commands=1 log_passive_service_checks=1 sleep_time=1 max_concurrent_checks=120 #service_reaper_frequency=10 service_reaper_frequency=5 interval_length=60 use_agressive_host_checking=0 enable_flap_detection=0 low_service_flap_threshold=5.0 high_service_flap_threshold=20.0 low_host_flap_threshold=5.0 high_host_flap_threshold=20.0 soft_state_dependencies=0 service_check_timeout=30 host_check_timeout=30 event_handler_timeout=60 notification_timeout=60 ocsp_timeout=5 perfdata_timeout=5 obsess_over_services=0 process_performance_data=0 check_for_orphaned_services=0 check_service_freshness=1 freshness_check_interval=60 admin_email=nagios admin_pager=pagenagios date_format=euro ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From niceforums at yahoo.com Wed Jul 6 10:25:44 2005 From: niceforums at yahoo.com (hamideh daliri) Date: Wed, 6 Jul 2005 01:25:44 -0700 (PDT) Subject: problem with 3d status map. Message-ID: <20050706082544.17541.qmail@web30113.mail.mud.yahoo.com> hi, for viweing 3d status map , i got openvrml-0.15.8-1.i386.rpm but it doesn't work . i tried to use freewrl but these are some errors related to javac that say no javac , would some one help me ? my distrib is red hat AS , tnx . __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Wed Jul 6 10:49:18 2005 From: b00mer at gmx.net (Hendrik Baecker) Date: Wed, 06 Jul 2005 10:49:18 +0200 Subject: performance problems In-Reply-To: <635868854FEE3845B2D264D9D0E4017D14B13F@ALHM3SRV.alhpridom.as> References: <635868854FEE3845B2D264D9D0E4017D14B13F@ALHM3SRV.alhpridom.as> Message-ID: <42CB9B0E.6050700@gmx.net> Hello Javier, try to figure out where your Service Latencies comes from. Hints are: in nagios.cfg process_performance_data=0 http://nagios.sourceforge.net/docs/1_0/perfdata.html Out of the performance data you can perhaps see where your latencies comes from. Other ways were to view a 'top' and have a look to the swap memory, the load and perhaps the 'wa' CPU count Its not quiet good to have a server swapping, to have a high load and very ugly if your server is waiting for I/O... Javier Castillo Alcibar schrieb: >Hi everybody!! > >I have strange performance problem with my nagios 1.3 server(debian >sarge). It checks very slowly, I can see this info using extinfo.cgi. >How can I debug this? Any hint/trick? Any parameter? > >Program-Wide Performance Information > >Active Checks: > Time Frame Checks Completed ><= 1 minute: 95 (28.1%) ><= 5 minutes: 283 (83.7%) ><= 15 minutes: 338 (100.0%) ><= 1 hour: 338 (100.0%) >Since program start: 338 (100.0%) > > >Metric Min. Max. Average >Check Execution Time: < 1 sec 24 sec 7.201 sec >Check Latency: 99 sec 135 sec 119.867 sec >Percent State Change: 0.00% 0.00% 0.00% > > >Passive Checks: > Time Frame Checks Completed ><= 1 minute: 0 (0.0%) ><= 5 minutes: 0 (0.0%) ><= 15 minutes: 0 (0.0%) ><= 1 hour: 0 (0.0%) >Since program start: 0 (0.0%) > > >Metric Min. Max. Average >Percent State Change: 0.00% 0.00% 0.00% > ># >log_file=/var/log/nagios/nagios.log >cfg_file=/etc/nagios/checkcommands.cfg >cfg_file=/etc/nagios/misccommands.cfg >cfg_file=/etc/nagios/contactgroups.cfg >cfg_file=/etc/nagios/contacts.cfg >cfg_file=/etc/nagios/dependencies.cfg >cfg_file=/etc/nagios/escalations.cfg >cfg_file=/etc/nagios/hostgroups.cfg >cfg_file=/etc/nagios/hosts.cfg >cfg_file=/etc/nagios/services.cfg >cfg_file=/etc/nagios/timeperiods.cfg >resource_file=/etc/nagios/resource.cfg >temp_file=/var/log/nagios/nagios.tmp >status_file=/var/log/nagios/status.log >aggregate_status_updates=1 >status_update_interval=15 >nagios_user=nagios >nagios_group=nagios >enable_notifications=1 >execute_service_checks=1 >accept_passive_service_checks=1 >enable_event_handlers=1 >log_rotation_method=d >log_archive_path=/var/log/nagios/archives >check_external_commands=1 >command_check_interval=-1 >comment_file=/var/log/nagios/comment.log >downtime_file=/var/log/nagios/downtime.log >command_file=/var/log/nagios/rw/nagios.cmd >lock_file=/var/log/nagios/nagios.lock >retain_state_information=1 >state_retention_file=/var/log/nagios/status.sav >retention_update_interval=60 >use_retained_program_state=0 >use_syslog=1 >log_notifications=1 >log_service_retries=1 >log_host_retries=1 >log_event_handlers=1 >log_initial_states=0 >log_external_commands=1 >log_passive_service_checks=1 >sleep_time=1 >max_concurrent_checks=120 >#service_reaper_frequency=10 >service_reaper_frequency=5 >interval_length=60 >use_agressive_host_checking=0 >enable_flap_detection=0 >low_service_flap_threshold=5.0 >high_service_flap_threshold=20.0 >low_host_flap_threshold=5.0 >high_host_flap_threshold=20.0 >soft_state_dependencies=0 >service_check_timeout=30 >host_check_timeout=30 >event_handler_timeout=60 >notification_timeout=60 >ocsp_timeout=5 >perfdata_timeout=5 >obsess_over_services=0 >process_performance_data=0 >check_for_orphaned_services=0 >check_service_freshness=1 >freshness_check_interval=60 >admin_email=nagios >admin_pager=pagenagios >date_format=euro > > > >------------------------------------------------------- >SF.Net email is sponsored by: Discover Easy Linux Migration Strategies >from IBM. Find simple to follow Roadmaps, straightforward articles, >informative Webcasts and more! Get everything you need to get up to >speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > > > > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From krienke at uni-koblenz.de Wed Jul 6 11:04:25 2005 From: krienke at uni-koblenz.de (Rainer Krienke) Date: Wed, 6 Jul 2005 11:04:25 +0200 Subject: Timeperiod problem Message-ID: <200507061104.31212.krienke@uni-koblenz.de> Hello, I am running nagios 1.2 on a SUSE 9.2 system. Basically this works fine. However I have a problem with timeperiods I do not understand. What I want is to have nagios check a servive (load on a linux system) only in the time or 00:00 -> 22:00 because I know that at about 23:00 (11:00pm) there will be a load peak on the system checked that would lead to a nagios warning or error fpr this service. So i thought to define a timeperiod that excludes this period of time and then in the services.cfg to used this limited timeperiod definition for the check_period statement. According to the documentation this should keep nagios from checking this service if the current time is not valid. The configuration is given below. Allthough I thought this should work, it doesn't. The service is still checkek in the time of 22:00->00:00 and I get an nagios error for this service at 23:10. But why? Next I tried to write a undefined timeperiod in the servicedefinition below. Simply a name like xyz instead of 2allbut22__00". Nagios restarted without any problems which I consider even more strabge. Next I move the timeperiod.cfg file away from /etc/nagios and restarted nagios again. This time it complained that it is unable to open the timeperiods.cfg file. Does anyone have an idea whats going wrong? Thanks a lot Rainer ------------ The config: ------------ -- timeperiod.cfg: define timeperiod { timeperiod_name allbut22__00 alias All time but 22:00-24:00 sunday 00:00-22:00 monday 00:00-22:00 tuesday 00:00-22:00 wednesday 00:00-22:00 thursday 00:00-22:00 friday 00:00-22:00 saturday 00:00-22:00 } --service.cfg: define service { host_name myhostname service_description Load of myhostname name myhostname max_check_attempts 3 normal_check_interval 5 retry_check_interval 2 check_period allbut22__00 notification_interval 240 notification_period 24x7 notification_options c,r contact_groups linux-admins check_command "/usr/bin/nagios-stat -w 5 -c 10 load myhostname.uni-koblenz.de" } -- --------------------------------------------------------------------------- Rainer Krienke, Universitaet Koblenz, Rechenzentrum, Raum A022 Universitaetsstrasse 1, 56070 Koblenz, Tel: +49 261287 -1312, Fax: -1001312 Mail: krienke at uni-koblenz.de, Web: http://www.uni-koblenz.de/~krienke Get my public PGP key: http://www.uni-koblenz.de/~krienke/mypgp.html --------------------------------------------------------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From Martin.Wolfert at ptv.de Wed Jul 6 11:27:57 2005 From: Martin.Wolfert at ptv.de (Martin Wolfert) Date: Wed, 6 Jul 2005 11:27:57 +0200 Subject: Problems with ; Message-ID: <9BAD90A62DF5AD4CA65EFCAAA6C012EE3E7D53@ska-wn-e05.ptv.ptv.de> Hi all nagios users, i had to check an service with the check_httpp plugin. So there is the following line in the checkcommands.cfg: command_line /usr/lib/nagios/plugins/check_http -t 30 -H $HOSTADDRESS$ -u "$ARG1$$HOSTADDRESS$$ARG2$" -a "bla;foo:pwd" where "bla;foo" is a fix statement for the mandant;client combination, folowing by the pass, seperated by ":" . This circumstances can not be changed, because our application (i had to check) needs this syntax. So ... i think, that nagios do NOT like any ";" in his config files, but i had to work with it on this place :-((. Has anyone any workaround to make this http check with the required syntax ? Best regards Martin PTV AG Webadministrator R2.2 - Betrieb Internet Tel.: +49 7 21 96 51- 7128 Fax: +49 7 21 96 51- 599 E-Mail: martin.wolfert at ptv.de ____________________________ PTV Planung Transport Verkehr AG Stumpfstrasse 1 76131 Karlsruhe Germany http://www.ptv.de http://www.Reiseplanung.de http://www.varta-guide.de http://www.CityGuideFinder.de -------------- next part -------------- An HTML attachment was scrubbed... URL: From pete at stuff-done.co.uk Wed Jul 6 11:39:42 2005 From: pete at stuff-done.co.uk (Pete Dewell) Date: Wed, 06 Jul 2005 10:39:42 +0100 Subject: Problems with ; In-Reply-To: <9BAD90A62DF5AD4CA65EFCAAA6C012EE3E7D53@ska-wn-e05.ptv.ptv.de> References: <9BAD90A62DF5AD4CA65EFCAAA6C012EE3E7D53@ska-wn-e05.ptv.ptv.de> Message-ID: <42CBA6DE.9030906@stuff-done.co.uk> Try setting up $USER$ variables in the resource.cfg file. e.g. $USER1$='bla;foo' $USER2$='pwd' Then use the command check_http -t 30 -H $HOSTADDRESS$ -u "$ARG1$$HOSTADDRESS$$ARG2$" -a "$USER1$:$USER2$" I had similar problems with some passwords, and some other person on this list kindly pointed this solution out to me. This also has the benefit of hiding your users/pwds from the standard config files. Pete Dewell Martin Wolfert wrote: > Hi all nagios users, > > i had to check an service with the check_httpp plugin. > So there is the following line in the checkcommands.cfg: > > command_line /usr/lib/nagios/plugins/check_http -t 30 -H > $HOSTADDRESS$ -u "$ARG1$$HOSTADDRESS$$ARG2$" -a "bla;foo:pwd" > > where "bla;foo" is a fix statement for the mandant;client combination, > folowing by the pass, seperated by ":" . This circumstances can not be > changed, because our application (i had to check) needs this syntax. > > So ... i think, that nagios do NOT like any ";" in his config files, but > i had to work with it on this place :-((. > > Has anyone any workaround to make this http check with the required > syntax ? > > > Best regards > > > Martin > > > PTV AG > Webadministrator > R2.2 - Betrieb Internet > Tel.: +49 7 21 96 51- 7128 > Fax: +49 7 21 96 51- 599 > E-Mail: martin.wolfert at ptv.de > ____________________________ > PTV > Planung Transport Verkehr AG > Stumpfstrasse 1 > 76131 Karlsruhe > Germany > http://www.ptv.de > http://www.Reiseplanung.de > http://www.varta-guide.de > http://www.CityGuideFinder.de > -- Pete Dewell | Stuff Done pete at stuff-done.co.uk ** The information contained in this message, including any attachment, is confidential and may be privileged or otherwise protected from disclosure. The information is intended only for the person or entity to which it is addressed. If you are not the intended recipient, please contact the sender and delete this message from your system. Any review, re-transmission, distribution or other use of this information by persons or entities other than the intended recipient is prohibited. * ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nagiosadmin at snef.fr Wed Jul 6 12:00:03 2005 From: nagiosadmin at snef.fr (Davy Gaussen) Date: Wed, 6 Jul 2005 12:00:03 +0200 Subject: Web authentication issues Message-ID: <006201c58211$7abb5740$c26710ac@sneftechnologies.fr> Hi everyone, I have a weird problem in the Nagios web authentication. I have set all the parameters in httpd.conf (scriptalias, etc...), create htpasswd.users file, .htaccess file, cgi.cfg, set the rights permissions on these files, etc.... And then, I can authenticate with a user but I see "logged in as ?" in Nagios. So I do not have any rights to see cgi pages. And, when I change the cgi.cfg option parameter "default_user_name=nagios" for instance, I can now login in with the user yann (for instance) BUT I see "logged in as nagios" in the Nagios frontend. If I remove the cgi parameter, the "logged in as ?" appears again. Could someone help me please ? Davy -------------- next part -------------- An HTML attachment was scrubbed... URL: From Javier.Castillo at alhambra-eidos.com Wed Jul 6 12:05:21 2005 From: Javier.Castillo at alhambra-eidos.com (Javier Castillo Alcibar) Date: Wed, 6 Jul 2005 12:05:21 +0200 Subject: performance problems Message-ID: <635868854FEE3845B2D264D9D0E4017D14B14A@ALHM3SRV.alhpridom.as> Hello Hendrik, The machine is a DL380, 2xCPU 2.8Ghz, 2Gb RAM. I think it has enough hw resources..... Technically: alhmngsrv2:/etc/nagios# vmstat 5 procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu---- r b swpd free buff cache si so bi bo in cs us sy id wa 0 0 4 215764 222008 594536 0 0 0 0 0 1 6 4 88 2 1 0 4 211028 222008 594536 0 0 0 246 1170 0 4 1 93 2 1 0 4 202228 222008 594536 0 0 0 314 1182 0 13 2 83 3 0 0 4 205300 222008 594536 0 0 0 126 1167 0 8 1 90 1 18 0 4 209660 222008 594536 0 0 0 275 1207 0 1 1 94 4 0 0 4 209596 222008 594536 0 0 0 229 1143 0 2 1 96 2 0 0 4 202428 222012 594532 0 0 0 77 1117 0 5 1 94 0 2 0 4 186940 222016 594528 0 0 0 110 1145 0 19 2 80 0 2 0 4 190076 222016 594528 0 0 0 245 1127 0 1 1 96 2 17 0 4 191020 222016 594528 0 0 0 150 1128 0 2 1 96 2 2 0 4 198316 222016 594460 0 0 0 286 1138 0 3 1 94 2 0 0 4 197004 222020 594456 0 0 0 168 1125 0 2 1 96 2 17 0 4 196436 222028 594448 0 0 0 396 1210 0 2 1 93 3 9 0 4 205908 222028 594448 0 0 0 393 1244 0 3 1 92 3 It's very strange, because, when I start nagios, everything goes nicely, plugins execution times and latencies are ok, but two or three minutes later, nagios starts getting strange time values, for example: 1120644060 FIREWALL PING OK 1 HARD 9 157 FPING OK - 192.168.0.1 (loss=0%, rta=72.400000 ms) loss=0%;10;30;0;100 rta=0.072400s;2.000000;5.000000;0.000000 Executiontime=9 and Latency=157 ???? Why? This test have had no packet loss, the machine is working nicely....but... Another strange thing I noticed: if have "max_concurrent_checks=120", why are so many times that nagios is running only 1,2,3,4 plugins at the same time? It's true, I'm very confused.... Thx in advance, Javier. -----Mensaje original----- De: Hendrik Baecker [mailto:b00mer at gmx.net] Enviado el: mi?rcoles, 06 de julio de 2005 10:49 Para: Javier Castillo Alcibar CC: nagios-users at lists.sourceforge.net Asunto: Re: [Nagios-users] performance problems Hello Javier, try to figure out where your Service Latencies comes from. Hints are: in nagios.cfg process_performance_data=0 http://nagios.sourceforge.net/docs/1_0/perfdata.html Out of the performance data you can perhaps see where your latencies comes from. Other ways were to view a 'top' and have a look to the swap memory, the load and perhaps the 'wa' CPU count Its not quiet good to have a server swapping, to have a high load and very ugly if your server is waiting for I/O... Javier Castillo Alcibar schrieb: >Hi everybody!! > >I have strange performance problem with my nagios 1.3 server(debian >sarge). It checks very slowly, I can see this info using extinfo.cgi. >How can I debug this? Any hint/trick? Any parameter? > >Program-Wide Performance Information > >Active Checks: > Time Frame Checks Completed ><= 1 minute: 95 (28.1%) ><= 5 minutes: 283 (83.7%) ><= 15 minutes: 338 (100.0%) ><= 1 hour: 338 (100.0%) >Since program start: 338 (100.0%) > > >Metric Min. Max. Average >Check Execution Time: < 1 sec 24 sec 7.201 sec >Check Latency: 99 sec 135 sec 119.867 sec >Percent State Change: 0.00% 0.00% 0.00% > > >Passive Checks: > Time Frame Checks Completed ><= 1 minute: 0 (0.0%) ><= 5 minutes: 0 (0.0%) ><= 15 minutes: 0 (0.0%) ><= 1 hour: 0 (0.0%) >Since program start: 0 (0.0%) > > >Metric Min. Max. Average >Percent State Change: 0.00% 0.00% 0.00% > ># >log_file=/var/log/nagios/nagios.log >cfg_file=/etc/nagios/checkcommands.cfg >cfg_file=/etc/nagios/misccommands.cfg >cfg_file=/etc/nagios/contactgroups.cfg >cfg_file=/etc/nagios/contacts.cfg >cfg_file=/etc/nagios/dependencies.cfg >cfg_file=/etc/nagios/escalations.cfg >cfg_file=/etc/nagios/hostgroups.cfg >cfg_file=/etc/nagios/hosts.cfg >cfg_file=/etc/nagios/services.cfg >cfg_file=/etc/nagios/timeperiods.cfg >resource_file=/etc/nagios/resource.cfg >temp_file=/var/log/nagios/nagios.tmp >status_file=/var/log/nagios/status.log >aggregate_status_updates=1 >status_update_interval=15 >nagios_user=nagios >nagios_group=nagios >enable_notifications=1 >execute_service_checks=1 >accept_passive_service_checks=1 >enable_event_handlers=1 >log_rotation_method=d >log_archive_path=/var/log/nagios/archives >check_external_commands=1 >command_check_interval=-1 >comment_file=/var/log/nagios/comment.log >downtime_file=/var/log/nagios/downtime.log >command_file=/var/log/nagios/rw/nagios.cmd >lock_file=/var/log/nagios/nagios.lock >retain_state_information=1 >state_retention_file=/var/log/nagios/status.sav >retention_update_interval=60 >use_retained_program_state=0 >use_syslog=1 >log_notifications=1 >log_service_retries=1 >log_host_retries=1 >log_event_handlers=1 >log_initial_states=0 >log_external_commands=1 >log_passive_service_checks=1 >sleep_time=1 >max_concurrent_checks=120 >#service_reaper_frequency=10 >service_reaper_frequency=5 >interval_length=60 >use_agressive_host_checking=0 >enable_flap_detection=0 >low_service_flap_threshold=5.0 >high_service_flap_threshold=20.0 >low_host_flap_threshold=5.0 >high_host_flap_threshold=20.0 >soft_state_dependencies=0 >service_check_timeout=30 >host_check_timeout=30 >event_handler_timeout=60 >notification_timeout=60 >ocsp_timeout=5 >perfdata_timeout=5 >obsess_over_services=0 >process_performance_data=0 >check_for_orphaned_services=0 >check_service_freshness=1 >freshness_check_interval=60 >admin_email=nagios >admin_pager=pagenagios >date_format=euro > > > >------------------------------------------------------- >SF.Net email is sponsored by: Discover Easy Linux Migration Strategies >from IBM. Find simple to follow Roadmaps, straightforward articles, >informative Webcasts and more! Get everything you need to get up to >speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > > > > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Evert.Goor at benp.nl Wed Jul 6 12:20:21 2005 From: Evert.Goor at benp.nl (Evert Goor) Date: Wed, 6 Jul 2005 12:20:21 +0200 Subject: Web authentication issues Message-ID: <19CCC8E70E4FA941848269F0C5D832CC58A479@post.systems.nl> Did you also put the .htaccess file into your sbin dir ? I think that file is missing. Just try to open a new browser and go directly to your cgi-bin and try to access. It should also request there for a username and password. ----Original Message---- From: Davy Gaussen Sent: 06/07/05 12:06 To: nagios-users Subject: [Nagios-users] Web authentication issues -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Hi everyone, I have a weird problem in the Nagios web authentication. I have set all the parameters in httpd.conf (scriptalias, etc...), create htpasswd.users file, .htaccess file, cgi.cfg, set the rights permissions on these files, etc.... And then, I can authenticate with a user but I see "logged in as ?" in Nagios. So I do not have any rights to see cgi pages. And, when I change the cgi.cfg option parameter "default_user_name=nagios" for instance, I can now login in with the user yann (for instance) BUT I see "logged in as nagios" in the Nagios frontend. If I remove the cgi parameter, the "logged in as ?" appears again. Could someone help me please ? Davy ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nagiosadmin at snef.fr Wed Jul 6 13:42:19 2005 From: nagiosadmin at snef.fr (Davy Gaussen) Date: Wed, 6 Jul 2005 13:42:19 +0200 Subject: Web authentication issues References: <19CCC8E70E4FA941848269F0C5D832CC58A479@post.systems.nl> Message-ID: <006801c5821f$c3fd4680$c26710ac@sneftechnologies.fr> Thank you very much it works perfectly !!!!! ----- Original Message ----- From: "Evert Goor" To: Sent: Wednesday, July 06, 2005 12:20 PM Subject: RE: [Nagios-users] Web authentication issues > Did you also put the .htaccess file into your sbin dir ? > I think that file is missing. > Just try to open a new browser and go directly to your cgi-bin and try to access. It should also request there for a username and password. > > ----Original Message---- > From: Davy Gaussen > Sent: 06/07/05 12:06 > To: nagios-users > Subject: [Nagios-users] Web authentication issues > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > Hi everyone, > > I have a weird problem in the Nagios web authentication. > > I have set all the parameters in httpd.conf (scriptalias, etc...), create htpasswd.users file, .htaccess file, cgi.cfg, set the rights permissions on these files, etc.... And then, I can authenticate with a user but I see "logged in as ?" in Nagios. So I do not have any rights to see cgi pages. And, when I change the cgi.cfg option parameter "default_user_name=nagios" for instance, I can now login in with the user yann (for instance) BUT I see "logged in as nagios" in the Nagios frontend. If I remove the cgi parameter, the "logged in as ?" appears again. > > Could someone help me please ? > > Davy > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op?k > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ludo.Bosmans at aureusim.be Wed Jul 6 13:51:59 2005 From: Ludo.Bosmans at aureusim.be (Ludo Bosmans) Date: Wed, 6 Jul 2005 13:51:59 +0200 Subject: performance problems Message-ID: <02769B432700E649B14C0847840DC83B378CA3@becompanysrv020.consulting.becompany> Hi, Some impotant params are not posted. Were are: Service_interleave_factor Inter_check_delay_method Regards, Ludo -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Javier Castillo Alcibar Sent: woensdag 6 juli 2005 12:05 To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] performance problems Hello Hendrik, The machine is a DL380, 2xCPU 2.8Ghz, 2Gb RAM. I think it has enough hw resources..... Technically: alhmngsrv2:/etc/nagios# vmstat 5 procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu---- r b swpd free buff cache si so bi bo in cs us sy id wa 0 0 4 215764 222008 594536 0 0 0 0 0 1 6 4 88 2 1 0 4 211028 222008 594536 0 0 0 246 1170 0 4 1 93 2 1 0 4 202228 222008 594536 0 0 0 314 1182 0 13 2 83 3 0 0 4 205300 222008 594536 0 0 0 126 1167 0 8 1 90 1 18 0 4 209660 222008 594536 0 0 0 275 1207 0 1 1 94 4 0 0 4 209596 222008 594536 0 0 0 229 1143 0 2 1 96 2 0 0 4 202428 222012 594532 0 0 0 77 1117 0 5 1 94 0 2 0 4 186940 222016 594528 0 0 0 110 1145 0 19 2 80 0 2 0 4 190076 222016 594528 0 0 0 245 1127 0 1 1 96 2 17 0 4 191020 222016 594528 0 0 0 150 1128 0 2 1 96 2 2 0 4 198316 222016 594460 0 0 0 286 1138 0 3 1 94 2 0 0 4 197004 222020 594456 0 0 0 168 1125 0 2 1 96 2 17 0 4 196436 222028 594448 0 0 0 396 1210 0 2 1 93 3 9 0 4 205908 222028 594448 0 0 0 393 1244 0 3 1 92 3 It's very strange, because, when I start nagios, everything goes nicely, plugins execution times and latencies are ok, but two or three minutes later, nagios starts getting strange time values, for example: 1120644060 FIREWALL PING OK 1 HARD 9 157 FPING OK - 192.168.0.1 (loss=0%, rta=72.400000 ms) loss=0%;10;30;0;100 rta=0.072400s;2.000000;5.000000;0.000000 Executiontime=9 and Latency=157 ???? Why? This test have had no packet loss, the machine is working nicely....but... Another strange thing I noticed: if have "max_concurrent_checks=120", why are so many times that nagios is running only 1,2,3,4 plugins at the same time? It's true, I'm very confused.... Thx in advance, Javier. -----Mensaje original----- De: Hendrik Baecker [mailto:b00mer at gmx.net] Enviado el: mi?rcoles, 06 de julio de 2005 10:49 Para: Javier Castillo Alcibar CC: nagios-users at lists.sourceforge.net Asunto: Re: [Nagios-users] performance problems Hello Javier, try to figure out where your Service Latencies comes from. Hints are: in nagios.cfg process_performance_data=0 http://nagios.sourceforge.net/docs/1_0/perfdata.html Out of the performance data you can perhaps see where your latencies comes from. Other ways were to view a 'top' and have a look to the swap memory, the load and perhaps the 'wa' CPU count Its not quiet good to have a server swapping, to have a high load and very ugly if your server is waiting for I/O... Javier Castillo Alcibar schrieb: >Hi everybody!! > >I have strange performance problem with my nagios 1.3 server(debian >sarge). It checks very slowly, I can see this info using extinfo.cgi. >How can I debug this? Any hint/trick? Any parameter? > >Program-Wide Performance Information > >Active Checks: > Time Frame Checks Completed ><= 1 minute: 95 (28.1%) ><= 5 minutes: 283 (83.7%) ><= 15 minutes: 338 (100.0%) ><= 1 hour: 338 (100.0%) >Since program start: 338 (100.0%) > > >Metric Min. Max. Average >Check Execution Time: < 1 sec 24 sec 7.201 sec >Check Latency: 99 sec 135 sec 119.867 sec >Percent State Change: 0.00% 0.00% 0.00% > > >Passive Checks: > Time Frame Checks Completed ><= 1 minute: 0 (0.0%) ><= 5 minutes: 0 (0.0%) ><= 15 minutes: 0 (0.0%) ><= 1 hour: 0 (0.0%) >Since program start: 0 (0.0%) > > >Metric Min. Max. Average >Percent State Change: 0.00% 0.00% 0.00% > ># >log_file=/var/log/nagios/nagios.log >cfg_file=/etc/nagios/checkcommands.cfg >cfg_file=/etc/nagios/misccommands.cfg >cfg_file=/etc/nagios/contactgroups.cfg >cfg_file=/etc/nagios/contacts.cfg >cfg_file=/etc/nagios/dependencies.cfg >cfg_file=/etc/nagios/escalations.cfg >cfg_file=/etc/nagios/hostgroups.cfg >cfg_file=/etc/nagios/hosts.cfg >cfg_file=/etc/nagios/services.cfg >cfg_file=/etc/nagios/timeperiods.cfg >resource_file=/etc/nagios/resource.cfg >temp_file=/var/log/nagios/nagios.tmp >status_file=/var/log/nagios/status.log >aggregate_status_updates=1 >status_update_interval=15 >nagios_user=nagios >nagios_group=nagios >enable_notifications=1 >execute_service_checks=1 >accept_passive_service_checks=1 >enable_event_handlers=1 >log_rotation_method=d >log_archive_path=/var/log/nagios/archives >check_external_commands=1 >command_check_interval=-1 >comment_file=/var/log/nagios/comment.log >downtime_file=/var/log/nagios/downtime.log >command_file=/var/log/nagios/rw/nagios.cmd >lock_file=/var/log/nagios/nagios.lock >retain_state_information=1 >state_retention_file=/var/log/nagios/status.sav >retention_update_interval=60 >use_retained_program_state=0 >use_syslog=1 >log_notifications=1 >log_service_retries=1 >log_host_retries=1 >log_event_handlers=1 >log_initial_states=0 >log_external_commands=1 >log_passive_service_checks=1 >sleep_time=1 >max_concurrent_checks=120 >#service_reaper_frequency=10 >service_reaper_frequency=5 >interval_length=60 >use_agressive_host_checking=0 >enable_flap_detection=0 >low_service_flap_threshold=5.0 >high_service_flap_threshold=20.0 >low_host_flap_threshold=5.0 >high_host_flap_threshold=20.0 >soft_state_dependencies=0 >service_check_timeout=30 >host_check_timeout=30 >event_handler_timeout=60 >notification_timeout=60 >ocsp_timeout=5 >perfdata_timeout=5 >obsess_over_services=0 >process_performance_data=0 >check_for_orphaned_services=0 >check_service_freshness=1 >freshness_check_interval=60 >admin_email=nagios >admin_pager=pagenagios >date_format=euro > > > >------------------------------------------------------- >SF.Net email is sponsored by: Discover Easy Linux Migration Strategies >from IBM. Find simple to follow Roadmaps, straightforward articles, >informative Webcasts and more! Get everything you need to get up to >speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > > > > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=ick _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Javier.Castillo at alhambra-eidos.com Wed Jul 6 13:54:26 2005 From: Javier.Castillo at alhambra-eidos.com (Javier Castillo Alcibar) Date: Wed, 6 Jul 2005 13:54:26 +0200 Subject: performance problems Message-ID: <635868854FEE3845B2D264D9D0E4017D14B165@ALHM3SRV.alhpridom.as> Umm, are those parameters valid in nagios1.x?? alhmngsrv2:/etc/nagios# grep service_interleave_factor nagios.cfg alhmngsrv2:/etc/nagios# grep inter_check_delay_method nagios.cfg I don't have such parameters.... -----Mensaje original----- De: Ludo Bosmans [mailto:Ludo.Bosmans at aureusim.be] Enviado el: mi?rcoles, 06 de julio de 2005 13:52 Para: Javier Castillo Alcibar; nagios-users at lists.sourceforge.net Asunto: RE: [Nagios-users] performance problems Hi, Some impotant params are not posted. Were are: Service_interleave_factor Inter_check_delay_method Regards, Ludo -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Javier Castillo Alcibar Sent: woensdag 6 juli 2005 12:05 To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] performance problems Hello Hendrik, The machine is a DL380, 2xCPU 2.8Ghz, 2Gb RAM. I think it has enough hw resources..... Technically: alhmngsrv2:/etc/nagios# vmstat 5 procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu---- r b swpd free buff cache si so bi bo in cs us sy id wa 0 0 4 215764 222008 594536 0 0 0 0 0 1 6 4 88 2 1 0 4 211028 222008 594536 0 0 0 246 1170 0 4 1 93 2 1 0 4 202228 222008 594536 0 0 0 314 1182 0 13 2 83 3 0 0 4 205300 222008 594536 0 0 0 126 1167 0 8 1 90 1 18 0 4 209660 222008 594536 0 0 0 275 1207 0 1 1 94 4 0 0 4 209596 222008 594536 0 0 0 229 1143 0 2 1 96 2 0 0 4 202428 222012 594532 0 0 0 77 1117 0 5 1 94 0 2 0 4 186940 222016 594528 0 0 0 110 1145 0 19 2 80 0 2 0 4 190076 222016 594528 0 0 0 245 1127 0 1 1 96 2 17 0 4 191020 222016 594528 0 0 0 150 1128 0 2 1 96 2 2 0 4 198316 222016 594460 0 0 0 286 1138 0 3 1 94 2 0 0 4 197004 222020 594456 0 0 0 168 1125 0 2 1 96 2 17 0 4 196436 222028 594448 0 0 0 396 1210 0 2 1 93 3 9 0 4 205908 222028 594448 0 0 0 393 1244 0 3 1 92 3 It's very strange, because, when I start nagios, everything goes nicely, plugins execution times and latencies are ok, but two or three minutes later, nagios starts getting strange time values, for example: 1120644060 FIREWALL PING OK 1 HARD 9 157 FPING OK - 192.168.0.1 (loss=0%, rta=72.400000 ms) loss=0%;10;30;0;100 rta=0.072400s;2.000000;5.000000;0.000000 Executiontime=9 and Latency=157 ???? Why? This test have had no packet loss, the machine is working nicely....but... Another strange thing I noticed: if have "max_concurrent_checks=120", why are so many times that nagios is running only 1,2,3,4 plugins at the same time? It's true, I'm very confused.... Thx in advance, Javier. -----Mensaje original----- De: Hendrik Baecker [mailto:b00mer at gmx.net] Enviado el: mi?rcoles, 06 de julio de 2005 10:49 Para: Javier Castillo Alcibar CC: nagios-users at lists.sourceforge.net Asunto: Re: [Nagios-users] performance problems Hello Javier, try to figure out where your Service Latencies comes from. Hints are: in nagios.cfg process_performance_data=0 http://nagios.sourceforge.net/docs/1_0/perfdata.html Out of the performance data you can perhaps see where your latencies comes from. Other ways were to view a 'top' and have a look to the swap memory, the load and perhaps the 'wa' CPU count Its not quiet good to have a server swapping, to have a high load and very ugly if your server is waiting for I/O... Javier Castillo Alcibar schrieb: >Hi everybody!! > >I have strange performance problem with my nagios 1.3 server(debian >sarge). It checks very slowly, I can see this info using extinfo.cgi. >How can I debug this? Any hint/trick? Any parameter? > >Program-Wide Performance Information > >Active Checks: > Time Frame Checks Completed ><= 1 minute: 95 (28.1%) ><= 5 minutes: 283 (83.7%) ><= 15 minutes: 338 (100.0%) ><= 1 hour: 338 (100.0%) >Since program start: 338 (100.0%) > > >Metric Min. Max. Average >Check Execution Time: < 1 sec 24 sec 7.201 sec >Check Latency: 99 sec 135 sec 119.867 sec >Percent State Change: 0.00% 0.00% 0.00% > > >Passive Checks: > Time Frame Checks Completed ><= 1 minute: 0 (0.0%) ><= 5 minutes: 0 (0.0%) ><= 15 minutes: 0 (0.0%) ><= 1 hour: 0 (0.0%) >Since program start: 0 (0.0%) > > >Metric Min. Max. Average >Percent State Change: 0.00% 0.00% 0.00% > ># >log_file=/var/log/nagios/nagios.log >cfg_file=/etc/nagios/checkcommands.cfg >cfg_file=/etc/nagios/misccommands.cfg >cfg_file=/etc/nagios/contactgroups.cfg >cfg_file=/etc/nagios/contacts.cfg >cfg_file=/etc/nagios/dependencies.cfg >cfg_file=/etc/nagios/escalations.cfg >cfg_file=/etc/nagios/hostgroups.cfg >cfg_file=/etc/nagios/hosts.cfg >cfg_file=/etc/nagios/services.cfg >cfg_file=/etc/nagios/timeperiods.cfg >resource_file=/etc/nagios/resource.cfg >temp_file=/var/log/nagios/nagios.tmp >status_file=/var/log/nagios/status.log >aggregate_status_updates=1 >status_update_interval=15 >nagios_user=nagios >nagios_group=nagios >enable_notifications=1 >execute_service_checks=1 >accept_passive_service_checks=1 >enable_event_handlers=1 >log_rotation_method=d >log_archive_path=/var/log/nagios/archives >check_external_commands=1 >command_check_interval=-1 >comment_file=/var/log/nagios/comment.log >downtime_file=/var/log/nagios/downtime.log >command_file=/var/log/nagios/rw/nagios.cmd >lock_file=/var/log/nagios/nagios.lock >retain_state_information=1 >state_retention_file=/var/log/nagios/status.sav >retention_update_interval=60 >use_retained_program_state=0 >use_syslog=1 >log_notifications=1 >log_service_retries=1 >log_host_retries=1 >log_event_handlers=1 >log_initial_states=0 >log_external_commands=1 >log_passive_service_checks=1 >sleep_time=1 >max_concurrent_checks=120 >#service_reaper_frequency=10 >service_reaper_frequency=5 >interval_length=60 >use_agressive_host_checking=0 >enable_flap_detection=0 >low_service_flap_threshold=5.0 >high_service_flap_threshold=20.0 >low_host_flap_threshold=5.0 >high_host_flap_threshold=20.0 >soft_state_dependencies=0 >service_check_timeout=30 >host_check_timeout=30 >event_handler_timeout=60 >notification_timeout=60 >ocsp_timeout=5 >perfdata_timeout=5 >obsess_over_services=0 >process_performance_data=0 >check_for_orphaned_services=0 >check_service_freshness=1 >freshness_check_interval=60 >admin_email=nagios >admin_pager=pagenagios >date_format=euro > > > >------------------------------------------------------- >SF.Net email is sponsored by: Discover Easy Linux Migration Strategies >from IBM. Find simple to follow Roadmaps, straightforward articles, >informative Webcasts and more! Get everything you need to get up to >speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > > > > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=ick _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Martin.Wolfert at ptv.de Wed Jul 6 14:20:39 2005 From: Martin.Wolfert at ptv.de (Martin Wolfert) Date: Wed, 6 Jul 2005 14:20:39 +0200 Subject: AW: Problems with ; Message-ID: <9BAD90A62DF5AD4CA65EFCAAA6C012EE3E7D57@ska-wn-e05.ptv.ptv.de> Hi Pete, thanks alot for the information ..... it works fine now :-)) Best regards Martin > -----Urspr?ngliche Nachricht----- > Von: Pete Dewell [mailto:pete at stuff-done.co.uk] > Gesendet: Mittwoch, 6. Juli 2005 11:40 > An: Martin Wolfert > Cc: 'nagios-users at lists.sourceforge.net' > Betreff: Re: [Nagios-users] Problems with ; > > > Try setting up $USER$ variables in the resource.cfg file. > > e.g. > $USER1$='bla;foo' > $USER2$='pwd' > > Then use the command > check_http -t 30 -H $HOSTADDRESS$ -u "$ARG1$$HOSTADDRESS$$ARG2$" -a > "$USER1$:$USER2$" > > I had similar problems with some passwords, and some other person on > this list kindly pointed this solution out to me. This also has the > benefit of hiding your users/pwds from the standard config files. > > Pete Dewell > > Martin Wolfert wrote: > > Hi all nagios users, > > > > i had to check an service with the check_httpp plugin. > > So there is the following line in the checkcommands.cfg: > > > > command_line /usr/lib/nagios/plugins/check_http -t 30 -H > > $HOSTADDRESS$ -u "$ARG1$$HOSTADDRESS$$ARG2$" -a "bla;foo:pwd" > > > > where "bla;foo" is a fix statement for the mandant;client > combination, > > folowing by the pass, seperated by ":" . This > circumstances can not be > > changed, because our application (i had to check) needs this syntax. > > > > So ... i think, that nagios do NOT like any ";" in his > config files, but > > i had to work with it on this place :-((. > > > > Has anyone any workaround to make this http check with the required > > syntax ? > > > > > > Best regards > > > > > > Martin > > > > > > PTV AG > > Webadministrator > > R2.2 - Betrieb Internet > > Tel.: +49 7 21 96 51- 7128 > > Fax: +49 7 21 96 51- 599 > > E-Mail: martin.wolfert at ptv.de > > ____________________________ > > PTV > > Planung Transport Verkehr AG > > Stumpfstrasse 1 > > 76131 Karlsruhe > > Germany > > http://www.ptv.de > > http://www.Reiseplanung.de > > http://www.varta-guide.de > > http://www.CityGuideFinder.de > > > > -- > Pete Dewell | Stuff Done > pete at stuff-done.co.uk > > > ** The information contained in this message, including any > attachment, > is confidential and may be privileged or otherwise protected from > disclosure. The information is intended only for the person > or entity to > which it is addressed. If you are not the intended recipient, please > contact the sender and delete this message from your system. > Any review, > re-transmission, distribution or other use of this information by > persons or entities other than the intended recipient is prohibited. * > -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc at ena.com Wed Jul 6 16:42:57 2005 From: marc at ena.com (Marc Powell) Date: Wed, 6 Jul 2005 09:42:57 -0500 Subject: performance problems Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Javier Castillo Alcibar > Sent: Wednesday, July 06, 2005 6:54 AM > To: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] performance problems > > Umm, are those parameters valid in nagios1.x?? Yes, that's what the docs are for... > > alhmngsrv2:/etc/nagios# grep service_interleave_factor nagios.cfg http://nagios.sourceforge.net/docs/1_0/configmain.html#service_interleav e_factor > alhmngsrv2:/etc/nagios# grep inter_check_delay_method nagios.cfg http://nagios.sourceforge.net/docs/1_0/configmain.html#inter_check_delay _method -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Jul 6 16:54:01 2005 From: marc at ena.com (Marc Powell) Date: Wed, 6 Jul 2005 09:54:01 -0500 Subject: weird error in rrd Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Evert Goor > Sent: Wednesday, July 06, 2005 3:02 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] weird error in rrd > > Hi all > Got the nagios_grapher partly working only having one problem left > all the graps show me a error like "cannot parse CF in > 'DEF:RTA=/var/lib/nagios/rrd/pc-name/345435345435.rrd:RTA:MAX > > What means this CF error. Looked around on de RRDTool site but not a clue > where to look now. CF is the Consolidation Function. This is usually AVERAGE but can be MAX(IMUM), MIN(IMUM) or LAST. See http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/tut/rrd-beginners.en. html. It's touched on in the RRA section. It would appear that when you created the rrd file you did not specify it to calculate/store MAX for RTA. -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jjesse at iserv.net Wed Jul 6 16:57:31 2005 From: jjesse at iserv.net (Jonathan Jesse) Date: Wed, 6 Jul 2005 10:57:31 -0400 Subject: Problems starting Nagios Message-ID: <200507061057.31648.jjesse@iserv.net> Brand new to Nagios and have installed in on a test machine @ home and it works great. ?Using debian and used apt-get install nagios-mysql (as I wanted MySQL support) to install and configure Nagios. I have made the changes in cgi.cfg and resource.cfg to write to the database and also created the database correctly through create_mysql included in the install. Created my configs and verified that it works correctly through nagios -v nagios.cfg and it returns no errors. If I start nagios w/ nagios /etc/nagios/nagios.cfg in the log file it shows Nagios starting.... however when I go to the webpage it shows up as the monitoring process may not be running. Also through /etc/init.d/nagios start in the log it shows nagios starting, but same errror message in the web page. If I do a /etc/init.d/nagios reload it says ?"Reloading nagios configuration files. ? Not running. " Any help would be apprecaited ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From aivaturi2 at unlnotes.unl.edu Wed Jul 6 17:00:33 2005 From: aivaturi2 at unlnotes.unl.edu (Aditya Ivaturi) Date: Wed, 6 Jul 2005 10:00:33 -0500 Subject: notification reasons Message-ID: Is there any way to configure descriptive notifications? For e.g. if a server is unavailable and then it comes back up, nagios sends me two notifications - one for down and one for up. I'd like to see a small info why the server was down when the up notification is received. May be a tail of the messages or something similar. May be this is far fetched or may be some one has done something similar. Any suggestions? --Turi -------------- next part -------------- An HTML attachment was scrubbed... URL: From Evert.Goor at benp.nl Wed Jul 6 17:04:49 2005 From: Evert.Goor at benp.nl (Evert Goor) Date: Wed, 6 Jul 2005 17:04:49 +0200 Subject: weird error in rrd Message-ID: <19CCC8E70E4FA941848269F0C5D832CC58A47C@post.systems.nl> I tried to extract is by commandline. And then i just get the answer 0x0. Is this bad or good. And just looking at the file i just get lots of nan and a few lines with some valeus. ----Original Message---- From: Marc Powell Sent: 06/07/05 17:00 To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] weird error in rrd -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Evert Goor > Sent: Wednesday, July 06, 2005 3:02 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] weird error in rrd > > Hi all > Got the nagios_grapher partly working only having one problem left > all the graps show me a error like "cannot parse CF in > 'DEF:RTA=/var/lib/nagios/rrd/pc-name/345435345435.rrd:RTA:MAX > > What means this CF error. Looked around on de RRDTool site but not a clue > where to look now. CF is the Consolidation Function. This is usually AVERAGE but can be MAX(IMUM), MIN(IMUM) or LAST. See http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/tut/rrd-beginners.en. html. It's touched on in the RRA section. It would appear that when you created the rrd file you did not specify it to calculate/store MAX for RTA. -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=ick _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Jul 6 17:15:07 2005 From: marc at ena.com (Marc Powell) Date: Wed, 6 Jul 2005 10:15:07 -0500 Subject: notification reasons Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Aditya Ivaturi > Sent: Wednesday, July 06, 2005 10:01 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] notification reasons > > > Is there any way to configure descriptive notifications? For e.g. if a > server is unavailable and then it comes back up, nagios sends me two > notifications - one for down and one for up. I'd like to see a small info > why the server was down when the up notification is received. May be a > tail of the messages or something similar. May be this is far fetched or > may be some one has done something similar. Any suggestions? The only macro's you have available for notification directly from Nagios are listed here -- http://nagios.sourceforge.net/docs/1_0/macros.html That being said, your notification command can be any script you like. It is certainly possible with a little programming to take the relevant macro's in as command line arguments and gather additional information from other sources to include in the email that you send. -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Jul 6 17:18:22 2005 From: marc at ena.com (Marc Powell) Date: Wed, 6 Jul 2005 10:18:22 -0500 Subject: weird error in rrd Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Evert Goor > Sent: Wednesday, July 06, 2005 10:05 AM > To: nagios-users at lists.sourceforge.net > Subject: RE: RE: [Nagios-users] weird error in rrd > > I tried to extract is by commandline. And then i just get the answer 0x0. > Is this bad or good. And just looking at the file i just get lots of nan > and a few lines with some valeus. I wouldn't expect it to be returning a hex number so probably bad. NaN's are normal if values haven't been populated for those time periods. What command did you use to create your rrd? Did you specify an RRA with a CF of MAX for RTA? -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tringer at mpr.org Wed Jul 6 17:48:31 2005 From: tringer at mpr.org (Torleiv Ringer) Date: Wed, 06 Jul 2005 10:48:31 -0500 Subject: - plugin to check file system writeable ? In-Reply-To: References: Message-ID: <1120664911.1916.227.camel@unwise.mpr.org> > Is there a way to check if the file sytem is writeable ? (windows & > linux) ? bash$ cat /etc/mtab /dev/hda5 /usr ext2 rw 0 0 /dev/hda6 /var ext2 rw 0 0 /dev/sdb1 /opt ext3 rw 0 0 The fourth field shows the read-write status. -- Torleiv Ringer Broadcast Systems Administrator Minnesota Public Radio http://www.mpr.org ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mcunietti at enter.it Wed Jul 6 18:08:58 2005 From: mcunietti at enter.it (Mariano Cunietti) Date: Wed, 06 Jul 2005 18:08:58 +0200 Subject: SOLVED - passive checks AGAIN In-Reply-To: References: Message-ID: <1120666137.17453.35.camel@bytecode.enter.it> turn on external commands in nagios.cfg: check_external_commands=1 it took all day to read Nagios source code and understand what the hell was waiting for to parse nagios.cmd. BTW, nagios documentation is a real sh*t.... bye all On Tue, 2005-07-05 at 19:57, Marc Powell wrote: > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of Mariano Cunietti > > Sent: Tuesday, July 05, 2005 10:29 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] passive checks AGAIN > > > > Hello everybody, > > I'm getting crazy to get passive checks to work on Nagios 1.2. > > I've set up everything so that snmp traps sent from Cisco ATM router > > write correctly to nagios.cmd. > > I've set up a service to handle more Virtual lines, and to declare > which > > VRF virtual line is going up or down, using the text space in the > > nagios.cmd line. > > > > Here's nagios.cmd: > > > > [1120576366] PROCESS_SERVICE_CHECK_RESULT;atm1-mi;MPLS-VRF;0;milko > > > > Yet, I was forced by Nagios to set up also a dummy active check > > (check_dummy), otherwise it would refuse to startup. > > > > services.cfg > > > > define service { > > use generic-service > > name passive-service > > is_volatile 1 > > passive_checks_enabled 1 > > max_check_attempts 10 > > normal_check_interval 1 > > retry_check_interval 1 > > notification_interval 60 ; 2h > > active_checks_enabled 0 > > notification_period 24x7 > > notification_options c,r > > check_command check_dummy!3 > > check_period 24x7 > > check_freshness 1 > > register 0 > > } > > > > define service{ > > use passive-service > > host_name atm1-mi > > service_description MPLS-VRF > > contact_groups admins-SMS > > } > > > > checkcommands.cfg: > > > > define command{ > > command_name check_dummy > > command_line $USER1$/check_dummy $ARG1$ > > } > > > > Now, the BIG problem is that Nagios parses nagios.cmd, but the status > > reported is the one set in check_command statement, and not the one > > reported in nagios.cmd. So I always get all lines in UNKNOWN(=exit > > status 3) state. > > > > Any hint? Please help > > Do you have retention enabled? If so, read the Retention Notes at > http://nagios.sourceforge.net/docs/1_0/xodtemplate.html. > > Does the Scheduling Queue show a valid Next Check time for this service? > It should show 'N/A'. A valid time would indicate a retention problem. > > You also have freshness checking enabled but didn't specify your > freshness_check_interval from nagios.cfg. If your > freshness_check_interval is <= 60 seconds you'd probably see the results > above. I'd try disabling freshness checking on this service to see if > that helps resolve the problem. More information on how freshness > checking works can be found at > http://nagios.sourceforge.net/docs/1_0/freshness.html > > -- > Marc > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- ------------------------- Mariano Cunietti System Administrator Enter S.r.l. Via Stefanardo da Vimercate, 28 20128 - Milano - Italy Tel. +39 02 25514319 Fax +39 02 25514303 mcunietti at enter.it www.enter.it - www.enterpoint.it --------------------------- Gruppo Y2K - www.gruppoy2k.it ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Evert.Goor at benp.nl Wed Jul 6 18:47:47 2005 From: Evert.Goor at benp.nl (Evert Goor) Date: Wed, 6 Jul 2005 18:47:47 +0200 Subject: Problems starting Nagios Message-ID: <19CCC8E70E4FA941848269F0C5D832CC58A47E@post.systems.nl> Which version of Nagios are you running ? They dropped MySql support in 2.X ----Original Message---- From: Jonathan Jesse Sent: 06/07/05 17:02 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Problems starting Nagios -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Brand new to Nagios and have installed in on a test machine @ home and it works great. ?Using debian and used apt-get install nagios-mysql (as I wanted MySQL support) to install and configure Nagios. I have made the changes in cgi.cfg and resource.cfg to write to the database and also created the database correctly through create_mysql included in the install. Created my configs and verified that it works correctly through nagios -v nagios.cfg and it returns no errors. If I start nagios w/ nagios /etc/nagios/nagios.cfg in the log file it shows Nagios starting.... however when I go to the webpage it shows up as the monitoring process may not be running. Also through /etc/init.d/nagios start in the log it shows nagios starting, but same errror message in the web page. If I do a /etc/init.d/nagios reload it says ?"Reloading nagios configuration files. ? Not running. " Any help would be apprecaited ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=ick _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Evert.Goor at benp.nl Wed Jul 6 18:46:13 2005 From: Evert.Goor at benp.nl (Evert Goor) Date: Wed, 6 Jul 2005 18:46:13 +0200 Subject: weird error in rrd Message-ID: <19CCC8E70E4FA941848269F0C5D832CC58A47D@post.systems.nl> Nagios grapher used this commando rrdtool create /var/lib/nagios/rrd/pcevert/1b8e1227dd05027c7f42fe7940a07b71.rrd --step=60 DS:Loss:GAUGE:600:U:U DS:RTA:GAUGE:600:U:U RRA:AVERAGE:0.5:5:600 RRA:AVERAGE:0.5:30:600 RRA:AVERAGE:0.5:120:600 RRA:MAX:0.5:120:600 RRA:AVERAGE:0.5:1440:600 RRA:MAX:0.5:1440:600 So it lookes good to me. Original Message---- From: Marc Powell Sent: 06/07/05 17:23 To: nagios-users at lists.sourceforge.net Subject: RE: RE: [Nagios-users] weird error in rrd -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Evert Goor > Sent: Wednesday, July 06, 2005 10:05 AM > To: nagios-users at lists.sourceforge.net > Subject: RE: RE: [Nagios-users] weird error in rrd > > I tried to extract is by commandline. And then i just get the answer 0x0. > Is this bad or good. And just looking at the file i just get lots of nan > and a few lines with some valeus. I wouldn't expect it to be returning a hex number so probably bad. NaN's are normal if values haven't been populated for those time periods. What command did you use to create your rrd? Did you specify an RRA with a CF of MAX for RTA? -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=ick _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jjesse at iserv.net Wed Jul 6 19:11:04 2005 From: jjesse at iserv.net (Jonathan Jesse) Date: Wed, 6 Jul 2005 13:11:04 -0400 Subject: Problems starting Nagios In-Reply-To: <19CCC8E70E4FA941848269F0C5D832CC58A47E@post.systems.nl> References: <19CCC8E70E4FA941848269F0C5D832CC58A47E@post.systems.nl> Message-ID: <200507061311.04827.jjesse@iserv.net> It appears I am using Nagios v 1.3. I probablly need to do an upgrade but is there a newer version in debian or will have to install from source? On Wednesday 06 July 2005 12:47 pm, Evert Goor wrote: > Which version of Nagios are you running ? > They dropped MySql support in 2.X > > ----Original Message---- > From: Jonathan Jesse > Sent: 06/07/05 17:02 > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Problems starting Nagios > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > Brand new to Nagios and have installed in on a test machine @ home and it > works great. ?Using debian and used apt-get install nagios-mysql (as I > wanted MySQL support) to install and configure Nagios. > > I have made the changes in cgi.cfg and resource.cfg to write to the > database and also created the database correctly through create_mysql > included in the install. > > Created my configs and verified that it works correctly through nagios -v > nagios.cfg and it returns no errors. > > If I start nagios w/ nagios /etc/nagios/nagios.cfg in the log file it shows > Nagios starting.... however when I go to the webpage it shows up as the > monitoring process may not be running. > > Also through /etc/init.d/nagios start in the log it shows nagios starting, > but same errror message in the web page. > > If I do a /etc/init.d/nagios reload it says > ?"Reloading nagios configuration files. > ? Not running. " > > Any help would be apprecaited > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=ick > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > ::: reporting any issue. Messages without supporting info will risk being > ::: sent to /dev/null > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op?k > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > ::: reporting any issue. Messages without supporting info will risk being > ::: sent to /dev/null ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From eford at nexusenergy.com Wed Jul 6 19:12:14 2005 From: eford at nexusenergy.com (Edward Ford) Date: Wed, 6 Jul 2005 13:12:14 -0400 Subject: email notification question Message-ID: I finally have Nagios up and running pretty well at this point. I did get an interesting event happen that I would like to get some feedback on if possible. - All was working well notifications for critical and recovery went by email working fine - As a last test I decided to reboot to make sure all still worked well. - I got over 5000 email notifications for critical and recovery ( I have about 40 servers with three things being checked each: cpu, disk and memory) three multiplied by 40 should have been at most 120 emails. I figured that nagios was rechecking everything. - I am not so sure why I got over 5000 email notifications (that is five thousand). Thank goodness that I am also one of the email admins so I was able to delete everything that went to my email address while the 5000 were coming in and did not blue screen the mail server. Any suggestions on how I could have gotten over 5000 because I rebooted the nagios server.. Thanks; Eddie -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew at profitability.net Wed Jul 6 19:18:39 2005 From: andrew at profitability.net (Andrew Cruse) Date: Wed, 6 Jul 2005 13:18:39 -0400 Subject: email notification question In-Reply-To: References: Message-ID: Did you have trouble getting notifications set up properly at first? The only way I could see that happening is if you had Sendmail (or whatever MTA you're using on that server) misconfigured and all those alerts from all the time you were testing were queued up and didn't get sent until sendmail was fixed and restarted which caused the queued messages to be retried, this time successfully. Andrew _____ From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Edward Ford Sent: Wednesday, July 06, 2005 1:12 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] email notification question I finally have Nagios up and running pretty well at this point. I did get an interesting event happen that I would like to get some feedback on if possible. - All was working well notifications for critical and recovery went by email working fine - As a last test I decided to reboot to make sure all still worked well. - I got over 5000 email notifications for critical and recovery ( I have about 40 servers with three things being checked each: cpu, disk and memory) three multiplied by 40 should have been at most 120 emails. I figured that nagios was rechecking everything. - I am not so sure why I got over 5000 email notifications (that is five thousand). Thank goodness that I am also one of the email admins so I was able to delete everything that went to my email address while the 5000 were coming in and did not blue screen the mail server. Any suggestions on how I could have gotten over 5000 because I rebooted the nagios server.. Thanks; Eddie -------------- next part -------------- An HTML attachment was scrubbed... URL: From Edward.Smith at demandtec.com Wed Jul 6 19:29:22 2005 From: Edward.Smith at demandtec.com (Ed Smith) Date: Wed, 6 Jul 2005 10:29:22 -0700 Subject: Command line options Message-ID: <2B5C62C548D2FC48BC0334E8AE4941850663451A@parrot.demandtec.com> hello, Does anyone know if there is a way to acknowledge something from the command line, or by editing a file. We have nagios setup in a place where we cannot access the web interface, but we need to acknowledge a service alert (for the web server, ironically). Is there a way to do this from the os lever? 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. ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gpadilla at cbct.com Wed Jul 6 20:06:24 2005 From: gpadilla at cbct.com (Guillermo Padilla) Date: Wed, 6 Jul 2005 14:06:24 -0400 Subject: check_Ntp problem Message-ID: <097D3590441CB345A836C4B3F7F813DC44E4BE@mailsrv.cbct.com> I've been able to successfully build a nagios server before, now I'm building another one and so far everything is working well except for one check command. Check_ntp The result of this command shoots out an error stating 'could not open ntpdate' I've made sure I have a working ntpdate in /usr/sbin as well as made sure that this command runs on the correct nagios path. I"ve looked at the check_ntp script and I don't see a variable of where I could enter the path for the actual ntpdate script. Any ideas of what I might be missing? Thanks Guillermo -------------- next part -------------- An HTML attachment was scrubbed... URL: From lgetschel at denver.westerngeco.slb.com Wed Jul 6 20:20:29 2005 From: lgetschel at denver.westerngeco.slb.com (Lewis Getschel) Date: Wed, 06 Jul 2005 12:20:29 -0600 Subject: Command line options In-Reply-To: <2B5C62C548D2FC48BC0334E8AE4941850663451A@parrot.demandtec.com> References: <2B5C62C548D2FC48BC0334E8AE4941850663451A@parrot.demandtec.com> Message-ID: <42CC20ED.2080400@denver.westerngeco.slb.com> Ed- Is it possible? Yes! anything is possible ;-) Is is Easy? Well... it's not a one-liner. I have an event handler that automatically acknowledges my disk warnings when they go below 10% free. (And emails the users...) Here is that portion of the script to create the proper format of the acknowledgment and service comment to place into the nagios "command pipe" # This is not a complete script here, just a snippet # 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 # 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 # In next line, 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" # Comment appears as: 06-14-2005 09:41:30 Nagios_script ACKNOWLEDGEMENT:FS 10% free disk,mail sent to 23 users 1412 Yes cmdline2="[$datetime] ACKNOWLEDGE_SVC_PROBLEM;$4;$5;0;FS $freediskspace freedisk, mail sent to $numberofmailsent users" `$echocmd $cmdline1 >> $CommandFile` `$echocmd $cmdline2 >> $CommandFile` Ed Smith wrote: >hello, > >Does anyone know if there is a way to acknowledge something from the command line, or by editing a file. We have nagios setup in a place where we cannot access the web interface, but we need to acknowledge a service alert (for the web server, ironically). Is there a way to do this from the os lever? 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. > > > > >------------------------------------------------------- >SF.Net email is sponsored by: Discover Easy Linux Migration Strategies >from IBM. Find simple to follow Roadmaps, straightforward articles, >informative Webcasts and more! Get everything you need to get up to >speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&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.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 6 20:31:35 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed, 6 Jul 2005 14:31:35 -0400 (EDT) Subject: check_Ntp problem In-Reply-To: <097D3590441CB345A836C4B3F7F813DC44E4BE@mailsrv.cbct.com> References: <097D3590441CB345A836C4B3F7F813DC44E4BE@mailsrv.cbct.com> Message-ID: The path is set in utils.pm by configure. You may also want to verify the the Nagios user can execute ntpdate On Wed, 6 Jul 2005, Guillermo Padilla wrote: > I've been able to successfully build a nagios server before, now I'm > building another one and so far everything is working well except for > one check command. > > > > Check_ntp > > > > The result of this command shoots out an error stating 'could not open > ntpdate' I've made sure I have a working ntpdate in /usr/sbin as well > as made sure that this command runs on the correct nagios path. > > > > I"ve looked at the check_ntp script and I don't see a variable of where > I could enter the path for the actual ntpdate script. > > > > Any ideas of what I might be missing? > > > > Thanks > > Guillermo > > -- ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gpadilla at cbct.com Wed Jul 6 20:47:26 2005 From: gpadilla at cbct.com (Guillermo Padilla) Date: Wed, 6 Jul 2005 14:47:26 -0400 Subject: check_Ntp problem Message-ID: <097D3590441CB345A836C4B3F7F813DC44E4CA@mailsrv.cbct.com> Thanks much! That worked. I'll make a note of utils.pm Thanks again g -----Original Message----- From: Subhendu Ghosh [mailto:sghosh at sghosh.org] Sent: Wednesday, July 06, 2005 2:32 PM To: Guillermo Padilla Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] check_Ntp problem The path is set in utils.pm by configure. You may also want to verify the the Nagios user can execute ntpdate On Wed, 6 Jul 2005, Guillermo Padilla wrote: > I've been able to successfully build a nagios server before, now I'm > building another one and so far everything is working well except for > one check command. > > > > Check_ntp > > > > The result of this command shoots out an error stating 'could not open > ntpdate' I've made sure I have a working ntpdate in /usr/sbin as well > as made sure that this command runs on the correct nagios path. > > > > I"ve looked at the check_ntp script and I don't see a variable of where > I could enter the path for the actual ntpdate script. > > > > Any ideas of what I might be missing? > > > > Thanks > > Guillermo > > -- ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tringer at mpr.org Wed Jul 6 20:49:00 2005 From: tringer at mpr.org (Torleiv Ringer) Date: Wed, 06 Jul 2005 13:49:00 -0500 Subject: check_Ntp problem In-Reply-To: <097D3590441CB345A836C4B3F7F813DC44E4BE@mailsrv.cbct.com> References: <097D3590441CB345A836C4B3F7F813DC44E4BE@mailsrv.cbct.com> Message-ID: <1120675740.1916.250.camel@unwise.mpr.org> On Wed, 2005-07-06 at 14:06 -0400, Guillermo Padilla wrote: > The result of this command shoots out an error stating ?could not open > ntpdate? I?ve made sure I have a working ntpdate in /usr/sbin as well > as made sure that this command runs on the correct nagios path. > I?ve looked at the check_ntp script and I don?t see a variable of > where I could enter the path for the actual ntpdate script. > It might be looking for /usr/bin/ntpq -- Torleiv Ringer Broadcast Systems Administrator Minnesota Public Radio http://www.mpr.org ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ktynagios at richard-group.com Wed Jul 6 21:23:11 2005 From: ktynagios at richard-group.com (Kurt Yoder) Date: Wed, 6 Jul 2005 15:23:11 -0400 Subject: cgi extended information disappeared Message-ID: <0aafd735175210f210eaf68c71ff996a@richard-group.com> Hi list Nagios is an excellent monitoring package, so thanks to the author(s) for writing it. I recently upgraded my Debian server to Sarge. Nagios continued to function properly after the upgrade, with one exception: I no longer see my extended host/service information icons on the status web page. I've looked around on Google and in the documentation, but I can't find anybody else who has mentioned this problem. My nagios version is now 1.3. I'm not certain what it was before the upgrade, although it was probably less than a year old. In my cgi.cfg, I have these two lines which are supposed to include the (unchanged) extended information for each host and service: xedtemplate_config_file=/etc/nagios/hostextinfo.cfg xedtemplate_config_file=/etc/nagios/serviceextinfo.cfg The services file starts off like this: define serviceextinfo{ name rrd-service register 0 icon_image graph.jpg icon_image_alt Performance graph notes_url /nagiosgraph/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$ } define serviceextinfo{ use rrd-service service_description Check disks host_name ads1-vpn,db1-vpn,db2-vpn,db3-vpn,files,greatdance-vpn,newns1- vpn,newns2-v } As mentioned, everything else is working properly. Did the syntax for extended info recently change? I tried copying the serviceextinfo objects directly into cgi.cfg, but this didn't make a difference. Any help is appreciated; thanks! -- Kurt Yoder ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From moshesharon at gmail.com Wed Jul 6 22:34:29 2005 From: moshesharon at gmail.com (Moshe Sharon) Date: Wed, 6 Jul 2005 20:34:29 +0000 (UTC) Subject: cgi extended information disappeared References: <0aafd735175210f210eaf68c71ff996a@richard-group.com> Message-ID: hello there are two posibilities (that i bumped into). that service extinfo disappear 1. wrong configuration input in the ext info file ( perhapse a problemtic } sign ). 2. if the cgi.cfg contains "xedtemplate_config_file=" with files that do not exists. means if you have: xedtemplate_config_file=1.cfg xedtemplate_config_file=2.cfg xedtemplate_config_file=3.cfg and 1.cfg and 3.cfg only exists. only the data from 1.cfg will be shown. hope it helped Moshe Sharon ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ktynagios at richard-group.com Wed Jul 6 23:10:43 2005 From: ktynagios at richard-group.com (Kurt Yoder) Date: Wed, 6 Jul 2005 17:10:43 -0400 Subject: cgi extended information disappeared In-Reply-To: References: <0aafd735175210f210eaf68c71ff996a@richard-group.com> Message-ID: Replies in-line On Jul 6, 2005, at 4:34 PM, Moshe Sharon wrote: > hello > > there are two posibilities (that i bumped into). that service extinfo > disappear > 1. wrong configuration input in the ext info file ( perhapse a > problemtic } > sign ). Is there some way to view debugging output of the cgi to see what is going on? I didn't change the extinfo files when I upgraded. They were working before the upgrade, so I can only assume that they contain no errors. > 2. if the cgi.cfg contains "xedtemplate_config_file=" with files that > do not > exists. > > means if you have: > xedtemplate_config_file=1.cfg > xedtemplate_config_file=2.cfg > xedtemplate_config_file=3.cfg > > and 1.cfg and 3.cfg only exists. only the data from 1.cfg will be > shown. Again, the configuration files are un-changed from before the update. I also know that both of my ext config files exist... -- Kurt Yoder ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pah at campana.com Wed Jul 6 23:40:37 2005 From: pah at campana.com (Paul Haygarth) Date: Wed, 6 Jul 2005 17:40:37 -0400 Subject: Nagios sending notification to a script... Message-ID: Content removed... ># "nemir" contact definition >define contact{ > contact_name nemir > alias Nemir Nemiria > 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-sms > host_notification_commands notify-by-sms > email nemri at ex... > } > > > # "notify-by-sms" command definition > define command{ > command_name notify-by-sms > command_line /usr/local/nagios/send_sms "$NOTIFICATIONTYPE$ with > $SERVICEDESC$ at $HOSTADDRESS$ State: $SERVICESTATE$" && /usr/bin/printf > "%b" "Notification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: > $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: > $DATETIME$\n\nAdditional Info:\n\n$OUTPUT$" | /usr/bin/mail -s "** > $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" > $CONTACTEMAIL$ > } > > # cat /usr/local/nagios/send_sms > for x in 6135551416 > do > echo $1 | /usr/local/bin/gnokii --sendsms $x > sleep 10 > done > echo `id -un` `date +%c` $x $1 >> /usr/local/nagios/logs > I ran into a similar problem, where we were running a script to filter out certain timeout Alerts, so we wouldn't get excess false Notifications, during our Network instability. What I had to do was pipe the information into the script, instead of using it as a command line variable. So you could try changing your stuff to look like this: # "notify-by-sms" command definition define command{ command_name notify-by-sms command_line /usr/bin/printf "$NOTIFICATIONTYPE$ with $SERVICEDESC$ at $HOSTADDRESS$ State: $SERVICESTATE$" | /usr/local/nagios/send_sms && /usr/bin/printf "%b" "Notification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional Info:\n\n$OUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ } # cat /usr/local/nagios/send_sms read smstxt for x in 6135551416 do echo $smstxt | /usr/local/bin/gnokii --sendsms $x sleep 10 done echo `id -un` `date +%c` $x $smstxt >> /usr/local/nagios/logs Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From scott at scl.utah.edu Thu Jul 7 01:46:02 2005 From: scott at scl.utah.edu (Scott Doenges) Date: Wed, 6 Jul 2005 17:46:02 -0600 Subject: monitoring printers with Nagios Message-ID: Hi all, First post on this list, please excuse my noobisms. We are interested in using Nagios to monitor printers in our building, and have it tell us when a printer is reporting out of paper/toner, etc. What would be the best way to do this? SNMP? Or can you monitor via IPP, which can report these different alert states? Any suggestions would be greatly appreciated! thanks, Scott -- _________________________________________ Scott Doenges Assistant Macintosh Specialist Student Computing Labs, Marriott Library University of Utah (801) 585-9811 http://www.macos.utah.edu http://scott.scl.utah.edu Even a stopped clock gives the right time twice a day. ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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_stave at yahoo.com Thu Jul 7 06:23:11 2005 From: sam_stave at yahoo.com (Sam Stave) Date: Wed, 6 Jul 2005 21:23:11 -0700 (PDT) Subject: Nagios Wiki Message-ID: <20050707042311.45156.qmail@web50310.mail.yahoo.com> All, I have added some documentation to the Nagios Wiki located here: http://en.wikipedia.org/wiki/Nagios It's still needs contribution, but I think its a good summary on configuring an initial Nagios install. Please review, edit, comment and let me know what you think. Thanks Sam __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From paul at ranahminang.net Thu Jul 7 06:51:56 2005 From: paul at ranahminang.net (PD) Date: Thu, 7 Jul 2005 11:51:56 +0700 Subject: UPS Monitoring In-Reply-To: <20050707042311.45156.qmail@web50310.mail.yahoo.com> References: <20050707042311.45156.qmail@web50310.mail.yahoo.com> Message-ID: <200507071151.56609.paul@ranahminang.net> hi all, Has anyone has en experience of using Nagios for UPS monitoring ? We use local UPS (brand ICA) with RUPS interface card from megatec (http://www.megatec.com.tw/) Regards PD ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Javier.Castillo at alhambra-eidos.com Thu Jul 7 12:30:15 2005 From: Javier.Castillo at alhambra-eidos.com (Javier Castillo Alcibar) Date: Thu, 7 Jul 2005 12:30:15 +0200 Subject: performance problems Message-ID: <635868854FEE3845B2D264D9D0E4017D1CAE2D@ALHM3SRV.alhpridom.as> Hello everybody, I did find the plugin guilty. It's a shell script (bash), that makes a telnet to a router, and checks the output of some commands. I use it in 30 hosts. But why this pluging makes nagios become crazy?. If I execute it from the command line, it takes just 0.4 seconds....so it seems to be fast..... What can I do? Any suggestions? Regards, Javier. -----Mensaje original----- De: Javier Castillo Alcibar Enviado el: mi?rcoles, 06 de julio de 2005 12:05 Para: nagios-users at lists.sourceforge.net Asunto: RE: [Nagios-users] performance problems Hello Hendrik, The machine is a DL380, 2xCPU 2.8Ghz, 2Gb RAM. I think it has enough hw resources..... Technically: alhmngsrv2:/etc/nagios# vmstat 5 procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu---- r b swpd free buff cache si so bi bo in cs us sy id wa 0 0 4 215764 222008 594536 0 0 0 0 0 1 6 4 88 2 1 0 4 211028 222008 594536 0 0 0 246 1170 0 4 1 93 2 1 0 4 202228 222008 594536 0 0 0 314 1182 0 13 2 83 3 0 0 4 205300 222008 594536 0 0 0 126 1167 0 8 1 90 1 18 0 4 209660 222008 594536 0 0 0 275 1207 0 1 1 94 4 0 0 4 209596 222008 594536 0 0 0 229 1143 0 2 1 96 2 0 0 4 202428 222012 594532 0 0 0 77 1117 0 5 1 94 0 2 0 4 186940 222016 594528 0 0 0 110 1145 0 19 2 80 0 2 0 4 190076 222016 594528 0 0 0 245 1127 0 1 1 96 2 17 0 4 191020 222016 594528 0 0 0 150 1128 0 2 1 96 2 2 0 4 198316 222016 594460 0 0 0 286 1138 0 3 1 94 2 0 0 4 197004 222020 594456 0 0 0 168 1125 0 2 1 96 2 17 0 4 196436 222028 594448 0 0 0 396 1210 0 2 1 93 3 9 0 4 205908 222028 594448 0 0 0 393 1244 0 3 1 92 3 It's very strange, because, when I start nagios, everything goes nicely, plugins execution times and latencies are ok, but two or three minutes later, nagios starts getting strange time values, for example: 1120644060 FIREWALL PING OK 1 HARD 9 157 FPING OK - 192.168.0.1 (loss=0%, rta=72.400000 ms) loss=0%;10;30;0;100 rta=0.072400s;2.000000;5.000000;0.000000 Executiontime=9 and Latency=157 ???? Why? This test have had no packet loss, the machine is working nicely....but... Another strange thing I noticed: if have "max_concurrent_checks=120", why are so many times that nagios is running only 1,2,3,4 plugins at the same time? It's true, I'm very confused.... Thx in advance, Javier. -----Mensaje original----- De: Hendrik Baecker [mailto:b00mer at gmx.net] Enviado el: mi?rcoles, 06 de julio de 2005 10:49 Para: Javier Castillo Alcibar CC: nagios-users at lists.sourceforge.net Asunto: Re: [Nagios-users] performance problems Hello Javier, try to figure out where your Service Latencies comes from. Hints are: in nagios.cfg process_performance_data=0 http://nagios.sourceforge.net/docs/1_0/perfdata.html Out of the performance data you can perhaps see where your latencies comes from. Other ways were to view a 'top' and have a look to the swap memory, the load and perhaps the 'wa' CPU count Its not quiet good to have a server swapping, to have a high load and very ugly if your server is waiting for I/O... Javier Castillo Alcibar schrieb: >Hi everybody!! > >I have strange performance problem with my nagios 1.3 server(debian >sarge). It checks very slowly, I can see this info using extinfo.cgi. >How can I debug this? Any hint/trick? Any parameter? > >Program-Wide Performance Information > >Active Checks: > Time Frame Checks Completed ><= 1 minute: 95 (28.1%) ><= 5 minutes: 283 (83.7%) ><= 15 minutes: 338 (100.0%) ><= 1 hour: 338 (100.0%) >Since program start: 338 (100.0%) > > >Metric Min. Max. Average >Check Execution Time: < 1 sec 24 sec 7.201 sec >Check Latency: 99 sec 135 sec 119.867 sec >Percent State Change: 0.00% 0.00% 0.00% > > >Passive Checks: > Time Frame Checks Completed ><= 1 minute: 0 (0.0%) ><= 5 minutes: 0 (0.0%) ><= 15 minutes: 0 (0.0%) ><= 1 hour: 0 (0.0%) >Since program start: 0 (0.0%) > > >Metric Min. Max. Average >Percent State Change: 0.00% 0.00% 0.00% > ># >log_file=/var/log/nagios/nagios.log >cfg_file=/etc/nagios/checkcommands.cfg >cfg_file=/etc/nagios/misccommands.cfg >cfg_file=/etc/nagios/contactgroups.cfg >cfg_file=/etc/nagios/contacts.cfg >cfg_file=/etc/nagios/dependencies.cfg >cfg_file=/etc/nagios/escalations.cfg >cfg_file=/etc/nagios/hostgroups.cfg >cfg_file=/etc/nagios/hosts.cfg >cfg_file=/etc/nagios/services.cfg >cfg_file=/etc/nagios/timeperiods.cfg >resource_file=/etc/nagios/resource.cfg >temp_file=/var/log/nagios/nagios.tmp >status_file=/var/log/nagios/status.log >aggregate_status_updates=1 >status_update_interval=15 >nagios_user=nagios >nagios_group=nagios >enable_notifications=1 >execute_service_checks=1 >accept_passive_service_checks=1 >enable_event_handlers=1 >log_rotation_method=d >log_archive_path=/var/log/nagios/archives >check_external_commands=1 >command_check_interval=-1 >comment_file=/var/log/nagios/comment.log >downtime_file=/var/log/nagios/downtime.log >command_file=/var/log/nagios/rw/nagios.cmd >lock_file=/var/log/nagios/nagios.lock >retain_state_information=1 >state_retention_file=/var/log/nagios/status.sav >retention_update_interval=60 >use_retained_program_state=0 >use_syslog=1 >log_notifications=1 >log_service_retries=1 >log_host_retries=1 >log_event_handlers=1 >log_initial_states=0 >log_external_commands=1 >log_passive_service_checks=1 >sleep_time=1 >max_concurrent_checks=120 >#service_reaper_frequency=10 >service_reaper_frequency=5 >interval_length=60 >use_agressive_host_checking=0 >enable_flap_detection=0 >low_service_flap_threshold=5.0 >high_service_flap_threshold=20.0 >low_host_flap_threshold=5.0 >high_host_flap_threshold=20.0 >soft_state_dependencies=0 >service_check_timeout=30 >host_check_timeout=30 >event_handler_timeout=60 >notification_timeout=60 >ocsp_timeout=5 >perfdata_timeout=5 >obsess_over_services=0 >process_performance_data=0 >check_for_orphaned_services=0 >check_service_freshness=1 >freshness_check_interval=60 >admin_email=nagios >admin_pager=pagenagios >date_format=euro > > > >------------------------------------------------------- >SF.Net email is sponsored by: Discover Easy Linux Migration Strategies >from IBM. Find simple to follow Roadmaps, straightforward articles, >informative Webcasts and more! Get everything you need to get up to >speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > > > > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 7 15:48:16 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 7 Jul 2005 09:48:16 -0400 (EDT) Subject: monitoring printers with Nagios In-Reply-To: References: Message-ID: On Wed, 6 Jul 2005, Scott Doenges wrote: > Hi all, > > First post on this list, please excuse my noobisms. > > We are interested in using Nagios to monitor printers in our building, and > have it tell us when a printer is reporting out of paper/toner, etc. > > What would be the best way to do this? SNMP? Or can you monitor via IPP, > which can report these different alert states? > > Any suggestions would be greatly appreciated! > > thanks, > Scott > SNMP is the easiest. if you have HP JetDirect, try check_hpjd, otherwise try check_snmp_printer in contrib. -- -sg ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 7 15:47:00 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 7 Jul 2005 09:47:00 -0400 (EDT) Subject: UPS Monitoring In-Reply-To: <200507071151.56609.paul@ranahminang.net> References: <20050707042311.45156.qmail@web50310.mail.yahoo.com> <200507071151.56609.paul@ranahminang.net> Message-ID: On Thu, 7 Jul 2005, PD wrote: > hi all, > > Has anyone has en experience of using Nagios for UPS monitoring ? > We use local UPS (brand ICA) with RUPS interface card from megatec > (http://www.megatec.com.tw/) > > Regards > > PD > If that UPS is supported by Network UPS Tools (networkupstools.org) as a generic RUPS model, you will be able to use check_ups plugin. Otherwise SNMP support for UPS monitoring exists with check_apc_ups -- -sg ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From BConrad at passkey.com Thu Jul 7 15:44:35 2005 From: BConrad at passkey.com (Ben Conrad) Date: Thu, 7 Jul 2005 09:44:35 -0400 Subject: UPS Monitoring Message-ID: <8FB96300C132D511AE7500508BD6ABCD05AB3DA7@eagle.passkey.com> No, but if it runs snmp you should be able to use a Mib browser (I use GetIf) to get some interesting info. You will probably want to get the MIB so you can get text descriptions of the OID's For my APC I can get the load via: .1.3.6.1.4.1.318.1.1.1.4.2.3.0 The current UPS load expressed in percent of rated capacity. Ben -----Original Message----- From: PD [mailto:paul at ranahminang.net] Sent: Thursday, July 07, 2005 12:52 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] UPS Monitoring hi all, Has anyone has en experience of using Nagios for UPS monitoring ? We use local UPS (brand ICA) with RUPS interface card from megatec (http://www.megatec.com.tw/) Regards PD ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ktynagios at richard-group.com Thu Jul 7 16:07:04 2005 From: ktynagios at richard-group.com (Kurt Yoder) Date: Thu, 7 Jul 2005 10:07:04 -0400 Subject: Nagios Wiki In-Reply-To: <20050707042311.45156.qmail@web50310.mail.yahoo.com> References: <20050707042311.45156.qmail@web50310.mail.yahoo.com> Message-ID: On Jul 7, 2005, at 12:23 AM, Sam Stave wrote: > All, > > I have added some documentation to the Nagios Wiki > located here: http://en.wikipedia.org/wiki/Nagios > > It's still needs contribution, but I think its a good > summary on configuring an initial Nagios install. > > Please review, edit, comment and let me know what you > think. The documentation looks pretty good. However, I'm wondering if Wikipedia is the correct place for it. Why not add it to the Nagios wiki instead? I suspect that Wikipedia people may delete the configuration information as "not encyclopedia-like". If you move the info to the Nagios wiki, you can add an external link on wikipedia pointing to the nagios wiki. -- Kurt Yoder ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 7 17:03:37 2005 From: boinger at tradingtechnologies.com (jeff vier) Date: Thu, 07 Jul 2005 10:03:37 -0500 Subject: Nagios Wiki In-Reply-To: References: <20050707042311.45156.qmail@web50310.mail.yahoo.com> Message-ID: <1120748618.11896.80.camel@chi101100.int.tt.local> On Thu, 2005-07-07 at 10:07 -0400, Kurt Yoder wrote: > On Jul 7, 2005, at 12:23 AM, Sam Stave wrote: > > > All, > > > > I have added some documentation to the Nagios Wiki > > located here: http://en.wikipedia.org/wiki/Nagios > > > > It's still needs contribution, but I think its a good > > summary on configuring an initial Nagios install. > > > > Please review, edit, comment and let me know what you > > think. > > The documentation looks pretty good. However, I'm wondering if > Wikipedia is the correct place for it. Why not add it to the Nagios > wiki instead? I suspect that Wikipedia people may delete the > configuration information as "not encyclopedia-like". If you move the > info to the Nagios wiki, you can add an external link on wikipedia > pointing to the nagios wiki. I was thinking the same. In fact, I'll go do that now and have a configuration docs link instea -------------- 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 sekuela at gmail.com Thu Jul 7 17:14:05 2005 From: sekuela at gmail.com (Daniel Szortyka) Date: Thu, 7 Jul 2005 12:14:05 -0300 Subject: Nagios Wiki In-Reply-To: <1120748618.11896.80.camel@chi101100.int.tt.local> References: <20050707042311.45156.qmail@web50310.mail.yahoo.com> <1120748618.11896.80.camel@chi101100.int.tt.local> Message-ID: <806f904f05070708145cfd6c00@mail.gmail.com> Hey,, Does Nagios have a oficial wiki site? Daniel On 7/7/05, jeff vier wrote: > On Thu, 2005-07-07 at 10:07 -0400, Kurt Yoder wrote: > > On Jul 7, 2005, at 12:23 AM, Sam Stave wrote: > > > > > All, > > > > > > I have added some documentation to the Nagios Wiki > > > located here: http://en.wikipedia.org/wiki/Nagios > > > > > > It's still needs contribution, but I think its a good > > > summary on configuring an initial Nagios install. > > > > > > Please review, edit, comment and let me know what you > > > think. > > > > The documentation looks pretty good. However, I'm wondering if > > Wikipedia is the correct place for it. Why not add it to the Nagios > > wiki instead? I suspect that Wikipedia people may delete the > > configuration information as "not encyclopedia-like". If you move the > > info to the Nagios wiki, you can add an external link on wikipedia > > pointing to the nagios wiki. > > I was thinking the same. > > In fact, I'll go do that now and have a configuration docs link instea > > > BodyID:137685075.2.n.logpart (stored separately) > > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 7 17:32:24 2005 From: marc at ena.com (Marc Powell) Date: Thu, 7 Jul 2005 10:32:24 -0500 Subject: Nagios Wiki Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Daniel Szortyka > Sent: Thursday, July 07, 2005 10:14 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Nagios Wiki > > Hey,, > > Does Nagios have a oficial wiki site? Not really but one has been started at http://www.nagiosexchange.org. -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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_stave at yahoo.com Thu Jul 7 18:01:45 2005 From: sam_stave at yahoo.com (Sam Stave) Date: Thu, 7 Jul 2005 09:01:45 -0700 (PDT) Subject: Nagios Wiki In-Reply-To: <1120748618.11896.80.camel@chi101100.int.tt.local> References: <1120748618.11896.80.camel@chi101100.int.tt.local> Message-ID: <20050707160146.68387.qmail@web50305.mail.yahoo.com> Excellent! Thanks, ill look forward to contributing there instead. Sam --- jeff vier wrote: > On Thu, 2005-07-07 at 10:07 -0400, Kurt Yoder wrote: > > On Jul 7, 2005, at 12:23 AM, Sam Stave wrote: > > > > > All, > > > > > > I have added some documentation to the Nagios > Wiki > > > located here: > http://en.wikipedia.org/wiki/Nagios > > > > > > It's still needs contribution, but I think its a > good > > > summary on configuring an initial Nagios > install. > > > > > > Please review, edit, comment and let me know > what you > > > think. > > > > The documentation looks pretty good. However, I'm > wondering if > > Wikipedia is the correct place for it. Why not add > it to the Nagios > > wiki instead? I suspect that Wikipedia people may > delete the > > configuration information as "not > encyclopedia-like". If you move the > > info to the Nagios wiki, you can add an external > link on wikipedia > > pointing to the nagios wiki. > > I was thinking the same. > > In fact, I'll go do that now and have a > configuration docs link instea > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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_stave at yahoo.com Thu Jul 7 18:04:27 2005 From: sam_stave at yahoo.com (Sam Stave) Date: Thu, 7 Jul 2005 09:04:27 -0700 (PDT) Subject: Nagios Wiki In-Reply-To: <1120748618.11896.80.camel@chi101100.int.tt.local> References: <1120748618.11896.80.camel@chi101100.int.tt.local> Message-ID: <20050707160427.69318.qmail@web50305.mail.yahoo.com> uh, did you simply DELETE the doc that I posted and replace it with a link to the wiki on nagiosexchange without migrating the content??? Sam --- jeff vier wrote: > On Thu, 2005-07-07 at 10:07 -0400, Kurt Yoder wrote: > > On Jul 7, 2005, at 12:23 AM, Sam Stave wrote: > > > > > All, > > > > > > I have added some documentation to the Nagios > Wiki > > > located here: > http://en.wikipedia.org/wiki/Nagios > > > > > > It's still needs contribution, but I think its a > good > > > summary on configuring an initial Nagios > install. > > > > > > Please review, edit, comment and let me know > what you > > > think. > > > > The documentation looks pretty good. However, I'm > wondering if > > Wikipedia is the correct place for it. Why not add > it to the Nagios > > wiki instead? I suspect that Wikipedia people may > delete the > > configuration information as "not > encyclopedia-like". If you move the > > info to the Nagios wiki, you can add an external > link on wikipedia > > pointing to the nagios wiki. > > I was thinking the same. > > In fact, I'll go do that now and have a > configuration docs link instea > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 7 18:27:00 2005 From: boinger at tradingtechnologies.com (jeff vier) Date: Thu, 07 Jul 2005 11:27:00 -0500 Subject: Nagios Wiki In-Reply-To: <20050707160427.69318.qmail@web50305.mail.yahoo.com> References: <20050707160427.69318.qmail@web50305.mail.yahoo.com> Message-ID: <1120753621.11896.102.camel@chi101100.int.tt.local> On Thu, 2005-07-07 at 09:04 -0700, Sam Stave wrote: > uh, > > did you simply DELETE the doc that I posted and > replace it with a link to the wiki on nagiosexchange > without migrating the content??? I don't personally care to migrate content out of the wikipedia to an external site. You're free to do so all you like. And, for you and anyone else unfamiliar with wiki, nothing ever gets DELETEd (sic). http://en.wikipedia.org/w/index.php?title=Nagios&oldid=18306099 there's your last version. > --- jeff vier wrote: > > > On Thu, 2005-07-07 at 10:07 -0400, Kurt Yoder wrote: > > > On Jul 7, 2005, at 12:23 AM, Sam Stave wrote: > > > > > > > All, > > > > > > > > I have added some documentation to the Nagios > > Wiki > > > > located here: > > http://en.wikipedia.org/wiki/Nagios > > > > > > > > It's still needs contribution, but I think its a > > good > > > > summary on configuring an initial Nagios > > install. > > > > > > > > Please review, edit, comment and let me know > > what you > > > > think. > > > > > > The documentation looks pretty good. However, I'm > > wondering if > > > Wikipedia is the correct place for it. Why not add > > it to the Nagios > > > wiki instead? I suspect that Wikipedia people may > > delete the > > > configuration information as "not > > encyclopedia-like". If you move the > > > info to the Nagios wiki, you can add an external > > link on wikipedia > > > pointing to the nagios wiki. > > > > I was thinking the same. > > > > In fact, I'll go do that now and have a > > configuration docs link instea > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com -------------- 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 Sam.Harris at fns.usda.gov Thu Jul 7 18:26:35 2005 From: Sam.Harris at fns.usda.gov (Harris, Sam) Date: Thu, 7 Jul 2005 12:26:35 -0400 Subject: Nagios with database support Message-ID: Anybody knows of a document where the compilation with database support method is explained for Nagios Thanks Sam Harris -------------- next part -------------- An HTML attachment was scrubbed... URL: From jjesse at iserv.net Thu Jul 7 18:41:40 2005 From: jjesse at iserv.net (Jonathan Jesse) Date: Thu, 7 Jul 2005 12:41:40 -0400 Subject: Nagios with database support In-Reply-To: References: Message-ID: <200507071241.40269.jjesse@iserv.net> A reponse to my question asked yesterday stated that Database support was dropped in the 2.x version, however I have had a chance to research it yet so I would be curious as well. On Thursday 07 July 2005 12:26 pm, Harris, Sam wrote: > Anybody knows of a document where the compilation with database support > method is explained for Nagios > Thanks > > Sam Harris ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sekuela at gmail.com Thu Jul 7 18:47:09 2005 From: sekuela at gmail.com (Daniel Szortyka) Date: Thu, 7 Jul 2005 13:47:09 -0300 Subject: Nagios with database support In-Reply-To: <200507071241.40269.jjesse@iserv.net> References: <200507071241.40269.jjesse@iserv.net> Message-ID: <806f904f0507070947ca9ed2b@mail.gmail.com> Hi, I always had a question... or a doubt... The nagios database support store what exactly? Example... Can I save my nagios.log and status.log on my mysql..? I say that cause in 1.x version, when I go in "Aviability" of hosts or services, frequently I had a error result... the hosts always stay with 100% of a some result.... With the 2.0b I dont have more this error... Thanks! Daniel On 7/7/05, Jonathan Jesse wrote: > A reponse to my question asked yesterday stated that Database support was > dropped in the 2.x version, however I have had a chance to research it yet so > I would be curious as well. > > On Thursday 07 July 2005 12:26 pm, Harris, Sam wrote: > > Anybody knows of a document where the compilation with database support > > method is explained for Nagios > > Thanks > > > > Sam Harris > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 7 18:48:14 2005 From: marc at ena.com (Marc Powell) Date: Thu, 7 Jul 2005 11:48:14 -0500 Subject: Nagios with database support Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Harris, Sam > Sent: Thursday, July 07, 2005 11:27 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nagios with database support > > Anybody knows of a document where the compilation with database support > method is explained for Nagios The 'Database Support' section of the documentation -- http://nagios.sourceforge.net/docs/1_0/xdata-db.html Note: database support has been dropped from 2.x so if you are trying to use the development version you'll need to use the nagios-db addon from http://sourceforge.net/projects/nagios-db/. -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 7 19:01:03 2005 From: marc at ena.com (Marc Powell) Date: Thu, 7 Jul 2005 12:01:03 -0500 Subject: Nagios with database support Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Daniel Szortyka > Sent: Thursday, July 07, 2005 11:47 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Nagios with database support > > Hi, > > I always had a question... or a doubt... The nagios database support > store what exactly? > > Example... > > Can I save my nagios.log and status.log on my mysql..? I say that > cause in 1.x version, when I go in "Aviability" of hosts or services, > frequently I had a error result... the hosts always stay with 100% of > a some result.... With the 2.0b I dont have more this error... In the 1.x tree, database support consists solely of storing current host, service and program status data. No historical data is stored in the database. The CGI's used the database info for current information and the nagios.log archives for historical data (trends, availability, etc). With the 2.0 development version, all database support has been removed from the core code in favor of the NEB (Nagios Event Broker) which allows for greater flexibility and a plugin like approach. The previously mentioned nagios-db project is one such plugin that emulates the 1.x database support. I believe that it also stores historical data in the database as well. The _key_ difference is that the core nagios processes and CGIs will _always_ use flat files for everything. To use the database stored information you'll either need to use the PHP scripts included with nagios-db or create your own. It's impossible to guess what your availability report problem might be with so little specific information. If you want help with that, post specific details about the type of report you are running, the time period, initial state option, etc as well as the log entries for that host in nagios.log and the archives within that time period as well as the backtracked archives that you are specifying. Chances are that Nagios isn't able to find any log entries within your time period for that host or service or can't determine the initial state within the time period or backtracked archives. -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From JLaack at alegent.org Thu Jul 7 22:28:24 2005 From: JLaack at alegent.org (Jacob Laack) Date: Thu, 07 Jul 2005 15:28:24 -0500 Subject: Acknowledgement and Hard State change Message-ID: I have had a Nagios system working here for a couple months. We have a AIX machine named Kramer which is a test system and has nrpe commands set to send a warning page/email if a filesystem is less than 10% free and critical for less than 5%. Our users are upgrading a peoplesoft database which has caused the database to slowly grow and fill up the filesystem. Yesterday we had a notification that a service on a host went from OK to WARNING. A filesystem went below the 10% watermark. We acknowledged the problem and decided to wait until it had reached the CRITICAL state. We were told by our previous monitoring system, that has a much lower threshold of 98%, this same filesystem had less than 2% free. I looked at Nagios and noticed the service went to a CRITICAL state, but the (Has been acknowledged) was still there preventing any notifications from going out. What methods can be used to change the acknowledgements to "evaporate" if the service state switches from WARNING to CRITICAL? -Jake jlaackATalegent.org ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From CQuillen at txfb-ins.com Thu Jul 7 23:06:00 2005 From: CQuillen at txfb-ins.com (Quillen, Channon) Date: Thu, 7 Jul 2005 16:06:00 -0500 Subject: Defining a service dependency for a hostgroup? - revisited Message-ID: <7FEF2AD0BDCF4D429DB22B5CEA66FCD7020033C6@TXS13418.txfb-ins.com> I searched the archives and came upon a thread by Lee Melvin with the same subject as this email. I didn't see any replies. Mr. Melvin wrote: I"m seeing an annoying paging behavior with our Nagios implementation. We have a number of Windows boxes being monitored -- each box has several (4-10) services being monitored on it. Most of the service checks are made through NSClient. The annoying behavior is, if NSClient crashes, Nagios detects all the services on the box as failing, and sends out a notification for each service. All our notifications go to a site hotpager, so one person gets 8 pages in a row when the system fails, and then another 8 when NSClient is restored. I"ve created a checkcommand to watch NSClient itself (basically I just test on the CLIENTVERSION variable), and I"d like to make each of the other NSClient-based service checks on the system dependent on this NSClient check. The problem I"m running into, and the thing I want help with, is that it doesn"t appear possible to define a service dependency for a host group, only for individual hosts. I"d rather not have to add (# of Windows servers) * (avg. # of service checks per server) service dependency entries to my configuration. Is there any way I can define a configuration entry along the lines of (not remotely real config code) servicedependency { hostgroup_name win_servers service check_nsclient dependent_service check_win_diskfree_c } so that all my Windows hosts know that the win_diskfree_c check is dependent on check_nsclient on the same host? This would allow me to do what I want with only one service dependency entry for each NSClient based service check, which is manageable. Alternately, is there some other way to achieve this effect? I"m anticipating similar issues on the UNIX side if a NRPE client craps out... Thanks! - Lee My question is very similar except that I want to use the PING service as the trigger. If PING = CRITICAL Send notification that host cannot be reached Don't send any other service notifications When PING = RECOVER Send notification that host is back up Don't send any other service notifications -Channon ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bobjohnson at nexus9000.com Thu Jul 7 23:52:43 2005 From: bobjohnson at nexus9000.com (Bob Johnson) Date: Thu, 7 Jul 2005 14:52:43 -0700 (PDT) Subject: passive host checks ? Message-ID: <34554.127.0.0.1.1120773163.squirrel@bols> Although the appended text is >8 months old, I was curious if the passive host checks fix was already in 2.0b3 or is a recent snapshot still required? I too, can only send the passive host checks manually in 2.0b3. Thank you. >solved ... looks like i used a 2.0 version where passive host checks >were documented but broken. using a recent snapshot it works fine :-D > >h. > >On Mon, 2004-11-15 at 20:26, Holger Brueckner wrote: >>hello *, >> >>i want to enable passive host check on a distributed setup. i have >>configured the following: >> >>nagios.cfg >> >>obsess_over_hosts=1 >>ochp_command=submit_hosts >>accept_passive_host_checks=1 >> >>misccommands.cfg: >> >>define command{ >> command_name submit_hosts >> command_line >>/usr/local/nagios/libexec/eventhandlers/submit_hosts $HOSTNAME$ >>$SERVICESTATE$ "$SERVICEOUTPUT$" >>} >> >>if i manually call the submit_hosts script i can see the check on the >>receiving nsca daemon. unfortunately the script doesn"t get called by >>nagios on the sending side. ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From HJahn at woosh.com Fri Jul 8 00:21:10 2005 From: HJahn at woosh.com (Holger Jahn) Date: Fri, 8 Jul 2005 10:21:10 +1200 Subject: Perfdata truncated? Message-ID: <44C4DC99A083FA48864ACEFF85B96261030A0208@wwl_mail1.intwwl.net> Hi there, I ran into a problem with 2.0b3. It looks like it somehow truncates the incoming perfdata (btw, are threre any limitations?). That's what my test script spits out on the command line: SNMP: DISCONNECT query finished.|numConnectionAttempts=1549, normalUserDisconnect=882, ueFault=19, handover=4, uePowerDownDisconnect=59, ueLostCoverage=5, ueNoAllocation=3, ueLayer2Failure=4, ueHardwareUnsupported=0, managerInitiatedForcedUserDisc=2, overload=0, systemInit=0, relocMaxIuCxns=0, nodeBDecommission=0, l2tpSessionFailure=0, l2tpSessionDisconnect=202, coreNetworkFailure=0, smTimerExpiry=0, ueUndetectable=13, airInterfaceFailure=208, requestedSecurityAlgorithmsNotSupported=0, changeOfSecuritySetupNotSupported=0, unknownSecurityModeSetupFailure=0, iubLayer1Failure=0, iubOutOfSync=1, invalidCellId=0, downlinkTfcsUnavailable=3, networkUSIMAuthenticationFailure=0, usimNetworkAuthenticationFailure=0, usimResynchronisationFailure=0, unexpectedIuRelease=0, pathFailure=0, reasonUnknown=0, imsiUnknownInHlr=0, illegalMS=0, illegalME=0, gprsServicesNotAllowed=0, msIdentityCannotBeDerivedByNetwork=0, implicitlyDetached=0, plmnNotAllowed=0, locationAreaNotAllowed=0, roamingNotAllowedInLocationArea=0, gprsServicesNotAllowedInPLMN=0, noSuitableCellsInLocationArea=0, mscTemporarilyNotReachable=0, macFailure=0, syncFailure=0, congestion=0, gsmAuthenticationUnacceptable=0, noPDPContextActivated=0, retryUponEntryIntoNewCell=0, semanticallyIncorrectMessage=0, invalidMandatoryInformation=0, messageTypeNonExistentOrNotImplemented=0, messageTypeNotCompatibleWithProtocolState=0, ieNonExistentOrNotImplemented=0, conditionalIEError=0, messageNotCompatibleWithProtocolState=0, protocolErrorUnspecified=0, ueCallSetupDisconnectInd=0, ueCallSetupDisconnectCfm=4, ueAuthenticationTimeout=0, ueAuthenticationFailure=13, ueAuthResponseTimeout=6, l2tpTimeoutSessionOpen=0, pppClientCreateFailure=0, dnsNoEntryFound=0, dnsServerFail=0, imeiSVcheckTimeout=0, authVectorTimeout=0, smStatusInd=1, gmmRegStatusInd=0 And that's what I see in status.dat and also as HTML output: plugin_output=SNMP: DISCONNECT query finished. performance_data=numConnectionAttempts=1552, normalUserDisconnect=883, ueFault=19, handover=4, uePowerDownDisconnect=59, ueLostCoverage=5, ueNoAllocation=3, ueLayer2Failure=4, ueHardwareUnsupported=0, managerInitiatedForcedUserDisc=2, overload=0, systemInit=0, relocMaxIuCxns=0, nodeBDecommission=0, l2tpSessionFailure=0, l2tpSessi Would be very nice if someone had an idea what this might cause. Cheers, Holger -------------- next part -------------- An HTML attachment was scrubbed... URL: From kirby_12172004 at yahoo.com Fri Jul 8 01:56:27 2005 From: kirby_12172004 at yahoo.com (Michael Carel) Date: Fri, 8 Jul 2005 00:56:27 +0100 (BST) Subject: NRPE daemon and Nagios Plugins Installer In-Reply-To: <56962.63.227.74.41.1120741696.squirrel@webmail.stinkweasel.net> References: <56962.63.227.74.41.1120741696.squirrel@webmail.stinkweasel.net> Message-ID: <20050707235627.53495.qmail@web31315.mail.mud.yahoo.com> I'm also using a non-SSL on nagios server. I've also tried to run it using inetd in HP-UX using the following config: /etc/inetd.conf nrpe stream tcp nowait root /opt/nrpe/bin/nrpe -c /opt/nrpe/etc/nrpe.cfg -i /etc/services nrpe 5666/tcp #nagios daemon The nagios server responding to a "CHECK_NRPE: Response packet had invalid CRC32." Trying to check the port on the nrpe daemon using telnet 5666 , the responses shows:Escape character is '^]'. 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) *************************************************************** ** POSSIBLE SECURITY RISK - COMMAND ARGUMENTS ARE SUPPORTED! ** ** Read the NRPE SECURITY file for more information ** *************************************************************** Usage: nrpe -c Options: = Name of config file to use = One of the following two operating modes: -i = Run as a service under inetd or xinetd -d = Run as a standalone daemon ...... etc Any idea why? or do i missed something with the config? --- "C. Bensend" wrote: > > > have you tried running the nrpe in daemon mode? > I've > > tried installing your HP-UX depot > > nrpe-2.0-B.11.00-RISC11.depot > > > > I cannot establish connection using that depot. I > can > > see a time_wait response in the nrpe daemon: > > > > Is there any idea why? > > No, I haven't run it in daemon mode, I don't use > NRPE. > > Are you trying to use SSL? SSL support is disabled > in my depots, > and will cause problems if SSL support is enabled on > the other > end. > > > -- > "I'd rather staple a skunk to my forehead and go to > a trade show > for banjo makers." -- > PHB's secretary, > > Dilbert, 07-2002 > > Send instant messages to your online friends http://uk.messenger.yahoo.com ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From paul at ranahminang.net Fri Jul 8 03:55:54 2005 From: paul at ranahminang.net (PD) Date: Fri, 8 Jul 2005 08:55:54 +0700 Subject: UPS Monitoring In-Reply-To: References: <20050707042311.45156.qmail@web50310.mail.yahoo.com> <200507071151.56609.paul@ranahminang.net> Message-ID: <200507080855.54851.paul@ranahminang.net> On Thursday 07 July 2005 20:47, Subhendu Ghosh wrote: > On Thu, 7 Jul 2005, PD wrote: > > hi all, > > > > Has anyone has en experience of using Nagios for UPS monitoring ? > > We use local UPS (brand ICA) with RUPS interface card from megatec > > (http://www.megatec.com.tw/) > > If that UPS is supported by Network UPS Tools (networkupstools.org) as a > generic RUPS model, you will be able to use check_ups plugin. > > Otherwise SNMP support for UPS monitoring exists with check_apc_ups The UPS vendor just send me an interface module, ups mainboard interface cable, serial cable and software CD. The software on CD only for Windows (all version) and linux. The software under linux only doing the job to do a proper shutdown 10 minutes after commercial power down BUT does not have any options for custom rules for all evens such as sending an email, sms, etc. On readme file, I found that the serial cable schema is exactly the same with explained at http://www.fentonups.com/Support___Service/Cables___Comm_Info/cables___comm_info.html How can I do a test of check_ups plugin on UPS and where (URL) to get it ? Regards PD ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 8 03:57:37 2005 From: s.shipway at auckland.ac.nz (Steve Shipway) Date: Fri, 8 Jul 2005 13:57:37 +1200 Subject: UPS Monitoring In-Reply-To: <200507071151.56609.paul@ranahminang.net> References: <200507071151.56609.paul@ranahminang.net> Message-ID: <009501c58360$6ced0960$01fea8c0@itss.auckland.ac.nz> >Has anyone has en experience of using Nagios for UPS >monitoring ? We use local UPS (brand ICA) with RUPS interface >card from megatec >(http://www.megatec.com.tw/) We monitor ours via SNMP. I have no idea what the interface card is, though, although it seems to use a standard UPS part of the MIB tree. Here's the config if you're interested (suitably obfuscated): -Steve define service{ name svc-dev-ups-timeleft use generic-service service_description Autonomy Time check_command check_snmp!community!1.3.6.1.2.1.33.1.2.3.0!30:999!10:999!m in remaining!Battery contact_groups unix-admins,operators host_name ups max_check_attempts 2 normal_check_interval 5 retry_check_interval 1 } define service{ name svc-dev-ups-output use generic-service contact_groups unix-admins,operators host_name ups max_check_attempts 2 normal_check_interval 20 retry_check_interval 5 register 0 } define service { use svc-dev-ups-output service_description Output Load 1 [Blue] check_command check_snmp!public!1.3.6.1.2.1.33.1.4.4.1.5.1!0:80!0:95!% !Load } define service{ use svc-dev-ups-output service_description Output Load 2 [Yellow] check_command check_snmp!community!1.3.6.1.2.1.33.1.4.4.1.5.2!0:80!0:95!% !Load } define service{ use svc-dev-ups-output service_description Output Load 3 [Red] check_command check_snmp!community!1.3.6.1.2.1.33.1.4.4.1.5.3!0:80!0:95!% !Load } define service{ name svc-dev-ups-alarms-present use generic-service service_description UPS Alarms check_command check_snmp!community!1.3.6.1.2.1.33.1.6.1.0!0:0!0:0!alarms! UPS alarm count: contact_groups unix-admins,operators host_name ups max_check_attempts 1 retry_check_interval 5 } ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From paul at ranahminang.net Fri Jul 8 04:01:05 2005 From: paul at ranahminang.net (PD) Date: Fri, 8 Jul 2005 09:01:05 +0700 Subject: Sample script for send SMS In-Reply-To: References: <20050707042311.45156.qmail@web50310.mail.yahoo.com> <200507071151.56609.paul@ranahminang.net> Message-ID: <200507080901.05405.paul@ranahminang.net> Hi all, on sample scripts, I could not find the way to send sms to reach contact person. On our case, we use gnokii to handle sms daemon. To send sms, just insert values "number" and "text" on outbox table using mysql database, and smsd will do the jobs less than 1 minute. Can anyone give me an example for this purposes (insert any even text detail to mysql table) ? Regards PD ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From paul at ranahminang.net Fri Jul 8 04:14:46 2005 From: paul at ranahminang.net (PD) Date: Fri, 8 Jul 2005 09:14:46 +0700 Subject: UPS Monitoring In-Reply-To: <009501c58360$6ced0960$01fea8c0@itss.auckland.ac.nz> References: <009501c58360$6ced0960$01fea8c0@itss.auckland.ac.nz> Message-ID: <200507080914.46620.paul@ranahminang.net> On Friday 08 July 2005 08:57, Steve Shipway wrote: > We monitor ours via SNMP. I have no idea what the interface card is, > though, although it seems to use a standard UPS part of the MIB tree. > Here's the config if you're interested (suitably obfuscated): > > -Steve Thx Steve, I've to see SNMP MIB first for this purposes. I did see the MIB number before but can not recall where (on CD directory). I will choose the best ways (using ups_check plugin or MIB code). Can anyone give me the suggesions ? Regards PD ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From frederik.vanhee at perso.be Fri Jul 8 07:16:42 2005 From: frederik.vanhee at perso.be (Frederik Vanhee) Date: Fri, 08 Jul 2005 07:16:42 +0200 Subject: Nagios notification via SMS Message-ID: <42CE0C3A.2080704@perso.be> Hello, I wondered what hardware / software you are using to send text-messages (SMS) to cell phones. I think this could be done with an ordinary modem, but aren't there some cellphone-modems where you can put the SIM-card ? Thanks, Frederik ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ralf.prengel at comline.de Fri Jul 8 11:25:29 2005 From: ralf.prengel at comline.de (Ralf Prengel) Date: Fri, 08 Jul 2005 11:25:29 +0200 Subject: alert only for one service Message-ID: <42CE4689.4070609@comline.de> The problem: We have several netwerk-printers (laser/colour) that are only active for some hours. It s not possible to define regual downtimes so we have the problem to recive alerts we don t want to see;-) My idea is to configure nagios so that only error-messages like -- example from the pase service detail) error Notifications for this service have been disabled CRITICAL 07-08-2005 11:11:45 0d 22h 38m 45s 3/3 SNMP CRITICAL - *06 * are generated by nagios. Is that possible? Thanks ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From paul at ranahminang.net Fri Jul 8 12:25:58 2005 From: paul at ranahminang.net (PD) Date: Fri, 8 Jul 2005 17:25:58 +0700 Subject: Nagios notification via SMS In-Reply-To: <42CE0C3A.2080704@perso.be> References: <42CE0C3A.2080704@perso.be> Message-ID: <200507081725.58890.paul@ranahminang.net> On Friday 08 July 2005 12:16, Frederik Vanhee wrote: > Hello, > > I wondered what hardware / software you are using to send text-messages > (SMS) to cell phones. > I think this could be done with an ordinary modem, but aren't there some > cellphone-modems where you can put the SIM-card ? We are using Nokia 6110 cellular phone (incl SIM card inside) and connected to com1 server via NCDS cable. The server running smsd from gnokii. We already able to send and received SMS. Regards PD ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nagiosadmin at snef.fr Fri Jul 8 13:02:16 2005 From: nagiosadmin at snef.fr (Davy Gaussen) Date: Fri, 8 Jul 2005 13:02:16 +0200 Subject: Nagios and SMS References: <42CE0C3A.2080704@perso.be> <200507081725.58890.paul@ranahminang.net> Message-ID: <001501c583ac$80c49e70$c26710ac@sneftechnologies.fr> Hi, I also want to know if someone have found a freeware to send nagios notifications via SMS ? I am in France and I am not sure all the products are available . Thank you by advance Davy ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Fri Jul 8 13:07:40 2005 From: chris at aidworld.org (Chris Wilson) Date: Fri, 08 Jul 2005 12:07:40 +0100 Subject: Nagios and SMS In-Reply-To: <001501c583ac$80c49e70$c26710ac@sneftechnologies.fr> References: <42CE0C3A.2080704@perso.be> <200507081725.58890.paul@ranahminang.net> <001501c583ac$80c49e70$c26710ac@sneftechnologies.fr> Message-ID: <1120820860.15605.8.camel@rocio.int.aidworld.org> Hi Davy, We use kapow.co.uk with a custom Perl script to submit Nagios notifications to SMS by HTTP. Cheers, Chris. On Fri, 2005-07-08 at 12:02, Davy Gaussen wrote: > Hi, > > I also want to know if someone have found a freeware to send nagios > notifications via SMS ? I am in France and I am not sure all the products > are available . > > Thank you by advance > > Davy > > > > ------------------------------------------------------- > This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening > July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual > core and dual graphics technology at this free one hour event hosted by HP, > AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > !DSPAM:42ce5dde99072039069433! -- (aidworld) chris wilson | chief engineer (chris at aidworld.org) ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ralf.prengel at comline.de Fri Jul 8 13:19:49 2005 From: ralf.prengel at comline.de (Ralf Prengel) Date: Fri, 08 Jul 2005 13:19:49 +0200 Subject: alert only for one service In-Reply-To: <42CE4689.4070609@comline.de> References: <42CE4689.4070609@comline.de> Message-ID: <42CE6155.2090500@comline.de> Ralf Prengel wrote: > The problem: > We have several netwerk-printers (laser/colour) that are only active for > some hours. > It s not possible to define regual downtimes so we have the problem to > recive alerts we don t want to see;-) > My idea is to configure nagios so that only error-messages like > -- example from the pase service detail) > error Notifications for this service have been disabled CRITICAL > 07-08-2005 11:11:45 0d 22h 38m 45s 3/3 SNMP CRITICAL - *06 * > are generated by nagios. > Is that possible? solved I found the options on the service-page of the webfrontend. Sorry. ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Martin.Wolfert at ptv.de Fri Jul 8 13:23:11 2005 From: Martin.Wolfert at ptv.de (Martin Wolfert) Date: Fri, 8 Jul 2005 13:23:11 +0200 Subject: Plugin to check smp CPU's Message-ID: <9BAD90A62DF5AD4CA65EFCAAA6C012EE3E7D6A@ska-wn-e05.ptv.ptv.de> Hi anyone, did you knew any nagios plugin for monitoring cpu's ? The python based script on the nagios exchange website does not work on our sytem. And .... i cant "speak" python, so i cant fix the problem :-( Best Regards Martin Wolfert PTV AG Webadministrator R2.2 - Betrieb Internet Tel.: +49 7 21 96 51- 7128 Fax: +49 7 21 96 51- 599 E-Mail: martin.wolfert at ptv.de ____________________________ PTV Planung Transport Verkehr AG Stumpfstrasse 1 76131 Karlsruhe Germany http://www.ptv.de http://www.Reiseplanung.de http://www.varta-guide.de http://www.CityGuideFinder.de -------------- next part -------------- An HTML attachment was scrubbed... URL: From tjl at topdanmark.dk Fri Jul 8 13:34:09 2005 From: tjl at topdanmark.dk (Thomas Jens Lauritsen) Date: Fri, 8 Jul 2005 13:34:09 +0200 Subject: Vedr.: Plugin to check smp CPU's Message-ID: Hello, I use a selfmade plugin bash script to check more than one cpu. It is done via SNMP and it is working with a temp file to compare previous results. It's proberly not the smartest script in the world, but it works.... Currently it only checks win2000 os and up to 4 cpu's. You can expand the number of cpu?s your self. I can send you the plugin if you like. Best regards Thomas |---------+----------------------------------------> | | Martin Wolfert | | | | | | Sendt af: | | | nagios-users-admin at lists.sour| | | ceforge.net | | | | | | | | | 08-07-2005 13:23 | | | | |---------+----------------------------------------> >--------------------------------------------------------------------------------------------------------------| | | | Til: "'nagios-users at lists.sourceforge.net'" | | cc: | | Vedr.: [Nagios-users] Plugin to check smp CPU's | >--------------------------------------------------------------------------------------------------------------| Hi anyone, did you knew any nagios plugin for monitoring cpu's ? The python based script on the nagios exchange website does not work on our sytem. And .... i cant "speak" python, so i cant fix the problem :-( Best Regards Martin Wolfert PTV AG Webadministrator R2.2 - Betrieb Internet Tel.: +49 7 21 96 51- 7128 Fax: +49 7 21 96 51- 599 E-Mail: martin.wolfert at ptv.de ____________________________ PTV Planung Transport Verkehr AG Stumpfstrasse 1 76131 Karlsruhe Germany http://www.ptv.de http://www.Reiseplanung.de http://www.varta-guide.de http://www.CityGuideFinder.de ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Martin.Wolfert at ptv.de Fri Jul 8 13:41:29 2005 From: Martin.Wolfert at ptv.de (Martin Wolfert) Date: Fri, 8 Jul 2005 13:41:29 +0200 Subject: AW: Vedr.: Plugin to check smp CPU's Message-ID: <9BAD90A62DF5AD4CA65EFCAAA6C012EE3E7D6B@ska-wn-e05.ptv.ptv.de> Hi Thomas, thx for your posting .... It's my fault ... i had to check linux servers ..... SORRY .... Best Regards Martin > -----Urspr?ngliche Nachricht----- > Von: Thomas Jens Lauritsen [mailto:tjl at topdanmark.dk] > Gesendet: Freitag, 8. Juli 2005 13:34 > An: nagios-users at lists.sourceforge.net > Betreff: Vedr.: [Nagios-users] Plugin to check smp CPU's > > > Hello, > > I use a selfmade plugin bash script to check more than one cpu. > > It is done via SNMP and it is working with a temp file to > compare previous > results. > > It's proberly not the smartest script in the world, but it works.... > > Currently it only checks win2000 os and up to 4 cpu's. You > can expand the > number of cpu?s your self. > > I can send you the plugin if you like. > > Best regards > > Thomas > > > > > > > |---------+----------------------------------------> > | | Martin Wolfert | > | | | > | | Sendt af: | > | | nagios-users-admin at lists.sour| > | | ceforge.net | > | | | > | | | > | | 08-07-2005 13:23 | > | | | > |---------+----------------------------------------> > > >------------------------------------------------------------- > -------------------------------------------------| > | > | > | Til: "'nagios-users at lists.sourceforge.net'" > | > | cc: > | > | Vedr.: [Nagios-users] Plugin to check smp CPU's > | > > >------------------------------------------------------------- > -------------------------------------------------| > > > > > Hi anyone, > > > did you knew any nagios plugin for monitoring cpu's ? > > > The python based script on the nagios exchange website does > not work on our > sytem. > And .... i cant "speak" python, so i cant fix the problem :-( > > > Best Regards > > > Martin Wolfert > > > > > > PTV AG > Webadministrator > R2.2 - Betrieb Internet > Tel.: +49 7 21 96 51- 7128 > Fax: +49 7 21 96 51- 599 > E-Mail: martin.wolfert at ptv.de > ____________________________ > PTV > Planung Transport Verkehr AG > Stumpfstrasse 1 > 76131 Karlsruhe > Germany > http://www.ptv.de > http://www.Reiseplanung.de > http://www.varta-guide.de > http://www.CityGuideFinder.de > > > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by the 'Do More With Dual!' > webinar happening > July 14 at 8am PDT/11am EDT. We invite you to explore the > latest in dual > core and dual graphics technology at this free one hour event > hosted by HP, > AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 sampinar at gmail.com Fri Jul 8 15:21:00 2005 From: sampinar at gmail.com (Sam Pinar) Date: Fri, 8 Jul 2005 23:21:00 +1000 Subject: No statusmap.cgi Message-ID: <4aa21538050708062118fcdcad@mail.gmail.com> Hi all. I have a slight problem with Status Map. I have no "statusmap.cgi"!!! Any tips/solutions appreciated. 3-D Status Map works though. OS: Slackware 10.0 Nagios Version: 2.0b3 Cheers Sam Pinar ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 8 16:24:33 2005 From: marc at ena.com (Marc Powell) Date: Fri, 8 Jul 2005 09:24:33 -0500 Subject: No statusmap.cgi Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Sam Pinar > Sent: Friday, July 08, 2005 8:21 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] No statusmap.cgi > > Hi all. I have a slight problem with Status Map. I have no > "statusmap.cgi"!!! > > Any tips/solutions appreciated. It's detailed in the FAQ. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sxanrr at yahoo.com Fri Jul 8 16:35:36 2005 From: sxanrr at yahoo.com (Sxan) Date: Fri, 8 Jul 2005 07:35:36 -0700 (PDT) Subject: check_external_commands option Message-ID: <20050708143537.54359.qmail@web32205.mail.mud.yahoo.com> Hey all, I have a question regarding the check_external_commands option in the nagios.cfg file. Basically, I tried to schedule some downtime, saw that I needed to have that option enabled, so I went into the nagios.cfg file and changed the 0 to a 1 for that line like it is below: check_external_commands=1 I saved the .cfg and now when I try and restart nagios, it won't start. I just get: honda:/usr/local/nagios/etc # sh /etc/init.d/nagios restart Running configuration check...done Stopping network monitor: nagios Starting network monitor: nagios PID TTY TIME CMD honda:/usr/local/nagios/etc # If I run the following ..../nagios/etc/../bin/nagios -v nagios.cfg Everything checks out ok with just a couple warnings that have been there before. Am I missing something else I should be doing? Like perhaps specifying somewhere in the configs who has the right to run external commands? Thanks. Jim --------------------------------- Yahoo! Mail Stay connected, organized, and protected. Take the tour -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc at ena.com Fri Jul 8 17:14:59 2005 From: marc at ena.com (Marc Powell) Date: Fri, 8 Jul 2005 10:14:59 -0500 Subject: check_external_commands option Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Sxan > Sent: Friday, July 08, 2005 9:36 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] check_external_commands option > > > Hey all, > > I have a question regarding the check_external_commands option in the > nagios.cfg > file. Basically, I tried to schedule some downtime, saw that I needed to > have that > option enabled, so I went into the nagios.cfg file and changed the 0 to a > 1 for that line > like it is below: > > check_external_commands=1 > > I saved the .cfg and now when I try and restart nagios, it won't start. I > just get: > > honda:/usr/local/nagios/etc # sh /etc/init.d/nagios restart > Running configuration check...done > Stopping network monitor: nagios > Starting network monitor: nagios > PID TTY TIME CMD > honda:/usr/local/nagios/etc # > > If I run the following > ..../nagios/etc/../bin/nagios -v nagios.cfg Everything checks out ok with > just a couple warnings > that have been there before. Am I missing something else I should be > doing? Like perhaps > specifying somewhere in the configs who has the right to run external > commands? Thanks. Did you check nagios.log? Chances are that nagios isn't able to actually create the command pipe (nagios.cmd) in the path specified by command_file in nagios.cfg. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From DKeller at ABNCompany.com Fri Jul 8 17:29:58 2005 From: DKeller at ABNCompany.com (David Keller) Date: Fri, 8 Jul 2005 11:29:58 -0400 Subject: !st Time Message-ID: <8757FD4E4F83134BABC549F49929252306640A@abnco1404.abncompany.com> I am a novice at Linux and I am running Fedora Core 2 Is there an easy Nagios for Dummies reference to get this installed correctly? Keeping in mind I am from a Windows background... David Keller Network Engineer / Systems Administrator American Banknote Company 711 Armstrong Lane Columbia, TN. 38401 931-490-1726 (W) 931-698-6043 (C) -------------- next part -------------- An HTML attachment was scrubbed... URL: From eford at nexusenergy.com Fri Jul 8 17:37:31 2005 From: eford at nexusenergy.com (Edward Ford) Date: Fri, 8 Jul 2005 11:37:31 -0400 Subject: !st Time Message-ID: Good luck. Watch out for people in this forum also, they don't like easy questions. It took me awhile to get mine going and looking past the rude people in this forum with the help of the forum I got mine working. There are no books that I am aware of but there are a few good sites that I also used. Do a google search for them and they will be there. Good luck and ignore the rude people in this forum, there are a few helpful people in the forum along with them. Eddie -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of David Keller Sent: Friday, July 08, 2005 11:30 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] !st Time I am a novice at Linux and I am running Fedora Core 2 Is there an easy Nagios for Dummies reference to get this installed correctly? Keeping in mind I am from a Windows background. David Keller Network Engineer / Systems Administrator American Banknote Company 711 Armstrong Lane Columbia, TN. 38401 931-490-1726 (W) 931-698-6043 (C) -------------- next part -------------- An HTML attachment was scrubbed... URL: From scott at scl.utah.edu Fri Jul 8 17:41:24 2005 From: scott at scl.utah.edu (Scott Doenges) Date: Fri, 8 Jul 2005 09:41:24 -0600 Subject: arguments for check_hpjd plugin Message-ID: Hi all, Thanks for your suggestions regarding the check_hpjd plugin for monitoring printers. It sounds like it will do just what I want. However I am trying to use this Nagios plugin with Intermapper (a similar networking monitoring app for Mac OS X). Intermapper fully supports using Nagios plugins with their standard arguments, but since I'm a Nagios noob I'm having some difficulty setting up the plugin's arguments to report error conditions on a printer. It sounds like each plugin has a help page somewhere but without a proper Nagios install I can't get to them :) Can anyone offer some suggestions on the argument I need to use with this plugin, to report out of paper/toner/paper jam, etc? thanks, Scott -- _________________________________________ Scott Doenges Assistant Macintosh Specialist Student Computing Labs, Marriott Library University of Utah (801) 585-9811 http://www.macos.utah.edu http://scott.scl.utah.edu Even a stopped clock gives the right time twice a day. ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 8 17:42:38 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Fri, 8 Jul 2005 11:42:38 -0400 (EDT) Subject: UPS Monitoring In-Reply-To: <200507080914.46620.paul@ranahminang.net> References: <009501c58360$6ced0960$01fea8c0@itss.auckland.ac.nz> <200507080914.46620.paul@ranahminang.net> Message-ID: On Fri, 8 Jul 2005, PD wrote: > On Friday 08 July 2005 08:57, Steve Shipway wrote: >> We monitor ours via SNMP. I have no idea what the interface card is, >> though, although it seems to use a standard UPS part of the MIB tree. >> Here's the config if you're interested (suitably obfuscated): >> >> -Steve > > Thx Steve, > > I've to see SNMP MIB first for this purposes. > I did see the MIB number before but can not recall where (on CD directory). > > I will choose the best ways (using ups_check plugin or MIB code). > > Can anyone give me the suggesions ? > > Regards > > PD > In order to run check_ups, you need to be running Network UPS Tools (NUTs) instead of the vendor provided software. If the cable is the same as a Fenton UPS cable thats fine, but of more inportance is the protocol. You mentioned the software was RUPS, hence my guess is RUPS protocol. Both fenton and rups are supported by NUTs. -- -sg ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 8 17:49:34 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Fri, 8 Jul 2005 11:49:34 -0400 (EDT) Subject: arguments for check_hpjd plugin In-Reply-To: References: Message-ID: On Fri, 8 Jul 2005, Scott Doenges wrote: > Hi all, > > Thanks for your suggestions regarding the check_hpjd plugin for monitoring > printers. It sounds like it will do just what I want. > > However I am trying to use this Nagios plugin with Intermapper (a similar > networking monitoring app for Mac OS X). Intermapper fully supports using > Nagios plugins with their standard arguments, but since I'm a Nagios noob I'm > having some difficulty setting up the plugin's arguments to report error > conditions on a printer. It sounds like each plugin has a help page > somewhere but without a proper Nagios install I can't get to them :) > > Can anyone offer some suggestions on the argument I need to use with this > plugin, to report out of paper/toner/paper jam, etc? > > thanks, > Scott > Plugin help can be retrieved by running the plugins with -h as an option. There are no man pages. ----- This plugin tests the STATUS of an HP printer with a JetDirect card. Ucd-snmp must be installed on the computer running the plugin. Usage: check_hpjd -H host [-C community] check_hpjd --help check_hpjd --version Options: -H, --hostname=STRING or IPADDRESS Check server on the indicated host -C, --community=STRING The SNMP community name -h, --help Print detailed help screen -V, --version Print version information ------ This plugin checks the following objects and will error on all. #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" -- -sg ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From james at lovedthanlost.net Fri Jul 8 17:50:42 2005 From: james at lovedthanlost.net (James Turnbull) Date: Sat, 09 Jul 2005 01:50:42 +1000 Subject: !st Time In-Reply-To: <8757FD4E4F83134BABC549F49929252306640A@abnco1404.abncompany.com> References: <8757FD4E4F83134BABC549F49929252306640A@abnco1404.abncompany.com> Message-ID: <42CEA0D2.70204@lovedthanlost.net> David Keller wrote: > I am a novice at Linux and I am running Fedora Core 2 > > Is there an easy Nagios for Dummies reference to get this installed > correctly? > > Keeping in mind I am from a Windows background? > Hi The Nagios documentation is really quite good - http://www.nagios.org/docs/ and there are also these links (a little old but still good) that might help: http://www.onlamp.com/pub/a/onlamp/2002/09/05/nagios.html http://www.totkat.org/pages/nagios.shtml Regards James Turnbull -- James Turnbull --- Author of Hardening Linux from Apress (http://www.amazon.com/exec/obidos/tg/detail/-/1590594444/) --- PGP Key (http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x0C42DF40) ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Joseph.Petrucci at ddiworld.com Fri Jul 8 19:54:25 2005 From: Joseph.Petrucci at ddiworld.com (Petrucci, Joseph) Date: Fri, 8 Jul 2005 13:54:25 -0400 Subject: !st Time Message-ID: Do yourself a favor and make sure your Apache web-server and your SMTP server are working properly before you try to install Nagios. I have seen a lot of people start out installing Nagios on a system that is not fully functional and it makes it hard to tell if you problems are Nagios related or basic setup. >-----Original Message----- >From: nagios-users-admin at lists.sourceforge.net >[mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of James >Turnbull >Sent: Friday, July 08, 2005 11:51 AM >To: David Keller; nagios-users at lists.sourceforge.net >Subject: Re: [Nagios-users] !st Time > > >David Keller wrote: > >> I am a novice at Linux and I am running Fedora Core 2 >> >> Is there an easy Nagios for Dummies reference to get this installed >> correctly? >> >> Keeping in mind I am from a Windows background? >> >Hi > >The Nagios documentation is really quite good - >http://www.nagios.org/docs/ and there are also these links (a >little old >but still good) that might help: > >http://www.onlamp.com/pub/a/onlamp/2002/09/05/nagios.html >http://www.totkat.org/pages/nagios.shtml > >Regards > >James Turnbull > >-- >James Turnbull >--- >Author of Hardening Linux from Apress >(http://www.amazon.com/exec/obidos/tg/detail/-/1590594444/) >--- >PGP Key (http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x0C42DF40) > > > >------------------------------------------------------- >This SF.Net email is sponsored by the 'Do More With Dual!' >webinar happening >July 14 at 8am PDT/11am EDT. We invite you to explore the >latest in dual >core and dual graphics technology at this free one hour event >hosted by HP, >AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS >when reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Fri Jul 8 22:01:22 2005 From: formy-duval_alan at bah.com (Formy-Duval Alan) Date: Fri, 8 Jul 2005 16:01:22 -0400 Subject: Downloading Nagios Plugin Snapshot Message-ID: <70F40B6058284248BEAB168BF640CC598FCD9B@MCLNEXVS03.resource.ds.bah.com> Hello, I am trying to download and compile the latest snapshot in order to resolve a bug found with the libnsl library on Solaris. Which is the correct file to download from http://nagiosplug.sf.net/snapshot? Do I need the 'HEAD' file or the 'r1_4' file? Thanks Alan Formy-Duval, CISSP Booz | Allen | Hamilton (202)508-6827 ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gpadilla at cbct.com Fri Jul 8 22:08:06 2005 From: gpadilla at cbct.com (Guillermo Padilla) Date: Fri, 8 Jul 2005 16:08:06 -0400 Subject: Warning error Message-ID: <097D3590441CB345A836C4B3F7F813DC583D0B@mailsrv.cbct.com> I cant figure out why nagios gives me the following message: Warning: Monitoring process may not be running! Click here for more info. The nagios process is running as well as apache. Nagios.cmd is there with user nagios group nagiocmd. Any Ideas as to why I'm getting this? G -------------- next part -------------- An HTML attachment was scrubbed... URL: From sghosh at sghosh.org Fri Jul 8 22:21:21 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Fri, 8 Jul 2005 16:21:21 -0400 (EDT) Subject: Warning error In-Reply-To: <097D3590441CB345A836C4B3F7F813DC583D0B@mailsrv.cbct.com> References: <097D3590441CB345A836C4B3F7F813DC583D0B@mailsrv.cbct.com> Message-ID: On Fri, 8 Jul 2005, Guillermo Padilla wrote: > I cant figure out why nagios gives me the following message: > > Warning: Monitoring process may not be running! > Click here > for more info. > > > > The nagios process is running as well as apache. Nagios.cmd is there > with user nagios group nagiocmd. > > > > Any Ideas as to why I'm getting this? > > > > G > > FAQ 170 or FAQ 240 -- -sg ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Daniel.Rusch at fotf.org Fri Jul 8 22:25:26 2005 From: Daniel.Rusch at fotf.org (Rusch, Daniel) Date: Fri, 8 Jul 2005 14:25:26 -0600 Subject: AS 400 Plugin Message-ID: <8514B8AEA269234B82EF64E707E5885005886B15@nahum.mis.fotf.priv> I am using Version 0.18 of the check_as400 pluggin. I can get all of the checks to work except the check job (CJ) which is the one I need of course I think the problem is in identifying the job: ./check_as400 -H abraham -v CJ JDENET_K The check simply hangs and does not return in diag mode I get: Establishing connection to server...done. Logging in... waiting for screen... waiting for token IBM CORP... token received. sending login information for XXXXXXX... waiting for login to process... waiting for token ===>... responding to allocated to another job message... token received. Login completed. Sending command (4)... waiting for token Auswahl... JDENET_K is an active job. Any ideas? Thank you, Daniel G. Rusch x2027 -------------- next part -------------- An HTML attachment was scrubbed... URL: From gpadilla at cbct.com Fri Jul 8 22:42:02 2005 From: gpadilla at cbct.com (Guillermo Padilla) Date: Fri, 8 Jul 2005 16:42:02 -0400 Subject: Warning error Message-ID: <097D3590441CB345A836C4B3F7F813DC583D19@mailsrv.cbct.com> Yeah I've checked these FAQ's before but didn't help much. I have plenty of space and my cgi.cgi command is up to par with the nagios process running on the system. -----Original Message----- From: Subhendu Ghosh [mailto:sghosh at sghosh.org] Sent: Friday, July 08, 2005 4:21 PM To: Guillermo Padilla Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Warning error On Fri, 8 Jul 2005, Guillermo Padilla wrote: > I cant figure out why nagios gives me the following message: > > Warning: Monitoring process may not be running! > Click here > for more info. > > > > The nagios process is running as well as apache. Nagios.cmd is there > with user nagios group nagiocmd. > > > > Any Ideas as to why I'm getting this? > > > > G > > FAQ 170 or FAQ 240 -- -sg ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 8 22:44:57 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Fri, 8 Jul 2005 16:44:57 -0400 (EDT) Subject: Warning error In-Reply-To: <097D3590441CB345A836C4B3F7F813DC583D19@mailsrv.cbct.com> References: <097D3590441CB345A836C4B3F7F813DC583D19@mailsrv.cbct.com> Message-ID: On Fri, 8 Jul 2005, Guillermo Padilla wrote: > Yeah I've checked these FAQ's before but didn't help much. > > I have plenty of space and my cgi.cgi command is up to par with the > nagios process running on the system. > try and run the command defined in cgi.cfg for the proccess check and see what the output is. > > -----Original Message----- > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > Sent: Friday, July 08, 2005 4:21 PM > To: Guillermo Padilla > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Warning error > > On Fri, 8 Jul 2005, Guillermo Padilla wrote: > >> I cant figure out why nagios gives me the following message: >> >> Warning: Monitoring process may not be running! >> Click here > >> for more info. >> >> >> >> The nagios process is running as well as apache. Nagios.cmd is there >> with user nagios group nagiocmd. >> >> >> >> Any Ideas as to why I'm getting this? >> >> >> >> G >> >> > > FAQ 170 or FAQ 240 > > -- ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mark at bowmansystems.com Fri Jul 8 23:07:58 2005 From: mark at bowmansystems.com (Mark Rinaudo) Date: 08 Jul 2005 16:07:58 -0500 Subject: Nagios fills up the /tmp directory Message-ID: <1120856878.4460.1598.camel@penguin1> nagios-users, I've been using nagios for a little over a year. I'm running Nagios 1.2. I've just recently started running into problems where Nagios is writing files to the /tmp directory but does'nt seem to be removing them. The files start with the Ip address of the host that it's checking with an extension containing a series of letters and numbers. For some reason Nagios is filling up the /tmp directory with the maximum number of files allowed in a directory (not space wise) which causes the email server to break on the server making Nagios useless. This is running on Debian (woody). I've checked the permissions on the tmp directory and it's rwx by everyone. Has anyone run into this problem and what did you do to fix it? TIA mark -- Mark Rinaudo 318-213-8780 ext 111 Bowman Systems ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gpadilla at cbct.com Fri Jul 8 23:06:02 2005 From: gpadilla at cbct.com (Guillermo Padilla) Date: Fri, 8 Jul 2005 17:06:02 -0400 Subject: Warning error Message-ID: <097D3590441CB345A836C4B3F7F813DC583D20@mailsrv.cbct.com> This is what I get ./check_nagios -F /usr/local/nagios/var/status.log -e 5 -C /usr/local/nagios/bin/nagios Nagios ok: located 59 processes, status log updated 12 seconds ago -----Original Message----- From: Subhendu Ghosh [mailto:sghosh at sghosh.org] Sent: Friday, July 08, 2005 4:45 PM To: Guillermo Padilla Cc: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Warning error On Fri, 8 Jul 2005, Guillermo Padilla wrote: > Yeah I've checked these FAQ's before but didn't help much. > > I have plenty of space and my cgi.cgi command is up to par with the > nagios process running on the system. > try and run the command defined in cgi.cfg for the proccess check and see what the output is. > > -----Original Message----- > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > Sent: Friday, July 08, 2005 4:21 PM > To: Guillermo Padilla > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Warning error > > On Fri, 8 Jul 2005, Guillermo Padilla wrote: > >> I cant figure out why nagios gives me the following message: >> >> Warning: Monitoring process may not be running! >> Click here > >> for more info. >> >> >> >> The nagios process is running as well as apache. Nagios.cmd is there >> with user nagios group nagiocmd. >> >> >> >> Any Ideas as to why I'm getting this? >> >> >> >> G >> >> > > FAQ 170 or FAQ 240 > > -- ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 8 23:10:04 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Fri, 8 Jul 2005 17:10:04 -0400 (EDT) Subject: Warning error In-Reply-To: <097D3590441CB345A836C4B3F7F813DC583D20@mailsrv.cbct.com> References: <097D3590441CB345A836C4B3F7F813DC583D20@mailsrv.cbct.com> Message-ID: On Fri, 8 Jul 2005, Guillermo Padilla wrote: > This is what I get > > ./check_nagios -F /usr/local/nagios/var/status.log -e 5 -C > /usr/local/nagios/bin/nagios > Nagios ok: located 59 processes, status log updated 12 seconds ago > If the above command is present in cgi.cfg - then it would be an issue of the web-server user not being able to see the full proccess list. Are you running SELinux? > > > -----Original Message----- > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > Sent: Friday, July 08, 2005 4:45 PM > To: Guillermo Padilla > Cc: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Warning error > > On Fri, 8 Jul 2005, Guillermo Padilla wrote: > >> Yeah I've checked these FAQ's before but didn't help much. >> >> I have plenty of space and my cgi.cgi command is up to par with the >> nagios process running on the system. >> > > try and run the command defined in cgi.cfg for the proccess check and > see > what the output is. > > >> >> -----Original Message----- >> From: Subhendu Ghosh [mailto:sghosh at sghosh.org] >> Sent: Friday, July 08, 2005 4:21 PM >> To: Guillermo Padilla >> Cc: nagios-users at lists.sourceforge.net >> Subject: Re: [Nagios-users] Warning error >> >> On Fri, 8 Jul 2005, Guillermo Padilla wrote: >> >>> I cant figure out why nagios gives me the following message: >>> >>> Warning: Monitoring process may not be running! >>> Click here >> >>> for more info. >>> >>> >>> >>> The nagios process is running as well as apache. Nagios.cmd is there >>> with user nagios group nagiocmd. >>> >>> >>> >>> Any Ideas as to why I'm getting this? >>> >>> >>> >>> G >>> >>> >> >> FAQ 170 or FAQ 240 >> >> > > -- ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gpadilla at cbct.com Fri Jul 8 23:14:31 2005 From: gpadilla at cbct.com (Guillermo Padilla) Date: Fri, 8 Jul 2005 17:14:31 -0400 Subject: Warning error Message-ID: <097D3590441CB345A836C4B3F7F813DC583D21@mailsrv.cbct.com> That's what I'm thinking, I'm using apache 2.0.54 on RedHat Linux A.S. 4 -----Original Message----- From: Subhendu Ghosh [mailto:sghosh at sghosh.org] Sent: Friday, July 08, 2005 5:10 PM To: Guillermo Padilla Cc: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Warning error On Fri, 8 Jul 2005, Guillermo Padilla wrote: > This is what I get > > ./check_nagios -F /usr/local/nagios/var/status.log -e 5 -C > /usr/local/nagios/bin/nagios > Nagios ok: located 59 processes, status log updated 12 seconds ago > If the above command is present in cgi.cfg - then it would be an issue of the web-server user not being able to see the full proccess list. Are you running SELinux? > > > -----Original Message----- > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > Sent: Friday, July 08, 2005 4:45 PM > To: Guillermo Padilla > Cc: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Warning error > > On Fri, 8 Jul 2005, Guillermo Padilla wrote: > >> Yeah I've checked these FAQ's before but didn't help much. >> >> I have plenty of space and my cgi.cgi command is up to par with the >> nagios process running on the system. >> > > try and run the command defined in cgi.cfg for the proccess check and > see > what the output is. > > >> >> -----Original Message----- >> From: Subhendu Ghosh [mailto:sghosh at sghosh.org] >> Sent: Friday, July 08, 2005 4:21 PM >> To: Guillermo Padilla >> Cc: nagios-users at lists.sourceforge.net >> Subject: Re: [Nagios-users] Warning error >> >> On Fri, 8 Jul 2005, Guillermo Padilla wrote: >> >>> I cant figure out why nagios gives me the following message: >>> >>> Warning: Monitoring process may not be running! >>> Click here >> >>> for more info. >>> >>> >>> >>> The nagios process is running as well as apache. Nagios.cmd is there >>> with user nagios group nagiocmd. >>> >>> >>> >>> Any Ideas as to why I'm getting this? >>> >>> >>> >>> G >>> >>> >> >> FAQ 170 or FAQ 240 >> >> > > -- ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From benny at bennyvision.com Fri Jul 8 23:15:31 2005 From: benny at bennyvision.com (C. Bensend) Date: Fri, 8 Jul 2005 16:15:31 -0500 (CDT) Subject: Warning error In-Reply-To: References: <097D3590441CB345A836C4B3F7F813DC583D20@mailsrv.cbct.com> Message-ID: <3695.134.244.169.17.1120857331.squirrel@webmail.stinkweasel.net> > If the above command is present in cgi.cfg - then it would be an issue of > the web-server user not being able to see the full proccess list. > > Are you running SELinux? Or perhaps the webserver user cannot read nagios.log? Benny -- "I'd rather staple a skunk to my forehead and go to a trade show for banjo makers." -- PHB's secretary, Dilbert, 07-2002 ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From benny at bennyvision.com Fri Jul 8 23:17:36 2005 From: benny at bennyvision.com (C. Bensend) Date: Fri, 8 Jul 2005 16:17:36 -0500 (CDT) Subject: Warning error In-Reply-To: <3695.134.244.169.17.1120857331.squirrel@webmail.stinkweasel.net> References: <097D3590441CB345A836C4B3F7F813DC583D20@mailsrv.cbct.com> <3695.134.244.169.17.1120857331.squirrel@webmail.stinkweasel.net> Message-ID: <3697.134.244.169.17.1120857456.squirrel@webmail.stinkweasel.net> > >> If the above command is present in cgi.cfg - then it would be an issue >> of >> the web-server user not being able to see the full proccess list. >> >> Are you running SELinux? > > Or perhaps the webserver user cannot read nagios.log? Of course, I meant the status.log file. *sigh* Long week, TGIF. -- "I'd rather staple a skunk to my forehead and go to a trade show for banjo makers." -- PHB's secretary, Dilbert, 07-2002 ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gpadilla at cbct.com Fri Jul 8 23:39:48 2005 From: gpadilla at cbct.com (Guillermo Padilla) Date: Fri, 8 Jul 2005 17:39:48 -0400 Subject: Warning error Message-ID: <097D3590441CB345A836C4B3F7F813DC583D22@mailsrv.cbct.com> I've resolved this issue, early in the day I was working on trying to fix a problem the statusmap.cgi link where I get an internal error has occurred error. So I ran chcon -R -t httpd_sys_content_t /usr/local/nagios/sbin/ To try to fix the problem which it didn't. I did an ls -lz and enter the default security settings for that folder as if where when it was first installed. Well the process now shows as working. Now one to battling my cgi issue. Thanks for the help giving to me thus far. -g -----Original Message----- From: Subhendu Ghosh [mailto:sghosh at sghosh.org] Sent: Friday, July 08, 2005 5:10 PM To: Guillermo Padilla Cc: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Warning error On Fri, 8 Jul 2005, Guillermo Padilla wrote: > This is what I get > > ./check_nagios -F /usr/local/nagios/var/status.log -e 5 -C > /usr/local/nagios/bin/nagios > Nagios ok: located 59 processes, status log updated 12 seconds ago > If the above command is present in cgi.cfg - then it would be an issue of the web-server user not being able to see the full proccess list. Are you running SELinux? > > > -----Original Message----- > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > Sent: Friday, July 08, 2005 4:45 PM > To: Guillermo Padilla > Cc: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Warning error > > On Fri, 8 Jul 2005, Guillermo Padilla wrote: > >> Yeah I've checked these FAQ's before but didn't help much. >> >> I have plenty of space and my cgi.cgi command is up to par with the >> nagios process running on the system. >> > > try and run the command defined in cgi.cfg for the proccess check and > see > what the output is. > > >> >> -----Original Message----- >> From: Subhendu Ghosh [mailto:sghosh at sghosh.org] >> Sent: Friday, July 08, 2005 4:21 PM >> To: Guillermo Padilla >> Cc: nagios-users at lists.sourceforge.net >> Subject: Re: [Nagios-users] Warning error >> >> On Fri, 8 Jul 2005, Guillermo Padilla wrote: >> >>> I cant figure out why nagios gives me the following message: >>> >>> Warning: Monitoring process may not be running! >>> Click here >> >>> for more info. >>> >>> >>> >>> The nagios process is running as well as apache. Nagios.cmd is there >>> with user nagios group nagiocmd. >>> >>> >>> >>> Any Ideas as to why I'm getting this? >>> >>> >>> >>> G >>> >>> >> >> FAQ 170 or FAQ 240 >> >> > > -- ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 9 00:45:25 2005 From: tdondich at gmail.com (Taylor Dondich) Date: Fri, 8 Jul 2005 15:45:25 -0700 Subject: Fruity 1.0 beta 1 is now available! Message-ID: <3d2eb72a05070815456f643ff8@mail.gmail.com> Fruity 1.0 Beta 1 Released! http://fruity.sf.net Fruity 1.0 Beta is now released. Now is the time to try out the new Fruity program to ease the configuration tasks of your Nagios installation. Included is the new template system (which allows you to do a lot more than normal Nagios templates), escalations, and dependencies. Also a lot more error checking and some additional addons. Please note, Fruity is now covered under GPLv2. View LICENSE in the release for more information. Requirements: Web Server PHP 5.x (5 Is now used, for object orientated support) - PHP MySQL Extension - PHP Session Extension MySQL Database Engine - Tested on MySQL 4.1, should work on 3.x as well. ADOdb PHP Database Abstraction Layer - The adodb folder must be in your PHP's include_path. - http://adodb.sf.net PEAR's HTML_TreeMenu package - This must also be installed in your PHP's include_path. - See PHP Pear's Site for more info (http://pear.php.net) Downloading: Download the latest release at our Sourceforge Files section. Bug Tracking: To submit bug reports, please use our Sourceforge bug tracker. Support: Use either our Mailing List or our Discussion Forum to discuss problems or implementation issues. Fruity is developed by Taylor Dondich at Groundwork Open Source Solutions. ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From paul at ranahminang.net Sat Jul 9 05:48:33 2005 From: paul at ranahminang.net (PD) Date: Sat, 9 Jul 2005 10:48:33 +0700 Subject: UPS Monitoring In-Reply-To: References: <009501c58360$6ced0960$01fea8c0@itss.auckland.ac.nz> <200507080914.46620.paul@ranahminang.net> Message-ID: <200507091048.33778.paul@ranahminang.net> On Friday 08 July 2005 22:42, Subhendu Ghosh wrote: > In order to run check_ups, you need to be running Network UPS Tools (NUTs) > instead of the vendor provided software. Hm... means... UPS - NUTs - check_ups plug-in - Nagios engine - SMSD and... how if we choose using MIB ? is it UPS - check MIB every 60 second - Nagios engine - SMSD ? > If the cable is the same as a Fenton UPS cable thats fine, but of more > inportance is the protocol. You mentioned the software was RUPS, hence my > guess is RUPS protocol. exactly the same with the pin out too. > Both fenton and rups are supported by NUTs. Ok.. I will try on the other machine first Regards PD ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 9 06:29:03 2005 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Sat, 9 Jul 2005 14:29:03 +1000 Subject: Nagios notification via SMS In-Reply-To: <20050708211431.CC200896F7@sc8-sf-spam1.sourceforge.net> References: <20050708211431.CC200896F7@sc8-sf-spam1.sourceforge.net> Message-ID: <20050709042902.GA236@IPAustralia.Gov.AU> Dear Sir, I am writing to thank you for your letter and say, On Fri, Jul 08, 2005 at 02:13:37PM -0700, nagios-users-request at lists.sourceforge.net wrote: > From: Frederik Vanhee > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nagios notification via SMS > > Hello, > (firstly, thanks a bunch for not posting in HTML _and__ Base 64 __and__ quoted printable) > I wondered what hardware / software you are using to send text-messages > (SMS) to cell phones. Wavecom WM02 or equivalent (gsm modem ie modem + aerial + SIM in small package useful for installations doing telemetry etc. These modems support the standard text message enhanced AT command set) + that marvellous Open Source Product from France, smslink. > I think this could be done with an ordinary modem, but aren't there some > cellphone-modems where you can put the SIM-card ? > Using a GSM modem means that you bypass the providers interface to their text mesages service (for which you need to write an Expect/chat script to interact with anyway). smslink + GSM modems is a superior solution because 1 email interface 2 daemon/server instance 3 multiple modems 4 smslink has good debugging in the unlikely event of your troubleshooting delivery problems 5 mesage delivery logging 6 years of flawless operation here (but of course you may have to compile it yourself since I don't know if there are packages) If you > Thanks, > > Frederik > > > Also for local delivery to non contact 9-5 interested parties (eg developers, PHBs) jabber is a nice complement. I suppose one could also use it __instead__ of SMS but I haven't tried that. Yours sincerely -- Stanley Hopcroft -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: disclaimer.txt URL: From niceforums at yahoo.com Sat Jul 9 08:57:07 2005 From: niceforums at yahoo.com (hamideh daliri) Date: Fri, 8 Jul 2005 23:57:07 -0700 (PDT) Subject: problem with freewrl Message-ID: <20050709065707.93370.qmail@web30110.mail.mud.yahoo.com> hi , i have got freewrl for viewing ed status map, but nothing is shown ,just this message ' (loading...) 1.66 fps EXAMINE(?help) ' is shown, what does it mean? i have this problem on linux,in WinXP it works well. whoould you help me ? ____________________________________________________ Sell on Yahoo! Auctions ? no fees. Bid on great items. http://auctions.yahoo.com/ ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sat Jul 9 08:26:02 2005 From: b00mer at gmx.net (Hendrik Baecker) Date: Sat, 09 Jul 2005 08:26:02 +0200 Subject: Nagios fills up the /tmp directory In-Reply-To: <1120856878.4460.1598.camel@penguin1> References: <1120856878.4460.1598.camel@penguin1> Message-ID: <42CF6DFA.10107@gmx.net> Hi Mark, I am assuming that you're using the check_mssql.sh Plugin and the IP Adresses are all your MSSQL Server? I got this little failure long time ago and since them just deleted the files because they don't comes regulary. But I think on a special error with the MS-SQL Check this files were written and were not be cleaned up by the script. I am sorry but until now I had no chance to find out where to change the plugin, it looks clean for me. In every situation the 'rmcmd' is called for every of the three tmpfiles before script termination. A few days ago I've changed the filenames of the three tmpfiles and waiting for this special error to find out in which section of the script the error comes from. Now it looks like that the error occurs when the check_mssql.sh runs into a Service Check timeout: This is in the Nagios-Log: [06-07-2005 21:24:33] SERVICE ALERT: WIN100A023;MS-SQL 2000;CRITICAL;SOFT;1;(Service Check Timed Out) And these are the files: -rw------- 1 nagios nagios 0 Jul 6 21:24 10.2.70.132-error.KayB5a -rw------- 1 nagios nagios 0 Jul 6 21:24 10.2.70.132-result.c8dPP7 -rw------- 1 nagios nagios 12 Jul 6 21:24 10.2.70.132-tmp.SoGrv7 On Monday I have to find out from our Database Guys what was happend to their MS SQL on that date. Perhaps I can tell you more on Monday. Mark Rinaudo schrieb: >nagios-users, > >I've been using nagios for a little over a year. I'm running Nagios 1.2. >I've just recently started running into problems where Nagios is writing >files to the /tmp directory but does'nt seem to be removing them. >The files start with the Ip address of the host that it's checking with >an extension containing a series of letters and numbers. For some >reason Nagios is filling up the /tmp directory with the maximum number >of files allowed in a directory (not space wise) which causes the email >server to break on the server making Nagios useless. This is running on >Debian (woody). I've checked the permissions on the tmp directory and >it's rwx by everyone. Has anyone run into this problem and what did you >do to fix it? > >TIA >mark > > > ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From paul at ranahminang.net Sat Jul 9 10:01:03 2005 From: paul at ranahminang.net (PD) Date: Sat, 9 Jul 2005 15:01:03 +0700 Subject: UPS Monitoring In-Reply-To: <200507091048.33778.paul@ranahminang.net> References: <009501c58360$6ced0960$01fea8c0@itss.auckland.ac.nz> <200507091048.33778.paul@ranahminang.net> Message-ID: <200507091501.03870.paul@ranahminang.net> On Saturday 09 July 2005 10:48, PD wrote: > On Friday 08 July 2005 22:42, Subhendu Ghosh wrote: > > In order to run check_ups, you need to be running Network UPS Tools > > (NUTs) instead of the vendor provided software. > > Hm... means... UPS - NUTs - check_ups plug-in - Nagios engine - SMSD > I just install nut 2.0.1.... # upsd Network UPS Tools upsd 2.0.1 /usr/local/etc/nut/upsd.conf is world readable Connected to UPS [ica-sin3100c]: genericups-cuaa0 /usr/local/etc/nut/upsd.users is world readable Synchronizing...done # upsdrvctl -v start Network UPS Tools - UPS driver controller 2.0.1 exec: /usr/local/libexec/nut/genericups -a ica-sin3100c Network UPS Tools - Generic UPS driver 1.30 (2.0.1) UPS type: Generic RUPS model # upsc ica-sin3100c at localhost driver.name: genericups driver.parameter.port: /dev/cuaa0 driver.parameter.upstype: 4 driver.version: 2.0.1 driver.version.internal: 1.30 ups.mfr: Generic ups.model: Generic RUPS model ups.status: OL # upsmon Network UPS Tools upsmon 2.0.1 UPS: ica-sin3100c at localhost (master) (power value 1) Using power down flag file /etc/killpower Broadcast Message from admin at localhost (no tty) at 14:48 WIT... Communications with UPS ica-sin3100c at localhost lost Broadcast Message from admin at localhost (no tty) at 14:48 WIT... UPS ica-sin3100c at localhost is unavailable --- end of snipped -- What could be wrong ? Regards PD ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 9 13:07:43 2005 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Sat, 9 Jul 2005 21:07:43 +1000 Subject: OT: SEC forwarding of Nagios hard events to a jabber conference (logical multicast of the Nag log) In-Reply-To: <20050709031443.8D39E89924@sc8-sf-spam1.sourceforge.net> References: <20050709031443.8D39E89924@sc8-sf-spam1.sourceforge.net> Message-ID: <20050709110742.GC239@IPAustralia.Gov.AU> Dear Folks, My employer uses SEC to forward Nagios events to a jabber/instant message conference. Without SEC watching the tail of the Nagios log, it would have been necessary to write another daemon. Here is the extremely simple minded SEC rule # 10 Hard Nag events to jabber # [1120877089] SERVICE ALERT: aphrodite;SysTst B2B OLP;OK;HARD;3;OK OLP Worst: Test Time => 0.10 Statii: OLP User Manager => OK, OLP Payment Notification Provider => OK .. # host service state # type type=Single ptype=RegExp pattern=\[\d+\] SERVICE ALERT: .+?;.+?;.+?;HARD;.* desc=Hard events from Nagios to Jabber conference action=eval %o ( \ $nag_event = '$0'; \ $nag_event =~ s/^\[\d+\] //; \ $nag_event; \ ); \ pipe '%o' /usr/local/bin/sendxmpp -c -r nagios nagios at conference.xena Since SEC runs as user root, the root account must contain the .sendxmpp file in which are the credentials of the jabber user writing t othe conference. Yours sincerely. -- Stanley Hopcroft -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: disclaimer.txt URL: From sghosh at sghosh.org Sat Jul 9 14:57:38 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Sat, 9 Jul 2005 08:57:38 -0400 (EDT) Subject: UPS Monitoring In-Reply-To: <200507091048.33778.paul@ranahminang.net> References: <009501c58360$6ced0960$01fea8c0@itss.auckland.ac.nz> <200507080914.46620.paul@ranahminang.net> <200507091048.33778.paul@ranahminang.net> Message-ID: On Sat, 9 Jul 2005, PD wrote: > On Friday 08 July 2005 22:42, Subhendu Ghosh wrote: >> In order to run check_ups, you need to be running Network UPS Tools (NUTs) >> instead of the vendor provided software. > > Hm... means... UPS - NUTs - check_ups plug-in - Nagios engine - SMSD > > and... how if we choose using MIB ? > is it UPS - check MIB every 60 second - Nagios engine - SMSD ? If you choose the MIB route, you need either firmware in the UPS that talks SNMP or an SNMP agent on the host that talks to UPS over the serial connections. In both cases you still need a software to control the host shutdown sequence. > >> If the cable is the same as a Fenton UPS cable thats fine, but of more >> inportance is the protocol. You mentioned the software was RUPS, hence my >> guess is RUPS protocol. > > exactly the same with the pin out too. > >> Both fenton and rups are supported by NUTs. > Ok.. I will try on the other machine first > > Regards > > PD > -sg -- ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From az at whoever.org Sun Jul 10 04:47:56 2005 From: az at whoever.org (Az) Date: Sun, 10 Jul 2005 12:47:56 +1000 Subject: Nagios notification via SMS In-Reply-To: <42CE0C3A.2080704@perso.be> References: <42CE0C3A.2080704@perso.be> Message-ID: <20050710124756.gzwvgwzjn8tcckwk@webmail.whoever.org> We've been using a pair of old Siemens M20 GSM modems with SMS Server Tools (http://smstools.meinemullemaus.de/) for about 4 years for a variety of things. We've wrapped some home grown stuff around these for sending SMS from Nagios and can acknowledge a service outage via SMS as well. Cheers. ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lists-nagios at silverwraith.com Sat Jul 9 22:11:30 2005 From: lists-nagios at silverwraith.com (Avleen Vig) Date: Sat, 9 Jul 2005 13:11:30 -0700 Subject: BUG: check_smtp, protocol problems Message-ID: <20050709201130.GL11612@silverwraith.com> Hi folks, I think I've found a bug in the current check_smtp. The problem occurs with MTA behaviour that is becoming more common: banner delays. The theory is, that if someone sends you data before the end of the banner (before a line starting '220 '), they are probably a spammer Well behaved mail software waits for the checkpoints instead of just blasting data down the pipe. Unfortunately the plugin isn't well behaved. As soon as the cnnection is formed, it sends the HELO to the server being checked. It should wait for a like starting with three digits and a space. If the three digits are 220, then everything is OK. Otherwise, there's an error. Unfortunately I don't know enough C to write a patch :( Can anyone help? -- Avleen Vig Systems Administrator Personal: www.silverwraith.com ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sun Jul 10 11:15:47 2005 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Sun, 10 Jul 2005 19:15:47 +1000 Subject: Nagios notification via SMS In-Reply-To: <20050710031415.E061089B4D@sc8-sf-spam1.sourceforge.net> References: <20050710031415.E061089B4D@sc8-sf-spam1.sourceforge.net> Message-ID: <20050710091546.GA238@IPAustralia.Gov.AU> Dear Sir, I am writing to thank you for your letter and say, On Sat, Jul 09, 2005 at 08:12:52PM -0700, nagios-users-request at lists.sourceforge.net wrote: > From: Az > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Nagios notification via SMS > .. snip .. > We've wrapped some home grown stuff around these for sending SMS from > Nagios and can acknowledge a service outage via SMS as well. Would you care to share (privately or with the list) how to acknowledge alerts by SMS ? Thank you for raising this exciting possibility. > > Cheers. Yours sincerely -- Stanley Hopcroft -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: disclaimer.txt URL: From amacks at techtarget.com Sun Jul 10 17:18:31 2005 From: amacks at techtarget.com (Aaron Macks) Date: Sun, 10 Jul 2005 11:18:31 -0400 Subject: Checking GDTH RAID? Message-ID: I have several servers with the Intel SCSI Raid cards that use the GDTH driver. Does anyone know of a plugin to check the status of the RAID(enough info is available in /proc/scsi/gdth/#), or am I writing this one myself? 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 ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From HJahn at woosh.com Sun Jul 10 22:12:15 2005 From: HJahn at woosh.com (Holger Jahn) Date: Mon, 11 Jul 2005 08:12:15 +1200 Subject: Nagios and SMS Message-ID: <44C4DC99A083FA48864ACEFF85B96261030A0482@wwl_mail1.intwwl.net> You may want to have a look at clickatell.com, they are operating world wide. Holger > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Davy Gaussen > Sent: Friday, 8 July 2005 11:02 p.m. > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nagios and SMS > > Hi, > > I also want to know if someone have found a freeware to send nagios > notifications via SMS ? I am in France and I am not sure all the products > are available . > > Thank you by advance > > Davy > > > > ------------------------------------------------------- > This SF.Net email is sponsored by the 'Do More With Dual!' webinar > happening > July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual > core and dual graphics technology at this free one hour event hosted by > HP, > AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 11 07:32:51 2005 From: Philipp.Sand at sycor.de (Sand Philipp) Date: Mon, 11 Jul 2005 07:32:51 +0200 Subject: AW: Perfdata truncated? Message-ID: <6943DE9E9934CD42BBE4A20E0E28E10E01CC9D44@SYGOMAIL.GOE.AD.SYCOR.DE> >Hi there, Hi Holger, >I ran into a problem with 2.0b3. It looks like it somehow truncates the incoming perfdata (btw, are threre any limitations?). >That's what my test script spits out on the command line: >SNMP: DISCONNECT query finished.|numConnectionAttempts=1549, normalUserDisconnect=882, ueFault=19, handover=4, uePowerDownDisconnect=59, >ueLostCoverage=5, ueNoAllocation=3, ueLayer2Failure=4, ueHardwareUnsupported=0, managerInitiatedForcedUserDisc=2, overload=0, systemInit=0, [...]Snip .. lots of perfdata output here...[...] >And that's what I see in status.dat and also as HTML output: >plugin_output=SNMP: DISCONNECT query finished. >??????? performance_data=numConnectionAttempts=1552, normalUserDisconnect=883, ueFault=19, handover=4, uePowerDownDisconnect=59, ueLostCoverage=5, >ueNoAllocation=3, ueLayer2Failure=4, ueHardwareUnsupported=0, managerInitiatedForcedUserDisc=2, overload=0, systemInit=0, relocMaxIuCxns=0, >nodeBDecommission=0, l2tpSessionFailure=0, l2tpSessi > >Would be very nice if someone had an idea what this might cause. Ok, now that I see the output ... ;) I think it's because of some fieldsize variables in the status.cgi. I don't know the exact variable to change that fieldsize, but maybe you can find it yourself, or maybe somebody else here can help to locate it. You can find the source code in the nagios-2.0b3.tar.gz -> Nagios-2.0b3/cgi directory. Hope this helps! Greetz, Philipp ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mon Jul 11 09:47:59 2005 From: b00mer at gmx.net (Hendrik Baecker) Date: Mon, 11 Jul 2005 09:47:59 +0200 Subject: Nagios fills up the /tmp directory In-Reply-To: <42CF6DFA.10107@gmx.net> References: <1120856878.4460.1598.camel@penguin1> <42CF6DFA.10107@gmx.net> Message-ID: <42D2242F.7080501@gmx.net> Hi all, our database guys have looked into the different logs from the SQL Server but didn't find any hints. Perhaps its just a little Problem with the Plugin... Hendrik Baecker schrieb: > Hi Mark, > > I am assuming that you're using the check_mssql.sh Plugin and the IP > Adresses are all your MSSQL Server? > > I got this little failure long time ago and since them just deleted > the files because they don't comes regulary. > > But I think on a special error with the MS-SQL Check this files were > written and were not be cleaned up by the script. > I am sorry but until now I had no chance to find out where to change > the plugin, it looks clean for me. > In every situation the 'rmcmd' is called for every of the three > tmpfiles before script termination. > > A few days ago I've changed the filenames of the three tmpfiles and > waiting for this special error to find out in which section of the > script the error comes from. > > Now it looks like that the error occurs when the check_mssql.sh runs > into a Service Check timeout: > > This is in the Nagios-Log: > [06-07-2005 21:24:33] SERVICE ALERT: WIN100A023;MS-SQL > 2000;CRITICAL;SOFT;1;(Service Check Timed Out) > > And these are the files: > -rw------- 1 nagios nagios 0 Jul 6 21:24 > 10.2.70.132-error.KayB5a > -rw------- 1 nagios nagios 0 Jul 6 21:24 > 10.2.70.132-result.c8dPP7 > -rw------- 1 nagios nagios 12 Jul 6 21:24 > 10.2.70.132-tmp.SoGrv7 > > On Monday I have to find out from our Database Guys what was happend > to their MS SQL on that date. Perhaps I can tell you more on Monday. > > Mark Rinaudo schrieb: > >> nagios-users, >> >> I've been using nagios for a little over a year. I'm running Nagios 1.2. >> I've just recently started running into problems where Nagios is writing >> files to the /tmp directory but does'nt seem to be removing them. >> The files start with the Ip address of the host that it's checking with >> an extension containing a series of letters and numbers. For some >> reason Nagios is filling up the /tmp directory with the maximum number >> of files allowed in a directory (not space wise) which causes the email >> server to break on the server making Nagios useless. This is running on >> Debian (woody). I've checked the permissions on the tmp directory and >> it's rwx by everyone. Has anyone run into this problem and what did you >> do to fix it? >> >> TIA >> mark >> >> >> > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by the 'Do More With Dual!' webinar > happening > July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual > core and dual graphics technology at this free one hour event hosted > by HP, AMD, and NVIDIA. To register visit > http://www.hp.com/go/dualwebinar > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk > being sent to /dev/null > > ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Richard.Luys at vanderlet.nl Mon Jul 11 11:09:09 2005 From: Richard.Luys at vanderlet.nl (Richard.Luys at vanderlet.nl) Date: Mon, 11 Jul 2005 11:09:09 +0200 Subject: Nagios compile errors with MySQL on 64-bit SLES9 Message-ID: <9BC12CEA9D0D27409DB7599F44FDD3572E7EDB@vdlsv00029.vanderlet.nl> Hi all, We got some new hardware for our Nagios-server and I'm busy installing it. It's a 64-bit Intel architecture (EM64T) machine, installed with the 64-bit variant of SLES9. When I try to compile nagios 1.2 with MySQL support, I initially got the errors: mysql/mysql.h and mysql/errmsgs.h not found. I fixed those thanks to the user-list archives. But unfortunately, I now get these errors during make all: /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../x86_64-suse-linux /bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../x86_64-suse-linux /bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../x86_64-suse-linux /bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../x86_64-suse-linux /bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc Followed by a lot of 'unreferenced' messages. 'incompatible': does that mean the 64-bit libraries are not compatible and I should use 32-bit libraries instead? Or is it something else? Anybody have a similar setup? My ./configure options are as follows: ./configure \ --prefix=/usr/local/nagios \ --with-nagios-user=nagios \ --with-nagios-grp=nagios \ --with-gd-lib=/usr/lib \ --with-gd-inc=/usr/include \ --with-mysql-xdata \ --with-mysql-lib=/usr/local/mysql/lib/ \ --with-mysql-inc=/usr/local/mysql/include/ \ --with-mysql-status \ --with-mysql-comments \ --with-mysql-extinfo \ --with-mysql-retention \ --with-mysql-downtime The MySQL version used is: 4.0.24 64-bit. I've read on the user-list that this would be a problem since they changed the API from version 3 to 4; but we are running MySQL 4 on the 'old' Nagios-server as well, without problems ?!?!?! Any suggestions are greatly appreciated! Regards / Met vriendelijke groet, VANDERLET B.V. R. (Richard) Luys Systeem specialist VANDERLET SupportCentre Tel: 030-609 09 97 Zoomstede 1 Postbus 1038 3430 BA Nieuwegein Tel: 030-600 00 33 Fax: 030-600 00 13 E-mail: supportdesk at vanderlet.nl Internet: http://www.vanderlet.nl This e-mail message and its attachments are subject to the disclaimer published at the following website of VANDERLET: http://www.vanderlet.nl/disclaimer -------------- next part -------------- An HTML attachment was scrubbed... URL: From derfrecheDachs at gmx.net Mon Jul 11 11:12:43 2005 From: derfrecheDachs at gmx.net (derfrecheDachs at gmx.net) Date: Mon, 11 Jul 2005 11:12:43 +0200 (MEST) Subject: =?ISO-8859-1?Q?Central_nrpe_config-management?= Message-ID: <5000.1121073163@www79.gmx.net> Hi, I?d like to know if there is a solution for this problem and how it works if there are different config-files on the clients. How about the way to have the same cfg-file on the clients with not used (deacivated) services ?? Any other solution possible ?? Thnx Horst -- Weitersagen: GMX DSL-Flatrates mit Tempo-Garantie! Ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From james at lovedthanlost.net Mon Jul 11 12:41:49 2005 From: james at lovedthanlost.net (James Turnbull) Date: Mon, 11 Jul 2005 20:41:49 +1000 Subject: Central nrpe config-management In-Reply-To: <5000.1121073163@www79.gmx.net> References: <5000.1121073163@www79.gmx.net> Message-ID: <42D24CED.1090200@lovedthanlost.net> derfrecheDachs at gmx.net wrote: >Hi, > >I?d like to know if there is a solution for this problem and how it works if >there are different config-files on the clients. >How about the way to have the same cfg-file on the clients with not used >(deacivated) services ?? >Any other solution possible ?? > > >Thnx Horst > > > We used cfengine (http://www.cfengine.org/) to distribute our nrpe and other config files. We had a script which ran over the config file and enabled or disabled the services we wanted on each machine. This also meant you could change the services being montitored by running the script. Was just a very simple Bash script that used sed. I am sure you could do something much more impressive with Perl. Regards James Turnbull -- James Turnbull --- Author of Hardening Linux from Apress (http://www.amazon.com/exec/obidos/tg/detail/-/1590594444/) --- PGP Key (http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x0C42DF40) ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 11 12:59:13 2005 From: chris at aidworld.org (chris at aidworld.org) Date: Mon, 11 Jul 2005 11:59:13 +0100 (BST) Subject: Nagios and SMS In-Reply-To: <44C4DC99A083FA48864ACEFF85B96261030A0482@wwl_mail1.intwwl.net> References: <44C4DC99A083FA48864ACEFF85B96261030A0482@wwl_mail1.intwwl.net> Message-ID: <52907.131.111.156.217.1121079553.squirrel@131.111.156.217> Hi Holger, > You may want to have a look at clickatell.com, they are operating world > wide. We used to use clickatell, but when they started demanding photocopies of the front and back of our credit card and contracts signed in blood, we switched to Kapow, which is slightly more expensive but UK-based and easier to work with. I think they will deliver SMSes to any mobile number worldwide, and don't charge us different rates for different networks and countries. Cheers, Chris. ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sxanrr at yahoo.com Mon Jul 11 14:02:01 2005 From: sxanrr at yahoo.com (Sxan) Date: Mon, 11 Jul 2005 05:02:01 -0700 (PDT) Subject: check_external_commands option In-Reply-To: References: Message-ID: <20050711120201.69737.qmail@web32212.mail.mud.yahoo.com> Thanks for the reply, as far as what you suggested, I checked the log and there are no errors in there that are outside the scope of the normal notifications that Nagios gives. Does using the external commands require that it be configured in more places than just the nagios.cfg? I'm guessing that maybe I'm missing some other variable that the external command checking depends on or something. Thanks again for the reply and help. Marc Powell wrote: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Sxan > Sent: Friday, July 08, 2005 9:36 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] check_external_commands option > > > Hey all, > > I have a question regarding the check_external_commands option in the > nagios.cfg > file. Basically, I tried to schedule some downtime, saw that I needed to > have that > option enabled, so I went into the nagios.cfg file and changed the 0 to a > 1 for that line > like it is below: > > check_external_commands=1 > > I saved the .cfg and now when I try and restart nagios, it won't start. I > just get: > > honda:/usr/local/nagios/etc # sh /etc/init.d/nagios restart > Running configuration check...done > Stopping network monitor: nagios > Starting network monitor: nagios > PID TTY TIME CMD > honda:/usr/local/nagios/etc # > > If I run the following > ..../nagios/etc/../bin/nagios -v nagios.cfg Everything checks out ok with > just a couple warnings > that have been there before. Am I missing something else I should be > doing? Like perhaps > specifying somewhere in the configs who has the right to run external > commands? Thanks. Did you check nagios.log? Chances are that nagios isn't able to actually create the command pipe (nagios.cmd) in the path specified by command_file in nagios.cfg. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null --------------------------------- Yahoo! Mail for Mobile Take Yahoo! Mail with you! Check email on your mobile phone. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sxanrr at yahoo.com Mon Jul 11 16:41:05 2005 From: sxanrr at yahoo.com (Sxan) Date: Mon, 11 Jul 2005 07:41:05 -0700 (PDT) Subject: check_external_commands option In-Reply-To: <20050711120201.69737.qmail@web32212.mail.mud.yahoo.com> References: <20050711120201.69737.qmail@web32212.mail.mud.yahoo.com> Message-ID: <20050711144105.51392.qmail@web32213.mail.mud.yahoo.com> Update: I apologize, but I must have just missed seeing it in the log file. You are correct about the error with Nagios and the nagios.cmd file. Here is the error in the log... [1121088502] Error: Could not create external command file '/usr/local/nagios/var/rw/nagios.cmd' as named pipe: (2) -> No suc h file or directory. If this file already exists and you are sure that another copy of Nagios is not running, you should del ete this file. [1121088502] Bailing out due to errors encountered while trying to open the external command file for reading... (PID=3627) So is this a common error with an easy fix? I'm going to be googling for the resolution and checking the faq's, but any replies would still be appreciated. Thanks! Sxan wrote: Thanks for the reply, as far as what you suggested, I checked the log and there are no errors in there that are outside the scope of the normal notifications that Nagios gives. Does using the external commands require that it be configured in more places than just the nagios.cfg? I'm guessing that maybe I'm missing some other variable that the external command checking depends on or something. Thanks again for the reply and help. Marc Powell wrote: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Sxan > Sent: Friday, July 08, 2005 9:36 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] check_external_commands option > > > Hey all, > > I have a question regarding the check_external_commands option in the > nagios.cfg > file. Basically, I tried to schedule some downtime, saw that I needed to > have that > option enabled, so I went into the nagios.cfg file and changed the 0 to a > 1 for that line > like it is below: > > check_external_commands=1 > > I saved the .cfg and now when I try and restart nagios, it won't start. I > just get: > > honda:/usr/local/nagios/etc # sh /etc/init.d/nagios restart > Running configuration check...done > Stopping network monitor: nagios > Starting network monitor: nagios > PID TTY TIME CMD > honda:/usr/local/nagios/etc # > > If I run the following > ..../nagios/etc/../bin/nagios -v nagios.cfg Everything checks out ok with > just a couple warnings > that have been there before. Am I missing something else I should be > doing? Like perhaps > specifying somewhere in the configs who has the right to run external > commands? Thanks. Did you check nagios.log? Chances are that nagios isn't able to actually create the command pipe (nagios.cmd) in the path specified by command_file in nagios.cfg. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null --------------------------------- Yahoo! Mail for Mobile Take Yahoo! Mail with you! Check email on your mobile phone. __________________________________________________ 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 marc at ena.com Mon Jul 11 16:55:26 2005 From: marc at ena.com (Marc Powell) Date: Mon, 11 Jul 2005 09:55:26 -0500 Subject: check_external_commands option Message-ID: Does the /usr/local/nagios/var/rw directory exist and have permissions such that nagios (and also your web server) can write to it? I do not believe that directory is created by the nagios install as it's just a suggested location so you would need to create it yourself. http://nagios.sourceforge.net/docs/1_0/commandfile.html might be useful. -- Marc > -----Original Message----- > From: Sxan [mailto:sxanrr at yahoo.com] > Sent: Monday, July 11, 2005 9:41 AM > To: Sxan; Marc Powell; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] check_external_commands option > > > > Update: > > I apologize, but I must have just missed seeing it in the log file. You > are correct about the > error with Nagios and the nagios.cmd file. Here is the error in the log... > > [1121088502] Error: Could not create external command file > '/usr/local/nagios/var/rw/nagios.cmd' as named pipe: (2) -> No suc > h file or directory. If this file already exists and you are sure that > another copy of Nagios is not running, you should del > ete this file. > [1121088502] Bailing out due to errors encountered while trying to open > the external command file for reading... (PID=3627) > > So is this a common error with an easy fix? I'm going to be googling for > the resolution and checking the faq's, but any replies would still be > appreciated. Thanks! > > Sxan wrote: > > > > Thanks for the reply, as far as what you suggested, I checked the > log and > there are no errors in there that are outside the scope of the > normal notifications > that Nagios gives. Does using the external commands require that it > be configured > in more places than just the nagios.cfg? I'm guessing that maybe I'm > missing > some other variable that the external command checking depends on or > something. > Thanks again for the reply and help. > > Marc Powell wrote: > > > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of Sxan > > Sent: Friday, July 08, 2005 9:36 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] check_external_commands option > > > > > > Hey all, > > > > I have a question regarding the check_external_commands > option in the > > nagios.cfg > > file. Basically, I tried to schedule some downtime, saw that > I needed > to > > have that > > option enabled, so I went into the nagios.cfg file and > changed the 0 > to a > > 1 for that line > > like it is below: > > > > check_external_commands=1 > > > > I saved the .cfg and now when I try and restart nagios, it > won't > start. I > > just get: > > > > honda:/usr/local/nagios/etc # sh /etc/init.d/nagios restart > > Running configuration check...done > > Stopping network monitor: nagios > > Starting network monitor: nagios > > PID TTY TIME CMD > > honda:/usr/local/nagios/etc # > > > > If I run the following > > ..../nagios/etc/../bin/nagios -v nagios.cfg Everything > checks out ok > with > > just a couple warnings > > that have been there before. Am I missing something else I > should be > > doing? Like perhaps > > specifying somewhere in the configs who has the right to run > external > > commands? Thanks. > > Did you check nagios.log? Chances are that nagios isn't able > to actually > create the command pipe (nagios.cmd) in the path specified by > command_file in nagios.cfg. > > -- > Marc > > > ------------------------------------------------------- > This SF.Net email is sponsored by the 'Do More With Dual!' > webinar happening > July 14 at 8am PDT/11am EDT. We! invite you to explore the > latest in dual > core and dual graphics technology at this free one hour event > hosted by HP, > AMD, and NVIDIA. To register visit > http://www.hp.com/go/dualwebinar > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to > /dev/null > > > > ________________________________ > > Yahoo! Mail for Mobile > Take Yahoo! Mail with you! > > Check email on your mobile phone. > > __________________________________________________ > 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 the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sxanrr at yahoo.com Mon Jul 11 17:14:38 2005 From: sxanrr at yahoo.com (Sxan) Date: Mon, 11 Jul 2005 08:14:38 -0700 (PDT) Subject: check_external_commands option In-Reply-To: <20050711120201.69737.qmail@web32212.mail.mud.yahoo.com> References: <20050711120201.69737.qmail@web32212.mail.mud.yahoo.com> Message-ID: <20050711151438.73519.qmail@web32202.mail.mud.yahoo.com> Update: I apologize, but I must have just missed seeing it in the log file. You are correct about the error with Nagios and the nagios.cmd file. Here is the error in the log... [1121088502] Error: Could not create external command file '/usr/local/nagios/var/rw/nagios.cmd' as named pipe: (2) -> No suc h file or directory. If this file already exists and you are sure that another copy of Nagios is not running, you should del ete this file. [1121088502] Bailing out due to errors encountered while trying to open the external command file for reading... (PID=3627) So is this a common error with an easy fix? I'm going to be googling for the resolution and checking the faq's, but any replies would still be appreciated. Thanks! Sxan wrote: Thanks for the reply, as far as what you suggested, I checked the log and there are no errors in there that are outside the scope of the normal notifications that Nagios gives. Does using the external commands require that it be configured in more places than just the nagios.cfg? I'm guessing that maybe I'm missing some other variable that the external command checking depends on or something. Thanks again for the reply and help. Marc Powell wrote: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Sxan > Sent: Friday, July 08, 2005 9:36 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] check_external_commands option > > > Hey all, > > I have a question regarding the check_external_commands option in the > nagios.cfg > file. Basically, I tried to schedule some downtime, saw that I needed to > have that > option enabled, so I went into the nagios.cfg file and changed the 0 to a > 1 for that line > like it is below: > > check_external_commands=1 > > I saved the .cfg and now when I try and restart nagios, it won't start. I > just get: > > honda:/usr/local/nagios/etc # sh /etc/init.d/nagios restart > Running configuration check...done > Stopping network monitor: nagios > Starting network monitor: nagios > PID TTY TIME CMD > honda:/usr/local/nagios/etc # > > If I run the following > ..../nagios/etc/../bin/nagios -v nagios.cfg Everything checks out ok with > just a couple warnings > that have been there before. Am I missing something else I should be > doing? Like perhaps > specifying somewhere in the configs who has the right to run external > commands? Thanks. Did you check nagios.log? Chances are that nagios isn't able to actually create the command pipe (nagios.cmd) in the path specified by command_file in nagios.cfg. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null --------------------------------- Yahoo! Mail for Mobile Take Yahoo! Mail with you! Check email on your mobile phone. __________________________________________________ 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 sxanrr at yahoo.com Mon Jul 11 17:20:01 2005 From: sxanrr at yahoo.com (Sxan) Date: Mon, 11 Jul 2005 08:20:01 -0700 (PDT) Subject: check_external_commands option - host showing down when it's up In-Reply-To: References: Message-ID: <20050711152001.35420.qmail@web32211.mail.mud.yahoo.com> Thanks Marc, I actually found that same document during my search and it worked out well. Now to the root of the reason why I needed to enable external commands. I have a host that was going up and down all throughout the weekend due to power issues. This host is now up and functioning, yet nagios is still reporting it as being down. I just ran the check again manually through the web interface, and it's still reporting the host as down. I can ping the host fine from the box that nagios is running on, all other hosts are showing fine. It's just this one host. Is there some kind of cache or anything that I might need to clear in order to correct this issue? Marc Powell wrote: Does the /usr/local/nagios/var/rw directory exist and have permissions such that nagios (and also your web server) can write to it? I do not believe that directory is created by the nagios install as it's just a suggested location so you would need to create it yourself. http://nagios.sourceforge.net/docs/1_0/commandfile.html might be useful. -- Marc > -----Original Message----- > From: Sxan [mailto:sxanrr at yahoo.com] > Sent: Monday, July 11, 2005 9:41 AM > To: Sxan; Marc Powell; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] check_external_commands option > > > > Update: > > I apologize, but I must have just missed seeing it in the log file. You > are correct about the > error with Nagios and the nagios.cmd file. Here is the error in the log... > > [1121088502] Error: Could not create external command file > '/usr/local/nagios/var/rw/nagios.cmd' as named pipe: (2) -> No suc > h file or directory. If this file already exists and you are sure that > another copy of Nagios is not running, you should del > ete this file. > [1121088502] Bailing out due to errors encountered while trying to open > the external command file for reading... (PID=3627) > > So is this a common error with an easy fix? I'm going to be googling for > the resolution and checking the faq's, but any replies would still be > appreciated. Thanks! > > Sxan wrote: > > > > Thanks for the reply, as far as what you suggested, I checked the > log and > there are no errors in there that are outside the scope of the > normal notifications > that Nagios gives. Does using the external commands require that it > be configured > in more places than just the nagios.cfg? I'm guessing that maybe I'm > missing > some other variable that the external command checking depends on or > something. > Thanks again for the reply and help. > > Marc Powell wrote: > > > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of Sxan > > Sent: Friday, July 08, 2005 9:36 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] check_external_commands option > > > > > > Hey all, > > > > I have a question regarding the check_external_commands > option in the > > nagios.cfg > > file. Basically, I tried to schedule some downtime, saw that > I needed > to > > have that > > option enabled, so I went into the nagios.cfg file and > changed the 0 > to a > > 1 for that line > > like it is below: > > > > check_external_commands=1 > > > > I saved the .cfg and now when I try and restart nagios, it > won't > start. I > > just get: > > > > honda:/usr/local/nagios/etc # sh /etc/init.d/nagios restart > > Running configuration check...done > > Stopping network monitor: nagios > > Starting network monitor: nagios > > PID TTY TIME CMD > > honda:/usr/local/nagios/etc # > > > > If I run the following > > ..../nagios/etc/../bin/nagios -v nagios.cfg Everything > checks out ok > with > > just a couple warnings > > that have been there before. Am I missing something else I > should be > > doing? Like perhaps > > specifying somewhere in the configs who has the right to run > external > > commands? Thanks. > > Did you check nagios.log? Chances are that nagios isn't able > to actually > create the command pipe (nagios.cmd) in the path specified by > command_file in nagios.cfg. > > -- > Marc > > > ------------------------------------------------------- > This SF.Net email is sponsored by the 'Do More With Dual!' > webinar happening > July 14 at 8am PDT/11am EDT. We! invite you to explore the > latest in dual > core and dual graphics technology at this free one hour event > hosted by HP, > AMD, and NVIDIA. To register visit > http://www.hp.com/go/dualwebinar > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to > /dev/null > > > > ________________________________ > > Yahoo! Mail for Mobile > Take Yahoo! Mail with you! > > Check email on your mobile phone. > > __________________________________________________ > 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 the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From anasd2 at yahoo.fr Mon Jul 11 17:38:17 2005 From: anasd2 at yahoo.fr (Anas Dhouib) Date: Mon, 11 Jul 2005 17:38:17 +0200 (CEST) Subject: RH AS3.0 Message-ID: <20050711153817.88033.qmail@web25710.mail.ukl.yahoo.com> Hi all, Is there anyone who tested Nagios1.2 on RedHat AS3.0? If yes, is there any specific problems? thanks, Anas ___________________________________________________________________________ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger T?l?chargez cette version sur http://fr.messenger.yahoo.com ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From joshadmin at netnitco.net Mon Jul 11 18:05:26 2005 From: joshadmin at netnitco.net (NetNITCO Systems Administration) Date: Mon, 11 Jul 2005 11:05:26 -0500 Subject: check_radius works from command line but lists Auth Error via interface Message-ID: <42D298C6.9090603@netnitco.net> While deploying a new Nagios installation, I've ran into a problem with the 'check_radius' plugin. I can execute check_radius as follows from the command line and it appears to function properly: # ./check_radius -H 216.xxx.xxx.xxx -F /etc/nagios/radiusclient.conf -u Username -p Password -t 10 The result from the above command is "Auth OK" without a newline. However, with the service configured, I get the following from Nagios: Service Status Last Check Duration Attempt Status Information RADIUS CRITICAL 07-11-2005 10:44:04 0d 1h 27m 34s 3/3 Auth Error I also noticed that when executing the command manually from the command line, I get the following in my RADIUS logs: Mon Jul 11 10:45:37 2005 : Auth: Login OK: [Username] (from client hostsystem port 0) I do NOT have any information in my RADIUS logs for the attempts by Nagios. After noticing this, I used tcpdump to see what was happening when Nagios attempted the check. I only get the following: 10:49:04.976764 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], length: 84) hostsystem.domain.net > radiushost.domain.net: icmp 64: echo request seq 1 10:49:04.976989 IP (tos 0x0, ttl 64, id 35731, offset 0, flags [DF], length: 84) radiushost.domain.net > hostsystem.domain.net: icmp 64: echo reply seq 1 10:49:05.976415 IP (tos 0x0, ttl 64, id 1, offset 0, flags [DF], length: 84) hostsystem.domain.net > radiushost.domain.net: icmp 64: echo request seq 2 10:49:05.976676 IP (tos 0x0, ttl 64, id 35734, offset 0, flags [DF], length: 84) radiushost.domain.net > hostsystem.domain.net: icmp 64: echo reply seq 2 [SNIP] However, when I run the command manually, I receive: 10:45:39.988513 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], length: 90) hostsystem.domain.net.39090 > radiushost.domain.net.datametrics: RADIUS, length: 62 Access Request (1), id: 0x9e, Authenticator: 40c1d67540eae20c5551b7292a18dfdf Service Type Attribute (6), length: 6, Value: Authenticate Only 0x0000: 0000 0008 10:45:39.992663 IP (tos 0x0, ttl 64, id 27936, offset 0, flags [none], length: 90) radiushost.domain.net.datametrics > hostsystem.domain.net.39090: RADIUS, length: 62 Access Accept (2), id: 0x9e, Authenticator: ec6b64d922ae10566679dd15f5a632fc Service Type Attribute (6), length: 6, Value: Framed 0x0000: 0000 0002 My configuration for this service and command is as follows: services.cfg: --------------- define service{ use generic-service host_name radiushost.domain.net service_description RADIUS is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups sysadmin notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_radius } checkcommands.cfg: ------------------ define command{ command_name check_radius command_line $USER1$/check_radius -H $HOSTADDRESS$ -F /etc/nagios/radiusclient.conf -u Username -p Password -t 10 I have also tried specifying all options for the checkcommand.cfg entry as $ARGn$ variables and passing them that way, as well as manually specifying the host IP in place of $HOSTADDRESS$. My check_radius version reports: check_radius (nagios-plugins 1.4) 1.21 Thanks, ~ Josh Snyder, System Administrator NetNITCO Internet Services joshadmin at netnitco.net ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gpadilla at cbct.com Mon Jul 11 18:43:20 2005 From: gpadilla at cbct.com (Guillermo Padilla) Date: Mon, 11 Jul 2005 12:43:20 -0400 Subject: nagios external command error Message-ID: <097D3590441CB345A836C4B3F7F813DC583D7F@mailsrv.cbct.com> I've gotten the following error Error: Could not open command file '/usr/local/nagios/var/rw/nagios.cmd' for update! The permissions on the external command file and/or directory may be incorrect. Read the FAQs on how to setup proper permissions. An error occurred while attempting to commit your command for processing. I've done the suggested http://nagios.sourceforge.net/docs/1_0/commandfile.html Instructions to fix this issue with no luck. The only way I can run external commands via the nagios interface is by manually chmoddin nagios.cmd to 777. Currently the user/group for this process is nagios:nagiocmd I'm running RH AS 4.0 with apache 2.0.54 and nagios 1.2 Any suggestions would be great. g -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike at m5computersecurity.com Mon Jul 11 18:57:18 2005 From: mike at m5computersecurity.com (Michael J McCafferty) Date: Mon, 11 Jul 2005 09:57:18 -0700 Subject: RH AS3.0 In-Reply-To: <20050711153817.88033.qmail@web25710.mail.ukl.yahoo.com> References: <20050711153817.88033.qmail@web25710.mail.ukl.yahoo.com> Message-ID: <5.2.0.9.0.20050711095711.04a10488@stout.m5hosting.com> Anas, I am using Nagios 1.2 on RHEL 3.0. I am actually using WS, but AS is the same with more packages. I used the RPMs from DAG. Works great. Only problems I had were related to specific versions of specific plugins, which have nothing to do with the distro of Linux you use. Go for it. Mike At 05:38 PM 7/11/2005 +0200, Anas Dhouib wrote: >Hi all, >Is there anyone who tested Nagios1.2 on RedHat AS3.0? >If yes, is there any specific problems? >thanks, >Anas > > > > > > > >___________________________________________________________________________ >Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger >T?l?chargez cette version sur http://fr.messenger.yahoo.com > > >------------------------------------------------------- >This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening >July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual >core and dual graphics technology at this free one hour event hosted by HP, >AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when >reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 11 21:46:32 2005 From: marc at ena.com (Marc Powell) Date: Mon, 11 Jul 2005 14:46:32 -0500 Subject: nagios external command error Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Guillermo Padilla > Sent: Monday, July 11, 2005 11:43 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] nagios external command error > > I've gotten the following error > > > > Error: Could not open command file '/usr/local/nagios/var/rw/nagios.cmd' > for update! > > The permissions on the external command file and/or directory may be > incorrect. Read the FAQs on how to setup proper permissions. > > An error occurred while attempting to commit your command for processing. > > > > I've done the suggested > http://nagios.sourceforge.net/docs/1_0/commandfile.html > > Instructions to fix this issue with no luck. > > > > The only way I can run external commands via the nagios interface is by > manually chmoddin nagios.cmd to 777. > > > > Currently the user/group for this process is nagios:nagiocmd > > > > I'm running RH AS 4.0 with apache 2.0.54 and nagios 1.2 Mmmmm. AS 4.0. Do you have SELINUX enabled? Do you see SELINUX errors in /var/log/messages? Make sure your policy allows apache to write to that file/directory. Another common problem is that apache is not a member of the nagiocmd group _or_ wasn't restarted after adding it to that group. Your apache error logs might be informative in that regard as well. -- Marc p.s. Please try to send to the list in text/plain as a matter of courtesy. The digests don't handle HTML mail well. ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 11 21:48:47 2005 From: marc at ena.com (Marc Powell) Date: Mon, 11 Jul 2005 14:48:47 -0500 Subject: check_external_commands option - host showing down when it's up Message-ID: > -----Original Message----- > From: Sxan [mailto:sxanrr at yahoo.com] > Sent: Monday, July 11, 2005 10:20 AM > To: Marc Powell; nagios-users at lists.sourceforge.net > Subject: [Nagios-users] check_external_commands option - host showing down > when it's up > > > Thanks Marc, > > I actually found that same document during my search and it worked out > well. Now > to the root of the reason why I needed to enable external commands. I have > a host that was going up and down all throughout the weekend due to power > issues. This host is now up > and functioning, yet nagios is still reporting it as being down. I just > ran the check again > manually through the web interface, and it's still reporting the host as > down. I can ping > the host fine from the box that nagios is running on, all other hosts are > showing fine. It's > just this one host. Is there some kind of cache or anything that I might > need to clear > in order to correct this issue? No, there isn't. Can you run the command successfully exactly as nagios is configured to run it, as the nagios user, from the command line? -- Marc ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sxanrr at yahoo.com Mon Jul 11 21:53:37 2005 From: sxanrr at yahoo.com (Sxan) Date: Mon, 11 Jul 2005 12:53:37 -0700 (PDT) Subject: check_external_commands option - host showing down when it's up In-Reply-To: References: Message-ID: <20050711195337.25997.qmail@web32214.mail.mud.yahoo.com> Well, I've troubleshot it down to where the problem is lying, now it's just a matter of seeing if it's the host that really does have a problem. Basically, Nagios is complaining that the TTL is being exceeded for this host, yet I have another host in the same office with the same conditions that doesn't get anything like that. So I'm just confused how this came up all of a sudden. Since the second host is just fine, I thought Nagios might have been having some kind of issue. I think I'm going to be troubleshooting more on the server side now as opposed to thinking that Nagios is having any problems. Thanks for your help, much appreciated as always. --- Marc Powell wrote: > > > > -----Original Message----- > > From: Sxan [mailto:sxanrr at yahoo.com] > > Sent: Monday, July 11, 2005 10:20 AM > > To: Marc Powell; > nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] check_external_commands > option - host showing > down > > when it's up > > > > > > Thanks Marc, > > > > I actually found that same document during my > search and it worked out > > well. Now > > to the root of the reason why I needed to enable > external commands. I > have > > a host that was going up and down all throughout > the weekend due to > power > > issues. This host is now up > > and functioning, yet nagios is still reporting it > as being down. I > just > > ran the check again > > manually through the web interface, and it's still > reporting the host > as > > down. I can ping > > the host fine from the box that nagios is running > on, all other hosts > are > > showing fine. It's > > just this one host. Is there some kind of cache or > anything that I > might > > need to clear > > in order to correct this issue? > > No, there isn't. Can you run the command > successfully exactly as nagios > is configured to run it, as the nagios user, from > the command line? > > -- > Marc > > > ------------------------------------------------------- > This SF.Net email is sponsored by the 'Do More With > Dual!' webinar happening > July 14 at 8am PDT/11am EDT. We invite you to > explore the latest in dual > core and dual graphics technology at this free one > hour event hosted by HP, > AMD, and NVIDIA. To register visit > http://www.hp.com/go/dualwebinar > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version > (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being > sent to /dev/null > __________________________________ Yahoo! Mail Stay connected, organized, and protected. Take the tour: http://tour.mail.yahoo.com/mailtour.html ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gpadilla at cbct.com Mon Jul 11 22:33:17 2005 From: gpadilla at cbct.com (Guillermo Padilla) Date: Mon, 11 Jul 2005 16:33:17 -0400 Subject: nagios external command error Message-ID: <097D3590441CB345A836C4B3F7F813DC583DCE@mailsrv.cbct.com> Yes I have SELINUX enabled but no errors in /var/log/messages. I'll check the policy. I've previously restarted apache after nobody was added to nagiocmd with no luck. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Marc Powell Sent: Monday, July 11, 2005 3:47 PM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] nagios external command error > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Guillermo Padilla > Sent: Monday, July 11, 2005 11:43 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] nagios external command error > > I've gotten the following error > > > > Error: Could not open command file '/usr/local/nagios/var/rw/nagios.cmd' > for update! > > The permissions on the external command file and/or directory may be > incorrect. Read the FAQs on how to setup proper permissions. > > An error occurred while attempting to commit your command for processing. > > > > I've done the suggested > http://nagios.sourceforge.net/docs/1_0/commandfile.html > > Instructions to fix this issue with no luck. > > > > The only way I can run external commands via the nagios interface is by > manually chmoddin nagios.cmd to 777. > > > > Currently the user/group for this process is nagios:nagiocmd > > > > I'm running RH AS 4.0 with apache 2.0.54 and nagios 1.2 Mmmmm. AS 4.0. Do you have SELINUX enabled? Do you see SELINUX errors in /var/log/messages? Make sure your policy allows apache to write to that file/directory. Another common problem is that apache is not a member of the nagiocmd group _or_ wasn't restarted after adding it to that group. Your apache error logs might be informative in that regard as well. -- Marc p.s. Please try to send to the list in text/plain as a matter of courtesy. The digests don't handle HTML mail well. ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From subscribe at aehome.net Tue Jul 12 02:12:27 2005 From: subscribe at aehome.net (Adam Emery) Date: Mon, 11 Jul 2005 19:12:27 -0500 Subject: RH AS3.0 In-Reply-To: <20050711153817.88033.qmail@web25710.mail.ukl.yahoo.com> References: <20050711153817.88033.qmail@web25710.mail.ukl.yahoo.com> Message-ID: <002b01c58676$75782c40$0208090a@a1> I had 1.2 running on redhat as 3 for quite some time. There were no issues at all. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Anas Dhouib Sent: Monday, July 11, 2005 10:38 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] RH AS3.0 Hi all, Is there anyone who tested Nagios1.2 on RedHat AS3.0? If yes, is there any specific problems? thanks, Anas ___________________________________________________________________________ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger T?l?chargez cette version sur http://fr.messenger.yahoo.com ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.baddeley at vpc.co.nz Tue Jul 12 02:19:28 2005 From: jamie.baddeley at vpc.co.nz (jamie.baddeley at vpc.co.nz) Date: Tue, 12 Jul 2005 12:19:28 +1200 Subject: RH AS3.0 In-Reply-To: <002b01c58676$75782c40$0208090a@a1> References: <002b01c58676$75782c40$0208090a@a1> Message-ID: <1121127568.15684.57.camel@localhost.localdomain> If you use dag wieers packages from his rpm repository - he compiles in the embedded perl support. And that memory leaks like a sieve. So don't compile embedded perl and everything is fine. jamie On Mon, 2005-07-11 at 19:12 -0500, Adam Emery wrote: > I had 1.2 running on redhat as 3 for quite some time. There were no issues > at all. > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Anas Dhouib > Sent: Monday, July 11, 2005 10:38 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] RH AS3.0 > > Hi all, > Is there anyone who tested Nagios1.2 on RedHat AS3.0? > If yes, is there any specific problems? > thanks, > Anas > ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dthorndi at bigpond.net.au Tue Jul 12 02:22:02 2005 From: dthorndi at bigpond.net.au (David Thorndike) Date: Tue, 12 Jul 2005 10:22:02 +1000 Subject: Nagios New User Message-ID: <003b01c58677$ba4bb0c0$204fa8c0@laptop> Hi all I currently have Nagios installed on a fedora box in a data centre and have managed to get it configured so that I can get ot the web managment etc.. But.... as soon a I try and use any of the cgi's it just comes back with a "Internal Server Error" webpage. Has anyone else had this problem ? and IF so what are the fixes? I'm a totally new user to all of this having come from a windows background. Thanks David Thorndike. -------------- next part -------------- An HTML attachment was scrubbed... URL: From prosolutions at gmx.net Tue Jul 12 04:04:36 2005 From: prosolutions at gmx.net (prosolutions at gmx.net) Date: Mon, 11 Jul 2005 19:04:36 -0700 Subject: How to get nagios to re-authenticate Message-ID: <20050712020436.GH31487@localdomain> I am working on configuring nagios and re-access it frequently from a web browser. However, it seems once I auth against it one time from a particular host it never asks me to re-authenticate. I have just made changes to my config and from one machine on which I was able to log in fresh everything is working. However from the original machine that I logged in I keep getting the nasty "It appears as though you do not have permission to view information for any of the services you requested...". I see no way to get around this since there is no "logout" option and it just keeps assuming I'm the same user without proper permissions... ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 12 04:53:36 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Mon, 11 Jul 2005 22:53:36 -0400 (EDT) Subject: nagios external command error In-Reply-To: <097D3590441CB345A836C4B3F7F813DC583D7F@mailsrv.cbct.com> References: <097D3590441CB345A836C4B3F7F813DC583D7F@mailsrv.cbct.com> Message-ID: Nagios and apache need to be in the same group, if SELINUX is running, allow http_context on var/rw/ On Mon, 11 Jul 2005, Guillermo Padilla wrote: > I've gotten the following error > > > > Error: Could not open command file '/usr/local/nagios/var/rw/nagios.cmd' > for update! > > The permissions on the external command file and/or directory may be > incorrect. Read the FAQs on how to setup proper permissions. > > An error occurred while attempting to commit your command for > processing. > > > > I've done the suggested > http://nagios.sourceforge.net/docs/1_0/commandfile.html > > Instructions to fix this issue with no luck. > > > > The only way I can run external commands via the nagios interface is by > manually chmoddin nagios.cmd to 777. > > > > Currently the user/group for this process is nagios:nagiocmd > > > > I'm running RH AS 4.0 with apache 2.0.54 and nagios 1.2 > > > > Any suggestions would be great. > > > > g > > > > -- ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From benny at bennyvision.com Tue Jul 12 05:34:43 2005 From: benny at bennyvision.com (C. Bensend) Date: Mon, 11 Jul 2005 22:34:43 -0500 (CDT) Subject: nagios external command error In-Reply-To: References: <097D3590441CB345A836C4B3F7F813DC583D7F@mailsrv.cbct.com> Message-ID: <60012.63.227.74.41.1121139283.squirrel@webmail.stinkweasel.net> > Nagios and apache need to be in the same group, > if SELINUX is running, allow http_context on var/rw/ I wonder if the Makefile could be adapted to check for selinux, and if it's present/enabled, spit out a blurb stating the above? It seems to be a pretty common question. I'd submit a patch, but unfortunately makefiles are not exactly my strong suit. OK, I'm exaggerating - I couldn't makefile my way out of a wet paper bag. ;) Benny -- "I'd rather staple a skunk to my forehead and go to a trade show for banjo makers." -- PHB's secretary, Dilbert, 07-2002 ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 12 05:46:48 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Mon, 11 Jul 2005 23:46:48 -0400 (EDT) Subject: nagios external command error In-Reply-To: <60012.63.227.74.41.1121139283.squirrel@webmail.stinkweasel.net> References: <097D3590441CB345A836C4B3F7F813DC583D7F@mailsrv.cbct.com> <60012.63.227.74.41.1121139283.squirrel@webmail.stinkweasel.net> Message-ID: On Mon, 11 Jul 2005, C. Bensend wrote: > >> Nagios and apache need to be in the same group, >> if SELINUX is running, allow http_context on var/rw/ > > I wonder if the Makefile could be adapted to check for selinux, and > if it's present/enabled, spit out a blurb stating the above? > > It seems to be a pretty common question. I'd submit a patch, but > unfortunately makefiles are not exactly my strong suit. OK, I'm > exaggerating - I couldn't makefile my way out of a wet paper > bag. ;) > > Benny > Agreed - the whole SELINUX situation seems to be folks running settings without understanding implications. Should probably also add a FAQ item. -- -sg ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Stanley.Hopcroft at IPAustralia.gov.au Tue Jul 12 07:17:34 2005 From: Stanley.Hopcroft at IPAustralia.gov.au (Stanley Hopcroft) Date: Tue, 12 Jul 2005 15:17:34 +1000 Subject: RH AS3.0 In-Reply-To: <20050712031757.BF5B512E7B@sc8-sf-spam2.sourceforge.net> References: <20050712031757.BF5B512E7B@sc8-sf-spam2.sourceforge.net> Message-ID: <20050712051734.GD13671@ws11114.aipo.gov.au> Dear Folks, I am writing to thank you for your letter and say, On Mon, Jul 11, 2005 at 08:12:41PM -0700, nagios-users-request at lists.sourceforge.net wrote: > > Subject: RE: [Nagios-users] RH AS3.0 > From: "jamie.baddeley at vpc.co.nz" > To: nagios-users at lists.sourceforge.net > Organization: Viewpoint Consulting Ltd > Date: Tue, 12 Jul 2005 12:19:28 +1200 > > If you use dag wieers packages from his rpm repository - he compiles in > the embedded perl support. > And that memory leaks like a sieve. With respect, I think you are wrong. Initial releases of 2.0 had embedded Perl support with the leak from Hell that you describe. Since 2.0b3, that is no longer case. The embedded Perl support still leaks memory __but__ there are sites with 2,000 plus Perl service checks that think the leak rate is acceptable given the performance boost. I urge you try the embedded Perl support post at 2.0b3 at CVS and let the list know of the leak rate, the number of services and the number of Perl plugin services if you find the rate is unacceptable. Embedded Perl is not like a supercharger; you are prob better off without it than with. OTOH, if you use Perl plugins exte > So don't compile embedded perl and everything is fine. > > jamie > Yours sincerely. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: disclaimer.txt URL: From jamie.baddeley at vpc.co.nz Tue Jul 12 07:28:53 2005 From: jamie.baddeley at vpc.co.nz (jamie.baddeley at vpc.co.nz) Date: Tue, 12 Jul 2005 17:28:53 +1200 Subject: RH AS3.0 In-Reply-To: <20050712051734.GD13671@ws11114.aipo.gov.au> References: <20050712031757.BF5B512E7B@sc8-sf-spam2.sourceforge.net> <20050712051734.GD13671@ws11114.aipo.gov.au> Message-ID: <1121146134.15684.154.camel@localhost.localdomain> On Tue, 2005-07-12 at 15:17 +1000, Stanley Hopcroft wrote: > Dear Folks, > > I am writing to thank you for your letter and say, > > On Mon, Jul 11, 2005 at 08:12:41PM -0700, nagios-users-request at lists.sourceforge.net wrote: > > > > Subject: RE: [Nagios-users] RH AS3.0 > > From: "jamie.baddeley at vpc.co.nz" > > To: nagios-users at lists.sourceforge.net > > Organization: Viewpoint Consulting Ltd > > Date: Tue, 12 Jul 2005 12:19:28 +1200 > > > > If you use dag wieers packages from his rpm repository - he compiles in > > the embedded perl support. > > > And that memory leaks like a sieve. > > With respect, I think you are wrong. Nope. I disagree. I used the rpm's for 1.2 from Dag's site and it leaked big time. I can show the graphs if you want. I recompiled with the embedded perl option left out and it stopped leaking. Past threads pointed me this way - which is why I tried it. As for 2.0b3 I concur that your efforts may well have stopped what ever leak it is you refer to (noting the feedback in devel) cheers jamie ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jzygmont at solarflow.net Tue Jul 12 07:27:49 2005 From: jzygmont at solarflow.net (Justin Zygmont) Date: Mon, 11 Jul 2005 22:27:49 -0700 (PDT) Subject: Nagios New User In-Reply-To: <003b01c58677$ba4bb0c0$204fa8c0@laptop> References: <003b01c58677$ba4bb0c0$204fa8c0@laptop> Message-ID: yes, I have. I seem to have got farther to the next problem, so maybe I can help you with this. On Tue, 12 Jul 2005, David Thorndike wrote: > Hi all > > I currently have Nagios installed on a fedora box in a data centre and have managed to get it configured so that I can get ot the web managment etc.. > > But.... as soon a I try and use any of the cgi's it just comes back with a "Internal Server Error" webpage. > > Has anyone else had this problem ? and IF so what are the fixes? > > I'm a totally new user to all of this having come from a windows background. > > Thanks > > David Thorndike. ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jzygmont at solarflow.net Tue Jul 12 07:37:04 2005 From: jzygmont at solarflow.net (Justin Zygmont) Date: Mon, 11 Jul 2005 22:37:04 -0700 (PDT) Subject: setting up nagios Message-ID: Hi, I am trying to setup nagios for the first time, and whenever I click on a link, I keep getting the error message that says it's unable to read the object data. I tried following the docs, but it stops short of what to do after compiling, and installation. I'd appreciate if anyone knows what else to do. thanks, ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From paul at ranahminang.net Tue Jul 12 09:15:52 2005 From: paul at ranahminang.net (PD) Date: Tue, 12 Jul 2005 14:15:52 +0700 Subject: UPS Monitoring In-Reply-To: References: <009501c58360$6ced0960$01fea8c0@itss.auckland.ac.nz> <200507091048.33778.paul@ranahminang.net> Message-ID: <200507121415.52274.paul@ranahminang.net> Dear all. Can someone give me an example brief about how to use check_ups ? the utilities under NUT already up and run. # upsc ica-sin3100c at localhost driver.name: genericups driver.parameter.port: /dev/cuaa0 driver.parameter.upstype: 4 driver.version: 2.0.1 driver.version.internal: 1.30 ups.mfr: Generic ups.model: Generic RUPS model ups.status: OL But, check_ups still not working. How to test it ? # /usr/local/libexec/nagios/check_ups -H 127.0.0.1 -u ica-sin3100c UPS does not support any available options Regards PD ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From moshesharon at gmail.com Tue Jul 12 10:10:32 2005 From: moshesharon at gmail.com (Moshe Sharon) Date: Tue, 12 Jul 2005 08:10:32 +0000 (UTC) Subject: How to get nagios to re-authenticate References: <20050712020436.GH31487@localdomain> Message-ID: Hello this is not nagios issue. its apache related to basic authentication method ( if you are using standard htpasswd ). there are few ways to do it but it involves little programming. you can do it by creating a link logout and then in the new page ( php or perl ) changing the header to: Header("WWW-Authenticate: Basic realm='NAGIOS REALM'"); Header("HTTP/1.0 401 Unauthorized"); this will reask your password. put the web page in the same dir and refresh after it to the nagios files. you can find more examples on using mod_perl to do it. and some examples with php do a web search "apache basic authentication logout". Hope it helped Moshe Sharon ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From moshesharon at gmail.com Tue Jul 12 10:24:32 2005 From: moshesharon at gmail.com (Moshe Sharon) Date: Tue, 12 Jul 2005 08:24:32 +0000 (UTC) Subject: Central nrpe config-management References: <5000.1121073163@www79.gmx.net> Message-ID: Hi if you dont mind about security much. you can compile nrpe with option --enable- command-args. then in the nrpe config file you need to adjust your lines to: command[check_disk]=/usr/local/nagios/libexec/check_disk $ARG1$ or something like that. in the nrpe check_command from the nagios server pass all the required parameters to check the disk. you can define all possible commands in the nrpe.cfg. and then just use what ever you need in the host. and all is controlled from the nagios server. no need to edit by hand each nrpe.cfg Hope it helped Moshe Sharon ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kindy_s at yahoo.fr Tue Jul 12 11:58:22 2005 From: kindy_s at yahoo.fr (Kindy Sylla) Date: Tue, 12 Jul 2005 11:58:22 +0200 (CEST) Subject: Critical Could not interpret output from ping command Message-ID: <20050712095822.96219.qmail@web26908.mail.ukl.yahoo.com> Hi all, I am having error while using the check_ping plugin on Linux Suse 9.1.( I diddn't have this probl?me with Mandrake 10.1). I installed the nagios 1.2 along with the plugins 1.4. As nagios user when I try the following command : ./check_ping -v -H 102.11.17.5 -w 100.0,20% -c 500.0,60% -p 5 I got the following /bin/ping -n -U -w 10 -c 5 102.11.17.5 ==> /bin/ping -n -U -w 10 -c 5 102.11.17.5 Critical - Could not interpret output from ping command. While the /bin/ping -n -U -w 10 -c 5 102.11.17.5 works fine. I believe it is something related to the OS version and the plugin( since it works fine on Madrake) Any idea to solve this? By the way, I also tried to use the check_icmp plugin, as nagios user, the operation is not permitted!!!! While as a root I can get the response. Thanks in advance, Kindy Sylla ___________________________________________________________________________ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger T?l?chargez cette version sur http://fr.messenger.yahoo.com ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From smalhotra at dataarmor.net Tue Jul 12 13:15:22 2005 From: smalhotra at dataarmor.net (Sumit Malhotra) Date: Tue, 12 Jul 2005 16:45:22 +0530 Subject: Service records not getting stale ?? Message-ID: <001301c586d3$00af7f50$74c5a8c0@sumit> Hello, I am planning to use Nagios in distributed environment. The Server side settings are given below. Host and service records are not getting stale even though I have configured them to. The script "service-is-stale" makes the results stale if executed manually. Permissions are also OK. If active_checks_enabled are enabled then it makes Service s stale (As it should). I am using nagios-2.0-0.b3.1.1.fc1.test form diag-weers. Any ideas??? ######################################################################## ######## # SERVICE DEFINITIONS ######################################################################## ######## # Generic service definition template define service{ name generic-service ; The 'name' of this service template, referenced in other service definitions active_checks_enabled 0 ; Active service checks are enabled passive_checks_enabled 1 ; Passive service checks are enabled/accepted parallelize_check 0 ; 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 1 ; 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 freshness_threshold 200 ; 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 test service_description Disk Space is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 5 contact_groups admins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command service-is-stale } Thanks, Sumit Malhotra -------------- next part -------------- An HTML attachment was scrubbed... URL: From sxanrr at yahoo.com Tue Jul 12 13:43:05 2005 From: sxanrr at yahoo.com (Sxan) Date: Tue, 12 Jul 2005 04:43:05 -0700 (PDT) Subject: Strange issue Message-ID: <20050712114305.33504.qmail@web32210.mail.mud.yahoo.com> Hey again, Ok, this is a wierd issue. Basically, one of my hosts was going up and down over the weekend, and it's now back up and running ok but Nagios is still reporting it being down. I've checked the logs and Nagios is seeing it as the TTL expiring. Nothing has changed at all since before the weekend, and this is the only host that it's doing it with. I've pinged the host and saw the TTL=61 and when I ping other hosts, the TTL varies depending on the host. Is there any way Nagios has set the TTL or what the TTL it's looking to use is? I'm just confused as to how this may have happened. We are also looking into the possibility that the NIC on the host was damaged somehow or something else, but if anyone has seen this happen before please let me know! Thanks! ~Jim __________________________________________________ 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 Matthias.Eble at kaufland.de Tue Jul 12 15:23:56 2005 From: Matthias.Eble at kaufland.de (Matthias.Eble at kaufland.de) Date: Tue, 12 Jul 2005 15:23:56 +0200 Subject: Nagios CGIs: Premature end of script headers [Virus checked] Message-ID: Hi list, we have been expierienced problems with Nagios' 2.0b3 web interface. There are about 110 Services on about 60 hosts active in our Nagios installation. But one week ago (and today again) all the cgis got "Premature end of script headers:" errors and the browser got a status 500. The same configuration (with fewer hosts/services) was running for about three months without any problems until last week. That time I tried to solve the problems by - removing some services/hosts, - delete state/retention information. After the removal of services, the frontend seemed to work. Then I gradually added services and restarted nagios again. So I tried to find the services/hosts that caused the problems. Unfortunately it seemed like no explicit service/host caused the problems. Preflight check worked without errors. So.. After testing around for about half a day in suddenly worked again (it looked like the solution was linked with the deletion of the var/ files) with all services and hosts. After adding a few hosts/services the problems returned today. When I restarted nagios the frontend worked for about 15 seconds, which matched the status_update_interval in nagios .cfg. After increasing this value, the frontend worked for status_update_interval seconds. Now.. while writing this mail I tried to move the files in var/ to /tmp, restarted nagios... and it works now. Can you figure out, what caused the problems? We use Nagios 2.0b3 on httpd 2.0.53 with mod_auth_digest and mod_ssl. Thank you matthias ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 12 16:09:22 2005 From: Philipp.Sand at sycor.de (Sand Philipp) Date: Tue, 12 Jul 2005 16:09:22 +0200 Subject: Integrate Cisco Works into Nagios Message-ID: <6943DE9E9934CD42BBE4A20E0E28E10E01CC9DEE@SYGOMAIL.GOE.AD.SYCOR.DE> Hi, has anyone done this before? Any hints? Thanks in advance! Philipp _____________________________ Philipp Sand OC-CC-TEC-SYS SYCOR GmbH Heinrich-von-Stephan-Stra?e 1-5 D - 37073 G?ttingen Telefon +49 (0) 551 - 490 - 0 Telefax +49 (0) 551 - 490 - 232468 philipp.sand at sycor.de www.sycor.de ------------------------------------------------ ? ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 12 16:25:31 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 12 Jul 2005 10:25:31 -0400 (EDT) Subject: Integrate Cisco Works into Nagios In-Reply-To: <6943DE9E9934CD42BBE4A20E0E28E10E01CC9DEE@SYGOMAIL.GOE.AD.SYCOR.DE> References: <6943DE9E9934CD42BBE4A20E0E28E10E01CC9DEE@SYGOMAIL.GOE.AD.SYCOR.DE> Message-ID: On Tue, 12 Jul 2005, Sand Philipp wrote: > Hi, > > has anyone done this before? Any hints? > > Thanks in advance! > > Philipp Haven't done so, but you should be able to defined another host to receive traps generated by CW for events. Nagios can receive those traps. -- -sg ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Tue Jul 12 16:55:52 2005 From: formy-duval_alan at bah.com (Formy-Duval Alan) Date: Tue, 12 Jul 2005 10:55:52 -0400 Subject: statusmap issue Message-ID: <70F40B6058284248BEAB168BF640CC5992935E@MCLNEXVS03.resource.ds.bah.com> I too am having this problem when clicking on statusmap and also trends and a few other things. I'm attempting to Run Nagios on Solaris 9, using ldd, I've discovered there is no libgd. However, I don't see libgd available for Solaris as a package. I'm still checking my other dependancies, does anyone have any info concerning Nagios on Solaris 9 Sparc? Thanks, Alan > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf > Of Marc Powell > Sent: Monday, June 13, 2005 10:24 AM > To: Nagios Users List > Subject: RE: [Nagios-users] statusmap issue > > > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of Fabiano Martins > > Sent: Monday, June 13, 2005 9:17 AM > > To: Nagios Users List > > Subject: [Nagios-users] statusmap issue > > > > Hi, > > > > I have a problem clicking in statusmap on the nagios menu. I receive > the > > following message: > > > > "The server encountered an internal error or > misconfiguration and was > > unable to complete your request. > > > > Please contact the server administrator, admin at mydomain.net > 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." > > > > And when I've checked the error_log file, I saw the following: > > > > > > > > [Mon Jun 13 09:49:02 2005] [error] [client xxx.xxx.xxx.xxx] > > /usr/local/nagios/sbin/statusmap.cgi: error while loading shared > > libraries: libgd.so.1.8: cannot open shared object file: No > such file > or > > directory, referer: http://www.mydomain.net/nagios/side.html > > > > So I've already installed the libgd2, that has the required library > and > > I'm still receiving the same message... > > > > Is there some setting that I'm missing or some specific library to > > install...? > > Was nagios compiled on this box? It would appear that statusmap.cgi is > expecting libgd.so.1.8 to be in a different location than it is (which > is set at compile time). Run 'ldd statusmap.cgi' in the nagios sbin > directory and verify that libgd.so.1.8 is in the path that > statusmap.cgi > is expecting it. If it isn't you should probably re-compile > so that the > correct location is determined. > > -- > Marc > > > ------------------------------------------------------- > This SF.Net email is sponsored by: NEC IT Guy Games. How far > can you shotput > a projector? How fast can you ride your desk chair down the > office luge track? > If you want to score the big prize, get to know the little guy. > Play to win an NEC 61" plasma display: http://www.necitguy.com/?r > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gpadilla at cbct.com Tue Jul 12 17:01:21 2005 From: gpadilla at cbct.com (Guillermo Padilla) Date: Tue, 12 Jul 2005 11:01:21 -0400 Subject: nagios external command error Message-ID: <097D3590441CB345A836C4B3F7F813DC583E0D@mailsrv.cbct.com> At this point I've disabled selinux and I'm still getting the same error. I've re-ran the external command instructions for v 1.0 and for some reason I still receive an external command error. The way I've been manually fixing this problem is by chmodin nagios.cmd to 777. But there has to bee something causing nagiocmd group not to act the way it should. Here is a snippet of the nagios var dir drwxrwxrwx 2 nagios nagios 4096 Jul 11 00:00 archives -rwxrwxrwx 1 nagios nagios 32762 Jul 12 10:12 status.sav -rw-r--r-- 1 nagios nagios 6 Jul 12 10:39 nagios.lock drwxrwsr-x 2 nagios nagiocmd 4096 Jul 12 10:39 rw -rw-rw-r-- 1 nagios nagios 0 Jul 12 10:39 downtime.log -rw-rw-r-- 1 nagios nagios 314 Jul 12 10:45 comment.log -rw-rw-r-- 1 nagios nagios 91003 Jul 12 10:58 nagios.log -rw-rw-r-- 1 nagios nagios 44441 Jul 12 10:58 status.log -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Subhendu Ghosh Sent: Monday, July 11, 2005 11:47 PM To: C. Bensend Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] nagios external command error On Mon, 11 Jul 2005, C. Bensend wrote: > >> Nagios and apache need to be in the same group, >> if SELINUX is running, allow http_context on var/rw/ > > I wonder if the Makefile could be adapted to check for selinux, and > if it's present/enabled, spit out a blurb stating the above? > > It seems to be a pretty common question. I'd submit a patch, but > unfortunately makefiles are not exactly my strong suit. OK, I'm > exaggerating - I couldn't makefile my way out of a wet paper > bag. ;) > > Benny > Agreed - the whole SELINUX situation seems to be folks running settings without understanding implications. Should probably also add a FAQ item. -- -sg ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From benny at bennyvision.com Tue Jul 12 17:15:34 2005 From: benny at bennyvision.com (C. Bensend) Date: Tue, 12 Jul 2005 10:15:34 -0500 (CDT) Subject: nagios external command error In-Reply-To: <097D3590441CB345A836C4B3F7F813DC583E0D@mailsrv.cbct.com> References: <097D3590441CB345A836C4B3F7F813DC583E0D@mailsrv.cbct.com> Message-ID: <1490.134.244.169.17.1121181334.squirrel@webmail.stinkweasel.net> > Here is a snippet of the nagios var dir > > drwxrwxrwx 2 nagios nagios 4096 Jul 11 00:00 archives > -rwxrwxrwx 1 nagios nagios 32762 Jul 12 10:12 status.sav > -rw-r--r-- 1 nagios nagios 6 Jul 12 10:39 nagios.lock > drwxrwsr-x 2 nagios nagiocmd 4096 Jul 12 10:39 rw > -rw-rw-r-- 1 nagios nagios 0 Jul 12 10:39 downtime.log > -rw-rw-r-- 1 nagios nagios 314 Jul 12 10:45 comment.log > -rw-rw-r-- 1 nagios nagios 91003 Jul 12 10:58 nagios.log > -rw-rw-r-- 1 nagios nagios 44441 Jul 12 10:58 status.log Let's see the exact cut-n-paste of the output of the following commands: ls -al /path/to/nagios/var/rw grep nagios /etc/group grep ^User /path/to/apache/httpd.conf grep ^Group /path/to/apache/httpd.conf ps auxww | grep httpd -- "I'd rather staple a skunk to my forehead and go to a trade show for banjo makers." -- PHB's secretary, Dilbert, 07-2002 ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Tue Jul 12 17:23:02 2005 From: formy-duval_alan at bah.com (Formy-Duval Alan) Date: Tue, 12 Jul 2005 11:23:02 -0400 Subject: statusmap issue Message-ID: <70F40B6058284248BEAB168BF640CC59929389@MCLNEXVS03.resource.ds.bah.com> Actually, I do have gd installed (SMCgd), so I'm wondering if my $PATH or $LD_LIBRARY_PATH was incorrect when I compiled. Any suggestions? > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf > Of Formy-Duval Alan > Sent: Tuesday, July 12, 2005 10:56 AM > To: Nagios Users List > Subject: RE: [Nagios-users] statusmap issue > > I too am having this problem when clicking on statusmap and > also trends > and a few other things. > > I'm attempting to Run Nagios on Solaris 9, using ldd, I've discovered > there is no libgd. However, I don't see libgd available for > Solaris as > a package. I'm still checking my other dependancies, does anyone have > any info concerning Nagios on Solaris 9 Sparc? > > Thanks, > Alan > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net > > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf > > Of Marc Powell > > Sent: Monday, June 13, 2005 10:24 AM > > To: Nagios Users List > > Subject: RE: [Nagios-users] statusmap issue > > > > > > > > > -----Original Message----- > > > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users- > > > admin at lists.sourceforge.net] On Behalf Of Fabiano Martins > > > Sent: Monday, June 13, 2005 9:17 AM > > > To: Nagios Users List > > > Subject: [Nagios-users] statusmap issue > > > > > > Hi, > > > > > > I have a problem clicking in statusmap on the nagios > menu. I receive > > the > > > following message: > > > > > > "The server encountered an internal error or > > misconfiguration and was > > > unable to complete your request. > > > > > > Please contact the server administrator, admin at mydomain.net > > 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." > > > > > > And when I've checked the error_log file, I saw the following: > > > > > > > > > > > > [Mon Jun 13 09:49:02 2005] [error] [client xxx.xxx.xxx.xxx] > > > /usr/local/nagios/sbin/statusmap.cgi: error while loading shared > > > libraries: libgd.so.1.8: cannot open shared object file: No > > such file > > or > > > directory, referer: http://www.mydomain.net/nagios/side.html > > > > > > So I've already installed the libgd2, that has the > required library > > and > > > I'm still receiving the same message... > > > > > > Is there some setting that I'm missing or some specific library to > > > install...? > > > > Was nagios compiled on this box? It would appear that > statusmap.cgi is > > expecting libgd.so.1.8 to be in a different location than > it is (which > > is set at compile time). Run 'ldd statusmap.cgi' in the nagios sbin > > directory and verify that libgd.so.1.8 is in the path that > > statusmap.cgi > > is expecting it. If it isn't you should probably re-compile > > so that the > > correct location is determined. > > > > -- > > Marc > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: NEC IT Guy Games. How far > > can you shotput > > a projector? How fast can you ride your desk chair down the > > office luge track? > > If you want to score the big prize, get to know the little guy. > > Play to win an NEC 61" plasma display: http://www.necitguy.com/?r > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS > > when reporting any issue. > > ::: Messages without supporting info will risk being sent > to /dev/null > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by the 'Do More With Dual!' > webinar happening > July 14 at 8am PDT/11am EDT. We invite you to explore the > latest in dual > core and dual graphics technology at this free one hour event > hosted by HP, > AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gpadilla at cbct.com Tue Jul 12 17:34:01 2005 From: gpadilla at cbct.com (Guillermo Padilla) Date: Tue, 12 Jul 2005 11:34:01 -0400 Subject: nagios external command error Message-ID: <097D3590441CB345A836C4B3F7F813DC583E16@mailsrv.cbct.com> Here it is... ls -al /usr/local/nagios/var/rw total 12 drwxrwsr-x 2 nagios nagiocmd 4096 Jul 12 11:25 . drwxrwxr-x 4 nagios nagios 4096 Jul 12 11:28 .. prw-rw---- 1 nagios nagiocmd 0 Jul 12 11:25 nagios.cmd prw-rw---- 1 nagios nagiocmd 0 Jul 12 11:25 nagios.cmd [root at watchdog rw]# grep nagios /etc/group nagios:x:502: nagiocmd:x:503:nagios,nobody [root at watchdog rw]# grep ^User /usr/local/apache/conf/httpd.conf User nobody UserDir public_html [root at watchdog rw]# grep ^Group /usr/local/apache/conf/httpd.conf Group #-1 [root at watchdog rw]# ps auxwww |grep httpd root 2319 0.0 0.4 11960 4896 ? Ss 09:49 0:00 /usr/local/apache/bin/httpd -k start nobody 16057 0.0 0.4 12100 5036 ? S 11:25 0:00 /usr/local/apache/bin/httpd -k start nobody 16058 0.0 0.4 12100 5032 ? S 11:25 0:00 /usr/local/apache/bin/httpd -k start nobody 16059 0.0 0.4 12092 4996 ? S 11:25 0:00 /usr/local/apache/bin/httpd -k start nobody 16060 0.0 0.4 12092 4996 ? S 11:25 0:00 /usr/local/apache/bin/httpd -k start nobody 16061 0.0 0.4 12100 5032 ? S 11:25 0:00 /usr/local/apache/bin/httpd -k start nobody 16115 0.0 0.4 12092 4920 ? S 11:25 0:00 /usr/local/apache/bin/httpd -k start nobody 19404 0.0 0.4 12092 4920 ? S 11:28 0:00 /usr/local/apache/bin/httpd -k start -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of C. Bensend Sent: Tuesday, July 12, 2005 11:16 AM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] nagios external command error > Here is a snippet of the nagios var dir > > drwxrwxrwx 2 nagios nagios 4096 Jul 11 00:00 archives > -rwxrwxrwx 1 nagios nagios 32762 Jul 12 10:12 status.sav > -rw-r--r-- 1 nagios nagios 6 Jul 12 10:39 nagios.lock > drwxrwsr-x 2 nagios nagiocmd 4096 Jul 12 10:39 rw > -rw-rw-r-- 1 nagios nagios 0 Jul 12 10:39 downtime.log > -rw-rw-r-- 1 nagios nagios 314 Jul 12 10:45 comment.log > -rw-rw-r-- 1 nagios nagios 91003 Jul 12 10:58 nagios.log > -rw-rw-r-- 1 nagios nagios 44441 Jul 12 10:58 status.log Let's see the exact cut-n-paste of the output of the following commands: ls -al /path/to/nagios/var/rw grep nagios /etc/group grep ^User /path/to/apache/httpd.conf grep ^Group /path/to/apache/httpd.conf ps auxww | grep httpd -- "I'd rather staple a skunk to my forehead and go to a trade show for banjo makers." -- PHB's secretary, Dilbert, 07-2002 ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From benny at bennyvision.com Tue Jul 12 17:43:26 2005 From: benny at bennyvision.com (C. Bensend) Date: Tue, 12 Jul 2005 10:43:26 -0500 (CDT) Subject: nagios external command error In-Reply-To: <097D3590441CB345A836C4B3F7F813DC583E16@mailsrv.cbct.com> References: <097D3590441CB345A836C4B3F7F813DC583E16@mailsrv.cbct.com> Message-ID: <1620.134.244.169.17.1121183006.squirrel@webmail.stinkweasel.net> > ls -al /usr/local/nagios/var/rw > total 12 > drwxrwsr-x 2 nagios nagiocmd 4096 Jul 12 11:25 . > drwxrwxr-x 4 nagios nagios 4096 Jul 12 11:28 .. > prw-rw---- 1 nagios nagiocmd 0 Jul 12 11:25 nagios.cmd > > > prw-rw---- 1 nagios nagiocmd 0 Jul 12 11:25 nagios.cmd Um, what's up with that? Is there just the one single nagios.cmd file there and there was a cut-n-paste oops, or are there two files that _appear_ to the be same filename, but likely with spaces/control chars in the filename of one? > [root at watchdog rw]# grep nagios /etc/group > nagios:x:502: > nagiocmd:x:503:nagios,nobody OK. > [root at watchdog rw]# grep ^User /usr/local/apache/conf/httpd.conf > User nobody > UserDir public_html OK. > [root at watchdog rw]# grep ^Group /usr/local/apache/conf/httpd.conf > Group #-1 I've never seen anyone use a numerical GID there, but I'm sure it's probably valid. Can you try changing it to: Group nagioscmd and restarting (actually stop, check for processes, and start) Apache? -- "I'd rather staple a skunk to my forehead and go to a trade show for banjo makers." -- PHB's secretary, Dilbert, 07-2002 ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Tue Jul 12 17:21:52 2005 From: ae at op5.se (Andreas Ericsson) Date: Tue, 12 Jul 2005 17:21:52 +0200 Subject: Critical Could not interpret output from ping command In-Reply-To: <20050712095822.96219.qmail@web26908.mail.ukl.yahoo.com> References: <20050712095822.96219.qmail@web26908.mail.ukl.yahoo.com> Message-ID: <42D3E010.1050505@op5.se> Kindy Sylla wrote: > Hi all, > I am having error while using the check_ping plugin on > Linux Suse 9.1.( I diddn't have this probl?me with > Mandrake 10.1). > I installed the nagios 1.2 along with the plugins 1.4. > > As nagios user when I try the following command : > ./check_ping -v -H 102.11.17.5 -w 100.0,20% -c > 500.0,60% -p 5 > I got the following > /bin/ping -n -U -w 10 -c 5 102.11.17.5 ==> /bin/ping > -n -U -w 10 -c 5 102.11.17.5 > Critical - Could not interpret output from ping > command. > While the /bin/ping -n -U -w 10 -c 5 102.11.17.5 works > fine. > I believe it is something related to the OS version > and the plugin( since it works fine on Madrake) > Any idea to solve this? > By the way, I also tried to use the check_icmp plugin, > as nagios user, the operation is not permitted!!!! > While as a root I can get the response. chown root:nagios check_icmp chmod 4750 check_icmp Give it a shake as the nagios user. It should work nicely. > Thanks in advance, > Kindy Sylla > > > > > > > > > ___________________________________________________________________________ > Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger > T?l?chargez cette version sur http://fr.messenger.yahoo.com > > > ------------------------------------------------------- > This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening > July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual > core and dual graphics technology at this free one hour event hosted by HP, > AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gpadilla at cbct.com Tue Jul 12 17:50:51 2005 From: gpadilla at cbct.com (Guillermo Padilla) Date: Tue, 12 Jul 2005 11:50:51 -0400 Subject: nagios external command error Message-ID: <097D3590441CB345A836C4B3F7F813DC583E1D@mailsrv.cbct.com> Ahh. That's my fault cut-n-paste oops is right. There's only one file in that dir. Here it is again: [root at watchdog rw]# ls -al total 12 drwxrwsr-x 2 nagios nagiocmd 4096 Jul 12 11:25 . drwxrwxr-x 4 nagios nagios 4096 Jul 12 11:47 .. prw-rw---- 1 nagios nagiocmd 0 Jul 12 11:25 nagios.cmd -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of C. Bensend Sent: Tuesday, July 12, 2005 11:43 AM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] nagios external command error > ls -al /usr/local/nagios/var/rw > total 12 > drwxrwsr-x 2 nagios nagiocmd 4096 Jul 12 11:25 . > drwxrwxr-x 4 nagios nagios 4096 Jul 12 11:28 .. > prw-rw---- 1 nagios nagiocmd 0 Jul 12 11:25 nagios.cmd > > > prw-rw---- 1 nagios nagiocmd 0 Jul 12 11:25 nagios.cmd Um, what's up with that? Is there just the one single nagios.cmd file there and there was a cut-n-paste oops, or are there two files that _appear_ to the be same filename, but likely with spaces/control chars in the filename of one? > [root at watchdog rw]# grep nagios /etc/group > nagios:x:502: > nagiocmd:x:503:nagios,nobody OK. > [root at watchdog rw]# grep ^User /usr/local/apache/conf/httpd.conf > User nobody > UserDir public_html OK. > [root at watchdog rw]# grep ^Group /usr/local/apache/conf/httpd.conf > Group #-1 I've never seen anyone use a numerical GID there, but I'm sure it's probably valid. Can you try changing it to: Group nagioscmd and restarting (actually stop, check for processes, and start) Apache? -- "I'd rather staple a skunk to my forehead and go to a trade show for banjo makers." -- PHB's secretary, Dilbert, 07-2002 ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From benny at bennyvision.com Tue Jul 12 17:47:34 2005 From: benny at bennyvision.com (C. Bensend) Date: Tue, 12 Jul 2005 10:47:34 -0500 (CDT) Subject: nagios external command error In-Reply-To: <1620.134.244.169.17.1121183006.squirrel@webmail.stinkweasel.net> References: <097D3590441CB345A836C4B3F7F813DC583E16@mailsrv.cbct.com> <1620.134.244.169.17.1121183006.squirrel@webmail.stinkweasel.net> Message-ID: <1626.134.244.169.17.1121183254.squirrel@webmail.stinkweasel.net> >> [root at watchdog rw]# grep ^Group /usr/local/apache/conf/httpd.conf >> Group #-1 > > I've never seen anyone use a numerical GID there, but I'm sure > it's probably valid. Can you try changing it to: > > Group nagioscmd > > and restarting (actually stop, check for processes, and start) > Apache? Er, thinko on my part. I meant, of course, 'Group nagiocmd' as you have your group setup. -- "I'd rather staple a skunk to my forehead and go to a trade show for banjo makers." -- PHB's secretary, Dilbert, 07-2002 ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Tue Jul 12 17:54:44 2005 From: marc at ena.com (Marc Powell) Date: Tue, 12 Jul 2005 10:54:44 -0500 Subject: nagios external command error Message-ID: > > [root at watchdog rw]# grep ^Group /usr/local/apache/conf/httpd.conf > > Group #-1 > > I've never seen anyone use a numerical GID there, but I'm sure > it's probably valid. Can you try changing it to: >From a previous posting to this list some time ago I infer that this means that apache isn't a member of any groups. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From benny at bennyvision.com Tue Jul 12 18:02:21 2005 From: benny at bennyvision.com (C. Bensend) Date: Tue, 12 Jul 2005 11:02:21 -0500 (CDT) Subject: nagios external command error In-Reply-To: References: Message-ID: <1671.134.244.169.17.1121184141.squirrel@webmail.stinkweasel.net> > From a previous posting to this list some time ago I infer that this > means that apache isn't a member of any groups. Hmmm, if THAT'S the case, I think we found the problem on that one. ;) -- "I'd rather staple a skunk to my forehead and go to a trade show for banjo makers." -- PHB's secretary, Dilbert, 07-2002 ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.P.Fuentes at boeing.com Tue Jul 12 18:05:14 2005 From: James.P.Fuentes at boeing.com (EXT-Fuentes, James P) Date: Tue, 12 Jul 2005 09:05:14 -0700 Subject: How to get nagios to re-authenticate Message-ID: <626FC7C6A97381468FB872072AB5DDC801FEA5@XCH-SW-42.sw.nos.boeing.com> You have to clear your browser cache and probably exit and restart your browser. -Jim ________________________________ From: prosolutions at gmx.net [mailto:prosolutions at gmx.net] Sent: Mon 7/11/2005 7:04 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] How to get nagios to re-authenticate I am working on configuring nagios and re-access it frequently from a web browser. However, it seems once I auth against it one time from a particular host it never asks me to re-authenticate. I have just made changes to my config and from one machine on which I was able to log in fresh everything is working. However from the original machine that I logged in I keep getting the nasty "It appears as though you do not have permission to view information for any of the services you requested...". I see no way to get around this since there is no "logout" option and it just keeps assuming I'm the same user without proper permissions... ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gpadilla at cbct.com Tue Jul 12 18:10:56 2005 From: gpadilla at cbct.com (Guillermo Padilla) Date: Tue, 12 Jul 2005 12:10:56 -0400 Subject: nagios external command error Message-ID: <097D3590441CB345A836C4B3F7F813DC583E21@mailsrv.cbct.com> Damm... it work!! WTF, I've set other nagios servers before and I never had to do any fudging around with the group on the http.conf. I guess apache 2.0.54 acts different. Well Gents much thanks to all. Now onto fixing my statusmap.cgi problem! LOL g -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of C. Bensend Sent: Tuesday, July 12, 2005 12:02 PM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] nagios external command error > From a previous posting to this list some time ago I infer that this > means that apache isn't a member of any groups. Hmmm, if THAT'S the case, I think we found the problem on that one. ;) -- "I'd rather staple a skunk to my forehead and go to a trade show for banjo makers." -- PHB's secretary, Dilbert, 07-2002 ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Tue Jul 12 18:16:57 2005 From: marc at ena.com (Marc Powell) Date: Tue, 12 Jul 2005 11:16:57 -0500 Subject: How to get nagios to re-authenticate Message-ID: Clearing the cache has no effect and is unnecessary. You need to simply restart the browser or follow previous suggestions for creating a logout page. -- Marc > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of EXT-Fuentes, James P > Sent: Tuesday, July 12, 2005 11:05 AM > To: prosolutions at gmx.net; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] How to get nagios to re-authenticate > > You have to clear your browser cache and probably exit and restart your > browser. > -Jim > > ________________________________ > > From: prosolutions at gmx.net [mailto:prosolutions at gmx.net] > Sent: Mon 7/11/2005 7:04 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] How to get nagios to re-authenticate > > > > I am working on configuring nagios and re-access it frequently from a > web browser. However, it seems once I auth against it one time from a > particular host it never asks me to re-authenticate. I have just made > changes to my config and from one machine on which I was able to log in > fresh everything is working. However from the original machine that I > logged in I keep getting the nasty "It appears as though you do not have > permission to view information for any of the services you > requested...". I see no way to get around this since there is no > "logout" option and it just keeps assuming I'm the same user without > proper permissions... > > > > ------------------------------------------------------- > This SF.Net email is sponsored by the 'Do More With Dual!' webinar > happening > July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual > core and dual graphics technology at this free one hour event hosted by > HP, > AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by the 'Do More With Dual!' webinar > happening > July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual > core and dual graphics technology at this free one hour event hosted by > HP, > AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jt at domainfactory.de Tue Jul 12 18:17:44 2005 From: jt at domainfactory.de (Jochen Tuchbreiter) Date: Tue, 12 Jul 2005 18:17:44 +0200 Subject: Scaling nagios: The right way to go? Message-ID: Hello, currently I am running a setup of about 700 hosts with about 6.500 services, all actively checked. This is Nagios v1 with historic "check_nrpep" (compiled via perlcc). About 3.000 of the services get graphed via apan. Nagios runs on one machine, all checks that get graphed are run on a second one (graphs are also generated there). Both machines are high end x86 equipment. Loading status.cgi currently takes about 6 CPU-seconds on a dual-xeon. The service checks (scheduler) is getting behind on a regular basis, concurrency is tuned to the max. Obviously I need to do something about this. In fact I am looking for a solution that will scale up to 2.000 hosts with 15.000 services. What way of scaling to you recommend? I can see three different scenarios: 1. "Divide and conquer" by using many smaller nagios-installations monitoring disjoint host quantities, somehow keeping the configuration loosely in sync (-> contact-data etc.) pros: -> KISS at its best -> will scale "indefinitely" cons: -> syncing of configuration files will be a major PITA -> No common status overview. (Will have to write my own frontend to merge the status information) 2. "Optimize as hell" by using passive service checks only (-> uh, will graphing still work?), switching from apan to something faster, ditching nrpep for nrpe, ...? pros: -> Still KISS cons: -> major changes compared to my current setup would be required -> not sure if this will scale up to the numbers above no matter how well I optimize 3. "Scale like the documentation says" by switching to Nagios 2 beta(!) and setting up the complex "cluster" configuration required to do this. pros: -> doing it the way it is supposed to be done -> people won't kill me for being "weird" when I show them my setup cons: -> major changes compared to my current setup would be required -> using beta software for this -> complexity! I don't really like to maintain n sets of configuration files for n cluster members. I'd have to find a way to generate cluster-member configuration files by parsing the file on the master Has anybody gathered experience with one of the three ways and can recommend / speak against one of them? Are there any large installations that are well documented? Does anybody trust their business on Nagios v2 beta yet? Any help / comments would be highly appreciated. regards, Jochen ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Matthias.Eble at kaufland.de Tue Jul 12 18:25:28 2005 From: Matthias.Eble at kaufland.de (Matthias.Eble at kaufland.de) Date: Tue, 12 Jul 2005 18:25:28 +0200 Subject: Antwort: RE: How to get nagios to re-authenticate [Virus checked] In-Reply-To: References: Message-ID: nagios-users-admin at lists.sourceforge.net schrieb am 12.07.2005 18:16:57: > > I am working on configuring nagios and re-access it frequently from a > > web browser. However, it seems once I auth against it one time from a > > particular host it never asks me to re-authenticate. I have just made > > changes to my config and from one machine on which I was able to log > in > > fresh everything is working. However from the original machine that I > > logged in I keep getting the nasty "It appears as though you do not > have > > permission to view information for any of the services you > > requested...". I see no way to get around this since there is no > > "logout" option and it just keeps assuming I'm the same user without > > proper permissions... > > there is a mozilla extension called webdeveloper. http://webdeveloper.mozdev.org/ After activating the extension you get a toolbar with lots of icons/functions. There is a "clear http authentication" button in the "misc" menu. perhaps it helps.. ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From quanah at stanford.edu Tue Jul 12 18:34:13 2005 From: quanah at stanford.edu (Quanah Gibson-Mount) Date: Tue, 12 Jul 2005 09:34:13 -0700 Subject: Global Events Message-ID: <03B7848F0657B34B25AF6A07@[10.0.0.1]> Stanford has written a process that gets called any time a global event is trigger, that sends a SOAP event to another system that pulls together alerts from a number of different monitoring systems. However, one problem we've noticed is that some very useful events that we'd want that other system to see do not trigger global events. Specifically, acknowledgements of a problem would be the most useful. Is there an easy way to add to the events that are considered global? Are there changes to what the global events are in Nagios 2.0? Another trigger for a global even that would be useful is for a system going into downtime. Example: [1121002943] EXTERNAL COMMAND: SCHEDULE_HOST_DOWNTIME;kerberos1;1121002923;1121010123;1;3600;rra;Upgrading to Debian [1121002944] HOST DOWNTIME ALERT: kerberos1;STARTED; Host has entered a period of scheduled downtime [1121010123] HOST DOWNTIME ALERT: kerberos1;STOPPED; Host has exited from a period of scheduled downtime Obviously kerberos1 was put into downtime @1121002944, however, the following global events were still generated: [1121004587] GLOBAL HOST EVENT HANDLER: kerberos1;DOWN;SOFT;1;notify-smarts [1121004608] GLOBAL HOST EVENT HANDLER: kerberos1;DOWN;HARD;2;notify-smarts [1121006152] GLOBAL HOST EVENT HANDLER: kerberos1;UP;HARD;1;notify-smarts Notifying the other system that the host was down (notify-smarts). Since the downtime knowledge isn't also broadcast, the SMARTS system has no way of knowing the host down alerts should be ignored. Alternative, perhaps global events shouldn't be broadcast for systems in downtime. --Quanah -- Quanah Gibson-Mount Principal Software Developer ITSS/Shared Services Stanford University GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nagiosadmin at snef.fr Tue Jul 12 18:37:11 2005 From: nagiosadmin at snef.fr (Davy Gaussen) Date: Tue, 12 Jul 2005 18:37:11 +0200 Subject: Best way to graph services response Message-ID: <007801c586ff$f3d59350$c26710ac@sneftechnologies.fr> Hi, I am currently running a nagios v2.0b2 with nagios_plugins1.4. I am looking for a way to graph service response and include them in nagios extended service infos (action_url for instance). I am using cacti to graph LAN utilization by SNMP. But how to graph a HTTP response ( or something else) ?. Another point : Do somebody know a tool to do more precise reports in Nagios ? Thank you for your response. Davy -------------- next part -------------- An HTML attachment was scrubbed... URL: From ladams at cloudmark.com Tue Jul 12 18:43:55 2005 From: ladams at cloudmark.com (Lori Adams) Date: Tue, 12 Jul 2005 09:43:55 -0700 Subject: Central nrpe config-management Message-ID: We use a Perl script using the Expect module to distribute configs, and add new commands to the nrpe.cfg file. There's no need to disable/enable services on the "remote" machine (one running nrpe). They can all be listed in the config, some just won't be used. -L -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of James Turnbull Sent: Monday, July 11, 2005 3:42 AM To: derfrecheDachs at gmx.net Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Central nrpe config-management derfrecheDachs at gmx.net wrote: >Hi, > >I?d like to know if there is a solution for this problem and how it works if >there are different config-files on the clients. >How about the way to have the same cfg-file on the clients with not used >(deacivated) services ?? >Any other solution possible ?? > > >Thnx Horst > > > We used cfengine (http://www.cfengine.org/) to distribute our nrpe and other config files. We had a script which ran over the config file and enabled or disabled the services we wanted on each machine. This also meant you could change the services being montitored by running the script. Was just a very simple Bash script that used sed. I am sure you could do something much more impressive with Perl. Regards James Turnbull -- James Turnbull --- Author of Hardening Linux from Apress (http://www.amazon.com/exec/obidos/tg/detail/-/1590594444/) --- PGP Key (http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x0C42DF40) ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From robmossrm at aol.com Tue Jul 12 19:19:05 2005 From: robmossrm at aol.com (Rob Moss) Date: Tue, 12 Jul 2005 18:19:05 +0100 Subject: Scaling nagios: The right way to go? In-Reply-To: References: Message-ID: <42D3FB89.9080803@aol.com> Hi, AOL UK is using Nagios 2.0b3 for some monitoring (under 1,000 hosts). I'm actively developing plugins and tuning/compiling code for Sun Solaris 8 and 9, no problems so far. There are some real bottlenecks performing monitoring from one host, aside from the fact that some of the built-in plugins are simply wrappers to the real program (check_icmp for a start). If you are after performance, multiple check hosts feeding into a collector is probably the best way, and scrapping some of the built-in nagios checks, in favour of compiled C checks that do all the work instead of being wrappers around other system tools. Also, the built-in Perl compiler should be quite fast for executing Perl scripts, such as HTTPS checks in perl/LWP etc. Hope this helps Rob Moss AOL UK Jochen Tuchbreiter wrote: > Hello, > > currently I am running a setup of about 700 hosts with about 6.500 services, > all actively checked. This is Nagios v1 with historic "check_nrpep" > (compiled via perlcc). About 3.000 of the services get graphed via apan. > Nagios runs on one machine, all checks that get graphed are run on a second > one (graphs are also generated there). Both machines are high end x86 > equipment. > > Loading status.cgi currently takes about 6 CPU-seconds on a dual-xeon. The > service checks (scheduler) is getting behind on a regular basis, concurrency > is tuned to the max. > > Obviously I need to do something about this. In fact I am looking for a > solution that will scale up to 2.000 hosts with 15.000 services. > > What way of scaling to you recommend? I can see three different scenarios: > > > 1. > "Divide and conquer" by using many smaller nagios-installations monitoring > disjoint host quantities, somehow keeping the configuration loosely in sync > (-> contact-data etc.) > > pros: > -> KISS at its best > -> will scale "indefinitely" > > cons: > -> syncing of configuration files will be a major PITA > -> No common status overview. (Will have to write my own frontend to merge > the status information) > > > 2. > "Optimize as hell" by using passive service checks only (-> uh, will > graphing still work?), switching from apan to something faster, ditching > nrpep for nrpe, ...? > > pros: > > -> Still KISS > > cons: > > -> major changes compared to my current setup would be required > > -> not sure if this will scale up to the numbers above no matter how well I > optimize > > > 3. > "Scale like the documentation says" by switching to Nagios 2 beta(!) and > setting up the complex "cluster" configuration required to do this. > > pros: > > -> doing it the way it is supposed to be done -> people won't kill me for > being "weird" when I show them my setup > > cons: > > -> major changes compared to my current setup would be required > > -> using beta software for this > > -> complexity! I don't really like to maintain n sets of configuration files > for n cluster members. I'd have to find a way to generate cluster-member > configuration files by parsing the file on the master > > > Has anybody gathered experience with one of the three ways and can recommend > / speak against one of them? Are there any large installations that are well > documented? Does anybody trust their business on Nagios v2 beta yet? Any > help / comments would be highly appreciated. > > regards, > Jochen > > > > ------------------------------------------------------- > This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening > July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual > core and dual graphics technology at this free one hour event hosted by HP, > AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Rob Moss Snr. Unix Administrator Hosting & DB Operations ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From al at its-lehmann.de Tue Jul 12 19:34:59 2005 From: al at its-lehmann.de (Arno Lehmann) Date: Tue, 12 Jul 2005 19:34:59 +0200 Subject: Critical Could not interpret output from ping command In-Reply-To: <20050712095822.96219.qmail@web26908.mail.ukl.yahoo.com> References: <20050712095822.96219.qmail@web26908.mail.ukl.yahoo.com> Message-ID: <42D3FF43.40202@its-lehmann.de> Hello, Kindy Sylla wrote: > Hi all, > I am having error while using the check_ping plugin on > Linux Suse 9.1.( I diddn't have this probl?me with > Mandrake 10.1). > I installed the nagios 1.2 along with the plugins 1.4. > > As nagios user when I try the following command : > ./check_ping -v -H 102.11.17.5 -w 100.0,20% -c > 500.0,60% -p 5 > I got the following > /bin/ping -n -U -w 10 -c 5 102.11.17.5 ==> /bin/ping > -n -U -w 10 -c 5 102.11.17.5 > Critical - Could not interpret output from ping > command. I suggest to use check_icmp instead of check_ping. check_ping uses the system's ping, and that output is not standardized. And, of course, if has to start another process - both issues are, to my knowledge, not existing in check_icmp. Which is more flexible anyway, in my opinion. Arno > While the /bin/ping -n -U -w 10 -c 5 102.11.17.5 works > fine. > I believe it is something related to the OS version > and the plugin( since it works fine on Madrake) > Any idea to solve this? > By the way, I also tried to use the check_icmp plugin, > as nagios user, the operation is not permitted!!!! > While as a root I can get the response. > Thanks in advance, > Kindy Sylla > > > > > > > > > ___________________________________________________________________________ > Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger > T?l?chargez cette version sur http://fr.messenger.yahoo.com > > > ------------------------------------------------------- > This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening > July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual > core and dual graphics technology at this free one hour event hosted by HP, > AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- IT-Service Lehmann al at its-lehmann.de Arno Lehmann http://www.its-lehmann.de ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From al at its-lehmann.de Tue Jul 12 19:43:25 2005 From: al at its-lehmann.de (Arno Lehmann) Date: Tue, 12 Jul 2005 19:43:25 +0200 Subject: Critical Could not interpret output from ping command In-Reply-To: <20050712095822.96219.qmail@web26908.mail.ukl.yahoo.com> References: <20050712095822.96219.qmail@web26908.mail.ukl.yahoo.com> Message-ID: <42D4013D.5060709@its-lehmann.de> Hi again, I just noticed I wrote nonsense... see below. Kindy Sylla wrote: > By the way, I also tried to use the check_icmp plugin, > as nagios user, the operation is not permitted!!!! > While as a root I can get the response. This seems to be the right solution. Either chmod check_icmp to be SUID root or use sudo. In the latter case, you've got the two-processes-problem again. Arno > Thanks in advance, > Kindy Sylla > > > > > > > > > ___________________________________________________________________________ > Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger > T?l?chargez cette version sur http://fr.messenger.yahoo.com > > > ------------------------------------------------------- > This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening > July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual > core and dual graphics technology at this free one hour event hosted by HP, > AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- IT-Service Lehmann al at its-lehmann.de Arno Lehmann http://www.its-lehmann.de ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Daniel.Rusch at fotf.org Tue Jul 12 21:15:58 2005 From: Daniel.Rusch at fotf.org (Rusch, Daniel) Date: Tue, 12 Jul 2005 13:15:58 -0600 Subject: AS400 plug-in Message-ID: <8514B8AEA269234B82EF64E707E5885005886B6A@nahum.mis.fotf.priv> I am using Version 0.18 of the check_as400 plug-in. I can get all of the checks to work except the check job (CJ) which is the one I need of course I think the problem is in identifying the job: ./check_as400 -H abraham -v CJ JDENET_K The check simply hangs and does not return in diag mode I get: Establishing connection to server...done. Logging in... waiting for screen... waiting for token IBM CORP... token received. sending login information for XXXXXXX... waiting for login to process... waiting for token ===>... responding to allocated to another job message... token received. Login completed. Sending command (4)... waiting for token Auswahl... JDENET_K is an active job. Any ideas? Thank you, Daniel G. Rusch x2027 -------------- next part -------------- An HTML attachment was scrubbed... URL: From forums at emat.be Tue Jul 12 23:19:01 2005 From: forums at emat.be (js) Date: Tue, 12 Jul 2005 23:19:01 +0200 Subject: Servicegroups not displayed ->permission issue Message-ID: <42D433C5.4010304@emat.be> Hi all, I have defined 2 servicegroups: pop3 services imap4 services They both have 10 member services. I have 2 different kind of logins. User1 can see the 2 servicegroups with all the 20 members because user1 is in the correct contactgroups of every individual host where each of the services are running. User2 has a problem. User2 is a member of the contactgroups for the 10 pop3 hosts. User2 is a member of the contactgroups for only 5 imap4 hosts. On the host overview user2 sees all the 15 hosts correctly, they way it should be. But when he looks at the "servicegroup overview" he only sees the the pop3 servicegroup and NOT the imap4 servicegroup..... From the moment there is a service (which is member of a servicegroup) and you aren't a member of the contactgroup for the host which runs this service, you are automatically denied access to the entire servicegroup, although it might contain several services which you entitled to to see. In the above example, as user2 , when I choose 'Service group overview' I should see 2 servicegroups pop3 services with 10 services imap4 services with 5 services What am I missing? Am I overlooking something trivial ? Thanks in advance. Greetings, JS ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From james at lovedthanlost.net Wed Jul 13 00:00:42 2005 From: james at lovedthanlost.net (James Turnbull) Date: Wed, 13 Jul 2005 08:00:42 +1000 Subject: Central nrpe config-management In-Reply-To: References: Message-ID: <42D43D8A.2090101@lovedthanlost.net> Lori Adams wrote: >We use a Perl script using the Expect module to distribute configs, and add new commands to the nrpe.cfg file. There's no need to disable/enable services on the "remote" machine (one running nrpe). They can all be listed in the config, some just won't be used. > >-L > Sorry should have been clearer - the configuration files on the Nagios server not the nrpe config file. Regards James Turnbull -- James Turnbull --- Author of Hardening Linux from Apress (http://www.amazon.com/exec/obidos/tg/detail/-/1590594444/) --- PGP Key (http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x0C42DF40) ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sfnet at bingle.org Wed Jul 13 01:35:50 2005 From: sfnet at bingle.org (Bingle) Date: Tue, 12 Jul 2005 19:35:50 -0400 Subject: change wrt icon_image Message-ID: <42D453D6.4A841A0E@bingle.org> In 1.x, when using extended service data, clicking on the icon supplied (icon_image) would take you directly to the services' notes_url (e.g. the page displaying the graphs of the service perfdata). In 2.x, a change has been made so that clicking on this same icon you simply go to the extinfo.cgi page. From that page if you click on the Notes icon (not the supplied icon), you get to the page actually displaying the graphs. Shouldn't the icon take you directly to the extended info? The change seems to be in cgi/status.c near line 1666 and seems to have been intentional, but it seems "wrong". Anyone know why this was changed and if anything breaks by changing that section back to the way it was in 1.x? ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 13 01:34:03 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 13 Jul 2005 01:34:03 +0200 Subject: Scaling nagios: The right way to go? In-Reply-To: <42D3FB89.9080803@aol.com> References: <42D3FB89.9080803@aol.com> Message-ID: <42D4536B.7020005@op5.se> Rob Moss wrote: > Hi, > AOL UK is using Nagios 2.0b3 for some monitoring (under 1,000 hosts). > > I'm actively developing plugins and tuning/compiling code for Sun > Solaris 8 and 9, no problems so far. > > There are some real bottlenecks performing monitoring from one host, > aside from the fact that some of the built-in plugins are simply > wrappers to the real program (check_icmp for a start). > check_icmp is not a wrapper. It was written for the precise purpose of getting rid of the extra overhead caused by invoking an external program (and to get rid of the umpteen-hundred people telling the list that it doesn't work on Fedora Core 3). > If you are after performance, multiple check hosts feeding into a > collector is probably the best way, Using check_icmp in check_host mode will easily cut the performance loss of services going to non-OK states by a rough 99%, although that only works when the host is up. When it's down, it's more like 50%. > and scrapping some of the built-in > nagios checks, Nagios has no built-in checks. It wasn't designed for it, and benchmarks show that it would hardly benefit at all from it. This has been discussed and tested in great detail on the nagios-devel@ mailing-list. > in favour of compiled C checks that do all the work > instead of being wrappers around other system tools. > > Also, the built-in Perl compiler should be quite fast for executing Perl > scripts, such as HTTPS checks in perl/LWP etc. > Compiled C-programs run about 30% faster than cached perl-plugins executed by the embedded perl interpreter. I believe some of that has to do with exception handling in Nagios when the EPN is compiled in (theoretically it should only be about a 10% loss due to perl creating less efficient machine code than gcc), but I haven't done any profiling on it, so I can't say for sure. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sfnet at bingle.org Wed Jul 13 01:43:16 2005 From: sfnet at bingle.org (Bingle) Date: Tue, 12 Jul 2005 19:43:16 -0400 Subject: RH AS3.0 Message-ID: <42D45594.8763B348@bingle.org> I don't know how well embedded perl works with RHEL3, but I do know that I had to turn off embedded perl on 2.0b2 with Fedora Core 2 in order to use the perl plugins that are included with nagiosgraph (e.g. insert.pl). If I didn't turn off embedded perl and recompile, it appeared that insert.pl was never being called. I had been using Dag Wieers rpm, but this problem forced me to build nagios myself. ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 13 01:39:21 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 13 Jul 2005 01:39:21 +0200 Subject: Global Events In-Reply-To: <03B7848F0657B34B25AF6A07@[10.0.0.1]> References: <03B7848F0657B34B25AF6A07@[10.0.0.1]> Message-ID: <42D454A9.3020001@op5.se> Quanah Gibson-Mount wrote: > Stanford has written a process that gets called any time a global event > is trigger, that sends a SOAP event to another system that pulls > together alerts from a number of different monitoring systems. However, > one problem we've noticed is that some very useful events that we'd want > that other system to see do not trigger global events. > > Specifically, acknowledgements of a problem would be the most useful. > Is there an easy way to add to the events that are considered global? > Are there changes to what the global events are in Nagios 2.0? > You could easily accomplish this with a neb-module. I believe the code needed to do it should stay well below 100 lines of C, including comments, assuming you want to call an external app to actually generate the event, that is. > > Another trigger for a global even that would be useful is for a system > going into downtime. > > > Example: > > [1121002943] EXTERNAL COMMAND: > SCHEDULE_HOST_DOWNTIME;kerberos1;1121002923;1121010123;1;3600;rra;Upgrading > to Debian > [1121002944] HOST DOWNTIME ALERT: kerberos1;STARTED; Host has entered a > period of scheduled downtime > [1121010123] HOST DOWNTIME ALERT: kerberos1;STOPPED; Host has exited > from a period of scheduled downtime > > Obviously kerberos1 was put into downtime @1121002944, however, the > following global events were still generated: > > [1121004587] GLOBAL HOST EVENT HANDLER: kerberos1;DOWN;SOFT;1;notify-smarts > [1121004608] GLOBAL HOST EVENT HANDLER: kerberos1;DOWN;HARD;2;notify-smarts > [1121006152] GLOBAL HOST EVENT HANDLER: kerberos1;UP;HARD;1;notify-smarts > > Notifying the other system that the host was down (notify-smarts). > Since the downtime knowledge isn't also broadcast, the SMARTS system has > no way of knowing the host down alerts should be ignored. Alternative, > perhaps global events shouldn't be broadcast for systems in downtime. > > --Quanah > > > -- > Quanah Gibson-Mount > Principal Software Developer > ITSS/Shared Services > Stanford University > GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html > > > ------------------------------------------------------- > This SF.Net email is sponsored by the 'Do More With Dual!' webinar > happening > July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual > core and dual graphics technology at this free one hour event hosted by > HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ladams at cloudmark.com Wed Jul 13 01:39:53 2005 From: ladams at cloudmark.com (Lori Adams) Date: Tue, 12 Jul 2005 16:39:53 -0700 Subject: multiple instances of nagios Message-ID: Is it possible to run multiple instances of nagios and have them show up together in a nice hierarchical manner in the cgis. It'd be nice to be able to roll them up together and also be able to view the instances separately. Obviously having separate instances, I can view them apart in n web sites. We'd like to be able to roll them up into one. Thanks in advance, -Lori -------------- next part -------------- An HTML attachment was scrubbed... URL: From Philipp.Sand at sycor.de Wed Jul 13 08:33:17 2005 From: Philipp.Sand at sycor.de (Sand Philipp) Date: Wed, 13 Jul 2005 08:33:17 +0200 Subject: AW: Integrate Cisco Works into Nagios Message-ID: <6943DE9E9934CD42BBE4A20E0E28E10E01CC9DFB@SYGOMAIL.GOE.AD.SYCOR.DE> Ok, thanks! I just startet to install CiscoWorks yesterday. Traps seems to be a nice idea, thanks ;) > -----Urspr?ngliche Nachricht----- > Von: Subhendu Ghosh [mailto:sghosh at sghosh.org] > Gesendet: Dienstag, 12. Juli 2005 16:26 > An: Sand Philipp > Cc: nagios-users at lists.sourceforge.net > Betreff: Re: [Nagios-users] Integrate Cisco Works into Nagios > > On Tue, 12 Jul 2005, Sand Philipp wrote: > > > Hi, > > > > has anyone done this before? Any hints? > > > > Thanks in advance! > > > > Philipp > > Haven't done so, but you should be able to defined another host to receive > traps generated by CW for events. > > Nagios can receive those traps. > -- > -sg ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jzygmont at solarflow.net Wed Jul 13 10:08:43 2005 From: jzygmont at solarflow.net (Justin Zygmont) Date: Wed, 13 Jul 2005 01:08:43 -0700 (PDT) Subject: setting up nagios Message-ID: I did not receive any replies to this message, I would just like to know if there is any info on how to do this, and if not i'd even write it up, if I can get this to work. Hi, I am trying to setup nagios for the first time, and whenever I click on a link, I keep getting the error message that says it's unable to read the object data. I tried following the docs, but it stops short of what to do after compiling, and installation. I'd appreciate if anyone knows what else to do. thanks, ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From james at lovedthanlost.net Wed Jul 13 10:40:28 2005 From: james at lovedthanlost.net (James Turnbull) Date: Wed, 13 Jul 2005 18:40:28 +1000 Subject: setting up nagios In-Reply-To: References: Message-ID: <42D4D37C.3060006@lovedthanlost.net> Justin Zygmont wrote: > I am trying to setup nagios for the first time, and whenever I click > on a link, I keep getting the error message that says it's unable to > read the Is the Nagios process running? Regards James Turnbull -- James Turnbull --- Author of Hardening Linux, Apress (http://www.amazon.com/exec/obidos/tg/detail/-/1590594444/) --- PGP Key (http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x0C42DF40) -------------- 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 ae at op5.se Wed Jul 13 10:48:31 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 13 Jul 2005 10:48:31 +0200 Subject: setting up nagios In-Reply-To: References: Message-ID: <42D4D55F.5000602@op5.se> Justin Zygmont wrote: > I did not receive any replies to this message, I would just like to know > if there is any info on how to do this, and if not i'd even write it up, > if I can get this to work. > > > Hi, > > I am trying to setup nagios for the first time, and whenever I click on > a link, I keep getting the error message that says it's unable to read the > object data. I tried following the docs, but it stops short of what to > do after compiling, and installation. What docs have you been reading? Nagios is one of the better documented gpl products available. See http://www.nagios.org/docs/ for detailed documentation. > I'd appreciate if anyone knows > what else to do. > > thanks, > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by the 'Do More With Dual!' webinar > happening > July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual > core and dual graphics technology at this free one hour event hosted by > HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kindy_s at yahoo.fr Wed Jul 13 12:21:47 2005 From: kindy_s at yahoo.fr (Kindy Sylla) Date: Wed, 13 Jul 2005 12:21:47 +0200 (CEST) Subject: Critical Could not interpret output from ping command In-Reply-To: <42D4013D.5060709@its-lehmann.de> References: <42D4013D.5060709@its-lehmann.de> Message-ID: <20050713102147.7501.qmail@web26903.mail.ukl.yahoo.com> Hi Arno, Thanks! Now it is working. I modified the check_icmp permission to be SUID root. Regards, Kindy Arno Lehmann a ?crit : Hi again, I just noticed I wrote nonsense... see below. Kindy Sylla wrote: > By the way, I also tried to use the check_icmp plugin, > as nagios user, the operation is not permitted!!!! > While as a root I can get the response. This seems to be the right solution. Either chmod check_icmp to be SUID root or use sudo. In the latter case, you've got the two-processes-problem again. Arno > Thanks in advance, > Kindy Sylla > > > > > > > > > ___________________________________________________________________________ > Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger > T?l?chargez cette version sur http://fr.messenger.yahoo.com > > > ------------------------------------------------------- > This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening > July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual > core and dual graphics technology at this free one hour event hosted by HP, > AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- IT-Service Lehmann al at its-lehmann.de Arno Lehmann http://www.its-lehmann.de ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null --------------------------------- Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger T?l?chargez le ici ! -------------- next part -------------- An HTML attachment was scrubbed... URL: From Marcus.Hildenbrand at sap.com Wed Jul 13 13:19:23 2005 From: Marcus.Hildenbrand at sap.com (Marcus Hildenbrand) Date: Wed, 13 Jul 2005 13:19:23 +0200 Subject: webinterface don't works with large number of hosts in Nagios 2.0 current cvs version In-Reply-To: <42CBC3EE.4050900@sap.com> References: <42CBC3EE.4050900@sap.com> Message-ID: <42D4F8BB.60408@sap.com> Hi, the cause of this seems to be a too long list of services in a servicegroup. My config includes something like this: - servicegroup definition: define servicegroup{ servicegroup_name filesystems alias filesystems members host1,filesystems } - service template which includes also the above servicegroup name define service{ use generic-service name check_filesystems service_description filesystems normal_check_interval 15 max_check_attempts 3 servicegroups filesystems register 0 } - and for nearly every host something like this define service{ use check_filesystems host_name hostxx check_command check_nrpe!check_filesystems normal_check_interval 15 contact_groups GROUPX } This means that the servicegroup includes nearly 4k services. After doubling MAX_XODTEMPLATE_INPUT_BUFFER in xdata/xodtemplate.h from 65535 to 131070 the webinterface works again. Maybe the size of this variable should be adjusted to something higher. Regards Marcus Hildenbrand > Hi, > > in a test environment I try to monitor nearly 4.000 hosts. Nagios core > seems to run (checks and notifications are beeing executed) but the > webinterface always says: > > Whoops! > > Error: Could not read host and service status information! > .... > .... > > The webinterface seems to think Nagios is not running. > > After reducing the number of hosts to 3925 the webinterface works again. > So there seems to be a limitation somewhere in the cgi code. > > Any idea how to fix this? > > Thanks and Best Regards > Marcus Hildenbrand > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Nagios-devel mailing list > Nagios-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-devel ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar From Matthias.Eble at kaufland.de Wed Jul 13 14:47:28 2005 From: Matthias.Eble at kaufland.de (Matthias.Eble at kaufland.de) Date: Wed, 13 Jul 2005 14:47:28 +0200 Subject: Antwort: RE: Nagios CGIs: Premature end of script headers [Virus checked] In-Reply-To: References: Message-ID: "Marc Powell" schrieb am 12.07.2005 18:06:42: > > > > > Can you figure out, what caused the problems? > > We use Nagios 2.0b3 on httpd 2.0.53 with mod_auth_digest and mod_ssl. > > Your apache error_log will detail the exact cause of the 500 error or at > the very least provide you with enough information to get you, and us if > you still need us, started. Why guess at causes when you probably have > it detailed? hi! here's some output of the error_log (looks all the same..) [Tue Jul 12 13:59:37 2005] [error] [client CLIENT_IP] Premature end of script headers: status.cgi, referer: https://FQDN/nagios/side.html [Tue Jul 12 14:01:09 2005] [error] [client CLIENT_IP] Premature end of script headers: tac.cgi, referer: https://FQDN/nagios/side.html [Tue Jul 12 14:01:11 2005] [error] [client CLIENT_IP] Premature end of script headers: status.cgi, referer: https://FQDN/nagios/side.html [Tue Jul 12 14:02:09 2005] [error] [client CLIENT_IP] Premature end of script headers: status.cgi, referer: https://FQDN/nagios/side.html is there a verbose output? ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Matthias.Eble at kaufland.de Wed Jul 13 15:57:48 2005 From: Matthias.Eble at kaufland.de (Matthias.Eble at kaufland.de) Date: Wed, 13 Jul 2005 15:57:48 +0200 Subject: Nagios CGIs: Premature end of script headers [Virus checked] In-Reply-To: References: Message-ID: Hi! > "Marc Powell" schrieb am 12.07.2005 18:06:42: > > > > > > > > Can you figure out, what caused the problems? > > > We use Nagios 2.0b3 on httpd 2.0.53 with mod_auth_digest and mod_ssl. > > > > Your apache error_log will detail the exact cause of the 500 error or at > > the very least provide you with enough information to get you, and us if > > you still need us, started. Why guess at causes when you probably have > > it detailed? > hi! here's some output of the error_log (looks all the same..) > > [Tue Jul 12 13:59:37 2005] [error] [client CLIENT_IP] Premature end > of script headers: status.cgi, referer: https://FQDN/nagios/side.html > [Tue Jul 12 14:01:09 2005] [error] [client CLIENT_IP] Premature end > of script headers: tac.cgi, referer: https://FQDN/nagios/side.html > [Tue Jul 12 14:01:11 2005] [error] [client CLIENT_IP] Premature end > of script headers: status.cgi, referer: https://FQDN/nagios/side.html > [Tue Jul 12 14:02:09 2005] [error] [client CLIENT_IP] Premature end > of script headers: status.cgi, referer: https://FQDN/nagios/side.html well... hit me, shoot me.. whatever you like.. my nagios volume got full, so that's why the deletion of var/ helped. The cgi's got segmentation faults and ended before they could send all headers. I'm monitoring dozens of filesystems and forgot the nagios host itsself. thanks for your help matthias ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From coelhoapm at gmail.com Wed Jul 13 17:09:02 2005 From: coelhoapm at gmail.com (=?ISO-8859-1?Q?Ant=F3nio_Coelho?=) Date: Wed, 13 Jul 2005 16:09:02 +0100 Subject: check_remote_disk problem on AIX Message-ID: Hello all, My Nagios is monitoring several services and machines on the network. One of the services is check_remote_disk for a AIX machine, with the line check_remote_disk!10%!5%!"/ /var /home /oracle /oracle/backup" The problem is, if I run the plugin directly on the AIX-server (via command shell) it returns a valid output, but in nagios web interface it shows like NO OUTPUT! zugtwz2 Disk OK 07-13-2005 15:52:32 1d 23h 40m 15s 1/3 (No output!) Can anyone help me on this? Thanks, -- Ant?nio Coelho coelhoapm at gmail.com ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Wed Jul 13 20:24:44 2005 From: tdondich at gmail.com (Taylor Dondich) Date: Wed, 13 Jul 2005 11:24:44 -0700 Subject: Fruity 1.0 beta 1 patchlevel 2 released! Message-ID: <3d2eb72a0507131124409cf31@mail.gmail.com> Fruity, a web based nagios configuration tool for nagios v2.0 has been updated! Patchlevel 2 of Beta 1 has been released. This fixes a few issues that were leftover from Patchlevel 1. Below is the changelog for this release: CHANGELOG: - Corrected servicegroup,contactgroup import/export functionality for services and service templates - Corrected CGI config export. - Corrected Host Export issue where the tag name would be set as the host_name, making it a template. - Corrected command name export in main configuration. Find the patchlevel release in the Sourceforge project page. There are no database schema changes required for this fix (however, you should empty your nagios_hosts table). http://fruity.sf.net Taylor ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.Laden at tudor.com Wed Jul 13 20:42:59 2005 From: Andrew.Laden at tudor.com (Andrew Laden) Date: Wed, 13 Jul 2005 14:42:59 -0400 Subject: Are escalation contacts considered contacts in the gui Message-ID: <56EAA5BC64E6C34F8C9EE6725D4A2DFA014EC142@tudor.com> If I have a service with a one group listed as contacts (ie, the help desk) and a different group in a service escalation definition (ie, the subject specialists), are both groups authorized to issue commands via the cgis? Or only the helpdesk group. I want notifications to go to the helpdesk first, and then escalate to the specalists. But I want both groups to be able to ack alarms via the gui. Thanks -Andrew -------------- next part -------------- An HTML attachment was scrubbed... URL: From fruiz at netsuite.com Wed Jul 13 21:26:39 2005 From: fruiz at netsuite.com (Ruiz, Francisco) Date: Wed, 13 Jul 2005 12:26:39 -0700 Subject: Nagios Blank Emails Message-ID: <2BF1D777D914174DB2F6874540E3B6C703590A@corpmail1.svale.netledger.com> Hi, Just curious if anyone has seen this problem. I am getting blank emails sent from nagios. I checked disk space levels, and all looks fine. The blank emails are sporadic. And occur only a few times a day. Any thoughts. Thanks in advance! -------------- next part -------------- An HTML attachment was scrubbed... URL: From Ajit.Mohan at dc.gov Wed Jul 13 21:28:14 2005 From: Ajit.Mohan at dc.gov (Mohan, Ajit (CFSA)) Date: Wed, 13 Jul 2005 15:28:14 -0400 Subject: Nagios home page issue Message-ID: <03BC54053BE9A843B1785F0185A1F7EA13577E@emo-exch2k3-210.dcgov.priv> Hi, When I try and access nagios home page (http://ipaddress/nagios/) I get "Access Forbidden" Page 403 message.You don't have permission to access the requested object. It is either read-protected or not readable by the server" I don't have any specific settings other than the one listed in the nagios document. As per the doc, I should be able to access the /nagios/ directory even before configuring any authorisation or starting the nagios service. I am using SUSE 9.0 with Apache2 Can someone please help. Here are my settings in default-server.conf scriptAlias /nagios/cgi-bin/ /usr/lib/nagios/cgi/ AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all Alias /nagios/ /usr/share/nagios/ Options None AllowOverride AuthConfig Order allow,deny Allow from all Error in apache logs [Wed Jul 13 04:24:22 2005] [error] [client 10.9.66.31] client denied by server configuration: /usr/share/nagios/ [Wed Jul 13 04:24:25 2005] [error] [client 10.9.66.31] client denied by server configuration: /usr/share/nagios/ Any help is greatly appreciated Thanks Ajit -------------- next part -------------- An HTML attachment was scrubbed... URL: From tinzauro at ha-solutions.net Wed Jul 13 21:38:44 2005 From: tinzauro at ha-solutions.net (Terry L. Inzauro) Date: Wed, 13 Jul 2005 14:38:44 -0500 Subject: Nagios home page issue In-Reply-To: <03BC54053BE9A843B1785F0185A1F7EA13577E@emo-exch2k3-210.dcgov.priv> References: <03BC54053BE9A843B1785F0185A1F7EA13577E@emo-exch2k3-210.dcgov.priv> Message-ID: <42D56DC4.6000108@ha-solutions.net> Mohan, Ajit (CFSA) wrote: > Hi, > > When I try and access nagios home page (http://ipaddress/nagios/) I > get "Access Forbidden" Page 403 message.You don't have permission to > access the requested object. It is either read-protected or not readable > by the server" > I don't have any specific settings other than the one listed in the > nagios document. As per the doc, I should be able to access the /nagios/ > directory even before configuring any authorisation or starting the > nagios service. > I am using SUSE 9.0 with Apache2 > > Can someone please help. Here are my settings in default-server.conf > > scriptAlias /nagios/cgi-bin/ /usr/lib/nagios/cgi/ > > AllowOverride AuthConfig > Options ExecCGI > Order allow,deny > Allow from all > > > Alias /nagios/ /usr/share/nagios/ > > Options None > AllowOverride AuthConfig > Order allow,deny > Allow from all > > > Error in apache logs > > [Wed Jul 13 04:24:22 2005] [error] [client 10.9.66.31] client denied by > server configuration: /usr/share/nagios/ > [Wed Jul 13 04:24:25 2005] [error] [client 10.9.66.31] client denied by > server configuration: /usr/share/nagios/ > > > Any help is greatly appreciated > > > > Thanks > Ajit > > even though this is an apache question.... - make sure that there is an index.xxx file in there (/usr/share/nagios/) somewhere. - make sure that the perms are set ok on the file in there (/usr/share/nagios/) - perhaps start with less restrictive and then work tword more restrictive.... Options Indexes FollowSymLinks MultiViews AllowOverride AuthConfig Order allow,deny Allow from all _Terry - ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pgoslin at amtrex.com Wed Jul 13 23:13:42 2005 From: pgoslin at amtrex.com (Paul Goslin) Date: Wed, 13 Jul 2005 14:13:42 -0700 Subject: Looking for specific plugins, can't wget them Message-ID: Hello all, I have not been able to wget Rosenthals netsaint stuff rns_stuff.tar.gz from NagiosExchange which has all of these plugins I am looking for. Is there another mirror where rns_stuff.tar.gz can be found or where can I get them separately. I am using 1.2 with plugins 1.4 on RH 7.3. check_socket check_mem check_disk2, check_storage, nsreport nsconlog Thanks, Paul ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ed.bragg at gmail.com Wed Jul 13 23:08:22 2005 From: ed.bragg at gmail.com (Ed Bragg) Date: Wed, 13 Jul 2005 17:08:22 -0400 Subject: Nagios Blank Emails In-Reply-To: <2BF1D777D914174DB2F6874540E3B6C703590A@corpmail1.svale.netledger.com> References: <2BF1D777D914174DB2F6874540E3B6C703590A@corpmail1.svale.netledger.com> Message-ID: I was seeing something similar I guess. We have our own SMTP service running to receive the e-mails for further processing by other alert tools. Our setup is using the modified sample notify-by-email and host-notify-by-email commands defined in the sample configs using /usr/bin/mail to send the messages. Occasionaly our SMTP service would get a non-stop stream of null's. The way we found this out was our smtp service was starting a new thread for each smtp connection, eventually causing the server to run out of CPU cycles. Of course, since Nagios doesn't actually open port 25 to send the mail, my guess is we have a problem with the way our mail command is executing the notify-by-email and host-notify-by-email commands. define command { command_name notify-by-email command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ } define command { command_name host-notify-by-email command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $DATETIME$\n" | /bin/mail -s "Host $HOSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$ } Is there some way to turn up the logging levels in Nagios that might include the exact arguments passed when sending the notification command? On 7/13/05, Ruiz, Francisco wrote: > > > > Hi, > > > > Just curious if anyone has seen this problem. I am getting blank emails sent > from nagios. I checked disk space levels, and all looks fine. The blank > emails are sporadic. And occur only a few times a day. > > > > Any thoughts. > > > > Thanks in advance! -- Ed Bragg ---------------------------------------------------------------- http://www.ebware.com X10 Wireless Security Equipment - Affordable Security! ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From al at its-lehmann.de Wed Jul 13 23:42:17 2005 From: al at its-lehmann.de (Arno Lehmann) Date: Wed, 13 Jul 2005 23:42:17 +0200 Subject: Looking for specific plugins, can't wget them In-Reply-To: References: Message-ID: <42D58AB9.4070207@its-lehmann.de> Hi, Paul Goslin wrote: > Hello all, > > I have not been able to wget Rosenthals netsaint stuff rns_stuff.tar.gz from NagiosExchange which has all of these plugins I am looking for. > Is there another mirror where rns_stuff.tar.gz can be found or where can I get them separately. I just tried and downloaded # ll -h /tmp/rns_stuff.tar.gz -rwxr--r-- 1 arno users 234K Jul 13 23:39 /tmp/rns_stuff.tar.gz if you still can't access it I can mail the archive, or put it on a website. Arno > I am using 1.2 with plugins 1.4 on RH 7.3. > > check_socket > check_mem > check_disk2, > check_storage, > nsreport > nsconlog > > > Thanks, > Paul > > > > ------------------------------------------------------- > This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening > July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual > core and dual graphics technology at this free one hour event hosted by HP, > AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- IT-Service Lehmann al at its-lehmann.de Arno Lehmann http://www.its-lehmann.de ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From phil at roysys.com.au Wed Jul 13 23:47:24 2005 From: phil at roysys.com.au (phil) Date: Thu, 14 Jul 2005 07:47:24 +1000 Subject: outlook web access - OWA Message-ID: <003401c587f4$7848e3e0$0200000a@proylt> Is anyone monitoring the contents of an OWA account? Any help in trying to monitor OWA would be much appreciated. I can't get check_http past the authentication process. WebInject looks like it might be a solution but again I can't seem to get through the authentication. Thanks in advance. ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From andrew at profitability.net Wed Jul 13 23:54:57 2005 From: andrew at profitability.net (Andrew Cruse) Date: Wed, 13 Jul 2005 17:54:57 -0400 Subject: outlook web access - OWA In-Reply-To: <003401c587f4$7848e3e0$0200000a@proylt> References: <003401c587f4$7848e3e0$0200000a@proylt> Message-ID: nagios-users-admin at lists.sourceforge.net wrote: > Is anyone monitoring the contents of an OWA account? Any help > in trying to monitor OWA would be much appreciated. I can't > get check_http past the authentication process. WebInject > looks like it might be a solution but again I can't seem to > get through the authentication. This completely off-the-cuff so it may or may not work for you, but I would imagine an expect script that navigates into OWA using Lynx or something along those lines would probably get you where you need to go. Andrew ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From james at lovedthanlost.net Thu Jul 14 04:47:39 2005 From: james at lovedthanlost.net (James Turnbull) Date: Thu, 14 Jul 2005 12:47:39 +1000 Subject: Technical Reviewer required for Nagios book Message-ID: <20050714124739.xg2t3lgzk4owgg4c@webmail.lovedthanlost.net> All I am currently writing a book focusing on installing, administering and configuring Nagios 2.0. The book is being published by Apress (http://www.apress.com) and will probably be released in early 2006. I am seeking a technical reviewer for the book. The role of the technical reviewer is to ensure that the technical details in the book are accurate. The role requires a very good knowledge of Nagios and pays USD$3 per page reviewed. Please reply to my email - james at lovedthanlost.net - rather than the list if you are interested. Regards James Turnbull -- James Turnbull --- Author of Hardening Linux from Apress (http://www.amazon.com/exec/obidos/tg/detail/-/1590594444/) --- PGP Key (http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x0C42DF40) ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar From ae at op5.se Thu Jul 14 00:38:02 2005 From: ae at op5.se (Andreas Ericsson) Date: Thu, 14 Jul 2005 00:38:02 +0200 Subject: Nagios Blank Emails In-Reply-To: References: <2BF1D777D914174DB2F6874540E3B6C703590A@corpmail1.svale.netledger.com> Message-ID: <42D597CA.8050807@op5.se> Ed Bragg wrote: > > Is there some way to turn up the logging levels in Nagios that might > include the exact arguments passed when sending the notification > command? > ./configure --enable-DEBUG3 (or some such). If there is some config option it should be in the docs. > > > On 7/13/05, Ruiz, Francisco wrote: > >> >> >> >>Hi, >> >> >> >>Just curious if anyone has seen this problem. I am getting blank emails sent >>from nagios. I checked disk space levels, and all looks fine. The blank >>emails are sporadic. And occur only a few times a day. >> >> >> >>Any thoughts. >> >> >> >>Thanks in advance! > > > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Thu Jul 14 06:00:14 2005 From: s.shipway at auckland.ac.nz (Steve Shipway) Date: Thu, 14 Jul 2005 16:00:14 +1200 Subject: Nagios - High Availability Message-ID: <003501c58828$8a124650$01fea8c0@itss.auckland.ac.nz> I'm just at the final stages of implementing out High Availability Nagios/MRTG setup. If you are interested in how it was achieved, then read on. We have two identical servers with ServeRAID-6M SCSI cards (important to use this type of SCSI card) connected to the same bus of an external SCSI disk unit. They each have two network interfaces, one on the LAN and one joined by a crossover cable. The two servers have Linux RedHat AS4 with Linux-HA installed. The crossover ethernet and LAN are used for heartbeat. I have defined a resource group for Nagios, consisting of a virtual IP, the SCSI RAID logical volume, the filesystem, an instance of Apache, and Nagios. For Nagios, I defined a special resource.d file which changes settings in the xined.d/nsca file and starts/stops Nagios. All Nagios files are installed on the /u02 filesystem, which resides on the external disk unit. This is identified by a disk label and NOT defined in fstab. For MRTG, a similar setup is used on a separate RAID LV, ip address, and filesystem /u01. It adds and removes crontab entries to enable and disable the MRTG data collection. One server is the primary for MRTG, and the other for Nagios. If one goes down, then the other can take over within 2 minutes, enough to have constant monitoring coverage although the web interface experiences a slight outage during the changeover. At the moment, this is working very well. There were a couple of places where error messages needed to be binned if a machine was running cron or xinetd entries for a system not currently mounted, but it was minor. The web servers httpd.cfg files had to be sure to keep all data on the HA filesystems, and to use different filenames in /var, particularly for the /var/run/http.pid The ServeRAID card helpfully locks the other card out of accessing the disks, so we cannot get both machines mounting the filesystem at once. This obviously protects data integrity. All SNMP and firewall rulesets are set to allow access from both machine's static IP addresses. Any nsca processes send to the Nagios virtual IP, and web access is to the virtual Ips (the web servers bind to just the virtual IP address, so we can have two separate instances) If anyone would like more details on how to set up a similar system, and a copy of the haresources.d/nagios script, then please contact me. 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 jzygmont at solarflow.net Thu Jul 14 10:30:00 2005 From: jzygmont at solarflow.net (Justin Zygmont) Date: Thu, 14 Jul 2005 01:30:00 -0700 (PDT) Subject: setting up nagios In-Reply-To: <42D4D37C.3060006@lovedthanlost.net> References: <42D4D37C.3060006@lovedthanlost.net> Message-ID: thanks for the tip, i'm suprised that all it was, was the process kept dying silently. At least it's working now.. thanks for the help. On Wed, 13 Jul 2005, James Turnbull wrote: > Justin Zygmont wrote: > >> I am trying to setup nagios for the first time, and whenever I click on a >> link, I keep getting the error message that says it's unable to read the > > Is the Nagios process running? > > Regards > > James Turnbull > > ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From johan at knudde.be Thu Jul 14 11:12:47 2005 From: johan at knudde.be (Johan Braeken) Date: Thu, 14 Jul 2005 11:12:47 +0200 Subject: Hard en soft states: problem, maybe bug. Message-ID: <200507141112.48432.johan@knudde.be> Hello all, I have the following problem, which might be a bug in the handling of states. I don't know if this is already known as I'm quite new to Nagios... I had a service (ping) which went through the following states: Warning: Hard state Critical: Soft state OK: Soft state Although this service displays as OK in de service detail, all my availability reports keep saying it is still in "warning" state. So, it looks like the hard warning state wasn't "undone". How can I solve this? Cheers, -- Johan Braeken http://www.knudde.be ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ivdneut at gmail.com Thu Jul 14 11:39:42 2005 From: ivdneut at gmail.com (Ian van der Neut) Date: Thu, 14 Jul 2005 11:39:42 +0200 Subject: nagios.cmd file disappears on solaris9 Message-ID: <4a4499e050714023982d9b31@mail.gmail.com> Hello all, I am running nagios 1.2 on a Solaris 9 (sparc) machine. However, after a while, the /usr/local/nagios/var/rw/nagios.cmd file disappears for no apparent reason. I have only one nagios daemon running, and the permissions on the directory are: After I restart nagios, the file reappears and has the following permissions. 504 [root at zodiac:/usr/local/nagios/var/rw] # ls -la total 2 drwxrws--- 2 nagios nagiocmd 512 Jul 14 11:37 ./ drwxrwxr-x 4 nagios nagios 512 Jul 14 11:37 ../ prw-rw---- 1 nagios nagiocmd 0 Jul 14 11:37 nagios.cmd| Anybody ever seen this before and have any idea as to the cause of this. Found one similar post to this mailing list, but it was apparently because multiple instances of the nagios daemon were running, which is not the case here: 505 [root at zodiac:/usr/local/nagios/var/rw] # ps -ef | grep nagios nagios 5645 1 0 11:37:28 ? 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg root 5671 5625 0 11:39:08 pts/1 0:00 grep nagios thank you for any help, Ian. ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jjesse at iserv.net Thu Jul 14 14:15:07 2005 From: jjesse at iserv.net (Jonathan Jesse) Date: Thu, 14 Jul 2005 08:15:07 -0400 Subject: Frustrations w/ Nagios -- newbie Message-ID: <200507140815.07291.jjesse@iserv.net> Currently runing Debian (sarge) and have installed nagios via apt-get install nagios-text and am getting frustrated. After Nagios is installed I can access all of the pages correctly, Nagios runs because my default gateway is 192.168.1.1. I have setup a test box to configure and test things and everything works correctly. I can change the .cfg files to set things up correctly, but on the box I want to use for production as soon as I edit a file I get the error "It appears as though you do not have permission to view information for any of the servers you requested. On my test box the .cfg is owned by nagios.nagios and on the production box it is owned by nagios.www-data. I changed the directory to nagios.nagios and am still getting the error. The two boxes are setup as identically as I can get them, same CD to install Debian, same install apt-get install nagios-text, same version of apache. Any help would be appreciated. ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Thu Jul 14 12:28:40 2005 From: chris at aidworld.org (Chris Wilson) Date: Thu, 14 Jul 2005 11:28:40 +0100 Subject: Hard en soft states: problem, maybe bug. In-Reply-To: <200507141112.48432.johan@knudde.be> References: <200507141112.48432.johan@knudde.be> Message-ID: <1121336919.27626.29.camel@localhost> Hi Johan, I have seen the same thing happen sometimes. Do you use passive service checks by any chance? I reported it as a problem with avail.cgi a few weeks ago, but I guess it's really an internal Nagios state change bug, not avail.cgi. Restarting Nagios should return the service to a hard state, not a good workaround, but better than nothing :-) Cheers, Chris. On Thu, 2005-07-14 at 10:12, Johan Braeken wrote: > Hello all, > > I have the following problem, which might be a bug in the handling of states. > I don't know if this is already known as I'm quite new to Nagios... > > > I had a service (ping) which went through the following states: > > Warning: Hard state > Critical: Soft state > OK: Soft state > > Although this service displays as OK in de service detail, all my availability > reports keep saying it is still in "warning" state. > So, it looks like the hard warning state wasn't "undone". > > How can I solve this? > > > Cheers, -- (aidworld) chris wilson | chief engineer (chris at aidworld.org) ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Thu Jul 14 02:38:35 2005 From: don.alfredo at pandora.be (Don Alfredo) Date: Thu, 14 Jul 2005 02:38:35 +0200 Subject: check_radius works from command line but lists Auth Error via interface In-Reply-To: <42D298C6.9090603@netnitco.net> References: <42D298C6.9090603@netnitco.net> Message-ID: <200507140238.35881.don.alfredo@pandora.be> checkcommands expect arguments to be separated by ! (exclamation mark) e.g. check_command check_radius!Username!Password grtz, Fred On Monday 11 July 2005 18:05, NetNITCO Systems Administration wrote: > My configuration for this service and command is as follows: > > services.cfg: > --------------- > define service{ > use generic-service > host_name radiushost.domain.net > service_description RADIUS > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 1 > contact_groups sysadmin > notification_interval 120 > notification_period 24x7 > notification_options w,u,c,r > check_command check_radius > } > > checkcommands.cfg: > ------------------ > define command{ > command_name check_radius > command_line $USER1$/check_radius -H $HOSTADDRESS$ -F > /etc/nagios/radiusclient.conf -u Username -p Password -t 10 > > ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From robmossrm at aol.com Thu Jul 14 15:15:14 2005 From: robmossrm at aol.com (Rob Moss) Date: Thu, 14 Jul 2005 14:15:14 +0100 Subject: Frustrations w/ Nagios -- newbie In-Reply-To: <200507140815.07291.jjesse@iserv.net> References: <200507140815.07291.jjesse@iserv.net> Message-ID: <42D66562.4050107@aol.com> You need to set up Apache .htaccess and passwords for the directories nagios is installed to. There are docs on the Apache website. http://httpd.apache.org/docs/howto/htaccess.html http://httpd.apache.org/docs/mod/core.html#allowoverride Also update your nagios cgi.cfg to say which users can perform which actions. Cheers Jonathan Jesse wrote: > Currently runing Debian (sarge) and have installed nagios via apt-get install > nagios-text and am getting frustrated. > > After Nagios is installed I can access all of the pages correctly, Nagios runs > because my default gateway is 192.168.1.1. I have setup a test box to > configure and test things and everything works correctly. I can change > the .cfg files to set things up correctly, but on the box I want to use for > production as soon as I edit a file I get the error "It appears as though you > do not have permission to view information for any of the servers you > requested. > > On my test box the .cfg is owned by nagios.nagios and on the production box it > is owned by nagios.www-data. I changed the directory to nagios.nagios and am > still getting the error. > > The two boxes are setup as identically as I can get them, same CD to install > Debian, same install apt-get install nagios-text, same version of apache. > Any help would be appreciated. > > > ------------------------------------------------------- > This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening > July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual > core and dual graphics technology at this free one hour event hosted by HP, > AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From joshadmin at netnitco.net Thu Jul 14 15:50:29 2005 From: joshadmin at netnitco.net (NetNITCO Systems Administration) Date: Thu, 14 Jul 2005 08:50:29 -0500 Subject: check_radius works from command line but lists Auth Error via interface In-Reply-To: <200507140238.35881.don.alfredo@pandora.be> References: <42D298C6.9090603@netnitco.net> <200507140238.35881.don.alfredo@pandora.be> Message-ID: <42D66DA5.4000101@netnitco.net> Don Alfredo wrote: > checkcommands expect arguments to be separated by ! (exclamation mark) > e.g. > check_command check_radius!Username!Password > I do not need to pass arguments in the check_command from the services.cfg file as the checkcommand.cfg file already has everything hard-coded. The only dynamic variable to the command is $HOSTADDRESS$ which isn't passed from the services.cfg file. As you can see in my checkcommands.cfg file, the command_line does not have any $ARGn$ variables. > > grtz, > Fred > > > On Monday 11 July 2005 18:05, NetNITCO Systems Administration wrote: > >>My configuration for this service and command is as follows: >> >>services.cfg: >>--------------- >>define service{ >> use generic-service >> host_name radiushost.domain.net >> service_description RADIUS >> is_volatile 0 >> check_period 24x7 >> max_check_attempts 3 >> normal_check_interval 5 >> retry_check_interval 1 >> contact_groups sysadmin >> notification_interval 120 >> notification_period 24x7 >> notification_options w,u,c,r >> check_command check_radius >> } >> >>checkcommands.cfg: >>------------------ >>define command{ >> command_name check_radius >> command_line $USER1$/check_radius -H $HOSTADDRESS$ -F >>/etc/nagios/radiusclient.conf -u Username -p Password -t 10 >> >> > > > > ------------------------------------------------------- > This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening > July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual > core and dual graphics technology at this free one hour event hosted by HP, > AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From coelhoapm at gmail.com Thu Jul 14 16:24:15 2005 From: coelhoapm at gmail.com (=?ISO-8859-1?Q?Ant=F3nio_Coelho?=) Date: Thu, 14 Jul 2005 15:24:15 +0100 Subject: check_disk no output Message-ID: Hello all, My Nagios is monitoring several services and machines on the network. One of the services is check_remote_disk for a AIX machine, with the line check_remote_disk!10%!5%!"/ /var /home /oracle /oracle/backup" The problem is, if I run the plugin directly on the AIX-server (via command shell) it returns a valid output, but in nagios web interface it shows like NO OUTPUT! zugtwz2 Disk OK 07-13-2005 15:52:32 1d 23h 40m 15s 1/3 (No output!) Can anyone help me on this? Thanks, -- Ant?nio Coelho http://www.antoniocoelho.com.pt coelhoapm at gmail.com ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dkamper at mxlogic.com Thu Jul 14 18:23:10 2005 From: dkamper at mxlogic.com (Dustin Kamper) Date: Thu, 14 Jul 2005 10:23:10 -0600 Subject: Distributed Nagios and scheduling service check from the central server Message-ID: <0B34A6972BF39E4CB465A64DBBAD2BB9437AF3@mxlhq-exch01.corp.mxlogic.com> I have a distributed Nagios setup I'm testing with 2 distributed servers and 1 central server. The distributed servers run all checks and send the results to the central server. The central server is configured to accept passive service checks and check for freshness. Active checks are turned off on the central server. With active checks turned off, it seems that I cannot schedule a check of services from the central server web page. If I turn on active checks (to allow a forced scheduled check) then the checks are run per normal_check_interval, which I don't want. So, I have increased the normal_check_interval to a very high number to make active check only run occasionally, but this will effect the freshness checking. Nothing seems to be working the way I need it to. Is there a way to be able to manually schedule a check of services from the central server in a distributed setup? I don't want active checks performed from the central server but I would like freshness checking to be performed. Dustin Kamper Systems Engineer MX Logic, Inc. Direct: +1.720.895.4427 Fax: +1.303.221.4930 Email: dkamper at mxlogic.com Your first line of email defense. http://www.mxlogic.com/ ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jjesse at iserv.net Thu Jul 14 18:48:41 2005 From: jjesse at iserv.net (Jonathan Jesse) Date: Thu, 14 Jul 2005 12:48:41 -0400 Subject: Frustrations w/ Nagios -- newbie In-Reply-To: <42D66562.4050107@aol.com> References: <200507140815.07291.jjesse@iserv.net> <42D66562.4050107@aol.com> Message-ID: <200507141248.42188.jjesse@iserv.net> Thanks for the links. Here is where my confusion and my frustration lies. Before editing any files I can view all of the pages through Nagios. As soon as I make one change, I get the error about me not having permissions. Nothing has changed in the apache config, it is in the nagios setup On Thursday 14 July 2005 09:15 am, Rob Moss wrote: > You need to set up Apache .htaccess and passwords for the directories > nagios is installed to. There are docs on the Apache website. > > http://httpd.apache.org/docs/howto/htaccess.html > http://httpd.apache.org/docs/mod/core.html#allowoverride > > Also update your nagios cgi.cfg to say which users can perform which > actions. > > Cheers > > Jonathan Jesse wrote: > > Currently runing Debian (sarge) and have installed nagios via apt-get > > install nagios-text and am getting frustrated. > > > > After Nagios is installed I can access all of the pages correctly, Nagios > > runs because my default gateway is 192.168.1.1. I have setup a test box > > to configure and test things and everything works correctly. I can > > change the .cfg files to set things up correctly, but on the box I want > > to use for production as soon as I edit a file I get the error "It > > appears as though you do not have permission to view information for any > > of the servers you requested. > > > > On my test box the .cfg is owned by nagios.nagios and on the production > > box it is owned by nagios.www-data. I changed the directory to > > nagios.nagios and am still getting the error. > > > > The two boxes are setup as identically as I can get them, same CD to > > install Debian, same install apt-get install nagios-text, same version of > > apache. Any help would be appreciated. > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by the 'Do More With Dual!' webinar > > happening July 14 at 8am PDT/11am EDT. We invite you to explore the > > latest in dual core and dual graphics technology at this free one hour > > event hosted by HP, AMD, and NVIDIA. To register visit > > http://www.hp.com/go/dualwebinar > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > ::: Please include Nagios version, plugin version (-v) and OS when > > ::: reporting any issue. Messages without supporting info will risk being > > ::: sent to /dev/null > > ------------------------------------------------------- > This SF.Net email is sponsored by the 'Do More With Dual!' webinar > happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest > in dual core and dual graphics technology at this free one hour event > hosted by HP, AMD, and NVIDIA. To register visit > http://www.hp.com/go/dualwebinar > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > ::: reporting any issue. Messages without supporting info will risk being > ::: sent to /dev/null ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ladams at cloudmark.com Thu Jul 14 19:32:35 2005 From: ladams at cloudmark.com (Lori Adams) Date: Thu, 14 Jul 2005 10:32:35 -0700 Subject: Frustrations w/ Nagios -- newbie Message-ID: Have you restarted nagios after updating the configs? -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Jonathan Jesse Sent: Thursday, July 14, 2005 9:49 AM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Frustrations w/ Nagios -- newbie Thanks for the links. Here is where my confusion and my frustration lies. Before editing any files I can view all of the pages through Nagios. As soon as I make one change, I get the error about me not having permissions. Nothing has changed in the apache config, it is in the nagios setup On Thursday 14 July 2005 09:15 am, Rob Moss wrote: > You need to set up Apache .htaccess and passwords for the directories > nagios is installed to. There are docs on the Apache website. > > http://httpd.apache.org/docs/howto/htaccess.html > http://httpd.apache.org/docs/mod/core.html#allowoverride > > Also update your nagios cgi.cfg to say which users can perform which > actions. > > Cheers > > Jonathan Jesse wrote: > > Currently runing Debian (sarge) and have installed nagios via apt-get > > install nagios-text and am getting frustrated. > > > > After Nagios is installed I can access all of the pages correctly, Nagios > > runs because my default gateway is 192.168.1.1. I have setup a test box > > to configure and test things and everything works correctly. I can > > change the .cfg files to set things up correctly, but on the box I want > > to use for production as soon as I edit a file I get the error "It > > appears as though you do not have permission to view information for any > > of the servers you requested. > > > > On my test box the .cfg is owned by nagios.nagios and on the production > > box it is owned by nagios.www-data. I changed the directory to > > nagios.nagios and am still getting the error. > > > > The two boxes are setup as identically as I can get them, same CD to > > install Debian, same install apt-get install nagios-text, same version of > > apache. Any help would be appreciated. > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by the 'Do More With Dual!' webinar > > happening July 14 at 8am PDT/11am EDT. We invite you to explore the > > latest in dual core and dual graphics technology at this free one hour > > event hosted by HP, AMD, and NVIDIA. To register visit > > http://www.hp.com/go/dualwebinar > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > ::: Please include Nagios version, plugin version (-v) and OS when > > ::: reporting any issue. Messages without supporting info will risk being > > ::: sent to /dev/null > > ------------------------------------------------------- > This SF.Net email is sponsored by the 'Do More With Dual!' webinar > happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest > in dual core and dual graphics technology at this free one hour event > hosted by HP, AMD, and NVIDIA. To register visit > http://www.hp.com/go/dualwebinar > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > ::: reporting any issue. Messages without supporting info will risk being > ::: sent to /dev/null ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jjesse at iserv.net Thu Jul 14 19:50:26 2005 From: jjesse at iserv.net (Jonathan Jesse) Date: Thu, 14 Jul 2005 13:50:26 -0400 Subject: Frustrations w/ Nagios -- newbie In-Reply-To: References: Message-ID: <200507141350.27374.jjesse@iserv.net> Yes I have, I restarted both and also restarted apache. just on a whim I restarted the whole server and it cleared up. Probablly something stupid on my end? Thanks for all the assistance w/ my questionsl On Thursday 14 July 2005 01:32 pm, Lori Adams wrote: > Have you restarted nagios after updating the configs? > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Jonathan > Jesse > Sent: Thursday, July 14, 2005 9:49 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Frustrations w/ Nagios -- newbie > > Thanks for the links. Here is where my confusion and my frustration > lies. > Before editing any files I can view all of the pages through Nagios. As > soon > as I make one change, I get the error about me not having permissions. > Nothing has changed in the apache config, it is in the nagios setup > > On Thursday 14 July 2005 09:15 am, Rob Moss wrote: > > You need to set up Apache .htaccess and passwords for the directories > > nagios is installed to. There are docs on the Apache website. > > > > http://httpd.apache.org/docs/howto/htaccess.html > > http://httpd.apache.org/docs/mod/core.html#allowoverride > > > > Also update your nagios cgi.cfg to say which users can perform which > > actions. > > > > Cheers > > > > Jonathan Jesse wrote: > > > Currently runing Debian (sarge) and have installed nagios via > > apt-get > > > > install nagios-text and am getting frustrated. > > > > > > After Nagios is installed I can access all of the pages correctly, > > Nagios > > > > runs because my default gateway is 192.168.1.1. I have setup a > > test box > > > > to configure and test things and everything works correctly. I can > > > change the .cfg files to set things up correctly, but on the box I > > want > > > > to use for production as soon as I edit a file I get the error "It > > > appears as though you do not have permission to view information for > > any > > > > of the servers you requested. > > > > > > On my test box the .cfg is owned by nagios.nagios and on the > > production > > > > box it is owned by nagios.www-data. I changed the directory to > > > nagios.nagios and am still getting the error. > > > > > > The two boxes are setup as identically as I can get them, same CD to > > > install Debian, same install apt-get install nagios-text, same > > version of > > > > apache. Any help would be appreciated. > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by the 'Do More With Dual!' webinar > > > happening July 14 at 8am PDT/11am EDT. We invite you to explore the > > > latest in dual core and dual graphics technology at this free one > > hour > > > > event hosted by HP, AMD, and NVIDIA. To register visit > > > http://www.hp.com/go/dualwebinar > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > ::: Please include Nagios version, plugin version (-v) and OS when > > > ::: reporting any issue. Messages without supporting info will risk > > being > > > > ::: sent to /dev/null > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by the 'Do More With Dual!' webinar > > happening July 14 at 8am PDT/11am EDT. We invite you to explore the > > latest > > > in dual core and dual graphics technology at this free one hour event > > hosted by HP, AMD, and NVIDIA. To register visit > > http://www.hp.com/go/dualwebinar > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > ::: Please include Nagios version, plugin version (-v) and OS when > > ::: reporting any issue. Messages without supporting info will risk > > being > > > ::: sent to /dev/null > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op?k > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > ::: reporting any issue. Messages without supporting info will risk being > ::: sent to /dev/null ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 14 21:20:43 2005 From: marc at ena.com (Marc Powell) Date: Thu, 14 Jul 2005 14:20:43 -0500 Subject: Frustrations w/ Nagios -- newbie Message-ID: This is most often caused by a typo or misconfiguration in one of your cfg files. Run bin/nagios -v etc/nagios.cfg to have nagios test your config files. Another possibility is that the file you are editing is locked and unreadable by apache. Since the CGI's read those for every request, they'll bomb out with that error if they can't read one of the files. I suspect that the former is more likely however. -- Marc > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Jonathan Jesse > Sent: Thursday, July 14, 2005 11:49 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Frustrations w/ Nagios -- newbie > > Thanks for the links. Here is where my confusion and my frustration lies. > Before editing any files I can view all of the pages through Nagios. As > soon > as I make one change, I get the error about me not having permissions. > Nothing has changed in the apache config, it is in the nagios setup > > On Thursday 14 July 2005 09:15 am, Rob Moss wrote: > > You need to set up Apache .htaccess and passwords for the directories > > nagios is installed to. There are docs on the Apache website. > > > > http://httpd.apache.org/docs/howto/htaccess.html > > http://httpd.apache.org/docs/mod/core.html#allowoverride > > > > Also update your nagios cgi.cfg to say which users can perform which > > actions. > > > > Cheers > > > > Jonathan Jesse wrote: > > > Currently runing Debian (sarge) and have installed nagios via apt-get > > > install nagios-text and am getting frustrated. > > > > > > After Nagios is installed I can access all of the pages correctly, > Nagios > > > runs because my default gateway is 192.168.1.1. I have setup a test > box > > > to configure and test things and everything works correctly. I can > > > change the .cfg files to set things up correctly, but on the box I > want > > > to use for production as soon as I edit a file I get the error "It > > > appears as though you do not have permission to view information for > any > > > of the servers you requested. > > > > > > On my test box the .cfg is owned by nagios.nagios and on the > production > > > box it is owned by nagios.www-data. I changed the directory to > > > nagios.nagios and am still getting the error. > > > > > > The two boxes are setup as identically as I can get them, same CD to > > > install Debian, same install apt-get install nagios-text, same version > of > > > apache. Any help would be appreciated. > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by the 'Do More With Dual!' webinar > > > happening July 14 at 8am PDT/11am EDT. We invite you to explore the > > > latest in dual core and dual graphics technology at this free one hour > > > event hosted by HP, AMD, and NVIDIA. To register visit > > > http://www.hp.com/go/dualwebinar > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > ::: Please include Nagios version, plugin version (-v) and OS when > > > ::: reporting any issue. Messages without supporting info will risk > being > > > ::: sent to /dev/null > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by the 'Do More With Dual!' webinar > > happening July 14 at 8am PDT/11am EDT. We invite you to explore the > latest > > in dual core and dual graphics technology at this free one hour event > > hosted by HP, AMD, and NVIDIA. To register visit > > http://www.hp.com/go/dualwebinar > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > ::: Please include Nagios version, plugin version (-v) and OS when > > ::: reporting any issue. Messages without supporting info will risk > being > > ::: sent to /dev/null > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 14 21:28:36 2005 From: marc at ena.com (Marc Powell) Date: Thu, 14 Jul 2005 14:28:36 -0500 Subject: Distributed Nagios and scheduling service check from the central server Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Dustin Kamper > Sent: Thursday, July 14, 2005 11:23 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Distributed Nagios and scheduling service check > from the central server > > I have a distributed Nagios setup I'm testing with 2 distributed servers > and 1 central server. The distributed servers run all checks and send > the results to the central server. The central server is configured to > accept passive service checks and check for freshness. Active checks > are turned off on the central server. > > With active checks turned off, it seems that I cannot schedule a check > of services from the central server web page. If I turn on active > checks (to allow a forced scheduled check) then the checks are run per > normal_check_interval, which I don't want. So, I have increased the > normal_check_interval to a very high number to make active check only > run occasionally, but this will effect the freshness checking. Nothing > seems to be working the way I need it to. Set your check_period to none. Active checks will never happen except for the forced freshness check. You can then force an active check from the GUI for any host or service that you want and it will be executed. Scheduled checks will not happen. See below. > > Is there a way to be able to manually schedule a check of services from > the central server in a distributed setup? I don't want active checks > performed from the central server but I would like freshness checking to > be performed. There is no mechanism to send an 'active check request' from a central server to the distributed servers. Nagios itself isn't even aware that they exist let alone how to communicate with them. It just knows that it got a passive check, not where it came from. You either need to use the GUI on the distributed servers to force the check, use the GUI on the central server and have the check execute from there or create your own mechanism to send/execute the request on your distributed machines. -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 14 21:30:49 2005 From: marc at ena.com (Marc Powell) Date: Thu, 14 Jul 2005 14:30:49 -0500 Subject: check_disk no output Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Ant?nio Coelho > Sent: Thursday, July 14, 2005 9:24 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] check_disk no output > > Hello all, > > My Nagios is monitoring several services and machines on the network. > One of the services is check_remote_disk for a AIX machine, with the > line > > check_remote_disk!10%!5%!"/ /var /home /oracle /oracle/backup" > > The problem is, if I run the plugin directly on the AIX-server (via > command shell) it returns a valid output, but in nagios web interface > it shows like NO OUTPUT! > > zugtwz2 Disk OK 07-13-2005 15:52:32 1d 23h 40m 15s 1/3 (No > output!) > > Can anyone help me on this? Run the command as the nagios user exactly as it's defined in your commands.cfg file from your nagios machine. Chances are high that it's spitting out something that you're not seeing. -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 14 21:36:30 2005 From: marc at ena.com (Marc Powell) Date: Thu, 14 Jul 2005 14:36:30 -0500 Subject: check_radius works from command line but lists Auth Error via interface Message-ID: This would only be relevant if he was specifying $ARGn$ macros in his command definition. He's not. -- Marc > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Don Alfredo > Sent: Wednesday, July 13, 2005 7:39 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] check_radius works from command line but lists > Auth Error via interface > > checkcommands expect arguments to be separated by ! (exclamation mark) > e.g. > check_command check_radius!Username!Password > > > grtz, > Fred > > > On Monday 11 July 2005 18:05, NetNITCO Systems Administration wrote: > > My configuration for this service and command is as follows: > > > > services.cfg: > > --------------- > > define service{ > > use generic-service > > host_name radiushost.domain.net > > service_description RADIUS > > is_volatile 0 > > check_period 24x7 > > max_check_attempts 3 > > normal_check_interval 5 > > retry_check_interval 1 > > contact_groups sysadmin > > notification_interval 120 > > notification_period 24x7 > > notification_options w,u,c,r > > check_command check_radius > > } > > > > checkcommands.cfg: > > ------------------ > > define command{ > > command_name check_radius > > command_line $USER1$/check_radius -H $HOSTADDRESS$ -F > > /etc/nagios/radiusclient.conf -u Username -p Password -t 10 > > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 14 21:42:33 2005 From: marc at ena.com (Marc Powell) Date: Thu, 14 Jul 2005 14:42:33 -0500 Subject: multiple instances of nagios Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Lori Adams > Sent: Tuesday, July 12, 2005 6:40 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] multiple instances of nagios > > Is it possible to run multiple instances of nagios and have them show up > together in a nice hierarchical manner in the cgis. It'd be nice to be > able to roll them up together and also be able to view the instances > separately. Obviously having separate instances, I can view them apart > in n web sites. We'd like to be able to roll them up into one. No, it's not. Why do you need to? One the face of it, using Authentication/Authorization within Nagios likely fits the bill; it does for us at least. -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cameron.matheson at gmail.com Thu Jul 14 22:09:31 2005 From: cameron.matheson at gmail.com (Cam) Date: Thu, 14 Jul 2005 14:09:31 -0600 Subject: check_oracle plugin and $ORACLE_HOME Message-ID: <7e2f9af905071413091ff21cc4@mail.gmail.com> Hi, I'm using nagios to monitor some of my systems. It seems like a pretty slick system. Anyway, i'm trying to check if the oracle database is up on one of my boxes, but i really know nothing about oracle at all (i'm just monitoring the box, i have nothing to do w/ anything other than that). Anyway, i was happy to see the check_oracle plugin, but i'm having a little bit of difficulty. The error i get when i try './check_oracle --tns aspdb' i get the error: Cannot determine ORACLE_HOME for sid aspapp2 i did a search on the mailing list archives, but the only thing i could come up w/ some problems that people had w/ the plugin and nrpe (i don't want to use nrpe). I tried setting ORACLE_HOME here on my nagios server, but that didn't do me any good. Am i doing something wrong? Is this not the right plugin for me? I was thinking about how i could check it other than through the plugin... maybe check if the process is running through SNMP? Any hints would be greatly appreciated. Thanks, Cameron Matheson ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Thu Jul 14 22:31:12 2005 From: dmourati at cm.math.uiuc.edu (Demetri Mouratis) Date: Thu, 14 Jul 2005 15:31:12 -0500 (CDT) Subject: check_oracle plugin and $ORACLE_HOME In-Reply-To: <7e2f9af905071413091ff21cc4@mail.gmail.com> References: <7e2f9af905071413091ff21cc4@mail.gmail.com> Message-ID: On Thu, 14 Jul 2005, Cam wrote: > Hi, > > I'm using nagios to monitor some of my systems. It seems like a > pretty slick system. Anyway, i'm trying to check if the oracle > database is up on one of my boxes, but i really know nothing about > oracle at all (i'm just monitoring the box, i have nothing to do w/ > anything other than that). Anyway, i was happy to see the > check_oracle plugin, but i'm having a little bit of difficulty. The > error i get when i try './check_oracle --tns aspdb' i get the error: > > Cannot determine ORACLE_HOME for sid aspapp2 > > i did a search on the mailing list archives, but the only thing i > could come up w/ some problems that people had w/ the plugin and nrpe > (i don't want to use nrpe). I tried setting ORACLE_HOME here on my > nagios server, but that didn't do me any good. Am i doing something > wrong? Is this not the right plugin for me? I was thinking about how > i could check it other than through the plugin... maybe check if the > process is running through SNMP? Any hints would be greatly > appreciated. > > Thanks, > Cameron Matheson Take a look at the file called /etc/oratab or alternatively /var/opt/oracle/oratab. That file defines the home environment based on the sid. You can optionally add a "*" entry in the oratab for a default ORACLE_HOME for undefined sids. --------------------------------------------------------------------- Demetri Mouratis dmourati at linfactory.com ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dkamper at mxlogic.com Thu Jul 14 22:40:24 2005 From: dkamper at mxlogic.com (Dustin Kamper) Date: Thu, 14 Jul 2005 14:40:24 -0600 Subject: Distributed Nagios and scheduling service check from the central server Message-ID: <0B34A6972BF39E4CB465A64DBBAD2BB9437B71@mxlhq-exch01.corp.mxlogic.com> OK, All of the checks on the distributed servers can be executed by the central server with no issues. So I just used a 'concatonated' version of the services.cfg from all the distributed servers on the central server. So, basically, the central server can step in and check services when/if the distributed server(s) stop responding. That is what I am using the freshness checking for. The freshness checking will automatically start checking services on a distributed server failure. But I also want to be able to check services on demand via 'Re-schedule the next check of this service' link on the web page from the central server. >From what I can figure out, freshness checks base the 'freshness' of the the results on the normal_check_interval setting. Since normal_check_interval controls the timming of the active checks, you must turn active checks off so you don't have the central server checking what the distributed servers are already checking. When active service checks are turned off, the 'Re-schedule the next check of this service' link is not available from the web page. I would like 1 source of Nagios for monitoring all of my servers but would like to spread the load of all the service checks to many distributed servers. It would be a pain to have to go to one of the distributed servers just to run one re-scheduled service check on demand. Now I'm not sure that a distributed solution is going to work for my monitoring needs. Any pointers would be appreciated. -Dustin -----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, July 14, 2005 1:29 PM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Distributed Nagios and scheduling service check from the central server > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Dustin Kamper > Sent: Thursday, July 14, 2005 11:23 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Distributed Nagios and scheduling service check > from the central server > > I have a distributed Nagios setup I'm testing with 2 distributed servers > and 1 central server. The distributed servers run all checks and send > the results to the central server. The central server is configured to > accept passive service checks and check for freshness. Active checks > are turned off on the central server. > > With active checks turned off, it seems that I cannot schedule a check > of services from the central server web page. If I turn on active > checks (to allow a forced scheduled check) then the checks are run per > normal_check_interval, which I don't want. So, I have increased the > normal_check_interval to a very high number to make active check only > run occasionally, but this will effect the freshness checking. Nothing > seems to be working the way I need it to. Set your check_period to none. Active checks will never happen except for the forced freshness check. You can then force an active check from the GUI for any host or service that you want and it will be executed. Scheduled checks will not happen. See below. > > Is there a way to be able to manually schedule a check of services from > the central server in a distributed setup? I don't want active checks > performed from the central server but I would like freshness checking to > be performed. There is no mechanism to send an 'active check request' from a central server to the distributed servers. Nagios itself isn't even aware that they exist let alone how to communicate with them. It just knows that it got a passive check, not where it came from. You either need to use the GUI on the distributed servers to force the check, use the GUI on the central server and have the check execute from there or create your own mechanism to send/execute the request on your distributed machines. -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=ick _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 15 00:13:48 2005 From: marc at ena.com (Marc Powell) Date: Thu, 14 Jul 2005 17:13:48 -0500 Subject: Distributed Nagios and scheduling service check from the central server Message-ID: Please try to avoid top-posting. sucks. posting top why is This > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Dustin Kamper > Sent: Thursday, July 14, 2005 3:40 PM > To: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Distributed Nagios and scheduling service > check from the central server > > All of the checks on the distributed servers can be executed by the > central server with no issues. So I just used a 'concatonated' version > From what I can figure out, freshness checks base the 'freshness' of the > the results on the normal_check_interval setting. Since > normal_check_interval controls the timming of the active checks, you > must turn active checks off so you don't have the central server > checking what the distributed servers are already checking. When active > service checks are turned off, the 'Re-schedule the next check of this > service' link is not available from the web page. The documentation is unambiguous, no need to figure anything out -- http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#service freshness_threshold: This directive is used to specify the freshness threshold (in seconds) for this service. If you set this directive to a value of 0, Nagios will determine a freshness threshold to use automatically. And http://nagios.sourceforge.net/docs/1_0/freshness.html "Assuming you're using the template-based object configuration file(s), you need to configure service definitions as follows. * The check_freshness option in the service definition should be set to 1. This enables "freshness" checking for the service. * The freshness_threshold option in the service definition should be set to a value (in seconds) which reflects how "fresh" the results for the service should be. * The check_command option in the service definition should reflect valid command that should be used to actively check the service when it is detected as being "stale". How The Freshness Threshold Works Nagios periodically checks the "freshness" of the results for all services that have freshness checking enabled. The freshness_threshold option in each service definition is used to determine how "fresh" the results for each service should be. For example, if you set the freshness_threshold option to 60 for one of your services, Nagios will consider that service to be "stale" if its results are older than 60 seconds (1 minute). If you do not specify a value for the freshness_threshold option (or you set it to zero), Nagios will automatically calculate a "freshness" threshold to use by looking at either the normal_check_interval or retry_check_interval options (depending on what type of state the service is currently in)." > > I would like 1 source of Nagios for monitoring all of my servers but > would like to spread the load of all the service checks to many > distributed servers. It would be a pain to have to go to one of the > distributed servers just to run one re-scheduled service check on > demand. > > Now I'm not sure that a distributed solution is going to work for my > monitoring needs. Any pointers would be appreciated. Active_checks_enabled 1 Passive_checks_enabled 1 check_period none check_freshness 1 freshness_threshold 300 ; bad if 5 minutes old check_command some_valid_check_command Since you can execute all of your checks from the central server with no problems, this should be a workable solution for you (it's been for us for 4 years with 4 collectors and 2900+ passive service checks but to each his own). If you _really, really_ wanted to execute the checks from the remote host, write a script to ssh to the appropriate nagios machine and drop a SCHEDULE_SVC_CHECK external command into the pipe. check_by_ssh might be a good wrapper/start. Make that script the check_command for the services on your central machine. That way, freshness checks will be executed from the remote machine as well as forced checks. -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From teng at dataway.com Fri Jul 15 01:20:00 2005 From: teng at dataway.com (Tedman Eng) Date: Thu, 14 Jul 2005 16:20:00 -0700 Subject: Distributed Nagios and scheduling service chec k from the central server Message-ID: <37ED92F9890FAF4BB947613C66FF8B1AFC757C@dw-mail.dataway.com> > -----Original Message----- > From: Marc Powell [mailto:marc at ena.com] > Sent: Thursday, July 14, 2005 3:14 PM > To: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Distributed Nagios and scheduling service > check from the central server > > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > Sent: Thursday, July 14, 2005 3:40 PM > > To: nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] Distributed Nagios and > > scheduling service check from the central server > > ... > > ... > > > Active_checks_enabled 1 > Passive_checks_enabled 1 > check_period none > check_freshness 1 > freshness_threshold 300 ; bad if 5 minutes old > check_command some_valid_check_command > Here is an important distinction: There are 2 ways to functionally "disable" active checks for a distributed nagios environment. Actve_checks_enabled 0 -or- check_period none I prefer the "check_period=none", as this means that the active checks are still enabled, but never get scheduled. Downside is they sit in your queue taking up space (unfortunately, at the top of the queue too). In some instances, the central server will never be able to perform the active check, so completely disabling the active check for those services would be the way to go, and they won't go into the queue. ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From johan at knudde.be Fri Jul 15 10:45:52 2005 From: johan at knudde.be (Johan Braeken) Date: Fri, 15 Jul 2005 10:45:52 +0200 Subject: Hard en soft states: problem, maybe bug. In-Reply-To: <1121336919.27626.29.camel@localhost> References: <200507141112.48432.johan@knudde.be> <1121336919.27626.29.camel@localhost> Message-ID: <200507151045.54361.johan@knudde.be> On Thursday 14 July 2005 12:28, Chris Wilson wrote: > Hi Johan, > > I have seen the same thing happen sometimes. Do you use passive service > checks by any chance? I reported it as a problem with avail.cgi a few > weeks ago, but I guess it's really an internal Nagios state change bug, > not avail.cgi. No, I'm not using passive checks. It happened with the standard ping plugin. > Restarting Nagios should return the service to a hard state, not a good > workaround, but better than nothing :-) Unfortunately it didn't. I temporarily changed the plugin parameters so I got a hard warning. After changing back and a hard OK was received, everything was like it should again. Cheers, Johan. > > Cheers, Chris. > > On Thu, 2005-07-14 at 10:12, Johan Braeken wrote: > > Hello all, > > > > I have the following problem, which might be a bug in the handling of > > states. I don't know if this is already known as I'm quite new to > > Nagios... > > > > > > I had a service (ping) which went through the following states: > > > > Warning: Hard state > > Critical: Soft state > > OK: Soft state > > > > Although this service displays as OK in de service detail, all my > > availability reports keep saying it is still in "warning" state. > > So, it looks like the hard warning state wasn't "undone". > > > > How can I solve this? > > > > > > Cheers, -- Johan Braeken http://www.knudde.be ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From francois.laupretre-prestataire at calyon.com Fri Jul 15 11:47:49 2005 From: francois.laupretre-prestataire at calyon.com (Fran=?utf-8?B?w6c=?=ois Laupretre) Date: Fri, 15 Jul 2005 11:47:49 +0200 Subject: [Nagios-devel] webinterface don't works w ith large number of hosts in Nagios 2.0 current cvs version Message-ID: <506CE696433BD711B7C6000802B2520C079871ED@mnts3023.capitalmarkets.fr.cly> The test for strlen(input)>MAX_XODTEMPLATE_INPUT_BUFFER has been removed on 05/25/2005 from xodtemplate_add_object_property() in the CVS version. Maybe you could try the current CVS. > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf > Of Marcus Hildenbrand > Sent: Wednesday, July 13, 2005 1:19 PM > To: nagios-devel at lists.sourceforge.net; > nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Re: [Nagios-devel] webinterface don't > works with large number of hosts in Nagios 2.0 current cvs version > > > Hi, > > the cause of this seems to be a too long list of services in > a servicegroup. My config includes something like this: > > - servicegroup definition: > define servicegroup{ > servicegroup_name filesystems > alias filesystems > members host1,filesystems > } > > - service template which includes also the above servicegroup > name define service{ > use generic-service > > name check_filesystems > service_description filesystems > normal_check_interval 15 > max_check_attempts 3 > servicegroups filesystems > register 0 > } > > - and for nearly every host something like this > define service{ > use check_filesystems > host_name hostxx > check_command check_nrpe!check_filesystems > normal_check_interval 15 > contact_groups GROUPX > } > > This means that the servicegroup includes nearly 4k services. > After doubling MAX_XODTEMPLATE_INPUT_BUFFER in > xdata/xodtemplate.h from 65535 to 131070 the webinterface works again. > > Maybe the size of this variable should be adjusted to > something higher. > > Regards > Marcus Hildenbrand > > > > Hi, > > > > in a test environment I try to monitor nearly 4.000 hosts. > Nagios core > > seems to run (checks and notifications are beeing executed) but the > > webinterface always says: > > > > Whoops! > > > > Error: Could not read host and service status information! .... > > .... > > > > The webinterface seems to think Nagios is not running. > > > > After reducing the number of hosts to 3925 the webinterface works > > again. > > So there seems to be a limitation somewhere in the cgi code. > > > > Any idea how to fix this? > > > > Thanks and Best Regards > > Marcus Hildenbrand > > > > > > ------------------------------------------------------- > > SF.Net email is sponsored by: Discover Easy Linux Migration > Strategies > > from IBM. Find simple to follow Roadmaps, straightforward articles, > > informative Webcasts and more! Get everything you need to get up to > > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > > _______________________________________________ > > Nagios-devel mailing list > > Nagios-devel at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-devel > > > ------------------------------------------------------- > This SF.Net email is sponsored by the 'Do More With Dual!' > webinar happening July 14 at 8am PDT/11am EDT. We invite you > to explore the latest in dual core and dual graphics > technology at this free one hour event hosted by HP, > AMD, and NVIDIA. To register visit > http://www.hp.com/go/dualwebinar > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- Ce message et ses pi?ces jointes (le "message") est destin? ? l'usage exclusif de son destinataire. Si vous recevez ce message par erreur, merci d'en aviser imm?diatement l'exp?diteur et de le d?truire ensuite. Le pr?sent message pouvant ?tre alt?r? ? notre insu, CALYON Corporate and Investment Bank ne peut pas ?tre engag? par son contenu. Tous droits r?serv?s. This message and/or any attachments (the "message") is intended for the sole use of its addressee. If you are not the addressee, please immediately notify the sender and then destroy the message. As this message and/or any attachments may have been altered without our knowledge, its content is not legally binding on CALYON Corporate and Investment Bank. All rights reserved. From Joseph.Petrucci at ddiworld.com Fri Jul 15 13:09:59 2005 From: Joseph.Petrucci at ddiworld.com (Petrucci, Joseph) Date: Fri, 15 Jul 2005 07:09:59 -0400 Subject: check_oracle plugin and $ORACLE_HOME Message-ID: First What version of Oracle are you runnning? I wrote my own plugins since I really could not find any I liked. I use a few methods to check if Oracle is up. First I have a plugin that uses ssh to logon (RSA no password) and simply look for the pmon process is running. Then I have one that logs onto the Oracle instance and does a select from the v$instance view to read the name of the instance to make sure it matches. I also use check_http and have a page on my web-server that connects to the instance and pulls the instance name from it. There are many other things you can do such as listener status, and pulling performance information. They are not ready to be published but I can send you the plugins I have, maybe between the two of us we can get them up to speed and publish them. >-----Original Message----- >From: nagios-users-admin at lists.sourceforge.net >[mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Cam >Sent: Thursday, July 14, 2005 4:10 PM >To: nagios-users at lists.sourceforge.net >Subject: [Nagios-users] check_oracle plugin and $ORACLE_HOME > > >Hi, > >I'm using nagios to monitor some of my systems. It seems like a >pretty slick system. Anyway, i'm trying to check if the oracle >database is up on one of my boxes, but i really know nothing about >oracle at all (i'm just monitoring the box, i have nothing to do w/ >anything other than that). Anyway, i was happy to see the >check_oracle plugin, but i'm having a little bit of difficulty. The >error i get when i try './check_oracle --tns aspdb' i get the error: > >Cannot determine ORACLE_HOME for sid aspapp2 > >i did a search on the mailing list archives, but the only thing i >could come up w/ some problems that people had w/ the plugin and nrpe >(i don't want to use nrpe). I tried setting ORACLE_HOME here on my >nagios server, but that didn't do me any good. Am i doing something >wrong? Is this not the right plugin for me? I was thinking about how >i could check it other than through the plugin... maybe check if the >process is running through SNMP? Any hints would be greatly >appreciated. > >Thanks, >Cameron Matheson > > >------------------------------------------------------- >SF.Net email is sponsored by: Discover Easy Linux Migration Strategies >from IBM. Find simple to follow Roadmaps, straightforward articles, >informative Webcasts and more! Get everything you need to get up to >speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=ick >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS >when reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cameron.matheson at gmail.com Fri Jul 15 16:57:59 2005 From: cameron.matheson at gmail.com (Cam) Date: Fri, 15 Jul 2005 08:57:59 -0600 Subject: measuring bandwidth? Message-ID: <7e2f9af905071507571d03965a@mail.gmail.com> Hi, I've got some more stuff i'm trying to work out. We want to measure the bandwidth that the server is using and have nagios warn us if it get's too high or too low. Right now i'm monitoring that over SNMP w/ cacti and it's working good, but that just makes me pretty graphs, and i need warnings. anyway, i'm trying to figure out the best way to do this and i wanted to get other people's input. The problem that i'm having is that if i poll the data over SNMP that i just get a meaningless COUNTER value. So i guess what i'm wondering is does nagios have anyway to keep track of these things themselves, or do i need to write a script sort of like this (psuedo-code): #this file has the SNMP data polled last time nagios ran my script OLD = read $foor NEW = snmpget localhost ifinOctets.bar #something like that echo $NEW > $foo | awk $4 -print x = $(($NEW - $OLD)) if [ $x -lt $SOME_VALUE ]; then print_warning_message elif [ $x -gt $OTHER_VALUE ]; then print_another_warning_message else print_ok_message fi is there any problems w/ this approach? is there a cleaner way to do it? what exactly are the rules for plugin output (it seems like it's just 'FOO [OK|WARNING|FAIL]: comments'--is that right? Thanks! Cameron Matheson ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 15 17:01:31 2005 From: marc at ena.com (Marc Powell) Date: Fri, 15 Jul 2005 10:01:31 -0500 Subject: check_disk no output Message-ID: Please reply on-list always. In the future, please try to avoid top-posting as it makes replying in context difficult. The below appears to have been run as the root user on the local AIX box and not using the same command arguments as specified in the service check_command. This is specifically _not_ how nagios is executing the check. You've completely ignored everything I suggested doing. -- Marc > -----Original Message----- > From: Ant?nio Coelho [mailto:coelhoapm at gmail.com] > Sent: Friday, July 15, 2005 2:16 AM > To: Marc Powell > Subject: Re: [Nagios-users] check_disk no output > > Hello, > > As far as i can see the output is correct > > [root at zugtwz2]/softs/apps/nagios/plugins# ./check_disk -w 10 -c 5 > > DISK OK [224764 kB (85%) free on /dev/hd4] [475464 kB (30%) free on > /dev/hd2] [242024 kB (92%) free on /dev/hd9var] [149972 kB (57%) free > on /dev/hd3] [253740 kB (96%) free on /dev/hd1] [245136 kB (93%) free > on /dev/hd10opt] [342788 kB (21%) free on /dev/ibmlv] [58716 kB (0%) > free on /dev/oraclelv] [747148 kB (71%) free on /dev/ora_admin] > [1415888 kB (27%) free on /dev/ora_product] [584416 kB (11%) free on > /dev/ora_oradata] [30756660 kB (86%) free on /dev/ora_backup] [3584 kB > (0%) free on /dev/BD_temp] [26304 kB (0%) free on /dev/BD_rollback] > [578328 kB (18%) free on /dev/BD_movmts] [154564 kB (0%) free on > /dev/BD_ctlbck] [21764 kB (0%) free on /dev/ora_oradvlp] > > > On 7/14/05, Marc Powell wrote: > > > > > > > -----Original Message----- > > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > > admin at lists.sourceforge.net] On Behalf Of Ant?nio Coelho > > > Sent: Thursday, July 14, 2005 9:24 AM > > > To: nagios-users at lists.sourceforge.net > > > Subject: [Nagios-users] check_disk no output > > > > > > Hello all, > > > > > > My Nagios is monitoring several services and machines on the > network. > > > One of the services is check_remote_disk for a AIX machine, with the > > > line > > > > > > check_remote_disk!10%!5%!"/ /var /home /oracle /oracle/backup" > > > > > > The problem is, if I run the plugin directly on the AIX-server (via > > > command shell) it returns a valid output, but in nagios web interface > > > it shows like NO OUTPUT! > > > > > > zugtwz2 Disk OK 07-13-2005 15:52:32 1d 23h 40m 15s 1/3 (No > > > output!) > > > > > > Can anyone help me on this? > > > > > > Run the command as the nagios user exactly as it's defined in your > commands.cfg file from your nagios machine. Chances are high that it's > spitting out something that you're not seeing. ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From coelhoapm at gmail.com Fri Jul 15 17:21:29 2005 From: coelhoapm at gmail.com (=?ISO-8859-1?Q?Ant=F3nio_Coelho?=) Date: Fri, 15 Jul 2005 16:21:29 +0100 Subject: check_disk no output In-Reply-To: References: Message-ID: Sorry for my previous mistake! The output I get from nagios machine for the command is: [admin at sumonitor admin]$ /servers/nagios/libexec/check_remote_disk_fra.pl sugtwn2 10% 5% "/var /home /oracle /oracle/backup" admin at sugtwn2's password: sh: -c: line 1: syntax error near unexpected token `(9' sh: -c: line 1: `echo DISK CRITICAL [242016 kB (92%) free on /var] [253740 kB (96%) free on /home] [58716 kB (0%) free on /oracle] [30756660 kB (86%) free on /oracle/backup]' DISK CRITICAL [242016 kB (92%) free on /var] [253740 kB (96%) free on /home] [58716 kB (0%) free on /oracle] [30756660 kB (86%) free on /oracle/backup] Any help? On 7/14/05, Marc Powell wrote: > > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of Ant?nio Coelho > > Sent: Thursday, July 14, 2005 9:24 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] check_disk no output > > > > Hello all, > > > > My Nagios is monitoring several services and machines on the network. > > One of the services is check_remote_disk for a AIX machine, with the > > line > > > > check_remote_disk!10%!5%!"/ /var /home /oracle /oracle/backup" > > > > The problem is, if I run the plugin directly on the AIX-server (via > > command shell) it returns a valid output, but in nagios web interface > > it shows like NO OUTPUT! > > > > zugtwz2 Disk OK 07-13-2005 15:52:32 1d 23h 40m 15s 1/3 (No > > output!) > > > > Can anyone help me on this? > > > Run the command as the nagios user exactly as it's defined in your commands.cfg file from your nagios machine. Chances are high that it's spitting out something that you're not seeing. > > -- > Marc > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&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 > -- Ant?nio Coelho http://www.antoniocoelho.com.pt coelhoapm at gmail.com ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 15 17:25:23 2005 From: marc at ena.com (Marc Powell) Date: Fri, 15 Jul 2005 10:25:23 -0500 Subject: measuring bandwidth? Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Cam > Sent: Friday, July 15, 2005 9:58 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] measuring bandwidth? > > Hi, > > I've got some more stuff i'm trying to work out. We want to measure > the bandwidth that the server is using and have nagios warn us if it > get's too high or too low. Right now i'm monitoring that over SNMP w/ > cacti and it's working good, but that just makes me pretty graphs, and > i need warnings. anyway, i'm trying to figure out the best way to do > this and i wanted to get other people's input. The problem that i'm > having is that if i poll the data over SNMP that i just get a > meaningless COUNTER value. So i guess what i'm wondering is does > nagios have anyway to keep track of these things themselves, or do i > need to write a script sort of like this (psuedo-code): No, it doesn't. Each plugin only looks at the current values of whatever it's checking and has no idea of historical values. > #this file has the SNMP data polled last time nagios ran my script > OLD = read $foor > NEW = snmpget localhost ifinOctets.bar #something like that > echo $NEW > $foo | awk $4 -print > > x = $(($NEW - $OLD)) > > if [ $x -lt $SOME_VALUE ]; then > print_warning_message > elif [ $x -gt $OTHER_VALUE ]; then > print_another_warning_message > else > print_ok_message > fi > > is there any problems w/ this approach? is there a cleaner way to do That's one way to do it. The other, probably better way would be to use the check_mrtgtraf plugin or check_rrd_data.pl (in the contrib dir) to read the rate data directly from the file depending on which format Cacti uses. The thread below also seems to provide another mechanism -- http://64.233.187.104/search?q=cache:EB26O7k-Ok8J:forums.cacti.net/about 624.html%26highlight%3D+check_rrd_data.pl+rrd&hl=en > it? what exactly are the rules for plugin output (it seems like it's > just 'FOO [OK|WARNING|FAIL]: comments'--is that right? No, it's not sufficient. Check out the Developer Guidelines at http://nagiosplug.sourceforge.net/. It's very simple. -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Fri Jul 15 17:38:09 2005 From: jsandoval at achs.cl (Sandoval, Julio) Date: Fri, 15 Jul 2005 11:38:09 -0400 Subject: Postgresql Message-ID: <706C33200E04994E9BB6EE3E21E4C15EE06FFC@ACHS-E2K01.achs.cl> Hello everybody, I have a question: ?Where can I find the history data in postgresql? Exp. I saw the data in the 12 tables, but I just look few rows in them (30 rows max). Somebody help me with this... Thank for your kindness "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." -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc at ena.com Fri Jul 15 17:47:01 2005 From: marc at ena.com (Marc Powell) Date: Fri, 15 Jul 2005 10:47:01 -0500 Subject: check_disk no output Message-ID: > -----Original Message----- > From: Ant?nio Coelho [mailto:coelhoapm at gmail.com] > Sent: Friday, July 15, 2005 10:21 AM > To: Marc Powell > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] check_disk no output > > Sorry for my previous mistake! > The output I get from nagios machine for the command is: > > [admin at sumonitor admin]$ > /servers/nagios/libexec/check_remote_disk_fra.pl sugtwn2 10% 5% "/var > /home /oracle /oracle/backup" > admin at sugtwn2's password: > > sh: -c: line 1: syntax error near unexpected token `(9' > sh: -c: line 1: `echo DISK CRITICAL [242016 kB (92%) free on /var] > [253740 kB (96%) free on /home] [58716 kB (0%) free on /oracle] > [30756660 kB (86%) free on /oracle/backup]' > DISK CRITICAL [242016 kB (92%) free on /var] [253740 kB (96%) free on > /home] [58716 kB (0%) free on /oracle] [30756660 kB (86%) free on > /oracle/backup] > > > Any help? Much better. So, it's seems clear that check_remote_disk_fra.pl is trying to ssh to the remote host but you haven't yet set up passwordless ssh access. That's problem number one. Use 'man sshd' and search for 'authorized_keys' and look at the file format. The quickest (but not necessarily most secure) way is -- 1 - Run 'ssh-keygen -t dsa' on the nagios host as the nagios user. Use the defaults and do not specify a password. This generates your public/private key pair. 2 - copy ~nagios/.ssh/id_dsa.pub to ~admin/.ssh/authorized_keys on sugtwn2. 3 - chmod 600 ~admin/.ssh/authorized_keys on sugtwn2 4 - as the nagios user on sumonitor - 'ssh admin at sugtwn2.rest.of.host.name' to accept the host key if you haven't already done so. You should not be prompted for a password. 5 - test the plugin again. I would suggest that you use authorized_keys to restrict the commands that can be executed in this manner. Again, the man page details how to do this. If you still see errors on sugtwn2 verify that check_disk run locally works as it does on zugtwz2. If check_disk does run correctly, we'll probably need to know exactly what check_remote_disk_fra.pl is doing. I noticed that you also switched hosts between your tests (previously zugtwz2). You'll need to perform the above steps 2-5 for every remote host you are intending to check. ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 15 17:50:13 2005 From: marc at ena.com (Marc Powell) Date: Fri, 15 Jul 2005 10:50:13 -0500 Subject: Postgresql Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Sandoval, Julio > Sent: Friday, July 15, 2005 10:38 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Postgresql > > Hello everybody, > I have a question: ?Where can I find the history data in postgresql? > Exp. I saw the data in the 12 tables, but I just look few rows in them (30 > rows max). > > Somebody help me with this... Historical data is not stored in the database. ~nagios/var/nagios.log and ~nagios/var/archives/*. -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Fri Jul 15 18:27:41 2005 From: marcus.hildenbrand at sap.com (Hildenbrand, Marcus) Date: Fri, 15 Jul 2005 18:27:41 +0200 Subject: AW: RE : Re: [Nagios-devel] webinterface don't works with large number of hosts in Nagios 2.0 current cvs version Message-ID: <2F407CA16DFF544EA7C11A40D0A0628768CC58@dewdfe14.wdf.sap.corp> Hi, I checked this with the CVS version from 13/July with the follwing header in xdata/xodtemplate.c /***************************************************************************** * * XODTEMPLATE.C - Template-based object configuration data input routines * * Copyright (c) 2001-2005 Ethan Galstad (nagios at nagios.org) * Last Modified: 06-24-2005 * Should be good enough. Regards Marcus Hildenbrand ________________________________ Von: Fran?ois Laupretre [mailto:francois.laupretre-prestataire at calyon.com] Gesendet: Freitag, 15. Juli 2005 11:48 An: Hildenbrand, Marcus; nagios-devel at lists.sourceforge.net; nagios-users at lists.sourceforge.net Betreff: RE : [Nagios-users] Re: [Nagios-devel] webinterface don't works with large number of hosts in Nagios 2.0 current cvs version The test for strlen(input)>MAX_XODTEMPLATE_INPUT_BUFFER has been removed on 05/25/2005 from xodtemplate_add_object_property() in the CVS version. Maybe you could try the current CVS. > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf > Of Marcus Hildenbrand > Sent: Wednesday, July 13, 2005 1:19 PM > To: nagios-devel at lists.sourceforge.net; > nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Re: [Nagios-devel] webinterface don't > works with large number of hosts in Nagios 2.0 current cvs version > > > Hi, > > the cause of this seems to be a too long list of services in > a servicegroup. My config includes something like this: > > - servicegroup definition: > define servicegroup{ > servicegroup_name filesystems > alias filesystems > members host1,filesystems > } > > - service template which includes also the above servicegroup > name define service{ > use generic-service > > name check_filesystems > service_description filesystems > normal_check_interval 15 > max_check_attempts 3 > servicegroups filesystems > register 0 > } > > - and for nearly every host something like this > define service{ > use check_filesystems > host_name hostxx > check_command check_nrpe!check_filesystems > normal_check_interval 15 > contact_groups GROUPX > } > > This means that the servicegroup includes nearly 4k services. > After doubling MAX_XODTEMPLATE_INPUT_BUFFER in > xdata/xodtemplate.h from 65535 to 131070 the webinterface works again. > > Maybe the size of this variable should be adjusted to > something higher. > > Regards > Marcus Hildenbrand > > > > Hi, > > > > in a test environment I try to monitor nearly 4.000 hosts. > Nagios core > > seems to run (checks and notifications are beeing executed) but the > > webinterface always says: > > > > Whoops! > > > > Error: Could not read host and service status information! .... > > .... > > > > The webinterface seems to think Nagios is not running. > > > > After reducing the number of hosts to 3925 the webinterface works > > again. > > So there seems to be a limitation somewhere in the cgi code. > > > > Any idea how to fix this? > > > > Thanks and Best Regards > > Marcus Hildenbrand > > > > > > ------------------------------------------------------- > > SF.Net email is sponsored by: Discover Easy Linux Migration > Strategies > > from IBM. Find simple to follow Roadmaps, straightforward articles, > > informative Webcasts and more! Get everything you need to get up to > > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > > _______________________________________________ > > Nagios-devel mailing list > > Nagios-devel at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-devel > > > ------------------------------------------------------- > This SF.Net email is sponsored by the 'Do More With Dual!' > webinar happening July 14 at 8am PDT/11am EDT. We invite you > to explore the latest in dual core and dual graphics > technology at this free one hour event hosted by HP, > AMD, and NVIDIA. To register visit > http://www.hp.com/go/dualwebinar > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 dkamper at mxlogic.com Fri Jul 15 18:57:49 2005 From: dkamper at mxlogic.com (Dustin Kamper) Date: Fri, 15 Jul 2005 10:57:49 -0600 Subject: Distributed Nagios and scheduling service check from the central server Message-ID: <0B34A6972BF39E4CB465A64DBBAD2BB9437BDF@mxlhq-exch01.corp.mxlogic.com> > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Marc Powell > Sent: Thursday, July 14, 2005 4:14 PM > To: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Distributed Nagios and scheduling service > check from the central server Right.... ;) > Please try to avoid top-posting. > > sucks. > posting > top > why > is > This > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of Dustin Kamper > > Sent: Thursday, July 14, 2005 3:40 PM > > To: nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] Distributed Nagios and scheduling service > > check from the central server > > > > > All of the checks on the distributed servers can be executed by the > > central server with no issues. So I just used a 'concatonated' > version > > > From what I can figure out, freshness checks base the 'freshness' of > the > > the results on the normal_check_interval setting. Since > > normal_check_interval controls the timming of the active checks, you > > must turn active checks off so you don't have the central server > > checking what the distributed servers are already checking. When > active > > service checks are turned off, the 'Re-schedule the next check of this > > service' link is not available from the web page. > > The documentation is unambiguous, no need to figure anything out -- > > http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#service > > freshness_threshold: This directive is used to specify the freshness > threshold (in seconds) for this service. If you set this directive to a > value of 0, Nagios will determine a freshness threshold to use > automatically. > > And > > http://nagios.sourceforge.net/docs/1_0/freshness.html > > "Assuming you're using the template-based object configuration file(s), > you need to configure service definitions as follows. > > * The check_freshness option in the service definition should be set > to 1. This enables "freshness" checking for the service. > * The freshness_threshold option in the service definition should be > set to a value (in seconds) which reflects how "fresh" the results for > the service should be. > * The check_command option in the service definition should reflect > valid command that should be used to actively check the service when it > is detected as being "stale". > > How The Freshness Threshold Works > > Nagios periodically checks the "freshness" of the results for all > services that have freshness checking enabled. The freshness_threshold > option in each service definition is used to determine how "fresh" the > results for each service should be. For example, if you set the > freshness_threshold option to 60 for one of your services, Nagios will > consider that service to be "stale" if its results are older than 60 > seconds (1 minute). If you do not specify a value for the > freshness_threshold option (or you set it to zero), Nagios will > automatically calculate a "freshness" threshold to use by looking at > either the normal_check_interval or retry_check_interval options > (depending on what type of state the service is currently in)." > > > > > > I would like 1 source of Nagios for monitoring all of my servers but > > would like to spread the load of all the service checks to many > > distributed servers. It would be a pain to have to go to one of the > > distributed servers just to run one re-scheduled service check on > > demand. > > > > Now I'm not sure that a distributed solution is going to work for my > > monitoring needs. Any pointers would be appreciated. > > Active_checks_enabled 1 > Passive_checks_enabled 1 > check_period none > check_freshness 1 > freshness_threshold 300 ; bad if 5 minutes old > check_command some_valid_check_command Ok, I tested this and found that the check_period effects the freshness checking. If I set it to none (which is defined) then freshness is never checked. If set to 24x7 then it is always checked. I verified that active checks where not being performed by setting active_checks_enabled to 0 for each check_period test (4 test in all). I wish there was a freshness_check_period setting. Oh...BTW, I am using Nagios 2.0b3. I am assuming that there is not much difference in the logic of this since 1.0. I guess I should test it tho. Any other pointers? > Since you can execute all of your checks from the central server with no > problems, this should be a workable solution for you (it's been for us > for 4 years with 4 collectors and 2900+ passive service checks but to > each his own). If you _really, really_ wanted to execute the checks from > the remote host, write a script to ssh to the appropriate nagios machine > and drop a SCHEDULE_SVC_CHECK external command into the pipe. > check_by_ssh might be a good wrapper/start. Make that script the > check_command for the services on your central machine. That way, > freshness checks will be executed from the remote machine as well as > forced checks. > > -- > Marc > > > -Dustin ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From eford at nexusenergy.com Fri Jul 15 19:02:31 2005 From: eford at nexusenergy.com (Edward Ford) Date: Fri, 15 Jul 2005 13:02:31 -0400 Subject: How do I get to the contrib dir that I keep hearing about Message-ID: I keep hearing about new plugins at the contrib dir. How do I get to it? Thanks; Eddie -------------- next part -------------- An HTML attachment was scrubbed... URL: From James.P.Fuentes at boeing.com Fri Jul 15 19:08:57 2005 From: James.P.Fuentes at boeing.com (EXT-Fuentes, James P) Date: Fri, 15 Jul 2005 10:08:57 -0700 Subject: How do I get to the contrib dir that I keep hearing about Message-ID: <626FC7C6A97381468FB872072AB5DDC801FEA7@XCH-SW-42.sw.nos.boeing.com> It's not in all available versions. I run 2.0b3 but had to download 1.4 to get the contrib contents. -Jim ________________________________ From: Edward Ford [mailto:eford at nexusenergy.com] Sent: Fri 7/15/2005 10:02 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] How do I get to the contrib dir that I keep hearing about I keep hearing about new plugins at the contrib dir. How do I get to it? Thanks; Eddie ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From adamengel at loanprotector.com Fri Jul 15 19:17:55 2005 From: adamengel at loanprotector.com (Adam Engel) Date: Fri, 15 Jul 2005 13:17:55 -0400 Subject: Alternate methods to notify Nagios Message-ID: <42D7EFC3.7020600@loanprotector.com> Hey guys! I have been using Nagios for over 2 years now and really enjoy it. I have a question regarding ways to inform Nagios of problems. Does anyone know of a plugin that will allow Nagios to accept email from a peice of software informing it that a problem is going on. This would be nice so that the software we have written can send an email to nagios stating there is a problem and then nagios sends out its normal notifications. I have already told the developers of NSCA, but they would like if there was a way Nagios could be informed via email because they wouldn't have to write anything. Thanks, Adam ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 15 20:09:09 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Fri, 15 Jul 2005 14:09:09 -0400 (EDT) Subject: Alternate methods to notify Nagios In-Reply-To: <42D7EFC3.7020600@loanprotector.com> References: <42D7EFC3.7020600@loanprotector.com> Message-ID: On Fri, 15 Jul 2005, Adam Engel wrote: > Hey guys! > > I have been using Nagios for over 2 years now and really enjoy it. I have a > question regarding ways to inform Nagios of problems. Does anyone know of a > plugin that will allow Nagios to accept email from a peice of software > informing it that a problem is going on. This would be nice so that the > software we have written can send an email to nagios stating there is a > problem and then nagios sends out its normal notifications. I have already > told the developers of NSCA, but they would like if there was a way Nagios > could be informed via email because they wouldn't have to write anything. > > Thanks, > > Adam > Have the mail hit a procmail filter that generates a NSCA event. -- -sg ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From teng at dataway.com Fri Jul 15 20:37:16 2005 From: teng at dataway.com (Tedman Eng) Date: Fri, 15 Jul 2005 11:37:16 -0700 Subject: Alternate methods to notify Nagios Message-ID: <37ED92F9890FAF4BB947613C66FF8B1AFC757F@dw-mail.dataway.com> I have not used this myself, but may fit the bill for you: http://naplax.sourceforge.net/REL.html Nagios REL addon provides an alternative way to send service check results from remote hosts back to nagios...Currently, REL uses SMTP to send the service check results to the Nagios server > -----Original Message----- > From: Adam Engel [mailto:adamengel at loanprotector.com] > Sent: Friday, July 15, 2005 10:18 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Alternate methods to notify Nagios > > > Hey guys! > > I have been using Nagios for over 2 years now and really enjoy it. I > have a question regarding ways to inform Nagios of problems. Does > anyone know of a plugin that will allow Nagios to accept email from a > peice of software informing it that a problem is going on. > This would > be nice so that the software we have written can send an > email to nagios > stating there is a problem and then nagios sends out its normal > notifications. I have already told the developers of NSCA, but they > would like if there was a way Nagios could be informed via > email because > they wouldn't have to write anything. > > Thanks, > > Adam > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 15 21:11:01 2005 From: dmourati at cm.math.uiuc.edu (Demetri Mouratis) Date: Fri, 15 Jul 2005 14:11:01 -0500 (CDT) Subject: Alternate methods to notify Nagios In-Reply-To: <42D7EFC3.7020600@loanprotector.com> References: <42D7EFC3.7020600@loanprotector.com> Message-ID: On Fri, 15 Jul 2005, Adam Engel wrote: > Hey guys! > > I have been using Nagios for over 2 years now and really enjoy it. I have a > question regarding ways to inform Nagios of problems. Does anyone know of a > plugin that will allow Nagios to accept email from a peice of software > informing it that a problem is going on. This would be nice so that the > software we have written can send an email to nagios stating there is a > problem and then nagios sends out its normal notifications. I have already > told the developers of NSCA, but they would like if there was a way Nagios > could be informed via email because they wouldn't have to write anything. > > Thanks, > > Adam Adam, I doing exactly what you describe to connect my Nagios Distributed boxes to Nagios Central. NSCA wasn't an option in my environmnent to I needed to come up with an alternative that used a well-known port. I chose postfix as the MTA for both the sending and receiving sides and added a GPG encryption layer to encrypt the data. Then I hooked up a global_service_event_handler called submit_check_result_smtp that looks like this: time=`perl -e 'print time';` /bin/echo "[$time] PROCESS_SERVICE_CHECK_RESULT;$1;$2;$return_code;$4" | /usr/bin/gpg -ea -r nagios --batch --no-tty --always-trust | mail -s "Nagios Status Message" nagios at nagioscentral.mydomain.com On the central box, I have a small perl script that takes mail on stdin, gpg decrypts it and writes the output to the named pipe using the Mail::GnuPG, MIME::Parser, and MIME::Entity perl modules. It has been running in production for 6 months now without any major issues. Some of the other advandantes of using an MTA include the ability to retry deferred messages (a mixed bag) and extended logging functionality. Hope that helps. --------------------------------------------------------------------- Demetri Mouratis dmourati at linfactory.com ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From adamengel at loanprotector.com Fri Jul 15 21:29:21 2005 From: adamengel at loanprotector.com (Adam Engel) Date: Fri, 15 Jul 2005 15:29:21 -0400 Subject: Alternate methods to notify Nagios In-Reply-To: References: <42D7EFC3.7020600@loanprotector.com> Message-ID: <42D80E91.6070105@loanprotector.com> Demetri Mouratis wrote: > On Fri, 15 Jul 2005, Adam Engel wrote: > >> Hey guys! >> >> I have been using Nagios for over 2 years now and really enjoy it. I >> have a question regarding ways to inform Nagios of problems. Does >> anyone know of a plugin that will allow Nagios to accept email from a >> peice of software informing it that a problem is going on. This >> would be nice so that the software we have written can send an email >> to nagios stating there is a problem and then nagios sends out its >> normal notifications. I have already told the developers of NSCA, >> but they would like if there was a way Nagios could be informed via >> email because they wouldn't have to write anything. >> >> Thanks, >> >> Adam > > > Adam, > > I doing exactly what you describe to connect my Nagios Distributed > boxes to Nagios Central. NSCA wasn't an option in my environmnent to > I needed to come up with an alternative that used a well-known port. > I chose postfix as the MTA for both the sending and receiving sides > and added a GPG encryption layer to encrypt the data. Then I hooked > up a global_service_event_handler called submit_check_result_smtp that > looks like this: > > time=`perl -e 'print time';` > > /bin/echo "[$time] PROCESS_SERVICE_CHECK_RESULT;$1;$2;$return_code;$4" > | /usr/bin/gpg -ea -r nagios --batch --no-tty --always-trust | mail -s > "Nagios Status Message" nagios at nagioscentral.mydomain.com > > On the central box, I have a small perl script that takes mail on > stdin, gpg decrypts it and writes the output to the named pipe using > the Mail::GnuPG, MIME::Parser, and MIME::Entity perl modules. > > It has been running in production for 6 months now without any major > issues. > > Some of the other advandantes of using an MTA include the ability to > retry deferred messages (a mixed bag) and extended logging functionality. > > Hope that helps. > --------------------------------------------------------------------- > Demetri Mouratis > dmourati at linfactory.com > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk > being sent to /dev/null Yes it does. I have been informed of more, they want these to be sent from Java. We have Java jobs that run all day doing various tasks, and if a job detects that it is about to die or something bad is happening then it will email to Nagios. And then nagios will catch the message and process it. Adam ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 15 21:37:22 2005 From: marc at ena.com (Marc Powell) Date: Fri, 15 Jul 2005 14:37:22 -0500 Subject: How do I get to the contrib dir that I keep hearing about Message-ID: The nagios version (2.0b3) has nothing to do with the plugins version. They are created and distributed separately and are independent. You can use any version of the plugins with any version of netsaint/nagios but newer is better of course ;). There has been a contrib dir in every release of the plugins that I've used in the last 4 years or so as far as I can remember. If you download the plugins from http://nagiosplug.sf.net and untar the archive you'll find a directory named 'contrib' with user-contributed plugins. They don't undergo the same kind of coding and testing as the standard plugins but they generally work quite well. If you've installed the plugins using a package manager you may need to hunt around to find them if they're installed as part of the plugins package or they could be a separate package entirely. It all depends on the maintainer of the package. -- Marc > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of EXT-Fuentes, James P > Sent: Friday, July 15, 2005 12:09 PM > To: Edward Ford; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] How do I get to the contrib dir that I keep > hearing about > > It's not in all available versions. I run 2.0b3 but had to download 1.4 to > get the contrib contents. > -Jim > > ________________________________ > > From: Edward Ford [mailto:eford at nexusenergy.com] > Sent: Fri 7/15/2005 10:02 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] How do I get to the contrib dir that I keep > hearing about > > > I keep hearing about new plugins at the contrib dir. How do I get to it? ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From demian.m.ginther at boeing.com Fri Jul 15 22:22:55 2005 From: demian.m.ginther at boeing.com (Ginther, Demian M) Date: Fri, 15 Jul 2005 13:22:55 -0700 Subject: Downtime for ALL hosts and services on system? Message-ID: <96E0D04F2015B2428CE23EE68D608CEB100EB2@XCH-SW-2V2.sw.nos.boeing.com> We sometimes do a weekend maintenance of all systems being monitored. Instead of having to add a downtime for each and every host and service, does anyone know of a good way or has written a good plugin to schedule downtime for all hosts and services? Maybe a list of all hosts and services with checkboxes and a time input widget? I may try to write something to do this, but I don't want to duplicate effort. Thanks Demian -------------- next part -------------- An HTML attachment was scrubbed... URL: From ae at op5.se Fri Jul 15 22:29:52 2005 From: ae at op5.se (Andreas Ericsson) Date: Fri, 15 Jul 2005 22:29:52 +0200 Subject: Downtime for ALL hosts and services on system? In-Reply-To: <96E0D04F2015B2428CE23EE68D608CEB100EB2@XCH-SW-2V2.sw.nos.boeing.com> References: <96E0D04F2015B2428CE23EE68D608CEB100EB2@XCH-SW-2V2.sw.nos.boeing.com> Message-ID: <42D81CC0.1020808@op5.se> Ginther, Demian M wrote: > We sometimes do a weekend maintenance of all systems being monitored. > Instead of having to add a downtime for each and every host and service, > does anyone know of a good way or has written a good plugin to schedule > downtime for all hosts and services? > > > > Maybe a list of all hosts and services with checkboxes and a time input > widget? > You can schedule downtime for an entire hostgroup if you like. Put everything you have in a hostgroup that's just for scheduling downtime and you'll be all set. > > > I may try to write something to do this, but I don't want to duplicate > effort. > > > > Thanks > > > > Demian > > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From agrajag at dragaera.net Fri Jul 15 22:30:47 2005 From: agrajag at dragaera.net (Sean Dilda) Date: Fri, 15 Jul 2005 16:30:47 -0400 Subject: Downtime for ALL hosts and services on system? In-Reply-To: <96E0D04F2015B2428CE23EE68D608CEB100EB2@XCH-SW-2V2.sw.nos.boeing.com> References: <96E0D04F2015B2428CE23EE68D608CEB100EB2@XCH-SW-2V2.sw.nos.boeing.com> Message-ID: <42D81CF7.1040709@dragaera.net> Ginther, Demian M wrote: > We sometimes do a weekend maintenance of all systems being monitored. > Instead of having to add a downtime for each and every host and service, > does anyone know of a good way or has written a good plugin to schedule > downtime for all hosts and services? > > > > Maybe a list of all hosts and services with checkboxes and a time input > widget? On my RHEL3 box running nagios, I just do: /sbin/service nagios stop ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ben.polson at ehealth.com Fri Jul 15 22:36:08 2005 From: ben.polson at ehealth.com (Ben Polson) Date: Fri, 15 Jul 2005 13:36:08 -0700 Subject: Downtime for ALL hosts and services on system? In-Reply-To: <96E0D04F2015B2428CE23EE68D608CEB100EB2@XCH-SW-2V2.sw.nos.boeing.com> References: <96E0D04F2015B2428CE23EE68D608CEB100EB2@XCH-SW-2V2.sw.nos.boeing.com> Message-ID: Why not just stop nagios if you want to stop monitoring/alerting everything during the window? -Ben. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Ginther, Demian M Sent: Friday, July 15, 2005 1:23 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Downtime for ALL hosts and services on system? We sometimes do a weekend maintenance of all systems being monitored. Instead of having to add a downtime for each and every host and service, does anyone know of a good way or has written a good plugin to schedule downtime for all hosts and services? Maybe a list of all hosts and services with checkboxes and a time input widget? I may try to write something to do this, but I don't want to duplicate effort. Thanks Demian -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmourati at cm.math.uiuc.edu Fri Jul 15 22:40:13 2005 From: dmourati at cm.math.uiuc.edu (Demetri Mouratis) Date: Fri, 15 Jul 2005 15:40:13 -0500 (CDT) Subject: Alternate methods to notify Nagios In-Reply-To: <42D80E91.6070105@loanprotector.com> References: <42D7EFC3.7020600@loanprotector.com> <42D80E91.6070105@loanprotector.com> Message-ID: On Fri, 15 Jul 2005, Adam Engel wrote: > > > Demetri Mouratis wrote: > >> On Fri, 15 Jul 2005, Adam Engel wrote: >> >>> Hey guys! >>> >>> I have been using Nagios for over 2 years now and really enjoy it. I have >>> a question regarding ways to inform Nagios of problems. Does anyone know >>> of a plugin that will allow Nagios to accept email from a peice of >>> software informing it that a problem is going on. This would be nice so >>> that the software we have written can send an email to nagios stating >>> there is a problem and then nagios sends out its normal notifications. I >>> have already told the developers of NSCA, but they would like if there was >>> a way Nagios could be informed via email because they wouldn't have to >>> write anything. >>> >>> Thanks, >>> >>> Adam >> >> >> Adam, >> >> I doing exactly what you describe to connect my Nagios Distributed boxes to >> Nagios Central. NSCA wasn't an option in my environmnent to I needed to >> come up with an alternative that used a well-known port. I chose postfix >> as the MTA for both the sending and receiving sides and added a GPG >> encryption layer to encrypt the data. Then I hooked up a >> global_service_event_handler called submit_check_result_smtp that looks >> like this: >> >> time=`perl -e 'print time';` >> >> /bin/echo "[$time] PROCESS_SERVICE_CHECK_RESULT;$1;$2;$return_code;$4" | >> /usr/bin/gpg -ea -r nagios --batch --no-tty --always-trust | mail -s >> "Nagios Status Message" nagios at nagioscentral.mydomain.com >> >> On the central box, I have a small perl script that takes mail on stdin, >> gpg decrypts it and writes the output to the named pipe using the >> Mail::GnuPG, MIME::Parser, and MIME::Entity perl modules. >> >> It has been running in production for 6 months now without any major >> issues. >> >> Some of the other advandantes of using an MTA include the ability to retry >> deferred messages (a mixed bag) and extended logging functionality. >> >> Hope that helps. > > Yes it does. I have been informed of more, they want these to be sent from > Java. We have Java jobs that run all day doing various tasks, and if a job > detects that it is about to die or something bad is happening then it will > email to Nagios. And then nagios will catch the message and process it. What you describe is very similar to how our Nagios infrastructure was configured when I arrived. All I can say is be very careful letting the developers drive too much. For example, they may send a CRITICAL state when java throws an exception but who is responsible for sending the OK state after the problem has abated? Also of concern is the exact name of the service check. You'll have to know the service names so that you can configure services.cfg. If the developer uses a different service name you'll end up with a mismatch. This can quickly get maddening. The alternate we settled on here was for the java developers to expose a call that would be responsible for maintaining the state of the various java components running our our application. Nagios in turn ssh's into the machine and invokes a plugin that can get the current state of the java components. This is a pull where the method you described above is a push. In my experience, managing the pull configuration is much easier. --------------------------------------------------------------------- Demetri Mouratis dmourati at linfactory.com ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From AHKAPLAN at PARTNERS.ORG Fri Jul 15 22:50:03 2005 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Fri, 15 Jul 2005 16:50:03 -0400 Subject: Plugin for System Uptime Message-ID: <9C63A4713C4E3342B90428CE44806A73EC36F2@PHSXMB5.partners.org> What plugin would be the one to use to monitor the uptime of several remote hosts? The hosts in question are Linux and HP-UX. ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ben.polson at ehealth.com Fri Jul 15 22:52:38 2005 From: ben.polson at ehealth.com (Ben Polson) Date: Fri, 15 Jul 2005 13:52:38 -0700 Subject: Downtime for ALL hosts and services on system? In-Reply-To: <59B15593F41BD24591D59436E7226EAD022C075A@Khiphx2.khimetrics.com> References: <59B15593F41BD24591D59436E7226EAD022C075A@Khiphx2.khimetrics.com> Message-ID: Excellent points. I generally don't do maintenance on every single monitored server so I've set up simple group disabling scripts for blocks of servers based on our various environments. You mentioned your nfs mount scripts and I am wondering what kind of tests you run to verify these mounts. I'm in the process of writing my own nfs mount check currently, but would prefer to not have to go through this if there's already one available out there. Did you write this yourself, or have I missed something in my Googleing? Thanks! -Ben. -----Original Message----- From: Nathan Oyler [mailto:noyler at khimetrics.com] Sent: Friday, July 15, 2005 1:46 PM To: Ben Polson; Ginther, Demian M; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Downtime for ALL hosts and services on system? Because it's sloppy, and if you schedule downtime you can actually watch what's happening through nagios as things go up and down, and verify everything is up during the window. I have nfs mount scripts that it's always nice to verify are actually up before having messages start flying off again. Especially when people outside of IT get messages. I wrote a perl script to schedule downtime. I used a bash script on nagiosexchange.org to base the idea on, and it's been extremely helpful for every downtime since. ---------------------------------------------------------------------------- -- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Ben Polson Sent: Friday, July 15, 2005 1:36 PM To: Ginther, Demian M; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Downtime for ALL hosts and services on system? Why not just stop nagios if you want to stop monitoring/alerting everything during the window? -Ben. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Ginther, Demian M Sent: Friday, July 15, 2005 1:23 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Downtime for ALL hosts and services on system? We sometimes do a weekend maintenance of all systems being monitored. Instead of having to add a downtime for each and every host and service, does anyone know of a good way or has written a good plugin to schedule downtime for all hosts and services? Maybe a list of all hosts and services with checkboxes and a time input widget? I may try to write something to do this, but I don't want to duplicate effort. Thanks Demian -------------- next part -------------- An HTML attachment was scrubbed... URL: From noyler at khimetrics.com Fri Jul 15 22:45:54 2005 From: noyler at khimetrics.com (Nathan Oyler) Date: Fri, 15 Jul 2005 13:45:54 -0700 Subject: Downtime for ALL hosts and services on system? Message-ID: <59B15593F41BD24591D59436E7226EAD022C075A@Khiphx2.khimetrics.com> Because it's sloppy, and if you schedule downtime you can actually watch what's happening through nagios as things go up and down, and verify everything is up during the window. I have nfs mount scripts that it's always nice to verify are actually up before having messages start flying off again. Especially when people outside of IT get messages. I wrote a perl script to schedule downtime. I used a bash script on nagiosexchange.org to base the idea on, and it's been extremely helpful for every downtime since. ________________________________ From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Ben Polson Sent: Friday, July 15, 2005 1:36 PM To: Ginther, Demian M; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Downtime for ALL hosts and services on system? Why not just stop nagios if you want to stop monitoring/alerting everything during the window? -Ben. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Ginther, Demian M Sent: Friday, July 15, 2005 1:23 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Downtime for ALL hosts and services on system? We sometimes do a weekend maintenance of all systems being monitored. Instead of having to add a downtime for each and every host and service, does anyone know of a good way or has written a good plugin to schedule downtime for all hosts and services? Maybe a list of all hosts and services with checkboxes and a time input widget? I may try to write something to do this, but I don't want to duplicate effort. Thanks Demian -------------- next part -------------- An HTML attachment was scrubbed... URL: From noyler at khimetrics.com Fri Jul 15 23:09:09 2005 From: noyler at khimetrics.com (Nathan Oyler) Date: Fri, 15 Jul 2005 14:09:09 -0700 Subject: Downtime for ALL hosts and services on system? Message-ID: <59B15593F41BD24591D59436E7226EAD022C0783@Khiphx2.khimetrics.com> I wrote this myself, and considering I've been learning perl over the last few months writing scripts to make nagios a much easier tool to use, I feel a little worried about submitting anything considering how new I am at it. :-) I have written scripts to add hosts, remove hosts, schedule downtime, a few plugins, a script to turn off blocks of checks quickly, make new services that I commonly add quickly. The nfs mounts script, I ended up using check_by_ssh to call it, I wanted to verify that all nfs mounts in fstab were mounted, considering if I put something in fstab, I want it to be up at all times. That's how I determine if something is important enough to check. So it checks for what's an nfs mount in fstab, then verify's that there is at least 1 file inside of the mount. I did this because I wanted to pick up stale instances, and other messages easily. I had tried a few other methods, but they didn't end up giving me what I wanted. I'll attach the script, but this was the first perl script I wrote, and I haven't updated it since then with anything additionally I may know. It's always worked for me, but if anyone has any suggestions or pointers, please send them my way. ________________________________ From: Ben Polson [mailto:ben.polson at ehealth.com] Sent: Friday, July 15, 2005 1:53 PM To: Nathan Oyler; Ginther, Demian M; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Downtime for ALL hosts and services on system? Excellent points. I generally don't do maintenance on every single monitored server so I've set up simple group disabling scripts for blocks of servers based on our various environments. You mentioned your nfs mount scripts and I am wondering what kind of tests you run to verify these mounts. I'm in the process of writing my own nfs mount check currently, but would prefer to not have to go through this if there's already one available out there. Did you write this yourself, or have I missed something in my Googleing? Thanks! -Ben. -----Original Message----- From: Nathan Oyler [mailto:noyler at khimetrics.com] Sent: Friday, July 15, 2005 1:46 PM To: Ben Polson; Ginther, Demian M; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Downtime for ALL hosts and services on system? Because it's sloppy, and if you schedule downtime you can actually watch what's happening through nagios as things go up and down, and verify everything is up during the window. I have nfs mount scripts that it's always nice to verify are actually up before having messages start flying off again. Especially when people outside of IT get messages. I wrote a perl script to schedule downtime. I used a bash script on nagiosexchange.org to base the idea on, and it's been extremely helpful for every downtime since. ________________________________ From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Ben Polson Sent: Friday, July 15, 2005 1:36 PM To: Ginther, Demian M; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Downtime for ALL hosts and services on system? Why not just stop nagios if you want to stop monitoring/alerting everything during the window? -Ben. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Ginther, Demian M Sent: Friday, July 15, 2005 1:23 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Downtime for ALL hosts and services on system? We sometimes do a weekend maintenance of all systems being monitored. Instead of having to add a downtime for each and every host and service, does anyone know of a good way or has written a good plugin to schedule downtime for all hosts and services? Maybe a list of all hosts and services with checkboxes and a time input widget? I may try to write something to do this, but I don't want to duplicate effort. Thanks Demian -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: check_mount Type: application/octet-stream Size: 2367 bytes Desc: check_mount URL: From James.P.Fuentes at boeing.com Sat Jul 16 00:19:29 2005 From: James.P.Fuentes at boeing.com (EXT-Fuentes, James P) Date: Fri, 15 Jul 2005 15:19:29 -0700 Subject: Plugin for System Uptime Message-ID: <626FC7C6A97381468FB872072AB5DDC801FEA8@XCH-SW-42.sw.nos.boeing.com> check_snmp with an OID of say, 1.3.6.1.4.1.11.2.3.1.1.1.0 for HP-UX as an example. -Jim ________________________________ From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] Sent: Fri 7/15/2005 1:50 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Plugin for System Uptime What plugin would be the one to use to monitor the uptime of several remote hosts? The hosts in question are Linux and HP-UX. ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=ick _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 16 01:59:48 2005 From: jhmartin at toger.us (Jason Martin) Date: Fri, 15 Jul 2005 16:59:48 -0700 Subject: Plugin for System Uptime In-Reply-To: <9C63A4713C4E3342B90428CE44806A73EC36F2@PHSXMB5.partners.org> References: <9C63A4713C4E3342B90428CE44806A73EC36F2@PHSXMB5.partners.org> Message-ID: <20050715235948.GB17537@zippy.toger.us> On Fri, Jul 15, 2005 at 04:50:03PM -0400, Kaplan, Andrew H. wrote: > What plugin would be the one to use to monitor the uptime of several remote > hosts? The hosts in question are Linux and HP-UX. What would the threshold be for such a plugin? -Jason Martin -- Life is uncertain...eat dessert first! 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 Sat Jul 16 13:38:10 2005 From: amontibello at gmail.com (Anthony Montibello) Date: Sat, 16 Jul 2005 07:38:10 -0400 Subject: NC_Net New Version Message-ID: Hi Everyone, NC_Net has a new version. v2.28 This version should help some of you who have been having issues with some performance counters, Included in this version: BUG FIX for -- intermittent event ID 16008 (only happened when output string is was too big for the socket) (Thanks to a Bug Fix Submission) Bug Fix -- Check_nt.c changed back to process_tcp_request (process_tcp_request2 was not fully compatible with the original NS_CLient). Enhancement -- Overloaded performance counters to use the ^ delimiter. now can use "^Category^Instance^Counter" for the -l "" or"^Category^Counter" This should help with some of the issues with custom performance counters. Remember check_nt uses the & as a delimiter during communications so if the counter has & in it use a passive check or a different plug in to overcome this issue. The new version is available form Nagiosexchange at: http://www.nagiosexchange.org/Windows.49.0.html?&tx_netnagext_pi1[p_view]=199 or the official web site: http://www.shatterit.com/nc_net/ Thanks Tony ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Sat Jul 16 15:51:15 2005 From: marc at ena.com (Marc Powell) Date: Sat, 16 Jul 2005 08:51:15 -0500 Subject: Plugin for System Uptime Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Kaplan, Andrew H. > Sent: Friday, July 15, 2005 3:50 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Plugin for System Uptime > > What plugin would be the one to use to monitor the uptime of several > remote > hosts? The hosts in question are Linux and HP-UX. There's a check_uptime plugin in the contrib. folder. I've never used it but it's there. -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From askarali at beaconet.net Sat Jul 16 16:07:44 2005 From: askarali at beaconet.net (Askar Ali) Date: Sat, 16 Jul 2005 19:07:44 +0500 Subject: Plugin for System Uptime In-Reply-To: References: Message-ID: <42D914B0.3000308@beaconet.net> Marc Powell wrote: > > >>-----Original Message----- >>From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- >>admin at lists.sourceforge.net] On Behalf Of Kaplan, Andrew H. >>Sent: Friday, July 15, 2005 3:50 PM >>To: nagios-users at lists.sourceforge.net >>Subject: [Nagios-users] Plugin for System Uptime >> >>What plugin would be the one to use to monitor the uptime of several >>remote >>hosts? The hosts in question are Linux and HP-UX. >> >> > >There's a check_uptime plugin in the contrib. folder. I've never used it >but it's there. > >-- >Marc > > >------------------------------------------------------- >SF.Net email is sponsored by: Discover Easy Linux Migration Strategies >from IBM. Find simple to follow Roadmaps, straightforward articles, >informative Webcasts and more! Get everything you need to get up to >speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > > > > Yep you can use check_uptime from /libexec, however on remote hosts I would suggest you to use "nrpe". That way you nagios machine sends request to nrpe daemon running on remote host which in turn call a local plugin for a specific task say check_users, check_uptime etc. For check_uptime you must read the script where the auther of the plugin explain how you could use it, check_uptime use nmap -0 which must be run as root, in my case i'm running nrpe as nobody user on remote host. So i have to put an entry in /etc/sudoers nobody =NOPASSWD:/usr/bin/nmap otherwise you will get an no uptime from host. I hope this would helps Regards Askar Ali ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From frederik.vanhee at perso.be Sun Jul 17 10:30:13 2005 From: frederik.vanhee at perso.be (Frederik Vanhee) Date: Sun, 17 Jul 2005 10:30:13 +0200 Subject: Plugin for System Uptime In-Reply-To: <20050715235948.GB17537@zippy.toger.us> References: <9C63A4713C4E3342B90428CE44806A73EC36F2@PHSXMB5.partners.org> <20050715235948.GB17537@zippy.toger.us> Message-ID: <42DA1715.5040708@perso.be> Hello, I wrote my own little plugin for uptime on HP-UX systems. It's quite simple really. I use the uptime command and then I cut and sed a little to have the days, hours and minutes and if the uptime is less than 24 hours, the plugin exits with a warning status. Frederik Jason Martin wrote: >On Fri, Jul 15, 2005 at 04:50:03PM -0400, Kaplan, Andrew H. wrote: > > >>What plugin would be the one to use to monitor the uptime of several remote >>hosts? The hosts in question are Linux and HP-UX. >> >> >What would the threshold be for such a plugin? > >-Jason Martin > > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From frederik.vanhee at perso.be Sun Jul 17 10:35:14 2005 From: frederik.vanhee at perso.be (Frederik Vanhee) Date: Sun, 17 Jul 2005 10:35:14 +0200 Subject: measuring bandwidth? In-Reply-To: References: Message-ID: <42DA1842.4080504@perso.be> Hello, I'm facing the same problem, SNMP only giving counter values and I need bandwidth. If found the check_iftraffic.pl plugin on Nagiosexchange. It keeps track of the former counter value via a file in /tmp -directory and calculates the bandwidth when the plugin is executed again. Frederik >>-----Original Message----- >>From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- >>admin at lists.sourceforge.net] On Behalf Of Cam >>Sent: Friday, July 15, 2005 9:58 AM >>To: nagios-users at lists.sourceforge.net >>Subject: [Nagios-users] measuring bandwidth? >> >>Hi, >> >>I've got some more stuff i'm trying to work out. We want to measure >>the bandwidth that the server is using and have nagios warn us if it >>get's too high or too low. Right now i'm monitoring that over SNMP w/ >>cacti and it's working good, but that just makes me pretty graphs, and >>i need warnings. anyway, i'm trying to figure out the best way to do >>this and i wanted to get other people's input. The problem that i'm >>having is that if i poll the data over SNMP that i just get a >>meaningless COUNTER value. So i guess what i'm wondering is does >>nagios have anyway to keep track of these things themselves, or do i >>need to write a script sort of like this (psuedo-code): >> >> > >No, it doesn't. Each plugin only looks at the current values of whatever >it's checking and has no idea of historical values. > > > >>#this file has the SNMP data polled last time nagios ran my script >>OLD = read $foor >>NEW = snmpget localhost ifinOctets.bar #something like that >>echo $NEW > $foo | awk $4 -print >> >>x = $(($NEW - $OLD)) >> >>if [ $x -lt $SOME_VALUE ]; then >> print_warning_message >>elif [ $x -gt $OTHER_VALUE ]; then >> print_another_warning_message >>else >> print_ok_message >>fi >> >>is there any problems w/ this approach? is there a cleaner way to do >> >> > >That's one way to do it. The other, probably better way would be to use >the check_mrtgtraf plugin or check_rrd_data.pl (in the contrib dir) to >read the rate data directly from the file depending on which format >Cacti uses. The thread below also seems to provide another mechanism -- > >http://64.233.187.104/search?q=cache:EB26O7k-Ok8J:forums.cacti.net/about >624.html%26highlight%3D+check_rrd_data.pl+rrd&hl=en > > > > >>it? what exactly are the rules for plugin output (it seems like it's >>just 'FOO [OK|WARNING|FAIL]: comments'--is that right? >> >> > >No, it's not sufficient. Check out the Developer Guidelines at >http://nagiosplug.sourceforge.net/. It's very simple. > >-- >Marc > > >------------------------------------------------------- >SF.Net email is sponsored by: Discover Easy Linux Migration Strategies >from IBM. Find simple to follow Roadmaps, straightforward articles, >informative Webcasts and more! Get everything you need to get up to >speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > > > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rafael.rios.ext at juntadeandalucia.es Sun Jul 17 18:32:38 2005 From: rafael.rios.ext at juntadeandalucia.es (Rafael Rios) Date: Sun, 17 Jul 2005 18:32:38 +0200 Subject: newbie - nrpe Message-ID: <42DA8826.3040702@juntadeandalucia.es> Hi !, I am setting up nagios, I have downloaded nagios-2.0b3.tar.gz, then compiled and all run smoothly. Now I would like to monitor some remote hosts, I have read that I need nrpe, but I can't find where is it or how do I get it running. I haven't found it on FAQs or in the Nagios's documentation. Could anybody help me?? Thanks forehand, Rafa R?os ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sun Jul 17 18:44:58 2005 From: jhmartin at toger.us (Jason Martin) Date: Sun, 17 Jul 2005 09:44:58 -0700 Subject: newbie - nrpe In-Reply-To: <42DA8826.3040702@juntadeandalucia.es> References: <42DA8826.3040702@juntadeandalucia.es> Message-ID: <20050717164458.GE17537@zippy.toger.us> On Sun, Jul 17, 2005 at 06:32:38PM +0200, Rafael Rios wrote: > Hi !, > I am setting up nagios, I have downloaded nagios-2.0b3.tar.gz, then > compiled and all run smoothly. NRPE is considered an 'addon'. Visit http://www.nagios.org and click on the addons link. -Jason Martin -- SCUD : Sure Could Use Directions 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 askarali at beaconet.net Sun Jul 17 18:59:53 2005 From: askarali at beaconet.net (Askar Ali) Date: Sun, 17 Jul 2005 21:59:53 +0500 Subject: newbie - nrpe In-Reply-To: <42DA8826.3040702@juntadeandalucia.es> References: <42DA8826.3040702@juntadeandalucia.es> Message-ID: <42DA8E89.7050501@beaconet.net> Rafael Rios wrote: > Hi !, > I am setting up nagios, I have downloaded nagios-2.0b3.tar.gz, then > compiled and all run smoothly. > Now I would like to monitor some remote hosts, I have read that I need > nrpe, but I can't find where is it or how do I get it running. > I haven't found it on FAQs or in the Nagios's documentation. > > Could anybody help me?? > > Thanks forehand, > Rafa R?os > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk > being sent to /dev/null > > I guess you can download nrpe from http://public.planetmirror.com/pub/netsaint/download/nrpe-1.2.2.tar.gz To monitor remote host services e,g check_users, check_uptime, check_cpu , check_disk etc its quite easy all you have to do install nrpe on remote host cp nrpe /usr/sbin 1) cp nrpe.cfg /etc 2) vi /etc/nrpe.cfg and uncomment check_command lines you want 3) dont' forget to copy the need plugins to remote host This is just a tips, I hope this will makes you go with nrpe. regards Askar ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rafael.rios.ext at juntadeandalucia.es Sun Jul 17 19:47:36 2005 From: rafael.rios.ext at juntadeandalucia.es (Rafael Rios) Date: Sun, 17 Jul 2005 19:47:36 +0200 Subject: newbie - nrpe In-Reply-To: <42DA8E89.7050501@beaconet.net> References: <42DA8826.3040702@juntadeandalucia.es> <42DA8E89.7050501@beaconet.net> Message-ID: <42DA99B8.70105@juntadeandalucia.es> Thanks Askar I just found it at http://prdownloads.sourceforge.net/nagios/nrpe-2.0.tar.gz . I supose this is a more recent version than the one in planetmirror. Thanks for the tips >> > I guess you can download nrpe from > http://public.planetmirror.com/pub/netsaint/download/nrpe-1.2.2.tar.gz > > To monitor remote host services e,g check_users, check_uptime, > check_cpu , check_disk etc its quite easy all you have to do install > nrpe on remote host > > cp nrpe /usr/sbin > > 1) cp nrpe.cfg /etc > 2) vi /etc/nrpe.cfg and uncomment check_command lines you want > 3) dont' forget to copy the need plugins to remote host > > This is just a tips, I hope this will makes you go with nrpe. > > > regards > > Askar > > > -- /-------------8<--------------------------------------\ | | | Rafael R?os Saavedra | | | | Servicio de Inform?tica | | Consejer?a de Innovaci?n, Ciencia y Empresa | | | | rafael.rios.ext at juntadeandalucia.es | | Tlf. (348 956) 955 048 956 | \-------------------------------------->8-------------/ ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sun Jul 17 22:43:54 2005 From: nagios-user at proy.org (Patrick Proy) Date: Sun, 17 Jul 2005 22:43:54 +0200 Subject: measuring bandwidth? In-Reply-To: <7e2f9af905071507571d03965a@mail.gmail.com> References: <7e2f9af905071507571d03965a@mail.gmail.com> Message-ID: <20050717204354.23249AB715@www.manubulon.com> Hi, The check_snmp_int.pl script does this (http://www.manubulon.com/nagios/snmp_int.html). Patrick Nagios AT proy dot org http://www.manubulon.com/nagios/ https://sourceforge.net/projects/nagios-snmp/ -----Message d'origine----- De : nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] De la part de Cam Envoy? : vendredi 15 juillet 2005 16:58 ? : nagios-users at lists.sourceforge.net Objet : [Nagios-users] measuring bandwidth? Hi, I've got some more stuff i'm trying to work out. We want to measure the bandwidth that the server is using and have nagios warn us if it get's too high or too low. Right now i'm monitoring that over SNMP w/ cacti and it's working good, but that just makes me pretty graphs, and i need warnings. anyway, i'm trying to figure out the best way to do this and i wanted to get other people's input. The problem that i'm having is that if i poll the data over SNMP that i just get a meaningless COUNTER value. So i guess what i'm wondering is does nagios have anyway to keep track of these things themselves, or do i need to write a script sort of like this (psuedo-code): #this file has the SNMP data polled last time nagios ran my script OLD = read $foor NEW = snmpget localhost ifinOctets.bar #something like that echo $NEW > $foo | awk $4 -print x = $(($NEW - $OLD)) if [ $x -lt $SOME_VALUE ]; then print_warning_message elif [ $x -gt $OTHER_VALUE ]; then print_another_warning_message else print_ok_message fi is there any problems w/ this approach? is there a cleaner way to do it? what exactly are the rules for plugin output (it seems like it's just 'FOO [OK|WARNING|FAIL]: comments'--is that right? Thanks! Cameron Matheson ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=ick _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tstocking at itgroundwork.com Mon Jul 18 05:14:49 2005 From: tstocking at itgroundwork.com (tstocking at itgroundwork.com) Date: Sun, 17 Jul 2005 20:14:49 -0700 Subject: Out of the office for a bit... Message-ID: Hello, and thanks for your email. This is an automated response, letting you know that I'll be out of the office until August 1st, 2005. If you need to get in touch with me, and you don't have my other contact information, please call 1 510 899-7700, and someone will take a message or put you in touch with me. Have a great day, Thomas Thomas Stocking CTO, GroundWork Open Source Solutions, Inc. ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From james at lovedthanlost.net Mon Jul 18 05:28:42 2005 From: james at lovedthanlost.net (James Turnbull) Date: Mon, 18 Jul 2005 13:28:42 +1000 Subject: [Nagios-users] Technical Reviewer required for Nagios book In-Reply-To: <20050714124739.xg2t3lgzk4owgg4c@webmail.lovedthanlost.net> References: <20050714124739.xg2t3lgzk4owgg4c@webmail.lovedthanlost.net> Message-ID: <42DB21EA.4020205@lovedthanlost.net> Thanks to all who responded. I have forwarded your details to my editor. Kind Regards James Turnbull ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click From Stanley.Hopcroft at IPAustralia.gov.au Mon Jul 18 06:03:13 2005 From: Stanley.Hopcroft at IPAustralia.gov.au (Stanley Hopcroft) Date: Mon, 18 Jul 2005 14:03:13 +1000 Subject: How does one notify on event handler failure ? In-Reply-To: <20050628200128.805BC33C4F@sc8-sf-spam1.sourceforge.net> References: <20050628200128.805BC33C4F@sc8-sf-spam1.sourceforge.net> Message-ID: <20050718040313.GA45829@ws11114.aipo.gov.au> Dear Folks, I don' think this an RTFM but please let me know which FM to read otherwise. I would like to have an event handler attempt a service restart __and__ then have Nagios process a restart failure by notifying the contact group and doing all the other Nag things (log, pace notifications, re-invoke event handlers ..) as long as the service fails to restart. How would I do this ? One option is to have the event handler 1 attempt a restart 2 retry the service and find that it is still unavailable 3 submit a notification event to the Nagios Command Queue. This is _not_ a very good solution because the event handler would have to hardcode the contact information since it has no access to the Nag macros. What are other people doing about this ? Yours sincerely. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: disclaimer.txt URL: From frederik.vanhee at perso.be Mon Jul 18 10:44:49 2005 From: frederik.vanhee at perso.be (Frederik Vanhee) Date: Mon, 18 Jul 2005 10:44:49 +0200 Subject: Nagios and performance data Message-ID: <42DB6C01.1080402@perso.be> Hello, I'm doing some experiments with performance data, but experience some strange behaviour I have a plugin 'check_iftraffic.pl' that returns this : Total RX Bytes : 145.74 MB, Total TX Bytes: 242,75 MB, Average Traffic: 2,89 kB/s (0,0%) in, 6,25 kB/s (0,0%) out | inUsage=0.0,85,98 outUsage=0.0,85,98 In nagios.cfg, I put 'process_performance_data=1' So I expect that Nagios splits the plugin output in two Macros : The text before the | should be the service output and the text after the | should be recognized as performance data $SERVICEOUTPUT$=Total RX Bytes : 145.74 MB, Total TX Bytes: 242,75 MB, Average Traffic: 2,89 kB/s (0,0%) in, 6,25 kB/s (0,0%) out $SERVICEPERFDATA$=inUsage=0.0,85,98 outUsage=0.0,85,98 Instead of what I expect, Nagios drops the text before the | and the text after the | is treated as the plugin output, so in my status-cgi's, I get : inUsage=0.0,85,98 outUsage=0.0,85,98 and I don't get any performance data. I thought it had something to do with an illegal character, this is what I have in nagios.cfg : illegal_macro_output_chars=`~$&|'"<> Any hints ? Apart from perfparse, what programs are you using to interpret performance data ? Thanks, Frederik ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Peter.Jevos at Oriflame-SW.Com Mon Jul 18 11:13:46 2005 From: Peter.Jevos at Oriflame-SW.Com (Jevos, Peter) Date: Mon, 18 Jul 2005 11:13:46 +0200 Subject: Error: Host Status Information Not Found! Message-ID: <6639BA20B265594590E97DD72A8EE035421A24@exosw.osw.ori.local> Hello, I've upgraded from 1.2 to 2.0b3 version and I have some problems. When I add new host or service, in the cgi's they sometimes disappear. After some refreshing pages they again appear. When I click on the host , Nagios sometimes write a message: Error: Host Status Information Not Found. As well as for service belong to this host. This behavior is tied only with new hosts and services. Does anybody know what's happening ? Thanx a lot Pet ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 18 11:18:01 2005 From: chris at aidworld.org (chris at aidworld.org) Date: Mon, 18 Jul 2005 10:18:01 +0100 (BST) Subject: Error: Host Status Information Not Found! In-Reply-To: <6639BA20B265594590E97DD72A8EE035421A24@exosw.osw.ori.local> References: <6639BA20B265594590E97DD72A8EE035421A24@exosw.osw.ori.local> Message-ID: <56728.131.111.156.217.1121678281.squirrel@131.111.156.217> Hi Peter, > I've upgraded from 1.2 to 2.0b3 version and I have some problems. > When I add new host or service, in the cgi's they sometimes disappear. > After some refreshing pages they again appear. When I click on the host > , Nagios sometimes write a message: Error: Host Status Information Not > Found. As well as for service belong to this host. This behavior is tied > only with new hosts and services. > Does anybody know what's happening ? FAQ. You have more than one Nagios process running. Kill them all and start again with a single one. Has anyone thought about modifying the initscripts to search and destroy existing nagios processes before starting a new one, or at least refusing to start a new one if there's already one running? Would save a lot of boring questions on the list. Cheers, Chris. ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 18 11:21:02 2005 From: chris at aidworld.org (chris at aidworld.org) Date: Mon, 18 Jul 2005 10:21:02 +0100 (BST) Subject: How does one notify on event handler failure ? In-Reply-To: <20050718040313.GA45829@ws11114.aipo.gov.au> References: <20050628200128.805BC33C4F@sc8-sf-spam1.sourceforge.net> <20050718040313.GA45829@ws11114.aipo.gov.au> Message-ID: <56786.131.111.156.217.1121678462.squirrel@131.111.156.217> Hi Stanley, > I would like to have an event handler attempt a service restart __and__ > then > have Nagios process a restart failure by notifying the contact group and > doing > all the other Nag things (log, pace notifications, re-invoke event > handlers ..) as > long as the service fails to restart. How about: set your max_check_attempts to 10. On the 5th soft failure, restart the service. If the service doesn't come back up properly, Nagios will check it another 5 times and then report an error in the normal way. Cheers, Chris. ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Evert.Goor at benp.nl Mon Jul 18 11:35:43 2005 From: Evert.Goor at benp.nl (Evert Goor) Date: Mon, 18 Jul 2005 11:35:43 +0200 Subject: is there a good nagios forum Message-ID: <19CCC8E70E4FA941848269F0C5D832CC898826@post.systems.nl> Hi All I'm watching for a few weeks all these threads on this mail system. I'm wondering is there also a forum about this product ? I see a lot of nice answers an tips but searching through this system is pretty difficult. Please let me know. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Peter.Jevos at Oriflame-SW.Com Mon Jul 18 11:35:57 2005 From: Peter.Jevos at Oriflame-SW.Com (Jevos, Peter) Date: Mon, 18 Jul 2005 11:35:57 +0200 Subject: Error: Host Status Information Not Found! Message-ID: <6639BA20B265594590E97DD72A8EE035421A26@exosw.osw.ori.local> Yes, I found it in FAQ. I killed them all , started new one. But when I started, Nagios created again few main processes: Here is ps fax | grep nagios: 2985 ? S 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg 2986 ? S 0:00 \_ /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg 2988 ? S 0:00 \_ /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg 2989 ? S 0:00 \_ /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg 2991 ? S 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg 2992 ? S 0:00 \_ /usr/local/nagios/libexec/check_smtp -H 10.3.100.1 -t 22 2995 ? S 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg 2996 ? S 0:00 \_ /usr/local/nagios/libexec/check_smtp -H 10.3.1.1 -t 22 Is there wrong startup script ? I used fron new distribution Thanx Pet Peter Jevos peter.jevos at oriflame-sw.com Oriflame Software , s.r.o - Oriflame IT services Na Pankraci 30, Praha 4, Czech rep. Tel. +420 225 994 456, Fax +420225994412 -----Original Message----- From: chris at aidworld.org [mailto:chris at aidworld.org] Sent: Monday, July 18, 2005 11:18 AM To: Jevos, Peter Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Error: Host Status Information Not Found! Hi Peter, > I've upgraded from 1.2 to 2.0b3 version and I have some problems. > When I add new host or service, in the cgi's they sometimes disappear. > After some refreshing pages they again appear. When I click on the > host , Nagios sometimes write a message: Error: Host Status > Information Not Found. As well as for service belong to this host. > This behavior is tied only with new hosts and services. > Does anybody know what's happening ? FAQ. You have more than one Nagios process running. Kill them all and start again with a single one. Has anyone thought about modifying the initscripts to search and destroy existing nagios processes before starting a new one, or at least refusing to start a new one if there's already one running? Would save a lot of boring questions on the list. Cheers, Chris. ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From teng at dataway.com Mon Jul 18 11:37:05 2005 From: teng at dataway.com (Tedman Eng) Date: Mon, 18 Jul 2005 02:37:05 -0700 Subject: Error: Host Status Information Not Found! Message-ID: <37ED92F9890FAF4BB947613C66FF8B1AFC7581@dw-mail.dataway.com> > -----Original Message----- > From: chris at aidworld.org [mailto:chris at aidworld.org] > Sent: Monday, July 18, 2005 2:18 AM > To: Jevos, Peter > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Error: Host Status Information Not Found! > > > Hi Peter, > > > I've upgraded from 1.2 to 2.0b3 version and I have some problems. > > When I add new host or service, in the cgi's they sometimes > disappear. > > After some refreshing pages they again appear. When I click > on the host > > , Nagios sometimes write a message: Error: Host Status > Information Not > > Found. As well as for service belong to this host. This > behavior is tied > > only with new hosts and services. > > Does anybody know what's happening ? > > FAQ. You have more than one Nagios process running. Kill them all and > start again with a single one. > > Has anyone thought about modifying the initscripts to search > and destroy > existing nagios processes before starting a new one, or at > least refusing > to start a new one if there's already one running? Would save a lot of > boring questions on the list. > > Cheers, Chris. > > I believe this phenomenon is tied to the check_timeout value of the nagios check processes. The initscripts work fine after I added a 'sleep 10' to them in between the stop and start clauses. I even converted them to RedHat style (Starting nagios... [OK]). My check_timeout is 10 seconds, so the lingering child processes have died by the time the script starts a new instance. If you're using a much longer timeout, 'killall nagios' in between the stop/start might work better. -T ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 18 11:45:11 2005 From: chris at aidworld.org (chris at aidworld.org) Date: Mon, 18 Jul 2005 10:45:11 +0100 (BST) Subject: Error: Host Status Information Not Found! In-Reply-To: <37ED92F9890FAF4BB947613C66FF8B1AFC7581@dw-mail.dataway.com> References: <37ED92F9890FAF4BB947613C66FF8B1AFC7581@dw-mail.dataway.com> Message-ID: <57325.131.111.156.217.1121679911.squirrel@131.111.156.217> Hello "T", > I believe this phenomenon is tied to the check_timeout value of the nagios > check processes. The initscripts work fine after I added a 'sleep 10' to > them in between the stop and start clauses. I even converted them to > RedHat > style (Starting nagios... [OK]). My check_timeout is 10 seconds, so the > lingering child processes have died by the time the script starts a new > instance. If you're using a much longer timeout, 'killall nagios' in > between the stop/start might work better. But I don't understand why a lingering service check is able to make the web interface behave this way. Once the main (old) nagios process is dead, the service checks should complete and then the old nagios should clean up after itself, while the new one takes over running service checks and maintaining state. It seems that it doesn't work in this nice clean way, but why? And shouldn't it be fixed? In the mean time, adding "killall nagios" to the initscript seems like a sensible precaution, if perhaps a little violent. Cheers, Chris. ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From james at lovedthanlost.net Mon Jul 18 13:14:05 2005 From: james at lovedthanlost.net (James Turnbull) Date: Mon, 18 Jul 2005 21:14:05 +1000 Subject: is there a good nagios forum In-Reply-To: <19CCC8E70E4FA941848269F0C5D832CC898826@post.systems.nl> References: <19CCC8E70E4FA941848269F0C5D832CC898826@post.systems.nl> Message-ID: <42DB8EFD.6010102@lovedthanlost.net> Evert Goor wrote: > Hi All > > I?m watching for a few weeks all these threads on this mail system. > I?m wondering is there also a forum about this product ? I see a lot > of nice answers an tips but searching through this system is pretty > difficult. > > Please let me know. > Try: http://www.meulie.net/forum_viewforum.php?21 Regards James Turnbull -- James Turnbull --- Author of Hardening Linux, Apress (http://www.amazon.com/exec/obidos/tg/detail/-/1590594444/) --- PGP Key (http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x0C42DF40) ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Joseph.Petrucci at ddiworld.com Mon Jul 18 13:21:32 2005 From: Joseph.Petrucci at ddiworld.com (Petrucci, Joseph) Date: Mon, 18 Jul 2005 07:21:32 -0400 Subject: Plugin for System Uptime Message-ID: I did the same thing but used ssh to execute the command Joseph A. Petrucci E Systems DBA ------------------------------------------------ Desk: 412-220-2646 Cell: 412-916-2867 Text message (e-mail) 4129162867 at mobile.att.net e-mail joseph.petrucci at ddiworld.com Personal Cell: 724-462-0443 Personal e-mail: japetrucci at hotmail.com ________________________________ From: nagios-users-admin at lists.sourceforge.net on behalf of Frederik Vanhee Sent: Sun 7/17/2005 4:30 AM To: Jason Martin Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Plugin for System Uptime Hello, I wrote my own little plugin for uptime on HP-UX systems. It's quite simple really. I use the uptime command and then I cut and sed a little to have the days, hours and minutes and if the uptime is less than 24 hours, the plugin exits with a warning status. Frederik Jason Martin wrote: >On Fri, Jul 15, 2005 at 04:50:03PM -0400, Kaplan, Andrew H. wrote: > > >>What plugin would be the one to use to monitor the uptime of several remote >>hosts? The hosts in question are Linux and HP-UX. >> >> >What would the threshold be for such a plugin? > >-Jason Martin > > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 joel at carnat.net Mon Jul 18 13:47:31 2005 From: joel at carnat.net (Joel CARNAT) Date: Mon, 18 Jul 2005 13:47:31 +0200 Subject: notifications and thread view in MUA Message-ID: <20050718134731.207bbfee.joel@carnat.net> Hi, I'm used to sorting my mails in thread. When nagios sends notification (ALERT, DOWN, OK, ...), none are linked. Is there a way to "link" them (so that DOWN and UP would appear in the same thread) ? Is there a way to force the In-Reply-Of mail header ? TIA, Jo ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe at itdz-berlin.de Mon Jul 18 14:29:09 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Mon, 18 Jul 2005 14:29:09 +0200 Subject: Very basic configuration questions Message-ID: <6B893C5F2902D311A23F0090272854FB0575B76A@litex001.lit.verwalt-berlin.de> Hi, I newly subscribed to this list. So forgive if these kind of embryonic questions already have been asked and answered a 1000 times. I'm a bit too impatient to dig through the FAQs and list archives right now. I will do this later. I tweaked my set of config files so long until nagios pre-flight check didn't report errors but only warnings anymore. The warnings are due to many predefined hosts that I haven't had the time to elaborate on required service checks yet. So I started nagios in daemon mode (i.e. -d), and having had the first 6 nodes monitored (i.e. mere check_icmp so far) for the lunch break. Of course I couldn't expect everything to work from the beginning. So I noticed a couple of errors when I turned my eye on nagios log and nagios user's mail queue. First there's a minute macro expansion problem. Among others I defined this MX domain $ grep ^\$USER5 /opt/sw/nagios/etc/resource.cfg $USER5$=our.site.tld $ grep resource.cfg /opt/sw/nagios/etc/nagios.cfg resource_file=/opt/sw/nagios/etc/resource.cfg $ cat -n /opt/sw/nagios/etc/contacts.cfg | sed -n 15,23p 15 16 define contact { 17 use generic-contact 18 contact_name grothe 19 alias Ralph Grothe SAZ 20 # see resource.cfg for $USER5$ 21 email ralph.grothe@$USER5$ 22 } 23 This is what happened. The MTA bounced the notification on an check_icmp alert because there was some queer substitution, recipient rewriting going on. $ grep -E Final-Recipient\|Diagnostic-Code /var/spool/mail/nagios Final-Recipient: rfc822; ralph.grothe at USER5.other.site.tld Diagnostic-Code: X-Postfix; Name service error for name=user5.other.site.tld Why didn't the macro get substituted? Did the MTA rewrite the other.site.tld as suffix, or where could have come from? (n.b. {our,other}.site.tld are merely dummies for real addresses for I feared being spammed) Another question, if I extend or adapt my Nagios config do I have to bring the the daemon down, or would a $ kill -HUP $(cat /var/opt/nagios/nagios.pid) suffice? Thanks ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From quantis at itc.auth.gr Mon Jul 18 14:38:23 2005 From: quantis at itc.auth.gr (Kostas Boukouvalas) Date: Mon, 18 Jul 2005 15:38:23 +0300 Subject: UPS MGE 3000 Galaxy Plugin Message-ID: <42DBA2BF.4040101@itc.auth.gr> Is there any plugin for the above UPS for Nagios? I made a little search without result. Kostas Boukouvalas Aristotle University of Thessaloniki IT Center - System Administrator Assistant ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pete at stuff-done.co.uk Mon Jul 18 14:44:08 2005 From: pete at stuff-done.co.uk (Pete Dewell) Date: Mon, 18 Jul 2005 13:44:08 +0100 Subject: Very basic configuration questions In-Reply-To: <6B893C5F2902D311A23F0090272854FB0575B76A@litex001.lit.verwalt-berlin.de> References: <6B893C5F2902D311A23F0090272854FB0575B76A@litex001.lit.verwalt-berlin.de> Message-ID: <42DBA418.6060906@stuff-done.co.uk> Try defining the $USER$ variable as $USER5$='our.site.tld' I found that using single quotes stops a lot of substitution errors. As for restarting Nagios, there is a "restart" option on the web interface, under "process info". I'm not sure whether it uses HUP, but it seems to do the job. Pete Dewell Ralph.Grothe at itdz-berlin.de wrote: > Hi, > > I newly subscribed to this list. > So forgive if these kind of embryonic questions already have been > asked and answered a 1000 times. > I'm a bit too impatient to dig through the FAQs and list archives > right now. > I will do this later. > > I tweaked my set of config files so long until nagios pre-flight > check didn't report errors > but only warnings anymore. > > The warnings are due to many predefined hosts that I haven't had > the time to elaborate on required service checks yet. > > So I started nagios in daemon mode (i.e. -d), and having had the > first 6 nodes monitored (i.e. mere check_icmp so far) for the > lunch break. > > Of course I couldn't expect everything to work from the > beginning. > > So I noticed a couple of errors when I turned my eye on nagios > log and nagios user's mail queue. > > First there's a minute macro expansion problem. > > Among others I defined this MX domain > > $ grep ^\$USER5 /opt/sw/nagios/etc/resource.cfg > $USER5$=our.site.tld > > $ grep resource.cfg /opt/sw/nagios/etc/nagios.cfg > resource_file=/opt/sw/nagios/etc/resource.cfg > > $ cat -n /opt/sw/nagios/etc/contacts.cfg | sed -n 15,23p > 15 > 16 define contact { > 17 use generic-contact > 18 contact_name grothe > 19 alias Ralph Grothe SAZ > 20 # see resource.cfg > for $USER5$ > 21 email > ralph.grothe@$USER5$ > 22 } > 23 > > This is what happened. > The MTA bounced the notification on an check_icmp alert because > there was some queer substitution, > recipient rewriting going on. > > > $ grep -E Final-Recipient\|Diagnostic-Code /var/spool/mail/nagios > > Final-Recipient: rfc822; ralph.grothe at USER5.other.site.tld > Diagnostic-Code: X-Postfix; Name service error for > name=user5.other.site.tld > > > Why didn't the macro get substituted? > Did the MTA rewrite the other.site.tld as suffix, or where could > have come from? > (n.b. {our,other}.site.tld are merely dummies for real addresses > for I feared being spammed) > > Another question, > if I extend or adapt my Nagios config do I have to bring the the > daemon down, > or would a > > $ kill -HUP $(cat /var/opt/nagios/nagios.pid) > > suffice? > > Thanks > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Pete Dewell | Stuff Done pete at stuff-done.co.uk ** The information contained in this message, including any attachment, is confidential and may be privileged or otherwise protected from disclosure. The information is intended only for the person or entity to which it is addressed. If you are not the intended recipient, please contact the sender and delete this message from your system. Any review, re-transmission, distribution or other use of this information by persons or entities other than the intended recipient is prohibited. * ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From misch at multinet.de Mon Jul 18 14:48:17 2005 From: misch at multinet.de (Michael Schwartzkopff) Date: Mon, 18 Jul 2005 14:48:17 +0200 Subject: UPS MGE 3000 Galaxy Plugin In-Reply-To: <42DBA2BF.4040101@itc.auth.gr> References: <42DBA2BF.4040101@itc.auth.gr> Message-ID: <200507181448.21308.misch@multinet.de> Am Montag, 18. Juli 2005 14:38 schrieb Kostas Boukouvalas: > Is there any plugin for the above UPS for Nagios? I made a little search > without result. (...) Why don't you use SNMP? Look to the UPS MIB. All nescessary variables should be there! -- Dr. Michael Schwartzkopff MultiNET Services GmbH Bretonischer Ring 7 85630 Grasbrunn Tel: (+49 89) 456 911 - 0 Fax: (+49 89) 456 911 - 21 mob: (+49 174) 343 28 75 PGP Fingerprint: F919 3919 FF12 ED5A 2801 DEA6 AA77 57A4 EDD8 979B Skype: misch42 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From bitsandbytes88 at hotmail.com Mon Jul 18 15:10:16 2005 From: bitsandbytes88 at hotmail.com (D Kavan) Date: Mon, 18 Jul 2005 09:10:16 -0400 Subject: check_nsca Message-ID: Hi, Is there a standard command to use when you want the nagios server to check the que for incoming nsca receipts. What is it? There isn't a check_nsca command that I can find anywhere. On the sending side, I'm trying to send load data. I'm not sure how to do that on the remote end either. I have suse linux on both ends. Thanks for any help. I have nsca, nagios, and the plugins, but I'm not sure of which command to use on either end. ~DjK ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 18 15:17:32 2005 From: marc at ena.com (Marc Powell) Date: Mon, 18 Jul 2005 08:17:32 -0500 Subject: check_nsca Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of D Kavan > Sent: Monday, July 18, 2005 8:10 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] check_nsca > > > > Hi, > > Is there a standard command to use when you want the nagios server to > check > the que for incoming nsca receipts. What is it? There isn't a check_nsca > command that I can find anywhere. Enable external commands in nagios.cfg, specify how often to check and the path to the external command file. > On the sending side, I'm trying to send load data. I'm not sure how to do > that on the remote end either. I have suse linux on both ends. Thanks > for > any help. I have nsca, nagios, and the plugins, but I'm not sure of > which > command to use on either end. You'll need to have something execute the plugin and send the results to nsca via send_nsca like cron+wrapper script. Most often there is another instance of nagios running on the remote machine when using nsca. You probably want to look at NRPE or check-by-ssh which sound like they might better suit your needs. If you want to continue with NSCA, the Distributed Monitoring section of the documentation is an excellent resource. -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bitsandbytes88 at hotmail.com Mon Jul 18 15:23:59 2005 From: bitsandbytes88 at hotmail.com (Dj kavanski) Date: Mon, 18 Jul 2005 15:23:59 +0200 (CEST) Subject: check_nsca In-Reply-To: References: Message-ID: <20050718132359.A17134F4002@desire.netways.de> Hi D Does Nagios(ie 2.0b3) need to be installed on the remote system running the send_nsca daemon? If you are using nsca does that mean you are also implementing distribute d monitoring? Thanks, ~DjK - Dj kavanski (bitsandbytes) ----------------------- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi 1[showUid]=8720 ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 18 15:21:38 2005 From: marc at ena.com (Marc Powell) Date: Mon, 18 Jul 2005 08:21:38 -0500 Subject: notifications and thread view in MUA Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Joel CARNAT > Sent: Monday, July 18, 2005 6:48 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] notifications and thread view in MUA > > Hi, > > I'm used to sorting my mails in thread. > When nagios sends notification (ALERT, DOWN, OK, ...), none are linked. > Is there a way to "link" them (so that DOWN and UP would appear in the > same thread) ? Is there a way to force the In-Reply-Of mail header ? Sure. Change your host/service-notify-by-email scripts to add the appropriate headers. You have complete control over the format and contents of those e-mails. I'm not in a position to provide an example right now but it should be straightforward. -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bitsandbytes88 at hotmail.com Mon Jul 18 15:27:34 2005 From: bitsandbytes88 at hotmail.com (Dj kavanski) Date: Mon, 18 Jul 2005 15:27:34 +0200 (CEST) Subject: check_nsca In-Reply-To: References: Message-ID: <20050718132734.902504F4002@desire.netways.de> Hi Marc Nothing showed up. - Dj kavanski (bitsandbytes) ----------------------- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi 1[showUid]=8721 ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bitsandbytes88 at hotmail.com Mon Jul 18 15:27:52 2005 From: bitsandbytes88 at hotmail.com (Dj kavanski) Date: Mon, 18 Jul 2005 15:27:52 +0200 (CEST) Subject: check_nsca In-Reply-To: References: Message-ID: <20050718132752.754554F4002@desire.netways.de> Hi Marc Nothing showed up. - Dj kavanski (bitsandbytes) ----------------------- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi 1[showUid]=8721 ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe at itdz-berlin.de Mon Jul 18 15:51:51 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Mon, 18 Jul 2005 15:51:51 +0200 Subject: Very basic configuration questions Message-ID: <6B893C5F2902D311A23F0090272854FB0575B76B@litex001.lit.verwalt-berlin.de> Hello Pete, I surrounded the $USER5$ value by single quotes and sent the nagios pid a sighup. $ grep ^\$USER5 resource.cfg $USER5$='itdz-berlin.de' nagios understood the signal as intended, as it seems $ tail -2 /var/opt/nagios/log/nagios.log [1121692649] SERVICE EVENT HANDLER: neptun;check-host-neptun;OK;SOFT;3;notify-by-email [1121692735] Caught SIGHUP, restarting... Is there a test program from the nagios installed tools that could be used to deliberately raise an event in order to test if notifications work properly? Or do I have to provoke an event (e.g. filling a filesystem for a check_disk monitor)? For now I cannot use the cgi interface because my http server setting seems a little broken. I wonder where it got the wrong path for the ScriptAlias from? $ tail -1 /var/opt/nagios/log/www_nagdaisy_error.log |sed 's/\(.*\[client \).*\(\].*\)/\1\2/' [Mon Jul 18 15:44:19 2005] [error] [client ] attempt to invoke directory as script: /opt/sw/nagios/sbin The CGIs went here during installation. $ ll /opt/sw/nagios/sbin/ total 5648 -rwxrwxr-x 1 nagios nagios 214901 Jun 20 14:31 avail.cgi -rwxrwxr-x 1 nagios nagios 214033 Jun 20 14:31 cmd.cgi -rwxrwxr-x 1 nagios nagios 172201 Jun 20 14:31 config.cgi -rwxrwxr-x 1 nagios nagios 234106 Jun 20 14:31 extinfo.cgi -rwxrwxr-x 1 nagios nagios 178502 Jun 20 14:31 histogram.cgi -rwxrwxr-x 1 nagios nagios 151461 Jun 20 14:31 history.cgi -rwxrwxr-x 1 nagios nagios 148525 Jun 20 14:31 notifications.cgi -rwxrwxr-x 1 nagios nagios 149357 Jun 20 14:31 outages.cgi -rwxrwxr-x 1 nagios nagios 146489 Jun 20 14:31 showlog.cgi -rwxrwxr-x 1 nagios nagios 220574 Jun 20 14:31 status.cgi -rwxrwxr-x 1 nagios nagios 178047 Jun 20 14:31 statusmap.cgi -rwxrwxr-x 1 nagios nagios 165489 Jun 20 14:31 statuswml.cgi -rwxrwxr-x 1 nagios nagios 152752 Jun 20 14:31 statuswrl.cgi -rwxrwxr-x 1 nagios nagios 177341 Jun 20 14:31 summary.cgi -rwxrwxr-x 1 nagios nagios 164868 Jun 20 14:31 tac.cgi -rwxrwxr-x 1 nagios nagios 185863 Jun 20 14:31 trends.cgi A little deviating from the usual webserver config as outlined in the Nagios docs I'm using here a virtual host configuration why I omitted the suggested nagios subdir from ServerRoot (no need for such distinction for a virtual host) and defined the below $ sed -n '/^# grothe/,$p' /usr/HTTPServer/conf/httpd.conf|sed -n /ScriptAlias/,\$p|grep -v Allow\ From From ScriptAlias /cgi-bin /opt/sw/nagios/sbin Options None AllowOverride AuthConfig Order allow,deny It looks like I need to substitute the href attributes in the anchors of the starting Nagios screen to get the CGIs properly invoked. Yes, a Nagios newbie shouldn't deviate from the standard procedures ;-) > -----Original Message----- > From: Pete Dewell [mailto:pete at stuff-done.co.uk] > Sent: Monday, July 18, 2005 2:44 PM > To: Ralph.Grothe at itdz-berlin.de > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Very basic configuration questions > > > Try defining the $USER$ variable as > > $USER5$='our.site.tld' > > I found that using single quotes stops a lot of substitution errors. > > As for restarting Nagios, there is a "restart" option on the web > interface, under "process info". I'm not sure whether it uses > HUP, but > it seems to do the job. > > Pete Dewell > > Ralph.Grothe at itdz-berlin.de wrote: > > Hi, > > > > I newly subscribed to this list. > > So forgive if these kind of embryonic questions already have been > > asked and answered a 1000 times. > > I'm a bit too impatient to dig through the FAQs and list archives > > right now. > > I will do this later. > > > > I tweaked my set of config files so long until nagios pre-flight > > check didn't report errors > > but only warnings anymore. > > > > The warnings are due to many predefined hosts that I haven't had > > the time to elaborate on required service checks yet. > > > > So I started nagios in daemon mode (i.e. -d), and having had the > > first 6 nodes monitored (i.e. mere check_icmp so far) for the > > lunch break. > > > > Of course I couldn't expect everything to work from the > > beginning. > > > > So I noticed a couple of errors when I turned my eye on nagios > > log and nagios user's mail queue. > > > > First there's a minute macro expansion problem. > > > > Among others I defined this MX domain > > > > $ grep ^\$USER5 /opt/sw/nagios/etc/resource.cfg > > $USER5$=our.site.tld > > > > $ grep resource.cfg /opt/sw/nagios/etc/nagios.cfg > > resource_file=/opt/sw/nagios/etc/resource.cfg > > > > $ cat -n /opt/sw/nagios/etc/contacts.cfg | sed -n 15,23p > > 15 > > 16 define contact { > > 17 use generic-contact > > 18 contact_name grothe > > 19 alias Ralph Grothe SAZ > > 20 # see resource.cfg > > for $USER5$ > > 21 email > > ralph.grothe@$USER5$ > > 22 } > > 23 > > > > This is what happened. > > The MTA bounced the notification on an check_icmp alert because > > there was some queer substitution, > > recipient rewriting going on. > > > > > > $ grep -E Final-Recipient\|Diagnostic-Code /var/spool/mail/nagios > > > > Final-Recipient: rfc822; ralph.grothe at USER5.other.site.tld > > Diagnostic-Code: X-Postfix; Name service error for > > name=user5.other.site.tld > > > > > > Why didn't the macro get substituted? > > Did the MTA rewrite the other.site.tld as suffix, or where could > > have come from? > > (n.b. {our,other}.site.tld are merely dummies for real addresses > > for I feared being spammed) > > > > Another question, > > if I extend or adapt my Nagios config do I have to bring the the > > daemon down, > > or would a > > > > $ kill -HUP $(cat /var/opt/nagios/nagios.pid) > > > > suffice? > > > > Thanks > > > > > > ------------------------------------------------------- > > SF.Net email is sponsored by: Discover Easy Linux Migration > Strategies > > from IBM. Find simple to follow Roadmaps, straightforward articles, > > informative Webcasts and more! Get everything you need to get up to > > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and > OS when reporting any issue. > > ::: Messages without supporting info will risk being sent > to /dev/null > > -- > Pete Dewell | Stuff Done > pete at stuff-done.co.uk > > > ** The information contained in this message, including any > attachment, > is confidential and may be privileged or otherwise protected from > disclosure. The information is intended only for the person > or entity to > which it is addressed. If you are not the intended recipient, please > contact the sender and delete this message from your system. > Any review, > re-transmission, distribution or other use of this information by > persons or entities other than the intended recipient is prohibited. * > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From forums at emat.be Mon Jul 18 16:03:05 2005 From: forums at emat.be (Forums) Date: Mon, 18 Jul 2005 16:03:05 +0200 Subject: Servicegroups bug? Message-ID: <42DBB699.8000700@emat.be> An HTML attachment was scrubbed... URL: From Ajit.Mohan at dc.gov Mon Jul 18 16:15:47 2005 From: Ajit.Mohan at dc.gov (Mohan, Ajit (CFSA)) Date: Mon, 18 Jul 2005 10:15:47 -0400 Subject: Plug-in for https Message-ID: <03BC54053BE9A843B1785F0185A1F7EA243909@emo-exch2k3-210.dcgov.priv> Is there a plug-in available for monitoring https servers from Nagios ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From admin at jpk236.com Mon Jul 18 16:24:33 2005 From: admin at jpk236.com (admin at jpk236.com) Date: Mon, 18 Jul 2005 10:24:33 -0400 Subject: Plug-in for https In-Reply-To: <03BC54053BE9A843B1785F0185A1F7EA243909@emo-exch2k3-210.dcgov.priv> References: <03BC54053BE9A843B1785F0185A1F7EA243909@emo-exch2k3-210.dcgov.priv> Message-ID: <42DBBBA1.7040803@jpk236.com> /usr/local/libexec/nagios#>./check_http -S -H your.domain.com For more information, run: /usr/local/libexec/nagios#>./check_http -h - Justin Kulikowski [ http://www.jpk236.com ] Mohan, Ajit (CFSA) wrote: > Is there a plug-in available for monitoring https servers from Nagios ? ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pete at stuff-done.co.uk Mon Jul 18 16:26:59 2005 From: pete at stuff-done.co.uk (Pete Dewell) Date: Mon, 18 Jul 2005 15:26:59 +0100 Subject: Plug-in for https In-Reply-To: <03BC54053BE9A843B1785F0185A1F7EA243909@emo-exch2k3-210.dcgov.priv> References: <03BC54053BE9A843B1785F0185A1F7EA243909@emo-exch2k3-210.dcgov.priv> Message-ID: <42DBBC33.8020308@stuff-done.co.uk> Its called check_http. Use the -S option. Mohan, Ajit (CFSA) wrote: > Is there a plug-in available for monitoring https servers from Nagios ? -- Pete Dewell | Stuff Done pete at stuff-done.co.uk ** The information contained in this message, including any attachment, is confidential and may be privileged or otherwise protected from disclosure. The information is intended only for the person or entity to which it is addressed. If you are not the intended recipient, please contact the sender and delete this message from your system. Any review, re-transmission, distribution or other use of this information by persons or entities other than the intended recipient is prohibited. * ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mon Jul 18 16:37:12 2005 From: srunschke at abit.de (srunschke at abit.de) Date: Mon, 18 Jul 2005 16:37:12 +0200 Subject: Antwort: RE: Very basic configuration questions [Virus scanned] In-Reply-To: <6B893C5F2902D311A23F0090272854FB0575B76B@litex001.lit.verwalt-berlin.de> References: <6B893C5F2902D311A23F0090272854FB0575B76B@litex001.lit.verwalt-berlin.de> Message-ID: > A little deviating from the usual webserver config as outlined in > the Nagios docs I'm using here > a virtual host configuration why I omitted the suggested nagios > subdir from ServerRoot (no need for such distinction for a > virtual host) and defined the below That's perfectly ok, as long as you used the --with-htmurl and --with-cgiurl switches of the configure script and pointed them to starting in the serverroot aka ./configure --with-htmurl=/ --with-cgiurl=/cgi-bin > $ sed -n '/^# grothe/,$p' /usr/HTTPServer/conf/httpd.conf|sed -n > /ScriptAlias/,\$p|grep -v Allow\ From > From > ScriptAlias /cgi-bin /opt/sw/nagios/sbin > > Options None > AllowOverride AuthConfig > Order allow,deny > > > > > It looks like I need to substitute the href attributes in the > anchors of the starting Nagios screen to get the CGIs properly > invoked. > Yes, a Nagios newbie shouldn't deviate from the standard > procedures ;-) Well, do not expect CGIs to work if you do not give the directory cgi-execution permissions ;) Then again, the omission of trailing slashes can cause havoc on your installation too. ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin/ Options ExecCGI order deny,allow deny from all AuthType Basic AuthUserFile /usr/local/nagios/etc/nagios.users AuthGroupFile /usr/local/nagios/etc/nagios.groups AuthName "Administrativer Nagios Zugang" require group nagios Satisfy Any Alias /nagios /usr/local/nagios/share Options None order deny,allow deny from all AuthType Basic AuthUserFile /usr/local/nagios/etc/nagios.users AuthGroupFile /usr/local/nagios/etc/nagios.groups AuthName "Administrativer Nagios Zugang" require group nagios Satisfy Any Alias /nagios2help /usr/local/nagios/ Rework those to using ServerRoot instead and it should work. Using Auth is mandatory too when dealing with the CGIs, I don't know if you used that in your htaccess, but your config suggests so. -------------------------------------------------- Sascha Runschke Netzwerk Administration IT-Services ABIT AG Robert-Bosch-Str. 1 40668 Meerbusch Tel.:+49 (0) 2150.9153.226 Mobil:+49 (0) 173.5419665 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.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ajit.Mohan at dc.gov Mon Jul 18 16:57:59 2005 From: Ajit.Mohan at dc.gov (Mohan, Ajit (CFSA)) Date: Mon, 18 Jul 2005 10:57:59 -0400 Subject: Plug-in for https Message-ID: <03BC54053BE9A843B1785F0185A1F7EA24390E@emo-exch2k3-210.dcgov.priv> Thanks guys for your response. After adding the line in the services.cfg I get this error " Service check command 'check_http -S -H "my domain name" specified in service 'HTTP' for host 'domain name' not defined anywhere!" Thanks -----Original Message----- From: admin at jpk236.com [mailto:admin at jpk236.com] Sent: Monday, July 18, 2005 10:25 AM To: Mohan, Ajit (CFSA) Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Plug-in for https /usr/local/libexec/nagios#>./check_http -S -H your.domain.com For more information, run: /usr/local/libexec/nagios#>./check_http -h - Justin Kulikowski [ http://www.jpk236.com ] Mohan, Ajit (CFSA) wrote: > Is there a plug-in available for monitoring https servers from Nagios ? ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ajit.Mohan at dc.gov Mon Jul 18 17:07:15 2005 From: Ajit.Mohan at dc.gov (Mohan, Ajit (CFSA)) Date: Mon, 18 Jul 2005 11:07:15 -0400 Subject: Plug-in for https Message-ID: <03BC54053BE9A843B1785F0185A1F7EA24390F@emo-exch2k3-210.dcgov.priv> I tried the following two commands ./check_http -H "my domain name" -p 443 Invalid HTTP response received from host on port 443 ./check_http -H "my domain name:443" Name or service not known Unable to open TCP socket I am running nagios-1.2. Please help. Thanks Ajit -----Original Message----- From: Mohan, Ajit (CFSA) Sent: Monday, July 18, 2005 10:58 AM To: 'admin at jpk236.com'; 'pete at stuff-done.co.uk' Cc: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Plug-in for https Thanks guys for your response. After adding the line in the services.cfg I get this error " Service check command 'check_http -S -H "my domain name" specified in service 'HTTP' for host 'domain name' not defined anywhere!" Thanks -----Original Message----- From: admin at jpk236.com [mailto:admin at jpk236.com] Sent: Monday, July 18, 2005 10:25 AM To: Mohan, Ajit (CFSA) Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Plug-in for https /usr/local/libexec/nagios#>./check_http -S -H your.domain.com For more information, run: /usr/local/libexec/nagios#>./check_http -h - Justin Kulikowski [ http://www.jpk236.com ] Mohan, Ajit (CFSA) wrote: > Is there a plug-in available for monitoring https servers from Nagios ? ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 18 17:15:51 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Mon, 18 Jul 2005 11:15:51 -0400 (EDT) Subject: Plug-in for https In-Reply-To: <03BC54053BE9A843B1785F0185A1F7EA24390F@emo-exch2k3-210.dcgov.priv> References: <03BC54053BE9A843B1785F0185A1F7EA24390F@emo-exch2k3-210.dcgov.priv> Message-ID: -p only specifies port number - not protocol. Unless specified by -S, the default is to use HTTP, not HTTPS. Do you have a host definition for the service in the config? On Mon, 18 Jul 2005, Mohan, Ajit (CFSA) wrote: > > I tried the following two commands > > ./check_http -H "my domain name" -p 443 > Invalid HTTP response received from host on port 443 > > > ./check_http -H "my domain name:443" > Name or service not known > Unable to open TCP socket > > I am running nagios-1.2. Please help. > > Thanks > Ajit > > -----Original Message----- > From: Mohan, Ajit (CFSA) > Sent: Monday, July 18, 2005 10:58 AM > To: 'admin at jpk236.com'; 'pete at stuff-done.co.uk' > Cc: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Plug-in for https > > Thanks guys for your response. > > After adding the line in the services.cfg I get this error > > " Service check command 'check_http -S -H "my domain name" specified in > service 'HTTP' for host 'domain name' not defined anywhere!" > > Thanks > > -----Original Message----- > From: admin at jpk236.com [mailto:admin at jpk236.com] > Sent: Monday, July 18, 2005 10:25 AM > To: Mohan, Ajit (CFSA) > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Plug-in for https > > /usr/local/libexec/nagios#>./check_http -S -H your.domain.com > > > For more information, run: > > /usr/local/libexec/nagios#>./check_http -h > > > - Justin Kulikowski > [ http://www.jpk236.com ] > > Mohan, Ajit (CFSA) wrote: >> Is there a plug-in available for monitoring https servers from Nagios > ? > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&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 Ajit.Mohan at dc.gov Mon Jul 18 17:28:07 2005 From: Ajit.Mohan at dc.gov (Mohan, Ajit (CFSA)) Date: Mon, 18 Jul 2005 11:28:07 -0400 Subject: Plug-in for https Message-ID: <03BC54053BE9A843B1785F0185A1F7EA243912@emo-exch2k3-210.dcgov.priv> Yes, I have specified the host definition. I also tried ./check_http -H my domain name -S check_http: Invalid option - SSL is not available thanks -----Original Message----- From: Subhendu Ghosh [mailto:sghosh at sghosh.org] Sent: Monday, July 18, 2005 11:16 AM To: Mohan, Ajit (CFSA) Cc: admin at jpk236.com; pete at stuff-done.co.uk; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Plug-in for https -p only specifies port number - not protocol. Unless specified by -S, the default is to use HTTP, not HTTPS. Do you have a host definition for the service in the config? On Mon, 18 Jul 2005, Mohan, Ajit (CFSA) wrote: > > I tried the following two commands > > ./check_http -H "my domain name" -p 443 Invalid HTTP response received > from host on port 443 > > > ./check_http -H "my domain name:443" > Name or service not known > Unable to open TCP socket > > I am running nagios-1.2. Please help. > > Thanks > Ajit > > -----Original Message----- > From: Mohan, Ajit (CFSA) > Sent: Monday, July 18, 2005 10:58 AM > To: 'admin at jpk236.com'; 'pete at stuff-done.co.uk' > Cc: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Plug-in for https > > Thanks guys for your response. > > After adding the line in the services.cfg I get this error > > " Service check command 'check_http -S -H "my domain name" specified > in service 'HTTP' for host 'domain name' not defined anywhere!" > > Thanks > > -----Original Message----- > From: admin at jpk236.com [mailto:admin at jpk236.com] > Sent: Monday, July 18, 2005 10:25 AM > To: Mohan, Ajit (CFSA) > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Plug-in for https > > /usr/local/libexec/nagios#>./check_http -S -H your.domain.com > > > For more information, run: > > /usr/local/libexec/nagios#>./check_http -h > > > - Justin Kulikowski > [ http://www.jpk236.com ] > > Mohan, Ajit (CFSA) wrote: >> Is there a plug-in available for monitoring https servers from Nagios > ? > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op?k > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From admin at jpk236.com Mon Jul 18 17:31:17 2005 From: admin at jpk236.com (admin at jpk236.com) Date: Mon, 18 Jul 2005 11:31:17 -0400 Subject: Plug-in for https In-Reply-To: <03BC54053BE9A843B1785F0185A1F7EA243912@emo-exch2k3-210.dcgov.priv> References: <03BC54053BE9A843B1785F0185A1F7EA243912@emo-exch2k3-210.dcgov.priv> Message-ID: <42DBCB45.3040307@jpk236.com> When you run ./check_http -h, is there a -S option listed? Perhaps Nagios 1.2 doesn't support this option? I don't know. I never used Nagios 1.2 -- jumped right to Nagios 2. As an example of how it should look/work: #usr/local/libexec/nagios> ./check_http -S -H godaddy.com OK - HTTP/1.1 302 Object moved - 0.535 second response time |time=0.535305s;;;0.000000 size=651B;;;0 - Justin Kulikowski [ http://www.jpk236.com ] Mohan, Ajit (CFSA) wrote: > Yes, I have specified the host definition. > > I also tried > > ./check_http -H my domain name -S > check_http: Invalid option - SSL is not available > > thanks > > > -----Original Message----- > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > Sent: Monday, July 18, 2005 11:16 AM > To: Mohan, Ajit (CFSA) > Cc: admin at jpk236.com; pete at stuff-done.co.uk; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Plug-in for https > > > -p only specifies port number - not protocol. Unless specified by -S, the default is to use HTTP, not HTTPS. > > Do you have a host definition for the service in the config? > > On Mon, 18 Jul 2005, Mohan, Ajit (CFSA) wrote: > > >>I tried the following two commands >> >>./check_http -H "my domain name" -p 443 Invalid HTTP response received >>from host on port 443 >> >> >>./check_http -H "my domain name:443" >>Name or service not known >>Unable to open TCP socket >> >>I am running nagios-1.2. Please help. >> >>Thanks >>Ajit >> >>-----Original Message----- >>From: Mohan, Ajit (CFSA) >>Sent: Monday, July 18, 2005 10:58 AM >>To: 'admin at jpk236.com'; 'pete at stuff-done.co.uk' >>Cc: nagios-users at lists.sourceforge.net >>Subject: RE: [Nagios-users] Plug-in for https >> >>Thanks guys for your response. >> >>After adding the line in the services.cfg I get this error >> >>" Service check command 'check_http -S -H "my domain name" specified >>in service 'HTTP' for host 'domain name' not defined anywhere!" >> >>Thanks >> >>-----Original Message----- >>From: admin at jpk236.com [mailto:admin at jpk236.com] >>Sent: Monday, July 18, 2005 10:25 AM >>To: Mohan, Ajit (CFSA) >>Cc: nagios-users at lists.sourceforge.net >>Subject: Re: [Nagios-users] Plug-in for https >> >>/usr/local/libexec/nagios#>./check_http -S -H your.domain.com >> >> >>For more information, run: >> >>/usr/local/libexec/nagios#>./check_http -h >> >> >> - Justin Kulikowski >> [ http://www.jpk236.com ] >> >>Mohan, Ajit (CFSA) wrote: >> >>>Is there a plug-in available for monitoring https servers from Nagios >> >>? >> >> >>------------------------------------------------------- >>SF.Net email is sponsored by: Discover Easy Linux Migration Strategies >>from IBM. Find simple to follow Roadmaps, straightforward articles, >>informative Webcasts and more! Get everything you need to get up to >>speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op?k >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >>::: Messages without supporting info will risk being sent to /dev/null >> > > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dmaher at acetechnology.com Mon Jul 18 17:35:09 2005 From: dmaher at acetechnology.com (Daniel maher) Date: Mon, 18 Jul 2005 11:35:09 -0400 Subject: outlook web access - OWA Message-ID: I've never monitored the contents of an OWA account; however, I did once set up an Apache-based reverse proxy to an OWA server. I also ran into problems with the authentication process - specifically, OWA attempts to force the windows auth procedure instead of using basic HTTP AUTH (go Microsoft). I had to go into the IIS config of the OWA server and force basic HTTP AUTH for the OWA site. This might solve your problem as well. Dan. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of phil Sent: July 13, 2005 5:47 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] outlook web access - OWA Is anyone monitoring the contents of an OWA account? Any help in trying to monitor OWA would be much appreciated. I can't get check_http past the authentication process. WebInject looks like it might be a solution but again I can't seem to get through the authentication. Thanks in advance. ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From robmossrm at aol.com Mon Jul 18 17:48:54 2005 From: robmossrm at aol.com (Rob Moss) Date: Mon, 18 Jul 2005 16:48:54 +0100 Subject: Plug-in for https In-Reply-To: <42DBCB45.3040307@jpk236.com> References: <03BC54053BE9A843B1785F0185A1F7EA243912@emo-exch2k3-210.dcgov.priv> <42DBCB45.3040307@jpk236.com> Message-ID: <42DBCF66.7060001@aol.com> I wrote a Perl HTTPS plugin, using LWP. It works slightly differently to the check_http plugin, in that it only requires a URL, so you can group many URL's under the one physical server (as with Apache with virtual servers). Enjoy admin at jpk236.com wrote: > When you run ./check_http -h, is there a -S option listed? Perhaps > Nagios 1.2 doesn't support this option? I don't know. I never used > Nagios 1.2 -- jumped right to Nagios 2. > > As an example of how it should look/work: > #usr/local/libexec/nagios> ./check_http -S -H godaddy.com > OK - HTTP/1.1 302 Object moved - 0.535 second response time > |time=0.535305s;;;0.000000 size=651B;;;0 > > - Justin Kulikowski > [ http://www.jpk236.com ] > > Mohan, Ajit (CFSA) wrote: > >> Yes, I have specified the host definition. >> >> I also tried >> ./check_http -H my domain name -S >> check_http: Invalid option - SSL is not available >> thanks >> >> >> -----Original Message----- >> From: Subhendu Ghosh [mailto:sghosh at sghosh.org] Sent: Monday, July >> 18, 2005 11:16 AM >> To: Mohan, Ajit (CFSA) >> Cc: admin at jpk236.com; pete at stuff-done.co.uk; >> nagios-users at lists.sourceforge.net >> Subject: RE: [Nagios-users] Plug-in for https >> >> >> -p only specifies port number - not protocol. Unless specified by >> -S, the default is to use HTTP, not HTTPS. >> >> Do you have a host definition for the service in the config? >> >> On Mon, 18 Jul 2005, Mohan, Ajit (CFSA) wrote: >> >> >>> I tried the following two commands >>> >>> ./check_http -H "my domain name" -p 443 Invalid HTTP response >>> received from host on port 443 >>> >>> >>> ./check_http -H "my domain name:443" >>> Name or service not known >>> Unable to open TCP socket >>> >>> I am running nagios-1.2. Please help. >>> >>> Thanks >>> Ajit >>> >>> -----Original Message----- >>> From: Mohan, Ajit (CFSA) >>> Sent: Monday, July 18, 2005 10:58 AM >>> To: 'admin at jpk236.com'; 'pete at stuff-done.co.uk' >>> Cc: nagios-users at lists.sourceforge.net >>> Subject: RE: [Nagios-users] Plug-in for https >>> >>> Thanks guys for your response. >>> >>> After adding the line in the services.cfg I get this error >>> >>> " Service check command 'check_http -S -H "my domain name" specified >>> in service 'HTTP' for host 'domain name' not defined anywhere!" >>> >>> Thanks >>> >>> -----Original Message----- >>> From: admin at jpk236.com [mailto:admin at jpk236.com] >>> Sent: Monday, July 18, 2005 10:25 AM >>> To: Mohan, Ajit (CFSA) >>> Cc: nagios-users at lists.sourceforge.net >>> Subject: Re: [Nagios-users] Plug-in for https >>> >>> /usr/local/libexec/nagios#>./check_http -S -H your.domain.com >>> >>> >>> For more information, run: >>> >>> /usr/local/libexec/nagios#>./check_http -h >>> >>> >>> - Justin Kulikowski >>> [ http://www.jpk236.com ] >>> >>> Mohan, Ajit (CFSA) wrote: >>> >>>> Is there a plug-in available for monitoring https servers from Nagios >>> >>> >>> ? >>> >>> >>> ------------------------------------------------------- >>> SF.Net email is sponsored by: Discover Easy Linux Migration >>> Strategies from IBM. Find simple to follow Roadmaps, straightforward >>> articles, informative Webcasts and more! Get everything you need to >>> get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op?k >>> _______________________________________________ >>> Nagios-users mailing list >>> Nagios-users at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>> ::: Please include Nagios version, plugin version (-v) and OS when >>> reporting any issue. >>> ::: Messages without supporting info will risk being sent to /dev/null >>> >> >> > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk > being sent to /dev/null > -- Rob Moss Snr. Unix Administrator Hosting & DB Operations Hammersmith, London, UK Phone: +44 20 7348 8629 -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: check_https.pl URL: From sghosh at sghosh.org Mon Jul 18 17:56:55 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Mon, 18 Jul 2005 11:56:55 -0400 (EDT) Subject: Plug-in for https In-Reply-To: <03BC54053BE9A843B1785F0185A1F7EA243912@emo-exch2k3-210.dcgov.priv> References: <03BC54053BE9A843B1785F0185A1F7EA243912@emo-exch2k3-210.dcgov.priv> Message-ID: If -S is not availble - your plugins were compiled without a recognized OpenSSL installation available. recompile the plugins and make sure the "configure" process recognizes your SSL installation. On Mon, 18 Jul 2005, Mohan, Ajit (CFSA) wrote: > Yes, I have specified the host definition. > > I also tried > > ./check_http -H my domain name -S > check_http: Invalid option - SSL is not available > > thanks > > > -----Original Message----- > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > Sent: Monday, July 18, 2005 11:16 AM > To: Mohan, Ajit (CFSA) > Cc: admin at jpk236.com; pete at stuff-done.co.uk; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Plug-in for https > > > -p only specifies port number - not protocol. Unless specified by -S, the default is to use HTTP, not HTTPS. > > Do you have a host definition for the service in the config? > > On Mon, 18 Jul 2005, Mohan, Ajit (CFSA) wrote: > >> >> I tried the following two commands >> >> ./check_http -H "my domain name" -p 443 Invalid HTTP response received >> from host on port 443 >> >> >> ./check_http -H "my domain name:443" >> Name or service not known >> Unable to open TCP socket >> >> I am running nagios-1.2. Please help. >> >> Thanks >> Ajit >> >> -----Original Message----- >> From: Mohan, Ajit (CFSA) >> Sent: Monday, July 18, 2005 10:58 AM >> To: 'admin at jpk236.com'; 'pete at stuff-done.co.uk' >> Cc: nagios-users at lists.sourceforge.net >> Subject: RE: [Nagios-users] Plug-in for https >> >> Thanks guys for your response. >> >> After adding the line in the services.cfg I get this error >> >> " Service check command 'check_http -S -H "my domain name" specified >> in service 'HTTP' for host 'domain name' not defined anywhere!" >> >> Thanks >> >> -----Original Message----- >> From: admin at jpk236.com [mailto:admin at jpk236.com] >> Sent: Monday, July 18, 2005 10:25 AM >> To: Mohan, Ajit (CFSA) >> Cc: nagios-users at lists.sourceforge.net >> Subject: Re: [Nagios-users] Plug-in for https >> >> /usr/local/libexec/nagios#>./check_http -S -H your.domain.com >> >> >> For more information, run: >> >> /usr/local/libexec/nagios#>./check_http -h >> >> >> - Justin Kulikowski >> [ http://www.jpk236.com ] >> >> Mohan, Ajit (CFSA) wrote: >>> Is there a plug-in available for monitoring https servers from Nagios >> ? >> >> >> ------------------------------------------------------- >> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies >> from IBM. Find simple to follow Roadmaps, straightforward articles, >> informative Webcasts and more! Get everything you need to get up to >> speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&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 Ajit.Mohan at dc.gov Mon Jul 18 17:57:43 2005 From: Ajit.Mohan at dc.gov (Mohan, Ajit (CFSA)) Date: Mon, 18 Jul 2005 11:57:43 -0400 Subject: Plug-in for https Message-ID: <03BC54053BE9A843B1785F0185A1F7EA243916@emo-exch2k3-210.dcgov.priv> Here is the output linux:/usr/local/nagios/libexec # ./check_http -h check_http (nagios-plugins 1.4) 1.81 Usage: check_http -H | -I [-u ] [-p ] [-w ] [-c ] [-t ] [-L] [-a auth] [-f ] [-e ] [-s string] [-l] [-r | -R ] [-P string] [-m :] [-4|-6] [-N] [-M ] [-A string] [-k string] NOTE: One or both of -H and -I must be specified Options: -h, --help Print detailed help screen -V, --version Print version information -H, --hostname=ADDRESS Host name argument for servers using host headers (virtual host) Append a port to include it in the header (eg: example.com:5000) -I, --IP-address=ADDRESS IP address or name (use numeric address if possible to bypass DNS lookup). -p, --port=INTEGER Port number (default: 80) -4, --use-ipv4 Use IPv4 connection -6, --use-ipv6 Use IPv6 connection -e, --expect=STRING String to expect in first (status) line of server response (default: HTTP/1.) If specified skips all other status line logic (ex: 3xx, 4xx, 5xx processing) -s, --string=STRING String to expect in the content -u, --url=PATH URL to GET or POST (default: /) -P, --post=STRING URL encoded http POST data -N, --no-body Don't wait for document body: stop reading after headers. (Note that this still does an HTTP GET or POST, not a HEAD.) -M, --max-age=SECONDS Warn if document is more than SECONDS old. the number can also be of the form "10m" for minutes, "10h" for hours, or "10d" for days. -T, --content-type=STRING specify Content-Type header media type when POSTing -l, --linespan Allow regex to span newlines (must precede -r or -R) -r, --regex, --ereg=STRING Search page for regex STRING -R, --eregi=STRING Search page for case-insensitive regex STRING -a, --authorization=AUTH_PAIR Username:password on sites with basic authentication -A, --useragent=STRING String to be sent in http header as "User Agent" -k, --header=STRING Any other tags to be sent in http header, separated by semicolon -L, --link=URL Wrap output in HTML link (obsoleted by urlize) -f, --onredirect= How to handle redirected pages -m, --pagesize=INTEGER<:INTEGER> Minimum page size required (bytes) : Maximum page size required (bytes) -w, --warning=DOUBLE Response time to result in warning status (seconds) -c, --critical=DOUBLE Response time to result in critical status (seconds) -t, --timeout=INTEGER Seconds before connection times out (default: 10) -v, --verbose -----Original Message----- From: admin at jpk236.com [mailto:admin at jpk236.com] Sent: Monday, July 18, 2005 11:31 AM To: Mohan, Ajit (CFSA) Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Plug-in for https When you run ./check_http -h, is there a -S option listed? Perhaps Nagios 1.2 doesn't support this option? I don't know. I never used Nagios 1.2 -- jumped right to Nagios 2. As an example of how it should look/work: #usr/local/libexec/nagios> ./check_http -S -H godaddy.com OK - HTTP/1.1 302 Object moved - 0.535 second response time |time=0.535305s;;;0.000000 size=651B;;;0 - Justin Kulikowski [ http://www.jpk236.com ] Mohan, Ajit (CFSA) wrote: > Yes, I have specified the host definition. > > I also tried > > ./check_http -H my domain name -S > check_http: Invalid option - SSL is not available > > thanks > > > -----Original Message----- > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > Sent: Monday, July 18, 2005 11:16 AM > To: Mohan, Ajit (CFSA) > Cc: admin at jpk236.com; pete at stuff-done.co.uk; > nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Plug-in for https > > > -p only specifies port number - not protocol. Unless specified by -S, the default is to use HTTP, not HTTPS. > > Do you have a host definition for the service in the config? > > On Mon, 18 Jul 2005, Mohan, Ajit (CFSA) wrote: > > >>I tried the following two commands >> >>./check_http -H "my domain name" -p 443 Invalid HTTP response received >>from host on port 443 >> >> >>./check_http -H "my domain name:443" >>Name or service not known >>Unable to open TCP socket >> >>I am running nagios-1.2. Please help. >> >>Thanks >>Ajit >> >>-----Original Message----- >>From: Mohan, Ajit (CFSA) >>Sent: Monday, July 18, 2005 10:58 AM >>To: 'admin at jpk236.com'; 'pete at stuff-done.co.uk' >>Cc: nagios-users at lists.sourceforge.net >>Subject: RE: [Nagios-users] Plug-in for https >> >>Thanks guys for your response. >> >>After adding the line in the services.cfg I get this error >> >>" Service check command 'check_http -S -H "my domain name" specified >>in service 'HTTP' for host 'domain name' not defined anywhere!" >> >>Thanks >> >>-----Original Message----- >>From: admin at jpk236.com [mailto:admin at jpk236.com] >>Sent: Monday, July 18, 2005 10:25 AM >>To: Mohan, Ajit (CFSA) >>Cc: nagios-users at lists.sourceforge.net >>Subject: Re: [Nagios-users] Plug-in for https >> >>/usr/local/libexec/nagios#>./check_http -S -H your.domain.com >> >> >>For more information, run: >> >>/usr/local/libexec/nagios#>./check_http -h >> >> >> - Justin Kulikowski >> [ http://www.jpk236.com ] >> >>Mohan, Ajit (CFSA) wrote: >> >>>Is there a plug-in available for monitoring https servers from Nagios >> >>? >> >> >>------------------------------------------------------- >>SF.Net email is sponsored by: Discover Easy Linux Migration Strategies >>from IBM. Find simple to follow Roadmaps, straightforward articles, >>informative Webcasts and more! Get everything you need to get up to >>speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op?k >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >>::: Messages without supporting info will risk being sent to /dev/null >> > > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tstocking at itgroundwork.com Mon Jul 18 17:58:55 2005 From: tstocking at itgroundwork.com (tstocking at itgroundwork.com) Date: Mon, 18 Jul 2005 08:58:55 -0700 Subject: Out of the office for a bit... Message-ID: Hello, and thanks for your email. This is an automated response, letting you know that I'll be out of the office until August 1st, 2005. If you need to get in touch with me, and you don't have my other contact information, please call 1 510 899-7700, and someone will take a message or put you in touch with me. Have a great day, Thomas Thomas Stocking CTO, GroundWork Open Source Solutions, Inc. ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 18 18:15:01 2005 From: marc at ena.com (Marc Powell) Date: Mon, 18 Jul 2005 11:15:01 -0500 Subject: Plug-in for https Message-ID: Install OPENSSL and recompile the plugins. -- Marc > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Mohan, Ajit (CFSA) > Sent: Monday, July 18, 2005 10:58 AM > To: admin at jpk236.com > Cc: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Plug-in for https > > Here is the output > > linux:/usr/local/nagios/libexec # ./check_http -h > check_http (nagios-plugins 1.4) 1.81 > > Usage: check_http -H | -I [-u ] [-p ] > [-w ] [-c ] [-t ] [- > L] > [-a auth] [-f ] [-e > ] > [-s string] [-l] [-r | -R regex>] > [-P string] [-m :] [-4|-6] [- > N] > [-M ] [-A string] [-k string] > NOTE: One or both of -H and -I must be specified > > Options: > -h, --help > Print detailed help screen > -V, --version > Print version information > -H, --hostname=ADDRESS > Host name argument for servers using host headers (virtual host) > Append a port to include it in the header (eg: example.com:5000) > -I, --IP-address=ADDRESS > IP address or name (use numeric address if possible to bypass DNS > lookup). > -p, --port=INTEGER > Port number (default: 80) > -4, --use-ipv4 > Use IPv4 connection > -6, --use-ipv6 > Use IPv6 connection > -e, --expect=STRING > String to expect in first (status) line of server response (default: > HTTP/1.) > If specified skips all other status line logic (ex: 3xx, 4xx, 5xx > processing) > -s, --string=STRING > String to expect in the content > -u, --url=PATH > URL to GET or POST (default: /) > -P, --post=STRING > URL encoded http POST data > -N, --no-body > Don't wait for document body: stop reading after headers. > (Note that this still does an HTTP GET or POST, not a HEAD.) > -M, --max-age=SECONDS > Warn if document is more than SECONDS old. the number can also be of > the form "10m" for minutes, "10h" for hours, or "10d" for days. > -T, --content-type=STRING > specify Content-Type header media type when POSTing > -l, --linespan > Allow regex to span newlines (must precede -r or -R) > -r, --regex, --ereg=STRING > Search page for regex STRING > -R, --eregi=STRING > Search page for case-insensitive regex STRING > -a, --authorization=AUTH_PAIR > Username:password on sites with basic authentication > -A, --useragent=STRING > String to be sent in http header as "User Agent" > -k, --header=STRING > Any other tags to be sent in http header, separated by semicolon > -L, --link=URL > Wrap output in HTML link (obsoleted by urlize) > -f, --onredirect= > How to handle redirected pages > -m, --pagesize=INTEGER<:INTEGER> > Minimum page size required (bytes) : Maximum page size required (bytes) > -w, --warning=DOUBLE > Response time to result in warning status (seconds) > -c, --critical=DOUBLE > Response time to result in critical status (seconds) > -t, --timeout=INTEGER > Seconds before connection times out (default: 10) > -v, --verbose > > -----Original Message----- > From: admin at jpk236.com [mailto:admin at jpk236.com] > Sent: Monday, July 18, 2005 11:31 AM > To: Mohan, Ajit (CFSA) > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Plug-in for https > > When you run ./check_http -h, is there a -S option listed? Perhaps Nagios > 1.2 doesn't support this option? I don't know. I never used Nagios 1.2 - > - jumped right to Nagios 2. > > As an example of how it should look/work: > #usr/local/libexec/nagios> ./check_http -S -H godaddy.com OK - HTTP/1.1 > 302 Object moved - 0.535 second response time > |time=0.535305s;;;0.000000 size=651B;;;0 > > - Justin Kulikowski > [ http://www.jpk236.com ] > > Mohan, Ajit (CFSA) wrote: > > Yes, I have specified the host definition. > > > > I also tried > > > > ./check_http -H my domain name -S > > check_http: Invalid option - SSL is not available > > > > thanks > > > > > > -----Original Message----- > > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > > Sent: Monday, July 18, 2005 11:16 AM > > To: Mohan, Ajit (CFSA) > > Cc: admin at jpk236.com; pete at stuff-done.co.uk; > > nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] Plug-in for https > > > > > > -p only specifies port number - not protocol. Unless specified by -S, > the default is to use HTTP, not HTTPS. > > > > Do you have a host definition for the service in the config? > > > > On Mon, 18 Jul 2005, Mohan, Ajit (CFSA) wrote: > > > > > >>I tried the following two commands > >> > >>./check_http -H "my domain name" -p 443 Invalid HTTP response received > >>from host on port 443 > >> > >> > >>./check_http -H "my domain name:443" > >>Name or service not known > >>Unable to open TCP socket > >> > >>I am running nagios-1.2. Please help. > >> > >>Thanks > >>Ajit > >> > >>-----Original Message----- > >>From: Mohan, Ajit (CFSA) > >>Sent: Monday, July 18, 2005 10:58 AM > >>To: 'admin at jpk236.com'; 'pete at stuff-done.co.uk' > >>Cc: nagios-users at lists.sourceforge.net > >>Subject: RE: [Nagios-users] Plug-in for https > >> > >>Thanks guys for your response. > >> > >>After adding the line in the services.cfg I get this error > >> > >>" Service check command 'check_http -S -H "my domain name" specified > >>in service 'HTTP' for host 'domain name' not defined anywhere!" > >> > >>Thanks > >> > >>-----Original Message----- > >>From: admin at jpk236.com [mailto:admin at jpk236.com] > >>Sent: Monday, July 18, 2005 10:25 AM > >>To: Mohan, Ajit (CFSA) > >>Cc: nagios-users at lists.sourceforge.net > >>Subject: Re: [Nagios-users] Plug-in for https > >> > >>/usr/local/libexec/nagios#>./check_http -S -H your.domain.com > >> > >> > >>For more information, run: > >> > >>/usr/local/libexec/nagios#>./check_http -h > >> > >> > >> - Justin Kulikowski > >> [ http://www.jpk236.com ] > >> > >>Mohan, Ajit (CFSA) wrote: > >> > >>>Is there a plug-in available for monitoring https servers from Nagios > >> > >>? > >> > >> > >>------------------------------------------------------- > >>SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > >>from IBM. Find simple to follow Roadmaps, straightforward articles, > >>informative Webcasts and more! Get everything you need to get up to > >>speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op?k > >>_______________________________________________ > >>Nagios-users mailing list > >>Nagios-users at lists.sourceforge.net > >>https://lists.sourceforge.net/lists/listinfo/nagios-users > >>::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > >>::: Messages without supporting info will risk being sent to /dev/null > >> > > > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=ick > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 18 18:42:10 2005 From: JoeRegular at gov.nl.ca (Joe Regular) Date: Mon, 18 Jul 2005 14:12:10 -0230 Subject: Escalation Problem Message-ID: I've got a strange problem to which I hope there is a simple solution. I've got several servers added to my hosts.cfg file with the same parameters, all servers are in the same hosts group, and the hosts group is configured in the escalation.cfg file. The problem is however, nagios only sends out escalated notifications concerning 4 of the 10 servers. Does this make any sense? Joe ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From emkeyser at gmail.com Mon Jul 18 18:40:51 2005 From: emkeyser at gmail.com (Emmett Keyser) Date: Mon, 18 Jul 2005 16:40:51 +0000 (UTC) Subject: DOUBLE not taken in =?utf-8?b?Y2hlY2tfc210cC9wb3A=?= Message-ID: I'm getting the following alert when I use a decimal number for warnings and criticals on the check_smtp and check_pop plugins: ***** Nagios ***** Notification Type: PROBLEM Service: SMTP Response Host: hfsfx3 Address: hfsfx3.hf.local State: UNKNOWN Date/Time: Mon Jul 18 09:18:39 PDT 2005 Additional Info: check_smtp: Warning time must be a positive integer ___END The -h for those plugins lists the following for -w and -c: -w, --warning=DOUBLE Response time to result in warning status (seconds) -c, --critical=DOUBLE Response time to result in critical status (seconds) ___END So the question is does DOUBLE mean integer or floating point? Wikipedia has this to say: In computing, double precision is a computer numbering format that occupies two storage locations in computer memory at address and address+1. A double precision number, sometimes simply a double, may be defined to be an integer, fixed point, or floating point. ___END If it is an integer then why would anyone want to check double precision lenths of time as opposed to floating point to check say fractions of a second response times? So is this a bug or do we like to check for response times of a million seconds? Thanks, Emmett Keyser ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bitsandbytes88 at hotmail.com Mon Jul 18 19:05:49 2005 From: bitsandbytes88 at hotmail.com (Dj kavanski) Date: Mon, 18 Jul 2005 19:05:49 +0200 (CEST) Subject: check_nsca In-Reply-To: References: Message-ID: <20050718170549.02B674F4002@desire.netways.de> Hi all, Does the following look like it will work for the submit_check_result file? Any help is appreciated. #!/bin/sh # This will process nagios monitor checks # check_load echocmd="/bin/echo" #CommandFile="/usr/local/nagios/var/rw/nagios.cmd" CommandFile="/usr/local/nagios/libexec/eventhandlers/nagios.cmd" # get the current date/time datetime='date +%s' #create the command line to add to the command file #cmdline="[$datetime] PROCESS_SERVICE_CHECK_RESULT;$1;$2;$3;$4" 1=server.domain.com 2='load check' 3=2 4="/usr/local/nagios/libexec/check_load -w 3,3,3 -c 3.5,3.5,3.5" cmdline="[$datetime] PROCESS_SERVICE_CHECK_RESULT;$1;$2;$3;$4" #cmdline="[$datetime] /usr/local/nagios/libexec/check_load -w 3,3,3 -c 3.5,3.5,3.5" #append the command to the end of the command file '$echocmd $cmdline >> $CommandFile' - Alf ----------------------- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi 1[showUid]=8720 ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 18 19:09:00 2005 From: marc at ena.com (Marc Powell) Date: Mon, 18 Jul 2005 12:09:00 -0500 Subject: DOUBLE not taken in check_smtp/pop Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Emmett Keyser > Sent: Monday, July 18, 2005 11:41 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] DOUBLE not taken in check_smtp/pop > > I'm getting the following alert when I use a decimal number for warnings > and > criticals on the check_smtp and check_pop plugins: > > ***** Nagios ***** > > Notification Type: PROBLEM > > Service: SMTP Response > Host: hfsfx3 > Address: hfsfx3.hf.local > State: UNKNOWN > > Date/Time: Mon Jul 18 09:18:39 PDT 2005 > > Additional Info: > > check_smtp: Warning time must be a positive integer This plugin requires the time to be a positive integer. > The -h for those plugins lists the following for -w and -c: > > -w, --warning=DOUBLE > Response time to result in warning status (seconds) > -c, --critical=DOUBLE > Response time to result in critical status (seconds) > ___END > > So the question is does DOUBLE mean integer or floating point? Wikipedia > has > this to say: [snip] > > If it is an integer then why would anyone want to check double precision > lenths > of time as opposed to floating point to check say fractions of a second > response > times? > > So is this a bug or do we like to check for response times of a million > seconds? These plugins use portions of the generic help routines from utils.h which is also used by many of the other plugins. The -w and -c help information comes from there. Some plugins require integers for those values, some may accept floats. In each case, the plugin should be more specific about what it requires as above. -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From peter at henet.dk Mon Jul 18 20:33:41 2005 From: peter at henet.dk (=?ISO-8859-1?Q?Peter_Kr=FCpl?=) Date: Mon, 18 Jul 2005 20:33:41 +0200 Subject: Nagios 2.03b and firefox.... :( Message-ID: <42DBF605.2070608@henet.dk> Hi, I have a very annouying problem, each time i press the rerfresh button in firefox, it reloads the index.html file. This results in the main window going back to the information saying "Welcome to nagios if you just installed.....". This problem does not appear with IE, and nagios 1.1 with firefox. Any HTML brower gurus arround ? Kind regards, Peter ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From clusterbuilder at gmail.com Mon Jul 18 22:16:52 2005 From: clusterbuilder at gmail.com (Nick I) Date: Mon, 18 Jul 2005 14:16:52 -0600 Subject: Nagios links Message-ID: Nick, I work on a Web site at www.clusterbuilder.org. The site highlights a broad spectrum of high performance computing related technologies. It has links to reviews, comparisons, pricing and other information related to the many HPC solutions available. The site also allows for you to complete one request-for-quote form and have multiple hardware vendors of your choice provide pricing quotes to you. We need knowledgeable cluster users to submit sites that have proved a valuable resources to them. One particular area that we want to make sure is complete is hardware monitors which Nagios is listed under. Please take a minute and submit additional links associated with Nagios, hardware monitors or other areas that will benefit the HPC community. (To submit content for the site, click on the Submit Content section on www.clusterbuilder.org). Thank you for your help. Nick ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fruiz at netsuite.com Mon Jul 18 22:20:56 2005 From: fruiz at netsuite.com (Ruiz, Francisco) Date: Mon, 18 Jul 2005 13:20:56 -0700 Subject: Multiple event handlers Message-ID: <2BF1D777D914174DB2F6874540E3B6C7035916@corpmail1.svale.netledger.com> Hi, Does anyone know if I can have more than 1 event handler specified in the service definition? Something like: define service { service_def_stuff xxxxxxxxxxxxxxxxx event_handler handler1,handler2 service_def_stuff xxxxxxxxxxxxxxxxx } ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mon Jul 18 22:52:42 2005 From: jsandoval at achs.cl (Sandoval, Julio) Date: Mon, 18 Jul 2005 16:52:42 -0400 Subject: Postgresql Message-ID: <706C33200E04994E9BB6EE3E21E4C15E01301BC5@ACHS-E2K01.achs.cl> Dear List, I need to know....how can i hold data in postgresql for one year?, before that i can archive data in historic store. Thank so much for your responses.... Greetings, Julio Sandoval -----Mensaje original----- De: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]En nombre de Sandoval, Julio Enviado el: Viernes, 15 de Julio de 2005 11:38 Para: nagios-users at lists.sourceforge.net Asunto: [Nagios-users] Postgresql Hello everybody, I have a question: ?Where can I find the history data in postgresql? Exp. I saw the data in the 12 tables, but I just look few rows in them (30 rows max). Somebody help me with this... Thank for your kindness _____ "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." "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." -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded message was scrubbed... From: "Marc Powell" Subject: RE: [Nagios-users] Postgresql Date: Fri, 15 Jul 2005 11:50:13 -0400 Size: 3523 URL: From daniel.deremiah at shadowware.com Mon Jul 18 22:56:45 2005 From: daniel.deremiah at shadowware.com (Daniel Deremiah) Date: Mon, 18 Jul 2005 13:56:45 -0700 Subject: Looking for error messages... Message-ID: Hi, I am trying to get a simple config running of Nagois. I have apache installed and working and a nagios configuration that seems fine when I run the verify. But when I try to access the URL and run any of the CGI's I get the following error on the browser: 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). Number 1 checks out with 0 errors. Number 2: the nagios log file is completely empty. How do I check Number 3? When I run the CGI's from the command line, they give the same error. -- -dand ============================================================= Dan Deremiah Unix System Administrator Wind River Systems, Alameda CA 510/749-2033 Desk AIM: danderemiah ============================================================= ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 18 23:40:26 2005 From: marc at ena.com (Marc Powell) Date: Mon, 18 Jul 2005 16:40:26 -0500 Subject: Multiple event handlers Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Ruiz, Francisco > Sent: Monday, July 18, 2005 3:21 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Multiple event handlers > > > Hi, > > Does anyone know if I can have more than 1 event handler specified in > the service definition? > > Something like: > > define service { > > service_def_stuff xxxxxxxxxxxxxxxxx > > event_handler handler1,handler2 > > service_def_stuff xxxxxxxxxxxxxxxxx > } I'll take a stab. Oddly enough, it's not documented in either 1.x or 2.x... Looking at the code for 1.x seems to indicate to me that only one is allowed but it should be easily testable if you have event handlers configured already. If it works then great =) -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 18 23:58:56 2005 From: ae at op5.se (Andreas Ericsson) Date: Mon, 18 Jul 2005 23:58:56 +0200 Subject: Servicegroups bug? In-Reply-To: <42DBB699.8000700@emat.be> References: <42DBB699.8000700@emat.be> Message-ID: <42DC2620.1040007@op5.se> Forums wrote: > Hi all, > > I'm sorry about posting this Question a 2nd time. But I want to find out if > it's a bug, and if so, is it reproducable by someone else? > I'm running nagios-2.0b_p2. > Due to nagios' currently being in beta-testing, bugs (and possible bugs) for non-cvs code isn't really all that interesting without some test-data to make sure it doesn't choke on it again. > ------ > > I have defined 2 servicegroups: > > pop3 services > imap4 services > > They both have 10 member services. > > > I have 2 different kind of logins. > > User1 can see the 2 servicegroups with all the 20 members because user1 is in > the correct contactgroups of every individual host where each of the services > are running. > > User2 has a problem. > User2 is a member of the contactgroups for the 10 pop3 hosts. > User2 is a member of the contactgroups for only 5 imap4 hosts. > > On the host overview user2 sees all the 15 hosts correctly, they way it should be. > > But when he looks at the "servicegroup overview" he only sees the the pop3 > servicegroup and NOT the imap4 servicegroup..... > > >From the moment there is a service (which is member of a servicegroup) and you > aren't a member of the contactgroup for the host which runs this service, you > are automatically denied access to the entire servicegroup, although it might > contain several services which you entitled to to see. > > In the above example, as user2 , when I choose 'Service group overview' I should > see 2 servicegroups > > pop3 services with 10 services > imap4 services with 5 services > > > What am I missing? Am I overlooking something trivial ? > Re-read the excerpt from the docs again. It's slightly faulty, but the logic remains the same. It should read "From the moment there is a service (which is a member of a servicegroup) and you aren't a member of the contactgroup for this service" ... -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ladams at cloudmark.com Tue Jul 19 00:37:02 2005 From: ladams at cloudmark.com (Lori Adams) Date: Mon, 18 Jul 2005 15:37:02 -0700 Subject: $USERn$ macros in services.cfg Message-ID: I have set up a $USERn$ macro with a username and password: ie: in resources.cfg: $USER5$=foo:bar in checkcommands, I have set up an http check: define command { command_name check_http_args command_line command_line $USER2$/check_http -H $HOSTADDRESS$ $ARG1$ -a $ARG2$ -u $ARG3$ } here was the service check define service { use template ##with lots of details already specified service_description http_check host_name localhost check_command check_http_args!-t 30!$USER5$!http://url.to.check } $ARG2$ does not get replaced with $USER5$, instead $USER5$ is in the command. $ ./check_http -H localhost -t 30 -a $USER5$ -u http://url.to.check Segmentation fault I am using nagios 1.2 with plugins 1.4. Am I missing something? The docs http://nagios.sourceforge.net/docs/1_0/macros.html say that $USERn$ macros can be used in service checks. Thanks, -Lori -------------- next part -------------- An HTML attachment was scrubbed... URL: From pla at softflare.com Tue Jul 19 01:14:36 2005 From: pla at softflare.com (Paul L. Allen) Date: Tue, 19 Jul 2005 00:14:36 +0100 Subject: Multiple event handlers In-Reply-To: <2BF1D777D914174DB2F6874540E3B6C7035916@corpmail1.svale.netledger.com> References: <2BF1D777D914174DB2F6874540E3B6C7035916@corpmail1.svale.netledger.com> Message-ID: <20050718231436.16680.qmail@mullet.softflare.net> Ruiz, Francisco writes: > Does anyone know if I can have more than 1 event handler specified in > the service definition? Offhand, I don't know. But you don't need to. Instead of: event_handler handler1,handler2 have: event_handler handler3 where handler 3 consists of: #!/bin/sh handler1 handler2 Unless I'm missing something obvious you didn't state... -- Paul Allen Softflare Support ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 19 02:03:37 2005 From: s.shipway at auckland.ac.nz (Steve Shipway) Date: Tue, 19 Jul 2005 12:03:37 +1200 Subject: Nagios 2.03b and firefox.... :( In-Reply-To: <42DBF605.2070608@henet.dk> References: <42DBF605.2070608@henet.dk> Message-ID: <00db01c58bf5$50d8a1b0$01fea8c0@itss.auckland.ac.nz> >I have a very annouying problem, each time i press the rerfresh button >in firefox, >it reloads the index.html file. This results in the main window going >back to the information >saying "Welcome to nagios if you just installed.....". > >This problem does not appear with IE, and nagios 1.1 with firefox. This is because you are refreshing the page, not the single frame, and is the 'correct' behaviour (although, I agree, not what you want to happen in this case). Actually, I get this behaviour with MSIE as well, but you probably avoid it because you have something cached or else IE is defaulting to refresh the active frame? Anyway, in Firefox, you can right-clik and select 'This frame/Reload' which will just refresh the individual frame (and you can do the same in IE as well). Another possibility is to change the nagios/index.html page so that the initial page goes to your preferred main window. Steve ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tstocking at itgroundwork.com Tue Jul 19 05:34:59 2005 From: tstocking at itgroundwork.com (tstocking at itgroundwork.com) Date: Mon, 18 Jul 2005 20:34:59 -0700 Subject: Out of the office for a bit... Message-ID: Hello, and thanks for your email. This is an automated response, letting you know that I'll be out of the office until August 1st, 2005. If you need to get in touch with me, and you don't have my other contact information, please call 1 510 899-7700, and someone will take a message or put you in touch with me. Have a great day, Thomas Thomas Stocking CTO, GroundWork Open Source Solutions, Inc. ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe at itdz-berlin.de Tue Jul 19 09:34:09 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Tue, 19 Jul 2005 09:34:09 +0200 Subject: check_oracle breaks when run under nrpe Message-ID: <6B893C5F2902D311A23F0090272854FB0575B76E@litex001.lit.verwalt-berlin.de> Hello, I know that I should post this to nagiosplug-help solely and not x-post to nagios-users. But I see there's much more activity in the latter and thus I reckon a bigger chance for me to draw attention. I set up nrpe on remote hpux host that runs an Oracle dbms. When I execute the check_oracle shell script from the nagios plug-ins on that host like such everything works fine [nagios at terra:/usr/local/nagios/etc] $ ORACLE_HOME=/app/oracle/product/9.2.0 PATH=/usr/bin:$ORACLE_HOME/bin /usr/local/nagios/libexec/check_oracle --tns FREMD OK - reply time 30 msec from FREMD Wheras when I run it through check_nrpe by this command definition in nrpe.cfg [nagios at terra:/usr/local/nagios/etc] $ grep ^command\\[check_tns nrpe.cfg command[check_tns_FREMD]='ORACLE_HOME=/app/oracle/product/9.2.0 PATH=/usr/bin:$ORACLE_HOME/bin /usr/local/nagios/libexec/check_oracle --tns FREMD' this is happening [nagios at terra:/usr/local/nagios/etc] $ ../libexec/check_nrpe -H 127.0.0.1 -c check_tns_FREMD CHECK_NRPE: Response packet had invalid CRC32. [nagios at terra:/usr/local/nagios/etc] $ echo $? 3 Unfortunately nrpe or check_nrpe are of the silent sort, and thus nothing useful gets logged via syslogd [nagios at terra:/usr/local/nagios/etc] $ tail -1 /var/adm/syslog/syslog.log Jul 19 09:31:02 terra inetd[22034]: nrpe/tcp: Connection from localhost (127.0.0.1) at Tue Jul 19 09:31:02 2005 First how can I raise verbosity of nrpe to detect more? Then what could have gone wrong? Regards Ralph ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Tue Jul 19 10:09:54 2005 From: prandal at herefordshire.gov.uk (Randal, Phil) Date: Tue, 19 Jul 2005 09:09:54 +0100 Subject: Nagios 2.03b and firefox.... :( Message-ID: <86144ED6CE5B004DA23E1EAC0B569B580784D25B@isabella.herefordshire.gov.uk> What's needed is a volunteer to rewrite the whole web interface to abandon the use of frames and use CSS properly intead. Beyond my abilities, alas. 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 Steve Shipway > Sent: 19 July 2005 01:04 > To: 'Peter Kr?pl'; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Nagios 2.03b and firefox.... :( > > >I have a very annouying problem, each time i press the > rerfresh button > >in firefox, it reloads the index.html file. This results in the main > >window going back to the information saying "Welcome to > nagios if you > >just installed.....". > > > >This problem does not appear with IE, and nagios 1.1 with firefox. > > This is because you are refreshing the page, not the single > frame, and is the 'correct' behaviour (although, I agree, not > what you want to happen in this case). Actually, I get this > behaviour with MSIE as well, but you probably avoid it > because you have something cached or else IE is defaulting to > refresh the active frame? > > Anyway, in Firefox, you can right-clik and select 'This > frame/Reload' which will just refresh the individual frame > (and you can do the same in IE as well). > > Another possibility is to change the nagios/index.html page > so that the initial page goes to your preferred main window. > > Steve > > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration > Strategies from IBM. Find simple to follow Roadmaps, > straightforward articles, informative Webcasts and more! Get > everything you need to get up to speed, fast. > http://ads.osdn.com/?ad_idt77&alloc_id492&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Tue Jul 19 11:04:55 2005 From: b00mer at gmx.net (Hendrik Baecker) Date: Tue, 19 Jul 2005 11:04:55 +0200 Subject: Looking for error messages... In-Reply-To: References: Message-ID: <42DCC237.9010605@gmx.net> Daniel Deremiah schrieb: >Hi, I am trying to get a simple config running of Nagois. I have apache >installed and working and a nagios configuration that seems fine when I run >the verify. But when I try to access the URL and run any of the CGI's I get >the following error on the browser: > >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). > >Number 1 checks out with 0 errors. Number 2: the nagios log file is >completely empty. How do I check Number 3? When I run the CGI's from the >command line, they give the same error. > > > > Did you ever try to start the Nagios Process? Then watch the Logs and try the CGIs? Regards Hendrik ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 19 11:07:19 2005 From: james.mohr at elaxy.com (Mohr James) Date: Tue, 19 Jul 2005 11:07:19 +0200 Subject: Determining where "Status Information" comes Message-ID: Hi All! Is there a quick way of determining whether the "Status Information" generated by an active check is coming from NRPE or the executed command? For example, we have a critical service that says "Connection refused by host". This could be coming from either NRPE or the command, as it is doing a sort of port scan from the remote system. So, when I see this messages, it is not immediately clear where it is coming from. Any info is greatly appreciated. Regards, Jim Mohr ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From frederik.vanhee at perso.be Tue Jul 19 11:08:09 2005 From: frederik.vanhee at perso.be (Frederik Vanhee) Date: Tue, 19 Jul 2005 11:08:09 +0200 Subject: check_oracle breaks when run under nrpe In-Reply-To: <6B893C5F2902D311A23F0090272854FB0575B76E@litex001.lit.verwalt-berlin.de> References: <6B893C5F2902D311A23F0090272854FB0575B76E@litex001.lit.verwalt-berlin.de> Message-ID: <42DCC2F9.7020901@perso.be> Ralph.Grothe at itdz-berlin.de wrote: >Hello, > >I know that I should post this to nagiosplug-help solely and not >x-post to nagios-users. >But I see there's much more activity in the latter and thus I >reckon a bigger chance for me to draw attention. > >I set up nrpe on remote hpux host that runs an Oracle dbms. > >When I execute the check_oracle shell script from the nagios >plug-ins on that host like such >everything works fine > >[nagios at terra:/usr/local/nagios/etc] >$ ORACLE_HOME=/app/oracle/product/9.2.0 >PATH=/usr/bin:$ORACLE_HOME/bin >/usr/local/nagios/libexec/check_oracle --tns FREMD > >OK - reply time 30 msec from FREMD > > >Wheras when I run it through check_nrpe by this command >definition in nrpe.cfg > >[nagios at terra:/usr/local/nagios/etc] >$ grep ^command\\[check_tns nrpe.cfg >command[check_tns_FREMD]='ORACLE_HOME=/app/oracle/product/9.2.0 >PATH=/usr/bin:$ORACLE_HOME/bin >/usr/local/nagios/libexec/check_oracle --tns FREMD' > > >this is happening > >[nagios at terra:/usr/local/nagios/etc] >$ ../libexec/check_nrpe -H 127.0.0.1 -c check_tns_FREMD >CHECK_NRPE: Response packet had invalid CRC32. > >[nagios at terra:/usr/local/nagios/etc] >$ echo $? >3 > > >Unfortunately nrpe or check_nrpe are of the silent sort, >and thus nothing useful gets logged via syslogd > >[nagios at terra:/usr/local/nagios/etc] >$ tail -1 /var/adm/syslog/syslog.log >Jul 19 09:31:02 terra inetd[22034]: nrpe/tcp: Connection from >localhost (127.0.0.1) at Tue Jul 19 09:31:02 2005 > > >First how can I raise verbosity of nrpe to detect more? > >Then what could have gone wrong? > > >Regards >Ralph > > >------------------------------------------------------- >SF.Net email is sponsored by: Discover Easy Linux Migration Strategies >from IBM. Find simple to follow Roadmaps, straightforward articles, >informative Webcasts and more! Get everything you need to get up to >speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > > > check your nrpe.cfg file : debug=1 -> more logging did you fill the allowed-hosts variable ? do you use ssl, otherwise, you should use check_nrpe with the -n option Frederik ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Stanley.Hopcroft at ipaustralia.gov.au Tue Jul 19 11:25:05 2005 From: Stanley.Hopcroft at ipaustralia.gov.au (Stanley.Hopcroft at ipaustralia.gov.au) Date: Tue, 19 Jul 2005 19:25:05 +1000 Subject: How does one notify on event handler failure ? Message-ID: -Dear Sir, I am writing to thank you for your letter and say, > Hi Stanley, >> I would like to have an event handler attempt a service restart __and__ >> then >> have Nagios process a restart failure by notifying the contact group and >> doing >> all the other Nag things (log, pace notifications, re-invoke event >> handlers ..) as >> long as the service fails to restart. > How about: set your max_check_attempts to 10. On the 5th soft failure, > restart the service. If the service doesn't come back up properly, Nagios > will check it another 5 times and then report an error in the normal way. Sounds great to me. Since eventhandlers are called with args of $SERVICESTATE$, $SERVICESTATETYPE$, $SERVICEATTEMPT$ the event handler prologue should be something like #!/usr/bin/perl -w use strict ; exit 0 unless $ARGV[0] eq 'CRITICAL' ; exit 0 if $ARGV[1] eq 'HARD' ; # will only see a HARD state if restart fails exit 0 if $ARGV[2] != 5 ; # Go ahead and try and restart the service .. # Take as long as we like since we won't get called again if the # restart fails. # Chronology is # retry state notes # 1 SOFT retry service check to confirm fault # restart_threshold SOFT fault confirmed; try event handler/restart # .. threshold + 1 SOFT retry service to check restart # max_checks HARD restart failure confirmed; notify etc > Cheers, Chris. Thank you very much for this elegant solution so closely aligned to the what seems to me the conception of the event handler signature. Yours sincerely -- Stanley Hopcroft -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: disclaimer.txt URL: From Ralph.Grothe at itdz-berlin.de Tue Jul 19 11:35:33 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Tue, 19 Jul 2005 11:35:33 +0200 Subject: check_oracle breaks when run under nrpe Message-ID: <6B893C5F2902D311A23F0090272854FB0575B770@litex001.lit.verwalt-berlin.de> Hi Frederik > -----Original Message----- > From: Frederik Vanhee [mailto:frederik.vanhee at perso.be] > Sent: Tuesday, July 19, 2005 11:08 AM > To: Ralph.Grothe at itdz-berlin.de; Nagios Users > Subject: Re: [Nagios-users] check_oracle breaks when run under nrpe > > > Ralph.Grothe at itdz-berlin.de wrote: > > >Hello, > > > >I know that I should post this to nagiosplug-help solely and not > >x-post to nagios-users. > >But I see there's much more activity in the latter and thus I > >reckon a bigger chance for me to draw attention. > > > >I set up nrpe on remote hpux host that runs an Oracle dbms. > > > >When I execute the check_oracle shell script from the nagios > >plug-ins on that host like such > >everything works fine > > > >[nagios at terra:/usr/local/nagios/etc] > >$ ORACLE_HOME=/app/oracle/product/9.2.0 > >PATH=/usr/bin:$ORACLE_HOME/bin > >/usr/local/nagios/libexec/check_oracle --tns FREMD > > > >OK - reply time 30 msec from FREMD > > > > > >Wheras when I run it through check_nrpe by this command > >definition in nrpe.cfg > > > >[nagios at terra:/usr/local/nagios/etc] > >$ grep ^command\\[check_tns nrpe.cfg > >command[check_tns_FREMD]='ORACLE_HOME=/app/oracle/product/9.2.0 > >PATH=/usr/bin:$ORACLE_HOME/bin > >/usr/local/nagios/libexec/check_oracle --tns FREMD' > > > > > >this is happening > > > >[nagios at terra:/usr/local/nagios/etc] > >$ ../libexec/check_nrpe -H 127.0.0.1 -c check_tns_FREMD > >CHECK_NRPE: Response packet had invalid CRC32. > > > >[nagios at terra:/usr/local/nagios/etc] > >$ echo $? > >3 > > > > > >Unfortunately nrpe or check_nrpe are of the silent sort, > >and thus nothing useful gets logged via syslogd > > > >[nagios at terra:/usr/local/nagios/etc] > >$ tail -1 /var/adm/syslog/syslog.log > >Jul 19 09:31:02 terra inetd[22034]: nrpe/tcp: Connection from > >localhost (127.0.0.1) at Tue Jul 19 09:31:02 2005 > > > > > >First how can I raise verbosity of nrpe to detect more? > > > >Then what could have gone wrong? > > > > > >Regards > >Ralph > > > > > >------------------------------------------------------- > >SF.Net email is sponsored by: Discover Easy Linux Migration > Strategies > >from IBM. Find simple to follow Roadmaps, straightforward articles, > >informative Webcasts and more! Get everything you need to get up to > >speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > >_______________________________________________ > >Nagios-users mailing list > >Nagios-users at lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/nagios-users > >::: Please include Nagios version, plugin version (-v) and > OS when reporting any issue. > >::: Messages without supporting info will risk being sent to > /dev/null > > > > > > > check your nrpe.cfg file : > > debug=1 -> more logging > did you fill the allowed-hosts variable ? > do you use ssl, otherwise, you should use check_nrpe with the > -n option > > Frederik > I have to admit that I've missed the debug=1 option in nrpe.cfg. Only joke is that setting it doesn't change a thing. [nagios at terra:/usr/local/nagios/etc] $ grep ^debug= nrpe.cfg debug=1 As response from check_nrpe I get the same lousy, non-instructive CRC32 failure message, and in syslog there doesn't appear anything more than before, i.e. [nagios at terra:/usr/local/nagios/etc] $ ../libexec/check_nrpe -H 127.0.0.1 -c check_tns_FREMD CHECK_NRPE: Response packet had invalid CRC32. [nagios at terra:/usr/local/nagios/etc] $ tail -3 /var/adm/syslog/syslog.log Jul 19 11:10:23 terra inetd[24777]: nrpe/tcp: Connection from localhost (127.0.0.1) at Tue Jul 19 11:10:23 2005 Jul 19 11:16:39 terra inetd[24856]: nrpe/tcp: Connection from localhost (127.0.0.1) at Tue Jul 19 11:16:39 2005 Jul 19 11:16:57 terra inetd[24861]: nrpe/tcp: Connection from localhost (127.0.0.1) at Tue Jul 19 11:16:57 2005 just to show you that it doesn't have anything to do with allowed hosts settings here's a simple disk check I defined in nrpe.cfg [nagios at terra:/usr/local/nagios/etc] $ ../libexec/check_nrpe -H 127.0.0.1 -c check_disk_LOCPCT_W5C2 DISK OK - free space: / 74 MB (53%); /stand 45 MB (55%); /var 39 MB (6%); /var/www 440 MB (87%); /usr 8 0 MB (7%); /usr/local/tmp 599 MB (40%); /tmp 20 MB (17%); /opt 43 MB (7%); /home 44 MB (55%); /bs14 119 2 MB (59%); /bs12 3358 MB (94%); /bs11 959 MB (94%); /b062 526 MB (99%); /b051 5692 MB (66%); /apptemp 1100 MB (55%); /u03 19493 MB (23%);| /=66MB;133;137;0;140 /stand=37MB;76;79;0;81 /var=662MB;665;686;0;7 00 /var/www=68MB;482;497;0;508 /usr=1029MB;1052;1085;0;1108 /usr/local/tmp=901MB;1425;1470;0;1500 /tmp= 100MB;114;117;0;120 /opt=597MB;608;627;0;640 /home=36MB;76;78;0;80 /bs14=840MB;1930;1991;0;2032 /bs12=2 26MB;3404;3512;0;3584 /bs11=66MB;972;1003;0;1024 /b062=7MB;505;521;0;532 /b051=2981MB;8238;8498;0;8672 /apptemp=900MB;1900;1960;0;2000 /u03=65276MB;80529;83072;0;84768 Besides, the comment rightly states that inetd doesn't pay attention to such a setting (at least as long as no tcp wrapper comes into play, as is the case on this box) # NOTE: This option is ignored if NRPE is running under either inetd or xinetd #allowed_hosts=127.0.0.1 I deliberately built nrpe on hpux from the sources with --ssl-disable set, because I knew that with these low hurdles that already prove unsurmountable I would be light years away from a working TLS/SSL tunnelling. If the whole of nagios remote plugin execution is so obfuscated and intricate as it appears to me (I've been wasting the last two days trying in vain to just get such a simple check to work!) then Nagios to me is just a toy for developers but not usable by the average sysadmin like me. Ok it's fine to have the sources if you are a seasoned C hacker, but I just want a basic functionality working quickly. You're left alone because the documentation is sparse and incoherent. In that respect Mon proved a much better tool to meet the basic demands of mine (I had that up and running with custom plug-ins in abt. a day) Sorry, but my frustration with Nagios grows... ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From quantis at itc.auth.gr Tue Jul 19 11:57:27 2005 From: quantis at itc.auth.gr (Kostas Boukouvalas) Date: Tue, 19 Jul 2005 12:57:27 +0300 Subject: Notification Failure Criteria Problem Message-ID: <42DCCE87.2000203@itc.auth.gr> I have this problem. In the "notification_failure_criteria" options at dependencies configuration file (for host dependencies) Nagios accepts only d & u parameters but no "n" parameter. Meaning accept, ./nagios -v [configuration file] reports an error for this specific line if I put "n" parameter. What it can be? (Nagios v. 1.0) Thank you. Kostas Boukouvalas Aristotle University of Thessaloniki IT Center - System Administrator Assistant ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From frederik.vanhee at perso.be Tue Jul 19 12:03:13 2005 From: frederik.vanhee at perso.be (Frederik Vanhee) Date: Tue, 19 Jul 2005 12:03:13 +0200 Subject: check_oracle breaks when run under nrpe In-Reply-To: <6B893C5F2902D311A23F0090272854FB0575B770@litex001.lit.verwalt-berlin.de> References: <6B893C5F2902D311A23F0090272854FB0575B770@litex001.lit.verwalt-berlin.de> Message-ID: <42DCCFE1.2070301@perso.be> Ralph.Grothe at itdz-berlin.de wrote: >Hi Frederik > > > >>-----Original Message----- >>From: Frederik Vanhee [mailto:frederik.vanhee at perso.be] >>Sent: Tuesday, July 19, 2005 11:08 AM >>To: Ralph.Grothe at itdz-berlin.de; Nagios Users >>Subject: Re: [Nagios-users] check_oracle breaks when run under >> >> >nrpe > > >>Ralph.Grothe at itdz-berlin.de wrote: >> >> >> >>>Hello, >>> >>>I know that I should post this to nagiosplug-help solely and >>> >>> >not > > >>>x-post to nagios-users. >>>But I see there's much more activity in the latter and thus I >>>reckon a bigger chance for me to draw attention. >>> >>>I set up nrpe on remote hpux host that runs an Oracle dbms. >>> >>>When I execute the check_oracle shell script from the nagios >>>plug-ins on that host like such >>>everything works fine >>> >>>[nagios at terra:/usr/local/nagios/etc] >>>$ ORACLE_HOME=/app/oracle/product/9.2.0 >>>PATH=/usr/bin:$ORACLE_HOME/bin >>>/usr/local/nagios/libexec/check_oracle --tns FREMD >>> >>>OK - reply time 30 msec from FREMD >>> >>> >>>Wheras when I run it through check_nrpe by this command >>>definition in nrpe.cfg >>> >>>[nagios at terra:/usr/local/nagios/etc] >>>$ grep ^command\\[check_tns nrpe.cfg >>> >>> >>command[check_tns_FREMD]='ORACLE_HOME=/app/oracle/product/9.2.0 >> >> >>>PATH=/usr/bin:$ORACLE_HOME/bin >>>/usr/local/nagios/libexec/check_oracle --tns FREMD' >>> >>> >>>this is happening >>> >>>[nagios at terra:/usr/local/nagios/etc] >>>$ ../libexec/check_nrpe -H 127.0.0.1 -c check_tns_FREMD >>>CHECK_NRPE: Response packet had invalid CRC32. >>> >>>[nagios at terra:/usr/local/nagios/etc] >>>$ echo $? >>>3 >>> >>> >>>Unfortunately nrpe or check_nrpe are of the silent sort, >>>and thus nothing useful gets logged via syslogd >>> >>>[nagios at terra:/usr/local/nagios/etc] >>>$ tail -1 /var/adm/syslog/syslog.log >>>Jul 19 09:31:02 terra inetd[22034]: nrpe/tcp: Connection from >>>localhost (127.0.0.1) at Tue Jul 19 09:31:02 2005 >>> >>> >>>First how can I raise verbosity of nrpe to detect more? >>> >>>Then what could have gone wrong? >>> >>> >>>Regards >>>Ralph >>> >>> >>>------------------------------------------------------- >>>SF.Net email is sponsored by: Discover Easy Linux Migration >>> >>> >>Strategies >>>from IBM. Find simple to follow Roadmaps, straightforward >> >> >articles, > > >>>informative Webcasts and more! Get everything you need to get >>> >>> >up to > > >>>speed, fast. >>> >>> >http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > > >>>_______________________________________________ >>>Nagios-users mailing list >>>Nagios-users at lists.sourceforge.net >>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>::: Please include Nagios version, plugin version (-v) and >>> >>> >>OS when reporting any issue. >> >> >>>::: Messages without supporting info will risk being sent to >>> >>> >>/dev/null >> >> >>> >>> >>> >>> >>check your nrpe.cfg file : >> >>debug=1 -> more logging >>did you fill the allowed-hosts variable ? >>do you use ssl, otherwise, you should use check_nrpe with the >>-n option >> >>Frederik >> >> >> > > >I have to admit that I've missed the debug=1 option in nrpe.cfg. >Only joke is that setting it doesn't change a thing. > >[nagios at terra:/usr/local/nagios/etc] >$ grep ^debug= nrpe.cfg >debug=1 > >As response from check_nrpe I get the same lousy, non-instructive >CRC32 failure message, >and in syslog there doesn't appear anything more than before, >i.e. > >[nagios at terra:/usr/local/nagios/etc] >$ ../libexec/check_nrpe -H 127.0.0.1 -c check_tns_FREMD >CHECK_NRPE: Response packet had invalid CRC32. > >[nagios at terra:/usr/local/nagios/etc] >$ tail -3 /var/adm/syslog/syslog.log >Jul 19 11:10:23 terra inetd[24777]: nrpe/tcp: Connection from >localhost (127.0.0.1) at Tue Jul 19 11:10:23 2005 >Jul 19 11:16:39 terra inetd[24856]: nrpe/tcp: Connection from >localhost (127.0.0.1) at Tue Jul 19 11:16:39 2005 >Jul 19 11:16:57 terra inetd[24861]: nrpe/tcp: Connection from >localhost (127.0.0.1) at Tue Jul 19 11:16:57 2005 > > >just to show you that it doesn't have anything to do with allowed >hosts settings >here's a simple disk check I defined in nrpe.cfg > >[nagios at terra:/usr/local/nagios/etc] >$ ../libexec/check_nrpe -H 127.0.0.1 -c check_disk_LOCPCT_W5C2 >DISK OK - free space: / 74 MB (53%); /stand 45 MB (55%); /var 39 >MB (6%); /var/www 440 MB (87%); /usr 8 >0 MB (7%); /usr/local/tmp 599 MB (40%); /tmp 20 MB (17%); /opt 43 >MB (7%); /home 44 MB (55%); /bs14 119 >2 MB (59%); /bs12 3358 MB (94%); /bs11 959 MB (94%); /b062 526 MB >(99%); /b051 5692 MB (66%); /apptemp >1100 MB (55%); /u03 19493 MB (23%);| /=66MB;133;137;0;140 >/stand=37MB;76;79;0;81 /var=662MB;665;686;0;7 >00 /var/www=68MB;482;497;0;508 /usr=1029MB;1052;1085;0;1108 >/usr/local/tmp=901MB;1425;1470;0;1500 /tmp= >100MB;114;117;0;120 /opt=597MB;608;627;0;640 >/home=36MB;76;78;0;80 /bs14=840MB;1930;1991;0;2032 /bs12=2 >26MB;3404;3512;0;3584 /bs11=66MB;972;1003;0;1024 >/b062=7MB;505;521;0;532 /b051=2981MB;8238;8498;0;8672 >/apptemp=900MB;1900;1960;0;2000 /u03=65276MB;80529;83072;0;84768 > > >Besides, the comment rightly states that inetd doesn't pay >attention to such a setting >(at least as long as no tcp wrapper comes into play, as is the >case on this box) > ># NOTE: This option is ignored if NRPE is running under either >inetd or xinetd > >#allowed_hosts=127.0.0.1 > > >I deliberately built nrpe on hpux from the sources with >--ssl-disable set, >because I knew that with these low hurdles that already prove >unsurmountable I would be light years away from a working TLS/SSL >tunnelling. > > >If the whole of nagios remote plugin execution is so obfuscated >and intricate as it appears to me >(I've been wasting the last two days trying in vain to just get >such a simple check to work!) >then Nagios to me is just a toy for developers but not usable by >the average sysadmin like me. >Ok it's fine to have the sources if you are a seasoned C hacker, >but I just want a basic functionality working quickly. >You're left alone because the documentation is sparse and >incoherent. >In that respect Mon proved a much better tool to meet the basic >demands of mine >(I had that up and running with custom plug-ins in abt. a day) > >Sorry, but my frustration with Nagios grows... > > > >------------------------------------------------------- >SF.Net email is sponsored by: Discover Easy Linux Migration Strategies >from IBM. Find simple to follow Roadmaps, straightforward articles, >informative Webcasts and more! Get everything you need to get up to >speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > > > Please don't be frustrated about Nagios. Sometimes it takes some time, but it's worth the effort !! I also use NRPE on HP-UX (10.20 and 11.11), but I never got it working under inetd. So I suggest you try to run nrpe as a daemon, I admit running under inetd is a more beautiful solution... It works for me. I use nrpe from http://www.bennyvision.com/projects/nagios/index.php Good luck, Frederik ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe at itdz-berlin.de Tue Jul 19 14:00:18 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Tue, 19 Jul 2005 14:00:18 +0200 Subject: Nagios Plugins build under SPARC Solaris8 with SUNWspro CC fails Message-ID: <6B893C5F2902D311A23F0090272854FB0575B771@litex001.lit.verwalt-berlin.de> Hello again, No matter where I experiment with Nagios, I am grandly dooming before I even get started. Because of my frustration with Nagios on HPUX I gave it a try on another OS. This time on FSC PrimePower (i.e. sun4us) SPARC with Solaris 8. Here on this test box I'm in the exceptionally lucky position to make use of a SUNws Pro C compiler (aka Forte?). So the starting conditions looked much more favourable. # uname -a SunOS zecke 5.8 Generic_117350-02 sun4us sparc FJSV,GPUS This is how I ran configure # CC=/opt/SUNWspro/bin/cc CPPFLAGS=-I/usr/local/ssl/include/openssl ./configure --with-nagios-user=informix --with-nagios-group=informix --with-openssl=/usr/local/ssl --with-ping-command=/usr/sbin/ping I also set these # alias make alias make='/opt/SUNWspro/bin/dmake' # env|grep MAKE MAKE=/opt/SUNWspro/bin/dmake # make all 2>&1|tail -20 source='check_mrtgtraf.c' object='check_mrtgtraf.o' libtool=no \ depfile='.deps/check_mrtgtraf.Po' tmpdepfile='.deps/check_mrtgtraf.TPo' \ depmode=none /bin/bash ../depcomp \ /opt/SUNWspro/bin/cc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -I. . -I../lib -I../intl -I/usr/local/ssl/include/openssl -g -c check_mrtgtraf.c zecke --> Job output source='check_http.c' object='check_http.o' libtool=no \ depfile='.deps/check_http.Po' tmpdepfile='.deps/check_http.TPo' \ depmode=none /bin/bash ../depcomp \ /opt/SUNWspro/bin/cc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -I. . -I../lib -I../intl -I/usr/local/ssl/include/openssl -g -c check_http.c "check_http.c", line 50: cannot find include file: "check_http.c", line 51: cannot find include file: "check_http.c", line 52: cannot find include file: "check_http.c", line 53: cannot find include file: "check_http.c", line 54: cannot find include file: "check_http.c", line 55: cannot find include file: "check_http.c", line 56: cannot find include file: cc: acomp failed for check_http.c *** Error code 2 dmake: Fatal error: Command failed for target `check_http.o' Waiting for 1 job to finish Which is daft as I can find the complained about header files, just in the path I separately supplied. # find . -type f -name Makefile|xargs grep ^CPPFLAGS ./intl/Makefile:CPPFLAGS = -I/usr/local/ssl/include/openssl ./lib/Makefile:CPPFLAGS = -I/usr/local/ssl/include/openssl ./m4/Makefile:CPPFLAGS = -I/usr/local/ssl/include/openssl ./plugins/Makefile:CPPFLAGS = -I/usr/local/ssl/include/openssl ./plugins-scripts/Makefile:CPPFLAGS = -I/usr/local/ssl/include/openssl ./Makefile:CPPFLAGS = -I/usr/local/ssl/include/openssl # ll /usr/local/ssl/include/openssl/{rsa,crypto,x509,pem,ssl,err,rand} .h -rw-r--r-- 1 bin bin 15804 Jan 25 14:23 /usr/local/ssl/include/openssl/crypto.h -rw-r--r-- 1 bin bin 10814 Jan 25 14:23 /usr/local/ssl/include/openssl/err.h -rw-r--r-- 1 bin bin 24094 Jan 25 14:23 /usr/local/ssl/include/openssl/pem.h -rw-r--r-- 1 bin bin 4937 Jan 25 14:23 /usr/local/ssl/include/openssl/rand.h -rw-r--r-- 1 bin bin 14156 Jan 25 14:23 /usr/local/ssl/include/openssl/rsa.h -rw-r--r-- 1 bin bin 64535 Jan 25 14:23 /usr/local/ssl/include/openssl/ssl.h -rw-r--r-- 1 bin bin 46492 Jan 25 14:23 /usr/local/ssl/include/openssl/x509.h Isn't Forte cc honouring CPPFLAGS in the end? I'll have to see if the manpages of that thing got installed... -- Ralph Grothe (GBII1Gr) IT Dienstleistungszentrum Berlin Berliner Strasse 112-115 D-10713 Berlin Phone: +49 30 9012 6481 Fax: +49 30 9012 3151 ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From robmossrm at aol.com Tue Jul 19 14:21:45 2005 From: robmossrm at aol.com (Rob Moss) Date: Tue, 19 Jul 2005 13:21:45 +0100 Subject: Nagios Plugins build under SPARC Solaris8 with SUNWspro CC fails In-Reply-To: <6B893C5F2902D311A23F0090272854FB0575B771@litex001.lit.verwalt-berlin.de> References: <6B893C5F2902D311A23F0090272854FB0575B771@litex001.lit.verwalt-berlin.de> Message-ID: <42DCF059.5010809@aol.com> Hi, HTH Cheers Ralph.Grothe at itdz-berlin.de wrote: > This is how I ran configure > > # CC=/opt/SUNWspro/bin/cc > CPPFLAGS=-I/usr/local/ssl/include/openssl ./configure > --with-nagios-user=informix --with-nagios-group=informix > --with-openssl=/usr/local/ssl --with-ping-command=/usr/sbin/ping ... > > # make all 2>&1|tail -20 > source='check_mrtgtraf.c' object='check_mrtgtraf.o' libtool=no \ > depfile='.deps/check_mrtgtraf.Po' > tmpdepfile='.deps/check_mrtgtraf.TPo' \ > depmode=none /bin/bash ../depcomp \ > /opt/SUNWspro/bin/cc > -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H > -I. -I. -I.. -I. > . -I../lib -I../intl -I/usr/local/ssl/include/openssl -g -c > check_mrtgtraf.c > zecke --> Job output > source='check_http.c' object='check_http.o' libtool=no \ > depfile='.deps/check_http.Po' tmpdepfile='.deps/check_http.TPo' \ > depmode=none /bin/bash ../depcomp \ > /opt/SUNWspro/bin/cc > -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H > -I. -I. -I.. -I. > . -I../lib -I../intl -I/usr/local/ssl/include/openssl -g -c > check_http.c > "check_http.c", line 50: cannot find include file: > > "check_http.c", line 51: cannot find include file: > > "check_http.c", line 52: cannot find include file: > > "check_http.c", line 53: cannot find include file: > > "check_http.c", line 54: cannot find include file: > > "check_http.c", line 55: cannot find include file: > > "check_http.c", line 56: cannot find include file: > > cc: acomp failed for check_http.c > *** Error code 2 > dmake: Fatal error: Command failed for target `check_http.o' > Waiting for 1 job to finish > The --with-openssl=/usr/local/ssl is correct, but I think the -I/usr/local/ssl/include/openssl in the CFLAGS is overriding the correct flag and causing an error. Have you tried without specifying the -I/usr/local/ssl/include/openssl ?? The compile process automatically searches for /include so -I/usr/local will automatically use /usr/local/include etc. Cheers rob. ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dave at notss.com Tue Jul 19 14:26:38 2005 From: dave at notss.com (Dave Ewall) Date: Tue, 19 Jul 2005 08:26:38 -0400 Subject: check_email_loop.pl problem fixed Message-ID: <42DCF17E.5040002@notss.com> I found an issue with the check_email_loop.pl script that I saw one or two other people posting about a few months ago, so I thought I'd share. I was using it on my mail system for a while without problems, and then I moved it to the new system that we set up, and it started to show lost emails. I searched the mailing lists, to no avail. The reason was that it was sending emails, and THEN checking for the previous email sent. The issue comes up where it removes all of the emails while it's checking for the email that was sent by the previous run. This assumes that it takes longer for the email that was just sent to get to its destination than it does for the script to then check for previously sent emails. The fix is to send the email after the emails from the previous runs are checked, and before you flush out the state file. I moved lines 104-116 to line 149 (in the version that was obtained by nagios-plugins-1.4-beta1), and the problem went away. In the previous email system, we had two mail servers in front of the final destination mail server, so it took a few seconds (at best) for the email to propogate to its mailbox. In the new system, there are two mail servers (of the same priority) that are the final destination... they didn't have to forward anything, and due to the faster hardware, the email got into the mailboxes immedately... so by sending the next email before checking for the previous emails, you end up deleting the email for the next run during the current run. -Dave ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Tue Jul 19 14:34:53 2005 From: chris at aidworld.org (Chris Wilson) Date: Tue, 19 Jul 2005 13:34:53 +0100 Subject: Nagios Plugins build under SPARC Solaris8 with SUNWspro CC fails In-Reply-To: <42DCF059.5010809@aol.com> References: <6B893C5F2902D311A23F0090272854FB0575B771@litex001.lit.verwalt-berlin.de> <42DCF059.5010809@aol.com> Message-ID: <1121776492.17025.75.camel@localhost> Hi all, > Ralph.Grothe at itdz-berlin.de wrote: > > This is how I ran configure > > > > # CC=/opt/SUNWspro/bin/cc > > CPPFLAGS=-I/usr/local/ssl/include/openssl ./configure > > --with-nagios-user=informix --with-nagios-group=informix > > --with-openssl=/usr/local/ssl --with-ping-command=/usr/sbin/ping [...] > > check_http.c > > "check_http.c", line 50: cannot find include file: > > [...] > The --with-openssl=/usr/local/ssl is correct, but I think the > -I/usr/local/ssl/include/openssl in the CFLAGS is overriding the > correct flag and causing an error. I would try "-I/usr/local/ssl/include" instead, as check_http seems to assume that the OpenSSL header files will be in a subdirectory called "openssl" of the include path. Cheers, Chris. -- (aidworld) chris wilson | chief engineer (chris at aidworld.org) ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe at itdz-berlin.de Tue Jul 19 14:54:03 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Tue, 19 Jul 2005 14:54:03 +0200 Subject: Nagios Plugins build under SPARC Solaris8 with SUNWspro CC fails Message-ID: <6B893C5F2902D311A23F0090272854FB0575B772@litex001.lit.verwalt-berlin.de> Hi Rob, I noticed that accidentally the separately mounted filesystem /usr/local/src got full during the build. Luckilly it was on an SDS volume set up as softpartition so that I could growfs it. I reran make distclean and reconfigured, this time disabling the openssl stuff altogether. So there should be no need for the blooming compiler to search for such header files. # CC=/opt/SUNWspro/bin/cc ./configure --with-nagios-user=informix --with-nagios-group=informix --disable-openssl --with-ping-command=/usr/sbin/ping This time my "make all" got a bit further, up to check_icmp (ok, if I get check_ping this time working, opposed to my broken check_ping build on HPUX, I can ignore that, besides this is not a Nagios server, so there should be little need for this node to ping anything). Here's the tail where cc aborted /opt/SUNWspro/bin/cc -g -L. -o check_procs check_procs.o utils.o ../lib/libnagiosplug.a ../lib/li bcoreutils.a popen.o ../intl/libintl.a -lgen -lsocket zecke --> Job output /opt/SUNWspro/bin/cc -g -L. -o check_icmp check_icmp.o ../intl/libintl.a -lgen -lsocket ild: (undefined symbol) gethostbyname -- referenced in the text segment of check_icmp.o ild: (undefined symbol) inet_addr -- referenced in the text segment of check_icmp.o ild: (undefined symbol) inet_ntoa -- referenced in the text segment of check_icmp.o *** Error code 5 dmake: Fatal error: Command failed for target `check_icmp' Current working directory /usr/local/src/nagios-plugins-1.4/plugins Waiting for 1 job to finish zecke --> Job output /opt/SUNWspro/bin/cc -g -L. -o check_procs check_procs.o utils.o ../lib/libnagiosplug.a ../lib/li bcoreutils.a popen.o ../intl/libintl.a -lgen -lsocket *** Error code 1 dmake: Fatal error: Command failed for target `all-recursive' Current working directory /usr/local/src/nagios-plugins-1.4 *** Error code 1 dmake: Fatal error: Command failed for target `all' [root at zecke:/usr/local/src/nagios-plugins-1.4] # df -k . Filesystem kbytes used avail capacity Mounted on /dev/md/dsk/d103 342255 254652 59514 82% /usr/local/src Ok, I got enough check_* binaries compiled (the important ones for me being check_disk, check_procs, check_load) # ls -F plugins|grep \*\$ check_dhcp* check_disk* check_dummy* check_http* check_load* check_mrtg* check_mrtgtraf* check_nwstat* check_overcr* check_ping* check_procs* check_real* check_smtp* check_ssh* check_tcp* check_time* check_udp* check_ups* check_users* negate* urlize* Therefore I think I can get along with simply copying them manually into place # mkdir -m 0644 -p /usr/local/nagios/libexec # (cd plugins && cp $(ls -F|grep \*\$|tr -d \*) /usr/local/nagios/libexec/) Let's hope they are not broken. Now I need to build the nrpe daemon. Since I'm almost dead sure that this will start yet another debugging frenzy I'll be back soon to ask for further help... > -----Original Message----- > From: Rob Moss [mailto:robmossrm at aol.com] > Sent: Tuesday, July 19, 2005 2:22 PM > To: Ralph.Grothe at itdz-berlin.de > Cc: nagiosplug-help-admin at lists.sourceforge.net; > nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Nagios Plugins build under SPARC Solaris8 > with SUNWspro CC fails > > > Hi, > > HTH > Cheers > > Ralph.Grothe at itdz-berlin.de wrote: > > > > This is how I ran configure > > > > # CC=/opt/SUNWspro/bin/cc > > CPPFLAGS=-I/usr/local/ssl/include/openssl ./configure > > --with-nagios-user=informix --with-nagios-group=informix > > --with-openssl=/usr/local/ssl --with-ping-command=/usr/sbin/ping > > ... > > > > > # make all 2>&1|tail -20 > > source='check_mrtgtraf.c' object='check_mrtgtraf.o' libtool=no \ > > depfile='.deps/check_mrtgtraf.Po' > > tmpdepfile='.deps/check_mrtgtraf.TPo' \ > > depmode=none /bin/bash ../depcomp \ > > /opt/SUNWspro/bin/cc > > -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H > > -I. -I. -I.. -I. > > . -I../lib -I../intl -I/usr/local/ssl/include/openssl -g -c > > check_mrtgtraf.c > > zecke --> Job output > > source='check_http.c' object='check_http.o' libtool=no \ > > depfile='.deps/check_http.Po' tmpdepfile='.deps/check_http.TPo' \ > > depmode=none /bin/bash ../depcomp \ > > /opt/SUNWspro/bin/cc > > -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H > > -I. -I. -I.. -I. > > . -I../lib -I../intl -I/usr/local/ssl/include/openssl -g -c > > check_http.c > > "check_http.c", line 50: cannot find include file: > > > > "check_http.c", line 51: cannot find include file: > > > > "check_http.c", line 52: cannot find include file: > > > > "check_http.c", line 53: cannot find include file: > > > > "check_http.c", line 54: cannot find include file: > > > > "check_http.c", line 55: cannot find include file: > > > > "check_http.c", line 56: cannot find include file: > > > > cc: acomp failed for check_http.c > > *** Error code 2 > > dmake: Fatal error: Command failed for target `check_http.o' > > Waiting for 1 job to finish > > > > The --with-openssl=/usr/local/ssl is correct, but I think the > -I/usr/local/ssl/include/openssl in the CFLAGS is overriding the > correct flag and causing an error. > > Have you tried without specifying the > -I/usr/local/ssl/include/openssl ?? > > The compile process automatically searches for /include so > -I/usr/local will automatically use /usr/local/include etc. > > Cheers > rob. > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Tue Jul 19 15:00:08 2005 From: emartine at bsd.uchicago.edu (Eduardo Martinez) Date: Tue, 19 Jul 2005 08:00:08 -0500 Subject: check_nmap.py error code Message-ID: <42DCF958.3060407@bsd.uchicago.edu> I am having problems using the check_nmap.py Running the command manually gives me the following: $>./check_nmap.py -H localhost --port 22,80 nmap program failed with code 256 $>./check_nmap.py -H 192.168.2.4 --port 22,80 nmap program failed with code 256 No firewall on either test box. If I run nmap on its own it works fine. The path to nmap is correct. Anyone know what this is and how to correct it? I am running two RHAS4 systems. Thank you miuch, -Eduardo ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ml at winfix.IT Tue Jul 19 15:06:12 2005 From: ml at winfix.IT (Jo) Date: Tue, 19 Jul 2005 15:06:12 +0200 Subject: check_email_loop.pl problem fixed In-Reply-To: <42DCF17E.5040002@notss.com> References: <42DCF17E.5040002@notss.com> Message-ID: <42DCFAC4.9040402@winfix.IT> Dave Ewall wrote: > I found an issue with the check_email_loop.pl script that I saw one or > two other people posting about a few months ago, so I thought I'd share. > > I was using it on my mail system for a while without problems, and > then I moved it to the new system that we set up, and it started to > show lost emails. I searched the mailing lists, to no avail. > > The reason was that it was sending emails, and THEN checking for the > previous email sent. The issue comes up where it removes all of the > emails while it's checking for the email that was sent by the previous > run. This assumes that it takes longer for the email that was just > sent to get to its destination than it does for the script to then > check for previously sent emails. > > The fix is to send the email after the emails from the previous runs > are checked, and before you flush out the state file. > > I moved lines 104-116 to line 149 (in the version that was obtained by > nagios-plugins-1.4-beta1), and the problem went away. > > In the previous email system, we had two mail servers in front of the > final destination mail server, so it took a few seconds (at best) for > the email to propogate to its mailbox. In the new system, there are > two mail servers (of the same priority) that are the final > destination... they didn't have to forward anything, and due to the > faster hardware, the email got into the mailboxes immedately... so by > sending the next email before checking for the previous emails, you > end up deleting the email for the next run during the current run. > > -Dave Hi Dave, That's great work. I believe I have been bitten by this bug too. Thanks for fixing it. Jo ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From olivier.boissard at cerene.fr Tue Jul 19 16:07:30 2005 From: olivier.boissard at cerene.fr (Olivier Boissard) Date: Tue, 19 Jul 2005 16:07:30 +0200 Subject: check smtp with authentication In-Reply-To: <20050719033452.3957812F12@sc8-sf-spam2.sourceforge.net> References: <20050719033452.3957812F12@sc8-sf-spam2.sourceforge.net> Message-ID: <42DD0922.4050709@cerene.fr> Hello I use actually the check_smtp plugin to monitor a (remote) mail server. I would like to check if a specific email account on this server is still valid. (as if I send a message unsing this account) Does such a script exist ? olivier ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Tue Jul 19 16:36:30 2005 From: marc at ena.com (Marc Powell) Date: Tue, 19 Jul 2005 09:36:30 -0500 Subject: Nagios Plugins build under SPARC Solaris8 with SUNWspro CC fails Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Ralph.Grothe at itdz-berlin.de > Sent: Tuesday, July 19, 2005 7:00 AM > To: nagiosplug-help-admin at lists.sourceforge.net; nagios- > users at lists.sourceforge.net > Subject: [Nagios-users] Nagios Plugins build under SPARC Solaris8 with > SUNWspro CC fails > > Hello again, > > . -I../lib -I../intl -I/usr/local/ssl/include/openssl -g -c > check_http.c > "check_http.c", line 50: cannot find include file: > > "check_http.c", line 51: cannot find include file: > [snip] > cc: acomp failed for check_http.c > *** Error code 2 > dmake: Fatal error: Command failed for target `check_http.o' > Waiting for 1 job to finish > > > > Which is daft as I can find the complained about header files, > just in the path I separately supplied. > > # ll > /usr/local/ssl/include/openssl/{rsa,crypto,x509,pem,ssl,err,rand} > .h > -rw-r--r-- 1 bin bin 15804 Jan 25 14:23 > /usr/local/ssl/include/openssl/crypto.h [snip] > > > Isn't Forte cc honouring CPPFLAGS in the end? It looks like it is but you're specifying the wrong path to openssl. Notice that it's looking for 'openssl/crypto.h', which in your case would be in the path '/usr/local/ssl/include/openssl/openssl/crypto.h'. Try using 'CPPFLAGS=-I/usr/local/ssl/include/'. -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From robmossrm at aol.com Tue Jul 19 17:37:02 2005 From: robmossrm at aol.com (Rob Moss) Date: Tue, 19 Jul 2005 16:37:02 +0100 Subject: Nagios Plugins build under SPARC Solaris8 with SUNWspro CC fails In-Reply-To: <6B893C5F2902D311A23F0090272854FB0575B772@litex001.lit.verwalt-berlin.de> References: <6B893C5F2902D311A23F0090272854FB0575B772@litex001.lit.verwalt-berlin.de> Message-ID: <42DD1E1E.1010503@aol.com> Replies embedded >I reran make distclean and reconfigured, this time disabling the >openssl stuff altogether. >So there should be no need for the blooming compiler to search >for such header files. > > Okay, but check_http will not be able to check https:// connections, and nrpe won't use secure connections. >Here's the tail where cc aborted > > >/opt/SUNWspro/bin/cc -g -L. -o check_procs check_procs.o >utils.o ../lib/libnagiosplug.a ../lib/libcoreutils.a popen.o ../intl/libintl.a -lgen -lsocket >zecke --> Job output >/opt/SUNWspro/bin/cc -g -L. -o check_icmp check_icmp.o ../intl/libintl.a -lgen -lsocket >ild: (undefined symbol) gethostbyname -- referenced in the text segment of check_icmp.o >ild: (undefined symbol) inet_addr -- referenced in the text segment of check_icmp.o >ild: (undefined symbol) inet_ntoa -- referenced in the text segment of check_icmp.o >*** Error code 5 >dmake: Fatal error: Command failed for target `check_icmp' >Current working directory >/usr/local/src/nagios-plugins-1.4/plugins >Waiting for 1 job to finish >zecke --> Job output >/opt/SUNWspro/bin/cc -g -L. -o check_procs check_procs.o >utils.o ../lib/libnagiosplug.a ../lib/libcoreutils.a popen.o ../intl/libintl.a -lgen -lsocket >*** Error code 1 >dmake: Fatal error: Command failed for target `all-recursive' >Current working directory /usr/local/src/nagios-plugins-1.4 >*** Error code 1 >dmake: Fatal error: Command failed for target `all' >[root at zecke:/usr/local/src/nagios-plugins-1.4] > > If I am right, then it looks like the problem may have started further above where check_icmp.c was compiled to the check_icmp.o object, check that it has the correct -lsocket and -lnsl linker flags supplied. The error you are seeing is where the check_icmp.o object is linked against libraries and compiled as an executable. Looks like some -l linker flags haven't been supplied. I may be wrong, but a similar problem happened with nagios-plugins-1.4 on Sol 8 (with gcc). Cheers rob. ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Tue Jul 19 18:00:24 2005 From: tdondich at gmail.com (Taylor Dondich) Date: Tue, 19 Jul 2005 09:00:24 -0700 Subject: Looking for help to develop a statusmap replacement Message-ID: <3d2eb72a05071909001e25d49a@mail.gmail.com> Hi all, you may know me as the creator of Fruity, the popular web based nagios configuration tool. Well, I've been developing an alternative to the Nagios CGI interface (which is pretty much complete), and it's looking great! However, I want to approach the statusmap problems with a completely different direction. However, with my current knowledge based solely in PHP and C, I cannot at this time implement it in a timely fashion. If there's anyone out there decent in Java / Swing development, and would love to work on an open source project to make Nagios more functional, please let me know! Taylor ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bitsandbytes88 at hotmail.com Tue Jul 19 18:18:40 2005 From: bitsandbytes88 at hotmail.com (Dj kavanski) Date: Tue, 19 Jul 2005 18:18:40 +0200 (CEST) Subject: check_nsca In-Reply-To: References: Message-ID: <20050719161840.E16CC4F4002@desire.netways.de> Hi All, What's the syntax for send_nsca? send_nsca -H blank.blank.com -c config file What about the data where do you tell it what the data file is? - Dj kavanski (bitsandbytes) ----------------------- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi 1[showUid]=8720 ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From andrew at profitability.net Tue Jul 19 18:19:25 2005 From: andrew at profitability.net (Andrew Cruse) Date: Tue, 19 Jul 2005 12:19:25 -0400 Subject: Monitoring i2o RAID arrays Message-ID: Has anyone come up with a good way to monitor the status of an i2o RAID array? (Adaptec's new(er) RAID controllers) I've found the check_dpti.pl plugin which works ok, but really only lets you know if the RAID goes offline. I'm looking for a way to alert if the RAID goes into degraded mode in the event of a failed drive, but is still online and functional. Thanks, Andrew ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Tue Jul 19 18:28:26 2005 From: chris at aidworld.org (Chris Wilson) Date: Tue, 19 Jul 2005 17:28:26 +0100 Subject: check_nsca In-Reply-To: <20050719161840.E16CC4F4002@desire.netways.de> References: <20050719161840.E16CC4F4002@desire.netways.de> Message-ID: <1121790505.4881.1.camel@localhost> Hi, > What's the syntax for send_nsca? I assume you do actually mean send_nsca, not check_nsca as in your subject line. > [root at www3 root]# send_nsca > [...] > Note: > This utility is used to send passive check results to the NSCA > daemon. Host and > Service check data that is to be sent to the NSCA daemon is read from > standard > input. Input should be provided in the following format (tab-delimited > unless > overriden with -d command line argument, one entry per line): > > Service Checks: > [tab][tab][tab][newline] > > Host Checks: > [tab][tab][newline] Cheers, Chris. -- (aidworld) chris wilson | chief engineer (chris at aidworld.org) ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 natecarlson.com Tue Jul 19 20:30:01 2005 From: nagios at natecarlson.com (Nate Carlson) Date: Tue, 19 Jul 2005 13:30:01 -0500 (CDT) Subject: Checking entire web page? Message-ID: Hey all, I could've sworn there was a plugin floating about that would grab a web page via HTTP, parse it, and also check all of the images and such included in the page, but can't find anything of the sort now.. has anyone seen/written such a thing? Thanks! ------------------------------------------------------------------------ | nate carlson | natecars at natecarlson.com | http://www.natecarlson.com | | depriving some poor village of its idiot since 1981 | ------------------------------------------------------------------------ ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bitsandbytes88 at hotmail.com Tue Jul 19 20:40:24 2005 From: bitsandbytes88 at hotmail.com (D Kavan) Date: Tue, 19 Jul 2005 14:40:24 -0400 Subject: send_nsca In-Reply-To: <1121790505.4881.1.camel@localhost> References: <1121790505.4881.1.camel@localhost> Message-ID: Hey Chris, I did mean send_nsca and thanks for responding. When I run ./send_nsca -H dan.imsweb.com, I keep getting time outs, even if I increase from 10 to 60. I think it's because I'm not actually sending any data. Where/how does the data get sent? Shouldn't it be something like send_nsca -H dan.imsweb.com outgoing.file? Ofcourse, I tried that, that doesn't work. the check_load plugin provides me with the infor I want to send but the reality of what's below isn't working for me. I've tried send_nsca -H dan.imsweb.com[tab]2[tab]3.00;3.00;3.00 for instance and that doesn't get sent. or just a space where [tab] is and that doesn't work. > Host Checks: > > [tab][tab][newline] >From: Chris Wilson >To: Dj kavanski >CC: Nagios Users >Subject: Re: [Nagios-users] check_nsca >Date: Tue, 19 Jul 2005 17:28:26 +0100 > >Hi, > > > What's the syntax for send_nsca? > >I assume you do actually mean send_nsca, not check_nsca as in your >subject line. > > > [root at www3 root]# send_nsca > > [...] > > Note: > > This utility is used to send passive check results to the NSCA > > daemon. Host and > > Service check data that is to be sent to the NSCA daemon is read from > > standard > > input. Input should be provided in the following format (tab-delimited > > unless > > overriden with -d command line argument, one entry per line): > > > > Service Checks: > > >[tab][tab][tab][newline] > > > > Host Checks: > > [tab][tab][newline] > >Cheers, Chris. >-- >(aidworld) chris wilson | chief engineer (chris at aidworld.org) > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Tue Jul 19 21:50:45 2005 From: marc at ena.com (Marc Powell) Date: Tue, 19 Jul 2005 14:50:45 -0500 Subject: send_nsca Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of D Kavan > Sent: Tuesday, July 19, 2005 1:40 PM > To: chris at aidworld.org > Cc: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] send_nsca > > Hey Chris, > I did mean send_nsca and thanks for responding. > > When I run ./send_nsca -H dan.imsweb.com, I keep getting time outs, even > if > I increase from 10 to 60. I think it's because I'm not actually sending > any > data. Where/how does the data get sent? > Shouldn't it be something like send_nsca -H dan.imsweb.com outgoing.file? > Ofcourse, I tried that, that doesn't work. > the check_load plugin provides me with the infor I want to send but the > reality of what's below isn't working for me. I've tried send_nsca -H > dan.imsweb.com[tab]2[tab]3.00;3.00;3.00 for instance and that doesn't get > sent. or just a space where [tab] is and that doesn't work. > > Host Checks: > > > [tab][tab][newline] Read the documentation on Distributed Monitoring at http://nagios.sourceforge.net/docs/1_0/distributed.html and pay specific attention to how it's done in the example submit_check_result script. send_nsca is expecting the data to come in via STDIN, not command line. While that document is written around using distributed instances of nagios, the bulk of it still applies to the way you're trying to submit checks. I still think you're making this more difficult than it needs to be. If you can connect to the remote host you're monitoring from your nagios host directly then you should be looking at NRPE or check-by-ssh, not NSCA. -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.Rancier at Sensis.com Tue Jul 19 22:11:36 2005 From: Jeff.Rancier at Sensis.com (Rancier, Jeff) Date: Tue, 19 Jul 2005 16:11:36 -0400 Subject: Nagios Plugins build under SPARC Solaris8 with SUNWspro CC fails Message-ID: <959DF48BD1458D4C8DBFDAC8DF80D7F702663AFE@europa.ats.sensis.com> I recall a few weeks ago, having the same issue with check_icmp, the owner made some Solaris mods. Here's what I was sent: Jeff | -----Original Message----- | From: Rob Moss [mailto:robmossrm at aol.com] | Sent: Tuesday, July 19, 2005 11:37 AM | To: Ralph.Grothe at itdz-berlin.de | Cc: nagiosplug-help-admin at lists.sourceforge.net; | nagios-users at lists.sourceforge.net | Subject: Re: [Nagios-users] Nagios Plugins build under SPARC | Solaris8 with SUNWspro CC fails | | | Replies embedded | | >I reran make distclean and reconfigured, this time disabling the | >openssl stuff altogether. | >So there should be no need for the blooming compiler to search | >for such header files. | > | > | Okay, but check_http will not be able to check https:// | connections, and | nrpe won't use secure connections. | | >Here's the tail where cc aborted | > | > | >/opt/SUNWspro/bin/cc -g -L. -o check_procs check_procs.o | >utils.o ../lib/libnagiosplug.a ../lib/libcoreutils.a popen.o | ../intl/libintl.a -lgen -lsocket | >zecke --> Job output | >/opt/SUNWspro/bin/cc -g -L. -o check_icmp check_icmp.o | ../intl/libintl.a -lgen -lsocket | >ild: (undefined symbol) gethostbyname -- referenced in the | text segment of check_icmp.o | >ild: (undefined symbol) inet_addr -- referenced in the text | segment of check_icmp.o | >ild: (undefined symbol) inet_ntoa -- referenced in the text | segment of check_icmp.o | >*** Error code 5 | >dmake: Fatal error: Command failed for target `check_icmp' | >Current working directory | >/usr/local/src/nagios-plugins-1.4/plugins | >Waiting for 1 job to finish | >zecke --> Job output | >/opt/SUNWspro/bin/cc -g -L. -o check_procs check_procs.o | >utils.o ../lib/libnagiosplug.a ../lib/libcoreutils.a popen.o | ../intl/libintl.a -lgen -lsocket | >*** Error code 1 | >dmake: Fatal error: Command failed for target `all-recursive' | >Current working directory /usr/local/src/nagios-plugins-1.4 | >*** Error code 1 | >dmake: Fatal error: Command failed for target `all' | >[root at zecke:/usr/local/src/nagios-plugins-1.4] | > | > | | If I am right, then it looks like the problem may have | started further | above where check_icmp.c was compiled to the check_icmp.o | object, check | that it has the correct -lsocket and -lnsl linker flags supplied. | | The error you are seeing is where the check_icmp.o object is linked | against libraries and compiled as an executable. Looks like some | -l linker flags haven't been supplied. | | I may be wrong, but a similar problem happened with | nagios-plugins-1.4 | on Sol 8 (with gcc). | | Cheers | rob. | | | | ------------------------------------------------------- | SF.Net email is sponsored by: Discover Easy Linux Migration Strategies | from IBM. Find simple to follow Roadmaps, straightforward articles, | informative Webcasts and more! Get everything you need to get up to | speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click | _______________________________________________ | Nagios-users mailing list | Nagios-users at lists.sourceforge.net | https://lists.sourceforge.net/lists/listinfo/nagios-users | ::: 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: check_icmp-2005-03-30.tar Type: application/octet-stream Size: 51200 bytes Desc: not available URL: From tstocking at itgroundwork.com Tue Jul 19 22:25:36 2005 From: tstocking at itgroundwork.com (tstocking at itgroundwork.com) Date: Tue, 19 Jul 2005 13:25:36 -0700 Subject: Out of the office for a bit... Message-ID: Hello, and thanks for your email. This is an automated response, letting you know that I'll be out of the office until August 1st, 2005. If you need to get in touch with me, and you don't have my other contact information, please call 1 510 899-7700, and someone will take a message or put you in touch with me. Have a great day, Thomas Thomas Stocking CTO, GroundWork Open Source Solutions, Inc. ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From peter at henet.dk Tue Jul 19 22:32:41 2005 From: peter at henet.dk (=?ISO-8859-1?Q?Peter_Kr=FCpl?=) Date: Tue, 19 Jul 2005 22:32:41 +0200 Subject: Nagios 2.03b and firefox.... :( References: <00db01c58bf5$50d8a1b0$01fea8c0@itss.auckland.ac.nz> Message-ID: <42DD6369.3000405@henet.dk> Well seems like i'm out of luck on this one, but thanks for te answers to all of you. -Peter Steve Shipway wrote: >>I have a very annouying problem, each time i press the rerfresh button >>in firefox, >>it reloads the index.html file. This results in the main window going >>back to the information >>saying "Welcome to nagios if you just installed.....". >> >>This problem does not appear with IE, and nagios 1.1 with firefox. >> >> > >This is because you are refreshing the page, not the single frame, and is >the 'correct' behaviour (although, I agree, not what you want to happen in >this case). Actually, I get this behaviour with MSIE as well, but you >probably avoid it because you have something cached or else IE is defaulting >to refresh the active frame? > >Anyway, in Firefox, you can right-clik and select 'This frame/Reload' which >will just refresh the individual frame (and you can do the same in IE as >well). > >Another possibility is to change the nagios/index.html page so that the >initial page goes to your preferred main window. > >Steve > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From amejia at jetnetla.com Wed Jul 20 01:12:48 2005 From: amejia at jetnetla.com (Alejandro Mejia Evertsz) Date: Tue, 19 Jul 2005 17:12:48 -0600 Subject: Can't send notifications using sms_client Message-ID: Hi list! I'm trying to send notifications via sms_client to a pager. The problem I'm having is while nagios tries to send it using sms_client as "non-root" user. I had this error: [24449] ERROR: Cannot create lockfile /etc/smslock So I changed the config to store the lockfile in a different path with enough permissions for nagios user to modify it. Then I encountered problems with this: [26110] ERROR: Cannot create lockfile /var/lock/LCK..cuaa0 So I also changed the permissions. Now I'm stucked on this: [26390] WARNING: MODEM: Failed to open /dev/cuaa0 How can I make nagios to have "permissions over the modem"? Any sugestions or alternate configurations to do what i'm trying to do? Thanks in advance. Alejandro Mej?a Evertsz Departamento T?cnico 2 Av. 2-09 zona 9 Edif. Plaza 2-11 2do. Nivel Tel. +502 2334-7669 al 71 Fax. +502 2334-8151 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: logojetnet.jpg Type: image/jpeg Size: 2440 bytes Desc: not available URL: From pla at softflare.com Wed Jul 20 01:52:52 2005 From: pla at softflare.com (Paul L. Allen) Date: Wed, 20 Jul 2005 00:52:52 +0100 Subject: send_nsca In-Reply-To: References: Message-ID: <20050719235252.18304.qmail@mullet.softflare.net> Marc Powell writes: > If you can connect to the remote host you're monitoring from your > nagios host directly then you should be looking at NRPE or check-by-ssh, > not NSCA. Sorry, but I dispute that claim. All three methods have advantages and disadvantages which may be important in specific circumstances. I'll discuss their general advantages and disadvantages even though you were responding to the specific case where the monitored machines were directly reachable (all of them have advantages and disadvantages even in that situation). NRPE's configuration files do not remotely resemble their counterparts on nagios. If you're using NRPE to have a firewall check machines behind the firewall then NRPE becomes a complete pain in the nether regions. NRPE's security depends entirely on checking the IP address of the monitoring server, and NRPE security is totally incompatible with a monitoring server which is on dynamic or semi-static IP (I won't mention any pointy-haired bosses I work for by name, or detail their clueless ukases, but our monitoring server is on semi-static IP which means NRPE would have no security). NRPE scales badly (even if it's no worse than linear, eventually you outstrip the capability of your monitoring host). Check_by_ssh works but, unless you are very clever, the checks of remote machines using check_by_ssh cannot be automatically converted from direct equivalents. And as Andreas has pointed out, there are security issues if somebody compromises your nagios server (but as I pointed out, it's more likely that the monitored machines are vulnerable than the monitoring machine). Perhaps a bigger problem is the protocol overhead of ssh and the load it imposes at both ends. Check_by_ssh scales worse than NRPE because it has more overhead. NSCA works, but you're stuck with passive monitoring. Get things wrong and you'll get lots of false alerts because of stale check results. However, the services file on the remote monitor can be processed very easily by a script to produce the relevant chunk of the services file on the master nagios server. NSCA scales a lot better than NRPE or check_by_ssh. NSCA has its own encryption mechanisms so it's as secure (if you choose the right encryption method) as check_by_ssh and far more secure than NRPE. NSCA can cope with a monitoring host that has dynamic or semi-static IP provided you have some sort of dynamic DNS way of referring to the monitoring host. NSCA is far less of a hassle to deal with machines behind firewalls than NRPE or check_by_ssh. If you have more than one monitored domain which you wish to have separate passwords then you have to run multiple instances of NRPE on different ports. There are advantages and disadvantages to all three mechanisms (and I doubt I've listed all of the advantages and disadvantages for any of them). Which one is best for you is a matter of what weight you give to those advantages and disadvantages in your particular circumstances. To say that one should use check_by_ssh or NRPE simply because one can connect to the monitored hosts directly, is (IMHO) incorrect. If you're checking thousands of hosts then you probably need the scalability of NSCA. If you're checking hosts behind firewalls without direct connections then the complications of using NRPE may be too much work if there are lots of hosts to monitor. If any of the security concerns Andreas raised affect you then check_by_ssh is not an option. NSCA is my preferred option because in my circumstances it's the least worst of the three for several reasons. Horses for courses. In most of the situations I can conceive of, NSCA is the best (least worst) choice. But I know that the situations I can conceive of are limited by my imagination, by what I have needed to do myself, and by what I have read of the needs of others. I would not (unless drunk or otherwise incapacitated - which happens frequently) specify any of the three options as being THE correct way to do things in a given situation. If sober enough I would explain that there are tradeoffs and whilst it might appear to me from the limited description of the situation posted here that one of those seems better than the others that the decision has to be made by the person involved with full knowledge of the situation and the tradeoffs. Hosts being directly reachable is just one of that factors that needs to be considered. -- Paul Allen Softflare Support ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From djimenez at membersourcecu.org Tue Jul 19 20:54:18 2005 From: djimenez at membersourcecu.org (Daniel Jimenez) Date: Tue, 19 Jul 2005 13:54:18 -0500 Subject: Crystal Reports Message-ID: <83D26BBCAEEB274FA328FE533EF042FE20D0DF@exchange.ptt.org> Does anyone have any written crystal reports for Nagios? I'd like to have an example to take a look at. Perhaps we can swap reports. TIA, Daniel Jimenez MemberSource Credit Union Information Systems Analyst 713-244-1122 voice 713-572-8940 fax djimenez at membersourcecu.org ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Wed Jul 20 02:08:20 2005 From: pla at softflare.com (Paul L. Allen) Date: Wed, 20 Jul 2005 01:08:20 +0100 Subject: send_nsca In-Reply-To: References: Message-ID: <20050720000821.21513.qmail@mullet.softflare.net> D Kavan writes: > When I run ./send_nsca -H dan.imsweb.com, I keep getting time outs, even > if I increase from 10 to 60. I think it's because I'm not actually > sending any data. send_nsca is NOT a plugin and its usage does NOT follow the plugin conventions. What made you think -H was a sensible option? > Shouldn't it be something like send_nsca -H dan.imsweb.com outgoing >.file? Reading the documentation would tell you that it should not. Chris already told you how to invoke NSCA, although he didn't tell you how to configure it so that it will work when you invoke it. When you find the documentation that tells you what Chris told you, you'll know the rest of the story too. When all else fails, read the documentation... -- Paul Allen Softflare Support ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From askarali at beaconet.net Wed Jul 20 06:33:30 2005 From: askarali at beaconet.net (Askar Ali) Date: Wed, 20 Jul 2005 09:33:30 +0500 Subject: uptime script Message-ID: <42DDD41A.1070106@beaconet.net> hi, Recently someone on the list talking about creating a script for host uptime using cut, sed. Would *you* like to share the script with me ? :) regards askar ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From askarali at beaconet.net Wed Jul 20 08:16:24 2005 From: askarali at beaconet.net (Askar Ali) Date: Wed, 20 Jul 2005 11:16:24 +0500 Subject: uptime script In-Reply-To: <42DDE718.3040608@perso.be> References: <42DDD41A.1070106@beaconet.net> <42DDE718.3040608@perso.be> Message-ID: <42DDEC38.1010401@beaconet.net> Frederik Vanhee wrote: > Askar Ali wrote: > >> hi, >> >> Recently someone on the list talking about creating a script >> for host uptime using cut, sed. Would *you* like to share the script >> with me ? :) >> >> >> regards >> >> askar >> >> >> >> ------------------------------------------------------- >> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies >> from IBM. Find simple to follow Roadmaps, straightforward articles, >> informative Webcasts and more! Get everything you need to get up to >> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. ::: Messages without supporting info will risk >> being sent to /dev/null >> > Here you are ! Open with wordpad > I'm not a programmer, so don't expect too much of it. > >------------------------------------------------------------------------ > >UPTIME=`uptime` > >if [ "`echo $UPTIME | grep day`" != "" ] > then > UPDAYS=`echo $UPTIME | awk '{ print $2 " " $3 " " $4 " " $5 }'` > if [ "`echo $UPTIME | grep min`" != "" ] > then > UPDAYS=`echo $UPTIME | awk '{ print $2 " " $3 " " $4 " 0:" $5 }'` > fi > PLUG_OUT="UPTIME OK : $UPDAYS machine not recently rebooted" > echo $PLUG_OUT > else > if [ "$UPTIME" = "" ] > then > PLUG_OUT="UPTIME CRITICAL : error during test execution" > echo $PLUG_OUT > exit 2 > else > UPHOURS=`echo $UPTIME | awk '{ print $2 " " $3 " " }'` > if [ "`echo $UPTIME | grep min`" != "" ] > then > UPHOURS=`echo $UPTIME | awk '{ print $2 " 0:" $3 " " }'` > fi > PLUG_OUT="UPTIME WARNING : $UPHOURS machine rebooted during last 24 hours" > echo $PLUG_OUT > exit 1 > fi > >fi > > hi Frederik Vanhee Thanks mate, hope it will work, we only interested in machine uptime thsi script look fine, I just test it on my work box, time to give a try on remote hosts regards Askar ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe at itdz-berlin.de Wed Jul 20 09:33:27 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Wed, 20 Jul 2005 09:33:27 +0200 Subject: Nagios Plugins build under SPARC Solaris8 with SUNWspro CC fails Message-ID: <6B893C5F2902D311A23F0090272854FB0575B773@litex001.lit.verwalt-berlin.de> Hi Rob, Marc, Frank et alii, I had to leave office yesterday earlier why I couldn't continue. Thus only now my feedback. Many thanks for your kind support. Because I was tired of my fruitless efforts yesterday I think I got a bit sloppy, as can be seen from creating a Nagios plugin directory with mode bits 0644 (where I meant 0755). Another such flaw was giving configure --disable-openssl where it should have been --without-openssl. So I guess it was simply ignored. But wouldn't you agree that it is rather inconsistent that configure from the nrpe tarball on the other hand looks for the --{enable|disable}-ssl switch. Very confusing. Anyway, I don't really require TLS/SSL for the Solaris managed nodes. This morning I quickly configured inetd on the Solaris box to run nrpe, and I was amazed that check* requests from my AIX Nagios server were replied instantly. $ uname -a AIX daisy 3 4 0045CB7A4C00 $ libexec/check_nrpe -H zecke -c check_total_procs PROCS OK: 119 processes Of course I only tested the preconfigured check* commands in nrpe.cfg right now, and it still requires some fine tuning. But I'm confident that at least our Solaris nodes can be monitored by Nagios. So I still have to fix the unwieldy HPUX nrpe daemon. On the Solaris boxes we run Informix instances on Veritas Cluster Server (VCS). Although I know that it is very easy to check the status of Informix DBs, and the VCS's out-of-the box Informix monitors are ashamingly simple, I wonder if someone already has come up with a check_informix or check_vcs/check_vxvm to save me the time coming up with an own custom Perl script? As you may have noticed I set up nrpe daemon to run as informix rather than a less powerful nagios user. I would rather prefer the latter for security concerns. I only chose informix to be able to check the status of Informix instances (viz. system() or exec*() of onstat, or through Perl DBI::Informix). How could that be better addressed? Is there some suexec mechanism or would one set up sudo (or RBAC in the case of Solaris)? Suggestions welcome. Frank, thanks for the hints how to overcome the compiling catch with check_icmp. I will try your suggestion, and report. Apropos, I so far haven't really understood what is expected as PING_COMMAND string to render a working check_ping binary? You have to admit that the documentation either in the Nagios docs, or in configure's help screen is more than sparse. I think the developers should have provided a terse example to make things clear to dummies like me. For instance on my Nagios Manager on AIX I defined this (because I had fping already installed, from my Mon setup, and I thought fping would perform better). [nagios at daisy:~] $ grep ^\#define\ PING_COMMAND /opt/sw/nagios-plugins-1.4/config.h #define PING_COMMAND "/usr/local/sbin/fping -q -C 3 -t 2000" [nagios at daisy:~] $ ls -l /usr/local/sbin/fping -rwsr-xr-x 1 root staff 140575 Apr 26 2004 /usr/local/sbin/fping But this config rendered a broken check_ping binary. On the other hand on the Solaris mananged node I simply chose the path to Solaris' vanilla ping (which, as you may know, without any options simply reports " is alive" to the astonishment of non-Solaris unix admins). # grep PING_COMMAND /usr/local/src/nagios-plugins-1.4/config.h #define PING_COMMAND "/usr/sbin/ping" But this doesn't work either [root at zecke:/usr/local/nagios/etc] # ../libexec/check_ping -H themis -w 1000,50% -c 2000,80% /usr/sbin/ping CRITICAL - Could not interpret output from ping command However, as said I don't really require the check_ping to be executable from the managed nodes but would be pleased to learn how its config was meant to be. Regards Ralph > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > Ralph.Grothe at itdz-berlin.de > Sent: Tuesday, July 19, 2005 2:54 PM > To: robmossrm at aol.com > Cc: nagiosplug-help-admin at lists.sourceforge.net; > nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Nagios Plugins build under SPARC Solaris8 > with SUNWspro CC fails > > > Hi Rob, > > I noticed that accidentally the separately mounted filesystem > /usr/local/src > got full during the build. > Luckilly it was on an SDS volume set up as softpartition so that > I could growfs it. > > I reran make distclean and reconfigured, this time disabling the > openssl stuff altogether. > So there should be no need for the blooming compiler to search > for such header files. > > > # CC=/opt/SUNWspro/bin/cc ./configure --with-nagios-user=informix > --with-nagios-group=informix --disable-openssl > --with-ping-command=/usr/sbin/ping > > > This time my "make all" got a bit further, up to check_icmp > (ok, if I get check_ping this time working, opposed to my broken > check_ping build on HPUX, > I can ignore that, besides this is not a Nagios server, so there > should be little need for this node > to ping anything). > > > Here's the tail where cc aborted > > > /opt/SUNWspro/bin/cc -g -L. -o check_procs check_procs.o > utils.o ../lib/libnagiosplug.a ../lib/li > bcoreutils.a popen.o ../intl/libintl.a -lgen -lsocket > zecke --> Job output > /opt/SUNWspro/bin/cc -g -L. -o check_icmp check_icmp.o > ../intl/libintl.a -lgen -lsocket > ild: (undefined symbol) gethostbyname -- referenced in the text > segment of check_icmp.o > ild: (undefined symbol) inet_addr -- referenced in the text > segment of check_icmp.o > ild: (undefined symbol) inet_ntoa -- referenced in the text > segment of check_icmp.o > *** Error code 5 > dmake: Fatal error: Command failed for target `check_icmp' > Current working directory > /usr/local/src/nagios-plugins-1.4/plugins > Waiting for 1 job to finish > zecke --> Job output > /opt/SUNWspro/bin/cc -g -L. -o check_procs check_procs.o > utils.o ../lib/libnagiosplug.a ../lib/li > bcoreutils.a popen.o ../intl/libintl.a -lgen -lsocket > *** Error code 1 > dmake: Fatal error: Command failed for target `all-recursive' > Current working directory /usr/local/src/nagios-plugins-1.4 > *** Error code 1 > dmake: Fatal error: Command failed for target `all' > [root at zecke:/usr/local/src/nagios-plugins-1.4] > # df -k . > Filesystem kbytes used avail capacity Mounted on > /dev/md/dsk/d103 342255 254652 59514 82% > /usr/local/src > > > Ok, I got enough check_* binaries compiled (the important ones > for me being check_disk, check_procs, check_load) > > # ls -F plugins|grep \*\$ > check_dhcp* > check_disk* > check_dummy* > check_http* > check_load* > check_mrtg* > check_mrtgtraf* > check_nwstat* > check_overcr* > check_ping* > check_procs* > check_real* > check_smtp* > check_ssh* > check_tcp* > check_time* > check_udp* > check_ups* > check_users* > negate* > urlize* > > > Therefore I think I can get along with simply copying them > manually into place > > # mkdir -m 0644 -p /usr/local/nagios/libexec > > # (cd plugins && cp $(ls -F|grep \*\$|tr -d \*) > /usr/local/nagios/libexec/) > > > Let's hope they are not broken. > > Now I need to build the nrpe daemon. > > Since I'm almost dead sure that this will start yet another > debugging frenzy > I'll be back soon to ask for further help... ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 20 09:55:01 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 20 Jul 2005 09:55:01 +0200 Subject: Nagios Plugins build under SPARC Solaris8 with SUNWspro CC fails In-Reply-To: <6B893C5F2902D311A23F0090272854FB0575B773@litex001.lit.verwalt-berlin.de> References: <6B893C5F2902D311A23F0090272854FB0575B773@litex001.lit.verwalt-berlin.de> Message-ID: <42DE0355.70604@op5.se> Ralph.Grothe at itdz-berlin.de wrote: > Hi Rob, Marc, Frank et alii, > > I had to leave office yesterday earlier why I couldn't continue. > > Thus only now my feedback. > > Many thanks for your kind support. > > Because I was tired of my fruitless efforts yesterday I think I > got a bit sloppy, > as can be seen from creating a Nagios plugin directory with mode > bits 0644 (where I meant 0755). > Another such flaw was giving configure --disable-openssl where it > should have been --without-openssl. > So I guess it was simply ignored. > But wouldn't you agree that it is rather inconsistent that > configure from the nrpe tarball on the other hand looks for the > --{enable|disable}-ssl switch. > Very confusing. NRPE and the plugins are completely separate sets of software. Expecting consistency between the two is like expecting HPUX to be similar to Windows. > > Although I know that it is very easy to check the status of > Informix DBs, and the VCS's out-of-the box Informix monitors are > ashamingly simple, I wonder if someone already has come up with a > check_informix or check_vcs/check_vxvm to save me the time coming > up with an own custom Perl script? > I think I've seen something about a check_informix. Google around a bit and see what pops up. > As you may have noticed I set up nrpe daemon to run as informix > rather than a less powerful nagios user. > I would rather prefer the latter for security concerns. > I only chose informix to be able to check the status of Informix > instances (viz. system() or exec*() of onstat, > or through Perl DBI::Informix). > How could that be better addressed? > Is there some suexec mechanism or would one set up sudo (or RBAC > in the case of Solaris)? > Suggestions welcome. > chown informix:nrpeuser onstat chmod 4750 onstat This won't work with DBI::Informix, although it should work nicely if you backtick onstat from perl. > > Frank, > > thanks for the hints how to overcome the compiling catch with > check_icmp. > I will try your suggestion, and report. > Latest CVS snapshot contains a bugfixed makefile for building check_icmp. If you want the latest and greatest you can visit http://oss.op5.se/nagios and download check_icmp-####-##-##.tar.gz (where ####-##-## represents a date). > Apropos, I so far haven't really understood what is expected as > PING_COMMAND string to render a working check_ping binary? > You have to admit that the documentation either in the Nagios > docs, or in configure's help screen is more than sparse. > I think the developers should have provided a terse example to > make things clear to dummies like me. > PING_COMMAND is supposed to render itself. If you use check_icmp you won't need check_ping though, so this shouldn't be an issue. > For instance on my Nagios Manager on AIX I defined this (because > I had fping already installed, from my Mon setup, > and I thought fping would perform better). > > [nagios at daisy:~] > $ grep ^\#define\ PING_COMMAND > /opt/sw/nagios-plugins-1.4/config.h > #define PING_COMMAND "/usr/local/sbin/fping -q -C 3 -t 2000" > This is completely and utterly wrong. The check_fping plugin understands the output from fping (surprise!). It is not faster than regular check_ping, because fping by default also waits 1 second between packet transmissions. check_icmp does not, so that's a better option. > [nagios at daisy:~] > $ ls -l /usr/local/sbin/fping > -rwsr-xr-x 1 root staff 140575 Apr 26 2004 > /usr/local/sbin/fping > > > But this config rendered a broken check_ping binary. > > On the other hand on the Solaris mananged node I simply chose the > path to Solaris' vanilla ping > (which, as you may know, without any options simply reports > " is alive" to the astonishment of non-Solaris unix > admins). > > > # grep PING_COMMAND /usr/local/src/nagios-plugins-1.4/config.h > #define PING_COMMAND "/usr/sbin/ping" > > > But this doesn't work either > > [root at zecke:/usr/local/nagios/etc] > # ../libexec/check_ping -H themis -w 1000,50% -c 2000,80% > /usr/sbin/ping > CRITICAL - Could not interpret output from ping command > > > However, as said I don't really require the check_ping to be > executable from the managed nodes > but would be pleased to learn how its config was meant to be. > It's meant to be autodetected. If it isn't, you probably won't be able to fix it, since the format is fairly arcane to those who doesn't intuitively understand sscanf() strings. > Regards > Ralph > > > > >>-----Original Message----- >>From: nagios-users-admin at lists.sourceforge.net >>[mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of >>Ralph.Grothe at itdz-berlin.de >>Sent: Tuesday, July 19, 2005 2:54 PM >>To: robmossrm at aol.com >>Cc: nagiosplug-help-admin at lists.sourceforge.net; >>nagios-users at lists.sourceforge.net >>Subject: RE: [Nagios-users] Nagios Plugins build under SPARC > > Solaris8 > >>with SUNWspro CC fails >> >> >>Hi Rob, >> >>I noticed that accidentally the separately mounted filesystem >>/usr/local/src >>got full during the build. >>Luckilly it was on an SDS volume set up as softpartition so > > that > >>I could growfs it. >> >>I reran make distclean and reconfigured, this time disabling > > the > >>openssl stuff altogether. >>So there should be no need for the blooming compiler to search >>for such header files. >> >> >># CC=/opt/SUNWspro/bin/cc ./configure > > --with-nagios-user=informix > >>--with-nagios-group=informix --disable-openssl >>--with-ping-command=/usr/sbin/ping >> >> >>This time my "make all" got a bit further, up to check_icmp >>(ok, if I get check_ping this time working, opposed to my > > broken > >>check_ping build on HPUX, >>I can ignore that, besides this is not a Nagios server, so > > there > >>should be little need for this node >>to ping anything). >> >> >>Here's the tail where cc aborted >> >> >>/opt/SUNWspro/bin/cc -g -L. -o check_procs check_procs.o >>utils.o ../lib/libnagiosplug.a ../lib/li >>bcoreutils.a popen.o ../intl/libintl.a -lgen -lsocket >>zecke --> Job output >>/opt/SUNWspro/bin/cc -g -L. -o check_icmp check_icmp.o >>../intl/libintl.a -lgen -lsocket >>ild: (undefined symbol) gethostbyname -- referenced in the text >>segment of check_icmp.o >>ild: (undefined symbol) inet_addr -- referenced in the text >>segment of check_icmp.o >>ild: (undefined symbol) inet_ntoa -- referenced in the text >>segment of check_icmp.o >>*** Error code 5 >>dmake: Fatal error: Command failed for target `check_icmp' >>Current working directory >>/usr/local/src/nagios-plugins-1.4/plugins >>Waiting for 1 job to finish >>zecke --> Job output >>/opt/SUNWspro/bin/cc -g -L. -o check_procs check_procs.o >>utils.o ../lib/libnagiosplug.a ../lib/li >>bcoreutils.a popen.o ../intl/libintl.a -lgen -lsocket >>*** Error code 1 >>dmake: Fatal error: Command failed for target `all-recursive' >>Current working directory /usr/local/src/nagios-plugins-1.4 >>*** Error code 1 >>dmake: Fatal error: Command failed for target `all' >>[root at zecke:/usr/local/src/nagios-plugins-1.4] >># df -k . >>Filesystem kbytes used avail capacity Mounted > > on > >>/dev/md/dsk/d103 342255 254652 59514 82% >>/usr/local/src >> >> >>Ok, I got enough check_* binaries compiled (the important ones >>for me being check_disk, check_procs, check_load) >> >># ls -F plugins|grep \*\$ >>check_dhcp* >>check_disk* >>check_dummy* >>check_http* >>check_load* >>check_mrtg* >>check_mrtgtraf* >>check_nwstat* >>check_overcr* >>check_ping* >>check_procs* >>check_real* >>check_smtp* >>check_ssh* >>check_tcp* >>check_time* >>check_udp* >>check_ups* >>check_users* >>negate* >>urlize* >> >> >>Therefore I think I can get along with simply copying them >>manually into place >> >># mkdir -m 0644 -p /usr/local/nagios/libexec >> >># (cd plugins && cp $(ls -F|grep \*\$|tr -d \*) >>/usr/local/nagios/libexec/) >> >> >>Let's hope they are not broken. >> >>Now I need to build the nrpe daemon. >> >>Since I'm almost dead sure that this will start yet another >>debugging frenzy >>I'll be back soon to ask for further help... > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sivan.deray at net-aptitude.fr Wed Jul 20 11:07:26 2005 From: sivan.deray at net-aptitude.fr (Sivan DERAY) Date: Wed, 20 Jul 2005 11:07:26 +0200 Subject: Web Interface - Accent support Message-ID: <4E13BD0442DACA4D9606CAD98924F09A45D1B1@srv-nap-atlas-1.net-aptitude.fr> Hi, The point is that i'd be fond if i could get my accent as follows : "Aucun chemin d'acc?s pour atteindre l'h?te cible" instead of "Aucun chemin d'acc??s pour atteindre l'h??te cible " Here is part of my Apache httpd.conf file : AddCharset ISO-8859-15 .iso8859-15 .latin15 AddCharset ISO-8859-1 .iso8859-1 .latin1 AddCharset ISO-8859-15 .iso8859-15 .latin9 AddCharset UTF-8 .utf8 AddCharset utf-8 .utf8 AddLanguage da .dk AddLanguage nl .fr AddLanguage en .en AddLanguage et .ee AddLanguage fr .nl AddLanguage de .de AddLanguage el .el AddLanguage he .he AddCharset ISO-8859-8 .iso8859-8 AddLanguage it .it AddLanguage ja .ja AddCharset ISO-2022-JP .jis AddLanguage kr .kr AddCharset ISO-2022-KR .iso-kr AddLanguage nn .nn AddLanguage no .no AddLanguage pl .po AddCharset ISO-8859-2 .iso-pl AddLanguage pt .pt AddLanguage pt-br .pt-br AddLanguage ltz .lu AddLanguage ca .ca AddLanguage es .es AddLanguage sv .se AddLanguage cz .cz AddLanguage ru .ru AddLanguage zh-tw .tw AddLanguage tw .tw AddCharset Big5 .Big5 .big5 AddCharset WINDOWS-1251 .cp-1251 AddCharset CP866 .cp866 AddCharset ISO-8859-5 .iso-ru AddCharset KOI8-R .koi8-r AddCharset UCS-2 .ucs2 AddCharset UCS-4 .ucs4 AddCharset ISO-8859-2 .iso8859-2 .latin2 .cen AddCharset ISO-8859-3 .iso8859-3 .latin3 AddCharset ISO-8859-4 .iso8859-4 .latin4 AddCharset ISO-8859-5 .iso8859-5 .latin5 .cyr .iso-ru AddCharset ISO-8859-6 .iso8859-6 .latin6 .arb AddCharset ISO-8859-7 .iso8859-7 .latin7 .grk AddCharset ISO-8859-8 .iso8859-8 .latin8 .heb AddCharset ISO-8859-9 .iso8859-9 .latin9 .trk AddCharset ISO-2022-JP .iso2022-jp .jis AddCharset ISO-2022-KR .iso2022-kr .kis AddCharset ISO-2022-CN .iso2022-cn .cis AddCharset Big5 .Big5 .big5 AddCharset WINDOWS-1251 .cp-1251 .win-1251 AddCharset CP866 .cp866 AddCharset KOI8-r .koi8-r .koi8-ru AddCharset KOI8-ru .koi8-uk .ua AddCharset ISO-10646-UCS-2 .ucs2 AddCharset ISO-10646-UCS-4 .ucs4 AddCharset UTF-8 .utf8 AddCharset GB2312 .gb2312 .gb AddCharset utf-7 .utf7 AddCharset big5 .big5 .b5 AddCharset EUC-TW .euc-tw AddCharset EUC-JP .euc-jp AddCharset EUC-KR .euc-kr AddCharset shift_jis .sjis Any idea ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Ralph.Grothe at itdz-berlin.de Wed Jul 20 11:20:11 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Wed, 20 Jul 2005 11:20:11 +0200 Subject: Nagios Plugins build under SPARC Solaris8 with SUNWspro CC fails Message-ID: <6B893C5F2902D311A23F0090272854FB0575B774@litex001.lit.verwalt-berlin.de> Hi Andreas, > -----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, July 20, 2005 9:55 AM > Cc: nagiosplug-help-admin at lists.sourceforge.net; > nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Nagios Plugins build under SPARC Solaris8 > with SUNWspro CC fails > > > NRPE and the plugins are completely separate sets of > software. Expecting > consistency between the two is like expecting HPUX to be > similar to Windows. Sorry I didn't know, and it wasn't obvious to me that it is "merely" a contribution isolated from Nagios itself. > I think I've seen something about a check_informix. Google > around a bit > and see what pops up. Nope, wasn't too successful with my search for check_informix. But as said, checking Informix state should be easy. But I was surprised to have discovered this # find /usr/local/src/nagios-plugins-1.4 -type f -name \*vcs\* -ls 114553 5 -rw-r--r-- 1 root other 5016 May 23 2002 /usr/local/src/nagios-plugins-1.4/contrib/check_vcs.pl > > chown informix:nrpeuser onstat > chmod 4750 onstat Hm, suid I think this would clash with Perl's taint checking? > > This won't work with DBI::Informix, although it should work nicely if > you backtick onstat from perl. Sorry typo, I meant DBD::Informix. I keep avoiding Perl's backticks or qx(), or globbing though these make scripting much easier. I rather prefer fork() (or open "-|") and exec(), and taint mode in server side scriping. > > PING_COMMAND is supposed to render itself. If you use check_icmp you > won't need check_ping though, so this shouldn't be an issue. Yes, you are right. This time I omitted --with-ping-command completely, and that's what configure found on its own (tail from configure): config.status: creating po/Makefile --with-cgiurl: /nagios/cgi-bin --with-nagios-user: informix --with-nagios-group: informix --with-trusted-path: /bin:/sbin:/usr/bin:/usr/sbin --with-ping-command: /usr/sbin/ping -n -s %s 56 %d --with-ping6-command: --with-lwres: no --with-ipv6: yes --with-openssl: no --enable-emulate-getaddrinfo: no I didn't know what syntax configure expects but from the above I can gather that %s is substituted by an arg for ICMP packet size, and %d obvoiusly for packet count. > > This is completely and utterly wrong. The check_fping plugin > understands > the output from fping (surprise!). It is not faster than regular > check_ping, because fping by default also waits 1 second > between packet > transmissions. check_icmp does not, so that's a better option. I'd also prefer check_icmp if I got it compiled... Someone suggested a CVS check out of the latest Nagios-plugins where this was said to be fixed. Unfortunately our WWW Proxy hinders me from using a cvs client. > It's meant to be autodetected. If it isn't, you probably > won't be able > to fix it, since the format is fairly arcane to those who doesn't > intuitively understand sscanf() strings. It seems to have done a good guess, see above. ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 20 11:24:19 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 20 Jul 2005 11:24:19 +0200 Subject: Web Interface - Accent support In-Reply-To: <4E13BD0442DACA4D9606CAD98924F09A45D1B1@srv-nap-atlas-1.net-aptitude.fr> References: <4E13BD0442DACA4D9606CAD98924F09A45D1B1@srv-nap-atlas-1.net-aptitude.fr> Message-ID: <42DE1843.1090808@op5.se> Sivan DERAY wrote: > Hi, > > The point is that i'd be fond if i could get my accent as follows : > > "Aucun chemin d'acc?s pour atteindre l'h?te cible" instead of "Aucun chemin d'acc??s pour atteindre l'h??te cible " > > Here is part of my Apache httpd.conf file : > > AddCharset ISO-8859-15 .iso8859-15 .latin15 > AddCharset ISO-8859-1 .iso8859-1 .latin1 > AddCharset ISO-8859-15 .iso8859-15 .latin9 > AddCharset UTF-8 .utf8 > AddCharset utf-8 .utf8 > AddLanguage da .dk > AddLanguage nl .fr > AddLanguage en .en > AddLanguage et .ee > AddLanguage fr .nl > AddLanguage de .de > AddLanguage el .el > AddLanguage he .he > AddCharset ISO-8859-8 .iso8859-8 > AddLanguage it .it > AddLanguage ja .ja > AddCharset ISO-2022-JP .jis > AddLanguage kr .kr > AddCharset ISO-2022-KR .iso-kr > AddLanguage nn .nn > AddLanguage no .no > AddLanguage pl .po > AddCharset ISO-8859-2 .iso-pl > AddLanguage pt .pt > AddLanguage pt-br .pt-br > AddLanguage ltz .lu > AddLanguage ca .ca > AddLanguage es .es > AddLanguage sv .se > AddLanguage cz .cz > AddLanguage ru .ru > AddLanguage zh-tw .tw > AddLanguage tw .tw > AddCharset Big5 .Big5 .big5 > AddCharset WINDOWS-1251 .cp-1251 > AddCharset CP866 .cp866 > AddCharset ISO-8859-5 .iso-ru > AddCharset KOI8-R .koi8-r > AddCharset UCS-2 .ucs2 > AddCharset UCS-4 .ucs4 > AddCharset ISO-8859-2 .iso8859-2 .latin2 .cen > AddCharset ISO-8859-3 .iso8859-3 .latin3 > AddCharset ISO-8859-4 .iso8859-4 .latin4 > AddCharset ISO-8859-5 .iso8859-5 .latin5 .cyr .iso-ru > AddCharset ISO-8859-6 .iso8859-6 .latin6 .arb > AddCharset ISO-8859-7 .iso8859-7 .latin7 .grk > AddCharset ISO-8859-8 .iso8859-8 .latin8 .heb > AddCharset ISO-8859-9 .iso8859-9 .latin9 .trk > AddCharset ISO-2022-JP .iso2022-jp .jis > AddCharset ISO-2022-KR .iso2022-kr .kis > AddCharset ISO-2022-CN .iso2022-cn .cis > AddCharset Big5 .Big5 .big5 > AddCharset WINDOWS-1251 .cp-1251 .win-1251 > AddCharset CP866 .cp866 > AddCharset KOI8-r .koi8-r .koi8-ru > AddCharset KOI8-ru .koi8-uk .ua > AddCharset ISO-10646-UCS-2 .ucs2 > AddCharset ISO-10646-UCS-4 .ucs4 > AddCharset UTF-8 .utf8 > AddCharset GB2312 .gb2312 .gb > AddCharset utf-7 .utf7 > AddCharset big5 .big5 .b5 > AddCharset EUC-TW .euc-tw > AddCharset EUC-JP .euc-jp > AddCharset EUC-KR .euc-kr > AddCharset shift_jis .sjis > > > Any idea ? > Remove any of the 26234098234 charsets you don't use. They most likely have different rules of how to accentuate things, so they probably clash a bit. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sivan.deray at net-aptitude.fr Wed Jul 20 11:32:47 2005 From: sivan.deray at net-aptitude.fr (Sivan DERAY) Date: Wed, 20 Jul 2005 11:32:47 +0200 Subject: Web Interface - Accent support Message-ID: <4E13BD0442DACA4D9606CAD98924F09A45D1B2@srv-nap-atlas-1.net-aptitude.fr> I took the default configuration and added : AddCharset ISO-8859-15 .iso8859-15 .latin15 AddCharset ISO-8859-1 .iso8859-1 .latin1 AddCharset ISO-8859-15 .iso8859-15 .latin9 AddCharset UTF-8 .utf8 AddCharset utf-8 .utf8 Still the same problem:( -----Message d'origine----- De : Andreas Ericsson [mailto:ae at op5.se] Envoy? : mercredi 20 juillet 2005 11:24 ? : nagios-users at lists.sourceforge.net Objet : Re: [Nagios-users] Web Interface - Accent support Sivan DERAY wrote: > Hi, > > The point is that i'd be fond if i could get my accent as follows : > > "Aucun chemin d'acc?s pour atteindre l'h?te cible" instead of "Aucun chemin d'acc??s pour atteindre l'h??te cible " > > Here is part of my Apache httpd.conf file : > > AddCharset ISO-8859-15 .iso8859-15 .latin15 > AddCharset ISO-8859-1 .iso8859-1 .latin1 > AddCharset ISO-8859-15 .iso8859-15 .latin9 > AddCharset UTF-8 .utf8 > AddCharset utf-8 .utf8 > AddLanguage da .dk > AddLanguage nl .fr > AddLanguage en .en > AddLanguage et .ee > AddLanguage fr .nl > AddLanguage de .de > AddLanguage el .el > AddLanguage he .he > AddCharset ISO-8859-8 .iso8859-8 > AddLanguage it .it > AddLanguage ja .ja > AddCharset ISO-2022-JP .jis > AddLanguage kr .kr > AddCharset ISO-2022-KR .iso-kr > AddLanguage nn .nn > AddLanguage no .no > AddLanguage pl .po > AddCharset ISO-8859-2 .iso-pl > AddLanguage pt .pt > AddLanguage pt-br .pt-br > AddLanguage ltz .lu > AddLanguage ca .ca > AddLanguage es .es > AddLanguage sv .se > AddLanguage cz .cz > AddLanguage ru .ru > AddLanguage zh-tw .tw > AddLanguage tw .tw > AddCharset Big5 .Big5 .big5 > AddCharset WINDOWS-1251 .cp-1251 > AddCharset CP866 .cp866 > AddCharset ISO-8859-5 .iso-ru > AddCharset KOI8-R .koi8-r > AddCharset UCS-2 .ucs2 > AddCharset UCS-4 .ucs4 > AddCharset ISO-8859-2 .iso8859-2 .latin2 .cen > AddCharset ISO-8859-3 .iso8859-3 .latin3 > AddCharset ISO-8859-4 .iso8859-4 .latin4 > AddCharset ISO-8859-5 .iso8859-5 .latin5 .cyr .iso-ru > AddCharset ISO-8859-6 .iso8859-6 .latin6 .arb > AddCharset ISO-8859-7 .iso8859-7 .latin7 .grk > AddCharset ISO-8859-8 .iso8859-8 .latin8 .heb > AddCharset ISO-8859-9 .iso8859-9 .latin9 .trk > AddCharset ISO-2022-JP .iso2022-jp .jis > AddCharset ISO-2022-KR .iso2022-kr .kis > AddCharset ISO-2022-CN .iso2022-cn .cis > AddCharset Big5 .Big5 .big5 > AddCharset WINDOWS-1251 .cp-1251 .win-1251 > AddCharset CP866 .cp866 > AddCharset KOI8-r .koi8-r .koi8-ru > AddCharset KOI8-ru .koi8-uk .ua > AddCharset ISO-10646-UCS-2 .ucs2 > AddCharset ISO-10646-UCS-4 .ucs4 > AddCharset UTF-8 .utf8 > AddCharset GB2312 .gb2312 .gb > AddCharset utf-7 .utf7 > AddCharset big5 .big5 .b5 > AddCharset EUC-TW .euc-tw > AddCharset EUC-JP .euc-jp > AddCharset EUC-KR .euc-kr > AddCharset shift_jis .sjis > > > Any idea ? > Remove any of the 26234098234 charsets you don't use. They most likely have different rules of how to accentuate things, so they probably clash a bit. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=ick _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe at itdz-berlin.de Wed Jul 20 12:00:44 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Wed, 20 Jul 2005 12:00:44 +0200 Subject: Nagios Plugins build under SPARC Solaris8 with SUNWspro CC fails Message-ID: <6B893C5F2902D311A23F0090272854FB0575B776@litex001.lit.verwalt-berlin.de> Hi Jason, sorry for mixing your first and surname last time (but your full name works either way ;-) > To fix this problem, perform the following step, as noted in > my Solaris > configure script: > > echo "Don't forget to edit plugings/Makefile and add $(NETLIBS) to > check_icmp_LDADD > > This should fix your problem with check_icmp. [root at zecke:/usr/local/src/nagios-plugins-1.4] # grep ^check_icmp_LDADD plugins/Makefile check_icmp_LDADD = $(NETLIBS) After that a "make install" really installed PREFIX/libexec/check_icmp But I'm not sure if it works. When I run "check_icmp ", where I can "ping " the command just hangs until sent a sigint (^C). What's wrong? ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kirby_12172004 at yahoo.com Wed Jul 20 12:27:51 2005 From: kirby_12172004 at yahoo.com (Michael Carel) Date: Wed, 20 Jul 2005 11:27:51 +0100 (BST) Subject: Missing Icon Link when adding "Extended Service Information" Message-ID: <20050720102751.3183.qmail@web31312.mail.mud.yahoo.com> Hi to all, Im adding a icon link to see the RRD graphs generated by APAN. APAN works properly as i can access the generated graph when browsing manually since the Icon Link that i defined in cgi.cfg does'nt work. I set the following in Nagios: cgi.cfg: #APAN EXTINFOFILE xedtemplate_config_file=/usr/local/nagios/etc/servicextinfo-apan servicextinfo-apan: # Localhost PING Service define serviceextinfo { host_name localhost service_description PING notes_url /nagios/cgi-bin/apan-sql.cgi?host=localhost&service=PING icon_image graph.png icon_image_alt View Apan-graphs } services.cfg: define service{ use generic-service ; Name of service template to use host_name localhost service_description PING is_volatile 0 check_period 24x7 max_check_attempts 4 normal_check_interval 5 retry_check_interval 1 contact_groups admins notification_interval 960 notification_period 24x7 check_command apan-sql!ping!100.0,20%!500.0,60% } The graph.png was properly placed in its directory. Do I missed something in this config? Please help us here.... tnx Mike Send instant messages to your online friends http://uk.messenger.yahoo.com ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From flima at rio-de-janeiro.oilfield.slb.com Wed Jul 20 13:35:18 2005 From: flima at rio-de-janeiro.oilfield.slb.com (Fernando Gomes Lima) Date: Wed, 20 Jul 2005 08:35:18 -0300 Subject: (no subject) Message-ID: Gents, I'm pretty new at this list and I'm hopeful that someone will help me out with this problem. I'm trying to configure Nagios to monitor one specific interface at Cisco router. Through snmpwalk I got the number of interface (5). I create at checkcommands.cfg the following lines: define command{ command_name check_snmp_cisco_if_up command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1 -C $ARG2$ } At services.cfg I've inserted the following lines: define service{ host_name teste service_description check_snmp_cisco_if_up is_volatile 0 check_period 24x7 max_check_attempts 2 normal_check_interval 1 retry_check_interval 1 contact_groups nagios-admins,support notification_interval 120 notification_period 24x7 notification_options c,r check_command check_snmp_cisco_if_up!interfaces.ifTable.ifEntry.ifOperStatus.5!public } When I tested this command from libexec folder (./check_snmp -H 192.168.96.1 -o interfaces.ifTable.ifEntry.ifOperStatus.5 -C public), I got a "SNMP OK - up(1)". But at Nagios Service page I'm receiving a "SNMP problem - No data recieved from host" Any help, tip, etc., are welcome. Best Regards, Fernando Lima Schlumberger Security Engineer flima at slb.com Office: +55 21 3824 6954 Mobile. : +55 21 9888 9046 (GMT: -03:00) ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From seppy at chartermi.net Wed Jul 20 15:49:15 2005 From: seppy at chartermi.net (Brian E. Seppanen) Date: Wed, 20 Jul 2005 09:49:15 -0400 (EDT) Subject: Nagios Reporting, Embedded CSV Message-ID: Hello: I have several hosts running nagios, and I've been tasked with creating service availability reports. In looking through the source code for nagios-1.2 in avail.c it would appear that there are some options that would enable creating reports in a comma seperated value format. I'm not very C literate, so I'm not sure if this is just a base for future code, or whether those options are actually available. Can I pass an option to the cgi to create a csv report? Is there a nagios wiki? Anyone have pointers to good information repository for dealing with nagios reporting? Thanks for all the help. Brian Seppanen seppy at chartermi.net 608.826.1464 ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Wed Jul 20 15:48:43 2005 From: Wengrzik at ewr.de (Wengrzik, Andreas) Date: Wed, 20 Jul 2005 15:48:43 +0200 Subject: NRPE kills network connection Message-ID: <90D32590BAD135448DC12C1EA3EB448220A105@epsewr01.ewrlan.ewr.int> Hi, we use the NRPE Client (ver 0.7.0.6) to check several services on Win2k-Server systems. After we?ve installed an second nagios-server with nearly the same config, nagios Sever2 starts to check also the nrpe on these windows machines. The nrpe config don?t allow other machines to connect to nrpe port, just nagios1 is allowed to check it. So the event log generates an failure that nagios2 isn?t allowed to connect to nrpe on the windows machine. After 20 minutes of retry from nagios2 the nic lost the connection to the network. I dont know why this is caused maybe its an buffer overflow? This happens two times on three servers which lost the connection nearly in the same second. Anyone knows about this side-effect of nrpe?? best regards -andreas w. ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From barbereau at gmail.com Wed Jul 20 16:24:16 2005 From: barbereau at gmail.com (=?ISO-8859-1?Q?S=E9bastien_Barbereau?=) Date: Wed, 20 Jul 2005 16:24:16 +0200 Subject: (no subject) In-Reply-To: References: Message-ID: <4e0e33ee050720072476e52a7a@mail.gmail.com> Hi, what is the value of your $USER1$ variable ? is it set correctly? what is your host definition for "teste"? Cheers, Seb.B On 7/20/05, Fernando Gomes Lima wrote: > > Gents, > > I'm pretty new at this list and I'm hopeful that someone will help me out > with this problem. I'm trying to configure Nagios to monitor one specific > interface at Cisco router. Through snmpwalk I got the number of interface > (5). > > I create at checkcommands.cfg the following lines: > > define command{ > command_name check_snmp_cisco_if_up > command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1 -C > $ARG2$ > } > > At services.cfg I've inserted the following lines: > > define service{ > > host_name teste > service_description check_snmp_cisco_if_up > is_volatile 0 > check_period 24x7 > max_check_attempts 2 > normal_check_interval 1 > retry_check_interval 1 > contact_groups nagios-admins,support > notification_interval 120 > notification_period 24x7 > notification_options c,r > check_command > check_snmp_cisco_if_up!interfaces.ifTable.ifEntry.ifOperStatus.5!public > } > > When I tested this command from libexec folder (./check_snmp -H > 192.168.96.1 -o > interfaces.ifTable.ifEntry.ifOperStatus.5 -C public), I got > a "SNMP OK - up(1)". But at Nagios Service page I'm receiving a "SNMP > problem - No data recieved from host" > > Any help, tip, etc., are welcome. > Best Regards, > Fernando Lima > Schlumberger > Security Engineer > flima at slb.com > > Office: +55 21 3824 6954 > Mobile. : +55 21 9888 9046 > (GMT: -03:00) > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 marc at ena.com Wed Jul 20 16:50:59 2005 From: marc at ena.com (Marc Powell) Date: Wed, 20 Jul 2005 09:50:59 -0500 Subject: Nagios Reporting, Embedded CSV Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Brian E. Seppanen > Sent: Wednesday, July 20, 2005 8:49 AM > To: nagios-users > Subject: [Nagios-users] Nagios Reporting, Embedded CSV > > Hello: > > I have several hosts running nagios, and I've been tasked with creating > service availability reports. In looking through the source code for > nagios-1.2 in avail.c it would appear that there are some options that > would enable creating reports in a comma seperated value format. I'm not > very C literate, so I'm not sure if this is just a base for future code, > or whether those options are actually available. Can I pass an option to > the cgi to create a csv report? Under the Reporting Menu, select Availability and follow the wizard. If you select All Hosts or All Services you have the option to output to CSV. Once you generate your desired report you can grab the link for it from the frame properties and process it however you like. > > Is there a nagios wiki? Anyone have pointers to good information > repository for dealing with nagios reporting? There's a wiki at http://www.nagiosexchange.org but it's new and there's not a lot of info there yet. -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 s1test1.it Wed Jul 20 17:08:10 2005 From: nagios_user at s1test1.it (nagios_user at s1test1.it) Date: Wed, 20 Jul 2005 17:08:10 +0200 Subject: new bash plugin for apc Message-ID: <20050720170810.g02t22k23pk44wgk@webmail.s1test1.it> Hello all list, I would like to issue my plugin (as attachment)... ...it is very very easy but it work right. Sintax is --> ./check_snmp_apc IP (or apc name) Of course there'll are some changed to do for make it more good... ...if there are some people who want to help I tell thanks! p.s. sorry for my english. Regards -- Rodolfo Greco http://netforce.altervista.org http://www.bitportal.it --------------- My public GPG key http://utenti.lycos.it/netforce1/upload/put-by-anarko-MyPubblicKey.txt -------------- next part -------------- A non-text attachment was scrubbed... Name: check_snmp_apc Type: application/x-sh Size: 3401 bytes Desc: not available URL: From don.alfredo at pandora.be Wed Jul 20 17:12:41 2005 From: don.alfredo at pandora.be (Don Alfredo) Date: Wed, 20 Jul 2005 17:12:41 +0200 Subject: Can't send notifications using sms_client In-Reply-To: References: Message-ID: <200507201712.41296.don.alfredo@pandora.be> add your nagios-user to the uucp group grtz, Fred On Wednesday 20 July 2005 01:12, Alejandro Mejia Evertsz wrote: > Hi list! > > I'm trying to send notifications via sms_client to a pager. > The problem I'm having is while nagios tries to send it using sms_client as > "non-root" user. > I had this error: > [24449] ERROR: Cannot create lockfile /etc/smslock > So I changed the config to store the lockfile in a different path with > enough permissions for nagios user to modify it. > > Then I encountered problems with this: > [26110] ERROR: Cannot create lockfile /var/lock/LCK..cuaa0 > So I also changed the permissions. > > Now I'm stucked on this: > [26390] WARNING: MODEM: Failed to open /dev/cuaa0 > > How can I make nagios to have "permissions over the modem"? > Any sugestions or alternate configurations to do what i'm trying to do? > > Thanks in advance. > > > Alejandro Mej?a > Evertsz > Departamento T?cnico > 2 Av. 2-09 zona 9 Edif. Plaza 2-11 2do. Nivel > Tel. +502 2334-7669 al 71 Fax. +502 2334-8151 ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From JasonFrank at srcp.com Wed Jul 20 17:39:25 2005 From: JasonFrank at srcp.com (Frank, Jason) Date: Wed, 20 Jul 2005 10:39:25 -0500 Subject: Nagios Plugins build under SPARC Solaris8 with SUNWspro CC fails Message-ID: <741E24F735AED141B61948AC155E7DAA29D4ED@CORPDALLMSG05.na.srcp.net> Don't worry about my name. People have been making that mistake for 36 years now and I'm pretty much used to it. Run a check_icmp -h and review the instructions. Your command line is incorrect. Jason -----Original Message----- From: Ralph.Grothe at itdz-berlin.de [mailto:Ralph.Grothe at itdz-berlin.de] Sent: Wednesday, July 20, 2005 5:01 AM To: Frank, Jason Cc: nagiosplug-help-admin at lists.sourceforge.net; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Nagios Plugins build under SPARC Solaris8 with SUNWspro CC fails Hi Jason, sorry for mixing your first and surname last time (but your full name works either way ;-) > To fix this problem, perform the following step, as noted in my > Solaris configure script: > > echo "Don't forget to edit plugings/Makefile and add $(NETLIBS) to > check_icmp_LDADD > > This should fix your problem with check_icmp. [root at zecke:/usr/local/src/nagios-plugins-1.4] # grep ^check_icmp_LDADD plugins/Makefile check_icmp_LDADD = $(NETLIBS) After that a "make install" really installed PREFIX/libexec/check_icmp But I'm not sure if it works. When I run "check_icmp ", where I can "ping " the command just hangs until sent a sigint (^C). What's wrong? ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From drussell at mpifix.com Wed Jul 20 19:44:35 2005 From: drussell at mpifix.com (Danny Russell) Date: Wed, 20 Jul 2005 11:44:35 -0600 Subject: Custom Plugin Message-ID: <028B223BB24E5443A9784BBE1CC5EBE0485A2F@Lisa.mpifix.com> I am trying to monitor a host that is behind a Cisco VPN Concentrator. For simplicity right now I am just trying to use check_ping. I have written an expect script (lhm.sh) that logs into the VPN and then runs a check_ping command. Here is the code for lhm.sh: 1 #!/usr/bin/expect -f 2 set cmd_one [lindex $argv 0]; 3 log_user 0 4 spawn vpnclient connect lhm pwd password 5 expect "(y/n): " {send "y\r"} 6 spawn ./check_ping -H $cmd_one -w 3000.0,80% -c 5000.0,100% -p 3 7 interact 8 set status [wait] 9 #puts [lindex $status 3] 10 exit [lindex $status 3] Line #3 - disables the output to go to stdout. This hides all of the nasty long VPN connection information. Line #4 - connects to the VPN Line #5 - sends a 'y' so the VPN is connected Line #8 - gets the exit return code Line #10 - exits with the exit return code from $status. When I call './lhm.sh 10.30.31.51' this is the output: [root at monitor plugins]# ./lhm.sh 10.30.31.51 PING OK - Packet loss = 0%, RTA = 60.68 ms [root at monitor plugins]# When I call './lhm.sh 10.30.31.51' with the puts un-commented this is the output: [root at monitor plugins]# ./lhm.sh 10.30.31.51 PING OK - Packet loss = 0%, RTA = 71.03 ms 0 [root at monitor plugins]# When I call './lhm.sh 10.30.31.61' (A WRONG IP) with the puts un-commented this is the output: [root at monitor plugins]# ./lhm.sh 10.30.31.61 CRITICAL - Plugin timed out after 18 seconds 2 [root at monitor plugins]# The problem is, when I create a custom check command in /etc/Nagios/checkcommands.cfg to call /usr/lib/Nagios/plugins/lhm.sh Nagios always reports it as up and (No output!). It even reports at UP if I give it a wrong IP (10.30.31.61). Host Status: UP Status Information:(No output!) Any ideas? Thanks! Danny Russell Mobile Productivity, Inc. drussell at mpifix.com work-801.437.5885 mbl-801.722.5837 Enabling the World To Work -------------- next part -------------- An HTML attachment was scrubbed... URL: From Toby_Kraft at KSAinc.com Wed Jul 20 20:59:10 2005 From: Toby_Kraft at KSAinc.com (Toby Kraft) Date: Wed, 20 Jul 2005 13:59:10 -0500 Subject: distributed monitoring = remote monitoring? Message-ID: All, Question regarding distributed monitoring - is the benefit of this configuration primarily to distribute the service check workload among several servers or is it used primarily to support a distributed WAN environment allowing you to have active checking nagios boxes in remote locations that funnel their status results to a central monitoring nagios server? The docs say it's for offloading cpu load and don't really talk about remote locations and such. But the architecture seems to fit a distributed WAN environment. I have a couple of clients that have, say, 3-5 locations, each with < 10 hosts and 20-30 services at each site to monitor. I was under the impression that the distributed approach would isolate the traffic for the active service checks to the local lan and only send status info to the central server when something 'interesting' happens. Is that correct? Is this kind of environment suitable for distributed nagios or would it be overkill to go the distributed route? Thanks, Toby -------------- next part -------------- An HTML attachment was scrubbed... URL: From gpadilla at cbct.com Wed Jul 20 21:04:15 2005 From: gpadilla at cbct.com (Guillermo Padilla) Date: Wed, 20 Jul 2005 15:04:15 -0400 Subject: nagios host file question Message-ID: <097D3590441CB345A836C4B3F7F813DC58428D@mailsrv.cbct.com> Is there a way to have nagios use dns host file instead of its own host file to detect hosts ips? -guillermo -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc at ena.com Wed Jul 20 21:36:20 2005 From: marc at ena.com (Marc Powell) Date: Wed, 20 Jul 2005 14:36:20 -0500 Subject: nagios host file question Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Guillermo Padilla > Sent: Wednesday, July 20, 2005 2:04 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] nagios host file question > > Is there a way to have nagios use dns host file instead of its own host > file to detect hosts ips? Use a resolvable host name for the host address. define host{ use generic-host host_name some-name alias My Test Server address test.foo.com } As long as test.foo.com is resolvable by command line utilities it should just work. This of course makes you dependent on that name resolution service for your monitoring to work properly. If it fails, your monitoring fails. -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dmaher at acetechnology.com Wed Jul 20 22:01:34 2005 From: dmaher at acetechnology.com (Daniel maher) Date: Wed, 20 Jul 2005 16:01:34 -0400 Subject: distributed monitoring = remote monitoring? Message-ID: I would wager that the benefit could be considered in both contexts! For example, the only scenarios that I've set up distributed monitoring for are WAN networks spread over prohibitive distances - and it works very well! Daniel Maher System Engineer ACE TECHNOLOGY INC. ________________________________ From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Toby Kraft Sent: July 20, 2005 2:59 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] distributed monitoring = remote monitoring? All, Question regarding distributed monitoring - is the benefit of this configuration primarily to distribute the service check workload among several servers or is it used primarily to support a distributed WAN environment allowing you to have active checking nagios boxes in remote locations that funnel their status results to a central monitoring nagios server? The docs say it's for offloading cpu load and don't really talk about remote locations and such. But the architecture seems to fit a distributed WAN environment. I have a couple of clients that have, say, 3-5 locations, each with < 10 hosts and 20-30 services at each site to monitor. I was under the impression that the distributed approach would isolate the traffic for the active service checks to the local lan and only send status info to the central server when something 'interesting' happens. Is that correct? Is this kind of environment suitable for distributed nagios or would it be overkill to go the distributed route? Thanks, Toby -------------- next part -------------- An HTML attachment was scrubbed... URL: From Toby_Kraft at KSAinc.com Wed Jul 20 22:24:59 2005 From: Toby_Kraft at KSAinc.com (Toby Kraft) Date: Wed, 20 Jul 2005 15:24:59 -0500 Subject: distributed monitoring = remote monitoring? In-Reply-To: References: Message-ID: Thanks, I'll proceed with it then. A couple addl ?s Is there any problem running the web interface on the remote/distributed nagios system so that local admins can view status for their local stuff? Are there any tools/config programs that help with this setup? It appears that NagMIN, NCPL, and Monarch don't. What config tool would you recommend (other than vi :) )? Toby Kraft, Senior Consultant Keller Schroeder & Associates "Your business. Our people. Technology-based solutions." http://www.KSAinc.com (812) 474-6825x330 Toby_Kraft at KSAinc.com, AOL:tobykraft, ICQ:49268922 nagios-users-admin at lists.sourceforge.net wrote on 07/20/2005 03:01:34 PM: > I would wager that the benefit could be considered in both contexts! > For example, the only scenarios that I?ve set up distributed > monitoring for are WAN networks spread over prohibitive distances ? > and it works very well! > > > Daniel Maher > System Engineer > ACE TECHNOLOGY INC. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmaher at acetechnology.com Wed Jul 20 22:25:32 2005 From: dmaher at acetechnology.com (Daniel maher) Date: Wed, 20 Jul 2005 16:25:32 -0400 Subject: distributed monitoring = remote monitoring? Message-ID: There are no problems running the web interface on each of the remote nodes - oddly enough, it all functions as you would expect. As for a config tool - sorry, I use "nano" to do it all. ;) Daniel Maher System Engineer ACE TECHNOLOGY INC. ________________________________ From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Toby Kraft Sent: July 20, 2005 4:25 PM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] distributed monitoring = remote monitoring? Thanks, I'll proceed with it then. A couple addl ?s Is there any problem running the web interface on the remote/distributed nagios system so that local admins can view status for their local stuff? Are there any tools/config programs that help with this setup? It appears that NagMIN, NCPL, and Monarch don't. What config tool would you recommend (other than vi :) )? Toby Kraft, Senior Consultant Keller Schroeder & Associates "Your business. Our people. Technology-based solutions." http://www.KSAinc.com (812) 474-6825x330 Toby_Kraft at KSAinc.com, AOL:tobykraft, ICQ:49268922 nagios-users-admin at lists.sourceforge.net wrote on 07/20/2005 03:01:34 PM: > I would wager that the benefit could be considered in both contexts! > For example, the only scenarios that I've set up distributed > monitoring for are WAN networks spread over prohibitive distances - > and it works very well! > > > Daniel Maher > System Engineer > ACE TECHNOLOGY INC. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmourati at cm.math.uiuc.edu Thu Jul 21 00:14:17 2005 From: dmourati at cm.math.uiuc.edu (Demetri Mouratis) Date: Wed, 20 Jul 2005 17:14:17 -0500 (CDT) Subject: distributed monitoring = remote monitoring? In-Reply-To: References: Message-ID: On Wed, 20 Jul 2005, Toby Kraft wrote: > Thanks, I'll proceed with it then. A couple addl ?s > > Is there any problem running the web interface on the remote/distributed > nagios system so that local admins can view status for their local stuff? > > Are there any tools/config programs that help with this setup? It appears > that NagMIN, NCPL, and Monarch don't. > > What config tool would you recommend (other than vi :) )? > I run a large distributed configuration with VPN links connecting over the WAN and it works quite well. Some pointers: 1. Use send_nsca to send the data from distributed to central. 2. Use rsync/scp to push the configuration files from distributed to central. (I run a little perl cleanup script to make the changes required after syncing.) 3. Setup freshness_threshold to catch stale data. 4. You can run web interfaces at both distributed and central. Central will see all the services for all the distributeds while the individual distributeds will only show their own data. You can also add per-instance accounts on central to let folks log in and see only their hosts. 5. Watch out for namespace collisions. 6. Use templates. Hope that helps. --------------------------------------------------------------------- Demetri Mouratis dmourati at linfactory.com ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.P.Fuentes at boeing.com Thu Jul 21 00:50:59 2005 From: James.P.Fuentes at boeing.com (EXT-Fuentes, James P) Date: Wed, 20 Jul 2005 15:50:59 -0700 Subject: Custom Plugin Message-ID: <626FC7C6A97381468FB872072AB5DDC801FEAA@XCH-SW-42.sw.nos.boeing.com> That sounds very much like a problem I ran into with rsh. I wrote a script which collects data from a host via rsh commands and depending on the contents of that data I'd send the appropriate exit status to Nagios as outlined in the plugin development doc. I'd run the script from the command line and it would behave exactly as I expected it to. However, when I defined a checkcommand and a service in Nagios I would always get an "OK" status and "No output" in the comment field in Nagios no matter what I set my thresholds to (Drove me nuts). It turns out, because my checkcommand simply ran and completed, it always returned an exit status of 0 and the results of my rsh command, by default, would go to /dev/null when spawned from my checkcommand. There is a "-n" option for rsh which redirects input from device /dev/null, thus getting it to Nagios reflecting the actual status of the remote host. Once I implemented this, things work perfectly. I realize your method differs from mine but it seems you're doing something functionally similar and your results sound identical to my initial results. I would check man pages to see if there is an equivalent option for you. -Jim ________________________________ From: Danny Russell [mailto:drussell at mpifix.com] Sent: Wed 7/20/2005 10:44 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Custom Plugin I am trying to monitor a host that is behind a Cisco VPN Concentrator. For simplicity right now I am just trying to use check_ping. I have written an expect script (lhm.sh) that logs into the VPN and then runs a check_ping command. Here is the code for lhm.sh: 1 #!/usr/bin/expect -f 2 set cmd_one [lindex $argv 0]; 3 log_user 0 4 spawn vpnclient connect lhm pwd password 5 expect "(y/n): " {send "y\r"} 6 spawn ./check_ping -H $cmd_one -w 3000.0,80% -c 5000.0,100% -p 3 7 interact 8 set status [wait] 9 #puts [lindex $status 3] 10 exit [lindex $status 3] Line #3 - disables the output to go to stdout. This hides all of the nasty long VPN connection information. Line #4 - connects to the VPN Line #5 - sends a 'y' so the VPN is connected Line #8 - gets the exit return code Line #10 - exits with the exit return code from $status. When I call './lhm.sh 10.30.31.51' this is the output: [root at monitor plugins]# ./lhm.sh 10.30.31.51 PING OK - Packet loss = 0%, RTA = 60.68 ms [root at monitor plugins]# When I call './lhm.sh 10.30.31.51' with the puts un-commented this is the output: [root at monitor plugins]# ./lhm.sh 10.30.31.51 PING OK - Packet loss = 0%, RTA = 71.03 ms 0 [root at monitor plugins]# When I call './lhm.sh 10.30.31.61' (A WRONG IP) with the puts un-commented this is the output: [root at monitor plugins]# ./lhm.sh 10.30.31.61 CRITICAL - Plugin timed out after 18 seconds 2 [root at monitor plugins]# The problem is, when I create a custom check command in /etc/Nagios/checkcommands.cfg to call /usr/lib/Nagios/plugins/lhm.sh Nagios always reports it as up and (No output!). It even reports at UP if I give it a wrong IP (10.30.31.61). Host Status: UP Status Information:(No output!) Any ideas? Thanks! Danny Russell Mobile Productivity, Inc. drussell at mpifix.com work-801.437.5885 mbl-801.722.5837 Enabling the World To Work ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From teng at dataway.com Thu Jul 21 03:02:28 2005 From: teng at dataway.com (Tedman Eng) Date: Wed, 20 Jul 2005 18:02:28 -0700 Subject: Custom Plugin Message-ID: <37ED92F9890FAF4BB947613C66FF8B1AFC758B@dw-mail.dataway.com> Try adding ;echo $? to the end of your commandline to see what the final exit code is. ex: ./lhm.sh 10.30.31.51 ; echo $? I'm a bit rusty on the details of expect, but the 'interact' statement may be writing output to the terminal, vs real stdout. -----Original Message----- From: Danny Russell [mailto:drussell at mpifix.com] Sent: Wednesday, July 20, 2005 10:45 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Custom Plugin I am trying to monitor a host that is behind a Cisco VPN Concentrator. For simplicity right now I am just trying to use check_ping. I have written an expect script (lhm.sh) that logs into the VPN and then runs a check_ping command. Here is the code for lhm.sh: 1 #!/usr/bin/expect -f 2 set cmd_one [lindex $argv 0]; 3 log_user 0 4 spawn vpnclient connect lhm pwd password 5 expect "(y/n): " {send "y\r"} 6 spawn ./check_ping -H $cmd_one -w 3000.0,80% -c 5000.0,100% -p 3 7 interact 8 set status [wait] 9 #puts [lindex $status 3] 10 exit [lindex $status 3] Line #3 - disables the output to go to stdout. This hides all of the nasty long VPN connection information. Line #4 - connects to the VPN Line #5 - sends a 'y' so the VPN is connected Line #8 - gets the exit return code Line #10 - exits with the exit return code from $status. When I call './lhm.sh 10.30.31.51' this is the output: [root at monitor plugins]# ./lhm.sh 10.30.31.51 PING OK - Packet loss = 0%, RTA = 60.68 ms [root at monitor plugins]# When I call './lhm.sh 10.30.31.51' with the puts un-commented this is the output: [root at monitor plugins]# ./lhm.sh 10.30.31.51 PING OK - Packet loss = 0%, RTA = 71.03 ms 0 [root at monitor plugins]# When I call './lhm.sh 10.30.31.61' (A WRONG IP) with the puts un-commented this is the output: [root at monitor plugins]# ./lhm.sh 10.30.31.61 CRITICAL - Plugin timed out after 18 seconds 2 [root at monitor plugins]# The problem is, when I create a custom check command in /etc/Nagios/checkcommands.cfg to call /usr/lib/Nagios/plugins/lhm.sh Nagios always reports it as up and (No output!). It even reports at UP if I give it a wrong IP (10.30.31.61). Host Status: UP Status Information:(No output!) Any ideas? Thanks! Danny Russell Mobile Productivity, Inc. drussell at mpifix.com work-801.437.5885 mbl-801.722.5837 Enabling the World To Work ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cgoosen at jhb.artec.co.za Thu Jul 21 14:42:23 2005 From: cgoosen at jhb.artec.co.za (Chris Goosen) Date: Thu, 21 Jul 2005 14:42:23 +0200 Subject: Nagiostat setup - please help Message-ID: Good day group!! I am new to the group and was wondering if someone could assist me. I have nagios running on a few servers and I have a dev server, I am trying to setup nagiostat. I have followed all the instructions in the readme and I am having the following error when I try to reference the graph for my laptop "nagiostat.cgi?graph_name=laptop-ping": !!ERROR: RRDTOOLPATH does not point to executable rrdtool-binary. Here is some info on the setup of my server: [root at linestats nagiostat]# whereis rrdtool rrdtool: /usr/bin/rrdtool /usr/share/man/man1/rrdtool.1.gz [root at linestats nagiostat]# My nagiostat.conf file: --snip- # Pointer to where the rrd-tool binary is located RRDToolPath /usr/bin/rrdtool Am I missing something somewhere? According to me I have set everthing up correctly.. Any advice? Thanks Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From Phillip.Wilson at gwinnettcounty.com Thu Jul 21 16:03:38 2005 From: Phillip.Wilson at gwinnettcounty.com (Phillip.Wilson at gwinnettcounty.com) Date: Thu, 21 Jul 2005 10:03:38 -0400 Subject: What is the difference between "host dependencies" and the "parents" directive in hosts.cfg? Message-ID: What is the difference between "host dependencies" and the "parents" directive in hosts.cfg? The descriptions of each lead me to believe that they are performing the same function. TIA Cheers, Phillip Wilson http://phillip.wilson.home.mindspring.com/ Gwinnett County Government www.gwinnettcounty.com Office: 770-822-7381 email: phillip.wilson at gwinnettcounty.com IT Help Desk (24 X 7 X 365): 770-822-8915 ******************************************** This e-mail (including any attachments) is confidential and may be legally privileged. If you are not an intended recipient or an authorized representative of an intended recipient, you are prohibited from using, copying or distributing the information in this e-mail or its attachments. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete all copies of this message and any attachments. Thank you. ******************************************** ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From aewhale at ABS-CompTech.com Thu Jul 21 16:25:15 2005 From: aewhale at ABS-CompTech.com (Albert Whale) Date: Thu, 21 Jul 2005 10:25:15 -0400 Subject: Startup fails - Nagios -2.0b3 Message-ID: <42DFB04B.3080200@ABS-CompTech.com> This is fresh installation from rpms (no help from the Mandriva Experts list) on Mandriva 10.2, with Nagios 2.0b3. This is my second attempt for installation (the first attempt was on Mandrake 10.1). Anyway, neither installation (from rpm or source compilation) appears to run. The review of the configuration file indicates there are no problems: nagios -v /etc/nagios/nagios.cfg Nagios 2.0b3 Copyright (c) 1999-2005 Ethan Galstad (www.nagios.org) Last Modified: 04-03-2005 License: GPL Reading configuration data... Running pre-flight check on configuration data... Checking services... Checked 19 services. Checking hosts... Checked 2 hosts. Checking host groups... Checked 1 host groups. Checking service groups... Checked 0 service groups. Checking contacts... Checked 2 contacts. Checking contact groups... Checked 2 contact groups. Checking service escalations... Checked 2 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 29 commands. Checking time periods... Checked 4 time periods. Checking extended host info definitions... Checked 0 extended host info definitions. Checking extended service info definitions... Checked 0 extended service info definitions. Checking for circular paths between hosts... Checking for circular host and service dependencies... Checking global event handlers... Checking obsessive compulsive processor commands... Checking misc settings... Total Warnings: 0 Total Errors: 0 Things look okay - No serious problems were detected during the pre-flight check However when I launch the daemon here is what I get in the logfile: nagios -d /etc/nagios/nagios.cfg Jul 21 08:38:33 sz7 nagios: Nagios 2.0b3 starting... (PID=27491) Jul 21 08:38:33 sz7 nagios: LOG VERSION: 2.0 Jul 21 08:38:33 sz7 nagios: Bailing out due to one or more errors encountered in the configuration files. Run Nagios from the command line with the -v option to verify your config before restarting. (PID=27491) Any suggestions where to turn next? -- Albert E. Whale, CHS CISA CISSP Sr. Security, Network, Risk Assessment and Systems Consultant ------------------------------------------------------------------- ABS Computer Technology, Inc. - www.ABS-CompTech.com SPAM Zapper - No-JunkMail.com - Spam-Zapper.com - SPAM Stops Here. President of the Pittsburgh InfraGard Alliance ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 21 16:31:42 2005 From: marc at ena.com (Marc Powell) Date: Thu, 21 Jul 2005 09:31:42 -0500 Subject: Nagiostat setup - please help Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Chris Goosen > Sent: Thursday, July 21, 2005 7:42 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nagiostat setup - please help > > Good day group!! > > > > I am new to the group and was wondering if someone could assist me. > I have followed all the instructions in the readme and I am having the > following error when I try to reference the graph for my laptop > "nagiostat.cgi?graph_name=laptop-ping": > > !!ERROR: RRDTOOLPATH does not point to executable rrdtool-binary. > > [root at linestats nagiostat]# whereis rrdtool > > rrdtool: /usr/bin/rrdtool /usr/share/man/man1/rrdtool.1.gz > > # Pointer to where the rrd-tool binary is located > > RRDToolPath /usr/bin/rrdtool > > > > Am I missing something somewhere? According to me I have set everthing up > correctly.. > Is /usr/bin/rrdtool really the rrdtool binary? Can you run /usr/bin/rrdtool as the web-server user (i.e. are the permissions on that program correct)? -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lnaves at asc.edu Thu Jul 21 18:21:21 2005 From: lnaves at asc.edu (Larry Naves) Date: Thu, 21 Jul 2005 11:21:21 -0500 Subject: Reload question Message-ID: <200507211621.j6LGLIiw002863@mail.asc.edu> I have read through the docs and am missing the answers I am looking for. I know that a RELOAD "Sends a SIGHUP to the Nagios process, causing it to flush its current configuration data, reread the configuration files, and start monitoring again". I have noticied that whenever I perform a reload all the host and service checks get rescheduled starting with host 1. Is this the case or am I missing something? I have both retain_state_information=1 and use_retained_program_state=1 and my scheduling queue shows that nagios started over with hosts 1XX - 9XX every time. Is there a way to maintiain the scheduling queue throughout program restarts? If not does any body have a work around? I just don't want to ever see a scenario where nagios always gets reloaded before the 9999 host is checked for a long period of time during busy days where my coworkers are changing and reloading nagios. Nagios 1.2 w/MySQL MySQL 3.23 CentOS 3.4 Thanks in advance, Larry Wayne Naves, Jr. "Jay" Systems Analyst Computer Sciences Corporation / Alabama Supercomputer Authority -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.9.2/54 - Release Date: 7/21/2005 ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From del at bytemine.net Thu Jul 21 18:28:22 2005 From: del at bytemine.net (David Elze) Date: Thu, 21 Jul 2005 18:28:22 +0200 Subject: What is the difference between "host dependencies" and the "parents" directive in hosts.cfg? In-Reply-To: References: Message-ID: <20050721162822.GB8465@bodomchild.dyndns.org> On Thu, Jul 21, 2005 at 10:03:38AM -0400, Phillip.Wilson at gwinnettcounty.com wrote: Hi, > What is the difference between "host dependencies" and the "parents" > directive in hosts.cfg? As far as I know, host dependencies are the advanced version of parent/child relations. So for normal use you should be fine with parent-directives but if you need more special treatment for special host dependencies you can use these to achieve more detailed notifications. More on http://nagios.sourceforge.net/docs/2_0/dependencies.html CU David -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: From Christiaan.Ehlers at inclarity.co.uk Thu Jul 21 18:40:38 2005 From: Christiaan.Ehlers at inclarity.co.uk (Christiaan Ehlers) Date: Thu, 21 Jul 2005 17:40:38 +0100 Subject: Nagios not scheduling next active service check. Message-ID: The problem is that sometimes the next active service check is not updated and does not perform a check for long periods of time. Example Scenario : Nagios current time => 16:14 Service XYZ - nagios next active service check => 16:15 2 minute later....... Nagios current time => 16:16 Service XYZ - nagios next active service check => 16:15 1 hour later...... Nagios current time => 17:16 Service XYZ - nagios next active service check => 16:15 If you manually reschedule the service it breaks it out of the problem. The number of services this has applied to varies on a daily basis but I can not correlate it to anything on the server. Is this a know bug? If so, what would the fix be? -------------- next part -------------- An HTML attachment was scrubbed... URL: From sghosh at sghosh.org Thu Jul 21 19:22:49 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 21 Jul 2005 13:22:49 -0400 (EDT) Subject: Reload question In-Reply-To: <200507211621.j6LGLIiw002863@mail.asc.edu> References: <200507211621.j6LGLIiw002863@mail.asc.edu> Message-ID: On Thu, 21 Jul 2005, Larry Naves wrote: > I have read through the docs and am missing the answers I am looking for. I > know that a RELOAD "Sends a SIGHUP to the Nagios process, causing it to > flush its current configuration data, reread the configuration files, and > start monitoring again". I have noticied that whenever I perform a reload > all the host and service checks get rescheduled starting with host 1. Is > this the case or am I missing something? I have both > retain_state_information=1 and use_retained_program_state=1 and my > scheduling queue shows that nagios started over with hosts 1XX - 9XX every > time. Is there a way to maintiain the scheduling queue throughout program > restarts? If not does any body have a work around? I just don't want to ever > see a scenario where nagios always gets reloaded before the 9999 host is > checked for a long period of time during busy days where my coworkers are > changing and reloading nagios. > > Nagios 1.2 w/MySQL > MySQL 3.23 > CentOS 3.4 > > Thanks in advance, > > Larry Wayne Naves, Jr. "Jay" > Systems Analyst > Computer Sciences Corporation / > Alabama Supercomputer Authority > > reload does cause the scheuling queue to be re-initialized. Nagios does not know if you have added or deleted services and hosts or just changed definitions. you may want to create policies that Nagios will only be reloaded once/twice a day. -- -sg ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 22 09:50:55 2005 From: james.mohr at elaxy.com (Mohr James) Date: Fri, 22 Jul 2005 09:50:55 +0200 Subject: Wildcards for allowed_hosts in nsca.cfg Message-ID: Hi All! Is there a way to use wildcard for allowed_hosts in nsca.cfg? If there was a way to simply allow access from *every* host, I would be happy. Regards, Jim Mohr ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Fri Jul 22 10:54:22 2005 From: chris at aidworld.org (Chris Wilson) Date: Fri, 22 Jul 2005 09:54:22 +0100 Subject: Reload question In-Reply-To: References: <200507211621.j6LGLIiw002863@mail.asc.edu> Message-ID: <1122022462.10573.10.camel@localhost> Hi all, > > time. Is there a way to maintiain the scheduling queue throughout program > > restarts? If not does any body have a work around? I just don't want to ever > > see a scenario where nagios always gets reloaded before the 9999 host is > > checked for a long period of time during busy days where my coworkers are > > changing and reloading nagios. > reload does cause the scheuling queue to be re-initialized. Nagios does > not know if you have added or deleted services and hosts or just changed > definitions. It seems to me that it would be a good idea for Nagios to schedule service checks in order of oldest "last check" first, newest last. This would mean that if host 9999 hadn't been checked on the last nagios run, it would be checked quickly after a nagios restart. Even better, when adding new host definitions, they would be checked immediately, minimising the amount of time they spend in "pending" state. Very useful when testing new host definitions :-) Cheers, Chris. -- (aidworld) chris wilson | chief engineer (chris at aidworld.org) ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ecleofe7 at yahoo.com Fri Jul 22 13:54:26 2005 From: ecleofe7 at yahoo.com (Eduard B. Cleofe) Date: Fri, 22 Jul 2005 04:54:26 -0700 (PDT) Subject: hosts.conf In-Reply-To: <20050722030935.519728C1D1@sc8-sf-spam1.sourceforge.net> References: <20050722030935.519728C1D1@sc8-sf-spam1.sourceforge.net> Message-ID: <20050722115426.51683.qmail@web50701.mail.yahoo.com> hi guys, need your help. i test my nagios and his looking for my hosts.conf.do i need to create a file in nagios folder for hosts.conf or i will configure only the hosts.conf of linux? wish to hear from you guys. Thanks a lot. edu at rd eng'r.eduard --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: From Matthias.Eble at kaufland.de Fri Jul 22 14:25:33 2005 From: Matthias.Eble at kaufland.de (Matthias.Eble at kaufland.de) Date: Fri, 22 Jul 2005 14:25:33 +0200 Subject: Antwort: hosts.conf [Virus checked] In-Reply-To: <20050722115426.51683.qmail@web50701.mail.yahoo.com> References: <20050722115426.51683.qmail@web50701.mail.yahoo.com> Message-ID: nagios-users-admin at lists.sourceforge.net schrieb am 22.07.2005 13:54:26: > hi guys, > need your help. > i test my nagios and his looking for my hosts.conf.do i need to > create a file in nagios folder for hosts.conf or i will configure > only the hosts.conf of linux? hi eduard, the hosts.conf is used for placing all the define host{ ... } entries. So you define the hosts nagios has to check there. See http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#host . However. The config is splitted for structuring purposes only. So the cfg_file entries in nagios.cfg are only included, which means, that host entries can defined in every of these files. What does "osts.conf of linux mean"? the /etc/hosts? /etc/hosts has nothing to do with nagios. hope i could help a bit. matthias ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lnaves at asc.edu Fri Jul 22 15:10:18 2005 From: lnaves at asc.edu (Larry Naves) Date: Fri, 22 Jul 2005 08:10:18 -0500 Subject: Reload question In-Reply-To: <1122022462.10573.10.camel@localhost> References: <1122022462.10573.10.camel@localhost> Message-ID: <200507221310.j6MDAHaf027763@mail.asc.edu> > -----Original Message----- > From: Chris Wilson [mailto:chris at aidworld.org] > Sent: Friday, July 22, 2005 3:54 AM > To: Subhendu Ghosh > Cc: Larry Naves; Nagios Users > Subject: Re: [Nagios-users] Reload question > > Hi all, > > > > time. Is there a way to maintiain the scheduling queue throughout > > > program restarts? If not does any body have a work around? I just > > > don't want to ever see a scenario where nagios always > gets reloaded > > > before the 9999 host is checked for a long period of time during > > > busy days where my coworkers are changing and reloading nagios. > > > reload does cause the scheuling queue to be re-initialized. Nagios > > does not know if you have added or deleted services and > hosts or just > > changed definitions. > > It seems to me that it would be a good idea for Nagios to > schedule service checks in order of oldest "last check" > first, newest last. This would mean that if host 9999 hadn't > been checked on the last nagios run, it would be checked > quickly after a nagios restart. > > Even better, when adding new host definitions, they would be > checked immediately, minimising the amount of time they spend > in "pending" > state. Very useful when testing new host definitions :-) > > Cheers, Chris. > -- > (aidworld) chris wilson | chief engineer (chris at aidworld.org) > > -- > No virus found in this incoming message. > Checked by AVG Anti-Virus. > Version: 7.0.323 / Virus Database: 267.9.2/54 - Release Date: > 7/21/2005 > > I agree with Chris. I wish that at least the last host/service checked would be stored somewhere (i.e. state retention) and the checks would take up there when nagios was reloaded but an immediate check of new hosts and services would also be nice. For now I will just set a db field's bit to 1 when a change is made that would require a reload and just check it through cron every X amount of time resetting it to 0 when read. The only other way around this, that I can think of, would be for me to keep up with the last host/service checked and then after a reload perform a force schedule of the next XXX hosts. How bad would this be on nagios? Would the force check of say 850 hosts (all services w/ average of 4 services per host) be? Larry Wayne Naves, Jr. "Jay" Systems Analyst Computer Sciences Corporation / Alabama Supercomputer Authority -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.9.2/54 - Release Date: 7/21/2005 ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From francois.laupretre-prestataire at calyon.com Fri Jul 22 14:05:40 2005 From: francois.laupretre-prestataire at calyon.com (Fran=?utf-8?B?w6c=?=ois Laupretre) Date: Fri, 22 Jul 2005 14:05:40 +0200 Subject: Wildcards for allowed_hosts in nsca.cfg Message-ID: <506CE696433BD711B7C6000802B2520C079871F8@mnts3023.capitalmarkets.fr.cly> > Is there a way to use wildcard for allowed_hosts in nsca.cfg? > If there was a way to simply allow access from *every* host, > I would be happy. No, it is not supported. Here is an ugly patch to authorize it : In nsca.c, add the following line at the beginning of the is_an_allowed_host() function : if ((allowed_hosts[0]=='*')&&(allowed_hosts[0]=='\0')) return 1; Then, you can use '*' to authorize access from everywhere. Hope this helps, although not very nice :) Fran?ois -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- Ce message et ses pi?ces jointes (le "message") est destin? ? l'usage exclusif de son destinataire. Si vous recevez ce message par erreur, merci d'en aviser imm?diatement l'exp?diteur et de le d?truire ensuite. Le pr?sent message pouvant ?tre alt?r? ? notre insu, CALYON Corporate and Investment Bank ne peut pas ?tre engag? par son contenu. Tous droits r?serv?s. This message and/or any attachments (the "message") is intended for the sole use of its addressee. If you are not the addressee, please immediately notify the sender and then destroy the message. As this message and/or any attachments may have been altered without our knowledge, its content is not legally binding on CALYON Corporate and Investment Bank. All rights reserved. From Andrew.Laden at tudor.com Fri Jul 22 15:18:08 2005 From: Andrew.Laden at tudor.com (Andrew Laden) Date: Fri, 22 Jul 2005 09:18:08 -0400 Subject: Reload question Message-ID: <56EAA5BC64E6C34F8C9EE6725D4A2DFA014EC208@tudor.com> On a similar note, it would be great if a refresh did not reset the "freshness" timers/ I have a few once a day passive checks, and I use freshness checking to make sure they run once a day. If you reload or restart nagios, the freshness counters all go to zero. So if I restart nagios at 3:00, and my 9:am check fails to run the next day, I wont get notified about it until 3:00 pm, rather then at 9:00. -----Original Message----- From: Chris Wilson [mailto:chris at aidworld.org] Sent: Friday, July 22, 2005 4:54 AM To: Subhendu Ghosh Cc: Larry Naves; Nagios Users Subject: Re: [Nagios-users] Reload question Hi all, > > time. Is there a way to maintiain the scheduling queue throughout > > program restarts? If not does any body have a work around? I just > > don't want to ever see a scenario where nagios always gets reloaded > > before the 9999 host is checked for a long period of time during > > busy days where my coworkers are changing and reloading nagios. > reload does cause the scheuling queue to be re-initialized. Nagios > does not know if you have added or deleted services and hosts or just > changed definitions. It seems to me that it would be a good idea for Nagios to schedule service checks in order of oldest "last check" first, newest last. This would mean that if host 9999 hadn't been checked on the last nagios run, it would be checked quickly after a nagios restart. Even better, when adding new host definitions, they would be checked immediately, minimising the amount of time they spend in "pending" state. Very useful when testing new host definitions :-) ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 22 15:58:16 2005 From: ae at op5.se (Andreas Ericsson) Date: Fri, 22 Jul 2005 15:58:16 +0200 Subject: Wildcards for allowed_hosts in nsca.cfg In-Reply-To: <506CE696433BD711B7C6000802B2520C079871F8@mnts3023.capitalmarkets.fr.cly> References: <506CE696433BD711B7C6000802B2520C079871F8@mnts3023.capitalmarkets.fr.cly> Message-ID: <42E0FB78.9000701@op5.se> Fran?ois Laupretre wrote: >>Is there a way to use wildcard for allowed_hosts in nsca.cfg? >>If there was a way to simply allow access from *every* host, >>I would be happy. > > > No, it is not supported. > > Here is an ugly patch to authorize it : In nsca.c, add the following line at > the beginning of the is_an_allowed_host() function : > > if ((allowed_hosts[0]=='*')&&(allowed_hosts[0]=='\0')) return 1; > Replace '&&' with '||' or the expression will always evaluate to false (actually, the compiler will recognize it as dead code and remove it completely). > Then, you can use '*' to authorize access from everywhere. > > Hope this helps, although not very nice :) > > Fran?ois > > > > ------------------------------------------------------------------------ > > Ce message et ses pi?ces jointes (le "message") est destin? ? l'usage > exclusif de son destinataire. > Si vous recevez ce message par erreur, merci d'en aviser imm?diatement > l'exp?diteur et de le d?truire ensuite. Le pr?sent message pouvant > ?tre alt?r? ? notre insu, CALYON Corporate and Investment Bank > ne peut pas ?tre engag? par son contenu. Tous droits r?serv?s. > > This message and/or any attachments (the "message") is intended for > the sole use of its addressee. > If you are not the addressee, please immediately notify the sender and > then destroy the message. As this message and/or any attachments may > have been altered without our knowledge, its content is not legally > binding on CALYON Corporate and Investment Bank. All rights reserved. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From asdhouib-nagios at yahoo.fr Fri Jul 22 16:39:35 2005 From: asdhouib-nagios at yahoo.fr (nagios) Date: Fri, 22 Jul 2005 16:39:35 +0200 (CEST) Subject: nagios 1.2 database documentation? Message-ID: <20050722143935.92991.qmail@web25706.mail.ukl.yahoo.com> Hi all, I want to know if there is an available documentation on the table fields filled by nagios. thanks, Anas. Get Firefox! ___________________________________________________________________________ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger T?l?chargez cette version sur http://fr.messenger.yahoo.com ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From francois.laupretre-prestataire at calyon.com Fri Jul 22 17:03:35 2005 From: francois.laupretre-prestataire at calyon.com (Fran=?utf-8?B?w6c=?=ois Laupretre) Date: Fri, 22 Jul 2005 17:03:35 +0200 Subject: Wildcards for allowed_hosts in nsca.cfg Message-ID: <506CE696433BD711B7C6000802B2520C079871FA@mnts3023.capitalmarkets.fr.cly> Sorry : if ((allowed_hosts[0]=='*')&&(allowed_hosts[1]=='\0')) return 1; -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- Ce message et ses pi?ces jointes (le "message") est destin? ? l'usage exclusif de son destinataire. Si vous recevez ce message par erreur, merci d'en aviser imm?diatement l'exp?diteur et de le d?truire ensuite. Le pr?sent message pouvant ?tre alt?r? ? notre insu, CALYON Corporate and Investment Bank ne peut pas ?tre engag? par son contenu. Tous droits r?serv?s. This message and/or any attachments (the "message") is intended for the sole use of its addressee. If you are not the addressee, please immediately notify the sender and then destroy the message. As this message and/or any attachments may have been altered without our knowledge, its content is not legally binding on CALYON Corporate and Investment Bank. All rights reserved. From francois.laupretre-prestataire at calyon.com Fri Jul 22 17:23:07 2005 From: francois.laupretre-prestataire at calyon.com (Fran=?utf-8?B?w6c=?=ois Laupretre) Date: Fri, 22 Jul 2005 17:23:07 +0200 Subject: Reload question Message-ID: <506CE696433BD711B7C6000802B2520C079871FB@mnts3023.capitalmarkets.fr.cly> > > > time. Is there a way to maintiain the scheduling queue throughout > > > program restarts? In Nagios V 2, you can use the 'use_retained_scheduling_info' parameter. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- Ce message et ses pi?ces jointes (le "message") est destin? ? l'usage exclusif de son destinataire. Si vous recevez ce message par erreur, merci d'en aviser imm?diatement l'exp?diteur et de le d?truire ensuite. Le pr?sent message pouvant ?tre alt?r? ? notre insu, CALYON Corporate and Investment Bank ne peut pas ?tre engag? par son contenu. Tous droits r?serv?s. This message and/or any attachments (the "message") is intended for the sole use of its addressee. If you are not the addressee, please immediately notify the sender and then destroy the message. As this message and/or any attachments may have been altered without our knowledge, its content is not legally binding on CALYON Corporate and Investment Bank. All rights reserved. From lnaves at asc.edu Fri Jul 22 17:41:53 2005 From: lnaves at asc.edu (Larry Naves) Date: Fri, 22 Jul 2005 10:41:53 -0500 Subject: Reload question In-Reply-To: <506CE696433BD711B7C6000802B2520C079871FB@mnts3023.capitalmarkets.fr.cly> References: <506CE696433BD711B7C6000802B2520C079871FB@mnts3023.capitalmarkets.fr.cly> Message-ID: <200507221541.j6MFfomL031550@mail.asc.edu> Thanks, I did not know that. I will give moving to 2 a thought. Larry Wayne Naves, Jr. "Jay" Systems Analyst Computer Sciences Corporation / Alabama Supercomputer Authority _____ From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Fran?ois Laupretre Sent: Friday, July 22, 2005 10:23 AM To: Nagios Users Subject: RE : [Nagios-users] Reload question > > > time. Is there a way to maintiain the scheduling queue throughout > > > program restarts? In Nagios V 2, you can use the 'use_retained_scheduling_info' parameter. -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.9.2/55 - Release Date: 7/21/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.9.2/55 - Release Date: 7/21/2005 -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfurner at uchicago.edu Fri Jul 22 17:59:45 2005 From: bfurner at uchicago.edu (Brian Furner) Date: Fri, 22 Jul 2005 17:59:45 +0200 (CEST) Subject: nrpe-2.0 on Mac OS X Message-ID: <20050722155945.0EB254F4003@desire.netways.de> Hi list I have successfully compiled both nrpe-2.0 and the nagios 1.2 plugins on a Mac OS X machine. Nrpe is set to run from xinetd and is listening on the default port. From the console of the Mac OS X box I can run nagios plugins just fine: macbox01# ./check_load -w 15,10,5 -c 30,25,20 OK - load average: 0.00, 0.01, 0.05|load1=0.000000;15.000000;30.000000; 0.000000 load5=0.011230;10.000000;25.000000;0.000000 load15=0.047363; 5.000000;20.000000;0.000000 Also, from the nagios server, I am able to reach the OS X box via nrpe: nagios-server# ./check_nrpe -H macbox01 NRPE v2.0 However, when I attempt to run a remote command on the Mac OS X from the nagios server I receive the following error: nagios-server# ./check_nrpe -H macbox01 -c check_load NRPE: Unable to read output I have double-checked the nrpe.cfg file as well as the xinetd.d file on the mac and the nagios-server is permitted access. Any suggesstions on how I might resolve this issue? Thanks. - Brian Furner (bfurner) ----------------------- The mailing list archive is found here: http://www.nagiosexchange.org/nagios-users.34.0.html ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bfurner at uchicago.edu Fri Jul 22 17:59:35 2005 From: bfurner at uchicago.edu (Brian Furner) Date: Fri, 22 Jul 2005 17:59:35 +0200 (CEST) Subject: nrpe-2.0 on Mac OS X Message-ID: <20050722155935.854164F4002@desire.netways.de> Hi list I have successfully compiled both nrpe-2.0 and the nagios 1.2 plugins on a Mac OS X machine. Nrpe is set to run from xinetd and is listening on the default port. From the console of the Mac OS X box I can run nagios plugins just fine: macbox01# ./check_load -w 15,10,5 -c 30,25,20 OK - load average: 0.00, 0.01, 0.05|load1=0.000000;15.000000;30.000000; 0.000000 load5=0.011230;10.000000;25.000000;0.000000 load15=0.047363; 5.000000;20.000000;0.000000 Also, from the nagios server, I am able to reach the OS X box via nrpe: nagios-server# ./check_nrpe -H macbox01 NRPE v2.0 However, when I attempt to run a remote command on the Mac OS X from the nagios server I receive the following error: nagios-server# ./check_nrpe -H macbox01 -c check_load NRPE: Unable to read output I have double-checked the nrpe.cfg file as well as the xinetd.d file on the mac and the nagios-server is permitted access. Any suggesstions on how I might resolve this issue? Thanks. - Brian Furner (bfurner) ----------------------- The mailing list archive is found here: http://www.nagiosexchange.org/nagios-users.34.0.html ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 22 18:08:36 2005 From: marc at ena.com (Marc Powell) Date: Fri, 22 Jul 2005 11:08:36 -0500 Subject: nagios 1.2 database documentation? Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of nagios > Sent: Friday, July 22, 2005 9:40 AM > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] nagios 1.2 database documentation? > > Hi all, > I want to know if there is an available documentation > on the table fields filled by nagios. > thanks, > Anas. The schema is self-documenting and pretty obvious. Nagios uses all the tables that you specify in the resource file and cgi config file (http://nagios.sourceforge.net/docs/1_0/xdata-db.html). What specifically are you looking for? -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Fri Jul 22 18:34:32 2005 From: pla at softflare.com (Paul L. Allen) Date: Fri, 22 Jul 2005 17:34:32 +0100 Subject: nrpe-2.0 on Mac OS X In-Reply-To: <20050722155935.854164F4002@desire.netways.de> References: <20050722155935.854164F4002@desire.netways.de> Message-ID: <20050722163432.28727.qmail@mullet.softflare.net> Brian Furner writes: > I have double-checked the nrpe.cfg file as well as the xinetd.d > file on the mac and the nagios-server is permitted access. > > Any suggesstions on how I might resolve this issue? Whichever logfile xinetd logs to would be a good place to look for clues as to why xinetd is rejecting the connection. I also note that you didn't mention checking /etc/services. -- Paul Allen Softflare Support ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From flima at rio-de-janeiro.oilfield.slb.com Fri Jul 22 19:07:46 2005 From: flima at rio-de-janeiro.oilfield.slb.com (Fernando Gomes Lima) Date: Fri, 22 Jul 2005 14:07:46 -0300 Subject: (no subject) In-Reply-To: <4e0e33ee050720072476e52a7a@mail.gmail.com> References: <4e0e33ee050720072476e52a7a@mail.gmail.com> Message-ID: Sorry for dealy all, The $USER1$ is the system user (in that case nagios), The host definition is the same that I use to check through icmp and it works, bellow you'll find it's config define host{ host_name teste alias Teste router address 192.168.5.254 parents rio_router check_command check-host-alive check_command check-host-alive max_check_attempts 3 notification_interval 30 notification_period 24x7 notification_options d,u,r } Fernando Lima Schlumberger Security Engineer flima at slb.com Office: +55 21 3824 6954 Mobile. : +55 21 9888 9046 (GMT: -03:00) -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of S?bastien Barbereau Sent: Wednesday, July 20, 2005 11:24 AM Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] (no subject) Hi, what is the value of your $USER1$ variable ? is it set correctly? what is your host definition for "teste"? Cheers, Seb.B On 7/20/05, Fernando Gomes Lima wrote: Gents, I'm pretty new at this list and I'm hopeful that someone will help me out with this problem. I'm trying to configure Nagios to monitor one specific interface at Cisco router. Through snmpwalk I got the number of interface (5). I create at checkcommands.cfg the following lines: define command{ command_name check_snmp_cisco_if_up command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1 -C $ARG2$ } At services.cfg I've inserted the following lines: define service{ host_name teste service_description check_snmp_cisco_if_up is_volatile 0 check_period 24x7 max_check_attempts 2 normal_check_interval 1 retry_check_interval 1 contact_groups nagios-admins,support notification_interval 120 notification_period 24x7 notification_options c,r check_command check_snmp_cisco_if_up!interfaces.ifTable.ifEntry.ifOperStatus.5!public } When I tested this command from libexec folder (./check_snmp -H 192.168.96.1 -o interfaces.ifTable.ifEntry.ifOperStatus.5 -C public), I got a "SNMP OK - up(1)". But at Nagios Service page I'm receiving a "SNMP problem - No data recieved from host" Any help, tip, etc., are welcome. Best Regards, Fernando Lima Schlumberger Security Engineer flima at slb.com Office: +55 21 3824 6954 Mobile. : +55 21 9888 9046 (GMT: -03:00) ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bfurner at uchicago.edu Fri Jul 22 19:13:12 2005 From: bfurner at uchicago.edu (Brian Furner) Date: Fri, 22 Jul 2005 19:13:12 +0200 (CEST) Subject: nrpe-2.0 on Mac OS X In-Reply-To: <20050722163432.28727.qmail@mullet.softflare.net> References: <20050722163432.28727.qmail@mullet.softflare.net> Message-ID: <20050722171312.437FD4F4002@desire.netways.de> Hi Paul Thanks for the helpful reply. nrpe is listed in /etc/services at port 5666 I checked my xinetd.d 'nrpe' service file and the service was mistakenly defined as nsca. I changed this to nrpe and restarted the service. Now when I run check_nrpe from the nagios server I receive: CHECK_NRPE: Error - Could not complete SSL handshake. And in the logfiles on the mac box I see: xinetd[23849]: execv( /opt/nagios/nrpe ) failed: Permission denied (errno = 13) The permissions on /opt/nagios are set correctly as far as i know, with nagios as owner and nagios as group (both of which exist as verified by checking NetInfo on the mac). Any further suggestions? - Brian Furner (bfurner) ----------------------- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi 1[showUid]=8879 ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Fri Jul 22 19:20:04 2005 From: pla at softflare.com (Paul L. Allen) Date: Fri, 22 Jul 2005 18:20:04 +0100 Subject: nrpe-2.0 on Mac OS X In-Reply-To: <20050722171312.437FD4F4002@desire.netways.de> References: <20050722163432.28727.qmail@mullet.softflare.net> <20050722171312.437FD4F4002@desire.netways.de> Message-ID: <20050722172004.19851.qmail@mullet.softflare.net> Brian Furner writes: > I checked my xinetd.d 'nrpe' service file and the service was mistakenly > defined as nsca. That wouldn't help. > And in the logfiles on the mac box I see: > > xinetd[23849]: execv( /opt/nagios/nrpe ) failed: Permission denied > (errno = 13) > The permissions on /opt/nagios are set correctly as far as i know, > with nagios as owner and nagios as group (both of which exist as > verified by checking NetInfo on the mac). Check the permsions and ownership of the executable itself and also on its config file. If either the executable or the config file are inaccessible to the nagios user then you'll see that error. My guess is that it's the config file being owned by root. -- Paul Allen Softflare Support ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bfurner at uchicago.edu Fri Jul 22 19:34:39 2005 From: bfurner at uchicago.edu (Brian Furner) Date: Fri, 22 Jul 2005 19:34:39 +0200 (CEST) Subject: nrpe-2.0 on Mac OS X In-Reply-To: <20050722172004.19851.qmail@mullet.softflare.net> References: <20050722172004.19851.qmail@mullet.softflare.net> Message-ID: <20050722173439.EA8EF4F4002@desire.netways.de> > My guess is that it's the config file being owned by root. The ownership is nagios: -rwxr-xr-x 1 nagios nagios 82684 21 Jul 14:45 nrpe -rw-r--r-- 1 nagios nagios 5020 21 Jul 14:09 nrpe.cfg - Brian Furner (bfurner) ----------------------- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi 1[showUid]=8882 ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mramos at co.sapo.pt Fri Jul 22 19:34:45 2005 From: mramos at co.sapo.pt (Marco Ramos) Date: Fri, 22 Jul 2005 18:34:45 +0100 Subject: (no subject) In-Reply-To: References: Message-ID: <1122053685.4587.11.camel@localhost.localdomain> Hi, the ip address you are using on the teste host definition is 192.168.5.254 and the one your are testing with the command below is 192.168.96.1. HTH and best regards from Portugal, Marco Ramos On Fri, 2005-07-22 at 14:07 -0300, Fernando Gomes Lima wrote: > Sorry for dealy all, > > The $USER1$ is the system user (in that case nagios), > > The host definition is the same that I use to check through icmp and it > works, bellow you'll find it's config > > define host{ > > host_name teste > alias Teste router > address 192.168.5.254 > parents rio_router > check_command check-host-alive > check_command check-host-alive > max_check_attempts 3 > notification_interval 30 > notification_period 24x7 > notification_options d,u,r > } > > Fernando Lima > Schlumberger > Security Engineer > flima at slb.com > > Office: +55 21 3824 6954 > Mobile. : +55 21 9888 9046 > (GMT: -03:00) > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of S?bastien > Barbereau > Sent: Wednesday, July 20, 2005 11:24 AM > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] (no subject) > > > Hi, > what is the value of your $USER1$ variable ? is it set correctly? > what is your host definition for "teste"? > > Cheers, > Seb.B > > On 7/20/05, Fernando Gomes Lima > wrote: > Gents, > > I'm pretty new at this list and I'm hopeful that someone will help me out > with this problem. I'm trying to configure Nagios to monitor one specific > interface at Cisco router. Through snmpwalk I got the number of interface > (5). > > I create at checkcommands.cfg the following lines: > > define command{ > command_name check_snmp_cisco_if_up > command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1 -C > $ARG2$ > } > > At services.cfg I've inserted the following lines: > > define service{ > > host_name teste > service_description check_snmp_cisco_if_up > is_volatile 0 > check_period 24x7 > max_check_attempts 2 > normal_check_interval 1 > retry_check_interval 1 > contact_groups nagios-admins,support > notification_interval 120 > notification_period 24x7 > notification_options c,r > check_command > check_snmp_cisco_if_up!interfaces.ifTable.ifEntry.ifOperStatus.5!public > } > > When I tested this command from libexec folder (./check_snmp -H > 192.168.96.1 -o interfaces.ifTable.ifEntry.ifOperStatus.5 -C public), I got > a "SNMP OK - up(1)". But at Nagios Service page I'm receiving a "SNMP > problem - No data recieved from host" > > Any help, tip, etc., are welcome. > Best Regards, > Fernando Lima > Schlumberger > Security Engineer > flima at slb.com > > Office: +55 21 3824 6954 > Mobile. : +55 21 9888 9046 > (GMT: -03:00) > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From flima at rio-de-janeiro.oilfield.slb.com Fri Jul 22 19:41:46 2005 From: flima at rio-de-janeiro.oilfield.slb.com (Fernando Gomes Lima) Date: Fri, 22 Jul 2005 14:41:46 -0300 Subject: (no subject) In-Reply-To: <1122053685.4587.11.camel@localhost.localdomain> References: <1122053685.4587.11.camel@localhost.localdomain> Message-ID: Sorry Marco... It's was a mistake from my part... The host is the same 192.168.96.1. I was changing another mail and changed this one... sorry all... here's the correct host definition define host{ host_name teste alias Teste router address 192.168.96.1 parents rio_router check_command check-host-alive check_command check-host-alive max_check_attempts 3 notification_interval 30 notification_period 24x7 notification_options d,u,r } Fernando Lima Schlumberger Security Engineer flima at slb.com Office: +55 21 3824 6954 Mobile. : +55 21 9888 9046 (GMT: -03:00) -----Original Message----- From: Marco Ramos [mailto:mramos at co.sapo.pt] Sent: Friday, July 22, 2005 2:35 PM To: flima at rio-de-janeiro.oilfield.slb.com Cc: S?bastien Barbereau; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] (no subject) Hi, the ip address you are using on the teste host definition is 192.168.5.254 and the one your are testing with the command below is 192.168.96.1. HTH and best regards from Portugal, Marco Ramos On Fri, 2005-07-22 at 14:07 -0300, Fernando Gomes Lima wrote: > Sorry for dealy all, > > The $USER1$ is the system user (in that case nagios), > > The host definition is the same that I use to check through icmp and it > works, bellow you'll find it's config > > define host{ > > host_name teste > alias Teste router > address 192.168.96.1 > parents rio_router > check_command check-host-alive > check_command check-host-alive > max_check_attempts 3 > notification_interval 30 > notification_period 24x7 > notification_options d,u,r > } > > Fernando Lima > Schlumberger > Security Engineer > flima at slb.com > > Office: +55 21 3824 6954 > Mobile. : +55 21 9888 9046 > (GMT: -03:00) > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of S?bastien > Barbereau > Sent: Wednesday, July 20, 2005 11:24 AM > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] (no subject) > > > Hi, > what is the value of your $USER1$ variable ? is it set correctly? > what is your host definition for "teste"? > > Cheers, > Seb.B > > On 7/20/05, Fernando Gomes Lima > wrote: > Gents, > > I'm pretty new at this list and I'm hopeful that someone will help me out > with this problem. I'm trying to configure Nagios to monitor one specific > interface at Cisco router. Through snmpwalk I got the number of interface > (5). > > I create at checkcommands.cfg the following lines: > > define command{ > command_name check_snmp_cisco_if_up > command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1 -C > $ARG2$ > } > > At services.cfg I've inserted the following lines: > > define service{ > > host_name teste > service_description check_snmp_cisco_if_up > is_volatile 0 > check_period 24x7 > max_check_attempts 2 > normal_check_interval 1 > retry_check_interval 1 > contact_groups nagios-admins,support > notification_interval 120 > notification_period 24x7 > notification_options c,r > check_command > check_snmp_cisco_if_up!interfaces.ifTable.ifEntry.ifOperStatus.5!public > } > > When I tested this command from libexec folder (./check_snmp -H > 192.168.96.1 -o interfaces.ifTable.ifEntry.ifOperStatus.5 -C public), I got > a "SNMP OK - up(1)". But at Nagios Service page I'm receiving a "SNMP > problem - No data recieved from host" > > Any help, tip, etc., are welcome. > Best Regards, > Fernando Lima > Schlumberger > Security Engineer > flima at slb.com > > Office: +55 21 3824 6954 > Mobile. : +55 21 9888 9046 > (GMT: -03:00) > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From barbereau at gmail.com Fri Jul 22 20:12:25 2005 From: barbereau at gmail.com (=?ISO-8859-1?Q?S=E9bastien_Barbereau?=) Date: Fri, 22 Jul 2005 20:12:25 +0200 Subject: (no subject) In-Reply-To: References: <1122053685.4587.11.camel@localhost.localdomain> Message-ID: <4e0e33ee050722111222ecfb21@mail.gmail.com> > > The $USER1$ is the system user (in that case nagios), ???? $USER1 is a user defined variable and in your case should be a path ... for example /usr/loca/nagios/plugins/ and is probably in resource.cfg try to change this ... -------------- next part -------------- An HTML attachment was scrubbed... URL: From pla at softflare.com Fri Jul 22 20:41:51 2005 From: pla at softflare.com (Paul L. Allen) Date: Fri, 22 Jul 2005 19:41:51 +0100 Subject: nrpe-2.0 on Mac OS X In-Reply-To: <20050722173439.EA8EF4F4002@desire.netways.de> References: <20050722172004.19851.qmail@mullet.softflare.net> <20050722173439.EA8EF4F4002@desire.netways.de> Message-ID: <20050722184151.14944.qmail@mullet.softflare.net> Brian Furner writes: > The ownership is nagios: > > -rwxr-xr-x 1 nagios nagios 82684 21 Jul 14:45 nrpe > > -rw-r--r-- 1 nagios nagios 5020 21 Jul 14:09 nrpe.cfg I no longer have a system with NRPE on it because I switched to NSCA. NSCA requires nsca.cfg not to be world-readable (because it contains a password). I don't remember NRPE being that fussy but maybe it is (no password in the config, so no need to be that fussy). Check accessibility of parent directories of those two files. Also double-check the server_args you're calling nrpe with - both for syntax and for having the correct path to nrpe.cfg. Also check the server you specified for xinetd - double-check that the path is correct. If that doesn't solve the problem, stop xinetd then fire it up manually with the -d option to get lots of debugging output. If that fails, you're into strace territory. -- Paul Allen Softflare Support ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From flima at rio-de-janeiro.oilfield.slb.com Fri Jul 22 21:18:10 2005 From: flima at rio-de-janeiro.oilfield.slb.com (Fernando Gomes Lima) Date: Fri, 22 Jul 2005 16:18:10 -0300 Subject: (no subject) In-Reply-To: <4e0e33ee050722111222ecfb21@mail.gmail.com> References: <4e0e33ee050722111222ecfb21@mail.gmail.com> Message-ID: # Sets $USER1$ to be the path to the plugins $USER1$='/usr/local/nagios/libexec' Above is the path that I pasted from my resource.cfg. Is that correct? Bellow you'll find the content of my libexec folder [root at nagios etc]# cd ../libexec/ [root at nagios libexec]# ls check_breeze check_ifoperstatus check_nntp check_sensors check_users check_by_ssh check_ifstatus check_nt check_simap check_vsz check_dig check_imap check_ntp check_smtp check_wave check_disk check_ircd check_nwstat check_snmp negate check_disk_smb check_ldap check_oracle check_spop urlize check_dns check_load check_overcr check_ssh utils.pm check_dummy check_log check_ping check_swap utils.sh check_flexlm check_mailq check_pop check_tcp check_ftp check_mrtg check_procs check_time check_hpjd check_mrtgtraf check_real check_udp check_http check_nagios check_rpc check_ups Thanks, Fernando Lima Schlumberger Security Engineer flima at slb.com Office: +55 21 3824 6954 Mobile. : +55 21 9888 9046 (GMT: -03:00) -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of S?bastien Barbereau Sent: Friday, July 22, 2005 3:12 PM Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] (no subject) > > The $USER1$ is the system user (in that case nagios), ???? $USER1 is a user defined variable and in your case should be a path ... for example /usr/loca/nagios/plugins/ and is probably in resource.cfg try to change this ... ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bfurner at uchicago.edu Fri Jul 22 23:27:09 2005 From: bfurner at uchicago.edu (Brian Furner) Date: Fri, 22 Jul 2005 23:27:09 +0200 (CEST) Subject: nrpe-2.0 on Mac OS X In-Reply-To: <20050722184151.14944.qmail@mullet.softflare.net> References: <20050722184151.14944.qmail@mullet.softflare.net> Message-ID: <20050722212709.8254F4F4002@desire.netways.de> Well, I was able to get nrpe to work when run as a standalone daemon (ie running it with -d), but it still seems to fail when run from xinetd. I'll continue to tweak and see if I cannot get to the bottom of this. Thanks for your help. - Brian Furner (bfurner) ----------------------- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi 1[showUid]=8890 ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nishsharma at hotmail.com Sat Jul 23 12:00:33 2005 From: nishsharma at hotmail.com (nishant sharma) Date: Sat, 23 Jul 2005 15:30:33 +0530 Subject: query regarding installlation In-Reply-To: <20050711063615.254AA1260B@sc8-sf-spam2.sourceforge.net> References: <20050711063615.254AA1260B@sc8-sf-spam2.sourceforge.net> Message-ID: I have downloaded nagios 1.3 version from your website.the installation procedure syas we need to save the plugins in libexec dir in usr/local/nagios directory.while installiation of nagios no such libexec dir was created,should i create /libexec dir myself and then install the plug-ins in that directory. kindlyhelp me out as i am stuck up in between. nishant sharma _________________________________________________________________ Meet interesting singles like you http://match.msn.co.in/match/mt.cfm?pg=channel&tcid=234764 Sign up with Match.com ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From aewhale at ABS-CompTech.com Sat Jul 23 22:30:39 2005 From: aewhale at ABS-CompTech.com (Albert Whale) Date: Sat, 23 Jul 2005 16:30:39 -0400 Subject: Startup fails - Nagios -2.0b3 In-Reply-To: <42DFB04B.3080200@ABS-CompTech.com> References: <42DFB04B.3080200@ABS-CompTech.com> Message-ID: <42E2A8EF.9000802@ABS-CompTech.com> For the completeness of this thread, the problem is that the permissions on the /etc/nagios directory and all of the files within it were not owned by the nagios user. Issuing the command chown -R nagios.nagios /etc/nagios Corrected the startup issues. Can we get the nagios -v command to test this condition? Obviously root has the capability to read the files, but the -d command fails without mentioning why. Albert Whale wrote: > This is fresh installation from rpms (no help from the Mandriva > Experts list) on Mandriva 10.2, with Nagios 2.0b3. This is my second > attempt for installation (the first attempt was on Mandrake 10.1). > Anyway, neither installation (from rpm or source compilation) appears > to run. > > The review of the configuration file indicates there are no problems: > > nagios -v /etc/nagios/nagios.cfg > > Nagios 2.0b3 > Copyright (c) 1999-2005 Ethan Galstad (www.nagios.org) > Last Modified: 04-03-2005 > License: GPL > > Reading configuration data... > > Running pre-flight check on configuration data... > > Checking services... > Checked 19 services. > Checking hosts... > Checked 2 hosts. > Checking host groups... > Checked 1 host groups. > Checking service groups... > Checked 0 service groups. > Checking contacts... > Checked 2 contacts. > Checking contact groups... > Checked 2 contact groups. > Checking service escalations... > Checked 2 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 29 commands. > Checking time periods... > Checked 4 time periods. > Checking extended host info definitions... > Checked 0 extended host info definitions. > Checking extended service info definitions... > Checked 0 extended service info definitions. > Checking for circular paths between hosts... > Checking for circular host and service dependencies... > Checking global event handlers... > Checking obsessive compulsive processor commands... > Checking misc settings... > > Total Warnings: 0 > Total Errors: 0 > > Things look okay - No serious problems were detected during the > pre-flight check > > However when I launch the daemon here is what I get in the logfile: > > nagios -d /etc/nagios/nagios.cfg > > Jul 21 08:38:33 sz7 nagios: Nagios 2.0b3 starting... (PID=27491) > Jul 21 08:38:33 sz7 nagios: LOG VERSION: 2.0 > Jul 21 08:38:33 sz7 nagios: Bailing out due to one or more errors > encountered in the configuration files. Run Nagios from the command > line with the -v option to verify your config before restarting. > (PID=27491) > > Any suggestions where to turn next? > > > -- Albert E. Whale, CHS CISA CISSP Sr. Security, Network, Risk Assessment and Systems Consultant ------------------------------------------------------------------- ABS Computer Technology, Inc. - www.ABS-CompTech.com SPAM Zapper - No-JunkMail.com - Spam-Zapper.com - SPAM Stops Here. President of the Pittsburgh InfraGard Alliance ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ssugar at proserveit.com Sun Jul 24 23:40:07 2005 From: ssugar at proserveit.com (Scott Sugar) Date: Sun, 24 Jul 2005 17:40:07 -0400 Subject: Startup fails - Nagios -2.0b3 Message-ID: I have found that 90% of the problems i run into when trying to configure something new in nagios, or when I first began distributed monitoring, most of the problems i had were because of permissions... A quick way to try and test permissions on a new command or new feature you are implementing is to actually switch the the nagios user 'su nagios' on the command line, and then run the script that is giving you errors... ________________________________ From: nagios-users-admin at lists.sourceforge.net on behalf of Albert Whale Sent: Sat 7/23/2005 4:30 PM Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Startup fails - Nagios -2.0b3 For the completeness of this thread, the problem is that the permissions on the /etc/nagios directory and all of the files within it were not owned by the nagios user. Issuing the command chown -R nagios.nagios /etc/nagios Corrected the startup issues. Can we get the nagios -v command to test this condition? Obviously root has the capability to read the files, but the -d command fails without mentioning why. Albert Whale wrote: > This is fresh installation from rpms (no help from the Mandriva > Experts list) on Mandriva 10.2, with Nagios 2.0b3. This is my second > attempt for installation (the first attempt was on Mandrake 10.1). > Anyway, neither installation (from rpm or source compilation) appears > to run. > > The review of the configuration file indicates there are no problems: > > nagios -v /etc/nagios/nagios.cfg > > Nagios 2.0b3 > Copyright (c) 1999-2005 Ethan Galstad (www.nagios.org) > Last Modified: 04-03-2005 > License: GPL > > Reading configuration data... > > Running pre-flight check on configuration data... > > Checking services... > Checked 19 services. > Checking hosts... > Checked 2 hosts. > Checking host groups... > Checked 1 host groups. > Checking service groups... > Checked 0 service groups. > Checking contacts... > Checked 2 contacts. > Checking contact groups... > Checked 2 contact groups. > Checking service escalations... > Checked 2 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 29 commands. > Checking time periods... > Checked 4 time periods. > Checking extended host info definitions... > Checked 0 extended host info definitions. > Checking extended service info definitions... > Checked 0 extended service info definitions. > Checking for circular paths between hosts... > Checking for circular host and service dependencies... > Checking global event handlers... > Checking obsessive compulsive processor commands... > Checking misc settings... > > Total Warnings: 0 > Total Errors: 0 > > Things look okay - No serious problems were detected during the > pre-flight check > > However when I launch the daemon here is what I get in the logfile: > > nagios -d /etc/nagios/nagios.cfg > > Jul 21 08:38:33 sz7 nagios: Nagios 2.0b3 starting... (PID=27491) > Jul 21 08:38:33 sz7 nagios: LOG VERSION: 2.0 > Jul 21 08:38:33 sz7 nagios: Bailing out due to one or more errors > encountered in the configuration files. Run Nagios from the command > line with the -v option to verify your config before restarting. > (PID=27491) > > Any suggestions where to turn next? > > > -- Albert E. Whale, CHS CISA CISSP Sr. Security, Network, Risk Assessment and Systems Consultant ------------------------------------------------------------------- ABS Computer Technology, Inc. - www.ABS-CompTech.com SPAM Zapper - No-JunkMail.com - Spam-Zapper.com - SPAM Stops Here. President of the Pittsburgh InfraGard Alliance ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 sivan.deray at net-aptitude.fr Mon Jul 25 08:53:55 2005 From: sivan.deray at net-aptitude.fr (Sivan DERAY) Date: Mon, 25 Jul 2005 08:53:55 +0200 Subject: event handlers Message-ID: <4E13BD0442DACA4D9606CAD98924F09A45D21D@srv-nap-atlas-1.net-aptitude.fr> Hi, I have NSCA running on a remote host that sends messages to Nagios server which generates alerts. I'd like to stop a service once that alerts comes. Now here is my question : Am i oblige to use eventhandlers ? The service is checked only once, and turn to Hard state when a bad status is detected. What should i implement ? Sivan DERAY -------------- next part -------------- An HTML attachment was scrubbed... URL: From Ralph.Grothe at itdz-berlin.de Mon Jul 25 11:10:49 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Mon, 25 Jul 2005 11:10:49 +0200 Subject: Masking Line Breaks in Nagios Config Files Message-ID: <6B893C5F2902D311A23F0090272854FB0575B77F@litex001.lit.verwalt-berlin.de> Sorry Folks, for bothering you with such a daft question here. But I cannot find any remarks about line breaks in config files within Nagios docs, nor in the files' comments. I run pre-flight check: [nagios at daisy:~] $ bin/nagios -v etc/nagios.cfg Nagios 2.0b3 Copyright (c) 1999-2005 Ethan Galstad (www.nagios.org) Last Modified: 04-03-2005 License: GPL Reading configuration data... Error: Invalid command object directive '-c'. Error: Could not add object property in file '/opt/sw/nagios/etc/checkcommands.cfg' on line 173. ***> One or more problems was encountered while processing the config files... Check your configuration file(s) to ensure that they contain valid directives and data defintions. If you are upgrading from a previous version of Nagios, you should be aware that some variables/definitions may have been removed or modified in this version. Make sure to read the HTML documentation regarding the config files, as well as the 'Whats New' section to find out what has changed. This is the surrounding of the offending line: [nagios at daisy:~] $ cat -n etc/checkcommands.cfg|sed -n 170,175p 170 define command{ 171 command_name check-host-alive 172 command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% \ 173 -c 5000.0,100% -p 1 174 } 175 I know this is only cosmetic since I could well join the broken lines. But this degrades readibilty I think. If I ommit the line feed quoting backslash altogether nagios still "thinks" that -c... was meant as a new statement. While I am at it. Do I have to restart nagios (or rather send it a SIGHUP) each time I append entries to my config files, or will it scan the new stuff prior to a new check execution? -- Ralph Grothe (GBII1Gr) IT Dienstleistungszentrum Berlin Berliner Strasse 112-115 D-10713 Berlin Phone: +49 30 9012 6481 Fax: +49 30 9012 3151 ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From robmossrm at aol.com Mon Jul 25 11:29:42 2005 From: robmossrm at aol.com (Rob Moss) Date: Mon, 25 Jul 2005 10:29:42 +0100 Subject: Masking Line Breaks in Nagios Config Files In-Reply-To: <6B893C5F2902D311A23F0090272854FB0575B77F@litex001.lit.verwalt-berlin.de> References: <6B893C5F2902D311A23F0090272854FB0575B77F@litex001.lit.verwalt-berlin.de> Message-ID: <42E4B106.1040202@aol.com> Hi, The way nagios reads the config file does not recognise the \ continued line feature, which is why it's showing an error. It's seeing your command, a carriage return signifying the end of the command, then a new command which starts with -c which is unrecognised and it displays a warning. Yes you need to restart Nagios whenever you make a change to the config files. Either SIGHUP, or through the web console. Cheers Ralph.Grothe at itdz-berlin.de wrote: >Sorry Folks, for bothering you with such a daft question here. >But I cannot find any remarks about line breaks in config files >within Nagios docs, nor in the files' comments. > > >I run pre-flight check: > > >[nagios at daisy:~] >$ bin/nagios -v etc/nagios.cfg > >Nagios 2.0b3 >Copyright (c) 1999-2005 Ethan Galstad (www.nagios.org) >Last Modified: 04-03-2005 >License: GPL > >Reading configuration data... > >Error: Invalid command object directive '-c'. >Error: Could not add object property in file >'/opt/sw/nagios/etc/checkcommands.cfg' on line 173. > >***> One or more problems was encountered while processing the >config files... > > Check your configuration file(s) to ensure that they contain >valid > directives and data defintions. If you are upgrading from a >previous > version of Nagios, you should be aware that some >variables/definitions > may have been removed or modified in this version. Make >sure to read > the HTML documentation regarding the config files, as well >as the > 'Whats New' section to find out what has changed. > > > >This is the surrounding of the offending line: > > >[nagios at daisy:~] >$ cat -n etc/checkcommands.cfg|sed -n 170,175p > 170 define command{ > 171 command_name check-host-alive > 172 command_line $USER1$/check_ping -H >$HOSTADDRESS$ -w 3000.0,80% \ > 173 -c 5000.0,100% >-p 1 > 174 } > 175 > > > >I know this is only cosmetic since I could well join the broken >lines. >But this degrades readibilty I think. >If I ommit the line feed quoting backslash altogether nagios >still "thinks" that -c... was meant as a new statement. > > > >While I am at it. >Do I have to restart nagios (or rather send it a SIGHUP) each >time I append entries to my config files, >or will it scan the new stuff prior to a new check execution? > > > >-- >Ralph Grothe (GBII1Gr) >IT Dienstleistungszentrum Berlin >Berliner Strasse 112-115 >D-10713 Berlin >Phone: +49 30 9012 6481 >Fax: +49 30 9012 3151 > > >------------------------------------------------------- >SF.Net email is sponsored by: Discover Easy Linux Migration Strategies >from IBM. Find simple to follow Roadmaps, straightforward articles, >informative Webcasts and more! Get everything you need to get up to >speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > > > -- Rob Moss Snr. Unix Administrator Hosting & DB Operations Hammersmith, London, UK Phone: +44 20 7348 8629 ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe at itdz-berlin.de Mon Jul 25 11:47:02 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Mon, 25 Jul 2005 11:47:02 +0200 Subject: Service Definition Efficiency Message-ID: <6B893C5F2902D311A23F0090272854FB0575B780@litex001.lit.verwalt-berlin.de> Hello, virtually every of the nodes I need to monitor by Nagios has an SSH daemon listening. Since this is my means of transport to any node I would consider it a vital service which requires to be checked. To this end I would use either "check_tcp -p 22 ...", or maybe better yet since I guess a more thorough check is involved, check_ssh from the Nagios plug-ins. Because I want to safe me from repetitive editing I thought one could define a service group in servicegroups.cfg that comprises every host of our site that runs an SSH daemon in the member list. Then I'd like to define a generic check-ssh service that kind of being only template defined. But I stumbled over that each service requires a check_command statement, which again would force me into a hundred times buffer copying and editing. Can what I wish to accomplish be set up in abt. less than ten lines? Regards Ralph ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe at itdz-berlin.de Mon Jul 25 11:53:16 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Mon, 25 Jul 2005 11:53:16 +0200 Subject: Masking Line Breaks in Nagios Config Files Message-ID: <6B893C5F2902D311A23F0090272854FB0575B781@litex001.lit.verwalt-berlin.de> Hi Rob, > Hi, > The way nagios reads the config file does not recognise the \ > continued line feature, which is why it's showing an error. > It's seeing > your command, a carriage return signifying the end of the > command, then > a new command which starts with -c which is unrecognised and > it displays > a warning. so bluntly speaking, I need to live with the line clutter, i.e. one line from ^ to $, and no line breaks allowed. ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mon Jul 25 12:42:27 2005 From: srunschke at abit.de (srunschke at abit.de) Date: Mon, 25 Jul 2005 12:42:27 +0200 Subject: Antwort: Service Definition Efficiency In-Reply-To: <6B893C5F2902D311A23F0090272854FB0575B780@litex001.lit.verwalt-berlin.de> References: <6B893C5F2902D311A23F0090272854FB0575B780@litex001.lit.verwalt-berlin.de> Message-ID: > Because I want to safe me from repetitive editing I thought one > could define a service group in servicegroups.cfg > that comprises every host of our site that runs an SSH daemon in > the member list. > > Then I'd like to define a generic check-ssh service that kind of > being only template defined. > But I stumbled over that each service requires a check_command > statement, > which again would force me into a hundred times buffer copying > and editing. > > Can what I wish to accomplish be set up in abt. less than ten > lines? 1. Create an empty hostgroup named SSH-HOSTGROUP 2. Create a generic service template generic-CHECK_SSH with "check_command check_ssh" 3. Put "hostgroups SSH-HOSTGROUP" into the appropiate hosts 4. Create a servicecheck: define service { use generic-CHECK_SSH hostgroup_name SSH-HOSTGROUP service_description SSH register 1 contact_groups your_contactgroup } Once you have this setup, you only need to edit the hostfiles and add/remove the SSH-HOSTGROUP from the host to add/remove the check. No more editing of any other file in the future. But take care that the hostgroup should never have 0 members or Nagios will bail and refuse to start. -------------------------------------------------- Sascha Runschke Netzwerk Administration IT-Services ABIT AG Robert-Bosch-Str. 1 40668 Meerbusch Tel.:+49 (0) 2150.9153.226 Mobil:+49 (0) 173.5419665 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.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe at itdz-berlin.de Mon Jul 25 13:52:18 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Mon, 25 Jul 2005 13:52:18 +0200 Subject: Antwort: Service Definition Efficiency Message-ID: <6B893C5F2902D311A23F0090272854FB0575B783@litex001.lit.verwalt-berlin.de> Hi Sascha, discovered your trick in the Time Saving Section of the Nagios docs. http://nagios.sourceforge.net/docs/2_0/templatetricks.html#servic e But this is somewhat inconsistent with the listing of allowed attributes in the Service Definition section http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#service In this list I cannot find the hostname_group attribute at all, only the host_name attribute which has red coloured font to indicate that this is a required entry! And as I learned somewhere else in the docs that such object definitions that lack required attributes should be regarded as templates (similar to abstract classes in OO) and have to be marked by "register 0". But you are suggesting the opposite (viz. "register 1")? Sorry, but to me the Nagios docs is pretty messy and should urgently undergo a revision by the developers. Then all the obfuscation possibly would magically fade and made it much easier for someone to follow it. But maybe this isn't wanted, and the Nagios folks simply modified a notorious cryptographers' slogan about security to "Proficiency by Obscurity"? > -----Original Message----- > From: srunschke at abit.de [mailto:srunschke at abit.de] > Sent: Monday, July 25, 2005 12:42 PM > To: nagios-users at lists.sourceforge.net > Cc: Ralph.Grothe at itdz-berlin.de > Subject: Antwort: [Nagios-users] Service Definition Efficiency > > > > Because I want to safe me from repetitive editing I thought one > > could define a service group in servicegroups.cfg > > that comprises every host of our site that runs an SSH daemon in > > the member list. > > > > Then I'd like to define a generic check-ssh service that kind of > > being only template defined. > > But I stumbled over that each service requires a check_command > > statement, > > which again would force me into a hundred times buffer copying > > and editing. > > > > Can what I wish to accomplish be set up in abt. less than ten > > lines? > > 1. Create an empty hostgroup named SSH-HOSTGROUP > 2. Create a generic service template generic-CHECK_SSH > with "check_command check_ssh" > 3. Put "hostgroups SSH-HOSTGROUP" into the appropiate hosts > 4. Create a servicecheck: > > define service { > use generic-CHECK_SSH > hostgroup_name SSH-HOSTGROUP > service_description SSH > register 1 > contact_groups your_contactgroup > } > > Once you have this setup, you only need to edit the > hostfiles and add/remove the SSH-HOSTGROUP from the > host to add/remove the check. No more editing of any > other file in the future. > > But take care that the hostgroup should never have 0 > members or Nagios will bail and refuse to start. ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From aewhale at ABS-CompTech.com Mon Jul 25 13:57:35 2005 From: aewhale at ABS-CompTech.com (Albert Whale) Date: Mon, 25 Jul 2005 07:57:35 -0400 Subject: Host Detail Error Message-ID: <42E4D3AF.4080706@ABS-CompTech.com> I have installed the Mandriva version of the Nagios 2.0.3 beta. After fighting through permission problems to get the Web Interface running I finally have the browser running, and I am trying to view the one host I have defined. When I click on the host detail button, I get the following: It appears as though you do not have permission to view information for any of the hosts 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. Can anyone tell me what this means? I cannot seem to run the CGI from the command line to find the actual errors. I would also like to know if there exists the capability to log these actions to a debugging log file. Best Regards, -- Albert E. Whale, CHS CISA CISSP Sr. Security, Network, Risk Assessment and Systems Consultant ------------------------------------------------------------------- ABS Computer Technology, Inc. - www.ABS-CompTech.com SPAM Zapper - No-JunkMail.com - Spam-Zapper.com - SPAM Stops Here. President of the Pittsburgh InfraGard Alliance ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From james at lovedthanlost.net Mon Jul 25 14:31:05 2005 From: james at lovedthanlost.net (James Turnbull) Date: Mon, 25 Jul 2005 22:31:05 +1000 Subject: Antwort: Service Definition Efficiency In-Reply-To: <6B893C5F2902D311A23F0090272854FB0575B783@litex001.lit.verwalt-berlin.de> References: <6B893C5F2902D311A23F0090272854FB0575B783@litex001.lit.verwalt-berlin.de> Message-ID: <42E4DB89.1060708@lovedthanlost.net> Ralph.Grothe at itdz-berlin.de wrote: > Hi Sascha, > > discovered your trick in the Time Saving Section of the Nagios > docs. > > http://nagios.sourceforge.net/docs/2_0/templatetricks.html#servic > e Ralph I may have missed you point but surely this: define hostgroup{ hostgroup_name ssh_group alias servers with ssh members host1,host2,host3,host4,host5... } define /service/{ hostgroup_name ssh_group service_description /ssh/ check_command check_ssh/ other service directives/ ... } works fine? The host_name and hostgroup_name are interchangeable in service objects. Regards James Turnbull -- James Turnbull --- Author of Hardening Linux, Apress (http://www.amazon.com/exec/obidos/tg/detail/-/1590594444/) --- PGP Key (http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x0C42DF40) -------------- 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 james at lovedthanlost.net Mon Jul 25 14:34:38 2005 From: james at lovedthanlost.net (James Turnbull) Date: Mon, 25 Jul 2005 22:34:38 +1000 Subject: Antwort: Service Definition Efficiency In-Reply-To: <42E4DB89.1060708@lovedthanlost.net> References: <6B893C5F2902D311A23F0090272854FB0575B783@litex001.lit.verwalt-berlin.de> <42E4DB89.1060708@lovedthanlost.net> Message-ID: <42E4DC5E.4030501@lovedthanlost.net> James Turnbull wrote: Blasted HTML composition try: define hostgroup{ hostgroup_name ssh_group alias servers with ssh members host1,host2,host3,host4,host5... } define service{ hostgroup_name ssh_group service_description ssh check_command check_ssh ...other service directives... } Regards James -- James Turnbull --- Author of Hardening Linux, Apress (http://www.amazon.com/exec/obidos/tg/detail/-/1590594444/) --- PGP Key (http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x0C42DF40) -------------- 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 Ralph.Grothe at itdz-berlin.de Mon Jul 25 14:36:01 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Mon, 25 Jul 2005 14:36:01 +0200 Subject: Antwort: Service Definition Efficiency Message-ID: <6B893C5F2902D311A23F0090272854FB0575B784@litex001.lit.verwalt-berlin.de> > Ralph > > I may have missed you point but surely this: > > define hostgroup{ > hostgroup_name ssh_group > alias servers with ssh > members host1,host2,host3,host4,host5... > } > > define /service/{ > hostgroup_name ssh_group > service_description /ssh/ > check_command check_ssh/ > other service directives/ ... > } > > works fine? The host_name and hostgroup_name are interchangeable in > service objects. Thanks James, I have learned by now. But this could have been stated somewhere (best in the Service Definition Section) in the docs. I was going to ask you if you were suggestion some Regexp syntax (e.g. the slash markup), but in your 2nd reply you blamed it on some HTMLifier ;-) ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From james at lovedthanlost.net Mon Jul 25 14:39:19 2005 From: james at lovedthanlost.net (James Turnbull) Date: Mon, 25 Jul 2005 22:39:19 +1000 Subject: Host Detail Error In-Reply-To: <42E4D3AF.4080706@ABS-CompTech.com> References: <42E4D3AF.4080706@ABS-CompTech.com> Message-ID: <42E4DD77.2080106@lovedthanlost.net> Albert Whale wrote: > > It appears as though you do not have permission to view information for > any of the hosts 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. > > Can anyone tell me what this means? I cannot seem to run the CGI from > the command line to find the actual errors. Have you configured CGI authentication and permissions using Apache Basic Auth and the cgi.cfg file? See this section of the documentation for further details: http://nagios.sourceforge.net/docs/2_0/cgiauth.html Regards James Turnbull -- James Turnbull --- Author of Hardening Linux, Apress (http://www.amazon.com/exec/obidos/tg/detail/-/1590594444/) --- PGP Key (http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x0C42DF40) -------------- 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 Ralph.Grothe at itdz-berlin.de Mon Jul 25 15:08:55 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Mon, 25 Jul 2005 15:08:55 +0200 Subject: FW: Howto replace epoch secs in nagios.log by human readable date ? Message-ID: <6B893C5F2902D311A23F0090272854FB0575B786@litex001.lit.verwalt-berlin.de> Sorry for the mispost. Of course I meant to send it to nagios-users. -----Original Message----- From: Grothe, Ralph Sent: Monday, July 25, 2005 3:05 PM To: Nagiosplug-Help-Admin (E-Mail) Subject: Howto replace epoch secs in nagios.log by human readable date? Hi, after some major configuration changes I sent nagios a sighup. To check if it got caught I had a look at nagios.log. Then I realized that it is rather inconvenient to always having to do some conversion like such to find out when messages got written. [nagios at daisy:~/etc] $ perl -anle 'print scalar localtime(($F[0]=~/(\d+)/)[0]) if eof' /var/opt/nagios/log/nagios.log Mon Jul 25 14:53:37 2005 I'm sure one can select a custom (or common logfile format) similar to Apache. Can one? ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 25 16:00:13 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Mon, 25 Jul 2005 10:00:13 -0400 (EDT) Subject: FW: Howto replace epoch secs in nagios.log by human readable date ? In-Reply-To: <6B893C5F2902D311A23F0090272854FB0575B786@litex001.lit.verwalt-berlin.de> References: <6B893C5F2902D311A23F0090272854FB0575B786@litex001.lit.verwalt-berlin.de> Message-ID: Sorry the log format is fixed as all the reporting cgis depend on the epoch field. -sg On Mon, 25 Jul 2005 Ralph.Grothe at itdz-berlin.de wrote: > Sorry for the mispost. > Of course I meant to send it to nagios-users. > > -----Original Message----- > From: Grothe, Ralph > Sent: Monday, July 25, 2005 3:05 PM > To: Nagiosplug-Help-Admin (E-Mail) > Subject: Howto replace epoch secs in nagios.log by human readable > date? > > > Hi, > > after some major configuration changes I sent nagios a sighup. > > To check if it got caught I had a look at nagios.log. > > Then I realized that it is rather inconvenient to always having > to do some conversion like such > to find out when messages got written. > > [nagios at daisy:~/etc] > $ perl -anle 'print scalar localtime(($F[0]=~/(\d+)/)[0]) if eof' > /var/opt/nagios/log/nagios.log > Mon Jul 25 14:53:37 2005 > > > I'm sure one can select a custom (or common logfile format) > similar to Apache. > Can one? > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sekuela at gmail.com Mon Jul 25 16:14:04 2005 From: sekuela at gmail.com (Daniel Szortyka) Date: Mon, 25 Jul 2005 11:14:04 -0300 Subject: FW: Howto replace epoch secs in nagios.log by human readable date ? In-Reply-To: References: <6B893C5F2902D311A23F0090272854FB0575B786@litex001.lit.verwalt-berlin.de> Message-ID: <806f904f05072507146a3e48f6@mail.gmail.com> Hi, excuse-me, but... Do you want this logs only to be human readable? if you dont want to change sources or some config files in nagios you can add it in a crontab that output can be saved in another file. Regards, Daniel On 7/25/05, Subhendu Ghosh wrote: > Sorry the log format is fixed as all the reporting cgis depend on the > epoch field. > > -sg > > On Mon, 25 Jul 2005 Ralph.Grothe at itdz-berlin.de wrote: > > > Sorry for the mispost. > > Of course I meant to send it to nagios-users. > > > > -----Original Message----- > > From: Grothe, Ralph > > Sent: Monday, July 25, 2005 3:05 PM > > To: Nagiosplug-Help-Admin (E-Mail) > > Subject: Howto replace epoch secs in nagios.log by human readable > > date? > > > > > > Hi, > > > > after some major configuration changes I sent nagios a sighup. > > > > To check if it got caught I had a look at nagios.log. > > > > Then I realized that it is rather inconvenient to always having > > to do some conversion like such > > to find out when messages got written. > > > > [nagios at daisy:~/etc] > > $ perl -anle 'print scalar localtime(($F[0]=~/(\d+)/)[0]) if eof' > > /var/opt/nagios/log/nagios.log > > Mon Jul 25 14:53:37 2005 > > > > > > I'm sure one can select a custom (or common logfile format) > > similar to Apache. > > Can one? > > > > > > > > ------------------------------------------------------- > > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > > from IBM. Find simple to follow Roadmaps, straightforward articles, > > informative Webcasts and more! Get everything you need to get up to > > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > -- > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 25 16:35:27 2005 From: marc at ena.com (Marc Powell) Date: Mon, 25 Jul 2005 09:35:27 -0500 Subject: FW: Howto replace epoch secs in nagios.log by human readable date ? Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Ralph.Grothe at itdz-berlin.de > Sent: Monday, July 25, 2005 8:09 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] FW: Howto replace epoch secs in nagios.log by > human readable date ? > > Sorry for the mispost. > Of course I meant to send it to nagios-users. > > -----Original Message----- > From: Grothe, Ralph > Sent: Monday, July 25, 2005 3:05 PM > To: Nagiosplug-Help-Admin (E-Mail) > Subject: Howto replace epoch secs in nagios.log by human readable > date? > > > Hi, > > after some major configuration changes I sent nagios a sighup. > > To check if it got caught I had a look at nagios.log. > > Then I realized that it is rather inconvenient to always having > to do some conversion like such > to find out when messages got written. > > [nagios at daisy:~/etc] > $ perl -anle 'print scalar localtime(($F[0]=~/(\d+)/)[0]) if eof' > /var/opt/nagios/log/nagios.log > Mon Jul 25 14:53:37 2005 > http://www.nagios.org/faqs/viewfaq.php?faq_id=70 Modifying that slightly, tail -f nagios.log | perl -pe 's/(\d+)/localtime($1)/e' works quite well as an alias. > > I'm sure one can select a custom (or common logfile format) > similar to Apache. > Can one? One cannot. -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rick.vandermieden at orangemail.nl Mon Jul 25 16:50:47 2005 From: rick.vandermieden at orangemail.nl (Mieden, Rick van der) Date: Mon, 25 Jul 2005 16:50:47 +0200 Subject: strange CPU load caused by Nagios Message-ID: <88001FC5C453764CA6597FB298742494041E230B@svex03> Hi all, Nagios 2.0.3b causes a very high CPU load: Hardware: 2x 1100 Mhz CPU with 1024 MB RAM OS : Solaris 8 kernel patch 117350-05 When I do a top I get the following output: last pid: 10261; load averages: 6.85, 7.40, 7.32 16:41:14 84 processes: 78 sleeping, 4 running, 2 on cpu CPU states: 4.3% idle, 75.9% user, 19.3% kernel, 0.5% iowait, 0.0% swap Memory: 1024M real, 511M free, 238M swap in use, 2437M swap free PID USERNAME THR PRI NICE SIZE RES STATE TIME CPU COMMAND 24512 netsaint 5 0 0 8808K 6608K sleep 7:42 1.63% nagios 10256 netsaint 1 0 0 8232K 7640K run 0:00 0.77% check_snmp_stor 10224 netsaint 1 0 0 7664K 7080K sleep 0:00 0.75% check_snmp_load 10259 netsaint 1 0 0 8176K 7584K cpu/0 0:00 0.70% check_snmp_user 10229 netsaint 1 0 0 7520K 6936K sleep 0:00 0.61% check_processes 10247 netsaint 4 0 0 16M 7744K sleep 0:00 0.19% sqlplus 10260 netsaint 3 0 0 8792K 6280K run 0:00 0.12% nagios 10250 netsaint 1 0 0 3600K 2792K run 0:00 0.07% ssh 1062 netsaint 1 59 0 3360K 1232K sleep 6:58 0.05% ssh-agent 1 root 1 58 0 856K 280K sleep 90:43 0.04% init 8138 apache 3 50 0 10M 2952K sleep 0:00 0.04% httpd 9176 netsaint 1 59 0 2824K 1704K cpu/1 0:00 0.04% top 10237 netsaint 1 0 0 2552K 1880K sleep 0:00 0.02% check_oracle 10253 netsaint 3 0 0 8792K 1800K sleep 0:00 0.02% nagios 10245 netsaint 1 0 0 2552K 1224K sleep 0:00 0.02% check_oracle How is it possible that a proces nagios with only 5 LWPS can stress the cpu to a load of 7. I can't find a way how to show this behaviour. Can it be a system call thing? A vmstat gives: $ vmstat 5 procs memory page disk faults cpu r b w swap free re mf pi po fr de sr s0 s1 s2 -- in sy cs us sy id 4 0 0 2582248 582960 546 375 5 5 4 0 0 0 8 0 0 311 1407 502 63 18 20 6 0 0 2527464 549280 440 7143 0 8 8 0 0 0 8 0 0 288 24273 401 85 15 0 6 0 0 2507096 535384 484 10244 0 0 0 0 0 0 0 0 0 342 31842 566 79 21 0 4 0 0 2508552 529336 574 10137 0 0 0 0 0 0 0 0 0 381 29564 612 74 23 4 3 0 0 2511568 537584 750 9249 0 6 4 0 0 0 7 0 0 340 27504 565 65 20 15 6 0 0 2528312 548208 588 10524 0 1 1 0 0 0 0 0 0 375 28649 590 73 23 4 6 0 0 2521848 541696 488 7871 0 0 0 0 0 0 16 0 0 304 28062 462 66 18 16 8 0 0 2519920 539080 576 8539 0 11 9 0 0 0 8 0 0 345 24551 521 79 18 3 8 0 0 2500472 530104 295 8656 0 0 0 0 0 0 0 0 0 323 30986 510 79 21 0 7 0 0 2497000 520200 786 9454 0 0 0 0 0 0 0 0 0 353 31087 560 72 22 7 I tuned the service_inter_check_delay_method parameter ( around 2600 services with 182 hosts) to the best value (so not having big latency) to 0.45 sec. Any suggestions? Regards, Rick Met vriendelijke groet / Kind regards, Orange Nederland N.V. Rick van der Mieden Unix engineer Orange Nederland N.V. Groenhovenstraat 2 Room 2C15 2596 HT Den Haag Tel: +31 628 022771 Fax: +31 648 997173 Email: rick.vandermieden at orangemail.nl =========================================================== De informatie opgenomen in dit bericht kan vertrouwelijk zijn en is alleen bestemd voor de geadresseerde. Indien u dit bericht onterecht ontvangt, wordt u verzocht de inhoud niet te gebruiken en de afzender direct te informeren door het bericht te retourneren. Hoewel Orange maatregelen heeft genomen om virussen in deze email of attachments te voorkomen, dient u ook zelf na te gaan of virussen aanwezig zijn aangezien Orange niet aansprakelijk is voor computervirussen die veroorzaakt zijn door deze email. The information contained in this message may be confidential and is intended to be only for the addressee. Should you receive this message unintentionally, please do not use the contents herein and notify the sender immediately by return e-mail. Although Orange has taken steps to ensure that this email and attachments are free from any virus, you do need to verify the possibility of their existence as Orange can take no responsibility for any computer virus which might be transferred by way of this email. =========================================================== -------------- next part -------------- An HTML attachment was scrubbed... URL: From ssugar at proserveit.com Mon Jul 25 18:22:54 2005 From: ssugar at proserveit.com (Scott Sugar) Date: Mon, 25 Jul 2005 12:22:54 -0400 Subject: Host Detail Error Message-ID: An easy way to test this is to grant all permissions to the cgi directory /usr/local/nagios/sbin i believe... basically where all the cgi files are found. run at the command prompt when you are in the cgi directory. chmod 777 * if that works for you, then you can begin to reign in the permissions, try to run a chmod 755 * The reason this is happening is because either your nagios user you created, or was created for you does not have the permissions to execute the cgi scripts, or more likely in this case the apache user does not have the correct permissions. the manual talks about how to find out who the default apache user is. ________________________________ From: nagios-users-admin at lists.sourceforge.net on behalf of Albert Whale Sent: Mon 7/25/2005 7:57 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Host Detail Error I have installed the Mandriva version of the Nagios 2.0.3 beta. After fighting through permission problems to get the Web Interface running I finally have the browser running, and I am trying to view the one host I have defined. When I click on the host detail button, I get the following: It appears as though you do not have permission to view information for any of the hosts 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. Can anyone tell me what this means? I cannot seem to run the CGI from the command line to find the actual errors. I would also like to know if there exists the capability to log these actions to a debugging log file. Best Regards, -- Albert E. Whale, CHS CISA CISSP Sr. Security, Network, Risk Assessment and Systems Consultant ------------------------------------------------------------------- ABS Computer Technology, Inc. - www.ABS-CompTech.com SPAM Zapper - No-JunkMail.com - Spam-Zapper.com - SPAM Stops Here. President of the Pittsburgh InfraGard Alliance ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 andrew at profitability.net Mon Jul 25 19:58:25 2005 From: andrew at profitability.net (Andrew Cruse) Date: Mon, 25 Jul 2005 13:58:25 -0400 Subject: New check_snmp in CVS Message-ID: Has anyone tried compiling any of the last few revisions of check_snmp that are in CVS? I need SNMP v2c support which the last few seem to offer but can't seem to get any of them to compile: /include -I/usr/kerberos/include -g -O2 -MT check_snmp.o -MD -MP -MF ".deps/check_snmp.Tpo" -c -o check_snmp.o check_snmp.c; \ then mv -f ".deps/check_snmp.Tpo" ".deps/check_snmp.Po"; else rm -f ".deps/check_snmp.Tpo"; exit 1; fi check_snmp.c: In function `main': check_snmp.c:329: parse error before `char' check_snmp.c:330: `str' undeclared (first use in this function) check_snmp.c:330: (Each undeclared identifier is reported only once check_snmp.c:330: for each function it appears in.) make[2]: *** [check_snmp.o] Error 1 make[2]: Leaving directory `/root/nagios-plugins-1.4/plugins' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/nagios-plugins-1.4' make: *** [all] Error 2 Any ideas? Thanks, Andrew ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 25 20:12:44 2005 From: james.mohr at elaxy.com (Mohr James) Date: Mon, 25 Jul 2005 20:12:44 +0200 Subject: NRPE Repotting timeouts Message-ID: Hi All! In order to record performance data, we have a construct that looks like this: - Nagios starts an NRPE job on another machine which starts a perl script on a Windows 2003 machine - the perl script uses the snmpget command from net-snmp 5.2.1 to read a single value from a remote machine. - The value is set in the perl script simply by $value=`$command`. (I am not using the SNMP perl modules) - The OID .1.3.6.1.4.1.1.1.101.1 is defined like this in snmpd.conf: exec .1.3.6.1.4.1.1.1 /usr/bin/perl /opt/elaxy/bin/get_cpu_usage.pl - This value is then written to a MS SQL Database using osql. What is happening is that I see dozens of snmpget.exe programms running (occassionally a couple of perl.exe processes). Unfortunately, I see no way of figuring out to where these processes are connected, so I cannot tell if there are specific machine causing the problems. Using netstat, I do see a number of connections to the MS SQL database in TIMEWAIT. However, since we are checking a couple of dozens machines, this is not surprising. The Nagios is reporting both "CHECK_NRPE: Socket timeout after 10 seconds." and "connection refused". Obviously this could be a purely net-snmp problem, however, as far as I can see it seems to be behaving correctly. Since I can run the commands by hand with no problem, I am at a loss to explain where net-snmp (snmpget) is having a problem. Any ideas would be greatly appreaciated. Regards, Jim Mohr ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 25 20:22:38 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Mon, 25 Jul 2005 14:22:38 -0400 (EDT) Subject: NRPE Repotting timeouts In-Reply-To: References: Message-ID: On Mon, 25 Jul 2005, Mohr James wrote: > Hi All! > > In order to record performance data, we have a construct that looks like > this: > > - Nagios starts an NRPE job on another machine which starts a perl > script on a Windows 2003 machine > - the perl script uses the snmpget command from net-snmp 5.2.1 to read a > single value from a remote machine. > - The value is set in the perl script simply by $value=`$command`. (I am > not using the SNMP perl modules) > - The OID .1.3.6.1.4.1.1.1.101.1 is defined like this in snmpd.conf: > exec .1.3.6.1.4.1.1.1 /usr/bin/perl /opt/elaxy/bin/get_cpu_usage.pl > - This value is then written to a MS SQL Database using osql. > > What is happening is that I see dozens of snmpget.exe programms running > (occassionally a couple of perl.exe processes). Unfortunately, I see no > way of figuring out to where these processes are connected, so I cannot > tell if there are specific machine causing the problems. Using netstat, > I do see a number of connections to the MS SQL database in TIMEWAIT. > However, since we are checking a couple of dozens machines, this is not > surprising. > > The Nagios is reporting both "CHECK_NRPE: Socket timeout after 10 > seconds." and "connection refused". Obviously this could be a purely > net-snmp problem, however, as far as I can see it seems to be behaving > correctly. Since I can run the commands by hand with no problem, I am at > a loss to explain where net-snmp (snmpget) is having a problem. > > Any ideas would be greatly appreaciated. > > Regards, > > Jim Mohr > Wouldn't it be simpler to run the script off the Nagios host and enter into MSSQL using FreeTDS/perl DBI -- -sg ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 25 20:26:59 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Mon, 25 Jul 2005 14:26:59 -0400 (EDT) Subject: New check_snmp in CVS In-Reply-To: References: Message-ID: On Mon, 25 Jul 2005, Andrew Cruse wrote: > Has anyone tried compiling any of the last few revisions of check_snmp > that are in CVS? I need SNMP v2c support which the last few seem to > offer but can't seem to get any of them to compile: > > /include -I/usr/kerberos/include -g -O2 -MT check_snmp.o -MD -MP -MF > ".deps/check_snmp.Tpo" -c -o check_snmp.o check_snmp.c; \ > then mv -f ".deps/check_snmp.Tpo" ".deps/check_snmp.Po"; else rm -f > ".deps/check_snmp.Tpo"; exit 1; fi > check_snmp.c: In function `main': > check_snmp.c:329: parse error before `char' > check_snmp.c:330: `str' undeclared (first use in this function) > check_snmp.c:330: (Each undeclared identifier is reported only once > check_snmp.c:330: for each function it appears in.) > make[2]: *** [check_snmp.o] Error 1 > make[2]: Leaving directory `/root/nagios-plugins-1.4/plugins' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/root/nagios-plugins-1.4' > make: *** [all] Error 2 > > Any ideas? > > Thanks, > > Andrew > > What version of net-snmp are you using? I had it working with 5.1.2. -- -sg ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From justin.shore at sktbcs.com Mon Jul 25 20:49:48 2005 From: justin.shore at sktbcs.com (Justin Shore) Date: Mon, 25 Jul 2005 13:49:48 -0500 Subject: State Rentention thoroughly messed up Message-ID: I'm apparently having a lot of problems with state retention. I've only recently gotten this 2.0b3 install going. I originally added 5 machines of varying types and used them as baseline templates for all my other hosts. I've since added numerous hosts and services. I noticed something was wrong right away when I only saw the original 5 hosts after adding a couple dozen more. I figured I typoed something or forgot to add my new hosts to the various config files. After confirming I didn't screw that up I went back to the GUI. That time when I clicked on Host Detail I saw all my hosts. It was that way for the next couple of clicks. Then it went back to the original 5. Now, a week after getting all my hosts added I can only see all of them perhaps 9 out of 10 times. All the other times Nagios is absolutely convinced that there are only 5 hosts, instead of 33. The Host and Service Status Totals confirm this, as does the Tactical Overview. Looking through var I see that var/status.sav only contains info on the original 5 hosts and their servies when Nagios is acting squirrelly; it does however contain info on all hosts/services when it's working right (very hard to catch the file in that state, let me tell you). However objects.cache always has the right info in it. Does anyone have any ideas what's causing this? I hesitate to blame it on a typo in a config since it does work part of the time. Given its inconsistent nature I can't really point a finger at any one thing. Any ideas? Thanks Justin -- Justin Shore, Network Engineer SKT Business Communication Solutions Office: (316) 265-9555 x3217 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.9.4/57 - Release Date: 7/22/2005 ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marcels at sti.com.br Mon Jul 25 20:52:28 2005 From: marcels at sti.com.br (Marcels) Date: Mon, 25 Jul 2005 15:52:28 -0300 Subject: strange CPU load caused by Nagios Message-ID: An HTML attachment was scrubbed... URL: From marcels at sti.com.br Mon Jul 25 20:52:01 2005 From: marcels at sti.com.br (Marcels) Date: Mon, 25 Jul 2005 15:52:01 -0300 Subject: strange CPU load caused by Nagios In-Reply-To: <88001FC5C453764CA6597FB298742494041E230B@svex03> References: <88001FC5C453764CA6597FB298742494041E230B@svex03> Message-ID: An HTML attachment was scrubbed... URL: From ladams at cloudmark.com Mon Jul 25 21:01:02 2005 From: ladams at cloudmark.com (Lori Adams) Date: Mon, 25 Jul 2005 12:01:02 -0700 Subject: State Rentention thoroughly messed up Message-ID: You may have multiple instances running. Make sure there's only one. -Lori -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Justin Shore Sent: Monday, July 25, 2005 11:50 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] State Rentention thoroughly messed up I'm apparently having a lot of problems with state retention. I've only recently gotten this 2.0b3 install going. I originally added 5 machines of varying types and used them as baseline templates for all my other hosts. I've since added numerous hosts and services. I noticed something was wrong right away when I only saw the original 5 hosts after adding a couple dozen more. I figured I typoed something or forgot to add my new hosts to the various config files. After confirming I didn't screw that up I went back to the GUI. That time when I clicked on Host Detail I saw all my hosts. It was that way for the next couple of clicks. Then it went back to the original 5. Now, a week after getting all my hosts added I can only see all of them perhaps 9 out of 10 times. All the other times Nagios is absolutely convinced that there are only 5 hosts, instead of 33. The Host and Service Status Totals confirm this, as does the Tactical Overview. Looking through var I see that var/status.sav only contains info on the original 5 hosts and their servies when Nagios is acting squirrelly; it does however contain info on all hosts/services when it's working right (very hard to catch the file in that state, let me tell you). However objects.cache always has the right info in it. Does anyone have any ideas what's causing this? I hesitate to blame it on a typo in a config since it does work part of the time. Given its inconsistent nature I can't really point a finger at any one thing. Any ideas? Thanks Justin -- Justin Shore, Network Engineer SKT Business Communication Solutions Office: (316) 265-9555 x3217 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.9.4/57 - Release Date: 7/22/2005 ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=ick _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From justin.shore at sktbcs.com Mon Jul 25 21:18:32 2005 From: justin.shore at sktbcs.com (Justin Shore) Date: Mon, 25 Jul 2005 14:18:32 -0500 Subject: State Rentention thoroughly messed up Message-ID: Excellent call! Looking at my process list I see that I have two sets of Nagios slaves running. I'm not sure if something died along the way or if it was a init script flub. Either way I'll be modding my init script to detect this condition before it actually starts the next set of Nagios slaves. It's working like a champ now. Thanks Justin > -----Original Message----- > From: Lori Adams [mailto:ladams at cloudmark.com] > Sent: Monday, July 25, 2005 2:01 PM > To: Justin Shore; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] State Rentention thoroughly messed up > > You may have multiple instances running. Make sure there's only one. > > -Lori > > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Justin > Shore > Sent: Monday, July 25, 2005 11:50 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] State Rentention thoroughly messed up > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.9.4/57 - Release Date: 7/22/2005 ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 25 21:34:10 2005 From: james.mohr at elaxy.com (Mohr James) Date: Mon, 25 Jul 2005 21:34:10 +0200 Subject: AW: NRPE Repotting timeouts Message-ID: >> -----Urspr?ngliche Nachricht----- >> Von: Subhendu Ghosh [mailto:sghosh at sghosh.org] >> Gesendet: Montag, 25. Juli 2005 20:23 >> An: Mohr James >> Cc: Nagios-users at lists.sourceforge.net >> Betreff: Re: [Nagios-users] NRPE Repotting timeouts >> Wouldn't it be simpler to run the script off the Nagios host >> and enter >> into MSSQL using FreeTDS/perl DBI That depends on the definition of "simpler". If someone has an immediately solution where, for example, I change a single value in either net-snmp or Nagios, then no, converting the script to the perl DBI is not simpler. Also, since the machine that is running the snmpget machine is our central SNMP server. My boss wants all SNMP communication to be from this machine. Regards, Jim Mohr ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From xserpint at hotmail.com Mon Jul 25 21:51:00 2005 From: xserpint at hotmail.com (Mark Wisniewski) Date: Mon, 25 Jul 2005 19:51:00 +0000 (UTC) Subject: nrpe configuration issues Message-ID: I'm trying to get nrpe working and I am getting the following message: # check_nrpe -H kronotmp1 -c check_disk NRPE: Unable to read output Here's the nrpe.cfg file on the remote system: # PORT NUMBER # Port number we should wait for connections on. # NOTE: This must be a non-priviledged port (i.e. > 1024). # NOTE: This option is ignored if NRPE is running under either inetd or xinetd server_port=5666 # SERVER ADDRESS # Address that nrpe should bind to in case there are more than one interface # and you do not want nrpe to bind on all interfaces. # NOTE: This option is ignored if NRPE is running under either inetd or xinetd #server_address=192.168.1.1 # ALLOWED HOST ADDRESSES # This is a comma-delimited list of IP address of hosts that are allowed # to talk to the NRPE daemon. # # NOTE: The daemon only does rudimentary checking of the client's IP # address. I would highly recommend adding entries in your # /etc/hosts.allow file to allow only the specified host to connect # to the port you are running this daemon on. # # NOTE: This option is ignored if NRPE is running under either inetd or xinetd allowed_hosts=172.20.243.53 # NRPE USER # This determines the effective user that the NRPE daemon should run as. # You can either supply a username or a UID. # # NOTE: This option is ignored if NRPE is running under either inetd or xinetd nrpe_user=nagios # NRPE GROUP # This determines the effective group that the NRPE daemon should run as. # You can either supply a group name or a GID. # # NOTE: This option is ignored if NRPE is running under either inetd or xinetd nrpe_group=nagios # COMMAND ARGUMENT PROCESSING # This option determines whether or not the NRPE daemon will allow clients # to specify arguments to commands that are executed. This option only works # if the daemon was configured with the --enable-command-args configure script # option. # # *** ENABLING THIS OPTION IS A SECURITY RISK! *** # Read the SECURITY file for information on some of the security implications # of enabling this variable. # # Values: 0=do not allow arguments, 1=allow command arguments dont_blame_nrpe=0 # DEBUGGING OPTION # This option determines whether or not debugging messages are logged to the # syslog facility. # Values: 0=debugging off, 1=debugging on debug=1 # COMMAND TIMEOUT # This specifies the maximum number of seconds that the NRPE daemon will # allow plugins to finish executing before killing them off. command_timeout=60 # INCLUDE CONFIG FILE # This directive allows you to include definitions from an external config file. #include= # INCLUDE CONFIG DIRECTORY # This directive allows you to include definitions from config files (with a # .cfg extension) in one or more directories (with recursion). #include_dir= #include_dir= # COMMAND DEFINITIONS # Command definitions that this daemon will run. Definitions # are in the following format: # # command[]= # # When the daemon receives a request to return the results of # it will execute the command specified by the argument. # # Unlike Nagios, the command line cannot contain macros - it must be # typed exactly as it should be executed. # # Note: Any plugins that are used in the command lines must reside # on the machine that this daemon is running on! The examples below # assume that you have plugins installed in a /usr/local/nagios/libexec # directory. Also note that you will have to modify the definitions below # to match the argument format the plugins expect. Remember, these are # examples only! # The following examples use hardcoded command arguments... command[check_users]=@libexecdir@/check_users -w 5 -c 10 command[check_disk]=/usr/local/libexec/check_disk -w 10 -c 5 -p /var Here's the syslog output from that same machine: Jul 25 15:31:26 kronotmp1 syslogd: restart Jul 25 15:31:29 kronotmp1 nrpe[589858]: Connection from 172.20.243.53 port 51079 Jul 25 15:31:29 kronotmp1 nrpe[589858]: Host address checks out ok Jul 25 15:31:29 kronotmp1 nrpe[589858]: Handling the connection... Jul 25 15:31:29 kronotmp1 nrpe[589858]: Host is asking for command 'check_users' to be run... Jul 25 15:31:29 kronotmp1 nrpe[589858]: Running command: @libexecdir@/check_users -w 5 -c 10 Jul 25 15:31:29 kronotmp1 nrpe[589858]: Command completed with return code 3 and output: Jul 25 15:31:29 kronotmp1 nrpe[589858]: Return Code: 3, Output: NRPE: Unable to read output Jul 25 15:31:29 kronotmp1 nrpe[589858]: Connection from 172.20.243.53 closed. Jul 25 15:32:09 kronotmp1 nrpe[544922]: Connection from 172.20.243.53 port 48973 Jul 25 15:32:09 kronotmp1 nrpe[544922]: Host address checks out ok Jul 25 15:32:09 kronotmp1 nrpe[544922]: Handling the connection... Jul 25 15:32:09 kronotmp1 nrpe[544922]: Host is asking for command 'check_disk' to be run... Jul 25 15:32:09 kronotmp1 nrpe[544922]: Running command: /usr/local/libexec/check_disk -w 10 -c 5 -p /var Jul 25 15:32:09 kronotmp1 nrpe[544922]: Command completed with return code 3 and output: Jul 25 15:32:09 kronotmp1 nrpe[544922]: Return Code: 3, Output: NRPE: Unable to read output Jul 25 15:32:09 kronotmp1 nrpe[544922]: Connection from 172.20.243.53 closed. Running of check_disk on the client: root at kronotmp1 /usr/local/nagios/libexec > check_disk -w 10 -c 5 -p /var DISK OK - free space: /var 121 MB (95%);| /var=7MB;118;123;0;128 How nrpe is running: root at kronotmp1 /tmp > ps -ef | grep nrpe nagios 557224 1 0 15:01:39 - 0:00 nrpe -c /usr/local/nagios/nrpe/nrpe.cfg -d The command on the remote host: # check_nrpe -H kronotmp1 -c check_disk NRPE: Unable to read output Both hosts are running nrpe 2.0. The remote host is AIX 5.2.0.06. The nagios server is Redhat Fedora 4. Does anyone have any idea what I am doing wrong? Any help would be nice. Thanks Mark ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 25 22:19:09 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Mon, 25 Jul 2005 16:19:09 -0400 (EDT) Subject: NRPE Repotting timeouts In-Reply-To: References: Message-ID: On Mon, 25 Jul 2005, Mohr James wrote: > Hi All! > > In order to record performance data, we have a construct that looks like > this: > > - Nagios starts an NRPE job on another machine which starts a perl > script on a Windows 2003 machine > - the perl script uses the snmpget command from net-snmp 5.2.1 to read a > single value from a remote machine. > - The value is set in the perl script simply by $value=`$command`. (I am > not using the SNMP perl modules) > - The OID .1.3.6.1.4.1.1.1.101.1 is defined like this in snmpd.conf: > exec .1.3.6.1.4.1.1.1 /usr/bin/perl /opt/elaxy/bin/get_cpu_usage.pl > - This value is then written to a MS SQL Database using osql. > > What is happening is that I see dozens of snmpget.exe programms running > (occassionally a couple of perl.exe processes). Unfortunately, I see no > way of figuring out to where these processes are connected, so I cannot > tell if there are specific machine causing the problems. Using netstat, > I do see a number of connections to the MS SQL database in TIMEWAIT. > However, since we are checking a couple of dozens machines, this is not > surprising. > > The Nagios is reporting both "CHECK_NRPE: Socket timeout after 10 > seconds." and "connection refused". Obviously this could be a purely > net-snmp problem, however, as far as I can see it seems to be behaving > correctly. Since I can run the commands by hand with no problem, I am at > a loss to explain where net-snmp (snmpget) is having a problem. > > Any ideas would be greatly appreaciated. > > Regards, > > Jim Mohr > > You can try a couple of mods to the script to debug. 1. have the script dump the start/stop times to a file named by destination host. You may be able to get the PID value without a lot of work. (Win32::Process -> GetProcessID) 2. verify that snmpget's timeout (including retries) is smaller than check_nrpe/nagios 3. check the return code for snmpget. -- -sg ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 25 22:22:11 2005 From: marc at ena.com (Marc Powell) Date: Mon, 25 Jul 2005 15:22:11 -0500 Subject: nrpe configuration issues Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Mark Wisniewski > Sent: Monday, July 25, 2005 2:51 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] nrpe configuration issues > > I'm trying to get nrpe working and I am getting the following message: > > # check_nrpe -H kronotmp1 -c check_disk > NRPE: Unable to read output > > Here's the nrpe.cfg file on the remote system: [snip] > # The following examples use hardcoded command arguments... > > command[check_users]=@libexecdir@/check_users -w 5 -c 10 > command[check_disk]=/usr/local/libexec/check_disk -w 10 -c 5 -p /var > > Here's the syslog output from that same machine: > > Jul 25 15:31:26 kronotmp1 syslogd: restart > Jul 25 15:31:29 kronotmp1 nrpe[589858]: Connection from 172.20.243.53 port > 51079 > Jul 25 15:31:29 kronotmp1 nrpe[589858]: Host address checks out ok > Jul 25 15:31:29 kronotmp1 nrpe[589858]: Handling the connection... > Jul 25 15:31:29 kronotmp1 nrpe[589858]: Host is asking for command > 'check_users' > to be run... > Jul 25 15:31:29 kronotmp1 nrpe[589858]: Running command: > @libexecdir@/check_users -w 5 -c 10 > Jul 25 15:31:29 kronotmp1 nrpe[589858]: Command completed with return code > 3 and > output: > Jul 25 15:31:29 kronotmp1 nrpe[589858]: Return Code: 3, Output: NRPE: > Unable to > read output > Jul 25 15:31:29 kronotmp1 nrpe[589858]: Connection from 172.20.243.53 > closed. The path to check_users is incorrect. @libexecdir@ isn't valid. Did you copy the file unmodified by make? It should _probably_ be /usr/local/libexec/check_users if it's in the same place you've specified for check_disk. > Jul 25 15:32:09 kronotmp1 nrpe[544922]: Connection from 172.20.243.53 port > 48973 > Jul 25 15:32:09 kronotmp1 nrpe[544922]: Host address checks out ok > Jul 25 15:32:09 kronotmp1 nrpe[544922]: Handling the connection... > Jul 25 15:32:09 kronotmp1 nrpe[544922]: Host is asking for command > 'check_disk' > to be run... > Jul 25 15:32:09 kronotmp1 nrpe[544922]: Running command: > /usr/local/libexec/check_disk -w 10 -c 5 -p /var > Jul 25 15:32:09 kronotmp1 nrpe[544922]: Command completed with return code > 3 and > output: > Jul 25 15:32:09 kronotmp1 nrpe[544922]: Return Code: 3, Output: NRPE: > Unable to > read output > Jul 25 15:32:09 kronotmp1 nrpe[544922]: Connection from 172.20.243.53 > closed. > > Running of check_disk on the client: > > root at kronotmp1 /usr/local/nagios/libexec > check_disk -w 10 -c 5 -p /var > DISK OK - free space: /var 121 MB (95%);| /var=7MB;118;123;0;128 Ah, two things here... 1) You're not running the command in the same way nrpe is. You should be running it as the nagios user and 2) using the command exactly as it's defined in nrpe.cfg. If you had done that you would see that the path you are using in your test, /usr/local/nagios/libexec, is not the same path you have defined in nrpe.cfg, /usr/local/libexec and @libexecdir at . -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From andrew at profitability.net Mon Jul 25 22:32:13 2005 From: andrew at profitability.net (Andrew Cruse) Date: Mon, 25 Jul 2005 16:32:13 -0400 Subject: New check_snmp in CVS In-Reply-To: References: Message-ID: nagios-users-admin at lists.sourceforge.net wrote: > > What version of net-snmp are you using? I had it working with 5.1.2. > That may be part of the problem -- I have two installations: [root at monitor2 nagios-plugins-1.4]# /usr/local/bin/snmpwalk -V NET-SNMP version: 5.2.1 [root at monitor2 nagios-plugins-1.4]# /usr/bin/snmpwalk -V UCD-snmp version: 4.2.5 One current, and one pretty ancient... If this helps, here's what I've been doing to try to compile it: Downloaded check_snmp.c from CVS and stuck in the /plugins/ directory of my plugins source, overwriting the old check_snmp.c ./configure make Which is where the error crops up. Since I've got two versions of NET-SNMP installed, is there anything I need to pass to configure on the commandline to point it at the right installation to use? Or can I just: gcc -c check_snmp.c Thanks, Andrew ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 25 22:49:38 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Mon, 25 Jul 2005 16:49:38 -0400 (EDT) Subject: New check_snmp in CVS In-Reply-To: <200507252032.j6PKWIQo006927@jersey.sghosh.org> References: <200507252032.j6PKWIQo006927@jersey.sghosh.org> Message-ID: On Mon, 25 Jul 2005, Andrew Cruse wrote: > nagios-users-admin at lists.sourceforge.net wrote: >> >> What version of net-snmp are you using? I had it working with 5.1.2. >> > > That may be part of the problem -- I have two installations: > > [root at monitor2 nagios-plugins-1.4]# /usr/local/bin/snmpwalk -V > NET-SNMP version: 5.2.1 > [root at monitor2 nagios-plugins-1.4]# /usr/bin/snmpwalk -V > UCD-snmp version: 4.2.5 > > One current, and one pretty ancient... > > If this helps, here's what I've been doing to try to compile it: > > Downloaded check_snmp.c from CVS and stuck in the /plugins/ directory of > my plugins source, overwriting the old check_snmp.c > ./configure > make > > Which is where the error crops up. Since I've got two versions of > NET-SNMP installed, is there anything I need to pass to configure on the > commandline to point it at the right installation to use? Or can I > just: > > gcc -c check_snmp.c > > Thanks, > > Andrew > When you run configure - make sure the /usr/local/bin is earlier in the path so the newer version of snmp* will get selected. -- -sg ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lnaves at asc.edu Mon Jul 25 23:10:02 2005 From: lnaves at asc.edu (Larry Naves) Date: Mon, 25 Jul 2005 16:10:02 -0500 Subject: Multiple Nagios proccesses running. Message-ID: <200507252109.j6PL9vjU023926@mail.asc.edu> What is the best way to keep multiple nagios processes from running: [root at XXXXXX root]# ps -aux | grep '/usr/local/nagios/bin/nagios' | grep -v grep nagios 26057 2.2 0.2 6580 5236 ? S Jul22 105:09 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg nagios 836 1.0 0.2 6584 5236 ? S 15:58 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg nagios 839 1.0 0.2 6584 5236 ? S 15:58 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg [root at XXXXXX root]# ps -aux | grep '/usr/local/nagios/bin/nagios' | grep -v grep nagios 26057 2.2 0.2 6580 5236 ? S Jul22 105:09 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg nagios 884 0.5 0.2 6584 5236 ? S 15:58 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg nagios 917 0.0 0.2 6584 5236 ? S 15:58 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg nagios 920 1.0 0.2 6584 5236 ? S 15:58 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg nagios 932 1.0 0.2 6584 5236 ? S 15:58 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg nagios 941 0.0 0.2 6584 5236 ? S 15:58 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg nagios 942 0.0 0.2 6580 5236 ? R 15:58 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg Larry Wayne Naves, Jr. "Jay" Systems Analyst Computer Sciences Corporation / Alabama Supercomputer Authority -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.9.4/57 - Release Date: 7/22/2005 ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From andrew at profitability.net Mon Jul 25 23:13:39 2005 From: andrew at profitability.net (Andrew Cruse) Date: Mon, 25 Jul 2005 17:13:39 -0400 Subject: New check_snmp in CVS In-Reply-To: References: Message-ID: Subhendu Ghosh wrote: >> That may be part of the problem -- I have two installations: >> >> [root at monitor2 nagios-plugins-1.4]# /usr/local/bin/snmpwalk -V >> NET-SNMP version: 5.2.1 [root at monitor2 nagios-plugins-1.4]# >> /usr/bin/snmpwalk -V UCD-snmp version: 4.2.5 > > When you run configure - make sure the /usr/local/bin is > earlier in the path so the newer version of snmp* will get selected. It looks like it's finding the right version: checking for snmpget... /usr/local/bin/snmpget checking for snmpgetnext... /usr/local/bin/snmpgetnext checking for Net::SNMP perl module... found But still errors out. Just for my sanity, I tried compiling it on two other systems. One is the same OS (RH 7.3) as the original system, the other a more modern OS (RHEL3) each with varying versions of net-snmp. Both other systems errored out with this: source='check_snmp.c' object='check_snmp.o' libtool=no \ depfile='.deps/check_snmp.Po' tmpdepfile='.deps/check_snmp.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -I.. -I../lib -I/usr/include/ldap -I/usr/include -I/usr/kerberos/include -g -O2 -c `test -f 'check_snmp.c' || echo './'`check_snmp.c check_snmp.c: In function `main': check_snmp.c:145: `LC_ALL' undeclared (first use in this function) check_snmp.c:145: (Each undeclared identifier is reported only once check_snmp.c:145: for each function it appears in.) check_snmp.c:146: `LOCALEDIR' undeclared (first use in this function) check_snmp.c:189: warning: passing arg 1 of `printf' makes pointer from integer without a cast check_snmp.c:195: warning: passing arg 1 of `printf' makes pointer from integer without a cast check_snmp.c:301: warning: passing arg 1 of `printf' makes pointer from integer without a cast check_snmp.c: In function `process_arguments': check_snmp.c:432: warning: passing arg 1 of `usage2' makes pointer from integer without a cast check_snmp.c:479: warning: passing arg 1 of `usage2' makes pointer from integer without a cast check_snmp.c:487: warning: passing arg 1 of `usage2' makes pointer from integer without a cast check_snmp.c:498: warning: passing arg 1 of `usage2' makes pointer from integer without a cast check_snmp.c:510: warning: passing arg 1 of `usage2' makes pointer from integer without a cast check_snmp.c:556: warning: passing arg 1 of `printf' makes pointer from integer without a cast check_snmp.c: In function `validate_arguments': check_snmp.c:707: warning: passing arg 1 of `printf' makes pointer from integer without a cast check_snmp.c:716: warning: passing arg 1 of `printf' makes pointer from integer without a cast check_snmp.c:726: warning: passing arg 1 of `usage2' makes pointer from integer without a cast check_snmp.c: In function `print_help': check_snmp.c:901: `COPYRIGHT' undeclared (first use in this function) check_snmp.c:903: warning: passing arg 1 of `printf' makes pointer from integer without a cast check_snmp.c:908: `UT_HELP_VRSN' undeclared (first use in this function) check_snmp.c:908: warning: passing arg 1 of `printf' makes pointer from integer without a cast check_snmp.c:910: `UT_HOST_PORT' undeclared (first use in this function) check_snmp.c:910: warning: passing arg 1 of `printf' makes pointer from integer without a cast check_snmp.c:913: warning: passing arg 1 of `printf' makes pointer from integer without a cast check_snmp.c:924: warning: passing arg 1 of `printf' makes pointer from integer without a cast check_snmp.c:936: warning: passing arg 1 of `printf' makes pointer from integer without a cast check_snmp.c:948: warning: passing arg 1 of `printf' makes pointer from integer without a cast check_snmp.c:955: warning: passing arg 1 of `printf' makes pointer from integer without a cast check_snmp.c:966: warning: passing arg 1 of `printf' makes pointer from integer without a cast check_snmp.c:972: `UT_TIMEOUT' undeclared (first use in this function) check_snmp.c:972: warning: passing arg 1 of `printf' makes pointer from integer without a cast check_snmp.c:974: `UT_VERBOSE' undeclared (first use in this function) check_snmp.c:974: warning: passing arg 1 of `printf' makes pointer from integer without a cast check_snmp.c:976: warning: passing arg 1 of `printf' makes pointer from integer without a cast check_snmp.c:981: warning: passing arg 1 of `printf' makes pointer from integer without a cast check_snmp.c:985: warning: passing arg 1 of `printf' makes pointer from integer without a cast check_snmp.c:991: warning: passing arg 1 of `printf' makes pointer from integer without a cast check_snmp.c:995: warning: passing arg 1 of `printf' makes pointer from integer without a cast check_snmp.c:1003: `UT_SUPPORT' undeclared (first use in this function) check_snmp.c:1003: warning: passing arg 1 of `printf' makes pointer from integer without a cast make[2]: *** [check_snmp.o] Error 1 Thanks, Andrew ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 25 23:25:52 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Mon, 25 Jul 2005 17:25:52 -0400 (EDT) Subject: New check_snmp in CVS In-Reply-To: References: Message-ID: On Mon, 25 Jul 2005, Andrew Cruse wrote: > Subhendu Ghosh wrote: > >> That may be part of the problem -- I have two installations: >>> >>> [root at monitor2 nagios-plugins-1.4]# /usr/local/bin/snmpwalk -V >>> NET-SNMP version: 5.2.1 [root at monitor2 nagios-plugins-1.4]# >>> /usr/bin/snmpwalk -V UCD-snmp version: 4.2.5 >> >> When you run configure - make sure the /usr/local/bin is >> earlier in the path so the newer version of snmp* will get selected. > > It looks like it's finding the right version: > > checking for snmpget... /usr/local/bin/snmpget > checking for snmpgetnext... /usr/local/bin/snmpgetnext > checking for Net::SNMP perl module... found > > But still errors out. Just for my sanity, I tried compiling it on two > other systems. One is the same OS (RH 7.3) as the original system, the > other a more modern OS (RHEL3) each with varying versions of net-snmp. > Both other systems errored out with this: > > source='check_snmp.c' object='check_snmp.o' libtool=no \ > depfile='.deps/check_snmp.Po' tmpdepfile='.deps/check_snmp.TPo' \ > depmode=gcc3 /bin/sh ../depcomp \ > gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -I.. -I../lib > -I/usr/include/ldap -I/usr/include -I/usr/kerberos/include -g -O2 -c > `test -f 'check_snmp.c' || echo './'`check_snmp.c > check_snmp.c: In function `main': > check_snmp.c:145: `LC_ALL' undeclared (first use in this function) > check_snmp.c:145: (Each undeclared identifier is reported only once > check_snmp.c:145: for each function it appears in.) > check_snmp.c:146: `LOCALEDIR' undeclared (first use in this function) > check_snmp.c:189: warning: passing arg 1 of `printf' makes pointer from > integer without a cast > check_snmp.c:195: warning: passing arg 1 of `printf' makes pointer from > integer without a cast Looks like gettext/gettext-devel is not installed. Needed for I18N -- -sg ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 26 00:07:04 2005 From: noyler at khimetrics.com (Nathan Oyler) Date: Mon, 25 Jul 2005 15:07:04 -0700 Subject: Multiple Nagios proccesses running. Message-ID: <59B15593F41BD24591D59436E7226EAD02347AE3@Khiphx2.khimetrics.com> Don't use restart for the service. Stop the service, wait 5 seconds, start the service. And it will cease. Editing the scripts to allow more time on a restart is another way to correct it, but I just wait the 5 seconds, and I don't see the problem. > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Larry Naves > Sent: Monday, July 25, 2005 2:10 PM > To: 'Nagios Users' > Subject: [Nagios-users] Multiple Nagios proccesses running. > > What is the best way to keep multiple nagios processes from running: > > [root at XXXXXX root]# ps -aux | grep '/usr/local/nagios/bin/nagios' | grep - > v > grep > nagios 26057 2.2 0.2 6580 5236 ? S Jul22 105:09 > /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg > nagios 836 1.0 0.2 6584 5236 ? S 15:58 0:00 > /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg > nagios 839 1.0 0.2 6584 5236 ? S 15:58 0:00 > /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg > > > [root at XXXXXX root]# ps -aux | grep '/usr/local/nagios/bin/nagios' | grep - > v > grep > nagios 26057 2.2 0.2 6580 5236 ? S Jul22 105:09 > /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg > nagios 884 0.5 0.2 6584 5236 ? S 15:58 0:00 > /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg > nagios 917 0.0 0.2 6584 5236 ? S 15:58 0:00 > /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg > nagios 920 1.0 0.2 6584 5236 ? S 15:58 0:00 > /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg > nagios 932 1.0 0.2 6584 5236 ? S 15:58 0:00 > /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg > nagios 941 0.0 0.2 6584 5236 ? S 15:58 0:00 > /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg > nagios 942 0.0 0.2 6580 5236 ? R 15:58 0:00 > /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg > > > Larry Wayne Naves, Jr. "Jay" > Systems Analyst > Computer Sciences Corporation / > Alabama Supercomputer Authority > > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.338 / Virus Database: 267.9.4/57 - Release Date: 7/22/2005 > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Tue Jul 26 00:15:07 2005 From: pla at softflare.com (Paul L. Allen) Date: Mon, 25 Jul 2005 23:15:07 +0100 Subject: Multiple Nagios proccesses running. In-Reply-To: <200507252109.j6PL9vjU023926@mail.asc.edu> References: <200507252109.j6PL9vjU023926@mail.asc.edu> Message-ID: <20050725221507.30266.qmail@mullet.softflare.net> Larry Naves writes: > What is the best way to keep multiple nagios processes from running: Don't run nagios. In the older 1.x versions (might be fixed in the latest 1.x version but I can't remember and can't be bothered to check) nagios is very likely to have multiple instances if you restart it or if you stop/start it too quickly (here, "too quickly" means "before existing insatances have died"). If you're running an affected version then either use ps to see if there are still outstanding nagios processes or terminate them with extreme prejudice or stop using nagios. None of those are ideal options but those are your choices. -- Paul Allen Softflare Support ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Tue Jul 26 00:45:12 2005 From: pla at softflare.com (Paul L. Allen) Date: Mon, 25 Jul 2005 23:45:12 +0100 Subject: AW: NRPE Repotting timeouts In-Reply-To: References: Message-ID: <20050725224512.5216.qmail@mullet.softflare.net> Mohr James writes: > Also, since the machine that is running the snmpget machine is our > central SNMP server. My boss wants all SNMP communication to be from > this machine. Perhaps you need to upgrade your boss. See for ideas on how to achieve this. -- Paul Allen Softflare Support ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lnaves at asc.edu Tue Jul 26 02:15:35 2005 From: lnaves at asc.edu (Larry Naves) Date: Mon, 25 Jul 2005 19:15:35 -0500 Subject: Multiple Nagios proccesses running. In-Reply-To: <20050725221507.30266.qmail@mullet.softflare.net> References: <20050725221507.30266.qmail@mullet.softflare.net> Message-ID: <200507260015.j6Q0FUxb026079@mail.asc.edu> Even when I ensure that all nagios processes are killed and then start nagios again, I still get muliple processes. I have tried using the init script to start (service nagios start #not restart) and running the executable by hand (/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg) but both continue to give me multiple processes. What am I doing wrong? See below: [root at XXXX root]# ps -aux | grep '/usr/local/nagios/bin/nagios' | grep -v grep nagios 26057 2.2 0.2 6580 5236 ? S Jul22 108:46 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg nagios 3893 0.0 0.2 6584 5236 ? S 18:44 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg nagios 3961 0.0 0.2 6580 5236 ? R 18:44 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg [root at XXXX root]# service nagios stop Stopping network monitor: nagios [root at intranet root]# ps -aux | grep '/usr/local/nagios/bin/nagios' | grep -v grep nagios 4110 0.2 0.2 6584 5236 ? S 18:44 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg nagios 4175 0.1 0.2 6584 5236 ? S 18:44 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg nagios 4180 0.1 0.2 6584 5236 ? S 18:44 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg nagios 4233 0.1 0.2 6584 5236 ? S 18:44 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg nagios 4275 0.3 0.2 6584 5236 ? S 18:44 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg [root at XXXX root]# ps -aux | grep '/usr/local/nagios/bin/nagios' | grep -v grep [root at XXXX root]# killall -9 nagios nagios: no process killed [root at XXXX root]# service nagios start Starting network monitor: nagios PID TTY TIME CMD 4484 ? 00:00:00 nagios [root at XXXX root]# ps -aux | grep '/usr/local/nagios/bin/nagios' | grep -v grep nagios 4484 2.1 0.2 6064 4704 ? S 18:44 0:09 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg nagios 19598 1.0 0.2 6068 4704 ? S 18:52 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg nagios 19615 0.0 0.2 6068 4704 ? S 18:52 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg nagios 19621 0.0 0.2 6064 4704 ? S 18:52 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg nagios 19625 0.0 0.2 6068 4704 ? S 18:52 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg nagios 19628 0.0 0.2 6068 4704 ? S 18:52 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg nagios 19631 0.0 0.2 6068 4704 ? S 18:52 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg nagios 19634 0.0 0.2 6068 4704 ? S 18:52 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg nagios 19637 0.0 0.2 6068 4704 ? S 18:52 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg [root at XXXX root]# service nagios stop Stopping network monitor: nagios [root at XXXX root]# killall -9 nagios [root at XXXX root]# killall -9 nagios nagios: no process killed [root at XXXX root]# ps -aux | grep '/usr/local/nagios/bin/nagios' | grep -v grep [root at XXXX root]# /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg [root at XXXX root]# ps -aux | grep '/usr/local/nagios/bin/nagios' | grep -v grep nagios 20213 12.0 0.2 6068 4700 ? S 18:53 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg nagios 20241 1.0 0.2 6068 4700 ? S 18:53 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg nagios 20250 2.0 0.2 6068 4700 ? S 18:53 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg [root at XXXX root]# Larry Wayne Naves, Jr. "Jay" Systems Analyst Computer Sciences Corporation / Alabama Supercomputer Authority > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf > Of Paul L. Allen > Sent: Monday, July 25, 2005 5:15 PM > To: 'Nagios Users' > Subject: [Nagios-users] Re: Multiple Nagios proccesses running. > > Larry Naves writes: > > > What is the best way to keep multiple nagios processes from running: > > Don't run nagios. > > In the older 1.x versions (might be fixed in the latest 1.x > version but I can't remember and can't be bothered to check) > nagios is very likely to have multiple instances if you > restart it or if you stop/start it too quickly (here, "too > quickly" means "before existing insatances have died"). > > If you're running an affected version then either use ps to > see if there are still outstanding nagios processes or > terminate them with extreme prejudice or stop using nagios. > None of those are ideal options but those are your choices. > > -- > Paul Allen > Softflare Support > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > -- > No virus found in this incoming message. > Checked by AVG Anti-Virus. > Version: 7.0.338 / Virus Database: 267.9.4/57 - Release Date: > 7/22/2005 > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.9.4/57 - Release Date: 7/22/2005 ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ssugar at proserveit.com Tue Jul 26 04:06:45 2005 From: ssugar at proserveit.com (Scott Sugar) Date: Mon, 25 Jul 2005 22:06:45 -0400 Subject: Host Detail Error Message-ID: Actually, i was configuing another nagios server today to deploy and I ran into the same problem you are having. There are a couple of things to check, but make sure you follow the steps in the manual for creating a file named '.htacess' and how that file should be in your /usr/local/nagios/sbin and /usr/local/nagios/share folders. Then you should have another file name htpasswd.users in your /usr/local/nagios/etc folder. Its all explained in the manual here. Read this page! http://nagios.sourceforge.net/docs/2_0/cgiauth.html It should explain it all... also look at http://nagios.sourceforge.net/docs/2_0/configcgi.html for the rest of the options for the cgi scripts. ________________________________ From: nagios-users-admin at lists.sourceforge.net on behalf of Albert Whale Sent: Mon 7/25/2005 7:57 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Host Detail Error I have installed the Mandriva version of the Nagios 2.0.3 beta. After fighting through permission problems to get the Web Interface running I finally have the browser running, and I am trying to view the one host I have defined. When I click on the host detail button, I get the following: It appears as though you do not have permission to view information for any of the hosts 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. Can anyone tell me what this means? I cannot seem to run the CGI from the command line to find the actual errors. I would also like to know if there exists the capability to log these actions to a debugging log file. Best Regards, -- Albert E. Whale, CHS CISA CISSP Sr. Security, Network, Risk Assessment and Systems Consultant ------------------------------------------------------------------- ABS Computer Technology, Inc. - www.ABS-CompTech.com SPAM Zapper - No-JunkMail.com - Spam-Zapper.com - SPAM Stops Here. President of the Pittsburgh InfraGard Alliance ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 noyler at khimetrics.com Tue Jul 26 05:08:13 2005 From: noyler at khimetrics.com (Nathan Oyler) Date: Mon, 25 Jul 2005 20:08:13 -0700 Subject: An email on acknowledge, and only on acknowledge? Nagios and RT Message-ID: <59B15593F41BD24591D59436E7226EAD02347C4B@Khiphx2.khimetrics.com> I am looking to interface Nagios alerts into Request Tracker, a ticketing system with an email interface. I am thinking that every time there's an acknowledgement, if that could send an email to RT and only in that instance, it would be excellent to open up a ticket regarding it. Can anyone think of a way to do this short of editing the c code? Aside from that, a more complex setup involving tickets at critical, and closing on ok might work. Any ideas? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Roberto.Balestra at getronics.com Tue Jul 26 09:59:47 2005 From: Roberto.Balestra at getronics.com (Balestra, Roberto) Date: Tue, 26 Jul 2005 09:59:47 +0200 Subject: [OT] - Out of office Message-ID: Hi All, in a few days I need to put "out of office message". What I have to do to not disturb this mailing list? Bye Roberto ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 26 10:29:19 2005 From: werner.flamme at ufz.de (Werner Flamme) Date: Tue, 26 Jul 2005 10:29:19 +0200 Subject: [OT] - Out of office In-Reply-To: References: Message-ID: <42E5F45F.8030502@ufz.de> Balestra, Roberto schrieb am 26.07.2005 09:59: > Hi All, > in a few days I need to put "out of office message". What I have to do to not disturb this mailing list? > Bye > Roberto > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Roberto, when you look at the footer of your mail, you see the URL https://lists.sourceforge.net/lists/listinfo/nagios-users. Visit here, login with your email address you receive this mail with, and maybe it will help to choose "On" at the entry " Disable mail delivery - Turn this on if you want mail to not be delivered to you for a little while." 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.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Tue Jul 26 12:18:34 2005 From: chris at aidworld.org (Chris Wilson) Date: Tue, 26 Jul 2005 11:18:34 +0100 Subject: State Rentention thoroughly messed up In-Reply-To: References: Message-ID: <1122373114.30418.52.camel@localhost> Hi all, Yet another case of multiple Nagios processes. Nagios has a lockfile which is supposed to prevent this, but apparently it doesn't work. Looking in base/util.c of Nagios 1.2, I see that it tries to use fcntl locking to enforce exclusive access to the lockfile. It doesn't seem to be working, at least on some platforms. Nagios doesn't check whether the PID in the lockfile, if it already exists, points to a different process. I think it should do so, as an additional check. Please could developers look at the attached patch (not tested) to see if it looks reasonable? Cheers, Chris. On Mon, 2005-07-25 at 20:18, Justin Shore wrote: > Excellent call! Looking at my process list I see that I have two sets of Nagios slaves running. I'm not sure if something died along the way or if it was a init script flub. Either way I'll be modding my init script to detect this condition before it actually starts the next set of Nagios slaves. It's working like a champ now. > > Thanks > Justin > > > > -----Original Message----- > > From: Lori Adams [mailto:ladams at cloudmark.com] > > Sent: Monday, July 25, 2005 2:01 PM > > To: Justin Shore; nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] State Rentention thoroughly messed up > > > > You may have multiple instances running. Make sure there's only one. > > > > -Lori > > > > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net > > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Justin > > Shore > > Sent: Monday, July 25, 2005 11:50 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] State Rentention thoroughly messed up > > -- (aidworld) chris wilson | chief engineer (chris at aidworld.org) -------------- next part -------------- A non-text attachment was scrubbed... Name: nagios-lockfile.patch Type: text/x-patch Size: 1550 bytes Desc: not available URL: From chris at aidworld.org Tue Jul 26 12:19:15 2005 From: chris at aidworld.org (Chris Wilson) Date: Tue, 26 Jul 2005 11:19:15 +0100 Subject: Multiple Nagios proccesses running. In-Reply-To: <59B15593F41BD24591D59436E7226EAD02347AE3@Khiphx2.khimetrics.com> References: <59B15593F41BD24591D59436E7226EAD02347AE3@Khiphx2.khimetrics.com> Message-ID: <1122373155.30418.54.camel@localhost> Hi Larry, Nathan, Please could you help solve this problem forever by testing the patch I just sent to the mailing list? (nagios-lockfile.patch) Cheers, Chris. On Mon, 2005-07-25 at 23:07, Nathan Oyler wrote: > Don't use restart for the service. Stop the service, wait 5 seconds, > start the service. > > And it will cease. Editing the scripts to allow more time on a restart > is another way to correct it, but I just wait the 5 seconds, and I don't > see the problem. > > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of Larry Naves > > Sent: Monday, July 25, 2005 2:10 PM > > To: 'Nagios Users' > > Subject: [Nagios-users] Multiple Nagios proccesses running. > > > > What is the best way to keep multiple nagios processes from running: > > > > [root at XXXXXX root]# ps -aux | grep '/usr/local/nagios/bin/nagios' | > grep - > > v > > grep > > nagios 26057 2.2 0.2 6580 5236 ? S Jul22 105:09 > > /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg > > nagios 836 1.0 0.2 6584 5236 ? S 15:58 0:00 > > /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg > > nagios 839 1.0 0.2 6584 5236 ? S 15:58 0:00 > > /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg > > > > > > [root at XXXXXX root]# ps -aux | grep '/usr/local/nagios/bin/nagios' | > grep - > > v > > grep > > nagios 26057 2.2 0.2 6580 5236 ? S Jul22 105:09 > > /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg > > nagios 884 0.5 0.2 6584 5236 ? S 15:58 0:00 > > /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg > > nagios 917 0.0 0.2 6584 5236 ? S 15:58 0:00 > > /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg > > nagios 920 1.0 0.2 6584 5236 ? S 15:58 0:00 > > /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg > > nagios 932 1.0 0.2 6584 5236 ? S 15:58 0:00 > > /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg > > nagios 941 0.0 0.2 6584 5236 ? S 15:58 0:00 > > /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg > > nagios 942 0.0 0.2 6580 5236 ? R 15:58 0:00 > > /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg > > > > > > Larry Wayne Naves, Jr. "Jay" > > Systems Analyst > > Computer Sciences Corporation / > > Alabama Supercomputer Authority > > > > -- > > No virus found in this outgoing message. > > Checked by AVG Anti-Virus. > > Version: 7.0.338 / Virus Database: 267.9.4/57 - Release Date: > 7/22/2005 > > > > > > > > > > ------------------------------------------------------- > > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > > from IBM. Find simple to follow Roadmaps, straightforward articles, > > informative Webcasts and more! Get everything you need to get up to > > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > !DSPAM:42e5633035191325012665! -- (aidworld) chris wilson | chief engineer (chris at aidworld.org) ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Tue Jul 26 12:24:16 2005 From: chris at aidworld.org (Chris Wilson) Date: Tue, 26 Jul 2005 11:24:16 +0100 Subject: Multiple Nagios proccesses running. In-Reply-To: <200507260015.j6Q0FUxb026079@mail.asc.edu> References: <200507260015.j6Q0FUxb026079@mail.asc.edu> Message-ID: <1122373456.30418.57.camel@localhost> Hi Larry, > Even when I ensure that all nagios processes are killed and then start > nagios again, I still get muliple processes. I have tried using the init > script to start (service nagios start #not restart) and running the > executable by hand (/usr/local/nagios/bin/nagios -d > /usr/local/nagios/etc/nagios.cfg) but both continue to give me multiple > processes. What am I doing wrong? See below: Please be aware that Nagios does start sub-processes to run service checks, as part of its normal operation. You only get problems when two master processes are running. Perhaps we should also setproctitle(...) to identify the master process, so that people can tell if they have more than one running? Cheers, Chris. -- (aidworld) chris wilson | chief engineer (chris at aidworld.org) ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Tue Jul 26 12:30:46 2005 From: chris at aidworld.org (Chris Wilson) Date: Tue, 26 Jul 2005 11:30:46 +0100 Subject: Multiple Nagios proccesses running. In-Reply-To: <20050725221507.30266.qmail@mullet.softflare.net> References: <200507252109.j6PL9vjU023926@mail.asc.edu> <20050725221507.30266.qmail@mullet.softflare.net> Message-ID: <1122373846.30418.65.camel@localhost> Hi all, On Mon, 2005-07-25 at 23:15, Paul L. Allen wrote: > Larry Naves writes: > > > What is the best way to keep multiple nagios processes from running: > > Don't run nagios. Nagios is an excellent program with a small bug. This bug has existed for years. NOBODY seems to be interested in squashing it. That's wrong. It's very high time that we exterminate this critter. No other well-written daemon has this problem. I've posted a patch which makes a first step to fixing this, by properly detecting the error. The next step is to find out why the initscript starts a new nagios process before the old one has died, and fix that. I'm happy to do what I can, but I need testers to help me as well. Anyone interested? Cheers, Chris. -- (aidworld) chris wilson | chief engineer (chris at aidworld.org) ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Tue Jul 26 12:37:10 2005 From: chris at aidworld.org (Chris Wilson) Date: Tue, 26 Jul 2005 11:37:10 +0100 Subject: An email on acknowledge, and only on acknowledge? Nagios and RT In-Reply-To: <59B15593F41BD24591D59436E7226EAD02347C4B@Khiphx2.khimetrics.com> References: <59B15593F41BD24591D59436E7226EAD02347C4B@Khiphx2.khimetrics.com> Message-ID: <1122374230.30418.68.camel@localhost> Hi Nathan, > I am thinking that every time there?s an acknowledgement, if that > could send an email to RT and only in that instance, it would be > excellent to open up a ticket regarding it. Just write a notification command that sends an email to Request Tracker. This should open a new ticket automatically. Why did you think that you would have to modify the C code? Perhaps we haven't made the flexibility of notification mechanisms clear enough in the documentation? How could it be improved? Please let us know. Cheers, Chris. -- (aidworld) chris wilson | chief engineer (chris at aidworld.org) ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Tue Jul 26 12:56:21 2005 From: chris at aidworld.org (Chris Wilson) Date: Tue, 26 Jul 2005 11:56:21 +0100 Subject: [OT] - Out of office In-Reply-To: References: Message-ID: <1122375380.30418.84.camel@localhost> Hi Roberto, > in a few days I need to put "out of office message". What I have to do > to not disturb this mailing list? To avoid disturbing any mailing lists you happen to be on, please set your autoreply to ignore any message not specifically addressed to you. Cheers, Chris. -- (aidworld) chris wilson | chief engineer (chris at aidworld.org) ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tgreen at bandcamp.tv Tue Jul 26 13:41:58 2005 From: tgreen at bandcamp.tv (Tony Green) Date: Tue, 26 Jul 2005 21:41:58 +1000 Subject: [OT] - Out of office In-Reply-To: <1122375380.30418.84.camel@localhost> References: <1122375380.30418.84.camel@localhost> Message-ID: <1836DD08-67EA-4E3D-B400-DAF71A2DE688@bandcamp.tv> On 26/07/2005, at 8:56 PM, Chris Wilson wrote: > To avoid disturbing any mailing lists you happen to be on, please set > your autoreply to ignore any message not specifically addressed to > you. Also any messages with the headers of Precedence: bulk or Precedence: list -- Tony Green ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From thomas.preissler at dallmeier-electronic.com Tue Jul 26 14:15:07 2005 From: thomas.preissler at dallmeier-electronic.com (preissler thomas) Date: Tue, 26 Jul 2005 14:15:07 +0200 Subject: [OT] - Out of office In-Reply-To: <1836DD08-67EA-4E3D-B400-DAF71A2DE688@bandcamp.tv> References: <1122375380.30418.84.camel@localhost> <1836DD08-67EA-4E3D-B400-DAF71A2DE688@bandcamp.tv> Message-ID: <20050726121507.GF5948@d100586.dallmeier.de> Hello, Am 26.07.2005 schrieb Tony Green: > On 26/07/2005, at 8:56 PM, Chris Wilson wrote: > >To avoid disturbing any mailing lists you happen to be on, please set > >your autoreply to ignore any message not specifically addressed to > >you. > > Also any messages with the headers of > Precedence: bulk > or > Precedence: list Which standard/RFC? Greets, Thomas ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From agabellini at intelcom.sm Tue Jul 26 14:19:13 2005 From: agabellini at intelcom.sm (Andrea Gabellini) Date: Tue, 26 Jul 2005 14:19:13 +0200 Subject: Check RPS status of cisco swithes Message-ID: <6.2.1.2.2.20050726141659.02867b40@mail.intelcom.sm> Hi, I'm trying to check the RPS status of some Cisco switches. I've tried the MIBS from the Cisco site but without success. Did anyone does that? Thanks, Andrea --------------------------------------- Hit any user to continue. --------------------------------------- Ing. Andrea Gabellini Email: agabellini at intelcom.sm Tel: 0549 886111 (Italy) Tel. +378 0549 886111 (International) Intelcom San Marino S.p.A. Strada degli Angariari, 3 47891 Rovereta Repubblic of San Marino http://www.omniway.sm http://www.intelcom.sm ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From xserpint at hotmail.com Tue Jul 26 14:33:12 2005 From: xserpint at hotmail.com (Mark Wisniewski) Date: Tue, 26 Jul 2005 12:33:12 +0000 (UTC) Subject: nrpe configuration issues References: Message-ID: Thank you! It worked beautifully! ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 26 15:04:56 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 26 Jul 2005 09:04:56 -0400 (EDT) Subject: Check RPS status of cisco swithes In-Reply-To: <6.2.1.2.2.20050726141659.02867b40@mail.intelcom.sm> References: <6.2.1.2.2.20050726141659.02867b40@mail.intelcom.sm> Message-ID: On Tue, 26 Jul 2005, Andrea Gabellini wrote: > Hi, > > I'm trying to check the RPS status of some Cisco switches. I've tried the > MIBS from the Cisco site but without success. Did anyone does that? > > Thanks, > Andrea I haven't done this in a while. A plugin to look at this doesn't exist as far as I know. We could modify the check_ifstatus to do this pretty easily - the MIB has similar logic. need to check - cefcFRUPowerAdminStatus and cefcFRUPowerOperStatus from CISCO-ENTITY-FRU-CONTROL-MIB with refernce to the ENTITY-MIB's entPhysicalIndex, entPhysicalDescr, entPhysicalName -sg > > > > --------------------------------------- > Hit any user to continue. > --------------------------------------- :))) -- ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From listas at dud.com.br Tue Jul 26 13:16:25 2005 From: listas at dud.com.br (Roberto Dud (listas)) Date: Tue, 26 Jul 2005 11:16:25 +0000 Subject: Nagios x Open NMS X HP Open View Message-ID: <42E61B89.8070503@dud.com.br> Mrs, Somebody would have some comparative degree on these softwares? In my Company I have a Castle Rock - SNMPc but this software don't monitoring services, only hosts. I want to change for an only tool that monitor all the services and hosts. This is the better way? Thanks, Dud. ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From BConrad at passkey.com Tue Jul 26 16:21:57 2005 From: BConrad at passkey.com (Ben Conrad) Date: Tue, 26 Jul 2005 10:21:57 -0400 Subject: Can check_snmp decode a date/time string? Message-ID: <8FB96300C132D511AE7500508BD6ABCD05AB3E40@eagle.passkey.com> Hi All, I'm pulling info from an APC ups and my return string (via snmpget) looks like: SNMPv2-SMI::enterprises.318.1.1.1.2.2.3.0 = 0:0:34:00.00 >>> 34 minutes When I run check_snmp against this oid I get: SNMP OK - *198000* Does anybody know what check_snmp is doing to convert 0:0:34:00.00 to 198000? I saw this in the --help but I'm not sure how to apply it: "- All evaluation methods other than PR, STR, and SUBSTR expect that the value returned from the SNMP query is an unsigned integer." Is it more appropriate to write a wrapper that knows how to convert 0:0:34:00.00 to my preferred time unit? Thanks, Ben Ben Conrad Sr. Network Administrator Passkey International, Inc. [T] 617.237.8225 ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jonathan at football1x2.com Tue Jul 26 16:36:33 2005 From: jonathan at football1x2.com (Jonathan Baker) Date: Tue, 26 Jul 2005 15:36:33 +0100 Subject: Remote NRPE calls always unknown. Message-ID: <003f01c591ef$6c9b3750$b801a8c0@footballgslsjj> Hi there, I got the NRPE daemon running fine and installed the plugins on the remote machine and tested them with the "nagios" user, so they all work locally on the remote machine. $USER1$ points to the libexec directory with the check_nrpe plugin in it: - $USER1$=/usr/local/nagios/libexec I am trying to use check_disk with a remote host using NRPE and I've setup up the command definitions in the nrpe.cfg file to not use parameters like so: - command[check_disk_root]=/usr/local/nagios/libexec/check_disk -w 50% -c 25% -p / I've set up my command definition for check_nrpe like this: - define command { command_name check_nrpe command_line $USER1$/check_nrpe -H %HOSTADRESS$ -c $ARGS1$ } and my remote service like this: - define service { use generic-check-disk name remote-root-part-service service_description Root Partition NRPE check_command check_nrpe!check_disk_root register 0 } and linked to an actual host with this: - define service { use remote-root-part-service host_name 252 } ...which all works fine and I've checked it with the -v flag on Nagios. If I switch to the Nagios user "nagios" and execute this command from the shell, it works fine: - [root at localhost libexec]# ./check_nrpe -H -c check_disk_root DISK OK [725088 kB (73%) free on /dev/sda8] ....but I always get an orange Unknown for all remote services through the web interface with "no output returned from plugin". Help! I've tried absolutely everything I can think of. Nagios doesn't seem to complain, the NRPE daemon is running and I can execute all plugins locally and also remote through the shell. At the end of my rope here. Advice? -------------- next part -------------- An HTML attachment was scrubbed... URL: From sghosh at sghosh.org Tue Jul 26 16:42:29 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 26 Jul 2005 10:42:29 -0400 (EDT) Subject: Can check_snmp decode a date/time string? In-Reply-To: <8FB96300C132D511AE7500508BD6ABCD05AB3E40@eagle.passkey.com> References: <8FB96300C132D511AE7500508BD6ABCD05AB3E40@eagle.passkey.com> Message-ID: On Tue, 26 Jul 2005, Ben Conrad wrote: > Hi All, > > I'm pulling info from an APC ups and my return string (via snmpget) looks > like: > > SNMPv2-SMI::enterprises.318.1.1.1.2.2.3.0 = 0:0:34:00.00 >>>> 34 minutes > > When I run check_snmp against this oid I get: > SNMP OK - *198000* > > Does anybody know what check_snmp is doing to convert 0:0:34:00.00 to > 198000? > > I saw this in the --help but I'm not sure how to apply it: > > "- All evaluation methods other than PR, STR, and SUBSTR expect that the > value > returned from the SNMP query is an unsigned integer." > > Is it more appropriate to write a wrapper that knows how to convert > 0:0:34:00.00 to my preferred time unit? > > Thanks, > > Ben check_snmp is not doing any conversions. The OID is defined as TIMETICKS (base INTEGER) which hundredths of a second. snmpget converts the TIMIETICKS to a human readable time format, check_snmp does not. A wrapper would be appropriate. -- -sg ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From robmossrm at aol.com Tue Jul 26 16:44:25 2005 From: robmossrm at aol.com (Rob Moss) Date: Tue, 26 Jul 2005 15:44:25 +0100 Subject: Remote NRPE calls always unknown. In-Reply-To: <003f01c591ef$6c9b3750$b801a8c0@footballgslsjj> References: <003f01c591ef$6c9b3750$b801a8c0@footballgslsjj> Message-ID: <42E64C49.1040506@aol.com> > define command { > command_name check_nrpe > command_line $USER1$/check_nrpe -H %HOSTADRESS$ -c $ARGS1$ > } > Is that %HOSTADDRESS$ a typo? Make sure all variables are declared with a $ (dollar) sign on either side, and not a % (percent) sign! Cheers ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Tue Jul 26 16:53:16 2005 From: marc at ena.com (Marc Powell) Date: Tue, 26 Jul 2005 09:53:16 -0500 Subject: Remote NRPE calls always unknown. Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Rob Moss > Sent: Tuesday, July 26, 2005 9:44 AM > To: Jonathan Baker > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Remote NRPE calls always unknown. > > > > > define command { > > command_name check_nrpe > > command_line $USER1$/check_nrpe -H %HOSTADRESS$ -c > $ARGS1$ > > } > > > > Is that %HOSTADDRESS$ a typo? > > Make sure all variables are declared with a $ (dollar) sign on either > side, and not a % (percent) sign! Additionally, it's $ARG1$, not $ARGS1$. http://nagios.sourceforge.net/docs/1_0/macros.html -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jonathan at football1x2.com Tue Jul 26 16:58:36 2005 From: jonathan at football1x2.com (Jonathan Baker) Date: Tue, 26 Jul 2005 15:58:36 +0100 Subject: Remote NRPE calls always unknown. References: <003f01c591ef$6c9b3750$b801a8c0@footballgslsjj> <42E64C49.1040506@aol.com> Message-ID: <005c01c591f2$81ab7da0$b801a8c0@footballgslsjj> The HostAddress was a typo.....the args1 wasn't. It works now! Thanks. Boy, is my face red....I've been banging on this all day. :) ----- Original Message ----- From: "Rob Moss" To: "Jonathan Baker" Cc: Sent: Tuesday, July 26, 2005 3:44 PM Subject: Re: [Nagios-users] Remote NRPE calls always unknown. > > > > define command { > > command_name check_nrpe > > command_line $USER1$/check_nrpe -H %HOSTADRESS$ -c $ARGS1$ > > } > > > > Is that %HOSTADDRESS$ a typo? > > Make sure all variables are declared with a $ (dollar) sign on either side, and not a % (percent) sign! > > Cheers > > > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Tue Jul 26 17:02:50 2005 From: marc at ena.com (Marc Powell) Date: Tue, 26 Jul 2005 10:02:50 -0500 Subject: Remote NRPE calls always unknown. Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Jonathan Baker > Sent: Tuesday, July 26, 2005 9:37 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Remote NRPE calls always unknown. > I've set up my command definition for check_nrpe like this: - > > define command { > command_name check_nrpe > command_line $USER1$/check_nrpe -H %HOSTADRESS$ -c $ARGS1$ > } > See other e-mails for commentary on this. > > If I switch to the Nagios user "nagios" and execute this command from the > shell, it works fine: - > > [root at localhost libexec]# ./check_nrpe -H -c > check_disk_root > DISK OK [725088 kB (73%) free on /dev/sda8] Note that you are 'root@' so you're still running the command as root, not nagios. The '#' prompt re-enforces that deduction. I don't think that's your problem based on the other e-mails. I'm just pointing it out for future reference. -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Tue Jul 26 17:05:42 2005 From: marc at ena.com (Marc Powell) Date: Tue, 26 Jul 2005 10:05:42 -0500 Subject: Remote NRPE calls always unknown. Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Jonathan Baker > Sent: Tuesday, July 26, 2005 9:59 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Remote NRPE calls always unknown. > > The HostAddress was a typo.....the args1 wasn't. It works now! Thanks. > Boy, > is my face red....I've been banging on this all day. :) Sometimes all it takes is another pair of eyes. Thanks for including all the pertinent information. -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 26 17:12:58 2005 From: noyler at khimetrics.com (Nathan Oyler) Date: Tue, 26 Jul 2005 08:12:58 -0700 Subject: An email on acknowledge, and only onacknowledge? Nagios and RT Message-ID: <59B15593F41BD24591D59436E7226EAD02347CF1@Khiphx2.khimetrics.com> Because if when there's a problem, a notification is sent. A ticket is opened. Now an hour goes by, and the problem still exists, so another notification is sent. Another ticket is opened. Now a recovery message is sent. Another ticket is opened. There's already a patch to Nagios to call the RT api during acknowledgements, but my RT machine isn't my Nagios machine, and I don't know enough of anything other than perl to edit it to do as I wish. There's also writing handlers to merge tickets when they come in, if new alert comes in, search for if a ticket is created for this host, grab that ticket number, send the new alert to comment on the ticket. This is how I'm leaning if I find nothing else out, but I'm thinking just on an acknowledge if a ticket was open, that would make sense. I acknowledge the problem. I fix the problem, I update the ticket that was created in this instance. > -----Original Message----- > From: Chris Wilson [mailto:chris at aidworld.org] > Sent: Tuesday, July 26, 2005 3:37 AM > To: Nathan Oyler > Cc: Nagios Users > Subject: Re: [Nagios-users] An email on acknowledge, and only > onacknowledge? Nagios and RT > > Hi Nathan, > > > I am thinking that every time there's an acknowledgement, if that > > could send an email to RT and only in that instance, it would be > > excellent to open up a ticket regarding it. > > Just write a notification command that sends an email to Request > Tracker. This should open a new ticket automatically. > > Why did you think that you would have to modify the C code? Perhaps we > haven't made the flexibility of notification mechanisms clear enough in > the documentation? How could it be improved? Please let us know. > > Cheers, Chris. > -- > (aidworld) chris wilson | chief engineer (chris at aidworld.org) ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Tue Jul 26 17:19:59 2005 From: chris at aidworld.org (Chris Wilson) Date: Tue, 26 Jul 2005 16:19:59 +0100 Subject: An email on acknowledge, and only onacknowledge? Nagios and RT In-Reply-To: <59B15593F41BD24591D59436E7226EAD02347CF1@Khiphx2.khimetrics.com> References: <59B15593F41BD24591D59436E7226EAD02347CF1@Khiphx2.khimetrics.com> Message-ID: <1122391199.30418.114.camel@localhost> Hi Nathan, > Because if when there's a problem, a notification is sent. A ticket is > opened. > > Now an hour goes by, and the problem still exists, so another > notification is sent. Another ticket is opened. > > Now a recovery message is sent. Another ticket is opened. It's easy enough to write your handler so that no email is sent unless the message type is ACKNOWLEDGEMENT. > There's already a patch to Nagios to call the RT api during > acknowledgements, but my RT machine isn't my Nagios machine, and I don't > know enough of anything other than perl to edit it to do as I wish. perl -i -pe 's/localhost/my.rt.server/g' api-script.c :-) > There's also writing handlers to merge tickets when they come in, if new > alert comes in, search for if a ticket is created for this host, grab > that ticket number, send the new alert to comment on the ticket. This is much trickier. Basically you need to write a mail handler that gets the responses from RT, captures the ticket number, and associates it in some way with a permanent record of the problem (maybe hostname + service name). It's been discussed in the past, you could check the archives. But it sounds like more than you need. > This is how I'm leaning if I find nothing else out, but I'm thinking > just on an acknowledge if a ticket was open, that would make sense. Cheers, Chris. -- (aidworld) chris wilson | chief engineer (chris at aidworld.org) ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 26 17:25:34 2005 From: noyler at khimetrics.com (Nathan Oyler) Date: Tue, 26 Jul 2005 08:25:34 -0700 Subject: An email on acknowledge, and only onacknowledge? Nagios and RT Message-ID: <59B15593F41BD24591D59436E7226EAD02347D2F@Khiphx2.khimetrics.com> Here's a link to the information regarding what someone else has done. http://archives.free.net.ph/message/20050613.151813.d26c3cb0.en.html I'm thinking without making the machines the same, I'll end up having to go another direction merging tickets as they come in. Which is fine, just wanted to get some input first. > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Nathan Oyler > Sent: Tuesday, July 26, 2005 8:13 AM > To: Chris Wilson > Cc: Nagios Users > Subject: RE: [Nagios-users] An email on acknowledge, and only > onacknowledge? Nagios and RT > > Because if when there's a problem, a notification is sent. A ticket is > opened. > > Now an hour goes by, and the problem still exists, so another > notification is sent. Another ticket is opened. > > Now a recovery message is sent. Another ticket is opened. > > There's already a patch to Nagios to call the RT api during > acknowledgements, but my RT machine isn't my Nagios machine, and I don't > know enough of anything other than perl to edit it to do as I wish. > > There's also writing handlers to merge tickets when they come in, if new > alert comes in, search for if a ticket is created for this host, grab > that ticket number, send the new alert to comment on the ticket. > > This is how I'm leaning if I find nothing else out, but I'm thinking > just on an acknowledge if a ticket was open, that would make sense. > > I acknowledge the problem. I fix the problem, I update the ticket that > was created in this instance. > > > > -----Original Message----- > > From: Chris Wilson [mailto:chris at aidworld.org] > > Sent: Tuesday, July 26, 2005 3:37 AM > > To: Nathan Oyler > > Cc: Nagios Users > > Subject: Re: [Nagios-users] An email on acknowledge, and only > > onacknowledge? Nagios and RT > > > > Hi Nathan, > > > > > I am thinking that every time there's an acknowledgement, if that > > > could send an email to RT and only in that instance, it would be > > > excellent to open up a ticket regarding it. > > > > Just write a notification command that sends an email to Request > > Tracker. This should open a new ticket automatically. > > > > Why did you think that you would have to modify the C code? Perhaps we > > haven't made the flexibility of notification mechanisms clear enough > in > > the documentation? How could it be improved? Please let us know. > > > > Cheers, Chris. > > -- > > (aidworld) chris wilson | chief engineer (chris at aidworld.org) > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=ick > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 26 17:29:00 2005 From: noyler at khimetrics.com (Nathan Oyler) Date: Tue, 26 Jul 2005 08:29:00 -0700 Subject: An email on acknowledge, and onlyonacknowledge? Nagios and RT Message-ID: <59B15593F41BD24591D59436E7226EAD02347D38@Khiphx2.khimetrics.com> Hey Chris, > > Because if when there's a problem, a notification is sent. A ticket is > > opened. > > > > Now an hour goes by, and the problem still exists, so another > > notification is sent. Another ticket is opened. > > > > Now a recovery message is sent. Another ticket is opened. > > It's easy enough to write your handler so that no email is sent unless > the message type is ACKNOWLEDGEMENT. > It is? I was unaware of that. I will reread the documentation and try to get a grasp on this. > > There's already a patch to Nagios to call the RT api during > > acknowledgements, but my RT machine isn't my Nagios machine, and I don't > > know enough of anything other than perl to edit it to do as I wish. > > perl -i -pe 's/localhost/my.rt.server/g' api-script.c > > :-) > [Nathan Oyler] :) > > There's also writing handlers to merge tickets when they come in, if new > > alert comes in, search for if a ticket is created for this host, grab > > that ticket number, send the new alert to comment on the ticket. > > This is much trickier. Basically you need to write a mail handler that > gets the responses from RT, captures the ticket number, and associates > it in some way with a permanent record of the problem (maybe hostname + > service name). It's been discussed in the past, you could check the > archives. But it sounds like more than you need. > [Nathan Oyler] It's been discussed, and all together I think I have a pretty good idea of how to do it. It's just more than I need. Exactly. > > This is how I'm leaning if I find nothing else out, but I'm thinking > > just on an acknowledge if a ticket was open, that would make sense. > [Nathan Oyler] Thanks ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From listas at dud.com.br Tue Jul 26 15:08:57 2005 From: listas at dud.com.br (Roberto Dud (listas)) Date: Tue, 26 Jul 2005 13:08:57 +0000 Subject: Nagios and SNMP Message-ID: <42E635E9.3020409@dud.com.br> Mrs, I have a Question, Nagios have a good suport to SNMP? Traps, snmpget... Thanks, Dud. ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jochen.vogel.extern at activest.de Tue Jul 26 18:36:33 2005 From: jochen.vogel.extern at activest.de (Vogel, Jochen (extern)) Date: Tue, 26 Jul 2005 18:36:33 +0200 Subject: perfdata problems Message-ID: <7EE14456B03EF34895CC04AE4D682F4A040044@am03exc.wem.hvb> hello, i use nagios 1.x and try to use perfdata but it doesnt work. i compiled nagios with --with-default-perfdata. ------------------ nagios.cfg perfdata_timeout=5 process_performance_data=1 #host_perfdata_command=process-host-perfdata service_perfdata_command=process-service-perfdata -------------------- commands.cfg define command{ command_name process-host-perfdata command_line /bin/echo -e "$LASTCHECK$\t$HOSTNAME$\t$HOSTSTATE$\t$HOSTATTEMPT$\t$STATETYPE$\t$EXEC UTIONTIME$\t$OUTPUT$\t$PERFDATA$" >> /tmp/host-perfdata } define command{ command_name process-service-perfdata command_line /bin/echo -e "$LASTCHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICESTATE$\t$SERVICEATTEMPT $\t$STATETYPE$\t$EXECUTIONTIME$\t$LATENCY$\t$OUTPUT$\t$PERFDATA$" >> /tmp/service-perfdata } ------------------ [root at am02nag libexec]# ./check_ping -H 213.61.74.50 25 60 50.0 100.0 -p 5 PING OK - Packet loss = 0%, RTA = 0.86 ms ------------------ [root at am02nag libexec]# tail -5 /tmp/service-perfdata 1122395658 am02taix4 PING OK 1 HARD 4 0 PING OK - Packet loss = 0%, RTA = 0.32 ms 1122395658 amc211 PING OK 1 HARD 4 0 PING OK - Packet loss = 0%, RTA = 0.16 ms 1122395662 prodwww3 HTTPD OK 1 HARD 0 0 11 processes named httpd running 1122395658 viruswall PING OK 1 HARD 4 0 PING OK - Packet loss = 0%, RTA = 0.95 ms 1122395658 am01dat PING OK 1 HARD 4 0 PING OK - Packet loss = 0%, RTA = 0.96 ms any idea? thanks for help jochen ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 26 18:51:28 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 26 Jul 2005 12:51:28 -0400 (EDT) Subject: Nagios and SNMP In-Reply-To: <42E635E9.3020409@dud.com.br> References: <42E635E9.3020409@dud.com.br> Message-ID: On Tue, 26 Jul 2005, Roberto Dud (listas) wrote: > Mrs, > > I have a Question, Nagios have a good suport to SNMP? Traps, snmpget... > > Thanks, > > Dud. > Nagios has no builtin snmp support. A number of plugins use snmp to get data (interfaces, bgp, ups, etc) You can write your own To receive traps, you will need to integrated a trap daemon (eg. net-snmp) and passive/volatile checks. A good Nagios/snmp trap article: http://www.samag.com/documents/s=9559/sam0503g/ -- -sg ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From teng at dataway.com Tue Jul 26 21:03:02 2005 From: teng at dataway.com (Tedman Eng) Date: Tue, 26 Jul 2005 12:03:02 -0700 Subject: An email on acknowledge, and onlyonacknowledge ? Nagios and RT Message-ID: <37ED92F9890FAF4BB947613C66FF8B1AFC7595@dw-mail.dataway.com> > > It's easy enough to write your handler so that no email is > sent unless > > the message type is ACKNOWLEDGEMENT. > > > It is? I was unaware of that. I will reread the documentation > and try to > get a grasp on this. > Here's a possibility: misccommands.cfg # 'notify-RT-ticket-host' define command{ command_name notify-RT-ticket-host command_line [ "$NOTIFICATIONTYPE$" = "ACKNOWLEDGEMENT" ] && /usr/bin/printf "%b" "***** OPERATOR ACKNOWLEDGEMENT *****\n\nAn operator has acknowledged this HOST problem and a HelpDesk ticket has been automatically generated\n\nDETAILS\n\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $OUTPUT$\n\nDate/Time: $DATETIME$\n" | /bin/mail -s "$HOSTSTATE$ - $HOSTNAME$!" $CONTACTEMAIL$ } A cleaner solution might be to put all your notification logic in a seperate script and just pipe arguments to the script. The script can then decide which variables it wants to use, what channel to send notifications through, and how to format the message for each channel. ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From andy at shady.org Tue Jul 26 22:08:08 2005 From: andy at shady.org (andy) Date: Tue, 26 Jul 2005 21:08:08 +0100 Subject: cgi errors Message-ID: <20050726210808.S35615@shady.org> Hi, Just in the process of upgrading from nagios 1 to 2. Successfully ported all config files. However, I see a lot of "premeture end of script" errors in our web logs now with the new version. Also, when browsing there is a lot of false reports on pages, it feels like the pages bail out before loading. nagios# tail /var/log/httpd-error.log [Tue Jul 26 19:52:56 2005] [error] [client xxx.xxx.xxx.xxx] Premature end of script headers: /usr/local/share/nagios/cgi-bin/status.cgi [Tue Jul 26 19:55:26 2005] [error] [client xxx.xxx.xxx.xxx] Premature end of script headers: /usr/local/share/nagios/cgi-bin/status.cgi [Tue Jul 26 20:01:51 2005] [error] [client xxx.xxx.xxx.xxx] Premature end of script headers: /usr/local/share/nagios/cgi-bin/status.cgi Is there anything that can be done to stop this? Are these errors mainly fixed in CVS? Running simply the latest version from FreeBSD ports tree. 2.03b. cheers -- andy andy at shady.org ----------------------------------------------- Never argue with an idiot. They drag you down to their level, then beat you with experience. http://shady.org/~tlabs/ ----------------------------------------------- ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tgreen at bandcamp.tv Tue Jul 26 22:19:40 2005 From: tgreen at bandcamp.tv (Tony Green) Date: Wed, 27 Jul 2005 06:19:40 +1000 Subject: [OT] - Out of office In-Reply-To: <20050726121507.GF5948@d100586.dallmeier.de> References: <1122375380.30418.84.camel@localhost> <1836DD08-67EA-4E3D-B400-DAF71A2DE688@bandcamp.tv> <20050726121507.GF5948@d100586.dallmeier.de> Message-ID: On 26/07/2005, at 10:15 PM, preissler thomas wrote: >> >> Also any messages with the headers of >> Precedence: bulk >> or >> Precedence: list >> > > Which standard/RFC? > Most major mailing list managers set them by default (including mailman on the nagios users list). They are not, that I'm aware, defined as a standard and are even discouraged by RFC2076, but a the end of the day it is used in a lot of places. The venerable vacation program (part of sendmail) was my first exposure to them, many years ago. A google shows that many other programs now use them. The original question was how to make an autoresponder behave nicely for lists. The two suggestions (don't reply to non-personally addressed e-mail or email with a [bulk|junk|list] precedence) will both work, though neither will be completely effective on it's own. greeno -- Tony Green ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tgreen at bandcamp.tv Tue Jul 26 22:30:48 2005 From: tgreen at bandcamp.tv (Tony Green) Date: Wed, 27 Jul 2005 06:30:48 +1000 Subject: [OT] - Out of office In-Reply-To: <20050726121507.GF5948@d100586.dallmeier.de> References: <1122375380.30418.84.camel@localhost> <1836DD08-67EA-4E3D-B400-DAF71A2DE688@bandcamp.tv> <20050726121507.GF5948@d100586.dallmeier.de> Message-ID: On 26/07/2005, at 10:15 PM, preissler thomas wrote: >> >> Also any messages with the headers of >> Precedence: bulk >> or >> Precedence: list >> > > Which standard/RFC? > Most major mailing list managers set them by default (including mailman on the nagios users list). They are not, that I'm aware, defined as part of a standard and are not in RFC822 or RFC1123, but a the end of the day they are used a lot. Sendmail itself uses these headers to do message prioritization, though as with a lot of sendmail's internals, this doesn't make it a good thing ;-) The venerable vacation program was my first exposure to them, google shows a LOT of other programs now support their use. If you want to prevent your auto-responder from replying to mail it shouldn't, you need to use both of the tips presented in this thread. If you only choose to ignore mail that is not directly addressed to you, you may still fall foul of certain mailing list managers, promotional mails, etc. If you only use the Precedence method, you're relying on the sender setting something which isn't required (though most lists etc do). Are there better ways of doing this in the modern world? Sure! Can we implement one of them before this guy goes on holiday? Doubt it ;-) greeno -- Tony Green -------------- next part -------------- An HTML attachment was scrubbed... URL: From noyler at khimetrics.com Tue Jul 26 22:05:35 2005 From: noyler at khimetrics.com (Nathan Oyler) Date: Tue, 26 Jul 2005 13:05:35 -0700 Subject: An email on acknowledge, and onlyonacknowledge? Nagios and RT Message-ID: <59B15593F41BD24591D59436E7226EAD02348022@Khiphx2.khimetrics.com> > > > It's easy enough to write your handler so that no email is > > sent unless > > > the message type is ACKNOWLEDGEMENT. > > > > > It is? I was unaware of that. I will reread the documentation > > and try to > > get a grasp on this. > > > > Here's a possibility: > > misccommands.cfg > > # 'notify-RT-ticket-host' > define command{ > command_name notify-RT-ticket-host > command_line [ "$NOTIFICATIONTYPE$" = "ACKNOWLEDGEMENT" ] && > /usr/bin/printf "%b" "***** OPERATOR ACKNOWLEDGEMENT *****\n\nAn operator > has acknowledged this HOST problem and a HelpDesk ticket has been > automatically generated\n\nDETAILS\n\nHost: $HOSTNAME$\nState: > $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $OUTPUT$\n\nDate/Time: > $DATETIME$\n" | /bin/mail -s "$HOSTSTATE$ - $HOSTNAME$!" $CONTACTEMAIL$ > } > > A cleaner solution might be to put all your notification logic in a > seperate > script and just pipe arguments to the script. The script can then decide > which variables it wants to use, what channel to send notifications > through, > and how to format the message for each channel. > [Nathan Oyler] That's what I will do, put all of the notification logic in a separate script, and call that. Thank you very much for your help. ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From prosolutions at gmx.net Wed Jul 27 00:16:05 2005 From: prosolutions at gmx.net (prosolutions at gmx.net) Date: Tue, 26 Jul 2005 15:16:05 -0700 Subject: How to keep host/service in config but disable? Message-ID: <20050726221604.GF2987@localdomain> Is there a simple way to disable a host/service check and remove it from the monitoring pool without having to completely comment it out from services.cfg, hosts.cfg, hostgroups.cfg, etc.? I noticed that I can use "register 0" in hosts.cfg and services.cfg but I still must remove stuff from hostgroups.cfg.... ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 27 00:24:15 2005 From: s.shipway at auckland.ac.nz (Steve Shipway) Date: Wed, 27 Jul 2005 10:24:15 +1200 Subject: How to keep host/service in config but disable? In-Reply-To: <20050726221604.GF2987@localdomain> References: <20050726221604.GF2987@localdomain> Message-ID: <020001c59230$c1bf6a80$01fea8c0@itss.auckland.ac.nz> >Is there a simple way to disable a host/service check and >remove it from the monitoring pool without having to >completely comment it out from services.cfg, hosts.cfg, >hostgroups.cfg, etc.? What's wrong with just disabling checks and notifications? active_checks_enabled 0 notifications_enabled 0 Or, just do it via the web interface. You may also want to disable the freshness checks, if you use them. Steve ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kdyke at keycomputerconsultants.com Wed Jul 27 00:34:58 2005 From: kdyke at keycomputerconsultants.com (Ken Dyke) Date: Tue, 26 Jul 2005 16:34:58 -0600 Subject: (service|host)_notification_commands Message-ID: <20050726223458.GG687@hyper> Hi all, service_notification_commands does not execute commands in order listed. Why? -- Ken (406) 581-0495 ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Jul 27 00:46:07 2005 From: marc at ena.com (Marc Powell) Date: Tue, 26 Jul 2005 17:46:07 -0500 Subject: (service|host)_notification_commands Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Ken Dyke > Sent: Tuesday, July 26, 2005 5:35 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] (service|host)_notification_commands > > Hi all, > > service_notification_commands does not execute commands in order listed. > Why? It's not documented that they would be that I've ever seen. If they're stored in a hash internally then they could be returned/run in any order. I don't know enough to tell if that's how Nagios is storing them but my guess would be that it is. -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ran.Li at sprint-canada.com Wed Jul 27 01:21:18 2005 From: Ran.Li at sprint-canada.com (Ran Li) Date: Tue, 26 Jul 2005 19:21:18 -0400 Subject: distributed monitoring, passive check question Message-ID: hello list, I m trying to configure distributed monitoring using nsca/send_nsca for passive checking. Now I can see PASV icon besides the http service that I want to monitor on host02, but the status is always "Pending" and Status Information says "Service is not scheduled to be checked... " host01 is my central host which reports "Warning: The results of service 'http' on host 'host02' are stale by 1 seconds (threshold=420 seconds). I'm forcing an immediate check of the service.eports ", I set "freshness_threshold" to 420. I went through the docs and followed the instructions, but have no idea how to make it work. Could you please help to analyze what could be the problem? I just need a clue to make it work. Thanks. Regards, -tea ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Wed Jul 27 03:58:06 2005 From: pla at softflare.com (Paul L. Allen) Date: Wed, 27 Jul 2005 02:58:06 +0100 Subject: distributed monitoring, passive check question In-Reply-To: References: Message-ID: <20050727015806.27150.qmail@mullet.softflare.net> Ran Li writes: > I m trying to configure distributed monitoring using nsca/send_nsca for > passive checking. Now I can see PASV icon besides the http service that > I want to monitor on host02, If this is a service that is available only inside a particular subnet that your nagios host is not part of then some sort of remote check (be it NSCA, NRPE, check_by_ssh or other) is required. If it's a public service, or one that is available only inside a particular subnet BUT your nagios host is part of the same subnet then a passive check is feasible but a direct check is better. The closer your test is to what you really wish the monitored host to do the better. You can ping the monitored host, but I've seen servers that are pingable but can't do anything else. You can check the monitored host to see if the httpd (or equivalent) process is running, but resource problems could mean that httpd is running but nobody can get a response from the web server. You can check that you can get a response from the web server with check_tcp (it accepts the TCP connection) but perhaps it can go no further. You can check that you get a 200 response from the web server, but maybe the site it is serving relies on a database being accessible to generate content (such a site is very cache-unfriendly and most PHP web apps I have seen have this failing). In what detail you check the web server is operational is a trade-off between how mission-critical it is and the loading on your nagios host. But if it's a public web server then passive checks are a really bad idea even if your nagios host is on the same subnet. Hint: if your web server only binds to the loopback address and your passive checks are submitted by that web server then everything will look wonderful even though your web server is unusable by anybody not on the same server. Really, really, really, if it's a network service accessible from the nagios host then use a direct check. Checking the number of processes on a server is something you can do with a passive check (but also by using NRPE, check_by_ssh, etc). Checking if crond is running is something you can do with a passive check (or alternatives). Checking CPU load is something you can do with a passive check (or alternatives). But checking if a web server is running is not something you should do with a passive check (or alternatives) UNLESS your nagios host cannot access that web server. And even then you should aim to run your check from a different host on the same subnet. OK, minor qualification time. I have several customer sites which have their own nagios host which submits passive check results for many things. But when it comes to publicly-available services on those customer sites our master nagios host does the checks directly and submits the results back to the remote nagios hosts. OK, that's a simplification. Actually the remote sites do check things like web servers directly but there is also ANOTHER passive check on the same services which our master nagios host submits to the remote nagios hosts. Actually, it's a little more complex than that, but the basic principles are the same. Your nagios checks should be as close as is practicable to testing the real thing bearing in mind the resources that may be needed to do a full check. Sometimes you're stuck with having to monitor a windows process that does not make a network service available and all you can do is check that windows thinks it is running. But if it's a network service visible from the nagios host then do a direct check. If you do anything less you'll end up telling customers "Our monitoring system told us that Windows[turdmark] thought it was running a web server but actually it was as screwed up as only Windows[turdmark] can be. Everything looked fine to our monitoring system but actually Windows[turdmark] was lying." -- Paul Allen Softflare Support ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Wed Jul 27 04:10:38 2005 From: pla at softflare.com (Paul L. Allen) Date: Wed, 27 Jul 2005 03:10:38 +0100 Subject: - Out of office In-Reply-To: References: <1122375380.30418.84.camel@localhost> <1836DD08-67EA-4E3D-B400-DAF71A2DE688@bandcamp.tv> <20050726121507.GF5948@d100586.dallmeier.de> Message-ID: <20050727021038.1395.qmail@mullet.softflare.net> Tony Green writes: > Are there better ways of doing this in the modern world? Sure! There were better ways of doing it even in the ancient world. :) Better vacation responders have always used heuristics to try to avoid responding to mailing lists. The best vacation responders also keep track of who they've replied to and do not send another reply to the same address within some configurable number of days. Either approach (if used sensibly) would avoid contaminating this list. Sadly, Microsoft[turdmark] MUAs have no such intelligence (or if they do then it is far beyond the ordinary user to enable it). Set up a vacation responder in Outhouse[turdmark] or Outhouse Express[turdmark] and it will happily respond to every mail sent to it, whether that mail is from an obviously recognizable mail list or not. Note that some software mentioned here has a name which is the trademark of Microsoft[turdmark] and intellectual property laws require that I identify such software as being trademarked. I have chosen to identify such software by using the notation [turdmark] because it is a steaming pile of shit. I encourage everyone else who understands that Microsoft products are steaming turdpiles to do the same. -- Paul Allen Softflare Support ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ssugar at proserveit.com Wed Jul 27 06:07:52 2005 From: ssugar at proserveit.com (Scott Sugar) Date: Wed, 27 Jul 2005 00:07:52 -0400 Subject: How to keep host/service in config but disable? Message-ID: set the active_checks_enabled to 0 in services.cfg for each service you want disabled... and set checks_enabled to 0 in hosts.cfg... look at http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#service for all the options a service can have in services.cfg and http://nagios.sourceforge.net/docs/2_0/xodtemplate.html for all the options a host can have in hosts.cfg ________________________________ From: nagios-users-admin at lists.sourceforge.net on behalf of prosolutions at gmx.net Sent: Tue 7/26/2005 6:16 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] How to keep host/service in config but disable? Is there a simple way to disable a host/service check and remove it from the monitoring pool without having to completely comment it out from services.cfg, hosts.cfg, hostgroups.cfg, etc.? I noticed that I can use "register 0" in hosts.cfg and services.cfg but I still must remove stuff from hostgroups.cfg.... ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 ssugar at proserveit.com Wed Jul 27 06:10:15 2005 From: ssugar at proserveit.com (Scott Sugar) Date: Wed, 27 Jul 2005 00:10:15 -0400 Subject: distributed monitoring, passive check question Message-ID: It seems to me like your host02 is not configured to do active checks... if host01 is your central host, it should be configured to not do active checks... but if host02 is supposed to be running active checks then it needs to have active_checks_enabled set to 1 for each service you want... or in a template that each service uses... also ensure that your execute_service_checks option is set to 1 in the nagios.cfg file. http://nagios.sourceforge.net/docs/2_0/configmain.html#execute_service_checks ________________________________ From: nagios-users-admin at lists.sourceforge.net on behalf of Ran Li Sent: Tue 7/26/2005 7:21 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] distributed monitoring, passive check question hello list, I m trying to configure distributed monitoring using nsca/send_nsca for passive checking. Now I can see PASV icon besides the http service that I want to monitor on host02, but the status is always "Pending" and Status Information says "Service is not scheduled to be checked... " host01 is my central host which reports "Warning: The results of service 'http' on host 'host02' are stale by 1 seconds (threshold=420 seconds). I'm forcing an immediate check of the service.eports ", I set "freshness_threshold" to 420. I went through the docs and followed the instructions, but have no idea how to make it work. Could you please help to analyze what could be the problem? I just need a clue to make it work. Thanks. Regards, -tea ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From rt at garnetweb.com Wed Jul 27 06:43:13 2005 From: rt at garnetweb.com (Miles Scruggs) Date: Tue, 26 Jul 2005 21:43:13 -0700 Subject: FW: secondary nagios verification Message-ID: Is there anyway for nagios to verify the status of a host from another nagios system? If I have two nagios systems nag_A and nag_B and they are monitoring the host host_A and it's services. If nag_A detects that host_A is down is there anyway for it to ask nag_B if this is verifiable, and vice versa. If nag_A can't communicate with nag_B I would like it to still send out notification if and only if it can communicate with 1 or more specified hosts. If the simple answer to these questions is "yes" then the corollary will be "how" Thanks Miles ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rt at garnetweb.com Wed Jul 27 06:42:47 2005 From: rt at garnetweb.com (Miles Scruggs) Date: Tue, 26 Jul 2005 21:42:47 -0700 Subject: notification suppression Message-ID: How would you test nagios' own connection to the internet ie ping google, yahoo, etc, and if they all fail suppress notifications till at least one is available Thanks Miles ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 27 07:40:57 2005 From: s.shipway at auckland.ac.nz (Steve Shipway) Date: Wed, 27 Jul 2005 17:40:57 +1200 Subject: notification suppression In-Reply-To: References: Message-ID: <022701c5926d$c3e32120$01fea8c0@itss.auckland.ac.nz> >How would you test nagios' own connection to the internet ie >ping google, yahoo, etc, and if they all fail suppress >notifications till at least one is available That's basically what I've done. A set of (notification diabled) services that ping various major websites (by hostname, not by IP) and a host check that pings microsoft (well, it has to ping *someone*). Only the host check will send a notification, and only if all the services fail. Seems to work (we had an internet outage last week :( ) Steve ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From peter.d.farrell at gmail.com Wed Jul 27 10:09:54 2005 From: peter.d.farrell at gmail.com (Peter Farrell) Date: Wed, 27 Jul 2005 09:09:54 +0100 Subject: HOWTO Combine v1 hostextinfo/serviceextinfo into v2 hosts/service files? Message-ID: I am migrating two servers in our DMZ from Nagios v1 to Nagios v2. As Nagios v2 doesn't use the '*extinfo' config files anymore, where do you actually put the extinfo? The docs say that it can be combined into the hosts and service cfg files, but I was wondering if anyone had an example they could post? For example: service.cfg define service{ use generic-passive host_name venus, zeus service_description SWAP check_period 24x7 normal_check_interval 5 retry_check_interval 1 contact_groups linux-admins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_by_ssh!'/usr/local/nagios/libexec/check_swap -w 70% -c 90%' } And my previous serviceextinfo.cfg: define serviceextinfo{ host_name venus service_description SWAP Free notes_url /nagios/nagiostat/nagiostat.cgi?graph_name=venus-swap icon_image graph.gif icon_image_alt View Graphs For This Service } Would they all result in something that looked like this: define service{ use generic-passive host_name venus, zeus service_description SWAP notes_url /nagios/nagiostat/nagiostat.cgi?graph_name=venus-swap icon_image graph.gif icon_image_alt View Graphs For This Service check_period 24x7 normal_check_interval 5 retry_check_interval 1 contact_groups linux-admins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_by_ssh!'/usr/local/nagios/libexec/check_swap -w 70% -c 90%' } Or do you just literally copy over all the stanza's from the old config files ? Any ideas? Peter Farrell ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 27 11:04:41 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 27 Jul 2005 11:04:41 +0200 Subject: Multiple Nagios proccesses running. In-Reply-To: <1122373846.30418.65.camel@localhost> References: <200507252109.j6PL9vjU023926@mail.asc.edu> <20050725221507.30266.qmail@mullet.softflare.net> <1122373846.30418.65.camel@localhost> Message-ID: <42E74E29.5090005@op5.se> Chris Wilson wrote: > Hi all, > > On Mon, 2005-07-25 at 23:15, Paul L. Allen wrote: > >>Larry Naves writes: >> >> >>>What is the best way to keep multiple nagios processes from running: >> >>Don't run nagios. > > > Nagios is an excellent program with a small bug. This bug has existed > for years. It's not present in Nagios 2.x, only the older (unmaintained) version. > NOBODY seems to be interested in squashing it. I've patched it on quite a few occasions. The reason it's not so easy to fix in the distribution is that the init-script really must be portable to all platforms that nagios runs on. > That's wrong. > It's very high time that we exterminate this critter. No other > well-written daemon has this problem. > False. I know of several that happily start several processes, even where such processes clearly conflict with each other. > I've posted a patch which makes a first step to fixing this, by properly > detecting the error. The next step is to find out why the initscript > starts a new nagios process before the old one has died, and fix that. > The fix in Nagios 2.x is a bit more complete (although it uses "lock-file" rather than "pid-file" which is incorrect since lock-files are a redhat'ism). > I'm happy to do what I can, but I need testers to help me as well. > Anyone interested? > Ethan was, and he fixed it. To the original poster (and everybody else who might wonder about this); Nagios 2 runs 4 threads in normal operation and fires a new process each time it runs a check (this can be removed with multiplexing code, which would greatly increase the performance of Nagios). With most thread-implementations on linux and *bsd, threads are separate processes that show up as such on the ps output. If you want to know if there are actually several *master* instances of Nagios running, you must use pstree and see how many top-level leafs there are of Nagios processes. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 27 11:11:14 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 27 Jul 2005 11:11:14 +0200 Subject: HOWTO Combine v1 hostextinfo/serviceextinfo into v2 hosts/service files? In-Reply-To: References: Message-ID: <42E74FB2.1050004@op5.se> Peter Farrell wrote: > I am migrating two servers in our DMZ from Nagios v1 to Nagios v2. > > As Nagios v2 doesn't use the '*extinfo' config files anymore, where do > you actually put the > extinfo? The docs say that it can be combined into the hosts and > service cfg files, but I was wondering if anyone had an example they > could post? > The simplest way is to create new entries in nagios.cfg, saying cfg_file=/usr/local/etc/nagios/hostextinfo.cfg cfg_file=/usr/local/etc/nagios/serviceextinfo.cfg and remove them from cgi.cfg. The above advice ofcourse assumes you have installed the extinfo files in /usr/local/etc. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From getbacktome3 at hotmail.com Wed Jul 27 12:12:19 2005 From: getbacktome3 at hotmail.com (HP Geeza) Date: Wed, 27 Jul 2005 11:12:19 +0100 Subject: return code 111 out of bounds? Message-ID: Hi I am having trouble with a few unix machines that i am monitoring and was wondering if anybody knew why i was getting this error message and what can be done to resolve the problem. I am getting a "return code 111 out of bounds?" error message in the status section of the monitored host. It only appears to be affect some of the service checks eg: CPU load and disk space....other checks eg ping seem to be ok. Any ideas on what i am doing wrong? _________________________________________________________________ Want to block unwanted pop-ups? Download the free MSN Toolbar now! http://toolbar.msn.co.uk/ ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe-YpEHkxAi6oMehzHBf2RrnA at public.gmane.org Wed Jul 27 12:33:48 2005 From: Ralph.Grothe-YpEHkxAi6oMehzHBf2RrnA at public.gmane.org (Ralph.Grothe-YpEHkxAi6oMehzHBf2RrnA at public.gmane.org) Date: Wed, 27 Jul 2005 12:33:48 +0200 Subject: Macro Identifier and String Mixing Message-ID: <6B893C5F2902D311A23F0090272854FB0575B78C@litex001.lit.verwalt-berlin.de> Hello, I would like to know if it is possible to mix (i.e. prefix, or suffix, or backticks substitute) a macro identifier (as listed in http://nagios.sourceforge.net/docs/2_0/macros.html) within the checkcommands.cfg file context (i.e. does it get expanded)? E.g. I would like to do something like define command { command_name check_vcs_$HOSTNAME$ command_line $USER1$/check_nrpe } I want it that convoluted because I compiled nrpe daemons on managed nodes not to accept arguments. Thus I think I would have to wrap the distinction in the command name. Regards Ralph ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagiosplug-help mailing list Nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org https://lists.sourceforge.net/lists/listinfo/nagiosplug-help ::: Please include plugins version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From b00mer at gmx.net Wed Jul 27 12:59:34 2005 From: b00mer at gmx.net (Hendrik Baecker) Date: Wed, 27 Jul 2005 12:59:34 +0200 Subject: return code 111 out of bounds? In-Reply-To: References: Message-ID: <42E76916.5080400@gmx.net> Hi HP, did you check that the Plugins are there where they should be? What happens when you execute the Plugins from the CLI? HP Geeza schrieb: > Hi > > I am having trouble with a few unix machines that i am monitoring and > was wondering if anybody knew why i was getting this error message and > what can be done to resolve the problem. > > I am getting a "return code 111 out of bounds?" error message in the > status section of the monitored host. It only appears to be affect > some of the service checks eg: CPU load and disk space....other checks > eg ping seem to be ok. > > Any ideas on what i am doing wrong? > > _________________________________________________________________ > Want to block unwanted pop-ups? Download the free MSN Toolbar now! > http://toolbar.msn.co.uk/ > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk > being sent to /dev/null > > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kvaes at vangenechten.com Wed Jul 27 13:32:07 2005 From: kvaes at vangenechten.com (Karim Vaes) Date: Wed, 27 Jul 2005 13:32:07 +0200 Subject: Nagios & Knowledgebase Message-ID: I was wondering if some of you combined(/modded) nagios with a kind of knowledgebase. If so, how & which system did you use? Regards Karim -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: InterScan_Disclaimer.txt URL: From jonathan at football1x2.com Wed Jul 27 14:03:17 2005 From: jonathan at football1x2.com (Jonathan Baker) Date: Wed, 27 Jul 2005 13:03:17 +0100 Subject: NSCA with Nagios Message-ID: <002f01c592a3$2e117df0$b801a8c0@footballgslsjj> Hi there, I can only get the NRPE daemon working on one of my eight machines, so will have to use NSCA for the others. I've got the NSCA daemon running on my central Nagios host and have setup the send_nsca as part of a cron job that sends new results every few minutes. What do I have to setup in my services.cfg in Nagios in order to display the results like regular Nagios services? The documentation for NSCA isn't nearly as complete as the NRPE docs. Little help? -------------- next part -------------- An HTML attachment was scrubbed... URL: From dshafi at yahoo.com Wed Jul 27 14:21:42 2005 From: dshafi at yahoo.com (shafi) Date: Wed, 27 Jul 2005 05:21:42 -0700 (PDT) Subject: statusmap problem Message-ID: <20050727122142.46183.qmail@web50607.mail.yahoo.com> Hi all, I had put the line on my cgi.cfg as xedtemplate_config_file=/usr/local/nagios/etc/hostextinfo.cfg and my out of hostextinfo file cat etc/hostextinfo.cfg define hostextinfo{ host_name linsvr icon_image redhat.png icon_image_alt Redhat Server statusmap_image redhat.gd2 } but still i am getting the default image only. i had spend lot of time on this can anyone help me. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stephen.davies at globaltravelgroup.com Wed Jul 27 15:15:47 2005 From: stephen.davies at globaltravelgroup.com (Stephen Davies) Date: Wed, 27 Jul 2005 14:15:47 +0100 Subject: statusmap problem Message-ID: <4C82DE70C9DD0042AF49810DFF971690093F6A@sus.tgtgonline.com> Hi, Ensure the image that you have choosen is stored in the correct folder eg; /usr/sharenagios/images/logos Check the permissions on hostextinfo.cfg and that nagios processes owner has read privileges, and also, check permissions for the image file stored in the logos directory so that the httpd webserver processes owner has read privileges. Have you examined the nagios logfile for errors ? -----Original Message----- From: shafi [mailto:dshafi at yahoo.com] Sent: 27 July 2005 13:22 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] statusmap problem Hi all, I had put the line on my cgi.cfg as xedtemplate_config_file=/usr/local/nagios/etc/hostextinfo.cfg and my out of hostextinfo file cat etc/hostextinfo.cfg define hostextinfo{ host_name linsvr icon_image redhat.png icon_image_alt Redhat Server statusmap_image redhat.gd2 } but still i am getting the default image only. i had spend lot of time on this can anyone help me. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null _______________________________________________________________________________ This message is confidential and for use by the addressee only. If you are not the intended recipient, you must not use, disclose, distribute, copy, print, or rely on this message. Please notify the sender by return email and then delete the message from your computer. The Global Travel Group PLC accepts no responsibility for changes made to this message after it was sent nor for any loss or damage from receipt or use. This message has been checked for all known viruses by the MessageLabs Virus Scanning Service Internet: http://www.globaltravelgroup.com ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jonathan at football1x2.com Wed Jul 27 18:03:54 2005 From: jonathan at football1x2.com (Jonathan Baker) Date: Wed, 27 Jul 2005 17:03:54 +0100 Subject: NSCA with Nagios References: Message-ID: <00cc01c592c4$cb0f73c0$b801a8c0@footballgslsjj> I don't get it, though. If I define a service, it has to have the same name as the remote host service definition (which is local to itself). Fine. But the service defined on my Nagios central server (with passive_checks_enabled) also needs a check_command. What should this be to get the results of a passive check? ----- Original Message ----- From: Scott Sugar To: Jonathan Baker Sent: Wednesday, July 27, 2005 2:05 PM Subject: RE: [Nagios-users] NSCA with Nagios you have to have the proper services and hosts defined in your services.cfg file and hosts.cfg file... this means that the service description and host name for each service you are passivly sending needs to be defined at your central server. or... as ethan puts it... a.. The central server must have service definitions for all services that are being monitored by all the distributed servers. Nagios will ignore passive check results if they do not correspond to a service that has been defined. ------------------------------------------------------------------------------ From: nagios-users-admin at lists.sourceforge.net on behalf of Jonathan Baker Sent: Wed 7/27/2005 8:03 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] NSCA with Nagios Hi there, I can only get the NRPE daemon working on one of my eight machines, so will have to use NSCA for the others. I've got the NSCA daemon running on my central Nagios host and have setup the send_nsca as part of a cron job that sends new results every few minutes. What do I have to setup in my services.cfg in Nagios in order to display the results like regular Nagios services? The documentation for NSCA isn't nearly as complete as the NRPE docs. Little help? -------------- next part -------------- An HTML attachment was scrubbed... URL: From prosolutions at gmx.net Wed Jul 27 18:07:03 2005 From: prosolutions at gmx.net (prosolutions at gmx.net) Date: Wed, 27 Jul 2005 09:07:03 -0700 Subject: How to keep host/service in config but disable? In-Reply-To: References: Message-ID: <20050727160703.GI2987@localdomain> Yes but this isn't exactly what I want. When I set active_checks_enabled 0 and notifications_enabled 0 I still see the host appear in the web interface (for example status.cgi?hostgroup=all&style=overview) with a green status cell saying "UP" and a green services cell saying "1 OK". This seems misleading if in fact the host is truly disabled. I think the boxes should be greyed out and say "N/A" and not give the impression that the host is OK. Or else they host should not even appear in the web interface if it is truly "disabled". Currently, the only way I know to stop it appearing from the interface is to comment it completely out of hosts.cfg, services.cfg, escalations.cfg (if it is in there), and hostgroups.cfg, which is a tedious/laborious process. So wrote Scott Sugar on Wednesday, 27 July 2005: > Date: Wed, 27 Jul 2005 00:07:52 -0400 > From: Scott Sugar > To: prosolutions at gmx.net, nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] How to keep host/service in config but disable? > > set the active_checks_enabled to 0 in services.cfg for each service you want disabled... and set checks_enabled to 0 in hosts.cfg... > look at > http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#service > for all the options a service can have in services.cfg > and > http://nagios.sourceforge.net/docs/2_0/xodtemplate.html > for all the options a host can have in hosts.cfg > > ________________________________ > > From: nagios-users-admin at lists.sourceforge.net on behalf of prosolutions at gmx.net > Sent: Tue 7/26/2005 6:16 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] How to keep host/service in config but disable? > > > > > > Is there a simple way to disable a host/service check and remove it from the > monitoring pool without having to completely comment it out from services.cfg, > hosts.cfg, hostgroups.cfg, etc.? > > I noticed that I can use "register 0" in hosts.cfg and services.cfg but > I still must remove stuff from hostgroups.cfg.... > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From andrew at profitability.net Wed Jul 27 17:08:16 2005 From: andrew at profitability.net (Andrew Cruse) Date: Wed, 27 Jul 2005 11:08:16 -0400 Subject: FW: secondary nagios verification In-Reply-To: References: Message-ID: nagios-users-admin at lists.sourceforge.net wrote: > Is there anyway for nagios to verify the status of a host from > another nagios system? > > If I have two nagios systems nag_A and nag_B and they are > monitoring the host host_A and it's services. If nag_A > detects that host_A is down is there anyway for it to ask > nag_B if this is verifiable, and vice versa. > > If nag_A can't communicate with nag_B I would like it to > still send out notification if and only if it can communicate > with 1 or more specified hosts. > > If the simple answer to these questions is "yes" then the corollary > will be "how" Yes. Have a look at NRPE. Install the client on each of your Nagios servers, then use the check_nrpe command from an eventhandler to check whatever it is on the remote system. Quick and easy. That gets you part of the way there, anyway. But I'm guessing where you really want to get to is the ability to monitor hosts from different parts of the internet using several Nagios instances, yet only alert if more than one sees an outage. It could probably be done, but I think it would be an ugly hack, although it might be possible to cobble something together with a combination of NRPE/eventhandlers and check_cluster. I'd have to think that through some more. Would be better if functionality like that were built into Nagios. Andrew ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Wed Jul 27 18:07:44 2005 From: tdondich at gmail.com (Taylor Dondich) Date: Wed, 27 Jul 2005 09:07:44 -0700 Subject: Testers wanted, CGI Replacement and Database backend. Message-ID: <3d2eb72a0507270907139fbb17@mail.gmail.com> Okay, I'm going to ask this once, and people within a hour period may be eligible. We're going to be releasing an open source package that will provide a database storage facility for nagios data, and we'll also be providing a replacement for the nagios cgi interface. We want people to test it before we release it to the public, so if you speak up, I'll talk to you one-on-one to see if we can test it with you. Taylor ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Jason.Ellmers at firstgroup.com Wed Jul 27 18:08:17 2005 From: Jason.Ellmers at firstgroup.com (Jason Ellmers) Date: Wed, 27 Jul 2005 17:08:17 +0100 Subject: Onsite DeTeWe is out of the office. Message-ID: I will be out of the office starting 27/07/2005 and will not return until 01/08/2005. Please call Glenn Turner on 07901854363 ********************************************************************** 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.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ssugar at proserveit.com Wed Jul 27 15:14:50 2005 From: ssugar at proserveit.com (Scott Sugar) Date: Wed, 27 Jul 2005 09:14:50 -0400 Subject: Macro Identifier and String Mixing Message-ID: Even though the nrpe daemons on the remote side do not accept command arguments, your check_nrpe command requires arguments... Your command should look like this. define command { command_name check_vcs command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c 'command you want to run' } when it says that you cannot send command arguments... they mean that you cannot send command arguments into the remote check you are running (ie. setting the threshold for a check_disk command) ________________________________ From: nagios-users-admin at lists.sourceforge.net on behalf of Ralph.Grothe at itdz-berlin.de Sent: Wed 7/27/2005 6:33 AM To: nagios-users at lists.sourceforge.net; nagiosplug-help at lists.sourceforge.net Subject: [Nagios-users] Macro Identifier and String Mixing Hello, I would like to know if it is possible to mix (i.e. prefix, or suffix, or backticks substitute) a macro identifier (as listed in http://nagios.sourceforge.net/docs/2_0/macros.html) within the checkcommands.cfg file context (i.e. does it get expanded)? E.g. I would like to do something like define command { command_name check_vcs_$HOSTNAME$ command_line $USER1$/check_nrpe } I want it that convoluted because I compiled nrpe daemons on managed nodes not to accept arguments. Thus I think I would have to wrap the distinction in the command name. Regards Ralph ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 Steven.Hajducko at DigitalInsight.com Wed Jul 27 18:17:49 2005 From: Steven.Hajducko at DigitalInsight.com (Steven Hajducko) Date: Wed, 27 Jul 2005 09:17:49 -0700 Subject: Alert confirmation Message-ID: Is there any mechanism in nagios for a user to confirm that they have seen the alert and are working on it? The issue we have is that we come across certain disk space issues that take awhile to clean up. Because of our escalation procedure, which is set in stone, the manager will get paged within 20 minutes and his boss within 40. We've discussed using enable/disable, but some people are worried that alerts will be disabled and someone will forget to re-enable. I mean, after all, it's 3:15 in the morning after a 12 hour day and you just deleted a bunch of files. You're not always going to remember to renable the sucker. What we are looking for then, is something that allows me to confirm that I have seen the alert and that I am working on it. Then if the state changes back to OK, to clear my confirmation of the error. Then if the issue goes off again, to alert again and need reconfirmation. If no confirmation comes in within 20 minutes, then the manager gets paged, 40 minutes, his boss. Any ideas on how we would accomplish this? -- sh -------------- next part -------------- An HTML attachment was scrubbed... URL: From ssugar at proserveit.com Wed Jul 27 18:03:59 2005 From: ssugar at proserveit.com (Scott Sugar) Date: Wed, 27 Jul 2005 12:03:59 -0400 Subject: NSCA with Nagios Message-ID: well you dont NEED a check_command, or in the case of a service i believe it is called an active_check_command... the manual tells you how to disable active_checks on a global basis... you must ensure that passive checks are enabled for the service on the central machine however, which will allow you to receive in checks from your remote box... and the way I have it set up is to run a freshness check every 10 minutes on the central server... if the service is not fresh... then it has not been passivly updated in 10 minutes... this fires my active check, which just calls a command that returns a critical - service is stale notification... This is layed out nicely in the distributed monitoring section of the manual... Read this http://nagios.sourceforge.net/docs/2_0/distributed.html from the heading Central Server Configuration to the bottom. ________________________________ From: nagios-users-admin at lists.sourceforge.net on behalf of Jonathan Baker Sent: Wed 7/27/2005 12:03 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] NSCA with Nagios I don't get it, though. If I define a service, it has to have the same name as the remote host service definition (which is local to itself). Fine. But the service defined on my Nagios central server (with passive_checks_enabled) also needs a check_command. What should this be to get the results of a passive check? ----- Original Message ----- From: Scott Sugar To: Jonathan Baker Sent: Wednesday, July 27, 2005 2:05 PM Subject: RE: [Nagios-users] NSCA with Nagios you have to have the proper services and hosts defined in your services.cfg file and hosts.cfg file... this means that the service description and host name for each service you are passivly sending needs to be defined at your central server. or... as ethan puts it... * The central server must have service definitions for all services that are being monitored by all the distributed servers. Nagios will ignore passive check results if they do not correspond to a service that has been defined. ________________________________ From: nagios-users-admin at lists.sourceforge.net on behalf of Jonathan Baker Sent: Wed 7/27/2005 8:03 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] NSCA with Nagios Hi there, I can only get the NRPE daemon working on one of my eight machines, so will have to use NSCA for the others. I've got the NSCA daemon running on my central Nagios host and have setup the send_nsca as part of a cron job that sends new results every few minutes. What do I have to setup in my services.cfg in Nagios in order to display the results like regular Nagios services? The documentation for NSCA isn't nearly as complete as the NRPE docs. Little help? -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc at ena.com Wed Jul 27 16:55:52 2005 From: marc at ena.com (Marc Powell) Date: Wed, 27 Jul 2005 09:55:52 -0500 Subject: NSCA with Nagios Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Jonathan Baker > Sent: Wednesday, July 27, 2005 7:03 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] NSCA with Nagios > > Hi there, > > I can only get the NRPE daemon working on one of my eight machines, so > will have to use NSCA for the others. I've got the NSCA daemon running on > my central Nagios host and have setup the send_nsca as part of a cron job > that sends new results every few minutes. > What do I have to setup in my services.cfg in Nagios in order to display > the results like regular Nagios services? The documentation for NSCA isn't > nearly as complete as the NRPE docs. > > Little help? NSCA is a passive check. http://nagios.sourceforge.net/docs/1_0/passivechecks.html and http://nagios.sourceforge.net/docs/1_0/distributed.html You're probably interested in the Central Server Configuration section of the distributed documentation. -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ssugar at proserveit.com Wed Jul 27 18:05:26 2005 From: ssugar at proserveit.com (Scott Sugar) Date: Wed, 27 Jul 2005 12:05:26 -0400 Subject: How to keep host/service in config but disable? Message-ID: I am using nagios 2.0b3 and when i disable checks on a host i get a big X beside the host name and if i disable notifications for a service i get a big megaphone with and X through it. Or you can set register to 0 for the services and the hosts... then they will be treated as a template. ________________________________ From: nagios-users-admin at lists.sourceforge.net on behalf of prosolutions at gmx.net Sent: Wed 7/27/2005 12:07 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] How to keep host/service in config but disable? Yes but this isn't exactly what I want. When I set active_checks_enabled 0 and notifications_enabled 0 I still see the host appear in the web interface (for example status.cgi?hostgroup=all&style=overview) with a green status cell saying "UP" and a green services cell saying "1 OK". This seems misleading if in fact the host is truly disabled. I think the boxes should be greyed out and say "N/A" and not give the impression that the host is OK. Or else they host should not even appear in the web interface if it is truly "disabled". Currently, the only way I know to stop it appearing from the interface is to comment it completely out of hosts.cfg, services.cfg, escalations.cfg (if it is in there), and hostgroups.cfg, which is a tedious/laborious process. So wrote Scott Sugar on Wednesday, 27 July 2005: > Date: Wed, 27 Jul 2005 00:07:52 -0400 > From: Scott Sugar > To: prosolutions at gmx.net, nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] How to keep host/service in config but disable? > > set the active_checks_enabled to 0 in services.cfg for each service you want disabled... and set checks_enabled to 0 in hosts.cfg... > look at > http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#service > for all the options a service can have in services.cfg > and > http://nagios.sourceforge.net/docs/2_0/xodtemplate.html > for all the options a host can have in hosts.cfg > > ________________________________ > > From: nagios-users-admin at lists.sourceforge.net on behalf of prosolutions at gmx.net > Sent: Tue 7/26/2005 6:16 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] How to keep host/service in config but disable? > > > > > > Is there a simple way to disable a host/service check and remove it from the > monitoring pool without having to completely comment it out from services.cfg, > hosts.cfg, hostgroups.cfg, etc.? > > I noticed that I can use "register 0" in hosts.cfg and services.cfg but > I still must remove stuff from hostgroups.cfg.... > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 ssugar at proserveit.com Wed Jul 27 18:08:33 2005 From: ssugar at proserveit.com (Scott Sugar) Date: Wed, 27 Jul 2005 12:08:33 -0400 Subject: basic concept question of nagios (distributed monitoring, passive check question) Message-ID: Ok, your very close with your diagram there.. Central host has: Nagios Nagios Web Interface Nagios Plugins Nagios Config files for all the hosts and services you want to see on the web interface (including services that are passivly checked) NSCA daemon Each Distributed host has at least: Nagios Nagios Plugins check_nrpe -> to query the NRPE daemons on each monitored machine send_nsca -> to passivly send the results back to the central server And each remote host that you are monitoring has: NRPE daemon OR NRPE_NT daemon for winnt -> win2k3 as well as any plugins that you want to run on that machine note that NRPE_NT requires plugins that run under windows.. ________________________________ From: Ran Li [mailto:Ran.Li at sprint-canada.com] Sent: Wed 7/27/2005 9:43 AM To: Scott Sugar; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] basic concept question of nagios (distributed monitoring, passive check question) Thanks for the comment. I think I still need you guys to clarify the concept in my mind ... central host (nagios/web/plugins/nsca) | / \ distributed host distributed host (nagios/plugins/send_nsca/check_nrpe) | | / \ / \ host1 host2 host3 host4 (nrpe/??nagios??/??plugins??/??else??) 1. on central host 1.1 need nagios with web interface 1.2 need plugins 1.3 need nsca addon (for passive check) 2. on distributed host 2.1 need nagios 2.2 need plugins 2.3 need send_nsca addon (for passive check) 2.4 need check_nrpe (for active check) 3. on host that need to be monitorred 3.1 need nrpe addon (for active check) 3.2 does it need nagios installed? 3.3 does it need plugins installed? 3.4 what else need to be considered? please comment, it is very important to help me understand. Thanks. Regards, -tea -----Original Message----- From: Scott Sugar [mailto:ssugar at proserveit.com] Sent: Wednesday, July 27, 2005 12:10 AM To: Ran Li; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] distributed monitoring, passive check question It seems to me like your host02 is not configured to do active checks... if host01 is your central host, it should be configured to not do active checks... but if host02 is supposed to be running active checks then it needs to have active_checks_enabled set to 1 for each service you want... or in a template that each service uses... also ensure that your execute_service_checks option is set to 1 in the nagios.cfg file. http://nagios.sourceforge.net/docs/2_0/configmain.html#execute_service_checks ________________________________ From: nagios-users-admin at lists.sourceforge.net on behalf of Ran Li Sent: Tue 7/26/2005 7:21 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] distributed monitoring, passive check question hello list, I m trying to configure distributed monitoring using nsca/send_nsca for passive checking. Now I can see PASV icon besides the http service that I want to monitor on host02, but the status is always "Pending" and Status Information says "Service is not scheduled to be checked... " host01 is my central host which reports "Warning: The results of service 'http' on host 'host02' are stale by 1 seconds (threshold=420 seconds). I'm forcing an immediate check of the service.eports ", I set "freshness_threshold" to 420. I went through the docs and followed the instructions, but have no idea how to make it work. Could you please help to analyze what could be the problem? I just need a clue to make it work. Thanks. Regards, -tea ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From robmossrm at aol.com Wed Jul 27 18:27:23 2005 From: robmossrm at aol.com (Rob Moss) Date: Wed, 27 Jul 2005 17:27:23 +0100 Subject: Alert confirmation In-Reply-To: References: Message-ID: <42E7B5EB.1000907@aol.com> This is a bit of an RTFM in my opinion, but here's a pointer: Browse the list of servers in the nagios web interface. Select your server Select the Service, then click the "Schedule downtime for this service" link. It's pretty self explanatory. rob. Steven Hajducko wrote: > Is there any mechanism in nagios for a user to confirm that they have > seen the alert and are working on it? > > The issue we have is that we come across certain disk space issues > that take awhile to clean up. Because of our escalation procedure, > which is set in stone, the manager will get paged within 20 minutes > and his boss within 40. > > We've discussed using enable/disable, but some people are worried that > alerts will be disabled and someone will forget to re-enable. I mean, > after all, it's 3:15 in the morning after a 12 hour day and you just > deleted a bunch of files. You're not always going to remember to > renable the sucker. > > What we are looking for then, is something that allows me to confirm > that I have seen the alert and that I am working on it. Then if the > state changes back to OK, to clear my confirmation of the error. Then > if the issue goes off again, to alert again and need reconfirmation. > If no confirmation comes in within 20 minutes, then the manager gets > paged, 40 minutes, his boss. > > Any ideas on how we would accomplish this? > > -- > sh ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ssugar at proserveit.com Wed Jul 27 18:14:26 2005 From: ssugar at proserveit.com (Scott Sugar) Date: Wed, 27 Jul 2005 12:14:26 -0400 Subject: Testers wanted, CGI Replacement and Database backend. Message-ID: I think you can already hook nagios into mysql.... however i would like to see what you have done... I recently put together a package that will produce an rss feed from nagios notifications if you would like to see that. ________________________________ From: nagios-users-admin at lists.sourceforge.net on behalf of Taylor Dondich Sent: Wed 7/27/2005 12:07 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Testers wanted, CGI Replacement and Database backend. Okay, I'm going to ask this once, and people within a hour period may be eligible. We're going to be releasing an open source package that will provide a database storage facility for nagios data, and we'll also be providing a replacement for the nagios cgi interface. We want people to test it before we release it to the public, so if you speak up, I'll talk to you one-on-one to see if we can test it with you. Taylor ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From ssugar at proserveit.com Wed Jul 27 15:10:29 2005 From: ssugar at proserveit.com (Scott Sugar) Date: Wed, 27 Jul 2005 09:10:29 -0400 Subject: notification suppression Message-ID: you could create a service dependency... make all the other services dependent on the ping google.ca service.... look here for more detail http://nagios.sourceforge.net/docs/2_0/dependencies.html while the documentation is a little sketchy for this stuff... i still managed to figure it out after a bit... ________________________________ From: nagios-users-admin at lists.sourceforge.net on behalf of Miles Scruggs Sent: Wed 7/27/2005 12:42 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] notification suppression How would you test nagios' own connection to the internet ie ping google, yahoo, etc, and if they all fail suppress notifications till at least one is available Thanks Miles ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 chris at aidworld.org Wed Jul 27 15:32:01 2005 From: chris at aidworld.org (Chris Wilson) Date: Wed, 27 Jul 2005 14:32:01 +0100 Subject: notification suppression In-Reply-To: References: Message-ID: <1122471121.15025.246.camel@localhost> Hi Miles, On Wed, 2005-07-27 at 05:42, Miles Scruggs wrote: > How would you test nagios' own connection to the internet ie ping google, > yahoo, etc, and if they all fail suppress notifications till at least one is > available define command { command_name my_notify command_line ping -c 1 www.google.co.uk && /usr/bin/printf ... | /bin/mail $CONTACTEMAIL$ } Cheers, Chris. -- (aidworld) chris wilson | chief engineer (chris at aidworld.org) ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jonathan at football1x2.com Wed Jul 27 18:37:21 2005 From: jonathan at football1x2.com (Jonathan Baker) Date: Wed, 27 Jul 2005 17:37:21 +0100 Subject: NSCA with Nagios References: Message-ID: <00ec01c592c9$76270e40$b801a8c0@footballgslsjj> You do need a check_command which links to a command definition. It says so in the manual. check_commands are highlighted in red. Are you sure you don't need one defined in a service? Do the service definitions need to be exactly the same? The service definition on the distributed remote host must link to a local service via check_command to do its stuff, I assume, like check_disk. Thats all fine, and I think this is working okay. The Nagios central server host must also have the service definition but *can't* have a check_command because its not a local service (in the case of check_disk). So presumably you need to enable passive checks for this particular service and check freshness and then link to a host_name which is your remote host (although defined on the Nagios central server as well as locally on the remote host Nagios install). Still confused. Perhaps you could post one of your service definitions? (Host/Remote) Sorry for all the questions. This is tough! ----- Original Message ----- From: Scott Sugar To: Jonathan Baker ; nagios-users at lists.sourceforge.net Sent: Wednesday, July 27, 2005 5:03 PM Subject: RE: [Nagios-users] NSCA with Nagios well you dont NEED a check_command, or in the case of a service i believe it is called an active_check_command... the manual tells you how to disable active_checks on a global basis... you must ensure that passive checks are enabled for the service on the central machine however, which will allow you to receive in checks from your remote box... and the way I have it set up is to run a freshness check every 10 minutes on the central server... if the service is not fresh... then it has not been passivly updated in 10 minutes... this fires my active check, which just calls a command that returns a critical - service is stale notification... This is layed out nicely in the distributed monitoring section of the manual... Read this http://nagios.sourceforge.net/docs/2_0/distributed.html from the heading Central Server Configuration to the bottom. ------------------------------------------------------------------------------ From: nagios-users-admin at lists.sourceforge.net on behalf of Jonathan Baker Sent: Wed 7/27/2005 12:03 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] NSCA with Nagios I don't get it, though. If I define a service, it has to have the same name as the remote host service definition (which is local to itself). Fine. But the service defined on my Nagios central server (with passive_checks_enabled) also needs a check_command. What should this be to get the results of a passive check? ----- Original Message ----- From: Scott Sugar To: Jonathan Baker Sent: Wednesday, July 27, 2005 2:05 PM Subject: RE: [Nagios-users] NSCA with Nagios you have to have the proper services and hosts defined in your services.cfg file and hosts.cfg file... this means that the service description and host name for each service you are passivly sending needs to be defined at your central server. or... as ethan puts it... a.. The central server must have service definitions for all services that are being monitored by all the distributed servers. Nagios will ignore passive check results if they do not correspond to a service that has been defined. ---------------------------------------------------------------------------- From: nagios-users-admin at lists.sourceforge.net on behalf of Jonathan Baker Sent: Wed 7/27/2005 8:03 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] NSCA with Nagios Hi there, I can only get the NRPE daemon working on one of my eight machines, so will have to use NSCA for the others. I've got the NSCA daemon running on my central Nagios host and have setup the send_nsca as part of a cron job that sends new results every few minutes. What do I have to setup in my services.cfg in Nagios in order to display the results like regular Nagios services? The documentation for NSCA isn't nearly as complete as the NRPE docs. Little help? -------------- next part -------------- An HTML attachment was scrubbed... URL: From kdyke at keycomputerconsultants.com Wed Jul 27 15:33:17 2005 From: kdyke at keycomputerconsultants.com (Ken Dyke) Date: Wed, 27 Jul 2005 07:33:17 -0600 Subject: (service|host)_notification_commands In-Reply-To: References: Message-ID: <20050727133317.GA4890@hyper> On Tue, Jul 26, 2005 at 05:46:07PM -0500, Marc Powell (marc at ena.com) wrote: > It's not documented that they would be that I've ever seen. The expected behavior would be that they are executed in order listed. Documenting that would be like documenting that the sky is blue on a fair weather day. > If they're > stored in a hash internally then they could be returned/run in any > order. I don't know enough to tell if that's how Nagios is storing them > but my guess would be that it is. Storing all values in a hash would be something I would expect to be documented. Yet I do not recall a single mention of this. But, even if they are stored in a hash does not mean that order listed must be throw away. After all it is *_notification_commands (plural). Thus inviting one to list more then one command. Dropping the above for now as I need a solution today. When defining a command, what is the syntax for executing two commands on the "command_line"? -- I reason and act, therefore, ken_i_m Chief Gadgeteer, Elegant Innovations Founder, Bozeman Linux Users Group (406) 581-0495 ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From andrew at profitability.net Wed Jul 27 18:43:23 2005 From: andrew at profitability.net (Andrew Cruse) Date: Wed, 27 Jul 2005 12:43:23 -0400 Subject: (service|host)_notification_commands In-Reply-To: <20050727133317.GA4890@hyper> References: <20050727133317.GA4890@hyper> Message-ID: nagios-users-admin at lists.sourceforge.net wrote: > Dropping the above for now as I need a solution today. When > defining a command, what is the syntax for executing two > commands on the "command_line"? This is completely untried, but wouldn't: "command1 && command2" work? Andrew ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 27 18:45:01 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 27 Jul 2005 18:45:01 +0200 Subject: Multiple Nagios proccesses running. In-Reply-To: <1122471906.15025.254.camel@localhost> References: <200507252109.j6PL9vjU023926@mail.asc.edu> <20050725221507.30266.qmail@mullet.softflare.net> <1122373846.30418.65.camel@localhost> <42E74E29.5090005@op5.se> <1122471906.15025.254.camel@localhost> Message-ID: <42E7BA0D.4020804@op5.se> Chris Wilson wrote: > Hi Andreas, > > >>It's not present in Nagios 2.x, only the older (unmaintained) version. > > > Well, I don't think nagios 1.x should be "unmaintained" until 2.0 is > released as final, and I will probably continue using it for a long time > after that anyway. I wish I had more time to "maintain" it myself. > What you think and don't think is, sadly, irrelevant. It's a fact that Ethan doesn't actively track down bugs or prioritise bug-reports on the 1.x-branch. If you're interested you could ofcourse backport the fixes from the 2.x branch. I'm sure Ethan would welcome a patch. > >>I've patched it on quite a few occasions. The reason it's not so easy to >>fix in the distribution is that the init-script really must be portable >>to all platforms that nagios runs on. > > > Can you tell us what's wrong with it so we can fix our own initscripts? > Nothing's wrong with it per se. To work around it I added the redhatish concept of lockfiles that are created by the init-script. Several nagios instances can still be spawned so long as you don't use the init-script, but on platforms that have the "service" script it's not often useful to do so anyways. > >>False. I know of several that happily start several processes, even >>where such processes clearly conflict with each other. > > > Then it's not "well written" in my book :-) True. > Nagios tries to do the > mutual exclusion, but fails for reasons that I don't understand yet. > I take it you haven't read the code. The mutex part simply isn't there (it's fairly easy to follow, if you take it from main() and just read on down to event_execution_loop() (or something). -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ran.Li at sprint-canada.com Wed Jul 27 15:43:39 2005 From: Ran.Li at sprint-canada.com (Ran Li) Date: Wed, 27 Jul 2005 09:43:39 -0400 Subject: basic concept question of nagios (distributed monitoring, passive check question) Message-ID: Thanks for the comment. I think I still need you guys to clarify the concept in my mind ... central host (nagios/web/plugins/nsca) | / \ distributed host distributed host (nagios/plugins/send_nsca/check_nrpe) | | / \ / \ host1 host2 host3 host4 (nrpe/??nagios??/??plugins??/??else??) 1. on central host 1.1 need nagios with web interface 1.2 need plugins 1.3 need nsca addon (for passive check) 2. on distributed host 2.1 need nagios 2.2 need plugins 2.3 need send_nsca addon (for passive check) 2.4 need check_nrpe (for active check) 3. on host that need to be monitorred 3.1 need nrpe addon (for active check) 3.2 does it need nagios installed? 3.3 does it need plugins installed? 3.4 what else need to be considered? please comment, it is very important to help me understand. Thanks. Regards, -tea -----Original Message----- From: Scott Sugar [mailto:ssugar at proserveit.com] Sent: Wednesday, July 27, 2005 12:10 AM To: Ran Li; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] distributed monitoring, passive check question It seems to me like your host02 is not configured to do active checks... if host01 is your central host, it should be configured to not do active checks... but if host02 is supposed to be running active checks then it needs to have active_checks_enabled set to 1 for each service you want... or in a template that each service uses... also ensure that your execute_service_checks option is set to 1 in the nagios.cfg file. http://nagios.sourceforge.net/docs/2_0/configmain.html#execute_service_c hecks _____ From: nagios-users-admin at lists.sourceforge.net on behalf of Ran Li Sent: Tue 7/26/2005 7:21 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] distributed monitoring, passive check question hello list, I m trying to configure distributed monitoring using nsca/send_nsca for passive checking. Now I can see PASV icon besides the http service that I want to monitor on host02, but the status is always "Pending" and Status Information says "Service is not scheduled to be checked... " host01 is my central host which reports "Warning: The results of service 'http' on host 'host02' are stale by 1 seconds (threshold=420 seconds). I'm forcing an immediate check of the service.eports ", I set "freshness_threshold" to 420. I went through the docs and followed the instructions, but have no idea how to make it work. Could you please help to analyze what could be the problem? I just need a clue to make it work. Thanks. Regards, -tea ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From chris at aidworld.org Wed Jul 27 15:45:06 2005 From: chris at aidworld.org (Chris Wilson) Date: Wed, 27 Jul 2005 14:45:06 +0100 Subject: Multiple Nagios proccesses running. In-Reply-To: <42E74E29.5090005@op5.se> References: <200507252109.j6PL9vjU023926@mail.asc.edu> <20050725221507.30266.qmail@mullet.softflare.net> <1122373846.30418.65.camel@localhost> <42E74E29.5090005@op5.se> Message-ID: <1122471906.15025.254.camel@localhost> Hi Andreas, > It's not present in Nagios 2.x, only the older (unmaintained) version. Well, I don't think nagios 1.x should be "unmaintained" until 2.0 is released as final, and I will probably continue using it for a long time after that anyway. I wish I had more time to "maintain" it myself. > I've patched it on quite a few occasions. The reason it's not so easy to > fix in the distribution is that the init-script really must be portable > to all platforms that nagios runs on. Can you tell us what's wrong with it so we can fix our own initscripts? > False. I know of several that happily start several processes, even > where such processes clearly conflict with each other. Then it's not "well written" in my book :-) Nagios tries to do the mutual exclusion, but fails for reasons that I don't understand yet. Cheers, Chris. -- (aidworld) chris wilson | chief engineer (chris at aidworld.org) ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 27 18:49:39 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 27 Jul 2005 18:49:39 +0200 Subject: (service|host)_notification_commands In-Reply-To: <20050727133317.GA4890@hyper> References: <20050727133317.GA4890@hyper> Message-ID: <42E7BB23.3000106@op5.se> Ken Dyke wrote: > On Tue, Jul 26, 2005 at 05:46:07PM -0500, Marc Powell (marc at ena.com) wrote: > >>If they're >>stored in a hash internally then they could be returned/run in any >>order. I don't know enough to tell if that's how Nagios is storing them >>but my guess would be that it is. > > > Storing all values in a hash would be something I would expect to be > documented. Yet I do not recall a single mention of this. > Why on earth should internal design be documented? Hash-tables have absolutely nothing to do with the order of anything. That's just not how hashes work (in a sane implementation). > But, even if they are stored in a hash does not mean that order listed > must be throw away. After all it is *_notification_commands (plural). > Thus inviting one to list more then one command. > And so you can. Nagios uses popen() to run the command, which means it will fork(), dup() and execve() sh -c [command]. Just separate all your commands with escaped semi-colons. > Dropping the above for now as I need a solution today. When defining a > command, what is the syntax for executing two commands on the > "command_line"? man bash -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From JasonFrank at srcp.com Wed Jul 27 18:52:34 2005 From: JasonFrank at srcp.com (Frank, Jason) Date: Wed, 27 Jul 2005 11:52:34 -0500 Subject: (service|host)_notification_commands Message-ID: <741E24F735AED141B61948AC155E7DAA337C86@CORPDALLMSG05.na.srcp.net> Possibly not. Your command2 will only execute if command1 is successful (returns 0.) If you want for command2 to run regardless of the return status of command1, use this: command1; command2 -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Andrew Cruse Sent: Wednesday, July 27, 2005 11:43 AM To: 'Ken Dyke'; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Re: (service|host)_notification_commands nagios-users-admin at lists.sourceforge.net wrote: > Dropping the above for now as I need a solution today. When defining > a command, what is the syntax for executing two commands on the > "command_line"? This is completely untried, but wouldn't: "command1 && command2" work? Andrew ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 27 18:55:14 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 27 Jul 2005 18:55:14 +0200 Subject: basic concept question of nagios (distributed monitoring, passive check question) In-Reply-To: References: Message-ID: <42E7BC72.1020004@op5.se> Ran Li wrote: > Thanks for the comment. > > I think I still need you guys to clarify the concept in my mind ... > > central host > (nagios/web/plugins/nsca) > | > / \ > distributed host distributed host > (nagios/plugins/send_nsca/check_nrpe) > | | > / \ / \ > host1 host2 host3 host4 > (nrpe/??nagios??/??plugins??/??else??) > > 1. on central host > 1.1 need nagios with web interface > 1.2 need plugins > 1.3 need nsca addon (for passive check) > Right in one. > 2. on distributed host > 2.1 need nagios > 2.2 need plugins > 2.3 need send_nsca addon (for passive check) > 2.4 need check_nrpe (for active check) > Right in one. > 3. on host that need to be monitorred > 3.1 need nrpe addon (for active check) > 3.2 does it need nagios installed? > 3.3 does it need plugins installed? > 3.4 what else need to be considered? > nrpe + plugins. > please comment, it is very important to help me understand. Thanks. > Important for you maybe. It's not terribly so for the rest of us, as you haven't offered to throw sackfuls of money at us poor people helping you for free and fun. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Steven.Hajducko at DigitalInsight.com Wed Jul 27 18:57:25 2005 From: Steven.Hajducko at DigitalInsight.com (Steven Hajducko) Date: Wed, 27 Jul 2005 09:57:25 -0700 Subject: Alert confirmation Message-ID: Thanks for the crass response, but having RTFM, it's not what I'm looking for. I don't want something that recovers at a certain time, and I certainly don't want people able to input downtimes. What I wanted was a way for the ability to confirm that an alert has been noticed so that it doesn't follow the escalation procedures. And if the states switch, it resets the confirmation. Often times disk space issues cannot be cleared until the next day because we have to talk to the people who own the files on whether we can get rid of certain ones or not. Using scheduled downtime, I have no way of knowing when that will be, and thus, would have to keep going back into the interface to extend the downtime. Also, using flexible downtime, even if the alert recovered, I'd have to go back to get rid of the downtime, otherwise I won't get alerted until the duration is over with. -- sh -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Rob Moss Sent: Wednesday, July 27, 2005 9:27 AM Cc: 'Nagios-users at lists.sourceforge.net' Subject: Re: [Nagios-users] Alert confirmation This is a bit of an RTFM in my opinion, but here's a pointer: Browse the list of servers in the nagios web interface. Select your server Select the Service, then click the "Schedule downtime for this service" link. It's pretty self explanatory. rob. Steven Hajducko wrote: > Is there any mechanism in nagios for a user to confirm that they have > seen the alert and are working on it? > > The issue we have is that we come across certain disk space issues > that take awhile to clean up. Because of our escalation procedure, > which is set in stone, the manager will get paged within 20 minutes > and his boss within 40. > > We've discussed using enable/disable, but some people are worried that > alerts will be disabled and someone will forget to re-enable. I mean, > after all, it's 3:15 in the morning after a 12 hour day and you just > deleted a bunch of files. You're not always going to remember to > renable the sucker. > > What we are looking for then, is something that allows me to confirm > that I have seen the alert and that I am working on it. Then if the > state changes back to OK, to clear my confirmation of the error. Then > if the issue goes off again, to alert again and need reconfirmation. > If no confirmation comes in within 20 minutes, then the manager gets > paged, 40 minutes, his boss. > > Any ideas on how we would accomplish this? > > -- > sh ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ladams at cloudmark.com Wed Jul 27 19:00:05 2005 From: ladams at cloudmark.com (Lori Adams) Date: Wed, 27 Jul 2005 10:00:05 -0700 Subject: Alert confirmation Message-ID: There is also the ability to send an "acknowledgement". It's a "simpler" version of what you want, but it lets people know you're working on the issue. So maybe send an acknowledgement and then put into downtime? -Lori -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Rob Moss Sent: Wednesday, July 27, 2005 9:27 AM Cc: 'Nagios-users at lists.sourceforge.net' Subject: Re: [Nagios-users] Alert confirmation This is a bit of an RTFM in my opinion, but here's a pointer: Browse the list of servers in the nagios web interface. Select your server Select the Service, then click the "Schedule downtime for this service" link. It's pretty self explanatory. rob. Steven Hajducko wrote: > Is there any mechanism in nagios for a user to confirm that they have > seen the alert and are working on it? > > The issue we have is that we come across certain disk space issues > that take awhile to clean up. Because of our escalation procedure, > which is set in stone, the manager will get paged within 20 minutes > and his boss within 40. > > We've discussed using enable/disable, but some people are worried that > alerts will be disabled and someone will forget to re-enable. I mean, > after all, it's 3:15 in the morning after a 12 hour day and you just > deleted a bunch of files. You're not always going to remember to > renable the sucker. > > What we are looking for then, is something that allows me to confirm > that I have seen the alert and that I am working on it. Then if the > state changes back to OK, to clear my confirmation of the error. Then > if the issue goes off again, to alert again and need reconfirmation. > If no confirmation comes in within 20 minutes, then the manager gets > paged, 40 minutes, his boss. > > Any ideas on how we would accomplish this? > > -- > sh ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jgoltz at mail.nih.gov Wed Jul 27 19:00:03 2005 From: jgoltz at mail.nih.gov (Goltz, Jim (NIH/NLM/LHC) [C]) Date: Wed, 27 Jul 2005 13:00:03 -0400 Subject: check_snmp not obeying warning/critical limits Message-ID: I checked the archives and didn't see a problem similar to this. I'm hoping it's just something simple I'm missing. I'm using check_snmp to check an SNMP-addressable temperature sensor. The check command is basically: check_snmp -H $HOSTADDRESS$ -o -u degF -w $ARG1$ -c $ARG2$ The service uses: check_command check_temp_sh2!60:90!32:118 which should go to "warning" if the temperature is outside the range 60-90 degrees and "critical" if it's outside 32-118 degrees. Running the equivalent command line by hand returns: SNMP OK - 88 degF By fooling around with the ranges I've confirmed the behavior of the warning and critical thresholds. Similarly, if I deliberately set the thresholds too high or too low I can get Nagios to generate a warning or critical condition. But when I configure things "normally", Nagios reports 87 or 88 degrees as a "warning" number ("SNMP WARNING - 88 degF"). I've tried removing the "-u degF" and moving the thresholds to the check command (i.e. from services.cfg to checkcommand.cfg), to no avail. Does anyone see something I'm doing wrong? ----- James P. Goltz (LHC/NLM/NIH) 38A/B1N-28K Email: jgoltz at mail.nih.gov Phone: 301-594-7523 ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kdyke at keycomputerconsultants.com Wed Jul 27 19:06:29 2005 From: kdyke at keycomputerconsultants.com (Ken Dyke) Date: Wed, 27 Jul 2005 11:06:29 -0600 Subject: (service|host)_notification_commands In-Reply-To: <42E7BB23.3000106@op5.se> References: <20050727133317.GA4890@hyper> <42E7BB23.3000106@op5.se> Message-ID: <20050727170629.GA21455@hyper> On Wed, Jul 27, 2005 at 06:49:39PM +0200, Andreas Ericsson (ae at op5.se) wrote: > Why on earth should internal design be documented? Hash-tables have > absolutely nothing to do with the order of anything. That's just not how > hashes work (in a sane implementation). Because it results in unexpected behavior. -- Ken Dyke, 406.581.0495 ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Wed Jul 27 15:35:20 2005 From: chris at aidworld.org (Chris Wilson) Date: Wed, 27 Jul 2005 14:35:20 +0100 Subject: FW: secondary nagios verification In-Reply-To: References: Message-ID: <1122471320.15025.250.camel@localhost> Hi Miles, > Is there anyway for nagios to verify the status of a host from another > nagios system? Not exactly. Passive service checks might do it, but there is an infinite loop issue between the two hosts if they are both set to submit results to each other. > If I have two nagios systems nag_A and nag_B and they are monitoring the > host host_A and it's services. If nag_A detects that host_A is down is > there anyway for it to ask nag_B if this is verifiable, and vice versa. You could submit a request for an immediate service check via HTTP, by scripting the web interface on nag_B and calling that from nag_A (and vice versa). > If nag_A can't communicate with nag_B I would like it to still send out > notification if and only if it can communicate with 1 or more specified > hosts. Parents (or host dependencies). Cheers, Chris. -- (aidworld) chris wilson | chief engineer (chris at aidworld.org) ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From andrew at profitability.net Wed Jul 27 19:10:24 2005 From: andrew at profitability.net (Andrew Cruse) Date: Wed, 27 Jul 2005 13:10:24 -0400 Subject: check_snmp not obeying warning/critical limits In-Reply-To: References: Message-ID: nagios-users-admin at lists.sourceforge.net wrote: > I checked the archives and didn't see a problem similar to > this. I'm hoping it's just something simple I'm missing. > > I'm using check_snmp to check an SNMP-addressable temperature > sensor. The check command is basically: > > check_snmp -H $HOSTADDRESS$ -o -u > degF -w $ARG1$ -c $ARG2$ > > The service uses: > > check_command check_temp_sh2!60:90!32:118 > > which should go to "warning" if the temperature is outside > the range 60-90 degrees and "critical" if it's outside 32-118 degrees. Your syntax is a little off for the thresholds. It should look something like this: -w 60\90 -c 32\118 or check_command check_temp_sh2!60\90!32\118 Andrew ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Jason.Ellmers at firstgroup.com Wed Jul 27 19:09:14 2005 From: Jason.Ellmers at firstgroup.com (Jason Ellmers) Date: Wed, 27 Jul 2005 18:09:14 +0100 Subject: Onsite DeTeWe is out of the office. Message-ID: I will be out of the office starting 27/07/2005 and will not return until 01/08/2005. Please call Glenn Turner on 07901854363 ********************************************************************** 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.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Wed Jul 27 19:12:26 2005 From: chris at aidworld.org (Chris Wilson) Date: Wed, 27 Jul 2005 18:12:26 +0100 Subject: Multiple Nagios proccesses running. In-Reply-To: <42E7BA0D.4020804@op5.se> References: <200507252109.j6PL9vjU023926@mail.asc.edu> <20050725221507.30266.qmail@mullet.softflare.net> <1122373846.30418.65.camel@localhost> <42E74E29.5090005@op5.se> <1122471906.15025.254.camel@localhost> <42E7BA0D.4020804@op5.se> Message-ID: <1122484346.15025.267.camel@localhost> Hi Andreas, > What you think and don't think is, sadly, irrelevant. It's a fact that > Ethan doesn't actively track down bugs or prioritise bug-reports on the > 1.x-branch. If you're interested you could ofcourse backport the fixes > from the 2.x branch. I'm sure Ethan would welcome a patch. Irrelevant to who? I will try and find time to maintain it myself if nobody else wants to, and it doesn't annoy anyone too much (but it would be a "fork" of Nagios 1.2). It will probably be a few years before I trust 2.x enought to use it. I guess from the number of people reporting this issue on the mailing list that I'm not the only one. If Ethan will accept patches for 1.2, then great. I could even take some responsibility for maintaining the official 1.x branch if that would help. > Nothing's wrong with it per se. To work around it I added the redhatish > concept of lockfiles that are created by the init-script. Several nagios > instances can still be spawned so long as you don't use the init-script, > but on platforms that have the "service" script it's not often useful to > do so anyways. I think my patch makes nagios.lock work the way it should, so a separate lockfile isn't necessary. But I would definitely welcome comments. > > Nagios tries to do the > > mutual exclusion, but fails for reasons that I don't understand yet. > > > > I take it you haven't read the code. The mutex part simply isn't there > (it's fairly easy to follow, if you take it from main() and just read on > down to event_execution_loop() (or something). How do you think I wrote a patch without reading the code? base/utils.c daemon_init() doesn't use mutexes at all in 1.2. It uses fcntl(F_SETLK), but that apparently doesn't work (at least there is no mutual exclusion on Linux). I made it tougher by checking whether the process listed in the PID file is still running, and aborting with an appropriate error if it is. How is the version in 2.x "more complete"? What can be more complete than properly checking that the process specified by the lockfile is not still running? Cheers, Chris. -- (aidworld) chris wilson | chief engineer (chris at aidworld.org) ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ssugar at proserveit.com Wed Jul 27 18:54:14 2005 From: ssugar at proserveit.com (Scott Sugar) Date: Wed, 27 Jul 2005 12:54:14 -0400 Subject: NSCA with Nagios Message-ID: my active_check for any service receiving passive checks is my staleservice command, which is talked about in the manual under the section my previous message speaks of... ________________________________ From: nagios-users-admin at lists.sourceforge.net on behalf of Jonathan Baker Sent: Wed 7/27/2005 12:37 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] NSCA with Nagios You do need a check_command which links to a command definition. It says so in the manual. check_commands are highlighted in red. Are you sure you don't need one defined in a service? Do the service definitions need to be exactly the same? The service definition on the distributed remote host must link to a local service via check_command to do its stuff, I assume, like check_disk. Thats all fine, and I think this is working okay. The Nagios central server host must also have the service definition but *can't* have a check_command because its not a local service (in the case of check_disk). So presumably you need to enable passive checks for this particular service and check freshness and then link to a host_name which is your remote host (although defined on the Nagios central server as well as locally on the remote host Nagios install). Still confused. Perhaps you could post one of your service definitions? (Host/Remote) Sorry for all the questions. This is tough! ----- Original Message ----- From: Scott Sugar To: Jonathan Baker ; nagios-users at lists.sourceforge.net Sent: Wednesday, July 27, 2005 5:03 PM Subject: RE: [Nagios-users] NSCA with Nagios well you dont NEED a check_command, or in the case of a service i believe it is called an active_check_command... the manual tells you how to disable active_checks on a global basis... you must ensure that passive checks are enabled for the service on the central machine however, which will allow you to receive in checks from your remote box... and the way I have it set up is to run a freshness check every 10 minutes on the central server... if the service is not fresh... then it has not been passivly updated in 10 minutes... this fires my active check, which just calls a command that returns a critical - service is stale notification... This is layed out nicely in the distributed monitoring section of the manual... Read this http://nagios.sourceforge.net/docs/2_0/distributed.html from the heading Central Server Configuration to the bottom. ________________________________ From: nagios-users-admin at lists.sourceforge.net on behalf of Jonathan Baker Sent: Wed 7/27/2005 12:03 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] NSCA with Nagios I don't get it, though. If I define a service, it has to have the same name as the remote host service definition (which is local to itself). Fine. But the service defined on my Nagios central server (with passive_checks_enabled) also needs a check_command. What should this be to get the results of a passive check? ----- Original Message ----- From: Scott Sugar To: Jonathan Baker Sent: Wednesday, July 27, 2005 2:05 PM Subject: RE: [Nagios-users] NSCA with Nagios you have to have the proper services and hosts defined in your services.cfg file and hosts.cfg file... this means that the service description and host name for each service you are passivly sending needs to be defined at your central server. or... as ethan puts it... * The central server must have service definitions for all services that are being monitored by all the distributed servers. Nagios will ignore passive check results if they do not correspond to a service that has been defined. ________________________________ From: nagios-users-admin at lists.sourceforge.net on behalf of Jonathan Baker Sent: Wed 7/27/2005 8:03 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] NSCA with Nagios Hi there, I can only get the NRPE daemon working on one of my eight machines, so will have to use NSCA for the others. I've got the NSCA daemon running on my central Nagios host and have setup the send_nsca as part of a cron job that sends new results every few minutes. What do I have to setup in my services.cfg in Nagios in order to display the results like regular Nagios services? The documentation for NSCA isn't nearly as complete as the NRPE docs. Little help? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steven.Hajducko at DigitalInsight.com Wed Jul 27 19:12:28 2005 From: Steven.Hajducko at DigitalInsight.com (Steven Hajducko) Date: Wed, 27 Jul 2005 10:12:28 -0700 Subject: Alert confirmation Message-ID: We would only be able to use that if sending the acknowledgement disabled the escalation of the service until state change, which unfortunately, it doesn't seem to on our test box. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Lori Adams Sent: Wednesday, July 27, 2005 10:00 AM To: Rob Moss Cc: Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Alert confirmation There is also the ability to send an "acknowledgement". It's a "simpler" version of what you want, but it lets people know you're working on the issue. So maybe send an acknowledgement and then put into downtime? -Lori -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Rob Moss Sent: Wednesday, July 27, 2005 9:27 AM Cc: 'Nagios-users at lists.sourceforge.net' Subject: Re: [Nagios-users] Alert confirmation This is a bit of an RTFM in my opinion, but here's a pointer: Browse the list of servers in the nagios web interface. Select your server Select the Service, then click the "Schedule downtime for this service" link. It's pretty self explanatory. rob. Steven Hajducko wrote: > Is there any mechanism in nagios for a user to confirm that they have > seen the alert and are working on it? > > The issue we have is that we come across certain disk space issues > that take awhile to clean up. Because of our escalation procedure, > which is set in stone, the manager will get paged within 20 minutes > and his boss within 40. > > We've discussed using enable/disable, but some people are worried that > alerts will be disabled and someone will forget to re-enable. I mean, > after all, it's 3:15 in the morning after a 12 hour day and you just > deleted a bunch of files. You're not always going to remember to > renable the sucker. > > What we are looking for then, is something that allows me to confirm > that I have seen the alert and that I am working on it. Then if the > state changes back to OK, to clear my confirmation of the error. Then > if the issue goes off again, to alert again and need reconfirmation. > If no confirmation comes in within 20 minutes, then the manager gets > paged, 40 minutes, his boss. > > Any ideas on how we would accomplish this? > > -- > sh ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ladams at cloudmark.com Wed Jul 27 19:26:38 2005 From: ladams at cloudmark.com (Lori Adams) Date: Wed, 27 Jul 2005 10:26:38 -0700 Subject: Alert confirmation Message-ID: Disregard the part about downtime. (I submitted my last message at the same time yours came in). My gut says to use an event handler. I haven't used them myself, but have seen lots about it on this list. You could send an acknowlegdement, then if it changes from WARN/CRIT to OK, have the handler remove the acknowledgement. You just send information to the nagios.cmd file. -Lori -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Lori Adams Sent: Wednesday, July 27, 2005 10:00 AM To: Rob Moss Cc: Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Alert confirmation There is also the ability to send an "acknowledgement". It's a "simpler" version of what you want, but it lets people know you're working on the issue. So maybe send an acknowledgement and then put into downtime? -Lori -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Rob Moss Sent: Wednesday, July 27, 2005 9:27 AM Cc: 'Nagios-users at lists.sourceforge.net' Subject: Re: [Nagios-users] Alert confirmation This is a bit of an RTFM in my opinion, but here's a pointer: Browse the list of servers in the nagios web interface. Select your server Select the Service, then click the "Schedule downtime for this service" link. It's pretty self explanatory. rob. Steven Hajducko wrote: > Is there any mechanism in nagios for a user to confirm that they have > seen the alert and are working on it? > > The issue we have is that we come across certain disk space issues > that take awhile to clean up. Because of our escalation procedure, > which is set in stone, the manager will get paged within 20 minutes > and his boss within 40. > > We've discussed using enable/disable, but some people are worried that > alerts will be disabled and someone will forget to re-enable. I mean, > after all, it's 3:15 in the morning after a 12 hour day and you just > deleted a bunch of files. You're not always going to remember to > renable the sucker. > > What we are looking for then, is something that allows me to confirm > that I have seen the alert and that I am working on it. Then if the > state changes back to OK, to clear my confirmation of the error. Then > if the issue goes off again, to alert again and need reconfirmation. > If no confirmation comes in within 20 minutes, then the manager gets > paged, 40 minutes, his boss. > > Any ideas on how we would accomplish this? > > -- > sh ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=ick _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ran.Li at sprint-canada.com Wed Jul 27 19:34:53 2005 From: Ran.Li at sprint-canada.com (Ran Li) Date: Wed, 27 Jul 2005 13:34:53 -0400 Subject: basic concept question of nagios (distributed monitoring, passive check question) Message-ID: Thanks Andreas! sorry for my English, I meant the points that I listed are important for me to understand. Regards, -tea -----Original Message----- From: Andreas Ericsson [mailto:ae at op5.se] Sent: Wednesday, July 27, 2005 12:55 PM To: Ran Li Cc: Scott Sugar; nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] basic concept question of nagios (distributed monitoring, passive check question) Ran Li wrote: > Thanks for the comment. > > I think I still need you guys to clarify the concept in my mind ... > > central host > (nagios/web/plugins/nsca) > | > / \ > distributed host distributed host > (nagios/plugins/send_nsca/check_nrpe) > | | > / \ / \ > host1 host2 host3 host4 > (nrpe/??nagios??/??plugins??/??else??) > > 1. on central host > 1.1 need nagios with web interface > 1.2 need plugins > 1.3 need nsca addon (for passive check) > Right in one. > 2. on distributed host > 2.1 need nagios > 2.2 need plugins > 2.3 need send_nsca addon (for passive check) > 2.4 need check_nrpe (for active check) > Right in one. > 3. on host that need to be monitorred > 3.1 need nrpe addon (for active check) > 3.2 does it need nagios installed? > 3.3 does it need plugins installed? > 3.4 what else need to be considered? > nrpe + plugins. > please comment, it is very important to help me understand. Thanks. > Important for you maybe. It's not terribly so for the rest of us, as you haven't offered to throw sackfuls of money at us poor people helping you for free and fun. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 27 19:40:18 2005 From: jason.payne at iland.com (Jason Payne - iland Internet Solutions) Date: Wed, 27 Jul 2005 12:40:18 -0500 Subject: Ravica BitSight2 monitoring? Message-ID: <7A626FF425518246801C933014AA98F059A59D@hou-ex01.ihtx.iland.com> Hello Nagiosians. Has anyone monitored cabinet temperature/humidity with one of these before? It's fully SNMP compatible, so I am assuming that it won't be any problem whatsoever. If anyone has any checkcommands or scripts I could use it would be greatly appreciated. Best Regards, Jason Payne ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ladams at cloudmark.com Wed Jul 27 20:06:55 2005 From: ladams at cloudmark.com (Lori Adams) Date: Wed, 27 Jul 2005 11:06:55 -0700 Subject: basic concept question of nagios (distributed monitoring, passive check question) 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: Wednesday, July 27, 2005 9:55 AM To: Ran Li Cc: Scott Sugar; nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] basic concept question of nagios (distributed monitoring, passive check question) Ran Li wrote: > Thanks for the comment. > > I think I still need you guys to clarify the concept in my mind ... > > central host > (nagios/web/plugins/nsca) > | > / \ > distributed host distributed host > (nagios/plugins/send_nsca/check_nrpe) > | | > / \ / \ > host1 host2 host3 host4 > (nrpe/??nagios??/??plugins??/??else??) > > 1. on central host > 1.1 need nagios with web interface > 1.2 need plugins > 1.3 need nsca addon (for passive check) > Right in one. > 2. on distributed host > 2.1 need nagios > 2.2 need plugins > 2.3 need send_nsca addon (for passive check) > 2.4 need check_nrpe (for active check) > Right in one. > 3. on host that need to be monitorred > 3.1 need nrpe addon (for active check) > 3.2 does it need nagios installed? > 3.3 does it need plugins installed? > 3.4 what else need to be considered? > nrpe + plugins. > please comment, it is very important to help me understand. Thanks. > Important for you maybe. It's not terribly so for the rest of us, as you haven't offered to throw sackfuls of money at us poor people helping you for free and fun. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null Thank you to Scott and Ran for figuring out a diagram with all compulsories including the required items for remote hosts (which are not in the documentation). Personally I think this is very helpful. I don't know if that was a joke but either way, I think it's rude to tell someone that what they need/want to understand is not important to anyone else. It's definitely not true, otherwise these lists wouldn't exist. -Lori ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rt at garnetweb.com Wed Jul 27 20:08:55 2005 From: rt at garnetweb.com (Miles Scruggs) Date: Wed, 27 Jul 2005 11:08:55 -0700 Subject: notification suppression In-Reply-To: References: Message-ID: : RE: [Nagios-users] notification suppression > > you could create a service dependency... make all the other services > dependent on the ping google.ca service.... > look here for more detail > http://nagios.sourceforge.net/docs/2_0/dependencies.html > while the documentation is a little sketchy for this stuff... i still > managed to figure it out after a bit... > Looks like host dependencies will work just fine, but what I need is a dependency on a group of hosts. So if anyone of the hosts in the group is online the dependency is met. Is this possible? What I'm seeing now is I could define various hosts/service dependencies, but if any one of those hosts/services failed the dependent would fail. Thanks Miles ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Jason.Ellmers at firstgroup.com Wed Jul 27 20:09:14 2005 From: Jason.Ellmers at firstgroup.com (Jason Ellmers) Date: Wed, 27 Jul 2005 19:09:14 +0100 Subject: Onsite DeTeWe is out of the office. Message-ID: I will be out of the office starting 27/07/2005 and will not return until 01/08/2005. Please call Glenn Turner on 07901854363 ********************************************************************** 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.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rt at garnetweb.com Wed Jul 27 20:12:48 2005 From: rt at garnetweb.com (Miles Scruggs) Date: Wed, 27 Jul 2005 11:12:48 -0700 Subject: FW: secondary nagios verification Message-ID: > nagios-users-admin at lists.sourceforge.net wrote: > > Is there anyway for nagios to verify the status of a host from > > another nagios system? > > > > If I have two nagios systems nag_A and nag_B and they are > > monitoring the host host_A and it's services. If nag_A > > detects that host_A is down is there anyway for it to ask > > nag_B if this is verifiable, and vice versa. > > > > If nag_A can't communicate with nag_B I would like it to > > still send out notification if and only if it can communicate > > with 1 or more specified hosts. > > > > If the simple answer to these questions is "yes" then the corollary > > will be "how" > > Yes. Have a look at NRPE. Install the client on each of your Nagios > servers, then use the check_nrpe command from an eventhandler to check > whatever it is on the remote system. Quick and easy. I'll do that, play around with it. > > That gets you part of the way there, anyway. But I'm guessing where you > really want to get to is the ability to monitor hosts from different > parts of the internet using several Nagios instances, yet only alert if > more than one sees an outage. It could probably be done, but I think it > would be an ugly hack, although it might be possible to cobble something > together with a combination of NRPE/eventhandlers and check_cluster. > I'd have to think that through some more. Would be better if > functionality like that were built into Nagios. Yes this is what I want, which is what I thought distributed monitoring would be. Turns out the nagios docs have a different meaning for it. Keep me posted if your thinking turns up anything. I think I have ground to start on now, so I'll push forward. Thanks Miles ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From forums at emat.be Wed Jul 27 20:35:52 2005 From: forums at emat.be (js) Date: Wed, 27 Jul 2005 20:35:52 +0200 Subject: Questions Check_period and passive check Message-ID: <42E7D408.3000706@emat.be> Hi all, Is there a way to send a passive check to a service on the moment the service goes out of his check_period? This way when a service is not being checked because it finds itself outside his check_periode, we can put in the status information field something like "Service outside check period" This way it's clear on the "service detail" overview that this particular service is not being checked. Visually you are unable to see when a service is outside his check_period. The only way to see this is on the detail of a service "next scheduled active check" which isn't intuitive. When you schedule downtime yourself there are the little ZZZzzzz's which is a nice visual feature. Any tips, tricks, advice or feedback? Thanks in advance J.smet ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Jul 27 20:39:58 2005 From: marc at ena.com (Marc Powell) Date: Wed, 27 Jul 2005 13:39:58 -0500 Subject: Alert confirmation Message-ID: Why is this complicated? Host or service goes down. Click on down host or service. Click on 'Acknowledge this [host|service] problem. Provide a comment. "This command is used to acknowledge a service problem. When a service problem is acknowledged, future notifications about problems are temporarily disabled until the service changes state (i.e. recovers). Contacts for this service will receive a notification about the acknowledgement, so they are aware that someone is working on the problem. Additionally, a comment will also be added to the service. Make sure to enter your name and fill in a brief description of what you are doing in the comment field. If you would like the service comment to be retained between restarts of Nagios, check the 'Persistent' checkbox. If you do not want an acknowledgement notification sent out to the appropriate contacts, uncheck the 'Send Notification' checkbox." Isn't that what you're looking for? -- Marc > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Lori Adams > Sent: Wednesday, July 27, 2005 12:27 PM > To: Lori Adams; Rob Moss > Cc: Nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Alert confirmation > > Disregard the part about downtime. (I submitted my last message at the > same time yours came in). > > My gut says to use an event handler. I haven't used them myself, but > have seen lots about it on this list. You could send an > acknowlegdement, then if it changes from WARN/CRIT to OK, have the > handler remove the acknowledgement. You just send information to the > nagios.cmd file. > > -Lori > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Lori > Adams > Sent: Wednesday, July 27, 2005 10:00 AM > To: Rob Moss > Cc: Nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Alert confirmation > > There is also the ability to send an "acknowledgement". It's a > "simpler" version of what you want, but it lets people know you're > working on the issue. > > So maybe send an acknowledgement and then put into downtime? > > -Lori > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Rob Moss > Sent: Wednesday, July 27, 2005 9:27 AM > Cc: 'Nagios-users at lists.sourceforge.net' > Subject: Re: [Nagios-users] Alert confirmation > > This is a bit of an RTFM in my opinion, but here's a pointer: > > Browse the list of servers in the nagios web interface. > Select your server > Select the Service, then click the "Schedule downtime for this service" > link. > > It's pretty self explanatory. > > rob. > > Steven Hajducko wrote: > > > Is there any mechanism in nagios for a user to confirm that they have > > seen the alert and are working on it? > > > > The issue we have is that we come across certain disk space issues > > that take awhile to clean up. Because of our escalation procedure, > > which is set in stone, the manager will get paged within 20 minutes > > and his boss within 40. > > > > We've discussed using enable/disable, but some people are worried that > > > alerts will be disabled and someone will forget to re-enable. I mean, > > > after all, it's 3:15 in the morning after a 12 hour day and you just > > deleted a bunch of files. You're not always going to remember to > > renable the sucker. > > > > What we are looking for then, is something that allows me to confirm > > that I have seen the alert and that I am working on it. Then if the > > state changes back to OK, to clear my confirmation of the error. Then > > > if the issue goes off again, to alert again and need reconfirmation. > > If no confirmation comes in within 20 minutes, then the manager gets > > paged, 40 minutes, his boss. > > > > Any ideas on how we would accomplish this? > > > > -- > > sh ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Jul 27 20:41:46 2005 From: marc at ena.com (Marc Powell) Date: Wed, 27 Jul 2005 13:41:46 -0500 Subject: Questions Check_period and passive check Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of js > Sent: Wednesday, July 27, 2005 1:36 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Questions Check_period and passive check > > Hi all, > > Is there a way to send a passive check to a service on the moment the > service goes out of his check_period? > This way when a service is not being checked because it finds itself > outside his check_periode, we can put in the status information field > something like "Service outside check period" > This way it's clear on the "service detail" overview that this > particular service is not being checked. > Visually you are unable to see when a service is outside his > check_period. The only way to see this is on the detail of a service > "next scheduled active check" which isn't intuitive. > When you schedule downtime yourself there are the little ZZZzzzz's which > is a nice visual feature. > > > Any tips, tricks, advice or feedback? Look at the documentation on freshness checks. It's referenced quite often in the passive check documentation. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 27 20:42:27 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 27 Jul 2005 20:42:27 +0200 Subject: (service|host)_notification_commands In-Reply-To: <20050727170629.GA21455@hyper> References: <20050727133317.GA4890@hyper> <42E7BB23.3000106@op5.se> <20050727170629.GA21455@hyper> Message-ID: <42E7D593.9070200@op5.se> Ken Dyke wrote: > On Wed, Jul 27, 2005 at 06:49:39PM +0200, Andreas Ericsson (ae at op5.se) wrote: > >>Why on earth should internal design be documented? Hash-tables have >>absolutely nothing to do with the order of anything. That's just not how >>hashes work (in a sane implementation). > > > Because it results in unexpected behavior. No, it doesn't. Learn what a hash is and, more importantly, how it works before you make assumptions in public. If you want answers on how checks are scheduled you need to read the html/docs/checkscheduling.html of the nagios distribution you're running. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 schramm-ek.de Wed Jul 27 20:42:23 2005 From: info at schramm-ek.de (Fa. Schramm e.K. - Deutschland) Date: Wed, 27 Jul 2005 20:42:23 +0200 Subject: bind nagios to a fix ip Message-ID: <42E7D58F.4070700@schramm-ek.de> Hi all, I am running an nagios daemon with serveral checks. My server machine which contains the nagios process, has 5 ip's collective. My problem is that nagios uses one of the 5 ip's, but not a fix ip. I want to tell nagios to use one fix ip. In other daemons i can tell the programm to bind an ip to it. In nagios i didn't found this option. Is there a way to fix this problem? Thanks very much, Greetings from Germany -- Mit freundlichem Gru? Dominique H. Schramm ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 27 21:13:01 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 27 Jul 2005 21:13:01 +0200 Subject: Multiple Nagios proccesses running. In-Reply-To: <1122484346.15025.267.camel@localhost> References: <200507252109.j6PL9vjU023926@mail.asc.edu> <20050725221507.30266.qmail@mullet.softflare.net> <1122373846.30418.65.camel@localhost> <42E74E29.5090005@op5.se> <1122471906.15025.254.camel@localhost> <42E7BA0D.4020804@op5.se> <1122484346.15025.267.camel@localhost> Message-ID: <42E7DCBD.9090904@op5.se> Chris Wilson wrote: > Hi Andreas, > > >>What you think and don't think is, sadly, irrelevant. It's a fact that >>Ethan doesn't actively track down bugs or prioritise bug-reports on the >>1.x-branch. If you're interested you could ofcourse backport the fixes >>from the 2.x branch. I'm sure Ethan would welcome a patch. > > > Irrelevant to who? To the facts. Nagios is a GNU project. Ethan gets no money for it (although a great deal of appreciation), and he has only so much time. I for one am quite happy that he doesn't bother with old code but instead focuses on making 2.x as good as it can and should be. > I will try and find time to maintain it myself if > nobody else wants to, and it doesn't annoy anyone too much (but it would > be a "fork" of Nagios 1.2). Whatever floats your dinghy. Just make sure you get Ethan's permission to use the name Nagios though, or you might end up in a trademark dispute. > It will probably be a few years before I > trust 2.x enought to use it. Your loss. It has a great deal to recommend it. > I guess from the number of people reporting > this issue on the mailing list that I'm not the only one. > You're probably not. > If Ethan will accept patches for 1.2, then great. I could even take some > responsibility for maintaining the official 1.x branch if that would > help. > It probably won't. Ethan is adamant when it comes to not handing out CVS access, and developing without it is quite fruitless. I've offered to help myself. Considering I've had 20-something patches I don't think it's an issue of code-quality. > >>Nothing's wrong with it per se. To work around it I added the redhatish >>concept of lockfiles that are created by the init-script. Several nagios >>instances can still be spawned so long as you don't use the init-script, >>but on platforms that have the "service" script it's not often useful to >>do so anyways. > > > I think my patch makes nagios.lock work the way it should, so a separate > lockfile isn't necessary. But I would definitely welcome comments. > > >>>Nagios tries to do the >>>mutual exclusion, but fails for reasons that I don't understand yet. >>> >> >>I take it you haven't read the code. The mutex part simply isn't there >>(it's fairly easy to follow, if you take it from main() and just read on >>down to event_execution_loop() (or something). > > > How do you think I wrote a patch without reading the code? Guess-work? I've seen a fair amount of it from you on other topics. > base/utils.c > daemon_init() doesn't use mutexes mutexes are thread constructs. 1.x is a single-thread app. > at all in 1.2. It uses fcntl(F_SETLK), > but that apparently doesn't work (at least there is no mutual exclusion > on Linux). I made it tougher by checking whether the process listed in > the PID file is still running, and aborting with an appropriate error if > it is. > I'll have to look at that patch. Can you send it again? I don't have high hopes though, considering the fact that you proposed using the extremely non-portable setproctitle() to discern the master process from the slaves. How exactly do you check that the process listed isn't running? AFAIK there aren't any portable syscalls available for getting the process name from a pid, and the /proc filesystem works differently on different platforms. > How is the version in 2.x "more complete"? What can be more complete > than properly checking that the process specified by the lockfile is not > still running? > man fcntl. If a process is already holding the lock one is trying to acquire it will return -1. It's the right way to do it. Checking the pid and trying to find matching process is the cumbersome, incorrect and non-portable way. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From daniel.deremiah at shadowware.com Wed Jul 27 21:50:25 2005 From: daniel.deremiah at shadowware.com (Daniel Deremiah) Date: Wed, 27 Jul 2005 12:50:25 -0700 Subject: Good vendor for Nagios setup? Message-ID: Since Nagios is complicated, but does have a good reputation, I am looking for a vendor that will do a demo and then after budget approved install/setup. Does anyone have recommendations? Or possibly a working Nagios setup that I could show off to get manager buy-in? -- -dand Phone: 510-749-2033 AIM : danderemiah Pager: dandy-pager at shadowware.com ----------------------------------------------------- There are 10 kinds of people in the world. Those who understand binary numbers and those who don't. ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From elemint at gmail.com Wed Jul 27 22:10:59 2005 From: elemint at gmail.com (Jim B) Date: Wed, 27 Jul 2005 13:10:59 -0700 Subject: cleaning out nagios pending messages to be sent Message-ID: I want to delete all pending alerts for nagios so that I can have nagios only send out future alerts and not old alerts, the system did not have a network connection for a bit so it has a lot of alerts it wants to send out. What is the best way to do this? Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: From bench at silentmedia.com Wed Jul 27 22:12:12 2005 From: bench at silentmedia.com (Ben) Date: Wed, 27 Jul 2005 13:12:12 -0700 (PDT) Subject: Good vendor for Nagios setup? In-Reply-To: References: Message-ID: Groundwork seems to have their act together, though what they'll sell you is a superset of Nagios. On Wed, 27 Jul 2005, Daniel Deremiah wrote: > Since Nagios is complicated, but does have a good reputation, I am looking > for a vendor that will do a demo and then after budget approved > install/setup. Does anyone have recommendations? Or possibly a working > Nagios setup that I could show off to get manager buy-in? > > -- > -dand > > Phone: 510-749-2033 AIM : danderemiah > Pager: dandy-pager at shadowware.com > ----------------------------------------------------- > There are 10 kinds of people in the world. > Those who understand binary numbers and those who don't. > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO September > 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tinzauro at ha-solutions.net Wed Jul 27 22:18:07 2005 From: tinzauro at ha-solutions.net (Terry L. Inzauro) Date: Wed, 27 Jul 2005 15:18:07 -0500 Subject: cleaning out nagios pending messages to be sent In-Reply-To: References: Message-ID: <42E7EBFF.3020702@ha-solutions.net> Jim B wrote: > I want to delete all pending alerts for nagios so that I can have nagios > only send out future alerts and not old alerts, the system did not have > a network connection for a bit so it has a lot of alerts it wants to > send out. > > What is the best way to do this? > > > Jim sendmail == just delete the contents of the queue directory (like /var/spool/mqueue or something like that postfix == man postsuper qmail == ?? /* Terry Inzauro * Omaha Office: * http://storsolgroup.com * http://ha-solutions.net */ ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ssugar at proserveit.com Wed Jul 27 22:13:01 2005 From: ssugar at proserveit.com (Scott Sugar) Date: Wed, 27 Jul 2005 16:13:01 -0400 Subject: notification suppression Message-ID: Im not exactly sure what your trying to do.... is it that you have a group of hosts and if they all go down then only one should send a notification? or do you have a group of hosts and if one goes down in that group then none of the others should notify? im not sure what your trying to do.. the way the manual talks of what a dependant service is and what the service depending on it is a little bit confusing in my mind... I had to play around a bit until i figured it out.... Im going to be setting up a large group of dependencies... probably early next week so I'll have it fresh in my mind then.... ________________________________ From: nagios-users-admin at lists.sourceforge.net on behalf of Miles Scruggs Sent: Wed 7/27/2005 2:08 PM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] notification suppression : RE: [Nagios-users] notification suppression > > you could create a service dependency... make all the other services > dependent on the ping google.ca service.... > look here for more detail > http://nagios.sourceforge.net/docs/2_0/dependencies.html > while the documentation is a little sketchy for this stuff... i still > managed to figure it out after a bit... > Looks like host dependencies will work just fine, but what I need is a dependency on a group of hosts. So if anyone of the hosts in the group is online the dependency is met. Is this possible? What I'm seeing now is I could define various hosts/service dependencies, but if any one of those hosts/services failed the dependent would fail. Thanks Miles ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 rt at garnetweb.com Wed Jul 27 22:47:57 2005 From: rt at garnetweb.com (Miles Scruggs) Date: Wed, 27 Jul 2005 13:47:57 -0700 Subject: notification suppression Message-ID: I want to monitor a host, but have it dependent on a group of hosts ie google.com Microsoft.com etc, and if the host goes down, no notifications will be sent out unless at least one of the hosts in that group is up (ie there is connection to the internet for sure) > Im not exactly sure what your trying to do.... > > is it that you have a group of hosts and if they all go down then only one > should send a notification? > > or do you have a group of hosts and if one goes down in that group then > none of the others should notify? > > im not sure what your trying to do.. > > the way the manual talks of what a dependant service is and what the > service depending on it is a little bit confusing in my mind... I had to > play around a bit until i figured it out.... Im going to be setting up a > large group of dependencies... probably early next week so I'll have it > fresh in my mind then.... > > > > : RE: [Nagios-users] notification suppression > > > > you could create a service dependency... make all the other services > > dependent on the ping google.ca service.... > > look here for more detail > > http://nagios.sourceforge.net/docs/2_0/dependencies.html > > while the documentation is a little sketchy for this stuff... i still > > managed to figure it out after a bit... > > > > Looks like host dependencies will work just fine, but what I need is a > dependency on a group of hosts. So if anyone of the hosts in the group is > online the dependency is met. Is this possible? > > What I'm seeing now is I could define various hosts/service dependencies, > but if any one of those hosts/services failed the dependent would fail. > > Thanks > > Miles > > > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kdyke at keycomputerconsultants.com Wed Jul 27 22:49:56 2005 From: kdyke at keycomputerconsultants.com (Ken Dyke) Date: Wed, 27 Jul 2005 14:49:56 -0600 Subject: (service|host)_notification_commands In-Reply-To: <42E7D593.9070200@op5.se> References: <20050727133317.GA4890@hyper> <42E7BB23.3000106@op5.se> <20050727170629.GA21455@hyper> <42E7D593.9070200@op5.se> Message-ID: <20050727204956.GB21455@hyper> On Wed, Jul 27, 2005 at 08:42:27PM +0200, Andreas Ericsson (ae at op5.se) wrote: > Ken Dyke wrote: > >Because it results in unexpected behavior. > > > No, it doesn't. Learn what a hash is and, more importantly, how it works > before you make assumptions in public. I know what and how a hash is/works. As noted in this very thread it is not documented that values are stored in a hash. And frankly, I don't give a fuck how they are stored. It should not matter to me. What matters is that if I give a list I expect that list back the way I gave it. If the list gets mangled that is "unexpected". Perhaps you should look up what the word "expected" means before opening you mouth in public. -- Ken (406) 581-0495 ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 27 22:58:07 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 27 Jul 2005 22:58:07 +0200 Subject: bind nagios to a fix ip In-Reply-To: <42E7D58F.4070700@schramm-ek.de> References: <42E7D58F.4070700@schramm-ek.de> Message-ID: <42E7F55F.1040602@op5.se> Fa. Schramm e.K. - Deutschland wrote: > Hi all, > > I am running an nagios daemon with serveral checks. My server machine > which contains the nagios process, has 5 ip's collective. > > My problem is that nagios uses one of the 5 ip's, but not a fix ip. I > want to tell nagios to use one fix ip. In other daemons i can tell the > programm to bind an ip to it. > > In nagios i didn't found this option. > That's because Nagios isn't a networking daemon. It just sits on a server and runs other programs (plugins) to do the actual checking. The plugins leave to the kernel (that handles the routing table) to decide which interface to send traffic through. > Is there a way to fix this problem? > Short answer; No. Long answer; It's possible but extremely cumbersome and the necessary changes to the plugins requires a substantial amount of C-coding knowledge as well as a complete insight into how IP networks work. Since the plugins initiate the connection you'd have to make all the plugins use raw sockets (all of them need to be setsuid for this to work). That way they can set the outgoing IP by themselves. This is almost always a very bad idea, since you might end up sending packets that doesn't have a return route to send the responses through unless each network has a default route that is interconnected with all the other gateways (and all the networks know of each other). If you don't know what I'm talking about, see the short answer above. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 27 23:06:56 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 27 Jul 2005 23:06:56 +0200 Subject: (service|host)_notification_commands In-Reply-To: <20050727204956.GB21455@hyper> References: <20050727133317.GA4890@hyper> <42E7BB23.3000106@op5.se> <20050727170629.GA21455@hyper> <42E7D593.9070200@op5.se> <20050727204956.GB21455@hyper> Message-ID: <42E7F770.9060307@op5.se> Ken Dyke wrote: > On Wed, Jul 27, 2005 at 08:42:27PM +0200, Andreas Ericsson (ae at op5.se) wrote: > >>Ken Dyke wrote: >> >>>Because it results in unexpected behavior. >> >> >>No, it doesn't. Learn what a hash is and, more importantly, how it works >>before you make assumptions in public. > > > I know what and how a hash is/works. Then you should know that hashes aren't used for serial lookups. Hashes are for when you know the key but not the data. In a sequential scheduling all the objects needs to be parsed and Nagios doesn't have the key to the next object before it has all the data. > As noted in this very thread it is > not documented that values are stored in a hash. It's not documented because it's irrelevant to the user. You need to read the file html/docs/checkscheduling.html in the nagios distribution you need. In particular you want the section on interleave factor, but it's most likely a good idea to read all of it. > And frankly, I don't > give a fuck how they are stored. It should not matter to me. What > matters is that if I give a list I expect that list back the way I gave > it. Feel free to submit a patch. I'm not sure you'll have much luck with it though, since this is an issue where everyone seems to have an opinion. > If the list gets mangled that is "unexpected". Not if you've read the docs. The mangling is necessary (well, not exactly, but it allows for very nice code shortcuts). > Perhaps you > should look up what the word "expected" means before opening you mouth > in public. I know perfectly well what expected means. I also know that assumption is the mother of all fuckups. What I think but don't know is that you haven't read the docs (front to back), so you've made assumptions as a substitute for knowledge. What I completely fail to understand is why you seem to be angry with people just because your assumptions were wrong. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From al at its-lehmann.de Wed Jul 27 23:28:11 2005 From: al at its-lehmann.de (Arno Lehmann) Date: Wed, 27 Jul 2005 23:28:11 +0200 Subject: (service|host)_notification_commands In-Reply-To: <20050727204956.GB21455@hyper> References: <20050727133317.GA4890@hyper> <42E7BB23.3000106@op5.se> <20050727170629.GA21455@hyper> <42E7D593.9070200@op5.se> <20050727204956.GB21455@hyper> Message-ID: <42E7FC6B.5090808@its-lehmann.de> Hi, Ken Dyke wrote: and Andreas Ericsson (ae at op5.se) wrote: ... a discussion that starts to degrade quickly. If I remember correctly, the question was if it was possible to retain the order of a number of cmmands, and the answer was no. The next step would be to - either analyze the original problem to find a work-around, - or see if Nagios could be modified to retain this order. Or, of course have fun flaming :-) Arno -- IT-Service Lehmann al at its-lehmann.de Arno Lehmann http://www.its-lehmann.de ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From forums at emat.be Wed Jul 27 23:33:21 2005 From: forums at emat.be (js) Date: Wed, 27 Jul 2005 23:33:21 +0200 Subject: Questions Check_period and passive check In-Reply-To: References: Message-ID: <42E7FDA1.1090305@emat.be> An HTML attachment was scrubbed... URL: From marc at ena.com Wed Jul 27 23:34:38 2005 From: marc at ena.com (Marc Powell) Date: Wed, 27 Jul 2005 16:34:38 -0500 Subject: (service|host)_notification_commands Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Arno Lehmann > Sent: Wednesday, July 27, 2005 4:28 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Re: Re: (service|host)_notification_commands > > Hi, > > Ken Dyke wrote: > and Andreas Ericsson (ae at op5.se) wrote: > > ... a discussion that starts to degrade quickly. > > If I remember correctly, the question was if it was possible to retain > the order of a number of cmmands, and the answer was no. Yes, it actually started about the execution order of the service notification commands. I have no idea how it changed to check scheduling and I'm not inclined to read through the thread to find out. > > The next step would be to > - either analyze the original problem to find a work-around, > - or see if Nagios could be modified to retain this order. Agreed. Given the limitation the obvious answer would be to create an external script that's called as the notification command and runs x and y in their required order. I for one think the current functionality is sufficient, nor did I ever think that they _should_ be executed sequentially. Please note that I am not the OP. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jd at op5.se Wed Jul 27 23:37:22 2005 From: jd at op5.se (Johannes Dagemark) Date: Wed, 27 Jul 2005 23:37:22 +0200 Subject: bind nagios to a fix ip In-Reply-To: <42E7D58F.4070700@schramm-ek.de> References: <42E7D58F.4070700@schramm-ek.de> Message-ID: <42E7FE92.60500@op5.se> you can tell apache, or whatever webserver you are using to provide the Nagios webinterface, to bind to a single ip address if that is what you ment. Cheers Johannes Fa. Schramm e.K. - Deutschland wrote: > Hi all, > > I am running an nagios daemon with serveral checks. My server machine > which contains the nagios process, has 5 ip's collective. > > My problem is that nagios uses one of the 5 ip's, but not a fix ip. I > want to tell nagios to use one fix ip. In other daemons i can tell the > programm to bind an ip to it. > > In nagios i didn't found this option. > > Is there a way to fix this problem? > > Thanks very much, > > Greetings from Germany > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From al at its-lehmann.de Wed Jul 27 23:46:17 2005 From: al at its-lehmann.de (Arno Lehmann) Date: Wed, 27 Jul 2005 23:46:17 +0200 Subject: (service|host)_notification_commands In-Reply-To: References: Message-ID: <42E800A9.3040700@its-lehmann.de> Marc Powell wrote: ... > Agreed. Given the limitation the obvious answer would be to create an > external script that's called as the notification command and runs x and > y in their required order. I for one think the current functionality is > sufficient, nor did I ever think that they _should_ be executed > sequentially. Right, but actually I am - because I never missed that functionality - interested why this would be necessary. > Please note that I am not the OP. Yup, right... I know, and reading your contributions on this list shows a level of understanding in Nagios and generally a lack of rudeness that I would be astonished to read... er, I stop here ;-) Arno > -- > Marc > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO September > 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- IT-Service Lehmann al at its-lehmann.de Arno Lehmann http://www.its-lehmann.de ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From greenmanse at ldschurch.org Thu Jul 28 00:51:05 2005 From: greenmanse at ldschurch.org (Scott Greenman) Date: Thu, 28 Jul 2005 00:51:05 +0200 (CEST) Subject: Failover setup - downtime & acknowledgements must be entered twice Message-ID: <20050727225105.23DB14F4002@desire.netways.de> I have set up Nagios 2.03b in a failover-monitoring setup as described in the _Redundant and Failover Network Monitoring_ page in the docs (Scenario 2). The primary server is sending all of its results to the backup server to keep it up to date in case the backup server needs to take over monitoring/notifications. The only problem is that any downtime or acknowledgements made on the primary server don't happen on the backup server unless we manually enter them twice, once on each server. Is there any way to have these automatically copied over to the backup server as the check results are? Thanks, - Scott Greenman (sgreenman) ----------------------- The mailing list archive is found here: http://www.nagiosexchange.org/nagios-users.34.0.html ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From greenmanse at ldschurch.org Thu Jul 28 00:53:13 2005 From: greenmanse at ldschurch.org (Scott Greenman) Date: Thu, 28 Jul 2005 00:53:13 +0200 (CEST) Subject: Nagios monitoring of HP EVA5000 SAN Message-ID: <20050727225313.496CE4F4002@desire.netways.de> Has anyone used Nagios to monitor a HP EVA5000 SAN? If so I'd like to know how you set it up. Thanks - Scott Greenman (sgreenman) ----------------------- The mailing list archive is found here: http://www.nagiosexchange.org/nagios-users.34.0.html ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 28 03:07:14 2005 From: marc at ena.com (Marc Powell) Date: Wed, 27 Jul 2005 20:07:14 -0500 Subject: Questions Check_period and passive check Message-ID: Ah, I understand now. Nagios doesn't include that kind of logic but there's no reason you couldn't include it in the check command, either on the host doing the monitoring or on your nagios host accepting the passive checks. Make it a simple script that checks the day (or whatever) against your time-period logic. If it's within the period you would normally check, run the check command and return the results to nagios. If outside, return your custom text and the appropriate exit code (http://nagiosplug.sf.net : Developer Guidelines). Just a thought. -- Marc > -----Original Message----- > From: js [mailto:forums at emat.be] > Sent: Wednesday, July 27, 2005 4:33 PM > To: Marc Powell > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Questions Check_period and passive check > > That would be a solution, only if the check_freshness funtion has it's own > check_command parameter which isn't the case. > > If we have the following: > > define service{ > host_name test > service_description test > active_checks_enabled 1 > normal_check_interval 10 > check_period > 24x7_but_monday > check_command > do_whatever_check > check_freshness 1 > freshness_threshold 1200 > check_command [a command > that echo's "shop is closed today" and exits 3] > } > > > I want to be able to mark the "status information field" with "shop is > closed today". > And all the other days I get the info of do_whatever_check in the "status > information field" > > > Ok maybe this isn't possible, but any other tricks or tips, > > thanks, > > > > > > Marc Powell wrote: > > > > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios- > users- > admin at lists.sourceforge.net] On Behalf Of js > Sent: Wednesday, July 27, 2005 1:36 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Questions Check_period and passive > check > > Hi all, > > Is there a way to send a passive check to a service on the > moment the > service goes out of his check_period? > This way when a service is not being checked because it finds > itself > outside his check_periode, we can put in the status > information field > something like "Service outside check period" > This way it's clear on the "service detail" overview that this > particular service is not being checked. > Visually you are unable to see when a service is outside his > check_period. The only way to see this is on the detail of a > service > "next scheduled active check" which isn't intuitive. > When you schedule downtime yourself there are the little > ZZZzzzz's > > > which > > > is a nice visual feature. > > > Any tips, tricks, advice or feedback? > > > > Look at the documentation on freshness checks. It's referenced quite > often in the passive check documentation. > > -- > Marc > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September > 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * > Testing & QA > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to > /dev/null > > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ddunham at taos.com Thu Jul 28 03:24:46 2005 From: ddunham at taos.com (Darren Dunham) Date: Wed, 27 Jul 2005 18:24:46 -0700 (PDT) Subject: bind nagios to a fix ip In-Reply-To: <42E7F55F.1040602@op5.se> from "Andreas Ericsson" at Jul 27, 2005 10:58:07 PM References: <42E7F55F.1040602@op5.se> Message-ID: <200507280124.SAA18536@redwood.taos.com> > Short answer; No. > > Long answer; It's possible but extremely cumbersome and the necessary > changes to the plugins requires a substantial amount of C-coding > knowledge as well as a complete insight into how IP networks work. > > Since the plugins initiate the connection you'd have to make all the > plugins use raw sockets (all of them need to be setsuid for this to > work). That way they can set the outgoing IP by themselves. This is > almost always a very bad idea, since you might end up sending packets > that doesn't have a return route to send the responses through unless > each network has a default route that is interconnected with all the > other gateways (and all the networks know of each other). If you don't > know what I'm talking about, see the short answer above. It wouldn't be much easier since you're still talking about modifying all the individual plug-ins, but it shouldn't require raw sockets. I would hope that simply having them bind to the requested address rather than to INADDR_ANY would do the trick. -- 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.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bobjohnson at nexus9000.com Thu Jul 28 08:03:35 2005 From: bobjohnson at nexus9000.com (Bob Johnson) Date: Wed, 27 Jul 2005 23:03:35 -0700 (PDT) Subject: /var/nagios.tmpXXX files never delete (2.0b3) Message-ID: <1536.192.168.69.55.1122530615.squirrel@bols> Has anyone ever seen an issue where the nagios.tmp files never delete and quickly accumulate? In less than 2 days, I filled up the var directory with about 50GB of "temporary" files, and I'm curious what may be causing this problem. The current configuration consists of one master and one distributed node with relatively close nagios.cfg files. (The only major differences are obsessive compulsive and freshness checks.) The distributed node is the one accumulating all of the nagios.tmp files, and the master node appears to be fine. As probably expected, the distributed node is running all of the checks and has about 1600 configured. What would possibly cause all of these nagios.tmp files to accumulate? I could write a script to delete them all every few hours, but that's definitely not a long-term fix as it will not fix the root cause. Thanks everyone. -Bob ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dshafi at yahoo.com Thu Jul 28 09:36:39 2005 From: dshafi at yahoo.com (shafi) Date: Thu, 28 Jul 2005 00:36:39 -0700 (PDT) Subject: statusmap problem Message-ID: <20050728073639.14647.qmail@web50604.mail.yahoo.com> Note: forwarded message attached. D.shafi 98414-15109 __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An embedded message was scrubbed... From: shafi Subject: RE: [Nagios-users] statusmap problem Date: Thu, 28 Jul 2005 00:01:02 -0700 (PDT) Size: 4584 URL: From Ralph.Grothe at itdz-berlin.de Thu Jul 28 11:12:28 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Thu, 28 Jul 2005 11:12:28 +0200 Subject: Nagios 2.0b3 still buggy? Message-ID: <6B893C5F2902D311A23F0090272854FB0575B793@litex001.lit.verwalt-berlin.de> Hello, recently I noticed a minor "flame" between Nagios hackers/patchers going on here where one party raised concerns that release 2.X not being fit for production usage yet? As I'm experiencing quite some bizarre behaviour of my Nagios setup, that I rather blamed on my lack of Nagios configuration skills, I now wonder if it couldn't also be at least partly based on the release 2.0b3 I am using. Could it be this one is still a bit "immature" or buggy, and would it be advisable to downgrade to a "stable" release until I've got my basic stuff working as desired? For instance, did I alway wonder why my running nagios daemon didn't continue processing after it caught a SIGHUP. It reported to nagios.log that it caught the signal and was reinitializing, but then no more appeared nor happened. I then had to send it a SIGTERM to come down, and do a cold start again. Regards Ralph ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Thu Jul 28 11:25:15 2005 From: chris at aidworld.org (Chris Wilson) Date: Thu, 28 Jul 2005 10:25:15 +0100 Subject: Multiple Nagios proccesses running. In-Reply-To: <42E7DCBD.9090904@op5.se> References: <200507252109.j6PL9vjU023926@mail.asc.edu> <20050725221507.30266.qmail@mullet.softflare.net> <1122373846.30418.65.camel@localhost> <42E74E29.5090005@op5.se> <1122471906.15025.254.camel@localhost> <42E7BA0D.4020804@op5.se> <1122484346.15025.267.camel@localhost> <42E7DCBD.9090904@op5.se> Message-ID: <1122542715.29724.8.camel@localhost> Hi Andreas, > To the facts. Nagios is a GNU project. Ethan gets no money for it > (although a great deal of appreciation), and he has only so much time. I > for one am quite happy that he doesn't bother with old code but instead > focuses on making 2.x as good as it can and should be. Of course I'm not demanding that Ethan should maintain the old 1.x branch, but I wish he would allow someone to do so. > > I will try and find time to maintain it myself if > > nobody else wants to, and it doesn't annoy anyone too much (but it would > > be a "fork" of Nagios 1.2). > > Whatever floats your dinghy. Just make sure you get Ethan's permission > to use the name Nagios though, or you might end up in a trademark dispute. Does anyone else think that a "maintained" fork of 1.x is a good idea? > > It will probably be a few years before I > > trust 2.x enought to use it. > > Your loss. It has a great deal to recommend it. >From what I've seen on the mailing list, despite the many benefits of the new design of 2.x, it's just not stable enough to be used in production yet (e.g. huge memory consumption, stopping service checks after a while). My guess is that it might take a while before it is. > It probably won't. Ethan is adamant when it comes to not handing out CVS > access, and developing without it is quite fruitless. I've offered to > help myself. Considering I've had 20-something patches I don't think > it's an issue of code-quality. Well, at least that saves me from trying fruitlessly, thanks. > > How do you think I wrote a patch without reading the code? > > Guess-work? I've seen a fair amount of it from you on other topics. Sorry, I wasn't aware of that. Please could you give me some examples? I would like to do better. > mutexes are thread constructs. 1.x is a single-thread app. I said "mutual exclusion" which is a generic term. You mentioned mutexes, which aren't :-) > I'll have to look at that patch. Can you send it again? Sure, it's attached. > I don't have high hopes though, considering the fact that you proposed > using the extremely non-portable setproctitle() to discern the master > process from the slaves. Well, one can always #ifdef such things to platforms where they are known to work. I wasn't aware that it wasn't portable, but I must admit that I have only programmed C on Windows, Linux and OBSD, and only extensively on Linux. > How exactly do you check that the process listed isn't running? AFAIK > there aren't any portable syscalls available for getting the process > name from a pid, and the /proc filesystem works differently on different > platforms. kill(pidno, 0). > man fcntl. If a process is already holding the lock one is trying to > acquire it will return -1. It's the right way to do it. Checking the pid > and trying to find matching process is the cumbersome, incorrect and > non-portable way. I read the man page. It's all very well in theory, but it's just not working on Linux, and I don't know why yet. Thanks for your help! Cheers, Chris. -- (aidworld) chris wilson | chief engineer (chris at aidworld.org) -------------- next part -------------- A non-text attachment was scrubbed... Name: nagios-lockfile.patch Type: text/x-patch Size: 1550 bytes Desc: not available URL: From chris at aidworld.org Thu Jul 28 11:34:47 2005 From: chris at aidworld.org (Chris Wilson) Date: Thu, 28 Jul 2005 10:34:47 +0100 Subject: /var/nagios.tmpXXX files never delete (2.0b3) In-Reply-To: <1536.192.168.69.55.1122530615.squirrel@bols> References: <1536.192.168.69.55.1122530615.squirrel@bols> Message-ID: <1122543286.29724.13.camel@localhost> Hi Bob, > Has anyone ever seen an issue where the nagios.tmp files never delete and > quickly accumulate? In less than 2 days, I filled up the var directory > with about 50GB of "temporary" files, and I'm curious what may be causing > this problem. Are you running one of the MSSQL plugins? I think I remember a post a few months ago saying that one of those plugins was leaving a lot of temporary files around. You could check the creation date of the files with the "stat" command, and correlate it to your nagios.log to see if it was a particular service check or notification command that created them, and which one. Cheers, Chris. -- (aidworld) chris wilson | chief engineer (chris at aidworld.org) ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Thu Jul 28 11:42:01 2005 From: chris at aidworld.org (Chris Wilson) Date: Thu, 28 Jul 2005 10:42:01 +0100 Subject: Nagios 2.0b3 still buggy? In-Reply-To: <6B893C5F2902D311A23F0090272854FB0575B793@litex001.lit.verwalt-berlin.de> References: <6B893C5F2902D311A23F0090272854FB0575B793@litex001.lit.verwalt-berlin.de> Message-ID: <1122543721.29724.16.camel@localhost> Hi Ralph, > recently I noticed a minor "flame" between Nagios > hackers/patchers going on here > where one party raised concerns that release 2.X not being fit > for production usage yet? > > As I'm experiencing quite some bizarre behaviour of my Nagios > setup, > that I rather blamed on my lack of Nagios configuration skills, > I now wonder if it couldn't also be at least partly based on the > release 2.0b3 I am using. > > Could it be this one is still a bit "immature" or buggy, and > would it be advisable to downgrade to a > "stable" release until I've got my basic stuff working as > desired? I would definitely recommend that you try running Nagios 1.x for a bit and see if it makes a difference. 2.0b3 is a beta, you know :-) It's also a complete rewrite and very new. If it does make a difference, please report it as a bug in 2.x. Cheers, Chris. -- (aidworld) chris wilson | chief engineer (chris at aidworld.org) ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe at itdz-berlin.de Thu Jul 28 12:46:03 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Thu, 28 Jul 2005 12:46:03 +0200 Subject: Nagios 2.0b3 still buggy? Message-ID: <6B893C5F2902D311A23F0090272854FB0575B794@litex001.lit.verwalt-berlin.de> Hi Chris, > -----Original Message----- > From: Chris Wilson [mailto:chris at aidworld.org] > Sent: Thursday, July 28, 2005 11:42 AM > To: Ralph.Grothe at itdz-berlin.de > Cc: Nagios Users > Subject: Re: [Nagios-users] Nagios 2.0b3 still buggy? > > > Hi Ralph, > > > recently I noticed a minor "flame" between Nagios > > hackers/patchers going on here > > where one party raised concerns that release 2.X not being fit > > for production usage yet? > > > > As I'm experiencing quite some bizarre behaviour of my Nagios > > setup, > > that I rather blamed on my lack of Nagios configuration skills, > > I now wonder if it couldn't also be at least partly based on the > > release 2.0b3 I am using. > > > > Could it be this one is still a bit "immature" or buggy, and > > would it be advisable to downgrade to a > > "stable" release until I've got my basic stuff working as > > desired? > > I would definitely recommend that you try running Nagios 1.x for a bit > and see if it makes a difference. 2.0b3 is a beta, you know :-) It's > also a complete rewrite and very new. I will do so. Don't know why I chose the beta? Probably because it was the topmost in the listing. > > If it does make a difference, please report it as a bug in 2.x. I will see... ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ben at clewett.org.uk Thu Jul 28 12:52:09 2005 From: ben at clewett.org.uk (Ben Clewett) Date: Thu, 28 Jul 2005 11:52:09 +0100 Subject: Firefox Plugin for Sound Message-ID: <42E8B8D9.3030308@clewett.org.uk> Dear Group, I have Firefox on Linux. When viewing any page which plays a sound, I get the message 'You require a plugin' and an option to download. Which reports no appropriate plugins. Can any kind user suggest how I can get the audio component of Nagios working in Firefox on Linux? (Flash plays sound perfectly on same setup.) Many thanks, Ben. ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mike.meredith at port.ac.uk Thu Jul 28 14:25:05 2005 From: mike.meredith at port.ac.uk (Mike Meredith) Date: Thu, 28 Jul 2005 13:25:05 +0100 Subject: nagios.cmd problem ... but not the usual one ? Message-ID: <20050728132505.00005979@rasputin> Hi I'm getting :- "Sorry, but you are not authorized to commit the specified command." when trying to schedule some downtime with Nagios 1.2. But before anyone says 'check the permissions', this isn't quite the usual problem ... I think. It appears to be browser dependent ... Mozilla Firefox: fails (with the error above) Internet Exploder: fail Epiphany: succeeds! Oddly I can remove scheduled downtime with firefox. Any solutions come to mind ? I'm running Nagios on an AIX machine; the Apache instance is running as user 'aweb' (which is a member of the 'nagios' group) and Nagios is running as user 'nagios'. The permissions look like :- # ls -al total 4.0K drwsrwsr-x 2 aweb nagios 256 2005-05-23 10:46 . drwxrwxr-x 4 nagios nagios 4.0K 2005-07-28 13:17 .. prw-rw---- 1 aweb nagios 0 2005-07-28 13:15 nagios.cmd And the permissions were set to user nagios, group nagios previous ... with the same symptoms. -- Mike Meredith, Senior Informatics Officer University of Portsmouth: Hostmaster, Postmaster and Security Linux user #1615 (http://counter.li.org) ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe at itdz-berlin.de Thu Jul 28 14:54:31 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Thu, 28 Jul 2005 14:54:31 +0200 Subject: Is there a testing or debugging mode for nagios? Message-ID: <6B893C5F2902D311A23F0090272854FB0575B797@litex001.lit.verwalt-berlin.de> Hello, this morning I received the contempt of my fellow admins because nagios swamped their mailboxes over night. Well, it wasn't of course nagios' fault but mine because I defined a template service wherein I referenced a conact_groups that comprised all of us. When later adding new services I simply forgot to override this attribute with a contact group that contained only my mail account (until I've come to terms with configuring). That's why I desperately miss a means to run a nagios daemon that isn't scheduling the checks by itself but rather by manual invocation. I'd also wish to test out alerting and event handling myself by raising events (e.g. to see where in the end the notification is delivered to). Does nagios provide special utilities, or switches to support (high level) debugging that way? Regards ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ssugar at proserveit.com Thu Jul 28 15:25:26 2005 From: ssugar at proserveit.com (Scott Sugar) Date: Thu, 28 Jul 2005 09:25:26 -0400 Subject: notification suppression Message-ID: Im not fully sure how to implement that. I have only usually worked with a dependency within a single host.... (ie. suppressing notifications for disk space and memory, if the host cannot be pinged... ) I suggest you just really delve into the section of the manual that talks about service dependencies... I am still going to be implementing a group of dependencies early next week and if i run across anything that i think might help you, ill post it back to the mailing list... sorry, scott ________________________________ From: nagios-users-admin at lists.sourceforge.net on behalf of Miles Scruggs Sent: Wed 7/27/2005 4:47 PM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] notification suppression I want to monitor a host, but have it dependent on a group of hosts ie google.com Microsoft.com etc, and if the host goes down, no notifications will be sent out unless at least one of the hosts in that group is up (ie there is connection to the internet for sure) > Im not exactly sure what your trying to do.... > > is it that you have a group of hosts and if they all go down then only one > should send a notification? > > or do you have a group of hosts and if one goes down in that group then > none of the others should notify? > > im not sure what your trying to do.. > > the way the manual talks of what a dependant service is and what the > service depending on it is a little bit confusing in my mind... I had to > play around a bit until i figured it out.... Im going to be setting up a > large group of dependencies... probably early next week so I'll have it > fresh in my mind then.... > > > > : RE: [Nagios-users] notification suppression > > > > you could create a service dependency... make all the other services > > dependent on the ping google.ca service.... > > look here for more detail > > http://nagios.sourceforge.net/docs/2_0/dependencies.html > > while the documentation is a little sketchy for this stuff... i still > > managed to figure it out after a bit... > > > > Looks like host dependencies will work just fine, but what I need is a > dependency on a group of hosts. So if anyone of the hosts in the group is > online the dependency is met. Is this possible? > > What I'm seeing now is I could define various hosts/service dependencies, > but if any one of those hosts/services failed the dependent would fail. > > Thanks > > Miles > > > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 noel at ece.utk.edu Thu Jul 28 15:54:34 2005 From: noel at ece.utk.edu (Christopher N. Carroll) Date: Thu, 28 Jul 2005 09:54:34 -0400 Subject: Nagios / RT Integration Message-ID: <42E8E39A.2080000@ece.utk.edu> Hello all, I'm looking for information regarding the integration of Nagios and RT. I found http://lists.bestpractical.com/pipermail/rt-users/2005-June/031775.html in my search but I was curious if anyone else was doing something along these lines. I'm looking for anything that might help. Thanks, Noel Carroll ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Erwin.Mascardo at intelsat.com Thu Jul 28 16:16:18 2005 From: Erwin.Mascardo at intelsat.com (Mascardo, Erwin) Date: Thu, 28 Jul 2005 10:16:18 -0400 Subject: notification suppression Message-ID: >-----Original Message----- >From: nagios-users-admin at lists.sourceforge.net >[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of >Miles Scruggs >Sent: Wednesday, 27 July, 2005 16:48 >To: nagios-users at lists.sourceforge.net >Subject: RE: [Nagios-users] notification suppression > > > >I want to monitor a host, but have it dependent on a group of hosts ie >google.com Microsoft.com etc, and if the host goes down, no >notifications >will be sent out unless at least one of the hosts in that >group is up (ie >there is connection to the internet for sure) One way to do this sort of thing is to write a script that checks to see if your selected hosts are alive. If just one is up, return 0 and a "the Internet is up" message. If they're all unreachable, return 2 and a "the Internet is down, time to panic" message. But don't make google.com and friends monitored hosts in and of themselves. --Erwin ############################################################ Intelsat is a global communications provider offering flexible and secure services to customers in over 220 countries and territories. Intelsat has maintained a leadership position for over 40 years by distributing video, voice, and data for television and content providers, government and military entities, major corporations, telecommunications carriers, and Internet service providers. Intelsat's reach, power and expanding solutions portfolio deliver information reliably and quickly to every corner of the globe. For more information, visit www.intelsat.com. ############################################################ This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Intelsat, Ltd. and its subsidiaries. ############################################################ ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Erikp at VisibleWorld.com Thu Jul 28 16:53:06 2005 From: Erikp at VisibleWorld.com (Erik van de Pol) Date: Thu, 28 Jul 2005 10:53:06 -0400 Subject: Monitoring systems on disconnected networks? Message-ID: Hello, We are looking at nagios for monitoring our various systems. One of our complications is that a number of these systems will not be routable from time to time (this is because of VPN policy outside of our control). During those periods (possibly several hours long), the cluster of machines is disconnected from our network and not routable. One solution I can think of is to have a simple wire-protocol that transfers nagios requests (or ncsa data) not over a network connections, but for instance a simple serial interface (the machines that server the disconnected networks are in the same room). I could imagine building an adaptation of ncsa/send_ncsa or nrpe that does not use network sockets, but a different interface (such as serial). The development work is not the problem for me, but I would like get some feedback on whether this is a feasible or sensible approach.. Has such a thing already be attempted? Other solution that people have found for similar situations? Any pointers and thoughts are much appreciated! Thanks, Erik van de Pol -------------- next part -------------- An HTML attachment was scrubbed... URL: From noyler at khimetrics.com Thu Jul 28 16:53:33 2005 From: noyler at khimetrics.com (Nathan Oyler) Date: Thu, 28 Jul 2005 07:53:33 -0700 Subject: Is there a testing or debugging mode for nagios? Message-ID: <59B15593F41BD24591D59436E7226EAD0239218D@Khiphx2.khimetrics.com> > Hello, > [Nathan Oyler] Hey Ralph, > this morning I received the contempt of my fellow admins because > nagios swamped their mailboxes > over night. > Well, it wasn't of course nagios' fault but mine > because I defined a template service wherein I referenced a > conact_groups that comprised all of us. > When later adding new services I simply forgot to override this > attribute with a contact group that contained only my mail > account (until I've come to terms with configuring). > [Nathan Oyler] Ahh, I remember doing things similar to that. Good times. I ended up making a second nagios instance where I test out new ideas before I put them into production. It was an exact replica of the production system (updated every time I wanted to do something), but with my as a contact for everything, so only I'd get hit with my mistakes. It seemed pretty silly testing some very simple adds of services first, but I never had an issue like that happen again. I use a tool called Ntray which can be found on nagiosexchange.org which shows me a constantly updated little icon of my Nagios instance. That way I can watch what is going on before everyone is hit with tons of messages. I used to catch my mistakes before anyone noticed, now I catch problems before anyone else, and the fast response doesn't hurt either. Finally, writing tools to add, and remove hosts was just awesome. Now I don't miss adding something because I don't have to think about it. I didn't know anything about perl, but for parsing Nagios config files, it's not bad to learn. I'd suggest it for anyone with a little time on their hands. I haven't had any problems like that in a quite awhile. It's not High Level debugging utilities, but I thought it might help you out. I was frustrated at first, but Nagios makes my job so much easier now. -Nathan ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 28 17:00:07 2005 From: marc at ena.com (Marc Powell) Date: Thu, 28 Jul 2005 10:00:07 -0500 Subject: Nagios 2.0b3 still buggy? Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Ralph.Grothe at itdz-berlin.de > Sent: Thursday, July 28, 2005 4:12 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nagios 2.0b3 still buggy? > > Hello, > > recently I noticed a minor "flame" between Nagios > hackers/patchers going on here > where one party raised concerns that release 2.X not being fit > for production usage yet? It's still beta. Ethan has indicated on numerous occasions that if you run 2.0, expect problems. Quoting an e-mail from Ethan on 3/23/2005 -- "First, I would still consider 2.0 as being beta software - that's why its labeled as such. While no major changes will be made to either the configuration files or functionality before a "stable" 2.0 is released, I do expect that a few major nasty bugs will be discovered within the current code. If you're running the 2.0 code while its in beta, consider yourself a test subject. :-)" As of that e-mail it was expected that it might be out of beta by the end of June. Obviously we're past that but there hasn't been an official release yet so we're still in beta mode. Many people have successfully been running 2.x in production environments for some time. Others have experienced problems. YMMV. > As I'm experiencing quite some bizarre behaviour of my Nagios > setup, > that I rather blamed on my lack of Nagios configuration skills, > I now wonder if it couldn't also be at least partly based on the > release 2.0b3 I am using. > > Could it be this one is still a bit "immature" or buggy, and > would it be advisable to downgrade to a > "stable" release until I've got my basic stuff working as > desired? That's what _I_ would do but to each his own. Do what you're comfortable with. If you're monitoring mission critical applications and you absolutely can't deal with bugs in your monitoring software, use 1.x. > For instance, did I alway wonder why my running nagios daemon > didn't continue processing > after it caught a SIGHUP. > It reported to nagios.log that it caught the signal and was > reinitializing, > but then no more appeared nor happened. That sounds like it might be a bug. Maybe someone else running 2.x can reproduce it? -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From christiantheilhave at gmail.com Thu Jul 28 17:05:16 2005 From: christiantheilhave at gmail.com (Christian Theil Have) Date: Thu, 28 Jul 2005 15:05:16 +0000 Subject: Is there a testing or debugging mode for nagios? In-Reply-To: <6B893C5F2902D311A23F0090272854FB0575B797@litex001.lit.verwalt-berlin.de> References: <6B893C5F2902D311A23F0090272854FB0575B797@litex001.lit.verwalt-berlin.de> Message-ID: <33d4ee94050728080537d14d0b@mail.gmail.com> Hi I haven't heard of such tools, but here's a couple of ideas: You could provoke a state by submitting passive check results instead of actively performing checks. Combined with active_checks_enabled = 0, this would defeat nagios scheduling... Take a look at: http://nagios.sourceforge.net/docs/1_0/passivechecks.html You could have something like a top-level service template with active_checks_enabled = 0 for testing... Also, you could change the notification command used. Your contacts have service_notification_commands and host_notification_commands. Just make them point to your test notification-command instead. Hope this was helpful. Regards, Christian. On 7/28/05, Ralph.Grothe at itdz-berlin.de wrote: > Hello, > > this morning I received the contempt of my fellow admins because > nagios swamped their mailboxes > over night. > Well, it wasn't of course nagios' fault but mine > because I defined a template service wherein I referenced a > conact_groups that comprised all of us. > When later adding new services I simply forgot to override this > attribute with a contact group that contained only my mail > account (until I've come to terms with configuring). > > That's why I desperately miss a means to run a nagios daemon that > isn't scheduling the checks by itself > but rather by manual invocation. > I'd also wish to test out alerting and event handling myself by > raising events (e.g. to see where in the end the notification is > delivered to). > > Does nagios provide special utilities, or switches to support > (high level) debugging that way? > > Regards > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO September > 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From flima at rio-de-janeiro.oilfield.slb.com Thu Jul 28 17:31:07 2005 From: flima at rio-de-janeiro.oilfield.slb.com (Fernando Gomes Lima) Date: Thu, 28 Jul 2005 12:31:07 -0300 Subject: Good vendor for Nagios setup? In-Reply-To: References: Message-ID: Daniel, at Nagios.org you can find some companies that work with it. While in Angola I implemented a demo project to our customer. I'm not sure if the bought the idea once I leave Angola few days later. cheers, Fernando Lima Schlumberger Security Engineer flima at slb.com Office: +55 21 3824 6954 Mobile. : +55 21 9888 9046 (GMT: -03:00) -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Daniel Deremiah Sent: Wednesday, July 27, 2005 4:50 PM To: Nagios Users Subject: [Nagios-users] Good vendor for Nagios setup? Since Nagios is complicated, but does have a good reputation, I am looking for a vendor that will do a demo and then after budget approved install/setup. Does anyone have recommendations? Or possibly a working Nagios setup that I could show off to get manager buy-in? -- -dand Phone: 510-749-2033 AIM : danderemiah Pager: dandy-pager at shadowware.com ----------------------------------------------------- There are 10 kinds of people in the world. Those who understand binary numbers and those who don't. ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From davea at support.kcm.org Thu Jul 28 17:51:36 2005 From: davea at support.kcm.org (Dave Augustus) Date: Thu, 28 Jul 2005 10:51:36 -0500 Subject: Nagios 2.0b3 still buggy? In-Reply-To: References: Message-ID: <1122565896.25677.5.camel@kcm40202> This is a test subject just chiming in here that we are using v2.03b3 and it is working great. We are monitoring about 10 servers/141 services using both network connections and nrpe. All on linux. Also, the NagiosQL is a great app for setting up and configuring. It covers most of the functionality and has helped tremendously in deploying Nagios. As a n00b to nagios, I would say we are NOT using the advanced features of Service Groups, escalations and such. However, our Windows admins are happy to get a glimpse of what Nagios can do. They are sold on it and we will deploying a larger Nagios install for monitoring our Windows and VmWare servers. *test subject* Dave Augustus Kenneth Copeland Ministries On Thu, 2005-07-28 at 10:00 -0500, Marc Powell wrote: > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of Ralph.Grothe at itdz-berlin.de > > Sent: Thursday, July 28, 2005 4:12 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Nagios 2.0b3 still buggy? > > > > Hello, > > > > recently I noticed a minor "flame" between Nagios > > hackers/patchers going on here > > where one party raised concerns that release 2.X not being fit > > for production usage yet? > > It's still beta. Ethan has indicated on numerous occasions that if you > run 2.0, expect problems. Quoting an e-mail from Ethan on 3/23/2005 -- > > "First, I would still consider 2.0 as being beta software - that's why > its labeled as such. While no major changes will be made to either > the configuration files or functionality before a "stable" 2.0 is > released, I do expect that a few major nasty bugs will be discovered > within the current code. If you're running the 2.0 code while its in > beta, consider yourself a test subject. :-)" > > As of that e-mail it was expected that it might be out of beta by the > end of June. Obviously we're past that but there hasn't been an official > release yet so we're still in beta mode. Many people have successfully > been running 2.x in production environments for some time. Others have > experienced problems. YMMV. > > > As I'm experiencing quite some bizarre behaviour of my Nagios > > setup, > > that I rather blamed on my lack of Nagios configuration skills, > > I now wonder if it couldn't also be at least partly based on the > > release 2.0b3 I am using. > > > > Could it be this one is still a bit "immature" or buggy, and > > would it be advisable to downgrade to a > > "stable" release until I've got my basic stuff working as > > desired? > > That's what _I_ would do but to each his own. Do what you're comfortable > with. If you're monitoring mission critical applications and you > absolutely can't deal with bugs in your monitoring software, use 1.x. > > > For instance, did I alway wonder why my running nagios daemon > > didn't continue processing > > after it caught a SIGHUP. > > It reported to nagios.log that it caught the signal and was > > reinitializing, > > but then no more appeared nor happened. > > That sounds like it might be a bug. Maybe someone else running 2.x can > reproduce it? > > -- > Marc > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO September > 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rader at ginseng.hep.wisc.edu Thu Jul 28 17:50:27 2005 From: rader at ginseng.hep.wisc.edu (rader at ginseng.hep.wisc.edu) Date: Thu, 28 Jul 2005 10:50:27 -0500 Subject: Monitoring i2o RAID arrays In-Reply-To: Message from "Andrew Cruse" of "Tue, 19 Jul 2005 12:19:25 EDT." References: Message-ID: <200507281550.j6SFoRRr032622@ginseng.hep.wisc.edu> > ---- Original Message ---- > From: "Andrew Cruse" > Has anyone come up with a good way to monitor the status of an i2o RAID > array? (Adaptec's new(er) RAID controllers) I've found the check_dpti.pl > plugin which works ok, but really only lets you know if the RAID goes > offline. I'm looking for a way to alert if the RAID goes into degraded > mode in the event of a failed drive, but is still online and functional. ftp://noc.hep.wisc.edu/pub/src/nagios/ steve - - - cmsdcache01(rader): sudo /usr/dpt/raidutil -L raid Address Type Manufacturer/Model Capacity Status --------------------------------------------------------------------------- d0b0t0d0 RAID 1 (Mirrored) ADAPTEC RAID-1 190782MB Optimal d0b0t0d0 Disk Drive (DASD) WDC WD2000JB-00FUA0190782MB Optimal d0b1t0d0 Disk Drive (DASD) WDC WD2000JB-00FUA0190782MB Optimal cmsdcache01(rader): check_dpt_raid OK - d0b0t0d0 optimal s1n01(rader): sudo /usr/dpt/raidutil -L raid Address Type Manufacturer/Model Capacity Status --------------------------------------------------------------------------- d0b0t0d0 RAID 5 (Redundant ADAPTEC RAID-5 210021MB Degraded d0b0t0d0 Disk Drive (DASD) SEAGATE ST173404LW 70007MB Optimal d0b0t1d0 Disk Drive (DASD) SEAGATE ST173404LW 70007MB Optimal d0b1t2d0 Disk Drive (DASD) SEAGATE ST173404LW 70007MB Optimal d0b1t3d0 Disk Drive (DASD) UNKNOWN --UNKNOWN-- 0MB Missing s1n01(rader): check_dpt_raid CRITICAL - d0b0t0d0 degraded ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From elemint at gmail.com Thu Jul 28 18:05:02 2005 From: elemint at gmail.com (Jim B) Date: Thu, 28 Jul 2005 09:05:02 -0700 Subject: cleaning out nagios pending messages to be sent In-Reply-To: References: <42E7EBFF.3020702@ha-solutions.net> Message-ID: I have looked in the mail ques for postfix and sendmail; I do not exim installed, although I am not sure which mta nagios is using but I keep getting old messages (send to me via email). Before the messages go to the mailques where are they in nagios so I can delete them? Since the ques are empty but I keep getting old messages it would seem that nagios has some old alerts that it is sending to my mail ques but I need to delete them before they get to the que beccuase once they go to the que they are sent out via smtp before I can not stop them. Jim On 7/27/05, Jim B wrote: > > How can I determine which mta I am using? > > Jim > > On 7/27/05, Terry L. Inzauro wrote: > > > > Jim B wrote: > > > I want to delete all pending alerts for nagios so that I can have > > nagios > > > only send out future alerts and not old alerts, the system did not > > have > > > a network connection for a bit so it has a lot of alerts it wants to > > > send out. > > > > > > What is the best way to do this? > > > > > > > > > Jim > > > > sendmail == just delete the contents of the queue directory (like > > /var/spool/mqueue or something like that > > postfix == man postsuper > > qmail == ?? > > > > > > /* Terry Inzauro > > * Omaha Office: > > * http://storsolgroup.com > > * http://ha-solutions.net > > */ > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ssugar at proserveit.com Thu Jul 28 18:27:22 2005 From: ssugar at proserveit.com (Scott Sugar) Date: Thu, 28 Jul 2005 12:27:22 -0400 Subject: Nagios 2.0b3 still buggy? Message-ID: I have to agree that Nagios 2.0b3 is reasonably stable. I am currently monitoring 5 different customers sites with a nagios 2.0b3 box at each site and a central nagios 2.0b3 box. I have over 70 remote hosts being monitored and over 250 services without problem... I am using NRPE_NT on each windows server, which is working great on servers ranging from NT 4 to Server 2003, NSCA to pass back passive checks to the central box, service escalations and dependencies on the central box as well... I know that there are people that are watching alot more than me and are running fine.. while I have experienced some hardships getting everything configured I do not believe that nagios 2.0b3 is a buggy program... at least any more than most programs are... ________________________________ From: nagios-users-admin at lists.sourceforge.net on behalf of Dave Augustus Sent: Thu 7/28/2005 11:51 AM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Nagios 2.0b3 still buggy? This is a test subject just chiming in here that we are using v2.03b3 and it is working great. We are monitoring about 10 servers/141 services using both network connections and nrpe. All on linux. Also, the NagiosQL is a great app for setting up and configuring. It covers most of the functionality and has helped tremendously in deploying Nagios. As a n00b to nagios, I would say we are NOT using the advanced features of Service Groups, escalations and such. However, our Windows admins are happy to get a glimpse of what Nagios can do. They are sold on it and we will deploying a larger Nagios install for monitoring our Windows and VmWare servers. *test subject* Dave Augustus Kenneth Copeland Ministries On Thu, 2005-07-28 at 10:00 -0500, Marc Powell wrote: > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of Ralph.Grothe at itdz-berlin.de > > Sent: Thursday, July 28, 2005 4:12 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Nagios 2.0b3 still buggy? > > > > Hello, > > > > recently I noticed a minor "flame" between Nagios > > hackers/patchers going on here > > where one party raised concerns that release 2.X not being fit > > for production usage yet? > > It's still beta. Ethan has indicated on numerous occasions that if you > run 2.0, expect problems. Quoting an e-mail from Ethan on 3/23/2005 -- > > "First, I would still consider 2.0 as being beta software - that's why > its labeled as such. While no major changes will be made to either > the configuration files or functionality before a "stable" 2.0 is > released, I do expect that a few major nasty bugs will be discovered > within the current code. If you're running the 2.0 code while its in > beta, consider yourself a test subject. :-)" > > As of that e-mail it was expected that it might be out of beta by the > end of June. Obviously we're past that but there hasn't been an official > release yet so we're still in beta mode. Many people have successfully > been running 2.x in production environments for some time. Others have > experienced problems. YMMV. > > > As I'm experiencing quite some bizarre behaviour of my Nagios > > setup, > > that I rather blamed on my lack of Nagios configuration skills, > > I now wonder if it couldn't also be at least partly based on the > > release 2.0b3 I am using. > > > > Could it be this one is still a bit "immature" or buggy, and > > would it be advisable to downgrade to a > > "stable" release until I've got my basic stuff working as > > desired? > > That's what _I_ would do but to each his own. Do what you're comfortable > with. If you're monitoring mission critical applications and you > absolutely can't deal with bugs in your monitoring software, use 1.x. > > > For instance, did I alway wonder why my running nagios daemon > > didn't continue processing > > after it caught a SIGHUP. > > It reported to nagios.log that it caught the signal and was > > reinitializing, > > but then no more appeared nor happened. > > That sounds like it might be a bug. Maybe someone else running 2.x can > reproduce it? > > -- > Marc > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO September > 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 marc at ena.com Thu Jul 28 19:00:46 2005 From: marc at ena.com (Marc Powell) Date: Thu, 28 Jul 2005 12:00:46 -0500 Subject: cleaning out nagios pending messages to be sent Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Jim B > Sent: Thursday, July 28, 2005 11:05 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] cleaning out nagios pending messages to be > sent > > I have looked in the mail ques for postfix and sendmail; I do not exim > installed, although I am not sure which mta nagios is using but I keep > getting old messages (send to me via email). Before the messages go to the > mailques where are they in nagios so I can delete them? They aren't held by nagios at all. They're sent to your local MTA in real time using your designated host/service notify-by-email command. If your mta doesn't respond they're just dropped. The only possible exception is if your designated host/service notify-by-email commands are still running for those old messages. Use ps to check. This is _extremely_ unlikely and they're almost certainly in your MTA's mail queue as nagios has built-in timeouts to kill those outstanding notification processes (notification_timeout=30). > > Since the ques are empty but I keep getting old messages it would seem > that nagios has some old alerts that it is sending to my mail ques but I > need to delete them before they get to the que beccuase once they go to > the que they are sent out via smtp before I can not stop them. Just to clarify, when you say they are old, are you indicating that the timestamp in the body of the e-mail is from some time in the past or you're getting alerts for services that were down but have now recovered and the timestamp is recent. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 28 19:14:30 2005 From: marc at ena.com (Marc Powell) Date: Thu, 28 Jul 2005 12:14:30 -0500 Subject: cleaning out nagios pending messages to be sent Message-ID: > -----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, July 28, 2005 12:01 PM > To: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] cleaning out nagios pending messages to be > sent > > > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of Jim B > > Sent: Thursday, July 28, 2005 11:05 AM > > To: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] cleaning out nagios pending messages to be > > sent > > > > I have looked in the mail ques for postfix and sendmail; I do not exim > > installed, although I am not sure which mta nagios is using but I keep > > getting old messages (send to me via email). Before the messages go to > the > > mailques where are they in nagios so I can delete them? > > They aren't held by nagios at all. They're sent to your local MTA in > real time using your designated host/service notify-by-email command. If > your mta doesn't respond they're just dropped. The only possible > exception is if your designated host/service notify-by-email commands > are still running for those old messages. Use ps to check. This is > _extremely_ unlikely and they're almost certainly in your MTA's mail > queue as nagios has built-in timeouts to kill those outstanding > notification processes (notification_timeout=30). Ack, I forgot to say that you should look at the headers for the messages you are getting, specifically the Received: lines and their timestamps. That'll tell you where they've been held at each step and for how long. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.P.Fuentes at boeing.com Thu Jul 28 19:29:19 2005 From: James.P.Fuentes at boeing.com (EXT-Fuentes, James P) Date: Thu, 28 Jul 2005 10:29:19 -0700 Subject: Nagios 2.0b3 still buggy? Message-ID: <626FC7C6A97381468FB872072AB5DDC801FEAE@XCH-SW-42.sw.nos.boeing.com> Same here - no real problems that I can report. When I first began working with Nagios, I contacted a former colleague for some tips on getting started. He raised eyebrows over the fact that I was using beta code. Granted, I'm running a relatively small operation w/ 480 services for 144 hosts, nothing real tricky, just standard plugins and a few home grown plugins. I've worked with a few "official releases" from commercial vendors that were absolutely horrendous. -Jim ________________________________ From: Scott Sugar [mailto:ssugar at proserveit.com] Sent: Thu 7/28/2005 9:27 AM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Nagios 2.0b3 still buggy? I have to agree that Nagios 2.0b3 is reasonably stable. I am currently monitoring 5 different customers sites with a nagios 2.0b3 box at each site and a central nagios 2.0b3 box. I have over 70 remote hosts being monitored and over 250 services without problem... I am using NRPE_NT on each windows server, which is working great on servers ranging from NT 4 to Server 2003, NSCA to pass back passive checks to the central box, service escalations and dependencies on the central box as well... I know that there are people that are watching alot more than me and are running fine.. while I have experienced some hardships getting everything configured I do not believe that nagios 2.0b3 is a buggy program... at least any more than most programs are... ________________________________ From: nagios-users-admin at lists.sourceforge.net on behalf of Dave Augustus Sent: Thu 7/28/2005 11:51 AM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Nagios 2.0b3 still buggy? This is a test subject just chiming in here that we are using v2.03b3 and it is working great. We are monitoring about 10 servers/141 services using both network connections and nrpe. All on linux. Also, the NagiosQL is a great app for setting up and configuring. It covers most of the functionality and has helped tremendously in deploying Nagios. As a n00b to nagios, I would say we are NOT using the advanced features of Service Groups, escalations and such. However, our Windows admins are happy to get a glimpse of what Nagios can do. They are sold on it and we will deploying a larger Nagios install for monitoring our Windows and VmWare servers. *test subject* Dave Augustus Kenneth Copeland Ministries On Thu, 2005-07-28 at 10:00 -0500, Marc Powell wrote: > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of Ralph.Grothe at itdz-berlin.de > > Sent: Thursday, July 28, 2005 4:12 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Nagios 2.0b3 still buggy? > > > > Hello, > > > > recently I noticed a minor "flame" between Nagios > > hackers/patchers going on here > > where one party raised concerns that release 2.X not being fit > > for production usage yet? > > It's still beta. Ethan has indicated on numerous occasions that if you > run 2.0, expect problems. Quoting an e-mail from Ethan on 3/23/2005 -- > > "First, I would still consider 2.0 as being beta software - that's why > its labeled as such. While no major changes will be made to either > the configuration files or functionality before a "stable" 2.0 is > released, I do expect that a few major nasty bugs will be discovered > within the current code. If you're running the 2.0 code while its in > beta, consider yourself a test subject. :-)" > > As of that e-mail it was expected that it might be out of beta by the > end of June. Obviously we're past that but there hasn't been an official > release yet so we're still in beta mode. Many people have successfully > been running 2.x in production environments for some time. Others have > experienced problems. YMMV. > > > As I'm experiencing quite some bizarre behaviour of my Nagios > > setup, > > that I rather blamed on my lack of Nagios configuration skills, > > I now wonder if it couldn't also be at least partly based on the > > release 2.0b3 I am using. > > > > Could it be this one is still a bit "immature" or buggy, and > > would it be advisable to downgrade to a > > "stable" release until I've got my basic stuff working as > > desired? > > That's what _I_ would do but to each his own. Do what you're comfortable > with. If you're monitoring mission critical applications and you > absolutely can't deal with bugs in your monitoring software, use 1.x. > > > For instance, did I alway wonder why my running nagios daemon > > didn't continue processing > > after it caught a SIGHUP. > > It reported to nagios.log that it caught the signal and was > > reinitializing, > > but then no more appeared nor happened. > > That sounds like it might be a bug. Maybe someone else running 2.x can > reproduce it? > > -- > Marc > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO September > 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bobjohnson at nexus9000.com Thu Jul 28 19:59:56 2005 From: bobjohnson at nexus9000.com (Bob Johnson) Date: Thu, 28 Jul 2005 10:59:56 -0700 (PDT) Subject: /var/nagios.tmpXXX files never delete (2.0b3) In-Reply-To: <1122543286.29724.13.camel@localhost> References: <1536.192.168.69.55.1122530615.squirrel@bols> <1122543286.29724.13.camel@localhost> Message-ID: <42386.127.0.0.1.1122573596.squirrel@bols> Hi Chris, Thank you for the response and ideas. > Are you running one of the MSSQL plugins? I think I remember a post a > few months ago saying that one of those plugins was leaving a lot of > temporary files around. I am not running any of the MSSQL plugins, although (probably unrelated) I am executing a handful of mysql checks. I would like to lean towards the plugins as the potential source at this time, but after recompiling the latest stable release of plugins, there was no net effect. > You could check the creation date of the files with the "stat" command, > and correlate it to your nagios.log to see if it was a particular > service check or notification command that created them, and which one. Good idea. Here's some output (all of the tmp files are similar in deltas): $stat nagios.tmpzZfhVt File: `nagios.tmp0eySOR' Size: 1912568 Blocks: 3739 IO Block: 131072 regular file Device: 807h/2055d Inode: 78325 Links: 1 Access: (0664/-rw-rw-r--) Uid: ( 1001/ nagios) Gid: ( 1001/ nagios) Access: 2005-07-28 00:42:27.000000000 -0700 Modify: 2005-07-28 00:42:27.000000000 -0700 Change: 2005-07-28 00:42:27.000000000 -0700 $more nagios.tmp0eySOR ######################################## # NAGIOS STATUS FILE # # THIS FILE IS AUTOMATICALLY GENERATED # BY NAGIOS. DO NOT MODIFY THIS FILE! ######################################## info { created=1122536547 version=2.0b3 } program { modified_host_attributes=0 modified_service_attributes=0 nagios_pid=3297 daemon_mode=1 program_start=1122531794 last_command_check=1122536542 last_log_rotation=1122534007 enable_notifications=0 active_service_checks_enabled=1 passive_service_checks_enabled=1 active_host_checks_enabled=1 passive_host_checks_enabled=1 enable_event_handlers=1 obsess_over_services=1 obsess_over_hosts=1 check_service_freshness=0 check_host_freshness=0 enable_flap_detection=0 enable_failure_prediction=1 process_performance_data=0 global_host_event_handler= global_service_event_handler= } host { host_name=host1 modified_attributes=0 check_command=check-host-alive event_handler= has_been_checked=1 should_be_scheduled=0 check_execution_time=0.017 check_latency=0.000 current_state=0 last_hard_state=0 check_type=0 plugin_output=PING OK - Packet loss = 0%, RTA = 0.19 ms performance_data= last_check=1122529374 next_check=0 current_attempt=1 max_attempts=10 state_type=1 last_state_change=1122529364 last_hard_state_change=1122529364 last_time_up=1122529374 last_time_down=0 last_time_unreachable=0 last_notification=0 next_notification=0 no_more_notifications=0 current_notification_number=0 notifications_enabled=0 problem_has_been_acknowledged=0 acknowledgement_type=0 active_checks_enabled=1 passive_checks_enabled=1 event_handler_enabled=1 flap_detection_enabled=1 failure_prediction_enabled=1 process_performance_data=1 obsess_over_host=1 last_update=1122536547 is_flapping=0 percent_state_change=0.00 scheduled_downtime_depth=0 } host { host_name=host2 modified_attributes=0 check_command=check-host-alive event_handler= has_been_checked=1 should_be_scheduled=0 check_execution_time=0.017 check_latency=0.000 current_state=0 last_hard_state=0 check_type=0 plugin_output=PING OK - Packet loss = 0%, RTA = 0.18 ms performance_data= last_check=1122529374 next_check=0 current_attempt=1 max_attempts=10 state_type=1 last_state_change=1122529364 last_hard_state_change=1122529364 last_time_up=1122529374 last_time_down=0 last_time_unreachable=0 last_notification=0 next_notification=0 no_more_notifications=0 current_notification_number=0 notifications_enabled=0 problem_has_been_acknowledged=0 acknowledgement_type=0 active_checks_enabled=1 passive_checks_enabled=1 event_handler_enabled=1 flap_detection_enabled=1 failure_prediction_enabled=1 process_performance_data=1 obsess_over_host=1 last_update=1122536547 is_flapping=0 percent_state_change=0.00 scheduled_downtime_depth=0 } [...~2MB removed...] $ So, essentially, those 2MB files are filling up my var directory at a relatively rapid rate. (As a side note, PING is not the only output in the tmp files -- they contain the output from all of the checks.) Thank you again for the advice, and any additional ideas are greatly appreciated. ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Thu Jul 28 20:19:02 2005 From: ae at op5.se (Andreas Ericsson) Date: Thu, 28 Jul 2005 20:19:02 +0200 Subject: bind nagios to a fix ip In-Reply-To: <200507280124.SAA18536@redwood.taos.com> References: <200507280124.SAA18536@redwood.taos.com> Message-ID: <42E92196.90006@op5.se> Darren Dunham wrote: >>Short answer; No. >> >>Long answer; It's possible but extremely cumbersome and the necessary >>changes to the plugins requires a substantial amount of C-coding >>knowledge as well as a complete insight into how IP networks work. >> >>Since the plugins initiate the connection you'd have to make all the >>plugins use raw sockets (all of them need to be setsuid for this to >>work). That way they can set the outgoing IP by themselves. This is >>almost always a very bad idea, since you might end up sending packets >>that doesn't have a return route to send the responses through unless >>each network has a default route that is interconnected with all the >>other gateways (and all the networks know of each other). If you don't >>know what I'm talking about, see the short answer above. > > > It wouldn't be much easier since you're still talking about modifying > all the individual plug-ins, but it shouldn't require raw sockets. I > would hope that simply having them bind to the requested address rather > than to INADDR_ANY would do the trick. > Supposing you aren't talking about the web-interface (which is blindingly obvious how to configure if you've even opened the apache configuration file) you won't have any success without modifying the plugins to use raw sockets. bind(2) isn't used by the plugins at all, since they initiate the connection rather than wait for one. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Thu Jul 28 20:20:26 2005 From: ae at op5.se (Andreas Ericsson) Date: Thu, 28 Jul 2005 20:20:26 +0200 Subject: Firefox Plugin for Sound In-Reply-To: <42E8B8D9.3030308@clewett.org.uk> References: <42E8B8D9.3030308@clewett.org.uk> Message-ID: <42E921EA.1090403@op5.se> Ben Clewett wrote: > Dear Group, > > I have Firefox on Linux. When viewing any page which plays a sound, I > get the message 'You require a plugin' and an option to download. Which > reports no appropriate plugins. > > Can any kind user suggest how I can get the audio component of Nagios > working in Firefox on Linux? > > (Flash plays sound perfectly on same setup.) > > Many thanks, > There's a sort of general multi-media plugin based on mplayer that handles just about every media-type fileformat in existence. Google is your friend. +mplayer +firefox should do the trick. > Ben. > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September > 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Jason.Ellmers at firstgroup.com Thu Jul 28 20:26:14 2005 From: Jason.Ellmers at firstgroup.com (Jason Ellmers) Date: Thu, 28 Jul 2005 19:26:14 +0100 Subject: Onsite DeTeWe is out of the office. Message-ID: I will be out of the office starting 27/07/2005 and will not return until 01/08/2005. Please call Glenn Turner on 07901854363 ********************************************************************** 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.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 28 20:34:50 2005 From: noyler at khimetrics.com (Nathan Oyler) Date: Thu, 28 Jul 2005 11:34:50 -0700 Subject: Nagios / RT Integration Message-ID: <59B15593F41BD24591D59436E7226EAD023923EC@Khiphx2.khimetrics.com> There's an email thread a couple days ago with the subject "An email on acknowledge, and onlyonacknowledge? Nagios and RT" It talks about creating an email on acknowledge to RT. If that is what you want, it may help. > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Christopher N. Carroll > Sent: Thursday, July 28, 2005 6:55 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nagios / RT Integration > > Hello all, > > I'm looking for information regarding the integration of Nagios and RT. > I found > http://lists.bestpractical.com/pipermail/rt-users/2005-June/031775.html > in my search but I was curious if anyone else was doing something along > these lines. I'm looking for anything that might help. > > Thanks, > > Noel Carroll > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September > 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Thu Jul 28 20:43:43 2005 From: ae at op5.se (Andreas Ericsson) Date: Thu, 28 Jul 2005 20:43:43 +0200 Subject: Multiple Nagios proccesses running. In-Reply-To: <1122542715.29724.8.camel@localhost> References: <200507252109.j6PL9vjU023926@mail.asc.edu> <20050725221507.30266.qmail@mullet.softflare.net> <1122373846.30418.65.camel@localhost> <42E74E29.5090005@op5.se> <1122471906.15025.254.camel@localhost> <42E7BA0D.4020804@op5.se> <1122484346.15025.267.camel@localhost> <42E7DCBD.9090904@op5.se> <1122542715.29724.8.camel@localhost> Message-ID: <42E9275F.2030202@op5.se> Chris Wilson wrote: > Hi Andreas, > >>>How do you think I wrote a patch without reading the code? >> >>Guess-work? I've seen a fair amount of it from you on other topics. > > > Sorry, I wasn't aware of that. Please could you give me some examples? I > would like to do better. > The hashing issue. I just noticed however that that was Ken Dyke and not you, so I'd like to revoke that statement. Sorry. >>I'll have to look at that patch. Can you send it again? > > > Sure, it's attached. > There are a couple of issues with it. * C++ style comments aren't portable enough. * It isn't in "Ethan style" (nothing but Ethan's code is, but patches just aren't accepted unless they are). * I don't understand where you're reading the pid from the lockfile. All I see are two calls to getpid(2). If this is actually true, the patch will fix absolutely nothing. More below. > >>I don't have high hopes though, considering the fact that you proposed >>using the extremely non-portable setproctitle() to discern the master >>process from the slaves. > > > Well, one can always #ifdef such things to platforms where they are > known to work. I wasn't aware that it wasn't portable, but I must admit > that I have only programmed C on Windows, Linux and OBSD, and only > extensively on Linux. > > >>How exactly do you check that the process listed isn't running? AFAIK >>there aren't any portable syscalls available for getting the process >>name from a pid, and the /proc filesystem works differently on different >>platforms. > > > kill(pidno, 0). > This isn't portable. On some systems it will return -1 and set errno to EINVAL. This is particularly true for systems that follow the pre-2001 POSIX.1 standard. This behaviour is actually also POSIX-compatible. The result you're seeing on your system when testing this is an extension to the standard. > >>man fcntl. If a process is already holding the lock one is trying to >>acquire it will return -1. It's the right way to do it. Checking the pid >>and trying to find matching process is the cumbersome, incorrect and >>non-portable way. > > > I read the man page. It's all very well in theory, but it's just not > working on Linux, and I don't know why yet. > Then the bug is in either the Linux kernel, the GNU libc library or the compiler with the kernel being the most likely. What filesystem are you using? -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bsmith at fusionbroadband.com Thu Jul 28 20:47:09 2005 From: bsmith at fusionbroadband.com (Brian Smith) Date: Thu, 28 Jul 2005 13:47:09 -0500 Subject: FW: FW: secondary nagios verification Message-ID: <76260EC12F72AF4582D3582554CBE108EA18F9@iron.fusionbb.corp> Hi Miles. See comment below... > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Chris Wilson > Sent: Wednesday, July 27, 2005 8:35 AM > To: Miles Scruggs > Cc: Nagios Users > Subject: Re: [Nagios-users] FW: secondary nagios verification > > Hi Miles, > > > Is there anyway for nagios to verify the status of a host from > > another nagios system? > > Not exactly. Passive service checks might do it, but there is an > infinite loop issue between the two hosts if they are both set to > submit results to each other. > > > If I have two nagios systems nag_A and nag_B and they are > > monitoring the > > host host_A and it's services. If nag_A detects that host_A is down > > is there anyway for it to ask nag_B if this is verifiable, and vice > > versa. > > You could submit a request for an immediate service check via HTTP, by > scripting the web interface on nag_B and calling that from nag_A (and > vice versa). Another way to do this, depending on your exact situation, might be to make the Nagios XML files (on my system this is /var/nagios/nagios.xml) on each machine viewable by the other machine. If one machine sees the service you're looking for go down, you could run a script that checks the XML file on the other machine, and if it says OK it could manually drop a service check response into the Nagios command file. Or, you could define a separate service for that host on each Nagios machine (like maybe othernagios_svcname), and have that service NOT generate its own checks. Then have a cronjob on each machine check the XML file on the other machine (for the real service) to see if it says OK or not. So each Nagios would have two services for that host, one for its own checks and one for the other machine's checks, and no infinite loop because neither Nagios is set to send checks to the other, it happens through a separate channel. Try this you'll see what I mean: cat nagios.xml |grep [specific host name] Good luck, -- Brian ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ran.Li at sprint-canada.com Thu Jul 28 20:45:59 2005 From: Ran.Li at sprint-canada.com (Ran Li) Date: Thu, 28 Jul 2005 14:45:59 -0400 Subject: content on the web won't change even nagios process has been killed Message-ID: Hi all, Please advise which parameter(s) exactly control(s) this. situation is 1. after the configuration, I can monitor the services on the local and remote hosts 2. when I made the changes on the configuration, I need to restart the nagios process 3. for the first couple of times when I restarted the nagiso process, the service that being monitored, their status on the web would show Pending first and then turned to green one by one ... which is OK 4. I leave it there for a night, this morning, when I shutdown the nagios, found the the content on the web is still the same, which all services are still OK/green even without nagios. 5. I tried to shutdown some of the services as well, but the content still would not be changed. 6. then I started the nagios again, this time it would refresh the status and tells the services that I shutdown are CRITICAL/Red. 7. I killed the nagios process again, everything stays the same. is this configuration on the nagios or on the apache? some place cache it? Thanks and regards, -tea -------------- next part -------------- An HTML attachment was scrubbed... URL: From ssugar at proserveit.com Thu Jul 28 20:36:32 2005 From: ssugar at proserveit.com (Scott Sugar) Date: Thu, 28 Jul 2005 14:36:32 -0400 Subject: content on the web won't change even nagios process has been killed Message-ID: Which nagios server did you shutdown in step 4? If you shutdown the remote one, the central one will not know that the remote machine is no longer sending passive checks unless you set the check_freshness command on the central server. Also which web interface are you looking at? scott ________________________________ From: nagios-users-admin at lists.sourceforge.net on behalf of Ran Li Sent: Thu 7/28/2005 2:45 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] content on the web won't change even nagios process has been killed Hi all, Please advise which parameter(s) exactly control(s) this. situation is 1. after the configuration, I can monitor the services on the local and remote hosts 2. when I made the changes on the configuration, I need to restart the nagios process 3. for the first couple of times when I restarted the nagiso process, the service that being monitored, their status on the web would show Pending first and then turned to green one by one ... which is OK 4. I leave it there for a night, this morning, when I shutdown the nagios, found the the content on the web is still the same, which all services are still OK/green even without nagios. 5. I tried to shutdown some of the services as well, but the content still would not be changed. 6. then I started the nagios again, this time it would refresh the status and tells the services that I shutdown are CRITICAL/Red. 7. I killed the nagios process again, everything stays the same. is this configuration on the nagios or on the apache? some place cache it? Thanks and regards, -tea -------------- next part -------------- An HTML attachment was scrubbed... URL: From BConrad at passkey.com Thu Jul 28 20:55:26 2005 From: BConrad at passkey.com (Ben Conrad) Date: Thu, 28 Jul 2005 14:55:26 -0400 Subject: Nagios 2.0b3 still buggy? Message-ID: <8FB96300C132D511AE7500508BD6ABCD05AB3E5F@eagle.passkey.com> Same here, 2.0b3, NagiosQL 2005 and the latest PerfParse. Fedora Core 3 with reasonably latest round of "yum update" updates. 80 hosts and about 1100 services. I've been very happy with it and similarly I'm not using Service Groups, escalations and other complex features yet. Ben -----Original Message----- From: Dave Augustus [mailto:davea at support.kcm.org] Sent: Thursday, July 28, 2005 11:52 AM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Nagios 2.0b3 still buggy? This is a test subject just chiming in here that we are using v2.03b3 and it is working great. We are monitoring about 10 servers/141 services using both network connections and nrpe. All on linux. Also, the NagiosQL is a great app for setting up and configuring. It covers most of the functionality and has helped tremendously in deploying Nagios. As a n00b to nagios, I would say we are NOT using the advanced features of Service Groups, escalations and such. However, our Windows admins are happy to get a glimpse of what Nagios can do. They are sold on it and we will deploying a larger Nagios install for monitoring our Windows and VmWare servers. *test subject* Dave Augustus Kenneth Copeland Ministries On Thu, 2005-07-28 at 10:00 -0500, Marc Powell wrote: > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of Ralph.Grothe at itdz-berlin.de > > Sent: Thursday, July 28, 2005 4:12 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Nagios 2.0b3 still buggy? > > > > Hello, > > > > recently I noticed a minor "flame" between Nagios > > hackers/patchers going on here > > where one party raised concerns that release 2.X not being fit > > for production usage yet? > > It's still beta. Ethan has indicated on numerous occasions that if you > run 2.0, expect problems. Quoting an e-mail from Ethan on 3/23/2005 -- > > "First, I would still consider 2.0 as being beta software - that's why > its labeled as such. While no major changes will be made to either > the configuration files or functionality before a "stable" 2.0 is > released, I do expect that a few major nasty bugs will be discovered > within the current code. If you're running the 2.0 code while its in > beta, consider yourself a test subject. :-)" > > As of that e-mail it was expected that it might be out of beta by the > end of June. Obviously we're past that but there hasn't been an official > release yet so we're still in beta mode. Many people have successfully > been running 2.x in production environments for some time. Others have > experienced problems. YMMV. > > > As I'm experiencing quite some bizarre behaviour of my Nagios > > setup, > > that I rather blamed on my lack of Nagios configuration skills, > > I now wonder if it couldn't also be at least partly based on the > > release 2.0b3 I am using. > > > > Could it be this one is still a bit "immature" or buggy, and > > would it be advisable to downgrade to a > > "stable" release until I've got my basic stuff working as > > desired? > > That's what _I_ would do but to each his own. Do what you're comfortable > with. If you're monitoring mission critical applications and you > absolutely can't deal with bugs in your monitoring software, use 1.x. > > > For instance, did I alway wonder why my running nagios daemon > > didn't continue processing > > after it caught a SIGHUP. > > It reported to nagios.log that it caught the signal and was > > reinitializing, > > but then no more appeared nor happened. > > That sounds like it might be a bug. Maybe someone else running 2.x can > reproduce it? > > -- > Marc > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO September > 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ran.Li at sprint-canada.com Thu Jul 28 21:15:51 2005 From: Ran.Li at sprint-canada.com (Ran Li) Date: Thu, 28 Jul 2005 15:15:51 -0400 Subject: content on the web won't change even nagios process has been killed Message-ID: Hi Scott and all, on the step 4, I killed the nagios process (just a sample) #ps -ef | grep nagios nagios 3548 31209 0 Jul27 pts/2 00:00:00 ./nagios ../etc/nagios.cfg #kill 3548 the web content I mentioned is under the Monitoring category -> Service Detail, where I can see every service 's status on each host. I m using Apache2. I even tried to restart the http service, but won't work either, web shows every service 's status is OK, while nagios is not running. Normal? I think I m using active check not passive one, the parameter check_freshness is set to 0 in the configuration file. nagios server (nagios/web interface/plugins/check_nrpe) | / \ host1 host2 (nrpe/plugins) Thanks and regards, -tea -----Original Message----- From: Scott Sugar [mailto:ssugar at proserveit.com] Sent: Thursday, July 28, 2005 2:37 PM To: Ran Li; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] content on the web won't change even nagios process has been killed Which nagios server did you shutdown in step 4? If you shutdown the remote one, the central one will not know that the remote machine is no longer sending passive checks unless you set the check_freshness command on the central server. Also which web interface are you looking at? scott _____ From: nagios-users-admin at lists.sourceforge.net on behalf of Ran Li Sent: Thu 7/28/2005 2:45 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] content on the web won't change even nagios process has been killed Hi all, Please advise which parameter(s) exactly control(s) this. situation is 1. after the configuration, I can monitor the services on the local and remote hosts 2. when I made the changes on the configuration, I need to restart the nagios process 3. for the first couple of times when I restarted the nagiso process, the service that being monitored, their status on the web would show Pending first and then turned to green one by one ... which is OK 4. I leave it there for a night, this morning, when I shutdown the nagios, found the the content on the web is still the same, which all services are still OK/green even without nagios. 5. I tried to shutdown some of the services as well, but the content still would not be changed. 6. then I started the nagios again, this time it would refresh the status and tells the services that I shutdown are CRITICAL/Red. 7. I killed the nagios process again, everything stays the same. is this configuration on the nagios or on the apache? some place cache it? Thanks and regards, -tea -------------- next part -------------- An HTML attachment was scrubbed... URL: From ssugar at proserveit.com Thu Jul 28 22:06:45 2005 From: ssugar at proserveit.com (Scott Sugar) Date: Thu, 28 Jul 2005 16:06:45 -0400 Subject: content on the web won't change even nagios process has been killed Message-ID: That doesnt seem normal... im assuming that there are no other nagios process' once you kill 3548? If there are no instances of nagios running, you should not be able to view the nagios web interface... you should get some error message that says something along the lines of: Error cannot view pages, nagios may not be running... or something like that... Im not too sure if there could be some caching going on... maybe your browser is running through a proxy?.... i dont think that will make a difference though if you try and refresh the page.... Anyone else have an idea? scott ________________________________ From: Ran Li [mailto:Ran.Li at sprint-canada.com] Sent: Thu 7/28/2005 3:15 PM To: Scott Sugar; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] content on the web won't change even nagios process has been killed Hi Scott and all, on the step 4, I killed the nagios process (just a sample) #ps -ef | grep nagios nagios 3548 31209 0 Jul27 pts/2 00:00:00 ./nagios ../etc/nagios.cfg #kill 3548 the web content I mentioned is under the Monitoring category -> Service Detail, where I can see every service 's status on each host. I m using Apache2. I even tried to restart the http service, but won't work either, web shows every service 's status is OK, while nagios is not running. Normal? I think I m using active check not passive one, the parameter check_freshness is set to 0 in the configuration file. nagios server (nagios/web interface/plugins/check_nrpe) | / \ host1 host2 (nrpe/plugins) Thanks and regards, -tea -----Original Message----- From: Scott Sugar [mailto:ssugar at proserveit.com] Sent: Thursday, July 28, 2005 2:37 PM To: Ran Li; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] content on the web won't change even nagios process has been killed Which nagios server did you shutdown in step 4? If you shutdown the remote one, the central one will not know that the remote machine is no longer sending passive checks unless you set the check_freshness command on the central server. Also which web interface are you looking at? scott ________________________________ From: nagios-users-admin at lists.sourceforge.net on behalf of Ran Li Sent: Thu 7/28/2005 2:45 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] content on the web won't change even nagios process has been killed Hi all, Please advise which parameter(s) exactly control(s) this. situation is 1. after the configuration, I can monitor the services on the local and remote hosts 2. when I made the changes on the configuration, I need to restart the nagios process 3. for the first couple of times when I restarted the nagiso process, the service that being monitored, their status on the web would show Pending first and then turned to green one by one ... which is OK 4. I leave it there for a night, this morning, when I shutdown the nagios, found the the content on the web is still the same, which all services are still OK/green even without nagios. 5. I tried to shutdown some of the services as well, but the content still would not be changed. 6. then I started the nagios again, this time it would refresh the status and tells the services that I shutdown are CRITICAL/Red. 7. I killed the nagios process again, everything stays the same. is this configuration on the nagios or on the apache? some place cache it? Thanks and regards, -tea -------------- next part -------------- An HTML attachment was scrubbed... URL: From Ran.Li at sprint-canada.com Thu Jul 28 22:53:37 2005 From: Ran.Li at sprint-canada.com (Ran Li) Date: Thu, 28 Jul 2005 16:53:37 -0400 Subject: content on the web won't change even nagios process has been killed Message-ID: Hi Scott and all, Thanks for the reply. before I did could see the error page when without nagios running, how come not be able to right now. yes, the process 3548 is the only nagios process. I m afraid of my broswer's caching so I tried to visit the web page from another computer which never visit the page before, know what, It shows the same normal page when WITHOUT nagios running. Anybody met this problem before? please comment. Thanks. Regards, -tea -----Original Message----- From: Scott Sugar [mailto:ssugar at proserveit.com] Sent: Thursday, July 28, 2005 4:07 PM To: Ran Li; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] content on the web won't change even nagios process has been killed That doesnt seem normal... im assuming that there are no other nagios process' once you kill 3548? If there are no instances of nagios running, you should not be able to view the nagios web interface... you should get some error message that says something along the lines of: Error cannot view pages, nagios may not be running... or something like that... Im not too sure if there could be some caching going on... maybe your browser is running through a proxy?.... i dont think that will make a difference though if you try and refresh the page.... Anyone else have an idea? scott _____ From: Ran Li [mailto:Ran.Li at sprint-canada.com] Sent: Thu 7/28/2005 3:15 PM To: Scott Sugar; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] content on the web won't change even nagios process has been killed Hi Scott and all, on the step 4, I killed the nagios process (just a sample) #ps -ef | grep nagios nagios 3548 31209 0 Jul27 pts/2 00:00:00 ./nagios ../etc/nagios.cfg #kill 3548 the web content I mentioned is under the Monitoring category -> Service Detail, where I can see every service 's status on each host. I m using Apache2. I even tried to restart the http service, but won't work either, web shows every service 's status is OK, while nagios is not running. Normal? I think I m using active check not passive one, the parameter check_freshness is set to 0 in the configuration file. nagios server (nagios/web interface/plugins/check_nrpe) | / \ host1 host2 (nrpe/plugins) Thanks and regards, -tea -----Original Message----- From: Scott Sugar [mailto:ssugar at proserveit.com] Sent: Thursday, July 28, 2005 2:37 PM To: Ran Li; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] content on the web won't change even nagios process has been killed Which nagios server did you shutdown in step 4? If you shutdown the remote one, the central one will not know that the remote machine is no longer sending passive checks unless you set the check_freshness command on the central server. Also which web interface are you looking at? scott _____ From: nagios-users-admin at lists.sourceforge.net on behalf of Ran Li Sent: Thu 7/28/2005 2:45 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] content on the web won't change even nagios process has been killed Hi all, Please advise which parameter(s) exactly control(s) this. situation is 1. after the configuration, I can monitor the services on the local and remote hosts 2. when I made the changes on the configuration, I need to restart the nagios process 3. for the first couple of times when I restarted the nagiso process, the service that being monitored, their status on the web would show Pending first and then turned to green one by one ... which is OK 4. I leave it there for a night, this morning, when I shutdown the nagios, found the the content on the web is still the same, which all services are still OK/green even without nagios. 5. I tried to shutdown some of the services as well, but the content still would not be changed. 6. then I started the nagios again, this time it would refresh the status and tells the services that I shutdown are CRITICAL/Red. 7. I killed the nagios process again, everything stays the same. is this configuration on the nagios or on the apache? some place cache it? Thanks and regards, -tea -------------- next part -------------- An HTML attachment was scrubbed... URL: From Andrew.Laden at tudor.com Thu Jul 28 23:42:57 2005 From: Andrew.Laden at tudor.com (Andrew Laden) Date: Thu, 28 Jul 2005 17:42:57 -0400 Subject: Short Notification interval and escalations Message-ID: <56EAA5BC64E6C34F8C9EE6725D4A2DFA014EC2C4@tudor.com> Heya all I am trying to implement the following with host notification. 1: No notification for the 1st 5 mintes that a host goes down. 2: An email to our helpdesk at 5 minutes 3: No more email for 30 minutes 4: an email to system supervisors after 30 minutes. (along with helpdesk) 5: emails every 6 hours thereafter, My original plan was.. Define the host with with notification_interval 5, and the contact group a dummy group with no email notification. Set a host escalation first_notification 2 last_notification 3 notification_interval 30 contact_groups helpdesk Set a host escalation first_notification 3 last_notification 0 notification_interval 360 contact_groups helpdesk,supervisors The problem I forsee is that I can never override the notification interval 5 in the original host definition. Nagios always chooses the shortest notification interval for the notification series, and you can not specify first and last notification in the host definition. Anyone see a way to do this? -Andrew -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsmith at fusionbroadband.com Fri Jul 29 02:04:07 2005 From: bsmith at fusionbroadband.com (Brian Smith) Date: Thu, 28 Jul 2005 19:04:07 -0500 Subject: templates or USERx in hostgroups.cfg not working? Message-ID: <76260EC12F72AF4582D3582554CBE108EA1977@iron.fusionbb.corp> I'm banging my head on a wall with this so any help is greatly appreciated... Nagios version is 1.2 Stable Release. Problem: I cannot seem to get template definitions or $USERx$ vars defined in resource.cfg to apply settings in hostgroups.cfg. Are these not supported for that config file or something? Our system has a central directory for main nagios config files, and then separate directories for site-specific config files. The site-specific configs are automatically generated by triggered scripts on the servers at the sites, so simply changing them all is a bad option. To effectively make changes to the contacts defined for hostgroups on the sites requires either a template or a $USERx$ variable in the central configs. I've tried the following for templates: ### in central hostgroups.cfg define hostgroup { hostgroup_name gengroup contact_groups people register 0 } ### in site specific hostgroups.cfg define hostgroup { use gengroup hostgroup_name sitename alias descriptive stuff members list_of_hosts, more_hosts, etc_hosts } and also tried the following for the $USERx$ variable: ### in resource.cfg $USER1$=/usr/nagios/libexec $USER2$=people ### in site specific hostgroups.cfg define hostgroup { use gengroup hostgroup_name sitename alias descriptive stuff contact_groups $USER2$ members list_of_hosts, more_hosts, etc_hosts } Thanks, and hope that's enough information. -- Brian ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe at itdz-berlin.de Fri Jul 29 06:58:37 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Fri, 29 Jul 2005 06:58:37 +0200 Subject: Is there a testing or debugging mode for nagio s? Message-ID: <6B893C5F2902D311A23F0090272854FB0575B798@litex001.lit.verwalt-berlin.de> Hi Bob, what kind of plug-in is check_period? I cannot find it in my Nagios installation. nor in the tarballs of either Nagios or Nagios-plugins. Is it a kind of NoOp plug-in stub I would have to write? How can I re-schedule from the command line. My Nagios web interface (i.e. the CGIs) are still a bit broken (I could easily fix if I had root privileges on the webserver to edit httpd.conf) Anyway, I'm a bit shell-fixed and avoid GUIs whenever possible. I know with Nagios I probably would miss half the fun, but this seems cosmetic to me, and can be addressed later when the base system is at least working satisfactorily. > -----Original Message----- > From: Sloane, Robert Raymond [mailto:sloane at ku.edu] > Sent: Thursday, July 28, 2005 4:03 PM > To: Ralph.Grothe at itdz-berlin.de > Subject: RE: [Nagios-users] Is there a testing or debugging mode for > nagios? > > > Why not put a "check_period none" in the template, so that the checks > won't normally be scheduled, and then use the "Re-schedule the next > check of this service" link to schedule the check when you want it to > happen? Once things are debugged, you can set the check_period in the > actual entry to whatever is appropriate. > -- > 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 Ralph.Grothe at itdz-berlin.de > > Sent: Thursday, July 28, 2005 7:55 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Is there a testing or debugging mode > > for nagios? > > > > > > Hello, > > > > this morning I received the contempt of my fellow admins > > because nagios swamped their mailboxes over night. Well, it > > wasn't of course nagios' fault but mine because I defined a > > template service wherein I referenced a conact_groups that > > comprised all of us. When later adding new services I simply > > forgot to override this attribute with a contact group that > > contained only my mail account (until I've come to terms with > > configuring). > > > > That's why I desperately miss a means to run a nagios daemon > > that isn't scheduling the checks by itself but rather by > > manual invocation. I'd also wish to test out alerting and > > event handling myself by raising events (e.g. to see where in > > the end the notification is delivered to). > > > > Does nagios provide special utilities, or switches to support > > (high level) debugging that way? > > > > Regards > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & > > EXPO September 19-22, 2005 * San Francisco, CA * Development > > Lifecycle Practices Agile & Plan-Driven Development * > > Managing Projects & Teams * Testing & QA Security * Process > > Improvement & Measurement * http://www.sqe.com/bsce5sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS > > when reporting any issue. > > ::: Messages without supporting info will risk being sent > to /dev/null > > > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe at itdz-berlin.de Fri Jul 29 07:19:34 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Fri, 29 Jul 2005 07:19:34 +0200 Subject: Nagios 2.0b3 still buggy? Message-ID: <6B893C5F2902D311A23F0090272854FB0575B799@litex001.lit.verwalt-berlin.de> Hi Ben, thanks for sharing your experience. I wish I had a Linux box at my disposal. Virtually any OSS project compiles and installs on Linux at a wink. Instead I have to struggle with a dated AIX OS of a box I have no root access that simply doesn't provide the ubiquitious set of OSS development header files, libs, and utilities. I could set up Nagios on Linux at home, but where's the point if you have no hardware and network to monitor? Ok, one could simulate by User Mode Linux or similar emulators, but that's too much fuss. > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > Ben Conrad > Sent: Thursday, July 28, 2005 8:55 PM > To: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Nagios 2.0b3 still buggy? > > > Same here, 2.0b3, NagiosQL 2005 and the latest PerfParse. > Fedora Core 3 with reasonably latest round of "yum update" updates. > > 80 hosts and about 1100 services. > > I've been very happy with it and similarly I'm not using > Service Groups, > escalations and other complex features yet. > > Ben ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe at itdz-berlin.de Fri Jul 29 07:31:18 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Fri, 29 Jul 2005 07:31:18 +0200 Subject: Nagios 2.0b3 still buggy? Message-ID: <6B893C5F2902D311A23F0090272854FB0575B79A@litex001.lit.verwalt-berlin.de> Hi Jim, I think I too will get it working in the end. I guess these are just the usual beginner's obstacles on has to jump over. I know what you mean. It's disgraceful to admit, but at our site the decission makers once opted for Tivoli, and lots, and lots of money was dumped. Now we are ended up with a partially implemented and unsatisfactorily working Tivoli that is administered by people who haven't administered Unix systems before. Where it theoretically would give the oportunity to mend it for at least the Unix side of monitoring, with custom written plug-ins, if only a Unix admin was given access to, we instead are forced to come up with home grown free of charge solutions (like Nagios) to get a rudimentary monitoring of our boxes established. > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > EXT-Fuentes, James P > Sent: Thursday, July 28, 2005 7:29 PM > To: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Nagios 2.0b3 still buggy? > > > Same here - no real problems that I can report. > > When I first began working with Nagios, I contacted a former > colleague for some tips on getting started. He raised > eyebrows over the fact that I was using beta code. > > Granted, I'm running a relatively small operation w/ 480 > services for 144 hosts, nothing real tricky, just standard > plugins and a few home grown plugins. > > I've worked with a few "official releases" from commercial > vendors that were absolutely horrendous. > > -Jim ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From askarali at beaconet.net Fri Jul 29 07:47:41 2005 From: askarali at beaconet.net (Askar Ali) Date: Fri, 29 Jul 2005 10:47:41 +0500 Subject: plugin timeout Message-ID: <42E9C2FD.60909@beaconet.net> hi list, I want to increase "CHECK_NRPE: Socket timeout after 10 seconds" for a single host beacause server is in remote locations with very bad dsl connection. which causing lot of alerts in nagios web interface and lot of nagios emails. Any idea howto increase service check time for a single host/services to get rid of this "Socket timeout" things regards Askar ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 29 07:58:49 2005 From: jhmartin at toger.us (Jason Martin) Date: Thu, 28 Jul 2005 22:58:49 -0700 Subject: plugin timeout In-Reply-To: <42E9C2FD.60909@beaconet.net> References: <42E9C2FD.60909@beaconet.net> Message-ID: <20050729055848.GC14076@zippy.toger.us> On Fri, Jul 29, 2005 at 10:47:41AM +0500, Askar Ali wrote: > I want to increase "CHECK_NRPE: Socket timeout after 10 > seconds" for a single host beacause server is in remote locations with > very bad dsl connection. which causing lot of alerts in nagios web > interface and lot of nagios emails. > > Any idea howto increase service check time for a single host/services to > get rid of this "Socket timeout" things You could modify all the nrpe-based command definitions to accept an argument that is passed the to timeout argument of check_nrpe, or (for the host check) define an entirely seperate command. -Jason Martin -- I used to be schizophrenic, but we're all right now. 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 werbepostfach at gmx.net Fri Jul 29 09:33:18 2005 From: werbepostfach at gmx.net (Thomas Schnell) Date: Fri, 29 Jul 2005 09:33:18 +0200 (CEST) Subject: NTray 1.1 Release Announcement [Virus scanned] In-Reply-To: References: Message-ID: <20050729073318.D2B8F4F4002@desire.netways.de> Hi Sascha my colleague gets the same message. All others can use the program without any error messages. Is there a solution for the problem already? - Thomas Schnell (lum_tom) ----------------------- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi 1[showUid]=5938 > Doesn't work for me. > Starting ntray.exe yields the error "Die Ordnungszahl 3213 wurde in der > DLL "LIBEAY32.dll" nicht gefunden", > which roughly translates to "The [atomic|ordinal|reference] number 3213 > was not found in the DLL "LIBEAY32.dll"". > Sadly I have no clue what it tries to tell me ;) > > sash > > -------------------------------------------------- > Sascha Runschke > Netzwerk Administration > IT-Services > > ABIT AG > Robert-Bosch-Str. 1 > 40668 Meerbusch > > Tel.:+49 (0) 2150.9153.226 > Mobil:+49 (0) 173.5419665 > 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?ltig ung 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. > > > ------------------------------------------------------- > This SF.Net email is sponsored by: NEC IT Guy Games. > Get your fingers limbered up and give it your best shot. 4 great events, 4 > opportunities to win big! Highest score wins.NEC IT Guy Games. Play to > win an NEC 61 plasma display. Visit http://www.necitguy.com/?r > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Fri Jul 29 10:50:20 2005 From: chris at aidworld.org (Chris Wilson) Date: Fri, 29 Jul 2005 09:50:20 +0100 Subject: bind nagios to a fix ip In-Reply-To: <42E7D58F.4070700@schramm-ek.de> References: <42E7D58F.4070700@schramm-ek.de> Message-ID: <1122627019.13754.31.camel@localhost> Hi, On Wed, 2005-07-27 at 19:42, Fa. Schramm e.K. - Deutschland wrote: > I am running an nagios daemon with serveral checks. My server machine > which contains the nagios process, has 5 ip's collective. > > My problem is that nagios uses one of the 5 ip's, but not a fix ip. I > want to tell nagios to use one fix ip. In other daemons i can tell the > programm to bind an ip to it. If you're running on Linux, you could try "iptables -t nat -I POSTROUTING -j SNAT --to-source my.first.ip.address" and see if that helps. Cheers, Chris. -- (aidworld) chris wilson | chief engineer (chris at aidworld.org) ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Fri Jul 29 10:53:46 2005 From: chris at aidworld.org (Chris Wilson) Date: Fri, 29 Jul 2005 09:53:46 +0100 Subject: /var/nagios.tmpXXX files never delete (2.0b3) In-Reply-To: <42386.127.0.0.1.1122573596.squirrel@bols> References: <1536.192.168.69.55.1122530615.squirrel@bols> <1122543286.29724.13.camel@localhost> <42386.127.0.0.1.1122573596.squirrel@bols> Message-ID: <1122627226.13754.41.camel@localhost> Hi Bob, > I am not running any of the MSSQL plugins, although (probably unrelated) I > am executing a handful of mysql checks. I would like to lean towards the > plugins as the potential source at this time, but after recompiling the > latest stable release of plugins, there was no net effect. Actually, having seen the file contents, I think it is written by Nagios itself. Looking at the code at [http://cvs.sourceforge.net/viewcvs.py/nagios/nagios/xdata/xsddefault.c?rev=1.20], it seems that Nagios creates this file as a temporary, and then tries to overwrite your normal status log file (probably /var/log/nagios/status.log or /usr/local/nagios/var/status.log). If it cannot overwrite that file, it returns without deleting the temporary file. This looks like a bug in Nagios. It also does not report the error. Perhaps your /var partition is full? You could try the attached patch, which cleans up that one error case, and writes a log message if it can't rename the file. Cheers, Chris. -- (aidworld) chris wilson | chief engineer (chris at aidworld.org) -------------- next part -------------- A non-text attachment was scrubbed... Name: nagios-xsd.patch Type: text/x-patch Size: 634 bytes Desc: not available URL: From chris at aidworld.org Fri Jul 29 11:06:43 2005 From: chris at aidworld.org (Chris Wilson) Date: Fri, 29 Jul 2005 10:06:43 +0100 Subject: Multiple Nagios proccesses running. In-Reply-To: <42E9275F.2030202@op5.se> References: <200507252109.j6PL9vjU023926@mail.asc.edu> <20050725221507.30266.qmail@mullet.softflare.net> <1122373846.30418.65.camel@localhost> <42E74E29.5090005@op5.se> <1122471906.15025.254.camel@localhost> <42E7BA0D.4020804@op5.se> <1122484346.15025.267.camel@localhost> <42E7DCBD.9090904@op5.se> <1122542715.29724.8.camel@localhost> <42E9275F.2030202@op5.se> Message-ID: <1122628003.13754.56.camel@localhost> Hi Andreas, > * C++ style comments aren't portable enough. OK, that's easily fixed. > * It isn't in "Ethan style" (nothing but Ethan's code is, but patches > just aren't accepted unless they are). Apart from "no spaces anywhere", what is Ethan's style? :-) Is the attached patch better? > * I don't understand where you're reading the pid from the lockfile. All > I see are two calls to getpid(2). If this is actually true, the patch > will fix absolutely nothing. Just above, in the code that's already there, the pid file is read: if((val=read(lockfile,buf,(size_t)10))<0){ ... if(val>0){ if((val=sscanf(buf,"%d",&pidno))<1){ However, it does nothing with the pidno. That's what I'm using. > This isn't portable. On some systems it will return -1 and set errno to > EINVAL. This is particularly true for systems that follow the pre-2001 > POSIX.1 standard. This behaviour is actually also POSIX-compatible. The > result you're seeing on your system when testing this is an extension to > the standard. OK, but we can handle an EINVAL error sensibly. I've changed the patch to not exit if the kill command returns EINVAL. Or we could only enable the patch on machines where it works. You said before there was no portable POSIX way of testing for a process' existence, so I guess we have to look for a non-portable way :-( > Then the bug is in either the Linux kernel, the GNU libc library or the > compiler with the kernel being the most likely. What filesystem are you > using? Just standard ext3. Linux dev.aidworld.org 2.6.10-1.771_FC2smp. I guess I am not the only Linux user to see this problem. Cheers, Chris. -- (aidworld) chris wilson | chief engineer (chris at aidworld.org) ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bombadur at email.it Fri Jul 29 12:23:50 2005 From: bombadur at email.it (bombadur) Date: Fri, 29 Jul 2005 12:23:50 +0200 Subject: Problem on check_ping Message-ID: <200507291223.57959.bombadur@email.it> Hi all I'm a stagist in a bank, and they ask me to monitoring by Nagios their LAN; they have about 80 machines. I'm using a CentOS 4.1 with Nagios and plugins installed from Dag Wieers repository. I think (hope) that until this moment cofiguration went good, but I have a problem testing for the check_ping plugin, which maybe it's the most important for their needings: # /usr/lib/nagios/plugins/check_ping -H 192.168.1.25 -w 3000.0,80% -c 5000.0,100% -p 1 /bin/ping -n -U -w 10 -c 1 192.168.1.25 CRITICAL - Could not interpret output from ping command I don't know how can I solve, is there someone can help me? thanks in advance! -- saluti, bombadur MajaGLUG, il LUG piu` grande d'Italia http://www.majaglug.net -- saluti, bombadur MajaGLUG, il LUG piu` grande d'Italia http://www.majaglug.net ,,_ -*> Snort! <*- o" )~ experienced '''' -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From getbacktome3 at hotmail.com Fri Jul 29 12:46:23 2005 From: getbacktome3 at hotmail.com (HP Geeza) Date: Fri, 29 Jul 2005 11:46:23 +0100 Subject: nagios displaying jpg icons for host? Message-ID: Hi I was wondering whether it is possible to get nagios to display jpg icons for expample next to individual hosts??? What i mean by this is that i was wondering if it is possible to have like a little windows jpg icon or red hat icon shown next to the name of a particular host so that its OS can been identified quickly???? _________________________________________________________________ Be the first to hear what's new at MSN - sign up to our free newsletters! http://www.msn.co.uk/newsletters ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Fri Jul 29 14:16:38 2005 From: chris at aidworld.org (Chris Wilson) Date: Fri, 29 Jul 2005 13:16:38 +0100 Subject: Multiple Nagios proccesses running. In-Reply-To: <1122628003.13754.56.camel@localhost> References: <200507252109.j6PL9vjU023926@mail.asc.edu> <20050725221507.30266.qmail@mullet.softflare.net> <1122373846.30418.65.camel@localhost> <42E74E29.5090005@op5.se> <1122471906.15025.254.camel@localhost> <42E7BA0D.4020804@op5.se> <1122484346.15025.267.camel@localhost> <42E7DCBD.9090904@op5.se> <1122542715.29724.8.camel@localhost> <42E9275F.2030202@op5.se> <1122628003.13754.56.camel@localhost> Message-ID: <1122639398.13754.58.camel@localhost> Hi Andreas, > Apart from "no spaces anywhere", what is Ethan's style? :-) Is the > attached patch better? Sorry, I made Obvious Mistake No. 1 :-) Please accept my apologies. Patch really attached this time. Cheers, Chris. -- (aidworld) chris wilson | chief engineer (chris at aidworld.org) -------------- next part -------------- A non-text attachment was scrubbed... Name: nagios-lockfile-2.patch Type: text/x-patch Size: 1469 bytes Desc: not available URL: From Ralph.Grothe-YpEHkxAi6oMehzHBf2RrnA at public.gmane.org Fri Jul 29 14:14:02 2005 From: Ralph.Grothe-YpEHkxAi6oMehzHBf2RrnA at public.gmane.org (Ralph.Grothe-YpEHkxAi6oMehzHBf2RrnA at public.gmane.org) Date: Fri, 29 Jul 2005 14:14:02 +0200 Subject: Use of check_by_ssh Message-ID: <6B893C5F2902D311A23F0090272854FB0575B79E@litex001.lit.verwalt-berlin.de> Hi, I have a bastion host in a dmz that serves HTTP(S) to the internet. I must monitor the webserver by pulling a certain CGI URI and see if the Webserver returns a 200. Unfortunately I don't get another port (e.g. 5666/tcp for NRPE) opened by the firewall gang. I only have access from our LAN to the bastion host via SSH. Thus I wrote a short shell script that resides on the webserver and GETs the HEAD of this URI through wget (with -S, -C off, --spider). It's called check_dmz_www.sh So far this script isn't doing any parsing of the output from the GET. I thought to leave this part to a Nagios check_* plug-in. In the libexec dir I discovered check_by_ssh. Unfortunately, as most distributed plug-ins, the documentation is a bit too terse. >From the --help screen I can't see the use of this plug-in, as it doesn't do anything more (i.e. return code parsing logic etc.) than vanilla ssh client does. E.g. I would call check_by_ssh from the Nagios server like this $ /opt/sw/nagios/libexec/check_by_ssh -1 -H $hostaddress -l www -i ~nagios/.ssh/id_rsa1_dmz_www -C /usr/local/sbin/check_dmz_www.sh Connecting to 127.0.0.1:80... connected. HTTP request sent, awaiting response... 1 HTTP/1.1 200 OK 2 Date: Fri, 29 Jul 2005 11:58:47 GMT 3 Server: Apache/1.3.22 (Unix) mod_ssl/2.8.5 OpenSSL/0.9.6b 4 Keep-Alive: timeout=25, max=100 5 Connection: Keep-Alive 6 Content-Type: text/html 200 OK But where's the point in using this plug-in? For that I could as well just call the ssh client. I would want check_by_ssh to recognise just the last line from the wget output to retrieve the webserver's return code whereon to decide whether to submit an OK, WARNING, or CRITICAL to nagios. Rgds. Ralph ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagiosplug-help mailing list Nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org https://lists.sourceforge.net/lists/listinfo/nagiosplug-help ::: Please include plugins version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chris at aidworld.org Fri Jul 29 14:42:31 2005 From: chris at aidworld.org (Chris Wilson) Date: Fri, 29 Jul 2005 13:42:31 +0100 Subject: Problem on check_ping In-Reply-To: <200507291223.57959.bombadur@email.it> References: <200507291223.57959.bombadur@email.it> Message-ID: <1122640950.13754.63.camel@localhost> Hi Bombadur, > I think (hope) that until this moment cofiguration went good, but I have > a problem testing for the check_ping plugin, which maybe it's the most > important for their needings: > > # /usr/lib/nagios/plugins/check_ping -H 192.168.1.25 -w 3000.0,80% -c > 5000.0,100% -p 1 > /bin/ping -n -U -w 10 -c 1 192.168.1.25 > CRITICAL - Could not interpret output from ping command You could try the check_icmp plugin. It's supposed to be more reliable. You will probably need to make it suid root (chmod u+s check_icmp) before it will work, though. Cheers, Chris. -- (aidworld) chris wilson | chief engineer (chris at aidworld.org) ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jotando at free.fr Fri Jul 29 11:11:28 2005 From: jotando at free.fr (jotando at free.fr) Date: Fri, 29 Jul 2005 11:11:28 +0200 Subject: NSClient : which version run in windows server 2003 In-Reply-To: <20050728173149.5CCAE88B91@sc8-sf-spam1.sourceforge.net> References: <20050728173149.5CCAE88B91@sc8-sf-spam1.sourceforge.net> Message-ID: <1122628288.42e9f2c0a23ff@imp1-q.free.fr> Hi everyone. I'm started to use nagios for a month and have to supervise a windows server 2003. I want to use NSClient agent but I don't know which version it's preferable to use. In the same order, do someone know how to configure the SNMP agent and this server to check traffic informations. thank's in advance. Johann Otando Quoting nagios-users-request at lists.sourceforge.net: > Send Nagios-users mailing list submissions to > nagios-users at lists.sourceforge.net > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/nagios-users > or, via email, send a message with subject or body 'help' to > nagios-users-request at lists.sourceforge.net > > You can reach the person managing the list at > nagios-users-admin at lists.sourceforge.net > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Nagios-users digest..." > > > Today's Topics: > > 1. /var/nagios.tmpXXX files never delete (2.0b3) (Bob Johnson) > 2. RE: statusmap problem (shafi) > 3. Nagios 2.0b3 still buggy? (Ralph.Grothe at itdz-berlin.de) > 4. Re: Re: Multiple Nagios proccesses running. (Chris Wilson) > 5. Re: /var/nagios.tmpXXX files never delete (2.0b3) (Chris Wilson) > 6. Re: Nagios 2.0b3 still buggy? (Chris Wilson) > 7. RE: Nagios 2.0b3 still buggy? (Ralph.Grothe at itdz-berlin.de) > 8. Firefox Plugin for Sound (Ben Clewett) > 9. nagios.cmd problem ... but not the usual one ? (Mike Meredith) > 10. Is there a testing or debugging mode for nagios? > (Ralph.Grothe at itdz-berlin.de) > 11. RE: notification suppression (Scott Sugar) > 12. Nagios / RT Integration (Christopher N. Carroll) > 13. RE: notification suppression (Mascardo, Erwin) > 14. Monitoring systems on disconnected networks? (Erik van de Pol) > 15. RE: Is there a testing or debugging mode for nagios? (Nathan Oyler) > 16. RE: Nagios 2.0b3 still buggy? (Marc Powell) > 17. Re: Is there a testing or debugging mode for nagios? (Christian Theil > Have) > 18. RE: Good vendor for Nagios setup? (Fernando Gomes Lima) > 19. Re: Monitoring i2o RAID arrays (rader at ginseng.hep.wisc.edu) > 20. RE: Nagios 2.0b3 still buggy? (Dave Augustus) > 21. Re: cleaning out nagios pending messages to be sent (Jim B) > 22. RE: Nagios 2.0b3 still buggy? (Scott Sugar) > 23. RE: cleaning out nagios pending messages to be sent (Marc Powell) > 24. RE: cleaning out nagios pending messages to be sent (Marc Powell) > 25. RE: Nagios 2.0b3 still buggy? (EXT-Fuentes, James P) > > --__--__-- > > Message: 1 > Date: Wed, 27 Jul 2005 23:03:35 -0700 (PDT) > From: "Bob Johnson" > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] /var/nagios.tmpXXX files never delete (2.0b3) > > Has anyone ever seen an issue where the nagios.tmp files never delete and > quickly accumulate? In less than 2 days, I filled up the var directory > with about 50GB of "temporary" files, and I'm curious what may be causing > this problem. > > The current configuration consists of one master and one distributed node > with relatively close nagios.cfg files. (The only major differences are > obsessive compulsive and freshness checks.) The distributed node is the > one accumulating all of the nagios.tmp files, and the master node appears > to be fine. As probably expected, the distributed node is running all of > the checks and has about 1600 configured. > > What would possibly cause all of these nagios.tmp files to accumulate? I > could write a script to delete them all every few hours, but that's > definitely not a long-term fix as it will not fix the root cause. > > Thanks everyone. > > > -Bob > > > > --__--__-- > > Message: 2 > Date: Thu, 28 Jul 2005 00:36:39 -0700 (PDT) > From: shafi > Subject: RE: [Nagios-users] statusmap problem > To: nagios-users at lists.sourceforge.net > > --0-242968007-1122536199=:13732 > Content-Type: text/plain; charset=iso-8859-1 > Content-Transfer-Encoding: 8bit > Content-Id: > Content-Disposition: inline > > > Note: forwarded message attached. > > > D.shafi > 98414-15109 > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > --0-242968007-1122536199=:13732 > Content-Type: message/rfc822 > Content-Transfer-Encoding: 8bit > > Received: from [203.101.44.123] by web50602.mail.yahoo.com via HTTP; Thu, 28 > Jul 2005 00:01:02 PDT > Date: Thu, 28 Jul 2005 00:01:02 -0700 (PDT) > From: shafi > Subject: RE: [Nagios-users] statusmap problem > To: Stephen Davies > In-Reply-To: <4C82DE70C9DD0042AF49810DFF971690093F6A at sus.tgtgonline.com> > MIME-Version: 1.0 > Content-Type: text/plain; charset=iso-8859-1 > Content-Transfer-Encoding: 8bit > Content-Length: 1557 > > This my dir where i have logos > > /usr/local/nagios/share/images/logos > > ls -la > -rwxr-xr-x 1 nagios apache 2389 Jul 26 > 11:58 redhat.gd2 > -rwxr-xr-x 1 nagios apache 1321 Jul 26 > 11:58 redhat.gif > -rwxr-xr-x 1 nagios apache 1719 Jul 26 > 11:58 redhat.jpg > -rwxr-xr-x 1 nagios apache 1319 Jul 26 > 11:58 redhat.png > > > ls -la hostextinfo.cfg > -rwxrwxrwx 1 nagios apache 152 Jul 27 > 17:23 hostextinfo.cfg > > > --- Stephen Davies > wrote: > > > Hi, > > > > Ensure the image that you have choosen is stored in > > the correct folder eg; > > /usr/sharenagios/images/logos > > > > Check the permissions on hostextinfo.cfg and that > > nagios processes owner has > > read privileges, > > > > and also, > > > > check permissions for the image file stored in the > > logos directory so that > > the httpd webserver processes owner has read > > privileges. > > > > Have you examined the nagios logfile for errors ? > > > > > > > > > > -----Original Message----- > > From: shafi [mailto:dshafi at yahoo.com] > > Sent: 27 July 2005 13:22 > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] statusmap problem > > > > Hi all, > > > > I had put the line on my cgi.cfg as > > > > > xedtemplate_config_file=/usr/local/nagios/etc/hostextinfo.cfg > > and my out of hostextinfo file > > cat etc/hostextinfo.cfg > > > > > > define hostextinfo{ > > host_name linsvr > > icon_image redhat.png > > icon_image_alt Redhat Server > > statusmap_image redhat.gd2 > > } > > but still i am getting the default image only. i had > > spend lot of time on this can anyone help me. > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > > protection around > > http://mail.yahoo.com > > > > > > > ------------------------------------------------------- > > SF.Net email is sponsored by: Discover Easy Linux > > Migration Strategies > > from IBM. Find simple to follow Roadmaps, > > straightforward articles, > > informative Webcasts and more! Get everything you > > need to get up to > > speed, fast. > > > http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version > > (-v) and OS when reporting > > any issue. > > ::: Messages without supporting info will risk being > > sent to /dev/null > > > > > _______________________________________________________________________________ > > This message is confidential and for use by the > > addressee only. If you are not the intended > > recipient, you must not use, disclose, distribute, > > copy, print, or rely on this message. Please notify > > the sender by return email and then delete the > > message from your computer. The Global Travel Group > > PLC accepts no responsibility for changes made to > > this message after it was sent nor for any loss or > > damage from receipt or use. > > > > This message has been checked for all known viruses > > by the MessageLabs Virus Scanning Service > > > > Internet: http://www.globaltravelgroup.com > > > > > > > ------------------------------------------------------- > > SF.Net email is sponsored by: Discover Easy Linux > > Migration Strategies > > from IBM. Find simple to follow Roadmaps, > > straightforward articles, > > informative Webcasts and more! Get everything you > > need to get up to > > speed, fast. > > > http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version > > (-v) and OS when reporting any issue. > > ::: Messages without supporting info will risk being > > sent to /dev/null > > > > > > > ____________________________________________________ > Start your day with Yahoo! - make it your home page > http://www.yahoo.com/r/hs > > > --0-242968007-1122536199=:13732-- > > > --__--__-- > > Message: 3 > From: Ralph.Grothe at itdz-berlin.de > To: nagios-users at lists.sourceforge.net > Date: Thu, 28 Jul 2005 11:12:28 +0200 > Subject: [Nagios-users] Nagios 2.0b3 still buggy? > > Hello, > > recently I noticed a minor "flame" between Nagios > hackers/patchers going on here > where one party raised concerns that release 2.X not being fit > for production usage yet? > > As I'm experiencing quite some bizarre behaviour of my Nagios > setup, > that I rather blamed on my lack of Nagios configuration skills, > I now wonder if it couldn't also be at least partly based on the > release 2.0b3 I am using. > > Could it be this one is still a bit "immature" or buggy, and > would it be advisable to downgrade to a > "stable" release until I've got my basic stuff working as > desired? > > For instance, did I alway wonder why my running nagios daemon > didn't continue processing > after it caught a SIGHUP. > It reported to nagios.log that it caught the signal and was > reinitializing, > but then no more appeared nor happened. > I then had to send it a SIGTERM to come down, and do a cold start > again. > > Regards > Ralph > > > --__--__-- > > Message: 4 > Subject: Re: [Nagios-users] Re: Multiple Nagios proccesses running. > From: Chris Wilson > To: Andreas Ericsson > Cc: Nagios Users > Organization: Aidworld Humanitarian ICT Ltd. > Date: Thu, 28 Jul 2005 10:25:15 +0100 > > > --=-gpABk88JkDMjpZ5LIaRQ > Content-Type: text/plain > Content-Transfer-Encoding: 7bit > > Hi Andreas, > > > To the facts. Nagios is a GNU project. Ethan gets no money for it > > (although a great deal of appreciation), and he has only so much time. I > > for one am quite happy that he doesn't bother with old code but instead > > focuses on making 2.x as good as it can and should be. > > Of course I'm not demanding that Ethan should maintain the old 1.x > branch, but I wish he would allow someone to do so. > > > > I will try and find time to maintain it myself if > > > nobody else wants to, and it doesn't annoy anyone too much (but it would > > > be a "fork" of Nagios 1.2). > > > > Whatever floats your dinghy. Just make sure you get Ethan's permission > > to use the name Nagios though, or you might end up in a trademark dispute. > > Does anyone else think that a "maintained" fork of 1.x is a good idea? > > > > It will probably be a few years before I > > > trust 2.x enought to use it. > > > > Your loss. It has a great deal to recommend it. > > >From what I've seen on the mailing list, despite the many benefits of > the new design of 2.x, it's just not stable enough to be used in > production yet (e.g. huge memory consumption, stopping service checks > after a while). My guess is that it might take a while before it is. > > > It probably won't. Ethan is adamant when it comes to not handing out CVS > > access, and developing without it is quite fruitless. I've offered to > > help myself. Considering I've had 20-something patches I don't think > > it's an issue of code-quality. > > Well, at least that saves me from trying fruitlessly, thanks. > > > > How do you think I wrote a patch without reading the code? > > > > Guess-work? I've seen a fair amount of it from you on other topics. > > Sorry, I wasn't aware of that. Please could you give me some examples? I > would like to do better. > > > mutexes are thread constructs. 1.x is a single-thread app. > > I said "mutual exclusion" which is a generic term. You mentioned > mutexes, which aren't :-) > > > I'll have to look at that patch. Can you send it again? > > Sure, it's attached. > > > I don't have high hopes though, considering the fact that you proposed > > using the extremely non-portable setproctitle() to discern the master > > process from the slaves. > > Well, one can always #ifdef such things to platforms where they are > known to work. I wasn't aware that it wasn't portable, but I must admit > that I have only programmed C on Windows, Linux and OBSD, and only > extensively on Linux. > > > How exactly do you check that the process listed isn't running? AFAIK > > there aren't any portable syscalls available for getting the process > > name from a pid, and the /proc filesystem works differently on different > > platforms. > > kill(pidno, 0). > > > man fcntl. If a process is already holding the lock one is trying to > > acquire it will return -1. It's the right way to do it. Checking the pid > > and trying to find matching process is the cumbersome, incorrect and > > non-portable way. > > I read the man page. It's all very well in theory, but it's just not > working on Linux, and I don't know why yet. > > Thanks for your help! > > Cheers, Chris. > -- > (aidworld) chris wilson | chief engineer (chris at aidworld.org) > > --=-gpABk88JkDMjpZ5LIaRQ > Content-Disposition: attachment; filename=nagios-lockfile.patch > Content-Type: text/x-patch; name=nagios-lockfile.patch; charset=UTF-8 > Content-Transfer-Encoding: 7bit > > --- nagios-1.2/base/utils.c 2004-01-26 01:17:01.000000000 +0000 > +++ nagios-chris/base/utils.c 2005-07-26 11:12:34.896445862 +0100 > @@ -1819,11 +1819,61 @@ > } > } > > - /* check for SIGHUP */ > - if(val==1 && (pid=(pid_t)pidno)==getpid()){ > - close(lockfile); > - return OK; > + if (val == 1) > + { > + // lockfile contains a valid PID > + if ((pid=(pid_t)pidno)==getpid()) > + { > + // received SIGHUP? > + close(lockfile); > + return OK; > } > + else > + { > + // another process locked the lockfile. > + // is it still running? > + int exitnow = 1; > + > + val = kill(pidno, 0); > + if (val == 0 || errno == EPERM) > + { > + snprintf(temp_buffer, sizeof(temp_buffer)-1, > + "Another Nagios process is running " > + "(%s contained pid %d)", > + lock_file, pidno); > + } > + else if (errno == EINVAL) > + { > + snprintf(temp_buffer, sizeof(temp_buffer)-1, > + "Signal 0 is not valid"); > + } > + else if (errno == ESRCH) > + { > + snprintf(temp_buffer, sizeof(temp_buffer)-1, > + "Stale lockfile deleted " > + "(%s contained pid %d)", > + lock_file, pidno); > + exitnow = 0; > + } > + else > + { > + snprintf(temp_buffer, sizeof(temp_buffer)-1, > + "Unknown error while looking for " > + "another Nagios process with pid %d: " > + "%s", > + pidno, strerror(errno)); > + } > + > + write_to_logs_and_console(temp_buffer, > + NSLOG_RUNTIME_ERROR,TRUE); > + > + if (exitnow) > + { > + cleanup(); > + exit(ERROR); > + } > + } > + } > > /* exit on errors... */ > if((pid=fork())<0) > > --=-gpABk88JkDMjpZ5LIaRQ-- > > > > --__--__-- > > Message: 5 > Subject: Re: [Nagios-users] /var/nagios.tmpXXX files never delete (2.0b3) > From: Chris Wilson > To: Bob Johnson > Cc: Nagios Users > Organization: Aidworld Humanitarian ICT Ltd. > Date: Thu, 28 Jul 2005 10:34:47 +0100 > > Hi Bob, > > > Has anyone ever seen an issue where the nagios.tmp files never delete and > > quickly accumulate? In less than 2 days, I filled up the var directory > > with about 50GB of "temporary" files, and I'm curious what may be causing > > this problem. > > Are you running one of the MSSQL plugins? I think I remember a post a > few months ago saying that one of those plugins was leaving a lot of > temporary files around. > > You could check the creation date of the files with the "stat" command, > and correlate it to your nagios.log to see if it was a particular > service check or notification command that created them, and which one. > > Cheers, Chris. > -- > (aidworld) chris wilson | chief engineer (chris at aidworld.org) > > > > --__--__-- > > Message: 6 > Subject: Re: [Nagios-users] Nagios 2.0b3 still buggy? > From: Chris Wilson > To: Ralph.Grothe at itdz-berlin.de > Cc: Nagios Users > Organization: Aidworld Humanitarian ICT Ltd. > Date: Thu, 28 Jul 2005 10:42:01 +0100 > > Hi Ralph, > > > recently I noticed a minor "flame" between Nagios > > hackers/patchers going on here > > where one party raised concerns that release 2.X not being fit > > for production usage yet? > > > > As I'm experiencing quite some bizarre behaviour of my Nagios > > setup, > > that I rather blamed on my lack of Nagios configuration skills, > > I now wonder if it couldn't also be at least partly based on the > > release 2.0b3 I am using. > > > > Could it be this one is still a bit "immature" or buggy, and > > would it be advisable to downgrade to a > > "stable" release until I've got my basic stuff working as > > desired? > > I would definitely recommend that you try running Nagios 1.x for a bit > and see if it makes a difference. 2.0b3 is a beta, you know :-) It's > also a complete rewrite and very new. > > If it does make a difference, please report it as a bug in 2.x. > > Cheers, Chris. > -- > (aidworld) chris wilson | chief engineer (chris at aidworld.org) > > > > --__--__-- > > Message: 7 > From: Ralph.Grothe at itdz-berlin.de > To: chris at aidworld.org > Cc: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Nagios 2.0b3 still buggy? > Date: Thu, 28 Jul 2005 12:46:03 +0200 > > Hi Chris, > > > -----Original Message----- > > From: Chris Wilson [mailto:chris at aidworld.org] > > Sent: Thursday, July 28, 2005 11:42 AM > > To: Ralph.Grothe at itdz-berlin.de > > Cc: Nagios Users > > Subject: Re: [Nagios-users] Nagios 2.0b3 still buggy? > > > > > > Hi Ralph, > > > > > recently I noticed a minor "flame" between Nagios > > > hackers/patchers going on here > > > where one party raised concerns that release 2.X not being > fit > > > for production usage yet? > > > > > > As I'm experiencing quite some bizarre behaviour of my Nagios > > > setup, > > > that I rather blamed on my lack of Nagios configuration > skills, > > > I now wonder if it couldn't also be at least partly based on > the > > > release 2.0b3 I am using. > > > > > > Could it be this one is still a bit "immature" or buggy, and > > > would it be advisable to downgrade to a > > > "stable" release until I've got my basic stuff working as > > > desired? > > > > I would definitely recommend that you try running Nagios 1.x > for a bit > > and see if it makes a difference. 2.0b3 is a beta, you know :-) > It's > > also a complete rewrite and very new. > > I will do so. > Don't know why I chose the beta? > Probably because it was the topmost in the listing. > > > > > > If it does make a difference, please report it as a bug in 2.x. > > I will see... > > > > --__--__-- > > Message: 8 > Date: Thu, 28 Jul 2005 11:52:09 +0100 > From: Ben Clewett > To: Nagios Users > Subject: [Nagios-users] Firefox Plugin for Sound > > Dear Group, > > I have Firefox on Linux. When viewing any page which plays a sound, I > get the message 'You require a plugin' and an option to download. Which > reports no appropriate plugins. > > Can any kind user suggest how I can get the audio component of Nagios > working in Firefox on Linux? > > (Flash plays sound perfectly on same setup.) > > Many thanks, > > Ben. > > > --__--__-- > > Message: 9 > Date: Thu, 28 Jul 2005 13:25:05 +0100 > From: Mike Meredith > To: nagios-users at lists.sourceforge.net > Organization: University of Portsmouth (ISO) > Subject: [Nagios-users] nagios.cmd problem ... but not the usual one ? > > Hi > > I'm getting :- > > "Sorry, but you are not authorized to commit the specified command." > > when trying to schedule some downtime with Nagios 1.2. But before anyone > says 'check the permissions', this isn't quite the usual problem ... I > think. > > It appears to be browser dependent ... > > Mozilla Firefox: fails (with the error above) > Internet Exploder: fail > Epiphany: succeeds! > > Oddly I can remove scheduled downtime with firefox. > > Any solutions come to mind ? > > I'm running Nagios on an AIX machine; the Apache instance is running as user > 'aweb' (which is a member of the 'nagios' group) and Nagios is running as > user 'nagios'. The permissions look like :- > > # ls -al > total 4.0K > drwsrwsr-x 2 aweb nagios 256 2005-05-23 10:46 . > drwxrwxr-x 4 nagios nagios 4.0K 2005-07-28 13:17 .. > prw-rw---- 1 aweb nagios 0 2005-07-28 13:15 nagios.cmd > > And the permissions were set to user nagios, group nagios previous ... with > the same symptoms. > > -- > Mike Meredith, Senior Informatics Officer > University of Portsmouth: Hostmaster, Postmaster and Security > Linux user #1615 (http://counter.li.org) > > > --__--__-- > > Message: 10 > From: Ralph.Grothe at itdz-berlin.de > To: nagios-users at lists.sourceforge.net > Date: Thu, 28 Jul 2005 14:54:31 +0200 > Subject: [Nagios-users] Is there a testing or debugging mode for nagios? > > Hello, > > this morning I received the contempt of my fellow admins because > nagios swamped their mailboxes > over night. > Well, it wasn't of course nagios' fault but mine > because I defined a template service wherein I referenced a > conact_groups that comprised all of us. > When later adding new services I simply forgot to override this > attribute with a contact group that contained only my mail > account (until I've come to terms with configuring). > > That's why I desperately miss a means to run a nagios daemon that > isn't scheduling the checks by itself > but rather by manual invocation. > I'd also wish to test out alerting and event handling myself by > raising events (e.g. to see where in the end the notification is > delivered to). > > Does nagios provide special utilities, or switches to support > (high level) debugging that way? > > Regards > > > --__--__-- > > Message: 11 > Subject: RE: [Nagios-users] notification suppression > Date: Thu, 28 Jul 2005 09:25:26 -0400 > From: "Scott Sugar" > To: "Miles Scruggs" , > > > This is a multi-part message in MIME format. > > ------_=_NextPart_001_01C59378.317DB69C > Content-Type: text/plain; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > Im not fully sure how to implement that. I have only usually worked = > with a dependency within a single host.... (ie. suppressing = > notifications for disk space and memory, if the host cannot be pinged... = > ) > I suggest you just really delve into the section of the manual that = > talks about service dependencies... > =20 > I am still going to be implementing a group of dependencies early next = > week and if i run across anything that i think might help you, ill post = > it back to the mailing list... > =20 > sorry, > scott > > ________________________________ > > From: nagios-users-admin at lists.sourceforge.net on behalf of Miles = > Scruggs > Sent: Wed 7/27/2005 4:47 PM > To: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] notification suppression > > > > > I want to monitor a host, but have it dependent on a group of hosts ie > google.com Microsoft.com etc, and if the host goes down, no = > notifications > will be sent out unless at least one of the hosts in that group is up = > (ie > there is connection to the internet for sure) > > Im not exactly sure what your trying to do.... > > > > is it that you have a group of hosts and if they all go down then only = > one > > should send a notification? > > > > or do you have a group of hosts and if one goes down in that group = > then > > none of the others should notify? > > > > im not sure what your trying to do.. > > > > the way the manual talks of what a dependant service is and what the > > service depending on it is a little bit confusing in my mind... I had = > to > > play around a bit until i figured it out.... Im going to be setting up = > a > > large group of dependencies... probably early next week so I'll have = > it > > fresh in my mind then.... > > > > > > > > : RE: [Nagios-users] notification suppression > > > > > > you could create a service dependency... make all the other services > > > dependent on the ping google.ca service.... > > > look here for more detail > > > http://nagios.sourceforge.net/docs/2_0/dependencies.html > > > while the documentation is a little sketchy for this stuff... i = > still > > > managed to figure it out after a bit... > > > > > > > Looks like host dependencies will work just fine, but what I need is a > > dependency on a group of hosts. So if anyone of the hosts in the = > group is > > online the dependency is met. Is this possible? > > > > What I'm seeing now is I could define various hosts/service = > dependencies, > > but if any one of those hosts/services failed the dependent would = > fail. > > > > Thanks > > > > Miles > > > > > > > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO = > September > 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & = > QA > Security * Process Improvement & Measurement * = > http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when = > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > > ------_=_NextPart_001_01C59378.317DB69C > Content-Type: text/html; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > charset=3Diso-8859-1">=0A= > =0A= > =0A= > =0A= > =0A= > 6.5.6944.0">=0A= > RE: [Nagios-users] notification suppression=0A= > =0A= > =0A= >

=0A= >
Im not fully = > sure how to =0A= > implement that.  I have only usually worked with a dependency = > within a =0A= > single host.... (ie. suppressing notifications for disk space and = > memory, if the =0A= > host cannot be pinged... )
=0A= >
I suggest you just really = > delve into the =0A= > section of the manual that talks about service = > dependencies...
=0A= >
 
=0A= >
I am still going to be = > implementing a group =0A= > of dependencies early next week and if i run across anything that i = > think might =0A= > help you, ill post it back to the mailing list...
=0A= >
 
=0A= >
sorry,
=0A= >
scott
=0A= >

=0A= >
=0A= > From: = > nagios-users-admin at lists.sourceforge.net =0A= > on behalf of Miles Scruggs
Sent: Wed 7/27/2005 4:47 = > PM
To: =0A= > nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] =0A= > notification suppression

=0A= >

=0A= >

I want to monitor a host, but have it dependent on a = > group of =0A= > hosts  ie
google.com Microsoft.com etc, and if the host goes = > down, no =0A= > notifications
will be sent out unless at least one of the hosts in = > that group =0A= > is up  (ie
there is connection to the internet for sure)
> = > Im not =0A= > exactly sure what your trying to do....
>
> is it that you = > have a =0A= > group of hosts and if they all go down then only one
> should send = > a =0A= > notification?
>
> or do you have a group of hosts and if one = > goes =0A= > down in that group then
> none of the others should =0A= > notify?
>
> im not sure what your trying to = > do..
>
> the =0A= > way the manual talks of what a dependant service is and what the
> = > service =0A= > depending on it is a little bit confusing in my mind... I had to
> = > play =0A= > around a bit until i figured it out.... Im going to be setting up = > a
> =0A= > large group of dependencies... probably early next week so I'll have = > it
> =0A= > fresh in my mind then....
>
>
>
> : RE: = > [Nagios-users] =0A= > notification suppression
> >
> > you could create a = > service =0A= > dependency... make all the other services
> > dependent on the = > ping =0A= > google.ca service....
> > look here for more detail
> = > > href=3D"http://nagios.sourceforge.net/docs/2_0/dependencies.html">http://= > nagios.sourceforge.net/docs/2_0/dependencies.html
> =0A= > > while the documentation is a little sketchy for this stuff... i =0A= > still
> > managed to figure it out after a bit...
> =0A= > >
>
> Looks like host dependencies will work just fine, = > but what =0A= > I need is a
> dependency on a group of hosts.  So if anyone = > of the =0A= > hosts in the group is
> online the dependency is met.  Is = > this =0A= > possible?
>
> What I'm seeing now is I could define various =0A= > hosts/service dependencies,
> but if any one of those = > hosts/services =0A= > failed the dependent would fail.
>
> Thanks
>
> =0A= > Miles
>
>
>




------------------------= > -------------------------------
SF.Net =0A= > email is Sponsored by the Better Software Conference & EXPO =0A= > September
19-22, 2005 * San Francisco, CA * Development Lifecycle =0A= > Practices
Agile & Plan-Driven Development * Managing Projects = > & Teams =0A= > * Testing & QA
Security * Process Improvement & Measurement * = > href=3D"http://www.sqe.com/bsce5sf">http://www.sqe.com/bsce5sf
___= > ____________________________________________
Nagios-users =0A= > mailing list
Nagios-users at lists.sourceforge.net
href=3D"https://lists.sourceforge.net/lists/listinfo/nagios-users">https:= > //lists.sourceforge.net/lists/listinfo/nagios-users
::: =0A= > Please include Nagios version, plugin version (-v) and OS when reporting = > any =0A= > issue.
::: Messages without supporting info will risk being sent to =0A= > /dev/null

=0A= > =0A= > =0A= > > ------_=_NextPart_001_01C59378.317DB69C-- > > > --__--__-- > > Message: 12 > Date: Thu, 28 Jul 2005 09:54:34 -0400 > From: "Christopher N. Carroll" > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nagios / RT Integration > > Hello all, > > I'm looking for information regarding the integration of Nagios and RT. > I found > http://lists.bestpractical.com/pipermail/rt-users/2005-June/031775.html > in my search but I was curious if anyone else was doing something along > these lines. I'm looking for anything that might help. > > Thanks, > > Noel Carroll > > > > --__--__-- > > Message: 13 > Subject: RE: [Nagios-users] notification suppression > Date: Thu, 28 Jul 2005 10:16:18 -0400 > From: "Mascardo, Erwin" > To: > > > > >-----Original Message----- > >From: nagios-users-admin at lists.sourceforge.net=20 > >[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of=20 > >Miles Scruggs > >Sent: Wednesday, 27 July, 2005 16:48 > >To: nagios-users at lists.sourceforge.net > >Subject: RE: [Nagios-users] notification suppression > > > > > > > >I want to monitor a host, but have it dependent on a group of hosts ie > >google.com Microsoft.com etc, and if the host goes down, no=20 > >notifications > >will be sent out unless at least one of the hosts in that=20 > >group is up (ie > >there is connection to the internet for sure) > > One way to do this sort of thing is to write a script that checks to see > if your selected hosts are alive. If just one is up, return 0 and a "the > Internet is up" message. If they're all unreachable, return 2 and a "the > Internet is down, time to panic" message. But don't make google.com and > friends monitored hosts in and of themselves. > > --Erwin > ############################################################ > > Intelsat is a global communications provider offering flexible and=20 > secure services to customers in over 220 countries and territories. =20 > Intelsat has maintained a leadership position for over 40 years by=20 > distributing video, voice, and data for television and content providers,= > =20 > government and military entities, major corporations, telecommunications = > carriers,=20 > and Internet service providers. Intelsat's reach, power and expanding sol= > utions=20 > portfolio deliver information reliably and quickly to every corner of the= > =20globe. =20 > > For more information, visit www.intelsat.com. > > ############################################################ > This email message is for the sole use of the intended > recipient(s) and may contain confidential and privileged > information. Any unauthorized review, use, disclosure or=20 > distribution is prohibited. If you are not the intended=20 > recipient, please contact the sender by reply email and=20 > destroy all copies of the original message. Any views=20 > expressed in this message are those of the individual=20 > sender, except where the sender specifically states them=20 > to be the views of Intelsat, Ltd. and its subsidiaries. > ############################################################ > > > --__--__-- > > Message: 14 > Date: Thu, 28 Jul 2005 10:53:06 -0400 > From: "Erik van de Pol" > To: > Subject: [Nagios-users] Monitoring systems on disconnected networks? > > This is a multi-part message in MIME format. > > ------_=_NextPart_001_01C59384.103B0C83 > Content-Type: text/plain; > charset="US-ASCII" > Content-Transfer-Encoding: quoted-printable > > Hello, > =20 > We are looking at nagios for monitoring our various systems. One of our > complications is that a number of these systems will not be routable > from time to time (this is because of VPN policy outside of our > control). During those periods (possibly several hours long), the > cluster of machines is disconnected from our network and not routable.=20 > =20 > One solution I can think of is to have a simple wire-protocol that > transfers nagios requests (or ncsa data) not over a network connections, > but for instance a simple serial interface (the machines that server the > disconnected networks are in the same room). I could imagine building an > adaptation of ncsa/send_ncsa or nrpe that does not use network sockets, > but a different interface (such as serial). The development work is not > the problem for me, but I would like get some feedback on whether this > is a feasible or sensible approach.. > =20 > Has such a thing already be attempted? Other solution that people have > found for similar situations? Any pointers and thoughts are much > appreciated! > =20 > Thanks, > Erik van de Pol > =20 > > ------_=_NextPart_001_01C59384.103B0C83 > Content-Type: text/html; > charset="US-ASCII" > Content-Transfer-Encoding: quoted-printable > > > > charset=3Dus-ascii"> > > >
size=3D2>Hello,
>
size=3D2> 
>
We are = > looking at=20 > nagios for monitoring our various systems. One of our complications is = > that a=20 > number of these systems will not be routable from time to time (this is = > because=20 > of VPN policy outside of our control). During those periods (possibly = > several=20 > hours long), the cluster of machines is disconnected from our network = > and not=20 > routable. 
>
size=3D2> 
>
One = > solution I can=20 > think of is to have a simple wire-protocol that transfers nagios = > requests (or=20 > ncsa data) not over a network connections, but for instance a simple = > serial=20 > interface (the machines that server the disconnected networks are in the = > same=20 > room). I could imagine building an adaptation of ncsa/send_ncsa or nrpe = > that=20 > does not use network sockets, but a different interface (such as = > serial). The=20 > development work is not the problem for me, but I would like get some = > feedback=20 > on whether this is a feasible or sensible approach..
>
size=3D2> 
>
Has = > such a thing=20 > already be attempted? Other solution that people have found for similar=20 > situations? Any pointers and thoughts are much = > appreciated!
>
size=3D2> 
>
size=3D2>Thanks,
>
Erik = > van de=20 > Pol
>
size=3D2> 
> > ------_=_NextPart_001_01C59384.103B0C83-- > > > --__--__-- > > Message: 15 > Subject: RE: [Nagios-users] Is there a testing or debugging mode for nagios? > Date: Thu, 28 Jul 2005 07:53:33 -0700 > From: "Nathan Oyler" > To: , > > > > Hello, > > > [Nathan Oyler]=20 > > Hey Ralph, > =20 > > this morning I received the contempt of my fellow admins because > > nagios swamped their mailboxes > > over night. > > Well, it wasn't of course nagios' fault but mine > > because I defined a template service wherein I referenced a > > conact_groups that comprised all of us. > > When later adding new services I simply forgot to override this > > attribute with a contact group that contained only my mail > > account (until I've come to terms with configuring). > >=20 > [Nathan Oyler]=20 > > Ahh, I remember doing things similar to that. Good times. > > I ended up making a second nagios instance where I test out new ideas > before I put them into production. It was an exact replica of the > production system (updated every time I wanted to do something), but > with my as a contact for everything, so only I'd get hit with my > mistakes. It seemed pretty silly testing some very simple adds of > services first, but I never had an issue like that happen again. > > I use a tool called Ntray which can be found on nagiosexchange.org which > shows me a constantly updated little icon of my Nagios instance. That > way I can watch what is going on before everyone is hit with tons of > messages. I used to catch my mistakes before anyone noticed, now I catch > problems before anyone else, and the fast response doesn't hurt either. > > Finally, writing tools to add, and remove hosts was just awesome. Now I > don't miss adding something because I don't have to think about it. I > didn't know anything about perl, but for parsing Nagios config files, > it's not bad to learn. I'd suggest it for anyone with a little time on > their hands. > > I haven't had any problems like that in a quite awhile. > > It's not High Level debugging utilities, but I thought it might help you > out. I was frustrated at first, but Nagios makes my job so much easier > now. > > -Nathan > > > > > --__--__-- > > Message: 16 > Subject: RE: [Nagios-users] Nagios 2.0b3 still buggy? > Date: Thu, 28 Jul 2005 10:00:07 -0500 > From: "Marc Powell" > To: > > > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of Ralph.Grothe at itdz-berlin.de > > Sent: Thursday, July 28, 2005 4:12 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Nagios 2.0b3 still buggy? > >=20 > > Hello, > >=20 > > recently I noticed a minor "flame" between Nagios > > hackers/patchers going on here > > where one party raised concerns that release 2.X not being fit > > for production usage yet? > > It's still beta. Ethan has indicated on numerous occasions that if you > run 2.0, expect problems. Quoting an e-mail from Ethan on 3/23/2005 -- > > "First, I would still consider 2.0 as being beta software - that's why=20 > its labeled as such. While no major changes will be made to either=20 > the configuration files or functionality before a "stable" 2.0 is=20 > released, I do expect that a few major nasty bugs will be discovered=20 > within the current code. If you're running the 2.0 code while its in=20 > beta, consider yourself a test subject. :-)" > > As of that e-mail it was expected that it might be out of beta by the > end of June. Obviously we're past that but there hasn't been an official > release yet so we're still in beta mode. Many people have successfully > been running 2.x in production environments for some time. Others have > experienced problems. YMMV. > =20 > > As I'm experiencing quite some bizarre behaviour of my Nagios > > setup, > > that I rather blamed on my lack of Nagios configuration skills, > > I now wonder if it couldn't also be at least partly based on the > > release 2.0b3 I am using. > >=20 > > Could it be this one is still a bit "immature" or buggy, and > > would it be advisable to downgrade to a > > "stable" release until I've got my basic stuff working as > > desired? > > That's what _I_ would do but to each his own. Do what you're comfortable > with. If you're monitoring mission critical applications and you > absolutely can't deal with bugs in your monitoring software, use 1.x. > =20 > > For instance, did I alway wonder why my running nagios daemon > > didn't continue processing > > after it caught a SIGHUP. > > It reported to nagios.log that it caught the signal and was > > reinitializing, > > but then no more appeared nor happened. > > That sounds like it might be a bug. Maybe someone else running 2.x can > reproduce it? > > -- > Marc > > > --__--__-- > > Message: 17 > Date: Thu, 28 Jul 2005 15:05:16 +0000 > From: Christian Theil Have > Reply-To: Christian Theil Have > To: "Ralph.Grothe at itdz-berlin.de" > Subject: Re: [Nagios-users] Is there a testing or debugging mode for nagios? > Cc: nagios-users at lists.sourceforge.net > > Hi > > I haven't heard of such tools, but here's a couple of ideas: > > You could provoke a state by submitting passive check results instead > of actively performing checks. Combined with active_checks_enabled =3D > 0, this would defeat nagios scheduling... > Take a look at: http://nagios.sourceforge.net/docs/1_0/passivechecks.html > > You could have something like a top-level service template with > active_checks_enabled =3D 0 for testing... > > Also, you could change the notification command used. Your contacts > have service_notification_commands and host_notification_commands. > Just make them point to your test notification-command instead. > > Hope this was helpful. > > Regards, > Christian. > > On 7/28/05, Ralph.Grothe at itdz-berlin.de wrote= > : > > Hello, > >=20 > > this morning I received the contempt of my fellow admins because > > nagios swamped their mailboxes > > over night. > > Well, it wasn't of course nagios' fault but mine > > because I defined a template service wherein I referenced a > > conact_groups that comprised all of us. > > When later adding new services I simply forgot to override this > > attribute with a contact group that contained only my mail > > account (until I've come to terms with configuring). > >=20 > > That's why I desperately miss a means to run a nagios daemon that > > isn't scheduling the checks by itself > > but rather by manual invocation. > > I'd also wish to test out alerting and event handling myself by > > raising events (e.g. to see where in the end the notification is > > delivered to). > >=20 > > Does nagios provide special utilities, or switches to support > > (high level) debugging that way? > >=20 > > Regards > >=20 > >=20 > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & EXPO Septem= > ber > > 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & Q= > A > > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when report= > ing any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > --__--__-- > > Message: 18 > Date: Thu, 28 Jul 2005 12:31:07 -0300 > From: flima at rio-de-janeiro.oilfield.slb.com (Fernando Gomes Lima) > Subject: RE: [Nagios-users] Good vendor for Nagios setup? > To: Daniel Deremiah , > Nagios Users > Reply-to: flima at rio-de-janeiro.oilfield.slb.com > > Daniel, at Nagios.org you can find some companies that work with it. > > While in Angola I implemented a demo project to our customer. I'm not sure > if the bought the idea once I leave Angola few days later. > > cheers, > Fernando Lima > Schlumberger > Security Engineer > flima at slb.com > > Office: +55 21 3824 6954 > Mobile. : +55 21 9888 9046 > (GMT: -03:00) > > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Daniel > Deremiah > Sent: Wednesday, July 27, 2005 4:50 PM > To: Nagios Users > Subject: [Nagios-users] Good vendor for Nagios setup? > > > Since Nagios is complicated, but does have a good reputation, I am looking > for a vendor that will do a demo and then after budget approved > install/setup. Does anyone have recommendations? Or possibly a working > Nagios setup that I could show off to get manager buy-in? > > -- > -dand > > Phone: 510-749-2033 AIM : danderemiah > Pager: dandy-pager at shadowware.com > ----------------------------------------------------- > There are 10 kinds of people in the world. > Those who understand binary numbers and those who don't. > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO September > 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > > > > --__--__-- > > Message: 19 > To: "Andrew Cruse" > cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Monitoring i2o RAID arrays > Date: Thu, 28 Jul 2005 10:50:27 -0500 > From: rader at ginseng.hep.wisc.edu > > > > ---- Original Message ---- > > From: "Andrew Cruse" > > Has anyone come up with a good way to monitor the status of an i2o RAID > > array? (Adaptec's new(er) RAID controllers) I've found the check_dpti.pl > > plugin which works ok, but really only lets you know if the RAID goes > > offline. I'm looking for a way to alert if the RAID goes into degraded > > mode in the event of a failed drive, but is still online and functional. > > ftp://noc.hep.wisc.edu/pub/src/nagios/ > > steve > - - - > > cmsdcache01(rader): sudo /usr/dpt/raidutil -L raid > Address Type Manufacturer/Model Capacity Status > --------------------------------------------------------------------------- > d0b0t0d0 RAID 1 (Mirrored) ADAPTEC RAID-1 190782MB Optimal > d0b0t0d0 Disk Drive (DASD) WDC WD2000JB-00FUA0190782MB Optimal > d0b1t0d0 Disk Drive (DASD) WDC WD2000JB-00FUA0190782MB Optimal > > cmsdcache01(rader): check_dpt_raid > OK - d0b0t0d0 optimal > > s1n01(rader): sudo /usr/dpt/raidutil -L raid > Address Type Manufacturer/Model Capacity Status > --------------------------------------------------------------------------- > d0b0t0d0 RAID 5 (Redundant ADAPTEC RAID-5 210021MB Degraded > d0b0t0d0 Disk Drive (DASD) SEAGATE ST173404LW 70007MB Optimal > d0b0t1d0 Disk Drive (DASD) SEAGATE ST173404LW 70007MB Optimal > d0b1t2d0 Disk Drive (DASD) SEAGATE ST173404LW 70007MB Optimal > d0b1t3d0 Disk Drive (DASD) UNKNOWN --UNKNOWN-- 0MB Missing > > s1n01(rader): check_dpt_raid > CRITICAL - d0b0t0d0 degraded > > > > --__--__-- > > Message: 20 > Subject: RE: [Nagios-users] Nagios 2.0b3 still buggy? > From: Dave Augustus > To: nagios-users at lists.sourceforge.net > Date: Thu, 28 Jul 2005 10:51:36 -0500 > > This is a test subject just chiming in here that we are using v2.03b3 > and it is working great. We are monitoring about 10 servers/141 services > using both network connections and nrpe. > > All on linux. > > Also, the NagiosQL is a great app for setting up and configuring. It > covers most of the functionality and has helped tremendously in > deploying Nagios. > > As a n00b to nagios, I would say we are NOT using the advanced features > of Service Groups, escalations and such. However, our Windows admins are > happy to get a glimpse of what Nagios can do. They are sold on it and we > will deploying a larger Nagios install for monitoring our Windows and > VmWare servers. > > *test subject* > Dave Augustus > Kenneth Copeland Ministries > > On Thu, 2005-07-28 at 10:00 -0500, Marc Powell wrote: > > > > > -----Original Message----- > > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > > admin at lists.sourceforge.net] On Behalf Of Ralph.Grothe at itdz-berlin.de > > > Sent: Thursday, July 28, 2005 4:12 AM > > > To: nagios-users at lists.sourceforge.net > > > Subject: [Nagios-users] Nagios 2.0b3 still buggy? > > > > > > Hello, > > > > > > recently I noticed a minor "flame" between Nagios > > > hackers/patchers going on here > > > where one party raised concerns that release 2.X not being fit > > > for production usage yet? > > > > It's still beta. Ethan has indicated on numerous occasions that if you > > run 2.0, expect problems. Quoting an e-mail from Ethan on 3/23/2005 -- > > > > "First, I would still consider 2.0 as being beta software - that's why > > its labeled as such. While no major changes will be made to either > > the configuration files or functionality before a "stable" 2.0 is > > released, I do expect that a few major nasty bugs will be discovered > > within the current code. If you're running the 2.0 code while its in > > beta, consider yourself a test subject. :-)" > > > > As of that e-mail it was expected that it might be out of beta by the > > end of June. Obviously we're past that but there hasn't been an official > > release yet so we're still in beta mode. Many people have successfully > > been running 2.x in production environments for some time. Others have > > experienced problems. YMMV. > > > > > As I'm experiencing quite some bizarre behaviour of my Nagios > > > setup, > > > that I rather blamed on my lack of Nagios configuration skills, > > > I now wonder if it couldn't also be at least partly based on the > > > release 2.0b3 I am using. > > > > > > Could it be this one is still a bit "immature" or buggy, and > > > would it be advisable to downgrade to a > > > "stable" release until I've got my basic stuff working as > > > desired? > > > > That's what _I_ would do but to each his own. Do what you're comfortable > > with. If you're monitoring mission critical applications and you > > absolutely can't deal with bugs in your monitoring software, use 1.x. > > > > > For instance, did I alway wonder why my running nagios daemon > > > didn't continue processing > > > after it caught a SIGHUP. > > > It reported to nagios.log that it caught the signal and was > > > reinitializing, > > > but then no more appeared nor happened. > > > > That sounds like it might be a bug. Maybe someone else running 2.x can > > reproduce it? > > > > -- > > Marc > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & EXPO > September > > 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > --__--__-- > > Message: 21 > Date: Thu, 28 Jul 2005 09:05:02 -0700 > From: Jim B > Reply-To: Jim B > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] cleaning out nagios pending messages to be sent > > ------=_Part_1711_29200661.1122566702075 > Content-Type: text/plain; charset=ISO-8859-1 > Content-Transfer-Encoding: quoted-printable > Content-Disposition: inline > > I have looked in the mail ques for postfix and sendmail; I do not exim=20 > installed, although I am not sure which mta nagios is using but I keep=20 > getting old messages (send to me via email). Before the messages go to the= > =20 > mailques where are they in nagios so I can delete them? > > Since the ques are empty but I keep getting old messages it would seem that= > =20 > nagios has some old alerts that it is sending to my mail ques but I need to= > =20 > delete them before they get to the que beccuase once they go to the que the= > y=20 > are sent out via smtp before I can not stop them. > > > Jim > > On 7/27/05, Jim B wrote: > >=20 > > How can I determine which mta I am using? > >=20 > > Jim > >=20 > > On 7/27/05, Terry L. Inzauro wrote: > > >=20 > > > Jim B wrote: > > > > I want to delete all pending alerts for nagios so that I can have=20 > > > nagios > > > > only send out future alerts and not old alerts, the system did not=20 > > > have > > > > a network connection for a bit so it has a lot of alerts it wants to= > =20 > > > > send out. > > > > > > > > What is the best way to do this? > > > > > > > > > > > > Jim > > >=20 > > > sendmail =3D=3D just delete the contents of the queue directory (like > > > /var/spool/mqueue or something like that > > > postfix =3D=3D man postsuper=20 > > > qmail =3D=3D ?? > > >=20 > > >=20 > > > /* Terry Inzauro > > > * Omaha Office: > > > * http://storsolgroup.com > > > * http://ha-solutions.net > > > */ > > >=20 > >=20 > > > > ------=_Part_1711_29200661.1122566702075 > Content-Type: text/html; charset=ISO-8859-1 > Content-Transfer-Encoding: quoted-printable > Content-Disposition: inline > > I have looked in the mail ques for postfix and sendmail; I do not exim > installed, although I am not sure which mta nagios is using but I keep > getting old messages (send to me via email). Before the messages go to > the mailques where are they in nagios so I can delete them?
>
> Since the ques are empty but I keep getting old messages it would seem > that nagios has some old alerts that it is sending to my mail ques but > I need to delete them before they get to the que beccuase once they go > to the que they are sent out via smtp before I can not stop them.
>
>
> Jim

On 7/27/05, endername">Jim B <elemint at gmail= > .com> wrote:
-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-lef= > t: 1ex;"> > How can I determine which mta I am using?
>
> Jim


<= > span class=3D"gmail_quote">On 7/27/05, Terry = > L. Inzauro < blank" onclick=3D"return top.js.OpenExtLink(window,event,this)"> > tinzauro at ha-solutions.net> wrote:
uote" style=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0= > pt 0.8ex; padding-left: 1ex;"> > Jim B wrote:
> I want to delete all pending alerts for nagios so that= > I can have nagios
> only send out future alerts and not old alerts, = > the system did not have
> a network connection for a bit so it has a = > lot of alerts it wants to >
> send out.
>
> What is the best way to do this?
>= >
>
> Jim

sendmail =3D=3D just delete the contents of the= > queue directory (like
/var/spool/mqueue or something like that
postf= > ix =3D=3D man postsuper >
qmail =3D=3D ??


/*  Terry Inzauro
*  = > Omaha Office:
*   =3D"_blank" onclick=3D"return top.js.OpenExtLink(window,event,this)">http:/= > /storsolgroup.com
*   target=3D"_blank" onclick=3D"return top.js.OpenExtLink(window,event,this)"> > http://ha-solutions.net
*/
>

> >

> > ------=_Part_1711_29200661.1122566702075-- > > > --__--__-- > > Message: 22 > Subject: RE: [Nagios-users] Nagios 2.0b3 still buggy? > Date: Thu, 28 Jul 2005 12:27:22 -0400 > From: "Scott Sugar" > To: > > This is a multi-part message in MIME format. > > ------_=_NextPart_001_01C59391.3B90AB13 > Content-Type: text/plain; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > I have to agree that Nagios 2.0b3 is reasonably stable. > I am currently monitoring 5 different customers sites with a nagios = > 2.0b3 box at each site and a central nagios 2.0b3 box. I have over 70 = > remote hosts being monitored and over 250 services without problem... I = > am using NRPE_NT on each windows server, which is working great on = > servers ranging from NT 4 to Server 2003, NSCA to pass back passive = > checks to the central box, service escalations and dependencies on the = > central box as well... I know that there are people that are watching = > alot more than me and are running fine.. while I have experienced some = > hardships getting everything configured I do not believe that nagios = > 2.0b3 is a buggy program... at least any more than most programs are...=20 > > ________________________________ > > From: nagios-users-admin at lists.sourceforge.net on behalf of Dave = > Augustus > Sent: Thu 7/28/2005 11:51 AM > To: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Nagios 2.0b3 still buggy? > > > > This is a test subject just chiming in here that we are using v2.03b3 > and it is working great. We are monitoring about 10 servers/141 services > using both network connections and nrpe. > > All on linux. > > Also, the NagiosQL is a great app for setting up and configuring. It > covers most of the functionality and has helped tremendously in > deploying Nagios. > > As a n00b to nagios, I would say we are NOT using the advanced features > of Service Groups, escalations and such. However, our Windows admins are > happy to get a glimpse of what Nagios can do. They are sold on it and we > will deploying a larger Nagios install for monitoring our Windows and > VmWare servers. > > *test subject* > Dave Augustus > Kenneth Copeland Ministries > > On Thu, 2005-07-28 at 10:00 -0500, Marc Powell wrote: > > > > > -----Original Message----- > > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > > admin at lists.sourceforge.net] On Behalf Of = > Ralph.Grothe at itdz-berlin.de > > > Sent: Thursday, July 28, 2005 4:12 AM > > > To: nagios-users at lists.sourceforge.net > > > Subject: [Nagios-users] Nagios 2.0b3 still buggy? > > > > > > Hello, > > > > > > recently I noticed a minor "flame" between Nagios > > > hackers/patchers going on here > > > where one party raised concerns that release 2.X not being fit > > > for production usage yet? > > > > It's still beta. Ethan has indicated on numerous occasions that if you > > run 2.0, expect problems. Quoting an e-mail from Ethan on 3/23/2005 -- > > > > "First, I would still consider 2.0 as being beta software - that's why > > its labeled as such. While no major changes will be made to either > > the configuration files or functionality before a "stable" 2.0 is > > released, I do expect that a few major nasty bugs will be discovered > > within the current code. If you're running the 2.0 code while its in > > beta, consider yourself a test subject. :-)" > > > > As of that e-mail it was expected that it might be out of beta by the > > end of June. Obviously we're past that but there hasn't been an = > official > > release yet so we're still in beta mode. Many people have successfully > > been running 2.x in production environments for some time. Others have > > experienced problems. YMMV. > >=20 > > > As I'm experiencing quite some bizarre behaviour of my Nagios > > > setup, > > > that I rather blamed on my lack of Nagios configuration skills, > > > I now wonder if it couldn't also be at least partly based on the > > > release 2.0b3 I am using. > > > > > > Could it be this one is still a bit "immature" or buggy, and > > > would it be advisable to downgrade to a > > > "stable" release until I've got my basic stuff working as > > > desired? > > > > That's what _I_ would do but to each his own. Do what you're = > comfortable > > with. If you're monitoring mission critical applications and you > > absolutely can't deal with bugs in your monitoring software, use 1.x. > >=20 > > > For instance, did I alway wonder why my running nagios daemon > > > didn't continue processing > > > after it caught a SIGHUP. > > > It reported to nagios.log that it caught the signal and was > > > reinitializing, > > > but then no more appeared nor happened. > > > > That sounds like it might be a bug. Maybe someone else running 2.x can > > reproduce it? > > > > -- > > Marc > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & EXPO = > September > > 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > > Agile & Plan-Driven Development * Managing Projects & Teams * Testing = > & QA > > Security * Process Improvement & Measurement * = > http://www.sqe.com/bsce5sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when = > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO = > September > 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & = > QA > Security * Process Improvement & Measurement * = > http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when = > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > > ------_=_NextPart_001_01C59391.3B90AB13 > Content-Type: text/html; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > charset=3Diso-8859-1">=0A= > =0A= > =0A= > =0A= > =0A= > 6.5.6944.0">=0A= > RE: [Nagios-users] Nagios 2.0b3 still buggy?=0A= > =0A= > =0A= >
=0A= >
I have to = > agree that Nagios =0A= > 2.0b3 is reasonably stable.
=0A= >
I am currently monitoring 5 = > different =0A= > customers sites with a nagios 2.0b3 box at each site and a central = > nagios 2.0b3 =0A= > box.  I have over 70 remote hosts being monitored and over 250 = > services =0A= > without problem... I am using NRPE_NT on each windows server, which is = > working =0A= > great on servers ranging from NT 4 to Server 2003, NSCA to pass back = > passive =0A= > checks to the central box, service escalations and dependencies on the = > central =0A= > box as well... I know that there are people that are watching alot more = > than me =0A= > and are running fine.. while I have experienced some hardships = > getting =0A= > everything configured I do not believe that nagios 2.0b3 is a buggy = > program... =0A= > at least any more than most programs are...
=0A= >

=0A= >
=0A= > From: = > nagios-users-admin at lists.sourceforge.net =0A= > on behalf of Dave Augustus
Sent: Thu 7/28/2005 11:51 = > AM
To: =0A= > nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] = > Nagios =0A= > 2.0b3 still buggy?

=0A= >
=0A= >

This is a test subject just chiming in here that we = > are using =0A= > v2.03b3
and it is working great. We are monitoring about 10 = > servers/141 =0A= > services
using both network connections and nrpe.

All on =0A= > linux.

Also, the NagiosQL is a great app for setting up and = > configuring. =0A= > It
covers most of the functionality and has helped tremendously =0A= > in
deploying Nagios.

As a n00b to nagios, I would say we are = > NOT using =0A= > the advanced features
of Service Groups, escalations and such. = > However, our =0A= > Windows admins are
happy to get a glimpse of what Nagios can do. They = > are =0A= > sold on it and we
will deploying a larger Nagios install for = > monitoring our =0A= > Windows and
VmWare servers.

*test subject*
Dave = > Augustus
Kenneth =0A= > Copeland Ministries

On Thu, 2005-07-28 at 10:00 -0500, Marc = > Powell =0A= > wrote:
>
> > -----Original Message-----
> > = > From: =0A= > nagios-users-admin at lists.sourceforge.net [ href=3D"mailto:nagios-users-">mailto:nagios-users-
> > =0A= > admin at lists.sourceforge.net] On Behalf Of = > Ralph.Grothe at itdz-berlin.de
> =0A= > > Sent: Thursday, July 28, 2005 4:12 AM
> > To: =0A= > nagios-users at lists.sourceforge.net
> > Subject: [Nagios-users] = > Nagios =0A= > 2.0b3 still buggy?
> >
> > Hello,
> >
> = > > =0A= > recently I noticed a minor "flame" between Nagios
> > = > hackers/patchers =0A= > going on here
> > where one party raised concerns that release = > 2.X not =0A= > being fit
> > for production usage yet?
>
> It's = > still =0A= > beta. Ethan has indicated on numerous occasions that if you
> run = > 2.0, =0A= > expect problems. Quoting an e-mail from Ethan on 3/23/2005 = > --
>
> =0A= > "First, I would still consider 2.0 as being beta software - that's = > why
> =0A= > its labeled as such. While no major changes will be made to = > either
> the =0A= > configuration files or functionality before a "stable" 2.0 is
> = > released, =0A= > I do expect that a few major nasty bugs will be discovered
> = > within the =0A= > current code.  If you're running the 2.0 code while its in
> = > beta, =0A= > consider yourself a test subject.  :-)"
>
> As of that = > e-mail =0A= > it was expected that it might be out of beta by the
> end of June. =0A= > Obviously we're past that but there hasn't been an official
> = > release yet =0A= > so we're still in beta mode. Many people have successfully
> been = > running =0A= > 2.x in production environments for some time. Others have
> = > experienced =0A= > problems. YMMV.

> > As I'm experiencing quite = > some =0A= > bizarre behaviour of my Nagios
> > setup,
> > that I = > rather =0A= > blamed on my lack of Nagios configuration skills,
> > I now = > wonder if =0A= > it couldn't also be at least partly based on the
> > release = > 2.0b3 I am =0A= > using.
> >
> > Could it be this one is still a bit = > "immature" =0A= > or buggy, and
> > would it be advisable to downgrade to = > a
> > =0A= > "stable" release until I've got my basic stuff working as
> > =0A= > desired?
>
> That's what _I_ would do but to each his own. = > Do what =0A= > you're comfortable
> with. If you're monitoring mission critical =0A= > applications and you
> absolutely can't deal with bugs in your = > monitoring =0A= > software, use 1.x.

> > For instance, did I alway = > wonder =0A= > why my running nagios daemon
> > didn't continue = > processing
> =0A= > > after it caught a SIGHUP.
> > It reported to nagios.log = > that it =0A= > caught the signal and was
> > reinitializing,
> > but = > then no =0A= > more appeared nor happened.
>
> That sounds like it might be = > a bug. =0A= > Maybe someone else running 2.x can
> reproduce it?
>
> =0A= > --
> Marc
>
>
> =0A= > -------------------------------------------------------
> SF.Net = > email is =0A= > Sponsored by the Better Software Conference & EXPO September
> = > 19-22, =0A= > 2005 * San Francisco, CA * Development Lifecycle Practices
> Agile = > & =0A= > Plan-Driven Development * Managing Projects & Teams * Testing & =0A= > QA
> Security * Process Improvement & Measurement * href=3D"http://www.sqe.com/bsce5sf">http://www.sqe.com/bsce5sf
>= > ; =0A= > _______________________________________________
> Nagios-users = > mailing =0A= > list
> Nagios-users at lists.sourceforge.net
> href=3D"https://lists.sourceforge.net/lists/listinfo/nagios-users">https:= > //lists.sourceforge.net/lists/listinfo/nagios-users
> =0A= > ::: Please include Nagios version, plugin version (-v) and OS when = > reporting any =0A= > issue.
> ::: Messages without supporting info will risk being sent = > to =0A= > /dev/null



------------------------------------------------= > -------
SF.Net =0A= > email is Sponsored by the Better Software Conference & EXPO =0A= > September
19-22, 2005 * San Francisco, CA * Development Lifecycle =0A= > Practices
Agile & Plan-Driven Development * Managing Projects = > & Teams =0A= > * Testing & QA
Security * Process Improvement & Measurement * = > href=3D"http://www.sqe.com/bsce5sf">http://www.sqe.com/bsce5sf
___= > ____________________________________________
Nagios-users =0A= > mailing list
Nagios-users at lists.sourceforge.net
href=3D"https://lists.sourceforge.net/lists/listinfo/nagios-users">https:= > //lists.sourceforge.net/lists/listinfo/nagios-users
::: =0A= > Please include Nagios version, plugin version (-v) and OS when reporting = > any =0A= > issue.
::: Messages without supporting info will risk being sent to =0A= > /dev/null

=0A= > =0A= > =0A= > > ------_=_NextPart_001_01C59391.3B90AB13-- > > > --__--__-- > > Message: 23 > Subject: RE: [Nagios-users] cleaning out nagios pending messages to be sent > Date: Thu, 28 Jul 2005 12:00:46 -0500 > From: "Marc Powell" > To: > > > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of Jim B > > Sent: Thursday, July 28, 2005 11:05 AM > > To: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] cleaning out nagios pending messages to be > > sent > >=20 > > I have looked in the mail ques for postfix and sendmail; I do not exim > > installed, although I am not sure which mta nagios is using but I keep > > getting old messages (send to me via email). Before the messages go to > the > > mailques where are they in nagios so I can delete them? > > They aren't held by nagios at all. They're sent to your local MTA in > real time using your designated host/service notify-by-email command. If > your mta doesn't respond they're just dropped. The only possible > exception is if your designated host/service notify-by-email commands > are still running for those old messages. Use ps to check. This is > _extremely_ unlikely and they're almost certainly in your MTA's mail > queue as nagios has built-in timeouts to kill those outstanding > notification processes (notification_timeout=3D30). > > >=20 > > Since the ques are empty but I keep getting old messages it would seem > > that nagios has some old alerts that it is sending to my mail ques but > I > > need to delete them before they get to the que beccuase once they go > to > > the que they are sent out via smtp before I can not stop them. > > Just to clarify, when you say they are old, are you indicating that the > timestamp in the body of the e-mail is from some time in the past or > you're getting alerts for services that were down but have now recovered > and the timestamp is recent. > > -- > Marc > > > --__--__-- > > Message: 24 > Subject: RE: [Nagios-users] cleaning out nagios pending messages to be sent > Date: Thu, 28 Jul 2005 12:14:30 -0500 > From: "Marc Powell" > To: > > > > > -----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, July 28, 2005 12:01 PM > > To: nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] cleaning out nagios pending messages to be > > sent > >=20 > >=20 > >=20 > > > -----Original Message----- > > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > > admin at lists.sourceforge.net] On Behalf Of Jim B > > > Sent: Thursday, July 28, 2005 11:05 AM > > > To: nagios-users at lists.sourceforge.net > > > Subject: Re: [Nagios-users] cleaning out nagios pending messages to > be > > > sent > > > > > > I have looked in the mail ques for postfix and sendmail; I do not > exim > > > installed, although I am not sure which mta nagios is using but I > keep > > > getting old messages (send to me via email). Before the messages go > to > > the > > > mailques where are they in nagios so I can delete them? > >=20 > > They aren't held by nagios at all. They're sent to your local MTA in > > real time using your designated host/service notify-by-email command. > If > > your mta doesn't respond they're just dropped. The only possible > > exception is if your designated host/service notify-by-email commands > > are still running for those old messages. Use ps to check. This is > > _extremely_ unlikely and they're almost certainly in your MTA's mail > > queue as nagios has built-in timeouts to kill those outstanding > > notification processes (notification_timeout=3D30). > > Ack, I forgot to say that you should look at the headers for the > messages you are getting, specifically the Received: lines and their > timestamps. That'll tell you where they've been held at each step and > for how long. > > -- > Marc > > > --__--__-- > > Message: 25 > Subject: RE: [Nagios-users] Nagios 2.0b3 still buggy? > Date: Thu, 28 Jul 2005 10:29:19 -0700 > From: "EXT-Fuentes, James P" > To: > > Same here - no real problems that I can report. > =20 > When I first began working with Nagios, I contacted a former colleague = > for some tips on getting started. He raised eyebrows over the fact that = > I was using beta code. > =20 > Granted, I'm running a relatively small operation w/ 480 services for = > 144 hosts, nothing real tricky, just standard plugins and a few home = > grown plugins. > =20 > I've worked with a few "official releases" from commercial vendors that = > were absolutely horrendous. > =20 > -Jim > > ________________________________ > > From: Scott Sugar [mailto:ssugar at proserveit.com] > Sent: Thu 7/28/2005 9:27 AM > To: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Nagios 2.0b3 still buggy? > > > I have to agree that Nagios 2.0b3 is reasonably stable. > I am currently monitoring 5 different customers sites with a nagios = > 2.0b3 box at each site and a central nagios 2.0b3 box. I have over 70 = > remote hosts being monitored and over 250 services without problem... I = > am using NRPE_NT on each windows server, which is working great on = > servers ranging from NT 4 to Server 2003, NSCA to pass back passive = > checks to the central box, service escalations and dependencies on the = > central box as well... I know that there are people that are watching = > alot more than me and are running fine.. while I have experienced some = > hardships getting everything configured I do not believe that nagios = > 2.0b3 is a buggy program... at least any more than most programs are...=20 > > ________________________________ > > From: nagios-users-admin at lists.sourceforge.net on behalf of Dave = > Augustus > Sent: Thu 7/28/2005 11:51 AM > To: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Nagios 2.0b3 still buggy? > > > > This is a test subject just chiming in here that we are using v2.03b3 > and it is working great. We are monitoring about 10 servers/141 services > using both network connections and nrpe. > > All on linux. > > Also, the NagiosQL is a great app for setting up and configuring. It > covers most of the functionality and has helped tremendously in > deploying Nagios. > > As a n00b to nagios, I would say we are NOT using the advanced features > of Service Groups, escalations and such. However, our Windows admins are > happy to get a glimpse of what Nagios can do. They are sold on it and we > will deploying a larger Nagios install for monitoring our Windows and > VmWare servers. > > *test subject* > Dave Augustus > Kenneth Copeland Ministries > > On Thu, 2005-07-28 at 10:00 -0500, Marc Powell wrote: > > > > > -----Original Message----- > > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > > admin at lists.sourceforge.net] On Behalf Of = > Ralph.Grothe at itdz-berlin.de > > > Sent: Thursday, July 28, 2005 4:12 AM > > > To: nagios-users at lists.sourceforge.net > > > Subject: [Nagios-users] Nagios 2.0b3 still buggy? > > > > > > Hello, > > > > > > recently I noticed a minor "flame" between Nagios > > > hackers/patchers going on here > > > where one party raised concerns that release 2.X not being fit > > > for production usage yet? > > > > It's still beta. Ethan has indicated on numerous occasions that if you > > run 2.0, expect problems. Quoting an e-mail from Ethan on 3/23/2005 -- > > > > "First, I would still consider 2.0 as being beta software - that's why > > its labeled as such. While no major changes will be made to either > > the configuration files or functionality before a "stable" 2.0 is > > released, I do expect that a few major nasty bugs will be discovered > > within the current code. If you're running the 2.0 code while its in > > beta, consider yourself a test subject. :-)" > > > > As of that e-mail it was expected that it might be out of beta by the > > end of June. Obviously we're past that but there hasn't been an = > official > > release yet so we're still in beta mode. Many people have successfully > > been running 2.x in production environments for some time. Others have > > experienced problems. YMMV. > >=20 > > > As I'm experiencing quite some bizarre behaviour of my Nagios > > > setup, > > > that I rather blamed on my lack of Nagios configuration skills, > > > I now wonder if it couldn't also be at least partly based on the > > > release 2.0b3 I am using. > > > > > > Could it be this one is still a bit "immature" or buggy, and > > > would it be advisable to downgrade to a > > > "stable" release until I've got my basic stuff working as > > > desired? > > > > That's what _I_ would do but to each his own. Do what you're = > comfortable > > with. If you're monitoring mission critical applications and you > > absolutely can't deal with bugs in your monitoring software, use 1.x. > >=20 > > > For instance, did I alway wonder why my running nagios daemon > > > didn't continue processing > > > after it caught a SIGHUP. > > > It reported to nagios.log that it caught the signal and was > > > reinitializing, > > > but then no more appeared nor happened. > > > > That sounds like it might be a bug. Maybe someone else running 2.x can > > reproduce it? > > > > -- > > Marc > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & EXPO = > September > > 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > > Agile & Plan-Driven Development * Managing Projects & Teams * Testing = > & QA > > Security * Process Improvement & Measurement * = > http://www.sqe.com/bsce5sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when = > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO = > September > 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & = > QA > Security * Process Improvement & Measurement * = > http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when = > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > > > > --__--__-- > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > End of Nagios-users Digest > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bombadur at email.it Fri Jul 29 17:05:06 2005 From: bombadur at email.it (bombadur) Date: Fri, 29 Jul 2005 17:05:06 +0200 Subject: Problem on check_ping In-Reply-To: <1122640950.13754.63.camel@localhost> References: <200507291223.57959.bombadur@email.it> <1122640950.13754.63.camel@localhost> Message-ID: <200507291705.10419.bombadur@email.it> Alle 14:42, venerd? 29 luglio 2005, Chris Wilson ha scritto: > You could try the check_icmp plugin. It's supposed to be more > reliable. You will probably need to make it suid root (chmod u+s > check_icmp) before it will work, though. Hi Chris, and thank you very much for your help; it seems to work now: # /usr/lib/nagios/plugins/check_icmp -H 192.168.1.25 -w 3000.0,80% -c 5000.0,100% -p 1 OK - 192.168.1.25: rta 0.069ms, lost 0%|rta=0.069ms;3000.000;5000.000;0; pl=0%;80;100;; But now, a strange behaviour on the web page: For all the machines checked by this command, I have Warnings on the Service Status Totals page; could yoi tell me something about it? Let me paste the output on the page for that machine: Current Status: WARNING Status Information: WARNING - 192.168.1.25: rta 0.026ms, lost 0% Current Attempt: 1/3 State Type: HARD Last Check Type: ACTIVE Last Check Time: 29-07-2005 17:02:10 Status Data Age: 0d 0h 1m 11s Next Scheduled Active Check: 29-07-2005 17:07:10 Latency: < 1 second Check Duration: < 1 second Last State Change: 29-07-2005 17:02:12 Current State Duration: 0d 0h 1m 9s Last Service Notification: N/A Current Notification Number: 0 Is This Service Flapping? N/A Percent State Change: N/A In Scheduled Downtime? NO Last Update: 29-07-2005 17:03:16 again, many thanks in advance. -- saluti, bombadur MajaGLUG, il LUG piu` grande d'Italia http://www.majaglug.net ,,_ -*> Snort! <*- o" )~ experienced '''' -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From marc at ena.com Fri Jul 29 17:37:48 2005 From: marc at ena.com (Marc Powell) Date: Fri, 29 Jul 2005 10:37:48 -0500 Subject: templates or USERx in hostgroups.cfg not working? Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Brian Smith > Sent: Thursday, July 28, 2005 7:04 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] templates or USERx in hostgroups.cfg not working? > > > I'm banging my head on a wall with this so any help is greatly > appreciated... Nagios version is 1.2 Stable Release. > > Problem: I cannot seem to get template definitions or $USERx$ vars > defined in resource.cfg to apply settings in hostgroups.cfg. Are these > not supported for that config file or something? The config file name doesn't matter. As long as it's listed as a cfg_file in nagios.cfg then it's treated the same as any other cfg_file. > I've tried the following for templates: > > ### in central hostgroups.cfg > > define hostgroup { > hostgroup_name gengroup > contact_groups people > register 0 > } You probably mean to change 'hostgroup_name' to 'name'. You reference a template called 'gengroup' below, but there is no corresponding template named 'gengroup'. http://nagios.sourceforge.net/docs/1_0/templaterecursion.html define hostgroup { name gengroup contact_groups people register 0 } > > > ### in site specific hostgroups.cfg > > define hostgroup { > use gengroup > hostgroup_name sitename > alias descriptive stuff > members list_of_hosts, more_hosts, etc_hosts > } > > > > and also tried the following for the $USERx$ variable: > > ### in resource.cfg > > $USER1$=/usr/nagios/libexec > $USER2$=people > > > ### in site specific hostgroups.cfg > > define hostgroup { > use gengroup > hostgroup_name sitename > alias descriptive stuff > contact_groups $USER2$ > members list_of_hosts, more_hosts, etc_hosts > } To the best of my knowledge, and a review of the documentation on using them, macros are only available for use in the command definitions (e.g. command_line); therefore the above would not be valid. http://nagios.sourceforge.net/docs/1_0/macros.html "One of the features available in Nagios is the ability to use macros in command definitions. Immediately prior to the execution of a command, Nagios will replace all macros in the command with their corresponding values. This allows you to define a few generic commands to handle all your needs." I would say that your test confirms that. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 29 17:43:52 2005 From: marc at ena.com (Marc Powell) Date: Fri, 29 Jul 2005 10:43:52 -0500 Subject: Problem on check_ping Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Chris Wilson > Sent: Friday, July 29, 2005 7:43 AM > To: bombadur > Cc: Nagios Users > Subject: Re: [Nagios-users] Problem on check_ping > > Hi Bombadur, > > > I think (hope) that until this moment cofiguration went good, but I have > > a problem testing for the check_ping plugin, which maybe it's the most > > important for their needings: > > > > # /usr/lib/nagios/plugins/check_ping -H 192.168.1.25 -w 3000.0,80% -c > > 5000.0,100% -p 1 > > /bin/ping -n -U -w 10 -c 1 192.168.1.25 > > CRITICAL - Could not interpret output from ping command > > You could try the check_icmp plugin. It's supposed to be more reliable. > You will probably need to make it suid root (chmod u+s check_icmp) > before it will work, though. And make sure SELinux allows for its execution by non-root users. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 29 18:04:47 2005 From: marc at ena.com (Marc Powell) Date: Fri, 29 Jul 2005 11:04:47 -0500 Subject: Use of check_by_ssh Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Ralph.Grothe at itdz-berlin.de > Sent: Friday, July 29, 2005 7:14 AM > To: nagiosplug-help at lists.sourceforge.net; nagios- > users at lists.sourceforge.net > Subject: [Nagios-users] Use of check_by_ssh > > Hi, > > I have a bastion host in a dmz that serves HTTP(S) to the > internet. > > I must monitor the webserver by pulling a certain CGI URI and see > if the Webserver returns a 200. > > Unfortunately I don't get another port (e.g. 5666/tcp for NRPE) > opened by the firewall gang. > > I only have access from our LAN to the bastion host via SSH. > > Thus I wrote a short shell script that resides on the webserver > and GETs the HEAD of this URI > through wget (with -S, -C off, --spider). > It's called check_dmz_www.sh > > So far this script isn't doing any parsing of the output from the > GET. > I thought to leave this part to a Nagios check_* plug-in. Your script would work and if you pursued that path I would need to put in the checking logic and *exit properly* as defined in the Developer Guidelines at http://nagiosplug.sf.net. That being said, you're just duplicating the functionality of the check_http plugin. Why don't you just copy/compile that plugin on the DMZ host and use it to check your web server using check_by_ssh (see below). > > In the libexec dir I discovered check_by_ssh. > Unfortunately, as most distributed plug-ins, the documentation is > a bit too terse. > > From the --help screen I can't see the use of this plug-in, > as it doesn't do anything more (i.e. return code parsing logic > etc.) than vanilla ssh client does. > > E.g. I would call check_by_ssh from the Nagios server like this > > > $ /opt/sw/nagios/libexec/check_by_ssh -1 -H $hostaddress -l www > -i ~nagios/.ssh/id_rsa1_dmz_www -C > /usr/local/sbin/check_dmz_www.sh > Connecting to 127.0.0.1:80... connected. > HTTP request sent, awaiting response... > 1 HTTP/1.1 200 OK > 2 Date: Fri, 29 Jul 2005 11:58:47 GMT > 3 Server: Apache/1.3.22 (Unix) mod_ssl/2.8.5 OpenSSL/0.9.6b > 4 Keep-Alive: timeout=25, max=100 > 5 Connection: Keep-Alive > 6 Content-Type: text/html > 200 OK > > > > But where's the point in using this plug-in? > For that I could as well just call the ssh client. It's just a wrapper/proxy. The plugin will ssh to the specified host, run the specified command and return it's output _and_ exit code to nagios, just as if nagios had run the plugin on the remote host directly. If you have the check_http plugin in /usr/local/sbin on the remote host you could do something like the following -- /opt/sw/nagios/libexec/check_by_ssh -1 -H $hostaddress -l www -i ~nagios/.ssh/id_rsa1_dmz_www -C /usr/local/sbin/check_http -S -I 127.0.0.1 -u http://your.host.com/health.cgi -e 200 *NOTE* you can only _copy_ the plugin to the remote host IFF it's the same arch/os/version and has all the required libraries (ldd check_http). -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 29 18:07:29 2005 From: marc at ena.com (Marc Powell) Date: Fri, 29 Jul 2005 11:07:29 -0500 Subject: nagios displaying jpg icons for host? Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of HP Geeza > Sent: Friday, July 29, 2005 5:46 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] nagios displaying jpg icons for host? > > Hi > > I was wondering whether it is possible to get nagios to display jpg icons > for expample next to individual hosts??? What i mean by this is that i was > wondering if it is possible to have like a little windows jpg icon or red > hat icon shown next to the name of a particular host so that its OS can > been > identified quickly???? Like http://nagios.sourceforge.net/images/screens/big/status-detail.jpg? http://nagios.sourceforge.net/docs/1_0/xedtemplate.html -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Fri Jul 29 18:10:22 2005 From: jsandoval at achs.cl (Sandoval, Julio) Date: Fri, 29 Jul 2005 12:10:22 -0400 Subject: Postgresql Message-ID: <706C33200E04994E9BB6EE3E21E4C15E01301C5F@ACHS-E2K01.achs.cl> Dear List, I need to know....how can i hold data in postgresql for one year?, before that i can archive data in historic store. Thank so much for your responses.... Greetings, Julio Sandoval -----Mensaje original----- De: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]En nombre de Sandoval, Julio Enviado el: Viernes, 15 de Julio de 2005 11:38 Para: nagios-users at lists.sourceforge.net Asunto: [Nagios-users] Postgresql Hello everybody, I have a question: ?Where can I find the history data in postgresql? Exp. I saw the data in the 12 tables, but I just look few rows in them (30 rows max). Somebody help me with this... Thank for your kindness _____ "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." _____ "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." "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." -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc at ena.com Fri Jul 29 18:34:26 2005 From: marc at ena.com (Marc Powell) Date: Fri, 29 Jul 2005 11:34:26 -0500 Subject: Postgresql Message-ID: We use a trigger and a pl/pgsql script within postgres that copies the data from the servicestatus table to a servicestatus_history table (same schema as servicestatus) on INSERT or UPDATE. That methodology could be extended to include hoststatus, etc. At that point it's just a matter of standard SQL DELETEs to remove anything older than a year. We actually pull that data over to SQL2000 several times a day for archiving for 6 years and just delete the archived records from servicestatus_history. -- Marc > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Sandoval, Julio > Sent: Friday, July 29, 2005 11:10 AM > To: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Postgresql > > Dear List, > > I need to know....how can i hold data in postgresql for one year?, > before that i can archive data in historic store. > Thank so much for your responses.... > > Greetings, Julio Sandoval > > > > -----Mensaje original----- > De: nagios-users-admin at lists.sourceforge.net [mailto:nagios- > users-admin at lists.sourceforge.net]En nombre de Sandoval, Julio > Enviado el: Viernes, 15 de Julio de 2005 11:38 > Para: nagios-users at lists.sourceforge.net > Asunto: [Nagios-users] Postgresql > > > Hello everybody, > I have a question: ?Where can I find the history data in > postgresql? > Exp. I saw the data in the 12 tables, but I just look few rows > in them (30 rows max). > > Somebody help me with this... > Thank for your kindness > > > ________________________________ > > "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." > > > > > ________________________________ > > "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." > > > > ________________________________ > > "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." ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.P.Fuentes at boeing.com Fri Jul 29 18:36:09 2005 From: James.P.Fuentes at boeing.com (EXT-Fuentes, James P) Date: Fri, 29 Jul 2005 09:36:09 -0700 Subject: nagios displaying jpg icons for host? Message-ID: <626FC7C6A97381468FB872072AB5DDC801FEB1@XCH-SW-42.sw.nos.boeing.com> Another thing you can do is download your own images and resize them if you don't find an appropriate one in the imagepak. -Jim ________________________________ From: HP Geeza [mailto:getbacktome3 at hotmail.com] Sent: Fri 7/29/2005 3:46 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] nagios displaying jpg icons for host? Hi I was wondering whether it is possible to get nagios to display jpg icons for expample next to individual hosts??? What i mean by this is that i was wondering if it is possible to have like a little windows jpg icon or red hat icon shown next to the name of a particular host so that its OS can been identified quickly???? _________________________________________________________________ Be the first to hear what's new at MSN - sign up to our free newsletters! http://www.msn.co.uk/newsletters ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ladams at cloudmark.com Fri Jul 29 18:42:02 2005 From: ladams at cloudmark.com (Lori Adams) Date: Fri, 29 Jul 2005 09:42:02 -0700 Subject: Is there a testing or debugging mode for nagios? Message-ID: check_period is not a plugin. Check_period is one of the options for service.cfg configurations. http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#service check_period means that a service check will only be executed during the given timeframe. Values for check_period are (usually) stored in timeperiods.cfg. Example: define service { host_name foo service_description bar check_period 24x7 . . . } To reschedule from command line, you will have to submit an "external command" with various values to your nagios.cmd (set in nagios.cfg) file. (see docs: http://nagios.sourceforge.net/docs/1_0/extcommands.html or http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?com mand_id=127) I have a perl script where I pass the server name and service name and it will reschedule the check for 3 seconds later. "external commands" are your friend. You can end up scripting all of the commands. good luck. -Lori -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Ralph.Grothe at itdz-berlin.de Sent: Thursday, July 28, 2005 9:59 PM To: sloane at ku.edu Cc: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Is there a testing or debugging mode for nagios? Hi Bob, what kind of plug-in is check_period? I cannot find it in my Nagios installation. nor in the tarballs of either Nagios or Nagios-plugins. Is it a kind of NoOp plug-in stub I would have to write? How can I re-schedule from the command line. My Nagios web interface (i.e. the CGIs) are still a bit broken (I could easily fix if I had root privileges on the webserver to edit httpd.conf) Anyway, I'm a bit shell-fixed and avoid GUIs whenever possible. I know with Nagios I probably would miss half the fun, but this seems cosmetic to me, and can be addressed later when the base system is at least working satisfactorily. > -----Original Message----- > From: Sloane, Robert Raymond [mailto:sloane at ku.edu] > Sent: Thursday, July 28, 2005 4:03 PM > To: Ralph.Grothe at itdz-berlin.de > Subject: RE: [Nagios-users] Is there a testing or debugging mode for > nagios? > > > Why not put a "check_period none" in the template, so that the checks > won't normally be scheduled, and then use the "Re-schedule the next > check of this service" link to schedule the check when you want it to > happen? Once things are debugged, you can set the check_period in the > actual entry to whatever is appropriate. > -- > 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 Ralph.Grothe at itdz-berlin.de > > Sent: Thursday, July 28, 2005 7:55 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Is there a testing or debugging mode > > for nagios? > > > > > > Hello, > > > > this morning I received the contempt of my fellow admins > > because nagios swamped their mailboxes over night. Well, it > > wasn't of course nagios' fault but mine because I defined a > > template service wherein I referenced a conact_groups that > > comprised all of us. When later adding new services I simply > > forgot to override this attribute with a contact group that > > contained only my mail account (until I've come to terms with > > configuring). > > > > That's why I desperately miss a means to run a nagios daemon > > that isn't scheduling the checks by itself but rather by > > manual invocation. I'd also wish to test out alerting and > > event handling myself by raising events (e.g. to see where in > > the end the notification is delivered to). > > > > Does nagios provide special utilities, or switches to support > > (high level) debugging that way? > > > > Regards > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & > > EXPO September 19-22, 2005 * San Francisco, CA * Development > > Lifecycle Practices Agile & Plan-Driven Development * > > Managing Projects & Teams * Testing & QA Security * Process > > Improvement & Measurement * http://www.sqe.com/bsce5sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS > > when reporting any issue. > > ::: Messages without supporting info will risk being sent > to /dev/null > > > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 getbacktome3 at hotmail.com Fri Jul 29 20:11:08 2005 From: getbacktome3 at hotmail.com (HP Geeza) Date: Fri, 29 Jul 2005 19:11:08 +0100 Subject: nagios displaying jpg icons for host? In-Reply-To: <626FC7C6A97381468FB872072AB5DDC801FEB1@XCH-SW-42.sw.nos.boeing.com> References: <626FC7C6A97381468FB872072AB5DDC801FEB1@XCH-SW-42.sw.nos.boeing.com> Message-ID: Hi I'm sorry what do you mean by the imagepak??? I currently dont know how to display any icons....this is what i would like to do >From: "EXT-Fuentes, James P" >To: "HP Geeza" >, >Subject: RE: [Nagios-users] nagios displaying jpg icons for host? >Date: Fri, 29 Jul 2005 09:36:09 -0700 > >Another thing you can do is download your own images and resize them if you >don't find an appropriate one in the imagepak. >-Jim > >________________________________ > >From: HP Geeza [mailto:getbacktome3 at hotmail.com] >Sent: Fri 7/29/2005 3:46 AM >To: nagios-users at lists.sourceforge.net >Subject: [Nagios-users] nagios displaying jpg icons for host? > > > >Hi > >I was wondering whether it is possible to get nagios to display jpg icons >for expample next to individual hosts??? What i mean by this is that i was >wondering if it is possible to have like a little windows jpg icon or red >hat icon shown next to the name of a particular host so that its OS can >been >identified quickly???? > >_________________________________________________________________ >Be the first to hear what's new at MSN - sign up to our free newsletters! >http://www.msn.co.uk/newsletters > > > >------------------------------------------------------- >SF.Net email is Sponsored by the Better Software Conference & EXPO >September >19-22, 2005 * San Francisco, CA * Development Lifecycle Practices >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA >Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when >reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > > > > >------------------------------------------------------- >SF.Net email is Sponsored by the Better Software Conference & EXPO >September >19-22, 2005 * San Francisco, CA * Development Lifecycle Practices >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA >Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when >reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null _________________________________________________________________ Winks & nudges are here - download MSN Messenger 7.0 today! http://messenger.msn.co.uk ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ran.Li at sprint-canada.com Fri Jul 29 20:29:45 2005 From: Ran.Li at sprint-canada.com (Ran Li) Date: Fri, 29 Jul 2005 14:29:45 -0400 Subject: content on the web won't change even nagios process has been killed Message-ID: Hi List, I did another test, 1. kill the nagios process 2. visit http://my_ip/nagios -> normal 3. click Monitoring -> Service Detail -> normal , same page is showed before the process was killed 4. mv ../nagios/var/status.dat ../nagios/var/status.dat.old 5. visit http://my_ip/nagios -> normal 6. click Monitoring -> Service Detail -> this time I got Whoops! Error: Could not read host and service status information! The most common cause of this error message (especially for new users), is the fact that Nagios is not actually running. If Nagios is indeed not running, this is a normal error message. It simply indicates that the CGIs could not obtain the current status of hosts and services that are being monitored. If you've just installed things, make sure you read the documentation on starting Nagios. Some other things ...... 7. start the nagios process, everything went back to normal is this status.dat suppose to be deleted after the nagios is off? please comment, thanks. Regards, -tea -----Original Message----- From: Ran Li Sent: Thursday, July 28, 2005 4:54 PM To: 'Scott Sugar'; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] content on the web won't change even nagios process has been killed Hi Scott and all, Thanks for the reply. before I did could see the error page when without nagios running, how come not be able to right now. yes, the process 3548 is the only nagios process. I m afraid of my broswer's caching so I tried to visit the web page from another computer which never visit the page before, know what, It shows the same normal page when WITHOUT nagios running. Anybody met this problem before? please comment. Thanks. Regards, -tea -----Original Message----- From: Scott Sugar [mailto:ssugar at proserveit.com] Sent: Thursday, July 28, 2005 4:07 PM To: Ran Li; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] content on the web won't change even nagios process has been killed That doesnt seem normal... im assuming that there are no other nagios process' once you kill 3548? If there are no instances of nagios running, you should not be able to view the nagios web interface... you should get some error message that says something along the lines of: Error cannot view pages, nagios may not be running... or something like that... Im not too sure if there could be some caching going on... maybe your browser is running through a proxy?.... i dont think that will make a difference though if you try and refresh the page.... Anyone else have an idea? scott _____ From: Ran Li [mailto:Ran.Li at sprint-canada.com] Sent: Thu 7/28/2005 3:15 PM To: Scott Sugar; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] content on the web won't change even nagios process has been killed Hi Scott and all, on the step 4, I killed the nagios process (just a sample) #ps -ef | grep nagios nagios 3548 31209 0 Jul27 pts/2 00:00:00 ./nagios ../etc/nagios.cfg #kill 3548 the web content I mentioned is under the Monitoring category -> Service Detail, where I can see every service 's status on each host. I m using Apache2. I even tried to restart the http service, but won't work either, web shows every service 's status is OK, while nagios is not running. Normal? I think I m using active check not passive one, the parameter check_freshness is set to 0 in the configuration file. nagios server (nagios/web interface/plugins/check_nrpe) | / \ host1 host2 (nrpe/plugins) Thanks and regards, -tea -----Original Message----- From: Scott Sugar [mailto:ssugar at proserveit.com] Sent: Thursday, July 28, 2005 2:37 PM To: Ran Li; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] content on the web won't change even nagios process has been killed Which nagios server did you shutdown in step 4? If you shutdown the remote one, the central one will not know that the remote machine is no longer sending passive checks unless you set the check_freshness command on the central server. Also which web interface are you looking at? scott _____ From: nagios-users-admin at lists.sourceforge.net on behalf of Ran Li Sent: Thu 7/28/2005 2:45 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] content on the web won't change even nagios process has been killed Hi all, Please advise which parameter(s) exactly control(s) this. situation is 1. after the configuration, I can monitor the services on the local and remote hosts 2. when I made the changes on the configuration, I need to restart the nagios process 3. for the first couple of times when I restarted the nagiso process, the service that being monitored, their status on the web would show Pending first and then turned to green one by one ... which is OK 4. I leave it there for a night, this morning, when I shutdown the nagios, found the the content on the web is still the same, which all services are still OK/green even without nagios. 5. I tried to shutdown some of the services as well, but the content still would not be changed. 6. then I started the nagios again, this time it would refresh the status and tells the services that I shutdown are CRITICAL/Red. 7. I killed the nagios process again, everything stays the same. is this configuration on the nagios or on the apache? some place cache it? Thanks and regards, -tea -------------- next part -------------- An HTML attachment was scrubbed... URL: From James.P.Fuentes at boeing.com Fri Jul 29 21:06:53 2005 From: James.P.Fuentes at boeing.com (EXT-Fuentes, James P) Date: Fri, 29 Jul 2005 12:06:53 -0700 Subject: nagios displaying jpg icons for host? Message-ID: <626FC7C6A97381468FB872072AB5DDC801FEB3@XCH-SW-42.sw.nos.boeing.com> You can find images at the following location: http://www.nagiosexchange.org/Image_Packs.75.0.html -Jim ________________________________ From: HP Geeza [mailto:getbacktome3 at hotmail.com] Sent: Fri 7/29/2005 11:11 AM To: EXT-Fuentes, James P; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] nagios displaying jpg icons for host? Hi I'm sorry what do you mean by the imagepak??? I currently dont know how to display any icons....this is what i would like to do >From: "EXT-Fuentes, James P" >To: "HP Geeza" >, >Subject: RE: [Nagios-users] nagios displaying jpg icons for host? >Date: Fri, 29 Jul 2005 09:36:09 -0700 > >Another thing you can do is download your own images and resize them if you >don't find an appropriate one in the imagepak. >-Jim > >________________________________ > >From: HP Geeza [mailto:getbacktome3 at hotmail.com] >Sent: Fri 7/29/2005 3:46 AM >To: nagios-users at lists.sourceforge.net >Subject: [Nagios-users] nagios displaying jpg icons for host? > > > >Hi > >I was wondering whether it is possible to get nagios to display jpg icons >for expample next to individual hosts??? What i mean by this is that i was >wondering if it is possible to have like a little windows jpg icon or red >hat icon shown next to the name of a particular host so that its OS can >been >identified quickly???? > >_________________________________________________________________ >Be the first to hear what's new at MSN - sign up to our free newsletters! >http://www.msn.co.uk/newsletters > > > >------------------------------------------------------- >SF.Net email is Sponsored by the Better Software Conference & EXPO >September >19-22, 2005 * San Francisco, CA * Development Lifecycle Practices >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA >Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when >reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > > > > >------------------------------------------------------- >SF.Net email is Sponsored by the Better Software Conference & EXPO >September >19-22, 2005 * San Francisco, CA * Development Lifecycle Practices >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA >Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when >reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null _________________________________________________________________ Winks & nudges are here - download MSN Messenger 7.0 today! http://messenger.msn.co.uk ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From eshine at gmail.com Fri Jul 29 22:04:08 2005 From: eshine at gmail.com (Edgar Shine) Date: Fri, 29 Jul 2005 17:04:08 -0300 Subject: logging and report issues Message-ID: <42EA8BB8.2090008@gmail.com> Greetings, I?m trying to understand how can I adjust some report issues. Maybe someone could help me. I manage a WAN radio network and I?m using Nagios to monitor these devices. Radio links often have some kind of problem in the RTT in rainy days mainly, and I want to manage statistics of these problems. The problem is when I have a alarm report in the first scheduled polling, I didn?t have an recovery log. And I?m pretty sure the host recovered status during the day, Monitoring show me the host service was OK. Here is some lines in the log files, relating to the attached file. ---BEGIN--- root at phoenix:/usr/local/nagios/var/archives# grep castanheiras nagios-07-07-2005-00.log [1120705200] CURRENT HOST STATE: castanheiras;UP;HARD;1;PING OK - Packet loss = 0%, RTA = 259.77 ms [1120705200] CURRENT SERVICE STATE: castanheiras;PING;CRITICAL;HARD;3;PING CRITICAL - Packet loss = 0%, RTA = 288.31 ms root at phoenix:/usr/local/nagios/var/archives# grep castanheiras nagios-07-08-2005-00.log [1120791600] CURRENT HOST STATE: castanheiras;UP;HARD;1;PING OK - Packet loss = 0%, RTA = 376.73 ms [1120791600] CURRENT SERVICE STATE: castanheiras;PING;OK;HARD;1;PING OK - Packet loss = 0%, RTA = 134.32 ms root at phoenix:/usr/local/nagios/var/archives# grep castanheiras nagios-07-14-2005-00.log [1121310000] CURRENT HOST STATE: castanheiras;UP;HARD;1;PING OK - Packet loss = 0%, RTA = 114.10 ms [1121310000] CURRENT SERVICE STATE: castanheiras;PING;CRITICAL;HARD;3;PING CRITICAL - Packet loss = 0%, RTA = 2439.42 ms root at phoenix:/usr/local/nagios/var/archives# grep castanheiras nagios-07-15-2005-00.log [1121396400] CURRENT HOST STATE: castanheiras;UP;HARD;1;PING OK - Packet loss = 0%, RTA = 199.86 ms [1121396400] CURRENT SERVICE STATE: castanheiras;PING;CRITICAL;HARD;3;PING CRITICAL - Packet loss = 0%, RTA = 213.32 ms root at phoenix:/usr/local/nagios/var/archives# grep castanheiras nagios-07-16-2005-00.log [1121482800] CURRENT HOST STATE: castanheiras;UP;HARD;1;PING OK - Packet loss = 0%, RTA = 200.23 ms [1121482800] CURRENT SERVICE STATE: castanheiras;PING;OK;HARD;1;PING OK - Packet loss = 0%, RTA = 102.60 ms ---EOT--- Logging is working if we have some alarm during he day **if** we don?t have a critical state in the current service state when Nagios rotate the logfile: ---BEGIN--- root at phoenix:/usr/local/nagios/var/archives# grep castanheiras nagios-07-29-2005-00.log | grep HARD [1122519600] CURRENT HOST STATE: castanheiras;UP;HARD;1;PING OK - Packet loss = 0%, RTA = 344.05 ms [1122519965] SERVICE ALERT: castanheiras;PING;CRITICAL;HARD;5;PING CRITICAL - Packet loss = 0%, RTA = 451.80 ms [1122523904] SERVICE ALERT: castanheiras;PING;OK;HARD;5;PING OK - Packet loss = 0%, RTA = 34.14 ms [1122526189] SERVICE ALERT: castanheiras;PING;CRITICAL;HARD;5;PING CRITICAL - Packet loss = 0%, RTA = 551.29 ms [1122527084] SERVICE ALERT: castanheiras;PING;OK;HARD;5;PING OK - Packet loss = 0%, RTA = 36.09 ms ---EOT--- My host.conf ---BEGIN--- define host{ name host_template notifications_enabled 1 event_handler_enabled 0 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 register 0 } define host{ use host_template ; Name of host template to use host_name castanheiras alias Condominio Castanheiras address 10.140.215.2 parents cisco_nobhill check_command check-host-alive max_check_attempts 5 contact_groups noc notification_interval 0 notification_period 24x7 notification_options d,u,r } ---EOT--- My services.cfg ---BEGIN--- define service{ name generic-service active_checks_enabled 1 passive_checks_enabled 1 parallelize_check 1 obsess_over_service 1 check_freshness 0 notifications_enabled 1 event_handler_enabled 0 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 register 0 } define service{ use generic-service host_name castanheiras service_description PING is_volatile 0 check_period 24x7 max_check_attempts 5 normal_check_interval 5 retry_check_interval 3 contact_groups noc,redes,manutencao notification_interval 0 notification_period 24x7 notification_options c,r check_command check_ping!199.99,79%!200.0,80% } ---EOT--- System info: ---BEGIN--- Nagios vs. : 2.0b3 Linux 2.4.29 Apache 1.3.33 gd 2.0.33 ---END--- Any tips? Thanks in advance for your time. rgds, Edgar Shine -------------- next part -------------- A non-text attachment was scrubbed... Name: ScreenShot004.jpg Type: image/jpeg Size: 201801 bytes Desc: not available URL: From eshine at gmail.com Fri Jul 29 22:12:36 2005 From: eshine at gmail.com (Edgar Shine) Date: Fri, 29 Jul 2005 17:12:36 -0300 Subject: logging and report issues In-Reply-To: <42EA8BB8.2090008@gmail.com> References: <42EA8BB8.2090008@gmail.com> Message-ID: <42EA8DB4.6000105@gmail.com> Sorry for the crossposting... I forgot the nagios.cfg. Think it?s important for this subject. rgds, Edgar Shine ---BEGIN--- log_file=/usr/local/nagios/var/nagios.log cfg_file=/usr/local/nagios/etc/checkcommands.cfg cfg_file=/usr/local/nagios/etc/misccommands.cfg cfg_file=/usr/local/nagios/etc/contactgroups.cfg cfg_file=/usr/local/nagios/etc/contacts.cfg cfg_file=/usr/local/nagios/etc/dependencies.cfg cfg_file=/usr/local/nagios/etc/escalations.cfg cfg_file=/usr/local/nagios/etc/hostgroups.cfg cfg_file=/usr/local/nagios/etc/hosts.cfg cfg_file=/usr/local/nagios/etc/services.cfg cfg_file=/usr/local/nagios/etc/timeperiods.cfg resource_file=/usr/local/nagios/etc/resource.cfg status_file=/usr/local/nagios/var/status.log nagios_user=nagios nagios_group=nagios check_external_commands=1 command_check_interval=-1 command_file=/usr/local/nagios/var/rw/nagios.cmd comment_file=/usr/local/nagios/var/comment.log downtime_file=/usr/local/nagios/var/downtime.log lock_file=/usr/local/nagios/var/nagios.lock temp_file=/usr/local/nagios/var/nagios.tmp log_rotation_method=d log_archive_path=/usr/local/nagios/var/archives use_syslog=0 log_notifications=1 log_service_retries=1 log_host_retries=1 log_event_handlers=0 log_initial_states=1 log_external_commands=1 service_interleave_factor=s max_concurrent_checks=17 service_reaper_frequency=10 sleep_time=1 service_check_timeout=60 host_check_timeout=30 event_handler_timeout=30 notification_timeout=30 ocsp_timeout=5 perfdata_timeout=5 retain_state_information=1 state_retention_file=/usr/local/nagios/var/status.sav retention_update_interval=60 use_retained_program_state=1 interval_length=60 use_agressive_host_checking=0 execute_service_checks=1 accept_passive_service_checks=1 enable_notifications=1 enable_event_handlers=1 process_performance_data=0 obsess_over_services=0 check_for_orphaned_services=1 check_service_freshness=1 freshness_check_interval=60 aggregate_status_updates=1 status_update_interval=15 enable_flap_detection=0 low_service_flap_threshold=5.0 high_service_flap_threshold=20.0 low_host_flap_threshold=5.0 high_host_flap_threshold=20.0 date_format=us illegal_object_name_chars=`~!$%^&*|'"<>?,()= illegal_macro_output_chars=`~$&|'"<> admin_email=nagios admin_pager=pagenagios ---EOT--- Edgar Shine escreveu: > Greetings, > > I?m trying to understand how can I adjust some report issues. Maybe > someone could help me. > I manage a WAN radio network and I?m using Nagios to monitor these > devices. Radio links often have some kind of problem in the RTT in rainy > days mainly, and I want to manage statistics of these problems. > > The problem is when I have a alarm report in the first scheduled > polling, I didn?t have an recovery log. And I?m pretty sure the host > recovered status during the day, Monitoring show me the host service > was OK. > > Here is some lines in the log files, relating to the attached file. > ---BEGIN--- > root at phoenix:/usr/local/nagios/var/archives# grep castanheiras > nagios-07-07-2005-00.log > [1120705200] CURRENT HOST STATE: castanheiras;UP;HARD;1;PING OK - Packet > loss = 0%, RTA = 259.77 ms > [1120705200] CURRENT SERVICE STATE: > castanheiras;PING;CRITICAL;HARD;3;PING CRITICAL - Packet loss = 0%, RTA > = 288.31 ms > root at phoenix:/usr/local/nagios/var/archives# grep castanheiras > nagios-07-08-2005-00.log > [1120791600] CURRENT HOST STATE: castanheiras;UP;HARD;1;PING OK - Packet > loss = 0%, RTA = 376.73 ms > [1120791600] CURRENT SERVICE STATE: castanheiras;PING;OK;HARD;1;PING OK > - Packet loss = 0%, RTA = 134.32 ms > root at phoenix:/usr/local/nagios/var/archives# grep castanheiras > nagios-07-14-2005-00.log > [1121310000] CURRENT HOST STATE: castanheiras;UP;HARD;1;PING OK - Packet > loss = 0%, RTA = 114.10 ms > [1121310000] CURRENT SERVICE STATE: > castanheiras;PING;CRITICAL;HARD;3;PING CRITICAL - Packet loss = 0%, RTA > = 2439.42 ms > root at phoenix:/usr/local/nagios/var/archives# grep castanheiras > nagios-07-15-2005-00.log > [1121396400] CURRENT HOST STATE: castanheiras;UP;HARD;1;PING OK - Packet > loss = 0%, RTA = 199.86 ms > [1121396400] CURRENT SERVICE STATE: > castanheiras;PING;CRITICAL;HARD;3;PING CRITICAL - Packet loss = 0%, RTA > = 213.32 ms > root at phoenix:/usr/local/nagios/var/archives# grep castanheiras > nagios-07-16-2005-00.log > [1121482800] CURRENT HOST STATE: castanheiras;UP;HARD;1;PING OK - Packet > loss = 0%, RTA = 200.23 ms > [1121482800] CURRENT SERVICE STATE: castanheiras;PING;OK;HARD;1;PING OK > - Packet loss = 0%, RTA = 102.60 ms > ---EOT--- > > Logging is working if we have some alarm during he day **if** we don?t > have a critical state in the current service state when Nagios rotate > the logfile: > ---BEGIN--- > root at phoenix:/usr/local/nagios/var/archives# grep castanheiras > nagios-07-29-2005-00.log | grep HARD > [1122519600] CURRENT HOST STATE: castanheiras;UP;HARD;1;PING OK - Packet > loss = 0%, RTA = 344.05 ms > [1122519965] SERVICE ALERT: castanheiras;PING;CRITICAL;HARD;5;PING > CRITICAL - Packet loss = 0%, RTA = 451.80 ms > [1122523904] SERVICE ALERT: castanheiras;PING;OK;HARD;5;PING OK - Packet > loss = 0%, RTA = 34.14 ms > [1122526189] SERVICE ALERT: castanheiras;PING;CRITICAL;HARD;5;PING > CRITICAL - Packet loss = 0%, RTA = 551.29 ms > [1122527084] SERVICE ALERT: castanheiras;PING;OK;HARD;5;PING OK - Packet > loss = 0%, RTA = 36.09 ms > ---EOT--- > > My host.conf > ---BEGIN--- > define host{ > name host_template > notifications_enabled 1 > event_handler_enabled 0 > flap_detection_enabled 1 > process_perf_data 1 > retain_status_information 1 > retain_nonstatus_information 1 > register 0 > } > > define host{ > use host_template ; Name of host > template to use > host_name castanheiras > alias Condominio Castanheiras > address 10.140.215.2 > parents cisco_nobhill > check_command check-host-alive > max_check_attempts 5 > contact_groups noc > notification_interval 0 > notification_period 24x7 > notification_options d,u,r > } > ---EOT--- > > My services.cfg > ---BEGIN--- > define service{ > name generic-service > active_checks_enabled 1 > passive_checks_enabled 1 > parallelize_check 1 > obsess_over_service 1 > check_freshness 0 > notifications_enabled 1 > event_handler_enabled 0 > flap_detection_enabled 1 > process_perf_data 1 > retain_status_information 1 > retain_nonstatus_information 1 > register 0 > } > > define service{ > use generic-service > host_name castanheiras > service_description PING > is_volatile 0 > check_period 24x7 > max_check_attempts 5 > normal_check_interval 5 > retry_check_interval 3 > contact_groups noc,redes,manutencao > notification_interval 0 > notification_period 24x7 > notification_options c,r > check_command check_ping!199.99,79%!200.0,80% > } > ---EOT--- > > System info: > ---BEGIN--- > Nagios vs. : 2.0b3 > Linux 2.4.29 > Apache 1.3.33 > gd 2.0.33 > ---END--- > > Any tips? Thanks in advance for your time. > > rgds, > Edgar Shine > > > ------------------------------------------------------------------------ > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 30 13:11:02 2005 From: amontibello at gmail.com (Anthony Montibello) Date: Sat, 30 Jul 2005 07:11:02 -0400 Subject: NSClient : which version run in windows server 2003 In-Reply-To: <1122628288.42e9f2c0a23ff@imp1-q.free.fr> References: <20050728173149.5CCAE88B91@sc8-sf-spam1.sourceforge.net> <1122628288.42e9f2c0a23ff@imp1-q.free.fr> Message-ID: HI Johann, There are many choices for monitoring Windows servers, If you can find a way to search this list you sill find several conversations on this within the past few months. There are advantages and disadvantages to each of the Windows Clients each can be downloaded from nagiosexchange : http://www.nagiosexchange.org/Windows.49.0.html but to summarize the options: 1) NSClinet is one of the older Stable clients (but it is no longer being maintained) 2) NRPE - (I never used but many people seem to use this) 3)NC_Net (I wrote this as a drop in replacement and enhancement to NSClient) 4) NSClient++ (this was also released this past year) 5) Setting up SNMP 6) setting up check_by SSH?? Good Luck Tony On 7/29/05, jotando at free.fr wrote: > Hi everyone. > > I'm started to use nagios for a month and have to supervise a windows server > 2003. > I want to use NSClient agent but I don't know which version it's preferable to > use. > > In the same order, do someone know how to configure the SNMP agent and this > server to check traffic informations. > > thank's in advance. > > Johann Otando ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe at itdz-berlin.de Sat Jul 30 16:18:03 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Sat, 30 Jul 2005 16:18:03 +0200 Subject: Is there a testing or debugging mode for nagio s? Message-ID: <6B893C5F2902D311A23F0090272854FB0575B79F@litex001.lit.verwalt-berlin.de> Hi Lori, thanks for reminding me. That was really naive of me to think that check_period could be the name of a plug-in. Of course now I remember that I defined a couple of time periods to be assigned as possible values for the check_period attribute in a service definition context. I think I only forgot about it because I (now for my initial testing) I just once defined a service template where a check_period for my usual working hours was set. And for all later added service definitions I haven't overriden this setting yet (of course in the end it will have to be 24x7) So thanks for reminding me, and forgive my stupidity. Btw, would you mind sharing your Perl script? I'm also into Perl and am curious about others' solutions. Rgds. Ralph -----Original Message----- From: Lori Adams [mailto:ladams at cloudmark.com] Sent: Friday, July 29, 2005 6:42 PM To: Ralph.Grothe at itdz-berlin.de; sloane at ku.edu Cc: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Is there a testing or debugging mode for nagios? check_period is not a plugin. Check_period is one of the options for service.cfg configurations. http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#service check_period means that a service check will only be executed during the given timeframe. Values for check_period are (usually) stored in timeperiods.cfg. Example: define service { host_name foo service_description bar check_period 24x7 . . . } To reschedule from command line, you will have to submit an "external command" with various values to your nagios.cmd (set in nagios.cfg) file. (see docs: http://nagios.sourceforge.net/docs/1_0/extcommands.html or http://www.nagios.org/developerinfo/externalcommands/commandinfo. php?command_id=127) I have a perl script where I pass the server name and service name and it will reschedule the check for 3 seconds later. "external commands" are your friend. You can end up scripting all of the commands. good luck. -Lori -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Ralph.Grothe at itdz-berlin.de Sent: Thursday, July 28, 2005 9:59 PM To: sloane at ku.edu Cc: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Is there a testing or debugging mode for nagios? Hi Bob, what kind of plug-in is check_period? I cannot find it in my Nagios installation. nor in the tarballs of either Nagios or Nagios-plugins. Is it a kind of NoOp plug-in stub I would have to write? How can I re-schedule from the command line. My Nagios web interface (i.e. the CGIs) are still a bit broken (I could easily fix if I had root privileges on the webserver to edit httpd.conf) Anyway, I'm a bit shell-fixed and avoid GUIs whenever possible. I know with Nagios I probably would miss half the fun, but this seems cosmetic to me, and can be addressed later when the base system is at least working satisfactorily. > -----Original Message----- > From: Sloane, Robert Raymond [mailto:sloane at ku.edu] > Sent: Thursday, July 28, 2005 4:03 PM > To: Ralph.Grothe at itdz-berlin.de > Subject: RE: [Nagios-users] Is there a testing or debugging mode for > nagios? > > > Why not put a "check_period none" in the template, so that the checks > won't normally be scheduled, and then use the "Re-schedule the next > check of this service" link to schedule the check when you want it to > happen? Once things are debugged, you can set the check_period in the > actual entry to whatever is appropriate. > -- > 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 Ralph.Grothe at itdz-berlin.de > > Sent: Thursday, July 28, 2005 7:55 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Is there a testing or debugging mode > > for nagios? > > > > > > Hello, > > > > this morning I received the contempt of my fellow admins > > because nagios swamped their mailboxes over night. Well, it > > wasn't of course nagios' fault but mine because I defined a > > template service wherein I referenced a conact_groups that > > comprised all of us. When later adding new services I simply > > forgot to override this attribute with a contact group that > > contained only my mail account (until I've come to terms with > > configuring). > > > > That's why I desperately miss a means to run a nagios daemon > > that isn't scheduling the checks by itself but rather by > > manual invocation. I'd also wish to test out alerting and > > event handling myself by raising events (e.g. to see where in > > the end the notification is delivered to). > > > > Does nagios provide special utilities, or switches to support > > (high level) debugging that way? > > > > Regards > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & > > EXPO September 19-22, 2005 * San Francisco, CA * Development > > Lifecycle Practices Agile & Plan-Driven Development * > > Managing Projects & Teams * Testing & QA Security * Process > > Improvement & Measurement * http://www.sqe.com/bsce5sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS > > when reporting any issue. > > ::: Messages without supporting info will risk being sent > to /dev/null > > > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe at itdz-berlin.de Sat Jul 30 16:49:40 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Sat, 30 Jul 2005 16:49:40 +0200 Subject: Use of check_by_ssh Message-ID: <6B893C5F2902D311A23F0090272854FB0575B7A0@litex001.lit.verwalt-berlin.de> Hi Marc, thanks for clarifying the meaning of check_by_ssh. Since I haven't installed any Nagios stuff (incl. Plugins) on the DMZ host yet I actually haven't thought of my little script as a Nagios plugin. Thus I didn't cling to plugin developer's guidelines. But you are right. I should rather use existing Nagios plugins for checking common services (like check_http) than trying to reinvent something that already stood proof of time. The only problem is, as the target box is a DMZ host, there are no development tools installed on (even no Perl, the CGIs are closed source binaries coming from third party company who developped the whole application. To add to the odds, this is the only HP-UX 10.20 box (still 32bit!) we host. Even if I found a compiler (e.g. gcc for this platform) I wouldn't be allowed to install it there for my build. On the other hand we have many 11.00 and 11i servers, and on some of them even C compilers. I'm not sure if I can build 10.20 32bit binaries of Nagios-plugins on one of them. Maybe if use the propper compiler flags. I will see first if my build of check_http for 11.00 will be executable on the 10.20 host (probably not, as you mentioned differing libs etc.). If that doesn't work I will see if I can build for a different target (sort of x-compile). If it all doesn't work I will simply extend my little shell script to conform to the developer's guidelines (viz. return codes, messages), and do my own parsing. Btw, I saw there is a utils.pm, that I "use"-d in my own Perl plugins, though it offers very little functionality. Is there something similar for Bourne shell compatible plugins, e.g. something you would source like ". $libexec_dir/utils.sh"? You see, because an SSH installation on every of our hosts was so obvious and natural to me, I totally missed the idea that check_by_ssh could just be an offering to those whose Nagios server lacks such. > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf > Of Marc Powell > Sent: Friday, July 29, 2005 6:05 PM > To: nagiosplug-help at lists.sourceforge.net; > nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Use of check_by_ssh > > > > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of > Ralph.Grothe at itdz-berlin.de > > Sent: Friday, July 29, 2005 7:14 AM > > To: nagiosplug-help at lists.sourceforge.net; nagios- > > users at lists.sourceforge.net > > Subject: [Nagios-users] Use of check_by_ssh > > > > Hi, > > > > I have a bastion host in a dmz that serves HTTP(S) to the > > internet. > > > > I must monitor the webserver by pulling a certain CGI URI and see > > if the Webserver returns a 200. > > > > Unfortunately I don't get another port (e.g. 5666/tcp for NRPE) > > opened by the firewall gang. > > > > I only have access from our LAN to the bastion host via SSH. > > > > Thus I wrote a short shell script that resides on the webserver > > and GETs the HEAD of this URI > > through wget (with -S, -C off, --spider). > > It's called check_dmz_www.sh > > > > So far this script isn't doing any parsing of the output from the > > GET. > > I thought to leave this part to a Nagios check_* plug-in. > > Your script would work and if you pursued that path I would > need to put > in the checking logic and *exit properly* as defined in the Developer > Guidelines at http://nagiosplug.sf.net. That being said, you're just > duplicating the functionality of the check_http plugin. Why don't you > just copy/compile that plugin on the DMZ host and use it to check your > web server using check_by_ssh (see below). > > > > > In the libexec dir I discovered check_by_ssh. > > Unfortunately, as most distributed plug-ins, the documentation is > > a bit too terse. > > > > From the --help screen I can't see the use of this plug-in, > > as it doesn't do anything more (i.e. return code parsing logic > > etc.) than vanilla ssh client does. > > > > E.g. I would call check_by_ssh from the Nagios server like this > > > > > > $ /opt/sw/nagios/libexec/check_by_ssh -1 -H $hostaddress -l www > > -i ~nagios/.ssh/id_rsa1_dmz_www -C > > /usr/local/sbin/check_dmz_www.sh > > Connecting to 127.0.0.1:80... connected. > > HTTP request sent, awaiting response... > > 1 HTTP/1.1 200 OK > > 2 Date: Fri, 29 Jul 2005 11:58:47 GMT > > 3 Server: Apache/1.3.22 (Unix) mod_ssl/2.8.5 OpenSSL/0.9.6b > > 4 Keep-Alive: timeout=25, max=100 > > 5 Connection: Keep-Alive > > 6 Content-Type: text/html > > 200 OK > > > > > > > > But where's the point in using this plug-in? > > For that I could as well just call the ssh client. > > It's just a wrapper/proxy. The plugin will ssh to the specified host, > run the specified command and return it's output _and_ exit code to > nagios, just as if nagios had run the plugin on the remote host > directly. If you have the check_http plugin in /usr/local/sbin on the > remote host you could do something like the following -- > > /opt/sw/nagios/libexec/check_by_ssh -1 -H $hostaddress -l www -i > ~nagios/.ssh/id_rsa1_dmz_www -C /usr/local/sbin/check_http -S -I > 127.0.0.1 -u http://your.host.com/health.cgi -e 200 > > *NOTE* you can only _copy_ the plugin to the remote host IFF it's the > same arch/os/version and has all the required libraries (ldd > check_http). > > > -- > Marc > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & > EXPO September > 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * > Testing & QA > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mail at oliwel.de Sun Jul 31 22:11:35 2005 From: mail at oliwel.de (Oliver Welter) Date: Sun, 31 Jul 2005 22:11:35 +0200 Subject: parents attribute / condition alarms Message-ID: <42ED3077.7020800@oliwel.de> Hi List, hello first and thanxs to all developers for this great tool :) I have a question on the parent attribute and surpressing alarms in a cascaded infrastructure. I have build up my network with "parents" attribute like this: Nagios-----Router----Switch------Server Where "Server hast "parents Switch" in its config, Switch/Router the same. Now I want to tell nagios that if "Router" goes down, it should not send alarms for Switch/Server. Is there a way to do this ?? regards Oliver -- Diese Nachricht wurde digital unterschrieben oliwel's public key: http://www.oliwel.de/oliwel.crt Basiszertifikat: http://www.ldv.ei.tum.de/page72 -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 5146 bytes Desc: S/MIME Cryptographic Signature URL: From b00mer at gmx.net Sun Jul 31 22:41:35 2005 From: b00mer at gmx.net (Hendrik Baecker) Date: Sun, 31 Jul 2005 22:41:35 +0200 Subject: parents attribute / condition alarms In-Reply-To: <42ED3077.7020800@oliwel.de> References: <42ED3077.7020800@oliwel.de> Message-ID: <42ED377F.9070901@gmx.net> Hi Oliver, this is exactly what the parents are for. Just tell the hosts.cfg for switch and server that you don't want a Unreachable Alert and go to sleep ;) Hendrik Oliver Welter schrieb: > Hi List, > > hello first and thanxs to all developers for this great tool :) > > I have a question on the parent attribute and surpressing alarms in a > cascaded infrastructure. > > I have build up my network with "parents" attribute like this: > > Nagios-----Router----Switch------Server > > Where "Server hast "parents Switch" in its config, Switch/Router the > same. > > Now I want to tell nagios that if "Router" goes down, it should not > send alarms for Switch/Server. > > Is there a way to do this ?? > > regards > > Oliver ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null