From dkynyc at gmail.com Wed Oct 1 03:23:07 2008 From: dkynyc at gmail.com (Don) Date: Tue, 30 Sep 2008 21:23:07 -0400 Subject: Check_netapp.pl plugin Issues Message-ID: Hi, I am having the following issue running the check_netapp plugin. The specific plugin I am using is the check_netapp3.pl from nagiosexchange. Here is the issue, Running the plugin by hand works perfectly I get the results wanted as seen below: [root at nagios libexec]# ./check_netapp -H netapp -C mystring -v DISKUSED DISKUSED WARNING - Kb Used : 8496184|*/vol/volnetapp/* But, when I added the checks into my nagios configuration to start checking the host using the following syntax: define command{ command_name check_netapp_DISKUSED command_line $USER1$/check_netapp -H $HOSTADDRESS$ -C $USER4$ -v DISKUSED } define service{ use Unix-Service host_name netapp.example.com service_description check_netapp_DISKUSED contact_groups Unix-Administrators check_command check_netapp_DISKUSED } When I go to the web interface and look at the service detail I get the following error in the STATUS information window: CRITICAL:Requested table is empty or does not exist for .1.3.6.1.4.1.789.1.5.4.1 with snmp version 1 It seems that Nagios cannot find the OID associated with this query? I was thinking that the OS is not aware of the MIB's based on the output so I downloaded the Netapp MIBS with no luck. Can someone offer some assistance? Thanks for any input. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeffkoch at intersessions.com Wed Oct 1 03:21:43 2008 From: jeffkoch at intersessions.com (Jeff Koch) Date: Tue, 30 Sep 2008 21:21:43 -0400 Subject: changing socket timeout Message-ID: <5.2.1.1.2.20080930212026.05e82858@mail.intersessions.com> Hi All: Can anyone tell where I can change the socket timeout for the HTTP and HTTPS Service from 10 seconds to say 20 seconds? Thanks! Best Regards, Jeff Koch ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From andurin at process-zero.de Wed Oct 1 06:37:20 2008 From: andurin at process-zero.de (=?UTF-8?B?SGVuZHJpayBCworDpGNrZXI=?=) Date: Wed, 01 Oct 2008 06:37:20 +0200 Subject: changing socket timeout In-Reply-To: <5.2.1.1.2.20080930212026.05e82858@mail.intersessions.com> References: <5.2.1.1.2.20080930212026.05e82858@mail.intersessions.com> Message-ID: <48E2FE80.4060900@process-zero.de> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jeff Koch schrieb: > Hi All: > > Can anyone tell where I can change the socket timeout for the HTTP and > HTTPS Service from 10 seconds to say 20 seconds? > http://nagiosplugins.org/man/check_http Look for an option called - timeout -. - - Hendrik -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (Darwin) iEYEARECAAYFAkji/oAACgkQlI0PwfxLQjm4jACfaGooX+zA33XDUhBh99bFcQzg m04AmwX38cTFXlOc1GZbd0B93o1pnu5q =RJmm -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From treibholz at sozial-inkompetent.de Wed Oct 1 08:33:29 2008 From: treibholz at sozial-inkompetent.de (Klaus Umbach) Date: Wed, 1 Oct 2008 08:33:29 +0200 Subject: English and German Counters with NSClient++ In-Reply-To: <48E2741F.7000900@medin.name> References: <20080930161258.GA12005@umbach-racing.de> <48E2741F.7000900@medin.name> Message-ID: <20081001063329.GB12005@umbach-racing.de> On 30/09/08 20:46, Michael Medin wrote: > Hello, > > NSClient++ (version 3 and above) do not use the "counter names" so they > are no longer language specific. > The coutners.defs is there as a "fall back" so it is probably never used... So is there a way of asking NSClient++ language independent for e.g. "\Physikalischer Datentr?ger(_Total)\Durchschnittl. Warteschlangenl?nge des Datentr?gers" vs "\PhysicalDisk(_Total)\Avg. Disk Queue Length" or do I have to define different services for different languages? - Treibholz > > > // Michael Medin > > Klaus Umbach skrev: >> Hi, >> >> I was just scared by the discovery that the performance counters in Windows >> are language specific... (Those morons even use Umlauts!) >> >> Is it somehow possible to define all I need in counters.defs and use them >> with a language-independent call? >> >> I already defined some, but I don't know how to call them now. >> >> >> >> >> Cheers >> Klaus >> >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >> Build the coolest Linux based applications with Moblin SDK & win great prizes >> Grand prize is a trip for two to an Open Source event anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: 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 Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From matt at myacs.com Wed Oct 1 09:40:26 2008 From: matt at myacs.com (Matthew D. Baker) Date: Wed, 1 Oct 2008 02:40:26 -0500 Subject: Sticky Acknowledgement Bug? Message-ID: <6F04B688A0012D4B9F78960D96647B121C0B88@bakergcex01.myacs.com> All, Looking for a little confirmation or for someone to correct me. I've been playing around with a perl script to allow sending an acknowledgement to Nagios through replying to a host or service notification in email. I've got the script working but in the process noticed something odd. According to the Nagios documentation for the external command ACKNOWLEDGE_SVC_PROBLEM, setting "sticky" to 1 forces the acknowledgement to remain until the service returns to an OK state. However, if submitting an acknowledgement through the webui and then checking the Event Log, placing a check next to Sticky Acknowledgement causes the "sticky" option on the external command in the Event Log to show up as a 2. Leaving this box unchecked allows the "sticky" option in the Event Log to show up as a 1. I would have thought that checking this option in the webui would in effect turn it on, but the opposite appears to be occurring. Nagios version in use is 2.9. Thanks! Matt -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From michael at medin.name Wed Oct 1 11:16:14 2008 From: michael at medin.name (Michael Medin) Date: Wed, 01 Oct 2008 11:16:14 +0200 Subject: English and German Counters with NSClient++ In-Reply-To: <20081001063329.GB12005@umbach-racing.de> References: <20080930161258.GA12005@umbach-racing.de> <48E2741F.7000900@medin.name> <20081001063329.GB12005@umbach-racing.de> Message-ID: <48E33FDE.3050105@medin.name> Klaus Umbach skrev: > On 30/09/08 20:46, Michael Medin wrote: > >> Hello, >> >> NSClient++ (version 3 and above) do not use the "counter names" so they >> are no longer language specific. >> The coutners.defs is there as a "fall back" so it is probably never used... >> > > So is there a way of asking NSClient++ language independent for e.g. > Ahh... now I understand... no... (though I guess I could add it if you want). Feel free to make such a request at the trac site at nsclient.org and I shall see if I can fix it (going to Germany for maschinenfest so might take a week or two before you get it in a "nightly build"). Another option would be to "include" a "local.ini" file and have the language specific counters there. (look under the [include] section). But this would I guess require you to make some "manual" handling so I think an index based solution would perhaps be better. Also there is WMI which does much of what PDH does but again the index solution might be simpler... // Michael Medin > "\Physikalischer Datentr?ger(_Total)\Durchschnittl. Warteschlangenl?nge des Datentr?gers" > vs > "\PhysicalDisk(_Total)\Avg. Disk Queue Length" > > or do I have to define different services for different languages? > > - > Treibholz > > >> // Michael Medin >> >> Klaus Umbach skrev: >> >>> Hi, >>> >>> I was just scared by the discovery that the performance counters in Windows >>> are language specific... (Those morons even use Umlauts!) >>> >>> Is it somehow possible to define all I need in counters.defs and use them >>> with a language-independent call? >>> >>> I already defined some, but I don't know how to call them now. >>> >>> >>> >>> >>> Cheers >>> Klaus >>> >>> >>> ------------------------------------------------------------------------- >>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >>> Build the coolest Linux based applications with Moblin SDK & win great prizes >>> Grand prize is a trip for two to an Open Source event anywhere in the world >>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>> _______________________________________________ >>> Nagios-users mailing list >>> Nagios-users at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>> ::: Please include Nagios version, plugin version (-v) and OS when >>> reporting any issue. ::: Messages without supporting info will risk >>> being sent to /dev/null >>> >>> >>> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From zbipol at gmail.com Wed Oct 1 17:34:55 2008 From: zbipol at gmail.com (Z P) Date: Wed, 1 Oct 2008 17:34:55 +0200 Subject: Performance data via send_nsca - Distributed monitoring Message-ID: Hi Why performance data is not send by send_nsca I got several monitored machines and they are sending check results to master server, problem is that they are not sending performance data, on local machines everything looks ok Any ideas??? -- Regards zbipol -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tuomas.toropainen at lanwan.fi Wed Oct 1 17:44:45 2008 From: tuomas.toropainen at lanwan.fi (Tuomas Toropainen) Date: Wed, 1 Oct 2008 18:44:45 +0300 (EEST) Subject: Filtering out false alarms in unreliable network Message-ID: <32216.194.42.61.10.1222875885.squirrel@imap.lanwan.fi> The problem: how to filter out false alarms caused by short-time breaks in an unreliable network. Think about a simple monitoring scenario in which you only want to ping various devices to see if they are up or not. So you have 200 hosts with only one service (PING) for each. For a reason or another, short-time breaks occur in the network. That is, a particular host does not reply to PINGs for e.g. 30 seconds. These breaks should not cause a notification to be sent. What comes to services, the filtering is easy with max_check_attempt and retry_check_interval. But the host check becomes a problem: after first PING failure (soft state) the host is checked, and there is no retry_check_interval for hosts. So the host is declared to be down (almost) immediately. The notifications about hosts can be delayed using first_notification_delay. This seems to work fine except for one thing: flap detection. Even if the notification is not sent, the host (and service) is logged to have changed state, and when enough such state changes occur, the host (and service) is placed in flapping state. I do not want to disable flapping detection (or flapping notifications) completely, because they might be useful in many cases. What I would like to achieve is not to count those short-time outages when computing flapping percent state changes. How can I accomplish that? Should I go ahead and disable host checks completely? If there only was retry_check_interval for hosts, it would solve all these problems. I think it is quite common that the short-time outages are network-related, i.e. the complete host is unresponsive instead of a single service. When this is taken into account, it seems weird that there is retry_check_interval for services but not for hosts. Or would it ruin the scheduling logic? Thanks for any help. -tuomas ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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_knight at rlknight.com Wed Oct 1 21:12:14 2008 From: rick_knight at rlknight.com (Rick Knight) Date: Wed, 01 Oct 2008 12:12:14 -0700 Subject: Help with Monitoring Windows Machines Message-ID: <48E3CB8E.7020803@rlknight.com> I've installed Nagios and have it working to monitor my linux localhost without problems, so I tried to add a Windows server to monitor. I followed the instructions in Nagios Documentation, Monitoring Windows Machines. After installing and starting NSClient++ on the Windows machine and making the changes to /usr/local/nagios/etc/nagios.cfg and /usr/local/nagios/etc/objects/windows.cfg I tried verifying the configuration with /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg. I get this error... Nagios 3.0b3 Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org) Last Modified: 08-30-2007 License: GPL Reading configuration data... Error: Could not find any hostgroup matching 'allhosts' (config file '/usr/local/nagios/etc/objects/windows.cfg', starting on line 25) Error: Hostgroup has no members (config file '/usr/local/nagios/etc/objects/windows.cfg', starting on line 47) ***> One or more problems was encountered while processing the config files... Check your configuration file(s) to ensure that they contain valid directives and data defintions. If you are upgrading from a previous version of Nagios, you should be aware that some variables/definitions may have been removed or modified in this version. Make sure to read the HTML documentation regarding the config files, as well as the 'Whats New' section to find out what has changed. I get this on 2 linux PCs configured similarly. I've re-read the instructions and I've got everything correct. Why am I getting this error? Thanks, Rick ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 1 21:26:58 2008 From: ae at op5.se (Andreas Ericsson) Date: Wed, 01 Oct 2008 21:26:58 +0200 Subject: Performance data via send_nsca - Distributed monitoring In-Reply-To: References: Message-ID: <48E3CF02.8050408@op5.se> Z P wrote: > Hi > > Why performance data is not send by send_nsca > I got several monitored machines and they are sending check results to > master server, > problem is that they are not sending performance data, on local machines > everything looks ok > Any ideas??? > You've specified a bad ocsp command. Check the docs. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 1 21:36:44 2008 From: ae at op5.se (Andreas Ericsson) Date: Wed, 01 Oct 2008 21:36:44 +0200 Subject: Help with Monitoring Windows Machines In-Reply-To: <48E3CB8E.7020803@rlknight.com> References: <48E3CB8E.7020803@rlknight.com> Message-ID: <48E3D14C.9000806@op5.se> Rick Knight wrote: > I've installed Nagios and have it working to monitor my linux localhost > without problems, so I tried to add a Windows server to monitor. I > followed the instructions in Nagios Documentation, Monitoring Windows > Machines. After installing and starting NSClient++ on the Windows > machine and making the changes to /usr/local/nagios/etc/nagios.cfg and > /usr/local/nagios/etc/objects/windows.cfg I tried verifying the > configuration with /usr/local/nagios/bin/nagios -v > /usr/local/nagios/etc/nagios.cfg. I get this error... > > Nagios 3.0b3 > Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org) > Last Modified: 08-30-2007 > License: GPL > > Reading configuration data... > > Error: Could not find any hostgroup matching 'allhosts' (config file > '/usr/local/nagios/etc/objects/windows.cfg', starting on line 25) > Error: Hostgroup has no members (config file > '/usr/local/nagios/etc/objects/windows.cfg', starting on line 47) > My guess is that you've misspelled the name of the hostgroup 'allhosts' when defining it on line 47 in /usr/local/nagios/etc/objects/windows.cfg, or that the hostgroup "allhosts" indeed has no members, so that Nagios fails to add it properly and therefore cannot find it when you're using it to define one or more services. > ***> 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. > > I get this on 2 linux PCs configured similarly. I've re-read the > instructions and I've got everything correct. > > Why am I getting this error? > Because you haven't gotten everything correct. Sorry, but the two are mutually exclusive, so either you have got it all right and won't see the error, or you somehow fscked up and you see the error. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From izz_abdullah at inbox.com Wed Oct 1 21:45:39 2008 From: izz_abdullah at inbox.com (Izz Abdullah) Date: Wed, 1 Oct 2008 11:45:39 -0800 Subject: Help with Monitoring Windows Machines In-Reply-To: <48E3CB8E.7020803@rlknight.com> References: <48E3CB8E.7020803@rlknight.com> Message-ID: <1D25C3568AA.00000762izz_abdullah@inbox.com> Hi Rick, In your windows.cfg file ensure you have the following: define hostgroup{ hostgroup_name allhosts alias All my Hosts #whatever you want (e.g. allhosts, All my Hosts, Windows Servers) members #put the hostname of the server you are monitoring here } I've also found you need to put in the templates.cfg file the following (at least, or maybe most :) ) define host{ name All my Hosts #whatever you want to identify (as above) use generic-host check_period 24x7 check_interval 5 retry_interval 1 max_check_attempts 10 check_command check-host-alive notification_period 24x7 notification_interval 30 notification_options d,r contact_groups admins hostgroups allhosts register 0 } Most of the templates.cfg portion is particular to my setup, change as necessary. Hope this helps. Regards, Izz > -----Original Message----- > From: rick_knight at rlknight.com > Sent: Wed, 01 Oct 2008 12:12:14 -0700 > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Help with Monitoring Windows Machines > > I've installed Nagios and have it working to monitor my linux localhost > without problems, so I tried to add a Windows server to monitor. I > followed the instructions in Nagios Documentation, Monitoring Windows > Machines. After installing and starting NSClient++ on the Windows > machine and making the changes to /usr/local/nagios/etc/nagios.cfg and > /usr/local/nagios/etc/objects/windows.cfg I tried verifying the > configuration with /usr/local/nagios/bin/nagios -v > /usr/local/nagios/etc/nagios.cfg. I get this error... > > Nagios 3.0b3 > Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org) > Last Modified: 08-30-2007 > License: GPL > > Reading configuration data... > > Error: Could not find any hostgroup matching 'allhosts' (config file > '/usr/local/nagios/etc/objects/windows.cfg', starting on line 25) > Error: Hostgroup has no members (config file > '/usr/local/nagios/etc/objects/windows.cfg', starting on line 47) > > ***> One or more problems was encountered while processing the config > files... > > Check your configuration file(s) to ensure that they contain valid > directives and data defintions. If you are upgrading from a > previous > version of Nagios, you should be aware that some > variables/definitions > may have been removed or modified in this version. Make sure to > read > the HTML documentation regarding the config files, as well as the > 'Whats New' section to find out what has changed. > > I get this on 2 linux PCs configured similarly. I've re-read the > instructions and I've got everything correct. > > Why am I getting this error? > > Thanks, > Rick > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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_knight at rlknight.com Wed Oct 1 22:27:11 2008 From: rick_knight at rlknight.com (Rick Knight) Date: Wed, 01 Oct 2008 13:27:11 -0700 Subject: Help with Monitoring Windows Machines In-Reply-To: <1D25C3568AA.00000762izz_abdullah@inbox.com> References: <1D25C3568AA.00000762izz_abdullah@inbox.com> Message-ID: <48E3DD1F.8080804@rlknight.com> Izz Abdullah wrote: > Hi Rick, > > In your windows.cfg file ensure you have the following: > > define hostgroup{ > hostgroup_name allhosts > alias All my Hosts #whatever you want (e.g. allhosts, All my Hosts, Windows Servers) > members #put the hostname of the server you are monitoring here > } > > I've also found you need to put in the templates.cfg file the following (at least, or maybe most :) ) > > define host{ > name All my Hosts #whatever you want to identify (as above) > use generic-host > check_period 24x7 > check_interval 5 > retry_interval 1 > max_check_attempts 10 > check_command check-host-alive > notification_period 24x7 > notification_interval 30 > notification_options d,r > contact_groups admins > hostgroups allhosts > register 0 > } > > Most of the templates.cfg portion is particular to my setup, change as necessary. > > Hope this helps. > > Regards, > Izz > > >> -----Original Message----- >> From: rick_knight at rlknight.com >> Sent: Wed, 01 Oct 2008 12:12:14 -0700 >> To: nagios-users at lists.sourceforge.net >> Subject: [Nagios-users] Help with Monitoring Windows Machines >> >> I've installed Nagios and have it working to monitor my linux localhost >> without problems, so I tried to add a Windows server to monitor. I >> followed the instructions in Nagios Documentation, Monitoring Windows >> Machines. After installing and starting NSClient++ on the Windows >> machine and making the changes to /usr/local/nagios/etc/nagios.cfg and >> /usr/local/nagios/etc/objects/windows.cfg I tried verifying the >> configuration with /usr/local/nagios/bin/nagios -v >> /usr/local/nagios/etc/nagios.cfg. I get this error... >> >> Nagios 3.0b3 >> Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org) >> Last Modified: 08-30-2007 >> License: GPL >> >> Reading configuration data... >> >> Error: Could not find any hostgroup matching 'allhosts' (config file >> '/usr/local/nagios/etc/objects/windows.cfg', starting on line 25) >> Error: Hostgroup has no members (config file >> '/usr/local/nagios/etc/objects/windows.cfg', starting on line 47) >> >> ***> One or more problems was encountered while processing the config >> files... >> >> Check your configuration file(s) to ensure that they contain valid >> directives and data defintions. If you are upgrading from a >> previous >> version of Nagios, you should be aware that some >> variables/definitions >> may have been removed or modified in this version. Make sure to >> read >> the HTML documentation regarding the config files, as well as the >> 'Whats New' section to find out what has changed. >> >> I get this on 2 linux PCs configured similarly. I've re-read the >> instructions and I've got everything correct. >> >> Why am I getting this error? >> >> Thanks, >> Rick >> >> >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the >> world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> Thanks Izz & Andreas, Your suggestions helped me find my problem. The default windows.cfg has a hostgroup windows_servers. That group does not have a members option. I added members and the member server name to hostgroup windows_servers and now things are working. Thanks to both of yoy. Izz, I'm going to look at your template.cfg to see if there's anything that looks like I want. Thanks again, Rick ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From simon.kainz at tugraz.at Wed Oct 1 21:51:21 2008 From: simon.kainz at tugraz.at (Simon Kainz) Date: Wed, 01 Oct 2008 21:51:21 +0200 Subject: SMS notification problem . HW trouble ? Message-ID: <20081001215121.11904h3wwdh3sccg@webmail.tugraz.at> Hi List ! I hope this is not too off-topic, but it is somehow related to Nagios, so here we go... I use a Siemens T35i GSM module for sending Nagios notifications as well as using it as a email-to-sms gateway. This worked for at least 3 years in a total of about 12000 SMS. Since several days i get strange errors, like some sms not being sent or even received, which is rather annoying, at least. As far as I know, sending SMS works like copy the sms to sim card and send it fro there. Could it be possible the the EEPROM starage area on the SIM is "written to death" after this many sms's ? I use debian and smstools, which tells me the following errors: +CMS ERROR: 321 with the following error codes: 303 314 321 500 Maybe someone has already encountered soemthing similar ? Regards , Simon ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From victor.severgnini at opservices.com.br Wed Oct 1 22:46:51 2008 From: victor.severgnini at opservices.com.br (Victor Severgnini) Date: Wed, 1 Oct 2008 17:46:51 -0300 (BRT) Subject: SMS notification problem . HW trouble ? In-Reply-To: <2929670.94651222893989776.JavaMail.root@mail.opservices.com.br> References: <2929670.94651222893989776.JavaMail.root@mail.opservices.com.br> Message-ID: <8442767.94671222894011357.JavaMail.root@mail.opservices.com.br> Hello Simon, I found no similar errors, but I got a list describing the mistakes that can help you: +CMS ERROR Message service error Description These are the error codes for +CMS ERROR. Error code Meaning 0-127 GSM 04.11 Annex E-2 values 128-255 GSM 03.40 section 9.2.3.22 values 300 Phone failure 301 SMS service of phone reserved 302 Operation not allowed 303 Operation not supported 304 Invalid PDU mode parameter 305 Invalid text mode parameter 310 SIM not inserted 311 SIM PIN necessary 312 PH-SIM PIN necessary 313 SIM failure 314 SIM busy 315 SIM wrong 320 Memory failure 321 Invalid memory index 322 Memory full 330 SMSC (message service center) address unknown 331 No network service 332 Network timeout 500 Unknown error 512 Manufacturer specific Regards. --- Victor Severgnini victor.severgnini at opservices.com.br OpServices www.opservices.com.br Porto Alegre - RS - Brazil Phone: (55) 51 3275 3588 Mobile: (55) 51 -81944997 ----- Mensagem original ----- De: "Simon Kainz" Para: nagios-users at lists.sourceforge.net Enviadas: Quarta-feira, 1 de Outubro de 2008 16:51:21 (GMT-0300) Auto-Detected Assunto: [Nagios-users] SMS notification problem . HW trouble ? Hi List ! I hope this is not too off-topic, but it is somehow related to Nagios, so here we go... I use a Siemens T35i GSM module for sending Nagios notifications as well as using it as a email-to-sms gateway. This worked for at least 3 years in a total of about 12000 SMS. Since several days i get strange errors, like some sms not being sent or even received, which is rather annoying, at least. As far as I know, sending SMS works like copy the sms to sim card and send it fro there. Could it be possible the the EEPROM starage area on the SIM is "written to death" after this many sms's ? I use debian and smstools, which tells me the following errors: +CMS ERROR: 321 with the following error codes: 303 314 321 500 Maybe someone has already encountered soemthing similar ? Regards , Simon ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jon at netdork.net Thu Oct 2 09:26:55 2008 From: jon at netdork.net (Jon Angliss) Date: Thu, 02 Oct 2008 02:26:55 -0500 Subject: Filtering out false alarms in unreliable network References: <32216.194.42.61.10.1222875885.squirrel@imap.lanwan.fi> Message-ID: <8et8e45ghvj5osobvkfpe61tfef1112hgj@4ax.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, 1 Oct 2008 18:44:45 +0300 (EEST), "Tuomas Toropainen" wrote: >The problem: how to filter out false alarms caused by short-time breaks in >an unreliable network. > >Think about a simple monitoring scenario in which you only want to ping >various devices to see if they are up or not. So you have 200 hosts with >only one service (PING) for each. > >For a reason or another, short-time breaks occur in the network. That is, >a particular host does not reply to PINGs for e.g. 30 seconds. These >breaks should not cause a notification to be sent. > >What comes to services, the filtering is easy with max_check_attempt and >retry_check_interval. But the host check becomes a problem: after first >PING failure (soft state) the host is checked, and there is no >retry_check_interval for hosts. So the host is declared to be down >(almost) immediately. I'm going to guess you're using nagios 2. Nagios 3 has a retry_interval for both service, and host. However, that being said, that just hints to me that the host check will be executed "max_check_attempts" at the "check_interval" rate (both options exist on a host). So set your max_check_attempts to a reasonible number (3 for 3 minutes for example), and check_interval to another reasonible number (1 for 1 minute), and that should handle 30 second "blips" in networks. - -- Jon Angliss -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) - GPGshell v3.64 iEYEARECAAYFAkjkd6wACgkQK4PoFPj9H3P/bACdEPhfz6wPYCAqLpYHcU/wI7JZ OBgAoOqAadpvYuHSQbnGU5zHkbjl85TQ =jj8S -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jon at netdork.net Thu Oct 2 09:41:29 2008 From: jon at netdork.net (Jon Angliss) Date: Thu, 02 Oct 2008 02:41:29 -0500 Subject: Check_netapp.pl plugin Issues References: Message-ID: <6cu8e4lnq7u0j3rma7phdcsdrlmvm0ap1a@4ax.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, 30 Sep 2008 21:23:07 -0400, Don wrote: >Hi, I am having the following issue running the check_netapp plugin. The >specific plugin I am using is the check_netapp3.pl from nagiosexchange. Here >is the issue, > >Running the plugin by hand works perfectly I get the results wanted as seen >below: >[root at nagios libexec]# ./check_netapp -H netapp -C mystring -v DISKUSED >DISKUSED WARNING - Kb Used : 8496184|*/vol/volnetapp/* >But, when I added the checks into my nagios configuration to start checking >the host using the following syntax: >define command{ >command_name check_netapp_DISKUSED >command_line $USER1$/check_netapp -H $HOSTADDRESS$ -C $USER4$ -v DISKUSED >} I'm asuming $USER4$ is a properly defined macro? Have you attempted to hard code the value in there "mystring" in your above example. >define service{ >use Unix-Service >host_name netapp.example.com >service_description check_netapp_DISKUSED >contact_groups Unix-Administrators >check_command check_netapp_DISKUSED >} > >When I go to the web interface and look at the service detail I get the >following error in the STATUS information window: > >CRITICAL:Requested table is empty or does not exist for >.1.3.6.1.4.1.789.1.5.4.1 with snmp version 1 As it's complaining about version info, have you tried adding -P 2? Have you tried turning on the debugging, and seeing what the command is being expanded to? >It seems that Nagios cannot find the OID associated with this query? >I was thinking that the OS is not aware of the MIB's based on the output so >I downloaded the Netapp MIBS with no luck. Can someone offer some >assistance? MIBs are generally just to make it easier for us meer humans to read. As long as the server/device responds to the number you request, the machine doesn't really need the words. It only comes in handy if you decide you want to write code that does nice queries, such as getting the system uptime sysUpTime.0. - -- Jon Angliss -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) - GPGshell v3.64 iEYEARECAAYFAkjkexwACgkQK4PoFPj9H3MDxQCeKPbESU58Fsu9r9ZV5BOvdL9L EgsAoPf0k27iW5NmInMLImEzQpp5jN1x =mZlU -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jon at netdork.net Thu Oct 2 10:13:35 2008 From: jon at netdork.net (Jon Angliss) Date: Thu, 02 Oct 2008 03:13:35 -0500 Subject: nagios on call schedule w/ escalations? References: <22DEED01-E27A-40EA-A539-A92E76A9BBCE@gmail.com> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, 30 Sep 2008 16:22:16 -0500, Charlie Reddington wrote: >Hi guys / gals, > >I am working on the final stages of my nagios setup, but I'm entering >territory which I haven't been before and can use some guidance. I'm sure you've probably taken a peek at the "On Call Rotations" details in the documentation: http://nagios.sourceforge.net/docs/3_0/oncallrotation.html There are plenty of examples to get a good idea. >Here's what I'm trying to achieve. We have a team of 3 admins, where >we rotate weeks who is on call. Of course, they aren't every other 3rd >week , because of people having vacation time, etc. So some weeks >people are on call for 2 weeks, or every 2 weeks, etc. > >What we'd like is, to have a schedule setup where the primary guy gets >woken up first. But if he doesn't answer his call after an hour, it >drops down to the rest of us admins. No matter if your just at home >sleeping, or if your on vacation, you get pinged. After that it goes >up to our manager. >I can figure out the setting of people's initial schedule, as I have >it looking something like this.... > ># contacts > >define contact{ > contact_name user1 > use generic-contact > alias user1 > email user1 > host_notification_period user1_oncall > service_notfication_period user1_oncall > } > >define contact{ > contact_name user2 > use generic-contact > alias user2 > email user2 > host_notification_period user2_oncall > service_notfication_period user2_oncall > } > >define contact{ > contact_name user3 > use generic-contact > alias user3 > email user3 > host_notification_period user3_oncall > service_notfication_period user3_oncall > } >define contact{ > contact_name manager1 > use generic-contact > email manager1 > } > ># groiups > >define contactgroup{ > contact_groupname admins > members user1,user2,user3 >} >define contactgroup{ > contact_groupname managers > members manager1 >} > ># Time periods > >define timeperiod{ > timeperiod_name user1_oncall > Sept 29 - Oct 5 00:00-24:00 > Oct 20 - Oct 26 00:00-24:00 > Nov 17 - Nov 23 00:00-24:00 > Dec 1 - Dec 7 00:00-24:00 > Dec 15 - Dec 21 00:00-24:00 >} > >define timeperiod{ > timeperiod_name user2_oncall > Oct 6 - Oct 12 00:00-24:00 > Nov 3 - Nov 9 00:00-24:00 > Nov 24 - Nov 30 00:00-24:00 > Dec 22 - Dec 23 00:00-24:00 >} > >define timeperiod{ > timeperiod_name user3_oncall > Oct 13 - Oct 19 00:00-24:00 > Oct 27 - Nov 2 00:00-24:00 > Nov 10 - Nov 16 00:00-24:00 > Dec 8 - Dec 14 00:00-24:00 >} >Would / Does escalations trump the initial contacts? > ># First escalations >define serviceescalation{ > hostgroup_name Servers > service_description * > first_notification 2 > last_notification 3 > notification_interval 30 > contact_groups admins >} > ># Second escalations >define serviceescalation{ > hostgroup_name Servers > service_description * > first_notification 3 > last_notification 8 > notification_interval 60 > contact_groups admins,managers >} > >So I know this isn't quite right, as our admins are part of the admin >group, but also trying to restrict when they get contacted. So I'm not >really sure how to proceed with this. You might want to read up on notifications, and serviceescalations, too... Looking at the time stuff you've got, what'll happen is at any one point, only 1 of the admins will be reachable by notifications at any time. This is because the "timeperiods" stop nagios from sending notifications to a user that is outside their timeperiod. For example, a host goes down at 2100 on Oct 15th, only user3 will be notified, even after the escalations kick in. There will be a period of 0-3 notifications where user3 is the only recipient. It'll only get to another person when the 3rd notification goes out, and it engages the "managers" contact group. Depending on how many users/admins you're looking at, you could use a trick with templating, and inheritence. Keeping your base users as you have above, then build escalation users' and groups. define timeperiod { timeperiod_name AllTimes alias All Times sunday 00:00-24:00 monday 00:00-24:00 tuesday 00:00-24:00 wednesday 00:00-24:00 thursday 00:00-24:00 friday 00:00-24:00 saturday 00:00-24:00 } define contact { contact_name disable_times host_notification_period AllTimes service_notification_period AllTimes register 0 } define contact{ contact_name user1 use generic-contact alias user1 email user1 host_notification_period user1_oncall service_notfication_period user1_oncall } define contact{ contact_name user2 use generic-contact alias user2 email user2 host_notification_period user2_oncall service_notfication_period user2_oncall } define contact { use disable_times,user1 contact_name user1_esc } define contact { user disable_times,user2 contact_name user2_esc } define contactgroup { contactgroup_name admins members user1,user2 } define contactgroup { contactgroup_name admins_esc members user1_esc,user2_esc } Then your service escalations use admins_esc instead of just admins. I've not tested it, but looking at the way inheritence works, you should be OK. - -- Jon Angliss -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) - GPGshell v3.64 iEYEARECAAYFAkjkgqMACgkQK4PoFPj9H3MthQCg4XgD5eNyl190umm7Ew8OouKK kCoAoNsRdPjpTMX/tO/eC00ejVb3MjzF =XHky -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jon at netdork.net Thu Oct 2 10:26:37 2008 From: jon at netdork.net (Jon Angliss) Date: Thu, 02 Oct 2008 03:26:37 -0500 Subject: Integration with Request Tracker References: <302ce8b50809291947j44a3c330u830a365cc8fbf282@mail.gmail.com> <02EAC0960BFECB4F9EAEC26B4972EE4471C9C24B7E@TDCHEXBE01.int.tdch.dk> <302ce8b50809300439k44cbc0c9h24d144e5965c6d20@mail.gmail.com> <48E22878.90402@op5.se> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, 30 Sep 2008 15:24:08 +0200, Andreas Ericsson wrote: >Jim Perrin wrote: >> On Tue, Sep 30, 2008 at 3:26 AM, Bo Philip Larsen wrote: >>> This found on nagiosexchange http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2542.html;d=1 >> >> Thanks for this, but the limitation the author lists at the bottom is >> just about exactly what I'm running in to. How do you track the ticket >> number between nagios and RT? Tracking the consistent data for the >> duration of an issue complicates ticket generation/closure a little >> bit :-) >> >> > >Nagios 3 introduces notification id's. Once you can connect a >notification id and an rt number, you're home free. How to make that >connection is up to you though. Not directly. Looking at the description, the ID increases on each new notification sent. : The notification ID number is incremented by one (1) each time a new : host notification is sent out, and regardless of how many contacts are : notified. I read this being that each notification gets a new ID. For example, a host goes down, the first notification gets 1... second gets 2... etc. Host recovers. A service on another host goes down, and the notification ID is 3. It'd be a little easier if the notification ID stayed the same for the entire duration of the host being down. You might want to look at $SERVICEPROBLEMID$ and $HOSTPROBLEMID$ instead. And the $LAST...$ versions of both of those. Combining with an event handler, you can probably use a small table containing the RT ticket number, the host/service name, and the problem ID. You'd then feed the state, statetype, service, host, and the problem ID macros to the event handler, and you should then be home free :) - -- Jon Angliss -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) - GPGshell v3.64 iEYEARECAAYFAkjkhbUACgkQK4PoFPj9H3OJSQCfTAjWQlnsjFemAPu3T/v6KQX5 oCwAnj1gov/YsCbn/aezABh9bwL0qs44 =oliQ -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Sebastian.Ries at dtnet.de Thu Oct 2 11:01:43 2008 From: Sebastian.Ries at dtnet.de (Sebastian Ries) Date: Thu, 02 Oct 2008 11:01:43 +0200 Subject: Integration with Request Tracker In-Reply-To: References: <302ce8b50809291947j44a3c330u830a365cc8fbf282@mail.gmail.com> <02EAC0960BFECB4F9EAEC26B4972EE4471C9C24B7E@TDCHEXBE01.int.tdch.dk> <302ce8b50809300439k44cbc0c9h24d144e5965c6d20@mail.gmail.com> <48E22878.90402@op5.se> Message-ID: <1222938103.30176.15.camel@bofh.dtnet.de> Hi > Not directly. Looking at the description, the ID increases on each > new notification sent. > > : The notification ID number is incremented by one (1) each time a new > > : host notification is sent out, and regardless of how many contacts > are > : notified. > > I read this being that each notification gets a new ID. For example, > a host goes down, the first notification gets 1... second gets 2... > etc. Host recovers. A service on another host goes down, and the > notification ID is 3. No. The Order is: Host goes down Notification 1 Notification 2 Notification 3 Host recovers Notification 4 (Recovery) Host goes down (any) Notification 1 Notification 2 ... Notifications are counted for each problem without regarding other problems. Regards Sebastian Ries -- ------------------------------------------------------------ DT Netsolution GmbH - Talaeckerstr. 30 - D-70437 Stuttgart Tel: +49-711-849910-36 Fax: +49-711-849910-936 WEB: http://www.dtnet.de/ email: Sebastian.Ries at dtnet.de ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bartek at net-serwis.pl Thu Oct 2 11:26:40 2008 From: bartek at net-serwis.pl (Bartlomiej Korupczynski) Date: Thu, 2 Oct 2008 11:26:40 +0200 Subject: Services get stuck in warning/critical state Message-ID: <20081002112640.5f373a09.bartek@net-serwis.pl> Hello, Since upgrade to 3.0.3 from ports on FreeBSD 6.2-RELEASE. It's used to monitor approx. 300 services on 150 hosts. The problem is, that sometimes random services get stuck in warning/critical state. I've checked scheduling queue in CGI and it seems right, but as I see, it says only about hosts, not services. I probably should also mention, that nagios host sometimes has quite high load (up to 2.0 on uniprocessor machine), as a result of monitoring scripts. Next thing is that monitoring host has big constant clock skew that I can't get rid of (time runs faster, ca. 5s for every 2 minutes, this gets corrected by ntpdate every 2 minutes). - example host status: Host Status: UP (for 1d 9h 35m 23s) Status Information: PING OK - Packet loss = 0%, RTA = 15.33 ms Performance Data: rta=15.333000ms;3000.000000;5000.000000;0.000000 pl=0%;80;100;0 Current Attempt: 1/5 (HARD state) Last Check Time: 02-10-2008 10:32:44 Check Type: ACTIVE Check Latency / Duration: 0.732 / 0.152 seconds Next Scheduled Active Check: 02-10-2008 10:37:54 Last State Change: 01-10-2008 01:02:43 Last Notification: N/A (notification 0) Is This Host Flapping? N/A In Scheduled Downtime? NO Last Update: 02-10-2008 10:37:58 ( 0d 0h 0m 8s ago) - service status on the host above: Current Status: CRITICAL (for 2d 2h 55m 9s) Status Information: PING CRITICAL - Packet loss = 0%, RTA = 313.92 ms Performance Data: Current Attempt: 3/5 (SOFT state) Last Check Time: 30-09-2008 07:44:36 Check Type: ACTIVE Check Latency / Duration: 0.116 / 4.657 seconds Next Scheduled Check: 30-09-2008 07:45:36 Last State Change: 30-09-2008 07:44:36 Last Notification: N/A (notification 0) Is This Service Flapping? N/A In Scheduled Downtime? NO Last Update: 02-10-2008 10:39:43 ( 0d 0h 0m 2s ago) Notice the Last Check Time, the service status is two days old. Problem can be resolved by nagios restart, or by "Re-schedule the next check of this service" in the CGI. Parent host is up, and the service has no parent. Is there any configuration directive that may cause service check to be dropped by the scheduler? - configuration related to host: define host { register 0 name generic-host check_command check-host-alive notification_period 24x7 notification_options d,u,r max_check_attempts 5 notification_interval 240 notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 } define host { register 0 use generic-host name generic-device-ext contact_groups noc,tech } define host { use generic-device-ext host_name ... alias ... address ... parents ... } - service: define service { name generic-service active_checks_enabled 1 passive_checks_enabled 0 parallelize_check 1 obsess_over_service 1 check_freshness 0 notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 is_volatile 0 check_period 24x7 max_check_attempts 5 normal_check_interval 5 retry_check_interval 1 notification_interval 120 notification_period 24x7 notification_options u,w,c,r register 0 } define service { use generic-service name nrpe max_check_attempts 5 normal_check_interval 5 retry_check_interval 1 register 0 } define service { use nrpe name nrpe-ping service_description PING-nrpe check_command check_nrpe_ping!... contact_groups noc-prio host_name ... } Thanks in advance for any clues. Best regards, Bart?omiej Korupczy?ski ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 2 16:08:44 2008 From: ae at op5.se (Andreas Ericsson) Date: Thu, 02 Oct 2008 16:08:44 +0200 Subject: Integration with Request Tracker In-Reply-To: References: <302ce8b50809291947j44a3c330u830a365cc8fbf282@mail.gmail.com> <02EAC0960BFECB4F9EAEC26B4972EE4471C9C24B7E@TDCHEXBE01.int.tdch.dk> <302ce8b50809300439k44cbc0c9h24d144e5965c6d20@mail.gmail.com> <48E22878.90402@op5.se> Message-ID: <48E4D5EC.7060401@op5.se> Jon Angliss wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Tue, 30 Sep 2008 15:24:08 +0200, Andreas Ericsson > wrote: > >> Jim Perrin wrote: >>> On Tue, Sep 30, 2008 at 3:26 AM, Bo Philip Larsen wrote: >>>> This found on nagiosexchange http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2542.html;d=1 >>> Thanks for this, but the limitation the author lists at the bottom is >>> just about exactly what I'm running in to. How do you track the ticket >>> number between nagios and RT? Tracking the consistent data for the >>> duration of an issue complicates ticket generation/closure a little >>> bit :-) >>> >>> >> Nagios 3 introduces notification id's. Once you can connect a >> notification id and an rt number, you're home free. How to make that >> connection is up to you though. > > Not directly. Looking at the description, the ID increases on each > new notification sent. > > : The notification ID number is incremented by one (1) each time a new > > : host notification is sent out, and regardless of how many contacts > are > : notified. > > I read this being that each notification gets a new ID. For example, > a host goes down, the first notification gets 1... second gets 2... > etc. Host recovers. A service on another host goes down, and the > notification ID is 3. > > It'd be a little easier if the notification ID stayed the same for the > entire duration of the host being down. > > You might want to look at $SERVICEPROBLEMID$ and $HOSTPROBLEMID$ > instead. And the $LAST...$ versions of both of those. Combining with > an event handler, you can probably use a small table containing the RT > ticket number, the host/service name, and the problem ID. You'd then > feed the state, statetype, service, host, and the problem ID macros to > the event handler, and you should then be home free :) > Ah, right. Those were the ones I was thinking about. Notification id's are old news. It's the problem id's that are fresh and good. Thanks for paying attention :) -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From charlie.reddington at gmail.com Thu Oct 2 16:28:12 2008 From: charlie.reddington at gmail.com (Charlie Reddington) Date: Thu, 2 Oct 2008 09:28:12 -0500 Subject: nagios on call schedule w/ escalations? In-Reply-To: References: <22DEED01-E27A-40EA-A539-A92E76A9BBCE@gmail.com> Message-ID: On Oct 2, 2008, at 3:13 AM, Jon Angliss wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Tue, 30 Sep 2008 16:22:16 -0500, Charlie Reddington > wrote: > >> Hi guys / gals, >> >> I am working on the final stages of my nagios setup, but I'm entering >> territory which I haven't been before and can use some guidance. > > I'm sure you've probably taken a peek at the "On Call Rotations" > details in the documentation: > > http://nagios.sourceforge.net/docs/3_0/oncallrotation.html > > There are plenty of examples to get a good idea. Yep, this is where I started. > > >> Here's what I'm trying to achieve. We have a team of 3 admins, where >> we rotate weeks who is on call. Of course, they aren't every other >> 3rd >> week , because of people having vacation time, etc. So some weeks >> people are on call for 2 weeks, or every 2 weeks, etc. >> >> What we'd like is, to have a schedule setup where the primary guy >> gets >> woken up first. But if he doesn't answer his call after an hour, it >> drops down to the rest of us admins. No matter if your just at home >> sleeping, or if your on vacation, you get pinged. After that it goes >> up to our manager. > >> I can figure out the setting of people's initial schedule, as I have >> it looking something like this.... >> >> # contacts >> >> define contact{ >> contact_name user1 >> use generic-contact >> alias user1 >> email user1 >> host_notification_period user1_oncall >> service_notfication_period user1_oncall >> } >> >> define contact{ >> contact_name user2 >> use generic-contact >> alias user2 >> email user2 >> host_notification_period user2_oncall >> service_notfication_period user2_oncall >> } >> >> define contact{ >> contact_name user3 >> use generic-contact >> alias user3 >> email user3 >> host_notification_period user3_oncall >> service_notfication_period user3_oncall >> } >> define contact{ >> contact_name manager1 >> use generic-contact >> email manager1 >> } >> >> # groiups >> >> define contactgroup{ >> contact_groupname admins >> members user1,user2,user3 >> } >> define contactgroup{ >> contact_groupname managers >> members manager1 >> } >> >> # Time periods >> >> define timeperiod{ >> timeperiod_name user1_oncall >> Sept 29 - Oct 5 00:00-24:00 >> Oct 20 - Oct 26 00:00-24:00 >> Nov 17 - Nov 23 00:00-24:00 >> Dec 1 - Dec 7 00:00-24:00 >> Dec 15 - Dec 21 00:00-24:00 >> } >> >> define timeperiod{ >> timeperiod_name user2_oncall >> Oct 6 - Oct 12 00:00-24:00 >> Nov 3 - Nov 9 00:00-24:00 >> Nov 24 - Nov 30 00:00-24:00 >> Dec 22 - Dec 23 00:00-24:00 >> } >> >> define timeperiod{ >> timeperiod_name user3_oncall >> Oct 13 - Oct 19 00:00-24:00 >> Oct 27 - Nov 2 00:00-24:00 >> Nov 10 - Nov 16 00:00-24:00 >> Dec 8 - Dec 14 00:00-24:00 >> } > >> Would / Does escalations trump the initial contacts? >> >> # First escalations >> define serviceescalation{ >> hostgroup_name Servers >> service_description * >> first_notification 2 >> last_notification 3 >> notification_interval 30 >> contact_groups admins >> } >> >> # Second escalations >> define serviceescalation{ >> hostgroup_name Servers >> service_description * >> first_notification 3 >> last_notification 8 >> notification_interval 60 >> contact_groups admins,managers >> } >> >> So I know this isn't quite right, as our admins are part of the admin >> group, but also trying to restrict when they get contacted. So I'm >> not >> really sure how to proceed with this. > > You might want to read up on notifications, and serviceescalations, > too... Looking at the time stuff you've got, what'll happen is at any > one point, only 1 of the admins will be reachable by notifications at > any time. This is because the "timeperiods" stop nagios from sending > notifications to a user that is outside their timeperiod. For > example, a host goes down at 2100 on Oct 15th, only user3 will be > notified, even after the escalations kick in. There will be a period > of 0-3 notifications where user3 is the only recipient. It'll only > get to another person when the 3rd notification goes out, and it > engages the "managers" contact group. That's kind of what I thought would happen. > > > Depending on how many users/admins you're looking at, you could use a > trick with templating, and inheritence. Keeping your base users as you > have above, then build escalation users' and groups. > > define timeperiod { > timeperiod_name AllTimes > alias All Times > sunday 00:00-24:00 > monday 00:00-24:00 > tuesday 00:00-24:00 > wednesday 00:00-24:00 > thursday 00:00-24:00 > friday 00:00-24:00 > saturday 00:00-24:00 > } > > define contact { > contact_name disable_times > host_notification_period AllTimes > service_notification_period AllTimes > register 0 > } > > define contact{ > contact_name user1 > use generic-contact > alias user1 > email user1 > host_notification_period user1_oncall > service_notfication_period user1_oncall > } > > define contact{ > contact_name user2 > use generic-contact > alias user2 > email user2 > host_notification_period user2_oncall > service_notfication_period user2_oncall > } > > define contact { > use disable_times,user1 > contact_name user1_esc > } > > define contact { > user disable_times,user2 > contact_name user2_esc > } > > define contactgroup { > contactgroup_name admins > members user1,user2 > } > > define contactgroup { > contactgroup_name admins_esc > members user1_esc,user2_esc > } > > Then your service escalations use admins_esc instead of just admins. > I've not tested it, but looking at the way inheritence works, you > should be OK. I'll give this a test run and see if I can get this working. Thanks for the help. > > > - -- > Jon Angliss > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.9 (MingW32) - GPGshell v3.64 > > iEYEARECAAYFAkjkgqMACgkQK4PoFPj9H3MthQCg4XgD5eNyl190umm7Ew8OouKK > kCoAoNsRdPjpTMX/tO/eC00ejVb3MjzF > =XHky > -----END PGP SIGNATURE----- > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win > great prizes > Grand prize is a trip for two to an Open Source event anywhere in > the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jperrin at gmail.com Thu Oct 2 18:06:12 2008 From: jperrin at gmail.com (Jim Perrin) Date: Thu, 2 Oct 2008 12:06:12 -0400 Subject: Integration with Request Tracker In-Reply-To: References: <302ce8b50809291947j44a3c330u830a365cc8fbf282@mail.gmail.com> <02EAC0960BFECB4F9EAEC26B4972EE4471C9C24B7E@TDCHEXBE01.int.tdch.dk> <302ce8b50809300439k44cbc0c9h24d144e5965c6d20@mail.gmail.com> <48E22878.90402@op5.se> Message-ID: <302ce8b50810020906u2b16d02br5c0f71af9fd79403@mail.gmail.com> On Thu, Oct 2, 2008 at 4:26 AM, Jon Angliss wrote: > You might want to look at $SERVICEPROBLEMID$ and $HOSTPROBLEMID$ > instead. And the $LAST...$ versions of both of those. Combining with > an event handler, you can probably use a small table containing the RT > ticket number, the host/service name, and the problem ID. You'd then > feed the state, statetype, service, host, and the problem ID macros to > the event handler, and you should then be home free :) Yes, event handlers were the plan all along but I lacked a simple method to track an incident between nagios and RT reliably. Your suggestion of problem id's looks very promising. This, combined with nagios having its own queue within RT, and a few custom ticket fields should do quite nicely. Thanks again! -- During times of universal deceit, telling the truth becomes a revolutionary act. George Orwell ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hars at bik-gmbh.de Thu Oct 2 21:14:07 2008 From: hars at bik-gmbh.de (Florian Hars) Date: Thu, 02 Oct 2008 21:14:07 +0200 Subject: out of bounds array access in mmap_fgets_multiline Message-ID: <48E51D7F.6010202@bik-gmbh.de> As noticed before http://archive.netbsd.se/?ml=nagios-users&a=2008-05&t=7383489 nagios 3 tends to segfault while reading its config files on OpenBSD. It always happens in the same position in the code: | Program received signal SIGSEGV, Segmentation fault. | [Switching to process 32062, thread 0x8511f400] | 0x1c03c443 in mmap_fgets_multiline (temp_mmapfile=0x88b82b60) at | utils.c:3487 | 3487 else if(buf[end]=='\\') | (gdb) print buf | $1 = 0x81bc8000 "\n" | (gdb) print end | $2 = -1 but in different locations in the config file: | (gdb) print *temp_mmapfile | $3 = {path = 0x8bddf100 "/usr/local/nagios/etc/nagios.cfg", | mode = 0,fd = 8, file_size = 42546, current_position = 4794, | current_line = 144, mmap_buf = 0x82f46000} | $4 = {path = 0x7ff95540 "/usr/local/nagios/etc/nagios.cfg", | mode = 0,fd = 8, file_size = 42546, current_position = 8733, | current_line = 260, mmap_buf = 0x89ec5000} Sometimes it will just stop reading the config files halfway through and claim that things look okay. The value of -1 for end is a dead giveaway: It leads to an undefined access to buf[-1], which suggested OpenBSDs address randomization as the source for the curious nondeterminism. I changed two lines in the source: --- nagios-3.0.3-orig/base/utils.c Mon Jun 23 22:47:41 2008 +++ nagios-3.0.3/base/utils.c Thu Oct 2 20:15:56 2008 @@ -3472,7 +3472,8 @@ end=len-1; #ifdef DEBUG - printf("LEN: %d, END: %d, BUF=%s",len,end,buf); + printf("LEN: %d, END: %d, BUF=(%p) %s",len,end,buf,buf); + fflush(stdout); #endif /* two backslashes found, so unescape first backslash first and break */ And indeed, the segfaults happen if, and only if end is -1 and buf is allocated at the start of a page: | LEN: 1, END: -1, BUF=(0x7fecf000) | | Program received signal SIGSEGV, Segmentation fault. The root cause lies in these lines: 3465 /* handle Windows/DOS CR/LF */ 3466 if(len>=2 && buf[len-2]=='\r') 3467 end=len-3; 3468 /* normal Unix LF */ 3469 else if(len>=1 && buf[len-1]=='\n') 3470 end=len-2; 3471 else 3472 end=len-1; which result in end=-1 if buf contains just an end of line. - Florian. -- But our moral language is fragmented; our contemporaries reject the Kantian hunch that choosing those things most admirable and plausible as ends in themselves is the best practice; autonomous sources of the good are everywhere brown and broken. Thus we have PHP. http://lambda-the-ultimate.org/node/1463 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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_knight at rlknight.com Thu Oct 2 22:16:24 2008 From: rick_knight at rlknight.com (Rick Knight) Date: Thu, 02 Oct 2008 13:16:24 -0700 Subject: 3-D Status Map not working Message-ID: <48E52C18.5060509@rlknight.com> I've installed openvrml with it's Mozilla plugin. I've tested the plugin and it works fine with the models supplied with openvrml, but not with Nagios. When I click on 3-D Status Map I get a black screen. I found this error in my apache2 log... [Thu Oct 02 11:08:50 2008] [error] [client 127.0.0.1] script not found or unable to stat: /usr/local/nagios/sbin/nagios I get this each time I try to view the 3-D maps. Is this a configuration issue? I don't have a /usr/local/nagios/sbin/nagios, I do have /usr/local/bin/nagios. Thanks, Rick ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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_knight at rlknight.com Thu Oct 2 23:24:15 2008 From: rick_knight at rlknight.com (Rick Knight) Date: Thu, 02 Oct 2008 14:24:15 -0700 Subject: 3-D Status Map not working In-Reply-To: <48E52C18.5060509@rlknight.com> References: <48E52C18.5060509@rlknight.com> Message-ID: <48E53BFF.5000202@rlknight.com> Rick Knight wrote: > I've installed openvrml with it's Mozilla plugin. I've tested the plugin > and it works fine with the models supplied with openvrml, but not with > Nagios. When I click on 3-D Status Map I get a black screen. I found > this error in my apache2 log... > > [Thu Oct 02 11:08:50 2008] [error] [client 127.0.0.1] script not found > or unable to stat: /usr/local/nagios/sbin/nagios > > I get this each time I try to view the 3-D maps. Is this a configuration > issue? I don't have a /usr/local/nagios/sbin/nagios, I do have > /usr/local/bin/nagios. > > Thanks, > Rick > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > Also, when I save a map to my Desktop on my PC and then try to open with sdl-viewer, I get this error (the first line is the command to open the file)... rknight at calinxpit01:~/Desktop/NewDownloads/openvrml-0.17.8/examples$ ./sdl-viewer ~/Desktop/statuswrl.wrl file:///home/rknight/Desktop/nagios/images/logos/nagiosvrml.png: unrecognized error during resolution no alternative URI could be resolved The path to my Nagios images directory is /usr/local/nagios/share/images. Where is the path above comming from? Thanks, Rick ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mdc154 at psu.edu Thu Oct 2 23:03:41 2008 From: mdc154 at psu.edu (Mike Carey) Date: Thu, 2 Oct 2008 17:03:41 -0400 Subject: Editing CGI files in Nagios Message-ID: <01E9BE53DDA8974BA1A4E4C6DB8BA15B0510CAA3@tnshestia.tnsadmin.tns.psu.edu> Is it possible to customize the avail.cgi file to add things like Title and Logos to the Summary and Availability reports that run? Everytime I try to adjust the avail.cgi file in /usr/local/share/nagios/sbin on a Ubuntu server, the Availability main report page doesn't come up anymore. I've tried editing it with both vi and nano. And I'm just testing it with a simple change, like making Nagios, ALL CAPS, in the frame box just to see if it will work. Michael D. Carey Telecommunications and Networking Services Information Technology Services Pennsylvania State University (814) 863-7712 mdc154 at psu.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From izz_abdullah at inbox.com Fri Oct 3 02:11:58 2008 From: izz_abdullah at inbox.com (Izz Abdullah) Date: Thu, 2 Oct 2008 16:11:58 -0800 Subject: 3-D Status Map not working In-Reply-To: <48E53BFF.5000202@rlknight.com> References: <48e52c18.5060509@rlknight.com> Message-ID: <2C0BB3F9548.0000095Dizz_abdullah@inbox.com> Hi Rick, I've also done this just to make Nagios "pretty" to the users and customize for our customers. If you see the documentation, you must create the logos directory with 40x40 pixel png (other formats acceptable) for the VRML logos to work, also, this will create little logos in your regular status map as well as a pic next to the host in the summary page. If I am not mistaken, you will need to put together a: define hostextinfo{...} declaration, but it's all in the documentation. Here is an example completely specific to my internal setup for APAC usage justification: in the say...windows.cfg file: define hostextinfo{ host_name #APAC-TEST #this should be the host you want #the special pic for which is located in your logos directory in which you created notes Test 2003 Domain Controller icon_image Simpsons_couch_gag.jpg statusmap_image Simpsons_couch_gag.jpg vrml_image Simpsons_couch_gag.jpg } The icon, statusmap, and vrml image doesn't have to be the same, I just opted for the same... Hope this helps. Regards - Izz > -----Original Message----- > From: rick_knight at rlknight.com > Sent: Thu, 02 Oct 2008 14:24:15 -0700 > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] 3-D Status Map not working > > Rick Knight wrote: >> I've installed openvrml with it's Mozilla plugin. I've tested the plugin >> and it works fine with the models supplied with openvrml, but not with >> Nagios. When I click on 3-D Status Map I get a black screen. I found >> this error in my apache2 log... >> >> [Thu Oct 02 11:08:50 2008] [error] [client 127.0.0.1] script not found >> or unable to stat: /usr/local/nagios/sbin/nagios >> >> I get this each time I try to view the 3-D maps. Is this a configuration >> issue? I don't have a /usr/local/nagios/sbin/nagios, I do have >> /usr/local/bin/nagios. >> >> Thanks, >> Rick >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the >> world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> > Also, when I save a map to my Desktop on my PC and then try to open with > sdl-viewer, I get this error (the first line is the command to open the > file)... > > rknight at calinxpit01:~/Desktop/NewDownloads/openvrml-0.17.8/examples$ > ./sdl-viewer ~/Desktop/statuswrl.wrl > > file:///home/rknight/Desktop/nagios/images/logos/nagiosvrml.png: > unrecognized error during resolution > no alternative URI could be resolved > > The path to my Nagios images directory is > /usr/local/nagios/share/images. Where is the path above comming from? > > Thanks, > Rick > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From myoung at nagios.org Fri Oct 3 05:34:17 2008 From: myoung at nagios.org (Mark Young) Date: Thu, 2 Oct 2008 22:34:17 -0500 Subject: 3-D Status Map not working In-Reply-To: <2C0BB3F9548.0000095Dizz_abdullah@inbox.com> References: <48e52c18.5060509@rlknight.com> <2C0BB3F9548.0000095Dizz_abdullah@inbox.com> Message-ID: <21CBCCB7-F2DD-4391-A05A-4C64F4008470@nagios.org> On Oct 2, 2008, at 7:11 PM, Izz Abdullah wrote: > Hi Rick, > I've also done this just to make Nagios "pretty" to the users and > customize for our customers. If you see the documentation, you must > create the logos directory with 40x40 pixel png (other formats > acceptable) for the VRML logos to work, also, this will create > little logos in your regular status map as well as a pic next to the > host in the summary page. If I am not mistaken, you will need to > put together a: > define hostextinfo{...} declaration, but it's all in the > documentation. Here is an example completely specific to my > internal setup for APAC usage justification: > in the say...windows.cfg file: > define hostextinfo{ > host_name #APAC-TEST #this should be the host you want > #the special pic for which is located in your > logos directory in which you created > notes Test 2003 Domain Controller > icon_image Simpsons_couch_gag.jpg > statusmap_image Simpsons_couch_gag.jpg > vrml_image Simpsons_couch_gag.jpg > } Hi Izz, These can now be included in the actual host/service definitions (or better yet, their templates). 'hostextinfo' and 'serviceextinfo' are no longer necessary but are still supported as of now. It is now just a style decision. >> Rick Knight wrote: >>> I've installed openvrml with it's Mozilla plugin. I've tested the >>> plugin >>> and it works fine with the models supplied with openvrml, but not >>> with >>> Nagios. When I click on 3-D Status Map I get a black screen. I found >>> this error in my apache2 log... >>> >>> [Thu Oct 02 11:08:50 2008] [error] [client 127.0.0.1] script not >>> found >>> or unable to stat: /usr/local/nagios/sbin/nagios >>> >>> I get this each time I try to view the 3-D maps. Is this a >>> configuration >>> issue? I don't have a /usr/local/nagios/sbin/nagios, I do have >>> /usr/local/bin/nagios. >>> >>> Thanks, >>> Rick Hi Rick, Did you compile this from source? What version of nagios are you running? It is obvious from the logs that the CGI is looking for something that does not exist. My idea of the problem might be that you are, pointing 'vrml_image' or another such script url in the configs to the nonexistant location. Which could be from an error in how Nagios was originally configured. >> Also, when I save a map to my Desktop on my PC and then try to open >> with >> sdl-viewer, I get this error (the first line is the command to open >> the >> file)... >> >> rknight at calinxpit01:~/Desktop/NewDownloads/openvrml-0.17.8/examples$ >> ./sdl-viewer ~/Desktop/statuswrl.wrl >> >> file:///home/rknight/Desktop/nagios/images/logos/nagiosvrml.png: >> unrecognized error during resolution >> no alternative URI could be resolved >> >> The path to my Nagios images directory is >> /usr/local/nagios/share/images. Where is the path above comming from? >> >> Thanks, >> Rick The vrml should not be able to run from your desktop as it needs to communicate with the CGI to read the relative host relationships from the Nagios server. Good luck. Mark Young ___ Nagios Enterprises, LLC Web: www.nagios.com ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From myoung at nagios.org Fri Oct 3 05:13:29 2008 From: myoung at nagios.org (Mark Young) Date: Thu, 2 Oct 2008 22:13:29 -0500 Subject: Editing CGI files in Nagios In-Reply-To: <01E9BE53DDA8974BA1A4E4C6DB8BA15B0510CAA3@tnshestia.tnsadmin.tns.psu.edu> References: <01E9BE53DDA8974BA1A4E4C6DB8BA15B0510CAA3@tnshestia.tnsadmin.tns.psu.edu> Message-ID: <56F4599A-22BF-41DD-8D30-2FDF0CA18BB2@nagios.org> On Oct 2, 2008, at 4:03 PM, Mike Carey wrote: > Is it possible to customize the avail.cgi file to add things like > Title and Logos to the Summary and Availability reports that run? > Everytime I try to adjust the avail.cgi file in /usr/local/share/ > nagios/sbin on a Ubuntu server, the Availability main report page > doesn?t come up anymore. > > I?ve tried editing it with both vi and nano. And I?m just testing > it with a simple change, like making Nagios, ALL CAPS, in the frame > box just to see if it will work. Hi Mike, Nagios CGIs are compiled C programs. You must be more familiar with interpreted language CGIs such as perl. I am guessing the problem is that you accidently modified the binary file 'avail.cgi' with you text editor. You will need to either restore from a backup or reinstall/ recompile the Nagios binary files. So if you are still interested in making your changes, you would instead need to point your text editor to the Nagios source code ('nagios-3.0.3/cgi/avail.c' plus the includes in 'nagios-3.0.3/ includes'), edit, then recompile. 'avail.c' and the CGIs in general are pretty tricky if you are unfamiliar with nagios and C. Though it sounds like you may be more interested in adding custom headers and footers. There is some documentation in the nagios docs here: http://nagios.sourceforge.net/docs/3_0/cgiincludes.html It will allow you an easier way to insert some amounts of html and javascript. I do not use this feature so there may be others that may be able to point you to better resources for its use. Best of luck! Mark Young ___ Nagios Enterprises, LLC Web: www.nagios.com ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From simon.kainz at tugraz.at Fri Oct 3 08:32:45 2008 From: simon.kainz at tugraz.at (Simon Kainz) Date: Fri, 03 Oct 2008 08:32:45 +0200 Subject: [solved] SMS notification problem . HW trouble ? Message-ID: <48E5BC8D.6070208@tugraz.at> Hi! Thank you all for you tips. After careful inspection of my log files i was even able tu identify the faulty sms storage slots :-). I got a replacement sim card from my employer and now everything is working as expected. Regards, -- Simon Kainz, BSc Graz, University of Technology Department Computing Phone: ++43 (0) 316 / 873 6885 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 260 bytes Desc: OpenPGP digital signature URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 3 10:54:24 2008 From: ae at op5.se (Andreas Ericsson) Date: Fri, 03 Oct 2008 10:54:24 +0200 Subject: Services get stuck in warning/critical state In-Reply-To: <20081002112640.5f373a09.bartek@net-serwis.pl> References: <20081002112640.5f373a09.bartek@net-serwis.pl> Message-ID: <48E5DDC0.50607@op5.se> Bartlomiej Korupczynski wrote: > Hello, > > Since upgrade to 3.0.3 from ports on FreeBSD 6.2-RELEASE. It's > used to monitor approx. 300 services on 150 hosts. The problem is, that > sometimes random services get stuck in warning/critical state. I've checked > scheduling queue in CGI and it seems right, but as I see, it says only about > hosts, not services. Odd stuff. > I probably should also mention, that nagios host > sometimes has quite high load (up to 2.0 on uniprocessor machine), as a > result of monitoring scripts. Next thing is that monitoring host has big > constant clock skew that I can't get rid of (time runs faster, ca. 5s for > every 2 minutes, this gets corrected by ntpdate every 2 minutes). > And this is almost certainly the problem. Are you running Nagios in a vmware system? If yes, what happens when you move it out to its own hardware? Nagios relies on a reasonably accurate system clock. One that jumps backwards and forwards will cause problems. You could try running the snapshot from the branch 'unplanned-checks'. Download from http://www.op5.org/git/?p=nagios.git;a=shortlog;h=refs/heads/unplanned-checks (click the "snapshot" link in the upper right). > - example host status: > Host Status: UP (for 1d 9h 35m 23s) > Status Information: PING OK - Packet loss = 0%, RTA = 15.33 ms > Performance Data: rta=15.333000ms;3000.000000;5000.000000;0.000000 > pl=0%;80;100;0 > Current Attempt: 1/5 (HARD state) > Last Check Time: 02-10-2008 10:32:44 > Check Type: ACTIVE > Check Latency / Duration: 0.732 / 0.152 seconds > Next Scheduled Active Check: 02-10-2008 10:37:54 > Last State Change: 01-10-2008 01:02:43 > Last Notification: N/A (notification 0) > Is This Host Flapping? N/A > In Scheduled Downtime? NO > Last Update: 02-10-2008 10:37:58 ( 0d 0h 0m 8s ago) > > - service status on the host above: > Current Status: CRITICAL (for 2d 2h 55m 9s) > Status Information: PING CRITICAL - Packet loss = 0%, RTA = 313.92 ms > Performance Data: > Current Attempt: 3/5 (SOFT state) > Last Check Time: 30-09-2008 07:44:36 > Check Type: ACTIVE > Check Latency / Duration: 0.116 / 4.657 seconds > Next Scheduled Check: 30-09-2008 07:45:36 > Last State Change: 30-09-2008 07:44:36 > Last Notification: N/A (notification 0) > Is This Service Flapping? N/A > In Scheduled Downtime? NO > Last Update: 02-10-2008 10:39:43 ( 0d 0h 0m 2s ago) > > Notice the Last Check Time, the service status is two days old. Problem can > be resolved by nagios restart, or by "Re-schedule the next check of this > service" in the CGI. Parent host is up, and the service has no parent. > Is there any configuration directive that may cause service check to be > dropped by the scheduler? > No, but there's a bug in Nagios 3 that can cause checks to be marked as "do not reschedule" and also causes them to be scheduled one year into the future. By the looks of it, this is not the problem you're running into, although it could be worth examining if the issue is related. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From twelcome at tenet.ac.za Fri Oct 3 12:43:30 2008 From: twelcome at tenet.ac.za (Traiano Welcome) Date: Fri, 3 Oct 2008 12:43:30 +0200 Subject: Integration with Request Tracker References: <302ce8b50809291947j44a3c330u830a365cc8fbf282@mail.gmail.com><02EAC0960BFECB4F9EAEC26B4972EE4471C9C24B7E@TDCHEXBE01.int.tdch.dk><302ce8b50809300439k44cbc0c9h24d144e5965c6d20@mail.gmail.com><48E22878.90402@op5.se> <302ce8b50810020906u2b16d02br5c0f71af9fd79403@mail.gmail.com> Message-ID: Hi All How viable would it be to distribute/develop a plugin for NRPE which is provided with the RT3/NAGIOS distribution and which logs a ticket directly in the RT database when provided the necessary information by a nagios server? It seems NRPE plus some plugin code could serve as decent framework for an integration layer between RT and Nagios systems (which are commonly found together in the same IT environments!). It doesn't seem technically difficult, but the question is whether this would be viable to maintain as part of future nagios distributions? Regards, Traiano -----Original Message----- From: Jim Perrin [mailto:jperrin at gmail.com] Sent: Thu 10/2/2008 6:06 PM To: Jon Angliss Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Integration with Request Tracker On Thu, Oct 2, 2008 at 4:26 AM, Jon Angliss wrote: > You might want to look at $SERVICEPROBLEMID$ and $HOSTPROBLEMID$ > instead. And the $LAST...$ versions of both of those. Combining with > an event handler, you can probably use a small table containing the RT > ticket number, the host/service name, and the problem ID. You'd then > feed the state, statetype, service, host, and the problem ID macros to > the event handler, and you should then be home free :) Yes, event handlers were the plan all along but I lacked a simple method to track an incident between nagios and RT reliably. Your suggestion of problem id's looks very promising. This, combined with nagios having its own queue within RT, and a few custom ticket fields should do quite nicely. Thanks again! -- During times of universal deceit, telling the truth becomes a revolutionary act. George Orwell ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jon at netdork.net Fri Oct 3 15:39:53 2008 From: jon at netdork.net (Jonathan Angliss) Date: Fri, 3 Oct 2008 08:39:53 -0500 (CDT) Subject: nagios on call schedule w/ escalations? In-Reply-To: <9761BC32-7D9D-4B77-8563-8420A1C3E32D@gmail.com> References: <22DEED01-E27A-40EA-A539-A92E76A9BBCE@gmail.com> <9761BC32-7D9D-4B77-8563-8420A1C3E32D@gmail.com> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > Jon thanks. I got things figured out. > > I setup 2 sets of contacts with the same users. One was just for the > regular contact. I setup this group of 'admins' so they are only > contacted on their oncall schedule. > > I then just did nearly exactly as you wrote and made a totally > seperate set of contacts, that can be contacted 24x7. > > I have 2 groups. Admins and Escalations. > > Escalations use the second set of 24x7 contacts, and the Admins > contacts uses the oncall schedule. > > Inheritance wasn't really necessary, just the separate groups. The reason I'd setup inheritance was for maintenance... If you decided you wanted to change one person's email, you changed it once, and didn't have to worry about fixing a second contact. Either way works obviously :) > Oh and I made a separate contact template that used the proper contact > time period. > > Thanks again, works perfect. You're welcome, glad I could help. - -- Jonathan Angliss -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) - GPGshell v3.64 iEYEARECAAYFAkjmIIcACgkQK4PoFPj9H3Mb7QCfbEIO+jslsummDBP69ruNW6+o jrMAoJ8c7FMJ4LV8/gxYcZ286EdJ7Eq9 =ZFfp -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From blynch at ameliaschools.com Fri Oct 3 15:17:02 2008 From: blynch at ameliaschools.com (Bo Lynch) Date: Fri, 3 Oct 2008 09:17:02 -0400 (EDT) Subject: Changing the NRPE timeout Message-ID: <48165.65.161.127.93.1223039822.squirrel@ameliaschools.com> I am monitoring some boxes over a slow connection and need to up the CHECK_NRPE timeout from 10 sec to maybe 30. Where do I set this at. Thanks -- Bo Lynch ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mdc154 at psu.edu Fri Oct 3 16:25:27 2008 From: mdc154 at psu.edu (Mike Carey) Date: Fri, 3 Oct 2008 10:25:27 -0400 Subject: Editing CGI files in Nagios In-Reply-To: <56F4599A-22BF-41DD-8D30-2FDF0CA18BB2@nagios.org> References: <01E9BE53DDA8974BA1A4E4C6DB8BA15B0510CAA3@tnshestia.tnsadmin.tns.psu.edu> <56F4599A-22BF-41DD-8D30-2FDF0CA18BB2@nagios.org> Message-ID: <01E9BE53DDA8974BA1A4E4C6DB8BA15B0510CB4C@tnshestia.tnsadmin.tns.psu.edu> That sounds like what I'm looking for. I was trying to customize that "grey colored" top box that says the Report Name, Last Update, Logged in, with some Company Information. I'll read up on the ssi file, but if anyone has a nice example of what they've done, I'd appreciate it. Thanks, Michael D. Carey Telecommunications and Networking Services Information Technology Services Pennsylvania State University (814) 863-7712 mdc154 at psu.edu -----Original Message----- From: Mark Young [mailto:myoung at nagios.org] Sent: Thursday, October 02, 2008 11:13 PM Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Editing CGI files in Nagios On Oct 2, 2008, at 4:03 PM, Mike Carey wrote: > Is it possible to customize the avail.cgi file to add things like > Title and Logos to the Summary and Availability reports that run? > Everytime I try to adjust the avail.cgi file in /usr/local/share/ > nagios/sbin on a Ubuntu server, the Availability main report page > doesn't come up anymore. > > I've tried editing it with both vi and nano. And I'm just testing > it with a simple change, like making Nagios, ALL CAPS, in the frame > box just to see if it will work. Hi Mike, Nagios CGIs are compiled C programs. You must be more familiar with interpreted language CGIs such as perl. I am guessing the problem is that you accidently modified the binary file 'avail.cgi' with you text editor. You will need to either restore from a backup or reinstall/ recompile the Nagios binary files. So if you are still interested in making your changes, you would instead need to point your text editor to the Nagios source code ('nagios-3.0.3/cgi/avail.c' plus the includes in 'nagios-3.0.3/ includes'), edit, then recompile. 'avail.c' and the CGIs in general are pretty tricky if you are unfamiliar with nagios and C. Though it sounds like you may be more interested in adding custom headers and footers. There is some documentation in the nagios docs here: http://nagios.sourceforge.net/docs/3_0/cgiincludes.html It will allow you an easier way to insert some amounts of html and javascript. I do not use this feature so there may be others that may be able to point you to better resources for its use. Best of luck! Mark Young ___ Nagios Enterprises, LLC Web: www.nagios.com ------------------------------------------------------------------------ - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 3 16:40:56 2008 From: marc at ena.com (Marc Powell) Date: Fri, 3 Oct 2008 09:40:56 -0500 Subject: Changing the NRPE timeout In-Reply-To: <48165.65.161.127.93.1223039822.squirrel@ameliaschools.com> References: <48165.65.161.127.93.1223039822.squirrel@ameliaschools.com> Message-ID: On Oct 3, 2008, at 8:17 AM, Bo Lynch wrote: > I am monitoring some boxes over a slow connection and need to up the > CHECK_NRPE timeout from 10 sec to maybe 30. Where do I set this at. There are several potential timeouts in play here -- - check_nrpe timeout. Adjusted by modifying the check_nrpe command{} definition -- $ ./check_nrpe --help [snip] Usage: check_nrpe -H [-n] [-p ] [-t ] [-c ] [-a ] Options: [snip] [timeout] = Number of seconds before connection times out (default=10) - nagios overall service plugin execution timeout. This should be higher than your highest plugin specific timeout -- $ grep timeout etc/nagios.cfg service_check_timeout=60 - And the plugin that NRPE is executing on the remote host will have a default timeout value as well. Standard plugins support a -t parameter (like check_nrpe) but you can always run '/path/to/plugin --help' to see if it is a parameter and what it expects. -- Marc ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From victor.severgnini at opservices.com.br Fri Oct 3 16:22:53 2008 From: victor.severgnini at opservices.com.br (Victor Severgnini) Date: Fri, 3 Oct 2008 11:22:53 -0300 (BRT) Subject: Changing the NRPE timeout In-Reply-To: <48165.65.161.127.93.1223039822.squirrel@ameliaschools.com> References: <48165.65.161.127.93.1223039822.squirrel@ameliaschools.com> Message-ID: <26440262.1151223043773389.JavaMail.root@mail.opservices.com.br> Hello Bo Lynch, Usage: ./check_nrpe -H [-p port] [-c command] [-to to_sec] "-to" in seconds for timeout. Regards. --- Victor Severgnini victor.severgnini at opservices.com.br OpServices www.opservices.com.br Porto Alegre - RS - Brazil Phone: (55) 51 3275 3588 Mobile: (55) 51 -81944997 ----- Mensagem original ----- De: "Bo Lynch" Para: nagios-users at lists.sourceforge.net Enviadas: Sexta-feira, 3 de Outubro de 2008 10:17:02 (GMT-0300) Auto-Detected Assunto: [Nagios-users] Changing the NRPE timeout I am monitoring some boxes over a slow connection and need to up the CHECK_NRPE timeout from 10 sec to maybe 30. Where do I set this at. Thanks -- Bo Lynch ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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_knight at rlknight.com Fri Oct 3 18:28:28 2008 From: rick_knight at rlknight.com (Rick Knight) Date: Fri, 03 Oct 2008 09:28:28 -0700 Subject: 3-D Status Map not working In-Reply-To: <21CBCCB7-F2DD-4391-A05A-4C64F4008470@nagios.org> References: <48e52c18.5060509@rlknight.com> <2C0BB3F9548.0000095Dizz_abdullah@inbox.com> <21CBCCB7-F2DD-4391-A05A-4C64F4008470@nagios.org> Message-ID: <48E6482C.7060404@rlknight.com> Mark Young wrote: > On Oct 2, 2008, at 7:11 PM, Izz Abdullah wrote: > > >> Hi Rick, >> I've also done this just to make Nagios "pretty" to the users and >> customize for our customers. If you see the documentation, you must >> create the logos directory with 40x40 pixel png (other formats >> acceptable) for the VRML logos to work, also, this will create >> little logos in your regular status map as well as a pic next to the >> host in the summary page. If I am not mistaken, you will need to >> put together a: >> define hostextinfo{...} declaration, but it's all in the >> documentation. Here is an example completely specific to my >> internal setup for APAC usage justification: >> in the say...windows.cfg file: >> define hostextinfo{ >> host_name #APAC-TEST #this should be the host you want >> #the special pic for which is located in your >> logos directory in which you created >> notes Test 2003 Domain Controller >> icon_image Simpsons_couch_gag.jpg >> statusmap_image Simpsons_couch_gag.jpg >> vrml_image Simpsons_couch_gag.jpg >> } >> > > Hi Izz, > These can now be included in the actual host/service definitions (or > better yet, their templates). 'hostextinfo' and 'serviceextinfo' are > no longer necessary but are still supported as of now. It is now just > a style decision. > > > >>> Rick Knight wrote: >>> >>>> I've installed openvrml with it's Mozilla plugin. I've tested the >>>> plugin >>>> and it works fine with the models supplied with openvrml, but not >>>> with >>>> Nagios. When I click on 3-D Status Map I get a black screen. I found >>>> this error in my apache2 log... >>>> >>>> [Thu Oct 02 11:08:50 2008] [error] [client 127.0.0.1] script not >>>> found >>>> or unable to stat: /usr/local/nagios/sbin/nagios >>>> >>>> I get this each time I try to view the 3-D maps. Is this a >>>> configuration >>>> issue? I don't have a /usr/local/nagios/sbin/nagios, I do have >>>> /usr/local/bin/nagios. >>>> >>>> Thanks, >>>> Rick >>>> > > Hi Rick, > Did you compile this from source? What version of nagios are you > running? It is obvious from the logs that the CGI is looking for > something that does not exist. My idea of the problem might be that > you are, pointing 'vrml_image' or another such script url in the > configs to the nonexistant location. Which could be from an error in > how Nagios was originally configured. > > > >>> Also, when I save a map to my Desktop on my PC and then try to open >>> with >>> sdl-viewer, I get this error (the first line is the command to open >>> the >>> file)... >>> >>> rknight at calinxpit01:~/Desktop/NewDownloads/openvrml-0.17.8/examples$ >>> ./sdl-viewer ~/Desktop/statuswrl.wrl >>> >>> file:///home/rknight/Desktop/nagios/images/logos/nagiosvrml.png: >>> unrecognized error during resolution >>> no alternative URI could be resolved >>> >>> The path to my Nagios images directory is >>> /usr/local/nagios/share/images. Where is the path above comming from? >>> >>> Thanks, >>> Rick >>> > > The vrml should not be able to run from your desktop as it needs to > communicate with the CGI to read the relative host relationships from > the Nagios server. > > Good luck. > > Mark Young > ___ > Nagios Enterprises, LLC > Web: www.nagios.com > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > Mark, I'm running 3.0b3, compiled from source about a year ago, just now getting around to trying to use it. I'm sure the only compile time option I used would have been --prefix=/usr. Where can I look for this error? Or should I use a newer version and re-compile or use the Nagios2 in the Kubuntu 8.04 repositories? Thanks, Rick Thanks ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From myoung at nagios.org Fri Oct 3 19:01:29 2008 From: myoung at nagios.org (Mark Young) Date: Fri, 3 Oct 2008 12:01:29 -0500 Subject: 3-D Status Map not working In-Reply-To: <48E6482C.7060404@rlknight.com> References: <48e52c18.5060509@rlknight.com> <2C0BB3F9548.0000095Dizz_abdullah@inbox.com> <21CBCCB7-F2DD-4391-A05A-4C64F4008470@nagios.org> <48E6482C.7060404@rlknight.com> Message-ID: On Oct 3, 2008, at 11:28 AM, Rick Knight wrote: > Mark Young wrote: >> On Oct 2, 2008, at 7:11 PM, Izz Abdullah wrote: >> >> >>> Hi Rick, >>> I've also done this just to make Nagios "pretty" to the users and >>> customize for our customers. If you see the documentation, you must >>> create the logos directory with 40x40 pixel png (other formats >>> acceptable) for the VRML logos to work, also, this will create >>> little logos in your regular status map as well as a pic next to the >>> host in the summary page. If I am not mistaken, you will need to >>> put together a: >>> define hostextinfo{...} declaration, but it's all in the >>> documentation. Here is an example completely specific to my >>> internal setup for APAC usage justification: >>> in the say...windows.cfg file: >>> define hostextinfo{ >>> host_name #APAC-TEST #this should be the host you want >>> #the special pic for which is located in your >>> logos directory in which you created >>> notes Test 2003 Domain Controller >>> icon_image Simpsons_couch_gag.jpg >>> statusmap_image Simpsons_couch_gag.jpg >>> vrml_image Simpsons_couch_gag.jpg >>> } >>> >> >> Hi Izz, >> These can now be included in the actual host/service definitions (or >> better yet, their templates). 'hostextinfo' and 'serviceextinfo' are >> no longer necessary but are still supported as of now. It is now >> just >> a style decision. >> >> >> >>>> Rick Knight wrote: >>>> >>>>> I've installed openvrml with it's Mozilla plugin. I've tested the >>>>> plugin >>>>> and it works fine with the models supplied with openvrml, but not >>>>> with >>>>> Nagios. When I click on 3-D Status Map I get a black screen. I >>>>> found >>>>> this error in my apache2 log... >>>>> >>>>> [Thu Oct 02 11:08:50 2008] [error] [client 127.0.0.1] script not >>>>> found >>>>> or unable to stat: /usr/local/nagios/sbin/nagios >>>>> >>>>> I get this each time I try to view the 3-D maps. Is this a >>>>> configuration >>>>> issue? I don't have a /usr/local/nagios/sbin/nagios, I do have >>>>> /usr/local/bin/nagios. >>>>> >>>>> Thanks, >>>>> Rick >>>>> >> >> Hi Rick, >> Did you compile this from source? What version of nagios are you >> running? It is obvious from the logs that the CGI is looking for >> something that does not exist. My idea of the problem might be that >> you are, pointing 'vrml_image' or another such script url in the >> configs to the nonexistant location. Which could be from an error in >> how Nagios was originally configured. >> >> >> >>>> Also, when I save a map to my Desktop on my PC and then try to open >>>> with >>>> sdl-viewer, I get this error (the first line is the command to open >>>> the >>>> file)... >>>> >>>> rknight at calinxpit01:~/Desktop/NewDownloads/openvrml-0.17.8/ >>>> examples$ >>>> ./sdl-viewer ~/Desktop/statuswrl.wrl >>>> >>>> file:///home/rknight/Desktop/nagios/images/logos/nagiosvrml.png: >>>> unrecognized error during resolution >>>> no alternative URI could be resolved >>>> >>>> The path to my Nagios images directory is >>>> /usr/local/nagios/share/images. Where is the path above comming >>>> from? >>>> >>>> Thanks, >>>> Rick >>>> >> >> The vrml should not be able to run from your desktop as it needs to >> communicate with the CGI to read the relative host relationships from >> the Nagios server. >> >> Good luck. >> >> Mark Young >> ___ >> Nagios Enterprises, LLC >> Web: www.nagios.com >> > Mark, > > I'm running 3.0b3, compiled from source about a year ago, just now > getting around to trying to use it. I'm sure the only compile time > option I used would have been --prefix=/usr. Where can I look for this > error? Or should I use a newer version and re-compile or use the > Nagios2 > in the Kubuntu 8.04 repositories? > > Thanks, > Rick > > Thanks Well I'll try to send this out. I sent a message at 9:30 CDT and it is yet to appear. :) If you have the option, I would suggest to first backup your current / usr/local/nagios/* files, then recompile/reinstall with the latest Nagios 3.0.3 source and follow the quickstart guides (without using the 'make install-config' which overwrites your config files). This would bring you down to it being a problem with your Nagios configuration or your system configuration. Though this is a drastic step but a good chance to upgrade. Is the rest of your interface looking alright? Have you made any changes to the cgi.cfg file (maybe involving web root directory)? Did you try to take away all the url references from you config files? (the 'vrml_image', 'icon_image', 'statusmap_image' ) I would need more log data to help narrow it down. Mark Young ___ Nagios Enterprises, LLC Web: www.nagios.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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_knight at rlknight.com Fri Oct 3 20:44:59 2008 From: rick_knight at rlknight.com (Rick Knight) Date: Fri, 03 Oct 2008 11:44:59 -0700 Subject: 3-D Status Map not working In-Reply-To: References: <48e52c18.5060509@rlknight.com> <2C0BB3F9548.0000095Dizz_abdullah@inbox.com> <21CBCCB7-F2DD-4391-A05A-4C64F4008470@nagios.org> <48E6482C.7060404@rlknight.com> Message-ID: <48E6682B.8040000@rlknight.com> Mark Young wrote: > > On Oct 3, 2008, at 11:28 AM, Rick Knight wrote: > >> Mark Young wrote: >>> On Oct 2, 2008, at 7:11 PM, Izz Abdullah wrote: >>> >>> >>>> Hi Rick, >>>> I've also done this just to make Nagios "pretty" to the users and >>>> customize for our customers. If you see the documentation, you must >>>> create the logos directory with 40x40 pixel png (other formats >>>> acceptable) for the VRML logos to work, also, this will create >>>> little logos in your regular status map as well as a pic next to the >>>> host in the summary page. If I am not mistaken, you will need to >>>> put together a: >>>> define hostextinfo{...} declaration, but it's all in the >>>> documentation. Here is an example completely specific to my >>>> internal setup for APAC usage justification: >>>> in the say...windows.cfg file: >>>> define hostextinfo{ >>>> host_name #APAC-TEST #this should be the host you want >>>> #the special pic for which is located in your >>>> logos directory in which you created >>>> notes Test 2003 Domain Controller >>>> icon_image Simpsons_couch_gag.jpg >>>> statusmap_image Simpsons_couch_gag.jpg >>>> vrml_image Simpsons_couch_gag.jpg >>>> } >>>> >>> >>> Hi Izz, >>> These can now be included in the actual host/service definitions (or >>> better yet, their templates). 'hostextinfo' and 'serviceextinfo' are >>> no longer necessary but are still supported as of now. It is now just >>> a style decision. >>> >>> >>> >>>>> Rick Knight wrote: >>>>> >>>>>> I've installed openvrml with it's Mozilla plugin. I've tested the >>>>>> plugin >>>>>> and it works fine with the models supplied with openvrml, but not >>>>>> with >>>>>> Nagios. When I click on 3-D Status Map I get a black screen. I found >>>>>> this error in my apache2 log... >>>>>> >>>>>> [Thu Oct 02 11:08:50 2008] [error] [client 127.0.0.1] script not >>>>>> found >>>>>> or unable to stat: /usr/local/nagios/sbin/nagios >>>>>> >>>>>> I get this each time I try to view the 3-D maps. Is this a >>>>>> configuration >>>>>> issue? I don't have a /usr/local/nagios/sbin/nagios, I do have >>>>>> /usr/local/bin/nagios. >>>>>> >>>>>> Thanks, >>>>>> Rick >>>>>> >>> >>> Hi Rick, >>> Did you compile this from source? What version of nagios are you >>> running? It is obvious from the logs that the CGI is looking for >>> something that does not exist. My idea of the problem might be that >>> you are, pointing 'vrml_image' or another such script url in the >>> configs to the nonexistant location. Which could be from an error in >>> how Nagios was originally configured. >>> >>> >>> >>>>> Also, when I save a map to my Desktop on my PC and then try to open >>>>> with >>>>> sdl-viewer, I get this error (the first line is the command to open >>>>> the >>>>> file)... >>>>> >>>>> rknight at calinxpit01:~/Desktop/NewDownloads/openvrml-0.17.8/examples$ >>>>> ./sdl-viewer ~/Desktop/statuswrl.wrl >>>>> >>>>> file:///home/rknight/Desktop/nagios/images/logos/nagiosvrml.png: >>>>> unrecognized error during resolution >>>>> no alternative URI could be resolved >>>>> >>>>> The path to my Nagios images directory is >>>>> /usr/local/nagios/share/images. Where is the path above comming from? >>>>> >>>>> Thanks, >>>>> Rick >>>>> >>> >>> The vrml should not be able to run from your desktop as it needs to >>> communicate with the CGI to read the relative host relationships from >>> the Nagios server. >>> >>> Good luck. >>> >>> Mark Young >>> ___ >>> Nagios Enterprises, LLC >>> Web: www.nagios.com >>> >> Mark, >> >> I'm running 3.0b3, compiled from source about a year ago, just now >> getting around to trying to use it. I'm sure the only compile time >> option I used would have been --prefix=/usr. Where can I look for this >> error? Or should I use a newer version and re-compile or use the Nagios2 >> in the Kubuntu 8.04 repositories? >> >> Thanks, >> Rick >> >> Thanks > > Well I'll try to send this out. I sent a message at 9:30 CDT and it > is yet to appear. :) > > If you have the option, I would suggest to first backup your current > /usr/local/nagios/* files, then recompile/reinstall with the latest > Nagios 3.0.3 source and follow the quickstart guides (without using > the 'make install-config' which overwrites your config files). This > would bring you down to it being a problem with your Nagios > configuration or your system configuration. Though this is a drastic > step but a good chance to upgrade. > OK, I can do that. > Is the rest of your interface looking alright? Have you made any > changes to the cgi.cfg file (maybe involving web root directory)? Did > you try to take away all the url references from you config files? > (the 'vrml_image', 'icon_image', 'statusmap_image' ) I would need > more log data to help narrow it down. I haven't customized anything yet. Just added my servers to windows.cfg > > > Mark Young > ___ > Nagios Enterprises, LLC > Web: www.nagios.com > > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bedougla at cisco.com Fri Oct 3 21:14:45 2008 From: bedougla at cisco.com (Ben Douglas (bedougla)) Date: Fri, 3 Oct 2008 15:14:45 -0400 Subject: Nagios cgi's bomb out with fatal: libglib-2.0.so.0 Message-ID: Hello, I'm trying to install on Solaris 8 which has been hard enough ;) But I finally got everything installed, but all my cgis are biting the dust with the following in the apache error_log: ld.so.1: tac.cgi: fatal: libglib-2.0.so.0: open failed: No such file or directory [Fri Oct 3 13:35:06 2008] [error] [client 10.98.14.21] Premature end of script headers: /opt/local/nagios-3.0.3/sbin/tac.cgi The ldd looks okay for these files and it looks like it *has* the libglib-2.0.so.0 linked up correctly, but am at an impass with no clue where to do. Any tips for anyone else who's encountered this / knows how to fix it? bash-2.05b# ldd /opt/local/nagios/sbin/tac.cgi librt.so.1 => /lib/librt.so.1 libglib-2.0.so.0 => /usr/local/lib/libglib-2.0.so.0 libintl.so.2 => /usr/local/lib/libintl.so.2 libiconv.so.2 => /usr/local/lib/libiconv.so.2 libc.so.1 => /lib/libc.so.1 libaio.so.1 => /lib/libaio.so.1 libgcc_s.so.1 => /usr/cisco/packages/gcc/gcc-4.1.0/lib/libgcc_s.so.1 libdl.so.1 => /lib/libdl.so.1 /usr/platform/SUNW,Sun-Fire-V210/lib/libc_psr.so.1 bash-2.05b# Unfortunately the machine is behing a nice lab internal firewall, so have had to compile most everything from scratch in order to get stuff that Cisco didn't already have. Thanks, Ben Douglas -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.jpg Type: image/jpeg Size: 7375 bytes Desc: image003.jpg URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Bret.Goodfellow at questar.com Fri Oct 3 21:03:37 2008 From: Bret.Goodfellow at questar.com (Bret Goodfellow) Date: Fri, 3 Oct 2008 13:03:37 -0600 Subject: Slow response from command remote call using SSH In-Reply-To: <91EDB00F83BAD443A9D05FA67623955A027C8085@QMAIL.corp.questar.com> References: <91EDB00F83BAD443A9D05FA67623955A027C8085@QMAIL.corp.questar.com> Message-ID: <91EDB00F83BAD443A9D05FA67623955A027C8086@QMAIL.corp.questar.com> Hello there, I have just run into an issue with "multipath -ll" after upgrading to RHEL 4 Update 7. Apparently, now running "multipath" takes up to 15 seconds to get a response back. Before I updated the server in question to RHEL 4 Update 7, the 'multipath' command responded immediately, therefore not creating any timing issue with nagios. PROBLEM: my RHEL servers that have been updated to RHEL 4 Update 7, now respond too slowly to the "multipath" command and will give the following error in Nagios: Multipath CRITICAL 10-01-2008 12:16:59 0d 1h 0m 59s 3/3 CRITICAL - Plugin timed out while executing system call QUESTION: How do I set up 'nagios' so that it will wait up to 15 seconds for the service to complete? NAGIOS SETUP: I have cut and pasted screenshots of the services and commands in the Nagios setup: Please keep in mind that this service, check_ssh_multipath, worked fine prior to the upgrade to RHEL 4.7 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 4993 bytes Desc: image001.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.png Type: image/png Size: 73821 bytes Desc: image002.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.png Type: image/png Size: 81550 bytes Desc: image003.png URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Tom.Kustner at RetirementPartner.com Fri Oct 3 21:27:12 2008 From: Tom.Kustner at RetirementPartner.com (Kustner, Tom) Date: Fri, 3 Oct 2008 13:27:12 -0600 Subject: After switching to Nagios 2.9, Nagios Checker always asking for credentials Message-ID: <2B90E837B30E394680C1C58A38487FFE423E07@ITS-EXMBX2.its.corp.gwl.com> Disclaimer: I'm a Nagios user, not the administrator. * Problem: When I was using the Nagios Checker version .13 against our old Nagios 1.2 system, there were no problems. However, since switching to a newer Nagios 2.9 system, Nagios is always asking for credentials whenever it wants to check. If I have configured Nagios to check five minutes, I am asked every five minutes for credentials. * This has apparently been bugged at http://code.google.com/p/nagioschecker/issues/detail?id=56&colspec=Stars %20ID%20Type%20Status%20Priority%20Summary%20Opened%20Modified%20Closed. However, this does not mean that the problem is ultimately in the plug-in itself. Perhaps I need to configure things differently. Does something need changing on the Nagios box itself? * I have tried various modifications of Nagios Checker configurations to resolve the issue but with no luck. Somehow, Nagios used to cache my credentials but isn't now, perhaps? Any suggestions? -Tom Kustner- The information contained in this message and any accompanying attachments may contain privileged, private and/or confidential information protected by state and federal law. Penalties may be assessed for unauthorized use and/or disclosure. This message and any attachments are intended for the designated recipient only. If you have received this information in error, please notify the sender immediately and return or destroy the information. This e-mail transmission and any attachments are believed to have been sent free of any virus or other defect that might affect any computer system into which it is received and opened. It is, however, the recipient's responsibility to ensure that the e-mail transmission and any attachments are virus free, and the sender accepts no responsibility for any damage that may in any way arise from their use. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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-lists at networkmail.eu Fri Oct 3 22:32:31 2008 From: andy-lists at networkmail.eu (Andy Shellam) Date: Fri, 03 Oct 2008 21:32:31 +0100 Subject: Nagios cgi's bomb out with fatal: libglib-2.0.so.0 In-Reply-To: References: Message-ID: <48E6815F.9090400@networkmail.eu> Hi Ben, I've never used Solaris before, so this is just a quick stab in the dark - what are the permissions like on /usr/local/lib/libglib-2.0.so.0? I.e. can the user Apache is running as actually get to that file, from a permissions point-of-view? Also I know SELinux has caused numerous issues like this - does Solaris have something similar that may be interfering/preventing access? Andy Ben Douglas (bedougla) wrote: > Hello, > > I'm trying to install on Solaris 8 which has been hard enough ;) But > I finally got everything installed, but all my cgis are biting the > dust with the following in the apache error_log: > > ld.so.1: tac.cgi: fatal: libglib-2.0.so.0: open failed: No such file > or directory > [Fri Oct 3 13:35:06 2008] [error] [client 10.98.14.21] Premature end > of script headers: /opt/local/nagios-3.0.3/sbin/tac.cgi > The ldd looks okay for these files and it looks like it *has* the > libglib-2.0.so.0 linked up correctly, but am at an impass with no clue > where to do. Any tips for anyone else who's encountered this / knows > how to fix it? > > bash-2.05b# ldd /opt/local/nagios/sbin/tac.cgi > librt.so.1 => /lib/librt.so.1 > libglib-2.0.so.0 => /usr/local/lib/libglib-2.0.so.0 > libintl.so.2 => /usr/local/lib/libintl.so.2 > libiconv.so.2 => /usr/local/lib/libiconv.so.2 > libc.so.1 => /lib/libc.so.1 > libaio.so.1 => /lib/libaio.so.1 > libgcc_s.so.1 => > /usr/cisco/packages/gcc/gcc-4.1.0/lib/libgcc_s.so.1 > libdl.so.1 => /lib/libdl.so.1 > /usr/platform/SUNW,Sun-Fire-V210/lib/libc_psr.so.1 > bash-2.05b# > Unfortunately the machine is behing a nice lab internal firewall, so > have had to compile most everything from scratch in order to get stuff > that Cisco didn't already have. > > Thanks, > Ben Douglas > > > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 3 23:14:56 2008 From: ae at op5.se (Andreas Ericsson) Date: Fri, 03 Oct 2008 23:14:56 +0200 Subject: Integration with Request Tracker In-Reply-To: References: <302ce8b50809291947j44a3c330u830a365cc8fbf282@mail.gmail.com><02EAC0960BFECB4F9EAEC26B4972EE4471C9C24B7E@TDCHEXBE01.int.tdch.dk><302ce8b50809300439k44cbc0c9h24d144e5965c6d20@mail.gmail.com><48E22878.90402@op5.se> <302ce8b50810020906u2b16d02br5c0f71af9fd79403@mail.gmail.com> Message-ID: <48E68B50.5080104@op5.se> Traiano Welcome wrote: > Hi All > > How viable would it be to distribute/develop a plugin for NRPE which > is provided with the RT3/NAGIOS distribution and which logs a ticket > directly in the RT database when provided the necessary information > by a nagios server? It seems NRPE plus some plugin code could serve > as decent framework for an integration layer between RT and Nagios > systems (which are commonly found together in the same IT > environments!). > > > It doesn't seem technically difficult, but the question is whether > this would be viable to maintain as part of future nagios > distributions? > How viable it is to maintain depends on the amount of contributors that are willing to maintain it. If you want to do that, go right ahead and start a project for it. It's not something that should be put in the nagios core code though, imo. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Psung at gen-networks.com Sat Oct 4 00:15:18 2008 From: Psung at gen-networks.com (Phillip Sung) Date: Fri, 3 Oct 2008 18:15:18 -0400 Subject: How to compile check_icmp w/patch allowing Type of Service Bit? Message-ID: <8CD6889D1F91AA44A32B6247CA5A1CAB019AD566@mars.genesis-networks-inc.com> Hello Ciphron has developed a patch to the check_icmp plugin allowing the TOS bit to be set. I would like to use this modified check_icmp plugin, but I'm afraid I know nothing about gcc and compiling w/patches. Also, I do not know any German. Can anyone help me figure out how to compile this? http://www.ciphron.de/gfx/pool/check_icmp.c.patch http://www.ciphron.de/gfx/pool/check_icmp.c http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2659.html;d= 1 thank you in advance, Phillip Sung ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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_knight at rlknight.com Sat Oct 4 01:16:10 2008 From: rick_knight at rlknight.com (Rick Knight) Date: Fri, 03 Oct 2008 16:16:10 -0700 Subject: 3-D Status Map not working In-Reply-To: References: <48e52c18.5060509@rlknight.com> <2C0BB3F9548.0000095Dizz_abdullah@inbox.com> <21CBCCB7-F2DD-4391-A05A-4C64F4008470@nagios.org> <48E6482C.7060404@rlknight.com> Message-ID: <48E6A7BA.7080502@rlknight.com> Mark Young wrote: > > On Oct 3, 2008, at 11:28 AM, Rick Knight wrote: > >> Mark Young wrote: >>> On Oct 2, 2008, at 7:11 PM, Izz Abdullah wrote: >>> >>> >>>> Hi Rick, >>>> I've also done this just to make Nagios "pretty" to the users and >>>> customize for our customers. If you see the documentation, you must >>>> create the logos directory with 40x40 pixel png (other formats >>>> acceptable) for the VRML logos to work, also, this will create >>>> little logos in your regular status map as well as a pic next to the >>>> host in the summary page. If I am not mistaken, you will need to >>>> put together a: >>>> define hostextinfo{...} declaration, but it's all in the >>>> documentation. Here is an example completely specific to my >>>> internal setup for APAC usage justification: >>>> in the say...windows.cfg file: >>>> define hostextinfo{ >>>> host_name #APAC-TEST #this should be the host you want >>>> #the special pic for which is located in your >>>> logos directory in which you created >>>> notes Test 2003 Domain Controller >>>> icon_image Simpsons_couch_gag.jpg >>>> statusmap_image Simpsons_couch_gag.jpg >>>> vrml_image Simpsons_couch_gag.jpg >>>> } >>>> >>> >>> Hi Izz, >>> These can now be included in the actual host/service definitions (or >>> better yet, their templates). 'hostextinfo' and 'serviceextinfo' are >>> no longer necessary but are still supported as of now. It is now just >>> a style decision. >>> >>> >>> >>>>> Rick Knight wrote: >>>>> >>>>>> I've installed openvrml with it's Mozilla plugin. I've tested the >>>>>> plugin >>>>>> and it works fine with the models supplied with openvrml, but not >>>>>> with >>>>>> Nagios. When I click on 3-D Status Map I get a black screen. I found >>>>>> this error in my apache2 log... >>>>>> >>>>>> [Thu Oct 02 11:08:50 2008] [error] [client 127.0.0.1] script not >>>>>> found >>>>>> or unable to stat: /usr/local/nagios/sbin/nagios >>>>>> >>>>>> I get this each time I try to view the 3-D maps. Is this a >>>>>> configuration >>>>>> issue? I don't have a /usr/local/nagios/sbin/nagios, I do have >>>>>> /usr/local/bin/nagios. >>>>>> >>>>>> Thanks, >>>>>> Rick >>>>>> >>> >>> Hi Rick, >>> Did you compile this from source? What version of nagios are you >>> running? It is obvious from the logs that the CGI is looking for >>> something that does not exist. My idea of the problem might be that >>> you are, pointing 'vrml_image' or another such script url in the >>> configs to the nonexistant location. Which could be from an error in >>> how Nagios was originally configured. >>> >>> >>> >>>>> Also, when I save a map to my Desktop on my PC and then try to open >>>>> with >>>>> sdl-viewer, I get this error (the first line is the command to open >>>>> the >>>>> file)... >>>>> >>>>> rknight at calinxpit01:~/Desktop/NewDownloads/openvrml-0.17.8/examples$ >>>>> ./sdl-viewer ~/Desktop/statuswrl.wrl >>>>> >>>>> file:///home/rknight/Desktop/nagios/images/logos/nagiosvrml.png: >>>>> unrecognized error during resolution >>>>> no alternative URI could be resolved >>>>> >>>>> The path to my Nagios images directory is >>>>> /usr/local/nagios/share/images. Where is the path above comming from? >>>>> >>>>> Thanks, >>>>> Rick >>>>> >>> >>> The vrml should not be able to run from your desktop as it needs to >>> communicate with the CGI to read the relative host relationships from >>> the Nagios server. >>> >>> Good luck. >>> >>> Mark Young >>> ___ >>> Nagios Enterprises, LLC >>> Web: www.nagios.com >>> >> Mark, >> >> I'm running 3.0b3, compiled from source about a year ago, just now >> getting around to trying to use it. I'm sure the only compile time >> option I used would have been --prefix=/usr. Where can I look for this >> error? Or should I use a newer version and re-compile or use the Nagios2 >> in the Kubuntu 8.04 repositories? >> >> Thanks, >> Rick >> >> Thanks > > Well I'll try to send this out. I sent a message at 9:30 CDT and it > is yet to appear. :) > > If you have the option, I would suggest to first backup your current > /usr/local/nagios/* files, then recompile/reinstall with the latest > Nagios 3.0.3 source and follow the quickstart guides (without using > the 'make install-config' which overwrites your config files). This > would bring you down to it being a problem with your Nagios > configuration or your system configuration. Though this is a drastic > step but a good chance to upgrade. > > Is the rest of your interface looking alright? Have you made any > changes to the cgi.cfg file (maybe involving web root directory)? Did > you try to take away all the url references from you config files? > (the 'vrml_image', 'icon_image', 'statusmap_image' ) I would need > more log data to help narrow it down. > > > Mark Young > ___ > Nagios Enterprises, LLC > Web: www.nagios.com > > Mark, As you suggested I backed up my config files and then removed nagios from my PC. Then I did a fresh install with nagios-3.0.3 and nagios-plugins-1.4.13 following the quick start guide for Ubuntu. I copied my configuration file backups to the appropriate locations, verified the configuration with sudo /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg and then started nagios. Everything looks OK. I can see the hosts I've configured, I can look at reports, everything seems to work except the 3-d maps. When I click on 3-D Status Map I get a black window and nothing else. When I look at my apache log I see this error... [Fri Oct 03 16:13:59 2008] [error] [client 127.0.0.1] script not found or unable to stat: /usr/local/nagios/sbin/nagios What is the next step in trouble shooting this problem? Thanks, Rick ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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_knight at rlknight.com Sat Oct 4 01:31:04 2008 From: rick_knight at rlknight.com (Rick Knight) Date: Fri, 03 Oct 2008 16:31:04 -0700 Subject: 3-D Status Map not working In-Reply-To: References: <48e52c18.5060509@rlknight.com> <2C0BB3F9548.0000095Dizz_abdullah@inbox.com> <21CBCCB7-F2DD-4391-A05A-4C64F4008470@nagios.org> <48E6482C.7060404@rlknight.com> Message-ID: <48E6AB38.1070808@rlknight.com> << snipped >> >> Mark, >> >> I'm running 3.0b3, compiled from source about a year ago, just now >> getting around to trying to use it. I'm sure the only compile time >> option I used would have been --prefix=/usr. Where can I look for this >> error? Or should I use a newer version and re-compile or use the Nagios2 >> in the Kubuntu 8.04 repositories? >> >> Thanks, >> Rick >> >> Thanks > > Well I'll try to send this out. I sent a message at 9:30 CDT and it > is yet to appear. :) > > If you have the option, I would suggest to first backup your current > /usr/local/nagios/* files, then recompile/reinstall with the latest > Nagios 3.0.3 source and follow the quickstart guides (without using > the 'make install-config' which overwrites your config files). This > would bring you down to it being a problem with your Nagios > configuration or your system configuration. Though this is a drastic > step but a good chance to upgrade. > > Is the rest of your interface looking alright? Have you made any > changes to the cgi.cfg file (maybe involving web root directory)? Did > you try to take away all the url references from you config files? > (the 'vrml_image', 'icon_image', 'statusmap_image' ) I would need > more log data to help narrow it down. > > > Mark Young > ___ > Nagios Enterprises, LLC > Web: www.nagios.com > > The only config file I have that points to /usr/local/nagios/sbin is the Apache2 config file for Nagios, nagios.conf. I've included it below... ## Apache2 config file for Nagios # nagios.conf ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin" # SSLRequireSSL Options ExecCGI AllowOverride None Order allow,deny Allow from all # Order deny,allow # Deny from all # Allow from 127.0.0.1 AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users Require valid-user Alias /nagios "/usr/local/nagios/share" # SSLRequireSSL Options None AllowOverride None Order allow,deny Allow from all # Order deny,allow # Deny from all # Allow from 127.0.0.1 AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users Require valid-user Could this be causing the problem? Thanks, Rick ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From isma.silv at gmail.com Sat Oct 4 02:19:47 2008 From: isma.silv at gmail.com (Ismael Silva) Date: Fri, 3 Oct 2008 20:19:47 -0400 Subject: Nagios cgi's bomb out with fatal: libglib-2.0.so.0 In-Reply-To: <48E6815F.9090400@networkmail.eu> References: <48E6815F.9090400@networkmail.eu> Message-ID: <826270010810031719p314a8219sc60eeeb59c7c0a26@mail.gmail.com> i have the some problem, and i can`t install openssl for complete in the server... this for security protocols. (sorry for my english. y speak spanish) byee 2008/10/3 Andy Shellam > Hi Ben, > > I've never used Solaris before, so this is just a quick stab in the dark > - what are the permissions like on /usr/local/lib/libglib-2.0.so.0? > I.e. can the user Apache is running as actually get to that file, from a > permissions point-of-view? > > Also I know SELinux has caused numerous issues like this - does Solaris > have something similar that may be interfering/preventing access? > > Andy > > Ben Douglas (bedougla) wrote: > > Hello, > > > > I'm trying to install on Solaris 8 which has been hard enough ;) But > > I finally got everything installed, but all my cgis are biting the > > dust with the following in the apache error_log: > > > > ld.so.1: tac.cgi: fatal: libglib-2.0.so.0: open failed: No such file > > or directory > > [Fri Oct 3 13:35:06 2008] [error] [client 10.98.14.21] Premature end > > of script headers: /opt/local/nagios-3.0.3/sbin/tac.cgi > > The ldd looks okay for these files and it looks like it *has* the > > libglib-2.0.so.0 linked up correctly, but am at an impass with no clue > > where to do. Any tips for anyone else who's encountered this / knows > > how to fix it? > > > > bash-2.05b# ldd /opt/local/nagios/sbin/tac.cgi > > librt.so.1 => /lib/librt.so.1 > > libglib-2.0.so.0 => /usr/local/lib/libglib-2.0.so.0 > > libintl.so.2 => /usr/local/lib/libintl.so.2 > > libiconv.so.2 => /usr/local/lib/libiconv.so.2 > > libc.so.1 => /lib/libc.so.1 > > libaio.so.1 => /lib/libaio.so.1 > > libgcc_s.so.1 => > > /usr/cisco/packages/gcc/gcc-4.1.0/lib/libgcc_s.so.1 > > libdl.so.1 => /lib/libdl.so.1 > > /usr/platform/SUNW,Sun-Fire-V210/lib/libc_psr.so.1 > > bash-2.05b# > > Unfortunately the machine is behing a nice lab internal firewall, so > > have had to compile most everything from scratch in order to get stuff > > that Cisco didn't already have. > > > > Thanks, > > Ben Douglas > > > > > > > > > > > > ------------------------------------------------------------------------ > > > > ------------------------------------------------------------------------- > > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > > Build the coolest Linux based applications with Moblin SDK & win great > prizes > > Grand prize is a trip for two to an Open Source event anywhere in the > world > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: 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 Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- ................................................................................. Saludos Ismael Silva C. +56 7 7682753 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From howachen at gmail.com Sat Oct 4 15:43:08 2008 From: howachen at gmail.com (howard chen) Date: Sat, 4 Oct 2008 21:43:08 +0800 Subject: Full data logging? Message-ID: Hello, Is the monitored data such as load average, disk usage stored somewhere in the nagios system, so we can view the past statistics, even no alert was generated? Thanks. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dermoth at aei.ca Sat Oct 4 17:41:39 2008 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Sat, 04 Oct 2008 11:41:39 -0400 Subject: Full data logging? In-Reply-To: References: Message-ID: <48E78EB3.7090201@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 04/10/08 09:43 AM, howard chen wrote: > Hello, > > Is the monitored data such as load average, disk usage stored > somewhere in the nagios system, > > so we can view the past statistics, even no alert was generated? No, you need another system for using that data. Usually it is passed to one of the many RRD-based graphing system available. Some of them are based on Nagios (NagiosGrapher, PNP) or you can usually integrate it with other tools like Cacti with some additional work. My method was to use a daemon reading the performance data pipe and caching data for a sort period, and a cacti script to read it back. see: http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2520.html;d=1 Search around, you will likely find other applications and utilities for doing that. - -- Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFI546z6dZ+Kt5BchYRAnsUAJ4j2rxSaLlOPw7jrGhQfbP2ORTVbgCcCJKn RdONiFPdaCO2WnAb0VemIsU= =n1py -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dermoth at aei.ca Sat Oct 4 17:51:20 2008 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Sat, 04 Oct 2008 11:51:20 -0400 Subject: Slow response from command remote call using SSH In-Reply-To: <91EDB00F83BAD443A9D05FA67623955A027C8086@QMAIL.corp.questar.com> References: <91EDB00F83BAD443A9D05FA67623955A027C8085@QMAIL.corp.questar.com> <91EDB00F83BAD443A9D05FA67623955A027C8086@QMAIL.corp.questar.com> Message-ID: <48E790F8.9080006@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 03/10/08 03:03 PM, Bret Goodfellow wrote: > Hello there, > > > > I have just run into an issue with ?multipath -ll? after upgrading to > RHEL 4 Update 7. Apparently, now running ?multipath? takes up to 15 > seconds to get a response back. Before I updated the server in question > to RHEL 4 Update 7, the ?multipath? command responded immediately, > therefore not creating any timing issue with nagios. > > > > PROBLEM: my RHEL servers that have been updated to RHEL 4 Update 7, now > respond too slowly to the ?multipath? command and will give the > following error in Nagios: > > > > Multipath CRITICAL 10-01-2008 12:16:59 0d 1h 0m > 59s 3/3 CRITICAL ? Plugin timed out while executing system call > > > > > > QUESTION: How do I set up ?nagios? so that it will wait up to 15 > seconds for the service to complete? Use the "-t" switch of check-by-ssh. Do a "check_by_ssh --help" for more info. - -- Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFI55D46dZ+Kt5BchYRAgEiAKCa7xvrFSXlvswYoyAnTGz7lB0wXQCfcoh7 Xzk9Agx8fiQSRTWVpTmzqZc= =7SMd -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From howachen at gmail.com Sat Oct 4 19:26:42 2008 From: howachen at gmail.com (howard chen) Date: Sun, 5 Oct 2008 01:26:42 +0800 Subject: Full data logging? In-Reply-To: <48E78EB3.7090201@aei.ca> References: <48E78EB3.7090201@aei.ca> Message-ID: Hello, On Sat, Oct 4, 2008 at 11:41 PM, Thomas Guyot-Sionnest wrote: > No, you need another system for using that data. Usually it is passed to > one of the many RRD-based graphing system available. Some of them are > based on Nagios (NagiosGrapher, PNP) or you can usually integrate it > with other tools like Cacti with some additional work. My method was to > use a daemon reading the performance data pipe and caching data for a > sort period, and a cacti script to read it back. see: > http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2520.html;d=1 > Thanks for your reply. Sure I can use system such as ganglia to do the logging and generate the nice graphs. The reason I don't like is since I am using nagios for monitoring anyway, I don't want to install another program on my production server which monitor the same set or data, which cost additional cpu cycles, I/O etc. So I am finding some more efficient, and easy to setup method to do the tasks. Thanks anyway. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hir3npatel at gmail.com Sat Oct 4 21:11:48 2008 From: hir3npatel at gmail.com (hirenp) Date: Sat, 04 Oct 2008 21:11:48 +0200 Subject: check_disk In-Reply-To: <1222687281.6134.7.camel@nazgul.af.didata.local> References: <1222687281.6134.7.camel@nazgul.af.didata.local> Message-ID: <1223147508.9369.0.camel@goldbox.localdomain> see below. re-posting since not sure if original request for this went through, now on the list so should get any replies. thanks. On Mon, 2008-09-29 at 13:21 +0200, hiren wrote: > Hi, > > from the -h switch of check_disk: > > -u, --units=STRING > Choose bytes, kB, MB, GB, TB (default: MB) > > Examples: > check_disk -w 10% -c 5% -p /tmp -p /var -C -w 100000 -c 50000 -p / > Checks /tmp and /var at 10% and 5%, and / at 100MB and 50MB > > --- > > if the default as specified by -u is MB, how would the example be > checking the values specified, they'd be 100 and 50 no? > would the help text need adjusting or am I misunderstanding something > there? > thanks. > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From smcafee at collaborativefusion.com Wed Oct 1 22:50:15 2008 From: smcafee at collaborativefusion.com (Sean McAfee) Date: Wed, 01 Oct 2008 16:50:15 -0400 Subject: SMS notification problem . HW trouble ? In-Reply-To: <20081001215121.11904h3wwdh3sccg@webmail.tugraz.at> References: <20081001215121.11904h3wwdh3sccg@webmail.tugraz.at> Message-ID: <48E3E287.8000202@collaborativefusion.com> Simon Kainz wrote: > I use debian and smstools, which tells me the following errors: > > +CMS ERROR: 321 > > with the following error codes: > > 303 314 321 500 This is most definitely a problem with the hardware, your wireless provider, or smstools (are you using SMSTools3 or the original SMSTools)? From http://www.developershome.com/sms/resultCodes2.asp: 303 = The operation to be done by the AT command is not supported. 314 = The SIM card is busy. 321 = The memory/message storage index assigned to the AT command is invalid. 500 = An unknown error occurred. Feel free to take this off-list. -- Sean McAfee System Engineer Collaborative Fusion, Inc. smcafee at collaborativefusion.com 412-422-3463 x 4025 5849 Forbes Avenue Pittsburgh, PA 15217 **************************************************************** IMPORTANT: This message contains confidential information and is intended only for the individual named. If the reader of this message is not an intended recipient (or the individual responsible for the delivery of this message to an intended recipient), please be advised that any re-use, dissemination, distribution or copying of this message is prohibited. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. **************************************************************** IMPORTANT: This message contains confidential information and is intended only for the individual named. If the reader of this message is not an intended recipient (or the individual responsible for the delivery of this message to an intended recipient), please be advised that any re-use, dissemination, distribution or copying of this message is prohibited. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 1 21:32:21 2008 From: ae at op5.se (Andreas Ericsson) Date: Wed, 01 Oct 2008 21:32:21 +0200 Subject: Filtering out false alarms in unreliable network In-Reply-To: <32216.194.42.61.10.1222875885.squirrel@imap.lanwan.fi> References: <32216.194.42.61.10.1222875885.squirrel@imap.lanwan.fi> Message-ID: <48E3D045.6040200@op5.se> Tuomas Toropainen wrote: > The problem: how to filter out false alarms caused by short-time breaks in > an unreliable network. > > Think about a simple monitoring scenario in which you only want to ping > various devices to see if they are up or not. So you have 200 hosts with > only one service (PING) for each. > > For a reason or another, short-time breaks occur in the network. That is, > a particular host does not reply to PINGs for e.g. 30 seconds. These > breaks should not cause a notification to be sent. > > What comes to services, the filtering is easy with max_check_attempt and > retry_check_interval. But the host check becomes a problem: after first > PING failure (soft state) the host is checked, and there is no > retry_check_interval for hosts. So the host is declared to be down > (almost) immediately. > > The notifications about hosts can be delayed using > first_notification_delay. This seems to work fine except for one thing: > flap detection. Even if the notification is not sent, the host (and > service) is logged to have changed state, and when enough such state > changes occur, the host (and service) is placed in flapping state. > > I do not want to disable flapping detection (or flapping notifications) > completely, because they might be useful in many cases. What I would like > to achieve is not to count those short-time outages when computing > flapping percent state changes. How can I accomplish that? > You can't. Flapping detection was designed to detect changes over a short time, so making it *not* do that would be the same as disabling it. > Should I go ahead and disable host checks completely? If there only was > retry_check_interval for hosts, it would solve all these problems. > Upgrade to Nagios 3. Then you can specify retry_interval for hosts. > I think it is quite common that the short-time outages are > network-related, i.e. the complete host is unresponsive instead of a > single service. When this is taken into account, it seems weird that there > is retry_check_interval for services but not for hosts. Or would it ruin > the scheduling logic? > AFAIU, enabling a longer retry_interval * max_check_attempts for the host than you have for the services on that host will cause the services to send notifications even if the host later turns out to actually be down, instead of just glitching. You'll want to look out for that. Other than that, there's no real problem. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From leosilva at tse.gov.br Wed Oct 1 20:16:13 2008 From: leosilva at tse.gov.br (Leandro de Oliveira) Date: Wed, 1 Oct 2008 15:16:13 -0300 Subject: Place the same service Message-ID: <001a01c923f1$c9c4d3e0$2df41c0a@tse.gov.br> Hi Is there a way to place the same service for multiple hosts ? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From amontibello at gmail.com Thu Oct 2 03:00:22 2008 From: amontibello at gmail.com (Anthony Montibello) Date: Wed, 1 Oct 2008 21:00:22 -0400 Subject: English and German Counters with NSClient++ In-Reply-To: <48E33FDE.3050105@medin.name> References: <20080930161258.GA12005@umbach-racing.de> <48E2741F.7000900@medin.name> <20081001063329.GB12005@umbach-racing.de> <48E33FDE.3050105@medin.name> Message-ID: Hi, Just 2 quick comment, WMI can "usually" provide the All the same information that you retrieve from preformance counters, However the hard part is finding the correct WMI that matches the counter. And accessing WMI sometimes has a Subsystem delay That Performance counters do not have. WMI also sometimes has other unanticipated subsystem effects. For example a WMI to check Freespace on Disks actually accesses each Logical disk (including Floppy disk drives) unless the WMI querry is writen to explicitly exclude particular types. Other WMI queries may check remote hosts before responding thus adding delays instead of imediate responces. on the issue of the German vrs English Counters , I just patched a similar issue in NC_Net below is a Comment Emailed to me from a NC_NEt user that may be helpful in retriving the COunters (It requires REGEDIT) <> generell german counter without umlaute works. I don?t think it is a nagios/nc_net problem, maybe it is a generell linux problem with the umlaute.(default systemlanguage) some guys got a workaround by adding the registry under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib there you got 007 for german and 009 for englisch. they fixed it by modifying the counter part im 007 folder. there they changes the ? in oe and the ? in ae, that is how german people write the umlaute when they cant use the original ?. <> Hope this Helps TOny On Wed, Oct 1, 2008 at 5:16 AM, Michael Medin wrote: > Klaus Umbach skrev: > > On 30/09/08 20:46, Michael Medin wrote: > > > Hello, > > NSClient++ (version 3 and above) do not use the "counter names" so they > are no longer language specific. > The coutners.defs is there as a "fall back" so it is probably never used... > > > So is there a way of asking NSClient++ language independent for e.g. > > > > Ahh... now I understand... no... (though I guess I could add it if you > want). > Feel free to make such a request at the trac site at nsclient.org and I > shall see if I can fix it (going to Germany for maschinenfest so might take > a week or two before you get it in a "nightly build"). > > Another option would be to "include" a "local.ini" file and have the > language specific counters there. > (look under the [include] section). But this would I guess require you to > make some "manual" handling so I think an index based solution would perhaps > be better. > Also there is WMI which does much of what PDH does but again the index > solution might be simpler... > > > // Michael Medin > > > > "\Physikalischer Datentr?ger(_Total)\Durchschnittl. Warteschlangenl?nge des Datentr?gers" > vs > "\PhysicalDisk(_Total)\Avg. Disk Queue Length" > > or do I have to define different services for different languages? > > - > Treibholz > > > > // Michael Medin > > Klaus Umbach skrev: > > > Hi, > > I was just scared by the discovery that the performance counters in Windows > are language specific... (Those morons even use Umlauts!) > > Is it somehow possible to define all I need in counters.defs and use them > with a language-independent call? > > I already defined some, but I don't know how to call them now. > > > > > Cheers > Klaus > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the worldhttp://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Nagios-users mailing listNagios-users at lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk > being sent to /dev/null > > > > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jon at netdork.net Thu Oct 2 14:24:24 2008 From: jon at netdork.net (Jon Angliss) Date: Thu, 02 Oct 2008 07:24:24 -0500 Subject: Integration with Request Tracker References: <302ce8b50809291947j44a3c330u830a365cc8fbf282@mail.gmail.com> <02EAC0960BFECB4F9EAEC26B4972EE4471C9C24B7E@TDCHEXBE01.int.tdch.dk> <302ce8b50809300439k44cbc0c9h24d144e5965c6d20@mail.gmail.com> <48E22878.90402@op5.se> <1222938103.30176.15.camel@bofh.dtnet.de> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, 02 Oct 2008 11:01:43 +0200, Sebastian Ries wrote: >Hi > >> Not directly. Looking at the description, the ID increases on each >> new notification sent. >> >> : The notification ID number is incremented by one (1) each time a new >> >> : host notification is sent out, and regardless of how many contacts >> are >> : notified. >> >> I read this being that each notification gets a new ID. For example, >> a host goes down, the first notification gets 1... second gets 2... >> etc. Host recovers. A service on another host goes down, and the >> notification ID is 3. > >No. > >The Order is: > >Host goes down >Notification 1 >Notification 2 >Notification 3 >Host recovers >Notification 4 (Recovery) >Host goes down (any) >Notification 1 >Notification 2 >... No, that would be $HOSTNOTIFICATIONNUMBER$, not $HOSTNOTIFICATIONID$. $HOSTNOTIFICATIONNUMBER$ The current notification number for the host. The notification number increases by one (1) each time a new notification is sent out for the host (except for acknowledgements). The notification number is reset to 0 when the host recovers (after the recovery notification has gone out). Acknowledgements do not cause the notification number to increase, nor do notifications dealing with flap detection or scheduled downtime. $HOSTNOTIFICATIONID$ A unique number identifying a host notification. Notification ID numbers are unique across both hosts and service notifications, so you could potentially use this unique number as a primary key in a notification database. Notification ID numbers should remain unique across restarts of the Nagios process, so long as you have state retention enabled. The notification ID number is incremented by one (1) each time a new host notification is sent out, and regardless of how many contacts are notified. >Notifications are counted for each problem without regarding other >problems. http://nagios.sourceforge.net/docs/3_0/macrolist.html - -- Jon Angliss -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) - GPGshell v3.64 iEYEARECAAYFAkjkvWwACgkQK4PoFPj9H3OqtQCglQRiHy4JOh+aQ1u0FWi77xa2 7KAAn3QbTsJRuU2gyUmU22rcSDfYPcmW =Hvq0 -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jon at netdork.net Thu Oct 2 10:40:35 2008 From: jon at netdork.net (Jon Angliss) Date: Thu, 02 Oct 2008 03:40:35 -0500 Subject: monitoring bigip F5 References: <716095.7471.qm@web26104.mail.ukl.yahoo.com> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, 30 Sep 2008 08:04:52 +0000 (GMT), Kermito le kermit wrote: > >hello all, > >I want to know if is possible to monitoring the active and standby F5 or know the OID to have this information snmptraps will send out the state changes of a node. Details are in the F5-BIGIP-COMMON-MIB... looks like it's burried in the tree .1.3.6.1.4.1.3375.0 And it'll be a .15 for going active, and .14 going into standby. If you don't want to do snmptraps, you'll probably want to look at the F5-BIGIP-SYSTEM-MIB... http://support.ipmonitor.com/mibs/F5-BIGIP-SYSTEM-MIB/tree.aspx - -- Jon Angliss -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) - GPGshell v3.64 iEYEARECAAYFAkjkiPIACgkQK4PoFPj9H3NtlQCgmQrWsxR6MW33jv8cXAzdQocO FOcAoMS2uPBFvGghYs2Hg4J+3Tosvbi7 =vb7R -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hars at bik-gmbh.de Thu Oct 2 17:45:59 2008 From: hars at bik-gmbh.de (Florian Hars) Date: Thu, 02 Oct 2008 17:45:59 +0200 Subject: Segfault in mmap_fgets_multiline Message-ID: <48E4ECB7.4030108@bik-gmbh.de> I tried running Nagios 3.0.3 on a recent OpenBSD snapshot and (apart from the gd problems due to a lack of libttf) hit on the problem that nagios segfaults in mmap_fgets_multiline. Not on every run, but if it segfaults, it always segfaults at the same place in the code. It looks related to http://archive.netbsd.se/?ml=nagios-users&a=2008-05&t=7383489 -------------- snip -------------------- Program received signal SIGSEGV, Segmentation fault. [Switching to process 11262, thread 0x81cf3000] 0x1c03c42d in mmap_fgets_multiline (temp_mmapfile=0x8318aca0) at utils.c:3486 3486 else if(buf[end]=='\\') (gdb) l 3481 buf[end+1]='\x0'; 3482 break; 3483 } 3484 3485 /* one backslash found, so we should continue reading the next line */ 3486 else if(buf[end]=='\\') 3487 buf[end]='\x0'; 3488 3489 /* else no continuation marker was found, so break */ 3490 else (gdb) print end $1 = -1 (gdb) print buf $2 = 0x7ce6a000 "\n" (gdb) bt #0 0x1c03c42d in mmap_fgets_multiline (temp_mmapfile=0x8318aca0) at utils.c:3486 #1 0x1c018757 in read_main_config_file (main_config_file=0x7cecc000 "/usr/local/nagios/etc/nagios.cfg") at config.c:281 #2 0x1c00e0b2 in main (argc=3, argv=0xcfbda84c) at nagios.c:475 (gdb) It ssem to happen in different places in the input file, though: (gdb) print *temp_mmapfile $2 = {path = 0x80319600 "/usr/local/nagios/etc/nagios.cfg", mode = 0, fd = 8, file_size = 42546, current_position = 8259, current_line = 244, mmap_buf = 0x7e4a2000} $4 = {path = 0x80c68600 "/usr/local/nagios/etc/nagios.cfg", mode = 0, fd = 8, file_size = 42546, current_position = 8710, current_line = 258, mmap_buf = 0x8af0c000} $6 = {path = 0x7fd22340 "/usr/local/nagios/etc/nagios.cfg", mode = 0, fd = 8, file_size = 42546, current_position = 6989, current_line = 211, mmap_buf = 0x883aa000} $8 = {path = 0x7cb245c0 "/usr/local/nagios/etc/nagios.cfg", mode = 0, fd = 8, file_size = 42546, current_position = 12151, current_line = 375, mmap_buf = 0x83b74000} $9 = {path = 0x80fdd480 "/usr/local/nagios/etc/nagios.cfg", mode = 0, fd = 8, file_size = 42546, current_position = 7212, current_line = 221, mmap_buf = 0x7c66f000} Sometimes it even seems to get confused over the real end of the config files: | LEN: 37, END: 35, BUF=# "TRUE" REGULAR EXPRESSION MATCHING | BUFNOW: # "TRUE" REGULAR EXPRESSION MATCHING | LEN: 65, END: 63, BUF=# This option controls whether or not | Total Warnings: 0 | Total Errors: 0 | | Things look okay - No serious problems were detected during the pre-flight check or | LEN: 71, END: 69, BUF=# This directive is used to specify an event broker module that should | BUFNOW: # This directive is used to specify an event broker module that should | LEN: 71, END: 69, BUF=# by loaded by Nagios at start | Total Warnings: 0 | Total Errors: 0 | | Things look okay - No serious problems were detected during the pre-flight check I think these lines make end negative if buf contains just an end of line: 3465 /* handle Windows/DOS CR/LF */ 3466 if(len>=2 && buf[len-2]=='\r') 3467 end=len-3; 3468 /* normal Unix LF */ 3469 else if(len>=1 && buf[len-1]=='\n') 3470 end=len-2; 3471 else 3472 end=len-1; But apart from that I am completely confused, as I can see no source of non-determinism in the code. Maybe it is address randomization: sometimes buf is allocated at the beginning of a page, so buf[-1] segfaults, and sometimes not, so that the erroneous code continues to run, yielding undefined behaviour. Memtest86+ shows nothing suspicious on the machine, so there seems to be no involuntary hardware RNG involved. - Florian. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From john.nagios at gmail.com Thu Oct 2 18:03:13 2008 From: john.nagios at gmail.com (Nagios User) Date: Thu, 2 Oct 2008 12:03:13 -0400 Subject: notify-html-email.sh Message-ID: Hello, I am trying to us the notify-html-email.sh mailscript on nagios 3.0.1 with no success. Does this work with Nagios 3.0.1? if you have any information please let me know. http://www.nagiosexchange.org/cgi-bin/page.cgi?g=2002.html;d=1 Thanks, -john ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From charlie.reddington at gmail.com Thu Oct 2 23:42:41 2008 From: charlie.reddington at gmail.com (Charlie Reddington) Date: Thu, 2 Oct 2008 16:42:41 -0500 Subject: nagios on call schedule w/ escalations? In-Reply-To: References: <22DEED01-E27A-40EA-A539-A92E76A9BBCE@gmail.com> Message-ID: <9761BC32-7D9D-4B77-8563-8420A1C3E32D@gmail.com> Jon thanks. I got things figured out. I setup 2 sets of contacts with the same users. One was just for the regular contact. I setup this group of 'admins' so they are only contacted on their oncall schedule. I then just did nearly exactly as you wrote and made a totally seperate set of contacts, that can be contacted 24x7. I have 2 groups. Admins and Escalations. Escalations use the second set of 24x7 contacts, and the Admins contacts uses the oncall schedule. Inheritance wasn't really necessary, just the separate groups. Oh and I made a separate contact template that used the proper contact time period. Thanks again, works perfect. charlie On Oct 2, 2008, at 3:13 AM, Jon Angliss wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Tue, 30 Sep 2008 16:22:16 -0500, Charlie Reddington > wrote: > >> Hi guys / gals, >> >> I am working on the final stages of my nagios setup, but I'm entering >> territory which I haven't been before and can use some guidance. > > I'm sure you've probably taken a peek at the "On Call Rotations" > details in the documentation: > > http://nagios.sourceforge.net/docs/3_0/oncallrotation.html > > There are plenty of examples to get a good idea. > >> Here's what I'm trying to achieve. We have a team of 3 admins, where >> we rotate weeks who is on call. Of course, they aren't every other >> 3rd >> week , because of people having vacation time, etc. So some weeks >> people are on call for 2 weeks, or every 2 weeks, etc. >> >> What we'd like is, to have a schedule setup where the primary guy >> gets >> woken up first. But if he doesn't answer his call after an hour, it >> drops down to the rest of us admins. No matter if your just at home >> sleeping, or if your on vacation, you get pinged. After that it goes >> up to our manager. > >> I can figure out the setting of people's initial schedule, as I have >> it looking something like this.... >> >> # contacts >> >> define contact{ >> contact_name user1 >> use generic-contact >> alias user1 >> email user1 >> host_notification_period user1_oncall >> service_notfication_period user1_oncall >> } >> >> define contact{ >> contact_name user2 >> use generic-contact >> alias user2 >> email user2 >> host_notification_period user2_oncall >> service_notfication_period user2_oncall >> } >> >> define contact{ >> contact_name user3 >> use generic-contact >> alias user3 >> email user3 >> host_notification_period user3_oncall >> service_notfication_period user3_oncall >> } >> define contact{ >> contact_name manager1 >> use generic-contact >> email manager1 >> } >> >> # groiups >> >> define contactgroup{ >> contact_groupname admins >> members user1,user2,user3 >> } >> define contactgroup{ >> contact_groupname managers >> members manager1 >> } >> >> # Time periods >> >> define timeperiod{ >> timeperiod_name user1_oncall >> Sept 29 - Oct 5 00:00-24:00 >> Oct 20 - Oct 26 00:00-24:00 >> Nov 17 - Nov 23 00:00-24:00 >> Dec 1 - Dec 7 00:00-24:00 >> Dec 15 - Dec 21 00:00-24:00 >> } >> >> define timeperiod{ >> timeperiod_name user2_oncall >> Oct 6 - Oct 12 00:00-24:00 >> Nov 3 - Nov 9 00:00-24:00 >> Nov 24 - Nov 30 00:00-24:00 >> Dec 22 - Dec 23 00:00-24:00 >> } >> >> define timeperiod{ >> timeperiod_name user3_oncall >> Oct 13 - Oct 19 00:00-24:00 >> Oct 27 - Nov 2 00:00-24:00 >> Nov 10 - Nov 16 00:00-24:00 >> Dec 8 - Dec 14 00:00-24:00 >> } > >> Would / Does escalations trump the initial contacts? >> >> # First escalations >> define serviceescalation{ >> hostgroup_name Servers >> service_description * >> first_notification 2 >> last_notification 3 >> notification_interval 30 >> contact_groups admins >> } >> >> # Second escalations >> define serviceescalation{ >> hostgroup_name Servers >> service_description * >> first_notification 3 >> last_notification 8 >> notification_interval 60 >> contact_groups admins,managers >> } >> >> So I know this isn't quite right, as our admins are part of the admin >> group, but also trying to restrict when they get contacted. So I'm >> not >> really sure how to proceed with this. > > You might want to read up on notifications, and serviceescalations, > too... Looking at the time stuff you've got, what'll happen is at any > one point, only 1 of the admins will be reachable by notifications at > any time. This is because the "timeperiods" stop nagios from sending > notifications to a user that is outside their timeperiod. For > example, a host goes down at 2100 on Oct 15th, only user3 will be > notified, even after the escalations kick in. There will be a period > of 0-3 notifications where user3 is the only recipient. It'll only > get to another person when the 3rd notification goes out, and it > engages the "managers" contact group. > > Depending on how many users/admins you're looking at, you could use a > trick with templating, and inheritence. Keeping your base users as you > have above, then build escalation users' and groups. > > define timeperiod { > timeperiod_name AllTimes > alias All Times > sunday 00:00-24:00 > monday 00:00-24:00 > tuesday 00:00-24:00 > wednesday 00:00-24:00 > thursday 00:00-24:00 > friday 00:00-24:00 > saturday 00:00-24:00 > } > > define contact { > contact_name disable_times > host_notification_period AllTimes > service_notification_period AllTimes > register 0 > } > > define contact{ > contact_name user1 > use generic-contact > alias user1 > email user1 > host_notification_period user1_oncall > service_notfication_period user1_oncall > } > > define contact{ > contact_name user2 > use generic-contact > alias user2 > email user2 > host_notification_period user2_oncall > service_notfication_period user2_oncall > } > > define contact { > use disable_times,user1 > contact_name user1_esc > } > > define contact { > user disable_times,user2 > contact_name user2_esc > } > > define contactgroup { > contactgroup_name admins > members user1,user2 > } > > define contactgroup { > contactgroup_name admins_esc > members user1_esc,user2_esc > } > > Then your service escalations use admins_esc instead of just admins. > I've not tested it, but looking at the way inheritence works, you > should be OK. > > - -- > Jon Angliss > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.9 (MingW32) - GPGshell v3.64 > > iEYEARECAAYFAkjkgqMACgkQK4PoFPj9H3MthQCg4XgD5eNyl190umm7Ew8OouKK > kCoAoNsRdPjpTMX/tO/eC00ejVb3MjzF > =XHky > -----END PGP SIGNATURE----- > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win > great prizes > Grand prize is a trip for two to an Open Source event anywhere in > the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 3 00:38:38 2008 From: marc at ena.com (Marc Powell) Date: Thu, 2 Oct 2008 17:38:38 -0500 Subject: Editing CGI files in Nagios In-Reply-To: <01E9BE53DDA8974BA1A4E4C6DB8BA15B0510CAA3@tnshestia.tnsadmin.tns.psu.edu> References: <01E9BE53DDA8974BA1A4E4C6DB8BA15B0510CAA3@tnshestia.tnsadmin.tns.psu.edu> Message-ID: On Oct 2, 2008, at 4:03 PM, Mike Carey wrote: > Is it possible to customize the avail.cgi file to add things like > Title and Logos to the Summary and Availability reports that run? > Everytime I try to adjust the avail.cgi file in /usr/local/share/ > nagios/sbin on a Ubuntu server, the Availability main report page > doesn?t come up anymore. > > I?ve tried editing it with both vi and nano. And I?m just testing > it with a simple change, like making Nagios, ALL CAPS, in the frame > box just to see if it will work. It's a binary program and not editable like that. You're corrupting it every time you save it. ;) You need to edit the source file from the nagios tarball (avail.c for example) and recompile nagios. -- Marc ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From myoung at nagios.org Fri Oct 3 16:37:17 2008 From: myoung at nagios.org (Mark Young) Date: Fri, 3 Oct 2008 09:37:17 -0500 Subject: Changing the NRPE timeout In-Reply-To: <48165.65.161.127.93.1223039822.squirrel@ameliaschools.com> References: <48165.65.161.127.93.1223039822.squirrel@ameliaschools.com> Message-ID: <828326CE-D0FC-41A7-B70E-11AF7DCC458F@nagios.org> On Oct 3, 2008, at 8:17 AM, Bo Lynch wrote: > I am monitoring some boxes over a slow connection and need to up the > CHECK_NRPE timeout from 10 sec to maybe 30. Where do I set this at. > Thanks > -- > Bo Lynch Timeouts are maintained in the nagios.cfg and in how you call each plugin. Most plugins will have a timeout option that you can change by modifying your command to pass an additional flag. For example './ check_nrpe -H HOSTNAME -t 30 -c CMD' would give you a timeout of 30 seconds. As long as you are not setting a timeout value for the plugin greater than that set globally for Nagios in the nagios.cfg you should be fine. Otherwise adjust the global settings *CAREFULLY* as you may run into potential performance problems. Normally with plugin issues you should run the plugin from the commandline as user nagios to find useful help information (passing '- h' or '--help') and debugging problems. Mark Young ___ Nagios Enterprises, LLC Web: www.nagios.com ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jon at netdork.net Fri Oct 3 15:52:46 2008 From: jon at netdork.net (Jonathan Angliss) Date: Fri, 3 Oct 2008 08:52:46 -0500 (CDT) Subject: Integration with Request Tracker In-Reply-To: References: <302ce8b50809291947j44a3c330u830a365cc8fbf282@mail.gmail.com><02EAC0960BFECB4F9EAEC26B4972EE4471C9C24B7E@TDCHEXBE01.int.tdch.dk><302ce8b50809300439k44cbc0c9h24d144e5965c6d20@mail.gmail.com><48E22878.90402@op5.se> <302ce8b50810020906u2b16d02br5c0f71af9fd79403@mail.gmail.com> Message-ID: <12b9ec4207c979c65a0fc2cbab294086.squirrel@sm-14.netdork.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > Hi All > > How viable would it be to distribute/develop a plugin for NRPE which is > provided with the RT3/NAGIOS distribution and which logs a ticket directly > in the RT database when provided the necessary information by a nagios > server? It seems NRPE plus some plugin code could serve as decent > framework for an integration layer between RT and Nagios systems (which > are commonly found together in the same IT environments!). I don't think it'd have to be limited to NRPE to be honest. As long as you can build a script that can accept input to read/write something that RT can understand (be it direct to the DB, or if RT supports it via some interface), then it can be just a simple script. NRPE will just allow you to execute that same script on different servers, it's just a case of passing the arguments over. > It doesn't seem technically difficult, but the question is whether this > would be viable to maintain as part of future nagios distributions? I'm not sure. I guess a generic ticket generator would be feasible, just to provide an example of how to create the ticket. However, you can never be entirely sure on how somebody has their RT system setup. They might use different custom fields for stuff that the generic generator tries to use to remember the problem ID. - -- Jonathan Angliss > -----Original Message----- > From: Jim Perrin [mailto:jperrin at gmail.com] > Sent: Thu 10/2/2008 6:06 PM > To: Jon Angliss > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Integration with Request Tracker > > On Thu, Oct 2, 2008 at 4:26 AM, Jon Angliss wrote: > >> You might want to look at $SERVICEPROBLEMID$ and $HOSTPROBLEMID$ >> instead. And the $LAST...$ versions of both of those. Combining with >> an event handler, you can probably use a small table containing the RT >> ticket number, the host/service name, and the problem ID. You'd then >> feed the state, statetype, service, host, and the problem ID macros to >> the event handler, and you should then be home free :) > > Yes, event handlers were the plan all along but I lacked a simple > method to track an incident between nagios and RT reliably. Your > suggestion of problem id's looks very promising. This, combined with > nagios having its own queue within RT, and a few custom ticket fields > should do quite nicely. Thanks again! -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) - GPGshell v3.64 iEYEARECAAYFAkjmI5sACgkQK4PoFPj9H3NgvgCeKq/RE7aN0h0aQbIQ4fcucVsl gAQAoP4IxiL5jnYGgbkkj3t4xvZ+8KRx =GLtM -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 3 23:20:36 2008 From: marc at ena.com (Marc Powell) Date: Fri, 3 Oct 2008 16:20:36 -0500 Subject: After switching to Nagios 2.9, Nagios Checker always asking for credentials In-Reply-To: <2B90E837B30E394680C1C58A38487FFE423E07@ITS-EXMBX2.its.corp.gwl.com> References: <2B90E837B30E394680C1C58A38487FFE423E07@ITS-EXMBX2.its.corp.gwl.com> Message-ID: <5563A691-94EB-49F2-8309-B6D1C411982A@ena.com> On Oct 3, 2008, at 2:27 PM, Kustner, Tom wrote: > ? This has apparently been bugged at http://code.google.com/p/nagioschecker/issues/detail?id=56&colspec=Stars%20ID%20Type%20Status%20Priority%20Summary%20Opened%20Modified%20Closed > . However, this does not mean that the problem is ultimately in the > plug-in itself. Perhaps I need to configure things differently. > Does something need changing on the Nagios box itself? > If you can log into the nagios Web GUI without being re-prompted then the problem would lie with the way nagioschecker is (not) storing your credentials. Nagios itself doesn't have anything to do with the authentication, apache does. There might be something in apache's error log that could be a clue to the problem. I can't imagine how it could be anything else but a nagioschecker related problem since it _must_ send the auth information with every request. It appears to not be doing that or sending incorrect auth information that apache is rejecting. Is your NC configuration such that it's using the browser's password manager? If no, the plugin indicates that the auth information will be saved in Firefox's configuration files. Maybe it's incorrect there. Again, the apache logs will be helpful in showing what's being sent. I've just tested with FF 3.0.3, NC 0.13 and Nagios 2.7 with no problems. -- Marc ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bedougla at cisco.com Fri Oct 3 22:38:25 2008 From: bedougla at cisco.com (Ben Douglas (bedougla)) Date: Fri, 3 Oct 2008 16:38:25 -0400 Subject: Nagios cgi's bomb out with fatal: libglib-2.0.so.0 In-Reply-To: <48E6815F.9090400@networkmail.eu> References: <48E6815F.9090400@networkmail.eu> Message-ID: Not sure about SELinux issues. The path to the actual shared object looks okay: mpls-golden-stage:/users/bedougla> ls -l /usr/local/lib/libglib-2.0.so.0 lrwxrwxrwx 1 root other 35 Feb 7 2008 /usr/local/lib/libglib-2.0.so.0 -> ../depot/glib2/lib/libglib-2.0.so.0 mpls-golden-stage:/users/bedougla> ls -l /usr/local/depot/glib2/lib/libglib-2.0.so.0 lrwxrwxrwx 1 root other 24 Feb 8 2008 /usr/local/depot/glib2/lib/libglib-2.0.so.0 -> libglib-2.0.so.0.1200.13 mpls-golden-stage:/users/bedougla> ls -l /usr/local/depot/glib2/lib/libglib-2.0.so.0.1200.13 -rwxr-xr-x 1 root other 1756496 Mar 18 2008 /usr/local/depot/glib2/lib/libglib-2.0.so.0.1200.13 mpls-golden-stage:/users/bedougla> And as the user "nobody" I can see the files as well: $ ls -l /usr/local/lib/libglib-2.0.so.0 lrwxrwxrwx 1 root other 35 Feb 7 2008 /usr/local/lib/libglib-2.0.so.0 -> ../depot/glib2/lib/libglib-2.0.so.0 $ ls -l /usr/local/depot/glib2/lib/libglib-2.0.so.0 lrwxrwxrwx 1 root other 24 Feb 8 2008 /usr/local/depot/glib2/lib/libglib-2.0.so.0 -> libglib-2.0.so.0.1200.13 $ ls -l /usr/local/depot/glib2/lib/libglib-2.0.so.0.1200.13 -rwxr-xr-x 1 root other 1756496 Mar 18 2008 /usr/local/depot/glib2/lib/libglib-2.0.so.0.1200.13 $ Thanks, Ben -----Original Message----- From: Andy Shellam [mailto:andy-lists at networkmail.eu] Sent: Friday, October 03, 2008 4:33 PM To: Ben Douglas (bedougla) Cc: nagios-user Mailinglist Subject: Re: [Nagios-users] Nagios cgi's bomb out with fatal: libglib-2.0.so.0 Hi Ben, I've never used Solaris before, so this is just a quick stab in the dark - what are the permissions like on /usr/local/lib/libglib-2.0.so.0? I.e. can the user Apache is running as actually get to that file, from a permissions point-of-view? Also I know SELinux has caused numerous issues like this - does Solaris have something similar that may be interfering/preventing access? Andy Ben Douglas (bedougla) wrote: > Hello, > > I'm trying to install on Solaris 8 which has been hard enough ;) But > I finally got everything installed, but all my cgis are biting the > dust with the following in the apache error_log: > > ld.so.1: tac.cgi: fatal: libglib-2.0.so.0: open failed: No such file > or directory [Fri Oct 3 13:35:06 2008] [error] [client 10.98.14.21] > Premature end of script headers: /opt/local/nagios-3.0.3/sbin/tac.cgi > The ldd looks okay for these files and it looks like it *has* the > libglib-2.0.so.0 linked up correctly, but am at an impass with no clue > where to do. Any tips for anyone else who's encountered this / knows > how to fix it? > > bash-2.05b# ldd /opt/local/nagios/sbin/tac.cgi > librt.so.1 => /lib/librt.so.1 > libglib-2.0.so.0 => /usr/local/lib/libglib-2.0.so.0 > libintl.so.2 => /usr/local/lib/libintl.so.2 > libiconv.so.2 => /usr/local/lib/libiconv.so.2 > libc.so.1 => /lib/libc.so.1 > libaio.so.1 => /lib/libaio.so.1 > libgcc_s.so.1 => > /usr/cisco/packages/gcc/gcc-4.1.0/lib/libgcc_s.so.1 > libdl.so.1 => /lib/libdl.so.1 > /usr/platform/SUNW,Sun-Fire-V210/lib/libc_psr.so.1 > bash-2.05b# > Unfortunately the machine is behing a nice lab internal firewall, so > have had to compile most everything from scratch in order to get stuff > that Cisco didn't already have. > > Thanks, > Ben Douglas > > > > > > ---------------------------------------------------------------------- > -- > > ---------------------------------------------------------------------- > --- This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge Build the coolest Linux based applications with Moblin SDK & > win great prizes Grand prize is a trip for two to an Open Source event > anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > ---------------------------------------------------------------------- > -- > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 3 23:02:55 2008 From: marc at ena.com (Marc Powell) Date: Fri, 3 Oct 2008 16:02:55 -0500 Subject: Slow response from command remote call using SSH In-Reply-To: <91EDB00F83BAD443A9D05FA67623955A027C8086@QMAIL.corp.questar.com> References: <91EDB00F83BAD443A9D05FA67623955A027C8085@QMAIL.corp.questar.com> <91EDB00F83BAD443A9D05FA67623955A027C8086@QMAIL.corp.questar.com> Message-ID: <23BF46B5-82EA-43D3-9AF5-D2B7F998E10D@ena.com> On Oct 3, 2008, at 2:03 PM, Bret Goodfellow wrote: > > Multipath CRITICAL 10-01-2008 12:16:59 0d 1h > 0m 59s 3/3 CRITICAL ? Plugin timed out while executing system > call > > Wouldn't copy/paste have been easier? ;) Please don't send screenshots, especially screenshots of text content that would have been easier to read/quote/respond to as _text_. It's bad for readers, responders, the Digests and archives and usually considered bad form. If you must have screenshots, post them to a public location and provide a full link (no TinyURLs please). > > QUESTION: How do I set up ?nagios? so that it will wait up to 15 > seconds for the service to complete? Quoting from a response this morning (changing NRPE timeout) -- "- nagios overall service plugin execution timeout. This should be higher than your highest plugin specific timeout -- $ grep timeout etc/nagios.cfg service_check_timeout=15 - And the plugin that NRPE is executing on the remote host will have a default timeout value as well. Standard plugins support a -t parameter (like check_nrpe) but you can always run '/path/to/plugin --help' to see if it is a parameter and what it expects." In this case, the plugin isn't NRPE but the blurb about 'Standard plugins' applies. check_by_ssh is a standard plugin that has a configurable timeout value. You'll need to adjust your check_by_ssh definition's command_line to include the '-t 15' parameter. > Please keep in mind that this service, check_ssh_multipath, worked > fine prior to the upgrade to RHEL 4.7 Stored but I don't think I'll need it. I've saved it in the cells that'll be killed by the wine tonight so it has a short TTL. -- Marc - Did someone say it's EOB Friday? ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From isma.silv at gmail.com Sat Oct 4 02:34:55 2008 From: isma.silv at gmail.com (Ismael Silva) Date: Fri, 3 Oct 2008 20:34:55 -0400 Subject: Slow response from command remote call using SSH In-Reply-To: <91EDB00F83BAD443A9D05FA67623955A027C8086@QMAIL.corp.questar.com> References: <91EDB00F83BAD443A9D05FA67623955A027C8085@QMAIL.corp.questar.com> <91EDB00F83BAD443A9D05FA67623955A027C8086@QMAIL.corp.questar.com> Message-ID: <826270010810031734sbd262d4k71ab9385feebf8b@mail.gmail.com> why you no uses NRPE? the ssh session occuped too resources from you server.. (sorry for my english , i speak spanish) 2008/10/3 Bret Goodfellow > Hello there, > > > > I have just run into an issue with "multipath -ll" after upgrading to RHEL > 4 Update 7. Apparently, now running "multipath" takes up to 15 seconds to > get a response back. Before I updated the server in question to RHEL 4 > Update 7, the 'multipath' command responded immediately, therefore not > creating any timing issue with nagios. > > > > PROBLEM: my RHEL servers that have been updated to RHEL 4 Update 7, now > respond too slowly to the "multipath" command and will give the following > error in Nagios: > > > > Multipath CRITICAL 10-01-2008 12:16:59 0d 1h 0m > 59s 3/3 CRITICAL ? Plugin timed out while executing system call > > > > > > QUESTION: How do I set up 'nagios' so that it will wait up to 15 seconds > for the service to complete? > > > > NAGIOS SETUP: I have cut and pasted screenshots of the services and > commands in the Nagios setup: > > > > > > > > Please keep in mind that this service, check_ssh_multipath, worked fine > prior to the upgrade to RHEL 4.7 > > > > > > > > > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- ................................................................................. Saludos Ismael Silva C. +56 7 7682753 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.png Type: image/png Size: 81550 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.png Type: image/png Size: 73821 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 4993 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dermoth at aei.ca Sat Oct 4 05:10:27 2008 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Fri, 03 Oct 2008 23:10:27 -0400 Subject: Services get stuck in warning/critical state In-Reply-To: <48E5DDC0.50607@op5.se> References: <20081002112640.5f373a09.bartek@net-serwis.pl> <48E5DDC0.50607@op5.se> Message-ID: <48E6DEA3.5020506@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 03/10/08 04:54 AM, Andreas Ericsson wrote: > Bartlomiej Korupczynski wrote: >> Hello, >> >> I probably should also mention, that nagios host >> sometimes has quite high load (up to 2.0 on uniprocessor machine), as a >> result of monitoring scripts. Next thing is that monitoring host has big >> constant clock skew that I can't get rid of (time runs faster, ca. 5s for >> every 2 minutes, this gets corrected by ntpdate every 2 minutes). > > And this is almost certainly the problem. Are you running Nagios in a > vmware system? If yes, what happens when you move it out to its own hardware? > Nagios relies on a reasonably accurate system clock. One that jumps backwards > and forwards will cause problems. Hey Andreas... FYI I noticed the similar load thing (have no problem with the clock though)... Upon upgrading from 2.7 to 3.0.1-cvs (IIRC pretty much between the two releases) I had to adjust the load thresholds for that box as I had very high spikes. Everything keeps running smoothly, the number of process, cpu usage, check latency, check execution time and checks performed per minute graphs are nearly flat (1-minute average graphs), I/O wait and number of zombies stays very low. There's nothing else running besides Nagios and a minutely Cacti poller that was there years ago The server is a dual CPU (+ HT = 4-way), 2GB ram and fast SCSI RAID, running at ~ 43% cpu load with ~ 1280 active checks per minute. temp_path and check_result_path are on tmpfs filesystems. I attached a graph of the load average... - -- Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFI5t6j6dZ+Kt5BchYRAlavAKDNA1KBgHuHxW9cZ4JsNM0uLgbAAACfdOG6 cTZAhfA7Fv+cKqElq1CFWOg= =6Ggx -----END PGP SIGNATURE----- -------------- next part -------------- A non-text attachment was scrubbed... Name: nagios_load.png Type: image/png Size: 55679 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hvdkooij at vanderkooij.org Sat Oct 4 09:30:47 2008 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Sat, 04 Oct 2008 09:30:47 +0200 Subject: After switching to Nagios 2.9, Nagios Checker always asking for credentials In-Reply-To: <2B90E837B30E394680C1C58A38487FFE423E07@ITS-EXMBX2.its.corp.gwl.com> References: <2B90E837B30E394680C1C58A38487FFE423E07@ITS-EXMBX2.its.corp.gwl.com> Message-ID: <48E71BA7.9090600@vanderkooij.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Kustner, Tom wrote: > Disclaimer: I?m a Nagios user, not the administrator. > > ? Problem: When I was using the Nagios Checker version .13 against > our old Nagios 1.2 system, there were no problems. However, since > switching to a newer Nagios 2.9 system, Nagios is always asking for > credentials whenever it wants to check. If I have configured Nagios to > check five minutes, I am asked every five minutes for credentials. Remove the definition and set it up again. Nagios < 2 is handled differently. Hugo. - -- hvdkooij at vanderkooij.org http://hugo.vanderkooij.org/ PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc A: Yes. >Q: Are you sure? >>A: Because it reverses the logical flow of conversation. >>>Q: Why is top posting frowned upon? Bored? Click on http://spamornot.org/ and rate those images. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFI5xukBvzDRVjxmYERAsxrAJ424WzO0jpxhpBVTVemNSK82nOdxgCgiEEU xpLMfw9xPkuawqVHJGvEqUk= =8KHC -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dermoth at aei.ca Sun Oct 5 00:33:17 2008 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Sat, 04 Oct 2008 18:33:17 -0400 Subject: Full data logging? In-Reply-To: References: <48E78EB3.7090201@aei.ca> Message-ID: <48E7EF2D.4060102@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 04/10/08 01:26 PM, howard chen wrote: > Hello, > > On Sat, Oct 4, 2008 at 11:41 PM, Thomas Guyot-Sionnest wrote: >> No, you need another system for using that data. Usually it is passed to >> one of the many RRD-based graphing system available. Some of them are >> based on Nagios (NagiosGrapher, PNP) or you can usually integrate it >> with other tools like Cacti with some additional work. My method was to >> use a daemon reading the performance data pipe and caching data for a >> sort period, and a cacti script to read it back. see: >> http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2520.html;d=1 >> > > Thanks for your reply. > > Sure I can use system such as ganglia to do the logging and generate > the nice graphs. The reason I don't like is since I am using nagios > for monitoring anyway, I don't want to install another program on my > production server which monitor the same set or data, which cost > additional cpu cycles, I/O etc. > > So I am finding some more efficient, and easy to setup method to do the tasks. I'm not telling you to poll the same data twice, Nagios provides performance data for compatible plugins that can be passed to a graphing system. Since Nagios doesn't keep this data the additional cpu cycles, as you say, are necessary... BTW I don't think Ganglia is very well suitable, it's designed to spread across all hosts while in this case all data is already available by Nagios. If you want something simple and efficient a Nagios-based grapher is probably what you'll want. If all you care about is the historical data, you could also write a daemon to insert all that perf data into a database... but RRD databases are very fast and will likely scale better than a database. FYI the most efficient way to get perfdata is to point the host_perfdata_file and/or service_perfdata_file to a named pipe (fifo) and have a daemon continuously read from it. Nagios 3 even allow a (p)ipe mode for host/service_perfdata_file_mode that will avoid possible lockups when using a fifo as a normal file. - -- Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFI5+8s6dZ+Kt5BchYRApekAKCuQABYsLGRmVoIiDorUI0WCMWUawCffSsO 6zVR+coVn6fPPWINHaShlmI= =vRb+ -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Eliot.Picken at wenaas.co.uk Sun Oct 5 05:00:45 2008 From: Eliot.Picken at wenaas.co.uk (Eliot.Picken at wenaas.co.uk) Date: Sun, 5 Oct 2008 04:00:45 +0100 Subject: AUTO: Eliot Picken is out of the office (returning 09/10/2008) Message-ID: I am out of the office until 09/10/2008. I am currently out of the office, returning Thursday 9th October During this time my email and mobile will be checked occasionally. For urgent issues, please contact Andrew Fay on +44 (0) 1224 894 000 Best regards Eliot Note: This is an automated response to your message "Re: [Nagios-users] After switching to Nagios 2.9, Nagios Checker always asking for credentials" sent on 10/4/2008 8:30:47 AM. This is the only notification you will receive while this person is away. **************************************************************************************************************************************** Important Note:? This message contains confidential information which is intended to?be recevied by the addressee only.???We acknowledge that e-mail is not an entirely secure medium of communication and you should be aware of this when replying.? If you have received this email in error, please advise the sender?of this at the earliest opportunity.??We take all reasonable steps to ensure?this email is free from any malicious content, but cannot provide any guarantee that this is the case.? The company's ?email and internet traffic is also?monitored under the provisions of the Regulation of Investigatory Powers Act 2000. Wenaas UK Ltd is a limited company registered in Scotland, under company number 62062. Registered Office : Unit 1 Hareness Circle, Altens, Aberdeen, AB12 3LY, United Kingdom **************************************************************************************************************************************** -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jsalaz at meteostar.com Sun Oct 5 05:21:41 2008 From: jsalaz at meteostar.com (Jason Salaz) Date: Sat, 4 Oct 2008 21:21:41 -0600 Subject: Nagios 2 Results (via NSCA) to Nagios 3? Message-ID: <07DABC11-2F15-4A4B-AC03-EE1E6D4BDFEF@meteostar.com> Hello, I'm considering upgrading our core NAGIOS instance to 3(.0.3), but we have 4 other NAGIOS servers (a typical distributed setup) that all submit check results back to this core instance. While I intend to upgrade them too, that prospect is a little bit harder and will take a little bit more time. It will also be nearly impossible to "flip the switch" in order to upgrade them all at the same time. I haven't yet seen any reason for this to be a problem, but I've only read the "What's New" and upgrade changes/considerations. Would there be any reason why NAGIOS 2 processes, submitting check results back via NSCA to a NAGIOS 3 instance, would have any problems or incompatibilities? Thanks. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sun Oct 5 17:01:00 2008 From: marc at ena.com (Marc Powell) Date: Sun, 5 Oct 2008 10:01:00 -0500 Subject: Place the same service In-Reply-To: <001a01c923f1$c9c4d3e0$2df41c0a@tse.gov.br> References: <001a01c923f1$c9c4d3e0$2df41c0a@tse.gov.br> Message-ID: On Oct 1, 2008, at 1:16 PM, Leandro de Oliveira wrote: > Hi > > Is there a way to place the same service for multiple hosts ? http://nagios.sourceforge.net/docs/3_0/objecttricks.html#service -- Marc ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 5 21:42:51 2008 From: ae at op5.se (Andreas Ericsson) Date: Sun, 05 Oct 2008 21:42:51 +0200 Subject: Nagios 2 Results (via NSCA) to Nagios 3? In-Reply-To: <07DABC11-2F15-4A4B-AC03-EE1E6D4BDFEF@meteostar.com> References: <07DABC11-2F15-4A4B-AC03-EE1E6D4BDFEF@meteostar.com> Message-ID: <48E918BB.1070802@op5.se> Jason Salaz wrote: > Hello, > > I'm considering upgrading our core NAGIOS instance to 3(.0.3), but we > have 4 other NAGIOS servers (a typical distributed setup) that all > submit check results back to this core instance. > > While I intend to upgrade them too, that prospect is a little bit > harder and will take a little bit more time. It will also be nearly > impossible to "flip the switch" in order to upgrade them all at the > same time. > > I haven't yet seen any reason for this to be a problem, but I've only > read the "What's New" and upgrade changes/considerations. > > > Would there be any reason why NAGIOS 2 processes, submitting check > results back via NSCA to a NAGIOS 3 instance, would have any problems > or incompatibilities? > No. The format in which commands are submitted has not changed. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sarinyo at gmail.com Mon Oct 6 12:22:08 2008 From: sarinyo at gmail.com (Marc Torres) Date: Mon, 6 Oct 2008 12:22:08 +0200 Subject: Nagios not checking on time Message-ID: Hi all. I'm using Nagios v3.0 with NDO. My problem is that nagios isn't checking the services at the time it says it will (from NDO tables): +---------------+---------------------+---------------------+---------------------+ | current_state | display_name | next_check | last_check | +---------------+---------------------+---------------------+---------------------+ | 2 | CPU Load | 2008-10-06 10:00:00 | 2008-10-03 12:16:35 | | 2 | Drive Space C | 2008-10-06 10:00:00 | 2008-10-03 12:03:39 | | 0 | Explorer | 2008-10-06 10:00:00 | 1970-01-01 01:00:00 | | 0 | Memory Usage | 2008-10-06 10:00:00 | 1970-01-01 01:00:00 | | 0 | NSClient++ Version | 2008-10-06 10:00:00 | 1970-01-01 01:00:00 | | 0 | Registro de Sucesos | 2008-10-06 10:00:00 | 1970-01-01 01:00:00 | | 0 | Uptime | 2008-10-06 10:00:00 | 1970-01-01 01:00:00 | +---------------+---------------------+---------------------+---------------------+ but now it's 2008-10-06 12:10 and no checks where done at all on this services. I've to say that this host is down, but no where is written that the servcie check should not be made when nagios detects that the host is down (I've read de check_hosts and check_services docs). Am I missing something? Or this is normal behaviour? Cheers, Marc. PS: If you need more info for helping me (like host and services config) let me know. -- "I'm unique, just like everyone else". Read it out there -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From john.nagios at gmail.com Mon Oct 6 16:05:48 2008 From: john.nagios at gmail.com (Nagios User) Date: Mon, 6 Oct 2008 10:05:48 -0400 Subject: notify-html-email.sh Message-ID: Hello, I am trying to us the notify-html-email.sh mailscript on nagios 3.0.1 with no success. Does this work with Nagios 3.0.1? if you have any information please let me know. http://www.nagiosexchange.org/cgi-bin/page.cgi?g=2002.html;d=1 Thanks, -john ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rutski89 at gmail.com Mon Oct 6 16:23:57 2008 From: rutski89 at gmail.com (Patrick Rutkowski) Date: Mon, 6 Oct 2008 10:23:57 -0400 Subject: Time periods seem to be no-ops Message-ID: We've defined the following time period for use with a service which we know to be down between 9am and 10am every day: ========== BEGIN CODE SNIPPET ========== define timeperiod{ timeperiod_name do_not_notify_bw_9am_10am alias Every day and time, except 9am-10am sunday 00:00-8:59,10:01-24:00 monday 00:00-8:59,10:01-24:00 tuesday 00:00-8:59,10:01-24:00 wednesday 00:00-8:59,10:01-24:00 thursday 00:00-8:59,10:01-24:00 friday 00:00-8:59,10:01-24:00 saturday 00:00-8:59,10:01-24:00 } ========== END CODE SNIPPET ========== We then applied it to a service like so: ========== BEGIN CODE SNIPPET ========== define service { host_name our-special-host service_description Check status of MySQL reporting:3307 check_command check_mysql_service!16105 use generic-service notification_period do_not_notify_bw_9am_10am notification_interval 0 contact_groups company-admins } ========== END CODE SNIPPET ========== Oddly, the service continues to give us notifications during that time interval. We tried setting check_interval instead of notification_interval, but still no luck. We also tried setting both {notification,check}_interval, but again, no luck. To preempt the obvious question, yes, we did restart Nagios. Additionally, to ensure that the time period was indeed getting attached to the service, we used to GUI page to browse to "Configuration" -> "View Config" -> "Object Type: Services" and verified that the columns entitled "Check Period" and "Notification Period" had "do_not_notify_bw_9am_10am" instead of the usual "24x7". Despite all this, we're still getting warnings during this time interval. As a quick fix, we can use SCHEDULE_SVC_DOWNTIME with /var/lib/nagios2/rw/nagios.cmd, which does work; but it definitely doesn't feel like a permanent solution. -Patrick ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From myoung at nagios.org Mon Oct 6 16:54:42 2008 From: myoung at nagios.org (Mark Young) Date: Mon, 6 Oct 2008 09:54:42 -0500 Subject: 3-D Status Map not working In-Reply-To: <48E6AB38.1070808@rlknight.com> References: <48e52c18.5060509@rlknight.com> <2C0BB3F9548.0000095Dizz_abdullah@inbox.com> <21CBCCB7-F2DD-4391-A05A-4C64F4008470@nagios.org> <48E6482C.7060404@rlknight.com> <48E6AB38.1070808@rlknight.com> Message-ID: On Oct 3, 2008, at 6:31 PM, Rick Knight wrote: > The only config file I have that points to /usr/local/nagios/sbin is > the Apache2 config file for Nagios, nagios.conf. I've included it > below... > > ## Apache2 config file for Nagios This looks to be the standard sample config for apache which should not be a problem. > What is the next step in trouble shooting this problem? I believe the clear next step for you is to work on your configuration files. I would backup your configuration, stop nagios, install the sample config files ('make install-config' in the source directory), then start nagios. If that fixes the problem I'd look at the cgi.cfg and nagios.cfg as having some problem settings. If it does not work... It could be a number of things including the openvrml plugin you are using. A better tracing of the program and looking deeper into the logs might be required. The VRML components have largely been unmaintained for a long time. VRML technology never really took off. And sadly the 3D map is not as useful as you may hope. :( If you are looking to enhanced maps I would look at the great NagVis (http://www.nagvis.org/) project. If you are looking for more enhanced interactive mapping however, you may have to wait for something coming in the near future. ;) Mark Young ___ Nagios Enterprises, LLC Web: www.nagios.com ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From charlie.reddington at gmail.com Mon Oct 6 17:35:23 2008 From: charlie.reddington at gmail.com (Charlie Reddington) Date: Mon, 6 Oct 2008 10:35:23 -0500 Subject: check_by_ssh timeouts / how to work around? Message-ID: <47C22FE8-D8C6-4650-9E82-45B1D29C04B1@gmail.com> Hi, I have a couple machines that spit out a warning similar to this: WARNING - check_by_ssh: Remote command '/home/nagios/nagios-plugs/ check_disk' returned status 1 I believe this to be caused by the check itself is timing out. As when I try to login it will sometimes take up to a minute or two just to get a prompt. The server will respond to ping, so I'm generally not totally concerned about it. And the checks usually clear up in 5 minutes or soon as the server gets whatever IO hog out of the way. Is anyone else experiencing this, and if so how do you cope / deal with this? Thanks, Charlie ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From charlie.reddington at gmail.com Mon Oct 6 17:37:55 2008 From: charlie.reddington at gmail.com (Charlie Reddington) Date: Mon, 6 Oct 2008 10:37:55 -0500 Subject: check_by_ssh timeouts / how to work around? In-Reply-To: <47C22FE8-D8C6-4650-9E82-45B1D29C04B1@gmail.com> References: <47C22FE8-D8C6-4650-9E82-45B1D29C04B1@gmail.com> Message-ID: I should also mention that I also have these timeouts in place... service_check_timeout=90 host_check_timeout=30 event_handler_timeout=30 notification_timeout=60 ocsp_timeout=5 perfdata_timeout=5 Charlie On Oct 6, 2008, at 10:35 AM, Charlie Reddington wrote: > Hi, > > I have a couple machines that spit out a warning similar to this: > > WARNING - check_by_ssh: Remote command '/home/nagios/nagios-plugs/ > check_disk' returned status 1 > > I believe this to be caused by the check itself is timing out. As > when I try to login it will sometimes take up to a minute or two > just to get a prompt. > > The server will respond to ping, so I'm generally not totally > concerned about it. And the checks usually clear up in 5 minutes or > soon as the server gets whatever IO hog out of the way. > > Is anyone else experiencing this, and if so how do you cope / deal > with this? > > Thanks, > > Charlie ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From matt.rivet at secure-24.com Mon Oct 6 17:58:42 2008 From: matt.rivet at secure-24.com (Matt Rivet) Date: Mon, 6 Oct 2008 11:58:42 -0400 Subject: check_by_ssh timeouts / how to work around? In-Reply-To: <47C22FE8-D8C6-4650-9E82-45B1D29C04B1@gmail.com> References: <47C22FE8-D8C6-4650-9E82-45B1D29C04B1@gmail.com> Message-ID: <3A08B75200A4DF44B83752A09A93AFFB0131E6B9@ex1s24dca.S24.local> Are you using a LDAP server and RSA keys? -----Original Message----- From: Charlie Reddington [mailto:charlie.reddington at gmail.com] Sent: Monday, October 06, 2008 11:35 AM To: Nagios User list Subject: [Nagios-users] check_by_ssh timeouts / how to work around? Hi, I have a couple machines that spit out a warning similar to this: WARNING - check_by_ssh: Remote command '/home/nagios/nagios-plugs/ check_disk' returned status 1 I believe this to be caused by the check itself is timing out. As when I try to login it will sometimes take up to a minute or two just to get a prompt. The server will respond to ping, so I'm generally not totally concerned about it. And the checks usually clear up in 5 minutes or soon as the server gets whatever IO hog out of the way. Is anyone else experiencing this, and if so how do you cope / deal with this? Thanks, Charlie ------------------------------------------------------------------------ - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bjlockie at lockie.ca Mon Oct 6 18:03:50 2008 From: bjlockie at lockie.ca (James) Date: Mon, 6 Oct 2008 12:03:50 -0400 (EDT) Subject: check_by_ssh timeouts / how to work around? In-Reply-To: References: <47C22FE8-D8C6-4650-9E82-45B1D29C04B1@gmail.com> Message-ID: <0f18aae71ff25d634dc6e85125a7ded4.squirrel@www.lockie.ca> On Mon, October 6, 2008 11:37 am, Charlie Reddington wrote: > I should also mention that I also have these timeouts in place... > > > service_check_timeout=90 host_check_timeout=30 event_handler_timeout=30 > notification_timeout=60 ocsp_timeout=5 perfdata_timeout=5 > > Charlie > > > On Oct 6, 2008, at 10:35 AM, Charlie Reddington wrote: > > >> Hi, >> >> >> I have a couple machines that spit out a warning similar to this: >> >> >> WARNING - check_by_ssh: Remote command '/home/nagios/nagios-plugs/ >> check_disk' returned status 1 >> >> I believe this to be caused by the check itself is timing out. As >> when I try to login it will sometimes take up to a minute or two just to >> get a prompt. >> >> The server will respond to ping, so I'm generally not totally >> concerned about it. And the checks usually clear up in 5 minutes or soon >> as the server gets whatever IO hog out of the way. >> >> Is anyone else experiencing this, and if so how do you cope / deal >> with this? >> >> Thanks, >> >> >> Charlie The timeouts in nagios.cfg are ow long the nagios process waits before aborting a check. There are usually check specific timeouts that you can add to the command definition. Run the check_* command manually and see what the syntax is (sometimes '-t xx'). ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From charlie.reddington at gmail.com Mon Oct 6 18:17:16 2008 From: charlie.reddington at gmail.com (Charlie Reddington) Date: Mon, 6 Oct 2008 11:17:16 -0500 Subject: check_by_ssh timeouts / how to work around? In-Reply-To: <3A08B75200A4DF44B83752A09A93AFFB0131E6B9@ex1s24dca.S24.local> References: <47C22FE8-D8C6-4650-9E82-45B1D29C04B1@gmail.com> <3A08B75200A4DF44B83752A09A93AFFB0131E6B9@ex1s24dca.S24.local> Message-ID: <5AAAE0F7-C6D7-4801-A64C-324DDDD5F888@gmail.com> Sorry, forgot the mail list.... I'm using no ldap, but with DSA keys. On Oct 6, 2008, at 10:58 AM, Matt Rivet wrote: > Are you using a LDAP server and RSA keys? > > -----Original Message----- > From: Charlie Reddington [mailto:charlie.reddington at gmail.com] > Sent: Monday, October 06, 2008 11:35 AM > To: Nagios User list > Subject: [Nagios-users] check_by_ssh timeouts / how to work around? > > Hi, > > I have a couple machines that spit out a warning similar to this: > > WARNING - check_by_ssh: Remote command '/home/nagios/nagios-plugs/ > check_disk' returned status 1 > > I believe this to be caused by the check itself is timing out. As when > I try to login it will sometimes take up to a minute or two just to > get a prompt. > > The server will respond to ping, so I'm generally not totally > concerned about it. And the checks usually clear up in 5 minutes or > soon as the server gets whatever IO hog out of the way. > > Is anyone else experiencing this, and if so how do you cope / deal > with this? > > Thanks, > > Charlie > > ------------------------------------------------------------------------ > - > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From charlie.reddington at gmail.com Mon Oct 6 18:18:22 2008 From: charlie.reddington at gmail.com (Charlie Reddington) Date: Mon, 6 Oct 2008 11:18:22 -0500 Subject: check_by_ssh timeouts / how to work around? In-Reply-To: <0f18aae71ff25d634dc6e85125a7ded4.squirrel@www.lockie.ca> References: <47C22FE8-D8C6-4650-9E82-45B1D29C04B1@gmail.com> <0f18aae71ff25d634dc6e85125a7ded4.squirrel@www.lockie.ca> Message-ID: <31B89101-D6BE-43CC-B389-208AE2E3582F@gmail.com> On Oct 6, 2008, at 11:03 AM, James wrote: > On Mon, October 6, 2008 11:37 am, Charlie Reddington wrote: >> I should also mention that I also have these timeouts in place... >> >> >> service_check_timeout=90 host_check_timeout=30 >> event_handler_timeout=30 >> notification_timeout=60 ocsp_timeout=5 perfdata_timeout=5 >> >> Charlie >> >> >> On Oct 6, 2008, at 10:35 AM, Charlie Reddington wrote: >> >> >>> Hi, >>> >>> >>> I have a couple machines that spit out a warning similar to this: >>> >>> >>> WARNING - check_by_ssh: Remote command '/home/nagios/nagios-plugs/ >>> check_disk' returned status 1 >>> >>> I believe this to be caused by the check itself is timing out. As >>> when I try to login it will sometimes take up to a minute or two >>> just to >>> get a prompt. >>> >>> The server will respond to ping, so I'm generally not totally >>> concerned about it. And the checks usually clear up in 5 minutes >>> or soon >>> as the server gets whatever IO hog out of the way. >>> >>> Is anyone else experiencing this, and if so how do you cope / deal >>> with this? >>> >>> Thanks, >>> >>> >>> Charlie > > The timeouts in nagios.cfg are ow long the nagios process waits before > aborting a check. > There are usually check specific timeouts that you can add to the > command > definition. > Run the check_* command manually and see what the syntax is > (sometimes '-t > xx'). > I thought I had did that already , and just put the --timeout option on the check_by_ssh, but I guess not. I added the timeout, from 30 to 60. We'll see how it goes. Charlie ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marcelo.maia.garcia at googlemail.com Mon Oct 6 18:41:44 2008 From: marcelo.maia.garcia at googlemail.com (Marcelo M. Garcia) Date: Mon, 06 Oct 2008 17:41:44 +0100 Subject: nrpe: plugins on remove host? Message-ID: <48EA3FC8.9060802@googlemail.com> Hi To monitor a remove host using nagios-plugins and nrpe, do I need to have nagios and plugins or just plugins on the remote host? Thanks Marcelo ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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-lists at networkmail.eu Mon Oct 6 20:26:19 2008 From: andy-lists at networkmail.eu (Andy Shellam) Date: Mon, 06 Oct 2008 19:26:19 +0100 Subject: nrpe: plugins on remove host? In-Reply-To: <48EA3FC8.9060802@googlemail.com> References: <48EA3FC8.9060802@googlemail.com> Message-ID: <48EA584B.7070402@networkmail.eu> Hi Marcelo, To monitor a remote host, you need the check_nrpe plugin on the Nagios server (this is built as part of the NRPE package) and on each remote host you need the NRPE server and the plugins. On a side-note, you also need OpenSSL if you want the channel between Nagios and the remote hosts to be encrypted. Andy Marcelo M. Garcia wrote: > Hi > > To monitor a remove host using nagios-plugins and nrpe, do I need to > have nagios and plugins or just plugins on the remote host? > > Thanks > > Marcelo > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kelly.terry.jones at gmail.com Mon Oct 6 21:29:46 2008 From: kelly.terry.jones at gmail.com (Kelly Jones) Date: Mon, 6 Oct 2008 12:29:46 -0700 Subject: Simulating downtime in nagios Message-ID: <26face530810061229j9e887b1ie8b2543e2f86ed2a@mail.gmail.com> What's the best way to simulate (not schedule) downtime in nagios? I want to "pretend" a service is down for a certain amount of time to see what alerts nagios sends, etc. I've come up w/ two bad ways to do this: % Edit the config file to change the test to "check_dummy". I want to run these "fire drills" via cron, and editing a file and restarting nagios seems a little ugly. % Submit a passive check saying the service is down, and reschedule the next check 4 hours later, so the service is 'down' for 4 hours. This can be done using the nagios named pipe, so it's easy to cron. Problem: doing things this way suppresses the alerts (when you don't test a service, it doesn't send an alert). Thoughts? -- We're just a Bunch Of Regular Guys, a collective group that's trying to understand and assimilate technology. We feel that resistance to new ideas and technology is unwise and ultimately futile. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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-lists at networkmail.eu Mon Oct 6 22:06:28 2008 From: andy-lists at networkmail.eu (Andy Shellam) Date: Mon, 06 Oct 2008 21:06:28 +0100 Subject: Simulating downtime in nagios In-Reply-To: <26face530810061229j9e887b1ie8b2543e2f86ed2a@mail.gmail.com> References: <26face530810061229j9e887b1ie8b2543e2f86ed2a@mail.gmail.com> Message-ID: <48EA6FC4.7070602@networkmail.eu> Hi Kelly, When I've done this in the past, for network services (e.g. http/smtp checks) I've actually blocked the target port on the Nagios server, which gives a better simulation that the service is down (e.g. for HTTP checks, block the Nagios server's outbound port 80.) This works for us because as well as the router firewalls, each server runs a local software firewall, so it's easy to block outbound packets to a particular port on the Nagios server without affecting the service itself, simulating the effect of a network/service failure. However when it comes to checks such as disk space, it can be a bit trickier! I've done things like changing the thresholds for a failure (e.g. if disk space is currently 15% capacity, I set my warning alert to be 20%, restart Nagios and wait for the alerts to come, and the same for critical, then reset back to 90% when complete) and I have done before as you suggested, change the service's check and retry intervals in Nagios to be something lengthy (e.g. an hour) then submit a passive 'failure' check result and wait until Nagios re-checks the service - this method also checks how Nagios alerts you when the service returns to OK. Hope this helps, it'd be interesting to hear how/if others do it! Andy Kelly Jones wrote: > What's the best way to simulate (not schedule) downtime in nagios? > > I want to "pretend" a service is down for a certain amount of time to > see what alerts nagios sends, etc. > > I've come up w/ two bad ways to do this: > > % Edit the config file to change the test to "check_dummy". I want to > run these "fire drills" via cron, and editing a file and restarting > nagios seems a little ugly. > > % Submit a passive check saying the service is down, and reschedule > the next check 4 hours later, so the service is 'down' for 4 > hours. This can be done using the nagios named pipe, so it's easy to > cron. Problem: doing things this way suppresses the alerts (when you > don't test a service, it doesn't send an alert). > > Thoughts? > > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hvdkooij at vanderkooij.org Mon Oct 6 23:31:14 2008 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Mon, 06 Oct 2008 23:31:14 +0200 Subject: Simulating downtime in nagios In-Reply-To: <26face530810061229j9e887b1ie8b2543e2f86ed2a@mail.gmail.com> References: <26face530810061229j9e887b1ie8b2543e2f86ed2a@mail.gmail.com> Message-ID: <48EA83A2.5080900@vanderkooij.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Kelly Jones wrote: > What's the best way to simulate (not schedule) downtime in nagios? Why do you care to do this in a live environment? I think you should considere these point: 1. Duplicate your production environment (nagios server) into a test environment and play all you want. 2. Tell us what you suspect is not working and what you think this simulation will tell you to solve it. Hugo. - -- hvdkooij at vanderkooij.org http://hugo.vanderkooij.org/ PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc A: Yes. >Q: Are you sure? >>A: Because it reverses the logical flow of conversation. >>>Q: Why is top posting frowned upon? Bored? Click on http://spamornot.org/ and rate those images. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFI6oOgBvzDRVjxmYERAoNkAJ9HHarh6umEg5XrZxwEvTRk3twQaACgg2bD 821LCtG8/mhddhBuqo1vipE= =7YF2 -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From throck at gmail.com Tue Oct 7 04:17:08 2008 From: throck at gmail.com (Tom Throckmorton) Date: Mon, 6 Oct 2008 22:17:08 -0400 Subject: Simulating downtime in nagios In-Reply-To: <26face530810061857t56088cb8q7976a3c324e34759@mail.gmail.com> References: <26face530810061229j9e887b1ie8b2543e2f86ed2a@mail.gmail.com> <20081007014711.GA629@gmail.com> <26face530810061857t56088cb8q7976a3c324e34759@mail.gmail.com> Message-ID: <20081007021706.GA2581@gmail.com> On Oct 06 18:57, Kelly Jones wrote: > Thanks, Tom. > > Yes, I'm trying to simulate a host/service outage, not scheduled downtime. > > The problem w/ submitting a passive check is that the next ACTIVE check will > invalidate it. Example: you tell nagios that machine foo is down. That's soft > alert 1, not enough to generate any emails. Nagios then active checks foo and > sees that it's up. Of course, you can submit another passive check, but > you'll ping-pong (flap) between up and down states. OK, so it sounds like you want to be able to have Nagios temporarily stop managing the service check scheduling for this service, long enough for you to inject some bogus results. Seems like rescheduling the next active check (SCHEDULE_FORCED_SVC_CHECK) would do the right thing as far as pushing the next scheduled check into the future. Or maybe you want to disable active checks for the service (DISABLE_SVC_CHECK), run your simulation, and then re-enable them...? -tt ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kelly.terry.jones at gmail.com Tue Oct 7 03:57:06 2008 From: kelly.terry.jones at gmail.com (Kelly Jones) Date: Mon, 6 Oct 2008 18:57:06 -0700 Subject: Simulating downtime in nagios In-Reply-To: <20081007014711.GA629@gmail.com> References: <26face530810061229j9e887b1ie8b2543e2f86ed2a@mail.gmail.com> <20081007014711.GA629@gmail.com> Message-ID: <26face530810061857t56088cb8q7976a3c324e34759@mail.gmail.com> Thanks, Tom. Yes, I'm trying to simulate a host/service outage, not scheduled downtime. The problem w/ submitting a passive check is that the next ACTIVE check will invalidate it. Example: you tell nagios that machine foo is down. That's soft alert 1, not enough to generate any emails. Nagios then active checks foo and sees that it's up. Of course, you can submit another passive check, but you'll ping-pong (flap) between up and down states. -- We're just a Bunch Of Regular Guys, a collective group that's trying to understand and assimilate technology. We feel that resistance to new ideas and technology is unwise and ultimately futile. On 10/6/08, Tom Throckmorton wrote: > On Oct 06 12:29, Kelly Jones wrote: >> What's the best way to simulate (not schedule) downtime in nagios? >> >> I want to "pretend" a service is down for a certain amount of time to >> see what alerts nagios sends, etc. > > Just to clarify, are you trying to simulate a service outage (as opposed to > simulating a scheduled downtime) so you can test alerts, and perhaps > notifications, in order to validate your configuration? > >> I've come up w/ two bad ways to do this: >> >> % Edit the config file to change the test to "check_dummy". I want to >> run these "fire drills" via cron, and editing a file and restarting >> nagios seems a little ugly. >> >> % Submit a passive check saying the service is down, and reschedule >> the next check 4 hours later, so the service is 'down' for 4 >> hours. This can be done using the nagios named pipe, so it's easy to >> cron. Problem: doing things this way suppresses the alerts (when you >> don't test a service, it doesn't send an alert). >> >> Thoughts? > > I use something similar to the second method to do ad hoc validation of > alerts/notifications, by submitting passive results via an external command, > though without diddling the service check scheduling. I'm a little confused > by > your last statement though... > > If you're only submitting a single passive check and then rescheduling the > next > check, of course there will be no alerts (and you'll likely never reach > $max_check_attempts) - is there some reason you can't submit multiple > passive > check results? > > -tt ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From throck at gmail.com Tue Oct 7 03:47:11 2008 From: throck at gmail.com (Tom Throckmorton) Date: Mon, 6 Oct 2008 21:47:11 -0400 Subject: Simulating downtime in nagios In-Reply-To: <26face530810061229j9e887b1ie8b2543e2f86ed2a@mail.gmail.com> References: <26face530810061229j9e887b1ie8b2543e2f86ed2a@mail.gmail.com> Message-ID: <20081007014711.GA629@gmail.com> On Oct 06 12:29, Kelly Jones wrote: > What's the best way to simulate (not schedule) downtime in nagios? > > I want to "pretend" a service is down for a certain amount of time to > see what alerts nagios sends, etc. Just to clarify, are you trying to simulate a service outage (as opposed to simulating a scheduled downtime) so you can test alerts, and perhaps notifications, in order to validate your configuration? > I've come up w/ two bad ways to do this: > > % Edit the config file to change the test to "check_dummy". I want to > run these "fire drills" via cron, and editing a file and restarting > nagios seems a little ugly. > > % Submit a passive check saying the service is down, and reschedule > the next check 4 hours later, so the service is 'down' for 4 > hours. This can be done using the nagios named pipe, so it's easy to > cron. Problem: doing things this way suppresses the alerts (when you > don't test a service, it doesn't send an alert). > > Thoughts? I use something similar to the second method to do ad hoc validation of alerts/notifications, by submitting passive results via an external command, though without diddling the service check scheduling. I'm a little confused by your last statement though... If you're only submitting a single passive check and then rescheduling the next check, of course there will be no alerts (and you'll likely never reach $max_check_attempts) - is there some reason you can't submit multiple passive check results? -tt ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 7 06:47:20 2008 From: ae at op5.se (Andreas Ericsson) Date: Tue, 07 Oct 2008 06:47:20 +0200 Subject: Time periods seem to be no-ops In-Reply-To: References: Message-ID: <48EAE9D8.9050009@op5.se> Patrick Rutkowski wrote: > We've defined the following time period for use with a service which we > know to be down between 9am and 10am every day: > > ========== BEGIN CODE SNIPPET ========== > define timeperiod{ > timeperiod_name do_not_notify_bw_9am_10am > alias Every day and time, except 9am-10am > sunday 00:00-8:59,10:01-24:00 > monday 00:00-8:59,10:01-24:00 > tuesday 00:00-8:59,10:01-24:00 > wednesday 00:00-8:59,10:01-24:00 > thursday 00:00-8:59,10:01-24:00 > friday 00:00-8:59,10:01-24:00 > saturday 00:00-8:59,10:01-24:00 > } > ========== END CODE SNIPPET ========== > > We then applied it to a service like so: > > ========== BEGIN CODE SNIPPET ========== > define service { > host_name our-special-host > service_description Check status of MySQL > reporting:3307 > check_command check_mysql_service!16105 > use generic-service > notification_period do_not_notify_bw_9am_10am > notification_interval 0 > contact_groups company-admins > } > ========== END CODE SNIPPET ========== > > Oddly, the service continues to give us notifications during that time > interval. We tried setting check_interval instead of > notification_interval, but still no luck. We also tried setting both > {notification,check}_interval, but again, no luck. > > To preempt the obvious question, yes, we did restart > Nagios. Additionally, to ensure that the time period was indeed > getting attached to the service, we used to GUI page to browse to > "Configuration" -> "View Config" -> "Object Type: Services" and > verified that the columns entitled "Check Period" and "Notification > Period" had "do_not_notify_bw_9am_10am" instead of the usual "24x7". > > Despite all this, we're still getting warnings during this time > interval. > I take it the system clock on the Nagios server is running correctly? > As a quick fix, we can use SCHEDULE_SVC_DOWNTIME with > /var/lib/nagios2/rw/nagios.cmd, which does work; but it definitely > doesn't feel like a permanent solution. > Make sure you don't have multiple nagios instances running. Timeperiods clearly work, or hundreds of thousands of people would have complained on a daily basis. Something else must be going wrong, but I can't for the life of me think of what. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From scarolan at gmail.com Tue Oct 7 15:55:25 2008 From: scarolan at gmail.com (Sean Carolan) Date: Tue, 7 Oct 2008 08:55:25 -0500 Subject: oracle_check plugin not working Message-ID: <277020fc0810070655o7d2a0adcq3b2328340760a032@mail.gmail.com> I'd like to use the oracle_check plugin to monitor Oracle on a remote host. I have installed the basic client and sqlplus but get this error when trying to run the plugin: ./check_oracle: line 133: tnsping: command not found Where can I get the tnsping utility without having do do a full-blown oracle installation on my monitoring server? I'd really rather not have to run this over ssh or with NRPE. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mwlucas at blackhelicopters.org Tue Oct 7 18:37:08 2008 From: mwlucas at blackhelicopters.org (Michael W. Lucas) Date: Tue, 7 Oct 2008 12:37:08 -0400 Subject: pnp error: *** CRITICAL Timeout after 5 Sec. **** Message-ID: <20081007163708.GA57142@bewilderbeast.blackhelicopters.org> Hi, I've searched on this problem, and haven't found anyone else experiencing it in any mailing list archive or forum. What could be causing these timeouts, and how badly are they harming my data? Details: I have PNP installed and almost working with NPCD on FreeBSD 7.0/amd64, with nagios 3.0.2. Nagios gathers perfdata and puts it in the perfcache. process_perfdata frequently runs, and puts data into RRDs. The process_perfdata.pl debugging log shows all sorts of successful updates, but then I get an entry like this: 2008-10-07 12:15:39 [62022] No Custom Template found for check_dcerpc (/usr/local/etc/pnp//check_commands/check_dcerpc.cfg) 2008-10-07 12:15:39 [62022] RRD Datatype is GAUGE 2008-10-07 12:15:39 [62022] Template is check_dcerpc.php 2008-10-07 12:15:39 [62022] data2rrd called 2008-10-07 12:15:39 [62022] RRDs::update /var/spool/nagios/pnp/rrd/viper025.am.local/Windows_DCERPC.rrd 1223396130:0.002143 2008-10-07 12:15:39 [62022] *** CRITICAL Timeout after 5 Sec. **** When this occurs a perfdata file remains, such as: service-perfdata.1223396254-PID-88114 This file is not deleted. Once NPCD thinks it's done, it processes these files again renames it to: service-perfdata.1223396194-PID-87765-PID-90732 If I let NPCD run, it eventually processes and removes all of these files. If these errors cause occasional blank spots in my graphs, that's OK; I can live with that while I investigate the timeouts. If they will cause obviously incorrect or misleading graphs, that's more serious and requires that I shut down user access to PNP until I debug it. (No data is better than wrong data!) Any thoughts, folks? Thanks, ==ml -- Michael W. Lucas mwlucas at BlackHelicopters.org, mwlucas at FreeBSD.org http://www.BlackHelicopters.org/~mwlucas/ "My pessimism extends to the point of even suspecting the sincerity of the pessimists." -- Jean Rostand, French biologist and philosopher ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pitchfork at ederdrom.de Tue Oct 7 19:30:16 2008 From: pitchfork at ederdrom.de (Joerg Linge) Date: Tue, 07 Oct 2008 19:30:16 +0200 Subject: pnp error: *** CRITICAL Timeout after 5 Sec. **** In-Reply-To: <20081007163708.GA57142@bewilderbeast.blackhelicopters.org> References: <20081007163708.GA57142@bewilderbeast.blackhelicopters.org> Message-ID: <48EB9CA8.6000704@ederdrom.de> Michael W. Lucas schrieb: > Hi, Hi Michael, > I've searched on this problem, and haven't found anyone else > experiencing it in any mailing list archive or forum. The best place to get support is the pnp4nagios-users Mailinglist or the Forums on www.nagios-portal.org > What could be > causing these timeouts, and how badly are they harming my data? > > Details: > > I have PNP installed and almost working with NPCD on FreeBSD > 7.0/amd64, with nagios 3.0.2. Nagios gathers perfdata and puts it in > the perfcache. process_perfdata frequently runs, and puts data into > RRDs. The process_perfdata.pl debugging log shows all sorts of > successful updates, but then I get an entry like this: The current PNP Version is PNP-0.4.11. Which Version do you use? Also some more informations about you Nagios installtion will be useful. Like number of Host/Service checks per minute. > 2008-10-07 12:15:39 [62022] No Custom Template found for check_dcerpc (/usr/local/etc/pnp//check_commands/check_dcerpc.cfg) > 2008-10-07 12:15:39 [62022] RRD Datatype is GAUGE > 2008-10-07 12:15:39 [62022] Template is check_dcerpc.php > 2008-10-07 12:15:39 [62022] data2rrd called > 2008-10-07 12:15:39 [62022] RRDs::update /var/spool/nagios/pnp/rrd/viper025.am.local/Windows_DCERPC.rrd 1223396130:0.002143 > 2008-10-07 12:15:39 [62022] *** CRITICAL Timeout after 5 Sec. **** > > When this occurs a perfdata file remains, such as: > > service-perfdata.1223396254-PID-88114 You can adjust the timeout in etc/pnp/process_perfdata.cfg > This file is not deleted. Once NPCD thinks it's done, it processes > these files again renames it to: > > service-perfdata.1223396194-PID-87765-PID-90732 > > If I let NPCD run, it eventually processes and removes all of these > files. > > If these errors cause occasional blank spots in my graphs, that's OK; > I can live with that while I investigate the timeouts. If they will > cause obviously incorrect or misleading graphs, that's more serious > and requires that I shut down user access to PNP until I debug it. > (No data is better than wrong data!) Thats changed in PNP-0.4.11 Regards Joerg ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tim at thepushors.com Tue Oct 7 19:26:42 2008 From: tim at thepushors.com (Tim Pushor) Date: Tue, 07 Oct 2008 11:26:42 -0600 Subject: Alarming on coredumps on Linux? Message-ID: <48EB9BD2.4010801@thepushors.com> Hello everyone, While not specifically a nagios issue, I am setting up a nagios installation to monitor a server that is used to run an interactive application by several users at once (> 50). The problem is, occasionally the application dumps core, and the users don't always notify us when this happens. We'd like to trigger a passive alarm to nagios on our application dumping core. On other OS's (specifically FreeBSD IIRC) the kernel logs coredumps and end up in the system log so watching the logfiles with swatch or something similar would do the trick. On my Linux system (CentOS 5.2) it appears that coredumps don't log. Does anyone have any ideas how I can trigger an event on coredump on Linux? Thanks, Tim (Just for clarification - I am not looking for a plugin - I am looking for a method to detect coredumps on Linux so I can write a plugin or preferably a swatch configuration) ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kelly.terry.jones at gmail.com Wed Oct 8 05:30:28 2008 From: kelly.terry.jones at gmail.com (Kelly Jones) Date: Tue, 7 Oct 2008 20:30:28 -0700 Subject: Simulating downtime in nagios In-Reply-To: <20081007021706.GA2581@gmail.com> References: <26face530810061229j9e887b1ie8b2543e2f86ed2a@mail.gmail.com> <20081007014711.GA629@gmail.com> <26face530810061857t56088cb8q7976a3c324e34759@mail.gmail.com> <20081007021706.GA2581@gmail.com> Message-ID: <26face530810072030o377b6635l76f049fec85ebd5c@mail.gmail.com> On 10/6/08, Tom Throckmorton wrote: > On Oct 06 18:57, Kelly Jones wrote: >> Thanks, Tom. >> >> Yes, I'm trying to simulate a host/service outage, not scheduled downtime. >> >> The problem w/ submitting a passive check is that the next ACTIVE check >> will >> invalidate it. Example: you tell nagios that machine foo is down. That's >> soft >> alert 1, not enough to generate any emails. Nagios then active checks foo >> and >> sees that it's up. Of course, you can submit another passive check, but >> you'll ping-pong (flap) between up and down states. > > OK, so it sounds like you want to be able to have Nagios temporarily stop > managing the service check scheduling for this service, long enough for you > to > inject some bogus results. Seems like rescheduling the next active check > (SCHEDULE_FORCED_SVC_CHECK) would do the right thing as far as pushing the > next > scheduled check into the future. Or maybe you want to disable active checks > for the service (DISABLE_SVC_CHECK), run your simulation, and then re-enable > them...? I may've done it wrong, but SCHEDULE_FORCED_SVC_CHECK means that nagios won't send any alerts at all. Basically, messing with nagios' check schedule also screws up its notification schedule. And, since I'm testing notifications, that's not useful. I've written several nagios tests myself, and they're all in one Perl program (each subroutine = one test). For these, simulating downtime is easy. The script reads downtime from a file and automatically exits w/ 1 or 2 during downtime instead of running the subroutine. I'm tempted to run ALL nagios tests in a wrapper, but that seems so ugly for such a simple? problem. -- We're just a Bunch Of Regular Guys, a collective group that's trying to understand and assimilate technology. We feel that resistance to new ideas and technology is unwise and ultimately futile. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From harald at webmeisterei.com Tue Oct 7 22:34:15 2008 From: harald at webmeisterei.com (Harald Friessnegger) Date: Tue, 07 Oct 2008 22:34:15 +0200 Subject: how to setup nagiosgrapher correctly Message-ID: hi nagios users i'm having problems getting nagiosgrapher to work with my Nagios Version 3.0.2 on my debian etch box. the graphs are not shown. instead i get an image with the following error message:: ? RRD Error: No DS called ?mailq? in ?...nagios/var/rdd//2514.rrd? ? Options: ? ? -cBACK#ffffff ? ... ? Values: ? ? DEF:mailq=...nagios/var/rdd//2514.rrd:mailq:AVERAGE ? ... in ngraph.log i can see that the servicedata can't be extracted correctly: ? 2008-10-05 14:17:53 collect2.pl: Got signal: Use of uninitialized value in regexp compilation at /usr/local/nagios/contrib/perl/NagiosGrapher.pm line 780, line 1. ? ... ? 2008-10-05 14:17:53 PRG: error, Inappropriate ioctl for device ? 2008-10-05 14:17:53 collect2.pl: Got signal: Use of uninitialized value in substitution (s///) at /usr/local/nagios/contrib/collect2.pl line 383, line 1. looks like the ?service_name variable is not set so the regex can't be compiled. (this is line 780 in NagiosGrapher.pm):: ? @out = grep $service =~ m/$_->{service_name}/i, @out ? ? if ( defined($service) ); any hints what's wrong with my setup? i'd also appreciate any hint on how to use a self-compiled version of rrdtool (eg under /opt/rddtool/bin/rrdtool) since ngrapher should be used with the most recent version available (1.3.4) and my systems version is 1.2.15. i tried "rddtool /opt/rrdtool-1.3.4/bin/rrdtool" in ngraph.ncfg. but i guess this should be defined when calling autoconf or configure in step 2 below so the correct binary is used in rrd2-graph.cgi here are the steps i followed for setting up ngrapher: 1) download NagiosGrapher-1.6.1-rc5-0.5.tar.gz from https://www.nagiosforge.org/gf/project/nagiosgrapher/ 2) untar and follow doc/INSTALL (autoconf, configure, make testdeps, make install) 3) added cfg_dir=/usr/local/nagios/etc/serviceext to nagios.cfg since i want a separate config file for each host (Serviceexttype, MULTIPLE) 4) changed the following variables in nagios.cfg:: ? process_performance_data=1 ? service_perfdata_command=process-service-perfdata and added the new command to etc/objects/commands.cfg:: ? define command{ ? ? command_name process-service-perfdata ? ? command_line /usr/local/nagios/contrib/fifo_write /usr/local/nagios/var/rw/ngraph.pipe '$HOSTNAME$\t$SERVICEDESC$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$\n' 3 ? } 5) uncomment out step ?and set it to 300 in ngraph.ncfg (suggested in http://www.nagios-portal.org/wbb/index.php?page=Thread&threadID=9523 at the bottom) 6) start nagios_grapher and restart nagios. i can see that ngrapher starts to collect data, and hands it over to rrd in `/usr/local/nagios/var/ngraph.log` ngrapher also writes serviceextensions for my hosts to /usr/local/nagios/etc/serviceext/ and there is data for each host in /usr/local/nagios/var/rrd/ 7) restarting nagios to make the graph icons appear in the webinterface regards, fRiSi -- Webmeisterei GmbH - B?ro f?r Netzfragen Tel: +43 5572 908877, Fax: +43 5572 908877-66 Schmelzh?tterstra?e 26a, A-6850 Dornbirn http://www.webmeisterei.com ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dermoth at aei.ca Wed Oct 8 09:41:30 2008 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Wed, 08 Oct 2008 03:41:30 -0400 Subject: Alarming on coredumps on Linux? In-Reply-To: <48EB9BD2.4010801@thepushors.com> References: <48EB9BD2.4010801@thepushors.com> Message-ID: <48EC642A.1050300@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 07/10/08 01:26 PM, Tim Pushor wrote: > Hello everyone, > > While not specifically a nagios issue, I am setting up a nagios > installation to monitor a server that is used to run an interactive > application by several users at once (> 50). The problem is, > occasionally the application dumps core, and the users don't always > notify us when this happens. We'd like to trigger a passive alarm to > nagios on our application dumping core. > > On other OS's (specifically FreeBSD IIRC) the kernel logs coredumps and > end up in the system log so watching the logfiles with swatch or > something similar would do the trick. > > On my Linux system (CentOS 5.2) it appears that coredumps don't log. > Does anyone have any ideas how I can trigger an event on coredump on Linux? This is not really a nagios issue... AFAIK segfaults are logged in Linux; have you looked at the kernel messages (dmesg)? If it shows in dmesg output but not on your logs, make sure syslog is configured properly to retrieve those messages. You could also log kern.* to a specific files to be sure. I think log levels can also be tuned with /proc/sys/kernel/printk; see "man 5 proc". - -- Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFI7GQp6dZ+Kt5BchYRAu8TAJ98E5xxKIRDZh8l/gFPd50uZeNM+QCggpct r7QppHPqVgdZTMZKtgPJYgU= =Ta0T -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Guillaume.Rousse at inria.fr Wed Oct 8 10:20:59 2008 From: Guillaume.Rousse at inria.fr (Guillaume Rousse) Date: Wed, 08 Oct 2008 10:20:59 +0200 Subject: [Nagios-devel] how to specify multiple dependencies In-Reply-To: <48EB94F6.4070906@networkmail.eu> References: <48EB3B14.9060606@inria.fr> <48EB94F6.4070906@networkmail.eu> Message-ID: <48EC6D6B.8000303@inria.fr> Andy Shellam a ?crit : > Hi Guillaume (again!) > > I think you've got these the wrong way round. > > In your example, if service A depends on B or C, then hosts B and C > become the dependent hosts. Does this work? (I've not used service > dependencies a great deal so forgive me if I'm wrong.) > > define servicedependency { > host_name A > service_description X > dependent_host_name B,C > dependent_service_description Y > } > > I think this says that service X on host A depends on service Y on hosts > B and C. It says than you have two services Y, running on hosts hosts B and C, each relying on a single service X, running on host A. If X fails, monitoring of Y will be affected on both hosts. I'm looking for exactly the opposite: two redundant authentications backends available, and one authenticated service, for wich I'd like to avoid useless notifications if both backends are down. > Whether this is an AND or an OR (e.g. host A depends on hosts > B AND C, or host A depends on hosts B OR C) I don't know. AFAIK, this is purely syntactic sugar for multiple declarations, so rather an OR relationship. > PS. Both of your last questions should have been directed at the > nagios-users list - nagios-devel is for reviewing and submitting > patches, or other questions that concern the development of Nagios. > Indeed. -- Guillaume Rousse Moyens Informatiques - INRIA Futurs Tel: 01 69 35 69 62 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Guillaume.Rousse at inria.fr Wed Oct 8 12:43:39 2008 From: Guillaume.Rousse at inria.fr (Guillaume Rousse) Date: Wed, 08 Oct 2008 12:43:39 +0200 Subject: NRPE way too fragile ? Message-ID: <48EC8EDB.3050209@inria.fr> Hello list. I'm using nrpe quite heavily for testing lots of local service on all my machines. It work usually well, but seems a bit unreliable: too much often, nrpe itself fails to accept incoming connections, and test fails: CHECK_NRPE: Socket timeout after 10 seconds. stracing nrpe process shows it is probably waiting itself on another connection: [root at denfert ~]# strace -p 22444 Process 22444 attached - interrupt to quit select(6, [5], NULL, [5], {0, 170000}) = 0 (Timeout) accept(5, 0, NULL) = -1 EAGAIN (Resource temporarily unavailable) It usually recovers itself alone, but that's enough to cause much unwanted notifications, even if all monitored services have nrpe itself as dependency. I'm using ssl encryption, as usually advised, but I'm planning shifting to plain-text connection (everything occurs on a distinc VLAN, without user access). Does everyone else has similar experience ? -- Guillaume Rousse Moyens Informatiques - INRIA Futurs Tel: 01 69 35 69 62 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sofam84 at gmail.com Wed Oct 8 14:23:45 2008 From: sofam84 at gmail.com (Oscar Elfving) Date: Wed, 8 Oct 2008 14:23:45 +0200 Subject: Negating regular expression matching a host_name Message-ID: Hello everyone, I'm currently trying to exclude a range of hosts that do not share certain hardware with the rest of the cluster, and I want to exclude them by using regular expressions. Whenever I try to use the exclamation mark with the star, nagios tells me it can't find any matching hosts. I'm obviously missing something here, how can I do this in a good way? define service { hostgroup_name mailgw-servers # Exceptions host_name !mailgwb* service_description AACRAID controller status check_command check_nrpe_1arg!check_aacraid_config use generic-service notification_interval 0 } Also, thank you for a great Nordic Nagios meet in Stockholm in June! Best regards, Oscar Elfving ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cschneemann at suse.de Wed Oct 8 15:00:27 2008 From: cschneemann at suse.de (Christian Schneemann) Date: Wed, 8 Oct 2008 15:00:27 +0200 Subject: Negating regular expression matching a host_name In-Reply-To: References: Message-ID: <200810081500.28014.cschneemann@suse.de> On Wednesday October 8 2008 02:23:45 pm Oscar Elfving wrote: > Hello everyone, > I'm currently trying to exclude a range of hosts that do not share > certain hardware with the rest of the cluster, and I want to exclude > them by using regular expressions. > Whenever I try to use the exclamation mark with the star, nagios tells > me it can't find any matching hosts. Hi, did you set "use_regexp_matching" in your nagios.cfg to 1? You have to activate this to use regex in your matching (as the name says ;) Greetings, Christian > > I'm obviously missing something here, how can I do this in a good way? > > > define service { > hostgroup_name mailgw-servers > # Exceptions > host_name !mailgwb* > service_description AACRAID controller status > check_command > check_nrpe_1arg!check_aacraid_config use > generic-service > notification_interval 0 > } > > Also, thank you for a great Nordic Nagios meet in Stockholm in June! > > Best regards, > Oscar Elfving > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge Build the coolest Linux based applications with Moblin SDK & win > great prizes Grand prize is a trip for two to an Open Source event anywhere > in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > ::: reporting any issue. Messages without supporting info will risk being > ::: sent to /dev/null -- Christian Schneemann ------------------------------------- SUSE LINUX Products GmbH, Maxfeldstr. 5, D - 90409 N?rnberg Phone:??+49 (0)911 - 740 53 0 e-mail:?cschneemann at suse.de ------------------------------------- SUSE LINUX Products GmbH, GF: Markus Rex HRB 16746 (AG N?rnberg) ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sofam84 at gmail.com Wed Oct 8 15:20:22 2008 From: sofam84 at gmail.com (Oscar Elfving) Date: Wed, 8 Oct 2008 15:20:22 +0200 Subject: Negating regular expression matching a host_name In-Reply-To: <200810081500.28014.cschneemann@suse.de> References: <200810081500.28014.cschneemann@suse.de> Message-ID: Sure, I use it to put the hosts in different host groups and so forth... the problem is just when I want to use the exclamation mark to exclude hosts AND use regular expressions to match the hosts. If I write the full hostnames there is no problem. Best regards, Oscar Elfving On Wed, Oct 8, 2008 at 3:00 PM, Christian Schneemann wrote: > On Wednesday October 8 2008 02:23:45 pm Oscar Elfving wrote: >> Hello everyone, >> I'm currently trying to exclude a range of hosts that do not share >> certain hardware with the rest of the cluster, and I want to exclude >> them by using regular expressions. >> Whenever I try to use the exclamation mark with the star, nagios tells >> me it can't find any matching hosts. > Hi, > did you set "use_regexp_matching" in your nagios.cfg to 1? You have to > activate this to use regex in your matching (as the name says ;) > > > Greetings, > Christian >> >> I'm obviously missing something here, how can I do this in a good way? >> >> >> define service { >> hostgroup_name mailgw-servers >> # Exceptions >> host_name !mailgwb* >> service_description AACRAID controller status >> check_command >> check_nrpe_1arg!check_aacraid_config use >> generic-service >> notification_interval 0 >> } >> >> Also, thank you for a great Nordic Nagios meet in Stockholm in June! >> >> Best regards, >> Oscar Elfving >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge Build the coolest Linux based applications with Moblin SDK & win >> great prizes Grand prize is a trip for two to an Open Source event anywhere >> in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> >> ::: Please include Nagios version, plugin version (-v) and OS when >> ::: reporting any issue. Messages without supporting info will risk being >> ::: sent to /dev/null > > > > -- > Christian Schneemann > > ------------------------------------- > SUSE LINUX Products GmbH, > Maxfeldstr. 5, D - 90409 N?rnberg > > Phone: +49 (0)911 - 740 53 0 > e-mail: cschneemann at suse.de > ------------------------------------- > SUSE LINUX Products GmbH, GF: Markus Rex > HRB 16746 (AG N?rnberg) > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From throck at gmail.com Wed Oct 8 16:29:09 2008 From: throck at gmail.com (Tom Throckmorton) Date: Wed, 8 Oct 2008 10:29:09 -0400 Subject: Simulating downtime in nagios In-Reply-To: <26face530810072030o377b6635l76f049fec85ebd5c@mail.gmail.com> References: <26face530810061229j9e887b1ie8b2543e2f86ed2a@mail.gmail.com> <20081007014711.GA629@gmail.com> <26face530810061857t56088cb8q7976a3c324e34759@mail.gmail.com> <20081007021706.GA2581@gmail.com> <26face530810072030o377b6635l76f049fec85ebd5c@mail.gmail.com> Message-ID: <20081008142907.GA22072@gmail.com> On Oct 07 20:30, Kelly Jones wrote: > On 10/6/08, Tom Throckmorton wrote: > > On Oct 06 18:57, Kelly Jones wrote: > >> Thanks, Tom. > >> > >> Yes, I'm trying to simulate a host/service outage, not scheduled downtime. > >> > >> The problem w/ submitting a passive check is that the next ACTIVE check > >> will > >> invalidate it. Example: you tell nagios that machine foo is down. That's > >> soft > >> alert 1, not enough to generate any emails. Nagios then active checks foo > >> and > >> sees that it's up. Of course, you can submit another passive check, but > >> you'll ping-pong (flap) between up and down states. > > > > OK, so it sounds like you want to be able to have Nagios temporarily stop > > managing the service check scheduling for this service, long enough for you > > to > > inject some bogus results. Seems like rescheduling the next active check > > (SCHEDULE_FORCED_SVC_CHECK) would do the right thing as far as pushing the > > next > > scheduled check into the future. Or maybe you want to disable active checks > > for the service (DISABLE_SVC_CHECK), run your simulation, and then re-enable > > them...? > > I may've done it wrong, but SCHEDULE_FORCED_SVC_CHECK means that > nagios won't send any alerts at all. This command manipulates the check scheduling queue for _active_ checks; it has no direct impact on alerts: http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?command_id=129 ...so forcing a service check to some time in the future will delay the active checks, but you can still submit passive checks (and generate alerts, assuming the result you're submitting is different than the current state of the service) > Basically, messing with nagios' check schedule also screws up its > notification schedule. > > And, since I'm testing notifications, that's not useful. I must be missing something here. If, for example, I do the following for a given service which is currently OK, and for which active checks are normally accepted: - delay the next check via SCHEDULE_FORCED_SVC_CHECK now + 1 hour - submit a passive result with a state of CRITICAL (PROCESS_SERVICE_CHECK_RESULT) x $max_check_attempts As expected, I see: - an alert for each result I've submitted - the status changes to SOFT/CRITICAL after the first result, and HARD/CRITICAL after $max_check_attempts has been reached - a notification about the problem The next scheduled check remains at the time + 1 hour. If I submit an OK result, the status changes from CRITICAL to OK, and I get a recovery notification. And I can repeat this as often as I like within the time before the next scheduled active check. How is this different than what you're trying to achieve? -tt > I've written several nagios tests myself, and they're all in one Perl > program (each subroutine = one test). For these, simulating downtime > is easy. The script reads downtime from a file and automatically > exits w/ 1 or 2 during downtime instead of running the subroutine. > > I'm tempted to run ALL nagios tests in a wrapper, but that seems so > ugly for such a simple? problem. > > -- > We're just a Bunch Of Regular Guys, a collective group that's trying > to understand and assimilate technology. We feel that resistance to > new ideas and technology is unwise and ultimately futile. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jbroughton at truecos.com Wed Oct 8 17:06:26 2008 From: jbroughton at truecos.com (Jayson Broughton) Date: Wed, 8 Oct 2008 09:06:26 -0600 Subject: NRPE way too fragile ? In-Reply-To: <48EC8EDB.3050209@inria.fr> References: <48EC8EDB.3050209@inria.fr> Message-ID: <00d301c92957$716d6ca0$544845e0$@com> Guillaume, We actually have the same problem here where Nagios is setup. I use the NRPE daemon on both windows and linux servers. Two of our servers do backups early in the morning and during that time we get NRPE Timeout messages from the two servers. I have set the timeout on the server and the clients to timeout after 30 seconds, thinking that would fix it. But alas, we still get timeout messages. I haven't had much time to see what I can do to fix this, so for now our solution is to not email out warning messages from those two servers (I have the thresholds set enough where the critical messages still gives enough window to take care of the problem before going too critical) I have come to the conclusion that the servers are running the backup and eating up so much processing that the nrpe times out trying to connect and send information. If you find a solution or even an idea to try, feel free to let me know and I'll give it a shot! Jayson Broughton Linux Systems Administrator True Computer Operations Dept. True Oil LLC -----Original Message----- From: Guillaume Rousse [mailto:Guillaume.Rousse at inria.fr] Sent: Wednesday, October 08, 2008 4:44 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] NRPE way too fragile ? Hello list. I'm using nrpe quite heavily for testing lots of local service on all my machines. It work usually well, but seems a bit unreliable: too much often, nrpe itself fails to accept incoming connections, and test fails: CHECK_NRPE: Socket timeout after 10 seconds. stracing nrpe process shows it is probably waiting itself on another connection: [root at denfert ~]# strace -p 22444 Process 22444 attached - interrupt to quit select(6, [5], NULL, [5], {0, 170000}) = 0 (Timeout) accept(5, 0, NULL) = -1 EAGAIN (Resource temporarily unavailable) It usually recovers itself alone, but that's enough to cause much unwanted notifications, even if all monitored services have nrpe itself as dependency. I'm using ssl encryption, as usually advised, but I'm planning shifting to plain-text connection (everything occurs on a distinc VLAN, without user access). Does everyone else has similar experience ? -- Guillaume Rousse Moyens Informatiques - INRIA Futurs Tel: 01 69 35 69 62 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null The information in this electronic mail message and any attached files is confidential and may be legally privileged. If you are not the intended recipient, delete this message and contact the sender immediately. Access to this message by anyone other than its intended recipient is unauthorized. You must not use or disseminate this information as it is proprietary property of the True companies. Communications on or through the True companies' computer systems may be monitored or recorded to secure effective system operation and for other lawful purposes. Thank you. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sebastien.lelievre at aznetwork.fr Wed Oct 8 17:21:23 2008 From: sebastien.lelievre at aznetwork.fr (M. =?ISO-8859-1?Q?S=E9bastien_LELI=C8VRE?=) Date: Wed, 08 Oct 2008 17:21:23 +0200 Subject: How-to debug a NAGIOS-not-sending-email problem ? Message-ID: <1223479283.9384.33.camel@AZemaria> Greetings, I'm experiencing some odd issue with my nagios server. It dosen't notify by email anymore When I execute the corresponding command in the nagios (user) shell, I receive an email A. So it is not postfix nor a system problem, just nagios which doesn't send email Reload/Restart-ing program (both postfix and nagios) didn't work out I do not know where to start my investigation Here are some info : notify-host-by-email : /usr/bin/printf "%b" " Nagios \n\nNotification Type: $NOTIFICATIONTYPE $\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /usr/bin/mail -s "[$HOSTGROUPNOTES$ $NOTIFICATIONTYPE$ Host $HOSTSTATE$ in $HOSTNAME$]" $CONTACTEMAIL$ notify-service-by-email : /usr/bin/printf "%b" " Nagios \n\nNotification Type: $NOTIFICATIONTYPE $\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress:$HOSTADDRESS $\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "[$HOSTGROUPNOTES$ $NOTIFICATIONTYPE$ Service $SERVICESTATE$ in $HOSTNAME$/$SERVICEDESC$]" $CONTACTEMAIL$ Best Regards -- M. S?bastien LELI?VRE Ing?nieur Syst?me & Base de Donn?es ABF H?bergement / AZ Network 40, rue Amp?re 61000 ALEN?ON (ORNE) FRANCE Tel. : + 33 (0) 233 320 616 Port. : + 33 (0) 673 457 243 Poste : 120 e-mail : sebastien.lelievre at aznetwork.fr ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From assaf.flatto at ssp.uk.com Wed Oct 8 18:03:53 2008 From: assaf.flatto at ssp.uk.com (Assaf Flatto) Date: Wed, 8 Oct 2008 17:03:53 +0100 Subject: How-to debug a NAGIOS-not-sending-email problem ? In-Reply-To: <1223479283.9384.33.camel@AZemaria> References: <1223479283.9384.33.camel@AZemaria> Message-ID: <200810081703.53103.assaf.flatto@ssp.uk.com> I'll ask a silly point , what is your notification time and notification commands ? do you see in the nagios log that it is actually going to the notification commands ? Assaf On Wednesday 08 October 2008 16:21:23 M. S?bastien LELI?VRE wrote: > Greetings, > > I'm experiencing some odd issue with my nagios server. > > It dosen't notify by email anymore > > When I execute the corresponding command in the nagios (user) shell, I > receive an email > > A. So it is not postfix nor a system problem, just nagios which > doesn't send email > > Reload/Restart-ing program (both postfix and nagios) didn't work out > > I do not know where to start my investigation > > Here are some info : > > notify-host-by-email : > > /usr/bin/printf "%b" " Nagios \n\nNotification Type: $NOTIFICATIONTYPE > $\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: > $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /usr/bin/mail -s > "[$HOSTGROUPNOTES$ $NOTIFICATIONTYPE$ Host $HOSTSTATE$ in $HOSTNAME$]" > $CONTACTEMAIL$ > > > notify-service-by-email : > > /usr/bin/printf "%b" " Nagios \n\nNotification Type: $NOTIFICATIONTYPE > $\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress:$HOSTADDRESS > $\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional > Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "[$HOSTGROUPNOTES$ > $NOTIFICATIONTYPE$ Service $SERVICESTATE$ in $HOSTNAME$/$SERVICEDESC$]" > $CONTACTEMAIL$ > > Best Regards -- Assaf Flatto SSP Ops Team Linux System Administrator IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Guillaume.Rousse at inria.fr Wed Oct 8 18:13:34 2008 From: Guillaume.Rousse at inria.fr (Guillaume Rousse) Date: Wed, 08 Oct 2008 18:13:34 +0200 Subject: How-to debug a NAGIOS-not-sending-email problem ? In-Reply-To: <1223479283.9384.33.camel@AZemaria> References: <1223479283.9384.33.camel@AZemaria> Message-ID: <48ECDC2E.9070606@inria.fr> M. S?bastien LELI?VRE a ?crit : > I do not know where to start my investigation Set your debug level to macro expansion (or some other value), and check in the debug file (not the log file). -- Guillaume Rousse Moyens Informatiques - INRIA Futurs Tel: 01 69 35 69 62 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From myoung at nagios.org Wed Oct 8 18:18:50 2008 From: myoung at nagios.org (Mark Young) Date: Wed, 8 Oct 2008 11:18:50 -0500 Subject: NRPE way too fragile ? In-Reply-To: <00d301c92957$716d6ca0$544845e0$@com> References: <48EC8EDB.3050209@inria.fr> <00d301c92957$716d6ca0$544845e0$@com> Message-ID: <6AB4C075-FECE-4BD0-BC79-A93778EADDDC@nagios.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Oct 8, 2008, at 10:06 AM, Jayson Broughton wrote: > Guillaume, > > We actually have the same problem here where Nagios is setup. I use > the > NRPE daemon on both windows and linux servers. Two of our servers do > backups early in the morning and during that time we get NRPE Timeout > messages from the two servers. I have set the timeout on the server > and the > clients to timeout after 30 seconds, thinking that would fix it. > But alas, > we still get timeout messages. I haven't had much time to see what > I can do > to fix this, so for now our solution is to not email out warning > messages > from those two servers (I have the thresholds set enough where the > critical > messages still gives enough window to take care of the problem > before going > too critical) I have come to the conclusion that the servers are > running > the backup and eating up so much processing that the nrpe times out > trying > to connect and send information. > > If you find a solution or even an idea to try, feel free to let me > know and > I'll give it a shot! NRPE is normally setup with Xinetd listening for incoming connections. When I say normally I mean if you followed the documentation. ;) By default Xinetd has a low threshold of connections per instance in order to lessen the load on the server and prevent DDoS type attacks. You can view what I mentioned in my previous post here: http://article.gmane.org/gmane.network.nagios.user/56713 NRPE can be fine until Nagios decides to run many checks to the same host at the same time that hits the threshold.. For example when you go to the extended host information and "Schedule a check of all services on this host". If you are not running it under Xinetd it may be other issues. Including system load and/or running into possible bugs with NPRE on your system. > >> -----Original Message----- >> From: Guillaume Rousse [mailto:Guillaume.Rousse at inria.fr] >> Sent: Wednesday, October 08, 2008 4:44 AM >> To: nagios-users at lists.sourceforge.net >> Subject: [Nagios-users] NRPE way too fragile ? >> >> Hello list. >> >> I'm using nrpe quite heavily for testing lots of local service on >> all my >> machines. It work usually well, but seems a bit unreliable: too much >> often, nrpe itself fails to accept incoming connections, and test >> fails: >> CHECK_NRPE: Socket timeout after 10 seconds. >> >> stracing nrpe process shows it is probably waiting itself on another >> connection: >> [root at denfert ~]# strace -p 22444 >> Process 22444 attached - interrupt to quit >> select(6, [5], NULL, [5], {0, 170000}) = 0 (Timeout) >> accept(5, 0, NULL) = -1 EAGAIN (Resource >> temporarily unavailable) >> >> It usually recovers itself alone, but that's enough to cause much >> unwanted notifications, even if all monitored services have nrpe >> itself >> as dependency. I'm using ssl encryption, as usually advised, but I'm >> planning shifting to plain-text connection (everything occurs on a >> distinc VLAN, without user access). >> >> Does everyone else has similar experience ? You seem to be running it as a daemon process itself. What system and NRPE version are you running? What version of Nagios? How many NRPE checks are you trying to perform in a given time? You may see some benefit to enabling Nagios to spread its checks out more evenly, though this is simply covering the underlaying problem. Maybe consider running it with the xinetd daemon and increase the number of allowed connections a second as a test. Mark Young ___ Nagios Enterprises, LLC Web: www.nagios.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (Darwin) iEYEARECAAYFAkjs3WoACgkQ0KipU7WwlaWtXgCgs+77/o8Pyh0t/++FIbOEycgx oiAAoMj2awwRG4HCernz7pcdf/K484Ca =oKG0 -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 optiksecurite.com Wed Oct 8 18:18:37 2008 From: nagios at optiksecurite.com (Francis Dube) Date: Wed, 08 Oct 2008 12:18:37 -0400 Subject: How-to debug a NAGIOS-not-sending-email problem ? In-Reply-To: <200810081703.53103.assaf.flatto@ssp.uk.com> References: <1223479283.9384.33.camel@AZemaria> <200810081703.53103.assaf.flatto@ssp.uk.com> Message-ID: <48ECDD5D.4000902@optiksecurite.com> Few things to check : 1- In your service definition, check the following : contact_groups, notification_period, notification_enabled 1. 2- In your contact definition, check the following : host_notification_period, service_notification_period, host_notification_commands, service_notification_commands, host_notification_options, service_notification_options and email. 3- In your contact group definition, be sure you have the right members 4- If you are using custom timeperiod for your notification, double-check them. Francis Dube R&D Optik Securite > I'll ask a silly point , what is your notification time and notification commands ? > > do you see in the nagios log that it is actually going to the notification commands ? > > Assaf > > > > On Wednesday 08 October 2008 16:21:23 M. S?bastien LELI?VRE wrote: > >> Greetings, >> >> I'm experiencing some odd issue with my nagios server. >> >> It dosen't notify by email anymore >> >> When I execute the corresponding command in the nagios (user) shell, I >> receive an email >> >> A. So it is not postfix nor a system problem, just nagios which >> doesn't send email >> >> Reload/Restart-ing program (both postfix and nagios) didn't work out >> >> I do not know where to start my investigation >> >> Here are some info : >> >> notify-host-by-email : >> >> /usr/bin/printf "%b" " Nagios \n\nNotification Type: $NOTIFICATIONTYPE >> $\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: >> $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /usr/bin/mail -s >> "[$HOSTGROUPNOTES$ $NOTIFICATIONTYPE$ Host $HOSTSTATE$ in $HOSTNAME$]" >> $CONTACTEMAIL$ >> >> >> notify-service-by-email : >> >> /usr/bin/printf "%b" " Nagios \n\nNotification Type: $NOTIFICATIONTYPE >> $\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress:$HOSTADDRESS >> $\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional >> Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "[$HOSTGROUPNOTES$ >> $NOTIFICATIONTYPE$ Service $SERVICESTATE$ in $HOSTNAME$/$SERVICEDESC$]" >> $CONTACTEMAIL$ >> >> Best Regards >> > > > > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From svalding at doverchem.com Wed Oct 8 18:08:14 2008 From: svalding at doverchem.com (Valdinger, Stephen (DOV, MSX)) Date: Wed, 8 Oct 2008 12:08:14 -0400 Subject: How-to debug a NAGIOS-not-sending-email problem ? Message-ID: The first place that I would look would be your mail and Nagios logs. There is probably something in one of them related to your troubles. Stephen Valdinger MIS Helpdesk Coordinator 330.365.3622 -O 740.491.0958 - C svalding at doverchem.com Never agrue with an idiot. They drag you down to their level and then beat you with their experience. -----Original Message----- From: M. S?bastien LELI?VRE [mailto:sebastien.lelievre at aznetwork.fr] Sent: Wednesday, October 08, 2008 11:21 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] How-to debug a NAGIOS-not-sending-email problem ? Greetings, I'm experiencing some odd issue with my nagios server. It dosen't notify by email anymore When I execute the corresponding command in the nagios (user) shell, I receive an email A. So it is not postfix nor a system problem, just nagios which doesn't send email Reload/Restart-ing program (both postfix and nagios) didn't work out I do not know where to start my investigation Here are some info : notify-host-by-email : /usr/bin/printf "%b" " Nagios \n\nNotification Type: $NOTIFICATIONTYPE $\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /usr/bin/mail -s "[$HOSTGROUPNOTES$ $NOTIFICATIONTYPE$ Host $HOSTSTATE$ in $HOSTNAME$]" $CONTACTEMAIL$ notify-service-by-email : /usr/bin/printf "%b" " Nagios \n\nNotification Type: $NOTIFICATIONTYPE $\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress:$HOSTADDRESS $\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "[$HOSTGROUPNOTES$ $NOTIFICATIONTYPE$ Service $SERVICESTATE$ in $HOSTNAME$/$SERVICEDESC$]" $CONTACTEMAIL$ Best Regards -- M. S?bastien LELI?VRE Ing?nieur Syst?me & Base de Donn?es ABF H?bergement / AZ Network 40, rue Amp?re 61000 ALEN?ON (ORNE) FRANCE Tel. : + 33 (0) 233 320 616 Port. : + 33 (0) 673 457 243 Poste : 120 e-mail : sebastien.lelievre at aznetwork.fr ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stefan+nagiosusers at cae.wisc.edu Wed Oct 8 18:29:58 2008 From: stefan+nagiosusers at cae.wisc.edu (Stefan Strandberg) Date: Wed, 8 Oct 2008 11:29:58 -0500 Subject: Problem with external commands and custom variables Message-ID: <20081008162957.GA2205@masimaro.cae.wisc.edu> Hi, I'm attempting to implement some custom variables for hosts. Supposedly the external command to change the custom variable for a host is CHANGE_CUSTOM_HOST_VAR with a certain syntax. Unfortunately for me, it doesn't seem to be working. Nagios receives the command and logs it, but doesn't seem to actually process it. The command given is: -- start script -- #!/bin/sh now=`date +%s` commandfile='/var/lib/nagios3/rw/nagios.cmd' /usr/bin/printf "[%lu] CHANGE_CUSTOM_HOST_VAR;dent;_REPAIRSTATUS;repair\n" $now > $commandfile -- end script -- and nagios logs it with [1223412361] EXTERNAL COMMAND: CHANGE_CUSTOM_HOST_VAR;dent;_REPAIRSTATUS;repair in nagios.log, so I think it should be working. However, the variable never changes in the status.dat file. Am I missing a step or doing something wrong? The documentation doesn't have any other examples, and nothing turns up on google. Thanks, -stefan -- Stefan Strandberg UNIX group Computer Aided Engineering - UW Madison stefan at cae.wisc.edu ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 optiksecurite.com Wed Oct 8 17:52:58 2008 From: nagios at optiksecurite.com (Francis Dube) Date: Wed, 08 Oct 2008 11:52:58 -0400 Subject: Strange NRPE issue Message-ID: <48ECD75A.5010605@optiksecurite.com> Hi, I'm using Nagios nagios-2.12_1 with NRPE nrpe2-2.11_1 to check if my display is working properly. I'm taking a screenshot every 4 minutes and then i compare it with the last screenshot. My script is working very well when it's ran locally but when i'm calling it from the server the screenshot isn't taken. I tought it was a right problem on the Xorg server, but i tried with "xhost +" (which do "access control disabled, clients can connect from any host"). Both ways i run the script with the user 'nagios'. The rest of the commands in the scripts work fine, the only problem is with the screenshot which is taken using this command : import -display :0 -window root /afolder/myscreenshot.png I also tried to run the script over shh (ssh nagios at 1.2.3.4 /usr/local/libexec/nagios/check_news) and this method is working as fine as locally. So i think there's something wrong with the way NRPE execute my script. Anyone got an idea of the reason why the screenshot isn't working when i run the script with NRPE ? Thanks ! Francis ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 8 19:52:27 2008 From: ae at op5.se (Andreas Ericsson) Date: Wed, 08 Oct 2008 19:52:27 +0200 Subject: Problem with external commands and custom variables In-Reply-To: <20081008162957.GA2205@masimaro.cae.wisc.edu> References: <20081008162957.GA2205@masimaro.cae.wisc.edu> Message-ID: <48ECF35B.4050501@op5.se> Stefan Strandberg wrote: > Hi, > > I'm attempting to implement some custom variables for hosts. Supposedly > the external command to change the custom variable for a host is > CHANGE_CUSTOM_HOST_VAR with a certain syntax. Unfortunately for me, it > doesn't seem to be working. > > Nagios receives the command and logs it, but doesn't seem to actually > process it. > > The command given is: > > -- start script -- > > #!/bin/sh > > now=`date +%s` > commandfile='/var/lib/nagios3/rw/nagios.cmd' > > /usr/bin/printf "[%lu] > CHANGE_CUSTOM_HOST_VAR;dent;_REPAIRSTATUS;repair\n" $now > $commandfile > > -- end script -- > > and nagios logs it with > [1223412361] EXTERNAL COMMAND: > CHANGE_CUSTOM_HOST_VAR;dent;_REPAIRSTATUS;repair > > in nagios.log, so I think it should be working. Nagios always logs external commands, even if they're properly formatted or not. The logging happens before the command is processed, not after, so there's no telling if Nagios does the right thing with it or not. > However, the variable > never changes in the status.dat file. > > Am I missing a step or doing something wrong? The documentation doesn't > have any other examples, and nothing turns up on google. > I can imagine. This is, afaik, the first time the question has been asked on the nagios-users list. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 8 20:00:02 2008 From: ae at op5.se (Andreas Ericsson) Date: Wed, 08 Oct 2008 20:00:02 +0200 Subject: Strange NRPE issue In-Reply-To: <48ECD75A.5010605@optiksecurite.com> References: <48ECD75A.5010605@optiksecurite.com> Message-ID: <48ECF522.2030308@op5.se> Francis Dube wrote: > Hi, > > I'm using Nagios nagios-2.12_1 with NRPE nrpe2-2.11_1 to check if my > display is working properly. I'm taking a screenshot every 4 minutes and > then i compare it with the last screenshot. My script is working very > well when it's ran locally but when i'm calling it from the server the > screenshot isn't taken. Are you running it as the user NRPE is running as when you're taking the screenshot locally? > I tought it was a right problem on the Xorg > server, but i tried with "xhost +" (which do "access control disabled, > clients can connect from any host"). Both ways i run the script with the > user 'nagios'. The rest of the commands in the scripts work fine, the > only problem is with the screenshot which is taken using this command : > import -display :0 -window root /afolder/myscreenshot.png > > I also tried to run the script over shh (ssh nagios at 1.2.3.4 > /usr/local/libexec/nagios/check_news) and this method is working as fine > as locally. So i think there's something wrong with the way NRPE execute > my script. > > Anyone got an idea of the reason why the screenshot isn't working when i > run the script with NRPE ? > The only thing I can imagine is access problems. By default, only root can snoop on other user's X sessions, so for that to work for nrpe the X session ought to be owned by the nrpe user. I'm not well-versed in X enough to give a definite answer though, so don't trust my word on it. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sofam84 at gmail.com Wed Oct 8 20:36:33 2008 From: sofam84 at gmail.com (Oscar Elfving) Date: Wed, 8 Oct 2008 20:36:33 +0200 Subject: Strange NRPE issue In-Reply-To: <48ECD75A.5010605@optiksecurite.com> References: <48ECD75A.5010605@optiksecurite.com> Message-ID: Perhaps enable running the command with sudo in nrpe.cfg? It seems like a security issue. 2008/10/8, Francis Dube : > Hi, > > I'm using Nagios nagios-2.12_1 with NRPE nrpe2-2.11_1 to check if my > display is working properly. I'm taking a screenshot every 4 minutes and > then i compare it with the last screenshot. My script is working very > well when it's ran locally but when i'm calling it from the server the > screenshot isn't taken. I tought it was a right problem on the Xorg > server, but i tried with "xhost +" (which do "access control disabled, > clients can connect from any host"). Both ways i run the script with the > user 'nagios'. The rest of the commands in the scripts work fine, the > only problem is with the screenshot which is taken using this command : > import -display :0 -window root /afolder/myscreenshot.png > > I also tried to run the script over shh (ssh nagios at 1.2.3.4 > /usr/local/libexec/nagios/check_news) and this method is working as fine > as locally. So i think there's something wrong with the way NRPE execute > my script. > > Anyone got an idea of the reason why the screenshot isn't working when i > run the script with NRPE ? > > Thanks ! > > Francis > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 optiksecurite.com Wed Oct 8 20:21:12 2008 From: nagios at optiksecurite.com (Francis Dube) Date: Wed, 08 Oct 2008 14:21:12 -0400 Subject: Strange NRPE issue In-Reply-To: <48ECF522.2030308@op5.se> References: <48ECD75A.5010605@optiksecurite.com> <48ECF522.2030308@op5.se> Message-ID: <48ECFA18.5060809@optiksecurite.com> Andreas Ericsson a ?crit : > Francis Dube wrote: >> Hi, >> >> I'm using Nagios nagios-2.12_1 with NRPE nrpe2-2.11_1 to check if my >> display is working properly. I'm taking a screenshot every 4 minutes >> and then i compare it with the last screenshot. My script is working >> very well when it's ran locally but when i'm calling it from the >> server the screenshot isn't taken. > > Are you running it as the user NRPE is running as when you're taking the > screenshot locally? > >> I tought it was a right problem on the Xorg server, but i tried with >> "xhost +" (which do "access control disabled, clients can connect >> from any host"). Both ways i run the script with the user 'nagios'. >> The rest of the commands in the scripts work fine, the only problem >> is with the screenshot which is taken using this command : import >> -display :0 -window root /afolder/myscreenshot.png >> >> I also tried to run the script over shh (ssh nagios at 1.2.3.4 >> /usr/local/libexec/nagios/check_news) and this method is working as >> fine as locally. So i think there's something wrong with the way NRPE >> execute my script. >> >> Anyone got an idea of the reason why the screenshot isn't working >> when i run the script with NRPE ? >> > > The only thing I can imagine is access problems. By default, only root > can snoop on other user's X sessions, so for that to work for nrpe the > X session ought to be owned by the nrpe user. I'm not well-versed in X > enough to give a definite answer though, so don't trust my word on it. > Yes the screenshot is taken with the user 'nagios' which is my NRPE user. 'xhost +' disable access control for X, so i dont think it's the problem. Thanks. Francis ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Bret.Goodfellow at questar.com Wed Oct 8 21:26:36 2008 From: Bret.Goodfellow at questar.com (Bret Goodfellow) Date: Wed, 8 Oct 2008 13:26:36 -0600 Subject: Slow response from command remote call using SSH In-Reply-To: <23BF46B5-82EA-43D3-9AF5-D2B7F998E10D@ena.com> References: <91EDB00F83BAD443A9D05FA67623955A027C8085@QMAIL.corp.questar.com><91EDB00F83BAD443A9D05FA67623955A027C8086@QMAIL.corp.questar.com> <23BF46B5-82EA-43D3-9AF5-D2B7F998E10D@ena.com> Message-ID: <91EDB00F83BAD443A9D05FA67623955A027C808C@QMAIL.corp.questar.com> That fixed my problem. The 'multipath' command now takes longer to complete since upgrading to RHEL 4 Update 7. By adding the '-t 20' field to 'check_by_ssh', the time outs have now disappeared. Thanks. -----Original Message----- From: Marc Powell [mailto:marc at ena.com] Sent: Friday, October 03, 2008 3:03 PM To: Nagios Users Subject: Re: [Nagios-users] Slow response from command remote call using SSH On Oct 3, 2008, at 2:03 PM, Bret Goodfellow wrote: > > Multipath CRITICAL 10-01-2008 12:16:59 0d 1h > 0m 59s 3/3 CRITICAL - Plugin timed out while executing system > call > > Wouldn't copy/paste have been easier? ;) Please don't send screenshots, especially screenshots of text content that would have been easier to read/quote/respond to as _text_. It's bad for readers, responders, the Digests and archives and usually considered bad form. If you must have screenshots, post them to a public location and provide a full link (no TinyURLs please). > > QUESTION: How do I set up 'nagios' so that it will wait up to 15 > seconds for the service to complete? Quoting from a response this morning (changing NRPE timeout) -- "- nagios overall service plugin execution timeout. This should be higher than your highest plugin specific timeout -- $ grep timeout etc/nagios.cfg service_check_timeout=15 - And the plugin that NRPE is executing on the remote host will have a default timeout value as well. Standard plugins support a -t parameter (like check_nrpe) but you can always run '/path/to/plugin --help' to see if it is a parameter and what it expects." In this case, the plugin isn't NRPE but the blurb about 'Standard plugins' applies. check_by_ssh is a standard plugin that has a configurable timeout value. You'll need to adjust your check_by_ssh definition's command_line to include the '-t 15' parameter. > Please keep in mind that this service, check_ssh_multipath, worked > fine prior to the upgrade to RHEL 4.7 Stored but I don't think I'll need it. I've saved it in the cells that'll be killed by the wine tonight so it has a short TTL. -- Marc - Did someone say it's EOB Friday? ------------------------------------------------------------------------ - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 8 23:46:59 2008 From: s.shipway at auckland.ac.nz (Steve Shipway) Date: Thu, 9 Oct 2008 10:46:59 +1300 Subject: Windows Eventlog agent v1.9.0 released Message-ID: <6B587E8C999646469B54486AF219584606F3E1E34B@UXCHANGE7-1.UoA.auckland.ac.nz> An updated version of the Nagios Windows Eventlog agent has been released and is available on the Nagios Exchange. This fixes a fairly large bug in the filter code so you are advised to upgrade. http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F1689.html;d=1 This version contains a number of fixes, primarily a fix for the bug where existing filters would work incorrectly if new eventlog definitions were added. The eventlogs are now identified by name, rather than by sequence number. There is also a new status type, 'Ignore', to allow you to create filters to drop messages. Now you no longer need to send NSCA alerts with invalid service names. Finally, it has been compiled with 64bit and wide character support, so it should work better with international language messages; however I am unable to test this. This version does not yet have a binary for 64bit Windows. I am hoping that some members of the community who have offered to help will be able to provide this. Thankyou for your time, Steve --- Steve Shipway UNIX Systems Administration, University of Auckland, New Zealand +64 9 3737 599 x 86487 s.shipway at auckland.ac.nz P Please consider the environment before printing this e-mail -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From izz_abdullah at inbox.com Thu Oct 9 03:55:09 2008 From: izz_abdullah at inbox.com (Izz Abdullah) Date: Wed, 8 Oct 2008 17:55:09 -0800 Subject: Sendmail setup with Nagios Message-ID: <78623817FC6.0000011Eizz_abdullah@inbox.com> I've read the documentation, and have two options: 1. relay alerts from the Nagios server to our local Exchange server (which is too much company politics) 2. setup sendmail correctly to send alerts So, I know now how to do number one (I think), but number 2, cannot. I am an experienced linux user, but have always been anti-sendmail because of the different security risks over the past. I am guessing that not only does sendmail have to be installed, but the Nagios server must also act as a mail server. Can someone please guide me in arranging this setup correctly as I am stuck and need to get alert notifications setup correctly soon. Nagios 3.0.1 Redhat Linux Enterprise Server AS v4 Thanks in advance, Izz ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hvdkooij at vanderkooij.org Thu Oct 9 08:00:24 2008 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Thu, 09 Oct 2008 08:00:24 +0200 Subject: Sendmail setup with Nagios In-Reply-To: <78623817FC6.0000011Eizz_abdullah@inbox.com> References: <78623817FC6.0000011Eizz_abdullah@inbox.com> Message-ID: <48ED9DF8.7090800@vanderkooij.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Izz Abdullah wrote: > I've read the documentation, and have two options: > 1. relay alerts from the Nagios server to our local Exchange server (which is too much company politics) > 2. setup sendmail correctly to send alerts > > So, I know now how to do number one (I think), but number 2, cannot. I am an experienced linux user, but have always been anti-sendmail because of the different security risks over the past. I am guessing that not only does sendmail have to be installed, but the Nagios server must also act as a mail server. Can someone please guide me in arranging this setup correctly as I am stuck and need to get alert notifications setup correctly soon. Sendmail as activated default by RHEL will listen on the loopback address only and send out email to any address you please to send it. The ony thing you might want to add is a smarthost to send it all to the central SMTP server. Nothing too complicated. The thing you do not know yourself can be found in a matter of seconds with a decent search engine. But configuring sendmail is not a Nagios job. Hugo. - -- hvdkooij at vanderkooij.org http://hugo.vanderkooij.org/ PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc A: Yes. >Q: Are you sure? >>A: Because it reverses the logical flow of conversation. >>>Q: Why is top posting frowned upon? Bored? Click on http://spamornot.org/ and rate those images. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFI7Z33BvzDRVjxmYERAkCdAJ9RldxV3wvy2tBl9mex8LFIpb69+gCfaEp+ l7XhbDfLnza/++IESv85deY= =O/Ue -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ck at iphh.net Thu Oct 9 10:03:14 2008 From: ck at iphh.net (Christoph Kluenter) Date: Thu, 9 Oct 2008 10:03:14 +0200 Subject: Strange NRPE issue In-Reply-To: <48ECD75A.5010605@optiksecurite.com> References: <48ECD75A.5010605@optiksecurite.com> Message-ID: <200810091003.15040.ck@iphh.net> On Wednesday 08 October 2008 17:52:58 Francis Dube wrote: > Hi, > > I'm using Nagios nagios-2.12_1 with NRPE nrpe2-2.11_1 to check if my > display is working properly. I'm taking a screenshot every 4 minutes and > then i compare it with the last screenshot. My script is working very > well when it's ran locally but when i'm calling it from the server the > screenshot isn't taken. I tought it was a right problem on the Xorg > server, but i tried with "xhost +" (which do "access control disabled, > clients can connect from any host"). Both ways i run the script with the > user 'nagios'. The rest of the commands in the scripts work fine, the > only problem is with the screenshot which is taken using this command : > import -display :0 -window root /afolder/myscreenshot.png Have you tried setting the PATH ? Or using /usr/bin/import instead of plain "import" ? Cheers, Christoph > > I also tried to run the script over shh (ssh nagios at 1.2.3.4 > /usr/local/libexec/nagios/check_news) and this method is working as fine > as locally. So i think there's something wrong with the way NRPE execute > my script. > > Anyone got an idea of the reason why the screenshot isn't working when i > run the script with NRPE ? > > Thanks ! > > Francis > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge Build the coolest Linux based applications with Moblin SDK & win > great prizes Grand prize is a trip for two to an Open Source event anywhere > in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > ::: reporting any issue. Messages without supporting info will risk being > ::: sent to /dev/null -- Christoph Kluenter E-Mail: ck at iphh.net Technik Tel: +49 (0)40 374919-10 IPHH Internet Port Hamburg GmbH Fax: +49 (0)40 374919-29 Grosse Reichenstrasse 27 AG Hamburg, HRB 76071 D-20457 Hamburg Geschaeftsfuehrung: Axel G. Kroeger ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 optiksecurite.com Thu Oct 9 15:25:01 2008 From: nagios at optiksecurite.com (Francis Dube) Date: Thu, 09 Oct 2008 09:25:01 -0400 Subject: Strange NRPE issue In-Reply-To: <200810091003.15040.ck@iphh.net> References: <48ECD75A.5010605@optiksecurite.com> <200810091003.15040.ck@iphh.net> Message-ID: <48EE062D.6020004@optiksecurite.com> Christoph Kluenter a ?crit : > On Wednesday 08 October 2008 17:52:58 Francis Dube wrote: > >> Hi, >> >> I'm using Nagios nagios-2.12_1 with NRPE nrpe2-2.11_1 to check if my >> display is working properly. I'm taking a screenshot every 4 minutes and >> then i compare it with the last screenshot. My script is working very >> well when it's ran locally but when i'm calling it from the server the >> screenshot isn't taken. I tought it was a right problem on the Xorg >> server, but i tried with "xhost +" (which do "access control disabled, >> clients can connect from any host"). Both ways i run the script with the >> user 'nagios'. The rest of the commands in the scripts work fine, the >> only problem is with the screenshot which is taken using this command : >> import -display :0 -window root /afolder/myscreenshot.png >> > Have you tried setting the PATH ? > Or using /usr/bin/import instead of plain "import" ? > > Cheers, > Christoph > >> I also tried to run the script over shh (ssh nagios at 1.2.3.4 >> /usr/local/libexec/nagios/check_news) and this method is working as fine >> as locally. So i think there's something wrong with the way NRPE execute >> my script. >> >> Anyone got an idea of the reason why the screenshot isn't working when i >> run the script with NRPE ? >> >> Thanks ! >> >> Francis >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge Build the coolest Linux based applications with Moblin SDK & win >> great prizes Grand prize is a trip for two to an Open Source event anywhere >> in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> >> ::: 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 gave it a try, it worked !! It's kinda pathetic because in the whole script every single commands are called usgin the full path except this one. The reason why I never tought it would be a problem is because when i ran the command over ssh i never got a "command not found" error or anything like that. Anyway, thanks a lot my friend ! :) Francis Dube R&D Optik Securite www.optiksecurite.com ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From phillhocking at gmail.com Thu Oct 9 17:31:02 2008 From: phillhocking at gmail.com (Phill Hocking) Date: Thu, 9 Oct 2008 08:31:02 -0700 Subject: Error: Could not add object property in file '/usr/local/etc/nagios/objects/commands.cfg' on line 29. Message-ID: <298f05730810090831v4bdff357ya1285bb955df9326@mail.gmail.com> Greetings, my name is Phill and I am having difficulties with a fresh install. Here is the error I get: # nagios -v /usr/local/etc/nagios/nagios.cfg Nagios 3.0.3 Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org) Last Modified: 06-25-2008 License: GPL Reading configuration data... Warning: Duplicate definition found for command 'notify-host-by-email' (config file '/usr/local/etc/nagios/objects/commands.cfg', starting on line 28) Error: Could not add object property in file '/usr/local/etc/nagios/objects/commands.cfg' on line 29. ***> 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. however that is the only notify-host-by-email entry in the file. I made a pastebin of said file at http://pastebin.ca/1223752. If blank out out all of the .cfg files in that directory, nagios starts to parse the main config file, but throws a bunch of errors for the undef stuff. The search wrapsin vi for that string notify-host-by-email. This is why I am scratching my head. Nagios 3.0.3 FreeBSD 7.0 So any help that you all can give me would be sincerely appreciated, thanks a bundle and I look forward to hearing back from you! ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From livio.zanol.puppim at gmail.com Thu Oct 9 17:35:38 2008 From: livio.zanol.puppim at gmail.com (Livio Zanol Puppim) Date: Thu, 9 Oct 2008 12:35:38 -0300 Subject: Windows Eventlog agent v1.9.0 released In-Reply-To: <6B587E8C999646469B54486AF219584606F3E1E34B@UXCHANGE7-1.UoA.auckland.ac.nz> References: <6B587E8C999646469B54486AF219584606F3E1E34B@UXCHANGE7-1.UoA.auckland.ac.nz> Message-ID: Steve, just to clarify. Why not use the event trigger or the event to trap map? 2008/10/8 Steve Shipway : > An updated version of the Nagios Windows Eventlog agent has been released > and is available on the Nagios Exchange. This fixes a fairly large bug in > the filter code so you are advised to upgrade. > > > > http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F1689.html;d=1 > > > > This version contains a number of fixes, primarily a fix for the bug where > existing filters would work incorrectly if new eventlog definitions were > added. The eventlogs are now identified by name, rather than by sequence > number. > > > > There is also a new status type, 'Ignore', to allow you to create filters to > drop messages. Now you no longer need to send NSCA alerts with invalid > service names. > > > > Finally, it has been compiled with 64bit and wide character support, so it > should work better with international language messages; however I am unable > to test this. > > > > This version does not yet have a binary for 64bit Windows. I am hoping that > some members of the community who have offered to help will be able to > provide this. > > > > Thankyou for your time, > > > > Steve > > > > --- > > Steve Shipway > > UNIX Systems Administration, University of Auckland, New Zealand > > +64 9 3737 599 x 86487 > > s.shipway at auckland.ac.nz > > P Please consider the environment before printing this e-mail > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- []'s L?vio Zanol Puppim ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 9 17:51:32 2008 From: marc at ena.com (Marc Powell) Date: Thu, 9 Oct 2008 10:51:32 -0500 Subject: Error: Could not add object property in file '/usr/local/etc/nagios/objects/commands.cfg' on line 29. In-Reply-To: <298f05730810090831v4bdff357ya1285bb955df9326@mail.gmail.com> References: <298f05730810090831v4bdff357ya1285bb955df9326@mail.gmail.com> Message-ID: On Oct 9, 2008, at 10:31 AM, Phill Hocking wrote: > Greetings, my name is Phill and I am having difficulties with a fresh > install. Here is the error I get: Welcome Phill. > Warning: Duplicate definition found for command 'notify-host-by-email' > (config file '/usr/local/etc/nagios/objects/commands.cfg', starting on > line 28) > Error: Could not add object property in file > '/usr/local/etc/nagios/objects/commands.cfg' on line 29. Duplicate command_name's aren't permitted. They must be unique. > stuff. The search wrapsin vi for that string notify-host-by-email. > This is why I am > scratching my head. It's already defined in another cfg_file that you specify in nagios.cfg then. Use grep to find which on, choose the one you want to use and remove or comment out the other definition. -- Marc ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From manish at gslab.com Thu Oct 9 18:20:06 2008 From: manish at gslab.com (Manish Sapariya) Date: Thu, 09 Oct 2008 21:50:06 +0530 Subject: Alarming on coredumps on Linux? In-Reply-To: <48EC642A.1050300@aei.ca> References: <48EB9BD2.4010801@thepushors.com> <48EC642A.1050300@aei.ca> Message-ID: <48EE2F36.5070207@gslab.com> Try this out echo "kernel.core_pattern = /tmp/core.%e.%p.%t" >> /etc/sysctl.conf It most probably needs reboot to take effect. After the reboot, all core files will be created in /tmp with exe name, pid and the time stamp appended. I watch the any new core file by using the find with mtime option. I can share the script if you would like to see it. Regards, Manish Thomas Guyot-Sionnest wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 07/10/08 01:26 PM, Tim Pushor wrote: >> Hello everyone, >> >> While not specifically a nagios issue, I am setting up a nagios >> installation to monitor a server that is used to run an interactive >> application by several users at once (> 50). The problem is, >> occasionally the application dumps core, and the users don't always >> notify us when this happens. We'd like to trigger a passive alarm to >> nagios on our application dumping core. >> >> On other OS's (specifically FreeBSD IIRC) the kernel logs coredumps and >> end up in the system log so watching the logfiles with swatch or >> something similar would do the trick. >> >> On my Linux system (CentOS 5.2) it appears that coredumps don't log. >> Does anyone have any ideas how I can trigger an event on coredump on Linux? > > This is not really a nagios issue... AFAIK segfaults are logged in > Linux; have you looked at the kernel messages (dmesg)? > > If it shows in dmesg output but not on your logs, make sure syslog is > configured properly to retrieve those messages. You could also log > kern.* to a specific files to be sure. > > I think log levels can also be tuned with /proc/sys/kernel/printk; see > "man 5 proc". > > - -- > Thomas > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.6 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFI7GQp6dZ+Kt5BchYRAu8TAJ98E5xxKIRDZh8l/gFPd50uZeNM+QCggpct > r7QppHPqVgdZTMZKtgPJYgU= > =Ta0T > -----END PGP SIGNATURE----- > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From matt.rivet at secure-24.com Thu Oct 9 18:48:41 2008 From: matt.rivet at secure-24.com (Matt Rivet) Date: Thu, 9 Oct 2008 12:48:41 -0400 Subject: NRPE way too fragile ? In-Reply-To: <6AB4C075-FECE-4BD0-BC79-A93778EADDDC@nagios.org> References: <48EC8EDB.3050209@inria.fr> <00d301c92957$716d6ca0$544845e0$@com> <6AB4C075-FECE-4BD0-BC79-A93778EADDDC@nagios.org> Message-ID: <3A08B75200A4DF44B83752A09A93AFFB0131E6D4@ex1s24dca.S24.local> I am running into the same issue. I monitoring multiple windows hosts using NRPE and NSClient++ on the windows machines. I have turned the time out up to 20 seconds and this has helped. Currently I may see 3 or 4 time outs usually due to virus scans or back up jobs. Does anyone know any possible tweaks that can be done on the windows machines (using NSClient++) to abolish or at least reduce time outs? -----Original Message----- From: Mark Young [mailto:myoung at nagios.org] Sent: Wednesday, October 08, 2008 12:19 PM To: Jayson Broughton Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] NRPE way too fragile ? -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Oct 8, 2008, at 10:06 AM, Jayson Broughton wrote: > Guillaume, > > We actually have the same problem here where Nagios is setup. I use > the > NRPE daemon on both windows and linux servers. Two of our servers do > backups early in the morning and during that time we get NRPE Timeout > messages from the two servers. I have set the timeout on the server > and the > clients to timeout after 30 seconds, thinking that would fix it. > But alas, > we still get timeout messages. I haven't had much time to see what > I can do > to fix this, so for now our solution is to not email out warning > messages > from those two servers (I have the thresholds set enough where the > critical > messages still gives enough window to take care of the problem > before going > too critical) I have come to the conclusion that the servers are > running > the backup and eating up so much processing that the nrpe times out > trying > to connect and send information. > > If you find a solution or even an idea to try, feel free to let me > know and > I'll give it a shot! NRPE is normally setup with Xinetd listening for incoming connections. When I say normally I mean if you followed the documentation. ;) By default Xinetd has a low threshold of connections per instance in order to lessen the load on the server and prevent DDoS type attacks. You can view what I mentioned in my previous post here: http://article.gmane.org/gmane.network.nagios.user/56713 NRPE can be fine until Nagios decides to run many checks to the same host at the same time that hits the threshold.. For example when you go to the extended host information and "Schedule a check of all services on this host". If you are not running it under Xinetd it may be other issues. Including system load and/or running into possible bugs with NPRE on your system. > >> -----Original Message----- >> From: Guillaume Rousse [mailto:Guillaume.Rousse at inria.fr] >> Sent: Wednesday, October 08, 2008 4:44 AM >> To: nagios-users at lists.sourceforge.net >> Subject: [Nagios-users] NRPE way too fragile ? >> >> Hello list. >> >> I'm using nrpe quite heavily for testing lots of local service on >> all my >> machines. It work usually well, but seems a bit unreliable: too much >> often, nrpe itself fails to accept incoming connections, and test >> fails: >> CHECK_NRPE: Socket timeout after 10 seconds. >> >> stracing nrpe process shows it is probably waiting itself on another >> connection: >> [root at denfert ~]# strace -p 22444 >> Process 22444 attached - interrupt to quit >> select(6, [5], NULL, [5], {0, 170000}) = 0 (Timeout) >> accept(5, 0, NULL) = -1 EAGAIN (Resource >> temporarily unavailable) >> >> It usually recovers itself alone, but that's enough to cause much >> unwanted notifications, even if all monitored services have nrpe >> itself >> as dependency. I'm using ssl encryption, as usually advised, but I'm >> planning shifting to plain-text connection (everything occurs on a >> distinc VLAN, without user access). >> >> Does everyone else has similar experience ? You seem to be running it as a daemon process itself. What system and NRPE version are you running? What version of Nagios? How many NRPE checks are you trying to perform in a given time? You may see some benefit to enabling Nagios to spread its checks out more evenly, though this is simply covering the underlaying problem. Maybe consider running it with the xinetd daemon and increase the number of allowed connections a second as a test. Mark Young ___ Nagios Enterprises, LLC Web: www.nagios.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (Darwin) iEYEARECAAYFAkjs3WoACgkQ0KipU7WwlaWtXgCgs+77/o8Pyh0t/++FIbOEycgx oiAAoMj2awwRG4HCernz7pcdf/K484Ca =oKG0 -----END PGP SIGNATURE----- ------------------------------------------------------------------------ - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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-lists at networkmail.eu Thu Oct 9 19:41:11 2008 From: andy-lists at networkmail.eu (Andy Shellam) Date: Thu, 09 Oct 2008 18:41:11 +0100 Subject: [Nagios-devel] how to specify multiple dependencies In-Reply-To: <48EC6D6B.8000303@inria.fr> References: <48EB3B14.9060606@inria.fr> <48EB94F6.4070906@networkmail.eu> <48EC6D6B.8000303@inria.fr> Message-ID: <48EE4237.3060103@networkmail.eu> Hi Guillaume, >> define servicedependency { >> host_name A >> service_description X >> dependent_host_name B,C >> dependent_service_description Y >> } >> >> I think this says that service X on host A depends on service Y on hosts >> B and C. >> > It says than you have two services Y, running on hosts hosts B and C, > each relying on a single service X, running on host A. If X fails, > monitoring of Y will be affected on both hosts. I'm looking for exactly > the opposite: two redundant authentications backends available, and one > authenticated service, for wich I'd like to avoid useless notifications > if both backends are down. > Ah OK, in that case switch host_name and dependent_host_name and service_description and dependent_service_description around. > >> Whether this is an AND or an OR (e.g. host A depends on hosts >> B AND C, or host A depends on hosts B OR C) I don't know. >> > AFAIK, this is purely syntactic sugar for multiple declarations, so > rather an OR relationship. > Is that not what you need? You asked in your original question "how to specify than A depends on (B or C) ?" The documentation says "You can create several dependencies for a given service, but you must add a separate service dependency definition for each dependency you create" which I would read as you'd need to create 2 separate servicedependency entries, one for the dependency on host/service B and one for the dependency on host/service C to get this effect, again I'm not 100% sure. > >> PS. Both of your last questions should have been directed at the >> nagios-users list - nagios-devel is for reviewing and submitting >> patches, or other questions that concern the development of Nagios. >> >> > Indeed. > Andy ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Edwin.Zoeller at ama-assn.org Thu Oct 9 18:41:10 2008 From: Edwin.Zoeller at ama-assn.org (Edwin Zoeller) Date: Thu, 9 Oct 2008 11:41:10 -0500 Subject: NRPE not display correct results Message-ID: I have just noticed a strange thing and hope that someone out there could shed some lite on it. I have a disk check set to warn at 80% and crit at 10%. If I run the check_disk command locally it returns a warning message that the disk is at 81%, which is correct. But, if I run the check_disk command from out Nagios server using nrpe it reports a status of "Ok". Also, the main display does not display it as a warning. Can anyone help? Thanks, Ed -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From john.nagios at gmail.com Thu Oct 9 21:05:02 2008 From: john.nagios at gmail.com (Nagios User) Date: Thu, 9 Oct 2008 15:05:02 -0400 Subject: How-to debug a NAGIOS-not-sending-email problem ? In-Reply-To: References: Message-ID: Is your mail command under /usr/bin/mail or /bin/mail ? -john On Wed, Oct 8, 2008 at 12:08 PM, Valdinger, Stephen (DOV, MSX) wrote: > The first place that I would look would be your mail and Nagios logs. There is probably something in one of them related to your troubles. > > Stephen Valdinger > MIS Helpdesk Coordinator > 330.365.3622 -O > 740.491.0958 - C > svalding at doverchem.com > Never agrue with an idiot. They drag you down to their level and then beat you with their experience. > > > -----Original Message----- > From: M. S?bastien LELI?VRE [mailto:sebastien.lelievre at aznetwork.fr] > Sent: Wednesday, October 08, 2008 11:21 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] How-to debug a NAGIOS-not-sending-email problem ? > > Greetings, > > I'm experiencing some odd issue with my nagios server. > > It dosen't notify by email anymore > > When I execute the corresponding command in the nagios (user) shell, I > receive an email > > A. So it is not postfix nor a system problem, just nagios which > doesn't send email > > Reload/Restart-ing program (both postfix and nagios) didn't work out > > I do not know where to start my investigation > > Here are some info : > > notify-host-by-email : > > /usr/bin/printf "%b" " Nagios \n\nNotification Type: $NOTIFICATIONTYPE > $\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: > $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /usr/bin/mail -s > "[$HOSTGROUPNOTES$ $NOTIFICATIONTYPE$ Host $HOSTSTATE$ in $HOSTNAME$]" > $CONTACTEMAIL$ > > > notify-service-by-email : > > /usr/bin/printf "%b" " Nagios \n\nNotification Type: $NOTIFICATIONTYPE > $\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress:$HOSTADDRESS > $\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional > Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "[$HOSTGROUPNOTES$ > $NOTIFICATIONTYPE$ Service $SERVICESTATE$ in $HOSTNAME$/$SERVICEDESC$]" > $CONTACTEMAIL$ > > Best Regards > -- > M. S?bastien LELI?VRE > > Ing?nieur Syst?me & Base de Donn?es > > ABF H?bergement / AZ Network > 40, rue Amp?re > 61000 ALEN?ON (ORNE) > FRANCE > > Tel. : + 33 (0) 233 320 616 > Port. : + 33 (0) 673 457 243 > > Poste : 120 > e-mail : sebastien.lelievre at aznetwork.fr > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.morris at hp.com Thu Oct 9 21:08:58 2008 From: patrick.morris at hp.com (Patrick Morris) Date: Thu, 9 Oct 2008 12:08:58 -0700 Subject: NRPE not display correct results In-Reply-To: References: Message-ID: <20081009190858.GM14923@bakgwai.americas.hpqcorp.net> On Thu, 09 Oct 2008, Edwin Zoeller wrote: > I have just noticed a strange thing and hope that someone out there could shed some lite on it. > > I have a disk check set to warn at 80% and crit at 10%. If I run the check_disk command locally it returns a warning message that the disk is at 81%, which is correct. But, if I run the check_disk command from out Nagios server using nrpe it reports a status of "Ok". Also, the main display does not display it as a warning. > > Can anyone help? Without specifics of how you've got your check set up, no, probably not. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lavalamp at spiritual-machines.org Thu Oct 9 21:13:28 2008 From: lavalamp at spiritual-machines.org (Brian A. Seklecki) Date: Thu, 9 Oct 2008 15:13:28 -0400 (EDT) Subject: NRPE not display correct results In-Reply-To: References: Message-ID: <20081009151311.J29402@arbitor.digitalfreaks.org> EZ: We're going to need to see some config files and example outputs. ~BAS On Thu, 9 Oct 2008, Edwin Zoeller wrote: > I have just noticed a strange thing and hope that someone out there -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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-lists at networkmail.eu Thu Oct 9 21:38:42 2008 From: andy-lists at networkmail.eu (Andy Shellam) Date: Thu, 09 Oct 2008 20:38:42 +0100 Subject: NRPE not display correct results In-Reply-To: <20081009190858.GM14923@bakgwai.americas.hpqcorp.net> References: <20081009190858.GM14923@bakgwai.americas.hpqcorp.net> Message-ID: <48EE5DC2.9050308@networkmail.eu> Hi, I thought that check_disk returns a warning/error when the disk space falls _below_ the values you set? Therefore if it's giving 81% an OK but your warning level is 80% - that's correct because 81 (the current free space) is greater than 80 (your warning) and 10 (your critical.) Or is it too late in the evening and I'm missing something? Andy Patrick Morris wrote: > On Thu, 09 Oct 2008, Edwin Zoeller wrote: > > >> I have just noticed a strange thing and hope that someone out there could shed some lite on it. >> >> I have a disk check set to warn at 80% and crit at 10%. If I run the check_disk command locally it returns a warning message that the disk is at 81%, which is correct. But, if I run the check_disk command from out Nagios server using nrpe it reports a status of "Ok". Also, the main display does not display it as a warning. >> >> Can anyone help? >> > > Without specifics of how you've got your check set up, no, probably not. > > > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Guillaume.Rousse at inria.fr Thu Oct 9 22:07:57 2008 From: Guillaume.Rousse at inria.fr (Guillaume Rousse) Date: Thu, 09 Oct 2008 22:07:57 +0200 Subject: Alarming on coredumps on Linux? In-Reply-To: <48EE2F36.5070207@gslab.com> References: <48EB9BD2.4010801@thepushors.com> <48EC642A.1050300@aei.ca> <48EE2F36.5070207@gslab.com> Message-ID: <48EE649D.8010307@inria.fr> Manish Sapariya a ?crit : > Try this out > > echo "kernel.core_pattern = /tmp/core.%e.%p.%t" >> /etc/sysctl.conf > > It most probably needs reboot to take effect. sysctl -w kernel.core_pattern=/tmp/core.%e.%p.%t to change it on the fly. -- Guillaume Rousse Moyens Informatiques - INRIA Futurs Tel: 01 69 35 69 62 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From michael at michael.cl Thu Oct 9 23:45:47 2008 From: michael at michael.cl (Michael =?ISO-8859-1?Q?Fern=E1ndez?= M) Date: Thu, 09 Oct 2008 17:45:47 -0400 Subject: Check_cpu Message-ID: <1223588747.2642.98.camel@amokk.microserv.cl> Hi, Someone knows a plugin to check the cpu, but only if it's at 90% for 5 minutes? I do not need to check the cpu peak..... Is for Linux... (Centos 5.2) Thanks!!! Michael.- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From svalding at doverchem.com Thu Oct 9 23:01:33 2008 From: svalding at doverchem.com (Valdinger, Stephen (DOV, MSX)) Date: Thu, 9 Oct 2008 17:01:33 -0400 Subject: Check_cpu Message-ID: Why not check-cpu from the nagios plugins?? Stephen Valdinger MIS Helpdesk Coordinator P: 330.365.3622 C: 740.491.0958 -----Original Message----- From: Michael Fern?ndez M To: nagios-users at lists.sourceforge.net Sent: Thu Oct 09 17:45:47 2008 Subject: [Nagios-users] Check_cpu Hi, Someone knows a plugin to check the cpu, but only if it's at 90% for 5 minutes? I do not need to check the cpu peak..... Is for Linux... (Centos 5.2) Thanks!!! Michael.- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From michael at michael.cl Thu Oct 9 23:57:07 2008 From: michael at michael.cl (Michael =?ISO-8859-1?Q?Fern=E1ndez?= M) Date: Thu, 09 Oct 2008 17:57:07 -0400 Subject: Check_cpu In-Reply-To: References: Message-ID: <1223589427.2642.106.camel@amokk.microserv.cl> On Thu, 2008-10-09 at 17:01 -0400, Valdinger, Stephen (DOV, MSX) wrote: > Why not check-cpu from the nagios plugins?? > I already did, but nothing like that i found.... Michael.- > > Stephen Valdinger > MIS Helpdesk Coordinator > P: 330.365.3622 > C: 740.491.0958 > > > -----Original Message----- > From: Michael Fern?ndez M > To: nagios-users at lists.sourceforge.net > Sent: Thu Oct 09 17:45:47 2008 > Subject: [Nagios-users] Check_cpu > > Hi, > > Someone knows a plugin to check the cpu, but only if it's at 90% for 5 > minutes? > > I do not need to check the cpu peak..... > > Is for Linux... (Centos 5.2) > > Thanks!!! > > Michael.- > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Jim.Melin at co.hennepin.mn.us Thu Oct 9 23:01:11 2008 From: Jim.Melin at co.hennepin.mn.us (Jim.Melin at co.hennepin.mn.us) Date: Thu, 9 Oct 2008 16:01:11 -0500 Subject: Check_cpu In-Reply-To: <1223588747.2642.98.camel@amokk.microserv.cl> References: <1223588747.2642.98.camel@amokk.microserv.cl> Message-ID: I have been working on a modified check_cpu process that will keep some history and be able to average it. Mostly because I cannot explain check_load clearly enough to management to use it as a resource alarm. I will post back here in a while when I have it working to my satisfaction. James Melin Sr. Systems Software Programmer Hennepin County Mainframe Services 612-348-7147 Michael Fern?ndez M 10/09/2008 03:56 PM To nagios-users at lists.sourceforge.net cc Subject [Nagios-users] Check_cpu Hi, Someone knows a plugin to check the cpu, but only if it's at 90% for 5 minutes? I do not need to check the cpu peak..... Is for Linux... (Centos 5.2) Thanks!!! Michael.- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null Disclaimer: Information in this message or an attachment may be government data and thereby subject to the Minnesota Government Data Practices Act, Minnesota Statutes, Chapter 13, may be subject to attorney-client or work product privilege, may be confidential, privileged, proprietary, or otherwise protected, and the unauthorized review, copying, retransmission, or other use or disclosure of the information is strictly prohibited. If you are not the intended recipient of this message, please immediately notify the sender of the transmission error and then promptly delete this message from your computer system. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From masoud.tabrizi at gmail.com Thu Oct 9 23:17:08 2008 From: masoud.tabrizi at gmail.com (Masoud Tabrizi) Date: Thu, 9 Oct 2008 17:17:08 -0400 Subject: Host shows down while all services but ping show OK Message-ID: Hello All, I am trying to monitor a windows based host over the internal network using Nagios 2.9 and nrpe_nt.0.8. Ping is not allowed over the network; I have setup the hosts and am able to get response for the disk, cpu, memory, but the host itself shows down as ping is not allowed over the network. Is there any way to get around this? Thanks for your help ++++++++++++++++++++++++++++ Masoud Tabrizi P Please consider the environment before printing this email ++++++++++++++++++++++++++++ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From myoung at nagios.org Thu Oct 9 23:39:01 2008 From: myoung at nagios.org (Mark Young) Date: Thu, 9 Oct 2008 16:39:01 -0500 Subject: Host shows down while all services but ping show OK In-Reply-To: References: Message-ID: <2D6814A6-811C-4376-958D-4F50F3027E9D@nagios.org> On Oct 9, 2008, at 4:17 PM, Masoud Tabrizi wrote: > Hello All, > I am trying to monitor a windows based host over the internal > network using Nagios 2.9 and nrpe_nt.0.8. > Ping is not allowed over the network; I have setup the hosts and am > able to get response for the disk, cpu, memory, but the host itself > shows down as ping is not allowed over the network. Is there any way > to get around this? Make a new host check command. Then define that for the hosts you want. It seems nrpe is working on your systems so just use a simple check_nrpe command your host check on those hosts. define command{ command_name new_host_check_cmd command_line $USER1$/check_nrpe -H $HOSTADDRESS$ } define host{ check_command new_host_check_cmd } Mark Young ___ Nagios Enterprises, LLC Web: www.nagios.com ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.morris at hp.com Thu Oct 9 23:33:37 2008 From: patrick.morris at hp.com (Patrick Morris) Date: Thu, 9 Oct 2008 14:33:37 -0700 Subject: Check_cpu In-Reply-To: <1223588747.2642.98.camel@amokk.microserv.cl> References: <1223588747.2642.98.camel@amokk.microserv.cl> Message-ID: <20081009213337.GP14923@bakgwai.americas.hpqcorp.net> On Thu, 09 Oct 2008, Michael Fern?ndez M wrote: > Hi, > > Someone knows a plugin to check the cpu, but only if it's at 90% for 5 > minutes? > > I do not need to check the cpu peak..... > > Is for Linux... (Centos 5.2) > > Thanks!!! > > Michael.- The standard check_cpu can do this. Set the max to 90 and the retries to 5, one minute apart. It'll check 5 times and alert if the CPU was over 90 all five times. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From masoud.tabrizi at gmail.com Thu Oct 9 23:52:09 2008 From: masoud.tabrizi at gmail.com (Masoud Tabrizi) Date: Thu, 9 Oct 2008 17:52:09 -0400 Subject: Host shows down while all services but ping show OK In-Reply-To: <2D6814A6-811C-4376-958D-4F50F3027E9D@nagios.org> References: <2D6814A6-811C-4376-958D-4F50F3027E9D@nagios.org> Message-ID: <3CC771C54894421CA613CE1E829AC5B5@EDI3MT> Thanks for all the suggestions. I am all set now. Created the new check_host and it worked perfectly. Thanks again! M \\\|/// \\ - - // ( @ @ ) o00o-(_)-o00o------------------ Masoud Tabrizi -----------0ooo------------------- ooo0 ( ) ( ) ) / \ ( (_/ \_) Make a new host check command. Then define that for the hosts you want. It seems nrpe is working on your systems so just use a simple check_nrpe command your host check on those hosts. define command{ command_name new_host_check_cmd command_line $USER1$/check_nrpe -H $HOSTADDRESS$ } define host{ check_command new_host_check_cmd } Mark Young ___ Nagios Enterprises, LLC Web: www.nagios.com ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From matt at conundrum.com Mon Oct 6 19:27:41 2008 From: matt at conundrum.com (Matthew Pounsett) Date: Mon, 6 Oct 2008 13:27:41 -0400 Subject: check_by_ssh timeouts / how to work around? In-Reply-To: <5AAAE0F7-C6D7-4801-A64C-324DDDD5F888@gmail.com> References: <47C22FE8-D8C6-4650-9E82-45B1D29C04B1@gmail.com> <3A08B75200A4DF44B83752A09A93AFFB0131E6B9@ex1s24dca.S24.local> <5AAAE0F7-C6D7-4801-A64C-324DDDD5F888@gmail.com> Message-ID: <2B11C488-ABAB-4014-8049-FAD970862053@conundrum.com> > > I believe this to be caused by the check itself is timing out. As when > I try to login it will sometimes take up to a minute or two just to > get a prompt. > As for setting the timeouts for that sort of thing, this is what I do. In my resource.cfg: -- # check_by_ssh timeout $USER4$=10 -- .. and in my commands.cfg definitions.. --- # 'check_disk_remote' command definition define command { command_name check_disk_remote command_line $USER1$/check_by_ssh -H $HOSTADDRESS$ -t $USER4$ - C "$USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$" } --- And I use the same $USER4$ definition for all of the check_by_ssh calls, so that it's easy to tune. Have you looked into the reason for the long login delay though? I think I'd start there. A 60 second wait for ssh to get you a shell indicates some sort of problem. Either the target machine is so resource starved that it can't negotiate the authentication and encryption, or you've got some other delay in there. The most likely culprit to my mind is DNS -- ssh itself, login and your shell on the target machine might all be trying to do a reverse DNS lookup on the source of the connection. If that's timing out, it could cause very long delays. There are lots of other potential problems, but I'd start looking there. -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 194 bytes Desc: This is a digitally signed message part URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.morris at hp.com Thu Oct 9 23:32:11 2008 From: patrick.morris at hp.com (Patrick Morris) Date: Thu, 9 Oct 2008 14:32:11 -0700 Subject: Host shows down while all services but ping show OK In-Reply-To: References: Message-ID: <20081009213211.GO14923@bakgwai.americas.hpqcorp.net> On Thu, 09 Oct 2008, Masoud Tabrizi wrote: > Hello All, > I am trying to monitor a windows based host over the internal network using Nagios 2.9 and nrpe_nt.0.8. > Ping is not allowed over the network; I have setup the hosts and am able to get response for the disk, cpu, memory, but the host itself shows down as ping is not allowed over the network. Is there any way to get around this? Sure. Don't use a ping as a host check if you can't ping hosts. Use some other check that does work. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Aaron.Segura at cabelas.com Thu Oct 9 23:24:11 2008 From: Aaron.Segura at cabelas.com (Aaron Segura) Date: Thu, 9 Oct 2008 15:24:11 -0600 Subject: Host shows down while all services but ping show OK In-Reply-To: References: Message-ID: Change your host check to something that actually works. ________________________________ From: Masoud Tabrizi [mailto:masoud.tabrizi at gmail.com] Sent: Thursday, October 09, 2008 3:17 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Host shows down while all services but ping show OK Hello All, I am trying to monitor a windows based host over the internal network using Nagios 2.9 and nrpe_nt.0.8. Ping is not allowed over the network; I have setup the hosts and am able to get response for the disk, cpu, memory, but the host itself shows down as ping is not allowed over the network. Is there any way to get around this? Thanks for your help ++++++++++++++++++++++++++++ Masoud Tabrizi P Please consider the environment before printing this email ++++++++++++++++++++++++++++ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jon at netdork.net Fri Oct 10 04:10:43 2008 From: jon at netdork.net (Jon Angliss) Date: Thu, 09 Oct 2008 21:10:43 -0500 Subject: Sendmail setup with Nagios References: <78623817FC6.0000011Eizz_abdullah@inbox.com> Message-ID: On Wed, 8 Oct 2008 17:55:09 -0800, Izz Abdullah wrote: >I've read the documentation, and have two options: >1. relay alerts from the Nagios server to our local Exchange server (which is too much company politics) >2. setup sendmail correctly to send alerts > >So, I know now how to do number one (I think), but number 2, cannot. I am an experienced linux user, but have always been anti-sendmail because of the different security risks over the past. I am guessing that not only does sendmail have to be installed, but the Nagios server must also act as a mail server. Can someone please guide me in arranging this setup correctly as I am stuck and need to get alert notifications setup correctly soon. I'm trying to figure out what you're trying to do. Are you trying to send your emails through the exchange server's SMTP service? Or are you trying to get the server running nagios send them directly to their destination? If you're trying to use the Exchange server as a relay, use the SMARTHOST option in Sendmail. However, I think that's overkill for simply relaying. Checkout nullmailer, or ssmtp. Both are small, lightweight smtp services that relay through a server, which in this case would be your exchange server. You just have to be cautious of relying on your Exchange server, as if that goes down, you won't get alerts. -- Jon Angliss ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jon at netdork.net Fri Oct 10 05:21:10 2008 From: jon at netdork.net (Jon Angliss) Date: Thu, 09 Oct 2008 22:21:10 -0500 Subject: How-to debug a NAGIOS-not-sending-email problem ? References: <1223479283.9384.33.camel@AZemaria> Message-ID: <7dite4t89nciivfvr60jg6pl24co13ov5o@4ax.com> On Wed, 08 Oct 2008 17:21:23 +0200, "M." S?bastien LELI?VRE wrote: >Greetings, > >I'm experiencing some odd issue with my nagios server. > >It dosen't notify by email anymore Anymore? So it worked before? What changed? Stuff generally doesn't stop working unless something was changed. >When I execute the corresponding command in the nagios (user) shell, I >receive an email The notification commands below have macros in. How did you execute the same command? Did you increase the debugging levels in nagios to see what it was executing? >I do not know where to start my investigation > >Here are some info : > >notify-host-by-email : > >/usr/bin/printf "%b" " Nagios \n\nNotification Type: $NOTIFICATIONTYPE >$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: >$HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /usr/bin/mail -s >"[$HOSTGROUPNOTES$ $NOTIFICATIONTYPE$ Host $HOSTSTATE$ in $HOSTNAME$]" >$CONTACTEMAIL$ > > >notify-service-by-email : > >/usr/bin/printf "%b" " Nagios \n\nNotification Type: $NOTIFICATIONTYPE >$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress:$HOSTADDRESS >$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional >Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "[$HOSTGROUPNOTES$ >$NOTIFICATIONTYPE$ Service $SERVICESTATE$ in $HOSTNAME$/$SERVICEDESC$]" >$CONTACTEMAIL$ 1. Increase the debugging levels to see what the macros are 2. Make sure there are entries in the logs saying it generated the alerts -- Jon Angliss ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hvdkooij at vanderkooij.org Fri Oct 10 07:46:31 2008 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Fri, 10 Oct 2008 07:46:31 +0200 Subject: Check_cpu In-Reply-To: <20081009213337.GP14923@bakgwai.americas.hpqcorp.net> References: <1223588747.2642.98.camel@amokk.microserv.cl> <20081009213337.GP14923@bakgwai.americas.hpqcorp.net> Message-ID: <48EEEC37.6070100@vanderkooij.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Patrick Morris wrote: > On Thu, 09 Oct 2008, Michael Fern?ndez M wrote: > >> Hi, >> >> Someone knows a plugin to check the cpu, but only if it's at 90% for 5 >> minutes? >> >> I do not need to check the cpu peak..... >> >> Is for Linux... (Centos 5.2) > > The standard check_cpu can do this. Set the max to 90 and the retries > to 5, one minute apart. It'll check 5 times and alert if the CPU was > over 90 all five times. It will take 5 (not so) random snapshots of the CPU usage at that moment. If you want to monitor averages you could gather statistics wit RRD and read the CPU counter to store those. You can then also use RRD to check for the average over the last N minutes. Sounds like a fun thing to make. But I get a lot of those in the queue and no immediate need for this particular fun project. Hugo. - -- hvdkooij at vanderkooij.org http://hugo.vanderkooij.org/ PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc A: Yes. >Q: Are you sure? >>A: Because it reverses the logical flow of conversation. >>>Q: Why is top posting frowned upon? Bored? Click on http://spamornot.org/ and rate those images. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFI7uwxBvzDRVjxmYERAgHNAJ96eJCmcRFHTqx2HmMvw1Ph/1i4gQCggQwB JrWcrbjKFLMh/eNAOc+ftv4= =qGrb -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rupertt at gmail.com Fri Oct 10 09:29:58 2008 From: rupertt at gmail.com (Heiko) Date: Fri, 10 Oct 2008 09:29:58 +0200 Subject: multiple escalation steps Message-ID: <537dcd6b0810100029u58368793ya562a5c39b63527c@mail.gmail.com> Hello, we have planned our notification escalation periods and run into the question if we can define multiple steps in one serviceescalation definition, or if we can "use" multiple templates? I have the following templates: svc-esc-err-step2-tmpl svc-esc-err-step3-tmpl svc-esc-crit-step2-tmpl svc-esc-crit-step3-tmpl svc-esc-debug-step2-tmpl svc-esc-debug-step3-tmpl and tried this: define serviceescalation{ use svc-esc-err-step2-tmpl, svc-esc-err-step3-tmpl hostgroup_name servers2 service_description PING,SWAP, CPU LOAD, ntp } i can reload nagios, but the 3rd step is not displayed in nagios. Right now i would have to do for each step the same escalation definition, which would make the whole thing bloated. Are there some things that can my life easier? greetings Heiko ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hir3npatel at gmail.com Fri Oct 10 14:58:39 2008 From: hir3npatel at gmail.com (hiren) Date: Fri, 10 Oct 2008 14:58:39 +0200 Subject: cgi restart and manual config change Message-ID: <1223643519.6155.11.camel@nazgul.af.didata.local> Hi all, I run nagios server 2.9. within the front end cgi I have configured a host to passive checks only, I disabled active checks. I noticed that this was how the host was configured in the host definition in the config file, I changed the config file and enabled active checks, hoping a HUP to the nagios server would put it into effect. after a HUP I checked the front end and noticed that active checks were still disabled. from this my question is, what exactly does HUP do for nagios, would it ignore changes make to hosts via the cgi's even if the config files have different settings? I can't find anything in the documentation that specifies what HUP will and will not do, and searching hasn't been helpful either. please let me know if I've supplied too little information about this, or am missing something. thanks in advance. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Edwin.Zoeller at ama-assn.org Fri Oct 10 15:25:27 2008 From: Edwin.Zoeller at ama-assn.org (Edwin Zoeller) Date: Fri, 10 Oct 2008 08:25:27 -0500 Subject: NRPE not display correct results In-Reply-To: <48EE5DC2.9050308@networkmail.eu> References: <20081009190858.GM14923@bakgwai.americas.hpqcorp.net> <48EE5DC2.9050308@networkmail.eu> Message-ID: Sorry for the miss understanding. My warning is set for 20%, the file system has used 81% thus leaving 19%, which gives me the warning message when run locally. -----Original Message----- From: Andy Shellam [mailto:andy-lists at networkmail.eu] Sent: Thursday, October 09, 2008 2:39 PM To: nagios-user Mailinglist Subject: Re: [Nagios-users] NRPE not display correct results Hi, I thought that check_disk returns a warning/error when the disk space falls _below_ the values you set? Therefore if it's giving 81% an OK but your warning level is 80% - that's correct because 81 (the current free space) is greater than 80 (your warning) and 10 (your critical.) Or is it too late in the evening and I'm missing something? Andy Patrick Morris wrote: > On Thu, 09 Oct 2008, Edwin Zoeller wrote: > > >> I have just noticed a strange thing and hope that someone out there could shed some lite on it. >> >> I have a disk check set to warn at 80% and crit at 10%. If I run the check_disk command locally it returns a warning message that the disk is at 81%, which is correct. But, if I run the check_disk command from out Nagios server using nrpe it reports a status of "Ok". Also, the main display does not display it as a warning. >> >> Can anyone help? >> > > Without specifics of how you've got your check set up, no, probably not. > > > ------------------------------------------------------------------------ - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dermoth at aei.ca Fri Oct 10 15:57:04 2008 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Fri, 10 Oct 2008 09:57:04 -0400 Subject: NRPE not display correct results In-Reply-To: References: <20081009190858.GM14923@bakgwai.americas.hpqcorp.net> <48EE5DC2.9050308@networkmail.eu> Message-ID: <48EF5F30.2080603@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 10/10/08 09:25 AM, Edwin Zoeller wrote: > Sorry for the miss understanding. > > My warning is set for 20%, the file system has used 81% thus leaving > 19%, which gives me the warning message when run locally. What is the check command defined in Nagios (show both the one in the service definition and the checkcommand object matching it). What it the check command defined in the nrpe configuration? - -- Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFI718v6dZ+Kt5BchYRAiH7AJ40nlvFHtPinC1JyTHcUT1DVctc6ACg4mHs sk9sA7I7iWInWTl0zA6cysk= =2mSf -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kenneho.ndu at gmail.com Fri Oct 10 16:17:55 2008 From: kenneho.ndu at gmail.com (Kenneth Holter) Date: Fri, 10 Oct 2008 16:17:55 +0200 Subject: Monitoring which user is running a service/process Message-ID: Hello all. I have some processes that are meant to be run by user A, but are often (for some human error reason) run by the root user. Is there a way to set up Nagios to alert me whenever this happens? Regards, Kenneth Holter -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Aaron.Segura at cabelas.com Fri Oct 10 16:28:55 2008 From: Aaron.Segura at cabelas.com (Aaron Segura) Date: Fri, 10 Oct 2008 08:28:55 -0600 Subject: Monitoring which user is running a service/process In-Reply-To: References: Message-ID: Yes. Note the '-u' option. $ ./check_procs -h check_procs (nagios-plugins 1.4.2) 1.46 Copyright (c) 1999 Ethan Galstad Copyright (c) 2000-2004 Nagios Plugin Development Team Checks all processes and generates WARNING or CRITICAL states if the specified metric is outside the required threshold ranges. The metric defaults to number of processes. Search filters can be applied to limit the processes to check. Usage: check_procs -w -c [-m metric] [-s state] [-p ppid] [-u user] [-r rss] [-z vsz] [-P %cpu] [-a argument-array] [-C command] [-t timeout] [-v] Required Arguments: -w, --warning=RANGE Generate warning state if metric is outside this range -c, --critical=RANGE Generate critical state if metric is outside this range Optional Arguments: -m, --metric=TYPE Check thresholds against metric. Valid types: PROCS - number of processes (default) VSZ - virtual memory size RSS - resident set memory size CPU - percentage cpu ELAPSED - time elapsed in seconds -t, --timeout=INTEGER Seconds before connection times out (default: 10) -v, --verbose Extra information. Up to 3 verbosity levels Optional Filters: -s, --state=STATUSFLAGS Only scan for processes that have, in the output of `ps`, one or more of the status flags you specify (for example R, Z, S, RS, RSZDT, plus others based on the output of your 'ps' command). -p, --ppid=PPID Only scan for children of the parent process ID indicated. -z, --vsz=VSZ Only scan for processes with vsz higher than indicated. -r, --rss=RSS Only scan for processes with rss higher than indicated. -P, --pcpu=PCPU Only scan for processes with pcpu higher than indicated. -u, --user=USER Only scan for processes with user name or ID indicated. -a, --argument-array=STRING Only scan for processes with args that contain STRING. -C, --command=COMMAND Only scan for exact matches of COMMAND (without path). RANGEs are specified 'min:max' or 'min:' or ':max' (or 'max'). If specified 'max:min', a warning status will be generated if the count is inside the specified range This plugin checks the number of currently running processes and generates WARNING or CRITICAL states if the process count is outside the specified threshold ranges. The process count can be filtered by process owner, parent process PID, current state (e.g., 'Z'), or may be the total number of running processes Examples: check_procs -w 2:2 -c 2:1024 -C portsentry Warning if not two processes with command name portsentry. Critical if < 2 or > 1024 processes check_procs -w 10 -a '/usr/local/bin/perl' -u root Warning alert if > 10 processes with command arguments containing '/usr/local/bin/perl' and owned by root check_procs -w 50000 -c 100000 --metric=VSZ Alert if vsz of any processes over 50K or 100K check_procs -w 10 -c 20 --metric=CPU Alert if cpu of any processes over 10% or 20% ________________________________ From: Kenneth Holter [mailto:kenneho.ndu at gmail.com] Sent: Friday, October 10, 2008 8:18 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Monitoring which user is running a service/process Hello all. I have some processes that are meant to be run by user A, but are often (for some human error reason) run by the root user. Is there a way to set up Nagios to alert me whenever this happens? Regards, Kenneth Holter -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bbarriere at sle-fr.com Fri Oct 10 16:02:37 2008 From: bbarriere at sle-fr.com (Benoit Barriere) Date: Fri, 10 Oct 2008 16:02:37 +0200 Subject: undeterminate data in report Message-ID: Hi all, I have a problem about my archives log file. I had to change a description service in all archives logs (deleting a space character) and also in my nagios conf. I have done that by sed command. So all my logs are modified correctly if I see my logs by vi command. But nagios don't report correctly all datas before my modification. All datas before the modification aren't shown in the report ( see screenshot) My nagios release is : 2.12 Any ideas ? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 77133 bytes Desc: image001.jpg URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 10 16:54:14 2008 From: marc at ena.com (Marc Powell) Date: Fri, 10 Oct 2008 09:54:14 -0500 Subject: cgi restart and manual config change In-Reply-To: <1223643519.6155.11.camel@nazgul.af.didata.local> References: <1223643519.6155.11.camel@nazgul.af.didata.local> Message-ID: On Oct 10, 2008, at 7:58 AM, hiren wrote: > from this my question is, what exactly does HUP do for nagios, would > it > ignore changes make to hosts via the cgi's even if the config files > have > different settings? A HUP tells nagios to re-read it's config files and apply any changes. I suspect that you have retention enabled though and that does change how some host/service parameters behave on reload/restart (yours is one of them). http://nagios.sourceforge.net/docs/2_0/xodtemplate.html "Retention Notes It is important to point out that several directives in host and service definitions may not be picked up by Nagios when you change them. Host and service directives that can exhibit this behavior are marked with an asterisk (*). The reason for this behavior is due to the fact that Nagios chooses to honor values stored in the state retention file over values found in the config files, assuming you have state retention enabled on a program-wide basis and the value of the directive is changed during runtime (by submitting an external command). One way to get around this problem is to disable the retention of non- status information using the retain_nonstatus_information directive in the host and service definitions. Disabling this directive will cause Nagios to take the initial values for these directives from your config files, rather than from the state retention file when it (re)starts. Using this option is not recommended, as it may result in some unexpected (from your point of view) results. Alternatively, you can issue the appropriate external command or change the value of the host or service directive via the web interface, so that it matches what you've changed it to in the config files. This is usually done by using the extended information CGI. This option takes a bit more work, but is preferable to disabling the retention of non-status information (mentioned above). " -- Marc ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 10 17:00:51 2008 From: marc at ena.com (Marc Powell) Date: Fri, 10 Oct 2008 10:00:51 -0500 Subject: undeterminate data in report In-Reply-To: References: Message-ID: On Oct 10, 2008, at 9:02 AM, Benoit Barriere wrote: > Hi all, > > I have a problem about my archives log file. > > I had to change a description service in all archives logs (deleting > a space character) and also in my nagios conf. I have done that by > sed command. So all my logs are modified correctly if I see my logs > by vi command. But nagios don?t report correctly all datas before my > modification. All datas before the modification aren?t shown in the > report ( see screenshot) Verify that your sed did what you think it did and that you didn't munge the lines such that nagios can't parse them. It would appear that there are no matches in the log files you've specified until Oct 7, 14:53:22. Also, is there a SERVICE ALERT entry in the log files between Oct 3 15:59:45 and Oct 7 14:53:22 or in the 4 previous archive log files? If not, nagios will use your 'First assumed service state' of Unspecified/Indeterminate. -- Marc ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hir3npatel at gmail.com Fri Oct 10 17:22:41 2008 From: hir3npatel at gmail.com (hiren) Date: Fri, 10 Oct 2008 17:22:41 +0200 Subject: cgi restart and manual config change In-Reply-To: References: <1223643519.6155.11.camel@nazgul.af.didata.local> Message-ID: <1223652161.6155.19.camel@nazgul.af.didata.local> On Fri, 2008-10-10 at 09:54 -0500, Marc Powell wrote: > On Oct 10, 2008, at 7:58 AM, hiren wrote: > > > from this my question is, what exactly does HUP do for nagios, would > > it > > ignore changes make to hosts via the cgi's even if the config files > > have > > different settings? > > A HUP tells nagios to re-read it's config files and apply any changes. > I suspect that you have retention enabled though and that does change > how some host/service parameters behave on reload/restart (yours is > one of them). I do have retention switched on, hadn't realized this, and obviously haven't gone through all the documentation. thanks a lot. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From antoine.musso at laposte.fr Fri Oct 10 17:26:12 2008 From: antoine.musso at laposte.fr (Antoine Musso) Date: Fri, 10 Oct 2008 17:26:12 +0200 Subject: service latency troubles Message-ID: <48EF7414.50608@laposte.fr> Hello, For testing purposes, we are monitoring 1750 services on 580 hosts. We would like to check each service every 300 second, unfortunatly, nagios report a service check latency of 150 to 250 seconds ! I noticed nagios launch roughly 200 checks and then idle for roughly a minute. I checked that using a lame script : while true; do ps -u nagios | wc -l; sleep 1; done; Our inter_check_delay_method and inter_leave_factor_method are set to smart : SERVICE SCHEDULING INFORMATION ------------------------------- Total services: 1750 Total scheduled services: 1750 Service inter-check delay method: SMART Average service check interval: 300.00 sec ^^^ This is our aim -----------------------/// Inter-check delay: 0.17 sec Interleave factor method: SMART Average services per host: 3.01 Service interleave factor: 4 Max service check spread: 5 min First scheduled check: Fri Oct 10 17:00:15 2008 Last scheduled check: Fri Oct 10 17:05:15 2008 The maximum concurrent service checks is set to 200 : CHECK PROCESSING INFORMATION ---------------------------- Check result reaper interval: 10 sec Max concurrent service checks: 200 And here is an overview of nagiostat output (we do not use passive checks nor flapping detection). Total Services: 1750 Services Checked: 1750 Services Scheduled: 1750 Services Actively Checked: 1750 Total Service State Change: 0.000 / 55.720 / 0.530 % Active Service Latency: 146.819 / 214.765 / 177.500 sec Active Service Execution Time: 0.083 / 12.984 / 1.074 sec Active Service State Change: 0.000 / 55.720 / 0.530 % Active Services Last 1/5/15/60 min: 92 / 1098 / 1750 / 1750 Services Ok/Warn/Unk/Crit: 1671 / 60 / 7 / 12 Active Service Checks Last 1/5/15 min: 176 / 1159 / 3432 Scheduled: 176 / 1159 / 3432 On-demand: 0 / 0 / 0 Cached: 0 / 0 / 0 I have not found how to make nagios to launch service checks more often than every minutes. Does anyone have any idea ? :) -- Antoine MUSSO DISIT/PROD/QFO/OUT mailto:antoine.musso at laposte.fr t?l. 02 40 12 73 62 -------------- next part -------------- Post-scriptum La Poste Ce message est confidentiel. Sous r?serve de tout accord conclu par ?crit entre vous et La Poste, son contenu ne repr?sente en aucun cas un engagement de la part de La Poste. Toute publication, utilisation ou diffusion, m?me partielle, doit ?tre autoris?e pr?alablement. Si vous n'?tes pas destinataire de ce message, merci d'en avertir imm?diatement l'exp?diteur. -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 10 18:40:52 2008 From: marc at ena.com (Marc Powell) Date: Fri, 10 Oct 2008 11:40:52 -0500 Subject: undeterminate data in report In-Reply-To: References: Message-ID: <4D72F042-6B34-41D1-AAAE-391AB182F512@ena.com> Please always respond on list so that others, now and in the future, benefit from your experience. On Oct 10, 2008, at 10:27 AM, Benoit Barriere wrote: > I confirm that my sed command has done the job. If I check my > nagios-10-07-2008-00.log file > > All seems correct: > > > [1223244000] CURRENT SERVICE_STATE: > SRV_CS_HCC;PROCESS_cs_kernel.exe;OK;HARD;1;1 cs_kernel.exe Running > (Ram:24.79 MB) ? > [1223244149] SERVICE_ALERT: SRV_CS_HCC;PROCESS_cs_kernel.exe;OK;HARD; > 1;1 cs_kernel.exe Running (Ram:24.81 MB) -- > > I have a lot of service alerts before the Oct 7 : for example the > Oct 4 log file > > [1222985058] SERVICE_ALERT: SRV_CS_HCC;PROCESS_cs_kernel.exe;OK;HARD; > 1;1 cs_kernel.exe Running (Ram:38.82 MB) -- > > Any ideas Did you change permissions on the files such that your web server can't read them any more? How about if you set the start date of your report to be Oct 3? What you've done shouldn't cause a problem. I do the same kind of thing for hostnames several times a month. -- Marc ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lavalamp at spiritual-machines.org Fri Oct 10 19:42:16 2008 From: lavalamp at spiritual-machines.org (Brian A. Seklecki) Date: Fri, 10 Oct 2008 13:42:16 -0400 (EDT) Subject: Check_CVSUp / PServer - Nagios Plugins? Message-ID: <20081010133141.D29402@arbitor.digitalfreaks.org> Hey all: One of the big pitfalls of running a public CVS/CVSup/FTP mirror seems to be poor reporting on failed updates. I'd like add some Nagios monitoring to our project. For FTP and CVSUP rsyncs, I can have my cron(8)'d update scripts touch(1) a file if [ $? = 0 ]; then check them with libexec/nagios/check_file_age for mtime/utime. However, I'd also like to monitor the CVSup and PServer services as well at the protocol level. There do not seem to be any plugins in the public domain. Ideas: CVSUp: - php/perl/python bindings/libraries to talk cvsup protocol and maybe query a list of collections, plus the protocol version negotiated? - Is there maybe a way to exec() the cvsup(1)/csup(1) client in "list" mode? Does the protocol have a list operation? CVS Pserver: - Maybe just do a "cvs log src/Makefile" -- verifies that the protocol is active. SSH: - Duh FTP/RSYNC: - Yea Thougths? Discussion? l8* -lava (Brian A. Seklecki - Pittsburgh, PA, USA) http://www.spiritual-machines.org/ "Guilty? Yeah. But he knows it. I mean, you're guilty. You just don't know it. So who's really in jail?" ~Maynard James Keenan _______________________________________________ freebsd-questions at freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org" From tim at thepushors.com Fri Oct 10 19:39:43 2008 From: tim at thepushors.com (Tim Pushor) Date: Fri, 10 Oct 2008 11:39:43 -0600 Subject: Alarming on coredumps on Linux? In-Reply-To: <48EC642A.1050300@aei.ca> References: <48EB9BD2.4010801@thepushors.com> <48EC642A.1050300@aei.ca> Message-ID: <48EF935F.3050302@thepushors.com> Thomas Guyot-Sionnest wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 07/10/08 01:26 PM, Tim Pushor wrote: > >> Hello everyone, >> >> While not specifically a nagios issue, I am setting up a nagios >> installation to monitor a server that is used to run an interactive >> application by several users at once (> 50). The problem is, >> occasionally the application dumps core, and the users don't always >> notify us when this happens. We'd like to trigger a passive alarm to >> nagios on our application dumping core. >> >> On other OS's (specifically FreeBSD IIRC) the kernel logs coredumps and >> end up in the system log so watching the logfiles with swatch or >> something similar would do the trick. >> >> On my Linux system (CentOS 5.2) it appears that coredumps don't log. >> Does anyone have any ideas how I can trigger an event on coredump on Linux? >> > > This is not really a nagios issue... AFAIK segfaults are logged in > Linux; have you looked at the kernel messages (dmesg)? > > If it shows in dmesg output but not on your logs, make sure syslog is > configured properly to retrieve those messages. You could also log > kern.* to a specific files to be sure. > > I think log levels can also be tuned with /proc/sys/kernel/printk; see > "man 5 proc". > > Thanks to all that responded. In case any one else finds this thread looking for something similar it seems that userland segfault reporting was just just added to the kernel and my version of Linux (Centos 5.2) doesn't have it. Bummer. Thanks again, Tim ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.morris at hp.com Fri Oct 10 20:53:44 2008 From: patrick.morris at hp.com (Patrick Morris) Date: Fri, 10 Oct 2008 11:53:44 -0700 Subject: Check_cpu In-Reply-To: <48EEEC37.6070100@vanderkooij.org> References: <1223588747.2642.98.camel@amokk.microserv.cl> <20081009213337.GP14923@bakgwai.americas.hpqcorp.net> <48EEEC37.6070100@vanderkooij.org> Message-ID: <20081010185344.GR14923@bakgwai.americas.hpqcorp.net> Hi Hugo! On Fri, 10 Oct 2008, Hugo van der Kooij wrote: > Patrick Morris wrote: > > On Thu, 09 Oct 2008, Michael Fern?ndez M wrote: > > > >> Hi, > >> > >> Someone knows a plugin to check the cpu, but only if it's at 90% for 5 > >> minutes? > >> > >> I do not need to check the cpu peak..... > >> > >> Is for Linux... (Centos 5.2) > > > > The standard check_cpu can do this. Set the max to 90 and the retries > > to 5, one minute apart. It'll check 5 times and alert if the CPU was > > over 90 all five times. > > It will take 5 (not so) random snapshots of the CPU usage at that moment. > > If you want to monitor averages you could gather statistics wit RRD and > read the CPU counter to store those. > > You can then also use RRD to check for the average over the last N minutes. > > Sounds like a fun thing to make. But I get a lot of those > in the queue and no immediate need for this particular fun project. At the risk of belaboring the point, if the goal is to see if CPU remains over 90% for five minutes, and five samples at one-minute intervals all say it was over 90%, how would the results be different if you were sampling the CPU counter and throwing it into RRD? If the samples were more frequent I can see it being more accurate, but that could be done either way. In either case your data's only going to be as good as your samples and, as far as I can tell, there should be no appreciable difference between doing it with check_cpu and doing it by some other method. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From david.bank at ix.nc.gov Fri Oct 10 21:37:35 2008 From: david.bank at ix.nc.gov (David Bank) Date: Fri, 10 Oct 2008 15:37:35 -0400 (EDT) Subject: Nagios v3.0 Statusmap and IE Message-ID: Hello the list. Happy Nagios user here who has run into a bit of a problem. My boss also likes Nagios, and wants to show it to his boss. However, my boss (and his boss) uses Internet Exploder (v6.0.2900.2180 on XP SP2) and it doesn't seem to be able to render the "Balanced Tree" status map correctly. The map shows up as a thin vertical line. We've only got about 300 hosts in Nagios, and the Statusmap image is only about 116KB (roughly 24,000 pixels wide by 500 pixels tall) in PNG format. The "Circular" versions of the Statusmap seem to work fine, as does the "Depth layers". But both "Balanced Tree" and "Collapsed Tree" fail to display properly. All Statusmaps display fine in Firefox (various versions; on both Winblows and Linux) and also on IE on Linux (v6.0 running under WINE). So this issue is specific to IE on Winblows. I also don't recall having this issue with Nagios v2.x before we migrated to v3, but I'm not sure anyone ever used IE for it when we were on that version. When I originally installed Nagios v3.0, I didn't have the gd2 libraries on the system. I've since added them and re-compiled/re-installed the CGIs. I do not have anything defined for "statusmap_background_image" in cgi.cfg. I've added imagepaks and several other images for use in the various statusmaps and screens - those all work fine (mostly JPEGs). We'd really like to be able to showcase Nagios up the management chain, but we're not going to be able to "sell" it unless we get all the Statusmaps working with IE on Winblows. Sad, but that's the way it is, at least for the time being. Anyone seen this, or have any suggestions? ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hvdkooij at vanderkooij.org Fri Oct 10 23:33:38 2008 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Fri, 10 Oct 2008 23:33:38 +0200 Subject: Check_cpu In-Reply-To: <20081010185344.GR14923@bakgwai.americas.hpqcorp.net> References: <1223588747.2642.98.camel@amokk.microserv.cl> <20081009213337.GP14923@bakgwai.americas.hpqcorp.net> <48EEEC37.6070100@vanderkooij.org> <20081010185344.GR14923@bakgwai.americas.hpqcorp.net> Message-ID: <48EFCA32.5050900@vanderkooij.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Patrick Morris wrote: > Hi Hugo! > > On Fri, 10 Oct 2008, Hugo van der Kooij wrote: > >> Patrick Morris wrote: >>> On Thu, 09 Oct 2008, Michael Fern?ndez M wrote: >>> >>>> Hi, >>>> >>>> Someone knows a plugin to check the cpu, but only if it's at 90% for 5 >>>> minutes? >>>> >>>> I do not need to check the cpu peak..... >>>> >>>> Is for Linux... (Centos 5.2) >>> The standard check_cpu can do this. Set the max to 90 and the retries >>> to 5, one minute apart. It'll check 5 times and alert if the CPU was >>> over 90 all five times. >> It will take 5 (not so) random snapshots of the CPU usage at that moment. >> >> If you want to monitor averages you could gather statistics wit RRD and >> read the CPU counter to store those. >> >> You can then also use RRD to check for the average over the last N minutes. >> >> Sounds like a fun thing to make. But I get a lot of those >> in the queue and no immediate need for this particular fun project. > > At the risk of belaboring the point, if the goal is to see if CPU > remains over 90% for five minutes, and five samples at one-minute > intervals all say it was over 90%, how would the results be different > if you were sampling the CPU counter and throwing it into RRD? At 0:00:00 you CPU is 95% busy, it drops to 9% at 0:00:03, then raises to 93% at 0:00:54, drops to 7% at 0:01:08, ....... So what is you average if you only check at the whole minutes? And what if you double the amount of samples? So the best way is to do this the same way you would do this with network interfaces. Take an interval and see how much time the CPU spend in system, nice and user land. Hugo. - -- hvdkooij at vanderkooij.org http://hugo.vanderkooij.org/ PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc A: Yes. >Q: Are you sure? >>A: Because it reverses the logical flow of conversation. >>>Q: Why is top posting frowned upon? Bored? Click on http://spamornot.org/ and rate those images. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFI78oNBvzDRVjxmYERArz3AJkBlVsgN0kb2JcBcwgSWsZZRpQgAgCgnKbq 5fDqYbM02PqcjyPM11UY2so= =46sx -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kelly.terry.jones at gmail.com Sat Oct 11 19:15:19 2008 From: kelly.terry.jones at gmail.com (Kelly Jones) Date: Sat, 11 Oct 2008 10:15:19 -0700 Subject: Reformatting "service detail" and similar pages Message-ID: <26face530810111015g560a9c96w12c734dc918ae1da@mail.gmail.com> When I click "service detail", it gives me some information on all my services. Can I change what information is displayed and how it's displayed? -- We're just a Bunch Of Regular Guys, a collective group that's trying to understand and assimilate technology. We feel that resistance to new ideas and technology is unwise and ultimately futile. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 11 20:42:29 2008 From: marc at ena.com (Marc Powell) Date: Sat, 11 Oct 2008 13:42:29 -0500 Subject: Reformatting "service detail" and similar pages In-Reply-To: <26face530810111015g560a9c96w12c734dc918ae1da@mail.gmail.com> References: <26face530810111015g560a9c96w12c734dc918ae1da@mail.gmail.com> Message-ID: <96599257-ED36-4D79-8A2C-18C5C5859529@ena.com> On Oct 11, 2008, at 12:15 PM, Kelly Jones wrote: > When I click "service detail", it gives me some information on all my > services. > > Can I change what information is displayed and how it's displayed? Not without changing the code in status.c and recompiling. -- Marc ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From perldork at webwizarddesign.com Sat Oct 11 21:18:07 2008 From: perldork at webwizarddesign.com (Max) Date: Sat, 11 Oct 2008 15:18:07 -0400 Subject: Reformatting "service detail" and similar pages In-Reply-To: <26face530810111015g560a9c96w12c734dc918ae1da@mail.gmail.com> References: <26face530810111015g560a9c96w12c734dc918ae1da@mail.gmail.com> Message-ID: On Sat, Oct 11, 2008 at 1:15 PM, Kelly Jones wrote: > Can I change what information is displayed and how it's displayed? if you are comfortable using JSON and doing some custom web development yourself, you can use http://www.yannj.fr/nagios2json and make whatever kind of display you want :). I used this to create a hobbit-like display of host groups from Nagios (including the simple bubble-up logic hobbit uses) for people at my job who wanted to see the flexibility of Nagios. The Nagios2JSON project is young and it is obvious the developer is a busy person and could use additional help, but nonetheless the project is in a very usable and useful state. - Max ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 12 01:10:06 2008 From: ae at op5.se (Andreas Ericsson) Date: Sun, 12 Oct 2008 01:10:06 +0200 Subject: service latency troubles In-Reply-To: <48EF7414.50608@laposte.fr> References: <48EF7414.50608@laposte.fr> Message-ID: <48F1324E.70203@op5.se> Antoine Musso wrote: > Hello, > > For testing purposes, we are monitoring 1750 services on 580 hosts. We > would like to check each service every 300 second, unfortunatly, nagios > report a service check latency of 150 to 250 seconds ! > > I noticed nagios launch roughly 200 checks and then idle for roughly a > minute. I checked that using a lame script : > > while true; do ps -u nagios | wc -l; sleep 1; done; > > > Our inter_check_delay_method and inter_leave_factor_method are set to > smart : > > SERVICE SCHEDULING INFORMATION > ------------------------------- > Total services: 1750 > Total scheduled services: 1750 > Service inter-check delay method: SMART > Average service check interval: 300.00 sec > ^^^ > This is our aim -----------------------/// > > Inter-check delay: 0.17 sec > Interleave factor method: SMART > Average services per host: 3.01 > Service interleave factor: 4 > Max service check spread: 5 min > First scheduled check: Fri Oct 10 17:00:15 2008 > Last scheduled check: Fri Oct 10 17:05:15 2008 > > > The maximum concurrent service checks is set to 200 : > > CHECK PROCESSING INFORMATION > ---------------------------- > Check result reaper interval: 10 sec > Max concurrent service checks: 200 > > > And here is an overview of nagiostat output (we do not use passive > checks nor flapping detection). > > Total Services: 1750 > Services Checked: 1750 > Services Scheduled: 1750 > Services Actively Checked: 1750 > > Total Service State Change: 0.000 / 55.720 / 0.530 % > Active Service Latency: 146.819 / 214.765 / 177.500 sec > Active Service Execution Time: 0.083 / 12.984 / 1.074 sec > Active Service State Change: 0.000 / 55.720 / 0.530 % > Active Services Last 1/5/15/60 min: 92 / 1098 / 1750 / 1750 > Services Ok/Warn/Unk/Crit: 1671 / 60 / 7 / 12 > > Active Service Checks Last 1/5/15 min: 176 / 1159 / 3432 > Scheduled: 176 / 1159 / 3432 > On-demand: 0 / 0 / 0 > Cached: 0 / 0 / 0 > > > I have not found how to make nagios to launch service checks more often > than every minutes. Does anyone have any idea ? :) > As detailed as your report is, it doesn't mention what OS (with version) you're using, nor does it mention what version of Nagios you're using. Besides that though, what other "extras" are you using? Typical latency- raisers are: * OCHP/OCSP commands * Older versions of NDOUtils * Home-written eventbroker modules * Clumsily written plugins that don't time out in a timely manner and don't complete quickly enough. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From u_d_myzone at yahoo.com Mon Oct 13 08:43:54 2008 From: u_d_myzone at yahoo.com (yudhi putra) Date: Sun, 12 Oct 2008 23:43:54 -0700 (PDT) Subject: nagios web - internal server error Message-ID: <278332.60793.qm@web63001.mail.re1.yahoo.com> i install nagios on fc8 and i get this problem : in my nagios web i found my alert history,notifications,and event log has an 'internal server error' can anybody solve this problem?....thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From u_d_myzone at yahoo.com Mon Oct 13 08:47:53 2008 From: u_d_myzone at yahoo.com (yudhi putra) Date: Sun, 12 Oct 2008 23:47:53 -0700 (PDT) Subject: nagios redundant method......... Message-ID: <652395.69318.qm@web63002.mail.re1.yahoo.com> can anyone help me to give the detail configuration on how setting nagios in the redundant method.......i install my nagios on fc8.......thanks a lot........ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From andurin at process-zero.de Mon Oct 13 08:59:12 2008 From: andurin at process-zero.de (=?ISO-8859-1?Q?Hendrik_B=E4cker?=) Date: Mon, 13 Oct 2008 08:59:12 +0200 Subject: nagios web - internal server error In-Reply-To: <278332.60793.qm@web63001.mail.re1.yahoo.com> References: <278332.60793.qm@web63001.mail.re1.yahoo.com> Message-ID: <48F2F1C0.6050705@process-zero.de> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 yudhi putra schrieb: > i install nagios on fc8 and i get this problem : in my nagios web i > found my alert history,notifications,and event log has an > 'internal server error' can anybody solve this problem?....thanks > > > You don't realy think that this might be enough informations to help you, don't you? Nagios Version? Apache Version? RPM or Source compiled? Logs from apache error / access log? -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) iD8DBQFI8vHAlI0PwfxLQjkRAtsnAJsEVJ/uxA3+hYxZs/KusY+DFn7yRQCfZpKV 7TTyNuiZucCwpbzWvmy9Z/8= =dzay -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From alexdehaini at gmail.com Mon Oct 13 10:06:47 2008 From: alexdehaini at gmail.com (Alex Dehaini) Date: Mon, 13 Oct 2008 08:06:47 +0000 Subject: nagios web - internal server error In-Reply-To: <48F2F1C0.6050705@process-zero.de> References: <278332.60793.qm@web63001.mail.re1.yahoo.com> <48F2F1C0.6050705@process-zero.de> Message-ID: <4b008f7d0810130106g67ea3173na866e53c58915c4c@mail.gmail.com> Give us more info i.e. nagios version output from apache log compilation logs stuff like that. This will give us a clue about ur environment and how better to assist you Lex On Mon, Oct 13, 2008 at 6:59 AM, Hendrik B?cker wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > yudhi putra schrieb: > > i install nagios on fc8 and i get this problem : in my nagios web i > > found my alert history,notifications,and event log has an > > 'internal server error' can anybody solve this problem?....thanks > > > > > > > You don't realy think that this might be enough informations to help > you, don't you? > > Nagios Version? > Apache Version? > RPM or Source compiled? > Logs from apache error / access log? > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.7 (MingW32) > > iD8DBQFI8vHAlI0PwfxLQjkRAtsnAJsEVJ/uxA3+hYxZs/KusY+DFn7yRQCfZpKV > 7TTyNuiZucCwpbzWvmy9Z/8= > =dzay > -----END PGP SIGNATURE----- > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Alex Dehaini Developer Site - www.alexdehaini.com Email - alexdehaini at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 13 10:42:38 2008 From: ae at op5.se (Andreas Ericsson) Date: Mon, 13 Oct 2008 10:42:38 +0200 Subject: nagios redundant method......... In-Reply-To: <652395.69318.qm@web63002.mail.re1.yahoo.com> References: <652395.69318.qm@web63002.mail.re1.yahoo.com> Message-ID: <48F309FE.6000802@op5.se> yudhi putra wrote: > can anyone help me to give the detail configuration on how setting nagios in the redundant method.......i install my nagios on fc8.......thanks a lot........ > > RTFM or pay someone to do it for you. That's about as detailed as it gets ;-) -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From antoine.musso at laposte.fr Mon Oct 13 15:29:52 2008 From: antoine.musso at laposte.fr (Antoine Musso) Date: Mon, 13 Oct 2008 15:29:52 +0200 Subject: service latency troubles In-Reply-To: <48F1324E.70203@op5.se> References: <48EF7414.50608@laposte.fr> <48F1324E.70203@op5.se> Message-ID: <48F34D50.3050909@laposte.fr> Andreas Ericsson wrote : > As detailed as your report is, it doesn't mention what OS (with version) > you're using, nor does it mention what version of Nagios you're using. > > Besides that though, what other "extras" are you using? Typical latency- > raisers are: > * OCHP/OCSP commands > * Older versions of NDOUtils > * Home-written eventbroker modules > * Clumsily written plugins that don't time out in a timely manner and > don't complete quickly enough. Hello Andreas, Some details about our versions: - Linux Redhat Enterprise 4 (x86_64, kernel 2.6.9). - Nagios : 3.0.3 - NDOutils : 1.4b7 The OCHP/OCSP commands is just doing an echo to a file. -- Antoine MUSSO DISIT/PROD/QFO/OUT mailto:antoine.musso at laposte.fr t?l. 02 40 12 73 62 -------------- next part -------------- Post-scriptum La Poste Ce message est confidentiel. Sous r?serve de tout accord conclu par ?crit entre vous et La Poste, son contenu ne repr?sente en aucun cas un engagement de la part de La Poste. Toute publication, utilisation ou diffusion, m?me partielle, doit ?tre autoris?e pr?alablement. Si vous n'?tes pas destinataire de ce message, merci d'en avertir imm?diatement l'exp?diteur. -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bbarriere at sle-fr.com Mon Oct 13 16:46:03 2008 From: bbarriere at sle-fr.com (Benoit Barriere) Date: Mon, 13 Oct 2008 16:46:03 +0200 Subject: =?iso-8859-1?q?RE=A0=3A__undeterminate_data_in_rep?= =?iso-8859-1?q?ort?= References: <53C1A9A28F35584788A8BA244214657F4F0C87@exchange01.sle2000.local> Message-ID: ________________________________ De: Benoit Barriere Date: ven. 10/10/2008 17:27 ?: Marc Powell Objet : RE: [Nagios-users] undeterminate data in report I confirm that my sed command has done the job. If I check my nagios-10-07-2008-00.log file All seems correct: [1223244000] CURRENT SERVICE_STATE: SRV_CS_HCC;PROCESS_cs_kernel.exe;OK;HARD;1;1 cs_kernel.exe Running (Ram:24.79 MB) - [1223244149] SERVICE_ALERT: SRV_CS_HCC;PROCESS_cs_kernel.exe;OK;HARD;1;1 cs_kernel.exe Running (Ram:24.81 MB) -- I have a lot of service alerts before the Oct 7 : for example the Oct 4 log file [1222985058] SERVICE_ALERT: SRV_CS_HCC;PROCESS_cs_kernel.exe;OK;HARD;1;1 cs_kernel.exe Running (Ram:38.82 MB) -- Any ideas -----Message d'origine----- De : Marc Powell [mailto:marc at ena.com] Envoy? : vendredi 10 octobre 2008 17:01 ? : Nagios Users Objet : Re: [Nagios-users] undeterminate data in report On Oct 10, 2008, at 9:02 AM, Benoit Barriere wrote: > Hi all, > > I have a problem about my archives log file. > > I had to change a description service in all archives logs (deleting > a space character) and also in my nagios conf. I have done that by > sed command. So all my logs are modified correctly if I see my logs > by vi command. But nagios don't report correctly all datas before my > modification. All datas before the modification aren't shown in the > report ( see screenshot) Verify that your sed did what you think it did and that you didn't munge the lines such that nagios can't parse them. It would appear that there are no matches in the log files you've specified until Oct 7, 14:53:22. Also, is there a SERVICE ALERT entry in the log files between Oct 3 15:59:45 and Oct 7 14:53:22 or in the 4 previous archive log files? If not, nagios will use your 'First assumed service state' of Unspecified/Indeterminate. -- Marc ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 13 17:23:15 2008 From: marc at ena.com (Marc Powell) Date: Mon, 13 Oct 2008 10:23:15 -0500 Subject: Fwd: undeterminate data in report References: <4D72F042-6B34-41D1-AAAE-391AB182F512@ena.com> Message-ID: This is fun. Let's always re-send our previous posts! =) Begin forwarded message: > From: Marc Powell > Date: October 10, 2008 11:40:52 AM CDT > To: Nagios Users > Subject: Re: [Nagios-users] undeterminate data in report > > Please always respond on list so that others, now and in the future, > benefit from your experience. > > On Oct 10, 2008, at 10:27 AM, Benoit Barriere wrote: > >> I confirm that my sed command has done the job. If I check my >> nagios-10-07-2008-00.log file >> >> All seems correct: >> >> >> [1223244000] CURRENT SERVICE_STATE: >> SRV_CS_HCC;PROCESS_cs_kernel.exe;OK;HARD;1;1 cs_kernel.exe Running >> (Ram:24.79 MB) ? >> [1223244149] SERVICE_ALERT: SRV_CS_HCC;PROCESS_cs_kernel.exe;OK;HARD; >> 1;1 cs_kernel.exe Running (Ram:24.81 MB) -- >> >> I have a lot of service alerts before the Oct 7 : for example the >> Oct 4 log file >> >> [1222985058] SERVICE_ALERT: SRV_CS_HCC;PROCESS_cs_kernel.exe;OK;HARD; >> 1;1 cs_kernel.exe Running (Ram:38.82 MB) -- >> >> Any ideas > > Did you change permissions on the files such that your web server > can't read them any more? How about if you set the start date of your > report to be Oct 3? > > What you've done shouldn't cause a problem. I do the same kind of > thing for hostnames several times a month. > > -- > Marc ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 13 17:50:55 2008 From: ae at op5.se (Andreas Ericsson) Date: Mon, 13 Oct 2008 17:50:55 +0200 Subject: service latency troubles In-Reply-To: <48F34D50.3050909@laposte.fr> References: <48EF7414.50608@laposte.fr> <48F1324E.70203@op5.se> <48F34D50.3050909@laposte.fr> Message-ID: <48F36E5F.1080507@op5.se> Antoine Musso wrote: > Andreas Ericsson wrote : > >> As detailed as your report is, it doesn't mention what OS (with version) >> you're using, nor does it mention what version of Nagios you're using. >> >> Besides that though, what other "extras" are you using? Typical latency- >> raisers are: >> * OCHP/OCSP commands >> * Older versions of NDOUtils >> * Home-written eventbroker modules >> * Clumsily written plugins that don't time out in a timely manner and >> don't complete quickly enough. > > Hello Andreas, > > Some details about our versions: > > - Linux Redhat Enterprise 4 (x86_64, kernel 2.6.9). > - Nagios : 3.0.3 > - NDOutils : 1.4b7 > > The OCHP/OCSP commands is just doing an echo to a file. > Turn off OCHP and OCSP and then reload Nagios. If that doesn't help, unload NDOUtils and then restart Nagios. If that helps, re-enable the OCSP/OCHP commands again. If it's working then, it was NDOUtils fault. If not, it's the combined load of NDOUtils and the OC?P commands. OC?P commands add a rather extraordinary amount of load to the system irrespective of how simple they are. Usually, you'd be better off replacing them with an extremely simple NEB-module. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stefan+nagiosusers at cae.wisc.edu Mon Oct 13 19:04:55 2008 From: stefan+nagiosusers at cae.wisc.edu (Stefan Strandberg) Date: Mon, 13 Oct 2008 12:04:55 -0500 Subject: Problem with external commands and custom variables In-Reply-To: <48ECF35B.4050501@op5.se> References: <20081008162957.GA2205@masimaro.cae.wisc.edu> <48ECF35B.4050501@op5.se> Message-ID: <20081013170455.GE7571@masimaro.cae.wisc.edu> So, nobody has any experience with custom variables and changing them via external command? It would save me a database if I can get this working. Thanks, -stefan On Wed, Oct 08, 2008 at 07:52:27PM +0200, Andreas Ericsson wrote: > Stefan Strandberg wrote: > >Hi, > > > >I'm attempting to implement some custom variables for hosts. Supposedly > >the external command to change the custom variable for a host is > >CHANGE_CUSTOM_HOST_VAR with a certain syntax. Unfortunately for me, it > >doesn't seem to be working. > > > >Nagios receives the command and logs it, but doesn't seem to actually > >process it. > > > >The command given is: > > > >-- start script -- > > > >#!/bin/sh > > > >now=`date +%s` > >commandfile='/var/lib/nagios3/rw/nagios.cmd' > > > >/usr/bin/printf "[%lu] > >CHANGE_CUSTOM_HOST_VAR;dent;_REPAIRSTATUS;repair\n" $now > $commandfile > > > >-- end script -- > > > >and nagios logs it with > >[1223412361] EXTERNAL COMMAND: > >CHANGE_CUSTOM_HOST_VAR;dent;_REPAIRSTATUS;repair > > > >in nagios.log, so I think it should be working. > > Nagios always logs external commands, even if they're properly formatted > or not. The logging happens before the command is processed, not after, > so there's no telling if Nagios does the right thing with it or not. > > > However, the variable > >never changes in the status.dat file. > > > >Am I missing a step or doing something wrong? The documentation doesn't > >have any other examples, and nothing turns up on google. > > > > I can imagine. This is, afaik, the first time the question has been > asked on the nagios-users list. > > -- > Andreas Ericsson andreas.ericsson at op5.se > OP5 AB www.op5.se > Tel: +46 8-230225 Fax: +46 8-230231 > -- Stefan Strandberg UNIX group Computer Aided Engineering - UW Madison stefan at cae.wisc.edu ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lavalamp at spiritual-machines.org Mon Oct 13 19:38:34 2008 From: lavalamp at spiritual-machines.org (Brian A. Seklecki) Date: Mon, 13 Oct 2008 13:38:34 -0400 (EDT) Subject: Check_website_fingerprint ? Message-ID: <20081013133554.K7654@arbitor.digitalfreaks.org> All: Anyone have a nice plugin to valid a website's contents against a cryptographic fingerprint (e.g., defamation/content manipulation check)? nagiosexchange.org says no. I was thinking something simple with PHP+SimpleXML+mhash. Take the expected fingerprint as $argv[1] and the URL as $argv[0]. The tricky part is exempting dynamically generated content from the checksum. ~BAS ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 14 06:14:24 2008 From: ae at op5.se (Andreas Ericsson) Date: Tue, 14 Oct 2008 06:14:24 +0200 Subject: Problem with external commands and custom variables In-Reply-To: <20081013170455.GE7571@masimaro.cae.wisc.edu> References: <20081008162957.GA2205@masimaro.cae.wisc.edu> <48ECF35B.4050501@op5.se> <20081013170455.GE7571@masimaro.cae.wisc.edu> Message-ID: <48F41CA0.6030603@op5.se> Stefan Strandberg wrote: > So, nobody has any experience with custom variables and changing them > via external command? It would save me a database if I can get this > working. > Verify that the nagios code looks like it's doing what the docs says it's doing. Assuming that checks out, file a bug-report here and I'll take a look at it. Thanks -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jon at netdork.net Tue Oct 14 10:10:49 2008 From: jon at netdork.net (Jon Angliss) Date: Tue, 14 Oct 2008 03:10:49 -0500 Subject: Check_website_fingerprint ? References: <20081013133554.K7654@arbitor.digitalfreaks.org> Message-ID: On Mon, 13 Oct 2008 13:38:34 -0400 (EDT), "Brian A. Seklecki" wrote: > >All: > >Anyone have a nice plugin to valid a website's contents against a >cryptographic fingerprint (e.g., defamation/content manipulation check)? tripwire, or some such app? I think here is a nagios plugin for tripwire. >nagiosexchange.org says no. > >I was thinking something simple with PHP+SimpleXML+mhash. Take the >expected fingerprint as $argv[1] and the URL as $argv[0]. > >The tricky part is exempting dynamically generated content from the >checksum. If you're working with dynamic content, I'd give up trying to test it through the web server, and test the files themselves. A slight alternative is something like this: http://members.aol.com/EJNBell/pgp-www.html You can pgp sign your html portions of the code, and blank out the dynamic stuff... That becomes quite complex sometimes. -- Jon Angliss ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From renato.casagrande.jr at gmail.com Tue Oct 14 14:02:39 2008 From: renato.casagrande.jr at gmail.com (=?ISO-8859-1?Q?Renato_Casagrande_J=FAnior?=) Date: Tue, 14 Oct 2008 10:02:39 -0200 Subject: Nagios on FreeBSD Message-ID: <5f73c2b50810140502o3fee294bt129fd415dee85f65@mail.gmail.com> Hi everybody!! I've installed Nagios on FreeBSD. Ok, its works! However, I can't have external access to Nagios. Here in my work, we have 80 computers of laboratory using Ubuntu and one server using FreeBSD. My trouble is access Nagios from Ubuntu to FreeBSD (where Nagios was installed), the error is like "You don't have permission to access Nagios!". How I access Nagios in my case? Graciously, -- Renato Casagrande J?nior Graduando em Engenharia de Computa??o - Furg Bolsista do Laborat?rio de Software da Engenharia de Computa??o - Furg Furg - Universidade Federal do Rio Grande - -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From benr at tlcdatasecurity.com.au Tue Oct 14 13:10:34 2008 From: benr at tlcdatasecurity.com.au (Ben Robson) Date: Tue, 14 Oct 2008 22:10:34 +1100 Subject: Monitoring Request Tracker Queus Message-ID: <3F63AA5E6554DB4D92D1DBB1D4A80462013B42DD@kookaburra.TLCIT.biz> Does anyone have experience configuring Nagios to monitor queues in RT (Request Tracker) for new tickets, or tickets that match other RT search criteria? If so, how did you do it? Did you use a Nagios plugin or did you right your own, and would you make it available to others? Thanks for the input. BenR -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From trevor_obba-/E1597aS9LT10XsdtD+oqA at public.gmane.org Tue Oct 14 14:21:52 2008 From: trevor_obba-/E1597aS9LT10XsdtD+oqA at public.gmane.org (trevor obba) Date: Tue, 14 Oct 2008 12:21:52 +0000 (GMT) Subject: check_dxml_drvstate report incorrectly remotely Message-ID: <177131.18185.qm@web24208.mail.ird.yahoo.com> I running check_dxml_drvstate version 1.6 on a Sles10 (x86_64) check_dxml_drvstate has 755 permission When i execute check_dxml_drvstate plugin locally like ./check_dxml_drvstate-u nagiosdriver.services.unl -p password -d mail.urs-drivers.services.unl I get these responses Driver mail.urs-drivers.services.unl is RUNNING. as expected. However when i execute check_dxml_drvstate plugin through nagios nrpe.cfg using check_nrpe I get the following responses Driver idworks.urs-drivers.services.unl is STARTING. Even when the driver has been stopped I still get the response Driver idworks.urs-drivers.services.unl is STARTING. this only report incorrectly when I run remotely via nrpe.cfg using check_nrpe I am running version 2.5.1 of check_nrpe. How can i fix the problem? can you help? please ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ 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 assaf.flatto at ssp.uk.com Tue Oct 14 14:28:33 2008 From: assaf.flatto at ssp.uk.com (Assaf Flatto) Date: Tue, 14 Oct 2008 13:28:33 +0100 Subject: Nagios on FreeBSD In-Reply-To: <5f73c2b50810140502o3fee294bt129fd415dee85f65@mail.gmail.com> References: <5f73c2b50810140502o3fee294bt129fd415dee85f65@mail.gmail.com> Message-ID: <200810141328.33411.assaf.flatto@ssp.uk.com> The problem is not with nagios , but with your setup of the web server. http://nagios.sourceforge.net/docs/3_0/quickstart-fedora.html read the steps 5 to the end - and prefrom the similar actions on your FreeBSD server. On Tuesday 14 October 2008 13:02:39 Renato Casagrande J?nior wrote: > Hi everybody!! > I've installed Nagios on FreeBSD. Ok, its works! However, I can't have > external access to Nagios. Here in my work, we have 80 computers of > laboratory using Ubuntu and one server using FreeBSD. My trouble is access > Nagios from Ubuntu to FreeBSD (where Nagios was installed), the error is > like "You don't have permission to access Nagios!". How I access Nagios in > my case? > > Graciously, -- Assaf Flatto SSP Ops Team Linux System Administrator IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From goetz.reinicke at filmakademie.de Tue Oct 14 16:23:38 2008 From: goetz.reinicke at filmakademie.de (=?ISO-8859-15?Q?G=F6tz_Reinicke?=) Date: Tue, 14 Oct 2008 16:23:38 +0200 Subject: How to debug a check_http problem? Message-ID: <48F4AB6A.7070707@filmakademie.de> Hi, recently I noticed, that checking some virtual http services fails. If I launch the check_http command by hand, I do get a "HTTP OK" message. If the check is launched by nagios, it fails with an "HTTP WARNING: HTTP/1.1 404 Not Found" message. Checking some non-virtual http-servers works fine. What could be the problem? Thanks for any hint and best regards G?tz Reinicke -- G?tz Reinicke IT-Koordinator Tel. +49 7141 969 420 Fax +49 7141 969 55 420 E-Mail goetz.reinicke at filmakademie.de Filmakademie Baden-W?rttemberg GmbH Mathildenstr. 20 71638 Ludwigsburg www.filmakademie.de Eintragung Amtsgericht Stuttgart HRB 205016 Vorsitzende des Aufsichtsrats: Prof. Dr. Claudia H?bner Staatsr?tin f?r Demographischen Wandel und f?r Senioren im Staatsministerium Gesch?ftsf?hrer: Prof. Thomas Schadt ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From assaf.flatto at ssp.uk.com Tue Oct 14 17:00:00 2008 From: assaf.flatto at ssp.uk.com (Assaf Flatto) Date: Tue, 14 Oct 2008 16:00:00 +0100 Subject: How to debug a check_http problem? In-Reply-To: <48F4AB6A.7070707@filmakademie.de> References: <48F4AB6A.7070707@filmakademie.de> Message-ID: <200810141600.00889.assaf.flatto@ssp.uk.com> Can you show us the command you are using and the way it is set in your commands.cfg file ? there shouldn't be a problem querying a virtual server , as your request goes to the IP. On Tuesday 14 October 2008 15:23:38 G?tz Reinicke wrote: > Hi, > > recently I noticed, that checking some virtual http services fails. > > If I launch the check_http command by hand, I do get a "HTTP OK" message. > > If the check is launched by nagios, it fails with an "HTTP WARNING: > HTTP/1.1 404 Not Found" message. > > Checking some non-virtual http-servers works fine. > > What could be the problem? > > Thanks for any hint and best regards > > G?tz Reinicke -- Assaf Flatto SSP Ops Team Linux System Administrator IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From assaf.flatto at ssp.uk.com Tue Oct 14 17:01:48 2008 From: assaf.flatto at ssp.uk.com (Assaf Flatto) Date: Tue, 14 Oct 2008 16:01:48 +0100 Subject: How to debug a check_http problem? In-Reply-To: <48F4AB6A.7070707@filmakademie.de> References: <48F4AB6A.7070707@filmakademie.de> Message-ID: <200810141601.48576.assaf.flatto@ssp.uk.com> In general to debug a check command , go to the libexec ( or the location of the plugins on your nagios machine and execute the check script you want to use with `--help` ./check_http --help On Tuesday 14 October 2008 15:23:38 G?tz Reinicke wrote: > Hi, > > recently I noticed, that checking some virtual http services fails. > > If I launch the check_http command by hand, I do get a "HTTP OK" message. > > If the check is launched by nagios, it fails with an "HTTP WARNING: > HTTP/1.1 404 Not Found" message. > > Checking some non-virtual http-servers works fine. > > What could be the problem? > > Thanks for any hint and best regards > > G?tz Reinicke -- Assaf Flatto SSP Ops Team Linux System Administrator IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 14 17:54:44 2008 From: marc at ena.com (Marc Powell) Date: Tue, 14 Oct 2008 10:54:44 -0500 Subject: How to debug a check_http problem? In-Reply-To: <48F4AB6A.7070707@filmakademie.de> References: <48F4AB6A.7070707@filmakademie.de> Message-ID: On Oct 14, 2008, at 9:23 AM, G?tz Reinicke wrote: > Hi, > > recently I noticed, that checking some virtual http services fails. > > If I launch the check_http command by hand, I do get a "HTTP OK" > message. > > If the check is launched by nagios, it fails with an "HTTP WARNING: > HTTP/1.1 404 Not Found" message. It sounds like your command{} definition is not the same as what you're using when you test by hand. Without example service{} and command{} definitions we can't really be more specific than that. -- Marc ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From smcafee at collaborativefusion.com Tue Oct 14 17:54:30 2008 From: smcafee at collaborativefusion.com (Sean McAfee) Date: Tue, 14 Oct 2008 11:54:30 -0400 Subject: How to debug a check_http problem? In-Reply-To: <48F4AB6A.7070707@filmakademie.de> References: <48F4AB6A.7070707@filmakademie.de> Message-ID: <48F4C0B6.7070200@collaborativefusion.com> G?tz Reinicke wrote: > Hi, > > recently I noticed, that checking some virtual http services fails. > > If I launch the check_http command by hand, I do get a "HTTP OK" message. > > If the check is launched by nagios, it fails with an "HTTP WARNING: > HTTP/1.1 404 Not Found" message. > In situations like this, the problem is usually either permissions or a misconfiguration in templates/check_commands so the first step is always to enable debugging. This will allow you to get the actual macro-expanded command that Nagios is trying to execute: [1223999444.193398] [2048.1] [pid=44166] **** BEGIN MACRO PROCESSING *********** [1223999444.193410] [2048.1] [pid=44166] Processing: '$USER1$/check_nrpe2 -H $HOSTADDRESS$ -c check_nagios_status -a "$ARG1$"' [1223999444.193424] [2048.2] [pid=44166] Processing part: '' [1223999444.193437] [2048.2] [pid=44166] Not currently in macro. Running output (0): '' [1223999444.193450] [2048.2] [pid=44166] Processing part: 'USER1' [1223999444.193473] [2048.2] [pid=44166] Processed 'USER1', Clean Options: 0, Free: 0 [1223999444.193486] [2048.2] [pid=44166] Processed 'USER1', Clean Options: 0, Free: 0 [1223999444.193504] [2048.2] [pid=44166] Cleaning options: global=0, local=0, effective=0 [1223999444.193519] [2048.2] [pid=44166] Uncleaned macro. Running output (25): '/usr/local/libexec/nagios' [1223999444.193532] [2048.2] [pid=44166] Just finished macro. Running output (25): '/usr/local/libexec/nagios' [1223999444.193545] [2048.2] [pid=44166] Processing part: '/check_nrpe2 -H ' [1223999444.193559] [2048.2] [pid=44166] Not currently in macro. Running output (41): '/usr/local/libexec/nagios/check_nrpe2 -H ' [1223999444.193571] [2048.2] [pid=44166] Processing part: 'HOSTADDRESS' [1223999444.193585] [2048.2] [pid=44166] macro_x[2] (HOSTADDRESS) match. [1223999444.193601] [2048.2] [pid=44166] Processed 'HOSTADDRESS', Clean Options: 0, Free: 1 [1223999444.193614] [2048.2] [pid=44166] Processed 'HOSTADDRESS', Clean Options: 0, Free: 1 [1223999444.193627] [2048.2] [pid=44166] Cleaning options: global=0, local=0, effective=0 [1223999444.193642] [2048.2] [pid=44166] Uncleaned macro. Running output (97): '/usr/local/libexec/nagios/check_nrpe2 -H foo.domain.com' [1223999444.193655] [2048.2] [pid=44166] Just finished macro. Running output (97): '/usr/local/libexec/nagios/check_nrpe2 -H foo.domain.com' [1223999444.193668] [2048.2] [pid=44166] Processing part: ' -c check_nagios_status -a "' [1223999444.193681] [2048.2] [pid=44166] Not currently in macro. Running output (125): '/usr/local/libexec/nagios/check_nrpe2 -H foo.domain.com -c check_nagios_status -a "' [1223999444.193778] [2048.2] [pid=44166] Processing part: 'ARG1' [1223999444.193795] [2048.2] [pid=44166] Processed 'ARG1', Clean Options: 0, Free: 0 [1223999444.193808] [2048.2] [pid=44166] Processed 'ARG1', Clean Options: 0, Free: 0 [1223999444.193821] [2048.2] [pid=44166] Cleaning options: global=0, local=0, effective=0 [1223999444.193834] [2048.2] [pid=44166] Uncleaned macro. Running output (126): '/usr/local/libexec/nagios/check_nrpe2 -H foo.domain.com -c check_nagios_status -a "2' [1223999444.193848] [2048.2] [pid=44166] Just finished macro. Running output (126): '/usr/local/libexec/nagios/check_nrpe2 -H foo.domain.com -c check_nagios_status -a "2' [1223999444.193861] [2048.2] [pid=44166] Processing part: '"' [1223999444.193874] [2048.2] [pid=44166] Not currently in macro. Running output (127): '/usr/local/libexec/nagios/check_nrpe2 -H foo.domain.com -c check_nagios_status -a "2"' [1223999444.193887] [2048.1] [pid=44166] Done. Final output: '/usr/local/libexec/nagios/check_nrpe2 -H foo.domain.com -c check_nagios_status -a "2"' [1223999444.193899] [2048.1] [pid=44166] **** END MACRO PROCESSING ************* The second to last line (Final output:) contains the exact command that Nagios executed. Running this from the command line (as the Nagios user!) will go a long way toward helping you figure out the problem. -- Sean McAfee System Engineer Collaborative Fusion, Inc. smcafee at collaborativefusion.com 412-422-3463 x 4025 5849 Forbes Avenue Pittsburgh, PA 15217 **************************************************************** IMPORTANT: This message contains confidential information and is intended only for the individual named. If the reader of this message is not an intended recipient (or the individual responsible for the delivery of this message to an intended recipient), please be advised that any re-use, dissemination, distribution or copying of this message is prohibited. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. **************************************************************** IMPORTANT: This message contains confidential information and is intended only for the individual named. If the reader of this message is not an intended recipient (or the individual responsible for the delivery of this message to an intended recipient), please be advised that any re-use, dissemination, distribution or copying of this message is prohibited. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From goetz.reinicke at filmakademie.de Tue Oct 14 17:59:26 2008 From: goetz.reinicke at filmakademie.de (=?ISO-8859-1?Q?G=F6tz_Reinicke?=) Date: Tue, 14 Oct 2008 17:59:26 +0200 Subject: How to debug a check_http problem? In-Reply-To: <200810141600.00889.assaf.flatto@ssp.uk.com> References: <48F4AB6A.7070707@filmakademie.de> <200810141600.00889.assaf.flatto@ssp.uk.com> Message-ID: <48F4C1DE.1060302@filmakademie.de> Hi, pwd /usr/local/nagios/libexec ./check_http -H www.filmakademie.de HTTP OK HTTP/1.1 200 OK - 24726 bytes in 1,560 seconds |time=1,560469s;;;0,000000 size=24726B;;;0 # 'check_http' command definition define command{ command_name check_http command_line $USER1$/check_http -I $HOSTADDRESS$ $ARG1$ } O.K. the problem is, that the command definition uses the IP Address ... changing the "-I" option to "-H" solves my problem. AFAIK I haven't ever touched this command definition.... Thanks so far and best regards G?tz Reinicke Assaf Flatto schrieb: > Can you show us the command you are using and the way it is set in your commands.cfg file ? > > there shouldn't be a problem querying a virtual server , as your request goes to the IP. > > > > On Tuesday 14 October 2008 15:23:38 G?tz Reinicke wrote: >> Hi, >> >> recently I noticed, that checking some virtual http services fails. >> >> If I launch the check_http command by hand, I do get a "HTTP OK" message. >> >> If the check is launched by nagios, it fails with an "HTTP WARNING: >> HTTP/1.1 404 Not Found" message. >> >> Checking some non-virtual http-servers works fine. >> >> What could be the problem? >> >> Thanks for any hint and best regards >> >> G?tz Reinicke > > > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fraser.scott at gmail.com Tue Oct 14 18:18:15 2008 From: fraser.scott at gmail.com (Fraser Scott) Date: Tue, 14 Oct 2008 17:18:15 +0100 Subject: DOWNTIMESTART sent on reload Message-ID: <2d26e54d0810140918u33b70e89o62f2efb32e02e848@mail.gmail.com> Nagios 3.0.3 Currently have an annoyance where a DOWNTIMESTART is sent for all hosts in downtime when Nagios is reloaded. Is the correct behavior? It seems slightly unncesssary to receive such an email every time a config change is made and Nagios is reloaded. Cheers, Fraser ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dermoth at aei.ca Tue Oct 14 18:40:16 2008 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Tue, 14 Oct 2008 12:40:16 -0400 Subject: [Nagiosplug-help] check_dxml_drvstate report incorrectly remotely In-Reply-To: <177131.18185.qm@web24208.mail.ird.yahoo.com> References: <177131.18185.qm@web24208.mail.ird.yahoo.com> Message-ID: <48F4CB70.6060005@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 14/10/08 08:21 AM, trevor obba wrote: First of all please do not cross-post. This is a user problem for a 3rd party plugin so there's no reason sending it to the devel mailing list, > I running check_dxml_drvstate version 1.6 on a Sles10 (x86_64) > check_dxml_drvstate has 755 permission > > When i execute check_dxml_drvstate plugin locally like > ./check_dxml_drvstate-u nagiosdriver.services.unl -p password -d mail.urs-drivers.services.unl > > > I get these responses > Driver mail.urs-drivers.services.unl is RUNNING. > > > as expected. > > However when i execute check_dxml_drvstate plugin through nagios nrpe.cfg using check_nrpe > > > I get the following responses > > Driver idworks.urs-drivers.services.unl is STARTING. > > Even when the driver has been stopped I still get the response > Driver idworks.urs-drivers.services.unl is STARTING. this only report incorrectly > when I run remotely via nrpe.cfg using check_nrpe > > I am running version 2.5.1 of check_nrpe. > How can i fix the problem? can you help? please Most likely permissions problems. Try running locally as the nagios user. You can use Sudo to make NRPE run the plugin as root. - -- Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFI9Mtw6dZ+Kt5BchYRAu1hAJ0bBP1YYHiN3ITRqVdu4brkSi2tBwCgzpvq NRrYdVoWDmTNcu2/Yi6GkzI= =iDlI -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dermoth at aei.ca Tue Oct 14 18:51:09 2008 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Tue, 14 Oct 2008 12:51:09 -0400 Subject: DOWNTIMESTART sent on reload In-Reply-To: <2d26e54d0810140918u33b70e89o62f2efb32e02e848@mail.gmail.com> References: <2d26e54d0810140918u33b70e89o62f2efb32e02e848@mail.gmail.com> Message-ID: <48F4CDFD.1030003@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 14/10/08 12:18 PM, Fraser Scott wrote: > Nagios 3.0.3 > > Currently have an annoyance where a DOWNTIMESTART is sent for all > hosts in downtime when Nagios is reloaded. Is the correct behavior? It > seems slightly unncesssary to receive such an email every time a > config change is made and Nagios is reloaded. A quick workaround would be starting Nagios with notifications disabled and enabling them quickly after starting Nagios. I'm not sure how hard it is to fix this behaviour - I'll see what I can do if I find some time... - -- Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFI9M396dZ+Kt5BchYRAkVeAKDb4Am5VN83C4iYjQn9ng1s9VwzFgCdFOUd 4y47rz4O6SHpCiweDAwiHiw= =/ejl -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mwlucas at blackhelicopters.org Tue Oct 14 19:29:58 2008 From: mwlucas at blackhelicopters.org (Michael W. Lucas) Date: Tue, 14 Oct 2008 13:29:58 -0400 Subject: service dependencies on a single host? Message-ID: <20081014172958.GA2085@bewilderbeast.blackhelicopters.org> Hi, I'm currently monitoring many services on certain hosts via SNMP, and making extensive use of host groups to ease configuration for my several hundred hosts. On occasion, the SNMP service on a host fails. This triggers dozens of alarms. I would like to have each service checked via SNMP depend on the base SNMP service, so that when SNMP fails I only get one alarm. I investigated service dependencies, but they don't seem amenable to hostgroup-friendly configuration. If I do something like: define servicedependency { hostgroup_name NetSnmpServers service_description Snmp dependent_host_name NetSnmpServers ... } that obviously isn't going to work. Surely other people have encountered this before? Any suggestions? Thanks, ==ml -- Michael W. Lucas mwlucas at BlackHelicopters.org, mwlucas at FreeBSD.org http://www.BlackHelicopters.org/~mwlucas/ "My pessimism extends to the point of even suspecting the sincerity of the pessimists." -- Jean Rostand, French biologist and philosopher ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dermoth at aei.ca Tue Oct 14 20:11:45 2008 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Tue, 14 Oct 2008 14:11:45 -0400 Subject: service dependencies on a single host? In-Reply-To: <20081014172958.GA2085@bewilderbeast.blackhelicopters.org> References: <20081014172958.GA2085@bewilderbeast.blackhelicopters.org> Message-ID: <48F4E0E1.4020702@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 14/10/08 01:29 PM, Michael W. Lucas wrote: > Hi, > > I'm currently monitoring many services on certain hosts via SNMP, and > making extensive use of host groups to ease configuration for my > several hundred hosts. > > On occasion, the SNMP service on a host fails. This triggers dozens > of alarms. I would like to have each service checked via SNMP depend > on the base SNMP service, so that when SNMP fails I only get one > alarm. I investigated service dependencies, but they don't seem > amenable to hostgroup-friendly configuration. > > If I do something like: > > define servicedependency { > hostgroup_name NetSnmpServers > service_description Snmp > dependent_host_name NetSnmpServers > ... > } > > that obviously isn't going to work. > > Surely other people have encountered this before? Any suggestions? same-host dependencies (or something similar) implemented in Nagios v3.0. Just omit the dependent_host*_name and dependencies will only occur within the same hosts. You can therefore apply it to hostsgroups without having deps between hosts. I have a patch for 2.x around if you need. - -- Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFI9ODh6dZ+Kt5BchYRAkcwAKDDmM796MpVMvwUEqMt2YjVsqH6UwCfTOQV 01Ng9QV42iJWfjG4VedN+rk= =jDzR -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From challenger_joseph at yahoo.com.mx Tue Oct 14 21:02:14 2008 From: challenger_joseph at yahoo.com.mx (=?iso-8859-1?Q?Christian_I=F1iguez?=) Date: Tue, 14 Oct 2008 12:02:14 -0700 (PDT) Subject: Nagios and n2rrd templates Message-ID: <622645.64976.qm@web36507.mail.mud.yahoo.com> Hi !! I hope you can help me. I'm trying to graphic the outcome of plugin check_mem.pl, but I'm not able to do it, because the mem.env and mem.rrd are not being created and I don't know why. I have other graphics like: check_load and check_icmp with no problem. Also, could you provide the df.t and mem.t, please, probably that's the problem Thanks in advance ?Todo sobre Amor y Sexo! La gu?a completa para tu vida en Mujer de Hoy. http://mx.mujer.yahoo.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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-lists at networkmail.eu Tue Oct 14 23:44:43 2008 From: andy-lists at networkmail.eu (Andy Shellam) Date: Tue, 14 Oct 2008 22:44:43 +0100 Subject: service dependencies on a single host? In-Reply-To: <48F4E0E1.4020702@aei.ca> References: <20081014172958.GA2085@bewilderbeast.blackhelicopters.org> <48F4E0E1.4020702@aei.ca> Message-ID: <48F512CB.2070404@networkmail.eu> Hi Thomas, Thomas Guyot-Sionnest wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 14/10/08 01:29 PM, Michael W. Lucas wrote: > >> Hi, >> >> I'm currently monitoring many services on certain hosts via SNMP, and >> making extensive use of host groups to ease configuration for my >> several hundred hosts. >> >> On occasion, the SNMP service on a host fails. This triggers dozens >> of alarms. I would like to have each service checked via SNMP depend >> on the base SNMP service, so that when SNMP fails I only get one >> alarm. I investigated service dependencies, but they don't seem >> amenable to hostgroup-friendly configuration. >> >> If I do something like: >> >> define servicedependency { >> hostgroup_name NetSnmpServers >> service_description Snmp >> dependent_host_name NetSnmpServers >> ... >> } >> >> that obviously isn't going to work. >> >> Surely other people have encountered this before? Any suggestions? >> > > same-host dependencies (or something similar) implemented in Nagios > v3.0. Just omit the dependent_host*_name and dependencies will only > occur within the same hosts. You can therefore apply it to hostsgroups > without having deps between hosts. > > I have a patch for 2.x around if you need. > Fantastic! I actually wrote a tool to do this back in Nagios 2.something, but I've lost the original code for it, so I'm glad it's been sorted in 3.0. We need to do the same thing for NRPE - if the NRPE daemon fails, we get a bomb of alerts - glad to hear this is no more. Andy ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeremiah.jester at panasonic.aero Wed Oct 15 00:09:40 2008 From: jeremiah.jester at panasonic.aero (jeremiah) Date: Tue, 14 Oct 2008 15:09:40 -0700 Subject: max_check_attempts error In-Reply-To: <1224021972.13278.6.camel@jeremiah-laptop> References: <1224021972.13278.6.camel@jeremiah-laptop> Message-ID: <1224022180.13278.9.camel@jeremiah-laptop> Also, here are the first 20 or so lines of my generic-host_nagios2.cfg. # Generic host definition template define host{ name generic-host ; The name of this host template - referenced in other host definitions, used for template recursion/resolution notifications_enabled 1 ; Host notifications are enabled event_handler_enabled 1 ; Host event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! } define host{ host_name pse01 alias dev address (ip hidden) use generic-host } On Tue, 2008-10-14 at 15:06 -0700, jeremiah wrote: > Hello, > > I am relatively new to nagios. Am using version 2. > > Can anyone shed any light on this error? > > ++++ > Error: Invalid max_check_attempts value for host 'pse01' > Error: Could not register host (config file > '/etc/nagios2/conf.d/generic-host_nagios2.cfg', starting on line 13) > ++++ > > Thanks, > JJ Disclaimer: The information contained in this transmission, including any attachments, may contain confidential information of Panasonic Avionics Corporation. This transmission is intended only for the use of the addressee(s) listed above. Unauthorized review, dissemination or other use of the information contained in this transmission is strictly prohibited. If you have received this transmission in error or have reason to believe you are not authorized to receive it, please notify the sender by return email and promptly delete the transmission. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeremiah.jester at panasonic.aero Wed Oct 15 00:06:12 2008 From: jeremiah.jester at panasonic.aero (jeremiah) Date: Tue, 14 Oct 2008 15:06:12 -0700 Subject: max_check_attempts error Message-ID: <1224021972.13278.6.camel@jeremiah-laptop> Hello, I am relatively new to nagios. Am using version 2. Can anyone shed any light on this error? ++++ Error: Invalid max_check_attempts value for host 'pse01' Error: Could not register host (config file '/etc/nagios2/conf.d/generic-host_nagios2.cfg', starting on line 13) ++++ Thanks, JJ Disclaimer: The information contained in this transmission, including any attachments, may contain confidential information of Panasonic Avionics Corporation. This transmission is intended only for the use of the addressee(s) listed above. Unauthorized review, dissemination or other use of the information contained in this transmission is strictly prohibited. If you have received this transmission in error or have reason to believe you are not authorized to receive it, please notify the sender by return email and promptly delete the transmission. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From perldork at webwizarddesign.com Wed Oct 15 04:33:40 2008 From: perldork at webwizarddesign.com (Max) Date: Tue, 14 Oct 2008 22:33:40 -0400 Subject: No parallel checks with scripts under? Message-ID: Hi, I have read through the p1.pl code again tonight and looked at perlxsi.c and read all of the docs on ePN I can find that come with Nagios, and I see nothing about ePN doing multiplexing or anything of that sort that would allow it to execute ePN checks in parallel the way forked checks can be run. Is this indeed the case? :) Asking because I am setting up a Nagios instance right now that is primarily fault checking (and trending on) SNMP-based services, so at this point I have all my service checks coded as Net::SNMP based perl scripts under ePN ... Nagios is barely executing 95% of the 135 checks that are running right now within 5 minutes and I and my coworker will need to run maaaany more than that :p. This is after spending a few hours tuning nagios.cfg .. out of the box without 'tweaks' I was only getting about 70% of the 135 run in 5 minutes. So I am thinking of using perlcc on some of the checks, only running heavier-weight SNMP checks under ePN (like scanning the TCP-MIB of an agent) and then keeping the lighter-weight checks (RAM uitilization) as normal perl scripts to let us get faster performance from parallel runs knowing we will take a hit on context switches and I/O. Has anyone else ran into this situation who is willing to share what they did? Wondering if it would be possible to do the ePN differently so that it either runs separate interpreters in 1 or more threads (I understand the difficultly level shoots up with that) or somehow else enhance the ePN architectuer to allow it to not just be efficient but allow for parallel checks. Multiplexing is another thought, that too introduces complexitities, that I understand as well. Thanks, Max ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 15 05:25:25 2008 From: marc at ena.com (Marc Powell) Date: Tue, 14 Oct 2008 22:25:25 -0500 Subject: max_check_attempts error In-Reply-To: <1224021972.13278.6.camel@jeremiah-laptop> References: <1224021972.13278.6.camel@jeremiah-laptop> Message-ID: On Oct 14, 2008, at 5:06 PM, jeremiah wrote: > Hello, > > I am relatively new to nagios. Am using version 2. > > Can anyone shed any light on this error? > > ++++ > Error: Invalid max_check_attempts value for host 'pse01' max_check_attempts is a required parameter for host definitions but you are not specifying it. http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#host -- Marc ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 15 09:31:14 2008 From: ae at op5.se (Andreas Ericsson) Date: Wed, 15 Oct 2008 09:31:14 +0200 Subject: No parallel checks with scripts under? In-Reply-To: References: Message-ID: <48F59C42.2080304@op5.se> Max wrote: > Hi, > > I have read through the p1.pl code again tonight and looked at > perlxsi.c and read all of the docs on ePN I can find that come with > Nagios, and I see nothing about ePN doing multiplexing or anything of > that sort that would allow it to execute ePN checks in parallel the > way forked checks can be run. > > Is this indeed the case? :) > No. Nagios forks after (optionally) caching the plugin in memory, bringing the embedded perl stuff with it. The child runs the cached plugin. The saving is entirely in avoiding to load /usr/bin/perl each and every time a plugin is run (at the slight expense of copying some more memory at every fork if epn is compiled in). > > Multiplexing is another thought, that too introduces complexitities, > that I understand as well. > Multiplexing would be the way to go. It's the most complex, but the most portable and the least resource-hungry. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gurkan.aslan at comturk.com Wed Oct 15 11:18:16 2008 From: gurkan.aslan at comturk.com (=?ISO-8859-1?Q?G=FCrkan?= Aslan) Date: Wed, 15 Oct 2008 12:18:16 +0300 Subject: Event Handlers Message-ID: <1224062296.6285.9.camel@idesktop> Hi, I'm trying to define an event handler for nagios. Actually it will work same as event handler example (http://nagios.sourceforge.net/docs/3_0/eventhandlers.html#example) but it doesn't work... i'm trying to create a file in /tmp folder to test, but nothing in return. event_handler_enabled = 1 in service definition and nagios.cfg. with nagios user, i can create a file under /tmp folder (touch /tmp/foo). Actually i'm trying to restart a service. I defined a sudo command for nagios like this (in /etc/sudoers file) nagios LOCAL=NOPASSWD:/etc/init.d/myservice restart sudo /etc/init.d/myservice restart command is properly running as nagios user (I'm switching user by: su - nagios). But i cannot run both of them via an event handler. As i feel that nagios couldn't trigger the event file... Any suggestion? Best regards -- G?rkan Aslan Senior Developer Komturk Iletisim Ltd. Sti Phone: +90 212 275 88 99 ext 125 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From alex at edreams.com Wed Oct 15 14:23:20 2008 From: alex at edreams.com (Alex Torres) Date: Wed, 15 Oct 2008 14:23:20 +0200 Subject: NdoUtils 1.4b7 beta : file_rotation_command not working with Nagios 3.x Message-ID: <1224073400.10730.30.camel@isthar> Hi again Like explain in this post http://www.mail-archive.com/nagios-users at lists.sourceforge.net/msg15394.html running ndomod with output_type tcpsocket or unixsocket slow down nagios because until the data from nagios is stored in mysql, nagios no continue working. (sync) We try to work with output_type=file and later load the data to mysql with file2sock. Is this mode nagios run fine. file_rotation_command in ndomod.cfg define the command to be executed by nagios every file_rotation_interval secs. This not work in ndoutils 1.4b7 beta. We found the bug a now works fine. Where I can submit the bug and patch ? Thanks you ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From perldork at webwizarddesign.com Wed Oct 15 15:09:27 2008 From: perldork at webwizarddesign.com (Max) Date: Wed, 15 Oct 2008 09:09:27 -0400 Subject: No parallel checks with scripts under? In-Reply-To: <48F59C42.2080304@op5.se> References: <48F59C42.2080304@op5.se> Message-ID: On Wed, Oct 15, 2008 at 3:31 AM, Andreas Ericsson wrote: > No. Nagios forks after (optionally) caching the plugin in memory, > bringing the embedded perl stuff with it. The child runs the cached > plugin. The saving is entirely in avoiding to load /usr/bin/perl > each and every time a plugin is run (at the slight expense of copying > some more memory at every fork if epn is compiled in). Thank you, Andreas, I really appreciate your answer. I will go back to the drawing board to try to figure out what I am doing wrong then that is causing 135 checks to not complete in less than 5 minutes .. avg check time is 4 sec, avg check latency is .04 secs, so not sure what I am doing wrong. the machine is powerful enough to have dozens of checks run at the same time, but so far I only see Nagios forking one child at a time. I have interleave set to 's' and intercheck delay set to .5 and large_installation_tweaks at 1 and still only one fork at a time, which is what lead me to falsely think that ePN checks were treated differently. So now that i know otherwise, back to the drawing board to figure out what I messed up. > Multiplexing would be the way to go. It's the most complex, but the > most portable and the least resource-hungry. Excellent. Thank you. - Max ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From alex at edreams.com Wed Oct 15 14:05:44 2008 From: alex at edreams.com (Alex Torres) Date: Wed, 15 Oct 2008 14:05:44 +0200 Subject: Serialize checks for certains hosts Message-ID: <1224072344.10730.13.camel@isthar> Hi There is a way to serialize services check for certains hosts ? If a click on Schedule a check of all services on this host nagios schedule all services checks and send to the host in parellel. The remote host is running nrpe and for every check, nrpe fork a new process. In the same time could be 5 o 6 nrpe processes and the memory its full. The remote hosts is a router with very low mem. Reading the documentation there is two options max_concurrent_checks service_interleave_factor but both are global to nagios.cfg. I tried put max_concurrent_checks in host definition but no luck. Do you know something about ? Thanks ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 15 15:24:56 2008 From: ae at op5.se (Andreas Ericsson) Date: Wed, 15 Oct 2008 15:24:56 +0200 Subject: No parallel checks with scripts under? In-Reply-To: References: <48F59C42.2080304@op5.se> Message-ID: <48F5EF28.5070502@op5.se> Max wrote: > On Wed, Oct 15, 2008 at 3:31 AM, Andreas Ericsson wrote: >> No. Nagios forks after (optionally) caching the plugin in memory, >> bringing the embedded perl stuff with it. The child runs the cached >> plugin. The saving is entirely in avoiding to load /usr/bin/perl >> each and every time a plugin is run (at the slight expense of copying >> some more memory at every fork if epn is compiled in). > > Thank you, Andreas, I really appreciate your answer. I will go back to > the drawing board to try to figure out what I am doing wrong then that > is causing 135 checks to not complete in less than 5 minutes .. avg > check time is 4 sec, avg check latency is .04 secs, If average check latency is 0.04 seconds, you may have configured your checks to run with a greater interval than the default 5 minutes. I've seen this happen before. > so not sure what I > am doing wrong. the machine is powerful enough to have dozens of > checks run at the same time, but so far I only see Nagios forking one > child at a time. I have interleave set to 's' and intercheck delay > set to .5 and large_installation_tweaks at 1 and still only one fork > at a time, which is what lead me to falsely think that ePN checks were > treated differently. > > So now that i know otherwise, back to the drawing board to figure out > what I messed up. > Are you using slow-running OCSP/OCHP commands? Are you using them at all? Are you using NEB-modules? -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 15 16:20:43 2008 From: ae at op5.se (Andreas Ericsson) Date: Wed, 15 Oct 2008 16:20:43 +0200 Subject: service latency troubles In-Reply-To: <48F5F8CC.8030403@laposte.fr> References: <48EF7414.50608@laposte.fr> <48F1324E.70203@op5.se> <48F34D50.3050909@laposte.fr> <48F36E5F.1080507@op5.se> <48F5F8CC.8030403@laposte.fr> Message-ID: <48F5FC3B.3090506@op5.se> Antoine Musso wrote: > Andreas Ericsson a ?crit : > > Turn off OCHP and OCSP and then reload Nagios. If that doesn't help, >> unload NDOUtils and then restart Nagios. If that helps, re-enable the >> OCSP/OCHP commands again. If it's working then, it was NDOUtils fault. >> If not, it's the combined load of NDOUtils and the OC?P commands. >> >> OC?P commands add a rather extraordinary amount of load to the system >> irrespective of how simple they are. Usually, you'd be better off >> replacing them with an extremely simple NEB-module. > > Hello Anderas, > > Thanks for answering :) The OCHP/OCSP stuff did not help but I found out > two causes for our high latencies : > > > The first one is a long timeout on a synchronous check. When a service > is non-OK, the main nagios thread trigger a synchronous host check : > > [1223978320.237542] [016.1] [pid=10613] Service is in a non-OK state! > [1223978320.237547] [016.1] [pid=10613] Host is currently UP, so we'll > recheck its state to make sure... > [1223978320.237694] [256.1] [pid=10613] Running command check_ping... > [1223978330.251788] [256.1] [pid=10613] Execution time=10.009 sec > > While this plugin is executing, nagios is just idling and the latency > raise up really fast. So I modified our check_host_alive command to > timeout after 3 seconds, still have to found optimal parameters. > > > > The second issue is ndo. We have ndo2db listening on a database server > on the same switch. ndomod send everything (data_processing_options > parameter set to -1) over a tcp connection. > > I analyzed the callback debugging messages (debug 64, verbosity 2) over > a period of 938 seconds : > > AGGREGATED_STATUS_DATA (#25) 124 calls, avg: 0.00s (total 0.00s) > LOG_DATA (# 9) 366 calls, avg: 0.00s (total 0.56s) > SERVICE_STATUS_DATA (#20) 8321 calls, avg: 0.02s (total 149.48s) > HOST_CHECK_DATA (#14) 4933 calls, avg: 0.01s (total 50.23s) > TIMED_EVENT_DATA (# 8) 12282 calls, avg: 0.00s (total 26.26s) > PROGRAM_STATUS_DATA (#18) 177 calls, avg: 0.00s (total 0.76s) > STATE_CHANGE_DATA (#30) 195 calls, avg: 0.00s (total 0.45s) > SERVICE_CHECK_DATA (#13) 12189 calls, avg: 0.01s (total 82.74s) > SYSTEM_COMMAND_DATA (#10) 8584 calls, avg: 0.01s (total 102.84s) > HOST_STATUS_DATA (#19) 2544 calls, avg: 0.03s (total 64.67s) > > 49715 calls, 477 seconds 50,85% of time spent on sending ndo messages. > > The impact on latency is really bad, one of my colleague filtered out > some of those callbacks (data_processing_options set to 276673) that > seems to help :) > > > This raise two new questions: > > 1/ is there any recommended setting for checking the liveness of a > host ? Since this check is synchronous, we want Nagios to achieve this > as fast as possible. > Upgrade to Nagios 3. It sports parallell hostchecks. > 2/ is ndomod waiting for ndo2db to insert the data in the database ? That I don't know, but Nagios waits for the NEB to finish its call before proceeding, so if ndomod runs some uninterruptable IO, you might be in for a long wait. Nagios has to wait for the NEB to finish though, so the only solution is to make sure the NEB returns control to Nagios asap. > If not, I am going to check why it takes so long to send a packet to the > remote ndo2db instance. > That's a good idea. Please let us know what you find. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 optiksecurite.com Wed Oct 15 16:51:51 2008 From: nagios at optiksecurite.com (Francis Dube) Date: Wed, 15 Oct 2008 10:51:51 -0400 Subject: Event Handlers In-Reply-To: <1224062296.6285.9.camel@idesktop> References: <1224062296.6285.9.camel@idesktop> Message-ID: <48F60387.6020400@optiksecurite.com> G?rkan Aslan a ?crit : > Hi, > > I'm trying to define an event handler for nagios. Actually it will work > same as event handler example > (http://nagios.sourceforge.net/docs/3_0/eventhandlers.html#example) but > it doesn't work... i'm trying to create a file in /tmp folder to test, > but nothing in return. event_handler_enabled = 1 in service definition > and nagios.cfg. > > with nagios user, i can create a file under /tmp folder > (touch /tmp/foo). Actually i'm trying to restart a service. I defined a > sudo command for nagios like this (in /etc/sudoers file) > > nagios LOCAL=NOPASSWD:/etc/init.d/myservice restart > > sudo /etc/init.d/myservice restart command is properly running as nagios > user (I'm switching user by: su - nagios). > > But i cannot run both of them via an event handler. As i feel that > nagios couldn't trigger the event file... > > Any suggestion? > > Best regards > Is your event handler script correctly assigned to your service ? (event_handler your-event-handler) Can you give me your command definition for you event handler, something like : define command{ command_name your-event-handler command_line /usr/local/nagios/libexec/eventhandlers/your-event-handler $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$ $ANY_OTHER_VARIABLE_YOU_MAY_NEED$ } Francis Dube R&D - Optik Securite www.optiksecurite.com ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gurkan.aslan at comturk.com Wed Oct 15 17:18:24 2008 From: gurkan.aslan at comturk.com (=?ISO-8859-1?Q?G=FCrkan?= Aslan) Date: Wed, 15 Oct 2008 18:18:24 +0300 Subject: Event Handlers In-Reply-To: <48F60387.6020400@optiksecurite.com> References: <1224062296.6285.9.camel@idesktop> <48F60387.6020400@optiksecurite.com> Message-ID: <1224083904.6306.1.camel@idesktop> Hi Francis, Thanks for your answer but i solved the problem. My Mistakes: * I must use full path in my bash script. * Event Handler is triggering the event only for the first state change. Best regards ?r?, 2008-10-15 tarihinde 10:51 -0400 saatinde, Francis Dube yazd?: > G?rkan Aslan a ?crit : > > Hi, > > > > I'm trying to define an event handler for nagios. Actually it will work > > same as event handler example > > (http://nagios.sourceforge.net/docs/3_0/eventhandlers.html#example) but > > it doesn't work... i'm trying to create a file in /tmp folder to test, > > but nothing in return. event_handler_enabled = 1 in service definition > > and nagios.cfg. > > > > with nagios user, i can create a file under /tmp folder > > (touch /tmp/foo). Actually i'm trying to restart a service. I defined a > > sudo command for nagios like this (in /etc/sudoers file) > > > > nagios LOCAL=NOPASSWD:/etc/init.d/myservice restart > > > > sudo /etc/init.d/myservice restart command is properly running as nagios > > user (I'm switching user by: su - nagios). > > > > But i cannot run both of them via an event handler. As i feel that > > nagios couldn't trigger the event file... > > > > Any suggestion? > > > > Best regards > > > Is your event handler script correctly assigned to your service ? > (event_handler your-event-handler) > > Can you give me your command definition for you event handler, something > like : > > define command{ > command_name your-event-handler > command_line /usr/local/nagios/libexec/eventhandlers/your-event-handler $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$ $ANY_OTHER_VARIABLE_YOU_MAY_NEED$ > } > > > Francis Dube > R&D - Optik Securite > www.optiksecurite.com -- G?rkan Aslan Senior Developer Komturk Iletisim Ltd. Sti Phone: +90 212 275 88 99 ext 125 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rmp.dmd1229 at gmail.com Wed Oct 15 17:28:09 2008 From: rmp.dmd1229 at gmail.com (rmp dmd) Date: Wed, 15 Oct 2008 11:28:09 -0400 Subject: Monitor nagios running on a different server Message-ID: <61d255bb0810150828gdf46472h8565fee0a3709da1@mail.gmail.com> Hi, We have a nagios monitoring system for Production systems installed on prodservmon1. We want to include monitoring of this in our nagios monitoring for our corporate systems. Simply put, we want to monitor nagios service running on prodservmon1. I've been googling but I haven't find anything. Kindly advise on how to do this. Thanks! Roehl -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From assaf.flatto at ssp.uk.com Wed Oct 15 17:40:57 2008 From: assaf.flatto at ssp.uk.com (Assaf Flatto) Date: Wed, 15 Oct 2008 16:40:57 +0100 Subject: Monitor nagios running on a different server In-Reply-To: <61d255bb0810150828gdf46472h8565fee0a3709da1@mail.gmail.com> References: <61d255bb0810150828gdf46472h8565fee0a3709da1@mail.gmail.com> Message-ID: <200810151640.57721.assaf.flatto@ssp.uk.com> what you need to do it treat the prodservmon1 just like any other server and monitor it with NRPE or any other utility you use for linux servers. check if it's up (PING) , http ( Web Access ), do a check_proc to verify that the nagios server is running and so forth. On Wednesday 15 October 2008 16:28:09 rmp dmd wrote: > Hi, > > We have a nagios monitoring system for Production systems installed on > prodservmon1. We want to include monitoring of this in our nagios > monitoring for our corporate systems. Simply put, we want to monitor > nagios service running on prodservmon1. > > I've been googling but I haven't find anything. Kindly advise on how to do > this. > > > > Thanks! > Roehl -- Assaf Flatto SSP Ops Team Linux System Administrator IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 optiksecurite.com Wed Oct 15 17:44:46 2008 From: nagios at optiksecurite.com (Francis Dube) Date: Wed, 15 Oct 2008 11:44:46 -0400 Subject: Monitor nagios running on a different server In-Reply-To: <61d255bb0810150828gdf46472h8565fee0a3709da1@mail.gmail.com> References: <61d255bb0810150828gdf46472h8565fee0a3709da1@mail.gmail.com> Message-ID: <48F60FEE.3060709@optiksecurite.com> rmp dmd a ?crit : > Hi, > > We have a nagios monitoring system for Production systems installed on > prodservmon1. We want to include monitoring of this in our nagios > monitoring for our corporate systems. Simply put, we want to monitor > nagios service running on prodservmon1. > > I've been googling but I haven't find anything. Kindly advise on how > to do this. > > > > Thanks! > Roehl > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null If I correctly understood what you want to do, there's a check_nagios. /usr/local/libexec/nagios/check_nagios ? Francis Dube R&D - Optik Securite www.optiksecurite.com ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Gerhard.Lausser at consol.de Wed Oct 15 18:16:32 2008 From: Gerhard.Lausser at consol.de (Gerhard Lausser) Date: Wed, 15 Oct 2008 18:16:32 +0200 Subject: Monitor nagios running on a different server In-Reply-To: <61d255bb0810150828gdf46472h8565fee0a3709da1@mail.gmail.com> References: <61d255bb0810150828gdf46472h8565fee0a3709da1@mail.gmail.com> Message-ID: Hi, did you google for check_nagios? "This plugin checks the status of the Nagios process on the local machine The plugin will check to make sure the Nagios status log is no older than the number of minutes specified by the expires option. It also checks the process table for a process matching the command argument." Gerhard _____ Von: rmp dmd [mailto:rmp.dmd1229 at gmail.com] Gesendet: Mittwoch, 15. Oktober 2008 17:28 An: nagios-users at lists.sourceforge.net Betreff: [Nagios-users] Monitor nagios running on a different server Hi, We have a nagios monitoring system for Production systems installed on prodservmon1. We want to include monitoring of this in our nagios monitoring for our corporate systems. Simply put, we want to monitor nagios service running on prodservmon1. I've been googling but I haven't find anything. Kindly advise on how to do this. Thanks! Roehl -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From smcafee at collaborativefusion.com Wed Oct 15 18:07:55 2008 From: smcafee at collaborativefusion.com (Sean McAfee) Date: Wed, 15 Oct 2008 12:07:55 -0400 Subject: Monitor nagios running on a different server In-Reply-To: <61d255bb0810150828gdf46472h8565fee0a3709da1@mail.gmail.com> References: <61d255bb0810150828gdf46472h8565fee0a3709da1@mail.gmail.com> Message-ID: <48F6155B.1050405@collaborativefusion.com> rmp dmd wrote: > Hi, > > We have a nagios monitoring system for Production systems installed on > prodservmon1. We want to include monitoring of this in our nagios > monitoring for our corporate systems. Simply put, we want to monitor > nagios service running on prodservmon1. > > I've been googling but I haven't find anything. Kindly advise on how > to do this. Use check_nagios (one of the default checks in nagios-plugins - http://nagiosplugins.org/man/check_nagios) via NRPE. -- Sean McAfee System Engineer Collaborative Fusion, Inc. smcafee at collaborativefusion.com 412-422-3463 x 4025 5849 Forbes Avenue Pittsburgh, PA 15217 **************************************************************** IMPORTANT: This message contains confidential information and is intended only for the individual named. If the reader of this message is not an intended recipient (or the individual responsible for the delivery of this message to an intended recipient), please be advised that any re-use, dissemination, distribution or copying of this message is prohibited. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. **************************************************************** IMPORTANT: This message contains confidential information and is intended only for the individual named. If the reader of this message is not an intended recipient (or the individual responsible for the delivery of this message to an intended recipient), please be advised that any re-use, dissemination, distribution or copying of this message is prohibited. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 optiksecurite.com Wed Oct 15 17:20:09 2008 From: nagios at optiksecurite.com (Francis Dube) Date: Wed, 15 Oct 2008 11:20:09 -0400 Subject: Host-based service check period Message-ID: <48F60A29.8050808@optiksecurite.com> Hi everyone, I'm using Nagios to monitor many hosts with services running at different time. Each host is connected to a Plasma TV and display publicity on it, but the all are installed in different public area with different working hours. Ex : Host #1 is in a restaurant, so the services are running from 6:00 to 21:00. Host #2 is in a bar, so the services are running from 12:00 to 3:00. Host #3 is in a mall, so the services are running from 9:00 to 17:00 on week days. To save power, we turn off the display during the non-working hours, but we need the Nagios check to stop at the same time. The check_period instruction in the host definition only affect the check-host-alive command and not the services check. I've read all i've found about the timeperiod and such, but i cant find a way to do host-based service check period. I would like to create a timeperiod for each host and that all the check for this host (service and host-alive) stop/start according to that timeperiod. Anybody knows a way to do this ? Thanks for your time ! Francis Dube R&D - Optik Securite www.optiksecurite.com ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From perldork at webwizarddesign.com Wed Oct 15 18:45:46 2008 From: perldork at webwizarddesign.com (Max) Date: Wed, 15 Oct 2008 12:45:46 -0400 Subject: No parallel checks with scripts under? In-Reply-To: <48F5EF28.5070502@op5.se> References: <48F59C42.2080304@op5.se> <48F5EF28.5070502@op5.se> Message-ID: On Wed, Oct 15, 2008 at 9:24 AM, Andreas Ericsson wrote: > If average check latency is 0.04 seconds, you may have configured your > checks to run with a greater interval than the default 5 minutes. I've > seen this happen before. After having it run overnight, average latency is .1xx seconds. For my base service template (all checks inherit from this and they do not override these attributes) I have obsess_over_service 0 normal_check_interval 5 retry_check_interval 5 max_check_attempts 3 > Are you using slow-running OCSP/OCHP commands? Are you using them at all? That is turned off, will be running in distributed mode down the road but not now :). > Are you using NEB-modules? Yes, I am using modpnpsender and a service performance data handler, but even with those commented out in the config I see the same results. This is a RHEL52 box running nagios 3.0.3, because of where it sits on the network I have had to manually add RPMs to the box to configure it .. I initially had glib2-devel and my perception was that performance was slow with that library being used so i took the devel package off of the host as most Linux hosts I have been on I have not had Nagios complied with glib2. As I look now at performance data again on Nagios with process_perfdata set to 0 and the PNP NEB module commented out (restarted Nagios about 10 minutes before starting this email) I am still only seeing 86% within 5 minutes, avg latency .22, for service checks and via top I am only see max 2 Nagios instances. With "top -i" I just see Nagios appear on and off occasionally. Maybe to test to see if there is something wrong with my compile I should turn down the check interval to 1 minute for checks to see if Nagios does what I would expect, constantly running checks to try and keep up? if it doesn't behave that way, would that be a relatively clear indication I have a compile issue? My configure options just in case something pops out that looks glaringly wrong, i don't expect anyone to go through them line by line :p: $ ./configure --prefix=/data/nagios --exec-prefix=/data/nagios --bindir=/data/nagios/bin --sbindir=/data/nagios/sbin --datadir=/data/nagios/share --libexecdir=/data/nagios/libexec --enable-event-broker --enable-embedded-perl --with-nagios-user=nagios --with-nagios-group=nagios --with-command-user=nagios --with-command-group=apache --with-mail=/bin/mail --with-httpd-conf=/etc/httpd/conf.d --with-checkresult-dir=/data/nagios/var/checkresults --with-temp-dir=/data/nagios/tmp --with-init-dir=/etc/init.d --with-lockfile=/data/nagios/var/nagios.lck --with-gd-lib=/usr/lib64 --with-gd-inc=/usr/include --with-cgiurl=/nagios/cgi-bin --with-htmurl=/nagios --with-perlcache uname -m = x86_64 uname -r = 2.6.18-53.el5 uname -s = Linux uname -v = #1 SMP Wed Oct 10 16:34:19 EDT 2007 Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux C=gcc CFLAGS=-g -O2 -I/usr/include -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE -DHAVE_CONFIG_H LDFLAGS= -L/usr/lib64 Thanks again for your help, I seem to be in a rare situation here as searches for Redhat and Nagios and performance issues turn up very few hits :p, which lets me know I am definitely at fault here. - Max ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 15 18:49:03 2008 From: marc at ena.com (Marc Powell) Date: Wed, 15 Oct 2008 11:49:03 -0500 Subject: Host-based service check period In-Reply-To: <48F60A29.8050808@optiksecurite.com> References: <48F60A29.8050808@optiksecurite.com> Message-ID: On Oct 15, 2008, at 10:20 AM, Francis Dube wrote: > check period. I would like to create a timeperiod for each host and > that > all the check for this host (service and host-alive) stop/start > according to that timeperiod. Anybody knows a way to do this ? Host and services have historically been separate entities for the most part with no inheritance between them at all. With nagios-3, there is some inheritance happening now between a service and it's host but only for three variables (contact_groups, notification_interval and notification_period: http://nagios.sourceforge.net/docs/3_0/objectinheritance.html#implied_inheritance) . check_period isn't an inheritable property and the most direct way to a solution is to simply specify the same check_period name for the services that you are using for the host. -- Marc ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeremiah.jester at panasonic.aero Wed Oct 15 19:06:57 2008 From: jeremiah.jester at panasonic.aero (jeremiah) Date: Wed, 15 Oct 2008 10:06:57 -0700 Subject: service error? In-Reply-To: <48F60A29.8050808@optiksecurite.com> References: <48F60A29.8050808@optiksecurite.com> Message-ID: <1224090417.6678.4.camel@jeremiah-laptop> Any thoughts on these errors? I'm stumped. Checking services... Error: Service check command 'check_ssh' specified in service 'SSH' for host 'server1' not defined anywhere! Error: Service check command 'check_ssh' specified in service 'SSH' for host 'server2' not defined anywhere! Services page looks like this.. define service{ use generic-service hostgroup_name ssh_servers service_description SSH is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 3 retry_check_interval 1 contact_groups admins notification_interval 30 notification_period 24x7 notification_options w,u,c,r check_command check_ssh } Thanks! Disclaimer: The information contained in this transmission, including any attachments, may contain confidential information of Panasonic Avionics Corporation. This transmission is intended only for the use of the addressee(s) listed above. Unauthorized review, dissemination or other use of the information contained in this transmission is strictly prohibited. If you have received this transmission in error or have reason to believe you are not authorized to receive it, please notify the sender by return email and promptly delete the transmission. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 optiksecurite.com Wed Oct 15 19:20:18 2008 From: nagios at optiksecurite.com (Francis Dube) Date: Wed, 15 Oct 2008 13:20:18 -0400 Subject: service error? In-Reply-To: <1224090417.6678.4.camel@jeremiah-laptop> References: <48F60A29.8050808@optiksecurite.com> <1224090417.6678.4.camel@jeremiah-laptop> Message-ID: <48F62652.1020902@optiksecurite.com> jeremiah a ?crit : > Any thoughts on these errors? I'm stumped. > > Checking services... > > Error: Service check command 'check_ssh' specified in service 'SSH' for > host 'server1' not defined anywhere! > Error: Service check command 'check_ssh' specified in service 'SSH' for > host 'server2' not defined anywhere! > > Services page looks like this.. > > define service{ > use generic-service > hostgroup_name ssh_servers > service_description SSH > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 3 > retry_check_interval 1 > contact_groups admins > notification_interval 30 > notification_period 24x7 > notification_options w,u,c,r > check_command check_ssh > } > > Thanks! > > > > Disclaimer: The information contained in this transmission, including any > attachments, may contain confidential information of Panasonic Avionics > Corporation. This transmission is intended only for the use of the > addressee(s) listed above. Unauthorized review, dissemination or other use > of the information contained in this transmission is strictly prohibited. > If you have received this transmission in error or have reason to believe > you are not authorized to receive it, please notify the sender by return > email and promptly delete the transmission. > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > You need to define this command in your command.cfg file. A check_ssh command usually looks like this : # 'check_ssh' command definition define command{ command_name check_ssh command_line $USER1$/check_ssh -H $HOSTADDRESS$ } Francis Dube R&D - Optik Securite www.optiksecurite.com ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 15 19:00:55 2008 From: marc at ena.com (Marc Powell) Date: Wed, 15 Oct 2008 12:00:55 -0500 Subject: max_check_attempts error In-Reply-To: <1224089317.6678.0.camel@jeremiah-laptop> References: <1224021972.13278.6.camel@jeremiah-laptop> <1224089317.6678.0.camel@jeremiah-laptop> Message-ID: <38C24708-89E0-40CC-AFA8-2C8311B28597@ena.com> On Oct 15, 2008, at 11:48 AM, jeremiah wrote: > Great. thanks. that helps. > > Any idea on this one? > > Error: Service check command 'check_ssh' specified in service 'SSH' > for > host 'pse06' not defined anywhere! Please always respond on list so that others, now and in the future, benefit from your experience. This can be answered by searching for 'not defined anywhere' in the archives but you have a service{} definition that references a command named 'check_ssh' but you don't have a command{} definition for it. Nagios has no idea what it is. -- Marc ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 15 19:52:10 2008 From: marc at ena.com (Marc Powell) Date: Wed, 15 Oct 2008 12:52:10 -0500 Subject: Host-based service check period In-Reply-To: <48F62691.9060604@optiksecurite.com> References: <48F60A29.8050808@optiksecurite.com> <48F62691.9060604@optiksecurite.com> Message-ID: <04166257-09FA-4833-B151-ED2F16FDAC5E@ena.com> On Oct 15, 2008, at 12:21 PM, Francis Dube wrote: > Yeah but if I specify the same check_period name for the service, I > have to define a service for every host (ex : a check_service_host1, > check_service_host2, and so on..) because the services running on > each hosts are running at different hours. Correct. The possibility does exist that you've chosen a config management scheme that doesn't meet your needs. Template shortcuts are nice but you can lose a lot of flexibility. > I'll take a look at notification_period inheritance, it may be a > good work around too. I agree, if you don't mind that the checks still happen. -- Marc ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From perldork at webwizarddesign.com Wed Oct 15 19:56:14 2008 From: perldork at webwizarddesign.com (Max) Date: Wed, 15 Oct 2008 13:56:14 -0400 Subject: No parallel checks with scripts under? In-Reply-To: References: <48F59C42.2080304@op5.se> <48F5EF28.5070502@op5.se> Message-ID: Deployed an increased config (200+ host with around 2000 checks) to a dual core laptop running CentOS with 1.5 GB RAM and am getting huge performance, 1531 checks in less than 5 minutes, seeing 8-10 nagios processes running at once as checks are parallelized, so I now know that something is messed up with the OS config i did on our prod host, just not sure what config setting is wrong .. comparing the CentOS config output with the prod output to see if I can find the problem i introduced, will post again when i find a solution. Again, if anyone sees a problem that stands out with my configs, feel free to tell me where i am being a dummy, otherwise i will do that myself :p when i find out what I did wrong with my manual rpm updates. Thanks again, Andreas, for your help with this. - Max ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 optiksecurite.com Wed Oct 15 19:21:21 2008 From: nagios at optiksecurite.com (Francis Dube) Date: Wed, 15 Oct 2008 13:21:21 -0400 Subject: Host-based service check period In-Reply-To: References: <48F60A29.8050808@optiksecurite.com> Message-ID: <48F62691.9060604@optiksecurite.com> Marc Powell a ?crit : > On Oct 15, 2008, at 10:20 AM, Francis Dube wrote: > > >> check period. I would like to create a timeperiod for each host and >> that >> all the check for this host (service and host-alive) stop/start >> according to that timeperiod. Anybody knows a way to do this ? >> > > Host and services have historically been separate entities for the > most part with no inheritance between them at all. With nagios-3, > there is some inheritance happening now between a service and it's > host but only for three variables (contact_groups, > notification_interval and notification_period: http://nagios.sourceforge.net/docs/3_0/objectinheritance.html#implied_inheritance) > . check_period isn't an inheritable property and the most direct way > to a solution is to simply specify the same check_period name for the > services that you are using for the host. > > -- > Marc > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > Yeah but if I specify the same check_period name for the service, I have to define a service for every host (ex : a check_service_host1, check_service_host2, and so on..) because the services running on each hosts are running at different hours. I'll take a look at notification_period inheritance, it may be a good work around too. Thanks for the info. Francis Dube R&D www.optiksecurite.com ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeremiah.jester at panasonic.aero Wed Oct 15 19:58:39 2008 From: jeremiah.jester at panasonic.aero (jeremiah) Date: Wed, 15 Oct 2008 10:58:39 -0700 Subject: nagios not starting In-Reply-To: <48F62652.1020902@optiksecurite.com> References: <48F60A29.8050808@optiksecurite.com> <1224090417.6678.4.camel@jeremiah-laptop> <48F62652.1020902@optiksecurite.com> Message-ID: <1224093519.6662.0.camel@jeremiah-laptop> Any ideas? ~$ sudo /etc/init.d/nagios2 start [sudo] password for user: * Starting nagios2 monitoring daemon nagios2 kill: 1: No such process [ OK ] Thanks! Disclaimer: The information contained in this transmission, including any attachments, may contain confidential information of Panasonic Avionics Corporation. This transmission is intended only for the use of the addressee(s) listed above. Unauthorized review, dissemination or other use of the information contained in this transmission is strictly prohibited. If you have received this transmission in error or have reason to believe you are not authorized to receive it, please notify the sender by return email and promptly delete the transmission. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeremiah.jester at panasonic.aero Wed Oct 15 21:00:38 2008 From: jeremiah.jester at panasonic.aero (jeremiah) Date: Wed, 15 Oct 2008 12:00:38 -0700 Subject: check_mysql Message-ID: <1224097238.11347.4.camel@jeremiah-laptop> I want nagios to automatically check mysql services on my servers. However when i view the web interface i see that staus is UNKNOWN and it displays the usage for check_mysql. In what file am i supposed to put the arguments for this command? Here is what i have so far in commands.cfg define command{ command_name check_mysql command_line $USER1$/check_mysql -H $HOSTADDRESS$ -P $ARG1$ -u $ARG2$ -p $ARG3$ } and my services.cf file... define service{ use generic-service ; Name of service template hostgroup_name mysql_servers service_description MYSQL is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 3 retry_check_interval 1 contact_groups admins notification_interval 30 notification_period 24x7 notification_options w,u,c,r check_command check_mysql } Thanks! Disclaimer: The information contained in this transmission, including any attachments, may contain confidential information of Panasonic Avionics Corporation. This transmission is intended only for the use of the addressee(s) listed above. Unauthorized review, dissemination or other use of the information contained in this transmission is strictly prohibited. If you have received this transmission in error or have reason to believe you are not authorized to receive it, please notify the sender by return email and promptly delete the transmission. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From svalding at doverchem.com Wed Oct 15 21:04:56 2008 From: svalding at doverchem.com (Valdinger, Stephen (DOV, MSX)) Date: Wed, 15 Oct 2008 15:04:56 -0400 Subject: nagios not starting Message-ID: Where did you get a nagios2 binary? The Ubuntu repos? I've never seen that before. Stephen Valdinger MIS Helpdesk Coordinator 330.365.3622 -O 740.491.0958 - C svalding at doverchem.com Never agrue with an idiot. They drag you down to their level and then beat you with their experience. -----Original Message----- From: jeremiah [mailto:jeremiah.jester at panasonic.aero] Sent: Wednesday, October 15, 2008 1:59 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] nagios not starting Any ideas? ~$ sudo /etc/init.d/nagios2 start [sudo] password for user: * Starting nagios2 monitoring daemon nagios2 kill: 1: No such process [ OK ] Thanks! Disclaimer: The information contained in this transmission, including any attachments, may contain confidential information of Panasonic Avionics Corporation. This transmission is intended only for the use of the addressee(s) listed above. Unauthorized review, dissemination or other use of the information contained in this transmission is strictly prohibited. If you have received this transmission in error or have reason to believe you are not authorized to receive it, please notify the sender by return email and promptly delete the transmission. ------------------------------------------------------------------------ - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ricardo.maraschini at opservices.com.br Wed Oct 15 21:23:01 2008 From: ricardo.maraschini at opservices.com.br (Ricardo Maraschini) Date: Wed, 15 Oct 2008 17:23:01 -0200 (BRST) Subject: check_mysql In-Reply-To: <1224097238.11347.4.camel@jeremiah-laptop> References: <1224097238.11347.4.camel@jeremiah-laptop> Message-ID: <2869775.44221224098581743.JavaMail.root@mail.opservices.com.br> ----- "jeremiah" wrote: > I want nagios to automatically check mysql services on my servers. > However when i view the web interface i see that staus is UNKNOWN and > it > displays the usage for check_mysql. In what file am i supposed to put > the arguments for this command? > > define service{ > use generic-service ; > Name > of service template > hostgroup_name mysql_servers > service_description MYSQL > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 3 > retry_check_interval 1 > contact_groups admins > notification_interval 30 > notification_period 24x7 > notification_options w,u,c,r > check_command check_mysql Change your check_command directive to check_mysql!ARG1!ARG2!ARG3, where ARG1 is the $ARG1$ value of your check command from commands.cfg and so... -rm ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From scarolan at gmail.com Wed Oct 15 21:28:54 2008 From: scarolan at gmail.com (Sean Carolan) Date: Wed, 15 Oct 2008 14:28:54 -0500 Subject: How would you monitor a large list of URLs? Message-ID: <277020fc0810151228u587df571vce481465c45e0e5c@mail.gmail.com> I'm sure at least one of you may have been down this path before, so here's my question: I have a large list of URLs that I'd like to monitor with Nagios. At some point I may break them into groups but for the time being I'd be happy to have a simple check_url monitor with the same options for all URLs. How would you tackle this problem? ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 15 21:33:37 2008 From: marc at ena.com (Marc Powell) Date: Wed, 15 Oct 2008 14:33:37 -0500 Subject: check_mysql In-Reply-To: <1224097238.11347.4.camel@jeremiah-laptop> References: <1224097238.11347.4.camel@jeremiah-laptop> Message-ID: On Oct 15, 2008, at 2:00 PM, jeremiah wrote: > I want nagios to automatically check mysql services on my servers. > However when i view the web interface i see that staus is UNKNOWN > and it > displays the usage for check_mysql. In what file am i supposed to put > the arguments for this command? Based on your command{} definition, they should be in your service definition. > Here is what i have so far in commands.cfg > > define command{ > command_name check_mysql > command_line $USER1$/check_mysql -H $HOSTADDRESS$ -P $ARG1$ > -u $ARG2$ -p $ARG3$ > } > > and my services.cf file... > > define service{ > [chop] > check_command check_mysql > } check_command should be something like -- check_command check_mysql!!! See the last half of the Macro Substitution section of http://nagios.sourceforge.net/docs/2_0/macros.html -- Marc ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Aaron.Segura at cabelas.com Wed Oct 15 21:39:36 2008 From: Aaron.Segura at cabelas.com (Aaron Segura) Date: Wed, 15 Oct 2008 13:39:36 -0600 Subject: How would you monitor a large list of URLs? In-Reply-To: <277020fc0810151228u587df571vce481465c45e0e5c@mail.gmail.com> References: <277020fc0810151228u587df571vce481465c45e0e5c@mail.gmail.com> Message-ID: Write a simple shell script wrapper for check_http to iterate over a list of URLs and report any errors. -----Original Message----- From: Sean Carolan [mailto:scarolan at gmail.com] Sent: Wednesday, October 15, 2008 1:29 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] How would you monitor a large list of URLs? I'm sure at least one of you may have been down this path before, so here's my question: I have a large list of URLs that I'd like to monitor with Nagios. At some point I may break them into groups but for the time being I'd be happy to have a simple check_url monitor with the same options for all URLs. How would you tackle this problem? ------------------------------------------------------------------------ - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 15 21:42:39 2008 From: marc at ena.com (Marc Powell) Date: Wed, 15 Oct 2008 14:42:39 -0500 Subject: nagios not starting In-Reply-To: <1224093519.6662.0.camel@jeremiah-laptop> References: <48F60A29.8050808@optiksecurite.com> <1224090417.6678.4.camel@jeremiah-laptop> <48F62652.1020902@optiksecurite.com> <1224093519.6662.0.camel@jeremiah-laptop> Message-ID: <5A791972-0C76-4D4B-A6D5-85CF2D7E580F@ena.com> On Oct 15, 2008, at 12:58 PM, jeremiah wrote: > Any ideas? > > ~$ sudo /etc/init.d/nagios2 start > [sudo] password for user: > * Starting nagios2 monitoring daemon nagios2 > kill: 1: No such process Eliminate sudo as a culprit. Can you run it directly as root -- /etc/init.d/nagios2 start or /path/to/nagios/bin/nagios or /path/to/nagios/bin/nagios -v /path/to/nagios/etc/nagios.cfg or /path/to/nagios/bin/nagios -d /path/to/nagios/etc/nagios.cfg Did you happen to mount the partition that the nagios binary lives in with noexec? What OS is this on? -- Marc ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Gerhard.Lausser at consol.de Wed Oct 15 22:01:34 2008 From: Gerhard.Lausser at consol.de (Gerhard Lausser) Date: Wed, 15 Oct 2008 22:01:34 +0200 Subject: How would you monitor a large list of URLs? In-Reply-To: <277020fc0810151228u587df571vce481465c45e0e5c@mail.gmail.com> References: <277020fc0810151228u587df571vce481465c45e0e5c@mail.gmail.com> Message-ID: Hi, check_multi @ http://my-plugin.de/wiki/projects/check_multi/start might be an option. It has a configuration file where you can put all the single check_http commands, one line for each of your urls. Gerhard > -----Urspr?ngliche Nachricht----- > Von: Sean Carolan [mailto:scarolan at gmail.com] > Gesendet: Mittwoch, 15. Oktober 2008 21:29 > An: nagios-users at lists.sourceforge.net > Betreff: [Nagios-users] How would you monitor a large list of URLs? > > I'm sure at least one of you may have been down this path > before, so here's my question: > > I have a large list of URLs that I'd like to monitor with > Nagios. At some point I may break them into groups but for > the time being I'd be happy to have a simple check_url > monitor with the same options for all URLs. How would you > tackle this problem? > > -------------------------------------------------------------- > ----------- > This SF.Net email is sponsored by the Moblin Your Move > Developer's challenge Build the coolest Linux based > applications with Moblin SDK & win great prizes Grand prize > is a trip for two to an Open Source event anywhere in the > world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From israel at frontierflying.com Wed Oct 15 21:10:35 2008 From: israel at frontierflying.com (Israel Brewster) Date: Wed, 15 Oct 2008 11:10:35 -0800 Subject: check_mysql In-Reply-To: <1224097238.11347.4.camel@jeremiah-laptop> References: <1224097238.11347.4.camel@jeremiah-laptop> Message-ID: <56F561C0-2C98-4B79-A120-2562189A0AA3@frontierflying.com> On Oct 15, 2008, at 11:00 AM, jeremiah wrote: > I want nagios to automatically check mysql services on my servers. > However when i view the web interface i see that staus is UNKNOWN > and it > displays the usage for check_mysql. In what file am i supposed to put > the arguments for this command? The arguments go in your service definition on the check_command line, separated from each other and the command name by "!". So in your case, you would have a check_command line something like: check_command check_mysql!!! where and are respectively whatever you need for the -P, -u and -p switches to check_mysql. ----------------------------------------------- Israel Brewster Computer Support Technician Frontier Flying Service Inc. 5245 Airport Industrial Rd Fairbanks, AK 99709 (907) 450-7250 x293 ----------------------------------------------- > > > Here is what i have so far in commands.cfg > > define command{ > command_name check_mysql > command_line $USER1$/check_mysql -H $HOSTADDRESS$ -P $ARG1$ > -u $ARG2$ -p $ARG3$ > } > > and my services.cf file... > > define service{ > use generic-service ; Name > of service template > hostgroup_name mysql_servers > service_description MYSQL > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 3 > retry_check_interval 1 > contact_groups admins > notification_interval 30 > notification_period 24x7 > notification_options w,u,c,r > check_command check_mysql > } > > > Thanks! > > > > Disclaimer: The information contained in this transmission, > including any > attachments, may contain confidential information of Panasonic > Avionics > Corporation. This transmission is intended only for the use of the > addressee(s) listed above. Unauthorized review, dissemination or > other use > of the information contained in this transmission is strictly > prohibited. > If you have received this transmission in error or have reason to > believe > you are not authorized to receive it, please notify the sender by > return > email and promptly delete the transmission. > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win > great prizes > Grand prize is a trip for two to an Open Source event anywhere in > the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From JHorowitz at looksmart.net Wed Oct 15 21:56:05 2008 From: JHorowitz at looksmart.net (Jonah Horowitz) Date: Wed, 15 Oct 2008 12:56:05 -0700 Subject: How would you monitor a large list of URLs? In-Reply-To: <277020fc0810151228u587df571vce481465c45e0e5c@mail.gmail.com> References: <277020fc0810151228u587df571vce481465c45e0e5c@mail.gmail.com> Message-ID: On 10/15/08 12:28 PM, "Sean Carolan" wrote: > I'm sure at least one of you may have been down this path before, so > here's my question: > > I have a large list of URLs that I'd like to monitor with Nagios. At > some point I may break them into groups but for the time being I'd be > happy to have a simple check_url monitor with the same options for all > URLs. How would you tackle this problem? > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 would define a URL check template like so: define service{ name url-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 1 flap_detection_enabled 1 failure_prediction_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 register 0 notification_options w,u,c,f,r servicegroups url,notifications is_volatile 0 check_period 24x7 max_check_attempts 4 normal_check_interval 2 retry_check_interval 1 contact_groups admins notification_interval 10 notification_period 24x7 } And then follow that with a bunch of short checks. define service{ use url-service host_name foo.looksmart.com service_description http check check_command check_url!/foo/bar/weeeeee } define service{ use url-service host_name bar.looksmart.com service_description http check check_command check_url!/bar/foo/weeeeee } define service{ use url-service host_name weeeeee.looksmart.com service_description http check check_command check_url!/weeeeee/query?foo=bar } -- Jonah Horowitz ? Monitoring Manager ? jhorowitz at looksmart.net W: 415-348-7694 ? F: 415-348-7033 ? M: 415-513-7202 LookSmart - Premium and Performance Advertising Solutions 625 Second Street, San Francisco, CA 94107 -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2151 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kaskada at email.cz Wed Oct 15 23:10:53 2008 From: kaskada at email.cz (kaskada at email.cz) Date: Wed, 15 Oct 2008 23:10:53 +0200 (CEST) Subject: adding legends inside status map links Message-ID: <1295.6940-24828-1921747509-1224105053@email.cz> Hello, is there a way how to add legends into a status map? Especially legends to lines between hosts. Or at least to the hosts - there are their names so far, so it should be possible to add there some more text which would come as a result of a plugin. Am I wright? I`m using Nagios for (not only) checking wireless bridges and it would be great if I could just look at the status map and see for example frequency and speed of that wireless links right next to the link in the map. Also this would be very nice for planning frequecies as they would be visible at first look. I think/hope I would be able to write a script/plugin for mining those data and injecting them somewhere. What I`m asking you for is a place in Nagios files, where these mined data from plugin could be placed. Thank you a lot. Pepe ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rmp.dmd1229 at gmail.com Wed Oct 15 23:19:01 2008 From: rmp.dmd1229 at gmail.com (rmp dmd) Date: Wed, 15 Oct 2008 17:19:01 -0400 Subject: Monitor nagios running on a different server In-Reply-To: References: <61d255bb0810150828gdf46472h8565fee0a3709da1@mail.gmail.com> Message-ID: <61d255bb0810151419t77a18c75p508d86243f2eea63@mail.gmail.com> Thanks for all the replies I appreciate it. But most of the reply advised to use check_nagios to monitor Nagios process on the local machine. What I need is to monitor whether nagios for our production system (installed on a different server) is running or has stopped. I'm not sure if this can be checked via port and which port? ie check_command check_tcp![portnumber] Thanks! On Wed, Oct 15, 2008 at 12:16 PM, Gerhard Lausser wrote: > Hi, > > did you google for check_nagios? > "This plugin checks the status of the Nagios process on the local machine > The plugin will check to make sure the Nagios status log is no older than > the number of minutes specified by the expires option. > It also checks the process table for a process matching the command > argument." > > Gerhard > > ------------------------------ > *Von:* rmp dmd [mailto:rmp.dmd1229 at gmail.com] > *Gesendet:* Mittwoch, 15. Oktober 2008 17:28 > *An:* nagios-users at lists.sourceforge.net > *Betreff:* [Nagios-users] Monitor nagios running on a different server > > Hi, > > We have a nagios monitoring system for Production systems installed on > prodservmon1. We want to include monitoring of this in our nagios > monitoring for our corporate systems. Simply put, we want to monitor nagios > service running on prodservmon1. > > I've been googling but I haven't find anything. Kindly advise on how to do > this. > > > > Thanks! > Roehl > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 16 00:06:50 2008 From: marc at ena.com (Marc Powell) Date: Wed, 15 Oct 2008 17:06:50 -0500 Subject: adding legends inside status map links In-Reply-To: <1295.6940-24828-1921747509-1224105053@email.cz> References: <1295.6940-24828-1921747509-1224105053@email.cz> Message-ID: <622CAA20-4C80-45CB-8F91-949149F12142@ena.com> On Oct 15, 2008, at 4:10 PM, kaskada at email.cz wrote: > I think/hope I would be able to write a script/plugin for mining > those data and injecting them somewhere. What I`m asking you for is > a place in Nagios files, where these mined data from plugin could be > placed This functionality doesn't exist within nagios; the statusmap is fairly limited. One of the other mapping addons (nagvis for example), might have options like this but I don't use them or know. -- Marc ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeremiah.jester at panasonic.aero Wed Oct 15 23:31:50 2008 From: jeremiah.jester at panasonic.aero (jeremiah) Date: Wed, 15 Oct 2008 14:31:50 -0700 Subject: mysql connect error Message-ID: <1224106310.11347.12.camel@jeremiah-laptop> I'm getting the following check_mysql error through the web interface. +++ Access denied for user 'nagios'@'ipadddress' (using password: NO) " ++++ Is this trying to logon to the host with a nagios system account? Can someone help me with this in understanding what I'm supposed to do to resolve this? thanks, JJ Disclaimer: The information contained in this transmission, including any attachments, may contain confidential information of Panasonic Avionics Corporation. This transmission is intended only for the use of the addressee(s) listed above. Unauthorized review, dissemination or other use of the information contained in this transmission is strictly prohibited. If you have received this transmission in error or have reason to believe you are not authorized to receive it, please notify the sender by return email and promptly delete the transmission. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeremiah.jester at panasonic.aero Thu Oct 16 00:57:53 2008 From: jeremiah.jester at panasonic.aero (jeremiah) Date: Wed, 15 Oct 2008 15:57:53 -0700 Subject: contacts.cfg error. Message-ID: <1224111473.11347.19.camel@jeremiah-laptop> Any thoughts on how to fix this one? ==== Checking contacts... Error: Service notification command 'notify-by-email' specified for contact 'root' is not defined anywhere! Error: Host notification command 'host-notify-by-email' specified for contact 'root' is not defined anywhere! ===== Here is my contacts.cfg file... define contact{ contact_name root alias Jeremiah service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c,r host_notification_options d,r service_notification_commands notify-by-email host_notification_commands host-notify-by-email email jeremiah.jester at panasonic.aero } define contactgroup{ contactgroup_name admins alias Nagios Administrators members root } Thanks! JJ Disclaimer: The information contained in this transmission, including any attachments, may contain confidential information of Panasonic Avionics Corporation. This transmission is intended only for the use of the addressee(s) listed above. Unauthorized review, dissemination or other use of the information contained in this transmission is strictly prohibited. If you have received this transmission in error or have reason to believe you are not authorized to receive it, please notify the sender by return email and promptly delete the transmission. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From smcafee at collaborativefusion.com Thu Oct 16 01:21:22 2008 From: smcafee at collaborativefusion.com (Sean McAfee) Date: Wed, 15 Oct 2008 19:21:22 -0400 Subject: Monitor nagios running on a different server In-Reply-To: <61d255bb0810151419t77a18c75p508d86243f2eea63@mail.gmail.com> References: <61d255bb0810150828gdf46472h8565fee0a3709da1@mail.gmail.com> <61d255bb0810151419t77a18c75p508d86243f2eea63@mail.gmail.com> Message-ID: <48F67AF2.3010009@collaborativefusion.com> rmp dmd wrote: > Thanks for all the replies I appreciate it. > > But most of the reply advised to use check_nagios to monitor Nagios > process on the local machine. > > What I need is to monitor whether nagios for our production system > (installed on a different server) is running or has stopped. > Right, but since Nagios isn't really a network service, it can only be checked locally. That's why my response mentioned NRPE. NRPE is installed on remote machines and allows you to run checks and plugins on the target machine and report the results back to your Nagios instance. Your main Nagios server will actually do check_nrpe - but with arguments directing the remote machine to run check_nagios and then report back the results. -- Sean McAfee Collaborative Fusion, Inc. smcafee at collaborativefusion.com 412-422-3463 x 4025 1710 Murray Avenue, Suite 320 Pittsburgh, PA 15217 **************************************************************** IMPORTANT: This message contains confidential information and is intended only for the individual named. If the reader of this message is not an intended recipient (or the individual responsible for the delivery of this message to an intended recipient), please be advised that any re-use, dissemination, distribution or copying of this message is prohibited. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. **************************************************************** ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From smcafee at collaborativefusion.com Thu Oct 16 01:25:56 2008 From: smcafee at collaborativefusion.com (Sean McAfee) Date: Wed, 15 Oct 2008 19:25:56 -0400 Subject: contacts.cfg error. In-Reply-To: <1224111473.11347.19.camel@jeremiah-laptop> References: <1224111473.11347.19.camel@jeremiah-laptop> Message-ID: <48F67C04.8000504@collaborativefusion.com> jeremiah wrote: > Any thoughts on how to fix this one? > > ==== > Checking contacts... > Error: Service notification command 'notify-by-email' specified for > contact 'root' is not defined anywhere! > Error: Host notification command 'host-notify-by-email' specified for > contact 'root' is not defined anywhere! > ===== > > Here is my contacts.cfg file... The problem isn't actually with your contacts.cfg, it's just that you're missing the commands that are referenced (I know, it can get confusing). Is commands.cfg anywhere in your nagios.cfg? In a default install, that's where these would be defined. -- Sean McAfee Collaborative Fusion, Inc. smcafee at collaborativefusion.com 412-422-3463 x 4025 1710 Murray Avenue, Suite 320 Pittsburgh, PA 15217 **************************************************************** IMPORTANT: This message contains confidential information and is intended only for the individual named. If the reader of this message is not an intended recipient (or the individual responsible for the delivery of this message to an intended recipient), please be advised that any re-use, dissemination, distribution or copying of this message is prohibited. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. **************************************************************** ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hvdkooij at vanderkooij.org Thu Oct 16 01:26:22 2008 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Thu, 16 Oct 2008 01:26:22 +0200 Subject: contacts.cfg error. In-Reply-To: <1224111473.11347.19.camel@jeremiah-laptop> References: <1224111473.11347.19.camel@jeremiah-laptop> Message-ID: <48F67C1E.7060807@vanderkooij.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 jeremiah wrote: > Error: Service notification command 'notify-by-email' specified for > contact 'root' is not defined anywhere! > Error: Host notification command 'host-notify-by-email' specified for > contact 'root' is not defined anywhere! The answer is right in front of you. You need to define these commands. In fact they should be listed in one of your sample configuration files. Which sections of the manuals did you use to find an answer to this question? Hugo. - -- hvdkooij at vanderkooij.org http://hugo.vanderkooij.org/ PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc A: Yes. >Q: Are you sure? >>A: Because it reverses the logical flow of conversation. >>>Q: Why is top posting frowned upon? Bored? Click on http://spamornot.org/ and rate those images. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFI9nwcBvzDRVjxmYERAvpJAJ9FY7Yx5NgoYsU7gtVhSvA65+mDUACfV6Gi SLilbuXS+MczNxNoWsdDooU= =GihX -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeremiah.jester at panasonic.aero Thu Oct 16 01:40:12 2008 From: jeremiah.jester at panasonic.aero (jeremiah) Date: Wed, 15 Oct 2008 16:40:12 -0700 Subject: contacts.cfg error. In-Reply-To: <48F67C04.8000504@collaborativefusion.com> References: <1224111473.11347.19.camel@jeremiah-laptop> <48F67C04.8000504@collaborativefusion.com> Message-ID: <1224114012.11347.24.camel@jeremiah-laptop> Thanks for your response. I'm seeing this line in nagios.cfg. # Command definitions cfg_file=/etc/nagios2/commands.cfg What do you tihnk? JJ On Wed, 2008-10-15 at 16:25 -0700, Sean McAfee wrote: > jeremiah wrote: > > Any thoughts on how to fix this one? > > > > ==== > > Checking contacts... > > Error: Service notification command 'notify-by-email' specified for > > contact 'root' is not defined anywhere! > > Error: Host notification command 'host-notify-by-email' specified > for > > contact 'root' is not defined anywhere! > > ===== > > > > Here is my contacts.cfg file... > The problem isn't actually with your contacts.cfg, it's just that > you're > missing the commands that are referenced (I know, it can get > confusing). > > Is commands.cfg anywhere in your nagios.cfg? In a default install, > that's where these would be defined. > > -- > Sean McAfee > Collaborative Fusion, Inc. > > smcafee at collaborativefusion.com > 412-422-3463 x 4025 > > 1710 Murray Avenue, Suite 320 > Pittsburgh, PA 15217 > > **************************************************************** > IMPORTANT: This message contains confidential information > and is intended only for the individual named. If the reader of > this message is not an intended recipient (or the individual > responsible for the delivery of this message to an intended > recipient), please be advised that any re-use, dissemination, > distribution or copying of this message is prohibited. Please > notify the sender immediately by e-mail if you have received > this e-mail by mistake and delete this e-mail from your system. > E-mail transmission cannot be guaranteed to be secure or > error-free as information could be intercepted, corrupted, lost, > destroyed, arrive late or incomplete, or contain viruses. The > sender therefore does not accept liability for any errors or > omissions in the contents of this message, which arise as a > result of e-mail transmission. > **************************************************************** > > > > > Disclaimer: The information contained in this transmission, including any attachments, may contain confidential information of Panasonic Avionics Corporation. This transmission is intended only for the use of the addressee(s) listed above. Unauthorized review, dissemination or other use of the information contained in this transmission is strictly prohibited. If you have received this transmission in error or have reason to believe you are not authorized to receive it, please notify the sender by return email and promptly delete the transmission. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeremiah.jester at panasonic.aero Thu Oct 16 01:43:24 2008 From: jeremiah.jester at panasonic.aero (jeremiah) Date: Wed, 15 Oct 2008 16:43:24 -0700 Subject: contacts.cfg error. In-Reply-To: <48F67C1E.7060807@vanderkooij.org> References: <1224111473.11347.19.camel@jeremiah-laptop> <48F67C1E.7060807@vanderkooij.org> Message-ID: <1224114205.11347.27.camel@jeremiah-laptop> It appears to be defined to me. Is this not correct? define contact{ contact_name root alias Jeremiah service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c,r host_notification_options d,r service_notification_commands notify-by-email host_notification_commands host-notify-by-email email } On Wed, 2008-10-15 at 16:26 -0700, Hugo van der Kooij wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > jeremiah wrote: > > > Error: Service notification command 'notify-by-email' specified for > > contact 'root' is not defined anywhere! > > Error: Host notification command 'host-notify-by-email' specified > for > > contact 'root' is not defined anywhere! > > The answer is right in front of you. You need to define these > commands. > > In fact they should be listed in one of your sample configuration > files. > > Which sections of the manuals did you use to find an answer to this > question? > > Hugo. > > - -- > hvdkooij at vanderkooij.org http://hugo.vanderkooij.org/ > PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc > > A: Yes. > >Q: Are you sure? > >>A: Because it reverses the logical flow of conversation. > >>>Q: Why is top posting frowned upon? > > Bored? Click on http://spamornot.org/ and rate those images. > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.7 (GNU/Linux) > Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org > > iD8DBQFI9nwcBvzDRVjxmYERAvpJAJ9FY7Yx5NgoYsU7gtVhSvA65+mDUACfV6Gi > SLilbuXS+MczNxNoWsdDooU= > =GihX > -----END PGP SIGNATURE----- > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > Disclaimer: The information contained in this transmission, including any attachments, may contain confidential information of Panasonic Avionics Corporation. This transmission is intended only for the use of the addressee(s) listed above. Unauthorized review, dissemination or other use of the information contained in this transmission is strictly prohibited. If you have received this transmission in error or have reason to believe you are not authorized to receive it, please notify the sender by return email and promptly delete the transmission. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From perldork at webwizarddesign.com Thu Oct 16 03:55:33 2008 From: perldork at webwizarddesign.com (Max) Date: Wed, 15 Oct 2008 21:55:33 -0400 Subject: No parallel checks with scripts under? In-Reply-To: References: <48F59C42.2080304@op5.se> <48F5EF28.5070502@op5.se> Message-ID: This is my official 'stupid guy' post. I finally got permission to use yum live instead of scping rpms around, so I de-installed gcc and it's dependencies (except for libgcc for obvious reasons :p) as well as gd, libjpeg and glibc-headers, and then re-installed them with yum and recompiled nagios now our dual AMD x64 host is doing over 300 checks a minute. :) with an average check latency of .046 secs and a max of 3 secs. Thanks again Andreas for your help. - Max ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ratty at they.org Thu Oct 16 03:16:20 2008 From: ratty at they.org (frank) Date: Wed, 15 Oct 2008 18:16:20 -0700 (PDT) Subject: contacts.cfg error. In-Reply-To: <1224114205.11347.27.camel@jeremiah-laptop> References: <1224111473.11347.19.camel@jeremiah-laptop> <48F67C1E.7060807@vanderkooij.org> <1224114205.11347.27.camel@jeremiah-laptop> Message-ID: No, you have defined a _contact_. One part of the contact definition is a pointer to the notify-by-email command which is not defined. Here is a sample. It came from the misccommands.cfg file that was part of the RPM I installed from fedora. # 'notify-by-email' command definition 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: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ } -f On Wed, 15 Oct 2008, jeremiah wrote: > Date: Wed, 15 Oct 2008 16:43:24 -0700 > From: jeremiah > To: Nagios Users Mailinglist > Subject: Re: [Nagios-users] contacts.cfg error. > > It appears to be defined to me. Is this not correct? > > define contact{ > contact_name root > alias Jeremiah > service_notification_period 24x7 > host_notification_period 24x7 > service_notification_options w,u,c,r > host_notification_options d,r > service_notification_commands notify-by-email > host_notification_commands host-notify-by-email > email > } > > > On Wed, 2008-10-15 at 16:26 -0700, Hugo van der Kooij wrote: >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> jeremiah wrote: >> >>> Error: Service notification command 'notify-by-email' specified for >>> contact 'root' is not defined anywhere! >>> Error: Host notification command 'host-notify-by-email' specified >> for >>> contact 'root' is not defined anywhere! >> >> The answer is right in front of you. You need to define these >> commands. >> >> In fact they should be listed in one of your sample configuration >> files. >> >> Which sections of the manuals did you use to find an answer to this >> question? >> >> Hugo. >> >> - -- >> hvdkooij at vanderkooij.org http://hugo.vanderkooij.org/ >> PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc >> >> A: Yes. >> >Q: Are you sure? >> >>A: Because it reverses the logical flow of conversation. >> >>>Q: Why is top posting frowned upon? >> >> Bored? Click on http://spamornot.org/ and rate those images. >> >> -----BEGIN PGP SIGNATURE----- >> Version: GnuPG v1.4.7 (GNU/Linux) >> Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org >> >> iD8DBQFI9nwcBvzDRVjxmYERAvpJAJ9FY7Yx5NgoYsU7gtVhSvA65+mDUACfV6Gi >> SLilbuXS+MczNxNoWsdDooU= >> =GihX >> -----END PGP SIGNATURE----- >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the >> world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> >> >> > > > Disclaimer: The information contained in this transmission, including any > attachments, may contain confidential information of Panasonic Avionics > Corporation. This transmission is intended only for the use of the > addressee(s) listed above. Unauthorized review, dissemination or other use > of the information contained in this transmission is strictly prohibited. > If you have received this transmission in error or have reason to believe > you are not authorized to receive it, please notify the sender by return > email and promptly delete the transmission. > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hvdkooij at vanderkooij.org Thu Oct 16 08:11:53 2008 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Thu, 16 Oct 2008 08:11:53 +0200 Subject: contacts.cfg error. In-Reply-To: <1224114205.11347.27.camel@jeremiah-laptop> References: <1224111473.11347.19.camel@jeremiah-laptop> <48F67C1E.7060807@vanderkooij.org> <1224114205.11347.27.camel@jeremiah-laptop> Message-ID: <48F6DB29.9020802@vanderkooij.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 jeremiah wrote: > It appears to be defined to me. Is this not correct? No. It only shows to me that you have not done the required thing. That is that you need to sit down and read the manual of nagios. So it would be very much appriciated if you take the time to sit down with the manual and find the answers in there as most of the questions you have send so far indicate that you have not even seen the manual. If something is unclear in the manual then by all means ask for clearification. But I think that asking questions that show a lack of commitment to read the manual and understanding the way in which nagios works is a cheap way of getting around you doing what you should do. And it is my simple view that we should not encourage people to start with nagios untill they have read the manual. Hugo. - -- hvdkooij at vanderkooij.org http://hugo.vanderkooij.org/ PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc A: Yes. >Q: Are you sure? >>A: Because it reverses the logical flow of conversation. >>>Q: Why is top posting frowned upon? Bored? Click on http://spamornot.org/ and rate those images. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFI9tsnBvzDRVjxmYERAisVAKCgQrwzccAsxI8klhw6ztot29iQLwCgiaEX coUF2KLGMD6MGMa8cthJU68= =pzlR -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gurkan.aslan at comturk.com Thu Oct 16 09:01:56 2008 From: gurkan.aslan at comturk.com (=?ISO-8859-1?Q?G=FCrkan?= Aslan) Date: Thu, 16 Oct 2008 10:01:56 +0300 Subject: nagios not starting In-Reply-To: <1224093519.6662.0.camel@jeremiah-laptop> References: <48F60A29.8050808@optiksecurite.com> <1224090417.6678.4.camel@jeremiah-laptop> <48F62652.1020902@optiksecurite.com> <1224093519.6662.0.camel@jeremiah-laptop> Message-ID: <1224140516.6334.1.camel@idesktop> Hi, /etc/init.d/nagios2 script trying to kill something in "start" case. You can check it by editing the /etc/init.d/nagios2 file content. Regards ?r?, 2008-10-15 tarihinde 10:58 -0700 saatinde, jeremiah yazd?: > Any ideas? > > ~$ sudo /etc/init.d/nagios2 start > [sudo] password for user: > * Starting nagios2 monitoring daemon nagios2 > kill: 1: No such process > > > [ OK ] -- G?rkan Aslan Senior Developer Komturk Iletisim Ltd. Sti Phone: +90 212 275 88 99 ext 125 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fferreira at osiatis.es Thu Oct 16 11:25:55 2008 From: fferreira at osiatis.es (Felipe Ferreira) Date: Thu, 16 Oct 2008 11:25:55 +0200 Subject: How would you monitor a large list of URLs? Message-ID: <48F708A3.9080409@osiatis.es> If your problem is the pain to add one by one by hand. I would write a script that would pull a list of the urls,hosts,IP from a text file and generate a hosts.cfg file, that should speed up things.I also advise to first create templates of Hosts,and Services... I use this script to parse 3 args CSV files like, Hostname,Info(Alias),IP You could adjust as you would like... * ->hosts.sh script:* #!/bin/sh #SCRIPT TO MAKE A HOST.CFG list #By Felipe Ferreira 09/10/2008 version 2.0 file=$1 echo "Nombre del Script: $0?; echo "Nombre del Host.txt : $file"; cat $file |while read line; do echo "${line}" NAME=`echo ${line}|cut -d, -f1` INFO=`echo ${line}|cut -d, -f2` IP=`echo ${line}|cut -d, -f3` cat hosts.skel | sed -e "s/NAME/$NAME/" -e "s/INFO/$INFO/" -e "s/IP/$IP/">>hosts.cfg done #clean Illegal Chars cat hosts.cfg | sed -e "s/?/c/" -e "s/?/e/" -e "s/?/e/" -e "s/?/o/" -e "s/?/o/" -e "s/?/a/" -e "s/?/_/" -e "s/?/i/" -e "s/?/u/" -e "s/'/_/" >>hostsCLEAN.cfg ***You will also need a hosts.skel file like this:* define host{ host_name Loopback_NAME use Routers-Dix alias INFO address IP hostgroups DIx_Loopback } Sorry for the long post, I do have it better explained here: http://felipeferreira.net/?p=48 -- *Felipe Ferreira* www.felipeferreira.net -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From slackwaresupport at gmail.com Thu Oct 16 14:28:34 2008 From: slackwaresupport at gmail.com (chris king) Date: Thu, 16 Oct 2008 07:28:34 -0500 Subject: problem with emailing. Message-ID: <414848930810160528x21bfa6ddr3a74ba48feeb97d5@mail.gmail.com> ok heres my issue: nagios.debug ==> nagios.debug <== [1224160395.192595] [2048.1] [pid=2555] **** BEGIN MACRO PROCESSING *********** [1224160395.192619] [2048.1] [pid=2555] Processing: '$USER1$/check_icmp -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5' [1224160395.192638] [2048.1] [pid=2555] Done. Final output: '/usr/local/nagios/libexec/check_icmp -H 10.10.9.15 -w -c -p 5' [1224160395.192642] [2048.1] [pid=2555] **** END MACRO PROCESSING ************* [1224160405.037868] [2048.1] [pid=2555] **** BEGIN MACRO PROCESSING *********** [1224160405.037895] [2048.1] [pid=2555] Processing: 'HOST ALERT: apache0;$HOSTSTATE$;$HOSTSTATETYPE$;$HOSTATTEMPT$;CRITICAL - 10.10.9.15: rta nan, lost 100% ' [1224160405.037910] [2048.1] [pid=2555] Done. Final output: 'HOST ALERT: apache0;DOWN;SOFT;2;CRITICAL - 10.10.9.15: rta nan, lost 100% ' [1224160405.037914] [2048.1] [pid=2555] **** END MACRO PROCESSING ************* my mail.log Oct 16 07:32:15 nagios sendmail[2578]: m9GCWFwB002578: from=nagios, size=226, class=0, nrcpts=1, msgid=< 200810161232.m9GCWFwB002578 at nagios.nsanet.com>, relay=nagios at localhost Oct 16 07:32:15 nagios sm-mta[2579]: m9GCWFPm002579: <$@nagios.nsanet.com>... User unknown Oct 16 07:32:15 nagios sendmail[2578]: m9GCWFwB002578: to=$, ctladdr=nagios (104/104), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30226, relay=[ 127.0.0.1] [127.0.0.1], dsn=5.1.1, stat=User unknown Oct 16 07:32:15 nagios sm-mta[2579]: m9GCWFPm002579: from=< nagios at nagios.nsanet.com>, size=226, class=0, nrcpts=0, proto=ESMTP, daemon=MSP-v4, relay=nagios at localhost [127.0.0.1] my contact-by-email command: define command { command_name notify-host-by-email command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$ } can anyone see whats wrong????????? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 16 14:45:36 2008 From: marc at ena.com (Marc Powell) Date: Thu, 16 Oct 2008 07:45:36 -0500 Subject: problem with emailing. In-Reply-To: <414848930810160528x21bfa6ddr3a74ba48feeb97d5@mail.gmail.com> References: <414848930810160528x21bfa6ddr3a74ba48feeb97d5@mail.gmail.com> Message-ID: On Oct 16, 2008, at 7:28 AM, chris king wrote: > my mail.log > > Oct 16 07:32:15 nagios sendmail[2578]: m9GCWFwB002578: from=nagios, > size=226, class=0, nrcpts=1, msgid=<200810161232.m9GCWFwB002578 at nagios.nsanet.com > >, relay=nagios at localhost > Oct 16 07:32:15 nagios sm-mta[2579]: m9GCWFPm002579: <$@nagios.nsanet.com > >... User unknown > Oct 16 07:32:15 nagios sendmail[2578]: m9GCWFwB002578: to=$, > ctladdr=nagios (104/104), delay=00:00:00, xdelay=00:00:00, > mailer=relay, pri=30226, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.1, > stat=User unknown > Oct 16 07:32:15 nagios sm-mta[2579]: m9GCWFPm002579: from= >, size=226, class=0, nrcpts=0, proto=ESMTP, daemon=MSP-v4, > relay=nagios at localhost [127.0.0.1] > > my contact-by-email command: > > define command { > command_name notify-host-by-email > command_line /usr/bin/printf "%b" "***** Nagios *****\n > \nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: > $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/ > Time: $LONGDATETIME$\n" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ > Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$ > } Please post the host, contactgroup and contact definitions. Is there something interesting about the contact's e-mail? Does it contain a $? -- Marc ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From slackwaresupport at gmail.com Thu Oct 16 14:49:07 2008 From: slackwaresupport at gmail.com (chris king) Date: Thu, 16 Oct 2008 07:49:07 -0500 Subject: problem with emailing. Message-ID: <414848930810160549w5e715c62kc1bf86a0e4057ac2@mail.gmail.com> hosts.cfg define host { host_name apache0 check_command check_icmp max_check_attempts 15 check_period 24x7 active_checks_enabled 1 event_handler notify-host-by-email event_handler_enabled 1 notification_interval 15 notification_period 24x7 notifications_enabled 1 alias apache0 address 10.10.9.15 notification_options d,u,r,f stalking_options o,d,u contact_groups linux hostgroups linux }* * contactgroup: define contactgroup { contactgroup_name linux alias linux members cking } contact: define contact { contact_name cking alias cking email cking at nsai.com host_notifications_enabled 1 service_notifications_enabled 1 host_notification_period 24x7 service_notification_period 24x7 can_submit_commands 1 host_notification_options d,u,r service_notification_options w,u,c,r host_notification_commands notify-host-by-email service_notification_commands notify-host-by-email } -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dermoth at aei.ca Thu Oct 16 14:49:35 2008 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Thu, 16 Oct 2008 08:49:35 -0400 Subject: problem with emailing. In-Reply-To: <414848930810160528x21bfa6ddr3a74ba48feeb97d5@mail.gmail.com> References: <414848930810160528x21bfa6ddr3a74ba48feeb97d5@mail.gmail.com> Message-ID: <48F7385F.4010100@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 16/10/08 08:28 AM, chris king wrote: > ok heres my issue: > > nagios.debug > > ==> nagios.debug <== > [1224160395.192595] [2048.1] [pid=2555] **** BEGIN MACRO PROCESSING > *********** > [1224160395.192619] [2048.1] [pid=2555] Processing: '$USER1$/check_icmp > -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5' > [1224160395.192638] [2048.1] [pid=2555] Done. Final output: > '/usr/local/nagios/libexec/check_icmp -H 10.10.9.15 > -w -c -p 5' > [1224160395.192642] [2048.1] [pid=2555] **** END MACRO PROCESSING > ************* > [1224160405.037868] [2048.1] [pid=2555] **** BEGIN MACRO PROCESSING > *********** > [1224160405.037895] [2048.1] [pid=2555] Processing: 'HOST ALERT: > apache0;$HOSTSTATE$;$HOSTSTATETYPE$;$HOSTATTEMPT$;CRITICAL - 10.10.9.15 > : rta nan, lost 100% > ' > [1224160405.037910] [2048.1] [pid=2555] Done. Final output: 'HOST > ALERT: apache0;DOWN;SOFT;2;CRITICAL - 10.10.9.15 : > rta nan, lost 100% > ' > [1224160405.037914] [2048.1] [pid=2555] **** END MACRO PROCESSING > ************* > > > > > > > my mail.log > > Oct 16 07:32:15 nagios sendmail[2578]: m9GCWFwB002578: from=nagios, > size=226, class=0, nrcpts=1, > msgid=<200810161232.m9GCWFwB002578 at nagios.nsanet.com > >, > relay=nagios at localhost > Oct 16 07:32:15 nagios sm-mta[2579]: m9GCWFPm002579: > <$@nagios.nsanet.com >... User unknown > Oct 16 07:32:15 nagios sendmail[2578]: m9GCWFwB002578: to=$, > ctladdr=nagios (104/104), delay=00:00:00, xdelay=00:00:00, mailer=relay, > pri=30226, relay=[127.0.0.1 ] [127.0.0.1 > ], dsn=5.1.1, stat=User unknown > Oct 16 07:32:15 nagios sm-mta[2579]: m9GCWFPm002579: > from=>, > size=226, class=0, nrcpts=0, proto=ESMTP, daemon=MSP-v4, > relay=nagios at localhost [127.0.0.1 ] > > > > > > > > my contact-by-email command: > > define command { > command_name notify-host-by-email > command_line /usr/bin/printf "%b" "***** Nagios > *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: > $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: > $LONGDATETIME$\n" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: > $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$ > } > > > > > > > can anyone see whats wrong????????? Maybe the contact definition? - -- Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFI9zhf6dZ+Kt5BchYRAu4uAJ9Mnpd8H5hOHn2U6b+KWchsN5f2xwCgiCdl E5pXb7rS3+2XwGdfsnvIbt4= =eW9u -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From assaf.flatto at ssp.uk.com Thu Oct 16 15:45:12 2008 From: assaf.flatto at ssp.uk.com (Assaf Flatto) Date: Thu, 16 Oct 2008 14:45:12 +0100 Subject: problem with emailing. In-Reply-To: <414848930810160528x21bfa6ddr3a74ba48feeb97d5@mail.gmail.com> References: <414848930810160528x21bfa6ddr3a74ba48feeb97d5@mail.gmail.com> Message-ID: <200810161445.12298.assaf.flatto@ssp.uk.com> There are no arguments passed to the check_icmp command for the warning and critical ( -w and -c ) . i assume you are passing some arguments in your service declaration , but they are not parsed . Check the service declaration . Assaf On Thursday 16 October 2008 13:28:34 chris king wrote: > ok heres my issue: > nagios.debug > > ==> nagios.debug <== > [1224160395.192595] [2048.1] [pid=2555] **** BEGIN MACRO PROCESSING > *********** > [1224160395.192619] [2048.1] [pid=2555] Processing: '$USER1$/check_icmp -H > $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5' > [1224160395.192638] [2048.1] [pid=2555] Done. Final output: > '/usr/local/nagios/libexec/check_icmp -H 10.10.9.15 -w -c -p 5' > [1224160395.192642] [2048.1] [pid=2555] **** END MACRO PROCESSING > ************* > [1224160405.037868] [2048.1] [pid=2555] **** BEGIN MACRO PROCESSING > *********** > [1224160405.037895] [2048.1] [pid=2555] Processing: 'HOST ALERT: > apache0;$HOSTSTATE$;$HOSTSTATETYPE$;$HOSTATTEMPT$;CRITICAL - 10.10.9.15: > rta nan, lost 100% > ' > [1224160405.037910] [2048.1] [pid=2555] Done. Final output: 'HOST ALERT: > apache0;DOWN;SOFT;2;CRITICAL - 10.10.9.15: rta nan, lost 100% > ' > [1224160405.037914] [2048.1] [pid=2555] **** END MACRO PROCESSING > ************* > > > > > > > my mail.log > > Oct 16 07:32:15 nagios sendmail[2578]: m9GCWFwB002578: from=nagios, > size=226, class=0, nrcpts=1, msgid=< > 200810161232.m9GCWFwB002578 at nagios.nsanet.com>, relay=nagios at localhost > Oct 16 07:32:15 nagios sm-mta[2579]: m9GCWFPm002579: > <$@nagios.nsanet.com>... User unknown > Oct 16 07:32:15 nagios sendmail[2578]: m9GCWFwB002578: to=$, ctladdr=nagios > (104/104), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30226, > relay=[ 127.0.0.1] [127.0.0.1], dsn=5.1.1, stat=User unknown > Oct 16 07:32:15 nagios sm-mta[2579]: m9GCWFPm002579: from=< > nagios at nagios.nsanet.com>, size=226, class=0, nrcpts=0, proto=ESMTP, > daemon=MSP-v4, relay=nagios at localhost [127.0.0.1] > > > > > > > > my contact-by-email command: > > define command { > command_name notify-host-by-email > command_line /usr/bin/printf "%b" "***** Nagios > *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: > $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: > $LONGDATETIME$\n" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: > $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$ > } > > > > > > > can anyone see whats wrong????????? -- Assaf Flatto SSP Ops Team Linux System Administrator IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 16 16:00:30 2008 From: marc at ena.com (Marc Powell) Date: Thu, 16 Oct 2008 09:00:30 -0500 Subject: problem with emailing. In-Reply-To: <414848930810160549w5e715c62kc1bf86a0e4057ac2@mail.gmail.com> References: <414848930810160549w5e715c62kc1bf86a0e4057ac2@mail.gmail.com> Message-ID: On Oct 16, 2008, at 7:49 AM, chris king wrote: > hosts.cfg > > define host { [snip] > > event_handler notify-host-by-email > event_handler_enabled 1 This is incorrect and un-necessary. I am betting that the e-mail log you're referencing is a result of this event handler firing. $CONTACTEMAIL$ isn't a valid macro for eventhandlers (http://nagios.sourceforge.net/docs/3_0/macrolist.html ). eventhandlers are designed for doing other things like restarting services and the like. notifications are handled by an entirely different process (http://nagios.sourceforge.net/docs/3_0/notifications.html ). You should remove these two parameters. -- Marc ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From slackwaresupport at gmail.com Thu Oct 16 16:02:09 2008 From: slackwaresupport at gmail.com (chris king) Date: Thu, 16 Oct 2008 09:02:09 -0500 Subject: problem with emailing. In-Reply-To: <200810161445.12298.assaf.flatto@ssp.uk.com> References: <414848930810160528x21bfa6ddr3a74ba48feeb97d5@mail.gmail.com> <200810161445.12298.assaf.flatto@ssp.uk.com> Message-ID: <414848930810160702w1cbbb07bx3f6c7430a1a4e49d@mail.gmail.com> define host { host_name apache0 check_command check_icmp!100.0,20%!500.0,60% max_check_attempts 15 check_period 24x7 active_checks_enabled 1 event_handler notify-host-by-email event_handler_enabled 1 notification_interval 15 notification_period 24x7 notifications_enabled 1 alias apache0 address 10.10.9.15 notification_options d,u,r,f stalking_options o,d,u contact_groups linux hostgroups linux } fixed that.. still same thing.. On Thu, Oct 16, 2008 at 8:45 AM, Assaf Flatto wrote: > There are no arguments passed to the check_icmp command for the warning and > critical ( -w and -c ) . > > i assume you are passing some arguments in your service declaration , but > they are not parsed . > > Check the service declaration . > > Assaf > > > On Thursday 16 October 2008 13:28:34 chris king wrote: > > ok heres my issue: > > nagios.debug > > > > ==> nagios.debug <== > > [1224160395.192595] [2048.1] [pid=2555] **** BEGIN MACRO PROCESSING > > *********** > > [1224160395.192619] [2048.1] [pid=2555] Processing: '$USER1$/check_icmp > -H > > $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5' > > [1224160395.192638] [2048.1] [pid=2555] Done. Final output: > > '/usr/local/nagios/libexec/check_icmp -H 10.10.9.15 -w -c -p 5' > > [1224160395.192642] [2048.1] [pid=2555] **** END MACRO PROCESSING > > ************* > > [1224160405.037868] [2048.1] [pid=2555] **** BEGIN MACRO PROCESSING > > *********** > > [1224160405.037895] [2048.1] [pid=2555] Processing: 'HOST ALERT: > > apache0;$HOSTSTATE$;$HOSTSTATETYPE$;$HOSTATTEMPT$;CRITICAL - 10.10.9.15: > > rta nan, lost 100% > > ' > > [1224160405.037910] [2048.1] [pid=2555] Done. Final output: 'HOST > ALERT: > > apache0;DOWN;SOFT;2;CRITICAL - 10.10.9.15: rta nan, lost 100% > > ' > > [1224160405.037914] [2048.1] [pid=2555] **** END MACRO PROCESSING > > ************* > > > > > > > > > > > > > > my mail.log > > > > Oct 16 07:32:15 nagios sendmail[2578]: m9GCWFwB002578: from=nagios, > > size=226, class=0, nrcpts=1, msgid=< > > 200810161232.m9GCWFwB002578 at nagios.nsanet.com>, relay=nagios at localhost > > Oct 16 07:32:15 nagios sm-mta[2579]: m9GCWFPm002579: > > <$@nagios.nsanet.com>... User unknown > > Oct 16 07:32:15 nagios sendmail[2578]: m9GCWFwB002578: to=$, > ctladdr=nagios > > (104/104), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30226, > > relay=[ 127.0.0.1] [127.0.0.1], dsn=5.1.1, stat=User unknown > > Oct 16 07:32:15 nagios sm-mta[2579]: m9GCWFPm002579: from=< > > nagios at nagios.nsanet.com>, size=226, class=0, nrcpts=0, proto=ESMTP, > > daemon=MSP-v4, relay=nagios at localhost [127.0.0.1] > > > > > > > > > > > > > > > > my contact-by-email command: > > > > define command { > > command_name notify-host-by-email > > command_line /usr/bin/printf "%b" "***** Nagios > > *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: > > $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: > > $LONGDATETIME$\n" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: > > $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$ > > } > > > > > > > > > > > > > > can anyone see whats wrong????????? > > > > -- > > Assaf Flatto > SSP Ops Team > Linux System Administrator > > > > > > IMPORTANT . this email and the information in it may be confidential, > legally > privileged and/or protected by law. It is intended solely for the use of > the > person to whom it is addressed. If you are not the intended recipient, > please > notify the sender immediately and do not disclose the contents to any other > person, use it for any purpose, or store or copy the information in any > medium. > Please also delete all copies of this email and any attachments from your > system. > > We cannot guarantee the security or confidentiality of email > communications. We > do not accept any liability for losses or damages that you may suffer as a > result of your receipt of this email including but not limited to computer > service or system failure, access delays or interruption, data non-delivery > or > mis-delivery, computer viruses or other harmful components. > > Copyright in this email and any attachments belong to Select Service > Partner UK > Limited. Should you communicate with anyone at Select Service Partner UK > Limited by > email, you consent to us monitoring and reading any such correspondence. > > Nothing in this email shall be taken or read as suggesting, proposing or > relating to any agreement concerted practice or other practice that could > infringe UK or EC competition legislation. > > Select Service Partner UK Limited is a company registered in England and > Wales > (company number 05687183) whose registered office is at 1 The Heights, > Brooklands, Weybridge. Surrey. KT13 0NY > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mwlucas at blackhelicopters.org Thu Oct 16 16:03:34 2008 From: mwlucas at blackhelicopters.org (Michael W. Lucas) Date: Thu, 16 Oct 2008 10:03:34 -0400 Subject: check_fping timing Message-ID: <20081016140334.GA14105@bewilderbeast.blackhelicopters.org> Hi, At times, latency rises on my network. I'm trying to give check_fping a high timeout, 10 seconds to warn and 12 for critical. It seems that check_fping returns too quickly, however. Here, I've cranked up the warn and critical levels to an absurd level for illustration purposes, and timed the process. # /usr/bin/time ./check_fping -H roxsw001 -w 1000000.0,80% -c 12000000.0,100% -b 56 FPING CRITICAL - roxsw001 (loss=100% )|loss=100%;80;100;0;100 0.51 real 0.00 user 0.00 sys The check returns in half a second. Obviously, my timeout isn't working. Any thoughts on why this is, or what I can do? Surely someone else is checking hosts on an intermittently slow network? Thanks, ==ml -- Michael W. Lucas mwlucas at BlackHelicopters.org, mwlucas at FreeBSD.org http://www.BlackHelicopters.org/~mwlucas/ "My pessimism extends to the point of even suspecting the sincerity of the pessimists." -- Jean Rostand, French biologist and philosopher ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From antoine.musso at laposte.fr Thu Oct 16 17:04:16 2008 From: antoine.musso at laposte.fr (Antoine Musso) Date: Thu, 16 Oct 2008 17:04:16 +0200 Subject: service latency troubles In-Reply-To: <48F5FC3B.3090506@op5.se> References: <48EF7414.50608@laposte.fr> <48F1324E.70203@op5.se> <48F34D50.3050909@laposte.fr> <48F36E5F.1080507@op5.se> <48F5F8CC.8030403@laposte.fr> <48F5FC3B.3090506@op5.se> Message-ID: <48F757F0.8000707@laposte.fr> Andreas Ericsson a ?crit : >> 1/ is there any recommended setting for checking the liveness of a >> host ? Since this check is synchronous, we want Nagios to achieve this >> as fast as possible. > > Upgrade to Nagios 3. It sports parallell hostchecks. Hello, We do use Nagios 3 but we had 'use_aggressive_host_checking=1' thus triggering a synchronous check and lock the main Nagios process.* I have changed our check_host_alive command to only send 1 ICMP packet and wait for 3 seconds maximum. This issue is solved ;) >> If not, I am going to check why it takes so long to send a packet to the >> remote ndo2db instance. > > That's a good idea. Please let us know what you find. It is probably waiting for a tcp ack on each write() calls. With a round The average round-trip with the server is 17ms, it is most certainly the issue. From my previous analyse, you can see each call is 20ms average : SERVICE_STATUS_DATA (#20) 8321 calls, avg: 0.02s (total 149.48s) We are now checking latency with a connection to 127.0.0.1 but raise a segfault. I am going to write on nagios-dev list ;) Thanks for your answer Andreas. It helped us a lot. cheers, -- Antoine MUSSO DISIT/PROD/QFO/OUT mailto:antoine.musso at laposte.fr t?l. 02 40 12 73 62 -------------- next part -------------- Post-scriptum La Poste Ce message est confidentiel. Sous r?serve de tout accord conclu par ?crit entre vous et La Poste, son contenu ne repr?sente en aucun cas un engagement de la part de La Poste. Toute publication, utilisation ou diffusion, m?me partielle, doit ?tre autoris?e pr?alablement. Si vous n'?tes pas destinataire de ce message, merci d'en avertir imm?diatement l'exp?diteur. -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 at ttys0.us Thu Oct 16 18:07:59 2008 From: rick at ttys0.us (rick) Date: Thu, 16 Oct 2008 11:07:59 -0500 (CDT) Subject: check_dig display error Message-ID: In attempting to set up check_dig I am having a problem with Nagios 2.5 displaying a warning message when there is no valid reason that I can tell. The first section below shows the output of the Nagios display indicating that response time is 0.072 seconds but a warning is issued. If I understand the settings for the checkcommands.cfg the warning should not be issued for a time interval of at least three seconds and critical status should not be indicated for less than a five second response. Running check_dig from the command line always has shown response times of less than one second so I am having trouble understanding the why I keep receiving warning messages from Nagios. Can someone to point me in the right direction to fix this? I had googled this problem and found only one possibility for a code patch for the configure script but found that it was incorporated. thanks rick Nagios DISPLAY OUTPUT Host Service Status Last Check Duration xx.tx DIG WARNING 10-16-2008 10:25:28 0d 21h 23m 58s Attempt Status Information 3/3 DNS WARNING - 0.072 seconds response time (ns.xx.net. 3600 IN A xx.xx.8.2) Nagios command line output ./check_dig -H ns.xxx.net -l www.xx.net -T A -w 3.0 -c 5.0 DNS OK - 0.039 seconds response time (www.xx.net. 3600 IN A xx.xx.179.67)|time=0.038771s;3.000000;5.000000;0.000000 checkcommands.cfg # 'check_dig' command definition define command{ command_name check_dig command_line $USER1$/check_dig -H $HOSTADDRESS$ -l $ARG1$ -T $ARG2$ -w 3.0 -c 5.0 } services.cfg # Service definition define service{ use generic-service ; Name of service template to use host_name ns.xx service_description DIG is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 1 retry_check_interval 1 contact_groups nagios-admins,dig notification_interval 120 notification_period 24x7 notification_options c,r check_command check_dig!ns.xx.net!www.xx.net!A uname -a Linux sport 2.6.11.4-21.17-default #1 Fri Apr 6 08:42:34 UTC 2007 i686 athlon i386 GNU/Linux ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 16 19:18:27 2008 From: marc at ena.com (Marc Powell) Date: Thu, 16 Oct 2008 12:18:27 -0500 Subject: check_dig display error In-Reply-To: References: Message-ID: <37DCBB3F-F3CE-459B-B54A-62568E677528@ena.com> On Oct 16, 2008, at 11:07 AM, rick wrote: > Nagios DISPLAY OUTPUT > Host Service Status Last Check Duration > xx.tx DIG WARNING 10-16-2008 10:25:28 0d 21h 23m 58s > Attempt Status Information > 3/3 DNS WARNING - 0.072 seconds response time (ns.xx.net. 3600 IN > A xx.xx.8.2) At a basic level, there is a discrepency between the record that's being checked here (ns.xx.net) and what you tested below (www.xx.net). That's a clue to your issue. > Nagios command line output > ./check_dig -H ns.xxx.net -l www.xx.net -T A -w 3.0 -c 5.0 > DNS OK - 0.039 seconds response time (www.xx.net. 3600 IN A > xx.xx.179.67)|time=0.038771s;3.000000;5.000000;0.000000 > > checkcommands.cfg > # 'check_dig' command definition > define command{ > command_name check_dig > command_line $USER1$/check_dig -H $HOSTADDRESS$ -l $ARG1$ > -T $ARG2$ -w 3.0 -c 5.0 > } > services.cfg > # Service definition > define service{ {chop} > > check_command check_dig!ns.xx.net! > www.xx.net!A $ARG1$ = ns.xx.net, $ARG2$ = www.xx.net, $ARG3$ = A Final command run by nagios is -- /path/to/check_dig - H
-l ns.xx.net -T www.xx.net -w 3.0 -c 5.0 You're trying to look up a record of type 'www.xx.net' for the hostname 'ns.xx.net'. It's not a valid record type so you get WARNING from check_dig no matter what the response time is. -- Marc ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ibloodyhatespam at gmail.com Thu Oct 16 21:25:56 2008 From: ibloodyhatespam at gmail.com (ibloodyhatespam at gmail.com) Date: Thu, 16 Oct 2008 21:25:56 +0200 Subject: check_ide_smart & commands.cfg Message-ID: <009401c92fc5$0379da70$0a6d8f50$@com> Hi, I seem to have run into a bit of a problem with Nagios 3.0.3, nagiosplug 1.4.13 and check_ide_smart. I've added the suid bit to the script file and it's running just fine for the nagios user on its own ("./check_ide_smart -n -d /dev/sda" results in "OK - Operational (15/15 tests passed)"). When I try to incorporate it into commands.cfg and add it to the localhost checks however, nagios refuses to load the updated scripts. commands.cfg: # 'check_ide_smart' command definition define command{ command_name check_ide_smart command_line $USER1$/check_ide_smart -n -d $ARG1$ } localhost.cfg: #define service{ use local-service host_name localhost service_description SMART sda check_command check_ide_smart!/dev/sda notifications_enabled 0 } No useful output either (nor in the logs)... Commenting both means everything loads fine again though, so the problem has to be in here. What exactly am I doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jtillotson at techtarget.com Thu Oct 16 22:06:01 2008 From: jtillotson at techtarget.com (Tillotson, Jeff) Date: Thu, 16 Oct 2008 16:06:01 -0400 Subject: Schedule downtime by triggers and/or by service group Message-ID: I just had to schedule my first downtime in Nagios 3.0.3. I ran into a few things that I want to ask about. 1) Is it possible to schedule downtimes by service group? 2) When I tried to trigger a downtime of another scheduled downtime (a host) it got the end of the downtime right but started the downtime immediately. Is this a bug or am I doing something wrong? Regards, Jeff ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.morris at hp.com Thu Oct 16 22:29:14 2008 From: patrick.morris at hp.com (Patrick Morris) Date: Thu, 16 Oct 2008 13:29:14 -0700 Subject: check_ide_smart & commands.cfg In-Reply-To: <009401c92fc5$0379da70$0a6d8f50$@com> References: <009401c92fc5$0379da70$0a6d8f50$@com> Message-ID: <20081016202914.GT14923@bakgwai.americas.hpqcorp.net> On Thu, 16 Oct 2008, ibloodyhatespam at gmail.com wrote: > Hi, I seem to have run into a bit of a problem with Nagios 3.0.3, nagiosplug 1.4.13 and check_ide_smart. > > I've added the suid bit to the script file and it's running just fine for the nagios user on its own ("./check_ide_smart -n -d /dev/sda" results in "OK - Operational (15/15 tests passed)"). When I try to incorporate it into commands.cfg and add it to the localhost checks however, nagios refuses to load the updated scripts. > > > commands.cfg: > # 'check_ide_smart' command definition > define command{ > command_name check_ide_smart > command_line $USER1$/check_ide_smart -n -d $ARG1$ > } > > localhost.cfg: > #define service{ > use local-service > host_name localhost > service_description SMART sda > check_command check_ide_smart!/dev/sda > notifications_enabled 0 > } > > > No useful output either (nor in the logs)... Commenting both means everything loads fine again though, so the problem has to be in here. > What exactly am I doing wrong? What do you mean by "nagios refuses to load the updated scripts?" Do you mean the configs? If so, a "nagios -v /etc/nagios/nagios.cfg" (or wherever your nagios.cfg lives) should ihelp point you to the issue. One thing that's definitely not right as you posted it here is the "define service" being commented out in your service config, since that will make the rest of the uncommented lines under it generate an error when loading. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeremiah.jester at panasonic.aero Thu Oct 16 22:32:40 2008 From: jeremiah.jester at panasonic.aero (jeremiah) Date: Thu, 16 Oct 2008 13:32:40 -0700 Subject: check_load issue Message-ID: <1224189160.17490.3.camel@jeremiah-laptop> My check_load service keeps on giving me the following error. "Warning threshold must be float or float triplet! " However, when i run the command from the system it works just fine. ./check_load -w 10.0,8.0,5.0 -c 15.0,10.0,8.0 OK - load average: 0.01, 0.02, 0.00|load1=0.010;10.000;15.000;0; load5=0.020;8.000;10.000;0; load15=0.000;5.000;8.000;0; My services.cfg file looks as such..same values. check_command check_load!10.0,8.0,5.0!15.0,10.0,8.0 Any thoughts? Thanks, JJ Disclaimer: The information contained in this transmission, including any attachments, may contain confidential information of Panasonic Avionics Corporation. This transmission is intended only for the use of the addressee(s) listed above. Unauthorized review, dissemination or other use of the information contained in this transmission is strictly prohibited. If you have received this transmission in error or have reason to believe you are not authorized to receive it, please notify the sender by return email and promptly delete the transmission. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.morris at hp.com Thu Oct 16 22:32:09 2008 From: patrick.morris at hp.com (Patrick Morris) Date: Thu, 16 Oct 2008 13:32:09 -0700 Subject: Schedule downtime by triggers and/or by service group In-Reply-To: References: Message-ID: <20081016203209.GU14923@bakgwai.americas.hpqcorp.net> On Thu, 16 Oct 2008, Tillotson, Jeff wrote: > I just had to schedule my first downtime in Nagios 3.0.3. I ran into a few things that I want to ask about. > > 1) Is it possible to schedule downtimes by service group? Yes. On one of the servicegroup pages (Summary, Overview or Grid) click on the "short" name of the servicegroup. You'll see it. > > 2) When I tried to trigger a downtime of another scheduled downtime (a host) it got the end of the downtime right but started the downtime immediately. Is this a bug or am I doing something wrong? How exactly did you schedule this downtime? There are several different ways downtimes start, and it's hard to say why this one did without knowing what your parameters were. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.morris at hp.com Thu Oct 16 22:37:16 2008 From: patrick.morris at hp.com (Patrick Morris) Date: Thu, 16 Oct 2008 13:37:16 -0700 Subject: check_load issue In-Reply-To: <1224189160.17490.3.camel@jeremiah-laptop> References: <1224189160.17490.3.camel@jeremiah-laptop> Message-ID: <20081016203716.GV14923@bakgwai.americas.hpqcorp.net> On Thu, 16 Oct 2008, jeremiah wrote: > My check_load service keeps on giving me the following error. > > "Warning threshold must be float or float triplet! " > > However, when i run the command from the system it works just fine. > > ./check_load -w 10.0,8.0,5.0 -c 15.0,10.0,8.0 > OK - load average: 0.01, 0.02, 0.00|load1=0.010;10.000;15.000;0; > load5=0.020;8.000;10.000;0; load15=0.000;5.000;8.000;0; > > My services.cfg file looks as such..same values. > > check_command check_load!10.0,8.0,5.0!15.0,10.0,8.0 How is your check_load check command defined? ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 16 22:38:03 2008 From: marc at ena.com (Marc Powell) Date: Thu, 16 Oct 2008 15:38:03 -0500 Subject: check_ide_smart & commands.cfg In-Reply-To: <009401c92fc5$0379da70$0a6d8f50$@com> References: <009401c92fc5$0379da70$0a6d8f50$@com> Message-ID: On Oct 16, 2008, at 2:25 PM, wrote: > When I try to incorporate it into commands.cfg and add it to the > localhost checks however, nagios refuses to load the updated scripts. Telling us what it says when doing so is useful information. > localhost.cfg: > #define service{ > use local-service > host_name localhost > service_description SMART sda > check_command check_ide_smart!/dev/sda > notifications_enabled 0 > } > > > No useful output either (nor in the logs)... Any output is useful output when troubleshooting; it eliminates possibilities. > Commenting both means everything loads fine again though, so the > problem has to be in here. > What exactly am I doing wrong? You've commented out the first line of the service definition. Running '/path/to/nagios -v /path/to/nagios.cfg' will cause nagios to perform syntax checks on the config files and report errors. -- Marc ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Aaron.Segura at cabelas.com Thu Oct 16 22:40:33 2008 From: Aaron.Segura at cabelas.com (Aaron Segura) Date: Thu, 16 Oct 2008 14:40:33 -0600 Subject: check_load issue In-Reply-To: <1224189160.17490.3.camel@jeremiah-laptop> References: <1224189160.17490.3.camel@jeremiah-laptop> Message-ID: Going to at least need to see the command definition. -----Original Message----- From: jeremiah [mailto:jeremiah.jester at panasonic.aero] Sent: Thursday, October 16, 2008 2:33 PM To: Nagios Subject: [Nagios-users] check_load issue My check_load service keeps on giving me the following error. "Warning threshold must be float or float triplet! " However, when i run the command from the system it works just fine. ./check_load -w 10.0,8.0,5.0 -c 15.0,10.0,8.0 OK - load average: 0.01, 0.02, 0.00|load1=0.010;10.000;15.000;0; load5=0.020;8.000;10.000;0; load15=0.000;5.000;8.000;0; My services.cfg file looks as such..same values. check_command check_load!10.0,8.0,5.0!15.0,10.0,8.0 Any thoughts? Thanks, JJ Disclaimer: The information contained in this transmission, including any attachments, may contain confidential information of Panasonic Avionics Corporation. This transmission is intended only for the use of the addressee(s) listed above. Unauthorized review, dissemination or other use of the information contained in this transmission is strictly prohibited. If you have received this transmission in error or have reason to believe you are not authorized to receive it, please notify the sender by return email and promptly delete the transmission. ------------------------------------------------------------------------ - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 16 22:42:26 2008 From: marc at ena.com (Marc Powell) Date: Thu, 16 Oct 2008 15:42:26 -0500 Subject: check_load issue In-Reply-To: <1224189160.17490.3.camel@jeremiah-laptop> References: <1224189160.17490.3.camel@jeremiah-laptop> Message-ID: On Oct 16, 2008, at 3:32 PM, jeremiah wrote: > My check_load service keeps on giving me the following error. > > "Warning threshold must be float or float triplet! " > > However, when i run the command from the system it works just fine. > > ./check_load -w 10.0,8.0,5.0 -c 15.0,10.0,8.0 > OK - load average: 0.01, 0.02, 0.00|load1=0.010;10.000;15.000;0; > load5=0.020;8.000;10.000;0; load15=0.000;5.000;8.000;0; Then this isn't what nagios has been told to run. > My services.cfg file looks as such..same values. > > check_command check_load!10.0,8.0,5.0!15.0,10.0,8.0 > > Any thoughts? Your check_load command definition doesn't properly use the $ARG1$ and $ARG2$ macros, most likely. See Example 2 at http://nagios.sourceforge.net/docs/3_0/macros.html . -- Marc ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeremiah.jester at panasonic.aero Thu Oct 16 22:49:17 2008 From: jeremiah.jester at panasonic.aero (jeremiah) Date: Thu, 16 Oct 2008 13:49:17 -0700 Subject: check_load issue In-Reply-To: <20081016203716.GV14923@bakgwai.americas.hpqcorp.net> References: <1224189160.17490.3.camel@jeremiah-laptop> <20081016203716.GV14923@bakgwai.americas.hpqcorp.net> Message-ID: <1224190157.17490.8.camel@jeremiah-laptop> I checked my commands.cfg file and noticed the command wasn't defined so I went and put this in there... define command { command_name check_load command_line libexec/check_load -w $ARG1$ $ARG2$ $ARG3 -c $ARG4$ $ARG5$ $ARG6$ } However, when i restarted nagios it told me the command was already defined. So, i then commented it out and restarted..it started but still the same error/problem: ""Warning threshold must be float or float triplet! " Thoughts? JJ ./check_load -w 10.0,8.0,5.0 -c 15.0,10.0,8.0 OK - load average: 0.01, 0.02, 0.00|load1=0.010;10.000;15.000;0; load5=0.020;8.000;10.000;0; load15=0.000;5.000;8.000;0; jesterj at pse02:/usr/lib/nagios/plugins$ sudo pico /etc/nagios2/conf.d/services_nagios2.cfg On Thu, 2008-10-16 at 13:37 -0700, Patrick Morris wrote: > On Thu, 16 Oct 2008, jeremiah wrote: > > > My check_load service keeps on giving me the following error. > > > > "Warning threshold must be float or float triplet! " > > > > However, when i run the command from the system it works just fine. > > > > ./check_load -w 10.0,8.0,5.0 -c 15.0,10.0,8.0 > > OK - load average: 0.01, 0.02, 0.00|load1=0.010;10.000;15.000;0; > > load5=0.020;8.000;10.000;0; load15=0.000;5.000;8.000;0; > > > > My services.cfg file looks as such..same values. > > > > check_command check_load!10.0,8.0,5.0!15.0,10.0,8.0 > > How is your check_load check command defined? > > > Disclaimer: The information contained in this transmission, including any attachments, may contain confidential information of Panasonic Avionics Corporation. This transmission is intended only for the use of the addressee(s) listed above. Unauthorized review, dissemination or other use of the information contained in this transmission is strictly prohibited. If you have received this transmission in error or have reason to believe you are not authorized to receive it, please notify the sender by return email and promptly delete the transmission. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jtillotson at techtarget.com Thu Oct 16 22:52:28 2008 From: jtillotson at techtarget.com (Tillotson, Jeff) Date: Thu, 16 Oct 2008 16:52:28 -0400 Subject: Schedule downtime by triggers and/or by service group In-Reply-To: <20081016203209.GU14923@bakgwai.americas.hpqcorp.net> References: <20081016203209.GU14923@bakgwai.americas.hpqcorp.net> Message-ID: Thanks for your response. >> 1) Is it possible to schedule downtimes by service group? > >Yes. On one of the servicegroup pages (Summary, Overview or >Grid) click on the "short" name of the servicegroup. You'll see it. Yeah. I laughed with a co-worker. About 2 minutes after hitting send I did just that and found what I was looking for. >> 2) When I tried to trigger a downtime of another scheduled >downtime (a host) it got the end of the downtime right but >started the downtime immediately. Is this a bug or am I doing >something wrong? > >How exactly did you schedule this downtime? There are several >different ways downtimes start, and it's hard to say why this >one did without knowing what your parameters were. I scheduled a downtime for a host with a fixed start and stop time. Then when I went to schedule a downtime for a service I use the scheduled host's down time as the trigger. It seemed to ignore the triggers start time. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Aaron.Segura at cabelas.com Thu Oct 16 23:03:09 2008 From: Aaron.Segura at cabelas.com (Aaron Segura) Date: Thu, 16 Oct 2008 15:03:09 -0600 Subject: check_load issue In-Reply-To: <1224190603.17490.10.camel@jeremiah-laptop> References: <1224189160.17490.3.camel@jeremiah-laptop> <1224190603.17490.10.camel@jeremiah-laptop> Message-ID: Please, always reply on-list. If the check is running via nagios, the command is defined somewhere. Find it and send it. We can't help without that information. Also, you would benefit from reading the documentation pertaining to service/command definitions. -----Original Message----- From: jeremiah [mailto:jeremiah.jester at panasonic.aero] Sent: Thursday, October 16, 2008 2:57 PM To: Aaron Segura Subject: RE: [Nagios-users] check_load issue Aaron, Thanks for your response. Here's the message I sent to the list. Date: Thu, 16 Oct 2008 13:49:17 -0700 I checked my commands.cfg file and noticed the command wasn't defined so I went and put this in there... define command { command_name check_load command_line libexec/check_load -w $ARG1$ $ARG2$ $ARG3 -c $ARG4$ $ARG5$ $ARG6$ } However, when i restarted nagios it told me the command was already defined. So, i then commented it out and restarted..it started but still the same error/problem: ""Warning threshold must be float or float triplet! " Thoughts? JJ On Thu, 2008-10-16 at 13:40 -0700, Aaron Segura wrote: > Going to at least need to see the command definition. > > -----Original Message----- > From: jeremiah [mailto:jeremiah.jester at panasonic.aero] > Sent: Thursday, October 16, 2008 2:33 PM > To: Nagios > Subject: [Nagios-users] check_load issue > > My check_load service keeps on giving me the following error. > > "Warning threshold must be float or float triplet! " > > However, when i run the command from the system it works just fine. > > ./check_load -w 10.0,8.0,5.0 -c 15.0,10.0,8.0 > OK - load average: 0.01, 0.02, 0.00|load1=0.010;10.000;15.000;0; > load5=0.020;8.000;10.000;0; load15=0.000;5.000;8.000;0; > > My services.cfg file looks as such..same values. > > check_command check_load!10.0,8.0,5.0!15.0,10.0,8.0 > > Any thoughts? > > Thanks, > JJ > > > > > Disclaimer: The information contained in this transmission, including > any > attachments, may contain confidential information of Panasonic > Avionics > Corporation. This transmission is intended only for the use of the > addressee(s) listed above. Unauthorized review, dissemination or > other > use > of the information contained in this transmission is strictly > prohibited. > If you have received this transmission in error or have reason to > believe > you are not authorized to receive it, please notify the sender by > return > > email and promptly delete the transmission. > > > > ------------------------------------------------------------------------ > - > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.morris at hp.com Thu Oct 16 23:06:04 2008 From: patrick.morris at hp.com (Patrick Morris) Date: Thu, 16 Oct 2008 14:06:04 -0700 Subject: check_load issue In-Reply-To: <1224190157.17490.8.camel@jeremiah-laptop> References: <1224189160.17490.3.camel@jeremiah-laptop> <20081016203716.GV14923@bakgwai.americas.hpqcorp.net> <1224190157.17490.8.camel@jeremiah-laptop> Message-ID: <20081016210604.GX14923@bakgwai.americas.hpqcorp.net> Hi jeremiah! On Thu, 16 Oct 2008, jeremiah wrote: > I checked my commands.cfg file and noticed the command wasn't defined so > I went and put this in there... > > define command { > command_name check_load > command_line libexec/check_load -w $ARG1$ $ARG2$ $ARG3 -c > $ARG4$ $ARG5$ $ARG6$ > } > > However, when i restarted nagios it told me the command was already > defined. So, i then commented it out and restarted..it started but still > the same error/problem: ""Warning threshold must be float or float > triplet! " check_load *is* defined if that's what it's telling you. Keep looking through your config files and you should find it eventually. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Aaron.Segura at cabelas.com Thu Oct 16 23:14:44 2008 From: Aaron.Segura at cabelas.com (Aaron Segura) Date: Thu, 16 Oct 2008 15:14:44 -0600 Subject: check_load issue In-Reply-To: <1224191343.17490.13.camel@jeremiah-laptop> References: <1224189160.17490.3.camel@jeremiah-laptop> <1224190603.17490.10.camel@jeremiah-laptop> <1224191343.17490.13.camel@jeremiah-laptop> Message-ID: There's the problem. You should either modify your check_load command_line to: /usr/lib/nagios/plugins/check_load --warning=$ARG1$ --critical=$ARG2$ Or change your service check_command to: check_load!10.0!8.0!5.0!15.0!10.0!8.0 but not both. Also, read the docs regarding service/command definitions and macro usage. -----Original Message----- From: jeremiah [mailto:jeremiah.jester at panasonic.aero] Sent: Thursday, October 16, 2008 3:09 PM To: Aaron Segura Cc: Nagios Subject: RE: [Nagios-users] check_load issue I found this.. File: /etc/nagios-plugins/config/load.cfg # 'check_load' command definition define command{ command_name check_load command_line /usr/lib/nagios/plugins/check_load --warning= $ARG1$,$ARG2$,$ARG3$ --critical=$ARG4$,$ARG5$,$ARG6$ } I've been using an older nagios book but just ordered up the apress nagios 2 version. Thanks, JJ On Thu, 2008-10-16 at 14:03 -0700, Aaron Segura wrote: > Please, always reply on-list. > > If the check is running via nagios, the command is defined somewhere. > Find it and send it. We can't help without that information. > > Also, you would benefit from reading the documentation pertaining to > service/command definitions. > > -----Original Message----- > From: jeremiah [mailto:jeremiah.jester at panasonic.aero] > Sent: Thursday, October 16, 2008 2:57 PM > To: Aaron Segura > Subject: RE: [Nagios-users] check_load issue > > Aaron, > > Thanks for your response. Here's the message I sent to the list. > > > Date: > Thu, 16 Oct 2008 13:49:17 -0700 > > > I checked my commands.cfg file and noticed the command wasn't defined > so > I went and put this in there... > > define command { > command_name check_load > command_line libexec/check_load -w $ARG1$ $ARG2$ $ARG3 -c > $ARG4$ $ARG5$ $ARG6$ > } > > However, when i restarted nagios it told me the command was already > defined. So, i then commented it out and restarted..it started but > still > the same error/problem: ""Warning threshold must be float or float > triplet! " > > Thoughts? > > JJ > > > > On Thu, 2008-10-16 at 13:40 -0700, Aaron Segura wrote: > > Going to at least need to see the command definition. > > > > -----Original Message----- > > From: jeremiah [mailto:jeremiah.jester at panasonic.aero] > > Sent: Thursday, October 16, 2008 2:33 PM > > To: Nagios > > Subject: [Nagios-users] check_load issue > > > > My check_load service keeps on giving me the following error. > > > > "Warning threshold must be float or float triplet! " > > > > However, when i run the command from the system it works just fine. > > > > ./check_load -w 10.0,8.0,5.0 -c 15.0,10.0,8.0 > > OK - load average: 0.01, 0.02, 0.00|load1=0.010;10.000;15.000;0; > > load5=0.020;8.000;10.000;0; load15=0.000;5.000;8.000;0; > > > > My services.cfg file looks as such..same values. > > > > check_command check_load!10.0,8.0,5.0!15.0,10.0,8.0 > > > > Any thoughts? > > > > Thanks, > > JJ > > > > > > > > > > Disclaimer: The information contained in this transmission, > including > > any > > attachments, may contain confidential information of Panasonic > > Avionics > > Corporation. This transmission is intended only for the use of the > > addressee(s) listed above. Unauthorized review, dissemination or > > other > > use > > of the information contained in this transmission is strictly > > prohibited. > > If you have received this transmission in error or have reason to > > believe > > you are not authorized to receive it, please notify the sender by > > return > > > > email and promptly delete the transmission. > > > > > > > > > ------------------------------------------------------------------------ > > - > > This SF.Net email is sponsored by the Moblin Your Move Developer's > > challenge > > Build the coolest Linux based applications with Moblin SDK & win > great > > prizes > > Grand prize is a trip for two to an Open Source event anywhere in > the > > world > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: 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 Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeremiah.jester at panasonic.aero Thu Oct 16 23:09:03 2008 From: jeremiah.jester at panasonic.aero (jeremiah) Date: Thu, 16 Oct 2008 14:09:03 -0700 Subject: check_load issue In-Reply-To: References: <1224189160.17490.3.camel@jeremiah-laptop> <1224190603.17490.10.camel@jeremiah-laptop> Message-ID: <1224191343.17490.13.camel@jeremiah-laptop> I found this.. File: /etc/nagios-plugins/config/load.cfg # 'check_load' command definition define command{ command_name check_load command_line /usr/lib/nagios/plugins/check_load --warning= $ARG1$,$ARG2$,$ARG3$ --critical=$ARG4$,$ARG5$,$ARG6$ } I've been using an older nagios book but just ordered up the apress nagios 2 version. Thanks, JJ On Thu, 2008-10-16 at 14:03 -0700, Aaron Segura wrote: > Please, always reply on-list. > > If the check is running via nagios, the command is defined somewhere. > Find it and send it. We can't help without that information. > > Also, you would benefit from reading the documentation pertaining to > service/command definitions. > > -----Original Message----- > From: jeremiah [mailto:jeremiah.jester at panasonic.aero] > Sent: Thursday, October 16, 2008 2:57 PM > To: Aaron Segura > Subject: RE: [Nagios-users] check_load issue > > Aaron, > > Thanks for your response. Here's the message I sent to the list. > > > Date: > Thu, 16 Oct 2008 13:49:17 -0700 > > > I checked my commands.cfg file and noticed the command wasn't defined > so > I went and put this in there... > > define command { > command_name check_load > command_line libexec/check_load -w $ARG1$ $ARG2$ $ARG3 -c > $ARG4$ $ARG5$ $ARG6$ > } > > However, when i restarted nagios it told me the command was already > defined. So, i then commented it out and restarted..it started but > still > the same error/problem: ""Warning threshold must be float or float > triplet! " > > Thoughts? > > JJ > > > > On Thu, 2008-10-16 at 13:40 -0700, Aaron Segura wrote: > > Going to at least need to see the command definition. > > > > -----Original Message----- > > From: jeremiah [mailto:jeremiah.jester at panasonic.aero] > > Sent: Thursday, October 16, 2008 2:33 PM > > To: Nagios > > Subject: [Nagios-users] check_load issue > > > > My check_load service keeps on giving me the following error. > > > > "Warning threshold must be float or float triplet! " > > > > However, when i run the command from the system it works just fine. > > > > ./check_load -w 10.0,8.0,5.0 -c 15.0,10.0,8.0 > > OK - load average: 0.01, 0.02, 0.00|load1=0.010;10.000;15.000;0; > > load5=0.020;8.000;10.000;0; load15=0.000;5.000;8.000;0; > > > > My services.cfg file looks as such..same values. > > > > check_command check_load!10.0,8.0,5.0!15.0,10.0,8.0 > > > > Any thoughts? > > > > Thanks, > > JJ > > > > > > > > > > Disclaimer: The information contained in this transmission, > including > > any > > attachments, may contain confidential information of Panasonic > > Avionics > > Corporation. This transmission is intended only for the use of the > > addressee(s) listed above. Unauthorized review, dissemination or > > other > > use > > of the information contained in this transmission is strictly > > prohibited. > > If you have received this transmission in error or have reason to > > believe > > you are not authorized to receive it, please notify the sender by > > return > > > > email and promptly delete the transmission. > > > > > > > > > ------------------------------------------------------------------------ > > - > > This SF.Net email is sponsored by the Moblin Your Move Developer's > > challenge > > Build the coolest Linux based applications with Moblin SDK & win > great > > prizes > > Grand prize is a trip for two to an Open Source event anywhere in > the > > world > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: 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 Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeremiah.jester at panasonic.aero Thu Oct 16 23:20:56 2008 From: jeremiah.jester at panasonic.aero (jeremiah) Date: Thu, 16 Oct 2008 14:20:56 -0700 Subject: check_load issue In-Reply-To: References: <1224189160.17490.3.camel@jeremiah-laptop> <1224190603.17490.10.camel@jeremiah-laptop> <1224191343.17490.13.camel@jeremiah-laptop> Message-ID: <1224192056.17490.18.camel@jeremiah-laptop> Awesome. I will read it. Thanks! JJ On Thu, 2008-10-16 at 14:14 -0700, Aaron Segura wrote: > There's the problem. > > You should either modify your check_load command_line to: > > /usr/lib/nagios/plugins/check_load --warning=$ARG1$ --critical=$ARG2$ > > Or change your service check_command to: > > check_load!10.0!8.0!5.0!15.0!10.0!8.0 > > but not both. > > Also, read the docs regarding service/command definitions and macro > usage. > > -----Original Message----- > From: jeremiah [mailto:jeremiah.jester at panasonic.aero] > Sent: Thursday, October 16, 2008 3:09 PM > To: Aaron Segura > Cc: Nagios > Subject: RE: [Nagios-users] check_load issue > > I found this.. > > File: /etc/nagios-plugins/config/load.cfg > > > # 'check_load' command definition > define command{ > command_name check_load > command_line /usr/lib/nagios/plugins/check_load --warning= > $ARG1$,$ARG2$,$ARG3$ --critical=$ARG4$,$ARG5$,$ARG6$ > } > > I've been using an older nagios book but just ordered up the apress > nagios 2 version. > > Thanks, > JJ > > > On Thu, 2008-10-16 at 14:03 -0700, Aaron Segura wrote: > > Please, always reply on-list. > > > > If the check is running via nagios, the command is defined > somewhere. > > Find it and send it. We can't help without that information. > > > > Also, you would benefit from reading the documentation pertaining to > > service/command definitions. > > > > -----Original Message----- > > From: jeremiah [mailto:jeremiah.jester at panasonic.aero] > > Sent: Thursday, October 16, 2008 2:57 PM > > To: Aaron Segura > > Subject: RE: [Nagios-users] check_load issue > > > > Aaron, > > > > Thanks for your response. Here's the message I sent to the list. > > > > > > Date: > > Thu, 16 Oct 2008 13:49:17 -0700 > > > > > > I checked my commands.cfg file and noticed the command wasn't > defined > > so > > I went and put this in there... > > > > define command { > > command_name check_load > > command_line libexec/check_load -w $ARG1$ $ARG2$ $ARG3 -c > > $ARG4$ $ARG5$ $ARG6$ > > } > > > > However, when i restarted nagios it told me the command was already > > defined. So, i then commented it out and restarted..it started but > > still > > the same error/problem: ""Warning threshold must be float or float > > triplet! " > > > > Thoughts? > > > > JJ > > > > > > > > On Thu, 2008-10-16 at 13:40 -0700, Aaron Segura wrote: > > > Going to at least need to see the command definition. > > > > > > -----Original Message----- > > > From: jeremiah [mailto:jeremiah.jester at panasonic.aero] > > > Sent: Thursday, October 16, 2008 2:33 PM > > > To: Nagios > > > Subject: [Nagios-users] check_load issue > > > > > > My check_load sect: [Nagios-users] check_load issue > > > > > > My check_load service keeps on giving me the following error. > > > > > > "Warning threshold must be float or float triplet! " > > > > > > However, when i run the command from the system it works just > fine. > > > > > > ./check_load -w 10.0,8.0,5.0 -c 15.0,10.0,8.0 > > > OK - load average: 0.01, 0.02, 0.00|load1=0.010;10.000;15.000;0; > > > load5=0.020;8.000;10.000;0; load15=0.000;5.000;8.000;0; > > > > > > My services.cfg file looks as such..same values. > > > > > > check_command check_load!10.0,8.0,5.0!15.0,10.0,8.0 > > > > > > Any thoughts? > > > > > > Thanks, > > > JJ > > > > > > > > > > > > > > > Disclaimer: The information contained in this transmission, > > including > > > any > > > attachments, may contain confidential information of Panasonic > > > Avionics > > > Corporation. This transmission is intended only for the use of > the > > > addressee(s) listed above. Unauthorized review, dissemination or > > > other > > > use > > > of the information contained in this transmission is strictly > > > prohibited. > > > If you have received this transmission in error or have reason to > > > believe > > > you are not authorized to receive it, please notify the sender by > > > return > > > > > > email and promptly delete the transmission. > > > > > > > > > > > > > > > ------------------------------------------------------------------------ > > > - > > > This SF.Net email is sponsored by the Moblin Your Move Developer's > > > challenge > > > Build the coolest Linux based applications with Moblin SDK & win > > great > > > prizes > > > Grand prize is a trip for two to an Open Source event anywhere in > > the > > > world > > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ::: Please include Nagios version, plugin version (-v) and OS when > > > reporting any issue. > > > ::: Messages without supporting info will risk being sent ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeremiah.jester at panasonic.aero Fri Oct 17 02:15:57 2008 From: jeremiah.jester at panasonic.aero (jeremiah) Date: Thu, 16 Oct 2008 17:15:57 -0700 Subject: email notifications not working Message-ID: <1224202557.27509.19.camel@jeremiah-laptop> It doesn't appear that nagios v2 is sending email notifications to upon error. Here is what i've checked to troubleshoot the problem and verified config files. Am I missing something?? Thanks, JJ ========== !Errors do exists in the log file. ++ "LOAD-SCRIPT;CRITICAL;HARD;3;Connection refused" ++ !I've enabled notifications in each of my services in services.cfg ++ notifications_enabled 1 ++ !I've set the admin email in nagios.cfg. I've also enabled_notifications=1. ++ admin_email = (email hidden) ++ !Verified Contacts.cfg is set... ++ define contact{ contact_name root alias (my name) service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c,r host_notification_options d,r service_notification_commands notify-by-email host_notification_commands host-notify-by-email email (my email) } define contactgroup{ contactgroup_name admins alias Nagios Administrators members root } ++ !Mail agent on localhost is also running. ++ # telnet localhost 25 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 pse02.mascorp.com ESMTP Exim 4.69 Fri, 17 Oct 2008 00:13:58 +0000 ++ Disclaimer: The information contained in this transmission, including any attachments, may contain confidential information of Panasonic Avionics Corporation. This transmission is intended only for the use of the addressee(s) listed above. Unauthorized review, dissemination or other use of the information contained in this transmission is strictly prohibited. If you have received this transmission in error or have reason to believe you are not authorized to receive it, please notify the sender by return email and promptly delete the transmission. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.morris at hp.com Fri Oct 17 02:39:08 2008 From: patrick.morris at hp.com (Patrick Morris) Date: Thu, 16 Oct 2008 17:39:08 -0700 Subject: email notifications not working In-Reply-To: <1224202557.27509.19.camel@jeremiah-laptop> References: <1224202557.27509.19.camel@jeremiah-laptop> Message-ID: <20081017003908.GF14923@bakgwai.americas.hpqcorp.net> Hi jeremiah! On Fri, 17 Oct 2008, jeremiah wrote: > It doesn't appear that nagios v2 is sending email notifications to upon > error. > > Here is what i've checked to troubleshoot the problem and verified > config files. > > Am I missing something?? > > Thanks, > JJ > > ========== > > !Errors do exists in the log file. > > ++ > "LOAD-SCRIPT;CRITICAL;HARD;3;Connection refused" > ++ > > !I've enabled notifications in each of my services in services.cfg > > ++ > notifications_enabled 1 > ++ > > !I've set the admin email in nagios.cfg. I've also > enabled_notifications=1. > > ++ > admin_email = (email hidden) > ++ > > !Verified Contacts.cfg is set... > > ++ > define contact{ > contact_name root > alias (my name) > service_notification_period 24x7 > host_notification_period 24x7 > service_notification_options w,u,c,r > host_notification_options d,r > service_notification_commands notify-by-email > host_notification_commands host-notify-by-email > email (my email) > } > > define contactgroup{ > contactgroup_name admins > alias Nagios Administrators > members root > } > ++ > > !Mail agent on localhost is also running. > > ++ > # telnet localhost 25 > Trying 127.0.0.1... > Connected to localhost. > Escape character is '^]'. > 220 pse02.mascorp.com ESMTP Exim 4.69 Fri, 17 Oct 2008 00:13:58 +0000 There are several important pieces missing here: 1. Does your Nagios log show that notifications are being sent? Look for "NOTIFICATION" in your Nagios log. If it's not there, you've got a configuration issue and you have not configured Nagios to notify when that service goes critical. 2. Have you assigned your "admins" contact group to the service you're not getting notifications for? 3. Does your mail log show anything regarding the notifications, and whether they were successfully or unsuccessfully relayed? ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 17 02:52:31 2008 From: marc at ena.com (Marc Powell) Date: Thu, 16 Oct 2008 19:52:31 -0500 Subject: email notifications not working In-Reply-To: <1224202557.27509.19.camel@jeremiah-laptop> References: <1224202557.27509.19.camel@jeremiah-laptop> Message-ID: <37E995B6-6877-4783-927A-4704A38B1B1B@ena.com> On Oct 16, 2008, at 7:15 PM, jeremiah wrote: > !Errors do exists in the log file. > > ++ > "LOAD-SCRIPT;CRITICAL;HARD;3;Connection refused" > ++ Do you see a corresponding SERVICE NOTIFICATION log entry? If you do, do you see a corresponding log entry in your maillog? > !I've enabled notifications in each of my services in services.cfg > > ++ > notifications_enabled 1 > ++ ... and set 'admins' as a contact_group in this service definition and an appropriate notification_period and appropriate notification_options? > !I've set the admin email in nagios.cfg. I've also > enabled_notifications=1. > > ++ > admin_email = (email hidden) > ++ (admin_email doesn't matter in your case) > !Verified Contacts.cfg is set... These look fine. > !Mail agent on localhost is also running. > > ++ > # telnet localhost 25 > Trying 127.0.0.1... > Connected to localhost. > Escape character is '^]'. > 220 pse02.mascorp.com ESMTP Exim 4.69 Fri, 17 Oct 2008 00:13:58 +0000 Good. The documentation on how notifications work might help clear things up -- http://nagios.sourceforge.net/docs/2_0/notifications.html -- Marc ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Sotiroff.Kristian at mtvne.com Fri Oct 17 10:25:28 2008 From: Sotiroff.Kristian at mtvne.com (Sotiroff, Kristian) Date: Fri, 17 Oct 2008 09:25:28 +0100 Subject: Using escalations and / or timeperiods for out of hours Message-ID: Hi (Version: Nagios 3.0.3 ) I'm trying to configure my alerts to work in such a way that engineers don't get mailed excessively out of hours. I've tried with escalations, but only with Nagios 2 and didn't have much success. Reading though the docs for v3 it seems that I can define an escalation with reduced email frequency to be active only during a specified period, so I thought this may be a way to do it. Let me explain my scenario Sun: 0000 - 0000 - reduced email Mon - Fri 0000 - 0800 - reduced email 0800 - 1900 - normal email 1900 - 0000 - reduced email Sat: 0000 - 0000 - reduced email If I configure the alerting to work so that after a single email is sent it escalates into my 'reduced email' period (if its in the right timeperiod) but otherwise will it then ignore the escalation and continue sending emails as normal? What happens if a server lets out some blue smoke over a weekend, so the escalation comes into play, but an engineer doesn't fix it until 12:00 Monday morning. Does this mean at 0800 (when the escalation is not valid any more) it will email normally? And if it continues into the next night will the escalation come back into play again or, because it has already been triggered, will it stay as normal. I'm sure someone has done this before. Does anybody have any first hand experience with it? How are other list users alerting out of hours? Cheers Kristian CONFIDENTIALITY NOTICE This e-mail (and any attached files) is confidential and protected by copyright (and other intellectual property rights). If you are not the intended recipient please e-mail the sender and then delete the email and any attached files immediately. Any further use or dissemination is prohibited. While MTV Networks Europe has taken steps to ensure that this email and any attachments are virus free, it is your responsibility to ensure that this message and any attachments are virus free and do not affect your systems / data. Communicating by email is not 100% secure and carries risks such as delay, data corruption, non-delivery, wrongful interception and unauthorised amendment. If you communicate with us by e-mail, you acknowledge and assume these risks, and you agree to take appropriate measures to minimise these risks when e-mailing us. MTV Networks International, MTV Networks UK & Ireland, Greenhouse, Nickelodeon Viacom Consumer Products, VBSi, Viacom Brand Solutions International and Comedy Central are all trading names of MTV Networks Europe. MTV Networks Europe is a partnership between MTV Networks Europe Inc. and Viacom Networks Europe Inc. Address for service in Great Britain is UK House, 180 Oxford Street, London W1D 1DS, UK. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From trevor_obba at yahoo.co.uk Fri Oct 17 13:25:22 2008 From: trevor_obba at yahoo.co.uk (trevor obba) Date: Fri, 17 Oct 2008 11:25:22 +0000 (GMT) Subject: Nagios CGI Configuration not Synchronizing Message-ID: <406971.52886.qm@web24203.mail.ird.yahoo.com> I am running Nagios 2.10, on a sles10 machine. I have enabled ?use authentication? that functionality is checked in ?Nagios cgi configuration? however when a users with ?Global Host Information Access? and ?Global service Information Access? in ?Nagios cgi configuration? login they can execute any CGI command like ?Disable active checks of this host?, ?Disable notification for this service?. when any users login on Nagios, it appear as ?Logged in as nagiosadmin? for example when a user called ?tom? logins in it appears as ?Logged in as nagiosadmin? hence tom inherit admin privileges, rather than appearing as ?Logged in as tom? Can you help? Please. Send instant messages to your online friends http://uk.messenger.yahoo.com ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 17 14:26:10 2008 From: marc at ena.com (Marc Powell) Date: Fri, 17 Oct 2008 07:26:10 -0500 Subject: Nagios CGI Configuration not Synchronizing In-Reply-To: <406971.52886.qm@web24203.mail.ird.yahoo.com> References: <406971.52886.qm@web24203.mail.ird.yahoo.com> Message-ID: <54C04703-DCB1-4B7F-A21A-E67419190B28@ena.com> On Oct 17, 2008, at 6:25 AM, trevor obba wrote: > when any users login on Nagios, it appear as ?Logged in as > nagiosadmin? for example when a > user called ?tom? logins in it appears as ?Logged in as nagiosadmin? > hence tom > inherit admin privileges, rather than appearing as ?Logged in as tom? It sounds like you may not have properly configured htaccess for the _sbin_ directory. You're likely being prompted to login for access to the menu (share directory) but not for the cgi's (sbin directory). Since it's the cgi's that require access the the auth information, and are not finding it, they're falling back to your default username specified in cgi.cfg. http://nagios.sourceforge.net/docs/2_0/cgiauth.html -- Marc ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marcelo.maia.garcia at googlemail.com Fri Oct 17 15:13:29 2008 From: marcelo.maia.garcia at googlemail.com (Marcelo M. Garcia) Date: Fri, 17 Oct 2008 14:13:29 +0100 Subject: Problems building plugins 1.4.13 with mysql client libs Message-ID: <48F88F79.1080502@googlemail.com> Hi I'm building nagios-plugins 1.4.13 and I having problems with mysql. The mysql client is installed[1], but the "configure" command does not find[2]. My configure command is bellow[3]. How to specify "mysql" client libs? Thanks Marcelo [1] mysql-devel-5.0.45-7.el5 mysql-5.0.45-7.el5 [2] configure: WARNING: Skipping mysql plugin configure: WARNING: install mysql client libs to compile this plugin (see REQUIREMENTS). [3] ./configure --sysconfdir=$CONF_DIR \ --localstatedir=$VAR_DIR \ --with-fping-command=/usr/sbin/fping \ --with-mysql=/usr/bin/mysql_config >& myconfig.log ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Guillaume.Rousse at inria.fr Fri Oct 17 15:58:58 2008 From: Guillaume.Rousse at inria.fr (Guillaume Rousse) Date: Fri, 17 Oct 2008 15:58:58 +0200 Subject: Problems building plugins 1.4.13 with mysql client libs In-Reply-To: <48F88F79.1080502@googlemail.com> References: <48F88F79.1080502@googlemail.com> Message-ID: <48F89A22.90708@inria.fr> Marcelo M. Garcia a ?crit : > Hi > > I'm building nagios-plugins 1.4.13 and I having problems with mysql. The > mysql client is installed[1], but the "configure" command does not > find[2]. My configure command is bellow[3]. Check config.log to find the underlying issue. -- Guillaume Rousse Moyens Informatiques - INRIA Futurs Tel: 01 69 35 69 62 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeremiah.jester at panasonic.aero Fri Oct 17 18:26:16 2008 From: jeremiah.jester at panasonic.aero (jeremiah) Date: Fri, 17 Oct 2008 09:26:16 -0700 Subject: email notifications not working In-Reply-To: <20081017003908.GF14923@bakgwai.americas.hpqcorp.net> References: <1224202557.27509.19.camel@jeremiah-laptop> <20081017003908.GF14923@bakgwai.americas.hpqcorp.net> Message-ID: <1224260776.22592.9.camel@jeremiah-laptop> Hi Patrick, See below for answers. Puzzling. > There are several important pieces missing here: > > 1. Does your Nagios log show that notifications are being sent? Look for > "NOTIFICATION" in your Nagios log. If it's not there, you've got a > configuration issue and you have not configured Nagios to notify when > that service goes critical. Yes, i have several notifications being logged in nagios: Service Notification[2008-10-17 15:49:16] SERVICE NOTIFICATION: root;(servername);LOAD-SCRIPT;CRITICAL;notify-by-email;Connection refused > > 2. Have you assigned your "admins" contact group to the service you're > not getting notifications for? > Yes, "admins" is sepcified in the service: contact_groups admins > 3. Does your mail log show anything regarding the notifications, and > whether they were successfully or unsuccessfully relayed? > Here's what I'm seeing in my mail logs (exim): 2008-10-17 16:19:18 1Kqs2m-0000TH-3t <= <> U=Debian-exim P=local S=940 2008-10-17 16:19:18 1Kqs2m-0000TH-3t => nagios R=local_user T=mail_spool 2008-10-17 16:19:18 1Kqs2m-0000TH-3t Completed BTW, I'm using exim not send mail so my command for sending mail looks like this: define command{ command_name notify-by-email command_line /usr/bin/printf "%b" "***** Nagios *****\n\n Notification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC $\n Host: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE $\n\n Date/Time: $LONGDATETIME$\n\n Additional Info:\n\n$SERVICEOUTPUT$" | /usr/sbin/exim "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ } On Thu, 2008-10-16 at 17:39 -0700, Patrick Morris wrote: > Hi jeremiah! > > On Fri, 17 Oct 2008, jeremiah wrote: > > > It doesn't appear that nagios v2 is sending email notifications to > upon > > error. > > > > Here is what i've checked to troubleshoot the problem and verified > > config files. > > > > Am I missing something?? > > > > Thanks, > > JJ > > > > ========== > > > > !Errors do exists in the log file. > > > > ++ > > "LOAD-SCRIPT;CRITICAL;HARD;3;Connection refused" > > ++ > > > > !I've enabled notifications in each of my services in services.cfg > > > > ++ > > notifications_enabled 1 > > ++ > > > > !I've set the admin email in nagios.cfg. I've also > > enabled_notifications=1. > > > > ++ > > admin_email = (email hidden) > > ++ > > > > !Verified Contacts.cfg is set... > > > > ++ > > define contact{ > > contact_name root > > alias (my name) > > service_notification_period 24x7 > > host_notification_period 24x7 > > service_notification_options w,u,c,r > > host_notification_options d,r > > service_notification_commands notify-by-email > > host_notification_commands host-notify-by-email > > email (my email) > > } > > > > define contactgroup{ > > contactgroup_name admins > > alias Nagios Administrators > > members root > > } > > ++ > > > > !Mail agent on localhost is also running. > > > > ++ > > # telnet localhost 25 > > Trying 127.0.0.1... > > Connected to localhost. > > Escape character is '^]'. > > 220 pse02.mascorp.com ESMTP Exim 4.69 Fri, 17 Oct 2008 00:13:58 > +0000 > > There are several important pieces missing here: > > 1. Does your Nagios log show that notifications are being sent? Look > for > "NOTIFICATION" in your Nagios log. If it's not there, you've got a > configuration issue and you have not configured Nagios to notify when > that service goes critical. > > 2. Have you assigned your "admins" contact group to the service you're > not getting notifications for? > > 3. Does your mail log show anything regarding the notifications, and > whether they were successfully or unsuccessfully relayed? > > > > > Disclaimer: The information contained in this transmission, including any attachments, may contain confidential information of Panasonic Avionics Corporation. This transmission is intended only for the use of the addressee(s) listed above. Unauthorized review, dissemination or other use of the information contained in this transmission is strictly prohibited. If you have received this transmission in error or have reason to believe you are not authorized to receive it, please notify the sender by return email and promptly delete the transmission. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeremiah.jester at panasonic.aero Fri Oct 17 20:32:30 2008 From: jeremiah.jester at panasonic.aero (jeremiah) Date: Fri, 17 Oct 2008 11:32:30 -0700 Subject: email notifications not working In-Reply-To: <1224260776.22592.9.camel@jeremiah-laptop> References: <1224202557.27509.19.camel@jeremiah-laptop> <20081017003908.GF14923@bakgwai.americas.hpqcorp.net> <1224260776.22592.9.camel@jeremiah-laptop> Message-ID: <1224268350.26623.6.camel@jeremiah-laptop> Ok. I figured out the problem. The notify_by_email command and others needed a bit more tweaking if your using exim and not sendmail. The command needs to be in the following format... /usr/bin/printf "message here" | /usr/bin/exim root at localhost Thanks! JJ On Fri, 2008-10-17 at 09:26 -0700, jeremiah wrote: > Hi Patrick, > > See below for answers. Puzzling. > > > There are several important pieces missing here: > > > > 1. Does your Nagios log show that notifications are being sent? Look > for > > "NOTIFICATION" in your Nagios log. If it's not there, you've got a > > configuration issue and you have not configured Nagios to notify > when > > that service goes critical. > > Yes, i have several notifications being logged in nagios: > > Service Notification[2008-10-17 15:49:16] SERVICE NOTIFICATION: > root;(servername);LOAD-SCRIPT;CRITICAL;notify-by-email;Connection > refused > > > > > > 2. Have you assigned your "admins" contact group to the service > you're > > not getting notifications for? > > > > Yes, "admins" is sepcified in the service: > > contact_groups admins > > > 3. Does your mail log show anything regarding the notifications, and > > whether they were successfully or unsuccessfully relayed? > > > > Here's what I'm seeing in my mail logs (exim): > > 2008-10-17 16:19:18 1Kqs2m-0000TH-3t <= <> U=Debian-exim P=local S=940 > 2008-10-17 16:19:18 1Kqs2m-0000TH-3t => nagios > R=local_user > T=mail_spool > 2008-10-17 16:19:18 1Kqs2m-0000TH-3t Completed > > BTW, I'm using exim not send mail so my command for sending mail looks > like this: > > define command{ > command_name notify-by-email > command_line /usr/bin/printf "%b" "***** Nagios *****\n\n > Notification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC > $\n > Host: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: > $SERVICESTATE > $\n\n > Date/Time: $LONGDATETIME$\n\n > Additional Info:\n\n$SERVICEOUTPUT$" | /usr/sbin/exim "** > $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ > **" $CONTACTEMAIL$ > } > > > > On Thu, 2008-10-16 at 17:39 -0700, Patrick Morris wrote: > > Hi jeremiah! > > > > On Fri, 17 Oct 2008, jeremiah wrote: > > > > > It doesn't appear that nagios v2 is sending email notifications to > > upon > > > error. > > > > > > Here is what i've checked to troubleshoot the problem and verified > > > config files. > > > > > > Am I missing something?? > > > > > > Thanks, > > > JJ > > > > > > ========== > > > > > > !Errors do exists in the log file. > > > > > > ++ > > > "LOAD-SCRIPT;CRITICAL;HARD;3;Connection refused" > > > ++ > > > > > > !I've enabled notifications in each of my services in services.cfg > > > > > > ++ > > > notifications_enabled 1 > > > ++ > > > > > > !I've set the admin email in nagios.cfg. I've also > > > enabled_notifications=1. > > > > > > ++ > > > admin_email = (email hidden) > > > ++ > > > > > > !Verified Contacts.cfg is set... > > > > > > ++ > > > define contact{ > > > contact_name root > > > alias (my name) > > > service_notification_period 24x7 > > > host_notification_period 24x7 > > > service_notification_options w,u,c,r > > > host_notification_options d,r > > > service_notification_commands notify-by-email > > > host_notification_commands host-notify-by-email > > > email (my email) > > > } > > > > > > define contactgroup{ > > > contactgroup_name admins > > > alias Nagios Administrators > > > members root > > > } > > > ++ > > > > > > !Mail agent on localhost is also running. > > > > > > ++ > > > # telnet localhost 25 > > > Trying 127.0.0.1... > > > Connected to localhost. > > > Escape character is '^]'. > > > 220 pse02.mascorp.com ESMTP Exim 4.69 Fri, 17 Oct 2008 00:13:58 > > +0000 > > > > There are several important pieces missing here: > > > > 1. Does your Nagios log show that notifications are being sent? Look > > for > > "NOTIFICATION" in your Nagios log. If it's not there, you've got a > > configuration issue and you have not configured Nagios to notify > when > > that service goes critical. > > > > 2. Have you assigned your "admins" contact group to the service > you're > > not getting notifications for? > > > > 3. Does your mail log show anything regarding the notifications, and > > whether they were successfully or unsuccessfully relayed? > > > > > > > > > > > > > Disclaimer: The information contained in this transmission, including > any > attachments, may contain confidential information of Panasonic > Avionics > Corporation. This transmission is intended only for the use of the > addressee(s) listed above. Unauthorized review, dissemination or > other use > of the information contained in this transmission is strictly > prohibited. > If you have received this transmission in error or have reason to > believe > you are not authorized to receive it, please notify the sender by > return > email and promptly delete the transmission. > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From natxo.asenjo at gmail.com Sat Oct 18 10:38:18 2008 From: natxo.asenjo at gmail.com (Natxo Asenjo) Date: Sat, 18 Oct 2008 10:38:18 +0200 Subject: Nagios and Active directory In-Reply-To: <48DCE942.655F.0018.0@dap.es> References: <48DCE942.655F.0018.0@dap.es> Message-ID: <90f6e8270810180138g75d75dcfr5788bac21a06ad@mail.gmail.com> On Fri, Sep 26, 2008 at 1:53 PM, Esteban Torres Rodriguez wrote: > Hello. > > I'm using NSClient++ for Windows 2003 server. > > I want monitoring Active directory. How I do? I'm trying so: > > command.cfg: > > # 'check_ldap' command definition > define command{ > command_name check_ldap > command_line $USER1$/check_ldap -H $HOSTADDRESS$ -b $ARG1$ > } > > windows.cfg: > > define service{ > use generic-service > host_name server > service_description Active Directory > check_command check_ldap!dc=adsf,dc=asdf > } > > > Usage: check_ldap -H -b [-p ] [-a ] [-D > ] > > That's my error. you are not binding to the ldap server. In AD you cannot use anonymous queries. -- groeten, j.asenjo ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hir3npatel at gmail.com Sun Oct 19 00:21:50 2008 From: hir3npatel at gmail.com (hiren) Date: Sun, 19 Oct 2008 00:21:50 +0200 Subject: check_fping timing In-Reply-To: <20081016140334.GA14105@bewilderbeast.blackhelicopters.org> References: <20081016140334.GA14105@bewilderbeast.blackhelicopters.org> Message-ID: <1224368510.6603.12.camel@firebird> On Thu, 2008-10-16 at 10:03 -0400, Michael W. Lucas wrote: > Hi, > > At times, latency rises on my network. I'm trying to give check_fping > a high timeout, 10 seconds to warn and 12 for critical. It seems that > check_fping returns too quickly, however. Here, I've cranked up the > warn and critical levels to an absurd level for illustration purposes, > and timed the process. > > # /usr/bin/time ./check_fping -H roxsw001 -w 1000000.0,80% -c 12000000.0,100% -b 56 > FPING CRITICAL - roxsw001 (loss=100% )|loss=100%;80;100;0;100 > 0.51 real 0.00 user 0.00 sys > > The check returns in half a second. Obviously, my timeout isn't working. > > Any thoughts on why this is, or what I can do? Surely someone else is > checking hosts on an intermittently slow network? seems like the values passed to -w and -c are round trip times that the check uses to gauge on. it isn't passing those values to fping when it runs fping. all it seems to pass is packet size, packet count and server. perhaps paste the results after running in verbose mode. if fping accepts a timeout, perhaps the check should be passing that to fping. the version of check_fping I'm looking at is: nagios-plugins-trunk-200809161200 > > Thanks, > ==ml > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sun Oct 19 00:37:04 2008 From: marc at ena.com (Marc Powell) Date: Sat, 18 Oct 2008 17:37:04 -0500 Subject: check_fping timing In-Reply-To: <20081016140334.GA14105@bewilderbeast.blackhelicopters.org> References: <20081016140334.GA14105@bewilderbeast.blackhelicopters.org> Message-ID: <58432B5A-D4A2-48D2-8DEC-AAE029647067@ena.com> On Oct 16, 2008, at 9:03 AM, Michael W. Lucas wrote: > > Hi, > > At times, latency rises on my network. I'm trying to give check_fping > a high timeout, 10 seconds to warn and 12 for critical. It seems that > check_fping returns too quickly, however. Here, I've cranked up the You might want to take a look at check_icmp. -- Marc ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Eric.Steidley at collectiveview.com Sun Oct 19 05:13:50 2008 From: Eric.Steidley at collectiveview.com (J. Eric Steidley) Date: Sat, 18 Oct 2008 21:13:50 -0600 Subject: Notification Interval problem Message-ID: I am having an issue where notification are going out every minute, regardless of what I have set in templates and service definitions. I am running Nagios 3.0.3 on CentOS / RHEL 5 (2.6.18-92.1.10.el5) It also does this with the same config files on Nagios 2.x box, so I assume it is something in my config, but I can't seem to find the problem. Any ideas? Sample of notifications log, note that it sent out nags every minute: SERVER1 win-mem CRITICAL 10-16-2008 00:09:22 eric notify-service-cv Connection refused SERVER1 win-mem CRITICAL 10-16-2008 00:09:22 ericcell notify-service-cv Connection refused SERVER1 win-mem CRITICAL 10-16-2008 00:09:22 nagiosadmin notify-by-rss Connection refused SERVER1 win-mem CRITICAL 10-16-2008 00:08:22 eric notify-service-cv Connection refused SERVER1 win-mem CRITICAL 10-16-2008 00:08:22 ericcell notify-service-cv Connection refused SERVER1 win-mem CRITICAL 10-16-2008 00:08:22 nagiosadmin notify-by-rss Connection refused SERVER1 win-mem CRITICAL 10-16-2008 00:07:22 eric notify-service-cv Memory usage: total:863.22 Mb - used: 519.74 Mb (60%) - free: 343.48 Mb (40%) SERVER1 win-mem CRITICAL 10-16-2008 00:07:22 ericcell notify-service-cv Memory usage: total:863.22 Mb - used: 519.74 Mb (60%) - free: 343.48 Mb (40%) SERVER1 win-mem CRITICAL 10-16-2008 00:07:22 nagiosadmin notify-by-rss Memory usage: total:863.22 Mb - used: 519.74 Mb (60%) - free: 343.48 Mb (40%) SERVER1 win-mem CRITICAL 10-16-2008 00:06:22 eric notify-service-cv Memory usage: total:863.22 Mb - used: 520.20 Mb (60%) - free: 343.01 Mb (40%) SERVER1 win-mem CRITICAL 10-16-2008 00:06:22 ericcell notify-service-cv Memory usage: total:863.22 Mb - used: 520.20 Mb (60%) - free: 343.01 Mb (40%) SERVER1 win-mem CRITICAL 10-16-2008 00:06:22 nagiosadmin notify-by-rss Memory usage: total:863.22 Mb - used: 520.20 Mb (60%) - free: 343.01 Mb (40%) SERVER1 win-mem CRITICAL 10-16-2008 00:05:22 eric notify-service-cv Memory usage: total:863.22 Mb - used: 520.09 Mb (60%) - free: 343.13 Mb (40%) SERVER1 win-mem CRITICAL 10-16-2008 00:05:22 ericcell notify-service-cv Memory usage: total:863.22 Mb - used: 520.09 Mb (60%) - free: 343.13 Mb (40%) SERVER1 win-mem CRITICAL 10-16-2008 00:05:22 nagiosadmin notify-by-rss Memory usage: total:863.22 Mb - used: 520.09 Mb (60%) - free: 343.13 Mb (40%) SERVER1 win-mem CRITICAL 10-16-2008 00:04:23 eric notify-service-cv Memory usage: total:863.22 Mb - used: 520.09 Mb (60%) - free: 343.13 Mb (40%) SERVER1 win-mem CRITICAL 10-16-2008 00:04:22 ericcell notify-service-cv Memory usage: total:863.22 Mb - used: 520.09 Mb (60%) - free: 343.13 Mb (40%) SERVER1 win-mem CRITICAL 10-16-2008 00:04:22 nagiosadmin notify-by-rss Memory usage: total:863.22 Mb - used: 520.09 Mb (60%) - free: 343.13 Mb (40%) in NAGIOS.CFG interval_length=60 in OBJECTS/SERVERS.CFG define service { host_name SERVER1 service_description std-nagios.asp use critical-service check_command check_asp!$HOSTADDRESS$!/nagios.asp!good notification_interval 10 notification_period 24x7 notification_options c,r ; CRITICAL, Recovery } define service { name critical-service service_description Service Checks every 1 minute is_volatile 1 ; True max_check_attempts 3 normal_check_interval 1 retry_check_interval 1 active_checks_enabled 1 ; True passive_checks_enabled 1 ; True check_period 24x7 parallelize_check 0 ; False obsess_over_service 0 ; False check_freshness 0 ; False freshness_threshold 361 event_handler_enabled 1 ; True low_flap_threshold 0 high_flap_threshold 0 flap_detection_enabled 1 ; True process_perf_data 1 ; True retain_status_information 1 ; True retain_nonstatus_information 1 ; True notification_interval 10 notification_period 24x7 notification_options c,r ; CRITICAL, Recovery notifications_enabled 1 ; True contact_groups cv-critical register 0 ; False } inSTATUS.DAT hoststatus { host_name=SERVER1 modified_attributes=0 check_command=check-host-alive check_period=24x7 notification_period=awakehours check_interval=1.000000 retry_interval=1.000000 event_handler= has_been_checked=1 should_be_scheduled=1 check_execution_time=4.032 check_latency=0.250 check_type=0 current_state=0 last_hard_state=0 last_event_id=0 current_event_id=0 current_problem_id=0 last_problem_id=0 plugin_output=PING OK - Packet loss = 0%, RTA = 3.60 ms long_plugin_output= performance_data=rta=3.598000ms;3000.000000;5000.000000;0.000000 pl=0%;80;100;0 last_check=1224277872 next_check=1224277942 check_options=0 current_attempt=1 max_attempts=10 current_event_id=0 last_event_id=0 state_type=1 last_state_change=1222329089 last_hard_state_change=1222329089 last_time_up=1224277882 last_time_down=0 last_time_unreachable=0 last_notification=0 next_notification=0 no_more_notifications=0 current_notification_number=0 current_notification_id=0 notifications_enabled=1 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=1224277892 is_flapping=0 percent_state_change=0.00 scheduled_downtime_depth=0 } servicestatus { host_name=SERVER1 service_description=std-nagios.asp modified_attributes=0 check_command=check_asp!$HOSTADDRESS$!/nagios.asp!good check_period=24x7 notification_period=24x7 check_interval=1.000000 retry_interval=1.000000 event_handler= has_been_checked=1 should_be_scheduled=1 check_execution_time=0.126 check_latency=0.159 check_type=0 current_state=0 last_hard_state=0 last_event_id=0 current_event_id=0 current_problem_id=0 last_problem_id=0 current_attempt=1 max_attempts=3 current_event_id=0 last_event_id=0 state_type=1 last_state_change=1222329089 last_hard_state_change=1222329089 last_time_ok=1224277833 last_time_warning=0 last_time_unknown=0 last_time_critical=0 plugin_output=HTTP OK HTTP/1.1 200 OK - 0.085 second response time long_plugin_output= performance_data=time=0.085371s;;;0.000000 size=269B;;;0 last_check=1224277833 next_check=1224277893 check_options=0 current_notification_number=0 current_notification_id=0 last_notification=0 next_notification=0 no_more_notifications=0 notifications_enabled=1 active_checks_enabled=1 passive_checks_enabled=1 event_handler_enabled=1 problem_has_been_acknowledged=0 acknowledgement_type=0 flap_detection_enabled=1 failure_prediction_enabled=1 process_performance_data=1 obsess_over_service=0 last_update=1224277892 is_flapping=0 percent_state_change=0.00 scheduled_downtime_depth=0 } ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hvdkooij at vanderkooij.org Sun Oct 19 09:26:39 2008 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Sun, 19 Oct 2008 09:26:39 +0200 Subject: Notification Interval problem In-Reply-To: References: Message-ID: <48FAE12F.8040908@vanderkooij.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 J. Eric Steidley wrote: > I am having an issue where notification are going out every minute, > regardless of what I have set in templates and service definitions. I am > running Nagios 3.0.3 on CentOS / RHEL 5 (2.6.18-92.1.10.el5) It also does > this with the same config files on Nagios 2.x box, so I assume it is > something in my config, but I can't seem to find the problem. Any ideas? ... > define service { > name critical-service > service_description Service Checks every 1 minute > is_volatile 1 ; True Right. So you got what you asked for. A volatile service that updates you with information after every service check. I think you missed all the warnings about this in the manual. Hugo. - -- hvdkooij at vanderkooij.org http://hugo.vanderkooij.org/ PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc A: Yes. >Q: Are you sure? >>A: Because it reverses the logical flow of conversation. >>>Q: Why is top posting frowned upon? Bored? Click on http://spamornot.org/ and rate those images. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFI+uEuBvzDRVjxmYERAjruAJ9AZDTI7YTlgpIQekK9f87xN4hWbACghM4R 2qtWJ00RDDsbzplfedAsJ2Q= =Z44s -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dermoth at aei.ca Sun Oct 19 17:45:12 2008 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Sun, 19 Oct 2008 11:45:12 -0400 Subject: notify-html-email.sh In-Reply-To: References: Message-ID: <48FB5608.30403@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 06/10/08 10:05 AM, Nagios User wrote: > Hello, > I am trying to us the notify-html-email.sh mailscript on nagios 3.0.1 > with no success. Does this work with Nagios 3.0.1? if you have any > information please let me know. > > http://www.nagiosexchange.org/cgi-bin/page.cgi?g=2002.html;d=1 Please do not repost multiple times the same email, even if you don't get any answer.. You would also get more luck if you'd provide more details of what you tried, configuration excerpts, and anything you did to investigate the issue. - -- Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFI+1YI6dZ+Kt5BchYRAtsVAJ9GJVuPN0Xqxh2xYgAa6bYMFuUB7gCfR3k4 ZgIcyOQqT4hAzZHfou4MeMI= =tURR -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From forsytad at luther.edu Sun Oct 19 23:24:38 2008 From: forsytad at luther.edu (Adam Forsyth) Date: Sun, 19 Oct 2008 16:24:38 -0500 Subject: Nagios Looking Glass Filters Message-ID: I'm experimenting with Nagios Looking Glass for the first time, and have a question about filters. From looking at the examples in s3_filter.inc.php I've created a filter called "Web Servers" and placed our web servers into it. This works just fine, but the Looking glass page reports that "The network is experiencing severe outages which is having a negative effect on services." The reason for this is that I have nagios configured to check how much free disk space is available on the server. That check is in "critical" state because the volume is 90% full. I want nagios to alert me when that happens so I can look for disk space to free up before the disk is 100% full (and it has alerted me). Nagios Looking Glass, on the other hand is for end users. The end users don't need to be concerned that we're within 10% of filling the disk, so I don't want the Looking Glass to be concerned about disk space. Is there any way to filter out certain services so Nagios Looking Glass won't be concerned about them? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ian at acces.co.jp Mon Oct 20 05:24:53 2008 From: ian at acces.co.jp (Ian Masters) Date: Mon, 20 Oct 2008 12:24:53 +0900 Subject: Problem using nagios-3.0.3-ja-utf8.patch Message-ID: <48FBFA05.8060700@acces.co.jp> Hello I recently applied the nagios-3.0.3-ja-utf8.patch to my Nagios installation so that I can view menu information in Japanese. It seems to be fine except for the Servicegroup Overview page which is not displaying information correctly. All other views seem to be working fine. Is anyone else on the list using this patch and if so, have you experienced anything similar? Thanks Ian Masters ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gurkan.aslan at comturk.com Mon Oct 20 10:16:16 2008 From: gurkan.aslan at comturk.com (=?ISO-8859-1?Q?G=FCrkan?= Aslan) Date: Mon, 20 Oct 2008 11:16:16 +0300 Subject: Notification Interval problem In-Reply-To: References: Message-ID: <1224490576.6410.3.camel@idesktop> Hi Eric, As you can see in the description, your service is configured to check for every 1 minutes... You can try to change normal_check_interval to 10 and retry_check_interval to 1. Nagios will check the service in every 10 minutes and if something fails, it will retry to check in every 1 minute. Best regards Cts, 2008-10-18 tarihinde 21:13 -0600 saatinde, J. Eric Steidley yazd?: [...] > define service { > name critical-service > service_description Service Checks every 1 minute > is_volatile 1 ; True > max_check_attempts 3 > normal_check_interval 1 > retry_check_interval 1 > active_checks_enabled 1 ; True > passive_checks_enabled 1 ; True > check_period 24x7 > parallelize_check 0 ; False > obsess_over_service 0 ; False > check_freshness 0 ; False > freshness_threshold 361 > event_handler_enabled 1 ; True > low_flap_threshold 0 > high_flap_threshold 0 > flap_detection_enabled 1 ; True > process_perf_data 1 ; True > retain_status_information 1 ; True > retain_nonstatus_information 1 ; True > notification_interval 10 > notification_period 24x7 > notification_options c,r ; CRITICAL, Recovery > notifications_enabled 1 ; True > contact_groups cv-critical > register 0 ; False > } -- G?rkan Aslan Senior Developer Komturk Iletisim Ltd. Sti Phone: +90 212 275 88 99 ext 125 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 at rejas.se Mon Oct 20 11:37:36 2008 From: marcus at rejas.se (Marcus =?iso-8859-1?Q?Rej=E5s?=) Date: Mon, 20 Oct 2008 11:37:36 +0200 Subject: Unmanaged switch In-Reply-To: <200810201004.42282.assaf.flatto@ssp.uk.com> References: <20081020084829.GB22015@csits.net> <200810201004.42282.assaf.flatto@ssp.uk.com> Message-ID: <20081020093736.GB10227@akka.nordrona.rejas.se> On 10/20 10:04, Assaf Flatto wrote: > you'll need an ip to define it, since nagios require an address if you define it as host . > but you van give it a fictitious ip and assign the Check_dummy to it so it will have a "service" > assigned to it. Well, you need something as a hostaddress, it doesn't have to be an ip-address. In this case anything would do. > then you can put it in the hierarchy . > > Unfortunately , this will not give a good indication to the topology if it indeed fails since there > will be no true indication if it is up or down. That is true. For it to make sense you should make up a check that is likely to determine if the switch goes down to use as host check and maybe also as the only service on the switch. How this can be done depends on your setup. The first thing that comes to my mind is to write a check that pings some reliable serves connected directly to the switch and if none of them responds the switch is probably dead. This can be used both as host check and a service. Be wise when choosing hosts to ping. If the switch is a distribution switch with not many servers on it there might be printers to ping. /Marcus -- Marcus Rej?s jabber: marcus at jabber.rejas.se ,= ,-_-. =. Rej?s Datakonsult e-mail: marcus at rejas.se ((_/)o o(\_)) Kaserngatan 1 web: http://www.rejas.se `-'(. .)`-' s-761 46 Norrt?lje gpg-key: http://gpg.rejas.se \_/ ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From alexdehaini at gmail.com Mon Oct 20 11:34:06 2008 From: alexdehaini at gmail.com (Alex Dehaini) Date: Mon, 20 Oct 2008 09:34:06 +0000 Subject: Monitor 2nd mail server behind natted router Message-ID: <4b008f7d0810200234w18c52b85gf4cbd7bb546fb488@mail.gmail.com> Hi Guys, Our email server is currently behind a cisco router. The server is running a local IP and the router is on a public IP. I installed NSClient and use the check_nt plugin to monitor the email server. Here is my host file define host{ use dns-servers host_name mailserver alias mailserver address 41.211.31.43 } I have a backup email server behind the same router running a local IP. I was wondering how I can monitor it. Any ideas? -- Alex Dehaini Developer Site - www.alexdehaini.com Email - alexdehaini at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bianca.heigl at ingrammicro.de Mon Oct 20 11:58:14 2008 From: bianca.heigl at ingrammicro.de (Bianca) Date: Mon, 20 Oct 2008 09:58:14 +0000 (UTC) Subject: mediawiki - include the nagios status report Message-ID: hello all, i?m creating a webpage with mediawiki and i want to include there the Status Summary For All Service Groups. but i want this status report to acutalize itself. how can i manage this? ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cschneemann at suse.de Mon Oct 20 11:53:07 2008 From: cschneemann at suse.de (Christian Schneemann) Date: Mon, 20 Oct 2008 11:53:07 +0200 Subject: Unmanaged switch In-Reply-To: References: Message-ID: <200810201153.08221.cschneemann@suse.de> On Monday October 20 2008 11:38:04 am Paul Weaver wrote: > How about a new command called "fakecheck", and apply to a "dumbswitch" > host with a 127.0.0.1 address. It would take a list of machines, and > check them all. If any of them are up, then the fakecheck would return > OK, otherwise it would return an error state. Just for understanding, you would check if the hosts which are connected to this dumbswitch are up? But they are tested anyhow.. greetings, Christian > > Something like > #!/usr/bin/perl > my $up = 0; > my @hosts = qw/10.1.2.3 10.1.2.4 10.1.2.5 10.1.2.6/; > foreach $addr (@hosts) { > if (pingCheck($addr)) { $up++; } > } > if ($up > 0) { > print "OK: Switch must be up\n"; > exit 0; > } else { > print "CRITICAL: Switch may be down\n"; > exit 2; > } > > (If you're good at programming you could probably get a list of children > out of the config -- complex configs take a long time to read in using > perl though) > > Another way of monitoring would be to have it powered off an SNMP > enabled MDU which can tell the current being drawn. You could then > measure that. > > -- > Paul Weaver > Systems Development Engineer > News Production Facilities, BBC News > Work: 020 822 58109 > Room 1244 Television Centre, > Wood Lane, London, W12 7RJ > > > -----Original Message----- > > From: Mike [mailto:mike at csits.net] > > Sent: 20 October 2008 09:48 > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Unmanaged switch > > > > > > Folks, > > > > What is the best way to include an unmanaged (read: IPless) > > switch in Nagios? Obviously I can't monitor it directly, but > > I'd like Nagios to be aware of it in the network heirachy so > > that it is aware that it is a possible poit of failure. Can > > I just define it as a host with no IP address and make it a > > parent/client of the devices that attach to it or is there a > > better way to approach this? > > > > Mike. > > > > -------------------------------------------------------------- > > ----------- > > This SF.Net email is sponsored by the Moblin Your Move > > Developer's challenge Build the coolest Linux based > > applications with Moblin SDK & win great prizes Grand prize > > is a trip for two to an Open Source event anywhere in the > > world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > ::: 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 Moblin Your Move Developer's > challenge Build the coolest Linux based applications with Moblin SDK & win > great prizes Grand prize is a trip for two to an Open Source event anywhere > in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > ::: reporting any issue. Messages without supporting info will risk being > ::: sent to /dev/null -- Christian Schneemann ------------------------------------- SUSE LINUX Products GmbH, Maxfeldstr. 5, D - 90409 N?rnberg Phone:??+49 (0)911 - 740 53 0 e-mail:?cschneemann at suse.de ------------------------------------- SUSE LINUX Products GmbH, GF: Markus Rex HRB 16746 (AG N?rnberg) ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From alexdehaini at gmail.com Mon Oct 20 12:03:36 2008 From: alexdehaini at gmail.com (Alex Dehaini) Date: Mon, 20 Oct 2008 10:03:36 +0000 Subject: Monitor 2nd mail server behind natted router In-Reply-To: <200810201051.41385.assaf.flatto@ssp.uk.com> References: <4b008f7d0810200234w18c52b85gf4cbd7bb546fb488@mail.gmail.com> <200810201051.41385.assaf.flatto@ssp.uk.com> Message-ID: <4b008f7d0810200303y474650b3o4299495334817cd8@mail.gmail.com> Nagios is on a public IP, the router is on a public IP and the two servers are on local IPs. Here is the connection *mail1*(localIP) -------- ------------- *MailRouter*(PublicIP) ----- Switch ------- (*Nagios*)(PublicIP) *mail2* (localIP) -------- If the two servers have the same local IP, there will be IP conflict. NSClient basically sends info from the server to nagios. I can do that for one mail server, I wonder if I can do that for the sendcond one. Thanks, Lex On Mon, Oct 20, 2008 at 9:51 AM, Assaf Flatto wrote: > > Unless you have two servers with the same local ip - you shouldn't have any > problems. > > i assume that the routing rules you have between routers know which range > is behind which router , > so all you need to do is monitor the second mail server as a regular server > on the your network. > > Can you easily access or ping the server ? > > > On Monday 20 October 2008 10:34:06 Alex Dehaini wrote: > > Hi Guys, > > > > Our email server is currently behind a cisco router. The server is > running > > a local IP and the router is on a public IP. I installed NSClient and use > > the check_nt plugin to monitor the email server. Here is my host file > > > > define host{ > > use dns-servers > > host_name mailserver > > alias mailserver > > address 41.211.31.43 > > } > > > > I have a backup email server behind the same router running a local IP. I > > was wondering how I can monitor it. Any ideas? > > > > -- > > Assaf Flatto > SSP Ops Team > Linux System Administrator > > > > > > IMPORTANT . this email and the information in it may be confidential, > legally > privileged and/or protected by law. It is intended solely for the use of > the > person to whom it is addressed. If you are not the intended recipient, > please > notify the sender immediately and do not disclose the contents to any other > person, use it for any purpose, or store or copy the information in any > medium. > Please also delete all copies of this email and any attachments from your > system. > > We cannot guarantee the security or confidentiality of email > communications. We > do not accept any liability for losses or damages that you may suffer as a > result of your receipt of this email including but not limited to computer > service or system failure, access delays or interruption, data non-delivery > or > mis-delivery, computer viruses or other harmful components. > > Copyright in this email and any attachments belong to Select Service > Partner UK > Limited. Should you communicate with anyone at Select Service Partner UK > Limited by > email, you consent to us monitoring and reading any such correspondence. > > Nothing in this email shall be taken or read as suggesting, proposing or > relating to any agreement concerted practice or other practice that could > infringe UK or EC competition legislation. > > Select Service Partner UK Limited is a company registered in England and > Wales > (company number 05687183) whose registered office is at 1 The Heights, > Brooklands, Weybridge. Surrey. KT13 0NY > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Alex Dehaini Developer Site - www.alexdehaini.com Email - alexdehaini at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From trevor_obba at yahoo.co.uk Mon Oct 20 12:07:38 2008 From: trevor_obba at yahoo.co.uk (trevor obba) Date: Mon, 20 Oct 2008 10:07:38 +0000 (GMT) Subject: Nagios CGI Configuration not Synchronizing Message-ID: <433722.79258.qm@web24204.mail.ird.yahoo.com> the problem has been fix, I re-enabled authentication in cgi.cfg file and then restarted nagios ----- Original Message ---- From: trevor obba To: nagios-user Sent: Friday, 17 October, 2008 12:25:22 Subject: [Nagios-users] Nagios CGI Configuration not Synchronizing I am running Nagios 2.10, on a sles10 machine. I have enabled ?use authentication? that functionality is checked in ?Nagios cgi configuration? however when a users with ?Global Host Information Access? and ?Global service Information Access? in ?Nagios cgi configuration? login they can execute any CGI command like ?Disable active checks of this host?, ?Disable notification for this service?. when any users login on Nagios, it appear as ?Logged in as nagiosadmin? for example when a user called ?tom? logins in it appears as ?Logged in as nagiosadmin? hence tom inherit admin privileges, rather than appearing as ?Logged in as tom? Can you help? Please. Send instant messages to your online friends http://uk.messenger.yahoo.com ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null Send instant messages to your online friends http://uk.messenger.yahoo.com ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From assaf.flatto at ssp.uk.com Mon Oct 20 11:51:41 2008 From: assaf.flatto at ssp.uk.com (Assaf Flatto) Date: Mon, 20 Oct 2008 10:51:41 +0100 Subject: Monitor 2nd mail server behind natted router In-Reply-To: <4b008f7d0810200234w18c52b85gf4cbd7bb546fb488@mail.gmail.com> References: <4b008f7d0810200234w18c52b85gf4cbd7bb546fb488@mail.gmail.com> Message-ID: <200810201051.41385.assaf.flatto@ssp.uk.com> Unless you have two servers with the same local ip - you shouldn't have any problems. i assume that the routing rules you have between routers know which range is behind which router , so all you need to do is monitor the second mail server as a regular server on the your network. Can you easily access or ping the server ? On Monday 20 October 2008 10:34:06 Alex Dehaini wrote: > Hi Guys, > > Our email server is currently behind a cisco router. The server is running > a local IP and the router is on a public IP. I installed NSClient and use > the check_nt plugin to monitor the email server. Here is my host file > > define host{ > use dns-servers > host_name mailserver > alias mailserver > address 41.211.31.43 > } > > I have a backup email server behind the same router running a local IP. I > was wondering how I can monitor it. Any ideas? -- Assaf Flatto SSP Ops Team Linux System Administrator IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From assaf.flatto at ssp.uk.com Mon Oct 20 12:13:28 2008 From: assaf.flatto at ssp.uk.com (Assaf Flatto) Date: Mon, 20 Oct 2008 11:13:28 +0100 Subject: Monitor 2nd mail server behind natted router In-Reply-To: <4b008f7d0810200303y474650b3o4299495334817cd8@mail.gmail.com> References: <4b008f7d0810200234w18c52b85gf4cbd7bb546fb488@mail.gmail.com> Message-ID: <200810201113.28544.assaf.flatto@ssp.uk.com> You should be able to do that . if you have access to the server , and the routing allows you to reach it , ( and as you say you do not have an ip collision ) then you can monitor it just like any server on the network , but you may want to be more security aware on what you transmit on public IP . On Monday 20 October 2008 11:03:36 Alex Dehaini wrote: > Nagios is on a public IP, the router is on a public IP and the two servers > are on local IPs. Here is the connection > > *mail1*(localIP) -------- > ------------- *MailRouter*(PublicIP) ----- Switch > ------- (*Nagios*)(PublicIP) > *mail2* (localIP) -------- > > If the two servers have the same local IP, there will be IP conflict. > NSClient basically sends info from the server to nagios. I can do that for > one mail server, I wonder if I can do that for the sendcond one. > > Thanks, > Lex > > On Mon, Oct 20, 2008 at 9:51 AM, Assaf Flatto wrote: > > Unless you have two servers with the same local ip - you shouldn't have > > any problems. > > > > i assume that the routing rules you have between routers know which range > > is behind which router , > > so all you need to do is monitor the second mail server as a regular > > server on the your network. > > > > Can you easily access or ping the server ? > > > > On Monday 20 October 2008 10:34:06 Alex Dehaini wrote: > > > Hi Guys, > > > > > > Our email server is currently behind a cisco router. The server is > > > > running > > > > > a local IP and the router is on a public IP. I installed NSClient and > > > use the check_nt plugin to monitor the email server. Here is my host > > > file > > > > > > define host{ > > > use dns-servers > > > host_name mailserver > > > alias mailserver > > > address 41.211.31.43 > > > } > > > > > > I have a backup email server behind the same router running a local IP. > > > I was wondering how I can monitor it. Any ideas? > > > > -- > > > > Assaf Flatto > > SSP Ops Team > > Linux System Administrator > > > > > > > > > > > > IMPORTANT . this email and the information in it may be confidential, > > legally > > privileged and/or protected by law. It is intended solely for the use of > > the > > person to whom it is addressed. If you are not the intended recipient, > > please > > notify the sender immediately and do not disclose the contents to any > > other person, use it for any purpose, or store or copy the information in > > any medium. > > Please also delete all copies of this email and any attachments from your > > system. > > > > We cannot guarantee the security or confidentiality of email > > communications. We > > do not accept any liability for losses or damages that you may suffer as > > a result of your receipt of this email including but not limited to > > computer service or system failure, access delays or interruption, data > > non-delivery or > > mis-delivery, computer viruses or other harmful components. > > > > Copyright in this email and any attachments belong to Select Service > > Partner UK > > Limited. Should you communicate with anyone at Select Service Partner UK > > Limited by > > email, you consent to us monitoring and reading any such correspondence. > > > > Nothing in this email shall be taken or read as suggesting, proposing or > > relating to any agreement concerted practice or other practice that could > > infringe UK or EC competition legislation. > > > > Select Service Partner UK Limited is a company registered in England and > > Wales > > (company number 05687183) whose registered office is at 1 The Heights, > > Brooklands, Weybridge. Surrey. KT13 0NY > > > > > > > > ------------------------------------------------------------------------- > > This SF.Net email is sponsored by the Moblin Your Move Developer's > > challenge > > Build the coolest Linux based applications with Moblin SDK & win great > > prizes > > Grand prize is a trip for two to an Open Source event anywhere in the > > world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > ::: Please include Nagios version, plugin version (-v) and OS when > > > > reporting any issue. > > > > ::: Messages without supporting info will risk being sent to /dev/null -- Assaf Flatto SSP Ops Team Linux System Administrator IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From alexdehaini at gmail.com Mon Oct 20 12:12:22 2008 From: alexdehaini at gmail.com (Alex Dehaini) Date: Mon, 20 Oct 2008 10:12:22 +0000 Subject: mediawiki - include the nagios status report In-Reply-To: References: Message-ID: <4b008f7d0810200312m4821e88bl8a2a9c833b8eefa6@mail.gmail.com> What do you mean by actualize? On Mon, Oct 20, 2008 at 9:58 AM, Bianca wrote: > hello all, > i?m creating a webpage with mediawiki and i want to include there the > Status > Summary For All Service Groups. but i want this status report to acutalize > itself. how can i manage this? > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Alex Dehaini Developer Site - www.alexdehaini.com Email - alexdehaini at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From paul.weaver at bbc.co.uk Mon Oct 20 11:38:04 2008 From: paul.weaver at bbc.co.uk (Paul Weaver) Date: Mon, 20 Oct 2008 10:38:04 +0100 Subject: Unmanaged switch In-Reply-To: <20081020084829.GB22015@csits.net> References: <20081020084829.GB22015@csits.net> Message-ID: How about a new command called "fakecheck", and apply to a "dumbswitch" host with a 127.0.0.1 address. It would take a list of machines, and check them all. If any of them are up, then the fakecheck would return OK, otherwise it would return an error state. Something like #!/usr/bin/perl my $up = 0; my @hosts = qw/10.1.2.3 10.1.2.4 10.1.2.5 10.1.2.6/; foreach $addr (@hosts) { if (pingCheck($addr)) { $up++; } } if ($up > 0) { print "OK: Switch must be up\n"; exit 0; } else { print "CRITICAL: Switch may be down\n"; exit 2; } (If you're good at programming you could probably get a list of children out of the config -- complex configs take a long time to read in using perl though) Another way of monitoring would be to have it powered off an SNMP enabled MDU which can tell the current being drawn. You could then measure that. -- Paul Weaver Systems Development Engineer News Production Facilities, BBC News Work: 020 822 58109 Room 1244 Television Centre, Wood Lane, London, W12 7RJ > -----Original Message----- > From: Mike [mailto:mike at csits.net] > Sent: 20 October 2008 09:48 > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Unmanaged switch > > > Folks, > > What is the best way to include an unmanaged (read: IPless) > switch in Nagios? Obviously I can't monitor it directly, but > I'd like Nagios to be aware of it in the network heirachy so > that it is aware that it is a possible poit of failure. Can > I just define it as a host with no IP address and make it a > parent/client of the devices that attach to it or is there a > better way to approach this? > > Mike. > > -------------------------------------------------------------- > ----------- > This SF.Net email is sponsored by the Moblin Your Move > Developer's challenge Build the coolest Linux based > applications with Moblin SDK & win great prizes Grand prize > is a trip for two to an Open Source event anywhere in the > world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jperrin at gmail.com Mon Oct 20 12:59:27 2008 From: jperrin at gmail.com (Jim Perrin) Date: Mon, 20 Oct 2008 06:59:27 -0400 Subject: mediawiki - include the nagios status report In-Reply-To: <4b008f7d0810200312m4821e88bl8a2a9c833b8eefa6@mail.gmail.com> References: <4b008f7d0810200312m4821e88bl8a2a9c833b8eefa6@mail.gmail.com> Message-ID: <302ce8b50810200359y7b66a4a3q7f84dd91e8e824d1@mail.gmail.com> On Mon, Oct 20, 2008 at 6:12 AM, Alex Dehaini wrote: > What do you mean by actualize? > > On Mon, Oct 20, 2008 at 9:58 AM, Bianca wrote: >> >> hello all, >> i?m creating a webpage with mediawiki and i want to include there the >> Status >> Summary For All Service Groups. but i want this status report to acutalize >> itself. how can i manage this? Sounds like business jargon for 'Has anyone done this before, and do you have suggestions for the best way to go about making the wiki page for each server automagically update with the server's status reports'. We have similar management-isms here to include 'teachable moments' and other such B.S. -- During times of universal deceit, telling the truth becomes a revolutionary act. George Orwell ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From trevor_obba-/E1597aS9LT10XsdtD+oqA at public.gmane.org Mon Oct 20 13:22:55 2008 From: trevor_obba-/E1597aS9LT10XsdtD+oqA at public.gmane.org (trevor obba) Date: Mon, 20 Oct 2008 11:22:55 +0000 (GMT) Subject: [Nagios-users] check_dxml_drvstate report incorrectly remotely Message-ID: <29181.45648.qm@web24208.mail.ird.yahoo.com> The initial problem was due to the plug-in?s log file been own by root. Nagios could not write to the log hence the plug-in was not working when executed as nagios, deleting /tmp/check_dxml_drvstate.err and nagios automatically recreate the log file with permission to write to it fix the problem. ----- Original Message ---- From: trevor obba To: nagiosplug ; nagios-user Sent: Tuesday, 14 October, 2008 13:21:52 Subject: [Nagios-users] check_dxml_drvstate report incorrectly remotely I running check_dxml_drvstate version 1.6 on a Sles10 (x86_64) check_dxml_drvstate has 755 permission When i execute check_dxml_drvstate plugin locally like ./check_dxml_drvstate-u nagiosdriver.services.unl -p password -d mail.urs-drivers.services.unl I get these responses Driver mail.urs-drivers.services.unl is RUNNING. as expected. However when i execute check_dxml_drvstate plugin through nagios nrpe.cfg using check_nrpe I get the following responses Driver idworks.urs-drivers.services.unl is STARTING. Even when the driver has been stopped I still get the response Driver idworks.urs-drivers.services.unl is STARTING. this only report incorrectly when I run remotely via nrpe.cfg using check_nrpe I am running version 2.5.1 of check_nrpe. How can i fix the problem? can you help? please ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null Send instant messages to your online friends http://uk.messenger.yahoo.com ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagiosplug-help mailing list Nagiosplug-help at lists.sourceforge.net 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 paul.weaver at bbc.co.uk Mon Oct 20 12:44:13 2008 From: paul.weaver at bbc.co.uk (Paul Weaver) Date: Mon, 20 Oct 2008 11:44:13 +0100 Subject: Unmanaged switch In-Reply-To: <200810201153.08221.cschneemann@suse.de> References: <200810201153.08221.cschneemann@suse.de> Message-ID: > On Monday October 20 2008 11:38:04 am Paul Weaver wrote: > > How about a new command called "fakecheck", and apply to a > > "dumbswitch" host with a 127.0.0.1 address. It would take a list of > > machines, and check them all. If any of them are up, then the > > fakecheck would return OK, otherwise it would return an error state. > Just for understanding, you would check if the hosts which > are connected to > this dumbswitch are up? > > But they are tested anyhow.. If you have 10 devices on the unmanaged switch, and all 10 are off, it's likely the switch is broken -- so set the switch to off, and the devices to unreachable If 9 are off, and one is on, the switch *can't* be broken You could check the current state of each device (check_cluster), but 1) All devices go off, check_cluster goes bad 2) All devices then go unreachable 3) Check_cluster stays bad for ever (won't go good until a device goes good, which won't happen if they are unreachable and aren't checked), or it goes unreachable (inheriting the state of the devices), or goes good (if it treats unreachable as "OK"). None of those is the correct action. Pings are cheap. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From paul.weaver at bbc.co.uk Mon Oct 20 12:51:22 2008 From: paul.weaver at bbc.co.uk (Paul Weaver) Date: Mon, 20 Oct 2008 11:51:22 +0100 Subject: mediawiki - include the nagios status report In-Reply-To: References: Message-ID: Use an iframe to include http://nagios/cgi-bin/status.cgi?servicegroup-all&style=summary -- you'd need a mediawiki plugin to allow the use of iframes The use of "actualize" does ask questions.. -- Paul Weaver Systems Development Engineer News Production Facilities, BBC News Work: 020 822 58109 Room 1244 Television Centre, Wood Lane, London, W12 7RJ > -----Original Message----- > From: Bianca [mailto:bianca.heigl at ingrammicro.de] > Sent: 20 October 2008 10:58 > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] mediawiki - include the nagios status report > > > hello all, > i?m creating a webpage with mediawiki and i want to include > there the Status > Summary For All Service Groups. but i want this status report > to acutalize > itself. how can i manage this? > > > -------------------------------------------------------------- > ----------- > This SF.Net email is sponsored by the Moblin Your Move > Developer's challenge Build the coolest Linux based > applications with Moblin SDK & win great prizes Grand prize > is a trip for two to an Open Source event anywhere in the > world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From paul.weaver at bbc.co.uk Mon Oct 20 13:09:10 2008 From: paul.weaver at bbc.co.uk (Paul Weaver) Date: Mon, 20 Oct 2008 12:09:10 +0100 Subject: mediawiki - include the nagios status report In-Reply-To: <8803D3AB8AF18847885D0CCFDEE32C78D72426@desrxch101.corporate.ingrammicro.com> References: <8803D3AB8AF18847885D0CCFDEE32C78D72426@desrxch101.corporate.ingrammicro.com> Message-ID: > -----Original Message----- > From: Heigl, Bianca [mailto:Bianca.Heigl at ingrammicro.de] > Sent: 20 October 2008 11:56 > To: Paul Weaver > Subject: AW: [Nagios-users] mediawiki - include the nagios > status report > > > Thanks a lot, i will try this. > Sorry, I didn?t mean actualize, I meant that it should update > itself every 90 minutes, also at the mediawiki page. Using "Actualise" raises a warning flag that a manager has got involved :) A snapshot every 90 minutes would be harder -- you'd need a cron job running to download the view -- wget should help. Nagios can give different views depending on the user, if you wanted that you'd have to think again about your downloading. As long as you don't mind the nagios authentication, an iframe would seem the best solution. You'll need to install something like http://www.mediawiki.org/wiki/Extension:Website_in_iFrame onto your mediawiki server though. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From alexdehaini at gmail.com Mon Oct 20 13:21:41 2008 From: alexdehaini at gmail.com (Alex Dehaini) Date: Mon, 20 Oct 2008 11:21:41 +0000 Subject: Monitor 2nd mail server behind natted router In-Reply-To: <200810201113.28544.assaf.flatto@ssp.uk.com> References: <4b008f7d0810200303y474650b3o4299495334817cd8@mail.gmail.com> <200810201113.28544.assaf.flatto@ssp.uk.com> Message-ID: <4b008f7d0810200421g96d11d6x361940128755b9e3@mail.gmail.com> The issue is the mail router is natted to only one local IP. On Mon, Oct 20, 2008 at 10:13 AM, Assaf Flatto wrote: > You should be able to do that . > > if you have access to the server , and the routing allows you to reach it , > ( and as you say you do > not have an ip collision ) then you can monitor it just like any server on > the network , but you > may want to be more security aware on what you transmit on public IP . > > > > > On Monday 20 October 2008 11:03:36 Alex Dehaini wrote: > > Nagios is on a public IP, the router is on a public IP and the two > servers > > are on local IPs. Here is the connection > > > > *mail1*(localIP) -------- > > ------------- *MailRouter*(PublicIP) ----- Switch > > ------- (*Nagios*)(PublicIP) > > *mail2* (localIP) -------- > > > > If the two servers have the same local IP, there will be IP conflict. > > NSClient basically sends info from the server to nagios. I can do that > for > > one mail server, I wonder if I can do that for the sendcond one. > > > > Thanks, > > Lex > > > > On Mon, Oct 20, 2008 at 9:51 AM, Assaf Flatto >wrote: > > > Unless you have two servers with the same local ip - you shouldn't have > > > any problems. > > > > > > i assume that the routing rules you have between routers know which > range > > > is behind which router , > > > so all you need to do is monitor the second mail server as a regular > > > server on the your network. > > > > > > Can you easily access or ping the server ? > > > > > > On Monday 20 October 2008 10:34:06 Alex Dehaini wrote: > > > > Hi Guys, > > > > > > > > Our email server is currently behind a cisco router. The server is > > > > > > running > > > > > > > a local IP and the router is on a public IP. I installed NSClient and > > > > use the check_nt plugin to monitor the email server. Here is my host > > > > file > > > > > > > > define host{ > > > > use dns-servers > > > > host_name mailserver > > > > alias mailserver > > > > address 41.211.31.43 > > > > } > > > > > > > > I have a backup email server behind the same router running a local > IP. > > > > I was wondering how I can monitor it. Any ideas? > > > > > > -- > > > > > > Assaf Flatto > > > SSP Ops Team > > > Linux System Administrator > > > > > > > > > > > > > > > > > > IMPORTANT . this email and the information in it may be confidential, > > > legally > > > privileged and/or protected by law. It is intended solely for the use > of > > > the > > > person to whom it is addressed. If you are not the intended recipient, > > > please > > > notify the sender immediately and do not disclose the contents to any > > > other person, use it for any purpose, or store or copy the information > in > > > any medium. > > > Please also delete all copies of this email and any attachments from > your > > > system. > > > > > > We cannot guarantee the security or confidentiality of email > > > communications. We > > > do not accept any liability for losses or damages that you may suffer > as > > > a result of your receipt of this email including but not limited to > > > computer service or system failure, access delays or interruption, data > > > non-delivery or > > > mis-delivery, computer viruses or other harmful components. > > > > > > Copyright in this email and any attachments belong to Select Service > > > Partner UK > > > Limited. Should you communicate with anyone at Select Service Partner > UK > > > Limited by > > > email, you consent to us monitoring and reading any such > correspondence. > > > > > > Nothing in this email shall be taken or read as suggesting, proposing > or > > > relating to any agreement concerted practice or other practice that > could > > > infringe UK or EC competition legislation. > > > > > > Select Service Partner UK Limited is a company registered in England > and > > > Wales > > > (company number 05687183) whose registered office is at 1 The Heights, > > > Brooklands, Weybridge. Surrey. KT13 0NY > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > This SF.Net email is sponsored by the Moblin Your Move Developer's > > > challenge > > > Build the coolest Linux based applications with Moblin SDK & win great > > > prizes > > > Grand prize is a trip for two to an Open Source event anywhere in the > > > world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > ::: Please include Nagios version, plugin version (-v) and OS when > > > > > > reporting any issue. > > > > > > ::: Messages without supporting info will risk being sent to /dev/null > > > > -- > > Assaf Flatto > SSP Ops Team > Linux System Administrator > > > > > > IMPORTANT . this email and the information in it may be confidential, > legally > privileged and/or protected by law. It is intended solely for the use of > the > person to whom it is addressed. If you are not the intended recipient, > please > notify the sender immediately and do not disclose the contents to any other > person, use it for any purpose, or store or copy the information in any > medium. > Please also delete all copies of this email and any attachments from your > system. > > We cannot guarantee the security or confidentiality of email > communications. We > do not accept any liability for losses or damages that you may suffer as a > result of your receipt of this email including but not limited to computer > service or system failure, access delays or interruption, data non-delivery > or > mis-delivery, computer viruses or other harmful components. > > Copyright in this email and any attachments belong to Select Service > Partner UK > Limited. Should you communicate with anyone at Select Service Partner UK > Limited by > email, you consent to us monitoring and reading any such correspondence. > > Nothing in this email shall be taken or read as suggesting, proposing or > relating to any agreement concerted practice or other practice that could > infringe UK or EC competition legislation. > > Select Service Partner UK Limited is a company registered in England and > Wales > (company number 05687183) whose registered office is at 1 The Heights, > Brooklands, Weybridge. Surrey. KT13 0NY > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Alex Dehaini Developer Site - www.alexdehaini.com Email - alexdehaini at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From josh.wells at lionbank.com Mon Oct 20 16:58:25 2008 From: josh.wells at lionbank.com (Josh Wells) Date: Mon, 20 Oct 2008 10:58:25 -0400 Subject: How do I check if a website is up? In-Reply-To: <200810201545.45654.assaf.flatto@ssp.uk.com> References: <9179DC579128514D8035295BE49187E71416ED29@mail2.fidelitynational.com> <200810201545.45654.assaf.flatto@ssp.uk.com> Message-ID: <9179DC579128514D8035295BE49187E71416ED2B@mail2.fidelitynational.com> Ok so if the website is external to my network I need to create a host definition? What would that look like for a URL? I've only made host definitions for internal hosts using the IP address. Because the website is a hosted solution I would rather define it by URL than IP address. Is this possible? -----Original Message----- From: Assaf Flatto [mailto:assaf.flatto at ssp.uk.com] Sent: Monday, October 20, 2008 10:46 AM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] How do I check if a website is up? Not nessaceily . If you have that website in your network , you can just define the check_http check to that host. also you can add in one of the parameters the specific URL you wish to query . -u, --url=PATH URL to GET or POST (default: /) Or you can define a check on the nagios server it self to query the web site like this : # 'check_website' command definition define command{ command_name check_website command_line $USER1$/check_http -H www.website.com } If not , then you need to build a new host definition and service check for that host . On Monday 20 October 2008 15:18:53 Josh Wells wrote: > Do I have to define a remote host such as www.website.com in order to > apply the check_http service against that host? -- Assaf Flatto SSP Ops Team Linux System Administrator IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------ - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From assaf.flatto at ssp.uk.com Mon Oct 20 14:07:56 2008 From: assaf.flatto at ssp.uk.com (Assaf Flatto) Date: Mon, 20 Oct 2008 13:07:56 +0100 Subject: Monitor 2nd mail server behind natted router In-Reply-To: <4b008f7d0810200421g96d11d6x361940128755b9e3@mail.gmail.com> References: <4b008f7d0810200303y474650b3o4299495334817cd8@mail.gmail.com> Message-ID: <200810201307.56109.assaf.flatto@ssp.uk.com> Can you access that ip from the nagios server (ping it ?) It seems to me the issue is with the routing , not with nagios. you need to define in your routers the routing tables to the natted IP's , and then define the host you wish to check . On Monday 20 October 2008 12:21:41 Alex Dehaini wrote: > The issue is the mail router is natted to only one local IP. > > On Mon, Oct 20, 2008 at 10:13 AM, Assaf Flatto wrote: > > You should be able to do that . > > > > if you have access to the server , and the routing allows you to reach it > > , ( and as you say you do > > not have an ip collision ) then you can monitor it just like any server > > on the network , but you > > may want to be more security aware on what you transmit on public IP . > > > > On Monday 20 October 2008 11:03:36 Alex Dehaini wrote: > > > Nagios is on a public IP, the router is on a public IP and the two > > > > servers > > > > > are on local IPs. Here is the connection > > > > > > *mail1*(localIP) -------- > > > ------------- *MailRouter*(PublicIP) ----- Switch > > > ------- (*Nagios*)(PublicIP) > > > *mail2* (localIP) -------- > > > > > > If the two servers have the same local IP, there will be IP conflict. > > > NSClient basically sends info from the server to nagios. I can do that > > > > for > > > > > one mail server, I wonder if I can do that for the sendcond one. > > > > > > Thanks, > > > Lex > > > > > > On Mon, Oct 20, 2008 at 9:51 AM, Assaf Flatto > > > > >wrote: > > > > Unless you have two servers with the same local ip - you shouldn't > > > > have any problems. > > > > > > > > i assume that the routing rules you have between routers know which > > > > range > > > > > > is behind which router , > > > > so all you need to do is monitor the second mail server as a regular > > > > server on the your network. > > > > > > > > Can you easily access or ping the server ? > > > > > > > > On Monday 20 October 2008 10:34:06 Alex Dehaini wrote: > > > > > Hi Guys, > > > > > > > > > > Our email server is currently behind a cisco router. The server is > > > > > > > > running > > > > > > > > > a local IP and the router is on a public IP. I installed NSClient > > > > > and use the check_nt plugin to monitor the email server. Here is my > > > > > host file > > > > > > > > > > define host{ > > > > > use dns-servers > > > > > host_name mailserver > > > > > alias mailserver > > > > > address 41.211.31.43 > > > > > } > > > > > > > > > > I have a backup email server behind the same router running a local > > > > IP. > > > > > > > I was wondering how I can monitor it. Any ideas? > > > > > > > > -- > > > > > > > > Assaf Flatto > > > > SSP Ops Team > > > > Linux System Administrator > > > > > > > > > > > > > > > > > > > > > > > > IMPORTANT . this email and the information in it may be confidential, > > > > legally > > > > privileged and/or protected by law. It is intended solely for the use > > > > of > > > > > > the > > > > person to whom it is addressed. If you are not the intended > > > > recipient, please > > > > notify the sender immediately and do not disclose the contents to any > > > > other person, use it for any purpose, or store or copy the > > > > information > > > > in > > > > > > any medium. > > > > Please also delete all copies of this email and any attachments from > > > > your > > > > > > system. > > > > > > > > We cannot guarantee the security or confidentiality of email > > > > communications. We > > > > do not accept any liability for losses or damages that you may suffer > > > > as > > > > > > a result of your receipt of this email including but not limited to > > > > computer service or system failure, access delays or interruption, > > > > data non-delivery or > > > > mis-delivery, computer viruses or other harmful components. > > > > > > > > Copyright in this email and any attachments belong to Select Service > > > > Partner UK > > > > Limited. Should you communicate with anyone at Select Service Partner > > > > UK > > > > > > Limited by > > > > email, you consent to us monitoring and reading any such > > > > correspondence. > > > > > > Nothing in this email shall be taken or read as suggesting, proposing > > > > or > > > > > > relating to any agreement concerted practice or other practice that > > > > could > > > > > > infringe UK or EC competition legislation. > > > > > > > > Select Service Partner UK Limited is a company registered in England > > > > and > > > > > > Wales > > > > (company number 05687183) whose registered office is at 1 The > > > > Heights, Brooklands, Weybridge. Surrey. KT13 0NY > > > > ------------------------------------------------------------------------- > > > > > > This SF.Net email is sponsored by the Moblin Your Move Developer's > > > > challenge > > > > Build the coolest Linux based applications with Moblin SDK & win > > > > great prizes > > > > Grand prize is a trip for two to an Open Source event anywhere in the > > > > world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > > > _______________________________________________ > > > > Nagios-users mailing list > > > > Nagios-users at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > ::: Please include Nagios version, plugin version (-v) and OS when > > > > > > > > reporting any issue. > > > > > > > > ::: Messages without supporting info will risk being sent to > > > > ::: /dev/null > > > > -- > > > > Assaf Flatto > > SSP Ops Team > > Linux System Administrator > > > > > > > > > > > > IMPORTANT . this email and the information in it may be confidential, > > legally > > privileged and/or protected by law. It is intended solely for the use of > > the > > person to whom it is addressed. If you are not the intended recipient, > > please > > notify the sender immediately and do not disclose the contents to any > > other person, use it for any purpose, or store or copy the information in > > any medium. > > Please also delete all copies of this email and any attachments from your > > system. > > > > We cannot guarantee the security or confidentiality of email > > communications. We > > do not accept any liability for losses or damages that you may suffer as > > a result of your receipt of this email including but not limited to > > computer service or system failure, access delays or interruption, data > > non-delivery or > > mis-delivery, computer viruses or other harmful components. > > > > Copyright in this email and any attachments belong to Select Service > > Partner UK > > Limited. Should you communicate with anyone at Select Service Partner UK > > Limited by > > email, you consent to us monitoring and reading any such correspondence. > > > > Nothing in this email shall be taken or read as suggesting, proposing or > > relating to any agreement concerted practice or other practice that could > > infringe UK or EC competition legislation. > > > > Select Service Partner UK Limited is a company registered in England and > > Wales > > (company number 05687183) whose registered office is at 1 The Heights, > > Brooklands, Weybridge. Surrey. KT13 0NY > > > > > > > > ------------------------------------------------------------------------- > > This SF.Net email is sponsored by the Moblin Your Move Developer's > > challenge > > Build the coolest Linux based applications with Moblin SDK & win great > > prizes > > Grand prize is a trip for two to an Open Source event anywhere in the > > world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > ::: Please include Nagios version, plugin version (-v) and OS when > > > > reporting any issue. > > > > ::: Messages without supporting info will risk being sent to /dev/null -- Assaf Flatto SSP Ops Team Linux System Administrator IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From alexdehaini at gmail.com Mon Oct 20 16:23:50 2008 From: alexdehaini at gmail.com (Alex Dehaini) Date: Mon, 20 Oct 2008 14:23:50 +0000 Subject: Monitor 2nd mail server behind natted router In-Reply-To: <200810201450.05919.assaf.flatto@ssp.uk.com> References: <4b008f7d0810200642r45198e4cq7837f611827df2f4@mail.gmail.com> <200810201450.05919.assaf.flatto@ssp.uk.com> Message-ID: <4b008f7d0810200723q38951be2l28604de39b2eed50@mail.gmail.com> Can you route traffic to two local IPs behind the router? On Mon, Oct 20, 2008 at 1:50 PM, Assaf Flatto wrote: > So it is like I thought , you need to define a routing rules on that router > to direct the traffic to > the device nat'ed behind . > > > On Monday 20 October 2008 14:42:08 Alex Dehaini wrote: > > Nagios can only ping the router public interface > > > > > > > -- > > Assaf Flatto > SSP Ops Team > Linux System Administrator > > > > > > IMPORTANT . this email and the information in it may be confidential, > legally > privileged and/or protected by law. It is intended solely for the use of > the > person to whom it is addressed. If you are not the intended recipient, > please > notify the sender immediately and do not disclose the contents to any other > person, use it for any purpose, or store or copy the information in any > medium. > Please also delete all copies of this email and any attachments from your > system. > > We cannot guarantee the security or confidentiality of email > communications. We > do not accept any liability for losses or damages that you may suffer as a > result of your receipt of this email including but not limited to computer > service or system failure, access delays or interruption, data non-delivery > or > mis-delivery, computer viruses or other harmful components. > > Copyright in this email and any attachments belong to Select Service > Partner UK > Limited. Should you communicate with anyone at Select Service Partner UK > Limited by > email, you consent to us monitoring and reading any such correspondence. > > Nothing in this email shall be taken or read as suggesting, proposing or > relating to any agreement concerted practice or other practice that could > infringe UK or EC competition legislation. > > Select Service Partner UK Limited is a company registered in England and > Wales > (company number 05687183) whose registered office is at 1 The Heights, > Brooklands, Weybridge. Surrey. KT13 0NY > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Alex Dehaini Developer Site - www.alexdehaini.com Email - alexdehaini at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From boph at tdchosting.dk Mon Oct 20 16:02:55 2008 From: boph at tdchosting.dk (Bo Philip Larsen) Date: Mon, 20 Oct 2008 16:02:55 +0200 Subject: Nagios client merge NSCA/NRPE Message-ID: <02EAC0960BFECB4F9EAEC26B4972EE4471C9DFDE5E@TDCHEXBE01.int.tdch.dk> I need to find a client to use with nagios, it should be using passive communication like "nsca", it also should use standard nagios plugins and be configured with an nrpe.cfg like syntax it would be nice if each service check could be scheduled individual in the client configfile without using cron. The client will be used on various *nix systems Does anyone know if that type of client exists or have anyone a clue or interest in developing this ? The background: we are using nagios in a distributed network with nrpe on 1000+ hosts and a company merges have given us 2000+ hosts more using various monitoring systems like bigb using passive communication and the active communication is on an option for now. We are using nagconf (http://nagconf.naguser.dk) as configtools and would like to be able to config/manage the monitoring on all servers and clients from a central site. Regards Bo -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 at csits.net Mon Oct 20 10:48:29 2008 From: mike at csits.net (Mike) Date: Mon, 20 Oct 2008 09:48:29 +0100 Subject: Unmanaged switch Message-ID: <20081020084829.GB22015@csits.net> Folks, What is the best way to include an unmanaged (read: IPless) switch in Nagios? Obviously I can't monitor it directly, but I'd like Nagios to be aware of it in the network heirachy so that it is aware that it is a possible poit of failure. Can I just define it as a host with no IP address and make it a parent/client of the devices that attach to it or is there a better way to approach this? Mike. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From assaf.flatto at ssp.uk.com Mon Oct 20 11:04:42 2008 From: assaf.flatto at ssp.uk.com (Assaf Flatto) Date: Mon, 20 Oct 2008 10:04:42 +0100 Subject: Unmanaged switch In-Reply-To: <20081020084829.GB22015@csits.net> References: <20081020084829.GB22015@csits.net> Message-ID: <200810201004.42282.assaf.flatto@ssp.uk.com> you'll need an ip to define it, since nagios require an address if you define it as host . but you van give it a fictitious ip and assign the Check_dummy to it so it will have a "service" assigned to it. then you can put it in the hierarchy . Unfortunately , this will not give a good indication to the topology if it indeed fails since there will be no true indication if it is up or down. On Monday 20 October 2008 09:48:29 Mike wrote: > Folks, > > What is the best way to include an unmanaged (read: IPless) switch in > Nagios? Obviously I can't monitor it directly, but I'd like Nagios to > be aware of it in the network heirachy so that it is aware that it is a > possible poit of failure. Can I just define it as a host with no IP > address and make it a parent/client of the devices that attach to it or > is there a better way to approach this? > > Mike. > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge Build the coolest Linux based applications with Moblin SDK & win > great prizes Grand prize is a trip for two to an Open Source event anywhere > in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > ::: reporting any issue. Messages without supporting info will risk being > ::: sent to /dev/null -- Assaf Flatto SSP Ops Team Linux System Administrator IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From andurin at process-zero.de Mon Oct 20 16:46:17 2008 From: andurin at process-zero.de (=?ISO-8859-1?Q?Hendrik_B=E4cker?=) Date: Mon, 20 Oct 2008 16:46:17 +0200 Subject: How do I check if a website is up? In-Reply-To: <9179DC579128514D8035295BE49187E71416ED29@mail2.fidelitynational.com> References: <9179DC579128514D8035295BE49187E71416ED29@mail2.fidelitynational.com> Message-ID: <48FC99B9.4020207@process-zero.de> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Josh Wells schrieb: > Do I have to define a remote host such as www.website.com > in order to apply the check_http service > against that host? > Yes/No ;) You can but you have not to... you can use check_http as a service for an already existing host or you can define a new host for this... just as you want. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) iD8DBQFI/Jm5lI0PwfxLQjkRAqf9AJ4/wYh2GF2OwD5BaWw/NqzwXr9CngCeNKuM oQyXiuNxUn9/aJG91FDqc8g= =c+FE -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From assaf.flatto at ssp.uk.com Mon Oct 20 17:02:57 2008 From: assaf.flatto at ssp.uk.com (Assaf Flatto) Date: Mon, 20 Oct 2008 16:02:57 +0100 Subject: How do I check if a website is up? In-Reply-To: <9179DC579128514D8035295BE49187E71416ED2B@mail2.fidelitynational.com> References: <9179DC579128514D8035295BE49187E71416ED29@mail2.fidelitynational.com> Message-ID: <200810201602.57895.assaf.flatto@ssp.uk.com> No , you don't have to define a host . you define a service check with the fix parameters ( as i gave in the previous mail ) and assign this check to an existing host . that host will execute the check and report the status returned from the command ( personally i'd run it from the nagios server itself) . On Monday 20 October 2008 15:58:25 Josh Wells wrote: > Ok so if the website is external to my network I need to create a host > definition? What would that look like for a URL? I've only made host > definitions for internal hosts using the IP address. Because the website > is a hosted solution I would rather define it by URL than IP address. Is > this possible? > > > > -----Original Message----- > From: Assaf Flatto [mailto:assaf.flatto at ssp.uk.com] > Sent: Monday, October 20, 2008 10:46 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] How do I check if a website is up? > > Not nessaceily . > > If you have that website in your network , you can just define the > check_http check to that host. > also you can add in one of the parameters the specific URL you wish to > query . > > -u, --url=PATH > URL to GET or POST (default: /) > > > Or you can define a check on the nagios server it self to query the web > site like this : > > # 'check_website' command definition > define command{ > command_name check_website > command_line $USER1$/check_http -H www.website.com > } > > > If not , then you need to build a new host definition and service check > for that host . > > On Monday 20 October 2008 15:18:53 Josh Wells wrote: > > Do I have to define a remote host such as www.website.com in order to > > apply the check_http service against that host? -- Assaf Flatto SSP Ops Team Linux System Administrator IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bjlockie at lockie.ca Mon Oct 20 16:50:07 2008 From: bjlockie at lockie.ca (James) Date: Mon, 20 Oct 2008 10:50:07 -0400 (EDT) Subject: How do I check if a website is up? In-Reply-To: <9179DC579128514D8035295BE49187E71416ED29@mail2.fidelitynational.com> References: <9179DC579128514D8035295BE49187E71416ED29@mail2.fidelitynational.com> Message-ID: <58d15a17ecc22d745727dd6b2c400517.squirrel@www.lockie.ca> On Mon, October 20, 2008 10:18 am, Josh Wells wrote: > Do I have to define a remote host such as www.website.com in order to > apply the check_http service against that host? A service needs a host so I think so. It doesn't need to be www though, as long as port 80 answers. All it does it telnet to port 80 and do a 'GET /' to see if the main page is up. I modified my check_http to look somewhere else beside /. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From assaf.flatto at ssp.uk.com Mon Oct 20 16:45:45 2008 From: assaf.flatto at ssp.uk.com (Assaf Flatto) Date: Mon, 20 Oct 2008 15:45:45 +0100 Subject: How do I check if a website is up? In-Reply-To: <9179DC579128514D8035295BE49187E71416ED29@mail2.fidelitynational.com> References: <9179DC579128514D8035295BE49187E71416ED29@mail2.fidelitynational.com> Message-ID: <200810201545.45654.assaf.flatto@ssp.uk.com> Not nessaceily . If you have that website in your network , you can just define the check_http check to that host. also you can add in one of the parameters the specific URL you wish to query . -u, --url=PATH URL to GET or POST (default: /) Or you can define a check on the nagios server it self to query the web site like this : # 'check_website' command definition define command{ command_name check_website command_line $USER1$/check_http -H www.website.com } If not , then you need to build a new host definition and service check for that host . On Monday 20 October 2008 15:18:53 Josh Wells wrote: > Do I have to define a remote host such as www.website.com in order to > apply the check_http service against that host? -- Assaf Flatto SSP Ops Team Linux System Administrator IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From assaf.flatto at ssp.uk.com Mon Oct 20 15:50:05 2008 From: assaf.flatto at ssp.uk.com (Assaf Flatto) Date: Mon, 20 Oct 2008 14:50:05 +0100 Subject: Monitor 2nd mail server behind natted router In-Reply-To: <4b008f7d0810200642r45198e4cq7837f611827df2f4@mail.gmail.com> References: <4b008f7d0810200421g96d11d6x361940128755b9e3@mail.gmail.com> Message-ID: <200810201450.05919.assaf.flatto@ssp.uk.com> So it is like I thought , you need to define a routing rules on that router to direct the traffic to the device nat'ed behind . On Monday 20 October 2008 14:42:08 Alex Dehaini wrote: > Nagios can only ping the router public interface > > -- Assaf Flatto SSP Ops Team Linux System Administrator IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From josh.wells at lionbank.com Mon Oct 20 18:17:03 2008 From: josh.wells at lionbank.com (Josh Wells) Date: Mon, 20 Oct 2008 12:17:03 -0400 Subject: How do I check if a website is up? In-Reply-To: <200810201602.57895.assaf.flatto@ssp.uk.com> References: <9179DC579128514D8035295BE49187E71416ED2B@mail2.fidelitynational.com> <200810201602.57895.assaf.flatto@ssp.uk.com> Message-ID: <9179DC579128514D8035295BE49187E71416ED33@mail2.fidelitynational.com> Ok I defined the command as you specified in my commands.cfg file. I then added a service definition in my localhost.cfg file using that command. It appears to be working. How do I configure an alert for this type of check? I would like to be notified if the website is not reachable for more than say 5 minutes. Also while this is functional I don't really like that this website check is showing up under my nagios server host. I would prefer that it have its own host definition or at least appear separately from the other hosts. Is it possible to do this using a URL? Thanks for your help. I used the quickstart guide to get my server up and running so still pretty green with nagios but I'm learning. Josh -----Original Message----- From: Assaf Flatto [mailto:assaf.flatto at ssp.uk.com] Sent: Monday, October 20, 2008 11:03 AM To: Nagios User list Subject: Re: [Nagios-users] How do I check if a website is up? No , you don't have to define a host . you define a service check with the fix parameters ( as i gave in the previous mail ) and assign this check to an existing host . that host will execute the check and report the status returned from the command ( personally i'd run it from the nagios server itself) . On Monday 20 October 2008 15:58:25 Josh Wells wrote: > Ok so if the website is external to my network I need to create a host > definition? What would that look like for a URL? I've only made host > definitions for internal hosts using the IP address. Because the website > is a hosted solution I would rather define it by URL than IP address. Is > this possible? > > > > -----Original Message----- > From: Assaf Flatto [mailto:assaf.flatto at ssp.uk.com] > Sent: Monday, October 20, 2008 10:46 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] How do I check if a website is up? > > Not nessaceily . > > If you have that website in your network , you can just define the > check_http check to that host. > also you can add in one of the parameters the specific URL you wish to > query . > > -u, --url=PATH > URL to GET or POST (default: /) > > > Or you can define a check on the nagios server it self to query the web > site like this : > > # 'check_website' command definition > define command{ > command_name check_website > command_line $USER1$/check_http -H www.website.com > } > > > If not , then you need to build a new host definition and service check > for that host . > > On Monday 20 October 2008 15:18:53 Josh Wells wrote: > > Do I have to define a remote host such as www.website.com in order to > > apply the check_http service against that host? -- Assaf Flatto SSP Ops Team Linux System Administrator IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------ - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From paul.weaver at bbc.co.uk Mon Oct 20 18:06:19 2008 From: paul.weaver at bbc.co.uk (Paul Weaver) Date: Mon, 20 Oct 2008 17:06:19 +0100 Subject: How do I check if a website is up? In-Reply-To: <200810201602.57895.assaf.flatto@ssp.uk.com> References: <200810201602.57895.assaf.flatto@ssp.uk.com> Message-ID: However if you use a squid proxy, running the service on the cache would be a better choice. If not, running on your external gateway might be a good idea. After all, if your internet connection goes down, it doesn't mean www.google.com isn't available -- it means you can't see it. -- Paul Weaver Systems Development Engineer News Production Facilities, BBC News Work: 020 822 58109 Room 1244 Television Centre, Wood Lane, London, W12 7RJ > -----Original Message----- > From: Assaf Flatto [mailto:assaf.flatto at ssp.uk.com] > Sent: 20 October 2008 16:03 > To: Nagios User list > Subject: Re: [Nagios-users] How do I check if a website is up? > > > No , you don't have to define a host . > > you define a service check with the fix parameters ( as i > gave in the previous mail ) and assign > this check to an existing host . > > that host will execute the check and report the status > returned from the command ( personally i'd > run it from the nagios server itself) . > > > On Monday 20 October 2008 15:58:25 Josh Wells wrote: > > Ok so if the website is external to my network I need to > create a host > > definition? What would that look like for a URL? I've only > made host > > definitions for internal hosts using the IP address. Because the > > website is a hosted solution I would rather define it by > URL than IP > > address. Is this possible? > > > > > > > > -----Original Message----- > > From: Assaf Flatto [mailto:assaf.flatto at ssp.uk.com] > > Sent: Monday, October 20, 2008 10:46 AM > > To: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] How do I check if a website is up? > > > > Not nessaceily . > > > > If you have that website in your network , you can just define the > > check_http check to that host. also you can add in one of the > > parameters the specific URL you wish to query . > > > > -u, --url=PATH > > URL to GET or POST (default: /) > > > > > > Or you can define a check on the nagios server it self to query the > > web site like this : > > > > # 'check_website' command definition > > define command{ > > command_name check_website > > command_line $USER1$/check_http -H www.website.com > > } > > > > > > If not , then you need to build a new host definition and service > > check for that host . > > > > On Monday 20 October 2008 15:18:53 Josh Wells wrote: > > > Do I have to define a remote host such as www.website.com > in order > > > to apply the check_http service against that host? > > > > -- > > Assaf Flatto > SSP Ops Team > Linux System Administrator > > > > > > IMPORTANT . this email and the information in it may be > confidential, legally privileged and/or protected by law. It > is intended solely for the use of the person to whom it is > addressed. If you are not the intended recipient, please > notify the sender immediately and do not disclose the > contents to any other person, use it for any purpose, or > store or copy the information in any medium. Please also > delete all copies of this email and any attachments from your system. > > We cannot guarantee the security or confidentiality of email > communications. We do not accept any liability for losses or > damages that you may suffer as a result of your receipt of > this email including but not limited to computer service or > system failure, access delays or interruption, data > non-delivery or mis-delivery, computer viruses or other > harmful components. > > Copyright in this email and any attachments belong to Select > Service Partner UK Limited. Should you communicate with > anyone at Select Service Partner UK Limited by email, you > consent to us monitoring and reading any such correspondence. > > Nothing in this email shall be taken or read as suggesting, > proposing or relating to any agreement concerted practice or > other practice that could infringe UK or EC competition legislation. > > Select Service Partner UK Limited is a company registered in > England and Wales (company number 05687183) whose registered > office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY > > > > -------------------------------------------------------------- > ----------- > This SF.Net email is sponsored by the Moblin Your Move > Developer's challenge Build the coolest Linux based > applications with Moblin SDK & win great prizes Grand prize > is a trip for two to an Open Source event anywhere in the > world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From alexdehaini at gmail.com Mon Oct 20 16:33:19 2008 From: alexdehaini at gmail.com (Alex Dehaini) Date: Mon, 20 Oct 2008 14:33:19 +0000 Subject: Monitor 2nd mail server behind natted router In-Reply-To: <200810201528.24892.assaf.flatto@ssp.uk.com> References: <4b008f7d0810200723q38951be2l28604de39b2eed50@mail.gmail.com> <200810201528.24892.assaf.flatto@ssp.uk.com> Message-ID: <4b008f7d0810200733i579dd41di326dc111fd627c89@mail.gmail.com> Okay, thanks On Mon, Oct 20, 2008 at 2:28 PM, Assaf Flatto wrote: > I can not tell you more about routing , since i am not a CISCO expert . > i suggest you ask the people that setup your network for those issue. > > > > > On Monday 20 October 2008 15:23:50 Alex Dehaini wrote: > > Can you route traffic to two local IPs behind the router? > > > > On Mon, Oct 20, 2008 at 1:50 PM, Assaf Flatto >wrote: > > > So it is like I thought , you need to define a routing rules on that > > > router to direct the traffic to > > > the device nat'ed behind . > > > > > > On Monday 20 October 2008 14:42:08 Alex Dehaini wrote: > > > > Nagios can only ping the router public interface > > > > > > -- > > > > > > Assaf Flatto > > > SSP Ops Team > > > Linux System Administrator > > > > > > > > > > > > > > > > > > IMPORTANT . this email and the information in it may be confidential, > > > legally > > > privileged and/or protected by law. It is intended solely for the use > of > > > the > > > person to whom it is addressed. If you are not the intended recipient, > > > please > > > notify the sender immediately and do not disclose the contents to any > > > other person, use it for any purpose, or store or copy the information > in > > > any medium. > > > Please also delete all copies of this email and any attachments from > your > > > system. > > > > > > We cannot guarantee the security or confidentiality of email > > > communications. We > > > do not accept any liability for losses or damages that you may suffer > as > > > a result of your receipt of this email including but not limited to > > > computer service or system failure, access delays or interruption, data > > > non-delivery or > > > mis-delivery, computer viruses or other harmful components. > > > > > > Copyright in this email and any attachments belong to Select Service > > > Partner UK > > > Limited. Should you communicate with anyone at Select Service Partner > UK > > > Limited by > > > email, you consent to us monitoring and reading any such > correspondence. > > > > > > Nothing in this email shall be taken or read as suggesting, proposing > or > > > relating to any agreement concerted practice or other practice that > could > > > infringe UK or EC competition legislation. > > > > > > Select Service Partner UK Limited is a company registered in England > and > > > Wales > > > (company number 05687183) whose registered office is at 1 The Heights, > > > Brooklands, Weybridge. Surrey. KT13 0NY > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > This SF.Net email is sponsored by the Moblin Your Move Developer's > > > challenge > > > Build the coolest Linux based applications with Moblin SDK & win great > > > prizes > > > Grand prize is a trip for two to an Open Source event anywhere in the > > > world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > ::: Please include Nagios version, plugin version (-v) and OS when > > > > > > reporting any issue. > > > > > > ::: Messages without supporting info will risk being sent to /dev/null > > > > -- > > Assaf Flatto > SSP Ops Team > Linux System Administrator > > > > > > IMPORTANT . this email and the information in it may be confidential, > legally > privileged and/or protected by law. It is intended solely for the use of > the > person to whom it is addressed. If you are not the intended recipient, > please > notify the sender immediately and do not disclose the contents to any other > person, use it for any purpose, or store or copy the information in any > medium. > Please also delete all copies of this email and any attachments from your > system. > > We cannot guarantee the security or confidentiality of email > communications. We > do not accept any liability for losses or damages that you may suffer as a > result of your receipt of this email including but not limited to computer > service or system failure, access delays or interruption, data non-delivery > or > mis-delivery, computer viruses or other harmful components. > > Copyright in this email and any attachments belong to Select Service > Partner UK > Limited. Should you communicate with anyone at Select Service Partner UK > Limited by > email, you consent to us monitoring and reading any such correspondence. > > Nothing in this email shall be taken or read as suggesting, proposing or > relating to any agreement concerted practice or other practice that could > infringe UK or EC competition legislation. > > Select Service Partner UK Limited is a company registered in England and > Wales > (company number 05687183) whose registered office is at 1 The Heights, > Brooklands, Weybridge. Surrey. KT13 0NY > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Alex Dehaini Developer Site - www.alexdehaini.com Email - alexdehaini at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From assaf.flatto at ssp.uk.com Mon Oct 20 16:28:24 2008 From: assaf.flatto at ssp.uk.com (Assaf Flatto) Date: Mon, 20 Oct 2008 15:28:24 +0100 Subject: Monitor 2nd mail server behind natted router In-Reply-To: <4b008f7d0810200723q38951be2l28604de39b2eed50@mail.gmail.com> References: <4b008f7d0810200642r45198e4cq7837f611827df2f4@mail.gmail.com> Message-ID: <200810201528.24892.assaf.flatto@ssp.uk.com> I can not tell you more about routing , since i am not a CISCO expert . i suggest you ask the people that setup your network for those issue. On Monday 20 October 2008 15:23:50 Alex Dehaini wrote: > Can you route traffic to two local IPs behind the router? > > On Mon, Oct 20, 2008 at 1:50 PM, Assaf Flatto wrote: > > So it is like I thought , you need to define a routing rules on that > > router to direct the traffic to > > the device nat'ed behind . > > > > On Monday 20 October 2008 14:42:08 Alex Dehaini wrote: > > > Nagios can only ping the router public interface > > > > -- > > > > Assaf Flatto > > SSP Ops Team > > Linux System Administrator > > > > > > > > > > > > IMPORTANT . this email and the information in it may be confidential, > > legally > > privileged and/or protected by law. It is intended solely for the use of > > the > > person to whom it is addressed. If you are not the intended recipient, > > please > > notify the sender immediately and do not disclose the contents to any > > other person, use it for any purpose, or store or copy the information in > > any medium. > > Please also delete all copies of this email and any attachments from your > > system. > > > > We cannot guarantee the security or confidentiality of email > > communications. We > > do not accept any liability for losses or damages that you may suffer as > > a result of your receipt of this email including but not limited to > > computer service or system failure, access delays or interruption, data > > non-delivery or > > mis-delivery, computer viruses or other harmful components. > > > > Copyright in this email and any attachments belong to Select Service > > Partner UK > > Limited. Should you communicate with anyone at Select Service Partner UK > > Limited by > > email, you consent to us monitoring and reading any such correspondence. > > > > Nothing in this email shall be taken or read as suggesting, proposing or > > relating to any agreement concerted practice or other practice that could > > infringe UK or EC competition legislation. > > > > Select Service Partner UK Limited is a company registered in England and > > Wales > > (company number 05687183) whose registered office is at 1 The Heights, > > Brooklands, Weybridge. Surrey. KT13 0NY > > > > > > > > ------------------------------------------------------------------------- > > This SF.Net email is sponsored by the Moblin Your Move Developer's > > challenge > > Build the coolest Linux based applications with Moblin SDK & win great > > prizes > > Grand prize is a trip for two to an Open Source event anywhere in the > > world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > ::: Please include Nagios version, plugin version (-v) and OS when > > > > reporting any issue. > > > > ::: Messages without supporting info will risk being sent to /dev/null -- Assaf Flatto SSP Ops Team Linux System Administrator IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From josh.wells at lionbank.com Mon Oct 20 16:18:53 2008 From: josh.wells at lionbank.com (Josh Wells) Date: Mon, 20 Oct 2008 10:18:53 -0400 Subject: How do I check if a website is up? Message-ID: <9179DC579128514D8035295BE49187E71416ED29@mail2.fidelitynational.com> Do I have to define a remote host such as www.website.com in order to apply the check_http service against that host? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From assaf.flatto at ssp.uk.com Mon Oct 20 18:22:59 2008 From: assaf.flatto at ssp.uk.com (Assaf Flatto) Date: Mon, 20 Oct 2008 17:22:59 +0100 Subject: How do I check if a website is up? In-Reply-To: <9179DC579128514D8035295BE49187E71416ED33@mail2.fidelitynational.com> References: <9179DC579128514D8035295BE49187E71416ED2B@mail2.fidelitynational.com> Message-ID: <200810201722.59985.assaf.flatto@ssp.uk.com> Josh All those questions you asked here , are explained in detail in the documantation . http://www.nagios.org/docs/ I sugest you read that , and if you have any questions , we'll be happy to help. On Monday 20 October 2008 17:17:03 Josh Wells wrote: > Ok I defined the command as you specified in my commands.cfg file. I > then added a service definition in my localhost.cfg file using that > command. It appears to be working. How do I configure an alert for this > type of check? I would like to be notified if the website is not > reachable for more than say 5 minutes. Also while this is functional I > don't really like that this website check is showing up under my nagios > server host. I would prefer that it have its own host definition or at > least appear separately from the other hosts. Is it possible to do this > using a URL? > > Thanks for your help. I used the quickstart guide to get my server up > and running so still pretty green with nagios but I'm learning. > > Josh > > > -----Original Message----- > From: Assaf Flatto [mailto:assaf.flatto at ssp.uk.com] > Sent: Monday, October 20, 2008 11:03 AM > To: Nagios User list > Subject: Re: [Nagios-users] How do I check if a website is up? > > No , you don't have to define a host . > > you define a service check with the fix parameters ( as i gave in the > previous mail ) and assign this check to an existing host . > > that host will execute the check and report the status returned from the > command ( personally i'd run it from the nagios server itself) . > > On Monday 20 October 2008 15:58:25 Josh Wells wrote: > > Ok so if the website is external to my network I need to create a host > > definition? What would that look like for a URL? I've only made host > > definitions for internal hosts using the IP address. Because the > > website > > > is a hosted solution I would rather define it by URL than IP address. > > Is > > > this possible? > > > > > > > > -----Original Message----- > > From: Assaf Flatto [mailto:assaf.flatto at ssp.uk.com] > > Sent: Monday, October 20, 2008 10:46 AM > > To: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] How do I check if a website is up? > > > > Not nessaceily . > > > > If you have that website in your network , you can just define the > > check_http check to that host. > > also you can add in one of the parameters the specific URL you wish to > > query . > > > > -u, --url=PATH > > URL to GET or POST (default: /) > > > > > > Or you can define a check on the nagios server it self to query the > > web > > > site like this : > > > > # 'check_website' command definition > > define command{ > > command_name check_website > > command_line $USER1$/check_http -H www.website.com > > } > > > > > > If not , then you need to build a new host definition and service > > check > > > for that host . > > > > On Monday 20 October 2008 15:18:53 Josh Wells wrote: > > > Do I have to define a remote host such as www.website.com in order > > to > > > > apply the check_http service against that host? -- Assaf Flatto SSP Ops Team Linux System Administrator IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bohara at gmail.com Mon Oct 20 18:33:48 2008 From: bohara at gmail.com (Ben O'Hara) Date: Mon, 20 Oct 2008 18:33:48 +0200 Subject: How do I check if a website is up? In-Reply-To: <9179DC579128514D8035295BE49187E71416ED33@mail2.fidelitynational.com> References: <9179DC579128514D8035295BE49187E71416ED2B@mail2.fidelitynational.com> <200810201602.57895.assaf.flatto@ssp.uk.com> <9179DC579128514D8035295BE49187E71416ED33@mail2.fidelitynational.com> Message-ID: <2b36e660810200933v3e97c7b8xb734f549ad12469b@mail.gmail.com> What i have done in the past is, a) create a host for www.example.com b) ceate a host group - "External" c) stick www.example.com in Eternal group ) add service check to host Yu can then add numberous external checks into the group or check other services on the host. Seemed to make sense that way for me back then Ben On Mon, Oct 20, 2008 at 6:17 PM, Josh Wells wrote: > > Ok I defined the command as you specified in my commands.cfg file. I > then added a service definition in my localhost.cfg file using that > command. It appears to be working. How do I configure an alert for this > type of check? I would like to be notified if the website is not > reachable for more than say 5 minutes. Also while this is functional I > don't really like that this website check is showing up under my nagios > server host. I would prefer that it have its own host definition or at > least appear separately from the other hosts. Is it possible to do this > using a URL? > > Thanks for your help. I used the quickstart guide to get my server up > and running so still pretty green with nagios but I'm learning. > > Josh > > > -----Original Message----- > From: Assaf Flatto [mailto:assaf.flatto at ssp.uk.com] > Sent: Monday, October 20, 2008 11:03 AM > To: Nagios User list > Subject: Re: [Nagios-users] How do I check if a website is up? > > No , you don't have to define a host . > > you define a service check with the fix parameters ( as i gave in the > previous mail ) and assign this check to an existing host . > > that host will execute the check and report the status returned from the > command ( personally i'd run it from the nagios server itself) . > > > On Monday 20 October 2008 15:58:25 Josh Wells wrote: > > Ok so if the website is external to my network I need to create a host > > definition? What would that look like for a URL? I've only made host > > definitions for internal hosts using the IP address. Because the > website > > is a hosted solution I would rather define it by URL than IP address. > Is > > this possible? > > > > > > > > -----Original Message----- > > From: Assaf Flatto [mailto:assaf.flatto at ssp.uk.com] > > Sent: Monday, October 20, 2008 10:46 AM > > To: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] How do I check if a website is up? > > > > Not nessaceily . > > > > If you have that website in your network , you can just define the > > check_http check to that host. > > also you can add in one of the parameters the specific URL you wish to > > query . > > > > -u, --url=PATH > > URL to GET or POST (default: /) > > > > > > Or you can define a check on the nagios server it self to query the > web > > site like this : > > > > # 'check_website' command definition > > define command{ > > command_name check_website > > command_line $USER1$/check_http -H www.website.com > > } > > > > > > If not , then you need to build a new host definition and service > check > > for that host . > > > > On Monday 20 October 2008 15:18:53 Josh Wells wrote: > > > Do I have to define a remote host such as www.website.com in order > to > > > apply the check_http service against that host? > > > > -- > > Assaf Flatto > SSP Ops Team > Linux System Administrator > > > > > > IMPORTANT . this email and the information in it may be confidential, > legally > privileged and/or protected by law. It is intended solely for the use of > the > person to whom it is addressed. If you are not the intended recipient, > please > notify the sender immediately and do not disclose the contents to any > other > person, use it for any purpose, or store or copy the information in any > medium. > Please also delete all copies of this email and any attachments from > your > system. > > We cannot guarantee the security or confidentiality of email > communications. We > do not accept any liability for losses or damages that you may suffer as > a > result of your receipt of this email including but not limited to > computer > service or system failure, access delays or interruption, data > non-delivery or > mis-delivery, computer viruses or other harmful components. > > Copyright in this email and any attachments belong to Select Service > Partner UK > Limited. Should you communicate with anyone at Select Service Partner UK > Limited by > email, you consent to us monitoring and reading any such correspondence. > > Nothing in this email shall be taken or read as suggesting, proposing or > relating to any agreement concerted practice or other practice that > could > infringe UK or EC competition legislation. > > Select Service Partner UK Limited is a company registered in England and > Wales > (company number 05687183) whose registered office is at 1 The Heights, > Brooklands, Weybridge. Surrey. KT13 0NY > > > > ------------------------------------------------------------------------ > - > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Internet Explorer is a program that allows you to access the Internet. And vice versa. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From benamar.mohamed at free.fr Mon Oct 20 19:24:00 2008 From: benamar.mohamed at free.fr (mba) Date: Mon, 20 Oct 2008 19:24:00 +0200 Subject: Nagios 2 In-Reply-To: References: Message-ID: <7080.10568419031$1224538918@news.gmane.org> I have a question about Nagios version 2 that I use to oversee the entire park. I NRPE and orders. on some queries on some LDAP servers AD (Active Directory), nagios sends me: SERVER SERVICE TIME OK%%% SIMPLE WARNING TIME TIME TIME UNKNOWN% CRITICAL TIME INDETERMINATE% DC 1 LDAP query 0.000% (0.000%) 100.000% (100.000%) 0.000% (0.000%) 0.000% (0.000%) 0.000% DC 2 LDAP query 0.000% (0.000%) 0.000% (0.000%) 0.000% (0.000%) 100,000% (100,000%) 0.000% DC 3 LDAP query 0.000% (0.000%) 0.000% (0.000%) 0.000% (0.000%) 100,000% (100,000%) 0.000% ie that the% Time OK is zero, the% critical warning time is 100%, while the opposite view that it should because the authentication works. thank you for your help Best regards En Fran?ais: j'ai une question concernant Nagios version 2 que j'utilise pour superviser l'ensemble du parc informatique. J?utilise NRPE et les commandes. sur quelques requ?tes LDAP concernant quelques serveurs AD (Active directory), nagios m'envoie: SERVEUR SERVICE % TEMPS OK %TEMPS ALERTE SIMPLE % TEMPS INCONNU % TEMPS CRITIQUE % TEMPS INDETERMINE DC 1 Requete LDAP 0.000% (0.000%) 100.000% (100.000%) 0.000% (0.000%) 0.000% (0.000%) 0.000% DC 2 Requete LDAP 0.000% (0.000%) 0.000% (0.000%) 0.000% (0.000%) 100.000% (100.000%) 0.000% DC 3 Requete LDAP 0.000% (0.000%) 0.000% (0.000%) 0.000% (0.000%) 100.000% (100.000%) 0.000% c'est-?-dire que le % Temps OK est ? z?ro, le % temps alerte critique est 100% Alors que c'est le contraire qu'il devrait afficher puisque l'authentification fonctionne. merci de votre aide ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rfhamzin at gmail.com Tue Oct 21 10:21:36 2008 From: rfhamzin at gmail.com (Rustam) Date: Tue, 21 Oct 2008 14:21:36 +0600 Subject: question Message-ID: <1973038166.20081021142136@gmail.com> Hello Nagios-users. Error Nagios web browser Whoops! Error: Could not open CGI config file '/usr/local/nagios/etc/cgi.cfg' for reading! What doing? I cannot work with Nagios. Help me, please. I'm russion users. -- ? ?????????, Rustam mailto:rfhamzin at gmail.com ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From assaf.flatto at ssp.uk.com Tue Oct 21 10:59:35 2008 From: assaf.flatto at ssp.uk.com (Assaf Flatto) Date: Tue, 21 Oct 2008 09:59:35 +0100 Subject: question In-Reply-To: <1973038166.20081021142136@gmail.com> References: <1973038166.20081021142136@gmail.com> Message-ID: <200810210959.35584.assaf.flatto@ssp.uk.com> See that the the web server service (apache) has permissions for the file . some thing similar to this : -rw-rw-r-- 1 nagios nagios 9845 Jul 1 09:39 cgi.cfg On Tuesday 21 October 2008 09:21:36 Rustam wrote: > Hello Nagios-users. > > Error Nagios web browser > > Whoops! > > Error: Could not open CGI config file '/usr/local/nagios/etc/cgi.cfg' for > reading! > > What doing? I cannot work with Nagios. > > Help me, please. > > I'm russion users. -- Assaf Flatto SSP Ops Team Linux System Administrator IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Sotiroff.Kristian at mtvne.com Tue Oct 21 11:43:53 2008 From: Sotiroff.Kristian at mtvne.com (Sotiroff, Kristian) Date: Tue, 21 Oct 2008 10:43:53 +0100 Subject: question In-Reply-To: <200810210959.35584.assaf.flatto@ssp.uk.com> References: <1973038166.20081021142136@gmail.com> <200810210959.35584.assaf.flatto@ssp.uk.com> Message-ID: Another good thing to check is that apache is in the nagios group. Ie (from mine); # cat /etc/group | grep nagios nagios:x:503:apache nagcmd:x:1511:nagios,apache -----Original Message----- From: Assaf Flatto [mailto:assaf.flatto at ssp.uk.com] Sent: 21 October 2008 10:00 To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] question See that the the web server service (apache) has permissions for the file . some thing similar to this : -rw-rw-r-- 1 nagios nagios 9845 Jul 1 09:39 cgi.cfg On Tuesday 21 October 2008 09:21:36 Rustam wrote: > Hello Nagios-users. > > Error Nagios web browser > > Whoops! > > Error: Could not open CGI config file '/usr/local/nagios/etc/cgi.cfg' > for reading! > > What doing? I cannot work with Nagios. > > Help me, please. > > I'm russion users. -- Assaf Flatto SSP Ops Team Linux System Administrator IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------ - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null CONFIDENTIALITY NOTICE This e-mail (and any attached files) is confidential and protected by copyright (and other intellectual property rights). If you are not the intended recipient please e-mail the sender and then delete the email and any attached files immediately. Any further use or dissemination is prohibited. While MTV Networks Europe has taken steps to ensure that this email and any attachments are virus free, it is your responsibility to ensure that this message and any attachments are virus free and do not affect your systems / data. Communicating by email is not 100% secure and carries risks such as delay, data corruption, non-delivery, wrongful interception and unauthorised amendment. If you communicate with us by e-mail, you acknowledge and assume these risks, and you agree to take appropriate measures to minimise these risks when e-mailing us. MTV Networks International, MTV Networks UK & Ireland, Greenhouse, Nickelodeon Viacom Consumer Products, VBSi, Viacom Brand Solutions International and Comedy Central are all trading names of MTV Networks Europe. MTV Networks Europe is a partnership between MTV Networks Europe Inc. and Viacom Networks Europe Inc. Address for service in Great Britain is UK House, 180 Oxford Street, London W1D 1DS, UK. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kaushalshriyan at gmail.com Tue Oct 21 11:56:02 2008 From: kaushalshriyan at gmail.com (Kaushal Shriyan) Date: Tue, 21 Oct 2008 15:26:02 +0530 Subject: check_http Message-ID: <6b16fb4c0810210256h488a55c7l7bff7865bd7e7adb@mail.gmail.com> Hi I have a query regarding check_http for the content in an html page. There are quite a number of string by the name "Connected" in the HTML Page. I have a requirement when there is a single instance of the string "Disconnected" in an Web Page, Nagios should send an Problem Alert for the string "Disconnected" I have this command sudo -u nagios /usr/nagios/libexec/check_http -H 192.168.0.10 -p 8080 -u http://192.168.0.10:8080/SMPPSender/control -s Connected But not sure how to proceed. Any ideas Thanks and Regards Kaushal -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From assaf.flatto at ssp.uk.com Tue Oct 21 12:05:40 2008 From: assaf.flatto at ssp.uk.com (Assaf Flatto) Date: Tue, 21 Oct 2008 11:05:40 +0100 Subject: check_http In-Reply-To: <6b16fb4c0810210256h488a55c7l7bff7865bd7e7adb@mail.gmail.com> References: <6b16fb4c0810210256h488a55c7l7bff7865bd7e7adb@mail.gmail.com> Message-ID: <200810211105.40584.assaf.flatto@ssp.uk.com> Look at the nagate plugin On Tuesday 21 October 2008 10:56:02 Kaushal Shriyan wrote: > Hi > > I have a query regarding check_http for the content in an html page. There > are quite a number of string by the name "Connected" in the HTML Page. > I have a requirement when there is a single instance of the string > "Disconnected" in an Web Page, Nagios should send an Problem Alert for the > string "Disconnected" > > I have this command sudo -u nagios /usr/nagios/libexec/check_http -H > 192.168.0.10 -p 8080 -u http://192.168.0.10:8080/SMPPSender/control -s > Connected > But not sure how to proceed. > > Any ideas > > Thanks and Regards > > Kaushal -- Assaf Flatto SSP Ops Team Linux System Administrator 169 Euston Road, London, NW1 2AE IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 21 12:10:08 2008 From: ae at op5.se (Andreas Ericsson) Date: Tue, 21 Oct 2008 12:10:08 +0200 Subject: [Nagios-users] Nagios client merge NSCA/NRPE In-Reply-To: <02EAC0960BFECB4F9EAEC26B4972EE4471C9DFDE5E@TDCHEXBE01.int.tdch.dk> References: <02EAC0960BFECB4F9EAEC26B4972EE4471C9DFDE5E@TDCHEXBE01.int.tdch.dk> Message-ID: <48FDAA80.2030001@op5.se> Bo Philip Larsen wrote: > I need to find a client to use with nagios, it should be using > passive communication like "nsca", it also should use standard nagios > plugins and be configured with an nrpe.cfg like syntax it would be > nice if each service check could be scheduled individual in the > client configfile without using cron > > The client will be used on various *nix systems > > Does anyone know if that type of client exists or have anyone a clue > or interest in developing this ? > I've been thinking about developing something like that for quite some time now; "NaRC - Nagios Remote Checking system" but haven't quite found the time (or the inclination) to do so. Is there a bounty of some sort? It would help explaining to my girlfriend why I need to spend my evenings hacking ;-) -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ From Sebastian.Ries at dtnet.de Tue Oct 21 12:11:22 2008 From: Sebastian.Ries at dtnet.de (Sebastian Ries) Date: Tue, 21 Oct 2008 12:11:22 +0200 Subject: check_http In-Reply-To: <6b16fb4c0810210256h488a55c7l7bff7865bd7e7adb@mail.gmail.com> References: <6b16fb4c0810210256h488a55c7l7bff7865bd7e7adb@mail.gmail.com> Message-ID: <1224583883.16807.21.camel@bofh.dtnet.de> Hi > I have this command sudo -u nagios /usr/nagios/libexec/check_http -H > 192.168.0.10 -p 8080 -u http://192.168.0.10:8080/SMPPSender/control -s > Connected > But not sure how to proceed. Try To check for "Disconnected" and run the negate script. This will convert the status to OK as long as the string was NOT found. In other words it will give you an OK state as long as check_http gives you CRITICAL for the string "Disconnected". Regards Sebastian Ries -- ------------------------------------------------------------ DT Netsolution GmbH - Talaeckerstr. 30 - D-70437 Stuttgart Tel: +49-711-849910-36 Fax: +49-711-849910-936 WEB: http://www.dtnet.de/ email: Sebastian.Ries at dtnet.de ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From josh.wells at lionbank.com Tue Oct 21 16:55:28 2008 From: josh.wells at lionbank.com (Josh Wells) Date: Tue, 21 Oct 2008 10:55:28 -0400 Subject: How do I check if a website is up? In-Reply-To: <2b36e660810200933v3e97c7b8xb734f549ad12469b@mail.gmail.com> References: <9179DC579128514D8035295BE49187E71416ED2B@mail2.fidelitynational.com><200810201602.57895.assaf.flatto@ssp.uk.com><9179DC579128514D8035295BE49187E71416ED33@mail2.fidelitynational.com> <2b36e660810200933v3e97c7b8xb734f549ad12469b@mail.gmail.com> Message-ID: <9179DC579128514D8035295BE49187E71416ED40@mail2.fidelitynational.com> Is it possible to define a host using URL rather than IP address? ________________________________ From: Ben O'Hara [mailto:bohara at gmail.com] Sent: Monday, October 20, 2008 12:34 PM To: Josh Wells Cc: nagios Subject: Re: [Nagios-users] How do I check if a website is up? What i have done in the past is, a) create a host for www.example.com b) ceate a host group - "External" c) stick www.example.com in Eternal group ) add service check to host Yu can then add numberous external checks into the group or check other services on the host. Seemed to make sense that way for me back then Ben On Mon, Oct 20, 2008 at 6:17 PM, Josh Wells wrote: Ok I defined the command as you specified in my commands.cfg file. I then added a service definition in my localhost.cfg file using that command. It appears to be working. How do I configure an alert for this type of check? I would like to be notified if the website is not reachable for more than say 5 minutes. Also while this is functional I don't really like that this website check is showing up under my nagios server host. I would prefer that it have its own host definition or at least appear separately from the other hosts. Is it possible to do this using a URL? Thanks for your help. I used the quickstart guide to get my server up and running so still pretty green with nagios but I'm learning. Josh -----Original Message----- From: Assaf Flatto [mailto:assaf.flatto at ssp.uk.com] Sent: Monday, October 20, 2008 11:03 AM To: Nagios User list Subject: Re: [Nagios-users] How do I check if a website is up? No , you don't have to define a host . you define a service check with the fix parameters ( as i gave in the previous mail ) and assign this check to an existing host . that host will execute the check and report the status returned from the command ( personally i'd run it from the nagios server itself) . On Monday 20 October 2008 15:58:25 Josh Wells wrote: > Ok so if the website is external to my network I need to create a host > definition? What would that look like for a URL? I've only made host > definitions for internal hosts using the IP address. Because the website > is a hosted solution I would rather define it by URL than IP address. Is > this possible? > > > > -----Original Message----- > From: Assaf Flatto [mailto:assaf.flatto at ssp.uk.com] > Sent: Monday, October 20, 2008 10:46 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] How do I check if a website is up? > > Not nessaceily . > > If you have that website in your network , you can just define the > check_http check to that host. > also you can add in one of the parameters the specific URL you wish to > query . > > -u, --url=PATH > URL to GET or POST (default: /) > > > Or you can define a check on the nagios server it self to query the web > site like this : > > # 'check_website' command definition > define command{ > command_name check_website > command_line $USER1$/check_http -H www.website.com > } > > > If not , then you need to build a new host definition and service check > for that host . > > On Monday 20 October 2008 15:18:53 Josh Wells wrote: > > Do I have to define a remote host such as www.website.com in order to > > apply the check_http service against that host? -- Assaf Flatto SSP Ops Team Linux System Administrator IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------ - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Internet Explorer is a program that allows you to access the Internet. And vice versa. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pietro at bertera.it Tue Oct 21 19:16:07 2008 From: pietro at bertera.it (Pietro Bertera) Date: Tue, 21 Oct 2008 19:16:07 +0200 Subject: How do I check if a website is up? In-Reply-To: <9179DC579128514D8035295BE49187E71416ED29@mail2.fidelitynational.com> References: <9179DC579128514D8035295BE49187E71416ED29@mail2.fidelitynational.com> Message-ID: <1224609367.24081.1.camel@localhost.localdomain> On Mon, 2008-10-20 at 10:18 -0400, Josh Wells wrote: > Do I have to define a remote host such as www.website.com in order to > apply the check_http service against that host? If you want to check the content of a page you can use check_web_form.py http://www.bertera.it/software/check_web_form/check_web_form.py Regards, Pietro ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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-lists at networkmail.eu Tue Oct 21 20:15:43 2008 From: andy-lists at networkmail.eu (Andy Shellam) Date: Tue, 21 Oct 2008 19:15:43 +0100 Subject: How do I check if a website is up? In-Reply-To: <9179DC579128514D8035295BE49187E71416ED40@mail2.fidelitynational.com> References: <9179DC579128514D8035295BE49187E71416ED2B@mail2.fidelitynational.com><200810201602.57895.assaf.flatto@ssp.uk.com><9179DC579128514D8035295BE49187E71416ED33@mail2.fidelitynational.com> <2b36e660810200933v3e97c7b8xb734f549ad12469b@mail.gmail.com> <9179DC579128514D8035295BE49187E71416ED40@mail2.fidelitynational.com> Message-ID: <48FE1C4F.1080004@networkmail.eu> Hi Josh, You can, I believe, define a host using it's DNS name, however I and I'm sure the rest of the community would discourage that for the simple reason that if the DNS doesn't resolve, that host will be deemed down. However to check a website you can still add the host via it's IP address and add a check_http service check to that host, and instruct check_http to check the host header of the website (e.g. www.example.com, using the -H option). Regards, Andy Josh Wells wrote: > Is it possible to define a host using URL rather than IP address? > > > ------------------------------------------------------------------------ > *From:* Ben O'Hara [mailto:bohara at gmail.com] > *Sent:* Monday, October 20, 2008 12:34 PM > *To:* Josh Wells > *Cc:* nagios > *Subject:* Re: [Nagios-users] How do I check if a website is up? > > What i have done in the past is, > > a) create a host for www.example.com > b) ceate a host group - "External" > c) stick www.example.com in Eternal group > ) add service check to host > > Yu can then add numberous external checks into the group or check > other services on the host. > > Seemed to make sense that way for me back then > > Ben > > On Mon, Oct 20, 2008 at 6:17 PM, Josh Wells > wrote: > > > Ok I defined the command as you specified in my commands.cfg file. I > then added a service definition in my localhost.cfg file using that > command. It appears to be working. How do I configure an alert for > this > type of check? I would like to be notified if the website is not > reachable for more than say 5 minutes. Also while this is functional I > don't really like that this website check is showing up under my > nagios > server host. I would prefer that it have its own host definition or at > least appear separately from the other hosts. Is it possible to do > this > using a URL? > > Thanks for your help. I used the quickstart guide to get my server up > and running so still pretty green with nagios but I'm learning. > > Josh > > > -----Original Message----- > From: Assaf Flatto [mailto:assaf.flatto at ssp.uk.com > ] > Sent: Monday, October 20, 2008 11:03 AM > To: Nagios User list > Subject: Re: [Nagios-users] How do I check if a website is up? > > No , you don't have to define a host . > > you define a service check with the fix parameters ( as i gave in the > previous mail ) and assign this check to an existing host . > > that host will execute the check and report the status returned > from the > command ( personally i'd run it from the nagios server itself) . > > > On Monday 20 October 2008 15:58:25 Josh Wells wrote: > > Ok so if the website is external to my network I need to create > a host > > definition? What would that look like for a URL? I've only made host > > definitions for internal hosts using the IP address. Because the > website > > is a hosted solution I would rather define it by URL than IP > address. > Is > > this possible? > > > > > > > > -----Original Message----- > > From: Assaf Flatto [mailto:assaf.flatto at ssp.uk.com > ] > > Sent: Monday, October 20, 2008 10:46 AM > > To: nagios-users at lists.sourceforge.net > > > Subject: Re: [Nagios-users] How do I check if a website is up? > > > > Not nessaceily . > > > > If you have that website in your network , you can just define the > > check_http check to that host. > > also you can add in one of the parameters the specific URL you > wish to > > query . > > > > -u, --url=PATH > > URL to GET or POST (default: /) > > > > > > Or you can define a check on the nagios server it self to query the > web > > site like this : > > > > # 'check_website' command definition > > define command{ > > command_name check_website > > command_line $USER1$/check_http -H www.website.com > > > } > > > > > > If not , then you need to build a new host definition and service > check > > for that host . > > > > On Monday 20 October 2008 15:18:53 Josh Wells wrote: > > > Do I have to define a remote host such as www.website.com > in order > to > > > apply the check_http service against that host? > > > > -- > > Assaf Flatto > SSP Ops Team > Linux System Administrator > > > > > > IMPORTANT . this email and the information in it may be confidential, > legally > privileged and/or protected by law. It is intended solely for the > use of > the > person to whom it is addressed. If you are not the intended recipient, > please > notify the sender immediately and do not disclose the contents to any > other > person, use it for any purpose, or store or copy the information > in any > medium. > Please also delete all copies of this email and any attachments from > your > system. > > We cannot guarantee the security or confidentiality of email > communications. We > do not accept any liability for losses or damages that you may > suffer as > a > result of your receipt of this email including but not limited to > computer > service or system failure, access delays or interruption, data > non-delivery or > mis-delivery, computer viruses or other harmful components. > > Copyright in this email and any attachments belong to Select Service > Partner UK > Limited. Should you communicate with anyone at Select Service > Partner UK > Limited by > email, you consent to us monitoring and reading any such > correspondence. > > Nothing in this email shall be taken or read as suggesting, > proposing or > relating to any agreement concerted practice or other practice that > could > infringe UK or EC competition legislation. > > Select Service Partner UK Limited is a company registered in > England and > Wales > (company number 05687183) whose registered office is at 1 The Heights, > Brooklands, Weybridge. Surrey. KT13 0NY > > > > ------------------------------------------------------------------------ > - > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win > great prizes > Grand prize is a trip for two to an Open Source event anywhere in > the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > > > -- > Internet Explorer is a program that allows you to access the Internet. > And vice versa. > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ian at acces.co.jp Wed Oct 22 02:41:02 2008 From: ian at acces.co.jp (Ian Masters) Date: Wed, 22 Oct 2008 09:41:02 +0900 Subject: Problem using nagios-3.0.3-ja-utf8.patch (solved) In-Reply-To: References: Message-ID: <48FE769E.2000708@acces.co.jp> For the list's information, there is a bug in nagios-3.0.3-ja-utf8.patch, which the developer knows about and will apparently be fixed in the next version. > I recently applied the nagios-3.0.3-ja-utf8.patch to my Nagios > installation so that I can view menu information in Japanese. > > It seems to be fine except for the Servicegroup Overview page which is > not displaying information correctly. All other views seem to be working > fine. > > Is anyone else on the list using this patch and if so, have you > experienced anything similar? ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From greminn at gmail.com Wed Oct 22 03:39:08 2008 From: greminn at gmail.com (Simon) Date: Wed, 22 Oct 2008 14:39:08 +1300 Subject: Halt nagios checks when internet offline Message-ID: <5bdb1aa70810211839i48430ee3gcb2ca63a7dde060f@mail.gmail.com> Hi There, We have a nagios server that is at one branch, this checks multiple servers at our data center. My question is: Is it possible to stop email notifications if the entire network link to the branch is offline for some reason? This will only happen on very rare ocassions, but it does happen (3-4 times a year). Thanks Simon ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From matt.rivet at secure-24.com Wed Oct 22 05:02:27 2008 From: matt.rivet at secure-24.com (Matt Rivet) Date: Tue, 21 Oct 2008 23:02:27 -0400 Subject: Halt nagios checks when internet offline In-Reply-To: <5bdb1aa70810211839i48430ee3gcb2ca63a7dde060f@mail.gmail.com> References: <5bdb1aa70810211839i48430ee3gcb2ca63a7dde060f@mail.gmail.com> Message-ID: <3A08B75200A4DF44B83752A09A93AFFB0131E765@ex1s24dca.S24.local> I if you have a core router or firewall I would set that as parent to the rest of the servers in the data center and create a hostgroup that was child to the core router or firewall. This way you should only get 1 notification for the router or firewall -----Original Message----- From: Simon [mailto:greminn at gmail.com] Sent: Tuesday, October 21, 2008 9:39 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Halt nagios checks when internet offline Hi There, We have a nagios server that is at one branch, this checks multiple servers at our data center. My question is: Is it possible to stop email notifications if the entire network link to the branch is offline for some reason? This will only happen on very rare ocassions, but it does happen (3-4 times a year). Thanks Simon ------------------------------------------------------------------------ - This SF.Net email is sponsored by the Moblin Your Move Developer's cha