From jaimie at onebutterfly.com Thu Nov 1 02:19:39 2007 From: jaimie at onebutterfly.com (Jaimie Livingston) Date: Thu, 1 Nov 2007 02:19:39 +0100 (CET) Subject: statuwrl.cgi not working for IE In-Reply-To: References: Message-ID: <20071101011939.8F460580017@desire.netways.de> Hi Siwei The most likely cause is that the VML extension assignment in Windows. Make sure that the VML file extension is registered to the application that is going to be used to view the VML files. Up until XP, this was done from the Windows Explorer Folder Options > File Types. - Jaimie Livingston (jaimielives) ----------------------- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi1[showUid]=6016 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jaimie at onebutterfly.com Thu Nov 1 02:24:10 2007 From: jaimie at onebutterfly.com (Jaimie Livingston) Date: Thu, 1 Nov 2007 02:24:10 +0100 (CET) Subject: no newlines in notification emails ? In-Reply-To: References: Message-ID: <20071101012410.5A7D1580017@desire.netways.de> I had the same problem when I was testing 3.0b4 on CentOS. I thought it was just me at the time... - Jaimie Livingston (jaimielives) ----------------------- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi1[showUid]=5985 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jaimie at onebutterfly.com Thu Nov 1 02:28:00 2007 From: jaimie at onebutterfly.com (Jaimie Livingston) Date: Thu, 1 Nov 2007 02:28:00 +0100 (CET) Subject: Error: Could not read object configuration data! In-Reply-To: References: Message-ID: <20071101012800.ED477580017@desire.netways.de> Not to be silly, but have to checked your available disk space on the volume that your nagios logs are stored? If you're running low on log space, many odd things can happen. - Jaimie Livingston (jaimielives) ----------------------- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi1[showUid]=5964 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From amontibello at gmail.com Thu Nov 1 03:19:43 2007 From: amontibello at gmail.com (Anthony Montibello) Date: Wed, 31 Oct 2007 22:19:43 -0400 Subject: Nagios monitoring windows machines In-Reply-To: References: Message-ID: Hi Christy Asside from monitoring, A quick review of the Event log sometimes reveals a lot about particular issues, just look for the time of the startup events then manually read through events that occured just prior to that, Also you can always try using NC_NEt, for an easy to use WIndows plugin. it uses the check_nt.c plugin to monitor services and other standard things It also has its own replacement of check_nt called check_nc_net to handle more checks, like WMI queries, Event Log queries, and more. THe install process is a msi installer just double click and start the service, and the configuration files are documented internally. Tony (author of NC_Net) On 10/31/07, Christy New wrote: > > NSC.ini file for monitoring windows machines. > > Should I just remove all the ( ; ) or the (#) too, and can some one break > this part of the process down in laymens terms. If I remove these, am I > suppose to reboot these systems, in order for this to take affect. Also > what exactly will this one INI file do......I just want to be really > careful, because the two window machines I want to set nagios to monitor, > are what we run monitoring utilities on for the network on. We are > experianceing down time of these devices and I want to monitor why they > keep getting shutdown. If I restart these machines, we may loose some > documentation's. Not say we will, but if there are any mistakes, we can > loose vital information. > > Please Advise. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bob.debolt at starblanket.ca Thu Nov 1 03:53:43 2007 From: bob.debolt at starblanket.ca (Bob DeBolt) Date: Wed, 31 Oct 2007 20:53:43 -0600 Subject: Return code of 127 is out of bounds - plugin may be missing Message-ID: <47293FB7.2010808@starblanket.ca> Nagios Server install RPMs CentOS 4.5 nagios-devel-2.9-1.el4.rf nagios-plugins-1.4.9-1.el4.rf nagios-2.9-1.el4.rf nagios-nsca-2.6-1.el4.rf Other Monitored Servers CentOS 5 nagios-nrpe-2.5.2-1.el5.rf nagios-plugins-1.4.9-1.el5.rf nagios-2.9-1.el5.rf nagios-plugins-nrpe-2.5.2-1.el5.rf I have not seen this error occur previously Because this is a new set of servers I reinstalled the entire servers from scratch just to make sure I didn't have something corrupted. The base set of services all run fine from the Nagios server command line as the default user Nagios. They all return correct values. Using TCPDump, no traffic is passed from the Nagios server to any of the monitored units during the normal nagios cycling. Am I missing permissions somewhere?? Pre flight checks are perfect restarted Nagios and NRPE Ideas please? Bob D -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: OpenPGP digital signature URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Nov 1 04:18:48 2007 From: marc at ena.com (Marc Powell) Date: Wed, 31 Oct 2007 22:18:48 -0500 Subject: Return code of 127 is out of bounds - plugin may bemissing In-Reply-To: <47293FB7.2010808@starblanket.ca> References: <47293FB7.2010808@starblanket.ca> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Bob DeBolt > Sent: Wednesday, October 31, 2007 9:54 PM > To: nagios-users > Subject: [Nagios-users] Return code of 127 is out of bounds - plugin may > bemissing > Ideas please? FAQ: http://www.nagios.org/faqs/viewfaq.php?faq_id=17&expand=false&showdesc=f alse The plugins referenced in your command{} definitions do not exist in the location you've specified. If you're using a macro such as $USER1$ in place of the path, make sure it's properly defined in resource.cfg and that file in included as resource file in nagios.cfg. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bespalov at sovintel.ru Thu Nov 1 08:20:31 2007 From: bespalov at sovintel.ru (Alexander Bespalov) Date: Thu, 1 Nov 2007 10:20:31 +0300 Subject: Nagios Huge Installation (15000 hosts) - Problem In-Reply-To: <20071031153615.3B1E3580017@desire.netways.de> References: <20071031153615.3B1E3580017@desire.netways.de> Message-ID: <02dd01c81c57$afaf68a0$651e6a0a@sovintel.net> Hi, We are trying to use Nagios to monitor (just ping) very large network (15000 hosts). We have 20 Nagios processes which perform active checks (average 650 hosts per process with 15 minutes check interval) and 1 Nagios process which accepts passive checks (all the processes currently running on a single server HP DL580, 4 dual core CPU, 8GB RAM). All the processes configured with use_large_installation_tweaks option. All the processes have 3.0b5 version. There are no problems with active processes, all the checks are in time. But the central process have the problems: 1. External command bufer constantly grows up (current limit is 131072). 2. There are a lot of files in checkresults directory (every file probably have larger size then previous). 3. Host status updates are out of time. I think the the main problem is in the check_result_reaper_frequency=10 and max_check_result_reaper_time=60 parameters in the central process. Could you please recommend me proper values for this parameters? Thank you! -- Alexander Bespalov Golden Telecom, Moscow, Russia ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From radhiilu at yahoo.com Thu Nov 1 10:34:49 2007 From: radhiilu at yahoo.com (Sekhar) Date: Thu, 1 Nov 2007 02:34:49 -0700 (PDT) Subject: Monitoring nslookup and http response Message-ID: <767535.94166.qm@web90513.mail.mud.yahoo.com> Hi Guys, I want to monitor nslookup response and http response for one URL using nagios.How do we do this?.Is there any plugins for this. Thanks for your help Best Regards __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ampranti at gmail.com Thu Nov 1 10:52:51 2007 From: ampranti at gmail.com (Brandino Andreas) Date: Thu, 1 Nov 2007 11:52:51 +0200 Subject: Sms messages Message-ID: <148121386.20071101115251@gmail.com> Hi all I have a debian box with an attached wavecom gsm modem. I am trying to send messages using GSM-SMS-0.162 ( http://search.cpan.org/~johanvdb/GSM-SMS-0.162/ ) The wavecom modem is attached correctly to the pc, and i can connect to it using minicom. Pin code is disabled. >From command line i can send messages sucessfully. However, when messages are sent from nagios , the messages remain in /var/spool/gsmsms directory and are not sent. Also i can try sucessfully to send messages as nagios user from command line. NMS:/var/spool/gsmsms# ll total 12 drwxrwxrwx 2 nagios nagios 4096 2007-11-01 11:35 . drwxr-xr-x 11 root root 4096 2007-11-01 10:41 .. -rw-rw-r-- 1 nagios nagios 206 2007-11-01 11:35 3069xxxxxxxx_668411939097280B166BC960B01B2816D3CD6A3AD90D04 NMS:/var/spool/gsmsms# I have tried to reinstall & reconfigure the perl module with no difference. This happened after i changed the sim to the wavecom modem. Any idea what happens? Thanks in advance <> --- - - - --- <> Brandino Andreas ampranti at gmail.com <> --- - - - --- <> ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gurdeep_chd2000 at yahoo.com Thu Nov 1 11:04:41 2007 From: gurdeep_chd2000 at yahoo.com (gurdeep johal) Date: Thu, 1 Nov 2007 03:04:41 -0700 (PDT) Subject: How to implement Nagios Message-ID: <717312.48888.qm@web53008.mail.re2.yahoo.com> Hi All, I am new to nagios. Installtion of nagios is done and it is working with apache. Can anyboddy help me to configure it. its documentation is too hard. plz explain in easy way Gurdeep Singh __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sander at pictura-dp.nl Thu Nov 1 11:18:13 2007 From: sander at pictura-dp.nl (Sander Klein) Date: Thu, 01 Nov 2007 11:18:13 +0100 Subject: SMS Message-ID: <4729A7E5.9060608@pictura-dp.nl> Hi, I want my nagios setup to send me an sms whenever there's something wrong. Since we also monitor or internet connectivity I can't use an internet sms gateway. What is the recommended hardware to set this up? Regards, Sander Klein Pictura Database Publishing ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ismail at habari.co.tz Thu Nov 1 11:28:13 2007 From: ismail at habari.co.tz (Ismail M. Settenda) Date: Thu, 1 Nov 2007 13:28:13 +0300 Subject: SMS In-Reply-To: <4729A7E5.9060608@pictura-dp.nl> References: <4729A7E5.9060608@pictura-dp.nl> Message-ID: <3c1cf0fd0711010328n45aa71bah52cd6845c2aad877@mail.gmail.com> Connect to a local mobile phone company and use the GSM modem. http://www.nagiosbook.org/html/ch11s04.html. -- Ismail On 11/1/07, Sander Klein wrote: > > Hi, > > I want my nagios setup to send me an sms whenever there's something wrong. > > Since we also monitor or internet connectivity I can't use an internet > sms gateway. What is the recommended hardware to set this up? > > Regards, > > Sander Klein > Pictura Database Publishing > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Thu Nov 1 11:38:22 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Thu, 01 Nov 2007 10:38:22 +0000 Subject: Monitoring nslookup and http response In-Reply-To: <767535.94166.qm@web90513.mail.mud.yahoo.com> References: <767535.94166.qm@web90513.mail.mud.yahoo.com> Message-ID: <4729AC9E.2090603@googlemail.com> Please read the docs and try the basics before posting. In the standard nagios-plugins distribution (which contains many checks that you should look at first) you can use the following 2 plugins: check_dns check_http use the --help switch for both to figure them out. -h Hari Sekhon Sekhar wrote: > Hi Guys, > > I want to monitor nslookup response and http response for one URL > using nagios.How do we do this?.Is there any plugins for this. > > Thanks for your help > > Best Regards > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Thu Nov 1 11:45:24 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Thu, 01 Nov 2007 10:45:24 +0000 Subject: How to implement Nagios In-Reply-To: <717312.48888.qm@web53008.mail.re2.yahoo.com> References: <717312.48888.qm@web53008.mail.re2.yahoo.com> Message-ID: <4729AE44.9030802@googlemail.com> Sorry but this is not valid. You must try first. Reread all of the docs at least twice before posting. You will understand if you read them through a couple of times, it's not that hard. Just add definitions to run checkcommands with the plugins like check_http, check_dns etc etc... You will likely not get any help here until you try for yourself, we're not here to do your job for you, only help when you are stuck on a specific issue. -h Hari Sekhon gurdeep johal wrote: > Hi All, > > I am new to nagios. Installtion of nagios is done and it is working > with apache. > Can anyboddy help me to configure it. its documentation is too hard. > plz explain in easy way > > > Gurdeep Singh > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From radhiilu at yahoo.com Thu Nov 1 13:42:43 2007 From: radhiilu at yahoo.com (Sekhar) Date: Thu, 1 Nov 2007 05:42:43 -0700 (PDT) Subject: Monitoring nslookup and http response In-Reply-To: <4729AC9E.2090603@googlemail.com> References: <4729AC9E.2090603@googlemail.com> Message-ID: <484599.63182.qm@web90513.mail.mud.yahoo.com> thanks for your reply but i want to monito in remote machne using snmp not nrpe Hari Sekhon wrote: Please read the docs and try the basics before posting. In the standard nagios-plugins distribution (which contains many checks that you should look at first) you can use the following 2 plugins: check_dns check_http use the --help switch for both to figure them out. -h Hari Sekhon Sekhar wrote: > Hi Guys, > > I want to monitor nslookup response and http response for one URL > using nagios.How do we do this?.Is there any plugins for this. > > Thanks for your help > > Best Regards > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Nov 1 13:47:38 2007 From: marc at ena.com (Marc Powell) Date: Thu, 1 Nov 2007 07:47:38 -0500 Subject: How to implement Nagios In-Reply-To: <717312.48888.qm@web53008.mail.re2.yahoo.com> References: <717312.48888.qm@web53008.mail.re2.yahoo.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of gurdeep johal > Sent: Thursday, November 01, 2007 5:05 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] How to implement Nagios > > Hi All, > > I am new to nagios. Installtion of nagios is done and it is working with > apache. > Can anyboddy help me to configure it. its documentation is too hard. plz > explain in easy way As has been noted, you _will_ need to familiarize yourself with the documentation. A lot of time was put into it so that you can help yourself and not ask others to do work for you. We will commonly reference the documentation in answer to questions. That being said, Google (why doesn't everyone use this?) links to many nagios tutorials that 'water-down' the documentation -- http://www.google.com/search?hl=en&q=nagios+tutorials&btnG=Search -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Thu Nov 1 13:53:26 2007 From: ae at op5.se (Andreas Ericsson) Date: Thu, 01 Nov 2007 13:53:26 +0100 Subject: Monitoring nslookup and http response In-Reply-To: <484599.63182.qm@web90513.mail.mud.yahoo.com> References: <484599.63182.qm@web90513.mail.mud.yahoo.com> Message-ID: <4729CC46.9020107@op5.se> Sekhar wrote: > thanks for your reply but i want to monito in remote machne using snmp not nrpe > You want to monitor http and response times via snmp? That's just plain weird... On a side-note, please refrain from top-posting. It makes it difficult to follow the discussion. > Hari Sekhon wrote: Please read the docs and try the basics before posting. > > In the standard nagios-plugins distribution (which contains many checks > that you should look at first) you can use the following 2 plugins: > > check_dns > check_http > > use the --help switch for both to figure them out. > > -h > > Hari Sekhon > > > > Sekhar wrote: >> Hi Guys, >> >> I want to monitor nslookup response and http response for one URL >> using nagios.How do we do this?.Is there any plugins for this. >> -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Nov 1 13:55:15 2007 From: marc at ena.com (Marc Powell) Date: Thu, 1 Nov 2007 07:55:15 -0500 Subject: Monitoring nslookup and http response In-Reply-To: <484599.63182.qm@web90513.mail.mud.yahoo.com> References: <484599.63182.qm@web90513.mail.mud.yahoo.com> Message-ID: "I want to learn to drive a truck" "Ok, here are the keys to the truck" "Thanks, but I really want to drive the truck with motorcycle, not a car". > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Sekhar > Sent: Thursday, November 01, 2007 7:43 AM > To: Hari Sekhon > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Monitoring nslookup and http response > > thanks for your reply but i want to monito in remote machne using snmp not > nrpe And the conversation goes something like... "I want to learn to drive a truck" "Ok, here are the keys to the truck." "Thanks, but I really want to drive the truck with a motorcycle, not a car". "what?" -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Thu Nov 1 13:58:00 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Thu, 01 Nov 2007 12:58:00 +0000 Subject: Monitoring nslookup and http response In-Reply-To: <484599.63182.qm@web90513.mail.mud.yahoo.com> References: <484599.63182.qm@web90513.mail.mud.yahoo.com> Message-ID: <4729CD58.7030305@googlemail.com> Sekhar wrote: > thanks for your reply but i want to monito in remote machne using snmp > not nrpe*//* But your original message didn't state that. You asked the wrong question. To use snmp, refer to std snmp documentation on running external commands with oids and then call the oid. It's not as easy as nrpe and nsca which is why I recommend those instead. Do you have a specific reason for not wanting to use nrpe? -h ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From svalding at kent.edu Thu Nov 1 15:17:38 2007 From: svalding at kent.edu (svalding at kent.edu) Date: Thu, 01 Nov 2007 10:17:38 -0400 Subject: My hosts are all down Message-ID: I posted a message to this list about a week ago about hosts just going down. All of them. Services too. Well, I downgraded from 3.0b1 to 2.10 stable to see if going that route would help. I got it all set up again 2 days ago, and it's been going fine until now. Not sure exactly what is going on, but something is definitely wrong here. The daemon is running, and I can actively ping everything from outside of nagios. Nagios user can ping stuff too. Permissions are correct on the folders, I just read that documentation over again to double check. I'm just using the standard check-host-alive command to ping the hosts. Only one has a service defined to it, check disk usage through snmp. Any advice on this would be wonderful. Nagios is a great asset to our company, just a great "pain in the asset" if you will, as of late. Stephen -------------- next part -------------- A non-text attachment was scrubbed... Name: svalding.vcf Type: text/x-vcard Size: 131 bytes Desc: Card for URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Nov 1 15:36:34 2007 From: marc at ena.com (Marc Powell) Date: Thu, 1 Nov 2007 09:36:34 -0500 Subject: My hosts are all down In-Reply-To: References: Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of svalding at kent.edu > Sent: Thursday, November 01, 2007 9:18 AM > To: Nagios List > Subject: [Nagios-users] My hosts are all down > > I posted a message to this list about a week ago about hosts just going > down. All of them. Services too. What exactly is the status information being reported? Please post an example host, service and associated command{} and template definitions for examination. > Well, I downgraded from 3.0b1 to 2.10 stable to see if going that route > I'm just using the standard check-host-alive command to ping the hosts. > Only one has a service defined to it, check disk usage through snmp. With nagios-2.x, every host must have at least one service defined for it or it will never be checked. Define a simple ping service check if that's all you care about. You should not be performing regularly scheduled host checks with nagios-2.x as it wasn't designed for it and performance will be miserable (host checks are sequential and stop all other nagios processing). 2.x is very different than 3.x in this regard. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrickm at garlic.com Thu Nov 1 16:28:02 2007 From: patrickm at garlic.com (Patrick M.) Date: Thu, 01 Nov 2007 08:28:02 -0700 Subject: How to monitor temp on Cisco 7200's? In-Reply-To: <04F3233F47E2714CB7431AE913E57E7702511626@IAD-WPRD-XCHB02.corp.verio.net> References: <4728AB78.80402@garlic.com> <04F3233F47E2714CB7431AE913E57E7702511626@IAD-WPRD-XCHB02.corp.verio.net> Message-ID: <4729F082.7090901@garlic.com> Hi Jonathan, Thanks for the valuable information! Patrick Jonathan Call wrote: > Hello Patrick > > The Cisco 3560 and 3550 are very different from the Cisco 7200. You > cannot get an actual temperature value from them, just a temperature > state. > > You'll need to use this SNMP Table: > ciscoEnvMonTemperatureState .1.3.6.1.4.1.9.9.13.1.3.1.6 > Possible states are: > 1:normal 2:warning 3:critical 4:shutdown 5:notPresent 6:notFunctioning > > The 3560 and 3550 only have one thermal sensor so it's > 1.3.6.1.4.1.9.9.13.1.3.1.6.1 > > >> -----Original Message----- >> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- >> bounces at lists.sourceforge.net] On Behalf Of Patrick M. >> Sent: Wednesday, October 31, 2007 10:21 AM >> To: nagios-users at lists.sourceforge.net >> Subject: [Nagios-users] How to monitor temp on Cisco 7200's? >> >> Hi all, >> >> I was wondering if anyone had any recommendations on what plugins to >> > use > >> to check temperature for a Cisco 7200 router. If possible I'd like to >> monitor temp on our other devices like our 3560 Catalyst switches as >> well as our 3550's. >> >> I tried looking on NagiosExchange but the plugins I found didn't >> > monitor > >> temp for these devices. Has anyone else had any luck? >> >> Thanks in advance. >> >> Patrick >> >> > > > This email message is intended for the use of the person to whom it has been sent, and may contain information that is confidential or legally protected. If you are not the intended recipient or have received this message in error, you are not authorized to copy, distribute, or otherwise use this message or its attachments. Please notify the sender immediately by return e-mail and permanently delete this message and any attachments. Verio, Inc. makes no warranty that this email is error or virus free. Thank you. > > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Christy.New at cancer.org Thu Nov 1 16:44:40 2007 From: Christy.New at cancer.org (Christy.New at cancer.org) Date: Thu, 1 Nov 2007 11:44:40 -0400 Subject: NSC.INI FILE Message-ID: There is an option to Optionally require a password for clients by changing the 'password' option in the [Settings] section Please see below for example of the file: [Settings] ;# OBFUSCATED PASSWORD ; This is the same as the password option but here you can store the password in an obfuscated manner. ; *NOTICE* obfuscation is *NOT* the same as encryption, someone with access to this file can still figure out the ; password. Its just a bit harder to do it at first glance. ;obfuscated_password=Jw0KAUUdXlAAUwASDAAB ; ;# PASSWORD ; This is the password (-s) that is required to access NSClient remotely. If you leave this blank everyone will be able to access the daemon remotly. ;password=secret-password ; ;# ALLOWED HOST ADDRESSES ; This is a comma-delimited list of IP address of hosts that are allowed to talk to the all daemons. ; If leave this blank anyone can access the deamon remotly (NSClient still requires a valid password). ; The syntax is host or ip/mask so 192.168.0.0/24 will allow anyone on that subnet access ;allowed_hosts=127.0.0.1/32 ; ;# USE THIS FILE ; Use the INI file as opposed to the registry if this is 0 and the use_reg in the registry is set to 1 ; the registry will be used instead. use_file=1 Exactly what should I do here? Just change the portion that says (password=WHATEVER I WANT IT TO BE HERE)? Very Respectfully, Christy M. New 1(404)327-6490 American Cancer Society Corporate IT-NHO NOC Network Infrastructure Engineer ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Christy.New at cancer.org Thu Nov 1 17:00:19 2007 From: Christy.New at cancer.org (Christy.New at cancer.org) Date: Thu, 1 Nov 2007 12:00:19 -0400 Subject: NSC.INI file Message-ID: Where is the system tray. Nagios says that if I installed the Widows Agent for Nagios on the windows machine properly that I will:see a new icon appear in the system tray. It will be a yellow circle with a black M inside it. Is the systems tray the box in the bottom right hand of your computer screen? And once I have edited the NSC.INI file should I restart the windows box for it to start monitoring it? Below are the steps I am working on and I will highlight the ones I am confused about: Installing the Windows Agent Before you can begin monitoring private services and attributes of Windows machines, you?ll need to install an agent on those machines. I recommend using the NSClient++ addon, which can be found at http://sourceforge.net/projects/nscplus. These instructions will take you through a basic installation of the NSClient++ addon, as well as the configuration of Nagios for monitoring the Windows machine. 18 1. Download the latest stable version of the NSClient++ addon from http://sourceforge.net/projects/nscplus 2. Unzip the NSClient++ files into a new C:\NSClient++ directory 3. Open a command prompt and change to the C:\NSClient++ directory 4. Register the NSClient++ system service with the following command: nsclient++ /install 5. Install the NSClient++ systray with the following command (?SysTray? is case-sensitive): nsclient++ SysTray 6. Open the services manager and make sure the NSClientpp service is allowed to interact with the desktop (see the ?Log On? tab of the services manager). If it isn?t already allowed to interact with the desktop, check the box to allow it to. 7. Edit the NSC.INI file (located in the C:\NSClient++ directory) and make the following changes: Uncomment all the modules listed in the [modules] section, except for CheckWMI.dll and RemoteConfiguration.dll Optionally require a password for clients by changing the ?password? option in the [Settings] section. Uncomment the ?allowed_hosts? option in the [Settings] section. Add the IP address of the Nagios server to this line, or leave it blank to allow all hosts to connect. Make sure the ?port? option in the [NSClient] section is uncommented and set to ?12489? (the default port). 8. Start the NSClient++ service with the following command: 19 nsclient++ /start 9. If installed properly, a new icon should appear in your system tray. It will be a yellow circle with a black ?M? inside. 10. Success! The Windows server can now be added to the Nagios monitoring configuration... Very Respectfully, Christy M. New 1(404)327-6490 American Cancer Society Corporate IT-NHO NOC Network Infrastructure Engineer ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stephen.wing at steria.co.uk Thu Nov 1 09:34:44 2007 From: stephen.wing at steria.co.uk (stephen wing) Date: Thu, 1 Nov 2007 08:34:44 -0000 Subject: check_cpu and check_mem for unix Message-ID: <005301c81c62$0de17030$9aefd589@uk.sterianet> Hi Can anyone tell me is there a check_cpu and check_mem that will work on unix servers, I need them to work on AIX. I am currently running the nagios 2.9 server on a Linux machine and am monitoring AIX clients. Regards Stephen --------------------------------------- Stephen Wing Steria Limited Senior Technical Consultant Telephone 02890393605 Mobile 07966823605 ***************************************************************** This email originates from Steria Limited, registered office: Three Cherry Trees Lane, Hemel Hempstead, Hertfordshire HP2 7AH; Registered in England and Wales, number 2706218; www.steria.co.uk. This email and any attachments may contain confidential information and may be subject to copyright or other intellectual property rights. It is only for the use of the addressee(s). You are prohibited from copying, forwarding, disclosing, saving or otherwise using it in any way if you are not the addressee(s) or responsible for delivery. If you receive this email by mistake, please advise the sender and cancel it immediately. Steria may monitor the content of emails within its network to ensure compliance with its policies and procedures. Any email is susceptible to alteration and its integrity cannot be assured. Steria shall not be liable if the message is altered, modified, falsified, or edited. ================================================ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Christy.New at cancer.org Thu Nov 1 18:01:08 2007 From: Christy.New at cancer.org (Christy.New at cancer.org) Date: Thu, 1 Nov 2007 13:01:08 -0400 Subject: Can someone tell me what I am doing wrong.... Message-ID: I have something in the INI file incorrect, will you please have a looksee and let me know what is incorrect: [modules] # NSCLIENT++ MODULES # A list with DLLs to load at startup. You will need to enable some of these for NSClient++ to work. ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! * * * N O T I C E ! ! ! - Y O U H A V E T O E D I T T H I S * * * ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! FileLogger.dll CheckSystem.dll CheckDisk.dll NSClientListener.dll NRPEListener.dll SysTray.dll CheckEventLog.dll CheckHelpers.dll ; CheckWMI IS AN EXTREM EARLY IDEA SO DONT USE FOR PRODUCTION ENVIROMNEMTS! ;CheckWMI.dll ; ; RemoteConfiguration IS AN EXTREM EARLY IDEA SO DONT USE FOR PRODUCTION ENVIROMNEMTS! ;RemoteConfiguration.dll [Settings] ;# OBFUSCATED PASSWORD ; This is the same as the password option but here you can store the password in an obfuscated manner. ; *NOTICE* obfuscation is *NOT* the same as encryption, someone with access to this file can still figure out the ; password. Its just a bit harder to do it at first glance. ;obfuscated_password=Jw0KAUUdXlAAUwASDAAB ; ;# PASSWORD ; This is the password (-s) that is required to access NSClient remotely. If you leave this blank everyone will be able to access the daemon remotly. ;password=secret-password ; # ALLOWED HOST ADDRESSES This is a comma-delimited list of IP address of hosts that are allowed to talk to the all daemons. If leave this blank anyone can access the deamon remotly (NSClient still requires a valid password). The syntax is host or ip/mask so 192.168.0.0/24 will allow anyone on that subnet access allowed_hosts=10.0.0.0/8 ;# USE THIS FILE ; Use the INI file as opposed to the registry if this is 0 and the use_reg in the registry is set to 1 ; the registry will be used instead. use_file=1 [log] ;# LOG DEBUG ; Set to 1 if you want debug message printed in the log file (debug messages are always printed to stdout when run with -test) ;debug=1 ; ;# LOG FILE ; The file to print log statements to ;file=NSC.log ; ;# LOG DATE MASK ; The format to for the date/time part of the log entry written to file. ;date_mask=%Y-%m-%d %H:%M:%S [NSClient] ;# ALLOWED HOST ADDRESSES ; This is a comma-delimited list of IP address of hosts that are allowed to talk to NSClient deamon. ; If you leave this blank the global version will be used instead. ;allowed_hosts= ; # NSCLIENT PORT NUMBER This is the port the NSClientListener.dll will listen to. port=12489 ; ;# BIND TO ADDRESS ; Allows you to bind server to a specific local address. This has to be a dotted ip adress ;not a hostname. ; Leaving this blank will bind to all avalible IP adresses. ;bind_to_address= [Check System] ;# CPU BUFFER SIZE ; Can be anything ranging from 1s (for 1 second) to 10w for 10 weeks. Notice that a larger buffer will waste memory ; so don't use a larger buffer then you need (ie. the longest check you do +1). ;CPUBufferSize=1h ; ;# CHECK RESOLUTION ; The resolution to check values (currently only CPU). ; The value is entered in 1/10:th of a second and the default is 10 (which means ones every second) ;CheckResolution=10 [NRPE] ;# NRPE PORT NUMBER ; This is the port the NRPEListener.dll will listen to. ;port=5666 ; ;# COMMAND TIMEOUT ; This specifies the maximum number of seconds that the NRPE daemon will allow plug-ins to finish executing before killing them off. ;command_timeout=60 ; ;# COMMAND ARGUMENT PROCESSING ; This option determines whether or not the NRPE daemon will allow clients to specify arguments to commands that are executed. ;allow_arguments=0 ; ;# COMMAND ALLOW NASTY META CHARS ; This option determines whether or not the NRPE daemon will allow clients to specify nasty (as in |`&><'"\[]{}) characters in arguments. ;allow_nasty_meta_chars=0 ; ;# USE SSL SOCKET ; This option controls if SSL should be used on the socket. ;use_ssl=1 ; ;# BIND TO ADDRESS ; Allows you to bind server to a specific local address. This has to be a dotted ip adress not a hostname. ; Leaving this blank will bind to all avalible IP adresses. ; bind_to_address= ; # ALLOWED HOST ADDRESSES ; This is a comma-delimited list of IP address of hosts that are allowed to talk to NRPE ;deamon. ; If you leave this blank the global version will be used instead. ;allowed_hosts=10.0.0.0 ; ;# SCRIPT DIRECTORY ; All files in this directory will become check commands. ; *WARNING* This is undoubtedly dangerous so use with care! ;script_dir=scripts\ [NRPE Handlers] ;# COMMAND DEFINITIONS ;# Command definitions that this daemon will run. ;# Can be either NRPE syntax: ;command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10 ;# Or simplified syntax: ;test=c:\test.bat foo $ARG1$ bar ;check_disk1=/usr/local/nagios/libexec/check_disk -w 5 -c 10 ;# Or even loopback (inject) syntax (to run internal commands) ;# This is a way to run "NSClient" commands and other internal module commands such as check eventlog etc. ;check_cpu=inject checkCPU warn=80 crit=90 5 10 15 ;check_eventlog=inject CheckEventLog Application warn.require.eventType=error warn.require.eventType=warning critical.require.eventType=error critical.exclude.eventType=info truncate=1024 descriptions ;check_disk_c=inject CheckFileSize ShowAll MaxWarn=1024M MaxCrit=4096M File:WIN=c:\ATI\*.* ;# But be careful: ; dont_check=inject dont_check This will "loop forever" so be careful with the inject command... ;# Check some escapings... ; check_escape=inject CheckFileSize ShowAll MaxWarn=1024M MaxCrit=4096M "File: foo \" WIN=c:\\WINDOWS\\*.*" ;# Some real world samples ;nrpe_cpu=inject checkCPU warn=80 crit=90 5 10 15 ;nrpe_ok=scripts\ok.bat Very Respectfully, Christy M. New 1(404)327-6490 American Cancer Society Corporate IT-NHO NOC Network Infrastructure Engineer ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From phanoko at gmail.com Thu Nov 1 18:17:48 2007 From: phanoko at gmail.com (matt wells) Date: Thu, 1 Nov 2007 10:17:48 -0700 Subject: SMS In-Reply-To: <4729A7E5.9060608@pictura-dp.nl> References: <4729A7E5.9060608@pictura-dp.nl> Message-ID: Here's a list of some email addresses from the carriers. You can just email these and it will sms you. No need for a modem. *Provider* *What's my SMS Email address?* Former AT&T Wireless 10DigitPhoneNumber at mmode.com Example: 9055556543 at mmode.com Cingular 10DigitPhoneNumber at mobile.mycingular.com Metrocall 10DigitPhoneNumber at page.metrocall.com Nextel 10DigitPhoneNumber at messaging.nextel.com Sprint PCS 10DigitPhoneNumber at messaging.sprintpcs.com T-Mobile 10DigitPhoneNumber at tmomail.net Verizon 10DigitPhoneNumber at vtext.com ALLTEL 10DigitPhoneNumber at message.alltel.com On 11/1/07, Ismail M. Settenda wrote: > > Connect to a local mobile phone company and use the GSM modem. > > http://www.nagiosbook.org/html/ch11s04.html. > > -- > Ismail > > On 11/1/07, Sander Klein wrote: > > > > Hi, > > > > I want my nagios setup to send me an sms whenever there's something > > wrong. > > > > Since we also monitor or internet connectivity I can't use an internet > > sms gateway. What is the recommended hardware to set this up? > > > > Regards, > > > > Sander Klein > > Pictura Database Publishing > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? Stop. > > Now Search log events and configuration files using AJAX and a browser. > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bob.debolt at starblanket.ca Thu Nov 1 18:53:26 2007 From: bob.debolt at starblanket.ca (Bob DeBolt) Date: Thu, 01 Nov 2007 11:53:26 -0600 Subject: [SOLVED} Re: Return code of 127 is out of bounds - plugin may be missing In-Reply-To: References: Message-ID: <472A1296.9040803@starblanket.ca> Marc Powell wrote: > The plugins referenced in your command{} definitions do not exist in the > location you've specified. Close enough The command definition for the check_nrpe had $USER$ instead of $USER1$ Grrrrrrrr !!! Time to upgrade my reading glasses. Thanks for your reply Marc -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: OpenPGP digital signature URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Christy.New at cancer.org Thu Nov 1 18:57:45 2007 From: Christy.New at cancer.org (Christy.New at cancer.org) Date: Thu, 1 Nov 2007 13:57:45 -0400 Subject: I am getting this response when I start the nagios on my linux machine... Message-ID: Total Warning: 0 Tatal Errors:0 Things look okay - No serious problems were detected during the pre-flight. So then I type: etc/init.d/nagios start and it says starting nagios: no directory, logging in with home=/done. Does this mean that it is started? Very Respectfully, Christy M. New 1(404)327-6490 American Cancer Society Corporate IT-NHO NOC Network Infrastructure Engineer ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kyle.odonnell at gmail.com Thu Nov 1 19:07:22 2007 From: kyle.odonnell at gmail.com (kyle.odonnell at gmail.com) Date: Thu, 1 Nov 2007 14:07:22 -0400 Subject: I am getting this response when I start the nagios on my linux machine... In-Reply-To: References: Message-ID: <2274b9c30711011107p141b7dddpd2a05d15d931709b@mail.gmail.com> do a ps and check if the nagios daemon is running. it sounds like the nagios user doesn't have a home directory, which shouldn't affect nagios The answers to many of your questions can be found in documentation. --kyle On 11/1/07, Christy.New at cancer.org wrote: > > Total Warning: 0 > Tatal Errors:0 > > Things look okay - No serious problems were detected during the pre-flight. > So then I type: > etc/init.d/nagios start > and it says > starting nagios: no directory, logging in with home=/done. > > Does this mean that it is started? > > > > Very Respectfully, > Christy M. New > 1(404)327-6490 > American Cancer Society > Corporate IT-NHO NOC > Network Infrastructure Engineer > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Christy.New at cancer.org Thu Nov 1 19:09:59 2007 From: Christy.New at cancer.org (Christy.New at cancer.org) Date: Thu, 1 Nov 2007 14:09:59 -0400 Subject: I am getting this response when I start the nagios on my linux machine... In-Reply-To: <2274b9c30711011107p141b7dddpd2a05d15d931709b@mail.gmail.com> References: <2274b9c30711011107p141b7dddpd2a05d15d931709b@mail.gmail.com> Message-ID: when you say ps, just type it in at the command prompt? Very Respectfully, Christy M. New 1(404)327-6490 American Cancer Society Corporate IT-NHO NOC Network Infrastructure Engineer kyle.odonnell at gma il.com Sent by: To nagios-users-boun Christy.New at cancer.org ces at lists.sourcef cc orge.net nagios-users at lists.sourceforge.net Subject Re: [Nagios-users] I am getting 11/01/2007 02:08 this response when I start the PM nagios on my linux machine... do a ps and check if the nagios daemon is running. it sounds like the nagios user doesn't have a home directory, which shouldn't affect nagios The answers to many of your questions can be found in documentation. --kyle On 11/1/07, Christy.New at cancer.org wrote: > > Total Warning: 0 > Tatal Errors:0 > > Things look okay - No serious problems were detected during the pre-flight. > So then I type: > etc/init.d/nagios start > and it says > starting nagios: no directory, logging in with home=/done. > > Does this mean that it is started? > > > > Very Respectfully, > Christy M. New > 1(404)327-6490 > American Cancer Society > Corporate IT-NHO NOC > Network Infrastructure Engineer > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Thu Nov 1 19:10:10 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Thu, 01 Nov 2007 18:10:10 +0000 Subject: check_cpu and check_mem for unix In-Reply-To: <005301c81c62$0de17030$9aefd589@uk.sterianet> References: <005301c81c62$0de17030$9aefd589@uk.sterianet> Message-ID: <472A1682.9020209@googlemail.com> Dunno about check_cpu but you can download my check_ram plugin from Nagios Exchange http://www.nagiosexchange.org/Linux.55.0.html?&tx_netnagext_pi1[p_view]=909. Written in python and will work on any platform with it installed, but targeted mainly at Linux. Not been tested on anything other than Linux though, your mileage may vary. There is one in the standard plugins contrib directory that you can try too. I'd suggest you check Nagios Exchange for the cpu one too... This search turns up a few http://www.nagiosexchange.org/Search_Projects.43.0.html?tx_netnagext_pi1%5Bphrase%5D=cpu&tx_netnagext_pi1%5Bsubmit%5D=search&tx_netnagext_pi1%5Bsearch%5D=1 -h Hari Sekhon stephen wing wrote: > > Hi > > Can anyone tell me is there a check_cpu and check_mem that > will work on unix servers, I need them to work on AIX. I am currently > running the nagios 2.9 server on a Linux machine and am monitoring AIX > clients. > > > > Regards > > Stephen > > > > --------------------------------------- > > Stephen Wing > > Steria Limited > > Senior Technical Consultant > > Telephone 02890393605 > > Mobile 07966823605 > > > > > ***************************************************************** > This email originates from Steria Limited, registered office: Three > Cherry Trees Lane, Hemel Hempstead, Hertfordshire HP2 7AH; Registered > in England and Wales, number 2706218; www.steria.co.uk. > > This email and any attachments may contain confidential information > and may be subject to copyright or other intellectual property rights. > It is only for the use of the addressee(s). You are prohibited from > copying, forwarding, disclosing, saving or otherwise using it in any > way if you are not the addressee(s) or responsible for delivery. > If you receive this email by mistake, please advise the sender and > cancel it immediately. > Steria may monitor the content of emails within its network to ensure > compliance with its policies and procedures. > Any email is susceptible to alteration and its integrity cannot be > assured. Steria shall not be liable if the message is altered, > modified, falsified, or edited. > ================================================ > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From phanoko at gmail.com Thu Nov 1 19:20:35 2007 From: phanoko at gmail.com (matt wells) Date: Thu, 1 Nov 2007 11:20:35 -0700 Subject: SMS In-Reply-To: References: Message-ID: Not if you configure your postfix on the Nagios server to relay direct to the ISP SMTP Server. /etc/postfix/main.cf add relayhost = smtp.exampleisp.com http://www.amailsender.com/support/smtpserver/ has a good list of SMTP servers On 11/1/07, Valdinger, Stephen (DOV, MSX) wrote: > > This is all well and good until it's your email server that is having the > problem?. > > > > *From:* matt wells [mailto:phanoko at gmail.com] > *Sent:* Thursday, November 01, 2007 1:18 PM > *To:* sander at pictura-dp.nl > *Cc:* nagios-users at lists.sourceforge.net > *Subject:* Re: [Nagios-users] SMS > > > > Here's a list of some email addresses from the carriers. You can just > email these and it will sms you. No need for a modem. > > *Provider* > > *What's my SMS Email address?* > > Former AT&T Wireless > > 10DigitPhoneNumber at mmode.com > Example: 9055556543 at mmode.com > > Cingular > > 10DigitPhoneNumber at mobile.mycingular.com > > Metrocall > > 10DigitPhoneNumber at page.metrocall.com > > Nextel > > 10DigitPhoneNumber at messaging.nextel.com > > Sprint PCS > > 10DigitPhoneNumber at messaging.sprintpcs.com > > T-Mobile > > 10DigitPhoneNumber at tmomail.net > > Verizon > > 10DigitPhoneNumber at vtext.com > > ALLTEL > > 10DigitPhoneNumber at message.alltel.com > > > > On 11/1/07, *Ismail M. Settenda* wrote: > > Connect to a local mobile phone company and use the GSM modem. > > http://www.nagiosbook.org/html/ch11s04.html . > > -- > Ismail > > > > On 11/1/07, *Sander Klein* wrote: > > Hi, > > I want my nagios setup to send me an sms whenever there's something wrong. > > Since we also monitor or internet connectivity I can't use an internet > sms gateway. What is the recommended hardware to set this up? > > Regards, > > Sander Klein > Pictura Database Publishing > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From akennedy at cyberlinkint.com Thu Nov 1 19:28:26 2007 From: akennedy at cyberlinkint.com (Adam Kennedy) Date: Thu, 01 Nov 2007 14:28:26 -0400 Subject: SMS In-Reply-To: References: Message-ID: <472A1ACA.1000304@cyberlinkint.com> I just added a line to my AT&T account with unlimited SMS. Then throw a Samba75 USB GSM modem on the machine and load sms-tools. It's been running great for us for about 3 months now. matt wells wrote: > Not if you configure your postfix on the Nagios server to relay direct > to the ISP SMTP Server. > > /etc/postfix/main.cf > add > relayhost = smtp.exampleisp.com > > http://www.amailsender.com/support/smtpserver/ > has a good list of SMTP servers > > On 11/1/07, *Valdinger, Stephen (DOV, MSX)* < svalding at doverchem.com > > wrote: > > This is all well and good until it's your email server that is > having the problem?. > > > > *From:* matt wells [mailto:phanoko at gmail.com > ] > *Sent:* Thursday, November 01, 2007 1:18 PM > *To:* sander at pictura-dp.nl > *Cc:* nagios-users at lists.sourceforge.net > > *Subject:* Re: [Nagios-users] SMS > > > > Here's a list of some email addresses from the carriers. You can > just email these and it will sms you. No need for a modem. > > *Provider* > > > > *What's my SMS Email address?* > > Former AT&T Wireless > > > > 10DigitPhoneNumber at mmode.com > Example: 9055556543 at mmode.com > > Cingular > > > > 10DigitPhoneNumber at mobile.mycingular.com > > > Metrocall > > > > 10DigitPhoneNumber at page.metrocall.com > > > Nextel > > > > 10DigitPhoneNumber at messaging.nextel.com > > > Sprint PCS > > > > 10DigitPhoneNumber at messaging.sprintpcs.com > > > T-Mobile > > > > 10DigitPhoneNumber at tmomail.net > > Verizon > > > > 10DigitPhoneNumber at vtext.com > > ALLTEL > > > > 10DigitPhoneNumber at message.alltel.com > > > > > On 11/1/07, *Ismail M. Settenda* > wrote: > > Connect to a local mobile phone company and use the GSM modem. > > http://www.nagiosbook.org/html/ch11s04.html > . > > -- > Ismail > > > > On 11/1/07, *Sander Klein* > wrote: > > Hi, > > I want my nagios setup to send me an sms whenever there's something > wrong. > > Since we also monitor or internet connectivity I can't use an internet > sms gateway. What is the recommended hardware to set this up? > > Regards, > > Sander Klein > Pictura Database Publishing > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Adam Kennedy Sr. Network Administrator Cyberlink International Phone: 888-293-3693 x4352 Fax: 574-855-5761 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bob.debolt at starblanket.ca Thu Nov 1 19:31:41 2007 From: bob.debolt at starblanket.ca (Bob DeBolt) Date: Thu, 01 Nov 2007 12:31:41 -0600 Subject: I am getting this response when I start the nagios on my linux machine... In-Reply-To: References: Message-ID: <472A1B8D.8010505@starblanket.ca> Christy.New at cancer.org wrote: > when you say ps, just type it in at the command prompt? ps ax | grep nagios will tell you what you need to know Bob -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: OpenPGP digital signature URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Christy.New at cancer.org Thu Nov 1 20:24:30 2007 From: Christy.New at cancer.org (Christy.New at cancer.org) Date: Thu, 1 Nov 2007 15:24:30 -0400 Subject: How do I correct these issues? Message-ID: one of my servers are stating the following as Status Critical and Status Information as Connection refused.: C:\Drive space CPU Load Explorer Memory Usage NSClient++ Version Uptime W3SVC Very Respectfully, Christy M. New 1(404)327-6490 American Cancer Society Corporate IT-NHO NOC Network Infrastructure Engineer ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Nov 1 20:56:33 2007 From: marc at ena.com (Marc Powell) Date: Thu, 1 Nov 2007 14:56:33 -0500 Subject: How do I correct these issues? In-Reply-To: References: Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Christy.New at cancer.org > Sent: Thursday, November 01, 2007 2:25 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] How do I correct these issues? > > > one of my servers are stating the following as Status Critical and Status > Information as Connection refused.: Connection refused means a daemon/service isn't running. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bob.debolt at starblanket.ca Thu Nov 1 21:00:07 2007 From: bob.debolt at starblanket.ca (Bob DeBolt) Date: Thu, 01 Nov 2007 14:00:07 -0600 Subject: I am getting this response when I start the nagios on my linux machine... In-Reply-To: References: Message-ID: <472A3047.9040002@starblanket.ca> Christy.New at cancer.org wrote: > 3706 ? Ssl 0:00 /usr/local/nagios/bin/nagios -d > /usr/local/nagios/etc/nagios.cfg 6664 pts/0 R+ 0:00 grep nagios > What exactly is this telling me? That is telling you that nagios is indeed running > Also when I reboot and nagios tells me this about the system: > (Embedded image moved to file: pic05204.jpg)What do these critical mean and > connection refused. Please include your OS, how you installed nagios, i.e. RPM or source etc. along with versions of nagios and plugins. The more info you provide the quicker you will find a resolution. Bob -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: OpenPGP digital signature URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bob.debolt at starblanket.ca Thu Nov 1 21:03:25 2007 From: bob.debolt at starblanket.ca (Bob DeBolt) Date: Thu, 01 Nov 2007 14:03:25 -0600 Subject: How do I correct these issues? In-Reply-To: References: Message-ID: <472A310D.2000702@starblanket.ca> Christy.New at cancer.org wrote: > one of my servers are stating the following as Status Critical and Status > Information as Connection refused.: Either you have a required service not functioning or a firewall is blocking the attempted connection. Bob -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: OpenPGP digital signature URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Christy.New at cancer.org Thu Nov 1 20:59:06 2007 From: Christy.New at cancer.org (Christy.New at cancer.org) Date: Thu, 1 Nov 2007 15:59:06 -0400 Subject: How do I correct these issues? In-Reply-To: References: Message-ID: How to I start it? Very Respectfully, Christy M. New 1(404)327-6490 American Cancer Society Corporate IT-NHO NOC Network Infrastructure Engineer "Marc Powell" Sent by: To nagios-users-boun orge.net cc Subject 11/01/2007 03:57 Re: [Nagios-users] How do I correct PM these issues? > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Christy.New at cancer.org > Sent: Thursday, November 01, 2007 2:25 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] How do I correct these issues? > > > one of my servers are stating the following as Status Critical and Status > Information as Connection refused.: Connection refused means a daemon/service isn't running. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Christy.New at cancer.org Thu Nov 1 21:09:57 2007 From: Christy.New at cancer.org (Christy.New at cancer.org) Date: Thu, 1 Nov 2007 16:09:57 -0400 Subject: How do I correct these issues? In-Reply-To: <472A310D.2000702@starblanket.ca> References: <472A310D.2000702@starblanket.ca> Message-ID: So what ports would I look for on the firewall, to be blocked? Very Respectfully, Christy M. New 1(404)327-6490 American Cancer Society Corporate IT-NHO NOC Network Infrastructure Engineer Bob DeBolt To Sent by: nagios-users nagios-users-boun orge.net cc Subject 11/01/2007 04:03 Re: [Nagios-users] How do I correct PM these issues? Please respond to bob.debolt at starbl anket.ca Christy.New at cancer.org wrote: > one of my servers are stating the following as Status Critical and Status > Information as Connection refused.: Either you have a required service not functioning or a firewall is blocking the attempted connection. Bob (See attached file: signature.asc) ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/octet-stream Size: 196 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From maxwellb at oclc.org Thu Nov 1 21:20:02 2007 From: maxwellb at oclc.org (Maxwell,Brady) Date: Thu, 1 Nov 2007 16:20:02 -0400 Subject: Monitoring website contect and response times Message-ID: <11DE62FF9C5102478FBCC536AC273518049711E6@OAEXCH5SERVER.oa.oclc.org> Does anyone know of a plug in that will allow me to log onto a web site and perform a search and return a status based on the results? I have googled and experimented with testgen4web and so on and some python converter attached to the zenoss project but am not getting the results I want. :( What I would like to be able to do is use testgen4web (or something simular) to build xmls for each test and then have a check_website that uses that xml file to run a test and return a nagios result and some performance metrics about response and load times. The reason I want to use something automagically like testgen4web is I do not want to manage it I want the devs to be able to recreate their own "test script" as part of the qa process when they make changes to the site. I need to do this for 200+ pages. Anyone know of something already created that does this sort of thing? Thanks Brady ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mboeckman at servicemagic.com Thu Nov 1 21:25:49 2007 From: mboeckman at servicemagic.com (Boeckman, Matthew) Date: Thu, 1 Nov 2007 14:25:49 -0600 Subject: Monitoring website contect and response times Message-ID: <67CC1D2D52F85747ADE6BC83A4A7A76402C22515@Apollo.servicemagic.com> I've used jmeter extensively with nagios for this kind of testing. Create a base test plan, then using a shell script wrapper pass in the arguments to jmeter that are important (url, hostname, etc). Works very nicely. http://jakarta.apache.org/jmeter/ -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Maxwell,Brady Sent: Thursday, November 01, 2007 2:20 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Monitoring website contect and response times Does anyone know of a plug in that will allow me to log onto a web site and perform a search and return a status based on the results? I have googled and experimented with testgen4web and so on and some python converter attached to the zenoss project but am not getting the results I want. :( What I would like to be able to do is use testgen4web (or something simular) to build xmls for each test and then have a check_website that uses that xml file to run a test and return a nagios result and some performance metrics about response and load times. The reason I want to use something automagically like testgen4web is I do not want to manage it I want the devs to be able to recreate their own "test script" as part of the qa process when they make changes to the site. I need to do this for 200+ pages. Anyone know of something already created that does this sort of thing? Thanks Brady ------------------------------------------------------------------------ - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From teng at dataway.com Thu Nov 1 21:37:38 2007 From: teng at dataway.com (Tedman Eng) Date: Thu, 1 Nov 2007 13:37:38 -0700 Subject: Monitoring website contect and response times In-Reply-To: <11DE62FF9C5102478FBCC536AC273518049711E6@OAEXCH5SERVER.oa.oclc.org> References: <11DE62FF9C5102478FBCC536AC273518049711E6@OAEXCH5SERVER.oa.oclc.org> Message-ID: I've had success with Web Inject. There's even a Nagios plugin. http://www.webinject.org/ > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf > Of Maxwell,Brady > Sent: Thursday, November 01, 2007 1:20 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Monitoring website contect and response times > > Does anyone know of a plug in that will allow me to log onto > a web site > and perform a search and return a status based on the results? > > I have googled and experimented with testgen4web and so on and some > python converter attached to the zenoss project but am not getting the > results I want. :( > > What I would like to be able to do is use testgen4web (or something > simular) to build xmls for each test and then have a > check_website that > uses that xml file to run a test and return a nagios result and some > performance metrics about response and load times. > > The reason I want to use something automagically like testgen4web is I > do not want to manage it I want the devs to be able to recreate their > own "test script" as part of the qa process when they make changes to > the site. > > I need to do this for 200+ pages. > > Anyone know of something already created that does this sort of thing? > > Thanks > Brady > > -------------------------------------------------------------- > ----------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and > a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From richardsolid at gmail.com Thu Nov 1 23:39:15 2007 From: richardsolid at gmail.com (Jake Solid) Date: Thu, 1 Nov 2007 18:39:15 -0400 Subject: Libwrap refused connection to nrpe Message-ID: I get the following messages on my nagios client when I run the check_nrpe command from the nagios server. Nagios Client Log Messages: 17:50:45 vhost6 xinetd[16884]: START: nrpe pid=16889 from=128.121.34.19 Nov 1 17:50:45 vhost6 xinetd[16889]: warning: cannot open /etc/hosts.allow: Permission denied Nov 1 21:50:45 vhost6 xinetd[16889]: warning: cannot open /etc/hosts.deny: Permission denied Nov 1 21:50:45 vhost6 xinetd[16889]: libwrap refused connection to nrpe (libwrap=nrpe) from 128.121.34.19 Nov 1 21:50:45 vhost6 xinetd[16889]: FAIL: nrpe libwrap from=128.121.34.19 Nov 1 17:50:45 vhost6 xinetd[16884]: EXIT: nrpe status=0 pid=16889 duration=0(sec) This is the output of my netstat on the same Nagios client: netstat -at | grep nrpe tcp 0 0 *:nrpe *:* LISTEN These are the permission for the hosts files: -rw-r--r-- 1 root root 161 Jan 12 2000 /etc/hosts.allow -rw-r--r-- 1 root root 347 Jan 12 2000 /etc/hosts.deny Any inputs? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From reed at reedmedia.net Fri Nov 2 00:08:02 2007 From: reed at reedmedia.net (Jeremy C. Reed) Date: Thu, 1 Nov 2007 18:08:02 -0500 (CDT) Subject: Libwrap refused connection to nrpe In-Reply-To: References: Message-ID: On Thu, 1 Nov 2007, Jake Solid wrote: > 17:50:45 vhost6 xinetd[16889]: warning: cannot open /etc/hosts.allow: > Permission denied Nov 1 > > 21:50:45 vhost6 xinetd[16889]: warning: cannot open /etc/hosts.deny: > Permission denied Nov 1 > These are the permission for the hosts files: > > -rw-r--r-- 1 root root 161 Jan 12 2000 /etc/hosts.allow > -rw-r--r-- 1 root root 347 Jan 12 2000 /etc/hosts.deny Just a guess ... is this some type of a virtual user that has per vhost hosts.allow and hosts.deny files (running a chrooted xinetd)? Maybe you have another .../etc/hosts.allow to look at? Jeremy C. Reed ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Roger at NagiosWiki.com Fri Nov 2 01:06:07 2007 From: Roger at NagiosWiki.com (Roger) Date: Thu, 1 Nov 2007 17:06:07 -0700 Subject: problems defining contact_groups in "define hostgroup" section Message-ID: <2b7af7c40711011706y38e0edcfib5ff9b1b9f3983c5@mail.gmail.com> On CentOS / Nagios 2x, I'm using nmap + nmap2nagios to autogenerate the cfg files, but am having problems with the contact_groups definition that's defined by default. e.g. define hostgroup { hostgroup_name linux alias Linux Servers #admins groups in localhost.cfg, not admin group #contact_groups admin contact_groups admins members server1.mydomain.com, server2.mydomain.com } The only way that I can seem to get this config file to work is to not define "contact_groups" here, but rather in the section where I define the host. If I don't do that, I get this error: Error: Host 'myserver.mydomain.com' has no default contact group(s) defined! ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From alexus at gmail.com Fri Nov 2 04:04:29 2007 From: alexus at gmail.com (alexus) Date: Thu, 1 Nov 2007 23:04:29 -0400 Subject: nrpe timesout! In-Reply-To: <47270242.5090705@googlemail.com> References: <6ae50c2d0710292006l3fe843f3s3b1551192ea9a8d5@mail.gmail.com> <47270242.5090705@googlemail.com> Message-ID: <6ae50c2d0711012004k332f3c9cta6291af8d5a8283c@mail.gmail.com> i assume instead of check_http -a 10.10.10.34 you mean whatever is in nrpe.cfg for check_http command, so i'm showing you whats in there and i'm trying to execute that command and it works fine, but not through nrpe... # grep check_http ~nagios/etc/nrpe.cfg command[check_http]=/usr/local/nagios/libexec/check_http -I $ARG1$ -e 200 # /usr/local/nagios/libexec/check_http -I 10.10.10.34 -e 200 HTTP OK HTTP/1.1 200 OK - 299 bytes in 0.002 seconds |time=0.002095s;;;0.000000 size=299B;;;0 # On 10/30/07, Hari Sekhon wrote: > alexus wrote: > > does it make sense for anyone? > > > > d# ~nagios/libexec/check_nrpe -H 10.10.10.34 > > NRPE v2.6 > > d# ~nagios/libexec/check_nrpe -H 10.10.10.34 -c check_http -a 10.10.10.34 > > CHECK_NRPE: Socket timeout after 10 seconds. > > d# > > > > > > > This does not make sense to me. Why are you using nrpe against a machine > and then testing the web server on the same local machine? > > If you have a good reason and insist on doing this, then try logging in > the the machine 10.10.10.34 and running the check_http -a 10.10.10.34 > command manually to see if the plugin is returning properly. Nrpe could > timeout waiting for the plugin. Alternatively you can also try to > increase the check_nrpe timeout to 30 secs with -t 30. > > -h > > Hari Sekhon > > > > -- http://alexus.org/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Fri Nov 2 06:19:13 2007 From: marc at ena.com (Marc Powell) Date: Fri, 2 Nov 2007 00:19:13 -0500 Subject: problems defining contact_groups in "definehostgroup" section In-Reply-To: <2b7af7c40711011706y38e0edcfib5ff9b1b9f3983c5@mail.gmail.com> References: <2b7af7c40711011706y38e0edcfib5ff9b1b9f3983c5@mail.gmail.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Roger > Sent: Thursday, November 01, 2007 7:06 PM > To: Nagios Users mailinglist > Subject: [Nagios-users] problems defining contact_groups in > "definehostgroup" section > > On CentOS / Nagios 2x, I'm using nmap + nmap2nagios to autogenerate > the cfg files, but am having problems with the contact_groups > definition that's defined by default. > > The only way that I can seem to get this config file to work is to not > define "contact_groups" here, but rather in the section where I define > the host. If I don't do that, I get this error: It's generating config files that are compatible with 1.x, not 2.x. There were several config changes made between the versions such as this change to where contact_groups are associated to hosts. It seems that nmap2nagios hasn't been updated since April 2003 (at least from the sourceforge page). -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Fri Nov 2 10:31:53 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Fri, 02 Nov 2007 09:31:53 +0000 Subject: nrpe timesout! In-Reply-To: <6ae50c2d0711012004k332f3c9cta6291af8d5a8283c@mail.gmail.com> References: <6ae50c2d0710292006l3fe843f3s3b1551192ea9a8d5@mail.gmail.com> <47270242.5090705@googlemail.com> <6ae50c2d0711012004k332f3c9cta6291af8d5a8283c@mail.gmail.com> Message-ID: <472AEE89.3020203@googlemail.com> alexus wrote: > i assume instead of check_http -a 10.10.10.34 you mean whatever is in > nrpe.cfg for check_http command, so i'm showing you whats in there and > i'm trying to execute that command and it works fine, but not through > nrpe... > > # grep check_http ~nagios/etc/nrpe.cfg > command[check_http]=/usr/local/nagios/libexec/check_http -I $ARG1$ -e 200 > # /usr/local/nagios/libexec/check_http -I 10.10.10.34 -e 200 > HTTP OK HTTP/1.1 200 OK - 299 bytes in 0.002 seconds > |time=0.002095s;;;0.000000 size=299B;;;0 > # 2 things: 1. Are you running this as root? The # at the beginning of the line suggests so. Try running it as the user account that nrpe runs as. 2. You are passing args through nrpe, this is not good practice. It also will not work unless you have dont_blame_nrpe=1 in your nrpe.cfg on the remote host against which you are executing the nrpe call. I would recommend not passing args but instead defining more check_commands with the args already in them, this is more secure as it is more tightly controlled. -h ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jriggin at gmail.com Fri Nov 2 16:37:04 2007 From: jriggin at gmail.com (Jerad Riggin) Date: Fri, 2 Nov 2007 10:37:04 -0500 Subject: Service checks Message-ID: <66955c170711020837w29f1ba7se47e4bd9bb1f993b@mail.gmail.com> I have a functioning nagios setup but I have a quick question. I am going through and adding website string checks so we can keep track of availability on one of our webservers. So in services.cfg I have define service{ name generic-service ; Generic service name active_checks_enabled 1 ; Active service checks are enabled passive_checks_enabled 1 ; Passive service checks are enabled/accepted parallelize_check 1 ; Active service checks should be parallelized (Don't disable) obsess_over_service 1 ; We should obsess over this service (if necessary) check_freshness 0 ; Default is to NOT check service 'freshness' notifications_enabled 1 ; Service notifications are enabled event_handler_enabled 1 ; Service event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts register 0 ; DONT REGISTER THIS DEFINITION - NOT A REAL SERVICE, JUST A TEMPLATE! } define service{ use generic-service name basic-service is_volatile 0 check_period 24x7 max_check_attempts 5 normal_check_interval 3 retry_check_interval 1 notification_interval 15 notification_period 24x7 register 0 } I then have as just one example: define service{ use basic-service name check-site4 notification_options w,u,c,r check_command check_http!site.com!20!"Home" register 0 } My question is, you notice that I have the name as check-site4, and then later on in the services.cfg I call up that checksite-4. Is this the correct way? Do I need to define a service for each host and then later on call it by name to execute the service check? Is this a bad way of going about it? Thanks, Jerad -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Fri Nov 2 16:44:03 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Fri, 02 Nov 2007 15:44:03 +0000 Subject: Service checks In-Reply-To: <66955c170711020837w29f1ba7se47e4bd9bb1f993b@mail.gmail.com> References: <66955c170711020837w29f1ba7se47e4bd9bb1f993b@mail.gmail.com> Message-ID: <472B45C3.7090208@googlemail.com> You need to reread the docs, this is the most basic of questions. http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#service Hint: You are missing a service_description in the last block for one. You should not have name in that last block either, you need host_name. Read docs pls. -h Hari Sekhon Jerad Riggin wrote: > I have a functioning nagios setup but I have a quick question. I am > going through and adding website string checks so we can keep track of > availability on one of our webservers. > > So in services.cfg I have > > define service{ > name generic-service ; Generic > service name > active_checks_enabled 1 ; Active > service checks are enabled > passive_checks_enabled 1 ; Passive > service checks are enabled/accepted > parallelize_check 1 ; Active > service checks should be parallelized (Don't disable) > obsess_over_service 1 ; We should > obsess over this service (if necessary) > check_freshness 0 ; Default is > to NOT check service 'freshness' > notifications_enabled 1 ; Service > notifications are enabled > event_handler_enabled 1 ; Service > event handler is enabled > flap_detection_enabled 1 ; Flap > detection is enabled > process_perf_data 1 ; Process > performance data > retain_status_information 1 ; Retain > status information across program restarts > retain_nonstatus_information 1 ; Retain > non-status information across program restarts > register 0 ; DONT > REGISTER THIS DEFINITION - NOT A REAL SERVICE, JUST A TEMPLATE! > } > > define service{ > use generic-service > name basic-service > is_volatile 0 > check_period 24x7 > max_check_attempts 5 > normal_check_interval 3 > retry_check_interval 1 > notification_interval 15 > notification_period 24x7 > register 0 > } > > I then have as just one example: > > define service{ > use basic-service > name check-site4 > notification_options w,u,c,r > check_command check_http!site.com!20!"Home" > register 0 > } > > > My question is, you notice that I have the name as check-site4, and > then later on in the services.cfg I call up that checksite-4. Is this > the correct way? Do I need to define a service for each host and then > later on call it by name to execute the service check? Is this a bad > way of going about it? > > Thanks, > > Jerad > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jriggin at gmail.com Fri Nov 2 16:47:31 2007 From: jriggin at gmail.com (Jerad Riggin) Date: Fri, 2 Nov 2007 10:47:31 -0500 Subject: Service checks In-Reply-To: <472B45C3.7090208@googlemail.com> References: <66955c170711020837w29f1ba7se47e4bd9bb1f993b@mail.gmail.com> <472B45C3.7090208@googlemail.com> Message-ID: <66955c170711020847r27e10f89jc31b99422658ed6@mail.gmail.com> I've read the help docs, like I said I have a working installation checking about 15 servers. I have a PING service that pings a host group. I can't do that with this because I'm checking a different string on each site, so i'm guessing it has to be separated out. Does this make sense? On 11/2/07, Hari Sekhon wrote: > > You need to reread the docs, this is the most basic of questions. > > http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#service > > Hint: You are missing a service_description in the last block for one. > You should not have name in that last block either, you need host_name. > > Read docs pls. > > -h > > Hari Sekhon > > > > Jerad Riggin wrote: > > I have a functioning nagios setup but I have a quick question. I am > > going through and adding website string checks so we can keep track of > > availability on one of our webservers. > > > > So in services.cfg I have > > > > define service{ > > name generic-service ; Generic > > service name > > active_checks_enabled 1 ; Active > > service checks are enabled > > passive_checks_enabled 1 ; Passive > > service checks are enabled/accepted > > parallelize_check 1 ; Active > > service checks should be parallelized (Don't disable) > > obsess_over_service 1 ; We should > > obsess over this service (if necessary) > > check_freshness 0 ; Default is > > to NOT check service 'freshness' > > notifications_enabled 1 ; Service > > notifications are enabled > > event_handler_enabled 1 ; Service > > event handler is enabled > > flap_detection_enabled 1 ; Flap > > detection is enabled > > process_perf_data 1 ; Process > > performance data > > retain_status_information 1 ; Retain > > status information across program restarts > > retain_nonstatus_information 1 ; Retain > > non-status information across program restarts > > register 0 ; DONT > > REGISTER THIS DEFINITION - NOT A REAL SERVICE, JUST A TEMPLATE! > > } > > > > define service{ > > use generic-service > > name basic-service > > is_volatile 0 > > check_period 24x7 > > max_check_attempts 5 > > normal_check_interval 3 > > retry_check_interval 1 > > notification_interval 15 > > notification_period 24x7 > > register 0 > > } > > > > I then have as just one example: > > > > define service{ > > use basic-service > > name check-site4 > > notification_options w,u,c,r > > check_command check_http!site.com!20!"Home" > > register 0 > > } > > > > > > My question is, you notice that I have the name as check-site4, and > > then later on in the services.cfg I call up that checksite-4. Is this > > the correct way? Do I need to define a service for each host and then > > later on call it by name to execute the service check? Is this a bad > > way of going about it? > > > > Thanks, > > > > Jerad > > ------------------------------------------------------------------------ > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? Stop. > > Now Search log events and configuration files using AJAX and a browser. > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Fri Nov 2 16:52:00 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Fri, 02 Nov 2007 15:52:00 +0000 Subject: Service checks In-Reply-To: <66955c170711020847r27e10f89jc31b99422658ed6@mail.gmail.com> References: <66955c170711020837w29f1ba7se47e4bd9bb1f993b@mail.gmail.com> <472B45C3.7090208@googlemail.com> <66955c170711020847r27e10f89jc31b99422658ed6@mail.gmail.com> Message-ID: <472B47A0.7030203@googlemail.com> yes you have to use a separate one for each site, how else would you be able to use a separate check? Unless you expect the word "Home" on each site and that is your string check. Another option is using Macros but I suspect this may not do what you want... -h Hari Sekhon Jerad Riggin wrote: > I've read the help docs, like I said I have a working installation > checking about 15 servers. I have a PING service that pings a host > group. I can't do that with this because I'm checking a different > string on each site, so i'm guessing it has to be separated out. Does > this make sense? > > On 11/2/07, *Hari Sekhon* > wrote: > > You need to reread the docs, this is the most basic of questions. > > http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#service > > Hint: You are missing a service_description in the last block for one. > You should not have name in that last block either, you need > host_name. > > Read docs pls. > > -h > > Hari Sekhon > > > > Jerad Riggin wrote: > > I have a functioning nagios setup but I have a quick question. I am > > going through and adding website string checks so we can keep > track of > > availability on one of our webservers. > > > > So in services.cfg I have > > > > define service{ > > name generic-service ; Generic > > service name > > active_checks_enabled 1 ; Active > > service checks are enabled > > passive_checks_enabled 1 ; Passive > > service checks are enabled/accepted > > parallelize_check 1 ; Active > > service checks should be parallelized (Don't disable) > > obsess_over_service 1 ; We should > > obsess over this service (if necessary) > > check_freshness 0 ; > Default is > > to NOT check service 'freshness' > > notifications_enabled 1 ; Service > > notifications are enabled > > event_handler_enabled 1 ; Service > > event handler is enabled > > flap_detection_enabled 1 ; Flap > > detection is enabled > > process_perf_data 1 ; Process > > performance data > > retain_status_information 1 ; Retain > > status information across program restarts > > retain_nonstatus_information 1 ; Retain > > non-status information across program restarts > > register 0 ; DONT > > REGISTER THIS DEFINITION - NOT A REAL SERVICE, JUST A TEMPLATE! > > } > > > > define service{ > > use generic-service > > name basic-service > > is_volatile 0 > > check_period 24x7 > > max_check_attempts 5 > > normal_check_interval 3 > > retry_check_interval 1 > > notification_interval 15 > > notification_period 24x7 > > register 0 > > } > > > > I then have as just one example: > > > > define service{ > > use basic-service > > name check-site4 > > notification_options w,u,c,r > > check_command > check_http!site.com!20!"Home" > > register 0 > > } > > > > > > My question is, you notice that I have the name as check-site4, and > > then later on in the services.cfg I call up that > checksite-4. Is this > > the correct way? Do I need to define a service for each host > and then > > later on call it by name to execute the service check? Is this > a bad > > way of going about it? > > > > Thanks, > > > > Jerad > > > ------------------------------------------------------------------------ > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? Stop. > > Now Search log events and configuration files using AJAX and a > browser. > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > > ::: Messages without supporting info will risk being sent to > /dev/null > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jriggin at gmail.com Fri Nov 2 16:53:39 2007 From: jriggin at gmail.com (Jerad Riggin) Date: Fri, 2 Nov 2007 10:53:39 -0500 Subject: Service checks In-Reply-To: <472B47A0.7030203@googlemail.com> References: <66955c170711020837w29f1ba7se47e4bd9bb1f993b@mail.gmail.com> <472B45C3.7090208@googlemail.com> <66955c170711020847r27e10f89jc31b99422658ed6@mail.gmail.com> <472B47A0.7030203@googlemail.com> Message-ID: <66955c170711020853kddca9c3me9c87b6db74652f1@mail.gmail.com> In that case, is there a way to specify more than one possible string, so that for example if it can't find "Home", but it can find "Checkout", it considers the host up? On 11/2/07, Hari Sekhon wrote: > > yes you have to use a separate one for each site, how else would you be > able to use a separate check? Unless you expect the word "Home" on each > site and that is your string check. Another option is using Macros but I > suspect this may not do what you want... > > -h > > Hari Sekhon > > > > Jerad Riggin wrote: > > I've read the help docs, like I said I have a working installation > > checking about 15 servers. I have a PING service that pings a host > > group. I can't do that with this because I'm checking a different > > string on each site, so i'm guessing it has to be separated out. Does > > this make sense? > > > > On 11/2/07, *Hari Sekhon* > > wrote: > > > > You need to reread the docs, this is the most basic of questions. > > > > http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#service > > > > Hint: You are missing a service_description in the last block for > one. > > You should not have name in that last block either, you need > > host_name. > > > > Read docs pls. > > > > -h > > > > Hari Sekhon > > > > > > > > Jerad Riggin wrote: > > > I have a functioning nagios setup but I have a quick question. I > am > > > going through and adding website string checks so we can keep > > track of > > > availability on one of our webservers. > > > > > > So in services.cfg I have > > > > > > define service{ > > > name generic-service ; Generic > > > service name > > > active_checks_enabled 1 ; Active > > > service checks are enabled > > > passive_checks_enabled 1 ; Passive > > > service checks are enabled/accepted > > > parallelize_check 1 ; Active > > > service checks should be parallelized (Don't disable) > > > obsess_over_service 1 ; We > should > > > obsess over this service (if necessary) > > > check_freshness 0 ; > > Default is > > > to NOT check service 'freshness' > > > notifications_enabled 1 ; Service > > > notifications are enabled > > > event_handler_enabled 1 ; Service > > > event handler is enabled > > > flap_detection_enabled 1 ; Flap > > > detection is enabled > > > process_perf_data 1 ; Process > > > performance data > > > retain_status_information 1 ; Retain > > > status information across program restarts > > > retain_nonstatus_information 1 ; Retain > > > non-status information across program restarts > > > register 0 ; DONT > > > REGISTER THIS DEFINITION - NOT A REAL SERVICE, JUST A TEMPLATE! > > > } > > > > > > define service{ > > > use generic-service > > > name basic-service > > > is_volatile 0 > > > check_period 24x7 > > > max_check_attempts 5 > > > normal_check_interval 3 > > > retry_check_interval 1 > > > notification_interval 15 > > > notification_period 24x7 > > > register 0 > > > } > > > > > > I then have as just one example: > > > > > > define service{ > > > use basic-service > > > name check-site4 > > > notification_options w,u,c,r > > > check_command > > check_http!site.com!20!"Home" > > > register 0 > > > } > > > > > > > > > My question is, you notice that I have the name as check-site4, > and > > > then later on in the services.cfg I call up that > > checksite-4. Is this > > > the correct way? Do I need to define a service for each host > > and then > > > later on call it by name to execute the service check? Is this > > a bad > > > way of going about it? > > > > > > Thanks, > > > > > > Jerad > > > > > > ------------------------------------------------------------------------ > > > > > > > > > ------------------------------------------------------------------------- > > > > > This SF.net email is sponsored by: Splunk Inc. > > > Still grepping through log files to find problems? Stop. > > > Now Search log events and configuration files using AJAX and a > > browser. > > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > > > > > ------------------------------------------------------------------------ > > > > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > ::: Please include Nagios version, plugin version (-v) and OS > > when reporting any issue. > > > ::: Messages without supporting info will risk being sent to > > /dev/null > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Fri Nov 2 16:53:47 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Fri, 02 Nov 2007 15:53:47 +0000 Subject: Service checks In-Reply-To: <66955c170711020847r27e10f89jc31b99422658ed6@mail.gmail.com> References: <66955c170711020837w29f1ba7se47e4bd9bb1f993b@mail.gmail.com> <472B45C3.7090208@googlemail.com> <66955c170711020847r27e10f89jc31b99422658ed6@mail.gmail.com> Message-ID: <472B480B.8020108@googlemail.com> also, you are making it more trouble than it needs to be, instead of trying to do register 0 and making the last block a template block, just put the host name in there and the service description as I hinted and that is all you need, you will then have the first 2 blocks plus one for each service on each host with different string checks... -h Hari Sekhon Jerad Riggin wrote: > I've read the help docs, like I said I have a working installation > checking about 15 servers. I have a PING service that pings a host > group. I can't do that with this because I'm checking a different > string on each site, so i'm guessing it has to be separated out. Does > this make sense? > > On 11/2/07, *Hari Sekhon* > wrote: > > You need to reread the docs, this is the most basic of questions. > > http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#service > > Hint: You are missing a service_description in the last block for one. > You should not have name in that last block either, you need > host_name. > > Read docs pls. > > -h > > Hari Sekhon > > > > Jerad Riggin wrote: > > I have a functioning nagios setup but I have a quick question. I am > > going through and adding website string checks so we can keep > track of > > availability on one of our webservers. > > > > So in services.cfg I have > > > > define service{ > > name generic-service ; Generic > > service name > > active_checks_enabled 1 ; Active > > service checks are enabled > > passive_checks_enabled 1 ; Passive > > service checks are enabled/accepted > > parallelize_check 1 ; Active > > service checks should be parallelized (Don't disable) > > obsess_over_service 1 ; We should > > obsess over this service (if necessary) > > check_freshness 0 ; > Default is > > to NOT check service 'freshness' > > notifications_enabled 1 ; Service > > notifications are enabled > > event_handler_enabled 1 ; Service > > event handler is enabled > > flap_detection_enabled 1 ; Flap > > detection is enabled > > process_perf_data 1 ; Process > > performance data > > retain_status_information 1 ; Retain > > status information across program restarts > > retain_nonstatus_information 1 ; Retain > > non-status information across program restarts > > register 0 ; DONT > > REGISTER THIS DEFINITION - NOT A REAL SERVICE, JUST A TEMPLATE! > > } > > > > define service{ > > use generic-service > > name basic-service > > is_volatile 0 > > check_period 24x7 > > max_check_attempts 5 > > normal_check_interval 3 > > retry_check_interval 1 > > notification_interval 15 > > notification_period 24x7 > > register 0 > > } > > > > I then have as just one example: > > > > define service{ > > use basic-service > > name check-site4 > > notification_options w,u,c,r > > check_command > check_http!site.com!20!"Home" > > register 0 > > } > > > > > > My question is, you notice that I have the name as check-site4, and > > then later on in the services.cfg I call up that > checksite-4. Is this > > the correct way? Do I need to define a service for each host > and then > > later on call it by name to execute the service check? Is this > a bad > > way of going about it? > > > > Thanks, > > > > Jerad > > > ------------------------------------------------------------------------ > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? Stop. > > Now Search log events and configuration files using AJAX and a > browser. > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > > ::: Messages without supporting info will risk being sent to > /dev/null > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From luis.cerezo at pgs.com Fri Nov 2 16:59:56 2007 From: luis.cerezo at pgs.com (Luis Cerezo) Date: Fri, 02 Nov 2007 10:59:56 -0500 Subject: nrpe issue with solaris 9? Message-ID: <1194019196.13573.153.camel@changito.houston.pgs.com> Hi folks, I am seeing an odd issue with nrpe check on solaris 9. from the solaris host: (nrpe 2.0) bash-2.05# grep check_fs /etc/nagios/nrpe.cfg command[check_fs]=/usr/lib/nagios/plugins/check_fs_space -w 85% -c 95% bash-2.05# /usr/lib/nagios/plugins/check_fs_space -w 85% -c 95% WARNING: /users is at 85%. bash-2.05# >From the nagios host: [root at linmgr ~]# /usr/lib/nagios/plugins/check_nrpe -H sanman -c check_fs File system utilization is OK Has anyone seen this? -- Luis E. Cerezo PGS Global Shared Services - IT *********** This email and any files contained therein is confidential and may contain privileged information. If you are not the named addressee(s) or you have otherwise received this in error, you should not distribute or copy this e-mail or use any of its content for any purpose. Please notify the sender immediately by e-mail if you have received this e-mail in error and delete it from your system ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Fri Nov 2 17:01:19 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Fri, 02 Nov 2007 16:01:19 +0000 Subject: Service checks In-Reply-To: <66955c170711020853kddca9c3me9c87b6db74652f1@mail.gmail.com> References: <66955c170711020837w29f1ba7se47e4bd9bb1f993b@mail.gmail.com> <472B45C3.7090208@googlemail.com> <66955c170711020847r27e10f89jc31b99422658ed6@mail.gmail.com> <472B47A0.7030203@googlemail.com> <66955c170711020853kddca9c3me9c87b6db74652f1@mail.gmail.com> Message-ID: <472B49CF.2030408@googlemail.com> I've just tried this, using the standard check_http plugin you are using. It appears not. As soon as one string is not found it goes critical. You could always write a custom plugin to test your websites, or much more easily a shell wrapper plugin to call the first, if it fails, call the second, and only if that fails go critical... not perfect though, a better/custom plugin would serve you better. -h Hari Sekhon Jerad Riggin wrote: > In that case, is there a way to specify more than one possible string, > so that for example if it can't find "Home", but it can find > "Checkout", it considers the host up? > > On 11/2/07, *Hari Sekhon* > wrote: > > yes you have to use a separate one for each site, how else would > you be > able to use a separate check? Unless you expect the word "Home" on > each > site and that is your string check. Another option is using Macros > but I > suspect this may not do what you want... > > -h > > Hari Sekhon > > > > Jerad Riggin wrote: > > I've read the help docs, like I said I have a working installation > > checking about 15 servers. I have a PING service that pings a host > > group. I can't do that with this because I'm checking a different > > string on each site, so i'm guessing it has to be separated > out. Does > > this make sense? > > > > On 11/2/07, *Hari Sekhon* < hpsekhon at googlemail.com > > > >> wrote: > > > > You need to reread the docs, this is the most basic of > questions. > > > > http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#service > > > > Hint: You are missing a service_description in the last > block for one. > > You should not have name in that last block either, you need > > host_name. > > > > Read docs pls. > > > > -h > > > > Hari Sekhon > > > > > > > > Jerad Riggin wrote: > > > I have a functioning nagios setup but I have a quick > question. I am > > > going through and adding website string checks so we can keep > > track of > > > availability on one of our webservers. > > > > > > So in services.cfg I have > > > > > > define service{ > > > name generic-service ; > Generic > > > service name > > > active_checks_enabled 1 ; > Active > > > service checks are enabled > > > passive_checks_enabled 1 ; > Passive > > > service checks are enabled/accepted > > > parallelize_check 1 ; > Active > > > service checks should be parallelized (Don't disable) > > > obsess_over_service 1 ; > We should > > > obsess over this service (if necessary) > > > check_freshness 0 ; > > Default is > > > to NOT check service 'freshness' > > > notifications_enabled 1 ; > Service > > > notifications are enabled > > > event_handler_enabled 1 ; > Service > > > event handler is enabled > > > flap_detection_enabled 1 ; > Flap > > > detection is enabled > > > process_perf_data 1 ; > Process > > > performance data > > > retain_status_information 1 ; > Retain > > > status information across program restarts > > > retain_nonstatus_information 1 ; > Retain > > > non-status information across program restarts > > > register 0 ; > DONT > > > REGISTER THIS DEFINITION - NOT A REAL SERVICE, JUST A > TEMPLATE! > > > } > > > > > > define service{ > > > use generic-service > > > name basic-service > > > is_volatile 0 > > > check_period 24x7 > > > max_check_attempts 5 > > > normal_check_interval 3 > > > retry_check_interval 1 > > > notification_interval 15 > > > notification_period 24x7 > > > register 0 > > > } > > > > > > I then have as just one example: > > > > > > define service{ > > > use basic-service > > > name check-site4 > > > notification_options w,u,c,r > > > check_command > > check_http!site.com!20!"Home" > > > register 0 > > > } > > > > > > > > > My question is, you notice that I have the name as > check-site4, and > > > then later on in the services.cfg I call up that > > checksite-4. Is this > > > the correct way? Do I need to define a service for each host > > and then > > > later on call it by name to execute the service check? Is > this > > a bad > > > way of going about it? > > > > > > Thanks, > > > > > > Jerad > > > > > > ------------------------------------------------------------------------ > > > > > > > > > > ------------------------------------------------------------------------- > > > > > This SF.net email is sponsored by: Splunk Inc. > > > Still grepping through log files to find problems? Stop. > > > Now Search log events and configuration files using AJAX and a > > browser. > > > Download your FREE copy of Splunk now >> > http://get.splunk.com/ > > > > > > ------------------------------------------------------------------------ > > > > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > < https://lists.sourceforge.net/lists/listinfo/nagios-users> > > > ::: Please include Nagios version, plugin version (-v) and OS > > when reporting any issue. > > > ::: Messages without supporting info will risk being sent to > > /dev/null > > > > > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Fri Nov 2 17:04:32 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Fri, 02 Nov 2007 16:04:32 +0000 Subject: Service checks In-Reply-To: <66955c170711020858k76c5e6f7odcd074fa2226b56c@mail.gmail.com> References: <66955c170711020837w29f1ba7se47e4bd9bb1f993b@mail.gmail.com> <472B45C3.7090208@googlemail.com> <66955c170711020847r27e10f89jc31b99422658ed6@mail.gmail.com> <472B480B.8020108@googlemail.com> <66955c170711020858k76c5e6f7odcd074fa2226b56c@mail.gmail.com> Message-ID: <472B4A90.3040501@googlemail.com> If you had read the docs like I said, I can't see how you could miss the fact that you have a service definition without a host_name or hostgroup_name! Where is this service check going to run against if you haven't told it which host you want to test? I even gave you the anchored link to the exact place where it shows you the definitions that are needed for that block... -h Hari Sekhon Jerad Riggin wrote: > Ok, so for example > > define service{ > use basic-service > notification_options w,u,c,r > check_command check_http!site.com!20!"Home" > Service description CheckString > } > > Sorry if this seems like a newbie question. I'm just trying to > backtrack and optimize the config before I get too far down the road. > > > On 11/2/07, *Hari Sekhon* > wrote: > > also, you are making it more trouble than it needs to be, instead of > trying to do register 0 and making the last block a template > block, just > put the host name in there and the service description as I hinted and > that is all you need, you will then have the first 2 blocks plus > one for > each service on each host with different string checks... > > -h > > Hari Sekhon > > > > Jerad Riggin wrote: > > I've read the help docs, like I said I have a working installation > > checking about 15 servers. I have a PING service that pings a host > > group. I can't do that with this because I'm checking a different > > string on each site, so i'm guessing it has to be separated > out. Does > > this make sense? > > > > On 11/2/07, *Hari Sekhon* > > >> wrote: > > > > You need to reread the docs, this is the most basic of > questions. > > > > > http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#service > > > > > Hint: You are missing a service_description in the last > block for one. > > You should not have name in that last block either, you need > > host_name. > > > > Read docs pls. > > > > -h > > > > Hari Sekhon > > > > > > > > Jerad Riggin wrote: > > > I have a functioning nagios setup but I have a quick > question. I am > > > going through and adding website string checks so we can keep > > track of > > > availability on one of our webservers. > > > > > > So in services.cfg I have > > > > > > define service{ > > > name generic-service ; > Generic > > > service name > > > active_checks_enabled 1 ; > Active > > > service checks are enabled > > > passive_checks_enabled 1 ; > Passive > > > service checks are enabled/accepted > > > parallelize_check 1 ; > Active > > > service checks should be parallelized (Don't disable) > > > obsess_over_service 1 ; > We should > > > obsess over this service (if necessary) > > > check_freshness 0 ; > > Default is > > > to NOT check service 'freshness' > > > notifications_enabled 1 ; > Service > > > notifications are enabled > > > event_handler_enabled 1 ; > Service > > > event handler is enabled > > > flap_detection_enabled 1 ; > Flap > > > detection is enabled > > > process_perf_data 1 ; > Process > > > performance data > > > retain_status_information 1 ; > Retain > > > status information across program restarts > > > retain_nonstatus_information 1 ; > Retain > > > non-status information across program restarts > > > register 0 ; > DONT > > > REGISTER THIS DEFINITION - NOT A REAL SERVICE, JUST A > TEMPLATE! > > > } > > > > > > define service{ > > > use generic-service > > > name basic-service > > > is_volatile 0 > > > check_period 24x7 > > > max_check_attempts 5 > > > normal_check_interval 3 > > > retry_check_interval 1 > > > notification_interval 15 > > > notification_period 24x7 > > > register 0 > > > } > > > > > > I then have as just one example: > > > > > > define service{ > > > use basic-service > > > name check-site4 > > > notification_options w,u,c,r > > > check_command > > check_http!site.com!20!"Home" > > > register 0 > > > } > > > > > > > > > My question is, you notice that I have the name as > check-site4, and > > > then later on in the services.cfg I call up that > > checksite-4. Is this > > > the correct way? Do I need to define a service for each host > > and then > > > later on call it by name to execute the service check? Is > this > > a bad > > > way of going about it? > > > > > > Thanks, > > > > > > Jerad > > > > > > ------------------------------------------------------------------------ > > > > > > > > > > ------------------------------------------------------------------------- > > > > > This SF.net email is sponsored by: Splunk Inc. > > > Still grepping through log files to find problems? Stop. > > > Now Search log events and configuration files using AJAX and a > > browser. > > > Download your FREE copy of Splunk now >> > http://get.splunk.com/ > > > > > > ------------------------------------------------------------------------ > > > > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > < https://lists.sourceforge.net/lists/listinfo/nagios-users> > > > ::: Please include Nagios version, plugin version (-v) and OS > > when reporting any issue. > > > ::: Messages without supporting info will risk being sent to > > /dev/null > > > > > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jriggin at gmail.com Fri Nov 2 17:12:11 2007 From: jriggin at gmail.com (Jerad Riggin) Date: Fri, 2 Nov 2007 11:12:11 -0500 Subject: Service checks In-Reply-To: <472B4A90.3040501@googlemail.com> References: <66955c170711020837w29f1ba7se47e4bd9bb1f993b@mail.gmail.com> <472B45C3.7090208@googlemail.com> <66955c170711020847r27e10f89jc31b99422658ed6@mail.gmail.com> <472B480B.8020108@googlemail.com> <66955c170711020858k76c5e6f7odcd074fa2226b56c@mail.gmail.com> <472B4A90.3040501@googlemail.com> Message-ID: <66955c170711020912k57eaa22cke57aac0202e07451@mail.gmail.com> I think we're losing something in translation of me trying to tell you what i'm doing. Here is what i've been doing. define service{ use basic-service name check-site4 notification_options w,u,c,r check_command check_http!site.com!20!"Home" register 0 } and then later on in the config file define service{ use check-site4 service_description HTTP contact_groups mis host_name site.com } On 11/2/07, Hari Sekhon wrote: > > If you had read the docs like I said, I can't see how you could miss the > fact that you have a service definition without a host_name or > hostgroup_name! > > Where is this service check going to run against if you haven't told it > which host you want to test? > > I even gave you the anchored link to the exact place where it shows you > the definitions that are needed for that block... > > -h > > Hari Sekhon > > > > Jerad Riggin wrote: > > Ok, so for example > > > > define service{ > > use basic-service > > notification_options w,u,c,r > > check_command check_http!site.com!20!"Home" > > Service description CheckString > > } > > > > Sorry if this seems like a newbie question. I'm just trying to > > backtrack and optimize the config before I get too far down the road. > > > > > > On 11/2/07, *Hari Sekhon* > > wrote: > > > > also, you are making it more trouble than it needs to be, instead of > > trying to do register 0 and making the last block a template > > block, just > > put the host name in there and the service description as I hinted > and > > that is all you need, you will then have the first 2 blocks plus > > one for > > each service on each host with different string checks... > > > > -h > > > > Hari Sekhon > > > > > > > > Jerad Riggin wrote: > > > I've read the help docs, like I said I have a working installation > > > checking about 15 servers. I have a PING service that pings a > host > > > group. I can't do that with this because I'm checking a different > > > string on each site, so i'm guessing it has to be separated > > out. Does > > > this make sense? > > > > > > On 11/2/07, *Hari Sekhon* > > > > > >> wrote: > > > > > > You need to reread the docs, this is the most basic of > > questions. > > > > > > > > http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#service > > > > > > > > Hint: You are missing a service_description in the last > > block for one. > > > You should not have name in that last block either, you need > > > host_name. > > > > > > Read docs pls. > > > > > > -h > > > > > > Hari Sekhon > > > > > > > > > > > > Jerad Riggin wrote: > > > > I have a functioning nagios setup but I have a quick > > question. I am > > > > going through and adding website string checks so we can > keep > > > track of > > > > availability on one of our webservers. > > > > > > > > So in services.cfg I have > > > > > > > > define service{ > > > > name generic-service ; > > Generic > > > > service name > > > > active_checks_enabled 1 ; > > Active > > > > service checks are enabled > > > > passive_checks_enabled 1 ; > > Passive > > > > service checks are enabled/accepted > > > > parallelize_check 1 ; > > Active > > > > service checks should be parallelized (Don't disable) > > > > obsess_over_service 1 ; > > We should > > > > obsess over this service (if necessary) > > > > check_freshness 0 ; > > > Default is > > > > to NOT check service 'freshness' > > > > notifications_enabled 1 ; > > Service > > > > notifications are enabled > > > > event_handler_enabled 1 ; > > Service > > > > event handler is enabled > > > > flap_detection_enabled 1 ; > > Flap > > > > detection is enabled > > > > process_perf_data 1 ; > > Process > > > > performance data > > > > retain_status_information 1 ; > > Retain > > > > status information across program restarts > > > > retain_nonstatus_information 1 ; > > Retain > > > > non-status information across program restarts > > > > register 0 ; > > DONT > > > > REGISTER THIS DEFINITION - NOT A REAL SERVICE, JUST A > > TEMPLATE! > > > > } > > > > > > > > define service{ > > > > use generic-service > > > > name basic-service > > > > is_volatile 0 > > > > check_period 24x7 > > > > max_check_attempts 5 > > > > normal_check_interval 3 > > > > retry_check_interval 1 > > > > notification_interval 15 > > > > notification_period 24x7 > > > > register 0 > > > > } > > > > > > > > I then have as just one example: > > > > > > > > define service{ > > > > use basic-service > > > > name check-site4 > > > > notification_options w,u,c,r > > > > check_command > > > check_http!site.com!20!"Home" > > > > register 0 > > > > } > > > > > > > > > > > > My question is, you notice that I have the name as > > check-site4, and > > > > then later on in the services.cfg I call up that > > > checksite-4. Is this > > > > the correct way? Do I need to define a service for each > host > > > and then > > > > later on call it by name to execute the service check? Is > > this > > > a bad > > > > way of going about it? > > > > > > > > Thanks, > > > > > > > > Jerad > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > > > > This SF.net email is sponsored by: Splunk Inc. > > > > Still grepping through log files to find problems? Stop. > > > > Now Search log events and configuration files using AJAX and > a > > > browser. > > > > Download your FREE copy of Splunk now >> > > http://get.splunk.com/ > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > > > _______________________________________________ > > > > Nagios-users mailing list > > > > Nagios-users at lists.sourceforge.net > > > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > < https://lists.sourceforge.net/lists/listinfo/nagios-users> > > > > ::: Please include Nagios version, plugin version (-v) and > OS > > > when reporting any issue. > > > > ::: Messages without supporting info will risk being sent to > > > /dev/null > > > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Fri Nov 2 17:16:50 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Fri, 02 Nov 2007 16:16:50 +0000 Subject: Service checks In-Reply-To: <66955c170711020912k57eaa22cke57aac0202e07451@mail.gmail.com> References: <66955c170711020837w29f1ba7se47e4bd9bb1f993b@mail.gmail.com> <472B45C3.7090208@googlemail.com> <66955c170711020847r27e10f89jc31b99422658ed6@mail.gmail.com> <472B480B.8020108@googlemail.com> <66955c170711020858k76c5e6f7odcd074fa2226b56c@mail.gmail.com> <472B4A90.3040501@googlemail.com> <66955c170711020912k57eaa22cke57aac0202e07451@mail.gmail.com> Message-ID: <472B4D72.70201@googlemail.com> Yes I know what you've been doing, double or triple templating, and what I am saying is that you do not need to template for every service. Only template the common bits and put the unique bits in the service definition block with the hostname. You will need less blocks and have less redundancy in your configuration. Templates are only supposed to save you typing in the same lines again multiple times, not to become your religion for every check. You are writing more than you need for such basic stuff. -h Hari Sekhon Jerad Riggin wrote: > I think we're losing something in translation of me trying to tell you > what i'm doing. Here is what i've been doing. > > define service{ > use basic-service > name check-site4 > notification_options w,u,c,r > check_command check_http!site.com!20!"Home" > register 0 > } > > and then later on in the config file > > > define service{ > use check-site4 > service_description HTTP > contact_groups mis > host_name site.com > } > > > On 11/2/07, *Hari Sekhon* > wrote: > > If you had read the docs like I said, I can't see how you could > miss the > fact that you have a service definition without a host_name or > hostgroup_name! > > Where is this service check going to run against if you haven't > told it > which host you want to test? > > I even gave you the anchored link to the exact place where it > shows you > the definitions that are needed for that block... > > -h > > Hari Sekhon > > > > Jerad Riggin wrote: > > Ok, so for example > > > > define service{ > > use basic-service > > notification_options w,u,c,r > > check_command check_http!site.com!20!"Home" > > Service description CheckString > > } > > > > Sorry if this seems like a newbie question. I'm just trying to > > backtrack and optimize the config before I get too far down the > road. > > > > > > On 11/2/07, *Hari Sekhon* > > >> wrote: > > > > also, you are making it more trouble than it needs to be, > instead of > > trying to do register 0 and making the last block a template > > block, just > > put the host name in there and the service description as I > hinted and > > that is all you need, you will then have the first 2 blocks plus > > one for > > each service on each host with different string checks... > > > > -h > > > > Hari Sekhon > > > > > > > > Jerad Riggin wrote: > > > I've read the help docs, like I said I have a working > installation > > > checking about 15 servers. I have a PING service that > pings a host > > > group. I can't do that with this because I'm checking a > different > > > string on each site, so i'm guessing it has to be separated > > out. Does > > > this make sense? > > > > > > On 11/2/07, *Hari Sekhon* > > > > > > > > >>> wrote: > > > > > > You need to reread the docs, this is the most basic of > > questions. > > > > > > > > > http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#service > > > > > > > > > > Hint: You are missing a service_description in the last > > block for one. > > > You should not have name in that last block either, > you need > > > host_name. > > > > > > Read docs pls. > > > > > > -h > > > > > > Hari Sekhon > > > > > > > > > > > > Jerad Riggin wrote: > > > > I have a functioning nagios setup but I have a quick > > question. I am > > > > going through and adding website string checks so we > can keep > > > track of > > > > availability on one of our webservers. > > > > > > > > So in services.cfg I have > > > > > > > > define service{ > > > > > name generic-service ; > > Generic > > > > service name > > > > active_checks_enabled > 1 ; > > Active > > > > service checks are enabled > > > > > passive_checks_enabled 1 ; > > Passive > > > > service checks are enabled/accepted > > > > parallelize_check > 1 ; > > Active > > > > service checks should be parallelized (Don't disable) > > > > obsess_over_service > 1 ; > > We should > > > > obsess over this service (if necessary) > > > > check_freshness > 0 ; > > > Default is > > > > to NOT check service 'freshness' > > > > notifications_enabled > 1 ; > > Service > > > > notifications are enabled > > > > event_handler_enabled > 1 ; > > Service > > > > event handler is enabled > > > > > flap_detection_enabled 1 ; > > Flap > > > > detection is enabled > > > > process_perf_data > 1 ; > > Process > > > > performance data > > > > retain_status_information > 1 ; > > Retain > > > > status information across program restarts > > > > > retain_nonstatus_information 1 ; > > Retain > > > > non-status information across program restarts > > > > > register 0 ; > > DONT > > > > REGISTER THIS DEFINITION - NOT A REAL SERVICE, JUST A > > TEMPLATE! > > > > } > > > > > > > > define service{ > > > > use generic-service > > > > name basic-service > > > > is_volatile 0 > > > > check_period 24x7 > > > > max_check_attempts 5 > > > > normal_check_interval 3 > > > > retry_check_interval 1 > > > > notification_interval 15 > > > > notification_period 24x7 > > > > register 0 > > > > } > > > > > > > > I then have as just one example: > > > > > > > > define service{ > > > > use basic-service > > > > name check-site4 > > > > notification_options w,u,c,r > > > > check_command > > > check_http!site.com!20!"Home" > > > > register 0 > > > > } > > > > > > > > > > > > My question is, you notice that I have the name as > > check-site4, and > > > > then later on in the services.cfg I call up that > > > checksite-4. Is this > > > > the correct way? Do I need to define a service for > each host > > > and then > > > > later on call it by name to execute the service > check? Is > > this > > > a bad > > > > way of going about it? > > > > > > > > Thanks, > > > > > > > > Jerad > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > > > > This SF.net email is sponsored by: Splunk Inc. > > > > Still grepping through log files to find > problems? Stop. > > > > Now Search log events and configuration files using > AJAX and a > > > browser. > > > > Download your FREE copy of Splunk now >> > > http://get.splunk.com/ > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > > > > _______________________________________________ > > > > Nagios-users mailing list > > > > Nagios-users at lists.sourceforge.net > > > > > > > > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > < > https://lists.sourceforge.net/lists/listinfo/nagios-users> > > > > ::: Please include Nagios version, plugin version > (-v) and OS > > > when reporting any issue. > > > > ::: Messages without supporting info will risk being > sent to > > > /dev/null > > > > > > > > > > > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jriggin at gmail.com Fri Nov 2 17:39:12 2007 From: jriggin at gmail.com (Jerad Riggin) Date: Fri, 2 Nov 2007 11:39:12 -0500 Subject: Service checks In-Reply-To: <472B49CF.2030408@googlemail.com> References: <66955c170711020837w29f1ba7se47e4bd9bb1f993b@mail.gmail.com> <472B45C3.7090208@googlemail.com> <66955c170711020847r27e10f89jc31b99422658ed6@mail.gmail.com> <472B47A0.7030203@googlemail.com> <66955c170711020853kddca9c3me9c87b6db74652f1@mail.gmail.com> <472B49CF.2030408@googlemail.com> Message-ID: <66955c170711020939i3138cb03g23e6701eb999ac15@mail.gmail.com> I wish I could, but I'm not a programmer and have limited experience with Linux. I usually just manage Windows servers. Thanks for your help though. I condensed the string check into one instead of double/triple templating. Thanks. On 11/2/07, Hari Sekhon wrote: > > I've just tried this, using the standard check_http plugin you are > using. It appears not. > > As soon as one string is not found it goes critical. > > You could always write a custom plugin to test your websites, or much > more easily a shell wrapper plugin to call the first, if it fails, call > the second, and only if that fails go critical... not perfect though, a > better/custom plugin would serve you better. > > -h > > Hari Sekhon > > > > Jerad Riggin wrote: > > In that case, is there a way to specify more than one possible string, > > so that for example if it can't find "Home", but it can find > > "Checkout", it considers the host up? > > > > On 11/2/07, *Hari Sekhon* > > wrote: > > > > yes you have to use a separate one for each site, how else would > > you be > > able to use a separate check? Unless you expect the word "Home" on > > each > > site and that is your string check. Another option is using Macros > > but I > > suspect this may not do what you want... > > > > -h > > > > Hari Sekhon > > > > > > > > Jerad Riggin wrote: > > > I've read the help docs, like I said I have a working installation > > > checking about 15 servers. I have a PING service that pings a > host > > > group. I can't do that with this because I'm checking a different > > > string on each site, so i'm guessing it has to be separated > > out. Does > > > this make sense? > > > > > > On 11/2/07, *Hari Sekhon* < hpsekhon at googlemail.com > > > > > > >> wrote: > > > > > > You need to reread the docs, this is the most basic of > > questions. > > > > > > > http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#service > > > > > > Hint: You are missing a service_description in the last > > block for one. > > > You should not have name in that last block either, you need > > > host_name. > > > > > > Read docs pls. > > > > > > -h > > > > > > Hari Sekhon > > > > > > > > > > > > Jerad Riggin wrote: > > > > I have a functioning nagios setup but I have a quick > > question. I am > > > > going through and adding website string checks so we can > keep > > > track of > > > > availability on one of our webservers. > > > > > > > > So in services.cfg I have > > > > > > > > define service{ > > > > name generic-service ; > > Generic > > > > service name > > > > active_checks_enabled 1 ; > > Active > > > > service checks are enabled > > > > passive_checks_enabled 1 ; > > Passive > > > > service checks are enabled/accepted > > > > parallelize_check 1 ; > > Active > > > > service checks should be parallelized (Don't disable) > > > > obsess_over_service 1 ; > > We should > > > > obsess over this service (if necessary) > > > > check_freshness 0 ; > > > Default is > > > > to NOT check service 'freshness' > > > > notifications_enabled 1 ; > > Service > > > > notifications are enabled > > > > event_handler_enabled 1 ; > > Service > > > > event handler is enabled > > > > flap_detection_enabled 1 ; > > Flap > > > > detection is enabled > > > > process_perf_data 1 ; > > Process > > > > performance data > > > > retain_status_information 1 ; > > Retain > > > > status information across program restarts > > > > retain_nonstatus_information 1 ; > > Retain > > > > non-status information across program restarts > > > > register 0 ; > > DONT > > > > REGISTER THIS DEFINITION - NOT A REAL SERVICE, JUST A > > TEMPLATE! > > > > } > > > > > > > > define service{ > > > > use generic-service > > > > name basic-service > > > > is_volatile 0 > > > > check_period 24x7 > > > > max_check_attempts 5 > > > > normal_check_interval 3 > > > > retry_check_interval 1 > > > > notification_interval 15 > > > > notification_period 24x7 > > > > register 0 > > > > } > > > > > > > > I then have as just one example: > > > > > > > > define service{ > > > > use basic-service > > > > name check-site4 > > > > notification_options w,u,c,r > > > > check_command > > > check_http!site.com!20!"Home" > > > > register 0 > > > > } > > > > > > > > > > > > My question is, you notice that I have the name as > > check-site4, and > > > > then later on in the services.cfg I call up that > > > checksite-4. Is this > > > > the correct way? Do I need to define a service for each > host > > > and then > > > > later on call it by name to execute the service check? Is > > this > > > a bad > > > > way of going about it? > > > > > > > > Thanks, > > > > > > > > Jerad > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > > > > This SF.net email is sponsored by: Splunk Inc. > > > > Still grepping through log files to find problems? Stop. > > > > Now Search log events and configuration files using AJAX and > a > > > browser. > > > > Download your FREE copy of Splunk now >> > > http://get.splunk.com/ > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > > > _______________________________________________ > > > > Nagios-users mailing list > > > > Nagios-users at lists.sourceforge.net > > > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > < https://lists.sourceforge.net/lists/listinfo/nagios-users> > > > > ::: Please include Nagios version, plugin version (-v) and > OS > > > when reporting any issue. > > > > ::: Messages without supporting info will risk being sent to > > > /dev/null > > > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Nov 2 17:50:27 2007 From: ae at op5.se (Andreas Ericsson) Date: Fri, 02 Nov 2007 17:50:27 +0100 Subject: nrpe issue with solaris 9? In-Reply-To: <1194019196.13573.153.camel@changito.houston.pgs.com> References: <1194019196.13573.153.camel@changito.houston.pgs.com> Message-ID: <472B5553.2070108@op5.se> Luis Cerezo wrote: > Hi folks, > > I am seeing an odd issue with nrpe check on solaris 9. > > from the solaris host: (nrpe 2.0) > > bash-2.05# grep check_fs /etc/nagios/nrpe.cfg > command[check_fs]=/usr/lib/nagios/plugins/check_fs_space -w 85% -c 95% > bash-2.05# /usr/lib/nagios/plugins/check_fs_space -w 85% -c 95% > WARNING: /users is at 85%. > bash-2.05# > >>From the nagios host: > > [root at linmgr ~]# /usr/lib/nagios/plugins/check_nrpe -H sanman -c > check_fs > File system utilization is OK > > > Has anyone seen this? About a billion times. You're running the check on the nrpe side as root, but nrpe runs it as someone else, and the plugin is crap so it prints "ok" when it fails to get the proper numbers. I'm guessing you wrote the plugin check_fs_space yourself, and only tested it as root, right? -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From maxwellb at oclc.org Fri Nov 2 17:51:21 2007 From: maxwellb at oclc.org (Maxwell,Brady) Date: Fri, 2 Nov 2007 12:51:21 -0400 Subject: nrpe timesout! In-Reply-To: <472AEE89.3020203@googlemail.com> References: <6ae50c2d0710292006l3fe843f3s3b1551192ea9a8d5@mail.gmail.com> <47270242.5090705@googlemail.com><6ae50c2d0711012004k332f3c9cta6291af8d5a8283c@mail.gmail.com> <472AEE89.3020203@googlemail.com> Message-ID: <11DE62FF9C5102478FBCC536AC273518049714B3@OAEXCH5SERVER.oa.oclc.org> You also need to make sure the nrpe binaries were compilied with the option to except arguments. ./configure --enable-command-args -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Hari Sekhon Sent: Friday, November 02, 2007 5:32 AM To: alexus Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] nrpe timesout! alexus wrote: > i assume instead of check_http -a 10.10.10.34 you mean whatever is in > nrpe.cfg for check_http command, so i'm showing you whats in there and > i'm trying to execute that command and it works fine, but not through > nrpe... > > # grep check_http ~nagios/etc/nrpe.cfg > command[check_http]=/usr/local/nagios/libexec/check_http -I $ARG1$ -e > 200 # /usr/local/nagios/libexec/check_http -I 10.10.10.34 -e 200 HTTP > OK HTTP/1.1 200 OK - 299 bytes in 0.002 seconds > |time=0.002095s;;;0.000000 size=299B;;;0 > # 2 things: 1. Are you running this as root? The # at the beginning of the line suggests so. Try running it as the user account that nrpe runs as. 2. You are passing args through nrpe, this is not good practice. It also will not work unless you have dont_blame_nrpe=1 in your nrpe.cfg on the remote host against which you are executing the nrpe call. I would recommend not passing args but instead defining more check_commands with the args already in them, this is more secure as it is more tightly controlled. -h ------------------------------------------------------------------------ - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeff.shumard at defenseweb.com Fri Nov 2 18:11:15 2007 From: jeff.shumard at defenseweb.com (Jeff Shumard - DefenseWeb Technologies) Date: Fri, 2 Nov 2007 10:11:15 -0700 Subject: Distributed monitoring with nrpe_nt and freshness Message-ID: We have our monitoring configured and everything is working great checking all our windows servers through a single windows server running nrpe_nt. The problem we are having is when one of our Linux Nagios servers goes down and doesn't send any results to the master Nagios server. When this happens and our 5 minute freshness hits it's threshold. We start running active checks because we didn't receive any passive updates from the server that went down. This sends a bunch of checks to the windows server to run tests and we start getting unknown status reports back to the master server with the result of "No output available from command". Does anyone know if there is a max connection on nrpe_nt or something else that maybe causing this? Thank you, Jeff ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Fri Nov 2 18:14:19 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Fri, 02 Nov 2007 17:14:19 +0000 Subject: nrpe issue with solaris 9? In-Reply-To: <472B5553.2070108@op5.se> References: <1194019196.13573.153.camel@changito.houston.pgs.com> <472B5553.2070108@op5.se> Message-ID: <472B5AEB.8090502@googlemail.com> Andreas Ericsson wrote: > About a billion times. You're running the check on the nrpe side as root, > but nrpe runs it as someone else, and the plugin is crap so it prints > "ok" when it fails to get the proper numbers. I'm guessing you wrote the > plugin check_fs_space yourself, and only tested it as root, right? > I think this is a very generic problem among plugins, even those in the standard distribution's contrib dir, especially those written in perl, which is a real shame, cos I try to persuade people at work that people who know perl are usually really great, but they insist that python makes people write better code. I see plugins here and there of 150 lines of code, with practically no error checking, when really it should be at least twice that... they look like they were written in a real rush. I think we should all try to make our plugins more rock solid... they should be black box near perfect. I've made mistakes like everyone else who has written plugins, that's what revision numbers are for... ;-), but we should try to do better. I've just had to upgrade my plugins cos the check_ntp plugin had not quite the right output and sent it to stderr so I got No Output in Nagios. I've made this mistake myself before so I know that usually you would do this for ordinary programs, but Nagios doesn't catch the stderr. On this note, perhaps Nagios should catch both stdout and stderr and let program write to stderr as is more std in the programming world? -h ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From luis.cerezo at pgs.com Fri Nov 2 18:58:25 2007 From: luis.cerezo at pgs.com (Luis Cerezo) Date: Fri, 02 Nov 2007 12:58:25 -0500 Subject: nrpe issue with solaris 9? In-Reply-To: <472B5553.2070108@op5.se> References: <1194019196.13573.153.camel@changito.houston.pgs.com> <472B5553.2070108@op5.se> Message-ID: <1194026305.13573.155.camel@changito.houston.pgs.com> HI Andreas, We came to the same conclusion, except for who wrote the plugin. I think I got it nagios exchange. header info: # # Author: Todd Barbera # Date: 10/26/05 # Purpose: Report back to nagios file system usage What have you done to get around it? -luis On Fri, 2007-11-02 at 17:50 +0100, Andreas Ericsson wrote: > Luis Cerezo wrote: > > Hi folks, > > > > I am seeing an odd issue with nrpe check on solaris 9. > > > > from the solaris host: (nrpe 2.0) > > > > bash-2.05# grep check_fs /etc/nagios/nrpe.cfg > > command[check_fs]=/usr/lib/nagios/plugins/check_fs_space -w 85% -c 95% > > bash-2.05# /usr/lib/nagios/plugins/check_fs_space -w 85% -c 95% > > WARNING: /users is at 85%. > > bash-2.05# > > > >>From the nagios host: > > > > [root at linmgr ~]# /usr/lib/nagios/plugins/check_nrpe -H sanman -c > > check_fs > > File system utilization is OK > > > > > > Has anyone seen this? > > > About a billion times. You're running the check on the nrpe side as root, > but nrpe runs it as someone else, and the plugin is crap so it prints > "ok" when it fails to get the proper numbers. I'm guessing you wrote the > plugin check_fs_space yourself, and only tested it as root, right? > -- Luis E. Cerezo PGS Global Shared Services - IT 281.509.8397 *********** This email and any files contained therein is confidential and may contain privileged information. If you are not the named addressee(s) or you have otherwise received this in error, you should not distribute or copy this e-mail or use any of its content for any purpose. Please notify the sender immediately by e-mail if you have received this e-mail in error and delete it from your system ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From trevor_obba at yahoo.co.uk Fri Nov 2 19:08:39 2007 From: trevor_obba at yahoo.co.uk (trevor obba) Date: Fri, 2 Nov 2007 18:08:39 +0000 (GMT) Subject: monitor EMC with nagios Message-ID: <834037.97993.qm@web23301.mail.ird.yahoo.com> I have an EMC CLARiiON AX150 I would like to monitor it with nagios.. How do I monitor my EMC?s disk usage, fan, power supply, battery, temperature and uptime using Nagios? what nagios plugin do i use to monitor the above? ___________________________________________________________ Yahoo! Answers - Got a question? Someone out there knows the answer. Try it now. http://uk.answers.yahoo.com/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Nov 2 19:32:53 2007 From: ae at op5.se (Andreas Ericsson) Date: Fri, 02 Nov 2007 19:32:53 +0100 Subject: nrpe issue with solaris 9? In-Reply-To: <1194026305.13573.155.camel@changito.houston.pgs.com> References: <1194019196.13573.153.camel@changito.houston.pgs.com> <472B5553.2070108@op5.se> <1194026305.13573.155.camel@changito.houston.pgs.com> Message-ID: <472B6D55.4030109@op5.se> Luis Cerezo wrote: > HI Andreas, > > We came to the same conclusion, except for who wrote the plugin. I think > I got it nagios exchange. > > > header info: > # > # Author: Todd Barbera > # Date: 10/26/05 > # Purpose: Report back to nagios file system usage > > What have you done to get around it? > Nothing at all. Unless you can modify the plugin or use the ones from the official plugin project, I think you're stuck. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Jeff.Chapin at t8design.com Fri Nov 2 19:43:16 2007 From: Jeff.Chapin at t8design.com (Jeff Chapin) Date: Fri, 2 Nov 2007 13:43:16 -0500 Subject: monitor EMC with nagios In-Reply-To: <834037.97993.qm@web23301.mail.ird.yahoo.com> References: <834037.97993.qm@web23301.mail.ird.yahoo.com> Message-ID: <9A53DDE1FE082F4D952FDF20AC87E21F388F9B@exchange2.t8design.com> I'm in the same boat, and would love some assistance as well. JEFF CHAPIN SYSTEM ADMINISTRATOR T8DESIGN.COM | P 319.266.7574 - x267 | 877.T8IDEAS | F 888.290.4675 This e-mail, including attachments, is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential, and may be legally privileged. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, and then please delete it. Thank you. -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of trevor obba Sent: Friday, November 02, 2007 1:09 PM To: nagiosplug; nagios-user Subject: [Nagios-users] monitor EMC with nagios I have an EMC CLARiiON AX150 I would like to monitor it with nagios.. How do I monitor my EMC?s disk usage, fan, power supply, battery, temperature and uptime using Nagios? what nagios plugin do i use to monitor the above? ___________________________________________________________ Yahoo! Answers - Got a question? Someone out there knows the answer. Try it now. http://uk.answers.yahoo.com/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Jeff.Chapin at t8design.com Fri Nov 2 19:49:03 2007 From: Jeff.Chapin at t8design.com (Jeff Chapin) Date: Fri, 2 Nov 2007 13:49:03 -0500 Subject: Service checks In-Reply-To: <472B49CF.2030408@googlemail.com> References: <66955c170711020837w29f1ba7se47e4bd9bb1f993b@mail.gmail.com> <472B45C3.7090208@googlemail.com> <66955c170711020847r27e10f89jc31b99422658ed6@mail.gmail.com> <472B47A0.7030203@googlemail.com><66955c170711020853kddca9c3me9c87b6db74652f1@mail.gmail.com> <472B49CF.2030408@googlemail.com> Message-ID: <9A53DDE1FE082F4D952FDF20AC87E21F388F9E@exchange2.t8design.com> I was under the impression that check_http has a regex option, meaning you can pass it a regex that ought to be able to handle this. Jeff JEFF CHAPIN SYSTEM ADMINISTRATOR T8DESIGN.COM | P 319.266.7574 - x267 | 877.T8IDEAS | F 888.290.4675 This e-mail, including attachments, is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential, and may be legally privileged. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, and then please delete it. Thank you. -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Hari Sekhon Sent: Friday, November 02, 2007 11:01 AM To: Jerad Riggin Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Service checks I've just tried this, using the standard check_http plugin you are using. It appears not. As soon as one string is not found it goes critical. You could always write a custom plugin to test your websites, or much more easily a shell wrapper plugin to call the first, if it fails, call the second, and only if that fails go critical... not perfect though, a better/custom plugin would serve you better. -h Hari Sekhon Jerad Riggin wrote: > In that case, is there a way to specify more than one possible string, > so that for example if it can't find "Home", but it can find > "Checkout", it considers the host up? > > On 11/2/07, *Hari Sekhon* > wrote: > > yes you have to use a separate one for each site, how else would > you be > able to use a separate check? Unless you expect the word "Home" on > each > site and that is your string check. Another option is using Macros > but I > suspect this may not do what you want... > > -h > > Hari Sekhon > > > > Jerad Riggin wrote: > > I've read the help docs, like I said I have a working installation > > checking about 15 servers. I have a PING service that pings a host > > group. I can't do that with this because I'm checking a different > > string on each site, so i'm guessing it has to be separated > out. Does > > this make sense? > > > > On 11/2/07, *Hari Sekhon* < hpsekhon at googlemail.com > > > >> wrote: > > > > You need to reread the docs, this is the most basic of > questions. > > > > http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#service > > > > Hint: You are missing a service_description in the last > block for one. > > You should not have name in that last block either, you need > > host_name. > > > > Read docs pls. > > > > -h > > > > Hari Sekhon > > > > > > > > Jerad Riggin wrote: > > > I have a functioning nagios setup but I have a quick > question. I am > > > going through and adding website string checks so we can keep > > track of > > > availability on one of our webservers. > > > > > > So in services.cfg I have > > > > > > define service{ > > > name generic-service ; > Generic > > > service name > > > active_checks_enabled 1 ; > Active > > > service checks are enabled > > > passive_checks_enabled 1 ; > Passive > > > service checks are enabled/accepted > > > parallelize_check 1 ; > Active > > > service checks should be parallelized (Don't disable) > > > obsess_over_service 1 ; > We should > > > obsess over this service (if necessary) > > > check_freshness 0 ; > > Default is > > > to NOT check service 'freshness' > > > notifications_enabled 1 ; > Service > > > notifications are enabled > > > event_handler_enabled 1 ; > Service > > > event handler is enabled > > > flap_detection_enabled 1 ; > Flap > > > detection is enabled > > > process_perf_data 1 ; > Process > > > performance data > > > retain_status_information 1 ; > Retain > > > status information across program restarts > > > retain_nonstatus_information 1 ; > Retain > > > non-status information across program restarts > > > register 0 ; > DONT > > > REGISTER THIS DEFINITION - NOT A REAL SERVICE, JUST A > TEMPLATE! > > > } > > > > > > define service{ > > > use generic-service > > > name basic-service > > > is_volatile 0 > > > check_period 24x7 > > > max_check_attempts 5 > > > normal_check_interval 3 > > > retry_check_interval 1 > > > notification_interval 15 > > > notification_period 24x7 > > > register 0 > > > } > > > > > > I then have as just one example: > > > > > > define service{ > > > use basic-service > > > name check-site4 > > > notification_options w,u,c,r > > > check_command > > check_http!site.com!20!"Home" > > > register 0 > > > } > > > > > > > > > My question is, you notice that I have the name as > check-site4, and > > > then later on in the services.cfg I call up that > > checksite-4. Is this > > > the correct way? Do I need to define a service for each host > > and then > > > later on call it by name to execute the service check? Is > this > > a bad > > > way of going about it? > > > > > > Thanks, > > > > > > Jerad > > > > > > ------------------------------------------------------------------------ > > > > > > > > > > ------------------------------------------------------------------------ - > > > > > This SF.net email is sponsored by: Splunk Inc. > > > Still grepping through log files to find problems? Stop. > > > Now Search log events and configuration files using AJAX and a > > browser. > > > Download your FREE copy of Splunk now >> > http://get.splunk.com/ > > > > > > ------------------------------------------------------------------------ > > > > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > < https://lists.sourceforge.net/lists/listinfo/nagios-users> > > > ::: Please include Nagios version, plugin version (-v) and OS > > when reporting any issue. > > > ::: Messages without supporting info will risk being sent to > > /dev/null > > > > > > ------------------------------------------------------------------------ - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mlozier at spindletopoil.com Fri Nov 2 19:56:40 2007 From: mlozier at spindletopoil.com (Matt Lozier) Date: Fri, 2 Nov 2007 13:56:40 -0500 Subject: NSClient++ install: "Too big to fit in memory" In-Reply-To: References: Message-ID: In case any of you should run into this issue in the future, I discovered what was causing this problem: When I pulled the files from off of our storage server, they must have gotten corrupted in the process. I re-transferred the NSClient to the client machine I want to manage, and re-ran the C:\> nsclient++ /install command - all is well now. Thank you, --- Matt Lozier Network Administrator 972.644.2581, ext. 248 972.661.2701 fax The information contained in this message or any attached document is confidential and intended only for the individual(s) or entity to which it is addressed. The information should be considered privileged and confidential. If you are not the intended recipient, you are hereby notified that any unauthorized use of the information contained in or transmitted with the communication, or dissemination, distribution, or copying of this communication is strictly prohibited by law. If you have received this communication in error, please inform the sender by immediately returning this communication to the sender and then deleting the original message and any copy of it in your possession. _____ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Matt Lozier Sent: Monday, October 29, 2007 12:24 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] NSClient++ install: "Too big to fit in memory" Hello, Has anyone ever run into this problem before when trying to install the NSClient as a service? At the command prompt I run: C:\> nsclient++ /install and the program reports "Too big to fit in memory" and finishes out. The service isn't installed - just closes out. Any input is appreciated! Thanks, --- Matt Lozier Network Administrator 972.644.2581, ext. 248 972.661.2701 fax The information contained in this message or any attached document is confidential and intended only for the individual(s) or entity to which it is addressed. The information should be considered privileged and confidential. If you are not the intended recipient, you are hereby notified that any unauthorized use of the information contained in or transmitted with the communication, or dissemination, distribution, or copying of this communication is strictly prohibited by law. If you have received this communication in error, please inform the sender by immediately returning this communication to the sender and then deleting the original message and any copy of it in your possession. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.jpg Type: image/jpeg Size: 3595 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.jpg Type: image/jpeg Size: 3595 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jriggin at gmail.com Fri Nov 2 19:58:39 2007 From: jriggin at gmail.com (Jerad Riggin) Date: Fri, 2 Nov 2007 13:58:39 -0500 Subject: Downtime scheduling Message-ID: <66955c170711021158r15fb35f1k3503ccfd33c8afb1@mail.gmail.com> What is the best way to allow for a 1-4AM outage on a few hosts? A cron job that will schedule it every night, or through time periods? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From llow at telesphere.com Fri Nov 2 20:03:27 2007 From: llow at telesphere.com (Larry Low) Date: Fri, 2 Nov 2007 12:03:27 -0700 Subject: Downtime scheduling In-Reply-To: <66955c170711021158r15fb35f1k3503ccfd33c8afb1@mail.gmail.com> References: <66955c170711021158r15fb35f1k3503ccfd33c8afb1@mail.gmail.com> Message-ID: <008601c81d83$0cd276e0$267764a0$@com> Timeperiods is the best idea. You can either use the notification_period or check_period depending on your end needs. ---- Larry Low 4150 N Drinkwater Blvd., 5th Floor Scottsdale, AZ 85251 Office: 480.385.7045 E-mail: llow at telesphere.com' Telesphere Networks, Inc From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Jerad Riggin Sent: Friday, November 02, 2007 11:59 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Downtime scheduling What is the best way to allow for a 1-4AM outage on a few hosts? A cron job that will schedule it every night, or through time periods? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jriggin at gmail.com Fri Nov 2 20:05:28 2007 From: jriggin at gmail.com (Jerad Riggin) Date: Fri, 2 Nov 2007 14:05:28 -0500 Subject: Downtime scheduling In-Reply-To: <008601c81d83$0cd276e0$267764a0$@com> References: <66955c170711021158r15fb35f1k3503ccfd33c8afb1@mail.gmail.com> <008601c81d83$0cd276e0$267764a0$@com> Message-ID: <66955c170711021205i2ed15986q19b4911f5d0a9d74@mail.gmail.com> Thanks for the reply. Here is what I did.. define timeperiod{ timeperiod_name maintenance alias Maintenance period sunday 04:00-01:00 monday 04:00-01:00 tuesday 04:00-01:00 wednesday 04:00-01:00 thursday 04:00-01:00 friday 04:00-01:00 saturday 04:00-01:00 } And on the host check template I put maintenance in as the notification/check schedule. Will this work? On 11/2/07, Larry Low wrote: > > Timeperiods is the best idea. You can either use the notification_period > or check_period depending on your end needs. > > > > ---- > > Larry Low > > 4150 N Drinkwater Blvd., 5th Floor > > Scottsdale, AZ 85251 > > Office: 480.385.7045 > > E-mail: llow at telesphere.com' > > > > Telesphere Networks, Inc > > > > *From:* nagios-users-bounces at lists.sourceforge.net [mailto: > nagios-users-bounces at lists.sourceforge.net] *On Behalf Of *Jerad Riggin > *Sent:* Friday, November 02, 2007 11:59 AM > *To:* nagios-users at lists.sourceforge.net > *Subject:* [Nagios-users] Downtime scheduling > > > > What is the best way to allow for a 1-4AM outage on a few hosts? A cron > job that will schedule it every night, or through time periods? > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nagios at cohen123.com Fri Nov 2 20:10:50 2007 From: nagios at cohen123.com (Tal Cohen) Date: Fri, 2 Nov 2007 15:10:50 -0400 Subject: Downtime scheduling In-Reply-To: <66955c170711021205i2ed15986q19b4911f5d0a9d74@mail.gmail.com> References: <66955c170711021158r15fb35f1k3503ccfd33c8afb1@mail.gmail.com><008601c81d83$0cd276e0$267764a0$@com> <66955c170711021205i2ed15986q19b4911f5d0a9d74@mail.gmail.com> Message-ID: <012f01c81d84$159935b0$5a01a8c0@D3233XB1> I don't know that Nagios will treat that right. I think you need to specify a time between 00:00 and 23:59. I would try 00:00-00:59,04:00-23:59 instead of 04:00-01:00 Tal _____ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Jerad Riggin Sent: Friday, November 02, 2007 3:05 PM To: Larry Low Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Downtime scheduling Thanks for the reply. Here is what I did.. define timeperiod{ timeperiod_name maintenance alias Maintenance period sunday 04:00-01:00 monday 04:00-01:00 tuesday 04:00-01:00 wednesday 04:00-01:00 thursday 04:00-01:00 friday 04:00-01:00 saturday 04:00-01:00 } And on the host check template I put maintenance in as the notification/check schedule. Will this work? On 11/2/07, Larry Low wrote: Timeperiods is the best idea. You can either use the notification_period or check_period depending on your end needs. ---- Larry Low 4150 N Drinkwater Blvd., 5th Floor Scottsdale, AZ 85251 Office: 480.385.7045 E-mail: llow at telesphere.com' Telesphere Networks, Inc From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Jerad Riggin Sent: Friday, November 02, 2007 11:59 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Downtime scheduling What is the best way to allow for a 1-4AM outage on a few hosts? A cron job that will schedule it every night, or through time periods? ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From llow at telesphere.com Fri Nov 2 20:12:03 2007 From: llow at telesphere.com (Larry Low) Date: Fri, 2 Nov 2007 12:12:03 -0700 Subject: Downtime scheduling In-Reply-To: <66955c170711021205i2ed15986q19b4911f5d0a9d74@mail.gmail.com> References: <66955c170711021158r15fb35f1k3503ccfd33c8afb1@mail.gmail.com> <008601c81d83$0cd276e0$267764a0$@com> <66955c170711021205i2ed15986q19b4911f5d0a9d74@mail.gmail.com> Message-ID: <009e01c81d84$40833b90$c189b2b0$@com> You probably have to rewrite 04:00-01:00 to 00:00-01:00,04:00-24:00. ---- Larry Low 4150 N Drinkwater Blvd., 5th Floor Scottsdale, AZ 85251 Office: 480.385.7045 E-mail: llow at telesphere.com' Telesphere Networks, Inc From: Jerad Riggin [mailto:jriggin at gmail.com] Sent: Friday, November 02, 2007 12:05 PM To: Larry Low Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Downtime scheduling Thanks for the reply. Here is what I did.. define timeperiod{ timeperiod_name maintenance alias Maintenance period sunday 04:00-01:00 monday 04:00-01:00 tuesday 04:00-01:00 wednesday 04:00-01:00 thursday 04:00-01:00 friday 04:00-01:00 saturday 04:00-01:00 } And on the host check template I put maintenance in as the notification/check schedule. Will this work? On 11/2/07, Larry Low wrote: Timeperiods is the best idea. You can either use the notification_period or check_period depending on your end needs. ---- Larry Low 4150 N Drinkwater Blvd., 5th Floor Scottsdale, AZ 85251 Office: 480.385.7045 E-mail: llow at telesphere.com' Telesphere Networks, Inc From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Jerad Riggin Sent: Friday, November 02, 2007 11:59 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Downtime scheduling What is the best way to allow for a 1-4AM outage on a few hosts? A cron job that will schedule it every night, or through time periods? ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From smcavoy at ca.afilias.info Fri Nov 2 20:14:07 2007 From: smcavoy at ca.afilias.info (Sean McAvoy) Date: Fri, 2 Nov 2007 15:14:07 -0400 Subject: State changes and notifications Message-ID: If a service enters a non-OK state (OK -> Warning), is then acknowledged, and then enters a Critical state should not a notification be sent? I have a situation where this happens even with notification_options set to w,u,c,r for the template used by the service. Any insight is greatly appreciated. _sean ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Nov 2 20:03:46 2007 From: ae at op5.se (Andreas Ericsson) Date: Fri, 02 Nov 2007 20:03:46 +0100 Subject: monitor EMC with nagios In-Reply-To: <834037.97993.qm@web23301.mail.ird.yahoo.com> References: <834037.97993.qm@web23301.mail.ird.yahoo.com> Message-ID: <472B7492.7090100@op5.se> trevor obba wrote: > > I have an EMC > CLARiiON AX150 I would like to monitor it with nagios.. > > > How do I monitor > my EMC?s disk usage, fan, power supply, battery, temperature and uptime using > Nagios? > > > what nagios plugin do i use to monitor the above? > Google's hit #5 when searching for +nagios +emc looks promising. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Nov 2 20:09:31 2007 From: ae at op5.se (Andreas Ericsson) Date: Fri, 02 Nov 2007 20:09:31 +0100 Subject: Downtime scheduling In-Reply-To: <66955c170711021205i2ed15986q19b4911f5d0a9d74@mail.gmail.com> References: <66955c170711021158r15fb35f1k3503ccfd33c8afb1@mail.gmail.com> <008601c81d83$0cd276e0$267764a0$@com> <66955c170711021205i2ed15986q19b4911f5d0a9d74@mail.gmail.com> Message-ID: <472B75EB.1030702@op5.se> Jerad Riggin wrote: > Thanks for the reply. Here is what I did.. > > > define timeperiod{ > timeperiod_name maintenance > alias Maintenance period > sunday 04:00-01:00 > monday 04:00-01:00 > tuesday 04:00-01:00 > wednesday 04:00-01:00 > thursday 04:00-01:00 > friday 04:00-01:00 > saturday 04:00-01:00 > } > > And on the host check template I put maintenance in as the > notification/check schedule. Will this work? > Nopes. The start-hour must be less than the end-hour, or you'd overflow into the next day. Here's how to write it so you get what you want: 00:00-01:00,04:00-24:00 -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Tom.Kustner at RetirementPartner.com Fri Nov 2 21:45:55 2007 From: Tom.Kustner at RetirementPartner.com (Kustner, Tom) Date: Fri, 2 Nov 2007 14:45:55 -0600 Subject: Monitoring ARCserve services Message-ID: <3DF5F6C356295B45B46242F57F4185E009579C47@ITS-EXMBX2.its.corp.gwl.com> [Note that I am a Nagios end-user, not the administrator. Someone at HQ runs the box.] We currently use Nagios 1.2. We have a Windows Server 2003 server running the latest ARCserve (11.5 SP3). We have basic monitoring of the box via Nagios but are looking for a way to monitor the ARCserve-specific services, including: [Running] CA BrightStor Database Engine [Running] CA BrightStor Discovery Service [Running] CA BrightStor Job Engine [Running] CA BrightStor Message Engine [Running] CA BrightStor Service Controller [Running] CA BrightStor Tape Engine [Running] CA BrightStor Domain Server This is not about an ARCserve trap for detecting failed jobs. Rather, we just want to be alerted when these specific services go down or up. Any suggestions? What could I pass on to our Nagios admin? Tom Kustner MCSE, CNE Systems Administrator Inside: 68728 Outside: 414-906-8728 Mobile: 414-559-0889 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: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Fri Nov 2 22:47:02 2007 From: marc at ena.com (Marc Powell) Date: Fri, 2 Nov 2007 16:47:02 -0500 Subject: Monitoring ARCserve services In-Reply-To: <3DF5F6C356295B45B46242F57F4185E009579C47@ITS-EXMBX2.its.corp.gwl.com> References: <3DF5F6C356295B45B46242F57F4185E009579C47@ITS-EXMBX2.its.corp.gwl.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Kustner, Tom > Sent: Friday, November 02, 2007 3:46 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Monitoring ARCserve services > > [Note that I am a Nagios end-user, not the administrator. Someone at HQ > runs the box.] > > We currently use Nagios 1.2. We have a Windows Server 2003 server running > the latest ARCserve (11.5 SP3). We have basic monitoring of the box via > Nagios but are looking for a way to monitor the ARCserve-specific > services, including: > > This is not about an ARCserve trap for detecting failed jobs. Rather, we > just want to be alerted when these specific services go down or up. Any > suggestions? What could I pass on to our Nagios admin? The standard Windows monitoring addons (nsclient, nsclient++, others) have the ability to check the running state of specific services. Your request doesn't seem special in that regard. If you're monitoring anything local about a windows machine now (disk, memory, cpu, etc), chances are you're already using something that supports it. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Roger at NagiosWiki.com Fri Nov 2 23:19:53 2007 From: Roger at NagiosWiki.com (Roger) Date: Fri, 2 Nov 2007 15:19:53 -0700 Subject: problems defining contact_groups in "definehostgroup" section In-Reply-To: References: <2b7af7c40711011706y38e0edcfib5ff9b1b9f3983c5@mail.gmail.com> Message-ID: <2b7af7c40711021519w1f00a73bi75a4866e182eb02@mail.gmail.com> > It's generating config files that are compatible with 1.x, not 2.x. > There were several config changes made between the versions such as this > change to where contact_groups are associated to hosts. It seems that > nmap2nagios hasn't been updated since April 2003 (at least from the > sourceforge page). Thanks, that helped a lot. For those interested, I made a wiki entry on some of these quirks and how to fix them. http://nagioswiki.com/wiki/index.php/Autocreating_Nagios_Configuration_with_Nmap_and_Nmap2Nagios.pl ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dermoth at aei.ca Sat Nov 3 03:34:50 2007 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Fri, 02 Nov 2007 22:34:50 -0400 Subject: Subject Line In-Reply-To: <00d001c81a6b$9fe8b4f0$0402010a@nspire.co.nz> References: <00d001c81a6b$9fe8b4f0$0402010a@nspire.co.nz> Message-ID: <472BDE4A.6040702@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 29/10/07 04:38 PM, Mike Hawley wrote: > Hi guys and girls, can anyone let me know how I add a subject, and display > the sent to (to:) line to the emails that leave the Nagios server. > > I am running Nagios 3.0b5 on a OpenSuSe server, with Sendmail 8.13. Here's an example of notification command (It's one line, please ignore line warps): command_line /bin/echo -e "From: $USER6$\nTo: $CONTACTEMAIL$\nSubject: $NOTIFICATIONTYPE$: $SERVICEDESC$ $SERVICESTATE$\n\n$HOSTALIAS$: $SERVICEDESC$: $SERVICESTATE$\n\nPlugin output: $SERVICEOUTPUT$\n\n$SERVICEACTIONURL$" | sendmail -t -f $USER6$ -i $CONTACTEMAIL$ It has to follow the standard for SMTP emails (Headers, one blank line then the body). Note that the "From:" and "To:" headers have nothing to do with proper message delivery; message is only delivered to envelope TO addresses (sendmail last argument in this example) and bounces are sent back to the envelope FROM address (set with sendmail -f switch). In the example above I set the From Address (%USER6$) in both the message header and envelope, so that undeliverable bounces are sent back to that address instead of the local user on the server. There might be some additional sendmail configuration needed. I think you might have to add the Nagios user to the trusted users list to allow it forging the FROM headers. If you want to send external emails (i.e. pager emails, etc) your server's external IP should forward and reverse lookup properly in DNS (it doesn't have to be reachable from the outside though). If the external domain associated to the IP is different than the server's domainname then you will need to set up masquerading in sendmail as well. Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHK95K6dZ+Kt5BchYRApubAKCWlSRylq4y+XBw+V6gmGUA2qgedACfWVpF Ga+iW5eifAnLuyICCgjKKj4= =x9hW -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dermoth at aei.ca Sat Nov 3 03:43:53 2007 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Fri, 02 Nov 2007 22:43:53 -0400 Subject: Check disk In-Reply-To: <39135.87.78.157.242.1193731796.squirrel@81.169.132.64> References: <72f6f4340710300023m436030b1ra4bc2379c42cd0cf@mail.gmail.com> <39135.87.78.157.242.1193731796.squirrel@81.169.132.64> Message-ID: <472BE069.6090307@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 30/10/07 04:09 AM, Dennis H?nseler wrote: > Hi, > > in nagios 3.0 for example use a service-definition like > > check_command check_local_disk!20!10!/var > > where > 20 stands for the warning level of 20 % free > 10 stands for the critical level of 10 % free > /var gives the script the system-path to check > > this will make a check like: > check_disk -w 20 -c 10 -p /var > DISK OK - free space: /var 10538 MB (56% inode=99%);| > /var=8147MB;19665;19675;0;19685 You won't go very far by monitoring only local disks. You should install Nagios-plugins and nrpe on the remote Linux hosts, then set up check_nrpe to check the remote hosts. Unless you want to go the totally unsafe way the disk arguments will be set up on the remote server's NRPE config. This makes systems-wide change taking longer (you have to change the config on each server) but OTOH it can allow fine tuning the disk (and other) checks on servers while keeping a very simple Nagios config (ex. one disk check for all linux-based hostgroups). For simplicity I even check the local host trough NRPE as it avoid having a separate configuration for local checks. Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHK+Bp6dZ+Kt5BchYRAnXiAJ4zislaSUN/boM4d6yii22EFMHfeQCg2Beq AGK/uSLmyK8t789oMa/ZE4Q= =QS7L -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dermoth at aei.ca Sat Nov 3 04:31:07 2007 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Fri, 02 Nov 2007 23:31:07 -0400 Subject: Nagios service latency In-Reply-To: References: Message-ID: <472BEB7B.9010601@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 30/10/07 08:29 AM, Marc Powell wrote: > >> -----Original Message----- >> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- >> bounces at lists.sourceforge.net] On Behalf Of sunchai (gillnaldo : sun) >> Sent: Tuesday, October 30, 2007 7:01 AM >> To: nagios-users at lists.sourceforge.net >> Subject: [Nagios-users] Nagios service latency >> >> Hi all, >> >> I faced problem with nagios service latency. My requirement is > active >> service monitoring to router/ network device using "SNMP" and "Ping" >> command. My environment is big router with ~100 services per device. >> >> How can I optimized nagios config? Thank in advance. >> >> Note: I have information below >> ########## nagios -s ################ >> HOST SCHEDULING INFORMATION >> --------------------------- >> Total hosts: 173 >> Total scheduled hosts: 173 > > If this is nagios-2.x or prior, do not force scheduled host checks. You > don't need to because Nagios will perform them on an as needed basis by > default when a service on the host returns a non-ok state. > > When those versions of nagios perform host checks, they're done > sequentially, not in parallel, and _nothing_ else happens, not even > service checks. This introduces significant delays, especially when > you're trying to complete many service checks in a short interval. Something that can help as well is having the host check return as fast as possible. On my servers I use check_icmp (faster than check_ping since it has native ICMP support), the check sends only one ping and timeout after one second (the minimum): # 'check_host-alive' command definition define command{ command_name check-host-alive command_line $USER1$/check_icmp -H $HOSTADDRESS$ -w 300.00,80% -c 500.00,100% -p 1 -t 1 } If you have a few routers down you can also alleviate the load by disabling active checks on them until they're back up (otherwise each failing service check on them will force running a 1-second host check in serial). The definitive answer to your problem will be in Nagios 3 with host check caching... Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHK+t76dZ+Kt5BchYRAis9AKDnVAQBsC31hCn68f1OxxKqeemNSQCgqgIh j1zJd1qumWpWVM2wEFKPruU= =nemK -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gurdeep_chd2000 at yahoo.com Sat Nov 3 08:48:06 2007 From: gurdeep_chd2000 at yahoo.com (gurdeep johal) Date: Sat, 3 Nov 2007 00:48:06 -0700 (PDT) Subject: Could not read host and service status information! Message-ID: <639931.73303.qm@web53007.mail.re2.yahoo.com> Hi I am new in Nagios. I am receving this error when I browsing Nagios console. And when I trying to start or Restart Nagios Service I am reciving this Error "Config Error! Start Aborted. Check your Nagios Configuration". But I have checked my Configuration file. and I have read the Documentation File two time. May I am doing some thing wrong. Can anyboddy suggest me avoid this problem. Gurdeep Singh __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Sat Nov 3 10:03:30 2007 From: ae at op5.se (Andreas Ericsson) Date: Sat, 03 Nov 2007 10:03:30 +0100 Subject: Nagios service latency In-Reply-To: <472BEB7B.9010601@aei.ca> References: <472BEB7B.9010601@aei.ca> Message-ID: <472C3962.6070305@op5.se> Thomas Guyot-Sionnest wrote: > > Something that can help as well is having the host check return as fast > as possible. If that's what you're after ... > On my servers I use check_icmp (faster than check_ping > since it has native ICMP support), the check sends only one ping and > timeout after one second (the minimum): > > # 'check_host-alive' command definition > define command{ > command_name check-host-alive > command_line $USER1$/check_icmp -H $HOSTADDRESS$ -w 300.00,80% -c > 500.00,100% -p 1 -t 1 > } > Turn this into # 'check_host-alive' command definition define command{ command_name check-host-alive command_line $USER1$/check_host -H $HOSTADDRESS$ } after having done ln -s check_icmp check_host in whatever directory your plugins reside in. Then you can lower the max_check_attempts and still get the fast behaviour, because check_icmp, when working in check_host mode, will return immediately upon the first correctly received icmp response, but try several times, thus saving you 3 fork()/exec() for each attempt while maintaining precision. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fvanhee at gmail.com Sat Nov 3 10:05:03 2007 From: fvanhee at gmail.com (Vanhee Frederik) Date: Sat, 03 Nov 2007 10:05:03 +0100 Subject: Could not read host and service status information! In-Reply-To: <639931.73303.qm@web53007.mail.re2.yahoo.com> References: <639931.73303.qm@web53007.mail.re2.yahoo.com> Message-ID: <472C39BF.1080103@gmail.com> gurdeep johal wrote: > Hi > > I am new in Nagios. I am receving this error when I browsing Nagios > console. And when I trying to start or Restart Nagios Service I am > reciving this Error "Config Error! Start Aborted. Check your Nagios > Configuration". But I have checked my Configuration file. and I have > read the Documentation File two time. May I am doing some thing wrong. > Can anyboddy suggest me avoid this problem. > > > > Gurdeep Singh > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null Try starting nagios with the -v option, then it shows you were the errors are. Frederik ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hvdkooij at vanderkooij.org Sat Nov 3 10:15:02 2007 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Sat, 03 Nov 2007 10:15:02 +0100 Subject: Could not read host and service status information! In-Reply-To: <639931.73303.qm@web53007.mail.re2.yahoo.com> References: <639931.73303.qm@web53007.mail.re2.yahoo.com> Message-ID: <472C3C16.3060109@vanderkooij.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 gurdeep johal wrote: > I am new in Nagios. I am receving this error when I browsing Nagios > console. And when I trying to start or Restart Nagios Service I am > reciving this Error "Config Error! Start Aborted. Check your Nagios > Configuration". But I have checked my Configuration file. and I have > read the Documentation File two time. May I am doing some thing wrong. > Can anyboddy suggest me avoid this problem. Unfortunatly you are not telling us any relevant information. Nagios version? Wjhat OS? How did you install it? What is your config directory? Does your nagios startup pick the right configuration? Output of nagios -v? There is a host of information for you to tell us. Besides the name we only know that some version of nagios is not running. Beyond what you tell us of your setup we know nothing at all about 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) iD8DBQFHLDwUBvzDRVjxmYERApMyAKCDsR+7wVK7tvG2q5Tqsi6oIX7SwwCguV2R 4Q9B3hqWeDLMZt2nCVWxjfU= =dIS4 -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gurdeep_chd2000 at yahoo.com Sat Nov 3 10:46:54 2007 From: gurdeep_chd2000 at yahoo.com (gurdeep johal) Date: Sat, 3 Nov 2007 02:46:54 -0700 (PDT) Subject: Could not read host and service status information! In-Reply-To: <472C3C16.3060109@vanderkooij.org> References: <472C3C16.3060109@vanderkooij.org> Message-ID: <21717.56378.qm@web53004.mail.re2.yahoo.com> Hi, Iam using Centos 5 Linux. I have installed Nagios by RPM package. main file are in /etc/nagios/ when I run Command /etc/nagios/nagios.cfg -v. error comes permission denied. Hugo van der Kooij wrote: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 gurdeep johal wrote: > I am new in Nagios. I am receving this error when I browsing Nagios > console. And when I trying to start or Restart Nagios Service I am > reciving this Error "Config Error! Start Aborted. Check your Nagios > Configuration". But I have checked my Configuration file. and I have > read the Documentation File two time. May I am doing some thing wrong. > Can anyboddy suggest me avoid this problem. Unfortunatly you are not telling us any relevant information. Nagios version? Wjhat OS? How did you install it? What is your config directory? Does your nagios startup pick the right configuration? Output of nagios -v? There is a host of information for you to tell us. Besides the name we only know that some version of nagios is not running. Beyond what you tell us of your setup we know nothing at all about 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) iD8DBQFHLDwUBvzDRVjxmYERApMyAKCDsR+7wVK7tvG2q5Tqsi6oIX7SwwCguV2R 4Q9B3hqWeDLMZt2nCVWxjfU= =dIS4 -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null Gurdeep Singh __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hvdkooij at vanderkooij.org Sat Nov 3 11:50:38 2007 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Sat, 03 Nov 2007 11:50:38 +0100 Subject: Could not read host and service status information! In-Reply-To: <21717.56378.qm@web53004.mail.re2.yahoo.com> References: <21717.56378.qm@web53004.mail.re2.yahoo.com> Message-ID: <472C527E.70601@vanderkooij.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 gurdeep johal wrote: > Iam using Centos 5 Linux. I have installed Nagios by RPM package. main > file are in /etc/nagios/ when I run Command /etc/nagios/nagios.cfg -v. > error comes permission denied. That is a completely invalid command. How do you expect to run a config file? Use `nagios -v nagios.cfg` as instructed previously by Frederick and documented in the manual: http://nagios.sourceforge.net/docs/2_0/verifyconfig.html If you did just read a REAMDME file you may take some time and go over the full manual (http://nagios.sourceforge.net/docs/) as it contains quite a bit of usefull information. Hugo. PS: Please observe long established mailinglist quoting procedures. - -- 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) iD8DBQFHLFJ8BvzDRVjxmYERAq53AJwNtjULju1X4eqs3AeuiXIp0wm4mQCfSc9A 2+cbPMUZMGQXEsIuLtEI1Bs= =laB4 -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gurdeep_chd2000 at yahoo.com Sat Nov 3 12:33:59 2007 From: gurdeep_chd2000 at yahoo.com (gurdeep johal) Date: Sat, 3 Nov 2007 04:33:59 -0700 (PDT) Subject: Could not read host and service status information! In-Reply-To: <472C527E.70601@vanderkooij.org> References: <472C527E.70601@vanderkooij.org> Message-ID: <410121.16459.qm@web53005.mail.re2.yahoo.com> Thanks for all support. I have checked my configuration. I was using wrong commands. now its running fine Thanks Hugo van der Kooij wrote: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 gurdeep johal wrote: > Iam using Centos 5 Linux. I have installed Nagios by RPM package. main > file are in /etc/nagios/ when I run Command /etc/nagios/nagios.cfg -v. > error comes permission denied. That is a completely invalid command. How do you expect to run a config file? Use `nagios -v nagios.cfg` as instructed previously by Frederick and documented in the manual: http://nagios.sourceforge.net/docs/2_0/verifyconfig.html If you did just read a REAMDME file you may take some time and go over the full manual (http://nagios.sourceforge.net/docs/) as it contains quite a bit of usefull information. Hugo. PS: Please observe long established mailinglist quoting procedures. - -- 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) iD8DBQFHLFJ8BvzDRVjxmYERAq53AJwNtjULju1X4eqs3AeuiXIp0wm4mQCfSc9A 2+cbPMUZMGQXEsIuLtEI1Bs= =laB4 -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gurdeep_chd2000 at yahoo.com Sat Nov 3 13:37:34 2007 From: gurdeep_chd2000 at yahoo.com (gurdeep johal) Date: Sat, 3 Nov 2007 05:37:34 -0700 (PDT) Subject: not scanning network Message-ID: <108972.29783.qm@web53003.mail.re2.yahoo.com> Hi When I am checking host detail. there is showing only my localhost pc. how it will scan for all network Gurdeep Singh __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Sat Nov 3 14:30:47 2007 From: marc at ena.com (Marc Powell) Date: Sat, 3 Nov 2007 08:30:47 -0500 Subject: not scanning network In-Reply-To: <108972.29783.qm@web53003.mail.re2.yahoo.com> References: <108972.29783.qm@web53003.mail.re2.yahoo.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of gurdeep johal > Sent: Saturday, November 03, 2007 7:38 AM > To: Nagios > Subject: [Nagios-users] not scanning network > > Hi > When I am checking host detail. there is showing only my localhost pc. how > it will scan for all network Nagios doesn't automatically scan networks. You must add host{} and service{} definitions for those things you are interested in monitoring. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dermoth at aei.ca Sun Nov 4 15:42:56 2007 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Sun, 04 Nov 2007 09:42:56 -0500 Subject: Nagios service latency In-Reply-To: <472C3962.6070305@op5.se> References: <472BEB7B.9010601@aei.ca> <472C3962.6070305@op5.se> Message-ID: <472DDA70.9080508@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 03/11/07 05:03 AM, Andreas Ericsson wrote: > Thomas Guyot-Sionnest wrote: >> >> Something that can help as well is having the host check return as fast >> as possible. > > If that's what you're after ... It helped a lot reducing the check latency on my systems. It's running over 1000 checks/minute with near-0 latency (the latency climbs if there's a few hosts going down though, because the host check for down hosts is run more often and takes longer - I'll work on this when I upgrade to Nagios 3). The CPUs are used at about 50%. >> On my servers I use check_icmp (faster than check_ping >> since it has native ICMP support), the check sends only one ping and >> timeout after one second (the minimum): >> >> # 'check_host-alive' command definition >> define command{ >> command_name check-host-alive >> command_line $USER1$/check_icmp -H $HOSTADDRESS$ -w 300.00,80% -c >> 500.00,100% -p 1 -t 1 >> } >> > > Turn this into > # 'check_host-alive' command definition > define command{ > command_name check-host-alive > command_line $USER1$/check_host -H $HOSTADDRESS$ > } This gives the same result for up hosts, but takes 20 times longer on unreachable hosts: $ time ./check_icmp -H 1.1.1.1 -w 300.00,80% -c 500.00,100% -p 1 -t 1 CRITICAL - 1.1.1.1: rta nan, lost 100%|rta=0.000ms;300.000;500.000;0; pl=100%;80;100;; real 0m0.506s user 0m0.000s sys 0m0.004s $ time ./check_host -H 1.1.1.1 CRITICAL - 1.1.1.1: rta nan, lost 100%|rta=0.000ms;1000.000;1000.000;0; pl=100%;100;100;; real 0m10.006s user 0m0.000s sys 0m0.000s So it's definitely not an option. I could further reduce the timeout by using lower thresholds but I wanted to stay on the safe side... Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHLdpw6dZ+Kt5BchYRAps7AJ0Wbe7PGaFPWclv4/Azb4JAegm1GgCfQAUH gd6+7IvapRchw+Ax8gtvmBk= =cWdv -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cedric.temple at linagora.com Sun Nov 4 16:34:26 2007 From: cedric.temple at linagora.com (=?iso-8859-1?q?C=E9dric_TEMPLE?=) Date: Sun, 4 Nov 2007 16:34:26 +0100 Subject: Nagios Huge Installation (15000 hosts) - Problem In-Reply-To: <02dd01c81c57$afaf68a0$651e6a0a@sovintel.net> References: <20071031153615.3B1E3580017@desire.netways.de> <02dd01c81c57$afaf68a0$651e6a0a@sovintel.net> Message-ID: <200711041634.26259.cedric.temple@linagora.com> On Thursday 01 November 2007 08:20:31 Alexander Bespalov wrote: > Hi, Hi, > We are trying to use Nagios to monitor (just ping) very large network > (15000 hosts). [...] > I think the the main problem is in the check_result_reaper_frequency=10 and > max_check_result_reaper_time=60 parameters in the central process. Could > you please recommend me proper values for this parameters? Try: check_result_reaper_frequency=2 Regards. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bespalov at sovintel.ru Sun Nov 4 17:40:59 2007 From: bespalov at sovintel.ru (Alexander Bespalov) Date: Sun, 4 Nov 2007 17:40:59 +0100 (CET) Subject: Nagios Huge Installation (15000 hosts) - Problem In-Reply-To: <200711041634.26259.cedric.temple@linagora.com> References: <200711041634.26259.cedric.temple@linagora.com> Message-ID: <20071104164059.4EEF158800B@desire.netways.de> Thank you! I will try it. Should I change the 'max_check_result_reaper_time' paremeter? How can I calculate the values for my installation (it is insufficient information in the documentation)? What is the largest Nagios installation do you know? -- Alexander Bespalov Golden Telecom, Moscow, Russia ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Sun Nov 4 17:48:59 2007 From: ae at op5.se (Andreas Ericsson) Date: Sun, 04 Nov 2007 17:48:59 +0100 Subject: Nagios service latency In-Reply-To: <472DDA70.9080508@aei.ca> References: <472BEB7B.9010601@aei.ca> <472C3962.6070305@op5.se> <472DDA70.9080508@aei.ca> Message-ID: <472DF7FB.1080203@op5.se> Thomas Guyot-Sionnest wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 03/11/07 05:03 AM, Andreas Ericsson wrote: >> Thomas Guyot-Sionnest wrote: >>> Something that can help as well is having the host check return as fast >>> as possible. >> If that's what you're after ... > > It helped a lot reducing the check latency on my systems. It's running > over 1000 checks/minute with near-0 latency (the latency climbs if > there's a few hosts going down though, because the host check for down > hosts is run more often and takes longer - I'll work on this when I > upgrade to Nagios 3). The CPUs are used at about 50%. > >>> On my servers I use check_icmp (faster than check_ping >>> since it has native ICMP support), the check sends only one ping and >>> timeout after one second (the minimum): >>> >>> # 'check_host-alive' command definition >>> define command{ >>> command_name check-host-alive >>> command_line $USER1$/check_icmp -H $HOSTADDRESS$ -w 300.00,80% -c >>> 500.00,100% -p 1 -t 1 >>> } >>> >> Turn this into >> # 'check_host-alive' command definition >> define command{ >> command_name check-host-alive >> command_line $USER1$/check_host -H $HOSTADDRESS$ >> } > > This gives the same result for up hosts, but takes 20 times longer on > unreachable hosts: > > $ time ./check_icmp -H 1.1.1.1 -w 300.00,80% -c 500.00,100% -p 1 -t 1 > CRITICAL - 1.1.1.1: rta nan, lost 100%|rta=0.000ms;300.000;500.000;0; > pl=100%;80;100;; > > real 0m0.506s > user 0m0.000s > sys 0m0.004s > $ time ./check_host -H 1.1.1.1 > CRITICAL - 1.1.1.1: rta nan, lost 100%|rta=0.000ms;1000.000;1000.000;0; > pl=100%;100;100;; > > real 0m10.006s > user 0m0.000s > sys 0m0.000s > > So it's definitely not an option. I could further reduce the timeout by > using lower thresholds but I wanted to stay on the safe side... > You have check_attempts set to 1 for your hosts? Doesn't that generate an awful amount of false positives? -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cedric.temple at linagora.com Sun Nov 4 17:59:39 2007 From: cedric.temple at linagora.com (=?iso-8859-1?q?C=E9dric_TEMPLE?=) Date: Sun, 4 Nov 2007 17:59:39 +0100 Subject: Nagios Huge Installation (15000 hosts) - Problem In-Reply-To: <20071104164059.4EEF158800B@desire.netways.de> References: <200711041634.26259.cedric.temple@linagora.com> <20071104164059.4EEF158800B@desire.netways.de> Message-ID: <200711041759.39212.cedric.temple@linagora.com> On Sunday 04 November 2007 17:40:59 Alexander Bespalov wrote: > Thank you! > > I will try it. OK. Could you send the results please? > Should I change the 'max_check_result_reaper_time' paremeter? I don't known. I play a lot with with nagios 2.x version, not for the 3.x. This parameter is introduced in the 3.x version. The setting i told you before works great for 2.x. > What is the largest Nagios installation do you know? up to 33 000 services (with 3 distributed servers and 1 central server). You could have more than 33 000 services with 15 000 hosts... Hope it helps. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dermoth at aei.ca Sun Nov 4 18:23:39 2007 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Sun, 04 Nov 2007 12:23:39 -0500 Subject: Check disk In-Reply-To: <72f6f4340711030227t282b306dvab9805ec5c8045f@mail.gmail.com> References: <72f6f4340710300023m436030b1ra4bc2379c42cd0cf@mail.gmail.com> <39135.87.78.157.242.1193731796.squirrel@81.169.132.64> <472BE069.6090307@aei.ca> <72f6f4340711030227t282b306dvab9805ec5c8045f@mail.gmail.com> Message-ID: <472E001B.6080902@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 03/11/07 05:27 AM, Jacques FAN wrote: > Thanks Thomas, > > If I understanding your answer, so I must install nagios plugin as I did > for Windows computer? There's no Nagios-plugins for Windows (maybe you were talking about NRPE-NT, NSClient or NC_Net...). You should have check_nrpe on the Nagios server and NRPE running on the remote computer. The NRPE config on remote side has nrpe commands associated to real system commands so that when you do: $ ./check_nrpe -H remote_server -c command_name the system command associated to "command_name" on the remote_server is run and returns back to check_nrpe. The Nagios-plugins usually have to be be installed on the remote server as well so you can have a basic set of monitoring command to run. There's certainly some documentation about it on the Nagios web site. Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHLgAb6dZ+Kt5BchYRAlksAKDZ+1Enpfs2GPwBI1bkMRhFh09hEQCfZ2CQ AUJkb0rHT9fStT099BjV2Ec= =yt4k -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dermoth at aei.ca Sun Nov 4 18:34:24 2007 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Sun, 04 Nov 2007 12:34:24 -0500 Subject: Nagios service latency In-Reply-To: <472DF7FB.1080203@op5.se> References: <472BEB7B.9010601@aei.ca> <472C3962.6070305@op5.se> <472DDA70.9080508@aei.ca> <472DF7FB.1080203@op5.se> Message-ID: <472E02A0.8050408@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 04/11/07 11:48 AM, Andreas Ericsson wrote: > Thomas Guyot-Sionnest wrote: >> >> This gives the same result for up hosts, but takes 20 times longer on >> unreachable hosts: >> >> $ time ./check_icmp -H 1.1.1.1 -w 300.00,80% -c 500.00,100% -p 1 -t 1 >> CRITICAL - 1.1.1.1: rta nan, lost 100%|rta=0.000ms;300.000;500.000;0; >> pl=100%;80;100;; >> >> real 0m0.506s >> user 0m0.000s >> sys 0m0.004s >> $ time ./check_host -H 1.1.1.1 >> CRITICAL - 1.1.1.1: rta nan, lost 100%|rta=0.000ms;1000.000;1000.000;0; >> pl=100%;100;100;; >> >> real 0m10.006s >> user 0m0.000s >> sys 0m0.000s >> >> So it's definitely not an option. I could further reduce the timeout by >> using lower thresholds but I wanted to stay on the safe side... >> > > You have check_attempts set to 1 for your hosts? Doesn't that generate an > awful amount of false positives? Max check attempts is set to three. According to Nagios documentation it's much more performant to have a faster host check and more check attempts than one check attempt that takes longer (i.e. sending multiple packets). The performance problem people usually get is not related to server performance (i.e. number of forks, cou used, etc) but the time Nagios spend waiting for host check results (as it's doing nothing else during that time). Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHLgKg6dZ+Kt5BchYRAq87AKDEfQuVPbTtF4xSz7gjdnMTAqTQwgCgiHsG FZNSq9ozRdz9wD1FjSUIHbk= =lvzZ -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bespalov at sovintel.ru Sun Nov 4 18:47:46 2007 From: bespalov at sovintel.ru (Alexander Bespalov) Date: Sun, 4 Nov 2007 18:47:46 +0100 (CET) Subject: Nagios Huge Installation (15000 hosts) - Problem In-Reply-To: <200711041759.39212.cedric.temple@linagora.com> References: <200711041759.39212.cedric.temple@linagora.com> Message-ID: <20071104174746.6FFF758800B@desire.netways.de> Ok, I will send you all the information. Do you know the hardware of the servers (I would like to compare it with hardware of my servers)? Currently I have: 1. ~15000 host checks (ping, every 15 min). Since 3.0 Nagios release all the host chacks parallelized. 2. ~27000 service checks (15000 ping, every 6 hours + 12000 SNMP checks, every 24 hours with event handlers to change some parameters via SNMP). -- Alexander Bespalov Golden Telecom, Moscow, Russia ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Sun Nov 4 18:55:25 2007 From: ae at op5.se (Andreas Ericsson) Date: Sun, 04 Nov 2007 18:55:25 +0100 Subject: Nagios service latency In-Reply-To: <472E02A0.8050408@aei.ca> References: <472BEB7B.9010601@aei.ca> <472C3962.6070305@op5.se> <472DDA70.9080508@aei.ca> <472DF7FB.1080203@op5.se> <472E02A0.8050408@aei.ca> Message-ID: <472E078D.8040909@op5.se> Thomas Guyot-Sionnest wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 04/11/07 11:48 AM, Andreas Ericsson wrote: >> Thomas Guyot-Sionnest wrote: >>> This gives the same result for up hosts, but takes 20 times longer on >>> unreachable hosts: >>> >>> $ time ./check_icmp -H 1.1.1.1 -w 300.00,80% -c 500.00,100% -p 1 -t 1 >>> CRITICAL - 1.1.1.1: rta nan, lost 100%|rta=0.000ms;300.000;500.000;0; >>> pl=100%;80;100;; >>> >>> real 0m0.506s >>> user 0m0.000s >>> sys 0m0.004s >>> $ time ./check_host -H 1.1.1.1 >>> CRITICAL - 1.1.1.1: rta nan, lost 100%|rta=0.000ms;1000.000;1000.000;0; >>> pl=100%;100;100;; >>> >>> real 0m10.006s >>> user 0m0.000s >>> sys 0m0.000s >>> >>> So it's definitely not an option. I could further reduce the timeout by >>> using lower thresholds but I wanted to stay on the safe side... >>> >> You have check_attempts set to 1 for your hosts? Doesn't that generate an >> awful amount of false positives? > > Max check attempts is set to three. According to Nagios documentation > it's much more performant to have a faster host check and more check > attempts than one check attempt that takes longer (i.e. sending multiple > packets). > > The performance problem people usually get is not related to server > performance (i.e. number of forks, cou used, etc) but the time Nagios > spend waiting for host check results (as it's doing nothing else during > that time). > That's not strictly true. Each check run by Nagios needs three fork()'s and two exec()'s. For your case, you can achieve exactly the same thing, but with 6 fork()'s and 4 exec()'s less by using check_host -H $HOSTADDRESS$ -w -c -n 3 except that check_host will be a lot faster for the cases where the host has turned unreachable due to routing problems. OTOH, it'll be less work for you *not* to change it, so so long as that works. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dermoth at aei.ca Sun Nov 4 20:33:11 2007 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Sun, 04 Nov 2007 14:33:11 -0500 Subject: Nagios service latency In-Reply-To: <472E078D.8040909@op5.se> References: <472BEB7B.9010601@aei.ca> <472C3962.6070305@op5.se> <472DDA70.9080508@aei.ca> <472DF7FB.1080203@op5.se> <472E02A0.8050408@aei.ca> <472E078D.8040909@op5.se> Message-ID: <472E1E77.6030706@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 04/11/07 12:55 PM, Andreas Ericsson wrote: > > That's not strictly true. Each check run by Nagios needs three fork()'s > and two exec()'s. For your case, you can achieve exactly the same thing, > but with 6 fork()'s and 4 exec()'s less by using > > check_host -H $HOSTADDRESS$ -w -c -n 3 > > except that check_host will be a lot faster for the cases where the host > has turned unreachable due to routing problems. > > OTOH, it'll be less work for you *not* to change it, so so long as that > works. I agree, but with Nagios, check_latency is usually *not* caused by system resources usage but rather by time spent waiting for hosts checks. In other words I do *not* care about system resources utilization if Nagios can't use them up which is currently the case. The way I do hosts checks is IMHO the fastest one from Nagios point of view, despite the fact that it can take more CPU cycles to get performed. My check send only one ICMP ping in most cases. If it's isn't answered it will retry up to two mote times (3 * 500 ms timeout max). That is tunable of course. Also I believe the packet interval in your test makes it take actually longer for the same number of unanswered packet with the same timeout. For Nagios 3 with host check caching your method is probably the best one though. BTW, this is probably tunable but for the records: $ time bash -c './check_host -H 1.1.1.1 -w 300.00,80% -c 500.00,100% -n 3' CRITICAL - 1.1.1.1: rta nan, lost 100%|rta=0.000ms;300.000;500.000;0; pl=100%;80;100;; real 0m4.517s user 0m0.004s sys 0m0.004s $ time bash -c 'for i in 1 2 3; do ./check_icmp -H 1.1.1.1 -w 300.00,80% - -c 500.00,100% -n 1 -t 10; done' CRITICAL - 1.1.1.1: rta nan, lost 100%|rta=0.000ms;300.000;500.000;0; pl=100%;80;100;; CRITICAL - 1.1.1.1: rta nan, lost 100%|rta=0.000ms;300.000;500.000;0; pl=100%;80;100;; CRITICAL - 1.1.1.1: rta nan, lost 100%|rta=0.000ms;300.000;500.000;0; pl=100%;80;100;; real 0m2.830s user 0m0.008s sys 0m0.000s Overall it's still faster to run 3 of my commands than one of yours on an unreachable host. Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHLh536dZ+Kt5BchYRAj2xAKClPO5R3DPkHVjyTf/kmV6uSE2HmQCeOlb3 jw12wvk9pvmJ0Gejkq4+NCE= =y0O6 -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dermoth at aei.ca Sun Nov 4 22:22:49 2007 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Sun, 04 Nov 2007 16:22:49 -0500 Subject: NSCA, mcrypt and Solaris 10 x86 In-Reply-To: References: Message-ID: <472E3829.5020003@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 30/10/07 01:10 PM, Alloo, Vincent wrote: > Hello, > > > > I have an issue with NSCA on Solaris 10 x86 machine (SunOS svxnagios02 > 5.10 Generic_120012-14 i86pc i386 i86pc): > > > > On a Linux RH4 machine, no issue: > > % printf "toto\t0\tcomment\n" | /apps/nagios/libexec/send_nsca -H > monitoring -c /db/sysadmin/nagios/send_nsca.cfg > > 1 data packet(s) sent to host successfully. > > > > On a Solaris 10 x86 machine: > > --SSH-- > printf "toto\t0\tcomment\n" | /apps/nagios/libexec/send_nsca > -H monitoring -c /db/sysadmin/nagios/send_nsca.cfg > > Error: Failed to initialize encryption libraries for method 14 > > Segmentation fault > > > > If I select decryption_method=0 or 1, it works fine. > > > > The error message I have is: > > > > Oct 30 17:54:36 svxnagios02 send_nsca[22865]: [ID 334271 user.error] > Could not open mcrypt algorithm 'rijndael-128' with mode 'cfb' I'd guess your Solaris Mcrypt library doesn't have the Rijndael algorithm compiled in. The easiest way to fix would be to find an algo supported on all your servers. You can also uninstall Mcrypt and compile it from scratch, making sure it compiles in all the algorithms you need. Any method over 2 should be secure enough. Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHLjgp6dZ+Kt5BchYRAnpkAJ9hG1PxSH581t99ANfl8ymRf6nRsgCeNuV5 fD8qmyxk8e95pVrECIUrKAw= =pcS9 -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dermoth at aei.ca Sun Nov 4 22:35:44 2007 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Sun, 04 Nov 2007 16:35:44 -0500 Subject: Distributed monitoring with nrpe_nt and freshness In-Reply-To: References: Message-ID: <472E3B30.3040809@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 02/11/07 01:11 PM, Jeff Shumard - DefenseWeb Technologies wrote: > We have our monitoring configured and everything is working great > checking all our windows servers through a single windows server running > nrpe_nt. The problem we are having is when one of our Linux Nagios > servers goes down and doesn't send any results to the master Nagios > server. When this happens and our 5 minute freshness hits it's > threshold. We start running active checks because we didn't receive any > passive updates from the server that went down. This sends a bunch of > checks to the windows server to run tests and we start getting unknown > status reports back to the master server with the result of "No output > available from command". Does anyone know if there is a max connection > on nrpe_nt or something else that maybe causing this? While I can't answer your question, I can suggest using check_dummy to set an UNKNOWN status to hosts not monitored. Is especially make sense if some of the hosts can't be monitored directly from the central server. Also are you sure the central server is allowed to talk to your nrpe_nt (IP access list)? Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHLjsw6dZ+Kt5BchYRAq6pAKDHXC7fjtgFNNTQUnJXrDXJxMDKAQCfftsa OTu41Chzk37uyYHRCU3x+eM= =VZZn -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gurdeep_chd2000 at yahoo.com Mon Nov 5 08:41:50 2007 From: gurdeep_chd2000 at yahoo.com (gurdeep johal) Date: Sun, 4 Nov 2007 23:41:50 -0800 (PST) Subject: How to Scan network Message-ID: <259147.11871.qm@web53002.mail.re2.yahoo.com> I Have configured serveral cgi file in /etc/nagios/ hosts.cfg contactgroup.cfg timeperiod.cfg hostgroup.cfg now when I uncomment these files from nagios.cfg. nagios server service not starting. after comment these files its works fine. how many files I have to make and uncomment for just scanning network Gurdeep Singh __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From v-alloo at ti.com Mon Nov 5 09:50:26 2007 From: v-alloo at ti.com (Alloo, Vincent) Date: Mon, 5 Nov 2007 09:50:26 +0100 Subject: NSCA, mcrypt and Solaris 10 x86 In-Reply-To: <472E3829.5020003@aei.ca> References: <472E3829.5020003@aei.ca> Message-ID: Thomas, Thanks for your answer. Unfortunately, mcrypt was compiled from scratch (without problems). I have the same error with all algorithms. Did anyone have a NSCA setup running on Solaris 10 x86 platform with encryption? Regards, Vincent Alloo TI France Design Systems Operations Manager Europe and Middle East IT Services Texas Instruments France E-Mail: v-alloo at ti.com Phone: +33 4 93 22 26 97 Mobile: +33 6 82 13 00 80 -----Original Message----- From: Thomas Guyot-Sionnest [mailto:dermoth at aei.ca] Sent: Sunday, November 04, 2007 10:23 PM To: Alloo, Vincent Cc: Nagios Users mailinglist Subject: Re: [Nagios-users] NSCA, mcrypt and Solaris 10 x86 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 30/10/07 01:10 PM, Alloo, Vincent wrote: > Hello, > > > > I have an issue with NSCA on Solaris 10 x86 machine (SunOS svxnagios02 > 5.10 Generic_120012-14 i86pc i386 i86pc): > > > > On a Linux RH4 machine, no issue: > > % printf "toto\t0\tcomment\n" | /apps/nagios/libexec/send_nsca -H > monitoring -c /db/sysadmin/nagios/send_nsca.cfg > > 1 data packet(s) sent to host successfully. > > > > On a Solaris 10 x86 machine: > > --SSH-- > printf "toto\t0\tcomment\n" | /apps/nagios/libexec/send_nsca > -H monitoring -c /db/sysadmin/nagios/send_nsca.cfg > > Error: Failed to initialize encryption libraries for method 14 > > Segmentation fault > > > > If I select decryption_method=0 or 1, it works fine. > > > > The error message I have is: > > > > Oct 30 17:54:36 svxnagios02 send_nsca[22865]: [ID 334271 user.error] > Could not open mcrypt algorithm 'rijndael-128' with mode 'cfb' I'd guess your Solaris Mcrypt library doesn't have the Rijndael algorithm compiled in. The easiest way to fix would be to find an algo supported on all your servers. You can also uninstall Mcrypt and compile it from scratch, making sure it compiles in all the algorithms you need. Any method over 2 should be secure enough. Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHLjgp6dZ+Kt5BchYRAnpkAJ9hG1PxSH581t99ANfl8ymRf6nRsgCeNuV5 fD8qmyxk8e95pVrECIUrKAw= =pcS9 -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Mon Nov 5 10:37:32 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Mon, 05 Nov 2007 09:37:32 +0000 Subject: Service checks In-Reply-To: <9A53DDE1FE082F4D952FDF20AC87E21F388F9E@exchange2.t8design.com> References: <66955c170711020837w29f1ba7se47e4bd9bb1f993b@mail.gmail.com> <472B45C3.7090208@googlemail.com> <66955c170711020847r27e10f89jc31b99422658ed6@mail.gmail.com> <472B47A0.7030203@googlemail.com><66955c170711020853kddca9c3me9c87b6db74652f1@mail.gmail.com> <472B49CF.2030408@googlemail.com> <9A53DDE1FE082F4D952FDF20AC87E21F388F9E@exchange2.t8design.com> Message-ID: <472EE45C.8090407@googlemail.com> You are correct, you can actually do this with a regex, I completely forgot about this option. Thanks for reminding me. If you are skilled with regex you can do this, although I think that the OP was looking for a way around having one service definition for all 4 web sites, and for this, I would think that separate service definitions are a little nicer than trying to put a square peg in a round hole. -h Hari Sekhon Jeff Chapin wrote: > I was under the impression that check_http has a regex option, meaning > you can pass it a regex that ought to be able to handle this. > > Jeff > > > > > JEFF CHAPIN > SYSTEM ADMINISTRATOR > T8DESIGN.COM | P 319.266.7574 - x267 | 877.T8IDEAS | F 888.290.4675 > > > This e-mail, including attachments, is covered by the Electronic > Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential, and > may be legally privileged. If you are not the intended recipient, you > are hereby notified that any retention, dissemination, distribution, or > copying of this communication is strictly prohibited. Please reply to > the sender that you have received the message in error, and then please > delete it. Thank you. > > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Hari > Sekhon > Sent: Friday, November 02, 2007 11:01 AM > To: Jerad Riggin > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Service checks > > I've just tried this, using the standard check_http plugin you are > using. It appears not. > > As soon as one string is not found it goes critical. > > You could always write a custom plugin to test your websites, or much > more easily a shell wrapper plugin to call the first, if it fails, call > the second, and only if that fails go critical... not perfect though, a > better/custom plugin would serve you better. > > -h > > Hari Sekhon > > > > Jerad Riggin wrote: > >> In that case, is there a way to specify more than one possible string, >> > > >> so that for example if it can't find "Home", but it can find >> "Checkout", it considers the host up? >> >> On 11/2/07, *Hari Sekhon* > > wrote: >> >> yes you have to use a separate one for each site, how else would >> you be >> able to use a separate check? Unless you expect the word "Home" on >> each >> site and that is your string check. Another option is using Macros >> but I >> suspect this may not do what you want... >> >> -h >> >> Hari Sekhon >> >> >> >> Jerad Riggin wrote: >> > I've read the help docs, like I said I have a working >> > installation > >> > checking about 15 servers. I have a PING service that pings a >> > host > >> > group. I can't do that with this because I'm checking a >> > different > >> > string on each site, so i'm guessing it has to be separated >> out. Does >> > this make sense? >> > >> > On 11/2/07, *Hari Sekhon* < hpsekhon at googlemail.com >> >> > > >> wrote: >> > >> > You need to reread the docs, this is the most basic of >> questions. >> > >> > >> > http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#service > >> > >> > Hint: You are missing a service_description in the last >> block for one. >> > You should not have name in that last block either, you need >> > host_name. >> > >> > Read docs pls. >> > >> > -h >> > >> > Hari Sekhon >> > >> > >> > >> > Jerad Riggin wrote: >> > > I have a functioning nagios setup but I have a quick >> question. I am >> > > going through and adding website string checks so we can >> > keep > >> > track of >> > > availability on one of our webservers. >> > > >> > > So in services.cfg I have >> > > >> > > define service{ >> > > name generic-service ; >> Generic >> > > service name >> > > active_checks_enabled 1 ; >> Active >> > > service checks are enabled >> > > passive_checks_enabled 1 ; >> Passive >> > > service checks are enabled/accepted >> > > parallelize_check 1 ; >> Active >> > > service checks should be parallelized (Don't disable) >> > > obsess_over_service 1 ; >> We should >> > > obsess over this service (if necessary) >> > > check_freshness 0 ; >> > Default is >> > > to NOT check service 'freshness' >> > > notifications_enabled 1 ; >> Service >> > > notifications are enabled >> > > event_handler_enabled 1 ; >> Service >> > > event handler is enabled >> > > flap_detection_enabled 1 ; >> Flap >> > > detection is enabled >> > > process_perf_data 1 ; >> Process >> > > performance data >> > > retain_status_information 1 ; >> Retain >> > > status information across program restarts >> > > retain_nonstatus_information 1 ; >> Retain >> > > non-status information across program restarts >> > > register 0 ; >> DONT >> > > REGISTER THIS DEFINITION - NOT A REAL SERVICE, JUST A >> TEMPLATE! >> > > } >> > > >> > > define service{ >> > > use generic-service >> > > name basic-service >> > > is_volatile 0 >> > > check_period 24x7 >> > > max_check_attempts 5 >> > > normal_check_interval 3 >> > > retry_check_interval 1 >> > > notification_interval 15 >> > > notification_period 24x7 >> > > register 0 >> > > } >> > > >> > > I then have as just one example: >> > > >> > > define service{ >> > > use basic-service >> > > name check-site4 >> > > notification_options w,u,c,r >> > > check_command >> > check_http!site.com!20!"Home" >> > > register 0 >> > > } >> > > >> > > >> > > My question is, you notice that I have the name as >> check-site4, and >> > > then later on in the services.cfg I call up that >> > checksite-4. Is this >> > > the correct way? Do I need to define a service for each >> > host > >> > and then >> > > later on call it by name to execute the service check? Is >> this >> > a bad >> > > way of going about it? >> > > >> > > Thanks, >> > > >> > > Jerad >> > > >> > >> >> > ------------------------------------------------------------------------ > >> > > >> > > >> > >> >> > ------------------------------------------------------------------------ > - > >> > >> > > This SF.net email is sponsored by: Splunk Inc. >> > > Still grepping through log files to find problems? Stop. >> > > Now Search log events and configuration files using AJAX >> > and a > >> > browser. >> > > Download your FREE copy of Splunk now >> >> http://get.splunk.com/ >> > > >> > >> >> > ------------------------------------------------------------------------ > >> > > >> > > _______________________________________________ >> > > Nagios-users mailing list >> > > Nagios-users at lists.sourceforge.net >> >> > > > >> > > https://lists.sourceforge.net/lists/listinfo/nagios-users >> > < https://lists.sourceforge.net/lists/listinfo/nagios-users> >> > > ::: Please include Nagios version, plugin version (-v) and >> > OS > >> > when reporting any issue. >> > > ::: Messages without supporting info will risk being sent >> > to > >> > /dev/null >> > >> > >> >> >> > > ------------------------------------------------------------------------ > - > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fvanhee at gmail.com Mon Nov 5 10:42:09 2007 From: fvanhee at gmail.com (Frederik Vanhee) Date: Mon, 5 Nov 2007 10:42:09 +0100 Subject: How to Scan network In-Reply-To: <259147.11871.qm@web53002.mail.re2.yahoo.com> References: <259147.11871.qm@web53002.mail.re2.yahoo.com> Message-ID: <9c1cb51c0711050142m3dd41a1epceb7fef19322dcb6@mail.gmail.com> On 11/5/07, gurdeep johal wrote: > > I Have configured serveral cgi file in /etc/nagios/ > hosts.cfg > contactgroup.cfg > timeperiod.cfg > hostgroup.cfg > > now when I uncomment these files from nagios.cfg. nagios server service > not starting. after comment these files its works fine. how many files I > have to make and uncomment for just scanning network > > > > Gurdeep Singh > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > Hello, you should really try and search some more yourself ! -As mentioned before, try execute nagios with the -v option to see where the errors are -You can try the default config filesthe developer has prepared for you -You should read the documentation about hosts,services,checkcommands,timeperiods,contacts, contactgroups... before building some config files Good luck, it will take some time, but believe me (and many others); it is worth the effort Frederik -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Mon Nov 5 10:44:44 2007 From: ae at op5.se (Andreas Ericsson) Date: Mon, 05 Nov 2007 10:44:44 +0100 Subject: Nagios service latency In-Reply-To: <472E1E77.6030706@aei.ca> References: <472BEB7B.9010601@aei.ca> <472C3962.6070305@op5.se> <472DDA70.9080508@aei.ca> <472DF7FB.1080203@op5.se> <472E02A0.8050408@aei.ca> <472E078D.8040909@op5.se> <472E1E77.6030706@aei.ca> Message-ID: <472EE60C.5020202@op5.se> Thomas Guyot-Sionnest wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 04/11/07 12:55 PM, Andreas Ericsson wrote: >> That's not strictly true. Each check run by Nagios needs three fork()'s >> and two exec()'s. For your case, you can achieve exactly the same thing, >> but with 6 fork()'s and 4 exec()'s less by using >> >> check_host -H $HOSTADDRESS$ -w -c -n 3 >> >> except that check_host will be a lot faster for the cases where the host >> has turned unreachable due to routing problems. >> >> OTOH, it'll be less work for you *not* to change it, so so long as that >> works. > > I agree, but with Nagios, check_latency is usually *not* caused by > system resources usage but rather by time spent waiting for hosts checks. > > In other words I do *not* care about system resources utilization if > Nagios can't use them up which is currently the case. The way I do hosts > checks is IMHO the fastest one from Nagios point of view, despite the > fact that it can take more CPU cycles to get performed. My check send > only one ICMP ping in most cases. If it's isn't answered it will retry > up to two mote times (3 * 500 ms timeout max). That is tunable of > course. Also I believe the packet interval in your test makes it take > actually longer for the same number of unanswered packet with the same > timeout. > Set it lower then ;-) > For Nagios 3 with host check caching your method is probably the best > one though. > > > BTW, this is probably tunable but for the records: > > $ time bash -c './check_host -H 1.1.1.1 -w 300.00,80% -c 500.00,100% -n 3' > CRITICAL - 1.1.1.1: rta nan, lost 100%|rta=0.000ms;300.000;500.000;0; > pl=100%;80;100;; > > real 0m4.517s > user 0m0.004s > sys 0m0.004s > > $ time bash -c 'for i in 1 2 3; do ./check_icmp -H 1.1.1.1 -w 300.00,80% > - -c 500.00,100% -n 1 -t 10; done' > CRITICAL - 1.1.1.1: rta nan, lost 100%|rta=0.000ms;300.000;500.000;0; > pl=100%;80;100;; > CRITICAL - 1.1.1.1: rta nan, lost 100%|rta=0.000ms;300.000;500.000;0; > pl=100%;80;100;; > CRITICAL - 1.1.1.1: rta nan, lost 100%|rta=0.000ms;300.000;500.000;0; > pl=100%;80;100;; > > real 0m2.830s > user 0m0.008s > sys 0m0.000s > Add another ~0.5 seconds on top of that for Nagios to setup macros, build command-line, fork(), run the actual checks and reap the results. > Overall it's still faster to run 3 of my commands than one of yours on > an unreachable host. > time /opt/plugins/check_host -H 1.1.1.1 -w 300.0,80% -c 500.0,100% -n 3 -i 50ms CRITICAL - 1.1.1.1: rta nan, lost 100%|rta=0.000ms;300.000;500.000;0; pl=100%;80;100;; real 0m2.154s user 0m0.001s sys 0m0.000s I win ;-) -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Mon Nov 5 10:45:24 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Mon, 05 Nov 2007 09:45:24 +0000 Subject: nrpe issue with solaris 9? In-Reply-To: <1194026305.13573.155.camel@changito.houston.pgs.com> References: <1194019196.13573.153.camel@changito.houston.pgs.com> <472B5553.2070108@op5.se> <1194026305.13573.155.camel@changito.houston.pgs.com> Message-ID: <472EE634.4020506@googlemail.com> Hi Luis, The way I see it you have 3 choices: 1. Rewrite the plugin to work the way you want. 2. Give up on using that plugin (but we're not quitters are we?) 3. If you have read and trust the code, grant the nagios user root privs when running it using sudo and change your nagios command to call it through sudo. I tend to use number 3. -h Hari Sekhon Luis Cerezo wrote: > HI Andreas, > > We came to the same conclusion, except for who wrote the plugin. I think > I got it nagios exchange. > > > header info: > # > # Author: Todd Barbera > # Date: 10/26/05 > # Purpose: Report back to nagios file system usage > > What have you done to get around it? > > -luis > > On Fri, 2007-11-02 at 17:50 +0100, Andreas Ericsson wrote: > >> Luis Cerezo wrote: >> >>> Hi folks, >>> >>> I am seeing an odd issue with nrpe check on solaris 9. >>> >>> from the solaris host: (nrpe 2.0) >>> >>> bash-2.05# grep check_fs /etc/nagios/nrpe.cfg >>> command[check_fs]=/usr/lib/nagios/plugins/check_fs_space -w 85% -c 95% >>> bash-2.05# /usr/lib/nagios/plugins/check_fs_space -w 85% -c 95% >>> WARNING: /users is at 85%. >>> bash-2.05# >>> >>> >From the nagios host: >>> >>> [root at linmgr ~]# /usr/lib/nagios/plugins/check_nrpe -H sanman -c >>> check_fs >>> File system utilization is OK >>> >>> >>> Has anyone seen this? >>> >> About a billion times. You're running the check on the nrpe side as root, >> but nrpe runs it as someone else, and the plugin is crap so it prints >> "ok" when it fails to get the proper numbers. I'm guessing you wrote the >> plugin check_fs_space yourself, and only tested it as root, right? >> >> ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Mon Nov 5 11:43:24 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Mon, 05 Nov 2007 10:43:24 +0000 Subject: How to Scan network In-Reply-To: <259147.11871.qm@web53002.mail.re2.yahoo.com> References: <259147.11871.qm@web53002.mail.re2.yahoo.com> Message-ID: <472EF3CC.3050106@googlemail.com> Go read the manual first please, we can't set up your nagios for you. Come back when you have a specific problem only after you have read the whole manual twice. -h Hari Sekhon gurdeep johal wrote: > I Have configured serveral cgi file in /etc/nagios/ > hosts.cfg > contactgroup.cfg > timeperiod.cfg > hostgroup.cfg > > now when I uncomment these files from nagios.cfg. nagios server > service not starting. after comment these files its works fine. how > many files I have to make and uncomment for just scanning network > > > > Gurdeep Singh > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From g.digiambelardini at fabaris.it Mon Nov 5 12:27:16 2007 From: g.digiambelardini at fabaris.it (Di Giambelardini Gabriele) Date: Mon, 5 Nov 2007 12:27:16 +0100 (CET) Subject: aix oracle pmon Message-ID: <33887.192.168.1.1.1194262036.squirrel@webmail2.fabaris.it> Hi to all, I have a problem for check an oracle pmon deamon on an aix server. My Nagios is on an CentOS server and I need check said deamon... Some body can help me??? ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dermoth at aei.ca Mon Nov 5 13:25:00 2007 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Mon, 05 Nov 2007 07:25:00 -0500 Subject: Nagios service latency In-Reply-To: <472EE60C.5020202@op5.se> References: <472BEB7B.9010601@aei.ca> <472C3962.6070305@op5.se> <472DDA70.9080508@aei.ca> <472DF7FB.1080203@op5.se> <472E02A0.8050408@aei.ca> <472E078D.8040909@op5.se> <472E1E77.6030706@aei.ca> <472EE60C.5020202@op5.se> Message-ID: <472F0B9C.6040806@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 05/11/07 04:44 AM, Andreas Ericsson wrote: > > Add another ~0.5 seconds on top of that for Nagios to setup macros, build > command-line, fork(), run the actual checks and reap the results. Ok, maybe real-world testing would give us the real result. However I'm wondering how you calculated 0.5 seconds run a check. My most loaded server is running at ~50% CPU (spread over 2 CPUs) and is performing over 1000 active check/minute. That makes .06 second per check per CPU. Let's kill this thread until someone can provide a real comparison of the two methods on a real system. :) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHLwuc6dZ+Kt5BchYRApBpAKCeEAsVU6THz+77Qh58Ah++mckpJwCg0ay6 zdxYIxR7Dq6OuHHP0fZkmyI= =TDM0 -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Mon Nov 5 13:32:31 2007 From: ae at op5.se (Andreas Ericsson) Date: Mon, 05 Nov 2007 13:32:31 +0100 Subject: Nagios service latency In-Reply-To: <472F0B9C.6040806@aei.ca> References: <472BEB7B.9010601@aei.ca> <472C3962.6070305@op5.se> <472DDA70.9080508@aei.ca> <472DF7FB.1080203@op5.se> <472E02A0.8050408@aei.ca> <472E078D.8040909@op5.se> <472E1E77.6030706@aei.ca> <472EE60C.5020202@op5.se> <472F0B9C.6040806@aei.ca> Message-ID: <472F0D5F.60803@op5.se> Thomas Guyot-Sionnest wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 05/11/07 04:44 AM, Andreas Ericsson wrote: >> Add another ~0.5 seconds on top of that for Nagios to setup macros, build >> command-line, fork(), run the actual checks and reap the results. > > Ok, maybe real-world testing would give us the real result. However I'm > wondering how you calculated 0.5 seconds run a check. Not one, but two, with result reaping in between. > My most loaded > server is running at ~50% CPU (spread over 2 CPUs) and is performing > over 1000 active check/minute. That makes .06 second per check per CPU. > That's with parallellism included though, so each check has longer than 0.06 seconds to complete. > Let's kill this thread until someone can provide a real comparison of > the two methods on a real system. :) Great plan. I'll just shut up and do some real work now instead ;-) -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ntoughe at hotmail.com Mon Nov 5 13:40:57 2007 From: ntoughe at hotmail.com (NTOUGHE GUY-SERGE) Date: Mon, 5 Nov 2007 12:40:57 +0000 Subject: Objects configuration files missing Message-ID: Hi every body, I recently installed nagios, but after configuration et compilation, i noticed that thereis no samples config files: (hosts,hostgroup,contacts, contactsgroups.) Does it necessary to recompil the application or i forgotten something in the requirements ? regards ntoughe at hotmail.com _________________________________________________________________ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ojan at expertise-online.net Mon Nov 5 13:42:46 2007 From: ojan at expertise-online.net (Olivier JAN) Date: Mon, 05 Nov 2007 13:42:46 +0100 Subject: Objects configuration files missing In-Reply-To: References: Message-ID: <20071105134246.lqbpby0s0sso0ows@intra.expertise-online.net> Hi Guy-Serge, make install-config is the command to install the examples config files as indicated during the compilation and in the manual. -- Olivier JAN NTOUGHE GUY-SERGE a ?crit : > > > Hi every body, > > I recently installed nagios, but after configuration et compilation, > i noticed that thereis no samples config files: > (hosts,hostgroup,contacts, contactsgroups.) > > > > Does it necessary to recompil the application or i forgotten > something in the requirements ? > > regards > > ntoughe at hotmail.com > _________________________________________________________________ > News, entertainment and everything you care about at Live.com. Get it now! > http://www.live.com/getstarted.aspx ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mha at cm4all.com Mon Nov 5 13:47:57 2007 From: mha at cm4all.com (Matthias Haider) Date: Mon, 05 Nov 2007 13:47:57 +0100 Subject: Service dependencies Message-ID: <472F10FD.80205@cm4all.com> Hi folks, i am trying to use service dependencies and i am unsure if the dependencies will get check further than for the "nearest neighbour"? For example, A depends on B, and B dependes on C Will in an failure event of A the dependency get checked until C, or will i have to write an explicit dependency "A depends on C" thanks in advance, br, Matthias Haider -- ***************************** Content Management AG Dipl.- Phys. Matthias Haider Im Mediapark 6 50670 Koeln Germany Tel.: +49 (0) 221 4545200 Fax.: +49 (0) 221 4545221 E-Mail: mha at cm4all.com Internet: www.cm4all.com Amtsgericht Koeln, HRB 32668 ***************************** ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ntoughe at hotmail.com Mon Nov 5 13:59:26 2007 From: ntoughe at hotmail.com (NTOUGHE GUY-SERGE) Date: Mon, 5 Nov 2007 12:59:26 +0000 Subject: -Objects configuration files missing Message-ID: Hi every body, I recently installed nagios, but after configuration et compilation, i noticed that thereis no samples config files: (hosts,hostgroup,contacts, contactsgroups.) Does it necessary to recompil the application or i forgotten something in the requirements ? regards ntoughe at hotmail.com ntoughe at hotmail.com _________________________________________________________________ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kemotaha at gmail.com Mon Nov 5 15:56:14 2007 From: kemotaha at gmail.com (Nathan) Date: Mon, 05 Nov 2007 07:56:14 -0700 Subject: How to Scan network In-Reply-To: <259147.11871.qm@web53002.mail.re2.yahoo.com> References: <259147.11871.qm@web53002.mail.re2.yahoo.com> Message-ID: <1194274574.17635.2.camel@tux> On Sun, 2007-11-04 at 23:41 -0800, gurdeep johal wrote: > I Have configured serveral cgi file in /etc/nagios/ > hosts.cfg > contactgroup.cfg > timeperiod.cfg > hostgroup.cfg > > now when I uncomment these files from nagios.cfg. nagios server > service not starting. after comment these files its works fine. how > many files I have to make and uncomment for just scanning network Gurdeep, Nagios by default doesn't do network scanning. In order to do network scanning you have to add an additional piece of software. There are a few add-ons that allow you to scan your network and sets up a basic config for them. You can find some of them on http://www.nagiosexchange.org/ or you do a quick google search for nagios frontends. Nathan -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pico at cocco.biz Mon Nov 5 16:43:54 2007 From: pico at cocco.biz (PiCo) Date: Mon, 05 Nov 2007 16:43:54 +0100 Subject: Can NAGIOS check HOST via PROXY ? In-Reply-To: <4728859A.9010105@googlemail.com> References: <47287907.5050906@googlemail.com> <4728859A.9010105@googlemail.com> Message-ID: I can reach my customers at SAPGUI Level via a saprouter. I mean that I'm using a saprouter string to connect to this systems. Concerning the connection at OS level.. I use FREECAP and so a SOCKS PROXY... I hope Now is a little bit clear... Any idea to solve my problem ?? regards On Wed, 31 Oct 2007 14:39:38 +0100, Hari Sekhon wrote: > PiCo wrote: >> No I can't reach directly... >> Which ports ?? >> nagios server in in my LAN... customers can't reach it!! > I need some clarification, if you cannot reach your customers and they > cannot reach you, then how is it a vpn? What does it connect? > > Ports? 5666 on the client side if using nrpe. 5667 on your side if using > nsca. basic stuff... > > Really, Marc's idea may be best for you. > > If your proxy box is linux, then just nrpe to that box and get it to > check your hosts. > > More info needed. > > -h > -- ,,, /'^'\ ( o o ) ----------------------------------------oOOO--(_)--OOOo------ Pierfrancesco Cocco EMail: pico at cocco.biz Web: www.cocco.biz ICQ#: 105570291 SkypeID: cocco.biz Tel.: +39 335 1234 475 Fax.: +39 06 233 2401 88 .oooO ( ) Oooo. ------------------------------------------\ (----( )------- \_) ) / (_/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jperrin at gmail.com Mon Nov 5 16:46:53 2007 From: jperrin at gmail.com (Jim Perrin) Date: Mon, 5 Nov 2007 10:46:53 -0500 Subject: -Objects configuration files missing In-Reply-To: References: Message-ID: <302ce8b50711050746u668fd239q88419379dcd21993@mail.gmail.com> On 11/5/07, NTOUGHE GUY-SERGE wrote: > > Hi every body, > I recently installed nagios, but after configuration et compilation, i > noticed that thereis no samples config files: (hosts,hostgroup,contacts, > contactsgroups.) > > Does it necessary to recompil the application or i forgotten something in > the requirements ? > regards No, you just didn't issue the proper make target to have the sample configs built/installed. Mostly you left out the 'make install-config' step. -- During times of universal deceit, telling the truth becomes a revolutionary act. George Orwell ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jriggin at gmail.com Mon Nov 5 17:51:42 2007 From: jriggin at gmail.com (Jerad Riggin) Date: Mon, 5 Nov 2007 10:51:42 -0600 Subject: Availability reports Message-ID: <66955c170711050851t3de35346k92af4517a96ea42e@mail.gmail.com> I have two sites being monitored with checkhttp & a string. When I do an availability report for today it shows as 100% availability, however if I go further in and click on the host, it shows 95.4% Time OK with 4.5% Time Critical. Why is this downtime not showing in the availability report? ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Sebastian.Ries at dtnet.de Mon Nov 5 17:56:13 2007 From: Sebastian.Ries at dtnet.de (Sebastian Ries) Date: Mon, 05 Nov 2007 17:56:13 +0100 Subject: Availability reports In-Reply-To: <66955c170711050851t3de35346k92af4517a96ea42e@mail.gmail.com> References: <66955c170711050851t3de35346k92af4517a96ea42e@mail.gmail.com> Message-ID: <1194281773.18978.74.camel@bofh.dtnet.de> Hi > I have two sites being monitored with checkhttp & a string. When I do > an availability report for today it shows as 100% availability, > however if I go further in and click on the host, it shows 95.4% Time > OK with 4.5% Time Critical. Why is this downtime not showing in the > availability report? Is the availability report based on the service checks? Nagios does not check services as long as it knows the host is down. So it could be that EVERY service check returned OK (100%) because as the host was down the server hasn't been checked... 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: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jriggin at gmail.com Mon Nov 5 18:09:34 2007 From: jriggin at gmail.com (Jerad Riggin) Date: Mon, 5 Nov 2007 11:09:34 -0600 Subject: Availability reports In-Reply-To: <1194281773.18978.74.camel@bofh.dtnet.de> References: <66955c170711050851t3de35346k92af4517a96ea42e@mail.gmail.com> <1194281773.18978.74.camel@bofh.dtnet.de> Message-ID: <66955c170711050909id55e8b8m48279711b9a65ee9@mail.gmail.com> I think the issue was that the checkstring is a service, but the host wasn't down (it could still ping it). So it considered the host up but the service down. I created a service group so we could check availability based on the checkstring service. On Nov 5, 2007 10:56 AM, Sebastian Ries wrote: > Hi > > > > I have two sites being monitored with checkhttp & a string. When I do > > an availability report for today it shows as 100% availability, > > however if I go further in and click on the host, it shows 95.4% Time > > OK with 4.5% Time Critical. Why is this downtime not showing in the > > availability report? > > Is the availability report based on the service checks? > Nagios does not check services as long as it knows the host is down. > > So it could be that EVERY service check returned OK (100%) because as > the host was down the server hasn't been checked... > > 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: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeff.shumard at defenseweb.com Mon Nov 5 19:16:04 2007 From: jeff.shumard at defenseweb.com (Jeff Shumard - DefenseWeb Technologies) Date: Mon, 5 Nov 2007 10:16:04 -0800 Subject: Distributed monitoring with nrpe_nt and freshness In-Reply-To: <472E3B30.3040809@aei.ca> References: <472E3B30.3040809@aei.ca> Message-ID: Everything works fine checking the hosts if I force an active check for all services on a host. We are not doing host checks at all on your servers just service checks. The only time I have a problem is when the freshness threshold is reached and it tries to force a check on a lot of services at once. It is almost like nrpe_nt is only able to process a set amount of checks at one time. There is no resource issue at the time this is happening on the Nagios server and on the Windows server running the checks. Has anyone else had this problem? Thank you, Jeff -----Original Message----- From: Thomas Guyot-Sionnest [mailto:dermoth at aei.ca] Sent: Sunday, November 04, 2007 1:36 PM To: Jeff Shumard - DefenseWeb Technologies Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Distributed monitoring with nrpe_nt and freshness -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 02/11/07 01:11 PM, Jeff Shumard - DefenseWeb Technologies wrote: > We have our monitoring configured and everything is working great > checking all our windows servers through a single windows server running > nrpe_nt. The problem we are having is when one of our Linux Nagios > servers goes down and doesn't send any results to the master Nagios > server. When this happens and our 5 minute freshness hits it's > threshold. We start running active checks because we didn't receive any > passive updates from the server that went down. This sends a bunch of > checks to the windows server to run tests and we start getting unknown > status reports back to the master server with the result of "No output > available from command". Does anyone know if there is a max connection > on nrpe_nt or something else that maybe causing this? While I can't answer your question, I can suggest using check_dummy to set an UNKNOWN status to hosts not monitored. Is especially make sense if some of the hosts can't be monitored directly from the central server. Also are you sure the central server is allowed to talk to your nrpe_nt (IP access list)? Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHLjsw6dZ+Kt5BchYRAq6pAKDHXC7fjtgFNNTQUnJXrDXJxMDKAQCfftsa OTu41Chzk37uyYHRCU3x+eM= =VZZn -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jmacaranas at fxdd.com Mon Nov 5 19:34:13 2007 From: jmacaranas at fxdd.com (jmacaranas at fxdd.com) Date: Mon, 5 Nov 2007 13:34:13 -0500 Subject: check_ntp inquiry Message-ID: <4D32E9B6A504554489FFFD81E7FF281305788876@MX01.fxdd.com> Hi, Where does check_ntp gets the offset? How does it compute the value? I have a weird problem: Doing an check_ntp -H host1 shows an offset which is different to the offset result of ntpdc -p host1 Thanks, -------------------------------------------------------------------------------------------------------- This message and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom it is addressed. It may contain sensitive and private proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you are not the intended recipient, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. FXDirectDealer, LLC reserves the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them. Unless otherwise stated, any pricing information given in this message is indicative only, is subject to change and does not constitute an offer to deal at any price quoted. Any reference to the terms of executed transactions should be treated as preliminary only and subject to our formal confirmation. FXDirectDealer, LLC is not responsible for any recommendation, solicitation, offer or agreement or any information about any transaction, customer account or account activity contained in this communication. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From james.mohr at elaxy.com Mon Nov 5 19:51:36 2007 From: james.mohr at elaxy.com (Mohr James) Date: Mon, 5 Nov 2007 19:51:36 +0100 Subject: Specifying a service on a different host with send_nsca Message-ID: Hi All! We have nagios 2.4 and would like to know if there is any way of specifying a service different host than the one using send_nsca. For example, the nagios server is not allowed to have contact to several customers' networks. However, we do have one machine that does have access to each network. The one machine monitors several customer machines and sends the status via send_ncsa. The problem is that the host is always the intermediate machine and not that machine that is actually being monitored. Therefore, we would like to be able to specify the actual host name when using send_nsca. Is this possible? Is there a newer version where this is possible? Any help is appreaciated. Best Regards, Jim Mohr -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Mon Nov 5 20:12:49 2007 From: marc at ena.com (Marc Powell) Date: Mon, 5 Nov 2007 13:12:49 -0600 Subject: Specifying a service on a different host withsend_nsca In-Reply-To: References: Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Mohr James > Sent: Monday, November 05, 2007 12:52 PM > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Specifying a service on a different host > withsend_nsca > > Hi All! > > > > We have nagios 2.4 and would like to know if there is any way of > specifying a service different host than the one using send_nsca. For > example, the nagios server is not allowed to have contact to several > customers' networks. However, we do have one machine that does have access > to each network. The one machine monitors several customer machines and > sends the status via send_ncsa. The problem is that the host is always the > intermediate machine and not that machine that is actually being > monitored. Therefore, we would like to be able to specify the actual host > name when using send_nsca. Is this possible? Is there a newer version > where this is possible? You must specify the host_name with any version of send_nsca that I am aware of as part of the check result data you send back to the nagios server. You just seem to have it hard coded to be a specific host for all results -- $ send_nsca --help Usage: ../bin/send_nsca [-p port] [-to to_sec] [-d delim] [-c config_file] Note: This utility is used to send passive service check results to the NSCA daemon. Servce check data that is to be sent to the NSCA daemon is read from standard input. Service check information is in the following format (tab-delimited unless overriden with -d command line argument, one entry per line): [tab][tab][tab][ newline] ^^^ it's this last bit that you need to modify to send the correct host name. Be aware that nagios will reject submissions for hosts/services that it doesn't know about so you almost certainly need to do some config re-writing to make it work. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From james.mohr at elaxy.com Mon Nov 5 20:34:36 2007 From: james.mohr at elaxy.com (Mohr James) Date: Mon, 5 Nov 2007 20:34:36 +0100 Subject: Specifying a service on a different hostwithsend_nsca In-Reply-To: References: Message-ID: > -----Urspr?ngliche Nachricht----- > Von: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] Im > Auftrag von Marc Powell > Gesendet: Montag, 5. November 2007 20:13 > An: Nagios-users at lists.sourceforge.net > Betreff: Re: [Nagios-users] Specifying a service on a > different hostwithsend_nsca > > > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users- > > bounces at lists.sourceforge.net] On Behalf Of Mohr James > > Sent: Monday, November 05, 2007 12:52 PM > > To: Nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Specifying a service on a different host > > withsend_nsca > > > > Hi All! > > > > > > > > We have nagios 2.4 and would like to know if there is any way of > > specifying a service different host than the one using > send_nsca. For > > example, the nagios server is not allowed to have contact > to several > > customers' networks. However, we do have one machine that does have > access > > to each network. The one machine monitors several customer machines > and > > sends the status via send_ncsa. The problem is that the > host is always > the > > intermediate machine and not that machine that is actually being > > monitored. Therefore, we would like to be able to specify the actual > host > > name when using send_nsca. Is this possible? Is there a > newer version > > where this is possible? > > You must specify the host_name with any version of send_nsca > that I am aware of as part of the check result data you send > back to the nagios server. You just seem to have it hard > coded to be a specific host for all results -- > > $ send_nsca --help > > Usage: ../bin/send_nsca [-p port] [-to to_sec] > [-d delim] [-c config_file] > > > > Note: > This utility is used to send passive service check results to > the NSCA daemon. > Servce check data that is to be sent to the NSCA daemon is > read from standard input. Service check information is in the > following format (tab-delimited unless overriden with -d > command line argument, one entry per line): > > [tab][tab][tab] n_output>[ > newline] > > > ^^^ it's this last bit that you need to modify to send the > correct host name. Be aware that nagios will reject > submissions for hosts/services that it doesn't know about so > you almost certainly need to do some config re-writing to > make it work. > > -- > Marc As far as I can tell from the online help and other documentation, "host_name" is the host to which you want to send the message. That is, it is the NSCA server and not the name of the host that is actually being monitored. When I run "send_nsca --help" on my machine it gives me much more text, and says: Options: = The IP address of the host running the NSCA daemon This, as well as my tests, indicate to me that with this parameter one is simply telling send_ncsa where to send the message and not the host which the service is on. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From al at its-lehmann.de Mon Nov 5 21:08:12 2007 From: al at its-lehmann.de (Arno Lehmann) Date: Mon, 05 Nov 2007 21:08:12 +0100 Subject: Specifying a service on a different hostwithsend_nsca In-Reply-To: References: Message-ID: <472F782C.8090003@its-lehmann.de> Hi, 05.11.2007 20:34,, Mohr James wrote:: >>> Therefore, we would like to be able to specify the actual >>> host >>> name when using send_nsca. Is this possible? Is there a >>> newer version >>> where this is possible? >> You must specify the host_name with any version of send_nsca >> that I am aware of as part of the check result data you send >> back to the nagios server. You just seem to have it hard >> coded to be a specific host for all results -- >> >> $ send_nsca --help >> >> Usage: ../bin/send_nsca [-p port] [-to to_sec] >> [-d delim] [-c config_file] >> >> >> >> Note: >> This utility is used to send passive service check results to >> the NSCA daemon. >> Servce check data that is to be sent to the NSCA daemon is >> read from standard input. Service check information is in the >> following format (tab-delimited unless overriden with -d >> command line argument, one entry per line): >> >> [tab][tab][tab]> n_output>[ >> newline] >> >> >> ^^^ it's this last bit that you need to modify to send the >> correct host name. Be aware that nagios will reject >> submissions for hosts/services that it doesn't know about so >> you almost certainly need to do some config re-writing to >> make it work. >> >> -- >> Marc > > > As far as I can tell from the online help and other documentation, "host_name" is the host to which you want to send the message. That is, it is the NSCA server and not the name of the host that is actually being monitored. When I run "send_nsca --help" on my machine it gives me much more text, and says: > > > Options: > = The IP address of the host running the NSCA daemon > > > This, as well as my tests, indicate to me that with this parameter one is simply telling send_ncsa where to send the message and not the host which the service is on. I disagree. I'm getting lots of service checks for different hosts, all being submitted by send_nsca on localhost. I.e. 'echo $SUBMITTED_RESULT | send_nsca 127.0.0.1 -p ... -c ...' with SUBMITTED_RESULT being lines containing different host names as first fields. In other words, host_address on the command line is definitely different to host_name in the actual results you submit. Arno -- Arno Lehmann IT-Service Lehmann www.its-lehmann.de ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.morris at hp.com Mon Nov 5 21:08:19 2007 From: patrick.morris at hp.com (Patrick Morris) Date: Mon, 5 Nov 2007 12:08:19 -0800 Subject: Specifying a service on a different hostwithsend_nsca In-Reply-To: References: Message-ID: <20071105200819.GO18464@pmorris.usa.hp.com> On Mon, 05 Nov 2007, Mohr James wrote: > As far as I can tell from the online help and other documentation, "host_name" is the host to which you want to send the message. That is, it is the NSCA server and not the name of the host that is actually being monitored. When I run "send_nsca --help" on my machine it gives me much more text, and says: > > > Options: > = The IP address of the host running the NSCA daemon > > > This, as well as my tests, indicate to me that with this parameter one is simply telling send_ncsa where to send the message and not the host which the service is on. You're misreading the help. "" appears in the NSCA commend line, not in the data you pass to NSCA. Note the difference in the names for the parameters; specifically where "" is used, and where "" is used. "" is, as was mentioned earlier, the name of the host to which the check results apply, and *not* the NSCA server. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From alexus at gmail.com Mon Nov 5 22:11:04 2007 From: alexus at gmail.com (alexus) Date: Mon, 5 Nov 2007 16:11:04 -0500 Subject: check_file_age Message-ID: <6ae50c2d0711051311i78a9ca87u44832c637db8c48d@mail.gmail.com> what if i need to check if file is no more then "X" Mb, how would I do that? because with check_file_age it only allowes you to check if it at least "X" amount of bytes, not the other way around. -- http://alexus.org/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Mon Nov 5 22:19:01 2007 From: ae at op5.se (Andreas Ericsson) Date: Mon, 05 Nov 2007 22:19:01 +0100 Subject: check_file_age In-Reply-To: <6ae50c2d0711051311i78a9ca87u44832c637db8c48d@mail.gmail.com> References: <6ae50c2d0711051311i78a9ca87u44832c637db8c48d@mail.gmail.com> Message-ID: <472F88C5.2050603@op5.se> alexus wrote: > what if i need to check if file is no more then "X" Mb, how would I do > that? because with check_file_age it only allowes you to check if it > at least "X" amount of bytes, not the other way around. > Use negate. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From azoecalvo at yahoo.com.ar Mon Nov 5 23:44:22 2007 From: azoecalvo at yahoo.com.ar (Alicia Calvo) Date: Mon, 5 Nov 2007 19:44:22 -0300 (ART) Subject: NC_net Message-ID: <982266.608.qm@web33012.mail.mud.yahoo.com> Hi, I work with nagios 2.9 and nc_net for eventlog in windows. I installed client version 4.10 or 3,xx. and the plugin is version 4,x. For example my command is: ./check_nt -H 192.168.1.10 -v EVENTLOG -l "Application,Information,5,0,0,1,9539". 9539 is realy 'error id' in the windows event view, but my command show me numbers like these, for example: 124567984, 364785912. The text of messages that he show me is correct but the number is not. If you have any idea please tell me. AC. --------------------------------- Los referentes m?s importantes en compra/venta de autos se juntaron: Demotores y Yahoo!.Ahora comprar o vender tu auto es m?s f?cil. Visit? http://ar.autos.yahoo.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From amontibello at gmail.com Tue Nov 6 03:32:17 2007 From: amontibello at gmail.com (Anthony Montibello) Date: Mon, 5 Nov 2007 21:32:17 -0500 Subject: NC_net In-Reply-To: <982266.608.qm@web33012.mail.mud.yahoo.com> References: <982266.608.qm@web33012.mail.mud.yahoo.com> Message-ID: Hi Alicia, This Has been resolved in the latest version v4.1a Under the command EVENTLOG_NEW, while the EVENTLOG command was left as to not disrupt anyone who already configured workarounds for this issue. Use the new syntex EVENTLOG_NEW Please check documents and HELP command check the input syntex via check_nc_net --help=EVENTLOG_NEW THe problem was caused by the Event ID field in Event viewer actually being a MASKED result from the internal Data field. However this was not well documented by Microsoft at the time EventLogs was implemented. >From Latest Whats New in NC_NEt: http://sourceforge.net/docman/display_doc.php?docid=48793&group_id=160140 -Added EVENTLOG_NEW this is a new and improved EventLog check, it is issued as a new command because the expected input has been simplified. Added ability to check range to EventID. -EVENTLOG_NEW, Updated the EventID to preform properly. EventID has changed in Dot Net 2.0 compared to Dot Net 1.0 and 1.1. -EVENTLOG_NEW, Added ability to change the Regular expression options into the startup.cfg, ability to accept a list of REgular expressions. Good Luck Tony (author of NC_NEt) On 11/5/07, Alicia Calvo wrote: > > Hi, I work with nagios 2.9 and nc_net for eventlog in windows. I installed > client version 4.10 or 3,xx. and the plugin is version 4,x. > > For example my command is: > ./check_nt -H 192.168.1.10 -v EVENTLOG -l > "Application,Information,5,0,0,1,9539". > > 9539 is realy 'error id' in the windows event view, but my command show > me numbers like these, for example: 124567984, 364785912. > The text of messages that he show me is correct but the number is not. > If you have any idea please tell me. > > AC. > > ------------------------------ > > Los referentes m?s importantes en compra/venta de autos se juntaron: > Demotores y Yahoo!. Ahora comprar o vender tu auto es m?s f?cil. > Visit? http://ar.autos.yahoo.com/ > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Greg.Redder at ColoState.EDU Tue Nov 6 07:11:35 2007 From: Greg.Redder at ColoState.EDU (Redder,Greg) Date: Mon, 5 Nov 2007 23:11:35 -0700 Subject: Nagios killing xmessage Message-ID: <31106EACA9CB89429547C16564B3F40E3BCE39B8B7@EVS1.ColoState.EDU> We're running Nagios 2.9. We have a command configured: define command { command_name host-notify-by-xmessage command_line /etc/nagios/scripts/host-notify-by-xmessage "$HOSTSTATE$" "$HOSTNAME$" "$HOSTALIAS$" "$DATETIME$" } The "host-notify-by-xmessage" is a shell script that pulls in a text file and displays that text file along with the host and the problem via an xmessage to an xdisplay. This all works fine when run from the command line. It even works when invoked by nagios, but when nagios invokes it, it also kills the process in about 30 seconds. This wasn't a problem on Nagios 1.x. We recently upgraded to 2.9 and ran into this issue. I've tried nohup'ing the xmessage, but no luck - it seems like the nagios process kills it no matter what!? I've tried converting the script to perl and using 'system' or 'exec' calls, but that didn't fix the problem either. Does anyone have a workaround for this or a suggestion on things to try, please? Thank you, Greg Redder Network Analyst Colorado State University =============================================================================== Greg Redder Academic Computing & Networking Services Colorado State University, ACNS Phone:(970)491-7222 FAX: (970)491-1958 601 S. Howes, Room 625 E-mail: redder at yuma.colostate.edu Fort Collins, CO 80523 PGP Fprint:CD62EAE6227D96FC7C232B16DFE3B5D9B2F64352 =============================================================================== ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Tue Nov 6 10:30:48 2007 From: ae at op5.se (Andreas Ericsson) Date: Tue, 06 Nov 2007 10:30:48 +0100 Subject: Nagios killing xmessage In-Reply-To: <31106EACA9CB89429547C16564B3F40E3BCE39B8B7@EVS1.ColoState.EDU> References: <31106EACA9CB89429547C16564B3F40E3BCE39B8B7@EVS1.ColoState.EDU> Message-ID: <47303448.8090604@op5.se> Redder,Greg wrote: > We're running Nagios 2.9. We have a command configured: > > define command { > command_name host-notify-by-xmessage > command_line /etc/nagios/scripts/host-notify-by-xmessage "$HOSTSTATE$" "$HOSTNAME$" "$HOSTALIAS$" "$DATETIME$" > } > > The "host-notify-by-xmessage" is a shell script that pulls in a text file and displays that text file along with the host and the problem via an xmessage to an xdisplay. This all works fine when run from the command line. It even works when invoked by nagios, but when nagios invokes it, it also kills the process in about 30 seconds. This wasn't a problem on Nagios 1.x. We recently upgraded to 2.9 and ran into this issue. I've tried nohup'ing the xmessage, but no luck - it seems like the nagios process kills it no matter what!? I've tried converting the script to perl and using 'system' or 'exec' calls, but that didn't fix the problem either. > > Does anyone have a workaround for this or a suggestion on things to try, please? > xmessage & Nagios must kill the notification commands if they run for too long, otherwise each notification will leak filedescriptors, and Nagios will, eventually, no longer be able to run any commands at all. Don't create notification scripts that never exit (under normal circumstances). You'll just eat resources for nothing. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From m.borsani at it.net Tue Nov 6 11:43:05 2007 From: m.borsani at it.net (Marco Borsani) Date: Tue, 6 Nov 2007 11:43:05 +0100 Subject: scripts to schedule downtime via crontab Message-ID: <00bb01c82061$d05fb970$0900d40a@intranet.it.net> Hi all On my nagios 1.4.1 I am using script to schedule downtime like these: ---------------------------------- HOST Downtime #!/bin/sh datetime=$(/usr/bin/perl -e 'print(time)') hostname=$1 start_time=$datetime duration=$2 (( end_time = $datetime + $duration )) fixed=1 comment_author=nagios comment_data="Downtime di Host" echocmd="/bin/echo" CommandFile="/usr/local/nagios2/var/rw/nagios.cmd" # create the command line to add to the command file cmdline="[$datetime] SCHEDULE_HOST_DOWNTIME;$hostname;$start_time;$end_time;$fixed;$duration;$com ment_auth or;$comment_data" # append the command to the end of the command file `$echocmd $cmdline >> $CommandFile` chown nagios:nagiocmd $CommandFile -------------------------------------- SERVICE Downtime #!/bin/sh datetime=$(/usr/bin/perl -e 'print(time)') hostname=$1 service_des=$2 start_time=$datetime duration=$3 (( end_time = $datetime + $duration )) fixed=1 comment_author=nagios comment_data="Downtime di Servizio" echocmd="/bin/echo" CommandFile="/usr/local/nagios2/var/rw/nagios.cmd" # create the command line to add to the command file cmdline="[$datetime] SCHEDULE_SVC_DOWNTIME;$hostname;$service_des;$start_time;$end_time;$fixed;$d uration;$ comment_author;$comment_data" # append the command to the end of the command file `$echocmd $cmdline >> $CommandFile` chown nagios:nagiocmd $CommandFile ----------------------------------- These scripts do not work on Nagios 2.10 ... have anyone something similar for Nagios 2.10 ? Regards Marco Borsani Technical Operation tel.: +390104310115 e-fax: +390683175950 * m.borsani at it.net ITnet S.r.l. Direzione e Coordinamento di Weather Investments S.p.A. Via Pacinotti, 39 16151 - Genova In ottemperanza al D. lgs 196/03 in materia di protezione dei dati personali, le informazioni contenute in questo messaggio sono strettamente riservate e sono esclusivamente indirizzate al destinatario indicato (oppure alla persona responsabile di rimetterlo al destinatario). Qualsiasi uso, riproduzione o divulgazione di questo messaggio ? vietata. Nel caso in cui aveste ricevuto questa mail per errore, Vi invitiamo ad avvertire il mittente al pi? presto a mezzo posta elettronica e distruggere il messaggio erroneamente ricevuto. According to Italy?s new data protection code (Legislative Decree no. 196/2003) in force on January 1st 2004, Italian Law 196/03 concerning privacy, the information contained in this e-mail is confidential and is intended for the addressee only. If you are not the correct recipient, please note that any use, dissemination or copy of this document/information is strictly prohibited.If you have received this message in error, you should destroy it and please notify us immediately by e-mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gcoochey at sapphire.gi Tue Nov 6 11:55:26 2007 From: gcoochey at sapphire.gi (Giles Coochey) Date: Tue, 6 Nov 2007 11:55:26 +0100 Subject: scripts to schedule downtime via crontab In-Reply-To: <00bb01c82061$d05fb970$0900d40a@intranet.it.net> References: <00bb01c82061$d05fb970$0900d40a@intranet.it.net> Message-ID: <9D30659ABCA7FB428CF91E386C3A57449A780A@hermes.sapphire-int.gi> From: http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?command_id=118 #!/bin/sh # This is a sample shell script showing how you can submit the SCHEDULE_HOST_DOWNTIME command # to Nagios. Adjust variables to fit your environment as necessary. now=`date +%s` commandfile='/usr/local/nagios/var/rw/nagios.cmd' /bin/printf "[%lu] SCHEDULE_HOST_DOWNTIME;host1;1110741500;1110748700;0;0;7200;Some One;Some Downtime Comment\n" $now > $commandfile It appears to me that there are some extra parameters in there from version 1.4.1 ________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Marco Borsani Sent: 06 November 2007 11:43 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] scripts to schedule downtime via crontab Hi all On my nagios 1.4.1 I am using script to schedule downtime like these: ---------------------------------- HOST Downtime #!/bin/sh datetime=$(/usr/bin/perl -e 'print(time)') hostname=$1 start_time=$datetime duration=$2 (( end_time = $datetime + $duration )) fixed=1 comment_author=nagios comment_data="Downtime di Host" echocmd="/bin/echo" CommandFile="/usr/local/nagios2/var/rw/nagios.cmd" # create the command line to add to the command file cmdline="[$datetime] SCHEDULE_HOST_DOWNTIME;$hostname;$start_time;$end_time;$fixed;$duration;$comment_auth or;$comment_data" # append the command to the end of the command file `$echocmd $cmdline >> $CommandFile` chown nagios:nagiocmd $CommandFile -------------------------------------- SERVICE Downtime #!/bin/sh datetime=$(/usr/bin/perl -e 'print(time)') hostname=$1 service_des=$2 start_time=$datetime duration=$3 (( end_time = $datetime + $duration )) fixed=1 comment_author=nagios comment_data="Downtime di Servizio" echocmd="/bin/echo" CommandFile="/usr/local/nagios2/var/rw/nagios.cmd" # create the command line to add to the command file cmdline="[$datetime] SCHEDULE_SVC_DOWNTIME;$hostname;$service_des;$start_time;$end_time;$fixed;$duration;$ comment_author;$comment_data" # append the command to the end of the command file `$echocmd $cmdline >> $CommandFile` chown nagios:nagiocmd $CommandFile ----------------------------------- These scripts do not work on Nagios 2.10 ... have anyone something similar for Nagios 2.10 ? Regards Marco Borsani Technical Operation tel.: +390104310115 e-fax: +390683175950 * m.borsani at it.net ITnet S.r.l. Direzione e Coordinamento di Weather Investments S.p.A. Via Pacinotti, 39 16151 - Genova In ottemperanza al D. lgs 196/03 in materia di protezione dei dati personali, le informazioni contenute in questo messaggio sono strettamente riservate e sono esclusivamente indirizzate al destinatario indicato (oppure alla persona responsabile di rimetterlo al destinatario). Qualsiasi uso, riproduzione o divulgazione di questo messaggio ? vietata. Nel caso in cui aveste ricevuto questa mail per errore, Vi invitiamo ad avvertire il mittente al pi? presto a mezzo posta elettronica e distruggere il messaggio erroneamente ricevuto. According to Italy's new data protection code (Legislative Decree no. 196/2003) in force on January 1st 2004, Italian Law 196/03 concerning privacy, the information contained in this e-mail is confidential and is intended for the addressee only. If you are not the correct recipient, please note that any use, dissemination or copy of this document/information is strictly prohibited.If you have received this message in error, you should destroy it and please notify us immediately by e-mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jguermonprez at pagesjaunes.fr Tue Nov 6 11:57:15 2007 From: jguermonprez at pagesjaunes.fr (jguermonprez at pagesjaunes.fr) Date: Tue, 6 Nov 2007 11:57:15 +0100 Subject: Acknowledgement of multiple alarms Message-ID: <006f01c82063$cd8b9ff0$720a230a@micro.pj.fr> Hi, I would like to know if there's a way in Nagios that we could acknowledge multiple alarms at the same time ? --- J?r?my --------------------------------------------- Ce message et toutes les pieces jointes (ci-apres le "message") sont confidentiels et etablis a l'intention exclusive de ses destinataires.Toute utilisation ou diffusion non autorisee est interdite. Tout message electronique est susceptible d'alteration. Le Groupe PagesJaunes decline toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie. Si vous n'etes pas destinataire de ce message, merci de le detruire immediatement. --------------------------------------------- This message and any attachments (the "message") are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited.Messages are susceptible to alteration. Neither PagesJaunes Group shall be liable for the message if altered, changed or falsified. If you are not addressee of this message, please cancel it immediately. --------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lacoste at miage.univ-paris12.fr Tue Nov 6 12:22:04 2007 From: lacoste at miage.univ-paris12.fr (Thierry Lacoste) Date: Tue, 6 Nov 2007 12:22:04 +0100 Subject: issue with check_oracle and check_by_ssh Message-ID: <200711061222.05174.lacoste@miage.univ-paris12.fr> I have two linux boxes with oracle. I'd like to make them cross-check_oracle each other with check_by_ssh from my nagios host. Both oracle boxes have the following tnsnames.ora SID10 = ? (DESCRIPTION = ? ? (ADDRESS = (PROTOCOL = TCP)(HOST = hostA)(PORT = 1521)) ? ? (CONNECT_DATA = ? ? ? (SERVER = DEDICATED) ? ? ? (SERVICE_NAME = SID10INT) ? ? ) ? ) ORCL = ? (DESCRIPTION = ? ? (ADDRESS = (PROTOCOL = TCP)(HOST = hostB)(PORT = 1521)) ? ? (CONNECT_DATA = ? ? ? (SERVER = DEDICATED) ? ? ? (SERVICE_NAME = orcl) ? ? ) ? ) Host A has oracke 10.1.0 and Host B has oracle 10.2.0 Form my nagios host I have no problem to make Host A check it's local db as well as the remote db: ./check_by_ssh -l oracle -H IP.OF.HOST.A -i /var/spool/nagios/.ssh/id_rsa -C "/usr/lib/nagios/plugins/check_oracle --tns sid10" OK - reply time 0 msec from sid10 ./check_by_ssh -l oracle -H IP.OF.HOST.A -i /var/spool/nagios/.ssh/id_rsa -C "/usr/lib/nagios/plugins/check_oracle --tns orcl" OK - reply time 10 msec from orcl With Host B I can check it's own db but not the remote one: ./check_by_ssh -l oracle -H IP.OF.HOST.B -i /var/spool/nagios/.ssh/id_rsa -C "/usr/lib/nagios/plugins/check_oracle --tns orcl" OK - reply time 0 msec from orcl ./check_by_ssh -l oracle -H IP.OF.HOST.B -i /var/spool/nagios/.ssh/id_rsa -C "/usr/lib/nagios/plugins/check_oracle --tns sid10" Cannot determine ORACLE_HOME for sid sid10 Now from a terminal on Host B as user oracle: /usr/lib/nagios/plugins/check_oracle --tns orcl OK - reply time 0 msec from orcl /usr/lib/nagios/plugins/check_oracle --tns sid10 OK - reply time 10 msec from sid10 Any idea what's going wrong? Regards, Thierry. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mark.duffy at TEWV.NHS.UK Tue Nov 6 13:19:36 2007 From: mark.duffy at TEWV.NHS.UK (Mark Duffy) Date: Tue, 6 Nov 2007 12:19:36 -0000 Subject: check_snmp Message-ID: Afternoon all, I am currently trying to get my head round doing checks with SNMP. I have so far managed to get Nagios to display the required data but it is showing the array as Critical or Warning unless I set the -w & -c levels to 2 (which is status OK), I somehow feel this is not right. How do I go about adding more than one variable to the critical level for example Critical levels would be 3 & 4 and a warning would be 1 ( normally set as -w 1) Here is the check I am currently running and the workaround to get an OK status for a variable of 2: define command{ command_name check_cpq_array command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o 1.3.6.1.4.1.232.3.2.2.1.1.6.4 -C public -w 2 -c 2 } I think I have confused myself and probably the rest of you in this e-mail, if so I apologize. Regards, ? Mark Duffy ? Tees, Esk And Wear Valleys NHS Trust Flatts Lane Centre Flatts Lane Normanby Middlesbrough TS6 0SZ Tel: 01642 283548 This email may contain confidential information and may be read, copied and used only by the intended recipient. The information in this email transmission may not be legally revealed and is intended only for the use of the individual(s) named above. If you are not the intended recipient you are hereby notified that any use, dissemination, distribution or copying of this email message or its information is strictly prohibited. If you have received this email in error please notify the sender by reply. Delete this message from your email system(s) and do not disclose its contents to any person. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jaimeventura at ipp.pt Tue Nov 6 13:59:56 2007 From: jaimeventura at ipp.pt (Jaime Ventura) Date: Tue, 06 Nov 2007 12:59:56 +0000 Subject: Service status on status map. Message-ID: <4730654C.5050009@ipp.pt> Hello, On the status map I can see if a host is up or down. Is there any way to have some visual information to let me know that at least one service is not ok, on each host? Thanks, Jaime ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From m.borsani at it.net Tue Nov 6 14:35:43 2007 From: m.borsani at it.net (Marco Borsani) Date: Tue, 6 Nov 2007 14:35:43 +0100 Subject: R: scripts to schedule downtime via crontab In-Reply-To: <9D30659ABCA7FB428CF91E386C3A57449A780A@hermes.sapphire-int.gi> References: <00bb01c82061$d05fb970$0900d40a@intranet.it.net> <9D30659ABCA7FB428CF91E386C3A57449A780A@hermes.sapphire-int.gi> Message-ID: <010901c82079$ee2f7b80$0900d40a@intranet.it.net> Hi You post a script really similar to mine. I am looking for the www.nagios.org site, but I do not find nor example regarding 2.10 version neither which are "extra parameters" to pass to the command file. Regards Marco _____ Da: Giles Coochey [mailto:gcoochey at sapphire.gi] Inviato: marted? 6 novembre 2007 11.55 A: Marco Borsani; Nagios List Oggetto: RE: [Nagios-users] scripts to schedule downtime via crontab From: http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?command _id=118 #!/bin/sh # This is a sample shell script showing how you can submit the SCHEDULE_HOST_DOWNTIME command # to Nagios. Adjust variables to fit your environment as necessary. now=`date +%s` commandfile='/usr/local/nagios/var/rw/nagios.cmd' /bin/printf "[%lu] SCHEDULE_HOST_DOWNTIME;host1;1110741500;1110748700;0;0;7200;Some One;Some Downtime Comment\n" $now > $commandfile It appears to me that there are some extra parameters in there from version 1.4.1 _____ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Marco Borsani Sent: 06 November 2007 11:43 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] scripts to schedule downtime via crontab Hi all On my nagios 1.4.1 I am using script to schedule downtime like these: ---------------------------------- HOST Downtime #!/bin/sh datetime=$(/usr/bin/perl -e 'print(time)') hostname=$1 start_time=$datetime duration=$2 (( end_time = $datetime + $duration )) fixed=1 comment_author=nagios comment_data="Downtime di Host" echocmd="/bin/echo" CommandFile="/usr/local/nagios2/var/rw/nagios.cmd" # create the command line to add to the command file cmdline="[$datetime] SCHEDULE_HOST_DOWNTIME;$hostname;$start_time;$end_time;$fixed;$duration;$com ment_auth or;$comment_data" # append the command to the end of the command file `$echocmd $cmdline >> $CommandFile` chown nagios:nagiocmd $CommandFile -------------------------------------- SERVICE Downtime #!/bin/sh datetime=$(/usr/bin/perl -e 'print(time)') hostname=$1 service_des=$2 start_time=$datetime duration=$3 (( end_time = $datetime + $duration )) fixed=1 comment_author=nagios comment_data="Downtime di Servizio" echocmd="/bin/echo" CommandFile="/usr/local/nagios2/var/rw/nagios.cmd" # create the command line to add to the command file cmdline="[$datetime] SCHEDULE_SVC_DOWNTIME;$hostname;$service_des;$start_time;$end_time;$fixed;$d uration;$ comment_author;$comment_data" # append the command to the end of the command file `$echocmd $cmdline >> $CommandFile` chown nagios:nagiocmd $CommandFile ----------------------------------- These scripts do not work on Nagios 2.10 ... have anyone something similar for Nagios 2.10 ? Regards Marco Borsani Technical Operation tel.: +390104310115 e-fax: +390683175950 * m.borsani at it.net ITnet S.r.l. Direzione e Coordinamento di Weather Investments S.p.A. Via Pacinotti, 39 16151 - Genova In ottemperanza al D. lgs 196/03 in materia di protezione dei dati personali, le informazioni contenute in questo messaggio sono strettamente riservate e sono esclusivamente indirizzate al destinatario indicato (oppure alla persona responsabile di rimetterlo al destinatario). Qualsiasi uso, riproduzione o divulgazione di questo messaggio ? vietata. Nel caso in cui aveste ricevuto questa mail per errore, Vi invitiamo ad avvertire il mittente al pi? presto a mezzo posta elettronica e distruggere il messaggio erroneamente ricevuto. According to Italy?s new data protection code (Legislative Decree no. 196/2003) in force on January 1st 2004, Italian Law 196/03 concerning privacy, the information contained in this e-mail is confidential and is intended for the addressee only. If you are not the correct recipient, please note that any use, dissemination or copy of this document/information is strictly prohibited.If you have received this message in error, you should destroy it and please notify us immediately by e-mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gcoochey at sapphire.gi Tue Nov 6 14:39:51 2007 From: gcoochey at sapphire.gi (Giles Coochey) Date: Tue, 6 Nov 2007 14:39:51 +0100 Subject: scripts to schedule downtime via crontab In-Reply-To: <010901c82079$ee2f7b80$0900d40a@intranet.it.net> References: <00bb01c82061$d05fb970$0900d40a@intranet.it.net> <9D30659ABCA7FB428CF91E386C 3A57449A780A@hermes.sapphire-int.gi> <010901c82079$ee2f7b80$0900d40a@intranet.it.net> Message-ID: <9D30659ABCA7FB428CF91E386C3A57449A781D@hermes.sapphire-int.gi> >From the page I linked to: "Set the "trigger_id" argument to zero (0) if the downtime for the specified host should not be triggered by another downtime entry." I don't believe you have a trigger_id set in your script. Try inserting it and see whether that resolves the issue. Check this page, for a similar variable in your service downtime script: http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?command_id=119 ________________________________ From: Marco Borsani [mailto:m.borsani at it.net] Sent: 06 November 2007 14:36 To: Giles Coochey; 'Nagios List' Subject: R: [Nagios-users] scripts to schedule downtime via crontab Hi You post a script really similar to mine. I am looking for the www.nagios.org site, but I do not find nor example regarding 2.10 version neither which are "extra parameters" to pass to the command file. Regards Marco ________________________________ Da: Giles Coochey [mailto:gcoochey at sapphire.gi] Inviato: marted? 6 novembre 2007 11.55 A: Marco Borsani; Nagios List Oggetto: RE: [Nagios-users] scripts to schedule downtime via crontab From: http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?command_id=118 #!/bin/sh # This is a sample shell script showing how you can submit the SCHEDULE_HOST_DOWNTIME command # to Nagios. Adjust variables to fit your environment as necessary. now=`date +%s` commandfile='/usr/local/nagios/var/rw/nagios.cmd' /bin/printf "[%lu] SCHEDULE_HOST_DOWNTIME;host1;1110741500;1110748700;0;0;7200;Some One;Some Downtime Comment\n" $now > $commandfile It appears to me that there are some extra parameters in there from version 1.4.1 ________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Marco Borsani Sent: 06 November 2007 11:43 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] scripts to schedule downtime via crontab Hi all On my nagios 1.4.1 I am using script to schedule downtime like these: ---------------------------------- HOST Downtime #!/bin/sh datetime=$(/usr/bin/perl -e 'print(time)') hostname=$1 start_time=$datetime duration=$2 (( end_time = $datetime + $duration )) fixed=1 comment_author=nagios comment_data="Downtime di Host" echocmd="/bin/echo" CommandFile="/usr/local/nagios2/var/rw/nagios.cmd" # create the command line to add to the command file cmdline="[$datetime] SCHEDULE_HOST_DOWNTIME;$hostname;$start_time;$end_time;$fixed;$duration;$comment_auth or;$comment_data" # append the command to the end of the command file `$echocmd $cmdline >> $CommandFile` chown nagios:nagiocmd $CommandFile -------------------------------------- SERVICE Downtime #!/bin/sh datetime=$(/usr/bin/perl -e 'print(time)') hostname=$1 service_des=$2 start_time=$datetime duration=$3 (( end_time = $datetime + $duration )) fixed=1 comment_author=nagios comment_data="Downtime di Servizio" echocmd="/bin/echo" CommandFile="/usr/local/nagios2/var/rw/nagios.cmd" # create the command line to add to the command file cmdline="[$datetime] SCHEDULE_SVC_DOWNTIME;$hostname;$service_des;$start_time;$end_time;$fixed;$duration;$ comment_author;$comment_data" # append the command to the end of the command file `$echocmd $cmdline >> $CommandFile` chown nagios:nagiocmd $CommandFile ----------------------------------- These scripts do not work on Nagios 2.10 ... have anyone something similar for Nagios 2.10 ? Regards Marco Borsani Technical Operation tel.: +390104310115 e-fax: +390683175950 * m.borsani at it.net ITnet S.r.l. Direzione e Coordinamento di Weather Investments S.p.A. Via Pacinotti, 39 16151 - Genova In ottemperanza al D. lgs 196/03 in materia di protezione dei dati personali, le informazioni contenute in questo messaggio sono strettamente riservate e sono esclusivamente indirizzate al destinatario indicato (oppure alla persona responsabile di rimetterlo al destinatario). Qualsiasi uso, riproduzione o divulgazione di questo messaggio ? vietata. Nel caso in cui aveste ricevuto questa mail per errore, Vi invitiamo ad avvertire il mittente al pi? presto a mezzo posta elettronica e distruggere il messaggio erroneamente ricevuto. According to Italy's new data protection code (Legislative Decree no. 196/2003) in force on January 1st 2004, Italian Law 196/03 concerning privacy, the information contained in this e-mail is confidential and is intended for the addressee only. If you are not the correct recipient, please note that any use, dissemination or copy of this document/information is strictly prohibited.If you have received this message in error, you should destroy it and please notify us immediately by e-mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From m.borsani at it.net Tue Nov 6 15:28:13 2007 From: m.borsani at it.net (Marco Borsani) Date: Tue, 6 Nov 2007 15:28:13 +0100 Subject: R: scripts to schedule downtime via crontab In-Reply-To: <9D30659ABCA7FB428CF91E386C3A57449A781D@hermes.sapphire-int.gi> References: <00bb01c82061$d05fb970$0900d40a@intranet.it.net> <9D30659ABCA7FB428CF91E386C3A57449A780A@hermes.sapphire-int.gi> <010901c82079$ee2f7b80$0900d40a@intranet.it.net> <9D30659ABCA7FB428CF91E386C3A57449A781D@hermes.sapphire-int.gi> Message-ID: <012801c82081$4431e610$0900d40a@intranet.it.net> Few minutes ago I found in the logs my fault... exactly that one you suggest now, the trigger_id I made many tests, all is going well now. Marco _____ Da: Giles Coochey [mailto:gcoochey at sapphire.gi] Inviato: marted? 6 novembre 2007 14.40 A: Marco Borsani; Nagios List Oggetto: RE: [Nagios-users] scripts to schedule downtime via crontab >From the page I linked to: ?Set the "trigger_id" argument to zero (0) if the downtime for the specified host should not be triggered by another downtime entry.? I don?t believe you have a trigger_id set in your script. Try inserting it and see whether that resolves the issue. Check this page, for a similar variable in your service downtime script: http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?command _id=119 _____ From: Marco Borsani [mailto:m.borsani at it.net] Sent: 06 November 2007 14:36 To: Giles Coochey; 'Nagios List' Subject: R: [Nagios-users] scripts to schedule downtime via crontab Hi You post a script really similar to mine. I am looking for the www.nagios.org site, but I do not find nor example regarding 2.10 version neither which are "extra parameters" to pass to the command file. Regards Marco _____ Da: Giles Coochey [mailto:gcoochey at sapphire.gi] Inviato: marted? 6 novembre 2007 11.55 A: Marco Borsani; Nagios List Oggetto: RE: [Nagios-users] scripts to schedule downtime via crontab From: http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?command _id=118 #!/bin/sh # This is a sample shell script showing how you can submit the SCHEDULE_HOST_DOWNTIME command # to Nagios. Adjust variables to fit your environment as necessary. now=`date +%s` commandfile='/usr/local/nagios/var/rw/nagios.cmd' /bin/printf "[%lu] SCHEDULE_HOST_DOWNTIME;host1;1110741500;1110748700;0;0;7200;Some One;Some Downtime Comment\n" $now > $commandfile It appears to me that there are some extra parameters in there from version 1.4.1 _____ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Marco Borsani Sent: 06 November 2007 11:43 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] scripts to schedule downtime via crontab Hi all On my nagios 1.4.1 I am using script to schedule downtime like these: ---------------------------------- HOST Downtime #!/bin/sh datetime=$(/usr/bin/perl -e 'print(time)') hostname=$1 start_time=$datetime duration=$2 (( end_time = $datetime + $duration )) fixed=1 comment_author=nagios comment_data="Downtime di Host" echocmd="/bin/echo" CommandFile="/usr/local/nagios2/var/rw/nagios.cmd" # create the command line to add to the command file cmdline="[$datetime] SCHEDULE_HOST_DOWNTIME;$hostname;$start_time;$end_time;$fixed;$duration;$com ment_auth or;$comment_data" # append the command to the end of the command file `$echocmd $cmdline >> $CommandFile` chown nagios:nagiocmd $CommandFile -------------------------------------- SERVICE Downtime #!/bin/sh datetime=$(/usr/bin/perl -e 'print(time)') hostname=$1 service_des=$2 start_time=$datetime duration=$3 (( end_time = $datetime + $duration )) fixed=1 comment_author=nagios comment_data="Downtime di Servizio" echocmd="/bin/echo" CommandFile="/usr/local/nagios2/var/rw/nagios.cmd" # create the command line to add to the command file cmdline="[$datetime] SCHEDULE_SVC_DOWNTIME;$hostname;$service_des;$start_time;$end_time;$fixed;$d uration;$ comment_author;$comment_data" # append the command to the end of the command file `$echocmd $cmdline >> $CommandFile` chown nagios:nagiocmd $CommandFile ----------------------------------- These scripts do not work on Nagios 2.10 ... have anyone something similar for Nagios 2.10 ? Regards Marco Borsani Technical Operation tel.: +390104310115 e-fax: +390683175950 * m.borsani at it.net ITnet S.r.l. Direzione e Coordinamento di Weather Investments S.p.A. Via Pacinotti, 39 16151 - Genova In ottemperanza al D. lgs 196/03 in materia di protezione dei dati personali, le informazioni contenute in questo messaggio sono strettamente riservate e sono esclusivamente indirizzate al destinatario indicato (oppure alla persona responsabile di rimetterlo al destinatario). Qualsiasi uso, riproduzione o divulgazione di questo messaggio ? vietata. Nel caso in cui aveste ricevuto questa mail per errore, Vi invitiamo ad avvertire il mittente al pi? presto a mezzo posta elettronica e distruggere il messaggio erroneamente ricevuto. According to Italy?s new data protection code (Legislative Decree no. 196/2003) in force on January 1st 2004, Italian Law 196/03 concerning privacy, the information contained in this e-mail is confidential and is intended for the addressee only. If you are not the correct recipient, please note that any use, dissemination or copy of this document/information is strictly prohibited.If you have received this message in error, you should destroy it and please notify us immediately by e-mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sebelk at gmail.com Tue Nov 6 16:24:24 2007 From: sebelk at gmail.com (Sergio Belkin) Date: Tue, 6 Nov 2007 12:24:24 -0300 Subject: snmp version 3 Message-ID: <8c6f7f450711060724p27c2aef8o6798700787c2721c@mail.gmail.com> Hi, I'd want to know is nagios supports snmpv3. Thanks in advance. Greets. -- -- Open Kairos http://www.openkairos.com Watch More TV http://sebelk.blogspot.com Sergio Belkin - ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From paul.weaver at bbc.co.uk Tue Nov 6 16:39:57 2007 From: paul.weaver at bbc.co.uk (Paul Weaver) Date: Tue, 6 Nov 2007 15:39:57 -0000 Subject: check_hd (free diskspace via snmp) reporting wrong values Message-ID: I use a slightly modified (allow cheks of "/var" as well as "c:") check_hd plugin to check disk space on both windows and unix. It works fine for the most part, except for a windows machine with 2 partitions. The E: partition report is fine OK: hd e:\.* 1% full, 27.4GB free. Warn at 85%, Critical at 95% The C partition wasn't OK: hd c:\.* 83% full, 0.7GB free. Warn at 85%, Critical at 95% Investigating revealed the plugin working correctly DBG: fullsize 8388447 * 512 = 4294884864 DBG: usedsize 6984708 * 512 = 3576170496 However the C: drive wasn't using 3.5G, it was using about 210*6984708 So I doubt it's the allocationunit that's a problem. It now reports the correct value, which may be linked to a restart of the snmp service. OK: hd c:\.* 65% full, 1.4GB free. Warn at 85%, Critical at 95% Has anyone seen this kind of behavior before? http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Tue Nov 6 16:43:37 2007 From: ae at op5.se (Andreas Ericsson) Date: Tue, 06 Nov 2007 16:43:37 +0100 Subject: snmp version 3 In-Reply-To: <8c6f7f450711060724p27c2aef8o6798700787c2721c@mail.gmail.com> References: <8c6f7f450711060724p27c2aef8o6798700787c2721c@mail.gmail.com> Message-ID: <47308BA9.8060109@op5.se> Sergio Belkin wrote: > Hi, I'd want to know is nagios supports snmpv3. Technically, no. In practice, yes. > Thanks in advance. > You're welcome. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Greg.Redder at ColoState.EDU Tue Nov 6 17:01:35 2007 From: Greg.Redder at ColoState.EDU (Redder,Greg) Date: Tue, 6 Nov 2007 09:01:35 -0700 Subject: Nagios killing xmessage In-Reply-To: <47303448.8090604@op5.se> References: <31106EACA9CB89429547C16564B3F40E3BCE39B8B7@EVS1.ColoState.EDU> <47303448.8090604@op5.se> Message-ID: <31106EACA9CB89429547C16564B3F40E3BCE39B8F8@EVS1.ColoState.EDU> Andreas, Thank you for the response. Unfortunately backgrounding was the first thing I tried. The pid is still owened by nagios and thus I thought that a nohup would work since the parent pid becomes 1. No luck Nagios still seems to kill it. I thought nohup would be the trick :-( --Greg -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Andreas Ericsson Sent: Tuesday, November 06, 2007 2:31 AM To: Redder,Greg Cc: Duffy,Richard; Farnell,Jim; dick hill; Nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Nagios killing xmessage Redder,Greg wrote: > We're running Nagios 2.9. We have a command configured: > > define command { > command_name host-notify-by-xmessage > command_line /etc/nagios/scripts/host-notify-by-xmessage "$HOSTSTATE$" "$HOSTNAME$" "$HOSTALIAS$" "$DATETIME$" > } > > The "host-notify-by-xmessage" is a shell script that pulls in a text file and displays that text file along with the host and the problem via an xmessage to an xdisplay. This all works fine when run from the command line. It even works when invoked by nagios, but when nagios invokes it, it also kills the process in about 30 seconds. This wasn't a problem on Nagios 1.x. We recently upgraded to 2.9 and ran into this issue. I've tried nohup'ing the xmessage, but no luck - it seems like the nagios process kills it no matter what!? I've tried converting the script to perl and using 'system' or 'exec' calls, but that didn't fix the problem either. > > Does anyone have a workaround for this or a suggestion on things to try, please? > xmessage & Nagios must kill the notification commands if they run for too long, otherwise each notification will leak filedescriptors, and Nagios will, eventually, no longer be able to run any commands at all. Don't create notification scripts that never exit (under normal circumstances). You'll just eat resources for nothing. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bespalov at sovintel.ru Tue Nov 6 17:41:32 2007 From: bespalov at sovintel.ru (Alexander Bespalov) Date: Tue, 6 Nov 2007 17:41:32 +0100 (CET) Subject: Nagios Huge Installation (15000 hosts) - Problem In-Reply-To: <200711041759.39212.cedric.temple@linagora.com> References: <200711041759.39212.cedric.temple@linagora.com> Message-ID: <20071106164132.E8C5E58800B@desire.netways.de> Hi C?dric, I have several updates regarding my problem. My latest Nagios configuration: Central server - dedicated server (HP DL360, 2Gb RAM, 2xCPU), works perfect, load average: 0.25, 0.06, 0.02, Nagios configured with almost default parameters. Distributed processes (20 processes on a single server) - server shared with another applications (HP DL580, 8Gb RAM, 4xCPU), some Nagios processes becomes out of time after several hours, load average: 6.48, 7.45, 6.56. I think the main problem is the distributed server usage. I plan to migrate distributed processes to a dedicated server (HP DL580, 8Gb RAM, 4xCPU) I have one in my lab. If you have any ideas please inform me. Thank you! -- Alexander Bespalov ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pico at cocco.biz Tue Nov 6 17:53:50 2007 From: pico at cocco.biz (PiCo) Date: Tue, 06 Nov 2007 17:53:50 +0100 Subject: using nagios via socks proxy Message-ID: Hi! I need to monitor some hosts that can only be accessed via a SOCKS proxy (SSH tunneling). I'm using FREECAP on windows... but if I want to monitor this hosts with nagios.... What I have to do? Any idea ?? -- ,,, /'^'\ ( o o ) ----------------------------------------oOOO--(_)--OOOo------ Pierfrancesco Cocco EMail: pico at cocco.biz Web: www.cocco.biz ICQ#: 105570291 SkypeID: cocco.biz Tel.: +39 335 1234 475 Fax.: +39 06 233 2401 88 .oooO ( ) Oooo. ------------------------------------------\ (----( )------- \_) ) / (_/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From richardsolid at gmail.com Tue Nov 6 20:03:14 2007 From: richardsolid at gmail.com (Jake Solid) Date: Tue, 6 Nov 2007 14:03:14 -0500 Subject: Monitoring Windows XP Message-ID: Hello, I have a nagios server already monitoring multiple Linux servers. What will be the best nagios plugin for monitoring the resources of a Windows XP machine that its exposed on the Internet? Thanks in advanced, -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bob.debolt at starblanket.ca Tue Nov 6 20:35:17 2007 From: bob.debolt at starblanket.ca (Bob DeBolt) Date: Tue, 06 Nov 2007 12:35:17 -0700 Subject: Monitoring Windows XP In-Reply-To: References: Message-ID: <4730C1F5.8070903@starblanket.ca> Jake Solid wrote: > I have a nagios server already monitoring multiple Linux servers. What will > be the best nagios plugin for monitoring the resources of a Windows XP http://www.shatterit.com/NC_Net/ will get you started nicely Bob -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: OpenPGP digital signature URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From matthew-ln at itconsult.co.uk Tue Nov 6 21:12:23 2007 From: matthew-ln at itconsult.co.uk (Matthew Richardson) Date: Tue, 06 Nov 2007 20:12:23 +0000 Subject: check_snmp In-Reply-To: References: Message-ID: I am doing a number of very similar checks on HP kit using SNMP. The parameter used is "-s 2", which gives UP provided the value returned is 2. Some examples may assist:- # hp specific snmp checks define command { command_name check_snmp_hp_power command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o 1.3.6.1.4.1.232.6.2.9.1.0 -s 2 -t 45 } define command { command_name check_snmp_hp_health command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o 1.3.6.1.4.1.232.6.1.3.0 -s 2 -t 45 } define command { command_name check_snmp_hp_correctablememory command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o 1.3.6.1.4.1.232.6.2.3.2.0 -s 2 -t 45 } define command { command_name check_snmp_hp_asr command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o 1.3.6.1.4.1.232.6.2.5.17.0 -s 2 -t 45 } define command { command_name check_snmp_hp_thermal command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o 1.3.6.1.4.1.232.6.2.6.1.0 -s 2 -t 45 } define command { command_name check_snmp_hp_tempsensors command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o 1.3.6.1.4.1.232.6.2.6.3.0 -s 2 -t 45 } define command { command_name check_snmp_hp_tempvalue command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o 1.3.6.1.4.1.232.6.2.6.8.1.4.0.$ARG2$ -w $ARG3$ -c $ARG4$ -t 45 } define command { command_name check_snmp_hp_fans command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o 1.3.6.1.4.1.232.6.2.6.4.0 -s 2 -t 45 } define command { command_name check_snmp_hp_cpufans command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o 1.3.6.1.4.1.232.6.2.6.5.0 -s 2 -t 45 } define command { command_name check_snmp_hp_drivearray command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o 1.3.6.1.4.1.232.3.1.3.0 -s 2 -t 45 } define command { command_name check_snmp_hp_arraycontroller command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o 1.3.6.1.4.1.232.3.2.2.1.1.6.$ARG2$ -s 2 -t 45 } define command { command_name check_snmp_hp_logicaldrivestatus command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o 1.3.6.1.4.1.232.3.2.3.1.1.4.$ARG2$.$ARG3$ -s 2 -t 45 } define command { command_name check_snmp_hp_physicaldrivestatus command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o 1.3.6.1.4.1.232.3.2.5.1.1.6.$ARG2$.$ARG3$ -s 2 -t 45 } These checks are quite basic, insofar as they provide no additional information if the service is not UP. They work perfectly well for attracting one's attention though. Best wishes, Matthew ------ >From: "Mark Duffy" >To: >Cc: >Date: Tue, 6 Nov 2007 12:19:36 -0000 >Subject: [Nagios-users] check_snmp >Afternoon all, > >I am currently trying to get my head round doing checks with SNMP. > >I have so far managed to get Nagios to display the required data but it is showing the array as Critical or Warning unless I set the -w & -c levels to 2 (which is status OK), I somehow feel this is not right. How do I go about adding more than one variable to the critical level for example Critical levels would be 3 & 4 and a warning would be 1 ( normally set as -w 1) > >Here is the check I am currently running and the workaround to get an OK status for a variable of 2: > >define command{ > command_name check_cpq_array > command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o 1.3.6.1.4.1.232.3.2.2.1.1.6.4 -C public -w 2 -c 2 > } > >I think I have confused myself and probably the rest of you in this e-mail, if so I apologize. > >Regards, >? >Mark Duffy >? >Tees, Esk And Wear Valleys NHS Trust >Flatts Lane Centre >Flatts Lane >Normanby >Middlesbrough >TS6 0SZ >Tel: 01642 283548 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Tarak.Patel at ec.gc.ca Tue Nov 6 22:40:18 2007 From: Tarak.Patel at ec.gc.ca (Tarak Patel) Date: Tue, 06 Nov 2007 21:40:18 +0000 Subject: Integrating LONGSERVICEOUTPUT in nagios.cgi Message-ID: <4730DF42.4040002@ec.gc.ca> Hi all, Has any one integrated LONGSERVICEOUTPUT in nagios-3.0b6 into the cgi. TP ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From james at nttmcl.com Wed Nov 7 00:59:25 2007 From: james at nttmcl.com (James) Date: Tue, 06 Nov 2007 15:59:25 -0800 Subject: sms notify not working Message-ID: <4730FFDD.5010008@nttmcl.com> Hi everyone i'm using sms_client to send sms messages to a tap server for sprint i can run the sms_client manually fine but i set it to a notify definition and it won't execute nagios logs shows that it executed the notify command but it doesn't actually run the sms_client daemon at all. In the notifications history it shows that those notify commands are executed but it actually isn't being executed at all I can run email notify commands fine. Help please? TIA James Here's the notify commands i've tried : define command{ command_name notify-by-sms command_line /usr/bin/sms_client -q sprintpcs:800xxxxxxx "$HOSTNAME$ $SERVICESTATE$\r\n Info: $OUTPUT$" } define command{ command_name notify-by-sms-testing command_line /usr/bin/printf "%b" "Host: $HOSTNAME$ I nfo: $HOSTOUTPUT$\n" | sms_client -q sprintpcs:800xxxxxxx } ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From yana.millis at gmail.com Wed Nov 7 01:51:34 2007 From: yana.millis at gmail.com (Yana Millis) Date: Wed, 7 Nov 2007 10:51:34 +1000 Subject: How and where to install NDOUtils ? Message-ID: Hello! I'm having a bad time installing NDOUtils. In the installation instructions it says to put the ndoutils files as follows: ndomod-2x.0 to /usr/local/nagios/bin ndomod.cfg to /usr/local/nagios/etc ndo2db-2x to /usr/lcal/nagios/bin ndo2db.cfg to /usr/local/nagios/etc now my problem is that the nagios i'm working with was not installed by me, and it was not a "default" installation but a package installation. As a result, the nagios installation does not have either the /bin or the /etc directories. So my question is: given that the nagios installation doesn't have either the bin or the etc directories, where should I put the ndomod-2x.o, ndomod.cfg, ndo2db-2x, and ndo2db.cfg files ?? Can anybody please shed some light on this and point me in the right direction ? Thanks a bunch for any feedback, --yana ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.morris at hp.com Wed Nov 7 02:18:39 2007 From: patrick.morris at hp.com (Patrick Morris) Date: Tue, 6 Nov 2007 17:18:39 -0800 Subject: How and where to install NDOUtils ? In-Reply-To: References: Message-ID: <20071107011839.GO18464@pmorris.usa.hp.com> It doesn't matter where you install them. Just make sure your configurations match where you put them. On Wed, 07 Nov 2007, Yana Millis wrote: > Hello! > > I'm having a bad time installing NDOUtils. > In the installation instructions it says to put the ndoutils files as follows: > ndomod-2x.0 to /usr/local/nagios/bin > ndomod.cfg to /usr/local/nagios/etc > ndo2db-2x to /usr/lcal/nagios/bin > ndo2db.cfg to /usr/local/nagios/etc > > now my problem is that the nagios i'm working with was not installed > by me, and it was not a "default" installation > but a package installation. As a result, the nagios installation does > not have either the /bin or the /etc > directories. > > So my question is: given that the nagios installation doesn't have > either the bin or the etc directories, where > should I put the ndomod-2x.o, ndomod.cfg, ndo2db-2x, and ndo2db.cfg files ?? > > Can anybody please shed some light on this and point me in the right direction ? > Thanks a bunch for any feedback, > > --yana > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From amen at oreilly.com Wed Nov 7 02:22:32 2007 From: amen at oreilly.com (Bob Amen) Date: Tue, 06 Nov 2007 17:22:32 -0800 Subject: How and where to install NDOUtils ? In-Reply-To: References: Message-ID: <47311358.4070302@oreilly.com> Yana Millis wrote: > So my question is: given that the nagios installation doesn't have > either the bin or the etc directories, where > should I put the ndomod-2x.o, ndomod.cfg, ndo2db-2x, and ndo2db.cfg files ?? Use your package tools to find out where the configuration files and binaries are installed and then install the NDOUtils files there too. -- Bob Amen O'Reilly Media, Inc. http://www.ora.com/ http://www.oreilly.com/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Roger at NagiosWiki.com Wed Nov 7 02:32:37 2007 From: Roger at NagiosWiki.com (Roger) Date: Tue, 6 Nov 2007 17:32:37 -0800 Subject: How and where to install NDOUtils ? In-Reply-To: References: Message-ID: <2b7af7c40711061732u32dbf266jad80b5f4cf30a7b5@mail.gmail.com> On 11/6/07, Yana Millis wrote: > Hello! > > I'm having a bad time installing NDOUtils. Yana, for what it's worth, I put up a HOWTO here for CentOS http://nagioswiki.com/wiki/index.php/NDOutils_on_CentOS (let me know if there is anything you need that isn't covered there) ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From alex.howells at 0wn3d.us Wed Nov 7 02:33:39 2007 From: alex.howells at 0wn3d.us (Alex Howells) Date: Wed, 7 Nov 2007 01:33:39 +0000 Subject: How and where to install NDOUtils ? In-Reply-To: <47311358.4070302@oreilly.com> References: <47311358.4070302@oreilly.com> Message-ID: Also, and completely off-topic, did you *really* need to send that to /four/ different mailing lists? It's very bad etiquette to do that :) ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hvdkooij at vanderkooij.org Wed Nov 7 02:35:15 2007 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Wed, 07 Nov 2007 02:35:15 +0100 Subject: Nagios killing xmessage In-Reply-To: <31106EACA9CB89429547C16564B3F40E3BCE39B8F8@EVS1.ColoState.EDU> References: <31106EACA9CB89429547C16564B3F40E3BCE39B8B7@EVS1.ColoState.EDU> <47303448.8090604@op5.se> <31106EACA9CB89429547C16564B3F40E3BCE39B8F8@EVS1.ColoState.EDU> Message-ID: <47311653.1050608@vanderkooij.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Redder,Greg wrote: > Andreas, > > Thank you for the response. Unfortunately backgrounding was the first thing I tried. The pid is still owened by nagios and thus I thought that a nohup would work since the parent pid becomes 1. No luck Nagios still seems to kill it. I thought nohup would be the trick :-( Let us go back to the drawing board. I would think more along the lines of: - Nagios alert messages add or remove messages from a text file. (Say 1 event per line). - xmessages checks the file each minute or so and if it is not empty it will show the content. Perhaps just restart xmessage with the new content if the content has changed. It is a rather crude scetch but it might point you into a direction you may not have considered yet. Have you considered looking at that firefox plugin? It will propably do something quite similar to what you want to achive. 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) iD8DBQFHMRZRBvzDRVjxmYERAqzfAJ9ueJWG0l53mJ6K86Yy8j2NQaoTQACggm0T SVnsTLCFA0+PiKcKytRmc48= =cIYP -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From amontibello at gmail.com Wed Nov 7 03:46:56 2007 From: amontibello at gmail.com (Anthony Montibello) Date: Tue, 6 Nov 2007 21:46:56 -0500 Subject: Monitoring Windows XP In-Reply-To: <4730C1F5.8070903@starblanket.ca> References: <4730C1F5.8070903@starblanket.ca> Message-ID: Hi, The ONLY Oficial location for downloading NC_NEt is SourceForge: http://sourceforge.net/projects/nc-net It is Highly recomended to upgrade to 4.1a for solving issues and extended functionality. current version is 4.1a requires Dot Net v2.0 Other tools require Dot Net 1.1 technical Support is through NC_Net Forum on SourceForge. Best of Luck. Tony (Author of NC_Net) On Nov 6, 2007 2:35 PM, Bob DeBolt wrote: > Jake Solid wrote: > > > I have a nagios server already monitoring multiple Linux servers. What > will > > be the best nagios plugin for monitoring the resources of a Windows XP > > http://www.shatterit.com/NC_Net/ will get you started nicely > > Bob > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From alexus at gmail.com Wed Nov 7 06:27:15 2007 From: alexus at gmail.com (alexus) Date: Wed, 7 Nov 2007 00:27:15 -0500 Subject: nrpe timesout! In-Reply-To: <472AEE89.3020203@googlemail.com> References: <6ae50c2d0710292006l3fe843f3s3b1551192ea9a8d5@mail.gmail.com> <47270242.5090705@googlemail.com> <6ae50c2d0711012004k332f3c9cta6291af8d5a8283c@mail.gmail.com> <472AEE89.3020203@googlemail.com> Message-ID: <6ae50c2d0711062127v227d9350o40f6045577fd3300@mail.gmail.com> i understand that, all of those are enabled as before i switched to nagios3 and trying to reconfigure everything from scratch it seems to be working fine in nagios2 (using same settings from nagios2 to nagios3) with nrpe, so i've dealt with nrpe and it has been working in the past On Nov 2, 2007 4:31 AM, Hari Sekhon wrote: > alexus wrote: > > i assume instead of check_http -a 10.10.10.34 you mean whatever is in > > nrpe.cfg for check_http command, so i'm showing you whats in there and > > i'm trying to execute that command and it works fine, but not through > > nrpe... > > > > # grep check_http ~nagios/etc/nrpe.cfg > > command[check_http]=/usr/local/nagios/libexec/check_http -I $ARG1$ -e 200 > > # /usr/local/nagios/libexec/check_http -I 10.10.10.34 -e 200 > > HTTP OK HTTP/1.1 200 OK - 299 bytes in 0.002 seconds > > |time=0.002095s;;;0.000000 size=299B;;;0 > > # > 2 things: > > 1. Are you running this as root? The # at the beginning of the line > suggests so. Try running it as the user account that nrpe runs as. > > 2. You are passing args through nrpe, this is not good practice. It also > will not work unless you have dont_blame_nrpe=1 in your nrpe.cfg on the > remote host against which you are executing the nrpe call. I would > recommend not passing args but instead defining more check_commands with > the args already in them, this is more secure as it is more tightly > controlled. > > -h > -- http://alexus.org/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cedric.temple at linagora.com Wed Nov 7 09:43:59 2007 From: cedric.temple at linagora.com (=?iso-8859-1?Q?C=E9dric_Temple?=) Date: Wed, 7 Nov 2007 09:43:59 +0100 (CET) Subject: Nagios Huge Installation (15000 hosts) - Problem In-Reply-To: <20071106164132.E8C5E58800B@desire.netways.de> References: <200711041759.39212.cedric.temple@linagora.com> <20071106164132.E8C5E58800B@desire.netways.de> Message-ID: <3975.10.0.0.1.1194425039.squirrel@intranet.linagora.com> Le Mar 6 novembre 2007 17:41, Alexander Bespalov a ?crit : > Hi C?dric, Hi, > I have several updates regarding my problem. > > My latest Nagios configuration: > Central server - dedicated server (HP DL360, 2Gb RAM, 2xCPU), works > perfect, load average: 0.25, 0.06, 0.02, Nagios configured with almost > default parameters. > Distributed processes (20 processes on a single server) - server shared > with another applications (HP DL580, 8Gb RAM, 4xCPU), some Nagios processes > becomes out of time after several hours, load average: 6.48, 7.45, 6.56. > > I think the main problem is the distributed server usage. > I plan to migrate distributed processes to a dedicated server (HP DL580, 8Gb > RAM, 4xCPU) I have one in my lab. OK. Did you try DNX? http://tech.lds.org/index.php?option=com_content&task=view&id=107&Itemid=68 http://dnx.sourceforge.net/ http://sourceforge.net/projects/dnx It is an alpha version but maybe it can help? Regards. -- C?dric Temple - Groupe Linagora Administrateur Syst?mes et R?seaux Tel: 01/58/18/68/28 - Fax: 01/58/18/68/29 http://www.linagora.com ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stephen.wing at steria.co.uk Wed Nov 7 10:01:16 2007 From: stephen.wing at steria.co.uk (stephen wing) Date: Wed, 7 Nov 2007 09:01:16 -0000 Subject: sms notify not working In-Reply-To: <4730FFDD.5010008@nttmcl.com> References: <4730FFDD.5010008@nttmcl.com> Message-ID: <004f01c8211c$c1202790$9a02a8c0@uk.sterianet> Hi If you are using nagios to send the messages, be careful that sms_client has a limit of 150 characters in the text message. Depending on what outputs you are sending from nagios, the outputs can easily become more than 150 characters. Regards Stephen --------------------------------------- Stephen Wing Steria Limited Senior Technical Consultant Telephone 02890393605 Mobile 07966823605 -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of James Sent: 06 November 2007 23:59 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] sms notify not working Hi everyone i'm using sms_client to send sms messages to a tap server for sprint i can run the sms_client manually fine but i set it to a notify definition and it won't execute nagios logs shows that it executed the notify command but it doesn't actually run the sms_client daemon at all. In the notifications history it shows that those notify commands are executed but it actually isn't being executed at all I can run email notify commands fine. Help please? TIA James Here's the notify commands i've tried : define command{ command_name notify-by-sms command_line /usr/bin/sms_client -q sprintpcs:800xxxxxxx "$HOSTNAME$ $SERVICESTATE$\r\n Info: $OUTPUT$" } define command{ command_name notify-by-sms-testing command_line /usr/bin/printf "%b" "Host: $HOSTNAME$ I nfo: $HOSTOUTPUT$\n" | sms_client -q sprintpcs:800xxxxxxx } ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ***************************************************************** This email originates from Steria Limited, registered office: Three Cherry Trees Lane, Hemel Hempstead, Hertfordshire HP2 7AH; Registered in England and Wales, number 2706218; www.steria.co.uk. This email and any attachments may contain confidential information and may be subject to copyright or other intellectual property rights. It is only for the use of the addressee(s). You are prohibited from copying, forwarding, disclosing, saving or otherwise using it in any way if you are not the addressee(s) or responsible for delivery. If you receive this email by mistake, please advise the sender and cancel it immediately. Steria may monitor the content of emails within its network to ensure compliance with its policies and procedures. Any email is susceptible to alteration and its integrity cannot be assured. Steria shall not be liable if the message is altered, modified, falsified, or edited. ================================================ ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From g.digiambelardini at fabaris.it Wed Nov 7 10:31:44 2007 From: g.digiambelardini at fabaris.it (Di Giambelardini Gabriele) Date: Wed, 7 Nov 2007 10:31:44 +0100 (CET) Subject: parenst for service Message-ID: <55971.192.168.1.1.1194427904.squirrel@webmail2.fabaris.it> Hi to all, somebody know if it's possible add an parents directive in services.cfg files? thank in advances ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Sebastian.Ries at dtnet.de Wed Nov 7 10:28:48 2007 From: Sebastian.Ries at dtnet.de (Sebastian Ries) Date: Wed, 07 Nov 2007 10:28:48 +0100 Subject: parenst for service In-Reply-To: <55971.192.168.1.1.1194427904.squirrel@webmail2.fabaris.it> References: <55971.192.168.1.1.1194427904.squirrel@webmail2.fabaris.it> Message-ID: <1194427728.29396.0.camel@bofh.dtnet.de> Hi > somebody know if it's possible add an parents directive in services.cfg > files? > thank in advances You can archieve this by configuring Service Dependancies. Look for that. 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: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From g.digiambelardini at fabaris.it Wed Nov 7 11:10:04 2007 From: g.digiambelardini at fabaris.it (Di Giambelardini Gabriele) Date: Wed, 7 Nov 2007 11:10:04 +0100 (CET) Subject: parenst for service Message-ID: <56697.192.168.1.1.1194430204.squirrel@webmail2.fabaris.it> Ok, but I need it only for status map vision Service Dependancies help me? > Hi > >> somebody know if it's possible add an parents directive in services.cfg >> files? >> thank in advances > You can archieve this by configuring Service Dependancies. > Look for that. > > 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: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From g.digiambelardini at fabaris.it Wed Nov 7 11:09:47 2007 From: g.digiambelardini at fabaris.it (Di Giambelardini Gabriele) Date: Wed, 7 Nov 2007 11:09:47 +0100 (CET) Subject: parenst for service In-Reply-To: <1194427728.29396.0.camel@bofh.dtnet.de> References: <55971.192.168.1.1.1194427904.squirrel@webmail2.fabaris.it> <1194427728.29396.0.camel@bofh.dtnet.de> Message-ID: <56693.192.168.1.1.1194430187.squirrel@webmail2.fabaris.it> Ok, but I need it only for status map vision Service Dependancies help me? > Hi > >> somebody know if it's possible add an parents directive in services.cfg >> files? >> thank in advances > You can archieve this by configuring Service Dependancies. > Look for that. > > 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: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > Di Giambelardini Gabriele System/Network Administrator __________________________________________ FABARIS s.r.l. Cel. +39 3488504467 Tel. +39 0765 22181 - Fax +39 0765 410100 Via G. Mameli, 90 02047 Poggio Mirteto (RI) Filiale: Viale dell'Universit?, 25 00185 Roma (RM) www.fabaris.it __________________________________________ ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Peter.Jevos at Oriflame-SW.Com Wed Nov 7 12:39:29 2007 From: Peter.Jevos at Oriflame-SW.Com (Jevos, Peter) Date: Wed, 7 Nov 2007 12:39:29 +0100 Subject: Riddle with nrpe Message-ID: <6639BA20B265594590E97DD72A8EE0359DA689@exosw.osw.ori.local> Hi I have a damned problem with nrpe under windows Everythink works without any problem but one command can't work. Probably it's issue with syntax but after couple of days I gave it up. In my nrpe.cfg is command: command[check_cmd]=c:\test.cmd In the test.cmd is: @echo off C:\pscp.exe -batch -q -pw password c:\test.txt nagios at 10.8.10.9:/tmp/test/ echo Looks good exit 1 When I run it from linux, command is timed out Command pscp will not end and became hang on in the windows processes. I tried to use whatever instead pscp and everythink is working. I also tried to use "" to identifeing paths and it doesn't work as well "C:\pscp.exe" -batch -q -pw password "c:\test.txt" nagios at 10.8.10.9:/tmp/test/ When I run this command from command prompt it works and copy file into linux machine I also tried to use a differenet options in th pscp. I run pscp with full control permission and NRPE_nt service is running under local administrastor. I though that there is problem with pscp authentication. Cause on my linux machine there is no attempt to authenticate from that windows. When I use this command from command prompt there is a record in the auth.log about sshd Accepted keyboard from windows machine I would say there must be something with command syntax and nrpe_nt can't handle it Thanks BR Pet ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lavalamp at spiritual-machines.org Wed Nov 7 16:02:40 2007 From: lavalamp at spiritual-machines.org (Brian A. Seklecki) Date: Wed, 07 Nov 2007 10:02:40 -0500 Subject: Riddle with nrpe In-Reply-To: <6639BA20B265594590E97DD72A8EE0359DA689@exosw.osw.ori.local> References: <6639BA20B265594590E97DD72A8EE0359DA689@exosw.osw.ori.local> Message-ID: <1194447760.2472.11.camel@ingress.pitbpa0.priv.collaborativefusion.com> On Wed, 2007-11-07 at 12:39 +0100, Jevos, Peter wrote: > Hi > I have a damned problem with nrpe under windows > Everythink works without any problem but one command can't work. > Probably it's issue with syntax but after couple of days I gave it up. > In my nrpe.cfg is command: > command[check_cmd]=c:\test.cmd > > In the test.cmd is: > > @echo off If your script runs as a different user than the successful interactive run, then pscp.exe is most likely stuck at stdin wait loop prompting to accept the RSA key from the linux server before continuing. Try logging in as the user you're running the script as (or more accurately, you're running the nrpe_nt service as) ~BAS ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Peter.Jevos at Oriflame-SW.Com Wed Nov 7 17:21:00 2007 From: Peter.Jevos at Oriflame-SW.Com (Jevos, Peter) Date: Wed, 7 Nov 2007 17:21:00 +0100 Subject: Riddle with nrpe In-Reply-To: <1194447760.2472.11.camel@ingress.pitbpa0.priv.collaborativefusion.com> References: <1194447760.2472.11.camel@ingress.pitbpa0.priv.collaborativefusion.com> Message-ID: <6639BA20B265594590E97DD72A8EE0359DA68B@exosw.osw.ori.local> Dear Brian Yes, that was a problem. I didn't check it cause I thought that nrpe_nt services is running under local admin but it was a local account. I checked it again ad I've fixed it Thanks Br pet > -----Original Message----- > From: Brian A. Seklecki [mailto:lavalamp at spiritual-machines.org] > Sent: Wednesday, November 07, 2007 4:03 PM > To: Jevos, Peter > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Riddle with nrpe > > On Wed, 2007-11-07 at 12:39 +0100, Jevos, Peter wrote: > > Hi > > I have a damned problem with nrpe under windows Everythink works > > without any problem but one command can't work. > > Probably it's issue with syntax but after couple of days I > gave it up. > > In my nrpe.cfg is command: > > command[check_cmd]=c:\test.cmd > > > > In the test.cmd is: > > > > @echo off > > If your script runs as a different user than the successful > interactive run, then pscp.exe is most likely stuck at stdin > wait loop prompting to accept the RSA key from the linux > server before continuing. > > > Try logging in as the user you're running the script as (or > more accurately, you're running the nrpe_nt service as) > > ~BAS > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lavalamp at spiritual-machines.org Wed Nov 7 17:30:28 2007 From: lavalamp at spiritual-machines.org (Brian A. Seklecki) Date: Wed, 7 Nov 2007 11:30:28 -0500 (EST) Subject: Riddle with nrpe In-Reply-To: <6639BA20B265594590E97DD72A8EE0359DA68B@exosw.osw.ori.local> References: <6639BA20B265594590E97DD72A8EE0359DA68B@exosw.osw.ori.local> Message-ID: <20071107112800.W58884@arbitor.digitalfreaks.org> Yea each user gets thier equiv of ~/.ssh/know_hosts crammed into thier local registry. It's a feature(R). That way, seek() and read() operations in the registry goes slower and slower with each click of your mouse. Microsft++ ~BAS On Wed, 7 Nov 2007, Jevos, Peter wrote: > Dear Brian > > Yes, that was a problem. I didn't check it cause I thought that nrpe_nt > services is running under local admin but it was a local account. I > checked it again ad I've fixed it > > Thanks > > Br > > pet > >> -----Original Message----- >> From: Brian A. Seklecki [mailto:lavalamp at spiritual-machines.org] >> Sent: Wednesday, November 07, 2007 4:03 PM >> To: Jevos, Peter >> Cc: nagios-users at lists.sourceforge.net >> Subject: Re: [Nagios-users] Riddle with nrpe >> >> On Wed, 2007-11-07 at 12:39 +0100, Jevos, Peter wrote: >>> Hi >>> I have a damned problem with nrpe under windows Everythink works >>> without any problem but one command can't work. >>> Probably it's issue with syntax but after couple of days I >> gave it up. >>> In my nrpe.cfg is command: >>> command[check_cmd]=c:\test.cmd >>> >>> In the test.cmd is: >>> >>> @echo off >> >> If your script runs as a different user than the successful >> interactive run, then pscp.exe is most likely stuck at stdin >> wait loop prompting to accept the RSA key from the linux >> server before continuing. >> >> >> Try logging in as the user you're running the script as (or >> more accurately, you're running the nrpe_nt service as) >> >> ~BAS >> >> > 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 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From svalding at kent.edu Wed Nov 7 17:25:59 2007 From: svalding at kent.edu (svalding at kent.edu) Date: Wed, 07 Nov 2007 11:25:59 -0500 Subject: NDOUtils event broker Message-ID: Hey list I got 2.10 all up and running perfectly for me now. I've started my NDOUtils project to implement NagVis. This is going pretty smooth, save for one part. I'm building this on an Ubuntu box, but following the HOWTO I found on the wiki for CentOS I modified it to suit my needs. I have everything running fine. The daemon starts good. However, I am getting the "Error connecting to datasink!" bit. I did a search of the archives, and found a few posts about permissions, and I just verified them. root at dovnagiosw:/usr/local/nagios/var# ls -l ndo.sock srwxrwxrwx 1 nagios nagcmd 0 2007-11-06 10:34 ndo.sock It seems to me the nagios user can read and write to the sock file The database and user are created correctly, and my ndomod.cfg file seems to be ok. I can post the contents of that if the list so chooses. Thanks, Stephen -------------- next part -------------- A non-text attachment was scrubbed... Name: svalding.vcf Type: text/x-vcard Size: 131 bytes Desc: Card for URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From james at nttmcl.com Wed Nov 7 18:16:35 2007 From: james at nttmcl.com (James) Date: Wed, 07 Nov 2007 09:16:35 -0800 Subject: sms notify not working In-Reply-To: <004f01c8211c$c1202790$9a02a8c0@uk.sterianet> References: <004f01c8211c$c1202790$9a02a8c0@uk.sterianet> Message-ID: <4731F2F3.9020803@nttmcl.com> stephen wing wrote: > Hi > If you are using nagios to send the messages, be careful that > sms_client has a limit of 150 characters in the text message. Depending on > what outputs you are sending from nagios, the outputs can easily become more > than 150 characters. > > Regards > Stephen > > --------------------------------------- > Stephen Wing > Steria Limited > Senior Technical Consultant > Telephone 02890393605 > Mobile 07966823605 > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of James > Sent: 06 November 2007 23:59 > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] sms notify not working > > Hi everyone i'm using sms_client to send sms messages to a tap server > for sprint > > i can run the sms_client manually fine but i set it to a notify > definition and it won't execute > nagios logs shows that it executed the notify command but it doesn't > actually run the sms_client daemon at all. > In the notifications history it shows that those notify commands are > executed but it actually isn't being executed at all > I can run email notify commands fine. > > Help please? > TIA James > > Here's the notify commands i've tried : > > define command{ > command_name notify-by-sms > command_line /usr/bin/sms_client -q > sprintpcs:800xxxxxxx "$HOSTNAME$ $SERVICESTATE$\r\n Info: $OUTPUT$" > } > > define command{ > command_name notify-by-sms-testing > command_line /usr/bin/printf "%b" "Host: > $HOSTNAME$ I > nfo: $HOSTOUTPUT$\n" | sms_client -q sprintpcs:800xxxxxxx > } > > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > > ***************************************************************** > This email originates from Steria Limited, registered office: Three Cherry Trees Lane, Hemel Hempstead, Hertfordshire HP2 7AH; Registered in England and Wales, number 2706218; www.steria.co.uk. > > This email and any attachments may contain confidential information and may be subject to copyright or other intellectual property rights. It is only for the use of the addressee(s). You are prohibited from copying, forwarding, disclosing, saving or otherwise using it in any way if you are not the addressee(s) or responsible for delivery. > If you receive this email by mistake, please advise the sender and cancel it immediately. > Steria may monitor the content of emails within its network to ensure compliance with its policies and procedures. > Any email is susceptible to alteration and its integrity cannot be assured. Steria shall not be liable if the message is altered, modified, falsified, or edited. > ================================================ > I stripped down the notify message to just hostname and hostoutput which shouldn't be more than like 60-70 characters altogether i had realized i had run into that problem earlier and started streamlining alot of my plugins. Thanks for the suggest tho. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fvanhee at gmail.com Wed Nov 7 19:50:32 2007 From: fvanhee at gmail.com (Vanhee Frederik) Date: Wed, 07 Nov 2007 19:50:32 +0100 Subject: Service status on status map. In-Reply-To: <4730654C.5050009@ipp.pt> References: <4730654C.5050009@ipp.pt> Message-ID: <473208F8.3050909@gmail.com> Jaime Ventura wrote: > Hello, > On the status map I can see if a host is up or down. > Is there any way to have some visual information to let me know that > at least one service is not ok, on each host? > > Thanks, > Jaime > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > No there isn't, but maybe someone wrote a patch ? I was looking at the same problem and installed a nice add-on, called nagvis (http://www.nagvis.org). It requires ndo-utils and you can draw some very nice status maps with it. Only disadvantage is that it doesn't automatically draw a status map from your Nagios config files, so you have to draw the maps on your own. You can even draw submaps if you want to. Frederik ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From justinm at honeycomb.net Wed Nov 7 21:05:07 2007 From: justinm at honeycomb.net (Justin Maloney) Date: Wed, 7 Nov 2007 14:05:07 -0600 Subject: status map issues Message-ID: <64975B31C6249247A722D0610F4110F73232DD@hive.officespace.honeycomb.net> 2 issues Any ideas on how to get it to redraw the map? Every time I update my config with new hosts, everything moves around but I'm left with these unused sections. See pic. And the usual logos don't appear. Here is the shortened version of what I have In nagios.cfg cfg_file=/usr/local/etc/nagios/hostextinfo.cfg in hostextinfo.cfg define hostextinfo{ host_name chx-ac-conv-1.be statusmap_image server.gd2 } In /usr/local/www/nagios/images/logos/ ls -l -rw-r--r-- 1 root wheel 1110 Nov 6 09:37 server.gd2 -rw-r--r-- 1 root wheel 1627 Nov 6 09:41 server.png Created from a image pack from nagiosexchange.org using pngtogd2 Pkg_info gd-2.0.35,1 Thank you, Justin Maloney Systems Administrator Honeycomb Internet Services 612.617.0007 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: statusmap.jpg Type: image/jpeg Size: 67355 bytes Desc: statusmap.jpg URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Christy.New at cancer.org Wed Nov 7 23:37:45 2007 From: Christy.New at cancer.org (Christy.New at cancer.org) Date: Wed, 7 Nov 2007 17:37:45 -0500 Subject: Error 404 Message-ID: When I try to download nagios and the plugins it keep getting this error? Anyone know why? I go to the downloads file and type wget http://osdn.dl.sourceforge.net/sourceforge/nagios/nagios-3.0b4.tar.gz Very Respectfully, Christy M. New 1(404)327-6490 American Cancer Society Corporate IT-NHO NOC Network Infrastructure Engineer ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From reed at reedmedia.net Wed Nov 7 23:57:08 2007 From: reed at reedmedia.net (Jeremy C. Reed) Date: Wed, 7 Nov 2007 16:57:08 -0600 (CST) Subject: Error 404 In-Reply-To: References: Message-ID: > When I try to download nagios and the plugins it keep getting this error? > Anyone know why? > > I go to the downloads file and type > > wget http://osdn.dl.sourceforge.net/sourceforge/nagios/nagios-3.0b4.tar.gz Doesn't exist. Use b6 instead of b4. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From aaron.segura at cabelas.com Thu Nov 8 00:04:15 2007 From: aaron.segura at cabelas.com (Aaron M. Segura) Date: Wed, 07 Nov 2007 16:04:15 -0700 Subject: Error 404 In-Reply-To: References: Message-ID: <1194476655.16570.111.camel@sidhqmis4grdv91> Worked just fine for me. On Wed, 2007-11-07 at 16:57 -0600, Jeremy C. Reed wrote: > > When I try to download nagios and the plugins it keep getting this error? > > Anyone know why? > > > > I go to the downloads file and type > > > > wget http://osdn.dl.sourceforge.net/sourceforge/nagios/nagios-3.0b4.tar.gz > > Doesn't exist. Use b6 instead of b4. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dtabb at marketforceinfo.com Thu Nov 8 00:54:11 2007 From: dtabb at marketforceinfo.com (Doug Tabb) Date: Wed, 7 Nov 2007 16:54:11 -0700 Subject: Acknowledgement via email? Message-ID: <1F6FD8004708EE4AB79615574B34E85C015AEEE0@MAIL.mfi.marketforceinfo.com> I'd like to be able to acknowledge an alert by replying to the email sent by Nagios. I've searched the list archives and Nagios Exchange to no avail. Does anyone have something like that configured? I figure it's possible to write from scratch, but I'd rather not reinvent the wheel if there's a working solution already out there. Thank you very much! -Doug Tabb -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From wolvverine at tarchomin.pl Thu Nov 8 03:54:57 2007 From: wolvverine at tarchomin.pl (=?UTF-8?Q?Micha=C5=82?= Panasiewicz) Date: Thu, 08 Nov 2007 03:54:57 +0100 Subject: How filter some messages from nagios-nsca on server? Message-ID: <1194490497.6790.13.camel@localhost> How filter some messages from nagios-nsca on server? J have messages from workstations with windows (eventlog) $cat /var/log/nagios/nsca ... Nov 7 15:30:10 serwer nsca[26226]: SERVICE CHECK -> Host Name: 'K5', Service Description: 'Application EventLog', Return Code: '2', Output: 'Application [error] [Application Hang #1002]: Aplikacja zawieszaj?ca msaccess.exe, wersja 7.0.0.4, modu? zawieszenia hungapp, wersja 0.0.0.0, adres zawieszenia 0x00000000. ' Nov 7 15:30:10 serwer nsca[26227]: SERVICE CHECK -> Host Name: 'K5', Service Description: 'Application EventLog', Return Code: '2', Output: 'Application [error] [Application Hang #1002]: Aplikacja zawieszaj?ca msaccess.exe, wersja 7.0.0.4, modu? zawieszenia hungapp, wersja 0.0.0.0, adres zawieszenia 0x00000000. ' Nov 7 16:18:32 serwer nsca[13607]: SERVICE CHECK -> Host Name: 'K5', Service Description: 'System EventLog', Return Code: '1', Output: 'System [warning] [Tcpip #4226]: Protok?? TCP/IP osi?gn?? limit zabezpiecze? ustalony dla liczby r?wnoczesnych pr?b po??cze? TCP. ' -- Micha? Panasiewicz Linux user nr. #425323 - jabber: wolvverine [ at ] chrome [ dot ] pl || e-mail: wolvverine [ at ] tlen [ dot ] pl , wolvverine [ at ] pld-linux [ dot ] org http://www.linkomp.pl - Linkomp - Us?ugi informatyczne dla firm - biuro [ at ] linkomp [ dot ] pl ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Stanley.Hopcroft at Dest.gov.au Thu Nov 8 06:27:59 2007 From: Stanley.Hopcroft at Dest.gov.au (Stanley.Hopcroft at Dest.gov.au) Date: Thu, 8 Nov 2007 16:27:59 +1100 Subject: Nag 3.0b6 - differences in instantiation of $ARG$ macros to 2.9 ? [SEC=UNCLASSIFIED] In-Reply-To: References: Message-ID: Dear Folks, A quick look at the docco (on Nagios.ORG eg what's new, upgrading from 2.x) suggests there is no significant change in the processing of the $ARG$ macros in 3.0 (3.0b6) compared to 2.9. Unfortunately, my Perl plugins fail to run under 3.0 when the plugin is defined (in checkcommands.cfg) with a $ARG1$ macro but called without a value for the macro. It appears that under 3.0 the ARG macro is instantiated with a Perl 'undef' value (that's my guess given the exception it raises), so perhaps the macro is set to a empty string by the C caller. What the problem is not: - 1 Embedded Perl: plugin runs fine under the new_mini_epn emulator 2 The plugin works fine when called by Nagios with non-null args. The error is raisd by a standard (ie part of the Perl 5 distribution) module called Getopt::Long. Since this is a widely used module, it is unlikely to be a bug in that module. Here are the error messages [1194424952] SERVICE ALERT: foo;Reachability of bar/192.168.95.115 from foo router;UNKNOWN;HARD;3;**ePN /usr/lib/nagios/plugins/check_dev_plr_question: "Use of uninitialized value in string eq at /usr/lib/perl5/5.8.0/Getopt/Long.pm line 407,". [1194469202] SERVICE ALERT: MTASW200;acmms003 has joined multicast group.;UNKNOWN;SOFT;1;**ePN /usr/lib/nagios/plugins/check_mcast: "Use of uninitialized value in string eq at /usr/lib/perl5/5.8.0/Getopt/Long.pm line 407,". command_line $USER1$/check_dev_plr_question -R $HOSTNAME$ $ARG1$ # BAD check_command check_dev_plr_question # OK check_command check_dev_plr_question!-t 1.1.1.2 -T 20 -A "size 1427 df-bit" check_command check_dev_plr_question!-A "size 1500 repeat 1000 source Gi0/1" -T 20 I can prob work around by changing my check_command entries to check_dev_question!" " or some such thing. Thank you, Yours sincerely. Classification: UNCLASSIFIED ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gcoochey at sapphire.gi Thu Nov 8 09:14:43 2007 From: gcoochey at sapphire.gi (Giles Coochey) Date: Thu, 8 Nov 2007 09:14:43 +0100 Subject: Service status on status map. In-Reply-To: <473208F8.3050909@gmail.com> References: <4730654C.5050009@ipp.pt> <473208F8.3050909@gmail.com> Message-ID: <9D30659ABCA7FB428CF91E386C3A57449A78C0@hermes.sapphire-int.gi> > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Vanhee Frederik > Sent: 07 November 2007 19:51 > To: Jaime Ventura > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Service status on status map. > > Jaime Ventura wrote: > > Hello, > > On the status map I can see if a host is up or down. > > Is there any way to have some visual information to let me know that > > at least one service is not ok, on each host? > > > > Thanks, > > Jaime > > > > No there isn't, but maybe someone wrote a patch ? > I was looking at the same problem and installed a nice add-on, called > nagvis (http://www.nagvis.org). It requires ndo-utils and you can draw > some very nice status maps with it. > Only disadvantage is that it doesn't automatically draw a status map > from your Nagios config files, so you have to draw the maps on your own. > You can even draw submaps if you want to. > The small attached patch appears to give some indication of service problems with hosts. Think I found it via google. -------------- next part -------------- A non-text attachment was scrubbed... Name: nagios2.4-statusmap.patch Type: application/octet-stream Size: 2579 bytes Desc: nagios2.4-statusmap.patch URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From madlists at teaparty.net Thu Nov 8 11:16:55 2007 From: madlists at teaparty.net (Tom Yates) Date: Thu, 8 Nov 2007 10:16:55 +0000 (GMT) Subject: Is contactgroup_name accessible as a macro for notifications? Message-ID: I'm using nagios 2.9 on solaris 9, and I feed tickets directly into a helpdesk system. Several different contactgroups (eg mac problems, PC problems, unix problems, network problems) contain the helpdesk email contact. The helpdesk admins would really appreciate knowing which group generated a particular email so they can shunt the mail into the right helpdesk queue. Is the contactgroup_name available to me as a macro, so i can include it in the notify-by-email command? Or should I just define several different helpdesk users, and work something in via $CONTACTNAME$? Thanks for any light anyone can shed. -- Tom Yates - http://www.teaparty.net ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Thu Nov 8 12:00:22 2007 From: ae at op5.se (Andreas Ericsson) Date: Thu, 08 Nov 2007 12:00:22 +0100 Subject: Is contactgroup_name accessible as a macro for notifications? In-Reply-To: References: Message-ID: <4732EC46.8060706@op5.se> Tom Yates wrote: > I'm using nagios 2.9 on solaris 9, and I feed tickets directly into a > helpdesk system. Several different contactgroups (eg mac problems, PC > problems, unix problems, network problems) contain the helpdesk email > contact. > > The helpdesk admins would really appreciate knowing which group generated > a particular email so they can shunt the mail into the right helpdesk > queue. Is the contactgroup_name available to me as a macro, so i can > include it in the notify-by-email command? Check the docs. The macro documentation is extensive. Or try and find out. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From madlists at teaparty.net Thu Nov 8 12:14:15 2007 From: madlists at teaparty.net (Tom Yates) Date: Thu, 8 Nov 2007 11:14:15 +0000 (GMT) Subject: Is contactgroup_name accessible as a macro for notifications? In-Reply-To: <4732EC46.8060706@op5.se> References: <4732EC46.8060706@op5.se> Message-ID: On Thu, 8 Nov 2007, Andreas Ericsson wrote: > Check the docs. The macro documentation is extensive. Or try and find out. Thank you for that. I did the former before posting; the only contact macros defined are $CONTACT{NAME,ALIAS,MAIL,PAGER,ADDRESSn}$. It's certainly possible that the macro exists, but isn't classed as a contact macro; that said, no other macro documented in /docs/macros.html seems to fit. What I was asking is whether anyone's aware of an undocumented way to access the parameter, or of some other clever end-run that hasn't occurred to me. Or, admittedly, whether I've missed something obvious. -- Tom Yates - http://www.teaparty.net ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Thu Nov 8 12:23:05 2007 From: ae at op5.se (Andreas Ericsson) Date: Thu, 08 Nov 2007 12:23:05 +0100 Subject: Is contactgroup_name accessible as a macro for notifications? In-Reply-To: References: <4732EC46.8060706@op5.se> Message-ID: <4732F199.1050400@op5.se> Tom Yates wrote: > On Thu, 8 Nov 2007, Andreas Ericsson wrote: > >> Check the docs. The macro documentation is extensive. Or try and find >> out. > > Thank you for that. I did the former before posting; I love you. No really, I do :P > the only contact > macros defined are $CONTACT{NAME,ALIAS,MAIL,PAGER,ADDRESSn}$. It's > certainly possible that the macro exists, but isn't classed as a contact > macro; that said, no other macro documented in /docs/macros.html seems > to fit. > Then it doesn't exist. > What I was asking is whether anyone's aware of an undocumented way to > access the parameter, or of some other clever end-run that hasn't > occurred to me. Or, admittedly, whether I've missed something obvious. > You could read it from /var/objects.cache if you like. It could be expensive to do an exhausive search there, so you might want to cache the info somewhere. Whatever way you choose, I believe you need to write the notification command as a script instead of a one-liner in your commands.cfg. If you have to fiddle an awful lot with it, you might be better off just patching Nagios to understand a $CONTACTGROUPS$ macro or some such. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From madlists at teaparty.net Thu Nov 8 12:44:19 2007 From: madlists at teaparty.net (Tom Yates) Date: Thu, 8 Nov 2007 11:44:19 +0000 (GMT) Subject: Is contactgroup_name accessible as a macro for notifications? In-Reply-To: <4732F199.1050400@op5.se> References: <4732EC46.8060706@op5.se> <4732F199.1050400@op5.se> Message-ID: On Thu, 8 Nov 2007, Andreas Ericsson wrote: > Tom Yates wrote: >> On Thu, 8 Nov 2007, Andreas Ericsson wrote: >> >>> Check the docs. The macro documentation is extensive. Or try and find >>> out. >> >> Thank you for that. I did the former before posting; > > I love you. No really, I do :P you git. now i have to get a new keyboard for my laptop; the old one's full of coffee. so's my nose, by the way, for which no FRU (currently) exists. seriously, thanks for the quick response. knowing that i'm not missing something obvious is really helpful; now i can find a non-obvious way of doing it. > Whatever way you choose, I believe you need to write the notification > command as a script instead of a one-liner in your commands.cfg. again, thanks for the warning. hopefully, i'll now come at this the right way. -- Tom Yates - http://www.teaparty.net ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gcoochey at sapphire.gi Thu Nov 8 14:54:42 2007 From: gcoochey at sapphire.gi (Giles Coochey) Date: Thu, 8 Nov 2007 14:54:42 +0100 Subject: NagVis Directory Structure Message-ID: <9D30659ABCA7FB428CF91E386C3A57449A790B@hermes.sapphire-int.gi> Could someone send me a ls -lR of their NagVis installation together with the paths of in their nagvis config.ini.php. The documentation on www.nagvis.org appears to be a little vague. I've kind of got it working, but some links seem broken and I can't for the life of me work out exactly where everything is supposed to go. Many Thanks in advance. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ From g.digiambelardini at fabaris.it Thu Nov 8 15:17:12 2007 From: g.digiambelardini at fabaris.it (Di Giambelardini Gabriele) Date: Thu, 8 Nov 2007 15:17:12 +0100 (CET) Subject: aix check problem Message-ID: <60559.192.168.1.1.1194531432.squirrel@webmail2.fabaris.it> Hi to all, I have some problem with aix checks. This is the problem, I have to check the disk space, swap usage, cpu usage.. etc etc on an aix serve using only the snmp trap. I tried some perl check but nocheck work well. Somebody have some idea? or some check? thanks in advance, and excuse for my english ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fvanhee at gmail.com Thu Nov 8 15:45:32 2007 From: fvanhee at gmail.com (Frederik Vanhee) Date: Thu, 8 Nov 2007 15:45:32 +0100 Subject: NagVis Directory Structure In-Reply-To: <9D30659ABCA7FB428CF91E386C3A57449A790B@hermes.sapphire-int.gi> References: <9D30659ABCA7FB428CF91E386C3A57449A790B@hermes.sapphire-int.gi> Message-ID: <9c1cb51c0711080645k53b2d6ceu88d8b726b2e4be6e@mail.gmail.com> On 11/8/07, Giles Coochey wrote: > > Could someone send me a ls -lR of their NagVis installation together > with the paths of in their nagvis config.ini.php. > > The documentation on www.nagvis.org appears to be a little vague. > > I've kind of got it working, but some links seem broken and I can't for > the life of me work out exactly where everything is supposed to go. > > Many Thanks in advance. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > Hello, if you follow the instructions, you should end op with /$nagiospath/share/nagvis/nagvis/.... mind the nested nagvis directories. Frederik -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Gerhard.Lausser at consol.de Thu Nov 8 15:57:31 2007 From: Gerhard.Lausser at consol.de (Gerhard Lausser) Date: Thu, 8 Nov 2007 15:57:31 +0100 Subject: ANNOUNCE check_hpasm-1.6.1 Message-ID: <012d01c82217$b02e0fa0$a601000a@int.consol.de> Hi, for those of you monitoring HPC Proliant hardware with the check_hpasm plugin. I fixed a bug which could lead to overseen failed fans. Please find the new release under http://www.consol.de/opensource/nagios/check-hpasm/ Greetings from Munich, Gerhard ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From td3201 at gmail.com Thu Nov 8 16:19:28 2007 From: td3201 at gmail.com (Terry) Date: Thu, 8 Nov 2007 09:19:28 -0600 Subject: timeperiod discrepancy Message-ID: <8ee061010711080719n7c5ecf6yfeb57344319ca200@mail.gmail.com> Here is what I have in the config: define timeperiod{ timeperiod_name engineer01 alias engineer01 2007-11-05 / 42 00:00-24:00 ; Every 42 days (6 weeks), starting November 5th, 2007 2007-11-06 / 42 00:00-24:00 ; Every 6th Tuesday starting November 6th, 2007 2007-11-07 / 42 00:00-24:00 ; Every 6th Wednesday starting November 7th, 2007 2007-11-08 / 42 00:00-24:00 ; Every 6th Thursday starting November 8th, 2007 2007-11-09 / 42 00:00-24:00 ; Every 6th Friday starting November 9th, 2007 2007-11-10 / 42 00:00-24:00 ; Every 6th Saturday starting November 10th, 2007 2007-11-11 / 42 00:00-24:00 ; Every 6th Sunday starting November 11th, 2007 } Here is what shows up via the view config on the web: engineer01 engineer01 2007-09-11 / 42 00:00:00 - 24:00:00 2007-09-10 / 42 00:00:00 - 24:00:00 2007-09-09 / 42 00:00:00 - 24:00:00 2007-09-08 / 42 00:00:00 - 24:00:00 2007-09-07 / 42 00:00:00 - 24:00:00 2007-09-06 / 42 00:00:00 - 24:00:00 2007-09-05 / 42 00:00:00 - 24:00:00 What is going on here that I am missing? ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeff.shumard at defenseweb.com Thu Nov 8 18:00:55 2007 From: jeff.shumard at defenseweb.com (Jeff Shumard - DefenseWeb Technologies) Date: Thu, 8 Nov 2007 09:00:55 -0800 Subject: Distributed monitoring with nrpe_nt and freshness In-Reply-To: References: Message-ID: We have our monitoring configured and everything is working great checking all our windows servers through a single windows server running nrpe_nt. The problem we are having is when one of our Linux Nagios servers goes down and doesn't send any results to the master Nagios server. When this happens and our 5 minute freshness hits it's threshold. We start running active checks because we didn't receive any passive updates from the server that went down. This sends a bunch of checks to the windows server to run tests and we start getting unknown status reports back to the master server with the result of "No output available from command". Does anyone know if there is a max connection on nrpe_nt or something else that maybe causing this? Thank you, Jeff ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Christy.New at cancer.org Thu Nov 8 18:16:49 2007 From: Christy.New at cancer.org (Christy.New at cancer.org) Date: Thu, 8 Nov 2007 12:16:49 -0500 Subject: Not sure how to correct this. Message-ID: I am getting the following: port 1 bandwidth usuage mrtgtraf: unable to open MRTG log file. Port 1 link status plugin may be missing uptime plugin may be missing I have searched the plugin downloads and can't seem to figure out what I have done wrong. Can some one give me guidance. I downloaded everything that the user manual said to and put them in my downloads file. Can you give me guidance on were to go and how to download the correct files. Very Respectfully, Christy M. New 1(404)327-6490 American Cancer Society Corporate IT-NHO NOC Network Infrastructure Engineer ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From shoktai at gmail.com Thu Nov 8 18:33:19 2007 From: shoktai at gmail.com (Thomas Vito) Date: Thu, 8 Nov 2007 18:33:19 +0100 Subject: check time sync Message-ID: <619cf3c0711080933w6e0178e3y4b4cb601742d4b20@mail.gmail.com> -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From shoktai at gmail.com Thu Nov 8 18:34:19 2007 From: shoktai at gmail.com (Thomas Vito) Date: Thu, 8 Nov 2007 18:34:19 +0100 Subject: check time sync Message-ID: <619cf3c0711080934p150c3d8dxa21a38860689150a@mail.gmail.com> Hi Does anyone knows of a plugin to check that computers are in sync?...time sync (especially betweens DCs)? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Thu Nov 8 18:51:04 2007 From: ae at op5.se (Andreas Ericsson) Date: Thu, 08 Nov 2007 18:51:04 +0100 Subject: check time sync In-Reply-To: <619cf3c0711080934p150c3d8dxa21a38860689150a@mail.gmail.com> References: <619cf3c0711080934p150c3d8dxa21a38860689150a@mail.gmail.com> Message-ID: <47334C88.3070308@op5.se> Thomas Vito wrote: > Hi > > Does anyone knows of a plugin to check that computers are in sync?...time > sync (especially betweens DCs)? > check_ntp > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From beckerz at arxnet.hu Thu Nov 8 19:52:24 2007 From: beckerz at arxnet.hu (BECKER Zoltan) Date: Thu, 8 Nov 2007 19:52:24 +0100 Subject: Limit notification number Message-ID: <20071108185224.GA5343@arxnet.hu> Hi All, I configured my new Nagios (2.9), it works good. How can I limit the number of notifications (host or service,also)? For example, if nagios sent three email, than don't send any notification (sms, email...). It is possible? I read the docs, and I found the host|service escalation, but it's not that, what I want. BR Zoli ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From josh.yost at epsiia.com Thu Nov 8 22:33:23 2007 From: josh.yost at epsiia.com (Yost, Josh) Date: Thu, 8 Nov 2007 15:33:23 -0600 Subject: check time sync References: <619cf3c0711080934p150c3d8dxa21a38860689150a@mail.gmail.com> Message-ID: <69AB3F80173BDD46960FB60E86DF94F827E739@MKEXCHVS2.Mail.Fiserv.net> Hi, You can check nagiosexchange.org for some time-related plugins. - Josh ________________________________ From: nagios-users-bounces at lists.sourceforge.net on behalf of Thomas Vito Sent: Thu 11/8/2007 11:34 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] check time sync Hi Does anyone knows of a plugin to check that computers are in sync?...time sync (especially betweens DCs)? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From steve.ensley at gmail.com Thu Nov 8 22:55:06 2007 From: steve.ensley at gmail.com (Steve Ensley) Date: Thu, 8 Nov 2007 15:55:06 -0600 Subject: nsclient, is it still an acceptable method to monitor nt Message-ID: <31fabc220711081355ic62ff1rf115d680fccb7b71@mail.gmail.com> I'm upgrading another departments Nagios 1.3 instance to Nagios 2.9. they are using nsclient to get some info from some nt servers. Most of my Nagios experience has been monitoring Unix servers. The website at http://nsclient.ready2run.nl/ for nsclient doesnt seem to have been touched since 2004. Is it still a viable method to monitor nt servers or is there somthing else I should be looking into to replace it. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From aragonx at dcsnow.com Thu Nov 8 23:08:35 2007 From: aragonx at dcsnow.com (aragonx at dcsnow.com) Date: Thu, 8 Nov 2007 17:08:35 -0500 (EST) Subject: Nagios CGI modification Message-ID: <17213.192.35.79.70.1194559715.squirrel@www.dcsnow.com> I would like to add a link to the hostgroup commands page that would allow me to distribute some files to all the hosts in that group. In extinfo.c I think I found where this page is defined. So I added the following section (approx line 1632): printf("Distribute
Files to All Hosts In This HostgroupDisable active checks of all services in this hostgroup\n",url_images_path,DISABLED_ICON,COMMAND_CGI,CMD_DISABLE_HOSTGROUP_SVC_CHECKS,url_encode(hostgroup_name)); Which looks great. Now I think I need to change the to call my shell script (or I could write it in C but I have very little experience with that). Changing the link is no big deal of course. My big question is, how do I get a list of all the hosts in that host group passed? -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.morris at hp.com Thu Nov 8 23:35:33 2007 From: patrick.morris at hp.com (Patrick Morris) Date: Thu, 8 Nov 2007 14:35:33 -0800 Subject: Limit notification number In-Reply-To: <20071108185224.GA5343@arxnet.hu> References: <20071108185224.GA5343@arxnet.hu> Message-ID: <20071108223533.GZ18464@pmorris.usa.hp.com> On Thu, 08 Nov 2007, BECKER Zoltan wrote: > Hi All, > > I configured my new Nagios (2.9), it works good. How can I limit the number of notifications (host or service,also)? > For example, if nagios sent three email, than don't send any notification (sms, email...). > > It is possible? > > I read the docs, and I found the host|service escalation, but it's not that, what I want. It is what you want. Reread the examples -- some show how to do exactly what it sounds like you want. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Nov 9 00:24:02 2007 From: ae at op5.se (Andreas Ericsson) Date: Fri, 09 Nov 2007 00:24:02 +0100 Subject: nsclient, is it still an acceptable method to monitor nt In-Reply-To: <31fabc220711081355ic62ff1rf115d680fccb7b71@mail.gmail.com> References: <31fabc220711081355ic62ff1rf115d680fccb7b71@mail.gmail.com> Message-ID: <47339A92.5080501@op5.se> Steve Ensley wrote: > I'm upgrading another departments Nagios 1.3 instance to Nagios 2.9. they > are using nsclient to get some info from some nt servers. Most of my Nagios > experience has been monitoring Unix servers. > > The website at http://nsclient.ready2run.nl/ for nsclient doesnt seem to > have been touched since 2004. Is it still a viable method to monitor nt > servers or is there somthing else I should be looking into to replace it. > Try NSClient++ instead. It's at sourceforge somewhere, and is quite a lot fresher. NSClient might work, but it's getting rather ancient. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From yana.millis at gmail.com Fri Nov 9 01:56:56 2007 From: yana.millis at gmail.com (Yana Millis) Date: Fri, 9 Nov 2007 10:56:56 +1000 Subject: How to fix Nagios Segmentation Fault at startup ??? Message-ID: Hello ! My nagios segmentation faults on me at start up. When I start it with "service nagios start" command, the error I'm getting is displayed thusly: "Starting nagios:/etc/init.d/nagios: line 121: 4718 Segmentation fault $NagiosBin -d $NagiosCfgFile" whereby $NagiosBin resolves to /usr/bin/nagios and $NagiosCfgFile resolves to /etc/nagios/nagios.cfg. Obviously, /etc/init.d/nagios exists. The pre-flight check of nagios.cfg doesn't return any errors. And the nagios.log file doesn't have any constructive feedback, except for one line saying "[1194569016] Nagios 2.9 starting... (PID=4718)" So my question is: how do I begin debugging this issue and where do I look first ? Is there any way I can modify nagios configuration to make it output more detailed stuff to the log ? Can anybody please stir me in the right direction .... thanks alot, yana ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dario.bestetti at opservices.com.br Fri Nov 9 02:25:07 2007 From: dario.bestetti at opservices.com.br (Dario B. Bestetti) Date: Thu, 8 Nov 2007 23:25:07 -0200 Subject: RES: nsclient, is it still an acceptable method to monitor nt In-Reply-To: <47339A92.5080501@op5.se> References: <31fabc220711081355ic62ff1rf115d680fccb7b71@mail.gmail.com> <47339A92.5080501@op5.se> Message-ID: <18682.0958312184$1194571607@news.gmane.org> Steve, you might try our "enhanced" NSClient: http://www.opservices.com.br/index.php?option=com_content&task=view&id=54&It emid=54 _________________________________________________ Dario B. Bestetti????????OpServices ??????????????????????????????????R. Luciana de Abreu, 471 - Sala 403 ??????????????????????????????????Porto Alegre, RS - CEP 90570-060 Fone 55(51)30613588 Mobile? 55(51)81518218 Fax???? 55(51)30613588? Email??? dario.bestetti at opservices.com.br ? ???????????????"In God we trust, the rest we monitor ..." _________________________________________________ -----Mensagem original----- De: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] Em nome de Andreas Ericsson Enviada em: quinta-feira, 8 de novembro de 2007 21:24 Para: Steve Ensley Cc: nagios-users at lists.sourceforge.net Assunto: Re: [Nagios-users] nsclient, is it still an acceptable method to monitor nt Steve Ensley wrote: > I'm upgrading another departments Nagios 1.3 instance to Nagios 2.9. they > are using nsclient to get some info from some nt servers. Most of my Nagios > experience has been monitoring Unix servers. > > The website at http://nsclient.ready2run.nl/ for nsclient doesnt seem to > have been touched since 2004. Is it still a viable method to monitor nt > servers or is there somthing else I should be looking into to replace it. > Try NSClient++ instead. It's at sourceforge somewhere, and is quite a lot fresher. NSClient might work, but it's getting rather ancient. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Stanley.Hopcroft at Dest.gov.au Fri Nov 9 04:47:27 2007 From: Stanley.Hopcroft at Dest.gov.au (Stanley.Hopcroft at Dest.gov.au) Date: Fri, 9 Nov 2007 14:47:27 +1100 Subject: Experience with 3.0b6 ... most good but a few tiny probs [SEC=UNCLASSIFIED] In-Reply-To: References: Message-ID: Dear Folks, I am writing to present my observations on 3.0b6. The synopsis is excellent but there are a few non show-stopping problems. Firstly, the performance of host detection is simply excellent and those contemplating mega installations should take great heart. As soon as the service check complete the max_checks, the host down notifications are unlaunched. The developer/s have done a great job (as usual). For our site, it used to take nearly 2 minutes after service checks failed to detect down hosts. Problems 1 ARG macros with ePN (may be without) $ARG$s appear to be instantiated differently to 2.x, and in such a way as to cause Perl plugins using Getopt (ie expecting args) to barf if called without args. Workaround: command_name!" " in services.cfg 2 Aberrant intermittent ePN behaviour Fri Nov 9 14:30:59 2007 Warning: Check of service 'Redundant link is operational' on host 'TRASW210' did not exit properly! This happens occasionally. Restart sorts it. Plugins _known_ to be good with ePN in 2.x/passed by new_mini_epn (which prob needs revising). 3 global_event_handler strangeness Not sure if this is bad, but Nag log shows Thu Nov 8 21:04:28 2007 GLOBAL HOST EVENT HANDLER: NDCSW209;(null);(null);(null);global_host_event_handler when global event handler runs. Event handler still called with the same args and seems to do the 'right thing'. >From my point of view, problem 2 is a concern (PITA to use the verancular). Looks like I will be trawling checks.c for the origin of this message. Thank you, Yours sincerely. Classification: UNCLASSIFIED ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gcoochey at sapphire.gi Fri Nov 9 09:04:18 2007 From: gcoochey at sapphire.gi (Giles Coochey) Date: Fri, 9 Nov 2007 09:04:18 +0100 Subject: nsclient, is it still an acceptable method to monitor nt In-Reply-To: <47339A92.5080501@op5.se> References: <31fabc220711081355ic62ff1rf115d680fccb7b71@mail.gmail.com> <47339A92.5080501@op5.se> Message-ID: <9D30659ABCA7FB428CF91E386C3A57449A7941@hermes.sapphire-int.gi> > > Steve Ensley wrote: > > I'm upgrading another departments Nagios 1.3 instance to Nagios 2.9. > they > > are using nsclient to get some info from some nt servers. Most of my > Nagios > > experience has been monitoring Unix servers. > > > > The website at http://nsclient.ready2run.nl/ for nsclient doesnt seem to > > have been touched since 2004. Is it still a viable method to monitor nt > > servers or is there somthing else I should be looking into to replace > it. > > > > Try NSClient++ instead. It's at sourceforge somewhere, and is quite a lot > fresher. NSClient might work, but it's getting rather ancient. > I had this same quandary sometime back. Options were NSClient (seems too old, not being developed) NSClient++ (presumably enhanced in some way) OpServices version of NSClient (still being developed) NC_Net (still being developed) In the end I simply went with NC_Net and it appears to work for us just fine, and I often see the author on this list, which tells me that he's still involved with Nagios in some way. It would be nice if all the different people who independently developed all the different versions 'unforked' their efforts though :-), it would make the decision on which one to use much easier, by having a lack of choice!! ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Nov 9 11:35:32 2007 From: ae at op5.se (Andreas Ericsson) Date: Fri, 09 Nov 2007 11:35:32 +0100 Subject: nsclient, is it still an acceptable method to monitor nt In-Reply-To: <9D30659ABCA7FB428CF91E386C3A57449A7941@hermes.sapphire-int.gi> References: <31fabc220711081355ic62ff1rf115d680fccb7b71@mail.gmail.com> <47339A92.5080501@op5.se> <9D30659ABCA7FB428CF91E386C3A57449A7941@hermes.sapphire-int.gi> Message-ID: <473437F4.40407@op5.se> Giles Coochey wrote: >> Steve Ensley wrote: >>> I'm upgrading another departments Nagios 1.3 instance to Nagios 2.9. >> they >>> are using nsclient to get some info from some nt servers. Most of > my >> Nagios >>> experience has been monitoring Unix servers. >>> >>> The website at http://nsclient.ready2run.nl/ for nsclient doesnt > seem to >>> have been touched since 2004. Is it still a viable method to > monitor nt >>> servers or is there somthing else I should be looking into to > replace >> it. >> Try NSClient++ instead. It's at sourceforge somewhere, and is quite a > lot >> fresher. NSClient might work, but it's getting rather ancient. >> > > I had this same quandary sometime back. > > Options were > > NSClient (seems too old, not being developed) > NSClient++ (presumably enhanced in some way) > OpServices version of NSClient (still being developed) > NC_Net (still being developed) > > In the end I simply went with NC_Net and it appears to work for us just > fine, and I often see the author on this list, which tells me that he's > still involved with Nagios in some way. > > It would be nice if all the different people who independently developed > all the different versions 'unforked' their efforts though :-), it would > make the decision on which one to use much easier, by having a lack of > choice!! They aren't really forks. OpServices have simply taken over maintainership of NSClient (more or less, as the original author seems to have vanished). NSClient++ is a re-implementation in C++, with support for NRPE style script based checks as well. NC_Net does things through dot net stuff and some m$ voodoo, but incorporates the NSClient mode of address since that's what the official plugins support. So it's really three different agents. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Nov 9 11:38:01 2007 From: ae at op5.se (Andreas Ericsson) Date: Fri, 09 Nov 2007 11:38:01 +0100 Subject: How to fix Nagios Segmentation Fault at startup ??? In-Reply-To: References: Message-ID: <47343889.7060602@op5.se> Yana Millis wrote: > > So my question is: how do I begin debugging this issue and where do I > look first ? $ ulimit -c unlimited $ gdb /usr/bin/nagios gdb> bt send the output to nagios-devel at lists.sourceforge.net -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rms at sibs.pt Fri Nov 9 11:42:25 2007 From: rms at sibs.pt (Rui Miguel Silva Seabra) Date: Fri, 09 Nov 2007 10:42:25 +0000 Subject: nsclient, is it still an acceptable method to monitor nt In-Reply-To: <473437F4.40407@op5.se> References: <31fabc220711081355ic62ff1rf115d680fccb7b71@mail.gmail.com> <47339A92.5080501@op5.se> <9D30659ABCA7FB428CF91E386C3A57449A7941@hermes.sapphire-int.gi> <473437F4.40407@op5.se> Message-ID: <1194604945.6706.0.camel@roque> Sex, 2007-11-09 ?s 11:35 +0100, Andreas Ericsson escreveu: > > NSClient (seems too old, not being developed) > > NSClient++ (presumably enhanced in some way) > > OpServices version of NSClient (still being developed) > > NC_Net (still being developed) > > > > In the end I simply went with NC_Net and it appears to work for us just > > fine, and I often see the author on this list, which tells me that he's > > still involved with Nagios in some way. > > > > It would be nice if all the different people who independently developed > > all the different versions 'unforked' their efforts though :-), it would > > make the decision on which one to use much easier, by having a lack of > > choice!! > > They aren't really forks. OpServices have simply taken over maintainership > of NSClient (more or less, as the original author seems to have vanished). > NSClient++ is a re-implementation in C++, with support for NRPE style script > based checks as well. NC_Net does things through dot net stuff and some m$ > voodoo, but incorporates the NSClient mode of address since that's what the > official plugins support. > > So it's really three different agents. NSClient++ has a nasty bug on the option to check services. It can't handle services that contain white space in their names. Rui All Hail Discordia! Today is Pungenday, the 21st day of The Aftermath in the YOLD 3173 + No matter how much you do, you never do enough -- unknown + Whatever you do will be insignificant, | but it is very important that you do it -- Gandhi + So let's do it...? ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mailing at rtcw.com.fr Fri Nov 9 15:09:18 2007 From: mailing at rtcw.com.fr (Sylvain Viollat) Date: Fri, 9 Nov 2007 15:09:18 +0100 Subject: LONGDATETIME return $ Message-ID: <495101cb834ae483207d7507613473e5@localhost> Hello, on a fresh install of Nagios 2.6 on Debian Etch, I got a strange problem that I never see before. When I receive mail notifications for an alert, the Date/Time in the Email body return $. Here is an example : ***** Nagios ***** Notification Type: PROBLEM Service: Test Nagios Host: firewall Address: 192.168.1.1 State: CRITICAL Date/Time: $ Additional Info: Connection refused But when I receive an email for a "host down" notification, the Date/Time appear !? Here is what I got in commands.cfg : # 'host-notify-by-email' command definition define command{ command_name host-notify-by-email command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTALIAS$\nState: $HOSTSTATE$ for $HOSTDURATION$\nAddress: $HOSTADDRESS$\nInfo:\n\n$HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n\nACK by: $HOSTACKAUTHOR$\nComment: $HOSTACKCOMMENT$\n" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ alert $NOTIFICATIONNUMBER$ - $HOSTALIAS$ host is $HOSTSTATE$ **" $CONTACTEMAIL$ } # '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$\nState: $SERVICESTATE$ for $SERVICEDURATION$\nAddress: $HOSTADDRESS$\n\nInfo:\n\n$SERVICEOUTPUT$\n\nDate/Time: $LONGDATETIME$\n\nACK by: $SERVICEACKAUTHOR$\nComment: $SERVICEACKCOMMENT$\n" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ alert $NOTIFICATIONNUMBER$ - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ } Thanks for your help! PS/ Sorry for my english :-) ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dario.bestetti at opservices.com.br Fri Nov 9 15:10:50 2007 From: dario.bestetti at opservices.com.br (Dario B. Bestetti) Date: Fri, 9 Nov 2007 12:10:50 -0200 Subject: RES: nsclient, is it still an acceptable method to monitor nt In-Reply-To: <1194604945.6706.0.camel@roque> References: <31fabc220711081355ic62ff1rf115d680fccb7b71@mail.gmail.com> <47339A92.5080501@op5.se> <9D30659ABCA7FB428CF91E386C3A57449A7941@hermes.sapphire-int.gi> <473437F4.40407@op5.se> <1194604945.6706.0.camel@roque> Message-ID: <43681.6308334984$1194617529@news.gmane.org> We are working (but slowly) to use the same protocol used/defined by Tony in NC_net, but so far, we decided to stick with an "upgrade" of the old NSClient without the use of .NET framework. The problem for us is that most of our customers doesn?t want to install the .NET framework and we don?t want to force them. We?ll have a new version of OpMon Agent in a few days, with some improvements, but our project is definitly different from NC_net. []s _________________________________________________ Dario B. Bestetti OpServices R. Luciana de Abreu, 471 - Sala 403 Porto Alegre, RS - CEP 90570-060 Fone 55(51)30613588 Mobile 55(51)81518218 Fax 55(51)30613588 Email dario.bestetti at opservices.com.br "In God we trust, the rest we monitor ..." _________________________________________________ -----Mensagem original----- De: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] Em nome de Rui Miguel Silva Seabra Enviada em: sexta-feira, 9 de novembro de 2007 08:42 Para: nagios-users at lists.sourceforge.net Assunto: Re: [Nagios-users] nsclient, is it still an acceptable method to monitor nt Sex, 2007-11-09 ?s 11:35 +0100, Andreas Ericsson escreveu: > > NSClient (seems too old, not being developed) > > NSClient++ (presumably enhanced in some way) > > OpServices version of NSClient (still being developed) > > NC_Net (still being developed) > > > > In the end I simply went with NC_Net and it appears to work for us just > > fine, and I often see the author on this list, which tells me that he's > > still involved with Nagios in some way. > > > > It would be nice if all the different people who independently developed > > all the different versions 'unforked' their efforts though :-), it would > > make the decision on which one to use much easier, by having a lack of > > choice!! > > They aren't really forks. OpServices have simply taken over maintainership > of NSClient (more or less, as the original author seems to have vanished). > NSClient++ is a re-implementation in C++, with support for NRPE style script > based checks as well. NC_Net does things through dot net stuff and some m$ > voodoo, but incorporates the NSClient mode of address since that's what the > official plugins support. > > So it's really three different agents. NSClient++ has a nasty bug on the option to check services. It can't handle services that contain white space in their names. Rui All Hail Discordia! Today is Pungenday, the 21st day of The Aftermath in the YOLD 3173 + No matter how much you do, you never do enough -- unknown + Whatever you do will be insignificant, | but it is very important that you do it -- Gandhi + So let's do it...? ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Christy.New at cancer.org Fri Nov 9 15:54:46 2007 From: Christy.New at cancer.org (Christy.New at cancer.org) Date: Fri, 9 Nov 2007 09:54:46 -0500 Subject: Still can't, and needing guidance SNMP issue Message-ID: I have the snmp plugin, at least it is downloaded into my downloads file on my linux server. However I can't monitor the following on my routers(which have snmp community strings on them. I can' monitor the snmp status or bandwidth/ traffic rate. Can anyone help me figure out why I can't see these on Nagios and the Nagios applications continues to say Service Status Last Duration Attempt Status ?Sort Sort by Check ?Sort by ?Sort Informa by service Sort by state by tion service status last duration current name (ascendi check (ascendi attempt (ascend ng)Sort time ng)Sort (ascend ing) by (ascendin by state ing) Sort by service g)Sort by duration Sort by service status last time current name (descend check (descend attempt (descen ing) time ing) (descen ding) (descendi ding) ng) UNKNOWN 11-09-20 0d 22h 3/3 check_mrtgtraf: 07 53m 22s Unable to open MRTG 23:47:18 log file Port 1 Bandwidt h Usage CRITICAL 11-09-20 0d 22h 3/3 (Return code of 127 07 51m 55s is out of bounds - 23:48:45 plugin may be missing) Port 1 Link Status CRITICAL 11-09-20 0d 22h 3/3 (Return code of 127 07 50m 28s is out of bounds - 23:53:21 plugin may be missing) Uptime Very Respectfully, Christy M. New 1(404)327-6490 American Cancer Society Corporate IT-NHO NOC Network Infrastructure Engineer ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gcoochey at sapphire.gi Fri Nov 9 16:06:47 2007 From: gcoochey at sapphire.gi (Giles Coochey) Date: Fri, 9 Nov 2007 16:06:47 +0100 Subject: Still can't, and needing guidance SNMP issue In-Reply-To: References: Message-ID: <9D30659ABCA7FB428CF91E386C3A57449A79B4@hermes.sapphire-int.gi> > > I have the snmp plugin, at least it is downloaded into my downloads file > on I believe you will need to put the executable in your libexec folder. > my linux server. However I can't monitor the following on my > routers(which > have snmp community strings on them. I can' monitor the snmp status or > bandwidth/ traffic rate. Can anyone help me figure out why I can't see > these on Nagios and the Nagios applications continues to say > > > UNKNOWN 11-09-20 0d 22h 3/3 check_mrtgtraf: > 07 53m 22s Unable to open MRTG > 23:47:18 log file > I'm assuming you're not asking about this particular error in this thread. > > > Port 1 > Bandwidt > h Usage > > CRITICAL 11-09-20 0d 22h 3/3 (Return code of 127 > 07 51m 55s is out of bounds - > 23:48:45 plugin may be > missing) It seems that Nagios cannot find the plugin, is it in your libexec folder? > > CRITICAL 11-09-20 0d 22h 3/3 (Return code of 127 > 07 50m 28s is out of bounds - > 23:53:21 plugin may be > missing) > > This looks to be the same problem. What snmp plugin are you talking about? There are plenty out there What version of Nagios are you talking about? Perhaps if you provide some of your configuration, we might be able to help some more? As it is, we need some psychic assistance here. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Christy.New at cancer.org Fri Nov 9 16:19:11 2007 From: Christy.New at cancer.org (Christy.New at cancer.org) Date: Fri, 9 Nov 2007 10:19:11 -0500 Subject: Still can't, and needing guidance SNMP issue In-Reply-To: <9D30659ABCA7FB428CF91E386C3A57449A79B4@hermes.sapphire-int.gi> References: <9D30659ABCA7FB428CF91E386C3A57449A79B4@hermes.sapphire-int.gi> Message-ID: What is the libexec folder? Can you give me a direct path? I am new to Linux. Very Respectfully, Christy M. New 1(404)327-6490 American Cancer Society Corporate IT-NHO NOC Network Infrastructure Engineer "Giles Coochey" To , 11/09/2007 10:07 cc Subject RE: [Nagios-users] Still can't, and needing guidance SNMP issue > > I have the snmp plugin, at least it is downloaded into my downloads file > on I believe you will need to put the executable in your libexec folder. > my linux server. However I can't monitor the following on my > routers(which > have snmp community strings on them. I can' monitor the snmp status or > bandwidth/ traffic rate. Can anyone help me figure out why I can't see > these on Nagios and the Nagios applications continues to say > > > UNKNOWN 11-09-20 0d 22h 3/3 check_mrtgtraf: > 07 53m 22s Unable to open MRTG > 23:47:18 log file > I'm assuming you're not asking about this particular error in this thread. > > > Port 1 > Bandwidt > h Usage > > CRITICAL 11-09-20 0d 22h 3/3 (Return code of 127 > 07 51m 55s is out of bounds - > 23:48:45 plugin may be > missing) It seems that Nagios cannot find the plugin, is it in your libexec folder? > > CRITICAL 11-09-20 0d 22h 3/3 (Return code of 127 > 07 50m 28s is out of bounds - > 23:53:21 plugin may be > missing) > > This looks to be the same problem. What snmp plugin are you talking about? There are plenty out there What version of Nagios are you talking about? Perhaps if you provide some of your configuration, we might be able to help some more? As it is, we need some psychic assistance here. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jriggin at gmail.com Fri Nov 9 16:22:55 2007 From: jriggin at gmail.com (Jerad Riggin) Date: Fri, 9 Nov 2007 09:22:55 -0600 Subject: Service scheduling Message-ID: <66955c170711090722x29e6c5f0r99c81876ce4f5c16@mail.gmail.com> I have a checkstring service that kicks off every 10 minutes. After failure it will retry every minute. We're trying to track availability on some of our servers so this is its purpose. However I noticed this morning that a host went down, I received a PING 100% packet loss alert, and shortly after within the same minute an alert that it couldn't find the HTTP string. However, by 7:50 PING was ok, and HTTP didn't return ok until 8:00 AM. If it's retrying every minute (or should be), why is there such a large gap? ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gcoochey at sapphire.gi Fri Nov 9 16:29:25 2007 From: gcoochey at sapphire.gi (Giles Coochey) Date: Fri, 9 Nov 2007 16:29:25 +0100 Subject: Still can't, and needing guidance SNMP issue In-Reply-To: References: <9D30659ABCA7FB428CF91E386C3A57449A79B4@hermes.sapphire-int.gi> Message-ID: <9D30659ABCA7FB428CF91E386C3A57449A79B9@hermes.sapphire-int.gi> > -----Original Message----- > From: Christy.New at cancer.org [mailto:Christy.New at cancer.org] > Sent: 09 November 2007 16:19 > To: Giles Coochey > Cc: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Still can't, and needing guidance SNMP issue > > What is the libexec folder? Can you give me a direct path? I am new to > Linux. > Try reading some documentation: http://nagios.sourceforge.net/docs/2_0/installing.html Googling for Nagios & libexec will also tell you where libexec would normally be. But it completely depends on how and where Nagios was originally installed. We are not psychic. You might want to ask someone who knows more about Linux to give you some pointers, Nagios is complicated enough to work out for people who are seasoned Linux users, let alone those who are new to it. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rup001 at yahoo.com Fri Nov 9 16:34:56 2007 From: rup001 at yahoo.com (Vuppala) Date: Fri, 9 Nov 2007 07:34:56 -0800 (PST) Subject: Oracle Applications monitor using nagios Message-ID: <517911.92354.qm@web54603.mail.re2.yahoo.com> Hello I would like to know is there a way to monitor oracle applications by logging in. Thanks __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gcoochey at sapphire.gi Fri Nov 9 16:36:15 2007 From: gcoochey at sapphire.gi (Giles Coochey) Date: Fri, 9 Nov 2007 16:36:15 +0100 Subject: Service scheduling In-Reply-To: <66955c170711090722x29e6c5f0r99c81876ce4f5c16@mail.gmail.com> References: <66955c170711090722x29e6c5f0r99c81876ce4f5c16@mail.gmail.com> Message-ID: <9D30659ABCA7FB428CF91E386C3A57449A79BD@hermes.sapphire-int.gi> > > I have a checkstring service that kicks off every 10 minutes. After > failure it will retry every minute. We're trying to track > availability on some of our servers so this is its purpose. However I > noticed this morning that a host went down, I received a PING 100% > packet loss alert, and shortly after within the same minute an alert > that it couldn't find the HTTP string. However, by 7:50 PING was ok, > and HTTP didn't return ok until 8:00 AM. If it's retrying every > minute (or should be), why is there such a large gap? > Normal Behaviour: Scheduling During Problems So what happens when there are problems with a service? Well, one of the things that happens is the service check scheduling changes. If you've configured the max_attempts option of the service definition to be something greater than 1, Nagios will recheck the service before deciding that a real problem exists. While the service is being rechecked (up to max_attempts times) it is considered to be in a "soft" state (as described here) and the service checks are rescheduled at a frequency determined by the retry_interval option. If Nagios rechecks the service max_attempts times and it is still in a non-OK state, Nagios will put the service into a "hard" state, send out notifications to contacts (if applicable), and start rescheduling future checks of the service at a frequency determined by the check_interval option. http://nagios.sourceforge.net/docs/2_0/checkscheduling.html ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Fri Nov 9 16:40:56 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Fri, 09 Nov 2007 15:40:56 +0000 Subject: Oracle Applications monitor using nagios In-Reply-To: <517911.92354.qm@web54603.mail.re2.yahoo.com> References: <517911.92354.qm@web54603.mail.re2.yahoo.com> Message-ID: <47347F88.3030108@googlemail.com> check_oracle from the standard nagios-plugins distribution. it requires that you have sqlplus installed though... -h Hari Sekhon Vuppala wrote: > Hello > I would like to know is there a way to monitor oracle applications > by logging in. > > Thanks > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gcoochey at sapphire.gi Fri Nov 9 16:41:53 2007 From: gcoochey at sapphire.gi (Giles Coochey) Date: Fri, 9 Nov 2007 16:41:53 +0100 Subject: Oracle Applications monitor using nagios In-Reply-To: <517911.92354.qm@web54603.mail.re2.yahoo.com> References: <517911.92354.qm@web54603.mail.re2.yahoo.com> Message-ID: <9D30659ABCA7FB428CF91E386C3A57449A79BF@hermes.sapphire-int.gi> Is it me today? # ./check_oracle --help check_oracle (nagios-plugins 1.4.9) 1.16 The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute copies of the plugins under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING. Usage: check_oracle --tns check_oracle --db check_oracle --login check_oracle --cache check_oracle --tablespace check_oracle --oranames check_oracle --help check_oracle --version Check Oracle status --tns SID/IP Address Check remote TNS server --db SID Check local database (search /bin/ps for PMON process) and check filesystem for sgadefORACLE_SID.dbf --login SID Attempt a dummy login and alert if not ORA-01017: invalid username/password --cache ________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Vuppala Sent: 09 November 2007 16:35 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Oracle Applications monitor using nagios Hello I would like to know is there a way to monitor oracle applications by logging in. Thanks __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jriggin at gmail.com Fri Nov 9 16:44:14 2007 From: jriggin at gmail.com (Jerad Riggin) Date: Fri, 9 Nov 2007 09:44:14 -0600 Subject: Service scheduling In-Reply-To: <9D30659ABCA7FB428CF91E386C3A57449A79BD@hermes.sapphire-int.gi> References: <66955c170711090722x29e6c5f0r99c81876ce4f5c16@mail.gmail.com> <9D30659ABCA7FB428CF91E386C3A57449A79BD@hermes.sapphire-int.gi> Message-ID: <66955c170711090744y4506afcbic17cd52093043689@mail.gmail.com> I currently have the normal check at 10 minutes, max attempts at 1, and retry intervals at 1. On Nov 9, 2007 9:36 AM, Giles Coochey wrote: > > > > > I have a checkstring service that kicks off every 10 minutes. After > > failure it will retry every minute. We're trying to track > > availability on some of our servers so this is its purpose. However I > > noticed this morning that a host went down, I received a PING 100% > > packet loss alert, and shortly after within the same minute an alert > > that it couldn't find the HTTP string. However, by 7:50 PING was ok, > > and HTTP didn't return ok until 8:00 AM. If it's retrying every > > minute (or should be), why is there such a large gap? > > > > Normal Behaviour: > > Scheduling During Problems > > So what happens when there are problems with a service? Well, one of the > things that happens is the service check scheduling changes. If you've > configured the max_attempts option of the service definition to be > something greater than 1, Nagios will recheck the service before > deciding that a real problem exists. While the service is being > rechecked (up to max_attempts times) it is considered to be in a "soft" > state (as described here) and the service checks are rescheduled at a > frequency determined by the retry_interval option. > > If Nagios rechecks the service max_attempts times and it is still in a > non-OK state, Nagios will put the service into a "hard" state, send out > notifications to contacts (if applicable), and start rescheduling future > checks of the service at a frequency determined by the check_interval > option. > > http://nagios.sourceforge.net/docs/2_0/checkscheduling.html > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Jason.Ellmers at firstgroup.com Fri Nov 9 16:45:50 2007 From: Jason.Ellmers at firstgroup.com (Jason Ellmers) Date: Fri, 9 Nov 2007 15:45:50 +0000 Subject: CN=Jason Ellmers/OU=FirstInfo/O=FirstGroup is out of the office. Message-ID: I will be Out of the Office Start Date: 09/11/2007. End Date: 12/11/2007. Thankyou for your mail. I am currently away from the office, returning on 12th November If you need a fault escalating please call the service desk on 0038696 (0870 241 5500) with the case reference and ask for Martina Nicholson who has overall responsibility for the Service Desk Dominic Pioli (Dominic Pioli at firstgroup.com - 07815756259) will also be availiable in my absence. Please use Dominic as an escelation point only. ********************************************************************** This message is confidential. It may not be disclosed to, or used by, anyone other than the addressee. If you receive this message in error, please advise us immediately. Internet email is not necessarily secure. First does not accept responsibility for changes to any email which occur after the email has been sent. Attachments to this email could contain software viruses which could damage your system. First have checked the attachments for viruses before sending, but you should virus-check them before opening. For more information on our range of services or to book your tickets online, please visit:- http://www.firstgroup.com ********************************************************************** ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tim at tany.com Fri Nov 9 16:48:50 2007 From: tim at tany.com (Tim Palmer) Date: Fri, 09 Nov 2007 10:48:50 -0500 Subject: Still can't, and needing guidance SNMP issue In-Reply-To: References: Message-ID: <47348162.7050803@tany.com> Christy.New at cancer.org wrote: > What is the libexec folder? Can you give me a direct path? I am new to > Linux. > > > Very Respectfully, > Christy M. New > 1(404)327-6490 > American Cancer Society > Corporate IT-NHO NOC > Network Infrastructure Engineer > > > > "Giles Coochey" > e.gi> To > , > 11/09/2007 10:07 AM > > cc > > Subject > RE: [Nagios-users] Still can't, and > needing guidance SNMP issue > > > > > > > > > > >> I have the snmp plugin, at least it is downloaded into my downloads > file >> on > > I believe you will need to put the executable in your libexec folder. > >> my linux server. However I can't monitor the following on my >> routers(which >> have snmp community strings on them. I can' monitor the snmp status > or >> bandwidth/ traffic rate. Can anyone help me figure out why I can't > see >> these on Nagios and the Nagios applications continues to say >> >> >> UNKNOWN 11-09-20 0d 22h 3/3 check_mrtgtraf: >> 07 53m 22s Unable to open > MRTG >> 23:47:18 log file >> > > I'm assuming you're not asking about this particular error in this > thread. >> >> Port 1 >> Bandwidt >> h Usage >> >> CRITICAL 11-09-20 0d 22h 3/3 (Return code of > 127 >> 07 51m 55s is out of bounds > - >> 23:48:45 plugin may be >> missing) > > It seems that Nagios cannot find the plugin, is it in your libexec > folder? > >> CRITICAL 11-09-20 0d 22h 3/3 (Return code of > 127 >> 07 50m 28s is out of bounds > - >> 23:53:21 plugin may be >> missing) >> >> > > This looks to be the same problem. > > What snmp plugin are you talking about? There are plenty out there > What version of Nagios are you talking about? > Perhaps if you provide some of your configuration, we might be able to > help some more? > > As it is, we need some psychic assistance here. /usr/libexec, and /usr/local/libexec is the quick answer to your question, but how useful that information will be depends on more information. If you could provide the following details, it would be very helpful: - output of command "uname -a" - Nagios version - exact name of the plugin you're having problems with From the errors you posted already, there may be some confusion - check_mrtggraf doesn't use snmp directly, it uses the information collected by a separate program called MRTG (which must be installed, configured and running properly in order to generate the log file check_mrtggraf currently can't find). And, there are many snmp plugins. - Nagios command definition for the plugin - Nagios service definition for the service calling this command. As Giles says, you really do need to have some understanding of the OS you're running Nagios on. Different OS's can install different bits of Nagios in different places, for one thing. tim ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gcoochey at sapphire.gi Fri Nov 9 16:47:15 2007 From: gcoochey at sapphire.gi (Giles Coochey) Date: Fri, 9 Nov 2007 16:47:15 +0100 Subject: Service scheduling In-Reply-To: <66955c170711090744y4506afcbic17cd52093043689@mail.gmail.com> References: <66955c170711090722x29e6c5f0r99c81876ce4f5c16@mail.gmail.com> <9D30659ABCA7FB428CF91E386C3A57449A79BD@hermes.sapphire-int.gi> <66955c170711090744y4506afcbic17cd52093043689@mail.gmail.com> Message-ID: <9D30659ABCA7FB428CF91E386C3A57449A79C0@hermes.sapphire-int.gi> > I currently have the normal check at 10 minutes, max attempts at 1, > and retry intervals at 1. > Once the service enters a hard state, it will be checked at the normal check_interval. The service is only checked once a minute (using the retry_interval) while it is in a SOFT state. The documentation does explain this quite well, I am not sure whether you can change this, but you won't be getting accurate downtime (to the minute) anyway, because you normally only check the service once every 10minutes, so it could already have been down for ten minutes when it first enters the SOFT state. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Fri Nov 9 16:50:13 2007 From: marc at ena.com (Marc Powell) Date: Fri, 9 Nov 2007 09:50:13 -0600 Subject: Service scheduling In-Reply-To: <66955c170711090744y4506afcbic17cd52093043689@mail.gmail.com> References: <66955c170711090744y4506afcbic17cd52093043689@mail.gmail.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Jerad Riggin > Sent: Friday, November 09, 2007 9:44 AM > To: Giles Coochey > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Service scheduling > > I currently have the normal check at 10 minutes, max attempts at 1, > and retry intervals at 1. This means that nagios will check the service every 10 minutes until there is a problem, then it will perform 1 check 1 minute later and send a notification if it's still in a non-OK state. All future checks return to the 10 minute interval, even if it's still in a non-OK state. retry_check_interval is only used up to max_check_attempts. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kakikubo at gmail.com Fri Nov 9 16:50:28 2007 From: kakikubo at gmail.com (kakikubo teruo) Date: Sat, 10 Nov 2007 00:50:28 +0900 (JST) Subject: LONGDATETIME return $ In-Reply-To: <495101cb834ae483207d7507613473e5@localhost> References: <495101cb834ae483207d7507613473e5@localhost> Message-ID: <20071110.005028.237321494.kakikubo@gmail.com> Hi > Hello, > > on a fresh install of Nagios 2.6 on Debian Etch, I got a strange problem that I never see before. When I receive mail notifications for an alert, the Date/Time in the Email body return $. Here is an example : > > ***** Nagios ***** > > Notification Type: PROBLEM > > Service: Test Nagios > Host: firewall > Address: 192.168.1.1 > State: CRITICAL > > Date/Time: $ > > Additional Info: > > Connection refused > > But when I receive an email for a "host down" notification, the Date/Time appear !? Here is what I got in commands.cfg : > > # 'host-notify-by-email' command definition > define command{ > command_name host-notify-by-email > command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTALIAS$\nState: $HOSTSTATE$ for $HOSTDURATION$\nAddress: $HOSTADDRESS$\nInfo:\n\n$HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n\nACK by: $HOSTACKAUTHOR$\nComment: $HOSTACKCOMMENT$\n" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ alert $NOTIFICATIONNUMBER$ - $HOSTALIAS$ host is $HOSTSTATE$ **" $CONTACTEMAIL$ > } If described as shown in the above-mentioned , It is sure to become the following formats ***** Nagios ***** Notification Type: $NOTIFICATIONTYPE$ Host: $HOSTALIAS$ State: $HOSTSTATE$ for $HOSTDURATION$ Address: $HOSTADDRESS$ Info: $HOSTOUTPUT$ Date/Time: $LONGDATETIME$ ACK by: $HOSTACKAUTHOR$ Comment: $HOSTACKCOMMENT$ > # '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$\nState: $SERVICESTATE$ for $SERVICEDURATION$\nAddress: $HOSTADDRESS$\n\nInfo:\n\n$SERVICEOUTPUT$\n\nDate/Time: $LONGDATETIME$\n\nACK by: $SERVICEACKAUTHOR$\nComment: $SERVICEACKCOMMENT$\n" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ alert $NOTIFICATIONNUMBER$ - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ > } This is sure to become as follows, too. ***** Nagios ***** Notification Type: $NOTIFICATIONTYPE$ Service: $SERVICEDESC$ Host: $HOSTALIAS$ State: $SERVICESTATE$ for $SERVICEDURATION$ Address: $HOSTADDRESS$ Info: $SERVICEOUTPUT$ Date/Time: $LONGDATETIME$ ACK by: $SERVICEACKAUTHOR$ Comment: $SERVICEACKCOMMENT$ I think that another notification settings caused the problem . > Thanks for your help! > > PS/ Sorry for my english :-) me too... :-( ------ kakikubo ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rup001 at yahoo.com Fri Nov 9 16:51:44 2007 From: rup001 at yahoo.com (Vuppala) Date: Fri, 9 Nov 2007 07:51:44 -0800 (PST) Subject: Oracle Applications monitor using nagios Message-ID: <861378.83217.qm@web54606.mail.re2.yahoo.com> Oracle Applications has lots of components, check_oracle plugin only checks for database up or down. Is there any other way i can login to application and check?? Thanks ----- Original Message ---- From: Giles Coochey To: Vuppala ; nagios-users at lists.sourceforge.net Sent: Friday, November 9, 2007 10:41:53 AM Subject: RE: [Nagios-users] Oracle Applications monitor using nagios Is it me today? # ./check_oracle --help check_oracle (nagios-plugins 1.4.9) 1.16 The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute copies of the plugins under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING. Usage: check_oracle --tns check_oracle --db check_oracle --login check_oracle --cache check_oracle --tablespace check_oracle --oranames check_oracle --help check_oracle --version Check Oracle status --tns SID/IP Address Check remote TNS server --db SID Check local database (search /bin/ps for PMON process) and check filesystem for sgadefORACLE_SID.dbf --login SID Attempt a dummy login and alert if not ORA-01017: invalid username/password --cache From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Vuppala Sent: 09 November 2007 16:35 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Oracle Applications monitor using nagios Hello I would like to know is there a way to monitor oracle applications by logging in. Thanks __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Fri Nov 9 16:54:01 2007 From: marc at ena.com (Marc Powell) Date: Fri, 9 Nov 2007 09:54:01 -0600 Subject: LONGDATETIME return $ In-Reply-To: <495101cb834ae483207d7507613473e5@localhost> References: <495101cb834ae483207d7507613473e5@localhost> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Sylvain Viollat > Sent: Friday, November 09, 2007 8:09 AM > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] LONGDATETIME return $ > > > Hello, > > on a fresh install of Nagios 2.6 on Debian Etch, I got a strange problem > that I never see before. When I receive mail notifications for an alert, > the Date/Time in the Email body return $. Here is an example : > > ***** Nagios ***** > > Notification Type: PROBLEM > > Service: Test Nagios > Host: firewall > Address: 192.168.1.1 > State: CRITICAL > > Date/Time: $ > > Additional Info: > > Connection refused > > But when I receive an email for a "host down" notification, the Date/Time > appear !? Here is what I got in commands.cfg : > > # '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$\nState: $SERVICESTATE$ for > $SERVICEDURATION$\nAddress: > $HOSTADDRESS$\n\nInfo:\n\n$SERVICEOUTPUT$\n\nDate/Time: > $LONGDATETIME$\n\nACK by: $SERVICEACKAUTHOR$\nComment: > $SERVICEACKCOMMENT$\n" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ alert > $NOTIFICATIONNUMBER$ - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" > $CONTACTEMAIL$ > } Are you _sure_ this is the notification command being used? The reason I ask is that you appear to be using the macro correctly but this is an issue that has only ever been seen when the wrong macro is used (i.e. $DATETIME$ from nagios-1.x). For some reason I'm under the impression that the debian packages are shipped with incorrect macros used. Did you have to change them? Did you restart nagios after and verify that there is only one nagios daemon running? -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gcoochey at sapphire.gi Fri Nov 9 16:54:14 2007 From: gcoochey at sapphire.gi (Giles Coochey) Date: Fri, 9 Nov 2007 16:54:14 +0100 Subject: Oracle Applications monitor using nagios In-Reply-To: <861378.83217.qm@web54606.mail.re2.yahoo.com> References: <861378.83217.qm@web54606.mail.re2.yahoo.com> Message-ID: <9D30659ABCA7FB428CF91E386C3A57449A79C5@hermes.sapphire-int.gi> Perhaps on NagiosExchange? http://www.nagiosexchange.org/Oracle.153.0.html?&tx_netnagext_pi1[p_view ]=795 Is that any use to you? ________________________________ From: Vuppala [mailto:rup001 at yahoo.com] Sent: 09 November 2007 16:52 To: Giles Coochey Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Oracle Applications monitor using nagios Oracle Applications has lots of components, check_oracle plugin only checks for database up or down. Is there any other way i can login to application and check?? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Fri Nov 9 16:56:11 2007 From: marc at ena.com (Marc Powell) Date: Fri, 9 Nov 2007 09:56:11 -0600 Subject: Oracle Applications monitor using nagios In-Reply-To: <861378.83217.qm@web54606.mail.re2.yahoo.com> References: <861378.83217.qm@web54606.mail.re2.yahoo.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Vuppala > Sent: Friday, November 09, 2007 9:52 AM > To: Giles Coochey > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Oracle Applications monitor using nagios > > Oracle Applications has lots of components, check_oracle plugin only > checks for database up or down. Is there any other way i can login to > application and check?? What other oracle application besides the database are you interested in monitoring? Looks like you need to explain your goals a bit more clearly. -- marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From joseph.petrucci at wachovia.com Fri Nov 9 17:22:48 2007 From: joseph.petrucci at wachovia.com (joseph.petrucci at wachovia.com) Date: Fri, 9 Nov 2007 11:22:48 -0500 Subject: Oracle Applications monitor using nagios In-Reply-To: <517911.92354.qm@web54603.mail.re2.yahoo.com> References: <517911.92354.qm@web54603.mail.re2.yahoo.com> Message-ID: I do not have a script that will log in to the application. I run scripts that get status's from $COMMON_TOP/admin/scripts/$CONTEXT_NAME. I also monitor long running concurrent manager jobs through SQL. What are you trying to monitor I can probably give you a script to do it. Joe Petrucci Cell : 724-462-0443 Vuppala Sent by: nagios-users-bounces at lists.sourceforge.net 11/09/2007 10:34 AM To nagios-users at lists.sourceforge.net cc Subject [Nagios-users] Oracle Applications monitor using nagios Hello I would like to know is there a way to monitor oracle applications by logging in. Thanks __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Christy.New at cancer.org Fri Nov 9 17:24:05 2007 From: Christy.New at cancer.org (Christy.New at cancer.org) Date: Fri, 9 Nov 2007 11:24:05 -0500 Subject: Still can't, and needing guidance SNMP issue In-Reply-To: <47348162.7050803@tany.com> References: <47348162.7050803@tany.com> Message-ID: Linux ATLNHONETOPS 2.6.10-16-server #2 SMP Sun Sep 23 19:57:25 UTC 2007 i686 GNU/Lunux Nagios-3.0b6 MRTG SNMP Nagios command definitions for the plugin(I don't know). I will attach a file, which you will need word proccessing application to open(usually found in linux)(See attached file: Nagios errors.abw) Very Respectfully, Christy M. New 1(404)327-6490 American Cancer Society Corporate IT-NHO NOC Network Infrastructure Engineer Tim Palmer To 11/09/2007 10:46 nagios-users at lists.sourceforge.net, AM Christy.New at cancer.org cc Subject Re: [Nagios-users] Still can't, and needing guidance SNMP issue Christy.New at cancer.org wrote: > What is the libexec folder? Can you give me a direct path? I am new to > Linux. > > > Very Respectfully, > Christy M. New > 1(404)327-6490 > American Cancer Society > Corporate IT-NHO NOC > Network Infrastructure Engineer > > > > "Giles Coochey" > e.gi> To > , > 11/09/2007 10:07 AM > > cc > > Subject > RE: [Nagios-users] Still can't, and > needing guidance SNMP issue > > > > > > > > > > >> I have the snmp plugin, at least it is downloaded into my downloads > file >> on > > I believe you will need to put the executable in your libexec folder. > >> my linux server. However I can't monitor the following on my >> routers(which >> have snmp community strings on them. I can' monitor the snmp status > or >> bandwidth/ traffic rate. Can anyone help me figure out why I can't > see >> these on Nagios and the Nagios applications continues to say >> >> >> UNKNOWN 11-09-20 0d 22h 3/3 check_mrtgtraf: >> 07 53m 22s Unable to open > MRTG >> 23:47:18 log file >> > > I'm assuming you're not asking about this particular error in this > thread. >> >> Port 1 >> Bandwidt >> h Usage >> >> CRITICAL 11-09-20 0d 22h 3/3 (Return code of > 127 >> 07 51m 55s is out of bounds > - >> 23:48:45 plugin may be >> missing) > > It seems that Nagios cannot find the plugin, is it in your libexec > folder? > >> CRITICAL 11-09-20 0d 22h 3/3 (Return code of > 127 >> 07 50m 28s is out of bounds > - >> 23:53:21 plugin may be >> missing) >> >> > > This looks to be the same problem. > > What snmp plugin are you talking about? There are plenty out there > What version of Nagios are you talking about? > Perhaps if you provide some of your configuration, we might be able to > help some more? > > As it is, we need some psychic assistance here. /usr/libexec, and /usr/local/libexec is the quick answer to your question, but how useful that information will be depends on more information. If you could provide the following details, it would be very helpful: - output of command "uname -a" - Nagios version - exact name of the plugin you're having problems with From the errors you posted already, there may be some confusion - check_mrtggraf doesn't use snmp directly, it uses the information collected by a separate program called MRTG (which must be installed, configured and running properly in order to generate the log file check_mrtggraf currently can't find). And, there are many snmp plugins. - Nagios command definition for the plugin - Nagios service definition for the service calling this command. As Giles says, you really do need to have some understanding of the OS you're running Nagios on. Different OS's can install different bits of Nagios in different places, for one thing. tim -------------- next part -------------- A non-text attachment was scrubbed... Name: Nagios errors.abw Type: application/octet-stream Size: 5542 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jriggin at gmail.com Fri Nov 9 17:25:04 2007 From: jriggin at gmail.com (Jerad Riggin) Date: Fri, 9 Nov 2007 10:25:04 -0600 Subject: Service scheduling In-Reply-To: References: <66955c170711090744y4506afcbic17cd52093043689@mail.gmail.com> Message-ID: <66955c170711090825u38b0c25dj9f3ed4340790bd0e@mail.gmail.com> Thanks for the clarification. On Nov 9, 2007 9:50 AM, Marc Powell wrote: > > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > > bounces at lists.sourceforge.net] On Behalf Of Jerad Riggin > > Sent: Friday, November 09, 2007 9:44 AM > > To: Giles Coochey > > Cc: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] Service scheduling > > > > I currently have the normal check at 10 minutes, max attempts at 1, > > and retry intervals at 1. > > This means that nagios will check the service every 10 minutes until > there is a problem, then it will perform 1 check 1 minute later and send > a notification if it's still in a non-OK state. All future checks return > to the 10 minute interval, even if it's still in a non-OK state. > retry_check_interval is only used up to max_check_attempts. > > -- > Marc > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Christy.New at cancer.org Fri Nov 9 17:31:22 2007 From: Christy.New at cancer.org (Christy.New at cancer.org) Date: Fri, 9 Nov 2007 11:31:22 -0500 Subject: Still can't, and needing guidance SNMP issue In-Reply-To: <9D30659ABCA7FB428CF91E386C3A57449A79B9@hermes.sapphire-int.gi> References: <9D30659ABCA7FB428CF91E386C3A57449A79B9@hermes.sapphire-int.gi> Message-ID: Thanks, I have already read this, I even printed out the300 page manual. I am slowly working threw it. There are parameter's, which have to be changed to mirror your devices, however the manual, isn't that clear on some things. I sent another email, which I answered some questions, and clarrified more. This should help you get me moving in the right direction. As far as SNMP I know my devices are running it, because we use it for Openview and Solarwinds, and PRTG. I downloaded this but have trouble pointing the files to the right folders, which they need to be in when they are extracted. Nagios-snmp-plugins.1.1.1.tgz is the plug in I download. Very Respectfully, Christy M. New 1(404)327-6490 American Cancer Society Corporate IT-NHO NOC Network Infrastructure Engineer "Giles Coochey" To , 11/09/2007 10:29 cc Subject RE: [Nagios-users] Still can't, and needing guidance SNMP issue > -----Original Message----- > From: Christy.New at cancer.org [mailto:Christy.New at cancer.org] > Sent: 09 November 2007 16:19 > To: Giles Coochey > Cc: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Still can't, and needing guidance SNMP issue > > What is the libexec folder? Can you give me a direct path? I am new to > Linux. > Try reading some documentation: http://nagios.sourceforge.net/docs/2_0/installing.html Googling for Nagios & libexec will also tell you where libexec would normally be. But it completely depends on how and where Nagios was originally installed. We are not psychic. You might want to ask someone who knows more about Linux to give you some pointers, Nagios is complicated enough to work out for people who are seasoned Linux users, let alone those who are new to it. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From carson at taltos.org Fri Nov 9 17:41:32 2007 From: carson at taltos.org (Carson Gaspar) Date: Fri, 09 Nov 2007 08:41:32 -0800 Subject: Nagios performance query Message-ID: <47348DBC.3070609@taltos.org> (Disclosure - I'm giving an invited talk at LISA next week on Nagios) I'm trying to determine the maximum active check rate that Nagios can sustain on a given system. I'm rather surprised that I can't seem to get more than about 3 checks per second. Am I just being dense? (I haven't used anything but passive checks for years now, so my active check foo is stale...) Nagios config settings (testing with 2.9, which is what we're using in production): service_inter_check_delay_method=0.01 (tried s as well...) service_interleave_factor=s host_inter_check_delay_methos=0.01 (tried s as well) max_concurrent_checks=0 service_reaper_frequency=1 sleep_time=0.01 performance stats show svc execution at 0 / .8 / .459, svc latency at 0 / 10467.99 / 4475.5599 (3 hours after launch, with only 32708 / 50000 services checked) I never see more than 9 nagios procs at once. The config is large (5000 hosts with 10 services each). The service checks are a simple c program that sleeps for half a second then returns OK. Is this really the best Nagios can do, or am I missing something? -- Carson ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tim at tany.com Fri Nov 9 19:10:37 2007 From: tim at tany.com (Tim Palmer) Date: Fri, 09 Nov 2007 13:10:37 -0500 Subject: Still can't, and needing guidance SNMP issue In-Reply-To: References: Message-ID: <4734A29D.8020007@tany.com> Please don't top post. My response is below Christy.New at cancer.org wrote: > Linux ATLNHONETOPS 2.6.10-16-server #2 SMP Sun Sep 23 19:57:25 UTC 2007 > i686 GNU/Lunux > > Nagios-3.0b6 > > MRTG > SNMP > > Nagios command definitions for the plugin(I don't know). > > I will attach a file, which you will need word proccessing application to > open(usually found in linux)(See attached file: Nagios errors.abw) > > > Very Respectfully, > Christy M. New > 1(404)327-6490 > American Cancer Society > Corporate IT-NHO NOC > Network Infrastructure Engineer > > > > Tim Palmer > > To > 11/09/2007 10:46 nagios-users at lists.sourceforge.net, > AM Christy.New at cancer.org > cc > > Subject > Re: [Nagios-users] Still can't, and > needing guidance SNMP issue > > > > > > > > > > > Christy.New at cancer.org wrote: >> What is the libexec folder? Can you give me a direct path? I am new to >> Linux. >> >> >> Very Respectfully, >> Christy M. New >> 1(404)327-6490 >> American Cancer Society >> Corporate IT-NHO NOC >> Network Infrastructure Engineer >> >> >> > >> "Giles Coochey" > >> >> e.gi> > To >> , > >> 11/09/2007 10:07 > > AM > > > cc > > Subject >> RE: [Nagios-users] Still can't, > and >> needing guidance SNMP issue > > > > > > > >> >> >> >>> I have the snmp plugin, at least it is downloaded into my downloads >> file >>> on >> I believe you will need to put the executable in your libexec folder. >> >>> my linux server. However I can't monitor the following on my >>> routers(which >>> have snmp community strings on them. I can' monitor the snmp status >> or >>> bandwidth/ traffic rate. Can anyone help me figure out why I can't >> see >>> these on Nagios and the Nagios applications continues to say >>> >>> >>> UNKNOWN 11-09-20 0d 22h 3/3 check_mrtgtraf: >>> 07 53m 22s Unable to open >> MRTG >>> 23:47:18 log file >>> >> I'm assuming you're not asking about this particular error in this >> thread. >>> Port 1 >>> Bandwidt >>> h Usage >>> >>> CRITICAL 11-09-20 0d 22h 3/3 (Return code of >> 127 >>> 07 51m 55s is out of bounds >> - >>> 23:48:45 plugin may be >>> missing) >> It seems that Nagios cannot find the plugin, is it in your libexec >> folder? >> >>> CRITICAL 11-09-20 0d 22h 3/3 (Return code of >> 127 >>> 07 50m 28s is out of bounds >> - >>> 23:53:21 plugin may be >>> missing) >>> >>> >> This looks to be the same problem. >> >> What snmp plugin are you talking about? There are plenty out there >> What version of Nagios are you talking about? >> Perhaps if you provide some of your configuration, we might be able to >> help some more? >> >> As it is, we need some psychic assistance here. > > /usr/libexec, and /usr/local/libexec is the quick answer to your > question, but how useful that information will be depends on more > information. If you could provide the following details, it would be > very helpful: > > - output of command "uname -a" > - Nagios version > - exact name of the plugin you're having problems with > From the errors you posted already, there may be some confusion - > check_mrtggraf doesn't use snmp directly, it uses the information > collected by a separate program called MRTG (which must be installed, > configured and running properly in order to generate the log file > check_mrtggraf currently can't find). And, there are many snmp plugins. > - Nagios command definition for the plugin > - Nagios service definition for the service calling this command. > > As Giles says, you really do need to have some understanding of the OS > you're running Nagios on. Different OS's can install different bits of > Nagios in different places, for one thing. > > tim > - Please don't post files in funny formats - text only. Assuming everyone has AbiWord is as unhelpful as people assuming everyone has MS Word available. - In general, never post real ip addresses, passwords or SNMP community strings in an open forum. Your email has already been indexed, and your community string is now compromised. I would change it immediately. Generally, the first place to start when troubleshooting plugins is to run the plugin from the command line, with the exact same params as you're passing in the service definition, although its common for the check_command in the service definition to be a redefined version of a plugin, defined in the command def file. so: (the following is from 2.x series. I haven't even looked at 3.x yet, so don't know if any of this has changed). - find where your commands are defined. Look in nagios.cfg, where ever that might be ("locate nagios.cfg" should work) - that will tell you the name and location of the command file. Then find the "define command" block that matches your check_command. Use the stuff given in the "command_line", with the params from your service definition, to run it manually. Make sense? If it works as root, su to the nagios user, and try it that way. Given that this is a forum of people helping each other, the more you can do yourself, the better your questions will be received. If you have trouble with the above, look at it, run check_snmp -h for help, think about it, google it a few ways before posting back. You'll also learn more that way. Good luck... ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jonbuys at mac.com Fri Nov 9 19:44:29 2007 From: jonbuys at mac.com (Jon Buys) Date: Fri, 9 Nov 2007 12:44:29 -0600 Subject: Still can't, and needing guidance SNMP issue In-Reply-To: <4734A29D.8020007@tany.com> References: <4734A29D.8020007@tany.com> Message-ID: <27388b060711091044m7d27c7f8w441380ed453b3c79@mail.gmail.com> I've always found this link helpful and a good read: http://www.catb.org/~esr/faqs/smart-questions.html Jon On 11/9/07, Tim Palmer wrote: > Please don't top post. My response is below > > Christy.New at cancer.org wrote: > > Linux ATLNHONETOPS 2.6.10-16-server #2 SMP Sun Sep 23 19:57:25 UTC 2007 > > i686 GNU/Lunux > > > > Nagios-3.0b6 > > > > MRTG > > SNMP > > > > Nagios command definitions for the plugin(I don't know). > > > > I will attach a file, which you will need word proccessing application to > > open(usually found in linux)(See attached file: Nagios errors.abw) > > > > > > Very Respectfully, > > Christy M. New > > 1(404)327-6490 > > American Cancer Society > > Corporate IT-NHO NOC > > Network Infrastructure Engineer > > > > > > > > Tim Palmer > > > > To > > 11/09/2007 10:46 nagios-users at lists.sourceforge.net, > > AM Christy.New at cancer.org > > cc > > > > Subject > > Re: [Nagios-users] Still can't, and > > needing guidance SNMP issue > > > > > > > > > > > > > > > > > > > > > > Christy.New at cancer.org wrote: > >> What is the libexec folder? Can you give me a direct path? I am new to > >> Linux. > >> > >> > >> Very Respectfully, > >> Christy M. New > >> 1(404)327-6490 > >> American Cancer Society > >> Corporate IT-NHO NOC > >> Network Infrastructure Engineer > >> > >> > >> > > > >> "Giles Coochey" > > > >> > > >> e.gi> > > To > >> , > > > >> 11/09/2007 10:07 > > >> AM > > > > > cc > > > > Subject > >> RE: [Nagios-users] Still can't, > > and > >> needing guidance SNMP issue > > > > > > > > > > > > > > > >> > >> > >> > >>> I have the snmp plugin, at least it is downloaded into my downloads > >> file > >>> on > >> I believe you will need to put the executable in your libexec folder. > >> > >>> my linux server. However I can't monitor the following on my > >>> routers(which > >>> have snmp community strings on them. I can' monitor the snmp status > >> or > >>> bandwidth/ traffic rate. Can anyone help me figure out why I can't > >> see > >>> these on Nagios and the Nagios applications continues to say > >>> > >>> > >>> UNKNOWN 11-09-20 0d 22h 3/3 check_mrtgtraf: > >>> 07 53m 22s Unable to open > >> MRTG > >>> 23:47:18 log file > >>> > >> I'm assuming you're not asking about this particular error in this > >> thread. > >>> Port 1 > >>> Bandwidt > >>> h Usage > >>> > >>> CRITICAL 11-09-20 0d 22h 3/3 (Return code of > >> 127 > >>> 07 51m 55s is out of bounds > >> - > >>> 23:48:45 plugin may be > >>> missing) > >> It seems that Nagios cannot find the plugin, is it in your libexec > >> folder? > >> > >>> CRITICAL 11-09-20 0d 22h 3/3 (Return code of > >> 127 > >>> 07 50m 28s is out of bounds > >> - > >>> 23:53:21 plugin may be > >>> missing) > >>> > >>> > >> This looks to be the same problem. > >> > >> What snmp plugin are you talking about? There are plenty out there > >> What version of Nagios are you talking about? > >> Perhaps if you provide some of your configuration, we might be able to > >> help some more? > >> > >> As it is, we need some psychic assistance here. > > > > /usr/libexec, and /usr/local/libexec is the quick answer to your > > question, but how useful that information will be depends on more > > information. If you could provide the following details, it would be > > very helpful: > > > > - output of command "uname -a" > > - Nagios version > > - exact name of the plugin you're having problems with > > From the errors you posted already, there may be some confusion - > > check_mrtggraf doesn't use snmp directly, it uses the information > > collected by a separate program called MRTG (which must be installed, > > configured and running properly in order to generate the log file > > check_mrtggraf currently can't find). And, there are many snmp plugins. > > - Nagios command definition for the plugin > > - Nagios service definition for the service calling this command. > > > > As Giles says, you really do need to have some understanding of the OS > > you're running Nagios on. Different OS's can install different bits of > > Nagios in different places, for one thing. > > > > tim > > > > - Please don't post files in funny formats - text only. Assuming > everyone has AbiWord is as unhelpful as people assuming everyone has MS > Word available. > - In general, never post real ip addresses, passwords or SNMP community > strings in an open forum. Your email has already been indexed, and your > community string is now compromised. I would change it immediately. > > Generally, the first place to start when troubleshooting plugins is to > run the plugin from the command line, with the exact same params as > you're passing in the service definition, although its common for the > check_command in the service definition to be a redefined version of a > plugin, defined in the command def file. > > so: > (the following is from 2.x series. I haven't even looked at 3.x yet, so > don't know if any of this has changed). > - find where your commands are defined. Look in nagios.cfg, where ever > that might be ("locate nagios.cfg" should work) - that will tell you the > name and location of the command file. Then find the "define command" > block that matches your check_command. Use the stuff given in the > "command_line", with the params from your service definition, to run it > manually. Make sense? > > If it works as root, su to the nagios user, and try it that way. > > Given that this is a forum of people helping each other, the more you > can do yourself, the better your questions will be received. If you have > trouble with the above, look at it, run check_snmp -h for help, think > about it, google it a few ways before posting back. You'll also learn > more that way. > > Good luck... > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From erik.froese at gmail.com Fri Nov 9 21:58:59 2007 From: erik.froese at gmail.com (Erik Froese) Date: Fri, 9 Nov 2007 15:58:59 -0500 Subject: Nagios web interface is blank but checks are running Message-ID: Everything was going fine with nagios until I changed a command today. I added -t 20 to the check_ssh command definition and restarted. Now the web interface gives the error. There doesn't appear to be any host status information in the status log... Make sure that Nagios is running and that you have specified the location of you status log correctly in the configuration files. That would suggest some kind of error reading the config files no? So I checked the config files (/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios/cfg). It gave the correct host, contact, service, ... etc counts and reports no errors or warnings. The permissions on the config files are fine as far as I can see. Interestingly the objects.cache file is empty. The nagios.log file is also empty var/*.dat are also empty So somehow nagios is loading up the configs, running checks, and sending notifications but when asked for information about what it monitoring, it says nothing. Any ideas? Erik ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Fri Nov 9 22:04:31 2007 From: marc at ena.com (Marc Powell) Date: Fri, 9 Nov 2007 15:04:31 -0600 Subject: Nagios web interface is blank but checks are running In-Reply-To: References: Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Erik Froese > Sent: Friday, November 09, 2007 2:59 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nagios web interface is blank but checks are > running > > Everything was going fine with nagios until I changed a command today. > I added -t 20 to the check_ssh command definition and restarted. > > Now the web interface gives the error. > There doesn't appear to be any host status information in the status > log... Do you have more than one nagios daemon running? -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From erik.froese at gmail.com Fri Nov 9 22:08:33 2007 From: erik.froese at gmail.com (Erik Froese) Date: Fri, 9 Nov 2007 16:08:33 -0500 Subject: Nagios web interface is blank but checks are running In-Reply-To: References: Message-ID: Thanks but that's not it. I saw thats a common issue when people see disappearing hosts or services. Erik On 11/9/07, Marc Powell wrote: > > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > > bounces at lists.sourceforge.net] On Behalf Of Erik Froese > > Sent: Friday, November 09, 2007 2:59 PM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Nagios web interface is blank but checks are > > running > > > > Everything was going fine with nagios until I changed a command today. > > I added -t 20 to the check_ssh command definition and restarted. > > > > Now the web interface gives the error. > > There doesn't appear to be any host status information in the status > > log... > > Do you have more than one nagios daemon running? > > -- > Marc > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From td3201 at gmail.com Fri Nov 9 22:45:29 2007 From: td3201 at gmail.com (Terry) Date: Fri, 9 Nov 2007 15:45:29 -0600 Subject: timeperiod discrepancy In-Reply-To: <8ee061010711080719n7c5ecf6yfeb57344319ca200@mail.gmail.com> References: <8ee061010711080719n7c5ecf6yfeb57344319ca200@mail.gmail.com> Message-ID: <8ee061010711091345u130ce50id84d859765559f79@mail.gmail.com> On Nov 8, 2007 9:19 AM, Terry wrote: > Here is what I have in the config: > define timeperiod{ > timeperiod_name engineer01 > alias engineer01 > 2007-11-05 / 42 00:00-24:00 ; Every 42 days (6 weeks), > starting November 5th, 2007 > 2007-11-06 / 42 00:00-24:00 ; Every 6th Tuesday starting > November 6th, 2007 > 2007-11-07 / 42 00:00-24:00 ; Every 6th Wednesday starting > November 7th, 2007 > 2007-11-08 / 42 00:00-24:00 ; Every 6th Thursday starting > November 8th, 2007 > 2007-11-09 / 42 00:00-24:00 ; Every 6th Friday starting > November 9th, 2007 > 2007-11-10 / 42 00:00-24:00 ; Every 6th Saturday starting > November 10th, 2007 > 2007-11-11 / 42 00:00-24:00 ; Every 6th Sunday starting > November 11th, 2007 > } > > > Here is what shows up via the view config on the web: > engineer01 engineer01 2007-09-11 / 42 00:00:00 - 24:00:00 > 2007-09-10 / 42 00:00:00 - 24:00:00 > 2007-09-09 / 42 00:00:00 - 24:00:00 > 2007-09-08 / 42 00:00:00 - 24:00:00 > 2007-09-07 / 42 00:00:00 - 24:00:00 > 2007-09-06 / 42 00:00:00 - 24:00:00 > 2007-09-05 / 42 00:00:00 - 24:00:00 > > > What is going on here that I am missing? > Sorry, I re-read my email and I am missing some important information: CentOS release 5 nagios-3.0b5-1.fc4.test Thanks! ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From amontibello at gmail.com Sat Nov 10 03:31:37 2007 From: amontibello at gmail.com (Anthony Montibello) Date: Fri, 9 Nov 2007 21:31:37 -0500 Subject: nsclient, is it still an acceptable method to monitor nt In-Reply-To: <473437F4.40407@op5.se> References: <31fabc220711081355ic62ff1rf115d680fccb7b71@mail.gmail.com> <47339A92.5080501@op5.se> <9D30659ABCA7FB428CF91E386C3A57449A7941@hermes.sapphire-int.gi> <473437F4.40407@op5.se> Message-ID: Thanks Andreas, Good Description of the differences, However, you forgot to mension NC_Net also supports NSCA for Passive checks. So in my eyes, each flavor of the current Windows Plugins offers a different set of enhancements, NSCLIENT++ has NRPE and some other enhancements NC_NET has NSCA, event logs, RunScripts,WMI,... (And supports Whitespace in Service names) OpMon - may be introducing NRPE soon? and hopefully other enhancements All three are compatible to the Check_NT from the official Plugins and should return similar results. Tony (Author of NC_Net) On Nov 9, 2007 5:35 AM, Andreas Ericsson wrote: > Giles Coochey wrote: > >> Steve Ensley wrote: > >>> I'm upgrading another departments Nagios 1.3 instance to Nagios 2.9. > >> they > >>> are using nsclient to get some info from some nt servers. Most of > > my > >> Nagios > >>> experience has been monitoring Unix servers. > >>> > >>> The website at http://nsclient.ready2run.nl/ for nsclient doesnt > > seem to > >>> have been touched since 2004. Is it still a viable method to > > monitor nt > >>> servers or is there somthing else I should be looking into to > > replace > >> it. > >> Try NSClient++ instead. It's at sourceforge somewhere, and is quite a > > lot > >> fresher. NSClient might work, but it's getting rather ancient. > >> > > > > I had this same quandary sometime back. > > > > Options were > > > > NSClient (seems too old, not being developed) > > NSClient++ (presumably enhanced in some way) > > OpServices version of NSClient (still being developed) > > NC_Net (still being developed) > > > > In the end I simply went with NC_Net and it appears to work for us just > > fine, and I often see the author on this list, which tells me that he's > > still involved with Nagios in some way. > > > > It would be nice if all the different people who independently developed > > all the different versions 'unforked' their efforts though :-), it would > > make the decision on which one to use much easier, by having a lack of > > choice!! > > They aren't really forks. OpServices have simply taken over maintainership > of NSClient (more or less, as the original author seems to have vanished). > NSClient++ is a re-implementation in C++, with support for NRPE style > script > based checks as well. NC_Net does things through dot net stuff and some m$ > voodoo, but incorporates the NSClient mode of address since that's what > the > official plugins support. > > So it's really three different agents. > > -- > Andreas Ericsson andreas.ericsson at op5.se > OP5 AB www.op5.se > Tel: +46 8-230225 Fax: +46 8-230231 > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From moshesharon at gmail.com Sat Nov 10 13:17:20 2007 From: moshesharon at gmail.com (moshe sharon) Date: Sat, 10 Nov 2007 14:17:20 +0200 Subject: nsclient, is it still an acceptable method to monitor nt In-Reply-To: References: <31fabc220711081355ic62ff1rf115d680fccb7b71@mail.gmail.com> <47339A92.5080501@op5.se> <9D30659ABCA7FB428CF91E386C3A57449A7941@hermes.sapphire-int.gi> <473437F4.40407@op5.se> Message-ID: <88ad29240711100417m3913123dnc64d2b9cad3a827e@mail.gmail.com> Hi NRPE NT seems to me the best way to monitor windows services. since there are alot of plug ins available at nagiosexchange and around the web. it support windows NT/2000/2003/vista. also 32 and 64 bit. And the biggest advantage it consume little resources compare to the other solutions NRPE NT http://www.nagiosexchange.org/Windows.49.0.html?&tx_netnagext_pi1[p_view]=64 Some basic plugins http://www.nagiosexchange.org/Windows_NRPE.66.0.html?&tx_netnagext_pi1[p_view]=62 Hope it helped Moshe Sharon http://www.centerity.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nhonore at caci.com Sat Nov 10 22:01:34 2007 From: nhonore at caci.com (Noel Honore) Date: Sat, 10 Nov 2007 16:01:34 -0500 Subject: Noel Honore is out of the office. Message-ID: I will be out of the office starting 11/09/2007 and will not return until 11/19/2007. I will respond to your message when I return. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From trevor_obba at yahoo.co.uk Sat Nov 10 23:20:30 2007 From: trevor_obba at yahoo.co.uk (trevor obba) Date: Sat, 10 Nov 2007 22:20:30 +0000 (GMT) Subject: nagios replication Message-ID: <106207.89844.qm@web23309.mail.ird.yahoo.com> I am running Nagios 2.5 on suse Linux machine and I am replicating nagios files and database using rsync, mysql replication. Those databases are replicated to a remote site ?Nagios server B? monitoring the same servers however when I disable a notification for a host or service on Nagios server A? this does not get replicated to Nagios server B? When ?Disable notification for this service? is click on or host notification is disabled by clicking ?Disable notification for this host? via web, what file or database get writing too? Basically, when a service or host notification is disabled via web what get modify? I would like to replicate the file or database, so that when a service or hosts notification is disabled, this gets replicated to the remote site. ___________________________________________________________ Yahoo! Answers - Got a question? Someone out there knows the answer. Try it now. http://uk.answers.yahoo.com/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From yana.millis at gmail.com Mon Nov 12 06:41:40 2007 From: yana.millis at gmail.com (Yana Millis) Date: Mon, 12 Nov 2007 15:41:40 +1000 Subject: Discrpancy b/w NDOUtils DB and Nagios Message-ID: Hello, i'm trying to make some sense out of the data in NDOUtils hostchecks table...Basically, I just want to test which hosts have ever been down at any time. There is large number of hosts whose host status, according to Nagios' web interface, has been in critical DOWN condition for quite some time. However, when I run the query on NDOUtils tables, only a very small subset of these hosts show up. (I.e. nagios shows that host X,Y,Z and W are down, but when I run the query on DNOUtils hostchecks data table, only Y and Z show up as having ever been down, which is *weird*). I've ensured that Nagios performs the checks every two minutes, that both nagios and ndoUtils have been running long enough, and that the Ndo2db is only trimmed once a week (so trimming could not be the cause of the missing records...) The query that I'm running is as follows: SELECT o.name1, o.object_id, h.host_object_id FROM nagios.nagios_objects o INNER JOIN nagios.nagios_hostchecks h ON o.object_id=h.host_object_id WHERE o.objecttype_id=1 AND h.state=1 AND is_raw_check=0; So can anybody suggest a reason why the hosts which are down (and critical) in Nagios' web interface are not recorded as such in NDOUtils' database ?? thanks alot for any suggestions : 0) --yana ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chrisserafin at gmail.com Mon Nov 12 07:45:15 2007 From: chrisserafin at gmail.com (chris serafin) Date: Mon, 12 Nov 2007 00:45:15 -0600 Subject: check_snmp_storage fails on 2003 box, works manually Message-ID: I'm having an issue with getting some SNMP commands to work. When issuing the check_snmp_storage.pl manually, I get perfect results, but once I put it in Nagios 3.0b5, I get critical alerts: (Return code of 127 is out of bounds - plugin may be missing) This is the manual command I enter and the result: $ sudo ./check_snmp_storage.pl -H 192.168.1.200 -C pUBLIC -m C -w 80 -c 95 C:\ Label: Serial Number d0d8a583: 66%used(9055MB/13774MB) (<80%) : OK This is how I defined the command and service: define command{ command_name check_snmp_storage_windrive command_line $USER1$/check_snmp_storage -H $HOSTADDRESS$ -C $ARG1$ -m $ARG2$ -w $ARG3$ -c $ARG4$ } define service{ use generic-service host_name Bunker01_Win2003-01 service_description Check Drive C Memory check_command check_snmp_storage_windrive!pUBLIC!^C!90!100! } The host is running Ubuntu 7.x and Nagios 3.0b5 Chris Serafin Security Engineer chris at chrisserafin.com ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hvdkooij at vanderkooij.org Mon Nov 12 07:58:42 2007 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Mon, 12 Nov 2007 07:58:42 +0100 Subject: check_snmp_storage fails on 2003 box, works manually In-Reply-To: References: Message-ID: <4737F9A2.5010607@vanderkooij.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 chris serafin wrote: > I'm having an issue with getting some SNMP commands to work. > > When issuing the check_snmp_storage.pl manually, I get perfect results, > but once I put it in Nagios 3.0b5, I get critical alerts: (Return code > of 127 is out of bounds - plugin may be missing) > > This is the manual command I enter and the result: > > $ sudo ./check_snmp_storage.pl -H 192.168.1.200 -C pUBLIC -m C -w 80 -c 95 Great for root. But what about the account that Nagios is running as? Did you test it too? And where did you put check_snmp_storage.pl exactly? ./ is a rather relative distinction. But I think it does not matter .... > This is how I defined the command and service: > define command{ > command_name check_snmp_storage_windrive > command_line $USER1$/check_snmp_storage -H $HOSTADDRESS$ -C > $ARG1$ -m $ARG2$ -w $ARG3$ -c $ARG4$ Hold on. Why are you afraid to come out and tell nagios it is a perl script? $USER1$/check_snmp_storage !!= ./check_snmp_storage.pl For those unaware of pseudo code: !!= stands for 'is most definitly NOT'. Pretty much as !~= stands for 'almost but not quite unlike`;-) 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) iD8DBQFHN/mgBvzDRVjxmYERAmt3AKCD35Rz1k7aT3POzEvQPYUNEQXo4ACfUa0H Mg/Qj9Pt1/o0/6T4xxwwxZg= =GD0Z -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marcin at 2fluid.co.uk Mon Nov 12 15:15:33 2007 From: marcin at 2fluid.co.uk (Marcin Praczko) Date: Mon, 12 Nov 2007 14:15:33 -0000 Subject: Two difrent location - one monitoring system. Message-ID: Hi EveryOne, I would like to ask you about some Nagios Solusion. These Is current configuration: Localisation 1. Server1 ServerA Server2 ServerB Server3 --- Nagios Server --- > < --- ServerX (NRPE) --- ServerC Server4 ServerD Etc Ath this moment I am pinging all servers from Main Nagios Server and via NRPE on ServerX. Everything seems working fine, but ? Servers1..4 ? Nagios is seeing as Host (that is right) But serversA..D ? For nagios are services belong to ServerX (This is what I don?t want). Do you know how can I make configuration ? to working the same way, but all servers behing ServerX should be visible for Nagios as Host not Services? Thank you very much for your help. Marcin Praczko. No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.503 / Virus Database: 269.15.27/1121 - Release Date: 09/11/2007 19:29 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marcin at 2fluid.co.uk Mon Nov 12 15:21:34 2007 From: marcin at 2fluid.co.uk (Marcin Praczko) Date: Mon, 12 Nov 2007 14:21:34 -0000 Subject: Notification. Message-ID: Dear Nagios user. I would like to ask you about some Nagios notification configuration. On my Nagios I have two notification, one is via email, and second is via SMS. And now if some problem will appear I have got both alert email and sms, what is correct. But know on my servers some problems Cannot be fixed in 5/10 minutes. (Two servers every day are busy durning the day). And know I?ve got SMS and email any time When this is chcecking ? which in my confirmation is every 2 minutes. I would like to ask you that is possible to configure get on SMS when some problem with appear? For example: - everything is OK --- no alerts - I have some problem (but it will take langer to fix that 5 minutes) ? I would like to get only one SMS, but I can get a lot of emails - When the problem will be fixed ? and for example will appear after two/three hours ? I would like to get again only one SMS It is possible? Marcin Praczko. No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.503 / Virus Database: 269.15.27/1121 - Release Date: 09/11/2007 19:29 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Mon Nov 12 15:41:20 2007 From: marc at ena.com (Marc Powell) Date: Mon, 12 Nov 2007 08:41:20 -0600 Subject: Two difrent location - one monitoring system. In-Reply-To: References: Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Marcin Praczko > Sent: Monday, November 12, 2007 8:16 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Two difrent location - one monitoring system. > > > > Hi EveryOne, > > I would like to ask you about some Nagios Solusion. > > These Is current configuration: > > > Localisation 1. > > Server1 ServerA > Server2 ServerB > Server3 --- Nagios Server --- > < --- ServerX (NRPE) --- ServerC > Server4 ServerD > Etc > > > Ath this moment I am pinging all servers from Main Nagios Server and via > NRPE on ServerX. > Everything seems working fine, but - Servers1..4 - Nagios is seeing as > Host (that is right) > But serversA..D - For nagios are services belong to ServerX (This is what > I don't want). > > Do you know how can I make configuration - to working the same way, but > all servers behing ServerX should be visible for Nagios as Host not > Services? Why not use the host_name you want displayed in the host{} definitions but the host{} address for serverX? The host_name is used for display/notification purposes and the address is only used behind the scenes for communication. Assign the individual services{} for each host currently defined against serverX to the appropriate new host. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marcin at 2fluid.co.uk Mon Nov 12 15:49:09 2007 From: marcin at 2fluid.co.uk (Marcin Praczko) Date: Mon, 12 Nov 2007 14:49:09 -0000 Subject: Two difrent location - one monitoring system. Message-ID: > Why not use the host_name you want displayed in the host{} definitions > but the host{} address for serverX? The host_name is used for > display/notification purposes and the address is only used behind the > scenes for communication. Assign the individual services{} for each host > currently defined against serverX to the appropriate new host. Look - I am asking that is possible? Normally when you configure host and service - check_host - nagios is pinging the host. But I would like to check all servers behind the NAT (localnetwork) - so it is not possible ping them from outside (second location). So I created serices on Gateway - check_ping and put hardcore configuration in NRPE. This way is fine - but I see all local IP as service from NRPE (ServerX). But I would like to see it at host. For example: HOST: name.location2 IP: AAA.BBB.CCC.DDD Service: service1 Service: service2 But all this queries must go threw ServerX Marcin Praczko No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.503 / Virus Database: 269.15.27/1121 - Release Date: 09/11/2007 19:29 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Mon Nov 12 16:12:10 2007 From: marc at ena.com (Marc Powell) Date: Mon, 12 Nov 2007 09:12:10 -0600 Subject: Two difrent location - one monitoring system. In-Reply-To: References: Message-ID: > -----Original Message----- > From: Marcin Praczko [mailto:marcin at 2fluid.co.uk] > Sent: Monday, November 12, 2007 8:49 AM > To: Marc Powell; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Two difrent location - one monitoring system. > > > Why not use the host_name you want displayed in the host{} definitions > > but the host{} address for serverX? The host_name is used for > > display/notification purposes and the address is only used behind the > > scenes for communication. Assign the individual services{} for each host > > currently defined against serverX to the appropriate new host. > > Look - I am asking that is possible? > Normally when you configure host and service - check_host - nagios is > pinging the host. Nagios is pinging the host address, not the host_name. That's an important distinction. > But I would like to check all servers behind the NAT (localnetwork) - so > it is not possible ping them from outside (second location). > > So I created serices on Gateway - check_ping and put hardcore > configuration in NRPE. This way is fine - but I see all local IP as > service from NRPE (ServerX). What do you mean by this last sentence? Where are you seeing this IP? Is your primary concern only the IP that is displayed in the GUI? I took your original e-mail to mean that you want all the services associated with ServerX that are really for ServerA..D to be their own host/services. I still don't see an issue with doing that. While they would all have the correct host names, they'd still need to show the IP for ServerX since it's the only address nagios must know about. > But I would like to see it at host. > For example: > > HOST: name.location2 > IP: AAA.BBB.CCC.DDD > Service: service1 > Service: service2 If your concern is that the IP displayed doesn't match the host_name that nagios is checking, proceed as I indicated in my first e-mail, but also create a new check_nrpe command definition that uses a hard coded of serverX to send commands to, ignoring the host address defined in nagios. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mkellermann at net-com.de Mon Nov 12 16:42:40 2007 From: mkellermann at net-com.de (Matthias Kellermann) Date: Mon, 12 Nov 2007 16:42:40 +0100 Subject: Plugin for monitoring FreeBSD for updates (like check_apt)? Message-ID: <47387470.6050103@net-com.de> Hi list, anyone knows of a Nagios plugin to check the FreeBSD ports and base system for updates? I'm searching for something like check_apt for Debian/Ubuntu. One important thing is that I also want to monitor all the FreeBSD jails for updates, too. Any help/hint appreciated :) Matthias ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mwlucas at blackhelicopters.org Mon Nov 12 16:50:44 2007 From: mwlucas at blackhelicopters.org (Michael W. Lucas) Date: Mon, 12 Nov 2007 10:50:44 -0500 Subject: Plugin for monitoring FreeBSD for updates (like check_apt)? In-Reply-To: <47387470.6050103@net-com.de> References: <47387470.6050103@net-com.de> Message-ID: <20071112155044.GB43856@bewilderbeast.blackhelicopters.org> On Mon, Nov 12, 2007 at 04:42:40PM +0100, Matthias Kellermann wrote: > Hi list, > > anyone knows of a Nagios plugin to check the FreeBSD ports and base > system for updates? I'm searching for something like check_apt for > Debian/Ubuntu. > > One important thing is that I also want to monitor all the FreeBSD jails > for updates, too. Any help/hint appreciated :) None exists today. It should be fairly simple to write a NRPE wrapper around portmaster, however. I believe (but might be wrong) that net-snmp also has the ability to read the FreeBSD package database; you could run a snmpwalk on the target machine and compare that to a master package database. Good luck, and if you implement something be sure to let us know about it. ==ml > > Matthias > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Michael W. Lucas mwlucas at BlackHelicopters.org, mwlucas at FreeBSD.org http://www.BlackHelicopters.org/~mwlucas/ Coming Soon: "Absolute FreeBSD" -- http://www.AbsoluteFreeBSD.com On 5/4/2007, the TSA kept 3 pairs of my soiled undies "for security reasons." ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marcin at 2fluid.co.uk Mon Nov 12 17:12:50 2007 From: marcin at 2fluid.co.uk (Marcin Praczko) Date: Mon, 12 Nov 2007 16:12:50 -0000 Subject: Two difrent location - one monitoring system. Message-ID: Thank you very much for explaing some ideas. I know that maybe I don?t understand your idea - I apologies for that. Look: I have local network behind one server which is available to connect from Internet. But behind this server are network devices (NAS, IDS, etc) which communicate each other by local IP addresses. And I maintaining second network. Each of this network doesn't trust each other. And now you have: Nagios Server ------ ServerX ----- (LAN IPs to others network devices). I Configured NRPE on ServerX to hardcore ping local IPs (But I would like to Develop this configuration to checking for example free space on NAS, Network bandwich on NAS, etc, etc). At this moment is working (NAGIOS - Service group): ServerX - Checking services on ServerX - Pinging LOCAL IP1 - Pinging LOCAL IP2 - Pinging LOCAL IP3 So if I add service - check free space - that I will get next service for ServerX But I would like to have: ServerX - Checking services on ServerX Group Local devices on location 2. Server with IP1 - Checking services on Server with IP1 Server with IP2 - Checking services on Server with IP2 Etc. IP1 and IP2 have local IP - not external. The reason to do that. I would like to have only one port opened (NRPE) on one server and checking all HOSTs and SERVICEs behid this server (ServerX). I just like groups and working with them. I am not so familiar with Nagios, this is a beginning of my adventure with this software. So I am asking how (or if) can be done? If yes, please explain me how. If I understood correctly from nagios manual. We have two pings. Service and Host. So I service will fail, and server will be marked as DOWN. The host ping is sending to server (right?). So here I would like to run NRPE command on ServerX (Ping LOCAL IP). If server is back up - the software ping is checking what happen (right?) And here Again I would like to send command to NRPE - ping local IP. Etc. At this moment I can't do (but I don't say that I am right) to make one group from LOCAL IPs behind ServerX and sending everything via NRPE on ServerX I hope that time is clear what I would like to know. Marcin Praczko. No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.503 / Virus Database: 269.15.27/1121 - Release Date: 09/11/2007 19:29 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gt4ne1 at gmail.com Mon Nov 12 17:31:02 2007 From: gt4ne1 at gmail.com (GT4NE1) Date: Mon, 12 Nov 2007 08:31:02 -0800 Subject: Two instances of ndo2db running... Message-ID: <18894d440711120831y7bfaad94l1ad3b67c1a0503e0@mail.gmail.com> I'm having an issue with NDOutils where it starts two instances of ndo2db. I start one manually like the install says, but when I start nagios, a second instance pops up. The strange thing is it didn't do this the first time I started everything up after installing. It wrote to the database and the nagios.log was continualy being updated. But ever since I stopped nagios and ndo2db and tried to start everything up again, it now starts two instances and only writes information to the database on the first connect and then no longer does anything. Using RHEL 5 AP, with Nagios 3.0b6 and NDOUtils 1.47b Here is the successfull connection when I first start it up from nagios.log but after that, nagios.log does not update at all, even though nagios.debug is and the webpage is showing current checks, nothing is being written to the database. [1194884032] Event broker module '/usr/local/nagios/bin/ndomod.o' deinitialized successfully. [1194884417] Nagios 3.0b6 starting... (PID=13608) [1194884417] LOG VERSION: 2.0 [1194884417] ndomod: NDOMOD 1.4b7 (10-31-2007) Copyright (c) 2005-2007 Ethan Galstad (nagios at nagios.org) [1194884417] ndomod: Successfully connected to data sink. 0 queued items to flush. [1194884417] Event broker module '/usr/local/nagios/bin/ndomod.o' initialized successfully. [1194884417] Finished daemonizing... (New PID=13611) I belive it's because of the two instances of ndo2db, but I can't figure out how to get rid of one. If I shutdown everything and then just start nagios, no ndo2db processes start up. It only happens when there is already one present. Any ideas why two ndo2db process are starting? Thanks, -GT ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jriggin at gmail.com Mon Nov 12 17:38:07 2007 From: jriggin at gmail.com (Jerad Riggin) Date: Mon, 12 Nov 2007 10:38:07 -0600 Subject: Checkhttp string Message-ID: <66955c170711120838l66f87b87xffd8625ad756be84@mail.gmail.com> How do I go about checking a specific page in a site? I am able to successfully check a string on the default document for a site but if I specify for example index2.aspx in the host part of checkhttp, it throws an error. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Mon Nov 12 18:15:55 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Mon, 12 Nov 2007 17:15:55 +0000 Subject: Checkhttp string In-Reply-To: <66955c170711120838l66f87b87xffd8625ad756be84@mail.gmail.com> References: <66955c170711120838l66f87b87xffd8625ad756be84@mail.gmail.com> Message-ID: <47388A4B.4030109@googlemail.com> don't you mean to use -u /index.aspx instead of putting it in the host part? ;-) try something more along the lines of: check_http -H www.mysite.com -u /index.aspx -s "string to look for" -h Hari Sekhon Jerad Riggin wrote: > How do I go about checking a specific page in a site? I am able to > successfully check a string on the default document for a site but if > I specify for example index2.aspx in the host part of checkhttp, it > throws an error. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marcin at 2fluid.co.uk Mon Nov 12 18:22:27 2007 From: marcin at 2fluid.co.uk (Marcin Praczko) Date: Mon, 12 Nov 2007 17:22:27 -0000 Subject: Checkhttp string Message-ID: > How do I go about checking a specific page in a site? I am able to > successfully check a string on the default document for a site but if > I specify for example index2.aspx in the host part of checkhttp, it > throws an error. You can use command (Exacly with ENTER as I wrote:) define command { command_name check_http command_line $USER1$/check tcp \ -H $HOSTADDRESS$ -p 80 -s 'GET / HTTP/1.0 ' -e 'HTTP/1.0 200 OK' } But you can see webinject. I didn?t try it but author from book: "Building a monitoring infrastructure with nagios" (David Josephsen) said that is very good solution. You can parse data (expected respone etc - parse that is error messeage like: MySQL Error, etc). [Above command is example form this book as well]. HTH. Marcin Praczko. No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.503 / Virus Database: 269.15.27/1121 - Release Date: 09/11/2007 19:29 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.morris at hp.com Mon Nov 12 20:47:34 2007 From: patrick.morris at hp.com (Patrick Morris) Date: Mon, 12 Nov 2007 11:47:34 -0800 Subject: Two instances of ndo2db running... In-Reply-To: <18894d440711120831y7bfaad94l1ad3b67c1a0503e0@mail.gmail.com> References: <18894d440711120831y7bfaad94l1ad3b67c1a0503e0@mail.gmail.com> Message-ID: <20071112194734.GH18464@pmorris.usa.hp.com> On Mon, 12 Nov 2007, GT4NE1 wrote: > Any ideas why two ndo2db process are starting? That's just the way it works. If you only saw one, it'd mean it wasn't working. You'll see one when you start it up, and a second will appear when Nagios uses it. It's not a problem. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jriggin at gmail.com Mon Nov 12 22:15:40 2007 From: jriggin at gmail.com (Jerad Riggin) Date: Mon, 12 Nov 2007 15:15:40 -0600 Subject: Nagios time format Message-ID: <66955c170711121315r39452d71ub9ac82b965c71a5e@mail.gmail.com> Is there a way to change the time format that nagios uses? CST would make the logs easier to read. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Mon Nov 12 22:24:05 2007 From: marc at ena.com (Marc Powell) Date: Mon, 12 Nov 2007 15:24:05 -0600 Subject: Nagios time format In-Reply-To: <66955c170711121315r39452d71ub9ac82b965c71a5e@mail.gmail.com> References: <66955c170711121315r39452d71ub9ac82b965c71a5e@mail.gmail.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Jerad Riggin > Sent: Monday, November 12, 2007 3:16 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nagios time format > > Is there a way to change the time format that nagios uses? CST would > make the logs easier to read. Not within the logfiles themselves (and you don't want to change them) but this FAQ covers a couple of different ways to display them with localtime -- http://www.nagios.org/faqs/viewfaq.php?faq_id=70 -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gt4ne1 at gmail.com Mon Nov 12 22:24:53 2007 From: gt4ne1 at gmail.com (GT4NE1) Date: Mon, 12 Nov 2007 13:24:53 -0800 Subject: Two instances of ndo2db running... In-Reply-To: References: Message-ID: <18894d440711121324y29f19742j85eb59a88eefa163@mail.gmail.com> Okay, maybe you are right. I just rechecked my database and their are recent entries in there. Sorry and thanks. -GT On 11/12/07, Valdinger, Stephen (DOV, MSX) wrote: > This is correct, I just verified to make sure that mine behaves the same > way, and alas, it does. > > > > -----Original Message----- > From: Patrick Morris [mailto:patrick.morris at hp.com] > Sent: Monday, November 12, 2007 2:48 PM > To: GT4NE1 > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Two instances of ndo2db running... > > On Mon, 12 Nov 2007, GT4NE1 wrote: > > > Any ideas why two ndo2db process are starting? > > That's just the way it works. If you only saw one, it'd mean it wasn't > working. > > You'll see one when you start it up, and a second will appear when > Nagios uses it. It's not a problem. > > ------------------------------------------------------------------------ > - > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rgil at liquidnet.com Mon Nov 12 22:52:16 2007 From: rgil at liquidnet.com (Robert Gil) Date: Mon, 12 Nov 2007 16:52:16 -0500 Subject: Date/Time and Additional Info Shows as $ Message-ID: <4AB4EC5F69C3774C875B1BD8CB658B1A02965053@ny0ech01.LNHOLDINGS.COM> For some reason the Date/Time and Additional Info don't show up. Any thoughts as to why this might be? I couldn't find anything about it online. ***** Nagios ***** Notification Type: PROBLEM Service: Storage / Host: Unix Server Address: xxx.xxx.xxx.xxx State: CRITICAL Date/Time: $ Additional Info: $ Thanks, Rob -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From haydn.solomon at gmail.com Mon Nov 12 23:07:08 2007 From: haydn.solomon at gmail.com (Haydn Solomon) Date: Mon, 12 Nov 2007 17:07:08 -0500 Subject: Date/Time and Additional Info Shows as $ In-Reply-To: <4AB4EC5F69C3774C875B1BD8CB658B1A02965053@ny0ech01.LNHOLDINGS.COM> References: <4AB4EC5F69C3774C875B1BD8CB658B1A02965053@ny0ech01.LNHOLDINGS.COM> Message-ID: You're probably using wrong/outdated macros. Check the documentation for version of nagios you're using and update your commands configuration files. On Nov 12, 2007 4:52 PM, Robert Gil wrote: > For some reason the Date/Time and Additional Info don't show up. Any > thoughts as to why this might be? I couldn't find anything about it online. > > > > ***** Nagios ***** > > > > Notification Type: PROBLEM > > > > Service: Storage / > > Host: Unix Server > > Address: xxx.xxx.xxx.xxx > > State: CRITICAL > > > > Date/Time: $ > > > > Additional Info: > > > > $ > > > > Thanks, > > Rob > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From israel at frontierflying.com Mon Nov 12 23:27:23 2007 From: israel at frontierflying.com (Israel Brewster) Date: Mon, 12 Nov 2007 13:27:23 -0900 Subject: Status display colors Message-ID: <52CB1EC1-3305-4C96-999A-65230D815C7D@frontierflying.com> Is there any way to change the colors generated by status.cgi? My boss is complaining that it is really hard for him to read the dark blue hostname on the dark red background you get when a host is down. Thanks! ----------------------------------------------- Israel Brewster Computer Support Technician Frontier Flying Service Inc. 5245 Airport Industrial Rd Fairbanks, AK 99709 (907) 450-7250 x293 ----------------------------------------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Mon Nov 12 23:35:23 2007 From: marc at ena.com (Marc Powell) Date: Mon, 12 Nov 2007 16:35:23 -0600 Subject: Status display colors In-Reply-To: <52CB1EC1-3305-4C96-999A-65230D815C7D@frontierflying.com> References: <52CB1EC1-3305-4C96-999A-65230D815C7D@frontierflying.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Israel Brewster > Sent: Monday, November 12, 2007 4:27 PM > To: Nagios Users mailinglist > Subject: [Nagios-users] Status display colors > > Is there any way to change the colors generated by status.cgi? My > boss is complaining that it is really hard for him to read the dark > blue hostname on the dark red background you get when a host is down. Haven't done it myself but status.css in ~nagios/share looks to be the ticket. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jriggin at gmail.com Mon Nov 12 23:52:24 2007 From: jriggin at gmail.com (Jerad Riggin) Date: Mon, 12 Nov 2007 16:52:24 -0600 Subject: Host monitoring Message-ID: <66955c170711121452t7725cc2do9a75acd3b88a6e4c@mail.gmail.com> So what would be the best way to monitor in this situation? I have Host A, hosting two websites. Currently I have both websites configured as separate hosts, so in nagios it shows up as ServerA - site.com, and another host ServerA - siteb.com This doesn't seem efficient since I am pinging both sites, but it's the same host. Ideally I would want to just ping the host, and check strings on each site under that host. Any recommendations? ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Tue Nov 13 00:13:50 2007 From: marc at ena.com (Marc Powell) Date: Mon, 12 Nov 2007 17:13:50 -0600 Subject: Host monitoring In-Reply-To: <66955c170711121452t7725cc2do9a75acd3b88a6e4c@mail.gmail.com> References: <66955c170711121452t7725cc2do9a75acd3b88a6e4c@mail.gmail.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Jerad Riggin > Sent: Monday, November 12, 2007 4:52 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Host monitoring > > So what would be the best way to monitor in this situation? > > I have Host A, hosting two websites. > > Currently I have both websites configured as separate hosts, so in > nagios it shows up as ServerA - site.com, and another host ServerA - > siteb.com > > This doesn't seem efficient since I am pinging both sites, but it's > the same host. Ideally I would want to just ping the host, and check > strings on each site under that host. Any recommendations? Unless I'm missing something obvious, this seems pretty straightforward. host{} definition for the web server machine, service{} definitions for each vhost using check_http to check them. You can craft a command{} definition to pass the variable parameters like vhost name, uri and search string like so -- define command { command_name check_http_url command_line $USER1$/check_http -I $HOSTADDRESS$ -H $ARG1$ -u $ARG2$ -wt 20 -ct 30 -to 35 -s $ARG3$ } To check to vhosts -- define service { use generic-service host_name my_webserver service_description HTTP VHOST site1 check_command check_http_url!www.site1.com!/mypage!/html } define service { use generic-service host_name my_webserver service_description HTTP VHOST site2 check_command check_http_url!www.site2.com!/someotherpage!/html } -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chrisserafin at gmail.com Tue Nov 13 03:11:22 2007 From: chrisserafin at gmail.com (chris serafin) Date: Mon, 12 Nov 2007 20:11:22 -0600 Subject: check_snmp_storage fails on 2003 box, works manually In-Reply-To: <4737F9A2.5010607@vanderkooij.org> References: <4737F9A2.5010607@vanderkooij.org> Message-ID: AAhhhh, after over 6+ hours of editing CLI code, my eyes failed me. I changed these simple flags and it works great. Sorry for the newb false alarm. Chris Serafin Security Engineer chris at chrisserafin.com On Nov 12, 2007 12:58 AM, Hugo van der Kooij wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > chris serafin wrote: > > I'm having an issue with getting some SNMP commands to work. > > > > When issuing the check_snmp_storage.pl manually, I get perfect results, > > but once I put it in Nagios 3.0b5, I get critical alerts: (Return code > > of 127 is out of bounds - plugin may be missing) > > > > This is the manual command I enter and the result: > > > > $ sudo ./check_snmp_storage.pl -H 192.168.1.200 -C pUBLIC -m C -w 80 -c 95 > > Great for root. But what about the account that Nagios is running as? > Did you test it too? And where did you put check_snmp_storage.pl exactly? > ./ is a rather relative distinction. But I think it does not matter .... > > > This is how I defined the command and service: > > define command{ > > command_name check_snmp_storage_windrive > > command_line $USER1$/check_snmp_storage -H $HOSTADDRESS$ -C > > $ARG1$ -m $ARG2$ -w $ARG3$ -c $ARG4$ > > Hold on. Why are you afraid to come out and tell nagios it is a perl script? > $USER1$/check_snmp_storage !!= ./check_snmp_storage.pl > > For those unaware of pseudo code: !!= stands for 'is most definitly > NOT'. Pretty much as !~= stands for 'almost but not quite unlike`;-) > > 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) > > iD8DBQFHN/mgBvzDRVjxmYERAmt3AKCD35Rz1k7aT3POzEvQPYUNEQXo4ACfUa0H > Mg/Qj9Pt1/o0/6T4xxwwxZg= > =GD0Z > -----END PGP SIGNATURE----- > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mkellermann at net-com.de Tue Nov 13 08:06:08 2007 From: mkellermann at net-com.de (Matthias Kellermann) Date: Tue, 13 Nov 2007 08:06:08 +0100 Subject: Plugin for monitoring FreeBSD for updates (like check_apt)? In-Reply-To: <20071112155044.GB43856@bewilderbeast.blackhelicopters.org> References: <47387470.6050103@net-com.de> <20071112155044.GB43856@bewilderbeast.blackhelicopters.org> Message-ID: <47394CE0.9010602@net-com.de> Michael W. Lucas schrieb: > On Mon, Nov 12, 2007 at 04:42:40PM +0100, Matthias Kellermann wrote: >> Hi list, >> >> anyone knows of a Nagios plugin to check the FreeBSD ports and base >> system for updates? I'm searching for something like check_apt for >> Debian/Ubuntu. >> >> One important thing is that I also want to monitor all the FreeBSD jails >> for updates, too. Any help/hint appreciated :) > > None exists today. > > It should be fairly simple to write a NRPE wrapper around portmaster, > however. > > I believe (but might be wrong) that net-snmp also has the ability to > read the FreeBSD package database; you could run a snmpwalk on the > target machine and compare that to a master package database. > > Good luck, and if you implement something be sure to let us know about it. Thanks for your answer Michael. I will see what I can do. If I have found/implemented something useful I will let you know. BTW: Looking forward for your new book coming out these days. Hope it will be released in Europe also on November 14th :) Matthias > ==ml ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gcoochey at sapphire.gi Tue Nov 13 09:10:44 2007 From: gcoochey at sapphire.gi (Giles Coochey) Date: Tue, 13 Nov 2007 09:10:44 +0100 Subject: Status display colors In-Reply-To: <52CB1EC1-3305-4C96-999A-65230D815C7D@frontierflying.com> References: <52CB1EC1-3305-4C96-999A-65230D815C7D@frontierflying.com> Message-ID: <9D30659ABCA7FB428CF91E386C3A57449A7A63@hermes.sapphire-int.gi> > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Israel Brewster > Sent: 12 November 2007 23:27 > To: Nagios Users mailinglist > Subject: [Nagios-users] Status display colors > > Is there any way to change the colors generated by status.cgi? My > boss is complaining that it is really hard for him to read the dark > blue hostname on the dark red background you get when a host is down. > Thanks! > I use the Nuvola style from the NagiosExchange website, for me it's an instant improvement in the look and feel of the Nagios frontend. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Florent.HOUBART at Ajilon.fr Tue Nov 13 14:42:18 2007 From: Florent.HOUBART at Ajilon.fr (Florent HOUBART) Date: Tue, 13 Nov 2007 14:42:18 +0100 Subject: Nagios CGI modification References: <17213.192.35.79.70.1194559715.squirrel@www.dcsnow.com> Message-ID: <3254342B66257B4CAB24920F49640F4F0132A406@MEINTFR02095.wwit.adecco.net> Hello, >Changing the link is no big deal of course. My big question is, how do I >get a list of all the hosts in that host group passed? You may find exemple of such tasks in status.cgi. You need to loop over all the hosts and check for each if the belong to the hostgroup or not. Below is an extract of status.c where I only keep what would be relevant for you (extract from function show_hostgroup_overview). -------------------------- /* find all the hosts that belong to the hostgroup */ for(temp_hoststatus=hoststatus_list;temp_hoststatus!=NULL;temp_hoststatus=temp_hoststatus->next){ /* find the host... */ temp_host=find_host(temp_hoststatus->host_name,NULL); /* make sure this host a member of the hostgroup */ if(!is_host_member_of_hostgroup(hstgrp,temp_host)) continue; /* make sure the user is authorized to see this host */ if(is_authorized_for_host(temp_host,¤t_authdata)==FALSE) continue; /* Do something with the host temp_host */ } --------------------------- Regards, Florent Houbart -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mwlucas at blackhelicopters.org Tue Nov 13 16:09:03 2007 From: mwlucas at blackhelicopters.org (Michael W. Lucas) Date: Tue, 13 Nov 2007 10:09:03 -0500 Subject: Plugin for monitoring FreeBSD for updates (like check_apt)? In-Reply-To: <47394CE0.9010602@net-com.de> References: <47387470.6050103@net-com.de> <20071112155044.GB43856@bewilderbeast.blackhelicopters.org> <47394CE0.9010602@net-com.de> Message-ID: <20071113150903.GA50921@bewilderbeast.blackhelicopters.org> On Tue, Nov 13, 2007 at 08:06:08AM +0100, Matthias Kellermann wrote: > Michael W. Lucas schrieb: > > On Mon, Nov 12, 2007 at 04:42:40PM +0100, Matthias Kellermann wrote: > >> Hi list, > >> > >> anyone knows of a Nagios plugin to check the FreeBSD ports and base > >> system for updates? I'm searching for something like check_apt for > >> Debian/Ubuntu. > >> > >> One important thing is that I also want to monitor all the FreeBSD jails > >> for updates, too. Any help/hint appreciated :) > > > > None exists today. > > > > It should be fairly simple to write a NRPE wrapper around portmaster, > > however. > > > > I believe (but might be wrong) that net-snmp also has the ability to > > read the FreeBSD package database; you could run a snmpwalk on the > > target machine and compare that to a master package database. > > > > Good luck, and if you implement something be sure to let us know about it. > > Thanks for your answer Michael. I will see what I can do. If I have > found/implemented something useful I will let you know. > > BTW: Looking forward for your new book coming out these days. Hope it > will be released in Europe also on November 14th :) The book physically exists, and is being shipped to stores now. You should be able to find it any day now. I really need to change my .sig... ==ml -- Michael W. Lucas mwlucas at BlackHelicopters.org, mwlucas at FreeBSD.org http://www.BlackHelicopters.org/~mwlucas/ Coming Soon: "Absolute FreeBSD" -- http://www.AbsoluteFreeBSD.com On 5/4/2007, the TSA kept 3 pairs of my soiled undies "for security reasons." ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lavalamp at spiritual-machines.org Tue Nov 13 16:19:31 2007 From: lavalamp at spiritual-machines.org (Brian A. Seklecki) Date: Tue, 13 Nov 2007 10:19:31 -0500 Subject: Plugin for monitoring FreeBSD for updates (like check_apt)? In-Reply-To: <47387470.6050103@net-com.de> References: <47387470.6050103@net-com.de> Message-ID: <1194967171.2611.17.camel@ingress.pitbpa0.priv.collaborativefusion.com> On Mon, 2007-11-12 at 16:42 +0100, Matthias Kellermann wrote: > Hi list, > > anyone knows of a Nagios plugin to check the FreeBSD ports and base > system for updates? I'm searching for something like check_apt for > Debian/Ubuntu. All that you need to do is exec portaudit and trap the output. However, mapping this into warn/crit status will get tricky. Most big shops have software release engineer processes that prevent them from, as a NetBSD friend of mine calls it, "implementing massive rolling in-place binary upgrades". In the hope that security will somehow be derived from that (Linux credo, I suppose). I like the idea ether way. Let me know if you need help testing/coding. ~BAS $ pkg_version -vL "=" apache-2.2.4_2 < needs updating (port has 2.2.6_2) apr-nothr-db4-1.0.1_1 < needs updating (port has 1.2.8_2) arj-3.10.22 < needs updating (port has 3.10.22_1) autoconf-2.59_3 < needs updating (port has 2.61_2) autoconf-wrapper-20070404 < needs updating (port has 20071109) $ sudo portaudit Affected package: perl-5.8.8 Type of problem: perl -- regular expressions unicode data buffer overflow. Reference: > One important thing is that I also want to monitor all the FreeBSD jails > for updates, too. Any help/hint appreciated :) > > Matthias > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > > > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mkellermann at net-com.de Tue Nov 13 17:27:38 2007 From: mkellermann at net-com.de (Matthias Kellermann) Date: Tue, 13 Nov 2007 17:27:38 +0100 Subject: Plugin for monitoring FreeBSD for updates (like check_apt)? In-Reply-To: <1194967171.2611.17.camel@ingress.pitbpa0.priv.collaborativefusion.com> References: <47387470.6050103@net-com.de> <1194967171.2611.17.camel@ingress.pitbpa0.priv.collaborativefusion.com> Message-ID: <4739D07A.3060107@net-com.de> Brian A. Seklecki schrieb: > On Mon, 2007-11-12 at 16:42 +0100, Matthias Kellermann wrote: >> Hi list, >> >> anyone knows of a Nagios plugin to check the FreeBSD ports and base >> system for updates? I'm searching for something like check_apt for >> Debian/Ubuntu. > > All that you need to do is exec portaudit and trap the output. However, > mapping this into warn/crit status will get tricky. > > Most big shops have software release engineer processes that prevent > them from, as a NetBSD friend of mine calls it, "implementing massive > rolling in-place binary upgrades". > > In the hope that security will somehow be derived from that (Linux > credo, I suppose). I like the idea ether way. Let me know if you need > help testing/coding. > > ~BAS > > $ pkg_version -vL "=" > apache-2.2.4_2 < needs updating (port has 2.2.6_2) > apr-nothr-db4-1.0.1_1 < needs updating (port has 1.2.8_2) > arj-3.10.22 < needs updating (port has 3.10.22_1) > autoconf-2.59_3 < needs updating (port has 2.61_2) > autoconf-wrapper-20070404 < needs updating (port has 20071109) > > $ sudo portaudit > Affected package: perl-5.8.8 > Type of problem: perl -- regular expressions unicode data buffer > overflow. Reference: > Affected package: nagios-plugins-1.4.9,1 > Type of problem: nagios-plugins -- Long Location Header Buffer > Overflow Vulnerability. > > ~BAS Thanks for your answer Brian. I've found ports-mgmt/jailaudit in the Ports. Seems quite useful yet. I'll see how this tool can help on monitoring the installed ports for security holes. Monitoring the jails for updates should work with pkg_version -vL "=" I'll let you know if I've made something useful. Matthias ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kcc1967 at gmail.com Tue Nov 13 17:32:43 2007 From: kcc1967 at gmail.com (Kuang-Chun Cheng) Date: Wed, 14 Nov 2007 00:32:43 +0800 Subject: nagios.log format Message-ID: <5eb4b0650711130832g2a66d2f6g7914a6e568cdcfcd@mail.gmail.com> Hi, I want to do post-analysis of nagios.log and save the filtered result to DB. The format look like this: [1194969600] CURRENT SERVICE STATE: localhost;Current Load;OK;HARD;1;OK - load average: 0.17, 0.23, 0.20 [1194969600] CURRENT SERVICE STATE: localhost;Current Users;OK;HARD;1;USERS OK - 14 users currently logged in [1194969600] CURRENT SERVICE STATE: localhost;HTTP;OK;HARD;1;HTTP OK HTTP/1.1 200 OK - 7590 bytes in 0.006 seconds [1194969600] CURRENT SERVICE STATE: localhost;PING;OK;HARD;1;PING OK - Packet loss = 0%, RTA = 0.04 ms [1194969600] CURRENT SERVICE STATE: localhost;Root Partition;OK;HARD;1;DISK OK - free space: / 37567 MB (53% inode=96%): [1194969600] CURRENT SERVICE STATE: localhost;SSH;OK;HARD;1;SSH OK - OpenSSH_4.3 (protocol 2.0) [1194969600] CURRENT SERVICE STATE: localhost;Swap Usage;OK;HARD;1;SWAP OK - 78% free (1542 MB out of 1983 MB) [1194969600] CURRENT SERVICE STATE: localhost;Total Processes;OK;HARD;1;PROCS OK: 110 processes with STATE = RSZDT Could someone tell me what's the fields means ? What kind of message will be log into nagios.log. Sometime I found "SERVICE ALERT" message ... any complete list existed for possible message ? Thanks Regards KC ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Tue Nov 13 17:56:40 2007 From: marc at ena.com (Marc Powell) Date: Tue, 13 Nov 2007 10:56:40 -0600 Subject: nagios.log format In-Reply-To: <5eb4b0650711130832g2a66d2f6g7914a6e568cdcfcd@mail.gmail.com> References: <5eb4b0650711130832g2a66d2f6g7914a6e568cdcfcd@mail.gmail.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Kuang-Chun Cheng > Sent: Tuesday, November 13, 2007 10:33 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] nagios.log format > > Hi, > > I want to do post-analysis of nagios.log and save the filtered result to > DB. > The format look like this: > > Could someone tell me what's the fields means ? > What kind of message will be log into nagios.log. Sometime I found > "SERVICE ALERT" message ... > any complete list existed for possible message ? Thanks The only documentation I am aware of is the source code itself (nagios-src/base/logging.c). For anything that starts with MACRO_, you can find more information about that in the Macros documentation. -- $ grep snprintf logging.c snprintf(temp_buffer,sizeof(temp_buffer),"SERVICE ALERT: %s;%s;%s;%s;%s;%s\n",svc->host_name,svc->description,macro_x[MACRO_SERVI CESTATE],macro_x[MACRO_SERVICESTATETYPE],macro_x[MACRO_SERVICEATTEMPT],s vc->plugin_output); [timestamp] SERVICE ALERT: host_name;service_description;servicestate,servicestatetype,serviceattem pt;plugin_output snprintf(temp_buffer,sizeof(temp_buffer),"HOST ALERT: %s;%s;%s;%s;%s\n",hst->name,macro_x[MACRO_HOSTSTATE],macro_x[MACRO_HOSTS TATETYPE],macro_x[MACRO_HOSTATTEMPT],hst->plugin_output); [timestamp] HOST ALERT: host_name,hoststate;hoststatetype;hostattempt;plugin_output snprintf(temp_buffer,sizeof(temp_buffer),"%s HOST STATE: %s;%s;%s;%s;%s\n",(type==INITIAL_STATES)?"INITIAL":"CURRENT",temp_host-> name,macro_x[MACRO_HOSTSTATE],macro_x[MACRO_HOSTSTATETYPE],macro_x[MACRO _HOSTATTEMPT],temp_host->plugin_output); [timestamp] (INITIAL|CURRENT) HOST STATE: host_name;hoststate;hoststatetype;hostattempt;plugin_output snprintf(temp_buffer,sizeof(temp_buffer),"%s SERVICE STATE: %s;%s;%s;%s;%s;%s\n",(type==INITIAL_STATES)?"INITIAL":"CURRENT",temp_ser vice->host_name,temp_service->description,macro_x[MACRO_SERVICESTATE],ma cro_x[MACRO_SERVICESTATETYPE],macro_x[MACRO_SERVICEATTEMPT],temp_service ->plugin_output); [timestamp] (INITIAL|CURRENT) SERVICE STATE: host_name;service_description;servicestate;servicestatetype;serviceattem pt;plugin_output snprintf(temp_buffer,sizeof(temp_buffer),"LOG ROTATION: %s\n",method_string); [timestamp] LOG ROTATION (daily|weekly|monthly, etc) snprintf(temp_buffer,sizeof(temp_buffer),"LOG VERSION: %s\n",LOG_VERSION_2); [timestamp] LOG VERION: [log version string] Hth, -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bamapookie at gmail.com Tue Nov 13 18:50:17 2007 From: bamapookie at gmail.com (Shawn Kovalchick) Date: Tue, 13 Nov 2007 12:50:17 -0500 Subject: Old state information randomly appearing Message-ID: I have 2 hosts and 4 services that I added Friday to my nagios configuration. They were misconfigured (wrong IP addresses), and rightly sent out notifications. I disabled notifications and active checks via the web interface while I was diagnosing the problem. I fixed the problems (the IP addresses) and reenabled the checks and notifications. Now, every once in a while (roughly once per minute), the old data appears on the tac.cgi, status.cgi, and extinfo.cgi pages. They will show as down/critical, and will have the icons for disabled notifications and disabled active checks. Then, moments later, they will show normal (OK state, with no icons for disabled notifications/checks). I have tried purging the bad data from the log files, retention.dat, etc. while the Nagios daemon was stopped, but the bad data still shows. Is this a bug, or is there something I can do to flush this old data? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bamapookie at gmail.com Tue Nov 13 18:54:02 2007 From: bamapookie at gmail.com (Shawn Kovalchick) Date: Tue, 13 Nov 2007 12:54:02 -0500 Subject: Old state information randomly appearing In-Reply-To: References: Message-ID: Actually, the timing is a bit different than what I described below. Refreshing once per second, I was able to determining that the correct state shows for 5 seconds, then the incorrect state shows for 10 seconds, then the process repeats. On 11/13/07, Shawn Kovalchick wrote: > > I have 2 hosts and 4 services that I added Friday to my nagios > configuration. They were misconfigured (wrong IP addresses), and rightly > sent out notifications. I disabled notifications and active checks via the > web interface while I was diagnosing the problem. I fixed the problems (the > IP addresses) and reenabled the checks and notifications. Now, every once > in a while (roughly once per minute), the old data appears on the tac.cgi, > status.cgi, and extinfo.cgi pages. They will show as down/critical, and > will have the icons for disabled notifications and disabled active checks. > Then, moments later, they will show normal (OK state, with no icons for > disabled notifications/checks). I have tried purging the bad data from the > log files, retention.dat, etc. while the Nagios daemon was stopped, but > the bad data still shows. Is this a bug, or is there something I can do to > flush this old data? > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From frederic.schaer at cea.fr Tue Nov 13 19:03:50 2007 From: frederic.schaer at cea.fr (SCHAER Frederic) Date: Tue, 13 Nov 2007 19:03:50 +0100 Subject: no newlines in notification emails ? In-Reply-To: <20071101012410.5A7D1580017@desire.netways.de> References: <20071101012410.5A7D1580017@desire.netways.de> Message-ID: Hi, Maybe a stupid question, but did you solve the problem ? I upgraded to nagiosb6 beta and I still get no newlines in the service notifications (host notifications are fine)... wondering if that's me or something else. Cheers > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Jaimie Livingston > Sent: Thursday, November 01, 2007 2:24 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] no newlines in notification emails ? > > I had the same problem when I was testing 3.0b4 on CentOS. I thought it was just me at the time... > > > - Jaimie Livingston (jaimielives) > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Tue Nov 13 19:07:06 2007 From: marc at ena.com (Marc Powell) Date: Tue, 13 Nov 2007 12:07:06 -0600 Subject: Old state information randomly appearing In-Reply-To: References: Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Shawn Kovalchick > Sent: Tuesday, November 13, 2007 11:50 AM > To: Nagios Users Mailinglist > Subject: [Nagios-users] Old state information randomly appearing > > I have 2 hosts and 4 services that I added Friday to my nagios > configuration. They were misconfigured (wrong IP addresses), and rightly > sent out notifications. I disabled notifications and active checks via > the web interface while I was diagnosing the problem. I fixed the > problems (the IP addresses) and reenabled the checks and notifications. > Now, every once in a while (roughly once per minute), the old data appears > on the tac.cgi, status.cgi, and extinfo.cgi pages. They will show as FAQ in disguise: http://www.nagios.org/faqs/viewfaq.php?faq_id=21 -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bamapookie at gmail.com Tue Nov 13 19:18:46 2007 From: bamapookie at gmail.com (Shawn Kovalchick) Date: Tue, 13 Nov 2007 13:18:46 -0500 Subject: Old state information randomly appearing In-Reply-To: References: Message-ID: The hosts weren't disappearing, just showing inconsistant states. Anyway, that fixed the problem. Thanks, Marc! On 11/13/07, Marc Powell wrote: > > > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > > bounces at lists.sourceforge.net] On Behalf Of Shawn Kovalchick > > Sent: Tuesday, November 13, 2007 11:50 AM > > To: Nagios Users Mailinglist > > Subject: [Nagios-users] Old state information randomly appearing > > > > I have 2 hosts and 4 services that I added Friday to my nagios > > configuration. They were misconfigured (wrong IP addresses), and > rightly > > sent out notifications. I disabled notifications and active checks > via > > the web interface while I was diagnosing the problem. I fixed the > > problems (the IP addresses) and reenabled the checks and > notifications. > > Now, every once in a while (roughly once per minute), the old data > appears > > on the tac.cgi, status.cgi, and extinfo.cgi pages. They will show as > > FAQ in disguise: http://www.nagios.org/faqs/viewfaq.php?faq_id=21 > > -- > Marc > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jriggin at gmail.com Tue Nov 13 20:30:33 2007 From: jriggin at gmail.com (Jerad Riggin) Date: Tue, 13 Nov 2007 13:30:33 -0600 Subject: Monitoring a process Message-ID: <66955c170711131130s381655f2rfeeabbb626c3480b@mail.gmail.com> Would it be possible using Nsclient++ to monitor for a process name? We need to make sure Outlook.exe is running on the server and if it isn't, send out notifications. Thanks, Jerad ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Christy.New at cancer.org Tue Nov 13 20:36:47 2007 From: Christy.New at cancer.org (Christy.New at cancer.org) Date: Tue, 13 Nov 2007 14:36:47 -0500 Subject: Were can I find the check_snmp plugin Message-ID: I need to download the check_snmp plugin for Ubuntu for Nagios. Very Respectfully, Chris ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bill.omer at gmail.com Tue Nov 13 20:53:17 2007 From: bill.omer at gmail.com (Bill Omer) Date: Tue, 13 Nov 2007 14:53:17 -0500 Subject: Monitoring a process In-Reply-To: <66955c170711131130s381655f2rfeeabbb626c3480b@mail.gmail.com> References: <66955c170711131130s381655f2rfeeabbb626c3480b@mail.gmail.com> Message-ID: <3ec83c030711131153s557b2237i829c7151c04e0844@mail.gmail.com> On Nov 13, 2007 2:30 PM, Jerad Riggin wrote: > Would it be possible using Nsclient++ to monitor for a process name? > We need to make sure Outlook.exe is running on the server and if it > isn't, send out notifications. Why not just monitor the ports to verify they are being answered? -- Regards, Bill Omer ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kcc1967 at gmail.com Tue Nov 13 21:07:24 2007 From: kcc1967 at gmail.com (Kuang-Chun Cheng) Date: Wed, 14 Nov 2007 04:07:24 +0800 Subject: nagios.log format In-Reply-To: References: <5eb4b0650711130832g2a66d2f6g7914a6e568cdcfcd@mail.gmail.com> Message-ID: <5eb4b0650711131207v58730f92hb65188957e4cb30e@mail.gmail.com> Hi Marc, Thanks, this is good enough for me :-) Regards KC On Nov 14, 2007 12:56 AM, Marc Powell wrote: > > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > > bounces at lists.sourceforge.net] On Behalf Of Kuang-Chun Cheng > > Sent: Tuesday, November 13, 2007 10:33 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] nagios.log format > > > > Hi, > > > > I want to do post-analysis of nagios.log and save the filtered result > to > > DB. > > The format look like this: > > > > > > Could someone tell me what's the fields means ? > > What kind of message will be log into nagios.log. Sometime I found > > "SERVICE ALERT" message ... > > any complete list existed for possible message ? Thanks > > The only documentation I am aware of is the source code itself > (nagios-src/base/logging.c). For anything that starts with MACRO_, you > can find more information about that in the Macros documentation. -- > > $ grep snprintf logging.c > snprintf(temp_buffer,sizeof(temp_buffer),"SERVICE ALERT: > %s;%s;%s;%s;%s;%s\n",svc->host_name,svc->description,macro_x[MACRO_SERVI > CESTATE],macro_x[MACRO_SERVICESTATETYPE],macro_x[MACRO_SERVICEATTEMPT],s > vc->plugin_output); > > [timestamp] SERVICE ALERT: > host_name;service_description;servicestate,servicestatetype,serviceattem > pt;plugin_output > > snprintf(temp_buffer,sizeof(temp_buffer),"HOST ALERT: > %s;%s;%s;%s;%s\n",hst->name,macro_x[MACRO_HOSTSTATE],macro_x[MACRO_HOSTS > TATETYPE],macro_x[MACRO_HOSTATTEMPT],hst->plugin_output); > > [timestamp] HOST ALERT: > host_name,hoststate;hoststatetype;hostattempt;plugin_output > > snprintf(temp_buffer,sizeof(temp_buffer),"%s HOST STATE: > %s;%s;%s;%s;%s\n",(type==INITIAL_STATES)?"INITIAL":"CURRENT",temp_host-> > name,macro_x[MACRO_HOSTSTATE],macro_x[MACRO_HOSTSTATETYPE],macro_x[MACRO > _HOSTATTEMPT],temp_host->plugin_output); > > [timestamp] (INITIAL|CURRENT) HOST STATE: > host_name;hoststate;hoststatetype;hostattempt;plugin_output > > snprintf(temp_buffer,sizeof(temp_buffer),"%s SERVICE > STATE: > %s;%s;%s;%s;%s;%s\n",(type==INITIAL_STATES)?"INITIAL":"CURRENT",temp_ser > vice->host_name,temp_service->description,macro_x[MACRO_SERVICESTATE],ma > cro_x[MACRO_SERVICESTATETYPE],macro_x[MACRO_SERVICEATTEMPT],temp_service > ->plugin_output); > > [timestamp] (INITIAL|CURRENT) SERVICE STATE: > host_name;service_description;servicestate;servicestatetype;serviceattem > pt;plugin_output > > snprintf(temp_buffer,sizeof(temp_buffer),"LOG ROTATION: > %s\n",method_string); > > [timestamp] LOG ROTATION (daily|weekly|monthly, etc) > > snprintf(temp_buffer,sizeof(temp_buffer),"LOG VERSION: > %s\n",LOG_VERSION_2); > > [timestamp] LOG VERION: [log version string] > > Hth, > > -- > Marc > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rsasko at niag.com Tue Nov 13 21:39:31 2007 From: rsasko at niag.com (Rich Sasko) Date: Tue, 13 Nov 2007 20:39:31 +0000 (UTC) Subject: Monitoring a process References: <66955c170711131130s381655f2rfeeabbb626c3480b@mail.gmail.com> Message-ID: Jerad Riggin gmail.com> writes: > > Would it be possible using Nsclient++ to monitor for a process name? > We need to make sure Outlook.exe is running on the server and if it > isn't, send out notifications. > > Thanks, > > Jerad > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > Jerad, We have the NSClient++ running on our Windows servers and the following service check is an example of how we are monitoring services from the nagios server: define service{ use generic-service host_name email server service_description explorer check_command check_nt!PROCSTATE!-d SHOWALL -l explorer.exe } It is actually in one of the sample config files, you should just have to tell it what process you want to watch. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Christy.New at cancer.org Tue Nov 13 21:51:52 2007 From: Christy.New at cancer.org (Christy.New at cancer.org) Date: Tue, 13 Nov 2007 15:51:52 -0500 Subject: Were can I find the check_snmp plugin In-Reply-To: References: Message-ID: I have tons of snmp plugins in this folder, but my routers, which allow snmp will not run these two snmp service check: They are as follows, and it keeps telling me that it is missing the plug in. http://www.nagiosexchange.org/SNMP.51.0.html?&tx_netnagext_pi1[p_view]=555 Here is were I pulled the plug-in and then extracted it's contents into the libexec folder. Next I stopped and restarted Nagios. Then logged into Nagios and the errors were still there. So next I restarted my entire server and followed the process and again it was still the errors are still there. Could it be that I am using UBUNTU Linux and maybe I should go with redhat or debian? Very Respectfully, Christy M. New 1(404)327-6490 American Cancer Society Corporate IT-NHO NOC Network Infrastructure Engineer "Valdinger, Stephen (DOV, MSX)" To , em.com> 11/13/2007 02:46 cc PM Subject RE: [Nagios-users] Were can I find the check_snmp plugin Check_snmp is a standard plugin found in the Nagios Plugins package. If you have downloaded these, then you already have it in your /usr/local/Nagios/libexec (or wherever you installed Nagios, this is just the default). -----Original Message----- From: Christy.New at cancer.org [mailto:Christy.New at cancer.org] Sent: Tuesday, November 13, 2007 2:37 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Were can I find the check_snmp plugin I need to download the check_snmp plugin for Ubuntu for Nagios. Very Respectfully, Chris ------------------------------------------------------------------------ - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jriggin at gmail.com Tue Nov 13 21:54:42 2007 From: jriggin at gmail.com (Jerad Riggin) Date: Tue, 13 Nov 2007 14:54:42 -0600 Subject: Monitoring a process In-Reply-To: References: <66955c170711131130s381655f2rfeeabbb626c3480b@mail.gmail.com> Message-ID: <66955c170711131254o544afeb0j2d1d69dd1e3af8b2@mail.gmail.com> Thanks for the response. This is what I did just a bit ago. I have it successfully monitoring outlook.exe, however no e-mails are being sent when it's critical. Here is what I have as the service definition: define service{ use leadlander host_name leadlandervm service_description Outlook Process contact_groups bo,mis notification_options w,u,c,r check_command check_nt2!PROCSTATE!-d SHOWALL -l outlook.exe } Here is what I have for the leadlander template define service{ use generic-service name leadlander is_volatile 0 check_period 24x7 max_check_attempts 15 normal_check_interval 20 retry_check_interval 20 notification_interval 20 notification_period 24x7 register 0 } Does it only notify after the first retry failure, or should it notify as soon as the service is critical? Any ideas? - Show quoted text - On Nov 13, 2007 2:39 PM, Rich Sasko wrote: > > Jerad Riggin gmail.com> writes: > > > > > Would it be possible using Nsclient++ to monitor for a process name? > > We need to make sure Outlook.exe is running on the server and if it > > isn't, send out notifications. > > > > Thanks, > > > > Jerad > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? Stop. > > Now Search log events and configuration files using AJAX and a browser. > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > > > Jerad, > > We have the NSClient++ running on our Windows servers and the following > service check is an example of how we are monitoring services from the nagios > server: > > define service{ > use generic-service > host_name email server > service_description explorer > check_command check_nt!PROCSTATE!-d SHOWALL -l explorer.exe > } > > It is actually in one of the sample config files, you should just have to tell > it what process you want to watch. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jriggin at gmail.com Tue Nov 13 22:04:50 2007 From: jriggin at gmail.com (Jerad Riggin) Date: Tue, 13 Nov 2007 15:04:50 -0600 Subject: Monitoring a process In-Reply-To: References: <66955c170711131130s381655f2rfeeabbb626c3480b@mail.gmail.com> <66955c170711131253h6385246ds67724722a5332c0d@mail.gmail.com> Message-ID: <66955c170711131304y1383a515ub421c06e00f02856@mail.gmail.com> Just to clarify normal_check_interval 60 retry_check_interval 360 notification_interval 360 This means that it checks every hour. After it fails the first time, it will wait 6 hours to retry, if it is still not OK after 6 hours, it notifies and begins to notify every 6 hours until it's ok. On Nov 13, 2007 3:00 PM, Rich Sasko wrote: > It only notifies after it enters a hard state which is usually after the > third try. > > Richard Sasko > Niagara Lasalle Corp > Phone: (219) 853-6272 > Mobile: (219) 484-5617 > E-mail: rsasko at niag.com > > > > -----Original Message----- > From: Jerad Riggin [mailto:jriggin at gmail.com] > Sent: Tuesday, November 13, 2007 2:54 PM > To: Rich Sasko > Subject: Re: [Nagios-users] Monitoring a process > > Thanks for the response. This is what I did just a bit ago. I have > it successfully monitoring outlook.exe, however no e-mails are being > sent when it's critical. > > Here is what I have as the service definition: > > define service{ > use leadlander > host_name leadlandervm > service_description Outlook Process > contact_groups bo,mis > notification_options w,u,c,r > check_command check_nt2!PROCSTATE!-d SHOWALL -l > outlook.exe > } > > Here is what I have for the leadlander template > > define service{ > use generic-service > name leadlander > is_volatile 0 > check_period 24x7 > max_check_attempts 15 > normal_check_interval 20 > retry_check_interval 20 > notification_interval 20 > notification_period 24x7 > register 0 > } > > Does it only notify after the first retry failure, or should it notify > as soon as the service is critical? Any ideas? > > > On Nov 13, 2007 2:39 PM, Rich Sasko wrote: > > > > Jerad Riggin gmail.com> writes: > > > > > > > > Would it be possible using Nsclient++ to monitor for a process name? > > > We need to make sure Outlook.exe is running on the server and if it > > > isn't, send out notifications. > > > > > > Thanks, > > > > > > Jerad > > > > > > > ------------------------------------------------------------------------ > - > > > This SF.net email is sponsored by: Splunk Inc. > > > Still grepping through log files to find problems? Stop. > > > Now Search log events and configuration files using AJAX and a > browser. > > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting > > any issue. > > > ::: Messages without supporting info will risk being sent to > /dev/null > > > > > > > > > > > > Jerad, > > > > We have the NSClient++ running on our Windows servers and the > following > > service check is an example of how we are monitoring services from the > nagios > > server: > > > > define service{ > > use generic-service > > host_name email server > > service_description explorer > > check_command check_nt!PROCSTATE!-d SHOWALL -l > explorer.exe > > } > > > > It is actually in one of the sample config files, you should just have > to tell > > it what process you want to watch. > > > > > > > ------------------------------------------------------------------------ > - > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? Stop. > > Now Search log events and configuration files using AJAX and a > browser. > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hvdkooij at vanderkooij.org Tue Nov 13 22:06:09 2007 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Tue, 13 Nov 2007 22:06:09 +0100 Subject: Were can I find the check_snmp plugin In-Reply-To: References: Message-ID: <473A11C1.1050003@vanderkooij.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Christy.New at cancer.org wrote: > I have tons of snmp plugins in this folder, but my routers, which allow > snmp will not run these two snmp service check: > > They are as follows, and it keeps telling me that it is missing the plug > in. > > http://www.nagiosexchange.org/SNMP.51.0.html?&tx_netnagext_pi1[p_view]=555 > > Here is were I pulled the plug-in and then extracted it's contents into the > libexec folder. Next I stopped and restarted Nagios. Then logged into > Nagios and the errors were still there. So next I restarted my entire > server and followed the process and again it was still the errors are still > there. Could it be that I am using UBUNTU Linux and maybe I should go with > redhat or debian? Please do not apply windows procedures in a unix environment. Work the problem. Solve it step by step. Pay attention to the exact responses and the exact commands. 1. Can you run access the router with SNMP at all? Test with snmpwalk. (Known obstacles: firewalls, community strings ,....) 2. Can you run the plugin by hand? Test all the options you want to use in nagios manualy first. Make sure you test this sucesfully as the user that the nagios process runs as. 3. Now try to build the most simple service definition and try within Nagios. If you have further question please document your attempts and show which steps you have taken. 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) iD8DBQFHOhG+BvzDRVjxmYERAlKbAJ99IcW/8M7GVB9X7scZcoiJN1QjXQCfXXg4 S/eP300ysm/IBOlOeTHBBzM= =jvd/ -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Christy.New at cancer.org Tue Nov 13 22:13:37 2007 From: Christy.New at cancer.org (Christy.New at cancer.org) Date: Tue, 13 Nov 2007 16:13:37 -0500 Subject: Were can I find the check_snmp plugin In-Reply-To: <473A11C1.1050003@vanderkooij.org> References: <473A11C1.1050003@vanderkooij.org> Message-ID: Please do not apply windows procedures in a unix environment. Work the problem. Solve it step by step. Pay attention to the exact responses and the exact commands.HOW AM CAN I TELL IF I AM RUNNING WINDOWS PROCEDURES IN A LINUX ENVIRONMENT. THESE WERE (.TAR.GZ)PLUGINS. CAN YOU EXPLAIN WHY YOU THOUGHT THIS 1. Can you run access the router with SNMP at all? Test with snmpwalk. (Known obstacles: firewalls, community strings ,....)THIS IS GOOD, BECAUSE I USE SNMP ON MY DEVICES ALREADY FOR OTHER UTILITIES THAT I USE. 2. Can you run the plugin by hand? Test all the options you want to use in nagios manualy first. Make sure you test this sucesfully as the user that the nagios process runs as. WHEN YOU SAY BY HAND, I HAVE NO IDEA WHAT YOU MEAN. I AM NO GOOD WITH COMMAND AND USE THE GNOME FOR MOST OF MY EDITING. I DON'T USE THE VI EDITOR MUCH 3. Now try to build the most simple service definition and try within Nagios. MRTG I JUST DISCOVERED I DO NOT USE ON MY DEVICES SO I JUST REMOVED IT, BUT STILL THE SNMP PLUGINS ARE STILL NOT WORKING AND NAGIOS GIVES ME A RESPONSE BACK OF "PLUGIN MISSING" THANKS HUGO APPRIECIATE YOUR GUIDANCE. Very Respectfully, Chris Hugo van der Kooij Nagios Users Mailinglist Sent by: ces at lists.sourcef cc orge.net Subject Re: [Nagios-users] Were can I find 11/13/2007 04:07 the check_snmp plugin PM -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Christy.New at cancer.org wrote: > I have tons of snmp plugins in this folder, but my routers, which allow > snmp will not run these two snmp service check: > > They are as follows, and it keeps telling me that it is missing the plug > in. > > http://www.nagiosexchange.org/SNMP.51.0.html?&tx_netnagext_pi1[p_view]=555 > > Here is were I pulled the plug-in and then extracted it's contents into the > libexec folder. Next I stopped and restarted Nagios. Then logged into > Nagios and the errors were still there. So next I restarted my entire > server and followed the process and again it was still the errors are still > there. Could it be that I am using UBUNTU Linux and maybe I should go with > redhat or debian? Please do not apply windows procedures in a unix environment. Work the problem. Solve it step by step. Pay attention to the exact responses and the exact commands. 1. Can you run access the router with SNMP at all? Test with snmpwalk. (Known obstacles: firewalls, community strings ,....) 2. Can you run the plugin by hand? Test all the options you want to use in nagios manualy first. Make sure you test this sucesfully as the user that the nagios process runs as. 3. Now try to build the most simple service definition and try within Nagios. If you have further question please document your attempts and show which steps you have taken. 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) iD8DBQFHOhG+BvzDRVjxmYERAlKbAJ99IcW/8M7GVB9X7scZcoiJN1QjXQCfXXg4 S/eP300ysm/IBOlOeTHBBzM= =jvd/ -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From palleje at gmail.com Tue Nov 13 22:11:24 2007 From: palleje at gmail.com (Palle L Jensen) Date: Tue, 13 Nov 2007 16:11:24 -0500 Subject: Authentication question Message-ID: <003901c82639$c0f2ad20$98ad38a6@na.dsmain.com> Hi All, We have it setup to use login name and password in order to see Nagios Web interface, and I want to remove that and then still be able to execute the cgi commands. Is it possible to remove the authentication and still be able to use the Cgi commands in Nagios? I have read the manual, but it doesn't seem to work. I am running Nagios 2.9 on Fedora Core 6. Thanks, Palle -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tim at tany.com Tue Nov 13 22:24:43 2007 From: tim at tany.com (Tim Palmer) Date: Tue, 13 Nov 2007 16:24:43 -0500 Subject: Were can I find the check_snmp plugin In-Reply-To: <473A11C1.1050003@vanderkooij.org> References: <473A11C1.1050003@vanderkooij.org> Message-ID: <473A161B.2040106@tany.com> Hugo van der Kooij wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Christy.New at cancer.org wrote: >> I have tons of snmp plugins in this folder, but my routers, which allow >> snmp will not run these two snmp service check: >> >> They are as follows, and it keeps telling me that it is missing the plug >> in. >> >> http://www.nagiosexchange.org/SNMP.51.0.html?&tx_netnagext_pi1[p_view]=555 >> >> Here is were I pulled the plug-in and then extracted it's contents into the >> libexec folder. Next I stopped and restarted Nagios. Then logged into >> Nagios and the errors were still there. So next I restarted my entire >> server and followed the process and again it was still the errors are still >> there. Could it be that I am using UBUNTU Linux and maybe I should go with >> redhat or debian? > > Please do not apply windows procedures in a unix environment. Work the > problem. Solve it step by step. Pay attention to the exact responses and > the exact commands. > > 1. Can you run access the router with SNMP at all? Test with snmpwalk. > (Known obstacles: firewalls, community strings ,....) > > 2. Can you run the plugin by hand? Test all the options you want to use > in nagios manualy first. Make sure you test this sucesfully as the user > that the nagios process runs as. > > 3. Now try to build the most simple service definition and try within > Nagios. > > If you have further question please document your attempts and show > which steps you have taken. > > 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) > > iD8DBQFHOhG+BvzDRVjxmYERAlKbAJ99IcW/8M7GVB9X7scZcoiJN1QjXQCfXXg4 > S/eP300ysm/IBOlOeTHBBzM= > =jvd/ > -----END PGP SIGNATURE----- > Chris - Before you do anything, make sure you have the net-snmp package installed (look for snmpwalk in /usr/local/bin or suchlike). No snmp plugin will work without it (that I'm aware of anyway). I might also suggest you investigate Groundwork - it takes some of the manual work out of configuring/using Nagios. It still requires understanding Nagios, and I'm sure its a bit of work to get started, but in the long run, you'll see web pages for configuration instead of text files, and it tries to make things a little simpler. : I have only set up the configuration GUI for others, and haven't used the whole package, so I'm not speaking from experience. Not sure what its "free-ness" status is either... tim ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rgil at liquidnet.com Tue Nov 13 22:34:04 2007 From: rgil at liquidnet.com (Robert Gil) Date: Tue, 13 Nov 2007 16:34:04 -0500 Subject: submit_check_result always critical Message-ID: <4AB4EC5F69C3774C875B1BD8CB658B1A02965658@ny0ech01.LNHOLDINGS.COM> I am setting up a distributed nagios environment for the first time and have come into a couple road blocks. For some reason the passive checks always come back as critical. From the command line they show correctly. Also the $OUTPUT$ variable does not appear to return any information in the submit_check_result script. I got the script out of the documentation. Perhaps the variable is incorrect? Here is an example of the email output. ***** Nagios 2.10 ***** Notification Type: PROBLEM Service: Load Host: Unix Server #rem5 Address: xxx.xxx.xxx.xxx State: CRITICAL Date/Time: Tue Nov 13 16:32:01 EST 2007 Additional Info: OUTPUT As you can see above this is version 2.10 using nsca version 2.7.2. Any help would be greatly appreciated. Thanks, Rob -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Nov 14 00:15:56 2007 From: marc at ena.com (Marc Powell) Date: Tue, 13 Nov 2007 17:15:56 -0600 Subject: Authentication question In-Reply-To: <003901c82639$c0f2ad20$98ad38a6@na.dsmain.com> References: <003901c82639$c0f2ad20$98ad38a6@na.dsmain.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Palle L Jensen > Sent: Tuesday, November 13, 2007 3:11 PM > To: Nagios Users > Subject: [Nagios-users] Authentication question > > Hi All, > > > > We have it setup to use login name and password in order to see Nagios Web > interface, and I want to remove that and then still be able to execute the > cgi commands. > > Is it possible to remove the authentication and still be able to use the > Cgi commands in Nagios? See the default_user_name directive in cgi.cfg. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Nov 14 00:18:53 2007 From: marc at ena.com (Marc Powell) Date: Tue, 13 Nov 2007 17:18:53 -0600 Subject: submit_check_result always critical In-Reply-To: <4AB4EC5F69C3774C875B1BD8CB658B1A02965658@ny0ech01.LNHOLDINGS.COM> References: <4AB4EC5F69C3774C875B1BD8CB658B1A02965658@ny0ech01.LNHOLDINGS.COM> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Robert Gil > Sent: Tuesday, November 13, 2007 3:34 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] submit_check_result always critical > > I am setting up a distributed nagios environment for the first time and > have come into a couple road blocks. > > > > For some reason the passive checks always come back as critical. From the > command line they show correctly. Also the $OUTPUT$ variable does not > appear to return any information in the submit_check_result script. I got > the script out of the documentation. Perhaps the variable is incorrect? Looks to me like you might have been referencing the 1.0 documentation ($OUTPUT$ is a 1.x only macro). The 2.0 documentation on Distributed Monitoring uses the correct macros. http://nagios.sourceforge.net/docs/2_0/distributed.html -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From yana.millis at gmail.com Wed Nov 14 00:43:35 2007 From: yana.millis at gmail.com (Yana Millis) Date: Wed, 14 Nov 2007 09:43:35 +1000 Subject: Need help setting up NODUtils with Postgres Message-ID: Hello! I've grabbed the postgres version of NDOUtils from nagios exchange (http://www.nagiosexchange.org/Utilities.16.0.html?&tx_netnagext_pi1%5Bp_view%5D=1131) I've no idea whether this stuff is stable but I thought I'd giv it a go, and when trying to run ./configure, I keep getting the following error: . . . MySQL library and include file(s) were found! checking for PQconnectdb in -lpq... yes checking libpq-fe.h usability... no checking libpq-fe.h presence... no checking for libpq-fe.h... no *** PostgreSQL include file could not be located... **************** You chose to compile NDBXT with PostgreSQL support, but I was unable to locate on your system. If the include file is installed, use the --with-pgsql-inc argument to specify the location of the PostgreSQL include file. ******************************************************************** I've also tried to configure it, as suggested, with ./configure --with-pgsql-inc=/usr/include and ensured that libpq-fe.h is indeed in /usr/include, and its permissions are rwxrwxrwx, but I still keep getting the PostgreSQL include file could not be located error (???!!!!)...which is really weird... Does anyone have any suggestions for me ? Thank you, --yana ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rgil at liquidnet.com Wed Nov 14 04:26:53 2007 From: rgil at liquidnet.com (Robert Gil) Date: Tue, 13 Nov 2007 22:26:53 -0500 Subject: submit_check_result always critical In-Reply-To: References: Message-ID: <4AB4EC5F69C3774C875B1BD8CB658B1A02965793@ny0ech01.LNHOLDINGS.COM> Getting a similar error. Still critical every time. Nov 13 22:16:53 SERVER nagios: EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;rem5;NTP;2;(No output!) Nov 13 22:17:02 SERVER nsca[10294]: Handling the connection... Nov 13 22:17:03 SERVER nsca[10294]: SERVICE CHECK -> Host Name: 'rem5', Service Description: 'Time', Return Code: '2', Output: '(No output!)' Nov 13 22:17:03 SERVER nsca[10294]: End of connection... Nov 13 22:17:03 SERVER nagios: EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;rem5;Time;2;(No output!) define command{ command_name submit_check_result command_line /usr/local/nagios/libexec/eventhandlers/submit_check_result $HOSTNAME$ '$SERVICEDESC$' $SERVICESTATE$ '$SERVICEOUTPUT$' } -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Marc Powell Sent: Tuesday, November 13, 2007 6:19 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] submit_check_result always critical > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Robert Gil > Sent: Tuesday, November 13, 2007 3:34 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] submit_check_result always critical > > I am setting up a distributed nagios environment for the first time and > have come into a couple road blocks. > > > > For some reason the passive checks always come back as critical. From the > command line they show correctly. Also the $OUTPUT$ variable does not > appear to return any information in the submit_check_result script. I got > the script out of the documentation. Perhaps the variable is incorrect? Looks to me like you might have been referencing the 1.0 documentation ($OUTPUT$ is a 1.x only macro). The 2.0 documentation on Distributed Monitoring uses the correct macros. http://nagios.sourceforge.net/docs/2_0/distributed.html -- Marc ------------------------------------------------------------------------ - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From yana.millis at gmail.com Wed Nov 14 09:45:36 2007 From: yana.millis at gmail.com (Yana Millis) Date: Wed, 14 Nov 2007 18:45:36 +1000 Subject: Where is Nagios Core Dump file ? Message-ID: Hello, nagios crashes on me with an error: Starting nagios:/etc/init.d/nagios: line 121: 28073 Segmentation fault $NagiosBin -d $NagiosCfgFile when i try to run it with ndoUtils. Can somebody please tell me where exactly is the core dump file, what is that file called, and how to open it in a humanly-readable format ? thanks alot, --yana ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gcoochey at sapphire.gi Wed Nov 14 10:12:00 2007 From: gcoochey at sapphire.gi (Giles Coochey) Date: Wed, 14 Nov 2007 10:12:00 +0100 Subject: Were can I find the check_snmp plugin In-Reply-To: References: <473A11C1.1050003@vanderkooij.org> Message-ID: <9D30659ABCA7FB428CF91E386C3A57449A7AE5@hermes.sapphire-int.gi> > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Christy.New at cancer.org > Sent: 13 November 2007 22:14 > To: Hugo van der Kooij > Cc: nagios-users-bounces at lists.sourceforge.net; Nagios Users Mailinglist > Subject: Re: [Nagios-users] Were can I find the check_snmp plugin > > Please do not apply windows procedures in a unix environment. Work the > problem. Solve it step by step. Pay attention to the exact responses and > the exact commands.HOW AM CAN I TELL That's about as far as anyone will read your last post. I am seriously beginning to wonder whether you are a troll. You will need to go back to square one: http://www.catb.org/~esr/faqs/smart-questions.html Once you've read and properly absorbed then proceed to square two: http://tldp.org And finally, once you've spent a few years on that, with test environments and the like, proceed to: http://www.nagios.org/ If you can't be bothered with the above steps then you have two choices: (a) Use another product. (b) Get someone else to do it for you. Please bear in mind that the advice you get here is purely voluntary and most people here are simply here to gain information from discussion and pass their experiences on to others. In the short time that you've participated on this list, you've simply posted demands for information repeatedly without ever properly communicating exactly what your problem has been. I would imagine that many have already set up mail filters to /dev/null your email address. I am not personally attacking you here, but I feel that there is a shared consensus. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Nov 14 10:20:51 2007 From: ae at op5.se (Andreas Ericsson) Date: Wed, 14 Nov 2007 10:20:51 +0100 Subject: Where is Nagios Core Dump file ? In-Reply-To: References: Message-ID: <473ABDF3.3090801@op5.se> Yana Millis wrote: > Hello, > nagios crashes on me with an error: > Starting nagios:/etc/init.d/nagios: line 121: 28073 Segmentation fault > $NagiosBin -d $NagiosCfgFile > > when i try to run it with ndoUtils. > Can somebody please tell me where exactly is the core dump file, There is no coredump, otherwise it would have read Segmentation fault (core dumped) Make sure you have your system configured to allow core dumps. Usually this is done by saying ulimit -c unlimited in your /etc/profile or other equivalent shell initializer. You can also type it on the prompt before you run nagios' init-script. > what is that file called, Usually just 'core', although it could be 'core.' where is the process id of the process that caused the coredump. > and how > to open it in a humanly-readable format ? > Use gdb. $ gdb /path/to/nagios core gdb> bt Send the output of the "bt" command from gdb to nagios-devel at lists.sourceforge.net along with nagios and ndoutils version info and someone will look into it. You'll have to subscribe to nagis-devel before you can post there. If you don't wish to do so, send your email here and I'll make sure it reaches the right people. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Wed Nov 14 10:25:10 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Wed, 14 Nov 2007 09:25:10 +0000 Subject: Monitoring a process In-Reply-To: <66955c170711131304y1383a515ub421c06e00f02856@mail.gmail.com> References: <66955c170711131130s381655f2rfeeabbb626c3480b@mail.gmail.com> <66955c170711131253h6385246ds67724722a5332c0d@mail.gmail.com> <66955c170711131304y1383a515ub421c06e00f02856@mail.gmail.com> Message-ID: <473ABEF6.4060902@googlemail.com> One thing I notice in your configurations, apart from the massive retry interval is that you are inheriting max check attempts of 15 from the leadlander template. This means you have to wait 60 minutes for 1st failure and then 14* 6 hours for the 15th failure on which it goes hard critical and alerts you. Change your check intervals and/or max check attempts for this service in order to make it go into a hard state and then you will get your notification. -h Hari Sekhon Jerad Riggin wrote: > Just to clarify > > normal_check_interval 60 > retry_check_interval 360 > notification_interval 360 > > This means that it checks every hour. After it fails the first time, > it will wait 6 hours to retry, if it is still not OK after 6 hours, it > notifies and begins to notify every 6 hours until it's ok. > > On Nov 13, 2007 3:00 PM, Rich Sasko wrote: > >> It only notifies after it enters a hard state which is usually after the >> third try. >> >> Richard Sasko >> Niagara Lasalle Corp >> Phone: (219) 853-6272 >> Mobile: (219) 484-5617 >> E-mail: rsasko at niag.com >> >> >> >> -----Original Message----- >> From: Jerad Riggin [mailto:jriggin at gmail.com] >> Sent: Tuesday, November 13, 2007 2:54 PM >> To: Rich Sasko >> Subject: Re: [Nagios-users] Monitoring a process >> >> Thanks for the response. This is what I did just a bit ago. I have >> it successfully monitoring outlook.exe, however no e-mails are being >> sent when it's critical. >> >> Here is what I have as the service definition: >> >> define service{ >> use leadlander >> host_name leadlandervm >> service_description Outlook Process >> contact_groups bo,mis >> notification_options w,u,c,r >> check_command check_nt2!PROCSTATE!-d SHOWALL -l >> outlook.exe >> } >> >> Here is what I have for the leadlander template >> >> define service{ >> use generic-service >> name leadlander >> is_volatile 0 >> check_period 24x7 >> max_check_attempts 15 >> normal_check_interval 20 >> retry_check_interval 20 >> notification_interval 20 >> notification_period 24x7 >> register 0 >> } >> >> Does it only notify after the first retry failure, or should it notify >> as soon as the service is critical? Any ideas? >> >> >> On Nov 13, 2007 2:39 PM, Rich Sasko wrote: >> >>> Jerad Riggin gmail.com> writes: >>> >>> >>>> Would it be possible using Nsclient++ to monitor for a process name? >>>> We need to make sure Outlook.exe is running on the server and if it >>>> isn't, send out notifications. >>>> >>>> Thanks, >>>> >>>> Jerad >>>> >>>> >>>> >> ------------------------------------------------------------------------ >> - >> >>>> This SF.net email is sponsored by: Splunk Inc. >>>> Still grepping through log files to find problems? Stop. >>>> Now Search log events and configuration files using AJAX and a >>>> >> browser. >> >>>> Download your FREE copy of Splunk now >> http://get.splunk.com/ >>>> _______________________________________________ >>>> Nagios-users mailing list >>>> Nagios-users lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>>> ::: Please include Nagios version, plugin version (-v) and OS when >>>> >> reporting >> >>> any issue. >>> >>>> ::: Messages without supporting info will risk being sent to >>>> >> /dev/null >> >>>> >>> Jerad, >>> >>> We have the NSClient++ running on our Windows servers and the >>> >> following >> >>> service check is an example of how we are monitoring services from the >>> >> nagios >> >>> server: >>> >>> define service{ >>> use generic-service >>> host_name email server >>> service_description explorer >>> check_command check_nt!PROCSTATE!-d SHOWALL -l >>> >> explorer.exe >> >>> } >>> >>> It is actually in one of the sample config files, you should just have >>> >> to tell >> >>> it what process you want to watch. >>> >>> >>> >>> >> ------------------------------------------------------------------------ >> - >> >>> This SF.net email is sponsored by: Splunk Inc. >>> Still grepping through log files to find problems? Stop. >>> Now Search log events and configuration files using AJAX and a >>> >> browser. >> >>> Download your FREE copy of Splunk now >> http://get.splunk.com/ >>> _______________________________________________ >>> Nagios-users mailing list >>> Nagios-users at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>> ::: Please include Nagios version, plugin version (-v) and OS when >>> >> reporting any issue. >> >>> ::: Messages without supporting info will risk being sent to /dev/null >>> >>> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sunny at tetrain.com Wed Nov 14 10:41:30 2007 From: sunny at tetrain.com (Sunny Bhatheja) Date: Wed, 14 Nov 2007 15:11:30 +0530 Subject: Regarding check_oracle Message-ID: <473AC2CA.9070202@tetrain.com> Dear All, I m trying to monitor using check_oracle plugin.But whn i checked my oracle from Plugin like ./check_oracle --tns orcl and it gives me ok status but whn i used this by putting entry in hosts, services and chkcommands thn if gives like Oracle Home is not set for sid. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Wed Nov 14 10:46:19 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Wed, 14 Nov 2007 09:46:19 +0000 Subject: Regarding check_oracle In-Reply-To: <473AC2CA.9070202@tetrain.com> References: <473AC2CA.9070202@tetrain.com> Message-ID: <473AC3EB.5010703@googlemail.com> Yes this is common, make sure the Nagios user has $ORACLE_HOME set in the environment to your locally installed oracle bits like sqlplus which this depends on. A cheap cheat would just be to modify the script and hardcode it at the top (but then beware when you upgrade the plugins that this will revert to broken so if doing that you may want to copy the plugin out and keep it separate). -h Hari Sekhon Sunny Bhatheja wrote: > Dear All, > I m trying to monitor using check_oracle > plugin.But whn i checked my oracle from Plugin like ./check_oracle --tns > orcl and it gives me ok status but whn i used this by putting entry in > hosts, services and chkcommands thn if gives like Oracle Home is not set > for sid. > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gcoochey at sapphire.gi Wed Nov 14 10:49:38 2007 From: gcoochey at sapphire.gi (Giles Coochey) Date: Wed, 14 Nov 2007 10:49:38 +0100 Subject: Regarding check_oracle In-Reply-To: <473AC2CA.9070202@tetrain.com> References: <473AC2CA.9070202@tetrain.com> Message-ID: <9D30659ABCA7FB428CF91E386C3A57449A7AE9@hermes.sapphire-int.gi> > Dear All, > I m trying to monitor using check_oracle > plugin.But whn i checked my oracle from Plugin like ./check_oracle --tns > orcl and it gives me ok status but whn i used this by putting entry in > hosts, services and chkcommands thn if gives like Oracle Home is not set > for sid. > Checkout http://www.mail-archive.com/nagios-users at lists.sourceforge.net/msg05446. html ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From duncan.ferguson at altinity.com Wed Nov 14 11:01:47 2007 From: duncan.ferguson at altinity.com (Duncan Ferguson) Date: Wed, 14 Nov 2007 10:01:47 +0000 Subject: nagios.log format In-Reply-To: <5eb4b0650711130832g2a66d2f6g7914a6e568cdcfcd@mail.gmail.com> References: <5eb4b0650711130832g2a66d2f6g7914a6e568cdcfcd@mail.gmail.com> Message-ID: <96EF8FD7-E5AE-4C41-8C50-147A5F2BC300@altinity.com> On 13 Nov 2007, at 16:32, Kuang-Chun Cheng wrote: > Hi, > > I want to do post-analysis of nagios.log and save the filtered > result to DB. > [snip] > Could someone tell me what's the fields means ? > What kind of message will be log into nagios.log. Sometime I found > "SERVICE ALERT" message ... > any complete list existed for possible message ? Thanks You should be able to glean some information form the external commands reference, as well as the source code http://www.nagios.org/developerinfo/externalcommands/commandlist.php Duncs -- Duncan Ferguson http://www.altinity.com Tel: +44 (0)870 787 9243 Fax: +44 (0)845 280 1725 Skype: duncan_j_ferguson MSN: duncan.ferguson at altinity.com ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pico at cocco.biz Wed Nov 14 11:14:20 2007 From: pico at cocco.biz (PiCo) Date: Wed, 14 Nov 2007 11:14:20 +0100 Subject: Can NAGIOS check HOST via PROXY ? In-Reply-To: References: <47287907.5050906@googlemail.com> <4728859A.9010105@googlemail.com> Message-ID: Hi All.... Still I'm looking for a solution to my problem. :-( I have to reach some (most of all) host via a proxy. Concerning the connection at OS level.. I use FREECAP (on windows) and so a SOCKS PROXY... Somobody knows if is possible to config nagios to run checks "proxyfied"... maybe using proxychain (http://packages.ubuntu.com/edgy/net/proxychains) Any suggestions ?? -- ,,, /'^'\ ( o o ) ----------------------------------------oOOO--(_)--OOOo------ Pierfrancesco Cocco EMail: pico at cocco.biz Web: www.cocco.biz ICQ#: 105570291 SkypeID: cocco.biz Tel.: +39 335 1234 475 Fax.: +39 06 233 2401 88 .oooO ( ) Oooo. ------------------------------------------\ (----( )------- \_) ) / (_/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lobbin at gmail.com Wed Nov 14 11:24:30 2007 From: lobbin at gmail.com (Robin Helgelin) Date: Wed, 14 Nov 2007 11:24:30 +0100 Subject: ANNOUNCE check_hpasm-1.6.1 In-Reply-To: <012d01c82217$b02e0fa0$a601000a@int.consol.de> References: <012d01c82217$b02e0fa0$a601000a@int.consol.de> Message-ID: On Nov 8, 2007 3:57 PM, Gerhard Lausser wrote: > Hi, > > for those of you monitoring HPC Proliant hardware with the check_hpasm > plugin. I fixed a bug which could lead to overseen failed fans. Please find > the new release under http://www.consol.de/opensource/nagios/check-hpasm/ You (or anybody else) don't happen to have nagiosgraph map entries for the performance data? -- regards, Robin ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Wed Nov 14 11:40:29 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Wed, 14 Nov 2007 10:40:29 +0000 Subject: Can NAGIOS check HOST via PROXY ? In-Reply-To: References: <47287907.5050906@googlemail.com> <4728859A.9010105@googlemail.com> Message-ID: <473AD09D.6050706@googlemail.com> I don't know about the proxying thing at this time, I suspect it will not work or not diversely enough to be really useful, but off the top of my head, you can do this the way that has been previously suggested which is to use check_nrpe and put the plugins on the remote host with an nrpe definition of something like command[check_http_webserver1]=/path/to/check_http -H webserver1 ....blah blah... .............."".............._webserver2............"".........""..........webserver2........blah..... or command[check_mysql_databaseserver1]=/path/to/check_mysql -H databaseserver1 ....blah blah... and then from your nagios server do check_nrpe -H proxy_host -c check_http_webserver or check_nrpe -H proxy_host -c check_mysql_databaseserver1 which should do exactly what you want, returns the condition of webserver1 or databaseserver1, the output and exit code as per standard Nagios remote checks. -h Hari Sekhon PiCo wrote: > Hi All.... > Still I'm looking for a solution to my problem. :-( > > I have to reach some (most of all) host via a proxy. > > > Concerning the connection at OS level.. I use FREECAP (on windows) and so > a SOCKS > PROXY... > > Somobody knows if is possible to config nagios to run checks > "proxyfied"... maybe using proxychain > (http://packages.ubuntu.com/edgy/net/proxychains) > > Any suggestions ?? > > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sunny at tetrain.com Wed Nov 14 11:59:32 2007 From: sunny at tetrain.com (Sunny Bhatheja) Date: Wed, 14 Nov 2007 16:29:32 +0530 Subject: Regarding check_oracle In-Reply-To: <473AC3EB.5010703@googlemail.com> References: <473AC2CA.9070202@tetrain.com> <473AC3EB.5010703@googlemail.com> Message-ID: <473AD514.8000807@tetrain.com> I m able to get the Output from oracle_home whn it is running from oracle or root users but whn i manually run the check_oracle plugin by nagios user it gives tht oracle_home is not set. i did this bcz nagios works with nagios user. I also set the ORACLE_HOME for nagios users. Hari Sekhon wrote: > Yes this is common, make sure the Nagios user has $ORACLE_HOME set in > the environment to your locally installed oracle bits like sqlplus > which this depends on. > > A cheap cheat would just be to modify the script and hardcode it at > the top (but then beware when you upgrade the plugins that this will > revert to broken so if doing that you may want to copy the plugin out > and keep it separate). > > -h > > Hari Sekhon > > > > Sunny Bhatheja wrote: >> Dear All, >> I m trying to monitor using check_oracle >> plugin.But whn i checked my oracle from Plugin like ./check_oracle >> --tns orcl and it gives me ok status but whn i used this by putting >> entry in hosts, services and chkcommands thn if gives like Oracle >> Home is not set for sid. >> >> >> ------------------------------------------------------------------------- >> >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a browser. >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. ::: Messages without supporting info will risk >> being sent to /dev/null >> >> > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From joseph.petrucci at wachovia.com Wed Nov 14 11:59:39 2007 From: joseph.petrucci at wachovia.com (joseph.petrucci at wachovia.com) Date: Wed, 14 Nov 2007 05:59:39 -0500 Subject: Regarding check_oracle In-Reply-To: <473AC2CA.9070202@tetrain.com> References: <473AC2CA.9070202@tetrain.com> Message-ID: When you run this command from the command line it is using the environmental variables setup in your .profile or .login I am not familiar with the check_oracle but you will need to set the environmental variables for the ID running the query. Joe Petrucci Cell : 724-462-0443 Sunny Bhatheja Sent by: nagios-users-bounces at lists.sourceforge.net 11/14/2007 04:41 AM To nagios-users at lists.sourceforge.net cc Subject [Nagios-users] Regarding check_oracle Dear All, I m trying to monitor using check_oracle plugin.But whn i checked my oracle from Plugin like ./check_oracle --tns orcl and it gives me ok status but whn i used this by putting entry in hosts, services and chkcommands thn if gives like Oracle Home is not set for sid. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sunny at tetrain.com Wed Nov 14 12:07:11 2007 From: sunny at tetrain.com (Sunny Bhatheja) Date: Wed, 14 Nov 2007 16:37:11 +0530 Subject: Regarding check_oracle In-Reply-To: References: Message-ID: <473AD6DF.8080909@tetrain.com> I did this , whn i do this echo $ORACLE_HOME thn it gives me correct output.. joseph.petrucci at wachovia.com wrote: > > When you run this command from the command line it is using the > environmental variables setup in your .profile or .login I am not > familiar with the check_oracle but you will need to set the > environmental variables for the ID running the query. > > Joe Petrucci > Cell : 724-462-0443 > > > > *Sunny Bhatheja * > Sent by: nagios-users-bounces at lists.sourceforge.net > > 11/14/2007 04:41 AM > > > To > nagios-users at lists.sourceforge.net > cc > > Subject > [Nagios-users] Regarding check_oracle > > > > > > > > > > Dear All, > I m trying to monitor using check_oracle > plugin.But whn i checked my oracle from Plugin like ./check_oracle --tns > orcl and it gives me ok status but whn i used this by putting entry in > hosts, services and chkcommands thn if gives like Oracle Home is not set > for sid. > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From radhiilu at yahoo.com Wed Nov 14 12:24:13 2007 From: radhiilu at yahoo.com (Sekhar) Date: Wed, 14 Nov 2007 03:24:13 -0800 (PST) Subject: check_dns strange error Message-ID: <124144.6827.qm@web90504.mail.mud.yahoo.com> Hi Guys, I have nagios 1.3 server which doesn't have check_dns plugin so i have copied from the new plugins package when i try to test ./check_dns -H www.google.com -S 66.249.91.103 i am getting the following error DNS CRITICAL - '/usr/bin/nslookup -sil' output parsing exited with no address my server nslookup is working and the permissions and owner of check_dns plugin is fine and my resolve.conf file is having correct dns servers. Could some one help me how to fix this error.Infact i am getting the same error for any host notly google Thnaks for your time ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dermoth at aei.ca Wed Nov 14 13:54:50 2007 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Wed, 14 Nov 2007 07:54:50 -0500 Subject: submit_check_result always critical In-Reply-To: <4AB4EC5F69C3774C875B1BD8CB658B1A02965793@ny0ech01.LNHOLDINGS.COM> References: <4AB4EC5F69C3774C875B1BD8CB658B1A02965793@ny0ech01.LNHOLDINGS.COM> Message-ID: <473AF01A.4010505@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 13/11/07 10:26 PM, Robert Gil wrote: > Getting a similar error. Still critical every time. > > > Nov 13 22:16:53 SERVER nagios: EXTERNAL COMMAND: > PROCESS_SERVICE_CHECK_RESULT;rem5;NTP;2;(No output!) > Nov 13 22:17:02 SERVER nsca[10294]: Handling the connection... > Nov 13 22:17:03 SERVER nsca[10294]: SERVICE CHECK -> Host Name: 'rem5', > Service Description: 'Time', Return Code: '2', Output: '(No output!)' > Nov 13 22:17:03 SERVER nsca[10294]: End of connection... > Nov 13 22:17:03 SERVER nagios: EXTERNAL COMMAND: > PROCESS_SERVICE_CHECK_RESULT;rem5;Time;2;(No output!) > > > define command{ > command_name submit_check_result > command_line > /usr/local/nagios/libexec/eventhandlers/submit_check_result $HOSTNAME$ > '$SERVICEDESC$' $SERVICESTATE$ '$SERVICEOUTPUT$' > } I'm not sure if you got it right. As I understand it your nagios sends the current check result back to itself, so it's obvious the state never change. If you want to do active monitoring you should use an active check, and if you want to do passive monitoring the command should run on the remote host (ex. from crontab) and use send_nsca to report back to nagios (in that case you should have active checks disabled on the service, and eventually freshness checking) If you're trying to do something else then please explain. Thanks, Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHOvAa6dZ+Kt5BchYRAtPwAJ4s7/758uxUjEiYkjsSnRhF0rMgJQCfUqob 38LblcL52iOPeqrJtRRbhoE= =oCBq -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mkellermann at net-com.de Wed Nov 14 15:05:04 2007 From: mkellermann at net-com.de (Matthias Kellermann) Date: Wed, 14 Nov 2007 15:05:04 +0100 Subject: Plugin for monitoring FreeBSD for updates (like check_apt)? In-Reply-To: <1194967171.2611.17.camel@ingress.pitbpa0.priv.collaborativefusion.com> References: <47387470.6050103@net-com.de> <1194967171.2611.17.camel@ingress.pitbpa0.priv.collaborativefusion.com> Message-ID: <473B0090.2080007@net-com.de> Hi list, I've made some progress with a Nagios Plugin for the FreeBSD Ports. It's called check_ports for now and the first version can be found here: http://dl.adminlife.net/check_ports Please don't blame me for my coding style - I'm not a shell hacker ;) The plugin does the following: If you start it without a parameter it will check the host system for updates via pkg_version and security problems via portaudit (if it exists). If you start it with the name of a jail as parameter it will check the jail for updates and security problems. This is done via jexec so you need sudo installed if you call the Nagios plugin with an unprivileged user. Some problems still exist: - sometimes there is an plugin timeout in Nagios, because calling pkg_version can be time consuming - it is not the best idea to give an unprivileged superuser access to jexec without password The plugin works for me at the moment. Hope it will work for you, too. I would be happy if you have any suggestions or improvements. Matthias ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Nov 14 15:42:07 2007 From: marc at ena.com (Marc Powell) Date: Wed, 14 Nov 2007 08:42:07 -0600 Subject: submit_check_result always critical In-Reply-To: <4AB4EC5F69C3774C875B1BD8CB658B1A02965793@ny0ech01.LNHOLDINGS.COM> References: <4AB4EC5F69C3774C875B1BD8CB658B1A02965793@ny0ech01.LNHOLDINGS.COM> Message-ID: > -----Original Message----- > From: Robert Gil [mailto:rgil at liquidnet.com] > Sent: Tuesday, November 13, 2007 9:27 PM > To: Marc Powell; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] submit_check_result always critical > > Getting a similar error. Still critical every time. That's what you're sending. You shouldn't expect something different than what you send. > Nov 13 22:16:53 SERVER nagios: EXTERNAL COMMAND: > PROCESS_SERVICE_CHECK_RESULT;rem5;NTP;2;(No output!) > Nov 13 22:17:02 SERVER nsca[10294]: Handling the connection... You send -- > Nov 13 22:17:03 SERVER nsca[10294]: SERVICE CHECK -> Host Name: 'rem5', > Service Description: 'Time', Return Code: '2', Output: '(No output!)' Return Code: 2 == CRITICAL Output from the plugin == '(No output!)' In this case this means that the distributed nagios server didn't receive any output from the plugin it ran. Looks to me like the plugin being executed before it's results are sent via NSCA is failing. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From palleje at gmail.com Wed Nov 14 15:42:19 2007 From: palleje at gmail.com (Palle L Jensen) Date: Wed, 14 Nov 2007 09:42:19 -0500 Subject: Authentication question In-Reply-To: References: <003901c82639$c0f2ad20$98ad38a6@na.dsmain.com> Message-ID: <000001c826cc$90390920$98ad38a6@na.dsmain.com> Thanks Marc for your quick response, I've tried a few variations and the result is I don't get the logon window (which Is good, we don't want the logon window), but I can still not execute the cgi commands. I changed these sections in the cgi.cfg use_authentication=0 (tried both 0 and 1) default_user_name=guest (enabled) authorized_for _system_command=* (tried both * and root,nagios,guest) nagios.conf looks like this: ScriptAlias /nagios/cgi-bin /usr/share/nagios/cgi Options ExecCGI AllowOverride None Order allow,deny Allow from all Alias /nagios /usr/share/nagios Options None AllowOverride None Order allow,deny Allow from all This is what we are trying to achieve: - No userlogon. - Able to use all cgi commands in Nagios. (full admin rights, views, execute commands) Thanks, Palle > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Palle L Jensen > Sent: Tuesday, November 13, 2007 3:11 PM > To: Nagios Users > Subject: [Nagios-users] Authentication question > > Hi All, > > > > We have it setup to use login name and password in order to see Nagios Web > interface, and I want to remove that and then still be able to execute the > cgi commands. > > Is it possible to remove the authentication and still be able to use the > Cgi commands in Nagios? See the default_user_name directive in cgi.cfg. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Nov 14 15:51:25 2007 From: marc at ena.com (Marc Powell) Date: Wed, 14 Nov 2007 08:51:25 -0600 Subject: check_dns strange error In-Reply-To: <124144.6827.qm@web90504.mail.mud.yahoo.com> References: <124144.6827.qm@web90504.mail.mud.yahoo.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Sekhar > Sent: Wednesday, November 14, 2007 5:24 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] check_dns strange error > > Hi Guys, > > I have nagios 1.3 server which doesn't have check_dns plugin so i have > copied from the new plugins package when i try to test > > ./check_dns -H www.google.com -S 66.249.91.103 > > i am getting the following error > > DNS CRITICAL - '/usr/bin/nslookup -sil' output parsing exited with no > address > > my server nslookup is working and the permissions and owner of check_dns check_dns is specifically compiled to work with the nslookup output on the machine it was compiled on. It appears that your nslookup output is different than the nslookup output on the machine check_dns was compiled on. I'd recommend compiling the plugins on the machine you intend to run them on or compile/copy from an identical architecture/OS version. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mailing at rtcw.com.fr Wed Nov 14 15:58:22 2007 From: mailing at rtcw.com.fr (Sylvain Viollat) Date: Wed, 14 Nov 2007 15:58:22 +0100 Subject: LONGDATETIME return $ Message-ID: <7d4e4c892fdabfea7209882e7cab9779@localhost> Hi, sorry for the delay in my answer. After checking (again and again) my settings, it appear that the *notify_by* commands were define twice... After modifying my settings, everything works just fine. Thanks for your help. Regards, Sylvain. On Fri, 9 Nov 2007 09:54:01 -0600, "Marc Powell" wrote: > Are you _sure_ this is the notification command being used? The reason I > ask is that you appear to be using the macro correctly but this is an > issue that has only ever been seen when the wrong macro is used (i.e. > $DATETIME$ from nagios-1.x). For some reason I'm under the impression > that the debian packages are shipped with incorrect macros used. Did you > have to change them? Did you restart nagios after and verify that there > is only one nagios daemon running? > > -- > Marc > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Nov 14 15:58:57 2007 From: marc at ena.com (Marc Powell) Date: Wed, 14 Nov 2007 08:58:57 -0600 Subject: Authentication question In-Reply-To: <000001c826cc$90390920$98ad38a6@na.dsmain.com> References: <000001c826cc$90390920$98ad38a6@na.dsmain.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Palle L Jensen > Sent: Wednesday, November 14, 2007 8:42 AM > To: Nagios Users > Subject: Re: [Nagios-users] Authentication question > > Thanks Marc for your quick response, > > I've tried a few variations and the result is > I don't get the logon window (which Is good, we don't want the logon > window), but I can still not execute the cgi commands. > > I changed these sections in the cgi.cfg > use_authentication=0 (tried both 0 and 1) This should be 1. > default_user_name=guest (enabled) This is fine. > authorized_for _system_command=* (tried both * and root,nagios,guest) This only says that anyone can shutdown or restart nagios or change it from active to standby. You want more than that. You'll want to look at all the authorized_for_* settings in cgi.cfg, but specifically -- authorized_for_all_services authorized_for_all_hosts authorized_for_all_service_commands authorized_for_all_host_commands -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rgil at liquidnet.com Wed Nov 14 15:59:42 2007 From: rgil at liquidnet.com (Robert Gil) Date: Wed, 14 Nov 2007 09:59:42 -0500 Subject: submit_check_result always critical In-Reply-To: <473AF01A.4010505@aei.ca> References: <4AB4EC5F69C3774C875B1BD8CB658B1A02965793@ny0ech01.LNHOLDINGS.COM> <473AF01A.4010505@aei.ca> Message-ID: <4AB4EC5F69C3774C875B1BD8CB658B1A02965940@ny0ech01.LNHOLDINGS.COM> The setup is as follows: 1 nagios server in each datacenter would send passive check results to a central server in the NOC. Right now I am testing on two servers initially. Both servers are in the same datacenter. Both are running the same versions of nagios and plugins. Nagios01: Central Monitoring Server. Mainly just catching passive results, displaying the dashboard, and sending notifications. Nagios02: Distributed nagios server Configuration: Nagios02 has the check command defined as follows. define command{ command_name submit_check_result command_line /usr/local/nagios/libexec/eventhandlers/submit_check_result $HOSTNAME$ '$SERVICEDESC$' $SERVICESTATE$ '$SERVICEOUTPUT$' } In nagios.cfg obsess_over_services=1 ocsp_command=submit_check_result In the submit_check_result script, the print line is as follows. /usr/bin/printf "%s\t%s\t%s\t%s\n" "$1" "$2" "$return_code" "$4" | /usr/local/nagios/bin/send_nsca 10.0.254.248 -c /usr/local/nagios/etc/send_nsca.cfg In Nagios01 it is set up to accept passive checks. And they do come in, but are always critical and with the previous error of "No Output!" The checks from the distributed server (02) do work when they are run from the command line. Im not sure if im missing something or the implementation is being confused in some way. Thanks, Rob -----Original Message----- From: Thomas Guyot-Sionnest [mailto:dermoth at aei.ca] Sent: Wednesday, November 14, 2007 7:55 AM To: Robert Gil Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] submit_check_result always critical -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 13/11/07 10:26 PM, Robert Gil wrote: > Getting a similar error. Still critical every time. > > > Nov 13 22:16:53 SERVER nagios: EXTERNAL COMMAND: > PROCESS_SERVICE_CHECK_RESULT;rem5;NTP;2;(No output!) > Nov 13 22:17:02 SERVER nsca[10294]: Handling the connection... > Nov 13 22:17:03 SERVER nsca[10294]: SERVICE CHECK -> Host Name: 'rem5', > Service Description: 'Time', Return Code: '2', Output: '(No output!)' > Nov 13 22:17:03 SERVER nsca[10294]: End of connection... > Nov 13 22:17:03 SERVER nagios: EXTERNAL COMMAND: > PROCESS_SERVICE_CHECK_RESULT;rem5;Time;2;(No output!) > > > define command{ > command_name submit_check_result > command_line > /usr/local/nagios/libexec/eventhandlers/submit_check_result $HOSTNAME$ > '$SERVICEDESC$' $SERVICESTATE$ '$SERVICEOUTPUT$' > } I'm not sure if you got it right. As I understand it your nagios sends the current check result back to itself, so it's obvious the state never change. If you want to do active monitoring you should use an active check, and if you want to do passive monitoring the command should run on the remote host (ex. from crontab) and use send_nsca to report back to nagios (in that case you should have active checks disabled on the service, and eventually freshness checking) If you're trying to do something else then please explain. Thanks, Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHOvAa6dZ+Kt5BchYRAtPwAJ4s7/758uxUjEiYkjsSnRhF0rMgJQCfUqob 38LblcL52iOPeqrJtRRbhoE= =oCBq -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From leosilva at tse.gov.br Wed Nov 14 18:18:37 2007 From: leosilva at tse.gov.br (Leandro Silva) Date: Wed, 14 Nov 2007 14:18:37 -0300 Subject: check_http finding string Message-ID: <002601c826e2$64dc6950$2df41c0a@tse.gov.br> Hi I?m using nagios version 2.10 and trying to determine de disponibility of my website using check_http to find a string in a url. If i execute this command in the prompt: /usr/local/nagios/libexec/check_http -H www.mywebsite.com.br -u /internet/principal.jsp -s "String to find" i get: HTTP OK HTTP/1.1 200 OK - 1.805 second response time |time=1.804832s;;;0.000000 size=20593B;;;0 and if i change the string i get: HTTP CRITICAL - string not found|time=1.835345s;;;0.000000 size=20593B;;;0 So I put in the service.cfg: define service{ use website-service host_name internet service_description HTTP check_command check_http!-u /internet/principal.jsp -s "String to find" } and I have in the nagios page the service status, having the string in the page or not: Status Information:HTTP OK HTTP/1.1 200 OK - 369 bytes in 0.005 seconds Performance Data:time=0.005401s;;;0.000000 size=369B;;;0 In the command.cfg I have: define command{ command_name check_http command_line $USER1$/check_http -H $HOSTADDRESS$ } Someone can help me? Leandro -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Wed Nov 14 17:22:46 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Wed, 14 Nov 2007 16:22:46 +0000 Subject: check_http finding string In-Reply-To: <002601c826e2$64dc6950$2df41c0a@tse.gov.br> References: <002601c826e2$64dc6950$2df41c0a@tse.gov.br> Message-ID: <473B20D6.5010504@googlemail.com> add $ARG1$ to the end of the command_line $USER1$/..... line in command.cfg. -h Hari Sekhon Leandro Silva wrote: > Hi > > I?m using nagios version 2.10 and trying to determine de disponibility > of my website using check_http to find a string in a url. > If i execute this command in the prompt: > //usr/local/nagios/libexec/check_http -H > //www.mywebsite.com.br/ / -u > /internet/principal.jsp -s "String to find"/ > i get: > /HTTP OK HTTP/1.1 200 OK - 1.805 second response time > |time=1.804832s;;;0.000000 size=20593B;;;0/ > > and if i change the string i get: > /HTTP CRITICAL - string not found|time=1.835345s;;;0.000000 > size=20593B;;;0/ > > > So I put in the service.cfg: > > /define service{/ > / use website-service/ > / host_name internet/ > / service_description HTTP/ > / check_command check_http!-u /internet/principal.jsp -s "String to > find"/ > /}/ > > and I have in the nagios page the service status, having the string in > the page or not: > > /Status Information:HTTP OK HTTP/1.1 200 OK - 369 bytes in 0.005 > seconds / > / Performance Data:time=0.005401s;;;0.000000 size=369B;;;0/ > > In the command.cfg I have: > /define command{/ > / command_name check_http/ > / command_line $USER1$/check_http -H $HOSTADDRESS$/ > /}/ > > Someone can help me? > > Leandro > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrickm at garlic.com Wed Nov 14 17:27:46 2007 From: patrickm at garlic.com (Patrick M.) Date: Wed, 14 Nov 2007 08:27:46 -0800 Subject: Can Nagios implement with Expect to automate tasks when issues arise? Message-ID: <473B2202.1080702@garlic.com> Hi all, I just learned what Expect was and wrote a few scripts to automate certain tasks around the office, and now I'm wondering if Expect can be used in conjunction with Nagios. Is this possible? Example: One of our servers go down at least twice a day, and we know it's problematic. We connect to the power strip and recycle the power on the port that machine is plugged in. I'd like to use Expect to automate this when Nagios notices it is down. Has anyone else implemented something similar to what I'm describing? Thanks in advance. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Nov 14 17:34:24 2007 From: marc at ena.com (Marc Powell) Date: Wed, 14 Nov 2007 10:34:24 -0600 Subject: Can Nagios implement with Expect to automate taskswhen issues arise? In-Reply-To: <473B2202.1080702@garlic.com> References: <473B2202.1080702@garlic.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Patrick M. > Sent: Wednesday, November 14, 2007 10:28 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Can Nagios implement with Expect to automate > taskswhen issues arise? > > Hi all, > > I just learned what Expect was and wrote a few scripts to automate > certain tasks around the office, and now I'm wondering if Expect can be > used in conjunction with Nagios. Is this possible? > > Example: One of our servers go down at least twice a day, and we know > it's problematic. We connect to the power strip and recycle the power > on the port that machine is plugged in. I'd like to use Expect to > automate this when Nagios notices it is down. > > Has anyone else implemented something similar to what I'm describing? Yes, certainly doable. It's an Event Handler for nagios. It's a script that can be run when a host/service changes state. That script can be written in sh, bash, perl, expect, ruby, whatever... As long as you can script an action to take and run that as the nagios user, nagios can automatically run it when needed. Take a look at the Event Handler documentation for examples. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mangesh.dhamale at sumasoft.net Wed Nov 14 17:40:35 2007 From: mangesh.dhamale at sumasoft.net (Mangesh Dhamale) Date: Wed, 14 Nov 2007 22:10:35 +0530 Subject: Nagios-users Digest, Vol 18, Issue 20 References: Message-ID: <013501c826dd$1598ea30$1564a8c0@ssplsys1> Hi All, I have configured nagios. Can any body file regarding nagios-plugin. Actually i have configured windows system using nsclient++. How to monitor remote linux boxes like cpu load,disk...etc. Regards, Mangesh Dhamale ----------------------------------------------------------------- System Administrator Suma Soft Pvt. Ltd. Suma Center, IInd Floor, Opp. Himali Society, Near Mangeshkar Hospital, Erandwane, Pune - 411004 Ph : +91-20-2542 5655 Extn : 327 Cell : +91-98508 87775 Email : mangesh.dhamale at sumasoft.net www.sumasoft.com ------------------------------------------------------------------ ----- Original Message ----- From: To: Sent: Wednesday, November 14, 2007 1:07 AM Subject: Nagios-users Digest, Vol 18, Issue 20 > Send Nagios-users mailing list submissions to > nagios-users at lists.sourceforge.net > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/nagios-users > or, via email, send a message with subject or body 'help' to > nagios-users-request at lists.sourceforge.net > > You can reach the person managing the list at > nagios-users-owner at lists.sourceforge.net > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Nagios-users digest..." > > > Today's Topics: > > 1. Nagios time format (Jerad Riggin) > 2. Re: Nagios time format (Marc Powell) > 3. Re: Two instances of ndo2db running... (GT4NE1) > 4. Date/Time and Additional Info Shows as $ (Robert Gil) > 5. Re: Date/Time and Additional Info Shows as $ (Haydn Solomon) > 6. Status display colors (Israel Brewster) > 7. Re: Status display colors (Marc Powell) > 8. Host monitoring (Jerad Riggin) > 9. Re: Host monitoring (Marc Powell) > 10. Re: check_snmp_storage fails on 2003 box, works manually > (chris serafin) > 11. Re: Plugin for monitoring FreeBSD for updates (like > check_apt)? (Matthias Kellermann) > 12. Re: Status display colors (Giles Coochey) > 13. RE : Nagios CGI modification (Florent HOUBART) > 14. Re: Plugin for monitoring FreeBSD for updates (like > check_apt)? (Michael W. Lucas) > 15. Re: Plugin for monitoring FreeBSD for updates (like > check_apt)? (Brian A. Seklecki) > 16. Re: Plugin for monitoring FreeBSD for updates (like > check_apt)? (Matthias Kellermann) > 17. nagios.log format (Kuang-Chun Cheng) > 18. Re: nagios.log format (Marc Powell) > 19. Old state information randomly appearing (Shawn Kovalchick) > 20. Re: Old state information randomly appearing (Shawn Kovalchick) > 21. Re: no newlines in notification emails ? (SCHAER Frederic) > 22. Re: Old state information randomly appearing (Marc Powell) > 23. Re: Old state information randomly appearing (Shawn Kovalchick) > 24. Monitoring a process (Jerad Riggin) > 25. Were can I find the check_snmp plugin (Christy.New at cancer.org) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 12 Nov 2007 15:15:40 -0600 > From: "Jerad Riggin" > Subject: [Nagios-users] Nagios time format > To: nagios-users at lists.sourceforge.net > Message-ID: > <66955c170711121315r39452d71ub9ac82b965c71a5e at mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > Is there a way to change the time format that nagios uses? CST would > make the logs easier to read. > > > > ------------------------------ > > Message: 2 > Date: Mon, 12 Nov 2007 15:24:05 -0600 > From: "Marc Powell" > Subject: Re: [Nagios-users] Nagios time format > To: > Message-ID: > Content-Type: text/plain; charset="US-ASCII" > > > >> -----Original Message----- >> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- >> bounces at lists.sourceforge.net] On Behalf Of Jerad Riggin >> Sent: Monday, November 12, 2007 3:16 PM >> To: nagios-users at lists.sourceforge.net >> Subject: [Nagios-users] Nagios time format >> >> Is there a way to change the time format that nagios uses? CST would >> make the logs easier to read. > > Not within the logfiles themselves (and you don't want to change them) > but this FAQ covers a couple of different ways to display them with > localtime -- http://www.nagios.org/faqs/viewfaq.php?faq_id=70 > > -- > Marc > > > > > ------------------------------ > > Message: 3 > Date: Mon, 12 Nov 2007 13:24:53 -0800 > From: GT4NE1 > Subject: Re: [Nagios-users] Two instances of ndo2db running... > To: "Valdinger, Stephen (DOV, MSX)" > Cc: Patrick Morris , > nagios-users at lists.sourceforge.net > Message-ID: > <18894d440711121324y29f19742j85eb59a88eefa163 at mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > Okay, maybe you are right. > > I just rechecked my database and their are recent entries in there. > > Sorry and thanks. > > -GT > > On 11/12/07, Valdinger, Stephen (DOV, MSX) wrote: >> This is correct, I just verified to make sure that mine behaves the same >> way, and alas, it does. >> >> >> >> -----Original Message----- >> From: Patrick Morris [mailto:patrick.morris at hp.com] >> Sent: Monday, November 12, 2007 2:48 PM >> To: GT4NE1 >> Cc: nagios-users at lists.sourceforge.net >> Subject: Re: [Nagios-users] Two instances of ndo2db running... >> >> On Mon, 12 Nov 2007, GT4NE1 wrote: >> >> > Any ideas why two ndo2db process are starting? >> >> That's just the way it works. If you only saw one, it'd mean it wasn't >> working. >> >> You'll see one when you start it up, and a second will appear when >> Nagios uses it. It's not a problem. >> >> ------------------------------------------------------------------------ >> - >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a browser. >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> >> > > > > ------------------------------ > > Message: 4 > Date: Mon, 12 Nov 2007 16:52:16 -0500 > From: "Robert Gil" > Subject: [Nagios-users] Date/Time and Additional Info Shows as $ > To: > Message-ID: > <4AB4EC5F69C3774C875B1BD8CB658B1A02965053 at ny0ech01.LNHOLDINGS.COM> > Content-Type: text/plain; charset="us-ascii" > > For some reason the Date/Time and Additional Info don't show up. Any > thoughts as to why this might be? I couldn't find anything about it > online. > > > > ***** Nagios ***** > > > > Notification Type: PROBLEM > > > > Service: Storage / > > Host: Unix Server > > Address: xxx.xxx.xxx.xxx > > State: CRITICAL > > > > Date/Time: $ > > > > Additional Info: > > > > $ > > > > Thanks, > > Rob > > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 5 > Date: Mon, 12 Nov 2007 17:07:08 -0500 > From: "Haydn Solomon" > Subject: Re: [Nagios-users] Date/Time and Additional Info Shows as $ > To: "Robert Gil" > Cc: nagios-users at lists.sourceforge.net > Message-ID: > > Content-Type: text/plain; charset="iso-8859-1" > > You're probably using wrong/outdated macros. Check the documentation for > version of nagios you're using and update your commands configuration > files. > > > On Nov 12, 2007 4:52 PM, Robert Gil wrote: > >> For some reason the Date/Time and Additional Info don't show up. Any >> thoughts as to why this might be? I couldn't find anything about it >> online. >> >> >> >> ***** Nagios ***** >> >> >> >> Notification Type: PROBLEM >> >> >> >> Service: Storage / >> >> Host: Unix Server >> >> Address: xxx.xxx.xxx.xxx >> >> State: CRITICAL >> >> >> >> Date/Time: $ >> >> >> >> Additional Info: >> >> >> >> $ >> >> >> >> Thanks, >> >> Rob >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a browser. >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 6 > Date: Mon, 12 Nov 2007 13:27:23 -0900 > From: Israel Brewster > Subject: [Nagios-users] Status display colors > To: Nagios Users mailinglist > Message-ID: <52CB1EC1-3305-4C96-999A-65230D815C7D at frontierflying.com> > Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed > > Is there any way to change the colors generated by status.cgi? My > boss is complaining that it is really hard for him to read the dark > blue hostname on the dark red background you get when a host is down. > Thanks! > > ----------------------------------------------- > Israel Brewster > Computer Support Technician > Frontier Flying Service Inc. > 5245 Airport Industrial Rd > Fairbanks, AK 99709 > (907) 450-7250 x293 > ----------------------------------------------- > > > > > > ------------------------------ > > Message: 7 > Date: Mon, 12 Nov 2007 16:35:23 -0600 > From: "Marc Powell" > Subject: Re: [Nagios-users] Status display colors > To: "Nagios Users mailinglist" > Message-ID: > Content-Type: text/plain; charset="US-ASCII" > > > >> -----Original Message----- >> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- >> bounces at lists.sourceforge.net] On Behalf Of Israel Brewster >> Sent: Monday, November 12, 2007 4:27 PM >> To: Nagios Users mailinglist >> Subject: [Nagios-users] Status display colors >> >> Is there any way to change the colors generated by status.cgi? My >> boss is complaining that it is really hard for him to read the dark >> blue hostname on the dark red background you get when a host is down. > > Haven't done it myself but status.css in ~nagios/share looks to be the > ticket. > > -- > Marc > > > > ------------------------------ > > Message: 8 > Date: Mon, 12 Nov 2007 16:52:24 -0600 > From: "Jerad Riggin" > Subject: [Nagios-users] Host monitoring > To: nagios-users at lists.sourceforge.net > Message-ID: > <66955c170711121452t7725cc2do9a75acd3b88a6e4c at mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > So what would be the best way to monitor in this situation? > > I have Host A, hosting two websites. > > Currently I have both websites configured as separate hosts, so in > nagios it shows up as ServerA - site.com, and another host ServerA - > siteb.com > > This doesn't seem efficient since I am pinging both sites, but it's > the same host. Ideally I would want to just ping the host, and check > strings on each site under that host. Any recommendations? > > > > ------------------------------ > > Message: 9 > Date: Mon, 12 Nov 2007 17:13:50 -0600 > From: "Marc Powell" > Subject: Re: [Nagios-users] Host monitoring > To: > Message-ID: > Content-Type: text/plain; charset="US-ASCII" > > > >> -----Original Message----- >> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- >> bounces at lists.sourceforge.net] On Behalf Of Jerad Riggin >> Sent: Monday, November 12, 2007 4:52 PM >> To: nagios-users at lists.sourceforge.net >> Subject: [Nagios-users] Host monitoring >> >> So what would be the best way to monitor in this situation? >> >> I have Host A, hosting two websites. >> >> Currently I have both websites configured as separate hosts, so in >> nagios it shows up as ServerA - site.com, and another host ServerA - >> siteb.com >> >> This doesn't seem efficient since I am pinging both sites, but it's >> the same host. Ideally I would want to just ping the host, and check >> strings on each site under that host. Any recommendations? > > Unless I'm missing something obvious, this seems pretty straightforward. > host{} definition for the web server machine, service{} definitions for > each vhost using check_http to check them. You can craft a command{} > definition to pass the variable parameters like vhost name, uri and > search string like so -- > > define command { > command_name check_http_url > command_line $USER1$/check_http -I $HOSTADDRESS$ > -H $ARG1$ -u $ARG2$ -wt 20 -ct 30 -to 35 -s $ARG3$ > } > > To check to vhosts -- > > define service { > use generic-service > host_name my_webserver > service_description HTTP VHOST site1 > check_command > check_http_url!www.site1.com!/mypage!/html > } > > define service { > use generic-service > host_name my_webserver > service_description HTTP VHOST site2 > check_command > check_http_url!www.site2.com!/someotherpage!/html > } > > -- > Marc > > > > ------------------------------ > > Message: 10 > Date: Mon, 12 Nov 2007 20:11:22 -0600 > From: "chris serafin" > Subject: Re: [Nagios-users] check_snmp_storage fails on 2003 box, > works manually > To: "Nagios Users Mailinglist" > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > AAhhhh, after over 6+ hours of editing CLI code, my eyes failed me. I > changed these simple flags and it works great. Sorry for the newb > false alarm. > > Chris Serafin > Security Engineer > chris at chrisserafin.com > > > On Nov 12, 2007 12:58 AM, Hugo van der Kooij > wrote: >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> chris serafin wrote: >> > I'm having an issue with getting some SNMP commands to work. >> > >> > When issuing the check_snmp_storage.pl manually, I get perfect results, >> > but once I put it in Nagios 3.0b5, I get critical alerts: (Return code >> > of 127 is out of bounds - plugin may be missing) >> > >> > This is the manual command I enter and the result: >> > >> > $ sudo ./check_snmp_storage.pl -H 192.168.1.200 -C pUBLIC -m C -w 80 -c >> > 95 >> >> Great for root. But what about the account that Nagios is running as? >> Did you test it too? And where did you put check_snmp_storage.pl exactly? >> ./ is a rather relative distinction. But I think it does not matter .... >> >> > This is how I defined the command and service: >> > define command{ >> > command_name check_snmp_storage_windrive >> > command_line $USER1$/check_snmp_storage -H $HOSTADDRESS$ -C >> > $ARG1$ -m $ARG2$ -w $ARG3$ -c $ARG4$ >> >> Hold on. Why are you afraid to come out and tell nagios it is a perl >> script? >> $USER1$/check_snmp_storage !!= ./check_snmp_storage.pl >> >> For those unaware of pseudo code: !!= stands for 'is most definitly >> NOT'. Pretty much as !~= stands for 'almost but not quite unlike`;-) >> >> 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) >> >> iD8DBQFHN/mgBvzDRVjxmYERAmt3AKCD35Rz1k7aT3POzEvQPYUNEQXo4ACfUa0H >> Mg/Qj9Pt1/o0/6T4xxwwxZg= >> =GD0Z >> -----END PGP SIGNATURE----- >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a browser. >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> > > > > ------------------------------ > > Message: 11 > Date: Tue, 13 Nov 2007 08:06:08 +0100 > From: Matthias Kellermann > Subject: Re: [Nagios-users] Plugin for monitoring FreeBSD for updates > (like check_apt)? > To: "Michael W. Lucas" > Cc: Nagios Users > Message-ID: <47394CE0.9010602 at net-com.de> > Content-Type: text/plain; charset=ISO-8859-1 > > Michael W. Lucas schrieb: >> On Mon, Nov 12, 2007 at 04:42:40PM +0100, Matthias Kellermann wrote: >>> Hi list, >>> >>> anyone knows of a Nagios plugin to check the FreeBSD ports and base >>> system for updates? I'm searching for something like check_apt for >>> Debian/Ubuntu. >>> >>> One important thing is that I also want to monitor all the FreeBSD jails >>> for updates, too. Any help/hint appreciated :) >> >> None exists today. >> >> It should be fairly simple to write a NRPE wrapper around portmaster, >> however. >> >> I believe (but might be wrong) that net-snmp also has the ability to >> read the FreeBSD package database; you could run a snmpwalk on the >> target machine and compare that to a master package database. >> >> Good luck, and if you implement something be sure to let us know about >> it. > > Thanks for your answer Michael. I will see what I can do. If I have > found/implemented something useful I will let you know. > > BTW: Looking forward for your new book coming out these days. Hope it > will be released in Europe also on November 14th :) > > Matthias > >> ==ml > > > > ------------------------------ > > Message: 12 > Date: Tue, 13 Nov 2007 09:10:44 +0100 > From: "Giles Coochey" > Subject: Re: [Nagios-users] Status display colors > To: "Israel Brewster" , "Nagios Users > mailinglist" > Message-ID: > <9D30659ABCA7FB428CF91E386C3A57449A7A63 at hermes.sapphire-int.gi> > Content-Type: text/plain; charset="us-ascii" > > > >> -----Original Message----- >> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- >> bounces at lists.sourceforge.net] On Behalf Of Israel Brewster >> Sent: 12 November 2007 23:27 >> To: Nagios Users mailinglist >> Subject: [Nagios-users] Status display colors >> >> Is there any way to change the colors generated by status.cgi? My >> boss is complaining that it is really hard for him to read the dark >> blue hostname on the dark red background you get when a host is down. >> Thanks! >> > > I use the Nuvola style from the NagiosExchange website, for me it's an > instant improvement in the look and feel of the Nagios frontend. > > > > ------------------------------ > > Message: 13 > Date: Tue, 13 Nov 2007 14:42:18 +0100 > From: "Florent HOUBART" > Subject: [Nagios-users] RE : Nagios CGI modification > To: , > Message-ID: > <3254342B66257B4CAB24920F49640F4F0132A406 at MEINTFR02095.wwit.adecco.net> > > Content-Type: text/plain; charset="iso-8859-1" > > Hello, > > >>Changing the link is no big deal of course. My big question is, how do I >>get a list of all the hosts in that host group passed? > > > You may find exemple of such tasks in status.cgi. You need to loop over > all the hosts and check for each if the belong to the hostgroup or not. > > Below is an extract of status.c where I only keep what would be relevant > for you (extract from function show_hostgroup_overview). > > -------------------------- > > /* find all the hosts that belong to the hostgroup */ > for(temp_hoststatus=hoststatus_list;temp_hoststatus!=NULL;temp_hoststatus=temp_hoststatus->next){ > > /* find the host... */ > temp_host=find_host(temp_hoststatus->host_name,NULL); > > /* make sure this host a member of the hostgroup */ > if(!is_host_member_of_hostgroup(hstgrp,temp_host)) > continue; > > /* make sure the user is authorized to see this host */ > if(is_authorized_for_host(temp_host,¤t_authdata)==FALSE) > continue; > > > /* Do something with the host temp_host */ > } > > --------------------------- > > Regards, > > Florent Houbart > > > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 14 > Date: Tue, 13 Nov 2007 10:09:03 -0500 > From: "Michael W. Lucas" > Subject: Re: [Nagios-users] Plugin for monitoring FreeBSD for updates > (like check_apt)? > To: Matthias Kellermann > Cc: Nagios Users > Message-ID: > <20071113150903.GA50921 at bewilderbeast.blackhelicopters.org> > Content-Type: text/plain; charset=us-ascii > > On Tue, Nov 13, 2007 at 08:06:08AM +0100, Matthias Kellermann wrote: >> Michael W. Lucas schrieb: >> > On Mon, Nov 12, 2007 at 04:42:40PM +0100, Matthias Kellermann wrote: >> >> Hi list, >> >> >> >> anyone knows of a Nagios plugin to check the FreeBSD ports and base >> >> system for updates? I'm searching for something like check_apt for >> >> Debian/Ubuntu. >> >> >> >> One important thing is that I also want to monitor all the FreeBSD >> >> jails >> >> for updates, too. Any help/hint appreciated :) >> > >> > None exists today. >> > >> > It should be fairly simple to write a NRPE wrapper around portmaster, >> > however. >> > >> > I believe (but might be wrong) that net-snmp also has the ability to >> > read the FreeBSD package database; you could run a snmpwalk on the >> > target machine and compare that to a master package database. >> > >> > Good luck, and if you implement something be sure to let us know about >> > it. >> >> Thanks for your answer Michael. I will see what I can do. If I have >> found/implemented something useful I will let you know. >> >> BTW: Looking forward for your new book coming out these days. Hope it >> will be released in Europe also on November 14th :) > > The book physically exists, and is being shipped to stores now. You > should be able to find it any day now. > > I really need to change my .sig... > > ==ml > -- > Michael W. Lucas mwlucas at BlackHelicopters.org, mwlucas at FreeBSD.org > http://www.BlackHelicopters.org/~mwlucas/ > Coming Soon: "Absolute FreeBSD" -- http://www.AbsoluteFreeBSD.com > On 5/4/2007, the TSA kept 3 pairs of my soiled undies "for security > reasons." > > > > ------------------------------ > > Message: 15 > Date: Tue, 13 Nov 2007 10:19:31 -0500 > From: "Brian A. Seklecki" > Subject: Re: [Nagios-users] Plugin for monitoring FreeBSD for updates > (like check_apt)? > To: Matthias Kellermann > Cc: nagios-users at lists.sourceforge.net > Message-ID: > <1194967171.2611.17.camel at ingress.pitbpa0.priv.collaborativefusion.com> > > Content-Type: text/plain; charset=iso-8859-1 > > > On Mon, 2007-11-12 at 16:42 +0100, Matthias Kellermann wrote: >> Hi list, >> >> anyone knows of a Nagios plugin to check the FreeBSD ports and base >> system for updates? I'm searching for something like check_apt for >> Debian/Ubuntu. > > All that you need to do is exec portaudit and trap the output. However, > mapping this into warn/crit status will get tricky. > > Most big shops have software release engineer processes that prevent > them from, as a NetBSD friend of mine calls it, "implementing massive > rolling in-place binary upgrades". > > In the hope that security will somehow be derived from that (Linux > credo, I suppose). I like the idea ether way. Let me know if you need > help testing/coding. > > ~BAS > > $ pkg_version -vL "=" > apache-2.2.4_2 < needs updating (port has 2.2.6_2) > apr-nothr-db4-1.0.1_1 < needs updating (port has 1.2.8_2) > arj-3.10.22 < needs updating (port has 3.10.22_1) > autoconf-2.59_3 < needs updating (port has 2.61_2) > autoconf-wrapper-20070404 < needs updating (port has 20071109) > > $ sudo portaudit > Affected package: perl-5.8.8 > Type of problem: perl -- regular expressions unicode data buffer > overflow. Reference: > Affected package: nagios-plugins-1.4.9,1 > Type of problem: nagios-plugins -- Long Location Header Buffer > Overflow Vulnerability. > > ~BAS > >> >> One important thing is that I also want to monitor all the FreeBSD jails >> for updates, too. Any help/hint appreciated :) >> >> Matthias >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a browser. >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> >> >> >> >> >> > > > > > ------------------------------ > > Message: 16 > Date: Tue, 13 Nov 2007 17:27:38 +0100 > From: Matthias Kellermann > Subject: Re: [Nagios-users] Plugin for monitoring FreeBSD for updates > (like check_apt)? > To: "Brian A. Seklecki" > Cc: nagios-users at lists.sourceforge.net > Message-ID: <4739D07A.3060107 at net-com.de> > Content-Type: text/plain; charset=ISO-8859-1 > > Brian A. Seklecki schrieb: >> On Mon, 2007-11-12 at 16:42 +0100, Matthias Kellermann wrote: >>> Hi list, >>> >>> anyone knows of a Nagios plugin to check the FreeBSD ports and base >>> system for updates? I'm searching for something like check_apt for >>> Debian/Ubuntu. >> >> All that you need to do is exec portaudit and trap the output. However, >> mapping this into warn/crit status will get tricky. >> >> Most big shops have software release engineer processes that prevent >> them from, as a NetBSD friend of mine calls it, "implementing massive >> rolling in-place binary upgrades". >> >> In the hope that security will somehow be derived from that (Linux >> credo, I suppose). I like the idea ether way. Let me know if you need >> help testing/coding. >> >> ~BAS >> >> $ pkg_version -vL "=" >> apache-2.2.4_2 < needs updating (port has 2.2.6_2) >> apr-nothr-db4-1.0.1_1 < needs updating (port has 1.2.8_2) >> arj-3.10.22 < needs updating (port has 3.10.22_1) >> autoconf-2.59_3 < needs updating (port has 2.61_2) >> autoconf-wrapper-20070404 < needs updating (port has 20071109) >> >> $ sudo portaudit >> Affected package: perl-5.8.8 >> Type of problem: perl -- regular expressions unicode data buffer >> overflow. Reference: > >> Affected package: nagios-plugins-1.4.9,1 >> Type of problem: nagios-plugins -- Long Location Header Buffer >> Overflow Vulnerability. >> >> ~BAS > > Thanks for your answer Brian. > > I've found ports-mgmt/jailaudit in the Ports. Seems quite useful yet. > I'll see how this tool can help on monitoring the installed ports for > security holes. > > Monitoring the jails for updates should work with pkg_version -vL "=" > > I'll let you know if I've made something useful. > > Matthias > > > > ------------------------------ > > Message: 17 > Date: Wed, 14 Nov 2007 00:32:43 +0800 > From: "Kuang-Chun Cheng" > Subject: [Nagios-users] nagios.log format > To: nagios-users at lists.sourceforge.net > Message-ID: > <5eb4b0650711130832g2a66d2f6g7914a6e568cdcfcd at mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > Hi, > > I want to do post-analysis of nagios.log and save the filtered result to > DB. > The format look like this: > [1194969600] CURRENT SERVICE STATE: localhost;Current > Load;OK;HARD;1;OK - load average: 0.17, 0.23, 0.20 > [1194969600] CURRENT SERVICE STATE: localhost;Current > Users;OK;HARD;1;USERS OK - 14 users currently logged in > [1194969600] CURRENT SERVICE STATE: localhost;HTTP;OK;HARD;1;HTTP OK > HTTP/1.1 200 OK - 7590 bytes in 0.006 seconds > [1194969600] CURRENT SERVICE STATE: localhost;PING;OK;HARD;1;PING OK - > Packet loss = 0%, RTA = 0.04 ms > [1194969600] CURRENT SERVICE STATE: localhost;Root > Partition;OK;HARD;1;DISK OK - free space: / 37567 MB (53% inode=96%): > [1194969600] CURRENT SERVICE STATE: localhost;SSH;OK;HARD;1;SSH OK - > OpenSSH_4.3 (protocol 2.0) > [1194969600] CURRENT SERVICE STATE: localhost;Swap > Usage;OK;HARD;1;SWAP OK - 78% free (1542 MB out of 1983 MB) > [1194969600] CURRENT SERVICE STATE: localhost;Total > Processes;OK;HARD;1;PROCS OK: 110 processes with STATE = RSZDT > > Could someone tell me what's the fields means ? > What kind of message will be log into nagios.log. Sometime I found > "SERVICE ALERT" message ... > any complete list existed for possible message ? Thanks > > Regards > KC > > > > ------------------------------ > > Message: 18 > Date: Tue, 13 Nov 2007 10:56:40 -0600 > From: "Marc Powell" > Subject: Re: [Nagios-users] nagios.log format > To: > Message-ID: > Content-Type: text/plain; charset="US-ASCII" > > > >> -----Original Message----- >> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- >> bounces at lists.sourceforge.net] On Behalf Of Kuang-Chun Cheng >> Sent: Tuesday, November 13, 2007 10:33 AM >> To: nagios-users at lists.sourceforge.net >> Subject: [Nagios-users] nagios.log format >> >> Hi, >> >> I want to do post-analysis of nagios.log and save the filtered result > to >> DB. >> The format look like this: > > >> >> Could someone tell me what's the fields means ? >> What kind of message will be log into nagios.log. Sometime I found >> "SERVICE ALERT" message ... >> any complete list existed for possible message ? Thanks > > The only documentation I am aware of is the source code itself > (nagios-src/base/logging.c). For anything that starts with MACRO_, you > can find more information about that in the Macros documentation. -- > > $ grep snprintf logging.c > snprintf(temp_buffer,sizeof(temp_buffer),"SERVICE ALERT: > %s;%s;%s;%s;%s;%s\n",svc->host_name,svc->description,macro_x[MACRO_SERVI > CESTATE],macro_x[MACRO_SERVICESTATETYPE],macro_x[MACRO_SERVICEATTEMPT],s > vc->plugin_output); > > [timestamp] SERVICE ALERT: > host_name;service_description;servicestate,servicestatetype,serviceattem > pt;plugin_output > > snprintf(temp_buffer,sizeof(temp_buffer),"HOST ALERT: > %s;%s;%s;%s;%s\n",hst->name,macro_x[MACRO_HOSTSTATE],macro_x[MACRO_HOSTS > TATETYPE],macro_x[MACRO_HOSTATTEMPT],hst->plugin_output); > > [timestamp] HOST ALERT: > host_name,hoststate;hoststatetype;hostattempt;plugin_output > > snprintf(temp_buffer,sizeof(temp_buffer),"%s HOST STATE: > %s;%s;%s;%s;%s\n",(type==INITIAL_STATES)?"INITIAL":"CURRENT",temp_host-> > name,macro_x[MACRO_HOSTSTATE],macro_x[MACRO_HOSTSTATETYPE],macro_x[MACRO > _HOSTATTEMPT],temp_host->plugin_output); > > [timestamp] (INITIAL|CURRENT) HOST STATE: > host_name;hoststate;hoststatetype;hostattempt;plugin_output > > snprintf(temp_buffer,sizeof(temp_buffer),"%s SERVICE > STATE: > %s;%s;%s;%s;%s;%s\n",(type==INITIAL_STATES)?"INITIAL":"CURRENT",temp_ser > vice->host_name,temp_service->description,macro_x[MACRO_SERVICESTATE],ma > cro_x[MACRO_SERVICESTATETYPE],macro_x[MACRO_SERVICEATTEMPT],temp_service > ->plugin_output); > > [timestamp] (INITIAL|CURRENT) SERVICE STATE: > host_name;service_description;servicestate;servicestatetype;serviceattem > pt;plugin_output > > snprintf(temp_buffer,sizeof(temp_buffer),"LOG ROTATION: > %s\n",method_string); > > [timestamp] LOG ROTATION (daily|weekly|monthly, etc) > > snprintf(temp_buffer,sizeof(temp_buffer),"LOG VERSION: > %s\n",LOG_VERSION_2); > > [timestamp] LOG VERION: [log version string] > > Hth, > > -- > Marc > > > > ------------------------------ > > Message: 19 > Date: Tue, 13 Nov 2007 12:50:17 -0500 > From: "Shawn Kovalchick" > Subject: [Nagios-users] Old state information randomly appearing > To: "Nagios Users Mailinglist" > Message-ID: > > Content-Type: text/plain; charset="iso-8859-1" > > I have 2 hosts and 4 services that I added Friday to my nagios > configuration. They were misconfigured (wrong IP addresses), and rightly > sent out notifications. I disabled notifications and active checks via > the > web interface while I was diagnosing the problem. I fixed the problems > (the > IP addresses) and reenabled the checks and notifications. Now, every once > in a while (roughly once per minute), the old data appears on the tac.cgi, > status.cgi, and extinfo.cgi pages. They will show as down/critical, and > will have the icons for disabled notifications and disabled active checks. > Then, moments later, they will show normal (OK state, with no icons for > disabled notifications/checks). I have tried purging the bad data from > the > log files, retention.dat, etc. while the Nagios daemon was stopped, but > the > bad data still shows. Is this a bug, or is there something I can do to > flush this old data? > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 20 > Date: Tue, 13 Nov 2007 12:54:02 -0500 > From: "Shawn Kovalchick" > Subject: Re: [Nagios-users] Old state information randomly appearing > To: "Nagios Users Mailinglist" > Message-ID: > > Content-Type: text/plain; charset="iso-8859-1" > > Actually, the timing is a bit different than what I described below. > Refreshing once per second, I was able to determining that the correct > state > shows for 5 seconds, then the incorrect state shows for 10 seconds, then > the > process repeats. > > On 11/13/07, Shawn Kovalchick wrote: >> >> I have 2 hosts and 4 services that I added Friday to my nagios >> configuration. They were misconfigured (wrong IP addresses), and rightly >> sent out notifications. I disabled notifications and active checks via >> the >> web interface while I was diagnosing the problem. I fixed the problems >> (the >> IP addresses) and reenabled the checks and notifications. Now, every >> once >> in a while (roughly once per minute), the old data appears on the >> tac.cgi, >> status.cgi, and extinfo.cgi pages. They will show as down/critical, and >> will have the icons for disabled notifications and disabled active >> checks. >> Then, moments later, they will show normal (OK state, with no icons for >> disabled notifications/checks). I have tried purging the bad data from >> the >> log files, retention.dat, etc. while the Nagios daemon was stopped, but >> the bad data still shows. Is this a bug, or is there something I can do >> to >> flush this old data? >> > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 21 > Date: Tue, 13 Nov 2007 19:03:50 +0100 > From: "SCHAER Frederic" > Subject: Re: [Nagios-users] no newlines in notification emails ? > To: "Jaimie Livingston" , > > Message-ID: > > Content-Type: text/plain; charset="us-ascii" > > Hi, > > Maybe a stupid question, but did you solve the problem ? > I upgraded to nagiosb6 beta and I still get no newlines in the service > notifications (host notifications are fine)... wondering if that's me or > something else. > > Cheers > >> -----Original Message----- >> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- >> bounces at lists.sourceforge.net] On Behalf Of Jaimie Livingston >> Sent: Thursday, November 01, 2007 2:24 AM >> To: nagios-users at lists.sourceforge.net >> Subject: Re: [Nagios-users] no newlines in notification emails ? >> >> I had the same problem when I was testing 3.0b4 on CentOS. I thought > it was just me at the time... >> >> >> - Jaimie Livingston (jaimielives) >> > > > > ------------------------------ > > Message: 22 > Date: Tue, 13 Nov 2007 12:07:06 -0600 > From: "Marc Powell" > Subject: Re: [Nagios-users] Old state information randomly appearing > To: "Nagios Users Mailinglist" > Message-ID: > Content-Type: text/plain; charset="US-ASCII" > > > >> -----Original Message----- >> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- >> bounces at lists.sourceforge.net] On Behalf Of Shawn Kovalchick >> Sent: Tuesday, November 13, 2007 11:50 AM >> To: Nagios Users Mailinglist >> Subject: [Nagios-users] Old state information randomly appearing >> >> I have 2 hosts and 4 services that I added Friday to my nagios >> configuration. They were misconfigured (wrong IP addresses), and > rightly >> sent out notifications. I disabled notifications and active checks > via >> the web interface while I was diagnosing the problem. I fixed the >> problems (the IP addresses) and reenabled the checks and > notifications. >> Now, every once in a while (roughly once per minute), the old data > appears >> on the tac.cgi, status.cgi, and extinfo.cgi pages. They will show as > > FAQ in disguise: http://www.nagios.org/faqs/viewfaq.php?faq_id=21 > > -- > Marc > > > > > > > ------------------------------ > > Message: 23 > Date: Tue, 13 Nov 2007 13:18:46 -0500 > From: "Shawn Kovalchick" > Subject: Re: [Nagios-users] Old state information randomly appearing > To: "Marc Powell" > Cc: Nagios Users Mailinglist > Message-ID: > > Content-Type: text/plain; charset="iso-8859-1" > > The hosts weren't disappearing, just showing inconsistant states. Anyway, > that fixed the problem. Thanks, Marc! > > > On 11/13/07, Marc Powell wrote: >> >> >> >> > -----Original Message----- >> > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- >> > bounces at lists.sourceforge.net] On Behalf Of Shawn Kovalchick >> > Sent: Tuesday, November 13, 2007 11:50 AM >> > To: Nagios Users Mailinglist >> > Subject: [Nagios-users] Old state information randomly appearing >> > >> > I have 2 hosts and 4 services that I added Friday to my nagios >> > configuration. They were misconfigured (wrong IP addresses), and >> rightly >> > sent out notifications. I disabled notifications and active checks >> via >> > the web interface while I was diagnosing the problem. I fixed the >> > problems (the IP addresses) and reenabled the checks and >> notifications. >> > Now, every once in a while (roughly once per minute), the old data >> appears >> > on the tac.cgi, status.cgi, and extinfo.cgi pages. They will show as >> >> FAQ in disguise: http://www.nagios.org/faqs/viewfaq.php?faq_id=21 >> >> -- >> Marc >> >> >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a browser. >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 24 > Date: Tue, 13 Nov 2007 13:30:33 -0600 > From: "Jerad Riggin" > Subject: [Nagios-users] Monitoring a process > To: nagios-users at lists.sourceforge.net > Message-ID: > <66955c170711131130s381655f2rfeeabbb626c3480b at mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > Would it be possible using Nsclient++ to monitor for a process name? > We need to make sure Outlook.exe is running on the server and if it > isn't, send out notifications. > > Thanks, > > Jerad > > > > ------------------------------ > > Message: 25 > Date: Tue, 13 Nov 2007 14:36:47 -0500 > From: Christy.New at cancer.org > Subject: [Nagios-users] Were can I find the check_snmp plugin > To: nagios-users at lists.sourceforge.net > Message-ID: > > Content-Type: text/plain; charset=US-ASCII > > > I need to download the check_snmp plugin for Ubuntu for Nagios. > > Very Respectfully, > Chris > > > > > ------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > ------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > End of Nagios-users Digest, Vol 18, Issue 20 > ******************************************** > ---------------------------------------------- Confidentiality Note: This e-mail message and any attachments to it are intended only for the named recipients and may contain legally privileged and/or confidential information. If you are not one of the intended recipients, please forward this mail to abuse at sumasoft.net and do not duplicate or forward this e-mail message and immediately delete it from your computer. ---------------------------------------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From palleje at gmail.com Wed Nov 14 17:52:40 2007 From: palleje at gmail.com (Palle L Jensen) Date: Wed, 14 Nov 2007 11:52:40 -0500 Subject: Authentication question In-Reply-To: References: <000001c826cc$90390920$98ad38a6@na.dsmain.com> Message-ID: <004001c826de$c5a773a0$98ad38a6@na.dsmain.com> Thanks Marc, Working fine now. The authorized_for_* settings was what I had missed out on. -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Marc Powell Sent: Wednesday, November 14, 2007 9:59 AM To: Nagios Users Subject: Re: [Nagios-users] Authentication question > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Palle L Jensen > Sent: Wednesday, November 14, 2007 8:42 AM > To: Nagios Users > Subject: Re: [Nagios-users] Authentication question > > Thanks Marc for your quick response, > > I've tried a few variations and the result is > I don't get the logon window (which Is good, we don't want the logon > window), but I can still not execute the cgi commands. > > I changed these sections in the cgi.cfg > use_authentication=0 (tried both 0 and 1) This should be 1. > default_user_name=guest (enabled) This is fine. > authorized_for _system_command=* (tried both * and root,nagios,guest) This only says that anyone can shutdown or restart nagios or change it from active to standby. You want more than that. You'll want to look at all the authorized_for_* settings in cgi.cfg, but specifically -- authorized_for_all_services authorized_for_all_hosts authorized_for_all_service_commands authorized_for_all_host_commands -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dit.dash at gmail.com Wed Nov 14 17:53:40 2007 From: dit.dash at gmail.com (dave stern - e-mail.pluribus.unum) Date: Wed, 14 Nov 2007 11:53:40 -0500 Subject: Can Nagios implement with Expect to automate tasks when issues arise? In-Reply-To: <473B2202.1080702@garlic.com> References: <473B2202.1080702@garlic.com> Message-ID: <7f62d2420711140853y258cd6aay68551f139059d881@mail.gmail.com> Event handlers can take care of any common task but you need to be careful with them. Why is a task required to be done so frequently? Shouldn't we take care of the cause rather than the symptom? Also, scripts that "fix" known problems can be very dangerous if they inadvertantly run at times when a service/host looks critical but perhaps "critical" wasn't well enough defined, particularly if you're not using parent dependancies. So if you do go this root (pun intended), add in a LOT of checks to the expect script. On Nov 14, 2007 11:27 AM, Patrick M. wrote: > Hi all, > > I just learned what Expect was and wrote a few scripts to automate > certain tasks around the office, and now I'm wondering if Expect can be > used in conjunction with Nagios. Is this possible? > > Example: One of our servers go down at least twice a day, and we know > it's problematic. We connect to the power strip and recycle the power > on the port that machine is plugged in. I'd like to use Expect to > automate this when Nagios notices it is down. > > Has anyone else implemented something similar to what I'm describing? > > Thanks in advance. > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Nov 14 17:59:13 2007 From: ae at op5.se (Andreas Ericsson) Date: Wed, 14 Nov 2007 17:59:13 +0100 Subject: LART, please (was: Re: Nagios-users Digest, Vol 18, Issue 20) In-Reply-To: <013501c826dd$1598ea30$1564a8c0@ssplsys1> References: <013501c826dd$1598ea30$1564a8c0@ssplsys1> Message-ID: <473B2961.3080208@op5.se> Mangesh Dhamale wrote: > Hi All, > I have configured nagios. Can any body file regarding nagios-plugin. > Actually i have configured windows system using nsclient++. How to monitor > remote linux boxes like cpu load,disk...etc. > Did you really have to include the *entire* digest just to ask that? Read this: http://www.catb.org/~esr/faqs/smart-questions.html It holds the solution to the most urgent of your many problems. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrickm at garlic.com Wed Nov 14 20:05:50 2007 From: patrickm at garlic.com (Patrick M.) Date: Wed, 14 Nov 2007 11:05:50 -0800 Subject: Can Nagios implement with Expect to automate tasks when issues arise? In-Reply-To: <7f62d2420711140853y258cd6aay68551f139059d881@mail.gmail.com> References: <473B2202.1080702@garlic.com> <7f62d2420711140853y258cd6aay68551f139059d881@mail.gmail.com> Message-ID: <473B470E.2050905@garlic.com> Until we can move the scripts off that machine onto its new home, we have to reboot this system. Sometimes it happens once, sometimes it happens multiple times a day. These aren't critical systems, so it wouldn't hurt anything if these were rebooted multiple times. Thank you very much for the information, and the pointers. And yes, I agree - we should take care of the cause rather than the symptom. Thanks again. Patrick dave stern - e-mail.pluribus.unum wrote: > Event handlers can take care of any common task but you need to > be careful with them. Why is a task required to be done so frequently? > Shouldn't we take care of the cause rather than the symptom? > > Also, scripts that "fix" known problems can be very dangerous if > they inadvertantly run at times when a service/host looks critical > but perhaps "critical" wasn't well enough defined, particularly if > you're not using parent dependancies. So if you do go this root > (pun intended), add in a LOT of checks to the expect script. > > On Nov 14, 2007 11:27 AM, Patrick M. wrote: > >> Hi all, >> >> I just learned what Expect was and wrote a few scripts to automate >> certain tasks around the office, and now I'm wondering if Expect can be >> used in conjunction with Nagios. Is this possible? >> >> Example: One of our servers go down at least twice a day, and we know >> it's problematic. We connect to the power strip and recycle the power >> on the port that machine is plugged in. I'd like to use Expect to >> automate this when Nagios notices it is down. >> >> Has anyone else implemented something similar to what I'm describing? >> >> Thanks in advance. >> >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a browser. >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> >> > > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jriggin at gmail.com Wed Nov 14 21:40:02 2007 From: jriggin at gmail.com (Jerad Riggin) Date: Wed, 14 Nov 2007 14:40:02 -0600 Subject: Host monitoring In-Reply-To: References: <66955c170711121452t7725cc2do9a75acd3b88a6e4c@mail.gmail.com> Message-ID: <66955c170711141240s2903d01cj663f9eec4076d275@mail.gmail.com> I understand this part, but for example right now the service description for each host is CheckString. That way I can group all of them into a service group based on that description so we can pull availability reports for the host and the only service being monitored. If I wanted to do it your way, wouldn't I have to use the service description of each check in the servicegroups config file? On Nov 12, 2007 5:13 PM, Marc Powell wrote: > > > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > > bounces at lists.sourceforge.net] On Behalf Of Jerad Riggin > > Sent: Monday, November 12, 2007 4:52 PM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Host monitoring > > > > So what would be the best way to monitor in this situation? > > > > I have Host A, hosting two websites. > > > > Currently I have both websites configured as separate hosts, so in > > nagios it shows up as ServerA - site.com, and another host ServerA - > > siteb.com > > > > This doesn't seem efficient since I am pinging both sites, but it's > > the same host. Ideally I would want to just ping the host, and check > > strings on each site under that host. Any recommendations? > > Unless I'm missing something obvious, this seems pretty straightforward. > host{} definition for the web server machine, service{} definitions for > each vhost using check_http to check them. You can craft a command{} > definition to pass the variable parameters like vhost name, uri and > search string like so -- > > define command { > command_name check_http_url > command_line $USER1$/check_http -I $HOSTADDRESS$ > -H $ARG1$ -u $ARG2$ -wt 20 -ct 30 -to 35 -s $ARG3$ > } > > To check to vhosts -- > > define service { > use generic-service > host_name my_webserver > service_description HTTP VHOST site1 > check_command > check_http_url!www.site1.com!/mypage!/html > } > > define service { > use generic-service > host_name my_webserver > service_description HTTP VHOST site2 > check_command > check_http_url!www.site2.com!/someotherpage!/html > } > > -- > Marc > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From JHorowitz at looksmart.net Wed Nov 14 21:45:20 2007 From: JHorowitz at looksmart.net (Jonah Horowitz) Date: Wed, 14 Nov 2007 12:45:20 -0800 Subject: Issues with Distributed Nagios Message-ID: <3123F9D3D56CDF499431864372968D2F010B2D24@SFEX2K3-EVS1.looksmart_sf.ad.looksmart.com> Hello all, I'm running a distributed nagios installation with about 500 hosts and 4000 checks. Almost all of my checks run at five minute intervals. I'm trying to move from a centralized to a distributed situation because my latency has gotten to about 75 seconds average on the central server. I've built a new central server and two distributed nodes. My distributed nodes are having no trouble keeping up with the checks. The latency is less than 10 seconds on both of them, but the latency on the central server is really high, 350-650 seconds. I'm seeing freshness timeouts and errors. The checks are getting submitted, but there seems to be a horrible latency between the check result and when the central server gets it. Any help would be appreciated. Thanks, Jonah submit_service_check is as follows: $USER1$/eventhandlers/submit_service_check $HOSTNAME$ '$SERVICEDESC$' $SERVICESTATEID$ '$SERVICEOUTPUT$' #!/bin/bash ########################################################### # Arguments: # $1 = host_name (Short name of host that the service is # associated with) # $2 = svc_description (Description of the service) # $3 = state_string (A string representing the status of # the given service - "OK", "WARNING", "CRITICAL" # or "UNKNOWN") # $4 = plugin_output (A text string that should be used # as the plugin output for the service checks) # ########################################################### PRINTF="/usr/bin/printf" CMD="/usr/pkg/nsca/bin/send_nsca" CFG="/usr/pkg/nsca/etc/send_nsca.cfg" HOST=$1 SRV=$2 RESULT=$3 OUTPUT=$4 # pipe the service check info into the send_nsca program, which # in turn transmits the data to the nsca daemon on the central # monitoring server # /bin/printf "%s:%s:%s:%s\n" "$1" "$2" "$RESULT" "$4" | $CMD -H plato -c $CFG -d : #$PRINTF "%b" "$HOST:$SRV:$RESULT:$OUTPUT" | $CMD -H plato -c $CFG -d : echo "$HOST:$SRV:$RESULT:$OUTPUT -- FYI: this is a distributed passive SERVICE alert fed from `hostname`" | /usr/pkg/nsca/bin/send_nsca -H central -p 5667 -c /usr/pkg/nsca/etc/send_nsca.cfg -d : ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Nov 14 22:14:36 2007 From: marc at ena.com (Marc Powell) Date: Wed, 14 Nov 2007 15:14:36 -0600 Subject: Host monitoring In-Reply-To: <66955c170711141240s2903d01cj663f9eec4076d275@mail.gmail.com> References: <66955c170711141240s2903d01cj663f9eec4076d275@mail.gmail.com> Message-ID: Because it sucks and is hard to follow conversations. Why not? Don't top-post please. > -----Original Message----- > From: Jerad Riggin [mailto:jriggin at gmail.com] > Sent: Wednesday, November 14, 2007 2:40 PM > To: Marc Powell > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Host monitoring > > I understand this part, but for example right now the service > description for each host is CheckString. That way I can group all of > them into a service group based on that description so we can pull > availability reports for the host and the only service being Ah, more details come to light. > monitored. If I wanted to do it your way, wouldn't I have to use the > service description of each check in the servicegroups config file? I don't use servicegroups but I expect that could easily be resolved by logical naming of the services (CheckString-vhostname) and using wildcards or regex in your servicegroup match (CheckString-*). -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Nov 14 22:52:21 2007 From: marc at ena.com (Marc Powell) Date: Wed, 14 Nov 2007 15:52:21 -0600 Subject: Issues with Distributed Nagios In-Reply-To: <3123F9D3D56CDF499431864372968D2F010B2D24@SFEX2K3-EVS1.looksmart_sf.ad.looksmart.com> References: <3123F9D3D56CDF499431864372968D2F010B2D24@SFEX2K3-EVS1.looksmart_sf.ad.looksmart.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Jonah Horowitz > Sent: Wednesday, November 14, 2007 2:45 PM > To: Nagios Users Mailinglist > Subject: [Nagios-users] Issues with Distributed Nagios > > Hello all, > > I'm running a distributed nagios installation with about 500 hosts and > 4000 checks. Almost all of my checks run at five minute intervals. Pretty close to the same here... Passive Service Checks: Time Frame Checks Completed <= 1 minute: 669 (17.7%) <= 5 minutes: 3681 (97.3%) <= 15 minutes: 3782 (99.9%) <= 1 hour: 3782 (99.9%) Since program start: 3782 (99.9%) > latency is less than 10 seconds on both of them, but the latency on the > central server is really high, 350-650 seconds. I'm seeing freshness > timeouts and errors. How are you measuring the latency on the central server? Nagios doesn't report it for passive checks AFAIK. Do you see the checks come in to nsca? Do you see them in nagios.log? Are they timely in both places? Nsca debug mode might be useful. You really need to determine where the latency is appearing to give us a better idea of where to help. > The checks are getting submitted, but there seems to be a horrible > latency between the check result and when the central server gets it. The OCSP -> send_nsca -> nsca -> nagios.cmd process should be nearly instantaneous. Do you see nsca processes hanging around on your central server (besides the daemon)? Do you have nagios reaping external commands frequently enough? See the command_check_interval setting in nagios.cfg. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jchaunce at harris.com Thu Nov 15 14:22:09 2007 From: jchaunce at harris.com (Chauncey, Jeffrey) Date: Thu, 15 Nov 2007 08:22:09 -0500 Subject: Notification Delay Message-ID: <4799162F83C25748A047C01EF92ED9A9B7E9AF@mlbe2k5.cs.myharris.net> Please forgive if this question has already been answered previously, so far I have not found an answer online. I am looking for a way to delay notification when a problem occurs. When we reboot a node, we get a host down/up message and I would like to delay notification for a minute to cut down on the email traffic. Any ideas? Thanks in advance for your assistance. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From svalding at kent.edu Thu Nov 15 14:16:52 2007 From: svalding at kent.edu (svalding at kent.edu) Date: Thu, 15 Nov 2007 08:16:52 -0500 Subject: Contacting Ethen Message-ID: I'd like to get ahold of Ethen about consulting Nagios installations. I want to start doing installs of the Nagios system for businesses in my area, as there is a lot of need for it. How would be the best way to get in contact with him to discuss this? Stephen -------------- next part -------------- A non-text attachment was scrubbed... Name: svalding.vcf Type: text/x-vcard Size: 131 bytes Desc: Card for URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gcoochey at sapphire.gi Thu Nov 15 14:34:55 2007 From: gcoochey at sapphire.gi (Giles Coochey) Date: Thu, 15 Nov 2007 14:34:55 +0100 Subject: Contacting Ethen In-Reply-To: References: Message-ID: <9D30659ABCA7FB428CF91E386C3A57449A7B82@hermes.sapphire-int.gi> > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of svalding at kent.edu > Sent: 15 November 2007 14:17 > To: Nagios List > Subject: [Nagios-users] Contacting Ethen > > I'd like to get ahold of Ethen about consulting Nagios installations. I > want to start doing installs of the Nagios system for businesses in my > area, as there is a lot of need for it. How would be the best way to get > in contact with him to discuss this? > > Stephen http://www.nagios.com/contact/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lists at nexus6.co.za Thu Nov 15 14:45:26 2007 From: lists at nexus6.co.za (Andy Ashley) Date: Thu, 15 Nov 2007 13:45:26 +0000 Subject: Granular user/group authentication and resources Message-ID: <473C4D76.6050606@nexus6.co.za> Hello, I would like to know if it is currently possible to do the following: For e.g - I have a Nagios system that monitors all of our customer servers and each customers' hosts are grouped by company name. Any alerts generated are sent to that host group's associated contact group which has that company's staff as contacts. What would be really useful, is if a customer could log in and only view and make changes to those hosts that are in their host group, i.e lock that customer down to the hosts and services that concern them, isolating them from rest of the monitored hosts and customers in the interface. As it stands now, any customer could log in and view any other customers' hosts and possibly make changes depending on permissions granted to that user. Obviously not an ideal situation and something preventing us from granting customer access to Nagios. I have read through the auth sections of the docs but as far as I can tell it only seems possible to limit use of certain commands and set privledge levels by user/group. Perhaps I misssed something.. Is this something that can be configured with a present version of Nagios or if not, will this be possible in future releases? This would be really handy for us as customers could essentially log in and deal with their own alerts instead of requesting our support team to disable an alert and re-enable when the issue is resolved. Any input would be much appreciated.. Thanks. Andy. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From danilo.perdomo at inter.com.ve Thu Nov 15 15:00:44 2007 From: danilo.perdomo at inter.com.ve (danilo.perdomo at inter.com.ve) Date: Thu, 15 Nov 2007 10:00:44 -0400 Subject: Problems with check_rrd_bw.sh plugin Message-ID: Hi all! I've been having problems with the Nagios plugin check_rrd_bw.sh. It checks the traffic of some of my links in a RRD format. The thing is that every now and then i get some results that are incorrect (-2147 Mbps) and affects the alert notifications in case some of the links are in a critical value. Has anyone used the plugin? any help? The output in Nagios: OK - Current BW in: -2147Mbps Here's the plugin: http://pastebin.com/m27ba16ad Thanks! Danilo Perdomo VP Operaciones T?cnicas Intercable Barquisimeto - MSO Ext.: 5393 Tlf.: 58-251-9355393 Cel.: 58-414-5750938 www.intercable.com.ve -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Nov 15 15:07:37 2007 From: marc at ena.com (Marc Powell) Date: Thu, 15 Nov 2007 08:07:37 -0600 Subject: Granular user/group authentication and resources In-Reply-To: <473C4D76.6050606@nexus6.co.za> References: <473C4D76.6050606@nexus6.co.za> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Andy Ashley > Sent: Thursday, November 15, 2007 7:45 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Granular user/group authentication and resources > > What would be really useful, is if a customer could log in and only view > and make changes to those hosts that are in their host group, i.e lock > that customer down to > the hosts and services that concern them, isolating them from rest of > the monitored hosts and customers in the interface. Nagios does this automagically if you enable authentication for the CGI's. Hosts and services will only be viewable/modifiable by their contacts. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeff.perri at shaw.ca Thu Nov 15 15:56:31 2007 From: jeff.perri at shaw.ca (Jeff Perri) Date: Thu, 15 Nov 2007 09:56:31 -0500 Subject: How to monitor coldfusion through nagios Message-ID: Hi, I have been searching around looking for a plugin that allows me to monitor my coldfusion process on a Linux machine but I have yet to find one. Has anyone implemented this type of plugin yet or does anyone know how I would monitor this process via Nagios? Thanks Jeff Perri Network Administrator Ontario WorkInfoNet Sault Ste. Marie, Ontario netadmin at onwin.ca -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pico at cocco.biz Thu Nov 15 16:02:28 2007 From: pico at cocco.biz (PiCo) Date: Thu, 15 Nov 2007 16:02:28 +0100 Subject: using nagios via socks proxy In-Reply-To: References: Message-ID: Hi All I found the answer by myself. :-D I'm quite sure (still testing some think) that using "tsocks" ( http://tsocks.sourceforge.net/ ) for command check I can reach the host via socks proxy! Do not esitate to contact me for more details. PiCo On Tue, 06 Nov 2007 17:53:50 +0100, PiCo wrote: > Hi! > > I need to monitor some hosts that can only be accessed via a SOCKS proxy > (SSH tunneling). > > I'm using FREECAP on windows... but if I want to monitor this hosts with > nagios.... What I have to do? > > Any idea ?? > > -- ,,, /'^'\ ( o o ) ----------------------------------------oOOO--(_)--OOOo------ Pierfrancesco Cocco EMail: pico at cocco.biz Web: www.cocco.biz ICQ#: 105570291 SkypeID: cocco.biz Tel.: +39 335 1234 475 Fax.: +39 06 233 2401 88 .oooO ( ) Oooo. ------------------------------------------\ (----( )------- \_) ) / (_/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Thu Nov 15 16:06:21 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Thu, 15 Nov 2007 15:06:21 +0000 Subject: Notification Delay In-Reply-To: <4799162F83C25748A047C01EF92ED9A9B7E9AF@mlbe2k5.cs.myharris.net> References: <4799162F83C25748A047C01EF92ED9A9B7E9AF@mlbe2k5.cs.myharris.net> Message-ID: <473C606D.1050706@googlemail.com> increase max check attempts or check interval on the host for this rebooting scenario. Notifications are sent only after the max check attempts have failed. -h Hari Sekhon Chauncey, Jeffrey wrote: > > Please forgive if this question has already been answered previously, > so far I have not found an answer online. > > I am looking for a way to delay notification when a problem occurs. > When we reboot a node, we get a host down/up message and I would like > to delay notification for a minute to cut down on the email traffic. > > Any ideas? Thanks in advance for your assistance. > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Thu Nov 15 16:08:41 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Thu, 15 Nov 2007 15:08:41 +0000 Subject: Notification Delay In-Reply-To: <473C606D.1050706@googlemail.com> References: <4799162F83C25748A047C01EF92ED9A9B7E9AF@mlbe2k5.cs.myharris.net> <473C606D.1050706@googlemail.com> Message-ID: <473C60F9.1000403@googlemail.com> ah, need to correct myself, do not use check interval on hosts as this means to regularly check host regardless. make max check attempts a larger number to give yourself more time for a reboot so that it doesn't notify you unless the machine is really down and staying down. -h Hari Sekhon Hari Sekhon wrote: > increase max check attempts or check interval on the host for this > rebooting scenario. Notifications are sent only after the max check > attempts have failed. > > -h > > Hari Sekhon > > > > Chauncey, Jeffrey wrote: >> >> Please forgive if this question has already been answered previously, >> so far I have not found an answer online. >> >> I am looking for a way to delay notification when a problem occurs. >> When we reboot a node, we get a host down/up message and I would like >> to delay notification for a minute to cut down on the email traffic. >> Any ideas? Thanks in advance for your assistance. >> >> ------------------------------------------------------------------------ >> >> ------------------------------------------------------------------------- >> >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a browser. >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. ::: Messages without supporting info will risk >> being sent to /dev/null > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeff.perri at shaw.ca Thu Nov 15 16:10:24 2007 From: jeff.perri at shaw.ca (Jeff Perri) Date: Thu, 15 Nov 2007 10:10:24 -0500 Subject: How to monitor coldfusion through nagios In-Reply-To: References: Message-ID: I am using Nagios 3.0b1. My Nagios server is it's own box that I have other monitoring software on. I have 3 production coldfusion servers that I would like to monitor through my nagios server. _____ From: Valdinger, Stephen (DOV, MSX) [mailto:svalding at doverchem.com] Sent: Thursday, November 15, 2007 10:05 AM To: Jeff Perri; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] How to monitor coldfusion through nagios Why not use the check_procs that is available in the standard plugins? You can use the -p switch to supply the PID of the process you are wanting to monitor. I don't have coldfusion installed, but I think a ps -ef | grep coldfusion would help you find that number if you are unsure of it. What version on Nagios are usings? The plugins? Is this process on the same machine as the Nagios process, or is it on a remote machine? Please provide a little more information to the list so that we may better assist you. Stephen From: Jeff Perri [mailto:jeff.perri at shaw.ca] Sent: Thursday, November 15, 2007 9:57 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] How to monitor coldfusion through nagios Hi, I have been searching around looking for a plugin that allows me to monitor my coldfusion process on a Linux machine but I have yet to find one. Has anyone implemented this type of plugin yet or does anyone know how I would monitor this process via Nagios? Thanks Jeff Perri Network Administrator Ontario WorkInfoNet Sault Ste. Marie, Ontario netadmin at onwin.ca -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Thu Nov 15 16:15:09 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Thu, 15 Nov 2007 15:15:09 +0000 Subject: How to monitor coldfusion through nagios In-Reply-To: References: Message-ID: <473C627D.70305@googlemail.com> Jeff Perri wrote: > > I am using Nagios 3.0b1. My Nagios server is it?s own box that I have > other monitoring software on. I have 3 production coldfusion servers > that I would like to monitor through my nagios server. > Does look like many people know much about cold fusion, but then you are probably asking the wrong question. If you want to test a webapp, use the standard webapp testing methods, check_http, webinject etc... If you want to test other processes or something that you would check on a local machine, then use remote execution (ie nrpe,nsca) + plugins like check_procs. -h Hari Sekhon ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Nov 15 16:30:39 2007 From: marc at ena.com (Marc Powell) Date: Thu, 15 Nov 2007 09:30:39 -0600 Subject: Notification Delay In-Reply-To: <473C60F9.1000403@googlemail.com> References: <473C60F9.1000403@googlemail.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Hari Sekhon > Sent: Thursday, November 15, 2007 9:09 AM > To: Chauncey, Jeffrey > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Notification Delay > > ah, need to correct myself, do not use check interval on hosts as this > means to regularly check host regardless. > > make max check attempts a larger number to give yourself more time for a > reboot so that it doesn't notify you unless the machine is really down > and staying down. The caveat being that nagios will be doing nothing else except obsessing over this host up to max_check_attempts to don't make it an unreasonable number. Host escalations might be an alternative as well. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Garry.Cook at arcadis-us.com Thu Nov 15 17:06:29 2007 From: Garry.Cook at arcadis-us.com (Cook, Garry) Date: Thu, 15 Nov 2007 09:06:29 -0700 Subject: Problems with check_rrd_bw.sh plugin In-Reply-To: References: Message-ID: <1689390EF608584D85BA56D958A5D1E44E9EE50197@CorpExMBS1.arcadis-us.com> I've used it. In fact, I wrote it. However, the version you pointed to is an old one. Israel Brewster did a lot of work on tuning this plugin and fixing some of my original mistakes. You should check Nagios Exchange for the latest version. Thanks, Garry From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of danilo.perdomo at inter.com.ve Sent: Thursday, November 15, 2007 7:01 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Problems with check_rrd_bw.sh plugin Hi all! I've been having problems with the Nagios plugin check_rrd_bw.sh. It checks the traffic of some of my links in a RRD format. The thing is that every now and then i get some results that are incorrect (-2147 Mbps) and affects the alert notifications in case some of the links are in a critical value. Has anyone used the plugin? any help? The output in Nagios: OK - Current BW in: -2147Mbps Here's the plugin: http://pastebin.com/m27ba16ad Thanks! Danilo Perdomo VP Operaciones T?cnicas Intercable Barquisimeto - MSO Ext.: 5393 Tlf.: 58-251-9355393 Cel.: 58-414-5750938 www.intercable.com.ve ________________________________ NOTICE: This e-mail and any files transmitted with it are the property of ARCADIS U.S., Inc. and its affiliates. All rights, including without limitation copyright, are reserved. The proprietary information contained in this e-mail message, and any files transmitted with it, is intended for the use of the recipient(s) named above. If the reader of this e-mail is not the intended recipient, you are hereby notified that you have received this e-mail in error and that any review, distribution or copying of this e-mail or any files transmitted with it is strictly prohibited. If you have received this e-mail in error, please notify the sender immediately and delete the original message and any files transmitted. The unauthorized use of this e-mail or any files transmitted with it is prohibited and disclaimed by ARCADIS U.S., Inc. and its affiliates. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rgil at liquidnet.com Thu Nov 15 17:21:24 2007 From: rgil at liquidnet.com (Robert Gil) Date: Thu, 15 Nov 2007 11:21:24 -0500 Subject: submit_check_result always critical In-Reply-To: <4AB4EC5F69C3774C875B1BD8CB658B1A02965940@ny0ech01.LNHOLDINGS.COM> References: <4AB4EC5F69C3774C875B1BD8CB658B1A02965793@ny0ech01.LNHOLDINGS.COM><473AF01A.4010505@aei.ca> <4AB4EC5F69C3774C875B1BD8CB658B1A02965940@ny0ech01.LNHOLDINGS.COM> Message-ID: <4AB4EC5F69C3774C875B1BD8CB658B1A029D6638@ny0ech01.LNHOLDINGS.COM> I still get the same results from the nagios checks. Is there some kind of debug mode that I can see the actual results from the nagios checks to see whether nagios is legitimately reporting those services as critical? Rob -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Robert Gil Sent: Wednesday, November 14, 2007 10:00 AM To: Thomas Guyot-Sionnest Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] submit_check_result always critical The setup is as follows: 1 nagios server in each datacenter would send passive check results to a central server in the NOC. Right now I am testing on two servers initially. Both servers are in the same datacenter. Both are running the same versions of nagios and plugins. Nagios01: Central Monitoring Server. Mainly just catching passive results, displaying the dashboard, and sending notifications. Nagios02: Distributed nagios server Configuration: Nagios02 has the check command defined as follows. define command{ command_name submit_check_result command_line /usr/local/nagios/libexec/eventhandlers/submit_check_result $HOSTNAME$ '$SERVICEDESC$' $SERVICESTATE$ '$SERVICEOUTPUT$' } In nagios.cfg obsess_over_services=1 ocsp_command=submit_check_result In the submit_check_result script, the print line is as follows. /usr/bin/printf "%s\t%s\t%s\t%s\n" "$1" "$2" "$return_code" "$4" | /usr/local/nagios/bin/send_nsca 10.0.254.248 -c /usr/local/nagios/etc/send_nsca.cfg In Nagios01 it is set up to accept passive checks. And they do come in, but are always critical and with the previous error of "No Output!" The checks from the distributed server (02) do work when they are run from the command line. Im not sure if im missing something or the implementation is being confused in some way. Thanks, Rob -----Original Message----- From: Thomas Guyot-Sionnest [mailto:dermoth at aei.ca] Sent: Wednesday, November 14, 2007 7:55 AM To: Robert Gil Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] submit_check_result always critical -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 13/11/07 10:26 PM, Robert Gil wrote: > Getting a similar error. Still critical every time. > > > Nov 13 22:16:53 SERVER nagios: EXTERNAL COMMAND: > PROCESS_SERVICE_CHECK_RESULT;rem5;NTP;2;(No output!) > Nov 13 22:17:02 SERVER nsca[10294]: Handling the connection... > Nov 13 22:17:03 SERVER nsca[10294]: SERVICE CHECK -> Host Name: 'rem5', > Service Description: 'Time', Return Code: '2', Output: '(No output!)' > Nov 13 22:17:03 SERVER nsca[10294]: End of connection... > Nov 13 22:17:03 SERVER nagios: EXTERNAL COMMAND: > PROCESS_SERVICE_CHECK_RESULT;rem5;Time;2;(No output!) > > > define command{ > command_name submit_check_result > command_line > /usr/local/nagios/libexec/eventhandlers/submit_check_result $HOSTNAME$ > '$SERVICEDESC$' $SERVICESTATE$ '$SERVICEOUTPUT$' > } I'm not sure if you got it right. As I understand it your nagios sends the current check result back to itself, so it's obvious the state never change. If you want to do active monitoring you should use an active check, and if you want to do passive monitoring the command should run on the remote host (ex. from crontab) and use send_nsca to report back to nagios (in that case you should have active checks disabled on the service, and eventually freshness checking) If you're trying to do something else then please explain. Thanks, Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHOvAa6dZ+Kt5BchYRAtPwAJ4s7/758uxUjEiYkjsSnRhF0rMgJQCfUqob 38LblcL52iOPeqrJtRRbhoE= =oCBq -----END PGP SIGNATURE----- ------------------------------------------------------------------------ - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rgil at liquidnet.com Thu Nov 15 17:45:49 2007 From: rgil at liquidnet.com (Robert Gil) Date: Thu, 15 Nov 2007 11:45:49 -0500 Subject: submit_check_result always critical In-Reply-To: References: Message-ID: <4AB4EC5F69C3774C875B1BD8CB658B1A029D667A@ny0ech01.LNHOLDINGS.COM> Yes, permissions are correct and nagios can execute the scripts. Results come back as OK. Rob -----Original Message----- From: Valdinger, Stephen (DOV, MSX) [mailto:svalding at doverchem.com] Sent: Thursday, November 15, 2007 11:36 AM To: Robert Gil; Thomas Guyot-Sionnest Cc: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] submit_check_result always critical You can set debugging options inside of Nagios.cfg. I think by default it spits everything it can at you though. I may have to reread that part of the documentation. Are you running the check in the command line on Nagios(02) as root or the Nagios user? Test the plugin in terminal as Nagios user and see if you get results. -----Original Message----- From: Robert Gil [mailto:rgil at liquidnet.com] Sent: Thursday, November 15, 2007 11:21 AM To: Robert Gil; Thomas Guyot-Sionnest Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] submit_check_result always critical I still get the same results from the nagios checks. Is there some kind of debug mode that I can see the actual results from the nagios checks to see whether nagios is legitimately reporting those services as critical? Rob -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Robert Gil Sent: Wednesday, November 14, 2007 10:00 AM To: Thomas Guyot-Sionnest Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] submit_check_result always critical The setup is as follows: 1 nagios server in each datacenter would send passive check results to a central server in the NOC. Right now I am testing on two servers initially. Both servers are in the same datacenter. Both are running the same versions of nagios and plugins. Nagios01: Central Monitoring Server. Mainly just catching passive results, displaying the dashboard, and sending notifications. Nagios02: Distributed nagios server Configuration: Nagios02 has the check command defined as follows. define command{ command_name submit_check_result command_line /usr/local/nagios/libexec/eventhandlers/submit_check_result $HOSTNAME$ '$SERVICEDESC$' $SERVICESTATE$ '$SERVICEOUTPUT$' } In nagios.cfg obsess_over_services=1 ocsp_command=submit_check_result In the submit_check_result script, the print line is as follows. /usr/bin/printf "%s\t%s\t%s\t%s\n" "$1" "$2" "$return_code" "$4" | /usr/local/nagios/bin/send_nsca 10.0.254.248 -c /usr/local/nagios/etc/send_nsca.cfg In Nagios01 it is set up to accept passive checks. And they do come in, but are always critical and with the previous error of "No Output!" The checks from the distributed server (02) do work when they are run from the command line. Im not sure if im missing something or the implementation is being confused in some way. Thanks, Rob -----Original Message----- From: Thomas Guyot-Sionnest [mailto:dermoth at aei.ca] Sent: Wednesday, November 14, 2007 7:55 AM To: Robert Gil Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] submit_check_result always critical -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 13/11/07 10:26 PM, Robert Gil wrote: > Getting a similar error. Still critical every time. > > > Nov 13 22:16:53 SERVER nagios: EXTERNAL COMMAND: > PROCESS_SERVICE_CHECK_RESULT;rem5;NTP;2;(No output!) > Nov 13 22:17:02 SERVER nsca[10294]: Handling the connection... > Nov 13 22:17:03 SERVER nsca[10294]: SERVICE CHECK -> Host Name: 'rem5', > Service Description: 'Time', Return Code: '2', Output: '(No output!)' > Nov 13 22:17:03 SERVER nsca[10294]: End of connection... > Nov 13 22:17:03 SERVER nagios: EXTERNAL COMMAND: > PROCESS_SERVICE_CHECK_RESULT;rem5;Time;2;(No output!) > > > define command{ > command_name submit_check_result > command_line > /usr/local/nagios/libexec/eventhandlers/submit_check_result $HOSTNAME$ > '$SERVICEDESC$' $SERVICESTATE$ '$SERVICEOUTPUT$' > } I'm not sure if you got it right. As I understand it your nagios sends the current check result back to itself, so it's obvious the state never change. If you want to do active monitoring you should use an active check, and if you want to do passive monitoring the command should run on the remote host (ex. from crontab) and use send_nsca to report back to nagios (in that case you should have active checks disabled on the service, and eventually freshness checking) If you're trying to do something else then please explain. Thanks, Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHOvAa6dZ+Kt5BchYRAtPwAJ4s7/758uxUjEiYkjsSnRhF0rMgJQCfUqob 38LblcL52iOPeqrJtRRbhoE= =oCBq -----END PGP SIGNATURE----- ------------------------------------------------------------------------ - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------ - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kzembowe at jhuccp.org Thu Nov 15 17:53:36 2007 From: kzembowe at jhuccp.org (Zembower, Kevin) Date: Thu, 15 Nov 2007 11:53:36 -0500 Subject: notification_interval seems to be ignored Message-ID: <2E8AE992B157C0409B18D0225D0B476306CD9166@XCH-VN01.sph.ad.jhsph.edu> I've written a custom plug-in to monitor the ambient temperature probe on my Dell PowerEdge server. It's a wrapper around the standard check_smtp plugin. It's been working correctly for months now. I pasted the code for this in at the end of this message. Yesterday at 2:00 the compressor failed in my server room and the temperature went up to 90F. My notification was correctly sent, and I was happy. However, I've received a notification every 5 minutes since then that the temperature is over 80. In the service definition, I have notification_intervals set to 0: # check that ambient temperature from Dell sensor is less than 80 and 90 degree F. # Notify the 'temp' group only. define service { hostgroup_name temp_sensor service_description Ambient Temperature check_command check_ambtempF!80!90 #For testing, set the temperature too low # check_command check_ambtempF!60!70 use generic-service notification_interval 0; set > 0 if you want to be renotified contact_groups temp } In generic-service.nagios2.cnf, the notification_interval is also set to 0. Furthermore, I don't have any escalations defined. And, I just discovered that even though I disabled notifications for this service using the nagios2 GUI, I'm still getting notified every five minutes. Can anyone suggest anything I can try to fix this behavior? Did I overlook something in how I wrote the plugin? My system is Nagios 2.6, as installed by the Debian 3.0 package system. Thanks for any advice or suggestions. -Kevin Kevin Zembower Internet Services Group manager Center for Communication Programs Bloomberg School of Public Health Johns Hopkins University 111 Market Place, Suite 310 Baltimore, Maryland 21202 410-659-6139 ======================================================== nagios at cn2://etc/nagios2/conf.d$ cat /usr/lib/nagios/plugins/check_ambtempF #! /usr/bin/perl -w # check_ambtempF is a perl wrapper around the Nagios check_snmp plugin # to check the ambient temperature sensor in Dell PowerEdge servers. # Written by Kevin Zembower, 13-Sep-2007 use strict; use Getopt::Std; my %opts; getopts('dhc:w:H:',\%opts); # Use this line below to dump the environment variables for debugging system "env|sort >/tmp/plugins_env.$$" if defined($opts{d}); my %NAGIOS_ENV = map { $_ => $ENV{$_} } grep /^NAGIOS_/, keys %ENV; if ( defined($opts{h}) ) { print </tmp/temperature.dmp") if defined($opts{d}); my $warn= $opts{w}; my $crit= $opts{c}; my $debug = $opts{d}; my $hostaddress; if (defined $opts{H}) { $hostaddress=$opts{H}; } elsif (defined($NAGIOS_ENV{NAGIOS_HOSTADDRESS})) { $hostaddress = $NAGIOS_ENV{NAGIOS_HOSTADDRESS}; } else { $hostaddress="127.0.0.1" }; print DMP "hostaddress is $hostaddress.\n" if defined($opts{d}); my $output = "Temperature "; $_ = `/usr/lib/nagios/plugins/check_snmp -H $hostaddress -o .1.3.6.1.4.1.674.10892.1.700.20.1.6.1.3`; print DMP $_ if defined($opts{d}); close(DMP) if defined($opts{d}); if ($? != 0) { #There was an error calling the check_snmp routine... $output .= "UNKNOWN: CCP server room temperature could not be determined with host $hostaddress. Probable communications or host failure.\n"; print $output; exit 3; } print "Error code: $?\n" if $debug; print $_ if $debug; (my $tempC) = /=(\d+)/; #All the digits after the equals sign are the temperature in tenths of a degree Celsius $tempC /= 10; #Divide the returned value by 10 print "${tempC}C\n" if $debug; my $tempF = (9/5*$tempC + 32); print "${tempF}F\n" if $debug; if ( defined $crit && $tempF >= $crit ) { $output .= "CRITICAL: CCP server room temperature of ${tempF}F exceeds critical temperature of $crit\n"; $output .= "Probable air conditioning failure.\n"; print $output; exit 2; } elsif ( defined $warn && $tempF >= $warn ) { $output .= "WARNING: CCP server room temperature of ${tempF}F exceeds warning temperature of $warn\n"; $output .= "Probable air conditioning failure.\n"; print $output; exit 1; } else { $output .= "OK: CCP server room temperature is ${tempF}F\n"; print $output; exit 0; } nagios at cn2://etc/nagios2/conf.d$ ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rgil at liquidnet.com Thu Nov 15 18:07:09 2007 From: rgil at liquidnet.com (Robert Gil) Date: Thu, 15 Nov 2007 12:07:09 -0500 Subject: submit_check_result always critical In-Reply-To: <4AB4EC5F69C3774C875B1BD8CB658B1A029D667A@ny0ech01.LNHOLDINGS.COM> References: <4AB4EC5F69C3774C875B1BD8CB658B1A029D667A@ny0ech01.LNHOLDINGS.COM> Message-ID: <4AB4EC5F69C3774C875B1BD8CB658B1A029D66AF@ny0ech01.LNHOLDINGS.COM> I enabled logging for the initial service state and it appears to show critical every time. So it doesn't look like an issue with nsca or any of the passive configuration. Currently freshness checking is not being used. Rob -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Robert Gil Sent: Thursday, November 15, 2007 11:46 AM To: Valdinger, Stephen (DOV, MSX); Thomas Guyot-Sionnest Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] submit_check_result always critical Yes, permissions are correct and nagios can execute the scripts. Results come back as OK. Rob -----Original Message----- From: Valdinger, Stephen (DOV, MSX) [mailto:svalding at doverchem.com] Sent: Thursday, November 15, 2007 11:36 AM To: Robert Gil; Thomas Guyot-Sionnest Cc: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] submit_check_result always critical You can set debugging options inside of Nagios.cfg. I think by default it spits everything it can at you though. I may have to reread that part of the documentation. Are you running the check in the command line on Nagios(02) as root or the Nagios user? Test the plugin in terminal as Nagios user and see if you get results. -----Original Message----- From: Robert Gil [mailto:rgil at liquidnet.com] Sent: Thursday, November 15, 2007 11:21 AM To: Robert Gil; Thomas Guyot-Sionnest Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] submit_check_result always critical I still get the same results from the nagios checks. Is there some kind of debug mode that I can see the actual results from the nagios checks to see whether nagios is legitimately reporting those services as critical? Rob -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Robert Gil Sent: Wednesday, November 14, 2007 10:00 AM To: Thomas Guyot-Sionnest Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] submit_check_result always critical The setup is as follows: 1 nagios server in each datacenter would send passive check results to a central server in the NOC. Right now I am testing on two servers initially. Both servers are in the same datacenter. Both are running the same versions of nagios and plugins. Nagios01: Central Monitoring Server. Mainly just catching passive results, displaying the dashboard, and sending notifications. Nagios02: Distributed nagios server Configuration: Nagios02 has the check command defined as follows. define command{ command_name submit_check_result command_line /usr/local/nagios/libexec/eventhandlers/submit_check_result $HOSTNAME$ '$SERVICEDESC$' $SERVICESTATE$ '$SERVICEOUTPUT$' } In nagios.cfg obsess_over_services=1 ocsp_command=submit_check_result In the submit_check_result script, the print line is as follows. /usr/bin/printf "%s\t%s\t%s\t%s\n" "$1" "$2" "$return_code" "$4" | /usr/local/nagios/bin/send_nsca 10.0.254.248 -c /usr/local/nagios/etc/send_nsca.cfg In Nagios01 it is set up to accept passive checks. And they do come in, but are always critical and with the previous error of "No Output!" The checks from the distributed server (02) do work when they are run from the command line. Im not sure if im missing something or the implementation is being confused in some way. Thanks, Rob -----Original Message----- From: Thomas Guyot-Sionnest [mailto:dermoth at aei.ca] Sent: Wednesday, November 14, 2007 7:55 AM To: Robert Gil Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] submit_check_result always critical -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 13/11/07 10:26 PM, Robert Gil wrote: > Getting a similar error. Still critical every time. > > > Nov 13 22:16:53 SERVER nagios: EXTERNAL COMMAND: > PROCESS_SERVICE_CHECK_RESULT;rem5;NTP;2;(No output!) > Nov 13 22:17:02 SERVER nsca[10294]: Handling the connection... > Nov 13 22:17:03 SERVER nsca[10294]: SERVICE CHECK -> Host Name: 'rem5', > Service Description: 'Time', Return Code: '2', Output: '(No output!)' > Nov 13 22:17:03 SERVER nsca[10294]: End of connection... > Nov 13 22:17:03 SERVER nagios: EXTERNAL COMMAND: > PROCESS_SERVICE_CHECK_RESULT;rem5;Time;2;(No output!) > > > define command{ > command_name submit_check_result > command_line > /usr/local/nagios/libexec/eventhandlers/submit_check_result $HOSTNAME$ > '$SERVICEDESC$' $SERVICESTATE$ '$SERVICEOUTPUT$' > } I'm not sure if you got it right. As I understand it your nagios sends the current check result back to itself, so it's obvious the state never change. If you want to do active monitoring you should use an active check, and if you want to do passive monitoring the command should run on the remote host (ex. from crontab) and use send_nsca to report back to nagios (in that case you should have active checks disabled on the service, and eventually freshness checking) If you're trying to do something else then please explain. Thanks, Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHOvAa6dZ+Kt5BchYRAtPwAJ4s7/758uxUjEiYkjsSnRhF0rMgJQCfUqob 38LblcL52iOPeqrJtRRbhoE= =oCBq -----END PGP SIGNATURE----- ------------------------------------------------------------------------ - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------ - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------ - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Nov 15 18:31:59 2007 From: marc at ena.com (Marc Powell) Date: Thu, 15 Nov 2007 11:31:59 -0600 Subject: submit_check_result always critical In-Reply-To: <4AB4EC5F69C3774C875B1BD8CB658B1A029D6638@ny0ech01.LNHOLDINGS.COM> References: <4AB4EC5F69C3774C875B1BD8CB658B1A029D6638@ny0ech01.LNHOLDINGS.COM> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Robert Gil > Sent: Thursday, November 15, 2007 10:21 AM > To: Robert Gil; Thomas Guyot-Sionnest > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] submit_check_result always critical > > I still get the same results from the nagios checks. Is there some kind > of debug mode that I can see the actual results from the nagios checks > to see whether nagios is legitimately reporting those services as > critical? You need to be looking at your distributed nagios box when doing this but I'm quite certain it is based on what you've indicated so far. You should see that in the web interface on that box and in nagios.log. If you still want to go the debug route and you're using nagios-2, you'll need to recompile, passing debug options to ./configure. --enable-DEBUG0 shows function entry and exit --enable-DEBUG1 shows general info messages --enable-DEBUG2 shows warning messages --enable-DEBUG3 shows scheduled events (service and host checks... etc) --enable-DEBUG4 shows service and host notifications --enable-DEBUG5 shows SQL queries --enable-DEBUGALL shows all debugging messages With nagios-3, there are debug options in nagios.cfg. Instead of going this route, I'd make a simple change to the command definitions that are failing on your distributed nagios box, especially the one you previously sent that returns 'no output!'. At the end of the command line, add '2>&1' to capture STDERR from the plugin run. In the web interface/nagios log, you should then see why it's failing. For example (completely off the top of my head) -- define command { command_name check_ping command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 10,50% -c 20,100% 2>&1 # note, the above is all one line } Alternately, running the plugins on your distributed box, as the nagios user, exactly as they're defined in the command{} definition, using appropriate substitutions, should be informative as well... You haven't shown us any actual host/server/command definitions related to your core issue yet so we can't really be specifically helpful there. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Nov 15 18:33:56 2007 From: marc at ena.com (Marc Powell) Date: Thu, 15 Nov 2007 11:33:56 -0600 Subject: notification_interval seems to be ignored In-Reply-To: <2E8AE992B157C0409B18D0225D0B476306CD9166@XCH-VN01.sph.ad.jhsph.edu> References: <2E8AE992B157C0409B18D0225D0B476306CD9166@XCH-VN01.sph.ad.jhsph.edu> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Zembower, Kevin > Sent: Thursday, November 15, 2007 10:54 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] notification_interval seems to be ignored > Yesterday at 2:00 the compressor failed in my server room and the > temperature went up to 90F. My notification was correctly sent, and I > was happy. However, I've received a notification every 5 minutes since > then that the temperature is over 80. > And, I just discovered that even though I disabled notifications for > this service using the nagios2 GUI, I'm still getting notified every > five minutes. > > Can anyone suggest anything I can try to fix this behavior? Did I > overlook something in how I wrote the plugin? These symptoms are consistent with having multiple nagios daemons running at the same time. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stava at telcotec.se Thu Nov 15 18:40:02 2007 From: stava at telcotec.se (Lars Stavholm) Date: Thu, 15 Nov 2007 18:40:02 +0100 Subject: Contacting Ethen In-Reply-To: References: Message-ID: <473C8472.2020001@telcotec.se> svalding at kent.edu wrote: > I'd like to get ahold of Ethen about consulting Nagios installations. I > want to start doing installs of the Nagios system for businesses in my > area, as there is a lot of need for it. How would be the best way to get > in contact with him to discuss this? Was it too much trouble for you to check the website? . /L ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Nov 15 18:41:22 2007 From: marc at ena.com (Marc Powell) Date: Thu, 15 Nov 2007 11:41:22 -0600 Subject: submit_check_result always critical In-Reply-To: <4AB4EC5F69C3774C875B1BD8CB658B1A029D66AF@ny0ech01.LNHOLDINGS.COM> References: <4AB4EC5F69C3774C875B1BD8CB658B1A029D66AF@ny0ech01.LNHOLDINGS.COM> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Robert Gil > Sent: Thursday, November 15, 2007 11:07 AM > To: Robert Gil; Valdinger, Stephen (DOV, MSX); Thomas Guyot-Sionnest > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] submit_check_result always critical > > I enabled logging for the initial service state and it appears to show > critical every time. So it doesn't look like an issue with nsca or any > of the passive configuration. You were told that yesterday morning and given a direction to look. Re-quoting -- "You send -- > Nov 13 22:17:03 SERVER nsca[10294]: SERVICE CHECK -> Host Name: 'rem5', > Service Description: 'Time', Return Code: '2', Output: '(No output!)' Return Code: 2 == CRITICAL Output from the plugin == '(No output!)' In this case this means that the distributed nagios server didn't receive any output from the plugin it ran. Looks to me like the plugin being executed before it's results are sent via NSCA is failing." -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kzembowe at jhuccp.org Thu Nov 15 18:57:18 2007 From: kzembowe at jhuccp.org (Zembower, Kevin) Date: Thu, 15 Nov 2007 12:57:18 -0500 Subject: notification_interval seems to be ignored In-Reply-To: References: <2E8AE992B157C0409B18D0225D0B476306CD9166@XCH-VN01.sph.ad.jhsph.edu> Message-ID: <2E8AE992B157C0409B18D0225D0B476306CD9168@XCH-VN01.sph.ad.jhsph.edu> Hmmm, I don't think that's the case. Wouldn't this show it: nagios at cn2://etc/nagios2/conf.d$ ps aux |grep nagios nagios 30699 0.0 0.6 22096 3364 ? SNsl Sep19 6:53 /usr/sbin/nagios2 -d /etc/nagios2/nagios.cfg nagios 29497 0.0 0.1 2528 1016 pts/0 S 10:25 0:00 su -s /bin/bash - nagios nagios 29498 0.0 0.3 3268 1868 pts/0 S 10:25 0:00 -su nagios 3034 0.0 0.1 2216 884 pts/0 R+ 12:55 0:00 ps aux nagios 3035 0.0 0.1 1644 556 pts/0 S+ 12:55 0:00 grep nagios nagios at cn2://etc/nagios2/conf.d$ I think the only instance of Nagios is PID 30699. Thanks for your suggestion. -Kevin -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Marc Powell Sent: Thursday, November 15, 2007 12:34 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] notification_interval seems to be ignored > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Zembower, Kevin > Sent: Thursday, November 15, 2007 10:54 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] notification_interval seems to be ignored > Yesterday at 2:00 the compressor failed in my server room and the > temperature went up to 90F. My notification was correctly sent, and I > was happy. However, I've received a notification every 5 minutes since > then that the temperature is over 80. > And, I just discovered that even though I disabled notifications for > this service using the nagios2 GUI, I'm still getting notified every > five minutes. > > Can anyone suggest anything I can try to fix this behavior? Did I > overlook something in how I wrote the plugin? These symptoms are consistent with having multiple nagios daemons running at the same time. -- Marc ------------------------------------------------------------------------ - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rgil at liquidnet.com Thu Nov 15 19:46:56 2007 From: rgil at liquidnet.com (Robert Gil) Date: Thu, 15 Nov 2007 13:46:56 -0500 Subject: submit_check_result always critical In-Reply-To: References: <4AB4EC5F69C3774C875B1BD8CB658B1A029D6638@ny0ech01.LNHOLDINGS.COM> Message-ID: <4AB4EC5F69C3774C875B1BD8CB658B1A029D67B8@ny0ech01.LNHOLDINGS.COM> I seem to have resolved it now. It seems to have been a combination of issues. 1) I use the C based snmp checks, and the command.cfg file was pointing to the perl based check scripts 2) Net-SNMP was not installed on the distributed box Thanks for all the help guys Rob -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Marc Powell Sent: Thursday, November 15, 2007 12:32 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] submit_check_result always critical > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Robert Gil > Sent: Thursday, November 15, 2007 10:21 AM > To: Robert Gil; Thomas Guyot-Sionnest > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] submit_check_result always critical > > I still get the same results from the nagios checks. Is there some kind > of debug mode that I can see the actual results from the nagios checks > to see whether nagios is legitimately reporting those services as > critical? You need to be looking at your distributed nagios box when doing this but I'm quite certain it is based on what you've indicated so far. You should see that in the web interface on that box and in nagios.log. If you still want to go the debug route and you're using nagios-2, you'll need to recompile, passing debug options to ./configure. --enable-DEBUG0 shows function entry and exit --enable-DEBUG1 shows general info messages --enable-DEBUG2 shows warning messages --enable-DEBUG3 shows scheduled events (service and host checks... etc) --enable-DEBUG4 shows service and host notifications --enable-DEBUG5 shows SQL queries --enable-DEBUGALL shows all debugging messages With nagios-3, there are debug options in nagios.cfg. Instead of going this route, I'd make a simple change to the command definitions that are failing on your distributed nagios box, especially the one you previously sent that returns 'no output!'. At the end of the command line, add '2>&1' to capture STDERR from the plugin run. In the web interface/nagios log, you should then see why it's failing. For example (completely off the top of my head) -- define command { command_name check_ping command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 10,50% -c 20,100% 2>&1 # note, the above is all one line } Alternately, running the plugins on your distributed box, as the nagios user, exactly as they're defined in the command{} definition, using appropriate substitutions, should be informative as well... You haven't shown us any actual host/server/command definitions related to your core issue yet so we can't really be specifically helpful there. -- Marc ------------------------------------------------------------------------ - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Nov 15 20:05:12 2007 From: marc at ena.com (Marc Powell) Date: Thu, 15 Nov 2007 13:05:12 -0600 Subject: notification_interval seems to be ignored In-Reply-To: <2E8AE992B157C0409B18D0225D0B476306CD9168@XCH-VN01.sph.ad.jhsph.edu> References: <2E8AE992B157C0409B18D0225D0B476306CD9168@XCH-VN01.sph.ad.jhsph.edu> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Zembower, Kevin > Sent: Thursday, November 15, 2007 11:57 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] notification_interval seems to be ignored > > Hmmm, I don't think that's the case. Wouldn't this show it: > nagios at cn2://etc/nagios2/conf.d$ ps aux |grep nagios > nagios 30699 0.0 0.6 22096 3364 ? SNsl Sep19 6:53 > /usr/sbin/nagios2 -d /etc/nagios2/nagios.cfg > I think the only instance of Nagios is PID 30699. Looks correct. Was the notification_interval ever set to 5? is_volatile enabled? Could you have possibly changed those settings since September 19 and not restarted nagios? I'd restart or HUP the daemon anyway just to be safe. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From alexus at gmail.com Thu Nov 15 21:06:57 2007 From: alexus at gmail.com (alexus) Date: Thu, 15 Nov 2007 15:06:57 -0500 Subject: check_disk Message-ID: <6ae50c2d0711151206j529b47f8v997165d02ed997cc@mail.gmail.com> Hello, I'm having following issue, and i was wondering to get people's input/suggestions for that: i have a box, that has external storage connect through external SCSI/RAID card, and i'm using check_disk to monitor free space on it. external enclosure actually failed, not enclosure itself but power supply failed, and it became unavailable for my box, when i issued check_disk, check_disk didn't say anything as drives weren't available for check_disk to check. what from nagios i can use to monitor that external enclosure, that it is there... if i hardcode -p flag and point it to external enclosure, that would seems to do the trick, but then again, i'm hardcoding stuff, plus if we add/change anything there, i'm going need to make appropriate changes in nagios to reflect those changes, so i was hoping maybe there is some other, "better" way of doing that. thank you. -- http://alexus.org/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kzembowe at jhuccp.org Thu Nov 15 22:02:12 2007 From: kzembowe at jhuccp.org (Zembower, Kevin) Date: Thu, 15 Nov 2007 16:02:12 -0500 Subject: notification_interval seems to be ignored In-Reply-To: References: <2E8AE992B157C0409B18D0225D0B476306CD9168@XCH-VN01.sph.ad.jhsph.edu> Message-ID: <2E8AE992B157C0409B18D0225D0B476306CD916E@XCH-VN01.sph.ad.jhsph.edu> I don't think the notification_interval was ever set to 5. I tried to set it to 15, to test it, but it made no difference. After every change I did '/etc/init.d/nagios2 reload'. I also just now did '/etc/init.d/nagios2 restart', but this also didn't have any effect; I'm still getting the notifications every 5 minutes. The only mention of 'is_volatile' is in /etc/nagios2/conf.d/generic-services_nagios2.cfg, where it's set to 0. Thanks for your thoughts and suggestions. -Kevin -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Marc Powell Sent: Thursday, November 15, 2007 2:05 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] notification_interval seems to be ignored > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Zembower, Kevin > Sent: Thursday, November 15, 2007 11:57 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] notification_interval seems to be ignored > > Hmmm, I don't think that's the case. Wouldn't this show it: > nagios at cn2://etc/nagios2/conf.d$ ps aux |grep nagios > nagios 30699 0.0 0.6 22096 3364 ? SNsl Sep19 6:53 > /usr/sbin/nagios2 -d /etc/nagios2/nagios.cfg > I think the only instance of Nagios is PID 30699. Looks correct. Was the notification_interval ever set to 5? is_volatile enabled? Could you have possibly changed those settings since September 19 and not restarted nagios? I'd restart or HUP the daemon anyway just to be safe. -- Marc ------------------------------------------------------------------------ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From alexus at gmail.com Thu Nov 15 22:05:02 2007 From: alexus at gmail.com (alexus) Date: Thu, 15 Nov 2007 16:05:02 -0500 Subject: Fwd: check_disk In-Reply-To: <6ae50c2d0711151255w77ff9b4cnba5b195060808037@mail.gmail.com> References: <6ae50c2d0711151255w77ff9b4cnba5b195060808037@mail.gmail.com> Message-ID: <6ae50c2d0711151305w61c948bew41e6c9bf2bb43814@mail.gmail.com> sorry, i hit reply instead of reply all ---------- Forwarded message ---------- From: alexus Date: Nov 15, 2007 3:55 PM Subject: Re: [Nagios-users] check_disk To: "Valdinger, Stephen (DOV, MSX)" well, defining service as you defined for me, i have no problem doing that, but i was hoping maybe there is something else besides check_disk that can see if external storage is exists/attached to my box, and i really didnt want to hardcode devices and/or mount points as if something adds changes it wouldnt pick it up on the fly, while if you not using -p in check_disk plugin it would have pick up anything that is available, in my case its also a bad thing since if drive isn't available then check_disk wouldn't even see that either, it can only say if there is an issue with disk space and that is it. On Nov 15, 2007 3:39 PM, Valdinger, Stephen (DOV, MSX) wrote: > > > -----Original Message----- > From: alexus [mailto:alexus at gmail.com] > > Sent: Thursday, November 15, 2007 3:32 PM > To: Valdinger, Stephen (DOV, MSX) > Subject: Re: [Nagios-users] check_disk > > local (nagios) > nagios 2.9 > check_disk (nagios-plugins 1.4.5) 1.79 > Red Hat Enterprise Linux ES release 4 (Nahant Update 5) > > remote (ext) > check_disk (nagios-plugins 1.4.2) 1.57 > Red Hat Enterprise Linux ES release 3 (Taroon Update 9) > > fdisk -l (without) external enclosure attached: > [root at UFTWFSYSIMAGE root]# fdisk -l > > Disk /dev/cciss/c0d0: 146.8 GB, 146807930880 bytes > 255 heads, 32 sectors/track, 35139 cylinders > Units = cylinders of 8160 * 512 = 4177920 bytes > > Device Boot Start End Blocks Id System > /dev/cciss/c0d0p1 * 1 25 101984 83 Linux > /dev/cciss/c0d0p2 26 34638 141221040 83 Linux > /dev/cciss/c0d0p3 34639 35139 2044080 82 Linux swap > [root at UFTWFSYSIMAGE root]# > > > and this is with external enclosure attached: > > [root at UFTWFSYSIMAGE root]# fdisk -l > > Disk /dev/cciss/c1d0: 291.3 GB, 291334717440 bytes > 255 heads, 32 sectors/track, 69732 cylinders > Units = cylinders of 8160 * 512 = 4177920 bytes > > Disk /dev/cciss/c1d0 doesn't contain a valid partition table > > Disk /dev/cciss/c1d1: 587.2 GB, 587243773952 bytes > 255 heads, 63 sectors/track, 71394 cylinders > Units = cylinders of 16065 * 512 = 8225280 bytes > > Disk /dev/cciss/c1d1 doesn't contain a valid partition table > > Disk /dev/cciss/c0d0: 146.8 GB, 146807930880 bytes > 255 heads, 32 sectors/track, 35139 cylinders > Units = cylinders of 8160 * 512 = 4177920 bytes > > Device Boot Start End Blocks Id System > /dev/cciss/c0d0p1 * 1 25 101984 83 Linux > /dev/cciss/c0d0p2 26 34638 141221040 83 Linux > /dev/cciss/c0d0p3 34639 35139 2044080 82 Linux swap > [root at UFTWFSYSIMAGE root]# > ##################################################### > > > > Disk /dev/cciss/c1d1: 587.2 GB, 587243773952 bytes > 255 heads, 63 sectors/track, 71394 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes > > Disk /dev/cciss/c1d1 doesn't contain a valid partition table > > I'm going to wager a guess that this is the external scsi drive. > > As such, here is a basic command definition for check_disk > > define service{ > host_name linuxhost > command_name check_disk!/dev/cciss/c1d1!75!90 > service_description External SCSI Disk > } > > This is just a very basic service definition that supplies the location of the disk to $ARG1$, warning criteria to $ARG2$, and critical criteria to $ARG3$. This is not all conclusive, as I have no idea what you have defined in your service template. > > Stephen Valdinger > > > > -- http://alexus.org/ -- http://alexus.org/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From brandon_vanderberg at yahoo.com Thu Nov 15 23:08:51 2007 From: brandon_vanderberg at yahoo.com (Brandon Vanderberg) Date: Thu, 15 Nov 2007 14:08:51 -0800 (PST) Subject: NCSA Service check question Message-ID: <50897.46178.qm@web36308.mail.mud.yahoo.com> Hi all, quick question here that I hope is appropriate for this list. I'm querying a Windows box w/ NSClient for services using check_nt -v SERVICESTATE -l (list of services). One of the services I'm checking has a dollar sign ($) in its name. This causes the check to barf. A standard check runs fine when surrouded by ' : /usr/lib/nagios/plugins/check_nt -H host.blah.blah -v SERVICESTATE -l 'MSSQL$VITALSQLEXPRESS' All services are running But using the same in my services.cfg with either ' ` or " doesn't have the desired effect. Here's my checkcommand.cfg entry if it's helpful. define command{ command_name check_nt_service command_line $USER1$/check_nt -H $HOSTADDRESS$ -v SERVICESTATE -l $ARG1$ -d SHOWALL Any ideas? Renaming the service really isn't an option and though I can monitor the process, I'd really rather not. Regards and thanks in advance, B Vanderberg -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Roger at NagiosWiki.com Thu Nov 15 23:27:12 2007 From: Roger at NagiosWiki.com (Roger) Date: Thu, 15 Nov 2007 14:27:12 -0800 Subject: resources on large scale Nagios implementations? Message-ID: <2b7af7c40711151427u5b25274bid07ec95363f60dd5@mail.gmail.com> I am looking for resources that help in planning large scale Nagios deployment strategies (e.g. 1000+ checks). Specifically, strategies that help lower the resources (overhead on client and monitoring server, bandwidth, etc) necessary to perform such checks. I'm also hoping to get some sample scripts people have used to script out the service checks based on databases of hosts. Any advice or resources would be greatly appreciated! ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From smcavoy at ca.afilias.info Thu Nov 15 23:29:08 2007 From: smcavoy at ca.afilias.info (Sean McAvoy) Date: Thu, 15 Nov 2007 17:29:08 -0500 Subject: Hard State changes and notifications Message-ID: <5E05E63E-3C0B-4A6E-A6BE-E7BF2ECB6A8D@ca.afilias.info> Hello, If a services is in an OK state then changes to Hard Warning state, is acknowledged and then enters a hard Critical state should a notice be sent assuming it passes all the filters (I am assuming that it be acknowledged is not a filter that would stop a notification)? Thanks. _sean ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From amontibello at gmail.com Fri Nov 16 01:12:25 2007 From: amontibello at gmail.com (Anthony Montibello) Date: Thu, 15 Nov 2007 19:12:25 -0500 Subject: NCSA Service check question In-Reply-To: <50897.46178.qm@web36308.mail.mud.yahoo.com> References: <50897.46178.qm@web36308.mail.mud.yahoo.com> Message-ID: its been a while since I looked at that issue, But I thought $$ works? (my test sever is down so I cannot test) Sometimes having the command definition like such helps: command_line $USER1$/check_nt -H $HOSTADDRESS$ -v SERVICESTATE -l '$ARG1$' -d SHOWALL then you do not need to worry about loosing the ' between the command and the definition, but my test server is down so I cannot test these options. Tony (Author of NC_Net) On Nov 15, 2007 5:08 PM, Brandon Vanderberg wrote: > Hi all, quick question here that I hope is appropriate for this list. > > I'm querying a Windows box w/ NSClient for services using check_nt -v > SERVICESTATE -l (list of services). > One of the services I'm checking has a dollar sign ($) in its name. This > causes the check to barf. > > A standard check runs fine when surrouded by ' : > /usr/lib/nagios/plugins/check_nt -H host.blah.blah -v SERVICESTATE -l > 'MSSQL$VITALSQLEXPRESS' > All services are running > > But using the same in my services.cfg with either ' ` or " doesn't have > the desired effect. > > Here's my checkcommand.cfg entry if it's helpful. > > define command{ > command_name check_nt_service > command_line $USER1$/check_nt -H $HOSTADDRESS$ -v SERVICESTATE > -l $ARG1$ -d SHOWALL > Any ideas? Renaming the service really isn't an option and though I can > monitor the process, I'd really rather not. > > Regards and thanks in advance, > > B Vanderberg > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From brandon_vanderberg at yahoo.com Fri Nov 16 01:34:30 2007 From: brandon_vanderberg at yahoo.com (Brandon Vanderberg) Date: Thu, 15 Nov 2007 16:34:30 -0800 (PST) Subject: NCSA Service check question Message-ID: <835630.8429.qm@web36315.mail.mud.yahoo.com> That looks good. I'll test it tomorrow. Thanks! ----- Original Message ---- From: Anthony Montibello To: Brandon Vanderberg Cc: nagios-users at lists.sourceforge.net Sent: Thursday, November 15, 2007 4:12:25 PM Subject: Re: [Nagios-users] NCSA Service check question its been a while since I looked at that issue, But I thought $$ works? (my test sever is down so I cannot test) Sometimes having the command definition like such helps: command_line $USER1$/check_nt -H $HOSTADDRESS$ -v SERVICESTATE -l '$ARG1$' -d SHOWALL then you do not need to worry about loosing the ' between the command and the definition, but my test server is down so I cannot test these options. Tony (Author of NC_Net) On Nov 15, 2007 5:08 PM, Brandon Vanderberg wrote: Hi all, quick question here that I hope is appropriate for this list. I'm querying a Windows box w/ NSClient for services using check_nt -v SERVICESTATE -l (list of services). One of the services I'm checking has a dollar sign ($) in its name. This causes the check to barf. A standard check runs fine when surrouded by ' : /usr/lib/nagios/plugins/check_nt -H host.blah.blah -v SERVICESTATE -l 'MSSQL$VITALSQLEXPRESS' All services are running But using the same in my services.cfg with either ' ` or " doesn't have the desired effect. Here's my checkcommand.cfg entry if it's helpful. define command{ command_name check_nt_service command_line $USER1$/check_nt -H $HOSTADDRESS$ -v SERVICESTATE -l $ARG1$ -d SHOWALL Any ideas? Renaming the service really isn't an option and though I can monitor the process, I'd really rather not. Regards and thanks in advance, B Vanderberg ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kl at vsen.dk Fri Nov 16 09:50:55 2007 From: kl at vsen.dk (Klavs Klavsen) Date: Fri, 16 Nov 2007 09:50:55 +0100 (CET) Subject: nagios looses state on restart Message-ID: <1990.62.242.232.132.1195203055.squirrel@www.enableit.dk> Hi, I've been using Nagios for a long time, and we have approx. a 1000 checks. I've just moved the installation to a new machine, and now when I restart nagios (on FreeBSD 6.2) it looses state - all checks go to grey "service not checked yet.." It didn't use to do that - and all problems that are acknowledged etc. has to be acknowledged again :( I'm thinking something about file permissions or something.. Any hints as to what the problem could be would be very much appreciated. -- Regards, Klavs Klavsen, GSEC - kl at vsen.dk - http://www.vsen.dk PGP: 7E063C62/2873 188C 968E 600D D8F8 B8DA 3D3A 0B79 7E06 3C62 "Those who do not understand Unix are condemned to reinvent it, poorly." --Henry Spencer ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Nov 16 11:16:35 2007 From: marc at ena.com (Marc Powell) Date: Fri, 16 Nov 2007 04:16:35 -0600 Subject: nagios looses state on restart References: <1990.62.242.232.132.1195203055.squirrel@www.enableit.dk> Message-ID: -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net on behalf of Klavs Klavsen Sent: Fri 11/16/2007 2:50 AM To: Nagios-users at lists.sourceforge.net Subject: [Nagios-users] nagios looses state on restart Hi, I've been using Nagios for a long time, and we have approx. a 1000 checks. I've just moved the installation to a new machine, and now when I restart nagios (on FreeBSD 6.2) it looses state - all checks go to grey "service not checked yet.." Make sure retention is enabled in nagios.cfg and in your host/service templates/definitions. Make sure that the user nagios runs as has write permissions to the directory/retention files specified in nagios.cfg. Look for errors in nagios.log. -- Marc -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kl at vsen.dk Fri Nov 16 11:41:37 2007 From: kl at vsen.dk (Klavs Klavsen) Date: Fri, 16 Nov 2007 11:41:37 +0100 (CET) Subject: SOLVED: nagios looses state on restart In-Reply-To: References: <1990.62.242.232.132.1195203055.squirrel@www.enableit.dk> Message-ID: <2889.62.242.232.132.1195209697.squirrel@www.enableit.dk> Hi Marc, THANK YOU VERY MUCH :) creating /var/nagios and chowning it to the nagios user worked - I had missed that directory when moving the installation :( On Fri, November 16, 2007 11:16, Marc Powell said: > > > > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net on behalf of Klavs > Klavsen > Sent: Fri 11/16/2007 2:50 AM > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] nagios looses state on restart > > Hi, > > I've been using Nagios for a long time, and we have approx. a 1000 checks. > > I've just moved the installation to a new machine, and now when I restart > nagios (on FreeBSD 6.2) it looses state - all checks go to grey "service > not checked yet.." > > > > Make sure retention is enabled in nagios.cfg and in your host/service > templates/definitions. Make sure that the user nagios runs as has write > permissions to the directory/retention files specified in nagios.cfg. Look > for errors in nagios.log. > > -- > Marc > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Regards, Klavs Klavsen, GSEC, klavs at EnableIT.dk http://www.EnableIT.dk Open Source Server, Security and Network Consulting PGP: 7E063C62/2873 188C 968E 600D D8F8 B8DA 3D3A 0B79 7E06 3C62 "Open Source Software - Sometimes you get more than you paid for." ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Fri Nov 16 13:34:07 2007 From: Sebastian.Ries at dtnet.de (Sebastian Ries) Date: Fri, 16 Nov 2007 13:34:07 +0100 Subject: nagios looses state on restart In-Reply-To: References: <1990.62.242.232.132.1195203055.squirrel@www.enableit.dk> Message-ID: <1195216447.4087.59.camel@bofh.dtnet.de> Hi I have an additional Question: Is this also possible on a master server that has several slaves in a distributed environement? I tryed it with the result of thousands of notifications sent... Regards Sebastian Ries > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net on behalf of Klavs > Klavsen > Sent: Fri 11/16/2007 2:50 AM > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] nagios looses state on restart > > Hi, > > I've been using Nagios for a long time, and we have approx. a 1000 > checks. > > I've just moved the installation to a new machine, and now when I > restart > nagios (on FreeBSD 6.2) it looses state - all checks go to grey > "service > not checked yet.." -- ------------------------------------------------------------ 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 kent.edu Fri Nov 16 13:36:45 2007 From: svalding at kent.edu (svalding at kent.edu) Date: Fri, 16 Nov 2007 07:36:45 -0500 Subject: 3-d map templates Message-ID: Hi, Does anyone have some 3-d status map templates that they could email me, or an scale that I should work off of to set up the status map coordinates? Such as 1 inch = xx pixels or something along those lines. Thanks Stephen -------------- next part -------------- A non-text attachment was scrubbed... Name: svalding.vcf Type: text/x-vcard Size: 131 bytes Desc: Card for URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From thurgroup at gmail.com Fri Nov 16 13:36:52 2007 From: thurgroup at gmail.com (Roger Dierauer) Date: Fri, 16 Nov 2007 13:36:52 +0100 Subject: Floating point exception Message-ID: Hello List-Users i have installed nrpe 2.10 Plugins on my RH EL 4.0 (2.6.9-55.0.9.ELsmp #1 SMP Tue Sep 25 02:17:24 EDT 2007 i686 athlon i386 GNU/Linux) box. so wen i will test the functionality of nrpe my result is allways: /usr/local/nagios/libexec/check_nrpe -H localhost Floating point exception on my remote host and on my monitoring host CHECK_NRPE: Error - Could not complete SSL handshake on 7 other identical maschines, nrpe runs perfectly have anybody an idea? kind regards an thank you for your constructive answers Roger -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Sebastian.Ries at dtnet.de Fri Nov 16 13:48:27 2007 From: Sebastian.Ries at dtnet.de (Sebastian Ries) Date: Fri, 16 Nov 2007 13:48:27 +0100 Subject: nagios looses state on restart In-Reply-To: References: Message-ID: <1195217307.4087.63.camel@bofh.dtnet.de> Hi > Oh, this could definitely be an issue in a setup like that. It could be > something entirely different though too, does your new box have SELinux > enabled? No we do not use SELLinux... And this is no new installation, it is the old server The only thing I changed was enabling retention... 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Fri Nov 16 14:04:01 2007 From: Sebastian.Ries at dtnet.de (Sebastian Ries) Date: Fri, 16 Nov 2007 14:04:01 +0100 Subject: nagios looses state on restart In-Reply-To: References: Message-ID: <1195218241.4087.67.camel@bofh.dtnet.de> Hi > Do you have retain_status_information set to 1 in service definitions? Yes, I have. and it works on the slave servers... but not on the master server 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kl at vsen.dk Fri Nov 16 14:35:19 2007 From: kl at vsen.dk (Klavs Klavsen) Date: Fri, 16 Nov 2007 14:35:19 +0100 (CET) Subject: nagios looses state on restart In-Reply-To: <1195216447.4087.59.camel@bofh.dtnet.de> References: <1990.62.242.232.132.1195203055.squirrel@www.enableit.dk> <1195216447.4087.59.camel@bofh.dtnet.de> Message-ID: <4420.62.242.232.132.1195220119.squirrel@www.enableit.dk> On Fri, November 16, 2007 13:34, Sebastian Ries said: > Hi > Hi Sebastian > I have an additional Question: > > Is this also possible on a master server that has several slaves in a > distributed environement? > Nope - not yet atleast. a master server has been enough so far :) And yes - the state problem made every reload produce a LOT of notifications :) [SNIP] -- Regards, Klavs Klavsen, GSEC, klavs at EnableIT.dk http://www.EnableIT.dk Open Source Server, Security and Network Consulting PGP: 7E063C62/2873 188C 968E 600D D8F8 B8DA 3D3A 0B79 7E06 3C62 "Open Source Software - Sometimes you get more than you paid for." ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ulf.Gunnarson at kau.se Fri Nov 16 14:49:53 2007 From: Ulf.Gunnarson at kau.se (Ulf Gunnarson) Date: Fri, 16 Nov 2007 14:49:53 +0100 Subject: Floating point exception In-Reply-To: References: Message-ID: <32283.9422071867$1195221105@news.gmane.org> I encountered the same problem on centos 5 machines, went back to 2.7.1 and no problem. /Ulf Subject: [Nagios-users] Floating point exception Hello List-Users i have installed nrpe 2.10 Plugins on my RH EL 4.0 (2.6.9-55.0.9.ELsmp #1 SMP Tue Sep 25 02:17:24 EDT 2007 i686 athlon i386 GNU/Linux) box. so wen i will test the functionality of nrpe my result is allways: /usr/local/nagios/libexec/check_nrpe -H localhost Floating point exception on my remote host and on my monitoring host CHECK_NRPE: Error - Could not complete SSL handshake on 7 other identical maschines, nrpe runs perfectly have anybody an idea? kind regards an thank you for your constructive answers Roger -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Fri Nov 16 16:29:30 2007 From: marc at ena.com (Marc Powell) Date: Fri, 16 Nov 2007 09:29:30 -0600 Subject: nagios looses state on restart In-Reply-To: <1195216447.4087.59.camel@bofh.dtnet.de> References: <1195216447.4087.59.camel@bofh.dtnet.de> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Sebastian Ries > Sent: Friday, November 16, 2007 6:34 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] nagios looses state on restart > > Hi > > I have an additional Question: > > Is this also possible on a master server that has several slaves in a > distributed environement? Yes, retention is working correctly on a master server in the same type of environment (nagios-2.5). All but 4 of the 3900+ service checks on my master are passive. I'm not aware that nagios makes a distinction between active/passive checks when it comes to retention. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Fri Nov 16 16:40:58 2007 From: marc at ena.com (Marc Powell) Date: Fri, 16 Nov 2007 09:40:58 -0600 Subject: Hard State changes and notifications In-Reply-To: <5E05E63E-3C0B-4A6E-A6BE-E7BF2ECB6A8D@ca.afilias.info> References: <5E05E63E-3C0B-4A6E-A6BE-E7BF2ECB6A8D@ca.afilias.info> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Sean McAvoy > Sent: Thursday, November 15, 2007 4:29 PM > To: Nagios Users Mailinglist > Subject: [Nagios-users] Hard State changes and notifications > > Hello, > If a services is in an OK state then changes to Hard Warning state, > is acknowledged and then enters a hard Critical state should a notice > be sent assuming it passes all the filters (I am assuming that it be > acknowledged is not a filter that would stop a notification)? I would assume the opposite. An acknowledgement means that someone is definitely aware of an issue with the host/service so no further notifications are necessary. The flow of check_service_notification_viability in base/notifications.c seems to concur -- /* has this problem already been acknowledged? */ if(svc->problem_has_been_acknowledged==TRUE){ #ifdef DEBUG4 printf("\tThis service problem has already been acknowledged, so we won't send a notification out!\n"); #endif return ERROR; } If I'm reading the code correctly, the check above is done for every HARD state change. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From douglas.woodgate at bpc.com Fri Nov 16 17:03:02 2007 From: douglas.woodgate at bpc.com (Doug Woodgate) Date: Fri, 16 Nov 2007 10:03:02 -0600 Subject: nagios 2.5, service notifications sent too often Message-ID: <1195228982.6730.20.camel@w-it-woodgdo1u.mybpc.net> I have an issue with nagios notifying me about service problems too often. It seems to be notifying me at the check interval and not the notification interval for all my services. Basically, I am getting emails every 20 minutes for the Disk_Space_C service below no matter what I have the notification interval set to. I haven't tried changing the check interval to seei f it will change the interval between notifications, but I may try that later. I might also try changing the parent service template "generic-service" as use_retained_scheduling_info=0 had no effect on restart. I don't know if it is my retention file or what... Nagios is reading the service as "no re-notification" when I look at the configuration in the web interface and I have no escalations setup yet, so I am at a loss. The service uses the it-generic template below which uses the generic-service template I have created. define service { name generic-service is_volatile 1 check_period 24x7 max_check_attempts 5 normal_check_interval 20 retry_check_interval 2 active_checks_enabled 1 passive_checks_enabled 1 parallelize_check 1 obsess_over_service 1 check_freshness 1 freshness_threshold 0 notifications_enabled 1 notification_interval 120 notification_period 24x7 notification_options c,w,r event_handler_enabled 1 flap_detection_enabled 1 low_flap_threshold 0 high_flap_threshold 0 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 contact_groups nagiosadmin register 0 } define service { name it-generic use generic-service notification_interval 0 notification_options c,w,r contact_groups Email_SomeGroup,nagiosadmin register 0 } define service { service_description Disk_Space_C use it-generic host_name myhost check_command chk_wmi_disk!C:!93,97 } Doug Woodgate Sr Technical Analyst Brown Printing Company -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From danilo.perdomo at inter.com.ve Fri Nov 16 17:08:52 2007 From: danilo.perdomo at inter.com.ve (Danilo Perdomo) Date: Fri, 16 Nov 2007 12:08:52 -0400 Subject: Problems with check_rrd_bw.sh plugin In-Reply-To: <1689390EF608584D85BA56D958A5D1E44E9EE50197@CorpExMBS1.arcadis-us.com> References: <1689390EF608584D85BA56D958A5D1E44E9EE50197@CorpExMBS1.arcadis-us.com> Message-ID: <473DC094.60008@inter.com.ve> Done!! I got the check_rrdtraf plugin to work!! I highly recommend it to those who use RRD. Thanks!! Danilo Perdomo Ingeniero de Operaciones NOC VP Operaciones T?cnicas Inter Barquisimeto - MSO Ext.: 5393 Tlf.: 58-251-3355393 58-251-9355393 Cel.: 58-414-5750938 www.inter.com.ve Cook, Garry escribi?: > > I've used it. In fact, I wrote it. However, the version you pointed to > is an old one. Israel Brewster did a lot of work on tuning this plugin > and fixing some of my original mistakes. You should check Nagios > Exchange for the latest version. > > > > Thanks, > Garry > > > > *From:* nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] *On Behalf Of > *danilo.perdomo at inter.com.ve > *Sent:* Thursday, November 15, 2007 7:01 AM > *To:* nagios-users at lists.sourceforge.net > *Subject:* [Nagios-users] Problems with check_rrd_bw.sh plugin > > > > > Hi all! > > I've been having problems with the Nagios plugin check_rrd_bw.sh. It > checks the traffic of some of my links in a > RRD format. The thing is that every now and then i get some results > that are incorrect (-2147 Mbps) and affects > the alert notifications in case some of the links are in a critical value. > Has anyone used the plugin? any help? > > The output in Nagios: > > OK - Current BW in: -2147Mbps > > Here's the plugin: http://pastebin.com/m27ba16ad > > Thanks! > > Danilo Perdomo > VP Operaciones T?cnicas > Intercable Barquisimeto - MSO > Ext.: 5393 > Tlf.: 58-251-9355393 > Cel.: 58-414-5750938 > www.intercable.com.ve > > > ------------------------------------------------------------------------ > NOTICE: This e-mail and any files transmitted with it are the property > of ARCADIS U.S., Inc. and its affiliates. All rights, including > without limitation copyright, are reserved. The proprietary > information contained in this e-mail message, and any files > transmitted with it, is intended for the use of the recipient(s) named > above. If the reader of this e-mail is not the intended recipient, you > are hereby notified that you have received this e-mail in error and > that any review, distribution or copying of this e-mail or any files > transmitted with it is strictly prohibited. If you have received this > e-mail in error, please notify the sender immediately and delete the > original message and any files transmitted. The unauthorized use of > this e-mail or any files transmitted with it is prohibited and > disclaimed by ARCADIS U.S., Inc. and its affiliates. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Fri Nov 16 17:17:38 2007 From: marc at ena.com (Marc Powell) Date: Fri, 16 Nov 2007 10:17:38 -0600 Subject: nagios 2.5, service notifications sent too often In-Reply-To: <1195228982.6730.20.camel@w-it-woodgdo1u.mybpc.net> References: <1195228982.6730.20.camel@w-it-woodgdo1u.mybpc.net> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Doug Woodgate > Sent: Friday, November 16, 2007 10:03 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] nagios 2.5, service notifications sent too often > Nagios is reading the service as "no re-notification" when I look at the > configuration in the web interface and I have no escalations setup yet, so > I am at a loss. The service uses the it-generic template below which uses > the generic-service template I have created. > > > define service { > name generic-service > is_volatile 1 ^^^^ Send a notification for every hard non-OK service check. http://nagios.sourceforge.net/docs/2_0/volatileservices.html -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From douglas.woodgate at bpc.com Fri Nov 16 17:26:02 2007 From: douglas.woodgate at bpc.com (Doug Woodgate) Date: Fri, 16 Nov 2007 10:26:02 -0600 Subject: nagios 2.5, service notifications sent too often In-Reply-To: References: Message-ID: <1195230362.6730.26.camel@w-it-woodgdo1u.mybpc.net> Doh! PEBKAC, RTFM, < insert stupid user acronym here > Thanks Marc for pointing out something I should have learned a few years ago when I started using Nagios at my last job. -Doug On Fri, 2007-11-16 at 10:17 -0600, Marc Powell wrote: > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > > bounces at lists.sourceforge.net] On Behalf Of Doug Woodgate > > Sent: Friday, November 16, 2007 10:03 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] nagios 2.5, service notifications sent too > often > > > > Nagios is reading the service as "no re-notification" when I look at > the > > configuration in the web interface and I have no escalations setup > yet, so > > I am at a loss. The service uses the it-generic template below which > uses > > the generic-service template I have created. > > > > > > define service { > > name generic-service > > is_volatile 1 > > ^^^^ Send a notification for every hard non-OK service check. > > http://nagios.sourceforge.net/docs/2_0/volatileservices.html > > -- > Marc > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From brandon_vanderberg at yahoo.com Fri Nov 16 17:27:58 2007 From: brandon_vanderberg at yahoo.com (Brandon Vanderberg) Date: Fri, 16 Nov 2007 08:27:58 -0800 (PST) Subject: NCSA Service check question Message-ID: <699803.43085.qm@web36308.mail.mud.yahoo.com> $$ didn't work for me, but changing the command worked like a charm. Thanks so much! Regards Brandon ----- Original Message ---- From: Brandon Vanderberg To: Anthony Montibello Cc: nagios-users at lists.sourceforge.net Sent: Thursday, November 15, 2007 4:34:30 PM Subject: Re: [Nagios-users] NCSA Service check question That looks good. I'll test it tomorrow. Thanks! ----- Original Message ---- From: Anthony Montibello To: Brandon Vanderberg Cc: nagios-users at lists.sourceforge.net Sent: Thursday, November 15, 2007 4:12:25 PM Subject: Re: [Nagios-users] NCSA Service check question its been a while since I looked at that issue, But I thought $$ works? (my test sever is down so I cannot test) Sometimes having the command definition like such helps: command_line $USER1$/check_nt -H $HOSTADDRESS$ -v SERVICESTATE -l '$ARG1$' -d SHOWALL then you do not need to worry about loosing the ' between the command and the definition, but my test server is down so I cannot test these options. Tony (Author of NC_Net) On Nov 15, 2007 5:08 PM, Brandon Vanderberg wrote: Hi all, quick question here that I hope is appropriate for this list. I'm querying a Windows box w/ NSClient for services using check_nt -v SERVICESTATE -l (list of services). One of the services I'm checking has a dollar sign ($) in its name. This causes the check to barf. A standard check runs fine when surrouded by ' : /usr/lib/nagios/plugins/check_nt -H host.blah.blah -v SERVICESTATE -l 'MSSQL$VITALSQLEXPRESS' All services are running But using the same in my services.cfg with either ' ` or " doesn't have the desired effect. Here's my checkcommand.cfg entry if it's helpful. define command{ command_name check_nt_service command_line $USER1$/check_nt -H $HOSTADDRESS$ -v SERVICESTATE -l $ARG1$ -d SHOWALL Any ideas? Renaming the service really isn't an option and though I can monitor the process, I'd really rather not. Regards and thanks in advance, B Vanderberg ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -----Inline Attachment Follows----- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tdbtdb+nagios at gmail.com Fri Nov 16 19:06:12 2007 From: tdbtdb+nagios at gmail.com (Dave) Date: Fri, 16 Nov 2007 08:06:12 -1000 Subject: putting limits on check_by_ssh Message-ID: <943be0b10711161006w24218dd6o6d0d1bd86838ffd7@mail.gmail.com> I've been RTFMing SSH. For background authentication like nagios uses, the book I'm reading recommends using the user's ssh config file to limit using passwordless keys to just do one task each. So if you want nagios to be able to do 3 kinds of checks without a password, you put 3 keys in nagios .ssh/authorized_keys file with command="" stuff for each. Then no matter what nagios thinks it is asking for (parameter of check_by_ssh) it gets whatever is configured for that key. I'm just wondering if anyone has taken this approach. It seems a bit complicated, spreading some of the nagios config info around to each monitored system, but it sort of appeals to me. Then you know that even if someone manages to get your key, all they can do is check_disk or something else boring. Am I missing something? In addition to limiting key authentication to doing specific tasks, I also put an '*' in the nagios user's password field in /etc/passwd, which prevents them from logging in by password. Thanks, Dave ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Nov 16 19:26:49 2007 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Fri, 16 Nov 2007 13:26:49 -0500 Subject: putting limits on check_by_ssh In-Reply-To: <943be0b10711161006w24218dd6o6d0d1bd86838ffd7@mail.gmail.com> References: <943be0b10711161006w24218dd6o6d0d1bd86838ffd7@mail.gmail.com> Message-ID: <473DE0E9.6080808@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 16/11/07 01:06 PM, Dave wrote: > I've been RTFMing SSH. For background authentication like nagios uses, > the book I'm reading recommends using the user's ssh config file to > limit using passwordless keys to just do one task each. So if you want > nagios to be able to do 3 kinds of checks without a password, you put > 3 keys in nagios .ssh/authorized_keys file with command="" stuff for > each. Then no matter what nagios thinks it is asking for (parameter of > check_by_ssh) it gets whatever is configured for that key. > > I'm just wondering if anyone has taken this approach. It seems a bit > complicated, spreading some of the nagios config info around to each > monitored system, but it sort of appeals to me. Then you know that > even if someone manages to get your key, all they can do is check_disk > or something else boring. This is indeed good practice. While I use command-restricted keys for all passwordless auth (usually cronjobs), this is the reason why I never looked into check_by_ssh and use NRPE instead. Having unrestricted passwordless auth from your monitoring system makes all your server fully and easily vulnerable if your monitoring server gets compromised. > Am I missing something? In addition to limiting key authentication to > doing specific tasks, I also put an '*' in the nagios user's password > field in /etc/passwd, which prevents them from logging in by password. > Thanks, > Dave Humm, isn't that a shadow-less way of locking a user? I'm not totally sure about your method, but I do it with "passwd -l username" to lock and "passwd -u username" to unlock a user. At least on my systems it adds/removes a "!" in the password field of /etc/shadow (passwd stays unchanged). You can also set the shell to /bin/false and set a non existent home directory (ex. "/nonexistent"). Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHPeDp6dZ+Kt5BchYRAo0hAJsEz141HKUFG60E7fqozMvP7Xg89ACg+VHY U+dRI7XTPq6HaCOJ7OysPmA= =Utoc -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From markwag at u.washington.edu Fri Nov 16 19:34:09 2007 From: markwag at u.washington.edu (Mark Wagner) Date: Fri, 16 Nov 2007 10:34:09 -0800 Subject: redundancy with NDOutils Message-ID: <20071116183409.GF19826@n-its-markwag.mcis.washington.edu> Currently, to implement redundant redundant "master" servers (i.e., those that accept passive checks and serve the web front-end) I have NCSA send to both masters. This works OK except there are certain pieces of information that don't get sent to both servers. For example, if somebody enters a log entry on the current master it doesn't show up on the standby master. If somebody acks a problem on the current master and then the standby master takes over the standby will send out notifications. There is no way (without NDO) to have the current master to automatically forward the ACK to the standby master. Perhaps NDO is the way to solve this? Would feeding the log from the current master to the standby master work? -- Mark Wagner System Administrator, UW Medicine IT Services 206-616-6119 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 duke.edu Fri Nov 16 19:51:37 2007 From: throck at duke.edu (Tom Throckmorton) Date: Fri, 16 Nov 2007 13:51:37 -0500 Subject: putting limits on check_by_ssh In-Reply-To: <943be0b10711161006w24218dd6o6d0d1bd86838ffd7@mail.gmail.com> References: <943be0b10711161006w24218dd6o6d0d1bd86838ffd7@mail.gmail.com> Message-ID: <473DE6B9.2050201@duke.edu> On 11/16/2007 01:06 PM, Dave wrote: > I've been RTFMing SSH. For background authentication like nagios uses, > the book I'm reading recommends using the user's ssh config file to > limit using passwordless keys to just do one task each. So if you want > nagios to be able to do 3 kinds of checks without a password, you put > 3 keys in nagios .ssh/authorized_keys file with command="" stuff for > each. Then no matter what nagios thinks it is asking for (parameter of > check_by_ssh) it gets whatever is configured for that key. > > I'm just wondering if anyone has taken this approach. It seems a bit > complicated, spreading some of the nagios config info around to each > monitored system, but it sort of appeals to me. Then you know that > even if someone manages to get your key, all they can do is check_disk > or something else boring. I do something similar, though also add a 'from' restriction, in the event the private key is compromised - here are a few examples: For remote nagios instance monitoring: > from="host-01.full.domain",command="/usr/lib/nagios/plugins/check_nagios -F /dev/shm/status.log -e 5 -C nagios" ssh-dss AAAA... > from="host-02.full.domain",command="/usr/lib/nagios/plugins/check_nagios -F /dev/shm/status.log -e 5 -C nagios" ssh-dss AAAA... *dons protective aluminum foil headgear* In the the keys on _some_ systems, I also add: > no-port-forwarding > no-X11-forwarding > no-agent-forwarding I usually only allow a single command per host - on hosts which I want to execute multiple commands, rather than having a keypair-per-command, I make the command a script which sanitizes the input and checks the command against a list of predetermined allowed commands. Probably not as safe as keypairs-per-command because it's not as explicit, but more flexible/manageable in certain situations. > Am I missing something? In addition to limiting key authentication to > doing specific tasks, I also put an '*' in the nagios user's password > field in /etc/passwd, which prevents them from logging in by password. For the nagios user (and other system-ish accounts), setting the shell to /sbin/nologin should do the trick. -tt -- Tom Throckmorton OIT - CSI Duke University ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Nov 16 21:19:51 2007 From: marc at ena.com (Marc Powell) Date: Fri, 16 Nov 2007 14:19:51 -0600 Subject: redundancy with NDOutils In-Reply-To: <20071116183409.GF19826@n-its-markwag.mcis.washington.edu> References: <20071116183409.GF19826@n-its-markwag.mcis.washington.edu> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Mark Wagner > Sent: Friday, November 16, 2007 12:34 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] redundancy with NDOutils > > There is no way (without NDO) to have the current master to automatically > forward > the ACK to the standby master. Perhaps NDO is the way to solve this? Would > feeding > the log from the current master to the standby master work? I can't offer specific alternatives but I can say that this last would not work. Nagios sets and keeps this acknowledgement state in memory only when it receives the external command (until it may get dumped to retention file if you have that enabled). Theoretically, you may be able to periodically stop your backup nagios, copy over the retention file and comments file, overwriting the ones it would already have, and restart nagios. Never tested it so YMMV. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tdbtdb+nagios at gmail.com Fri Nov 16 22:09:57 2007 From: tdbtdb+nagios at gmail.com (Dave) Date: Fri, 16 Nov 2007 11:09:57 -1000 Subject: putting limits on check_by_ssh In-Reply-To: <473DE0E9.6080808@aei.ca> References: <943be0b10711161006w24218dd6o6d0d1bd86838ffd7@mail.gmail.com> <473DE0E9.6080808@aei.ca> Message-ID: <943be0b10711161309r78a69889lef4cadda3a1bfab5@mail.gmail.com> Thanks to the two Toms for their helpful responses. On Nov 16, 2007 8:26 AM, Thomas Guyot-Sionnest wrote: > While I use command-restricted keys for > all passwordless auth (usually cronjobs), this is the reason why I never > looked into check_by_ssh and use NRPE instead. NRPE makes me a bit nervous because I suppose (without any data to back it up) that relatively few people use it (at least compared to ssh). What criteria did you use in making the evaluation of check_by_ssh vs. NRPE? SSH is tempting because I don't have to install and configure much new stuff or learn much new stuff, or at least what I learn has broad applications. And though the configuration may be a bit long-winded, it seems pretty clear. And I *think* I can nail it down pretty well, so that even if my private keys on the nagios server got compormised, nothing much bad could happen to the other hosts. > You can also set the shell to /bin/false and set a non > existent home directory (ex. "/nonexistent"). Doesn't the nagios user need a shell and a home dir to run the daemon? Maybe I was just thinking that it needed a home dir to put the ssh keys in, but they can be located anywhere. Slowly understanding blooms. On Nov 16, 2007 8:51 AM, Tom Throckmorton wrote: > I do something similar, though also add a 'from' restriction, in the > event the private key is compromised - here are a few examples: Thanks for examples and suggestions, they help. > > I usually only allow a single command per host - on hosts which I want > to execute multiple commands, rather than having a keypair-per-command, > I make the command a script which sanitizes the input and checks the > command against a list of predetermined allowed commands. Interesting. I hadn't gotten to the details of the forced commands part of the ssh book yet, so I didn't know about $SSH_ORIGINAL_COMMAND. Hmmm.... Flexible, complicated. A bit harder to be sure I haven't left any cracks. Stuff to think about. Dave Dave ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mark.potter at academy.com Fri Nov 16 22:23:43 2007 From: mark.potter at academy.com (mark.potter at academy.com) Date: Fri, 16 Nov 2007 15:23:43 -0600 Subject: Slow Nagios reloads with NDOUtils Message-ID: I really wish I could be more descriptive in the title but I am afraid it would make a very long title at best and be confusing at worst. For starters I am using the following: SLES 9.3 Nagios: 2.10 Nagios Plugins: 1.4.9 NDOUtils: 14b6 NagiosQL: 2.00 NagVis: 1.1 My first problem, and I am not sure it is actually a problem, is that when I do a reload of nagios (/etc/init.d/nagios reload) it takes, what seems to me to be, a long time. It is usually around 90-120 seconds for Nagios to start allowing use of the web interface once the reload is initiated. A check of the files reveals no errors (save one warning for a host with no services) and the nagios process shows in a ps awux list. However the web interface shows the "Whoops! Error: Could not read host and service status information!" during the 90-120 second delay I mentioned earlier. Here is a tail of the logfile for the shutdown and restart: Nov 16 15:16:19 ulapnag01 nagios: ndomod: Shutdown complete. Nov 16 15:16:19 ulapnag01 nagios: Event broker module '/usr/local/nagios/bin/ndomod.o' deinitialized successfully. Nov 16 15:16:19 ulapnag01 nagios: Nagios 2.10 starting... (PID=5582) Nov 16 15:16:19 ulapnag01 nagios: LOG VERSION: 2.0 Nov 16 15:16:19 ulapnag01 nagios: ndomod: NDOMOD 1.4b6 (09-27-2007) Copyright (c) 2005-2007 Ethan Galstad (nagios at nagios.org) Nov 16 15:16:19 ulapnag01 nagios: ndomod: Successfully connected to data sink. 0 queued items to flush. Nov 16 15:16:19 ulapnag01 nagios: Event broker module '/usr/local/nagios/bin/ndomod.o' initialized successfully. Nov 16 15:16:19 ulapnag01 ndo2db: Successfully connected to MySQL database Nov 16 15:16:19 ulapnag01 ndo2db: Successfully disconnected from MySQL database Nov 16 15:16:19 ulapnag01 nagios: Warning: Host 'qs105f7pm' has no services associated with it! We are monitoring: # Active Host / Service Checks:272 / 329 This doesn't seem like enough to bog down a Dell PowerEdge 1855 with 2GB RAM onboard. Any and all help would be appreciated. I have been banging my head against the wall on this one. I have tried searching cannot seem to find these symptoms anywhere. I am being pressured to put this system into production but would prefer to have it restart as quickly as the current production system (never have had any lag reloading) so that I don't have to schedule daily restarts to test changes as they are being requested fast and furious. I apologize if I have over explained. Thanks in advance for any help! Best Regards, Mark L. Potter Systems Engineer Academy Sports & Outdoors -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Jim.Melin at co.hennepin.mn.us Fri Nov 16 22:50:13 2007 From: Jim.Melin at co.hennepin.mn.us (Jim.Melin at co.hennepin.mn.us) Date: Fri, 16 Nov 2007 15:50:13 -0600 Subject: Having a remote server tell Nagios it is going into scheduled maintenance Message-ID: Greetings everyone. Is there a way for a server, let's say it's going into single user mode for a backup, to tell nagios that it's going into scheduled downtime and have nagios do the necessary bits? -J ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From admitriev at mentora.com Fri Nov 16 23:00:25 2007 From: admitriev at mentora.com (Andrey Dmitriev) Date: Fri, 16 Nov 2007 17:00:25 -0500 Subject: question about NDOUtils Message-ID: <"LC179D1656C974650A0FB9C190D99DF75.1195250408.mt-adm.mentora.biz*"@MHS> I understand you can do an initial load of config into the db. How does it 'trap' all changes to config? I would guess it can trap changes made though Nagios interface. What if such changes were made to the config file and nagios restarted? Thanks, Andrey ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Nov 16 23:08:38 2007 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Fri, 16 Nov 2007 23:08:38 +0100 Subject: Having a remote server tell Nagios it is going into scheduled maintenance In-Reply-To: References: Message-ID: <473E14E6.9060303@vanderkooij.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jim.Melin at co.hennepin.mn.us wrote: > Greetings everyone. > > Is there a way for a server, let's say it's going into single user mode for a backup, to tell nagios that it's going into scheduled downtime and have > nagios do the necessary bits? If it is scheduled you can adjust your time period for the host/service accordingly. 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) iD8DBQFHPhTkBvzDRVjxmYERAhZoAJ0QYCTXyM7aA6BwKhEflaDLKruAMgCfd73Q 7dBnZnb1QfPouIJZ+OJWDnw= =+urr -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dermoth at aei.ca Sat Nov 17 00:45:08 2007 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Fri, 16 Nov 2007 18:45:08 -0500 Subject: putting limits on check_by_ssh In-Reply-To: <943be0b10711161309r78a69889lef4cadda3a1bfab5@mail.gmail.com> References: <943be0b10711161006w24218dd6o6d0d1bd86838ffd7@mail.gmail.com> <473DE0E9.6080808@aei.ca> <943be0b10711161309r78a69889lef4cadda3a1bfab5@mail.gmail.com> Message-ID: <473E2B84.8000009@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 16/11/07 04:09 PM, Dave wrote: > Thanks to the two Toms for their helpful responses. > > On Nov 16, 2007 8:26 AM, Thomas Guyot-Sionnest wrote: >> While I use command-restricted keys for >> all passwordless auth (usually cronjobs), this is the reason why I never >> looked into check_by_ssh and use NRPE instead. > > NRPE makes me a bit nervous because I suppose (without any data to > back it up) that relatively few people use it (at least compared to While many people use ssh to run passwordless remote commands, I believe in the Nagios world there is more people using NRPE than check_by_ssh, though I may be wrong... NRPE should be quite secure if you don't enable argument passing and use a strong enough password. > ssh). What criteria did you use in making the evaluation of > check_by_ssh vs. NRPE? SSH is tempting because I don't have to install > and configure much new stuff or learn much new stuff, or at least what > I learn has broad applications. And though the configuration may be a > bit long-winded, it seems pretty clear. And I *think* I can nail it > down pretty well, so that even if my private keys on the nagios server > got compormised, nothing much bad could happen to the other hosts. Even with ssh you still have to distribute the check plugins and set up the remote keys. Also all your keys will have to be in the authorized_keys which can be harder to manage. With NRPE you can define a config directory where you can put various config files depending on the server role. For example I have one for all Linux server, then one for web servers, one for DB, etc. When I want to modify/add something for all server (or a group of servers) I just have to copy the appropriate configs and plugins and SIGHUP nrpe to get the new config active. >> You can also set the shell to /bin/false and set a non >> existent home directory (ex. "/nonexistent"). > > Doesn't the nagios user need a shell and a home dir to run the daemon? > Maybe I was just thinking that it needed a home dir to put the ssh > keys in, but they can be located anywhere. Slowly understanding > blooms. Well, check_by_ssh will need a homedir, unless you want to apply the keys system_wide (bad idea IMO), For the shell I'm not sure, it depends if ssh pass the command to a shell (which would allow pipes and stuff) of just run it directly. Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHPiuE6dZ+Kt5BchYRAr7bAJsEQvOJDMpMsEGRwhIfzFZ6e2IapACg+f7x ZQ5dqfG80VXsMAKKzy3NlOI= =SjQu -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrickm at garlic.com Sat Nov 17 01:02:22 2007 From: patrickm at garlic.com (Patrick M.) Date: Fri, 16 Nov 2007 16:02:22 -0800 Subject: Can Nagios implement with Expect to automate tasks when issues arise? In-Reply-To: <473B9426.1060408@chrisserafin.com> References: <473B2202.1080702@garlic.com> <473B9426.1060408@chrisserafin.com> Message-ID: <473E2F8E.7050306@garlic.com> This is just an update to my post, but I used a combination of Escalations and Expect to issue a reboot of the power strip's port to that machine when it goes down. There's a script that you can find normally if you install the dev packages of expect on your linux distro. It's in the examples directory of the dev after it's installed, it's called autoexpect. If you run that, you can have it watch what you do, and it will create a script based on what you do. That's the easiest way I found - and it works like a charm! Patrick ChrisSerafin wrote: > Ya I'm looking to do the same thing. I have Cisoc routers w/ VPNs that > go doen for one reason or another (bad EU circuits). I normally just > login and clear the cryptos or reload the device. I would like to > automate the process. but I'm in the stages of getting basic > monitoring and alerting up and running. Let me know what you find. > > Chris Serafin > Security Engineer > chris at chrisserafin@com > > > Patrick M. wrote: >> Hi all, >> >> I just learned what Expect was and wrote a few scripts to automate >> certain tasks around the office, and now I'm wondering if Expect can >> be used in conjunction with Nagios. Is this possible? >> Example: One of our servers go down at least twice a day, and we know >> it's problematic. We connect to the power strip and recycle the >> power on the port that machine is plugged in. I'd like to use Expect >> to automate this when Nagios notices it is down. >> >> Has anyone else implemented something similar to what I'm describing? >> >> Thanks in advance. >> >> >> >> ------------------------------------------------------------------------- >> >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a browser. >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. ::: Messages without supporting info will risk >> being sent to /dev/null >> >> > > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tdbtdb+nagios at gmail.com Sat Nov 17 02:41:55 2007 From: tdbtdb+nagios at gmail.com (Dave) Date: Fri, 16 Nov 2007 15:41:55 -1000 Subject: putting limits on check_by_ssh In-Reply-To: <473E2B84.8000009@aei.ca> References: <943be0b10711161006w24218dd6o6d0d1bd86838ffd7@mail.gmail.com> <473DE0E9.6080808@aei.ca> <943be0b10711161309r78a69889lef4cadda3a1bfab5@mail.gmail.com> <473E2B84.8000009@aei.ca> Message-ID: <943be0b10711161741r6862088btaf1e97061247e1fd@mail.gmail.com> My problems with NRPE are: 1) I know nothing about it. 2) I think it requires me to open up another port on my machine. My problems with SSH are: 1) configuration is a bit tedious My positives for SSH are: 1) It is very well known and respected 2) Lots of people use it for lots of things, not just nagios My positives for NRPE are; 1) ???? I was hoping you guys would tell me what helped you decide to go with NRPE. I just don't know much about it. Since I feel fairly confident that I could seal up an SSH configuration, but NRPE is an unknown factor for me, it is very tempting to stick with SSH. Thanks, Dave ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From benny at bennyvision.com Sat Nov 17 03:34:21 2007 From: benny at bennyvision.com (C. Bensend) Date: Fri, 16 Nov 2007 20:34:21 -0600 (CST) Subject: putting limits on check_by_ssh In-Reply-To: <943be0b10711161741r6862088btaf1e97061247e1fd@mail.gmail.com> References: <943be0b10711161006w24218dd6o6d0d1bd86838ffd7@mail.gmail.com> <473DE0E9.6080808@aei.ca> <943be0b10711161309r78a69889lef4cadda3a1bfab5@mail.gmail.com> <473E2B84.8000009@aei.ca> <943be0b10711161741r6862088btaf1e97061247e1fd@mail.gmail.com> Message-ID: <61586.63.227.74.41.1195266861.squirrel@webmail.stinkweasel.net> > My positives for NRPE are; > 1) ???? I have begun using NRPE where I can because it's much faster than check_by_ssh/SSH, and I was having issues with some hosts simply timing out upon SSH connection setup. check_by_ssh/SSH is much more resource intensive. Benny -- "If it's true that our species is alone in the universe, then I'd have to say that the universe aimed rather low and settled for very little." -- George Carlin ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sat Nov 17 05:03:06 2007 From: patrick.morris at hp.com (Patrick Morris) Date: Fri, 16 Nov 2007 20:03:06 -0800 Subject: putting limits on check_by_ssh In-Reply-To: <943be0b10711161741r6862088btaf1e97061247e1fd@mail.gmail.com> References: <943be0b10711161006w24218dd6o6d0d1bd86838ffd7@mail.gmail.com> <473DE0E9.6080808@aei.ca> <943be0b10711161309r78a69889lef4cadda3a1bfab5@mail.gmail.com> <473E2B84.8000009@aei.ca> <943be0b10711161741r6862088btaf1e97061247e1fd@mail.gmail.com> Message-ID: <20071117040306.GU18464@pmorris.usa.hp.com> In my case, check_by_ssh was just not suitable due to overhead, execution time, etc... NRPE is much more lightweight, easily deployable, and it works. I can't say I'd agree with your pros and cons much -- after all, SSH is much easier to configure than NRPE is. But when you're looking at thousands of checks across thousands of hosts, processor overhead really does become a factor, especially on the Nagios box(es). On Sat, 17 Nov 2007, Dave wrote: > My problems with NRPE are: > > 1) I know nothing about it. > 2) I think it requires me to open up another port on my machine. > > My problems with SSH are: > 1) configuration is a bit tedious > > My positives for SSH are: > 1) It is very well known and respected > 2) Lots of people use it for lots of things, not just nagios > > My positives for NRPE are; > 1) ???? > > I was hoping you guys would tell me what helped you decide to go with > NRPE. I just don't know much about it. Since I feel fairly confident > that I could seal up an SSH configuration, but NRPE is an unknown > factor for me, it is very tempting to stick with SSH. > Thanks, > Dave ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sunny at tetrain.com Sat Nov 17 06:43:50 2007 From: sunny at tetrain.com (Sunny Bhatheja) Date: Sat, 17 Nov 2007 11:13:50 +0530 Subject: oracle tablespace Message-ID: <473E7F96.2090506@tetrain.com> Hello i m monitoring oracle 8i server with 10 g client , ths tns ping and login is okey but when i try to monitor tablespace thn it gve error *CRITICAL - ORA-00933: SQL command not properly ended* ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ton.voon at altinity.com Sat Nov 17 09:51:33 2007 From: ton.voon at altinity.com (Ton Voon) Date: Sat, 17 Nov 2007 08:51:33 +0000 Subject: Slow Nagios reloads with NDOUtils In-Reply-To: References: Message-ID: On 16 Nov 2007, at 21:23, mark.potter at academy.com wrote: > My first problem, and I am not sure it is actually a problem, is > that when I do a reload of nagios (/etc/init.d/nagios reload) it > takes, what seems to me to be, a long time. It is usually around > 90-120 seconds for Nagios to start allowing use of the web > interface once the reload is initiated. A check of the files > reveals no errors (save one warning for a host with no services) > and the nagios process shows in a ps awux list. However the web > interface shows the "Whoops! Error: Could not read host and service > status information!" during the 90-120 second delay I mentioned > earlier. > Hi Mark, There seem to be quite a few emails in this list about NDOUtils being a bit slow. We saw this about 6 months ago and have been optimising the hell out of it, but it boils down to this: - NDO updates are synchronously applied to the database This means that Nagios has to wait for the DB to finish the update before it continues. I believe Ethan is doing something at NDO after Nagios 3 is released. We've done various tricks to try and reduce the time for a reload, which we will blog about on http://altinity.org soon, but I just haven't found the time to do it. The first couple of things that come to mind are: - indexes should be re-arranged so that the time column is first. Currently, a lot of indexes have instance_id first. However, when you are doing a delete based on time, the index is effectively useless, so mysql has to do a complete table scan to work out which rows need to be deleted. This will cause mysql to take a lot of time. This is the single biggest thing that you can do - reduce the amount of times ndo2db calls the housekeeping routine. By default, it is every 60 seconds. We've reduced down to 600 seconds. It could probably be even less frequent. One thing I've just thought is to have ndo2db NOT do any housekeeping and do it yourself (mysql is multi-user after all) - reduce the amount of data sent. We stop the broker module sending systemcommands, log entries and passive commands - we've also patched Nagios to not send status data on a reload. By default, Nagios will send data to ndo about the status of all hosts/ services on a reload. This is not required because the db already knows what the status of the things were before the reload! - we're currently testing a de-coupling of NDOMOD from ndo2db. The idea is that NDOMOD writes files and then a separate daemon loads those files into ndo2db. This effectively means that NDO updates are now asynchronous, though there is now a delay in the updates We've also made a patch to Nagios 2.9 (which Ethan has applied to Nagios 3), where the status file is kept between reloads, so you don't get the dreaded "Could not read host and service status information" error. That is available at http://altinity.blogs.com/ dotorg/2007/09/nagios-patch-da.html. We love NDOutils - a lot of our features in Opsview depends on it, including our favourite, Hostgroup Hierarchy (http://opsview.org/ hostgrouphierarchy). So we're interested in making NDOutils work as fast as possible too. Ton http://www.altinity.com T: +44 (0)870 787 9243 F: +44 (0)845 280 1725 Skype: tonvoon ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Sat Nov 17 17:20:47 2007 From: marc at ena.com (Marc Powell) Date: Sat, 17 Nov 2007 10:20:47 -0600 Subject: Having a remote server tell Nagios it is going intoscheduled maintenance In-Reply-To: References: Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Jim.Melin at co.hennepin.mn.us > Sent: Friday, November 16, 2007 3:50 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Having a remote server tell Nagios it is going > intoscheduled maintenance > > > Greetings everyone. > > Is there a way for a server, let's say it's going into single user mode > for a backup, to tell nagios that it's going into scheduled downtime and > have > nagios do the necessary bits? Possible: yes, easy to do: perhaps not. Essentially, you want your remote server to be able to issue an external command to nagios notifying it of the downtime. I'm sure there are many ways that you can initiate a communication between the two machine but there are three ways that I can think to do that fairly easily -- 1) use wget, LWP POST or other command line web tool to craft a properly formatted post to pass the information below to http://www.yournagios.com/nagios/cgi/cmd.cgi as a shutdown script -- cmd_type - 55 cmd_mod - 2 host - com_author - com_data - trigger - (0|1) start_time - end_time - fixed - (0|1) hours - minutes - childoptions - I obtained the above parameters by viewing the scheduled downtime gui page with firefox, then right click, view page info, forms tab. 2) use passwordless ssh from your remote box to run a script on your nagios box that submits the SCHEDULE_HOST_DOWNTIME external command directly to the external command file http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?com mand_id=118 3) create your own cgi that does the above that you call instead of cmd.cgi. - Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From azoecalvo at yahoo.com.ar Sat Nov 17 21:36:47 2007 From: azoecalvo at yahoo.com.ar (Alicia Calvo) Date: Sat, 17 Nov 2007 17:36:47 -0300 (ART) Subject: (no subject) Message-ID: <698075.29568.qm@web33014.mail.mud.yahoo.com> Hi, I need monitor a server exchange, how is the better way to this, what is the better plugin?, and how can i made a pop-up because when the bases fall dawn i can't send an alert menssage. thanks AC. --------------------------------- Compart? video en la ventana de tus mensajes y tambi?n tus fotos de Flickr. Us?el Nuevo Yahoo! Messenger versi?n Beta. Visit? http://ar.beta.messenger.yahoo.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From franjo85 at gmail.com Sun Nov 18 16:26:42 2007 From: franjo85 at gmail.com (Franjo Stipanovic) Date: Sun, 18 Nov 2007 16:26:42 +0100 Subject: host-check issue Message-ID: <7e62d8ac0711180726j3abc8c81h1c30ec4f04354bbc@mail.gmail.com> Hello, I have encountered odd issue with host-check command. As service check failed, host check was executed and I received: "Error: could not execute command". The problem is that I have received numerous emails with same error which means this happened couple of times in short time frame. My check-host-alive definition is default, haven't changed it except that I use check_icmp instead of original check_ping. Yes, I have set up necessary permissions and ownership on it. I use exactly the same configuration for quite some time and this just started to happen. This doesn't occur on every host-check. OS: Debian Etch Nagios version: 2.6 Everything installed from stable debian packages. Thank you. Best wishes, Fritz -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From micha at arava.co.il Mon Nov 19 16:02:00 2007 From: micha at arava.co.il (Micha Silver) Date: Mon, 19 Nov 2007 17:02:00 +0200 Subject: SELinux problem at startup Message-ID: <4741A568.3060000@arava.co.il> Hello: I just finished installing version 2.10 from rpms from the rpmforge repository on a CentOS 5 machine. (I've used nagios for some years now both compiled and from binaries). This time I couldn't get the init.d script to successfully start because of some SELinux limitation. Running the string of commands from the command line worked fine. i.e.: [root at gibui ~]# touch /var/run/nagios.pid [root at gibui ~]# chown nagios:nagios /var/run/nagios.pid [root at gibui ~]# /usr/bin/nagios -d /etc/nagios/nagios.cfg [root at gibui ~]# /etc/init.d/nagios status nagios (pid 25170) is running... left me with a running nagios daemon. However: [root at gibui ~]# /etc/init.d/nagios restart Running configuration check...done Stopping nagios: done. Starting nagios: done. always failed. In the nagios.log I saw: [1195481305] Nagios 2.10 starting... (PID=23272) [1195481305] LOG VERSION: 2.0 [1195481305] You do not have permission to write to /var/run/nagios.pid [1195481305] Bailing out due to errors encountered while attempting to daemonize... (PID=23272) If I did setenforce=0 (putting selinux into "permissive" mode) then the init script worked. What I did to overcome this was a chcon on the nagios binary, as follows: [root at gibui ~]# chcon -t bin_t /usr/bin/nagios [root at gibui ~]# ll -Z /usr/bin/nagios -rwxrwxr-- root root system_u:object_r:bin_t /usr/bin/nagios And now the init script works fine. Not sure this is the best way to overcome the problem. If anyone more versed in selinux can help, I'd like to hear... Cheers, Micha ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mlozier at spindletopoil.com Mon Nov 19 16:08:54 2007 From: mlozier at spindletopoil.com (Matt Lozier) Date: Mon, 19 Nov 2007 09:08:54 -0600 Subject: Monitoring hosts and DHCP Message-ID: Hello, I'm monitoring about 30 machines using Nagios with SNMP checks. I also have a DHCP server casting each machine on the network their IP address on start-up. Some machines stay on the majority of the time, others for only 4-8 hours a day. The machines generally maintain their same IP address over time as DHCP is designed to try and give a machine back it's same IP, so long as it's available. However, there have been times when a machine has changed its IP addresses as a result of using DHCP on this LAN. Question: When I write the host macro for a given machine, e.g: define host{ host_name random_machine address 192.168.1.100 check_command check_ping } Is there a way to have nagios use a variable to read its address rather than keep the address static? This would allow me to have a script scan the network, and assign IPs to a given variable which is then read by the host's *.cfg file in the /etc/objects directory. Any and all advice is appreciated. Thank you, --- Matt Lozier Network Administrator 972.644.2581, ext. 248 972.661.2701 fax The information contained in this message or any attached document is confidential and intended only for the individual(s) or entity to which it is addressed. The information should be considered privileged and confidential. If you are not the intended recipient, you are hereby notified that any unauthorized use of the information contained in or transmitted with the communication, or dissemination, distribution, or copying of this communication is strictly prohibited by law. If you have received this communication in error, please inform the sender by immediately returning this communication to the sender and then deleting the original message and any copy of it in your possession. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 3595 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mark.potter at academy.com Mon Nov 19 16:29:11 2007 From: mark.potter at academy.com (mark.potter at academy.com) Date: Mon, 19 Nov 2007 09:29:11 -0600 Subject: check_by_ssh failing on commands that work via remote ssh as the nagios user Message-ID: Nagios: 2.10 Plugins: 1.4.9 OS: SLES 9.3 I am having some trouble figuring out how to make check_by_ssh work properly. I think I have done all of the usual troubleshooting and I have googled the issue to no avail: Command as nagios user on the remote server: /usr/local/nagios/libexec/check_load -w 7,7,7 -c 10,10,10 OK - load average: 0.01, 0.04, 0.03|load1=0.010;7.000;10.000;0; load5=0.040;7.000;10.000;0; load15=0.030;7.000;10.000;0; Command as nagios user via ssh on Nagios server: ssh ulwswas01 "/usr/local/nagios/libexec/check_load -w 7,7,7 -c 10,10,10" OK - load average: 0.05, 0.07, 0.04|load1=0.050;7.000;10.000;0; load5=0.070;7.000;10.000;0; load15=0.040;7.000;10.000;0; check_by_ssh attempt as nagios user on Nagios server: /check_by_ssh -H ulwswas01 -C "/usr/local/nagios/libexec/check_load -w 7,7,7 -c 10,10,10" Remote command execution failed: I get nothing in the log files concerning this and it makes little sense. I have tried everything I need to have working, to the best of my knowledge, as the nagios use and it works. Thanks in advance for any help! Best Regards, Mark L. Potter Systems Engineer Academy Sports & Outdoors 1800 N. Mason Rd Katy, Texas 77449 Office: 281-646-5857 Cell: 281-734-6965 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sujiannming at gmail.com Mon Nov 19 16:44:03 2007 From: sujiannming at gmail.com (Jiann-Ming Su) Date: Mon, 19 Nov 2007 10:44:03 -0500 Subject: SELinux problem at startup In-Reply-To: <4741A568.3060000@arava.co.il> References: <4741A568.3060000@arava.co.il> Message-ID: <561dc3260711190744q326597fbs2d32042a63bab9a@mail.gmail.com> On Nov 19, 2007 10:02 AM, Micha Silver wrote: > Hello: > > I just finished installing version 2.10 from rpms from the rpmforge > repository on a CentOS 5 machine. (I've used nagios for some years now > both compiled and from binaries). > This link helped me with CentOS 4 and SELinux issues related to Nagios: http://article.gmane.org/gmane.network.nagios.user/33586/match=selinux I know in CentOS 5, SELinux configs are handled differently than in CentOS 4, but I think the ideas are the same. > > If I did setenforce=0 (putting selinux into "permissive" mode) then the > init script worked. > When in permissive mode, run "audit2allow" to see what SELinux errors are logged. i.e. audit2allow -d -l -- Jiann-Ming Su "I have to decide between two equally frightening options. If I wanted to do that, I'd vote." --Duckman "The system's broke, Hank. The election baby has peed in the bath water. You got to throw 'em both out." --Dale Gribble "Those who vote decide nothing. Those who count the votes decide everything." --Joseph Stalin ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From benny at bennyvision.com Mon Nov 19 16:45:23 2007 From: benny at bennyvision.com (C. Bensend) Date: Mon, 19 Nov 2007 09:45:23 -0600 (CST) Subject: Monitoring hosts and DHCP In-Reply-To: References: Message-ID: <1265.134.244.169.17.1195487123.squirrel@webmail.stinkweasel.net> > I'm monitoring about 30 machines using Nagios with SNMP checks. I also > have > a DHCP server casting each machine on the network their IP address on > start-up. Some machines stay on the majority of the time, others for only > 4-8 hours a day. The machines generally maintain their same IP address > over > time as DHCP is designed to try and give a machine back it's same IP, so > long as it's available. However, there have been times when a machine has > changed its IP addresses as a result of using DHCP on this LAN. http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#host Pay particular attention to the address section... You can use the hostname in place of the IP address, at the cost of doing a DNS lookup when the host is checked. Benny -- "If it's true that our species is alone in the universe, then I'd have to say that the universe aimed rather low and settled for very little." -- George Carlin ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mark.potter at academy.com Mon Nov 19 16:54:21 2007 From: mark.potter at academy.com (mark.potter at academy.com) Date: Mon, 19 Nov 2007 09:54:21 -0600 Subject: check_by_ssh failing on commands that work via remote ssh as the nagios user In-Reply-To: References: Message-ID: > > Nagios: 2.10 > Plugins: 1.4.9 > OS: SLES 9.3 > > I am having some trouble figuring out how to make check_by_ssh work > properly. I think I have done all of the usual troubleshooting and I > have googled the issue to no avail: > > Command as nagios user on the remote server: > > /usr/local/nagios/libexec/check_load -w 7,7,7 -c 10,10,10 > OK - load average: 0.01, 0.04, 0.03|load1=0.010;7.000;10.000;0; > load5=0.040;7.000;10.000;0; load15=0.030;7.000;10.000;0; > > Command as nagios user via ssh on Nagios server: > > ssh ulwswas01 "/usr/local/nagios/libexec/check_load -w 7,7,7 -c 10,10,10" > > OK - load average: 0.05, 0.07, 0.04|load1=0.050;7.000;10.000;0; > load5=0.070;7.000;10.000;0; load15=0.040;7.000;10.000;0; > > check_by_ssh attempt as nagios user on Nagios server: > ./check_by_ssh -H ulwswas01 -C "/usr/local/nagios/libexec/check_load > -w 7,7,7 -c 10,10,10" > Remote command execution failed: > > I get nothing in the log files concerning this and it makes little > sense. I have tried everything I need to have working, to the best > of my knowledge, as the nagios use and it works. Thanks in advance > for any help! > Please disregard the above request. Further research showed the -S option was all that was needed. Would be nice if this was documented to show it is needed on all systems with banners as it is currently a little harder to find. If it were mentioned in the -h, the banner part, I would not have sent the request for help initially. I now return you to your regularly scheduled madness... -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jriggin at gmail.com Mon Nov 19 17:58:44 2007 From: jriggin at gmail.com (Jerad Riggin) Date: Mon, 19 Nov 2007 10:58:44 -0600 Subject: Notifications Message-ID: <66955c170711190858j3735a843n80ea79d0dbd7e67c@mail.gmail.com> I have a quick question. I have a host template that disables notifications and I have about 53 hosts using it. If the notifications are disabled, why then does it still require that I have values for notification_interval, _period, and _options? ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kzembowe at jhuccp.org Mon Nov 19 18:05:56 2007 From: kzembowe at jhuccp.org (Zembower, Kevin) Date: Mon, 19 Nov 2007 12:05:56 -0500 Subject: notification_interval seems to be ignored In-Reply-To: <2E8AE992B157C0409B18D0225D0B476306CD916E@XCH-VN01.sph.ad.jhsph.edu> References: <2E8AE992B157C0409B18D0225D0B476306CD9168@XCH-VN01.sph.ad.jhsph.edu> <2E8AE992B157C0409B18D0225D0B476306CD916E@XCH-VN01.sph.ad.jhsph.edu> Message-ID: <2E8AE992B157C0409B18D0225D0B476306CD917C@XCH-VN01.sph.ad.jhsph.edu> Still trying to investigate why the notification_interval seems to be ignored on my alert based on the ambient temperature in my server room. One thought that I had was that the temperature was changing between alerts, even though it was still in the critical or warning state. Would this cause repeated notifications to be sent out? I've pasted in the last notification I received at the end of this message. Note that the duration is just 6 seconds, even though it arrived 10 minutes after the first notification. I also just received a third alert, 40 minutes after the first one. On this one, the temperature was also different from the second one. The duration was again 6 seconds. So, it does seem as if if the service message changes (the temperature value changes), the alert is sent again. Anyway to stop this feature, and only send alerts when the state changes? Thanks for your continued advice and suggestions. -Kevin ======================================== ***** Nagios ***** Notification Type: PROBLEM Service: Ambient Temperature Host: www.jhuccp.org State: WARNING for 0d 0h 0m 6s Address: 10.253.192.204 Info: Temperature WARNING: CCP server room temperature of 69.8F exceeds warning temperature of 60 Date/Time: Mon Nov 19 11:36:28 EST 2007 ACK by: Comment: ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lists at scott-ackerman.com Mon Nov 19 18:24:04 2007 From: lists at scott-ackerman.com (Scott Ackerman) Date: Mon, 19 Nov 2007 10:24:04 -0700 Subject: Newbie installation question Message-ID: <4741C6B4.6020005@scott-ackerman.com> I am looking to implement Nagios for monitoring a dedicated remote web server that I have. I currently have a local Linux server that I could install Nagios on, however my internet connectivity can be flaky at times and if I monitor a remote server I may get more "failure warnings" than I care to. The quick start seems to assume that Nagios would be installed on a local server, or at least one in which you had local x-windows access to, can this be installed without having "localhost" access? and why would or would I not want to do this? Thanks. -- Scott Ackerman 1212 Baker Street Fort Collins, Colorado 80524 970-689-3999 Cell 970-231-9035 Fax 888-290-2131 "Every improvement in the standard of work men do is followed swiftly and inevitably by an improvement in the men who do it" - William Morris ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Joel.Roberts at pinkardcc.com Mon Nov 19 18:27:16 2007 From: Joel.Roberts at pinkardcc.com (Joel Roberts) Date: Mon, 19 Nov 2007 10:27:16 -0700 Subject: Using Nagios to Monitor RDP Message-ID: <2CE4DD25946EB940B8EE93877AF62531FE36A7@lwmailserver1.pinkard.com> Want to use Nagios to monitor RDP availability on a Windows 2k3 server (port 3389). Have put the following in my windows.cfg file: define service{ use generic-service host_name SERVERNAME service_description RDP check_command check_tcp!3389 } But get an error when I try to verify the config files. Anyone else using check_tcp and see what I'm doing wrong here? I know the host is configured correctly in the file, I'm using it to monitor other services (HTTP and Ping) with no problem. Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From aaron.segura at cabelas.com Mon Nov 19 18:30:49 2007 From: aaron.segura at cabelas.com (Aaron M. Segura) Date: Mon, 19 Nov 2007 10:30:49 -0700 Subject: Using Nagios to Monitor RDP In-Reply-To: <2CE4DD25946EB940B8EE93877AF62531FE36A7@lwmailserver1.pinkard.com> References: <2CE4DD25946EB940B8EE93877AF62531FE36A7@lwmailserver1.pinkard.com> Message-ID: <1195493449.26489.1.camel@sidhqmis4grdv91> On Mon, 2007-11-19 at 10:27 -0700, Joel Roberts wrote: > Want to use Nagios to monitor RDP availability on a Windows 2k3 server > (port 3389). Have put the following in my windows.cfg file: > > > > define service{ > > use generic-service > > host_name SERVERNAME > > service_description RDP > > check_command check_tcp!3389 > > } > > > > But get an error when I try to verify the config files. Anyone else > using check_tcp and see what I?m doing wrong here? I know the host is > configured correctly in the file, I?m using it to monitor other > services (HTTP and Ping) with no problem. > > > > Thanks in advance. It would be useful to see your command definition for 'check_tcp'. Also, it would be helpful to know what the error said, not just that you received an error of some sort. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Joel.Roberts at pinkardcc.com Mon Nov 19 18:36:50 2007 From: Joel.Roberts at pinkardcc.com (Joel Roberts) Date: Mon, 19 Nov 2007 10:36:50 -0700 Subject: Using Nagios to Monitor RDP **** SOLVED **** In-Reply-To: <2CE4DD25946EB940B8EE93877AF62531FE36A7@lwmailserver1.pinkard.com> References: <2CE4DD25946EB940B8EE93877AF62531FE36A7@lwmailserver1.pinkard.com> Message-ID: <2CE4DD25946EB940B8EE93877AF62531FE36A9@lwmailserver1.pinkard.com> Can't stress the importance of accurate typing enough, I had a typo in the line "service_description" Working now. ________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Joel Roberts Sent: Monday, November 19, 2007 10:27 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Using Nagios to Monitor RDP Want to use Nagios to monitor RDP availability on a Windows 2k3 server (port 3389). Have put the following in my windows.cfg file: define service{ use generic-service host_name SERVERNAME service_description RDP check_command check_tcp!3389 } But get an error when I try to verify the config files. Anyone else using check_tcp and see what I'm doing wrong here? I know the host is configured correctly in the file, I'm using it to monitor other services (HTTP and Ping) with no problem. Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nagios at pgmail.net Mon Nov 19 18:39:22 2007 From: nagios at pgmail.net (Philipp Geschke) Date: Mon, 19 Nov 2007 18:39:22 +0100 Subject: Using Nagios to Monitor RDP In-Reply-To: <2CE4DD25946EB940B8EE93877AF62531FE36A7@lwmailserver1.pinkard.com> References: <2CE4DD25946EB940B8EE93877AF62531FE36A7@lwmailserver1.pinkard.com> Message-ID: <4741CA4A.5010208@pgmail.net> Joel Roberts schrieb: > Want to use Nagios to monitor RDP availability on a Windows 2k3 server > (port 3389). Have put the following in my windows.cfg file: > > > > define service{ > > use generic-service > > host_name SERVERNAME > > service_description RDP > > check_command check_tcp!3389 > > } > > > > But get an error when I try to verify the config files. Anyone else > using check_tcp and see what I?m doing wrong here? I know the host is > configured correctly in the file, I?m using it to monitor other services > (HTTP and Ping) with no problem. > > > > Thanks in advance. > > That doesn't look wrong. Make sure the template generic-service defines all obligatory values. What does the error say in detail? (nagios -v output). This is the way my RDP monitoring is set up: define service { use default-service host_name SERVERNAME service_description RDP check_command check_tcp!3389 } define service{ name default-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 0 flap_detection_enabled 0 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 register 0 is_volatile 0 check_period 24x7 max_check_attempts 5 normal_check_interval 5 retry_check_interval 1 contact_groups contacts notification_interval 30 notification_period 24x7 notification_options c,r } define command{ command_name check_tcp command_line $USER1$/check_tcp -H $HOSTADDRESS$ -p $ARG1$ } Also make sure, check_tcp is really located under $USER1$. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Nov 19 18:58:22 2007 From: ae at op5.se (Andreas Ericsson) Date: Mon, 19 Nov 2007 18:58:22 +0100 Subject: Notifications In-Reply-To: <66955c170711190858j3735a843n80ea79d0dbd7e67c@mail.gmail.com> References: <66955c170711190858j3735a843n80ea79d0dbd7e67c@mail.gmail.com> Message-ID: <4741CEBE.2060703@op5.se> Jerad Riggin wrote: > I have a quick question. I have a host template that disables > notifications and I have about 53 hosts using it. If the > notifications are disabled, why then does it still require that I have > values for notification_interval, _period, and _options? > Because you can dynamically enable notifications by an external command. That wouldn't be possible for hosts with none of those options. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Mon Nov 19 19:01:40 2007 From: ae at op5.se (Andreas Ericsson) Date: Mon, 19 Nov 2007 19:01:40 +0100 Subject: notification_interval seems to be ignored In-Reply-To: <2E8AE992B157C0409B18D0225D0B476306CD917C@XCH-VN01.sph.ad.jhsph.edu> References: <2E8AE992B157C0409B18D0225D0B476306CD9168@XCH-VN01.sph.ad.jhsph.edu> <2E8AE992B157C0409B18D0225D0B476306CD916E@XCH-VN01.sph.ad.jhsph.edu> <2E8AE992B157C0409B18D0225D0B476306CD917C@XCH-VN01.sph.ad.jhsph.edu> Message-ID: <4741CF84.7000400@op5.se> Zembower, Kevin wrote: > Still trying to investigate why the notification_interval seems to be > ignored on my alert based on the ambient temperature in my server room. > It's not, but nagios only attempts to send notifications when it has performed a check, afair. If you set notification_interval to lower than your normal_check_interval, will it then send notifications with intervals matching normal_check_interval? > One thought that I had was that the temperature was changing between > alerts, even though it was still in the critical or warning state. Would > this cause repeated notifications to be sent out? Only if is_volatile is set for the service. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Mon Nov 19 19:02:44 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Mon, 19 Nov 2007 18:02:44 +0000 Subject: Using Nagios to Monitor RDP **** SOLVED **** In-Reply-To: <2CE4DD25946EB940B8EE93877AF62531FE36A9@lwmailserver1.pinkard.com> References: <2CE4DD25946EB940B8EE93877AF62531FE36A7@lwmailserver1.pinkard.com> <2CE4DD25946EB940B8EE93877AF62531FE36A9@lwmailserver1.pinkard.com> Message-ID: <4741CFC4.10700@googlemail.com> On the topic of this RDP test, I'd love to know if anyone has a better test to actually use the protocol, since anything could theoretically take port 3389 and this test wouldn't catch it. I currently also check_tcp as my RDP test but it feels cheap... with VNC I actually wrote a plugin to log in to VNC, pull one image to know it's all working and then give the OK once it has done that, which seemed much better. It would be great if I could have such a thing for RDP too... -h Hari Sekhon Joel Roberts wrote: > > Can?t stress the importance of accurate typing enough, I had a typo in > the line ?service_description? > > Working now. > > ------------------------------------------------------------------------ > > *From:* nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] *On Behalf Of > *Joel Roberts > *Sent:* Monday, November 19, 2007 10:27 AM > *To:* nagios-users at lists.sourceforge.net > *Subject:* [Nagios-users] Using Nagios to Monitor RDP > > Want to use Nagios to monitor RDP availability on a Windows 2k3 server > (port 3389). Have put the following in my windows.cfg file: > > define service{ > > use generic-service > > host_name SERVERNAME > > service_description RDP > > check_command check_tcp!3389 > > } > > But get an error when I try to verify the config files. Anyone else > using check_tcp and see what I?m doing wrong here? I know the host is > configured correctly in the file, I?m using it to monitor other > services (HTTP and Ping) with no problem. > > Thanks in advance. > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Mon Nov 19 19:35:55 2007 From: ae at op5.se (Andreas Ericsson) Date: Mon, 19 Nov 2007 19:35:55 +0100 Subject: Using Nagios to Monitor RDP **** SOLVED **** In-Reply-To: <4741CFC4.10700@googlemail.com> References: <2CE4DD25946EB940B8EE93877AF62531FE36A7@lwmailserver1.pinkard.com> <2CE4DD25946EB940B8EE93877AF62531FE36A9@lwmailserver1.pinkard.com> <4741CFC4.10700@googlemail.com> Message-ID: <4741D78B.7020902@op5.se> Hari Sekhon wrote: > On the topic of this RDP test, I'd love to know if anyone has a better > test to actually use the protocol, since anything could theoretically > take port 3389 and this test wouldn't catch it. > > I currently also check_tcp as my RDP test but it feels cheap... with VNC > I actually wrote a plugin to log in to VNC, pull one image to know it's > all working and then give the OK once it has done that, which seemed > much better. It would be great if I could have such a thing for RDP too... > rdesktop is fairly well written, afair. It shouldn't be too difficult to extract the protocol details from that project. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lavalamp at spiritual-machines.org Mon Nov 19 19:52:21 2007 From: lavalamp at spiritual-machines.org (Brian A. Seklecki) Date: Mon, 19 Nov 2007 13:52:21 -0500 (EST) Subject: nsca PROCESS_HOST_CHECK_RESULT problem Message-ID: <20071119134922.V4211@arbitor.digitalfreaks.org> Bratislav: Did you ever resolve these bizaare PROCESS_HOST_CHECK_RESULT / PROCESS_SERVICE_CHECK_RESULT errors? I'm having trouble debugging them as well ~BAS > If I simulate host down I got HOST_CHECK from nagios.log on remote host: > EXTERNAL COMMAND: PROCESS_HOST_CHECK_RESULT;server1;1;PING CRITICAL - > Packet loss = 100% > but regularly, it is triggered like it is service check, and > PROCESS_HOST_CHECK_RESULT is not performed at all. > [1175605177] EXTERNAL COMMAND: > PROCESS_SERVICE_CHECK_RESULT;server1;0;0; RTA = 0.18 ms [1175605177] > Warning: Passive check result was received for service '0' on host > 'server1', but the service could not be found! 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 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kzembowe at jhuccp.org Mon Nov 19 20:11:22 2007 From: kzembowe at jhuccp.org (Zembower, Kevin) Date: Mon, 19 Nov 2007 14:11:22 -0500 Subject: notification_interval seems to be ignored In-Reply-To: <4741CF84.7000400@op5.se> References: <2E8AE992B157C0409B18D0225D0B476306CD9168@XCH-VN01.sph.ad.jhsph.edu> <2E8AE992B157C0409B18D0225D0B476306CD916E@XCH-VN01.sph.ad.jhsph.edu> <2E8AE992B157C0409B18D0225D0B476306CD917C@XCH-VN01.sph.ad.jhsph.edu> <4741CF84.7000400@op5.se> Message-ID: <2E8AE992B157C0409B18D0225D0B476306CD9181@XCH-VN01.sph.ad.jhsph.edu> Andreas, thanks for your response. My notification_interval is set to 0, so theoretically it should send me either no repeated notifications, or a notification every 5 minutes, my normal_check_interval. I triggered an ambient temperature warning and let it run for an hour and 42 minutes. The time between notifications was 10, 26, 5, 12, 5, 5 and 25 minutes. In each case, the temperature had changed from the previous notification. The only definition of is_volatile was in the generic-service_nagios2.cfg files, where it's set to 0. I've now included it explicitly in the service definition for my ambient temperature monitor. I'll let you know if this makes a difference. Thanks, again, for your help. -Kevin iginal Message----- From: Andreas Ericsson [mailto:ae at op5.se] Sent: Monday, November 19, 2007 1:02 PM To: Zembower, Kevin Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] notification_interval seems to be ignored Zembower, Kevin wrote: > Still trying to investigate why the notification_interval seems to be > ignored on my alert based on the ambient temperature in my server room. > It's not, but nagios only attempts to send notifications when it has performed a check, afair. If you set notification_interval to lower than your normal_check_interval, will it then send notifications with intervals matching normal_check_interval? > One thought that I had was that the temperature was changing between > alerts, even though it was still in the critical or warning state. Would > this cause repeated notifications to be sent out? Only if is_volatile is set for the service. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mlozier at spindletopoil.com Mon Nov 19 21:03:36 2007 From: mlozier at spindletopoil.com (Matt Lozier) Date: Mon, 19 Nov 2007 14:03:36 -0600 Subject: Monitoring hosts and DHCP In-Reply-To: <1265.134.244.169.17.1195487123.squirrel@webmail.stinkweasel.net> References: <1265.134.244.169.17.1195487123.squirrel@webmail.stinkweasel.net> Message-ID: Hi Benny, Thank you for the reply, but unfortunately I'm not using DNS, and I don't want to have to :-) Just want to know if there is a way to monitor hosts that obtain their IP address via DHCP. I'll continue to see what I can do with this, and will reply to the list if I find a solution. Thanks again, --- Matt Lozier Network Administrator 972.644.2581, ext. 248 972.661.2701 fax The information contained in this message or any attached document is confidential and intended only for the individual(s) or entity to which it is addressed. The information should be considered privileged and confidential. If you are not the intended recipient, you are hereby notified that any unauthorized use of the information contained in or transmitted with the communication, or dissemination, distribution, or copying of this communication is strictly prohibited by law. If you have received this communication in error, please inform the sender by immediately returning this communication to the sender and then deleting the original message and any copy of it in your possession. -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of C. Bensend Sent: Monday, November 19, 2007 9:45 AM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Monitoring hosts and DHCP > I'm monitoring about 30 machines using Nagios with SNMP checks. I also > have > a DHCP server casting each machine on the network their IP address on > start-up. Some machines stay on the majority of the time, others for only > 4-8 hours a day. The machines generally maintain their same IP address > over > time as DHCP is designed to try and give a machine back it's same IP, so > long as it's available. However, there have been times when a machine has > changed its IP addresses as a result of using DHCP on this LAN. http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#host Pay particular attention to the address section... You can use the hostname in place of the IP address, at the cost of doing a DNS lookup when the host is checked. Benny -- "If it's true that our species is alone in the universe, then I'd have to say that the universe aimed rather low and settled for very little." -- George Carlin ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dtabb at marketforceinfo.com Mon Nov 19 21:03:22 2007 From: dtabb at marketforceinfo.com (Doug Tabb) Date: Mon, 19 Nov 2007 13:03:22 -0700 Subject: Service notifications for a down host? Message-ID: <1F6FD8004708EE4AB79615574B34E85C015AEFAB@MAIL.mfi.marketforceinfo.com> I'm looking for a little behavior confirmation here, please. It's my understanding that a failed service check is one way a host check is initiated. If Nagios determines the host is down, further service problem notifications are suppressed. However, I still get one or more notifications for the initial service problems. Wouldn't Nagios suppress those initial service checks until at least one host check has been made? For illustration, I have a remote site with host parent/child relationships configured. If the site goes down, I get about 2 dozen service notifications from various child hosts before it realizes the top parent host is down and suppresses notifications for that site. I then receive the one host recovery along with the 2 dozen or so service recovery messages. I had hoped to not receive any service notifications in this scenario. Is this expected behavior? Thank you very much! Doug Tabb -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From aaron.segura at cabelas.com Mon Nov 19 21:09:09 2007 From: aaron.segura at cabelas.com (Aaron M. Segura) Date: Mon, 19 Nov 2007 13:09:09 -0700 Subject: Monitoring hosts and DHCP In-Reply-To: References: Message-ID: <1195502949.26489.26.camel@sidhqmis4grdv91> Hard code the MAC -> IP assignment through your dhcp daemon. ?? On Mon, 2007-11-19 at 14:03 -0600, Matt Lozier wrote: > Hi Benny, > > Thank you for the reply, but unfortunately I'm not using DNS, and I don't > want to have to :-) > > Just want to know if there is a way to monitor hosts that obtain their IP > address via DHCP. > > I'll continue to see what I can do with this, and will reply to the list if > I find a solution. > > Thanks again, > > > --- > Matt Lozier > Network Administrator > 972.644.2581, ext. 248 > 972.661.2701 fax > > > > The information contained in this message or any attached document is > confidential and intended only for the individual(s) or entity to which it > is addressed. The information should be considered privileged and > confidential. If you are not the intended recipient, you are hereby > notified that any unauthorized use of the information contained in or > transmitted with the communication, or dissemination, distribution, or > copying of this communication is strictly prohibited by law. If you have > received this communication in error, please inform the sender by > immediately returning this communication to the sender and then deleting the > original message and any copy of it in your possession. > > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of C. Bensend > Sent: Monday, November 19, 2007 9:45 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Monitoring hosts and DHCP > > > > I'm monitoring about 30 machines using Nagios with SNMP checks. I also > > have > > a DHCP server casting each machine on the network their IP address on > > start-up. Some machines stay on the majority of the time, others for only > > 4-8 hours a day. The machines generally maintain their same IP address > > over > > time as DHCP is designed to try and give a machine back it's same IP, so > > long as it's available. However, there have been times when a machine has > > changed its IP addresses as a result of using DHCP on this LAN. > > http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#host > > Pay particular attention to the address section... You can use > the hostname in place of the IP address, at the cost of doing a > DNS lookup when the host is checked. > > Benny > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kkatzke at tamu.edu Mon Nov 19 21:20:23 2007 From: kkatzke at tamu.edu (Karl Katzke) Date: Mon, 19 Nov 2007 14:20:23 -0600 Subject: Staggering epager notifications Message-ID: <47419BA7.C02D.0075.0@vprmail.tamu.edu> We're having a problem with Sprint's email-to-pager gateway will refuse connections and defer messages with the response "Too many connections from host" when Nagios is trying to alert all of us at once that something has failed. Obviously, since we don't know it's happening unless we're in the office, this isn't necessarily a good thing -- the person who really needs to respond might not get their notification for minutes or hours, and in the meantime, the service is down. We've found that if we send messages with a 5-second gap, Sprint doesn't complain about us spamming their gateway. Is there a way to get Nagios (or alternately the MTA, which I realize would be off-topic, but I'm not a MTA guy) to stagger out the notifications --without some arcane hack like using escalations? Thanks, Karl Katzke TAMU RGS ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From benny at bennyvision.com Mon Nov 19 21:39:35 2007 From: benny at bennyvision.com (C. Bensend) Date: Mon, 19 Nov 2007 14:39:35 -0600 (CST) Subject: Monitoring hosts and DHCP In-Reply-To: References: Message-ID: <2556.134.244.169.17.1195504775.squirrel@webmail.stinkweasel.net> > Thank you for the reply, but unfortunately I'm not using DNS, and I don't > want to have to :-) > > Just want to know if there is a way to monitor hosts that obtain their IP > address via DHCP. > > I'll continue to see what I can do with this, and will reply to the list > if > I find a solution. Ummmmmm... So how do you access the hosts, if they're switching IPs on you and you're not using DNS? Do you just rely on WINS or something? You could set up passive checks, and have the DHCPized machines *send* you the test results, that way Nagios wouldn't have to have some way of addressing them. I *think* that would work? I've never tried it. Benny -- "If it's true that our species is alone in the universe, then I'd have to say that the universe aimed rather low and settled for very little." -- George Carlin ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mlozier at spindletopoil.com Mon Nov 19 21:41:31 2007 From: mlozier at spindletopoil.com (Matt Lozier) Date: Mon, 19 Nov 2007 14:41:31 -0600 Subject: Monitoring hosts and DHCP In-Reply-To: <1195502949.26489.26.camel@sidhqmis4grdv91> References: <1195502949.26489.26.camel@sidhqmis4grdv91> Message-ID: Sorry, I meant to hit "reply to all." My apologies. Thanks, --- Matt Lozier IT Analyst 972.644.2581, ext. 248 972.661.2701 fax The information contained in this message or any attached document is confidential and intended only for the individual(s) or entity to which it is addressed. The information should be considered privileged and confidential. If you are not the intended recipient, you are hereby notified that any unauthorized use of the information contained in or transmitted with the communication, or dissemination, distribution, or copying of this communication is strictly prohibited by law. If you have received this communication in error, please inform the sender by immediately returning this communication to the sender and then deleting the original message and any copy of it in your possession. -----Original Message----- From: Aaron M. Segura [mailto:aaron.segura at cabelas.com] Sent: Monday, November 19, 2007 2:09 PM To: Matt Lozier Cc: 'C. Bensend'; nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Monitoring hosts and DHCP Hard code the MAC -> IP assignment through your dhcp daemon. ?? On Mon, 2007-11-19 at 14:03 -0600, Matt Lozier wrote: > Hi Benny, > > Thank you for the reply, but unfortunately I'm not using DNS, and I don't > want to have to :-) > > Just want to know if there is a way to monitor hosts that obtain their IP > address via DHCP. > > I'll continue to see what I can do with this, and will reply to the list if > I find a solution. > > Thanks again, > > > --- > Matt Lozier > Network Administrator > 972.644.2581, ext. 248 > 972.661.2701 fax > > > > The information contained in this message or any attached document is > confidential and intended only for the individual(s) or entity to which it > is addressed. The information should be considered privileged and > confidential. If you are not the intended recipient, you are hereby > notified that any unauthorized use of the information contained in or > transmitted with the communication, or dissemination, distribution, or > copying of this communication is strictly prohibited by law. If you have > received this communication in error, please inform the sender by > immediately returning this communication to the sender and then deleting the > original message and any copy of it in your possession. > > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of C. Bensend > Sent: Monday, November 19, 2007 9:45 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Monitoring hosts and DHCP > > > > I'm monitoring about 30 machines using Nagios with SNMP checks. I also > > have > > a DHCP server casting each machine on the network their IP address on > > start-up. Some machines stay on the majority of the time, others for only > > 4-8 hours a day. The machines generally maintain their same IP address > > over > > time as DHCP is designed to try and give a machine back it's same IP, so > > long as it's available. However, there have been times when a machine has > > changed its IP addresses as a result of using DHCP on this LAN. > > http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#host > > Pay particular attention to the address section... You can use > the hostname in place of the IP address, at the cost of doing a > DNS lookup when the host is checked. > > Benny > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From admitriev at mentora.com Mon Nov 19 21:49:00 2007 From: admitriev at mentora.com (Andrey Dmitriev) Date: Mon, 19 Nov 2007 15:49:00 -0500 Subject: question about NDOUtils In-Reply-To: <"LC179D1656C974650A0FB9C190D99DF75.1195250408.mt-adm.mentora.biz*"@MHS> References: <"LC179D1656C974650A0FB9C190D99DF75.1195250408.mt-adm.mentora.biz*"@MHS> Message-ID: <"LD4231B701A4B4dea835A1DFD018EF9A7.1195505316.mt-adm.mentora.biz*"@MHS> anyone :)? -----Original Message----- From: Andrey Dmitriev Sent: Friday, November 16, 2007 5:00 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] question about NDOUtils I understand you can do an initial load of config into the db. How does it 'trap' all changes to config? I would guess it can trap changes made though Nagios interface. What if such changes were made to the config file and nagios restarted? Thanks, Andrey ------------------------------------------------------------------------ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mlozier at spindletopoil.com Mon Nov 19 21:48:45 2007 From: mlozier at spindletopoil.com (Matt Lozier) Date: Mon, 19 Nov 2007 14:48:45 -0600 Subject: Monitoring hosts and DHCP In-Reply-To: <2556.134.244.169.17.1195504775.squirrel@webmail.stinkweasel.net> References: <2556.134.244.169.17.1195504775.squirrel@webmail.stinkweasel.net> Message-ID: Hi Benny, Yes, I'm using WINS. We have a simple LAN here, nothing fancy. I think that my best bet is having my DCHP daemon reserve a given IP for each host. Thanks for your help and suggestions -- much appreciated! --- Matt Lozier Network Administrator 972.644.2581, ext. 248 972.661.2701 fax The information contained in this message or any attached document is confidential and intended only for the individual(s) or entity to which it is addressed. The information should be considered privileged and confidential. If you are not the intended recipient, you are hereby notified that any unauthorized use of the information contained in or transmitted with the communication, or dissemination, distribution, or copying of this communication is strictly prohibited by law. If you have received this communication in error, please inform the sender by immediately returning this communication to the sender and then deleting the original message and any copy of it in your possession. -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of C. Bensend Sent: Monday, November 19, 2007 2:40 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Monitoring hosts and DHCP > Thank you for the reply, but unfortunately I'm not using DNS, and I don't > want to have to :-) > > Just want to know if there is a way to monitor hosts that obtain their IP > address via DHCP. > > I'll continue to see what I can do with this, and will reply to the list > if > I find a solution. Ummmmmm... So how do you access the hosts, if they're switching IPs on you and you're not using DNS? Do you just rely on WINS or something? You could set up passive checks, and have the DHCPized machines *send* you the test results, that way Nagios wouldn't have to have some way of addressing them. I *think* that would work? I've never tried it. Benny -- "If it's true that our species is alone in the universe, then I'd have to say that the universe aimed rather low and settled for very little." -- George Carlin ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jriggin at gmail.com Mon Nov 19 21:54:52 2007 From: jriggin at gmail.com (Jerad Riggin) Date: Mon, 19 Nov 2007 14:54:52 -0600 Subject: Notifications Message-ID: <66955c170711191254y69684bc9i998924e980eeab8e@mail.gmail.com> I have a nagios 2.9 install. I have one host with multiple services being monitored. On the 16th the host didn't respond to a ping (the server rebooted), and recovered within 3 minutes. I received an e-mail for both the failure and recovery. I am also monitoring some windows services on the same box using NsClient++. It shows on the same day that after it recovered the TrendMicro virus process was down for 6 hours. I didn't receive an e-mail during this entire time. It is set at 5 max attempts, 3 normal check, and 1 retry with a notification interval of 15 minutes. It should have at least notified once but it didn't. Any ideas? ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jriggin at gmail.com Mon Nov 19 21:57:55 2007 From: jriggin at gmail.com (Jerad Riggin) Date: Mon, 19 Nov 2007 14:57:55 -0600 Subject: CheckNT Message-ID: <66955c170711191257i6ce657cdrb939b84f051e10bb@mail.gmail.com> I am monitoring the CPU load with NSClient on a host. Here is the service definition define service{ use windows-service name check-cpu notification_options w,u,c,r check_command check_nt!CPULOAD!-l 5, 80, 90 register 0 } Here is the actual call to that service define service{ use check-cpu service_description CPU contact_groups mis hostgroup_name windows-clients } Here is what I see in the nagios interface CPU OK 11-19-2007 14:56:07 122d 2h 7m 2s 1/5 not enough values for -l parameters Any ideas? ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From adevey at omniture.com Mon Nov 19 22:11:37 2007 From: adevey at omniture.com (Aaron Devey) Date: Mon, 19 Nov 2007 14:11:37 -0700 Subject: Notifications In-Reply-To: <66955c170711191254y69684bc9i998924e980eeab8e@mail.gmail.com> References: <66955c170711191254y69684bc9i998924e980eeab8e@mail.gmail.com> Message-ID: <4741FC09.6020006@omniture.com> What are your notification options set to? In 2.9 the default is "none" so if you didn't specify them for that service, it won't alert. If that's not the answer, perhaps you can paste your the definitions for your service, contact, and notification command? -Aaron Jerad Riggin wrote: > > I have a nagios 2.9 install. I have one host with multiple services > being monitored. On the 16th the host didn't respond to a ping (the > server rebooted), and recovered within 3 minutes. I received an > e-mail for both the failure and recovery. I am also monitoring some > windows services on the same box using NsClient++. It shows on the > same day that after it recovered the TrendMicro virus process was down > for 6 hours. I didn't receive an e-mail during this entire time. It > is set at 5 max attempts, 3 normal check, and 1 retry with a > notification interval of 15 minutes. It should have at least notified > once but it didn't. Any ideas? > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jriggin at gmail.com Mon Nov 19 22:17:45 2007 From: jriggin at gmail.com (Jerad Riggin) Date: Mon, 19 Nov 2007 15:17:45 -0600 Subject: Notifications In-Reply-To: <4741FC09.6020006@omniture.com> References: <66955c170711191254y69684bc9i998924e980eeab8e@mail.gmail.com> <4741FC09.6020006@omniture.com> Message-ID: <66955c170711191317m63a6b7f1o18b93cb0e126ec06@mail.gmail.com> define service{ name generic-service ; Generic service name active_checks_enabled 1 ; Active service checks are enabled passive_checks_enabled 1 ; Passive service checks are enabled/accepted parallelize_check 1 ; Active service checks should be parallelized (Don't disable) obsess_over_service 1 ; We should obsess over this service (if necessary) check_freshness 0 ; Default is to NOT check service 'freshness' notifications_enabled 1 ; Service notifications are enabled event_handler_enabled 1 ; Service event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts register 0 ; DONT REGISTER THIS DEFINITION - NOT A REAL SERVICE, JUST A TEMPLATE! } define service{ use generic-service name windows-service is_volatile 0 check_period 24x7 max_check_attempts 5 normal_check_interval 3 retry_check_interval 1 notification_interval 15 notification_period 24x7 register 0 } define service{ use windows-service name check-trend notification_options w,u,c,r check_command check_nt!SERVICESTATE!-d SHOWALL -l ofcservice register 0 } define service{ use check-trend service_description TrendMicro contact_groups mis # hostgroup_name windows-clients host_name lg03 } On Nov 19, 2007 3:11 PM, Aaron Devey wrote: > What are your notification options set to? In 2.9 the default is "none" > so if you didn't specify them for that service, it won't alert. If > that's not the answer, perhaps you can paste your the definitions for > your service, contact, and notification command? > > -Aaron > > > > Jerad Riggin wrote: > > > > I have a nagios 2.9 install. I have one host with multiple services > > being monitored. On the 16th the host didn't respond to a ping (the > > server rebooted), and recovered within 3 minutes. I received an > > e-mail for both the failure and recovery. I am also monitoring some > > windows services on the same box using NsClient++. It shows on the > > same day that after it recovered the TrendMicro virus process was down > > for 6 hours. I didn't receive an e-mail during this entire time. It > > is set at 5 max attempts, 3 normal check, and 1 retry with a > > notification interval of 15 minutes. It should have at least notified > > once but it didn't. Any ideas? > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2005. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rtparies at gmail.com Mon Nov 19 22:28:19 2007 From: rtparies at gmail.com (Randy Paries) Date: Mon, 19 Nov 2007 15:28:19 -0600 Subject: how to get the current temp in a warning message sent Message-ID: Hello, I have the following service: ==================================================== define service{ use generic-service host_name bart service_description Probe #1 Temperature is_volatile 0 check_period 24x7 max_check_attempts 2 normal_check_interval 5 retry_check_interval 1 contact_groups all_admins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_temptraxf!/dev/ttyS0!1!74!78 } ==================================================== when i get a warning i get the message below. Is there a way to include the current temp in the warning? thanks for any help ==================================================== ***** Nagios ***** Notification Type: PROBLEM Service: Probe #1 Temperature Host: Bart #1 Address: 192.168.0.214 State: WARNING Date/Time: $ Additional Info: $ ==================================================== ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kzembowe at jhuccp.org Mon Nov 19 22:39:06 2007 From: kzembowe at jhuccp.org (Zembower, Kevin) Date: Mon, 19 Nov 2007 16:39:06 -0500 Subject: notification_interval seems to be ignored In-Reply-To: <2E8AE992B157C0409B18D0225D0B476306CD9181@XCH-VN01.sph.ad.jhsph.edu> References: <2E8AE992B157C0409B18D0225D0B476306CD9168@XCH-VN01.sph.ad.jhsph.edu> <2E8AE992B157C0409B18D0225D0B476306CD916E@XCH-VN01.sph.ad.jhsph.edu><2E8AE992B157C0409B18D0225D0B476306CD917C@XCH-VN01.sph.ad.jhsph.edu><4741CF84.7000400@op5.se> <2E8AE992B157C0409B18D0225D0B476306CD9181@XCH-VN01.sph.ad.jhsph.edu> Message-ID: <2E8AE992B157C0409B18D0225D0B476306CD9188@XCH-VN01.sph.ad.jhsph.edu> Just a follow-up: Setting 'is_volatile 0' explicitly in the service definition didn't seem to affect this behavior; it still sent me 3 notifications, seemingly when the temperature changed. Thanks for any additional suggestions and advice. -Kevin -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Zembower, Kevin Sent: Monday, November 19, 2007 2:11 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] notification_interval seems to be ignored Andreas, thanks for your response. My notification_interval is set to 0, so theoretically it should send me either no repeated notifications, or a notification every 5 minutes, my normal_check_interval. I triggered an ambient temperature warning and let it run for an hour and 42 minutes. The time between notifications was 10, 26, 5, 12, 5, 5 and 25 minutes. In each case, the temperature had changed from the previous notification. The only definition of is_volatile was in the generic-service_nagios2.cfg files, where it's set to 0. I've now included it explicitly in the service definition for my ambient temperature monitor. I'll let you know if this makes a difference. Thanks, again, for your help. -Kevin iginal Message----- From: Andreas Ericsson [mailto:ae at op5.se] Sent: Monday, November 19, 2007 1:02 PM To: Zembower, Kevin Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] notification_interval seems to be ignored Zembower, Kevin wrote: > Still trying to investigate why the notification_interval seems to be > ignored on my alert based on the ambient temperature in my server room. > It's not, but nagios only attempts to send notifications when it has performed a check, afair. If you set notification_interval to lower than your normal_check_interval, will it then send notifications with intervals matching normal_check_interval? > One thought that I had was that the temperature was changing between > alerts, even though it was still in the critical or warning state. Would > this cause repeated notifications to be sent out? Only if is_volatile is set for the service. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Nov 19 22:41:40 2007 From: ae at op5.se (Andreas Ericsson) Date: Mon, 19 Nov 2007 22:41:40 +0100 Subject: question about NDOUtils In-Reply-To: <"LC179D1656C974650A0FB9C190D99DF75.1195250408.mt-adm.mentora.biz*"@MHS> References: <"LC179D1656C974650A0FB9C190D99DF75.1195250408.mt-adm.mentora.biz*"@MHS> Message-ID: <47420314.6070600@op5.se> Andrey Dmitriev wrote: > I understand you can do an initial load of config into the db. > > How does it 'trap' all changes to config? Every time Nagios restarts the module is loaded anew as well. Each time Nagios is sent a sighup all modules are reloaded. > I would guess it can trap changes made though Nagios interface. > What if such changes were made to the config file and nagios restarted? > The module would be reloaded too, so the config would be purged from the database and then added to it again. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kzembowe at jhuccp.org Mon Nov 19 22:41:49 2007 From: kzembowe at jhuccp.org (Zembower, Kevin) Date: Mon, 19 Nov 2007 16:41:49 -0500 Subject: how to get the current temp in a warning message sent In-Reply-To: References: Message-ID: <2E8AE992B157C0409B18D0225D0B476306CD9189@XCH-VN01.sph.ad.jhsph.edu> Randy, the only way I was able to do this was to write the return temperature value in the message that the plug-in sent. Below, find my plug-in code, if this would help. -Kevin =========================================== nagios at cn2:/etc/nagios2/conf.d$ cat /usr/lib/nagios/plugins/check_ambtempF #! /usr/bin/perl -w # check_ambtempF is a perl wrapper around the Nagios check_snmp plugin # to check the ambient temperature sensor in Dell PowerEdge servers. # Written by Kevin Zembower, 13-Sep-2007 use strict; use Getopt::Std; my %opts; getopts('dhc:w:H:',\%opts); # Use this line below to dump the environment variables for debugging system "env|sort >/tmp/plugins_env.$$" if defined($opts{d}); my %NAGIOS_ENV = map { $_ => $ENV{$_} } grep /^NAGIOS_/, keys %ENV; if ( defined($opts{h}) ) { print </tmp/temperature.dmp") if defined($opts{d}); my $warn= $opts{w}; my $crit= $opts{c}; my $debug = $opts{d}; my $hostaddress; if (defined $opts{H}) { $hostaddress=$opts{H}; } elsif (defined($NAGIOS_ENV{NAGIOS_HOSTADDRESS})) { $hostaddress = $NAGIOS_ENV{NAGIOS_HOSTADDRESS}; } else { $hostaddress="127.0.0.1" }; print DMP "hostaddress is $hostaddress.\n" if defined($opts{d}); my $output = "Temperature "; # Note: Don't code warning and critical values into check_snmp. Otherwise, check_snmp returns error code, even # when check runs correctly if temperature is out of bounds. #$_ = `/usr/lib/nagios/plugins/check_snmp -H $hostaddress -o .1.3.6.1.4.1.674.10892.1.700.20.1.6.1.3 -w 267 -c 332`; $_ = `/usr/lib/nagios/plugins/check_snmp -H $hostaddress -o .1.3.6.1.4.1.674.10892.1.700.20.1.6.1.3`; print DMP $_ if defined($opts{d}); close(DMP) if defined($opts{d}); if ($? != 0) { #There was an error calling the check_snmp routine... $output .= "UNKNOWN: CCP server room temperature could not be determined with host $hostaddress. Probable communications or host failure.\n"; print $output; exit 3; } print "Error code: $?\n" if $debug; print $_ if $debug; (my $tempC) = /=(\d+)/; #All the digits after the equals sign are the temperature in tenths of a degree Celsius $tempC /= 10; #Divide the returned value by 10 print "${tempC}C\n" if $debug; my $tempF = c2f($tempC); print "${tempF}F\n" if $debug; if ( defined $crit && $tempF >= $crit ) { $output .= "CRITICAL: CCP server room temperature of ${tempF}F exceeds critical temperature of $crit\n"; $output .= "Probable air conditioning failure.\n"; print $output; exit 2; } elsif ( defined $warn && $tempF >= $warn ) { $output .= "WARNING: CCP server room temperature of ${tempF}F exceeds warning temperature of $warn\n"; $output .= "Probable air conditioning failure.\n"; print $output; exit 1; } else { $output .= "OK: CCP server room temperature is ${tempF}F\n"; print $output; exit 0; } sub c2f { my $c = shift; return (9/5*$c +32); } sub f2c { my $f = shift; return (($f-32)*5/9); } nagios at cn2:/etc/nagios2/conf.d$ ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Nov 19 22:45:05 2007 From: ae at op5.se (Andreas Ericsson) Date: Mon, 19 Nov 2007 22:45:05 +0100 Subject: CheckNT In-Reply-To: <66955c170711191257i6ce657cdrb939b84f051e10bb@mail.gmail.com> References: <66955c170711191257i6ce657cdrb939b84f051e10bb@mail.gmail.com> Message-ID: <474203E1.2040803@op5.se> Jerad Riggin wrote: > I am monitoring the CPU load with NSClient on a host. Here is the > service definition > > define service{ > use windows-service > name check-cpu > notification_options w,u,c,r > check_command check_nt!CPULOAD!-l 5, 80, 90 > register 0 > } > > Here is the actual call to that service > > define service{ > use check-cpu > service_description CPU > contact_groups mis > hostgroup_name windows-clients > } > > Here is what I see in the nagios interface > > CPU OK 11-19-2007 14:56:07 122d 2h 7m 2s 1/5 not enough values for -l > parameters > > Any ideas? > Off the top of my head, you're not passing enough values for the -l parameter. On a more serious note, arguments are split by spaces when parsed by the shell. Remove the ones that are trailing the commas in the check_command line and it'll work just fine. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Mon Nov 19 22:46:25 2007 From: ae at op5.se (Andreas Ericsson) Date: Mon, 19 Nov 2007 22:46:25 +0100 Subject: how to get the current temp in a warning message sent In-Reply-To: References: Message-ID: <47420431.9010805@op5.se> Randy Paries wrote: > Hello, > I have the following service: > ==================================================== > define service{ > use generic-service > host_name bart > service_description Probe #1 Temperature > is_volatile 0 > check_period 24x7 > max_check_attempts 2 > normal_check_interval 5 > retry_check_interval 1 > contact_groups all_admins > notification_interval 120 > notification_period 24x7 > notification_options w,u,c,r > check_command check_temptraxf!/dev/ttyS0!1!74!78 > } > ==================================================== > > when i get a warning i get the message below. Is there a way to > include the current temp in the warning? > thanks for any help > > ==================================================== > ***** Nagios ***** > > Notification Type: PROBLEM > > Service: Probe #1 Temperature > Host: Bart #1 > Address: 192.168.0.214 > State: WARNING > > Date/Time: $ > > Additional Info: > > $ > ==================================================== > You're using the wrong macros. Try changing $OUTPUT$ to $SERVICEOUTPUT$ in your service notification macro. I don't know which one you want for date/time, but a glance at the documentation will tell you. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From adevey at omniture.com Mon Nov 19 22:50:36 2007 From: adevey at omniture.com (Aaron Devey) Date: Mon, 19 Nov 2007 14:50:36 -0700 Subject: Notifications In-Reply-To: <474204C8.9070209@omniture.com> References: <66955c170711191254y69684bc9i998924e980eeab8e@mail.gmail.com> <4741FC09.6020006@omniture.com> <66955c170711191317m63a6b7f1o18b93cb0e126ec06@mail.gmail.com> <474204C8.9070209@omniture.com> Message-ID: <4742052C.1030201@omniture.com> Forgot to include the list in the CC. Aaron Devey wrote: > I don't see any obvious problems with your service definitions. Did you > find out TrendMicro was down for 6 hours by reviewing the nagios logs? > If so, that means nagios at least saw the service had a problem. If you > found out it was down by some other means, perhaps you can check the > nagios logs to make sure nagios saw a "critical" or "warning" problem > with the service. > > Also, If you have log_notifications turned on, try examining the logs of > the timeperiod it was down. If you don't see any attempts to send a > notification for TrendMicro on lg03, then it's likely a configuration > problem somewhere. > > Finding it is the hard part. :) The first places I would check are the > service_notification_period, service_notification_options, and > service_notification_commands for the contacts in the 'mis' group. > Follow the service_notification_commands to make sure the command it > points to is set up correctly as well. If there are no problems there, > I'd make sure there are no service escalations for that service. > > If that doesn't help, I have no idea what the problem could be. :) > > Good luck, > > -Aaron > > > Jerad Riggin wrote: > >> define service{ >> name generic-service ; Generic >> service name >> active_checks_enabled 1 ; Active >> service checks are enabled >> passive_checks_enabled 1 ; Passive >> service checks are enabled/accepted >> parallelize_check 1 ; Active >> service checks should be parallelized (Don't disable) >> obsess_over_service 1 ; We should >> obsess over this service (if necessary) >> check_freshness 0 ; Default is >> to NOT check service 'freshness' >> notifications_enabled 1 ; Service >> notifications are enabled >> event_handler_enabled 1 ; Service >> event handler is enabled >> flap_detection_enabled 1 ; Flap >> detection is enabled >> process_perf_data 1 ; Process >> performance data >> retain_status_information 1 ; Retain >> status information across program restarts >> retain_nonstatus_information 1 ; Retain >> non-status information across program restarts >> register 0 ; DONT >> REGISTER THIS DEFINITION - NOT A REAL SERVICE, JUST A TEMPLATE! >> } >> >> >> define service{ >> use generic-service >> name windows-service >> is_volatile 0 >> check_period 24x7 >> max_check_attempts 5 >> normal_check_interval 3 >> retry_check_interval 1 >> notification_interval 15 >> notification_period 24x7 >> register 0 >> } >> >> define service{ >> use windows-service >> name check-trend >> notification_options w,u,c,r >> check_command check_nt!SERVICESTATE!-d >> SHOWALL -l ofcservice >> register 0 >> } >> >> define service{ >> use check-trend >> service_description TrendMicro >> contact_groups mis >> # hostgroup_name windows-clients >> host_name lg03 >> } >> >> >> > > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jriggin at gmail.com Mon Nov 19 22:55:08 2007 From: jriggin at gmail.com (Jerad Riggin) Date: Mon, 19 Nov 2007 15:55:08 -0600 Subject: Notifications In-Reply-To: <474204C8.9070209@omniture.com> References: <66955c170711191254y69684bc9i998924e980eeab8e@mail.gmail.com> <4741FC09.6020006@omniture.com> <66955c170711191317m63a6b7f1o18b93cb0e126ec06@mail.gmail.com> <474204C8.9070209@omniture.com> Message-ID: <66955c170711191355i45c65d9dlc2152ac3a97d2a10@mail.gmail.com> I found out via nagios. It said the duration was 6 hours for the outage, and I couldn't match it up with any alerts that were sent to my mailbox. Thanks for the tips On Nov 19, 2007 3:48 PM, Aaron Devey wrote: > I don't see any obvious problems with your service definitions. Did you > find out TrendMicro was down for 6 hours by reviewing the nagios logs? > If so, that means nagios at least saw the service had a problem. If you > found out it was down by some other means, perhaps you can check the > nagios logs to make sure nagios saw a "critical" or "warning" problem > with the service. > > Also, If you have log_notifications turned on, try examining the logs of > the timeperiod it was down. If you don't see any attempts to send a > notification for TrendMicro on lg03, then it's likely a configuration > problem somewhere. > > Finding it is the hard part. :) The first places I would check are the > service_notification_period, service_notification_options, and > service_notification_commands for the contacts in the 'mis' group. > Follow the service_notification_commands to make sure the command it > points to is set up correctly as well. If there are no problems there, > I'd make sure there are no service escalations for that service. > > If that doesn't help, I have no idea what the problem could be. :) > > Good luck, > > -Aaron > > > > Jerad Riggin wrote: > > > > define service{ > > name generic-service ; Generic > > service name > > active_checks_enabled 1 ; Active > > service checks are enabled > > passive_checks_enabled 1 ; Passive > > service checks are enabled/accepted > > parallelize_check 1 ; Active > > service checks should be parallelized (Don't disable) > > obsess_over_service 1 ; We should > > obsess over this service (if necessary) > > check_freshness 0 ; Default is > > to NOT check service 'freshness' > > notifications_enabled 1 ; Service > > notifications are enabled > > event_handler_enabled 1 ; Service > > event handler is enabled > > flap_detection_enabled 1 ; Flap > > detection is enabled > > process_perf_data 1 ; Process > > performance data > > retain_status_information 1 ; Retain > > status information across program restarts > > retain_nonstatus_information 1 ; Retain > > non-status information across program restarts > > register 0 ; DONT > > REGISTER THIS DEFINITION - NOT A REAL SERVICE, JUST A TEMPLATE! > > } > > > > > > define service{ > > use generic-service > > name windows-service > > is_volatile 0 > > check_period 24x7 > > max_check_attempts 5 > > normal_check_interval 3 > > retry_check_interval 1 > > notification_interval 15 > > notification_period 24x7 > > register 0 > > } > > > > define service{ > > use windows-service > > name check-trend > > notification_options w,u,c,r > > check_command check_nt!SERVICESTATE!-d > > SHOWALL -l ofcservice > > register 0 > > } > > > > define service{ > > use check-trend > > service_description TrendMicro > > contact_groups mis > > # hostgroup_name windows-clients > > host_name lg03 > > } > > > > > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Nov 19 23:00:51 2007 From: ae at op5.se (Andreas Ericsson) Date: Mon, 19 Nov 2007 23:00:51 +0100 Subject: notification_interval seems to be ignored In-Reply-To: <2E8AE992B157C0409B18D0225D0B476306CD9188@XCH-VN01.sph.ad.jhsph.edu> References: <2E8AE992B157C0409B18D0225D0B476306CD9168@XCH-VN01.sph.ad.jhsph.edu> <2E8AE992B157C0409B18D0225D0B476306CD916E@XCH-VN01.sph.ad.jhsph.edu><2E8AE992B157C0409B18D0225D0B476306CD917C@XCH-VN01.sph.ad.jhsph.edu><4741CF84.7000400@op5.se> <2E8AE992B157C0409B18D0225D0B476306CD9181@XCH-VN01.sph.ad.jhsph.edu> <2E8AE992B157C0409B18D0225D0B476306CD9188@XCH-VN01.sph.ad.jhsph.edu> Message-ID: <47420793.4050403@op5.se> Zembower, Kevin wrote: > Just a follow-up: Setting 'is_volatile 0' explicitly in the service > definition didn't seem to affect this behavior; it still sent me 3 > notifications, seemingly when the temperature changed. > Right, this is fairly weird. Escalations aren't in effect, is_volatile is set to zero. notification_interval is 0 and no other nagios install has this problem. Can you stop Nagios, make really sure it isn't running and start it again? Also verify that absolutely nothing else is sending notifications. You can do that by replacing the notification script with a home- hacked version that logs something somewhere every time it sends a notification and then cross-check that log with your notifications. If it still sends multiple notifications, It'll be quite hard to fix without enabling debugging in nagios, and that's quite tedious :-/ -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mark.potter at academy.com Mon Nov 19 23:15:29 2007 From: mark.potter at academy.com (mark.potter at academy.com) Date: Mon, 19 Nov 2007 16:15:29 -0600 Subject: Non-support/Interface question Message-ID: I have been tasked with creating an easy to view frontend for our helpdesk. I was using NagVis for their frontend but their latest request seems both a little basic and sort of complex for NagVis. I am hoping someone will be able to recommend a method of doing this that is easy to maintain. What they, essentially, want is a table with three columns. The first column will be the name of the hostgroup, the second would be the applications for the hostgroup (A single indicator for all apps that goes red if a single app fails), and the third would be the actual hosts. The second two columns are simply a red/yellow/green indicator with some fourth option for acknowledged problems while the first will be text large enough to read on their wall mount plasma screens. I could do this in NagVis with a background image for the columns/rows but it seems it would be much simpler and easier to maintain as php, html, perl etc. I could code such a page but do not have the in depth knowledge of Nagios to hook in and get the status information needed for the page. Does anyone know of a tool that will accomplish this without much trouble or an easy guide to developing such a thing? Thanks to all in advance for an replies. Best Regards, Mark L. Potter Systems Engineer Academy Sports & Outdoors 1800 N. Mason Rd Katy, Texas 77449 Office: 281-646-5857 Cell: 281-734-6965 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rtparies at gmail.com Mon Nov 19 23:50:01 2007 From: rtparies at gmail.com (Randy Paries) Date: Mon, 19 Nov 2007 16:50:01 -0600 Subject: how to get the current temp in a warning message sent In-Reply-To: <47420431.9010805@op5.se> References: <47420431.9010805@op5.se> Message-ID: Andreas changing $OUTPUT$ to $SERVICEOUTPUT$ worked!! thanks currently it is set to Date/Time: $DATETIME and this always is blank Thanks On Nov 19, 2007 3:46 PM, Andreas Ericsson wrote: > > Randy Paries wrote: > > Hello, > > I have the following service: > > ==================================================== > > define service{ > > use generic-service > > host_name bart > > service_description Probe #1 Temperature > > is_volatile 0 > > check_period 24x7 > > max_check_attempts 2 > > normal_check_interval 5 > > retry_check_interval 1 > > contact_groups all_admins > > notification_interval 120 > > notification_period 24x7 > > notification_options w,u,c,r > > check_command check_temptraxf!/dev/ttyS0!1!74!78 > > } > > ==================================================== > > > > when i get a warning i get the message below. Is there a way to > > include the current temp in the warning? > > thanks for any help > > > > ==================================================== > > ***** Nagios ***** > > > > Notification Type: PROBLEM > > > > Service: Probe #1 Temperature > > Host: Bart #1 > > Address: 192.168.0.214 > > State: WARNING > > > > Date/Time: $ > > > > Additional Info: > > > > $ > > ==================================================== > > > > You're using the wrong macros. Try changing $OUTPUT$ to $SERVICEOUTPUT$ in > your service notification macro. I don't know which one you want for > date/time, but a glance at the documentation will tell you. > > -- > Andreas Ericsson andreas.ericsson at op5.se > OP5 AB www.op5.se > Tel: +46 8-230225 Fax: +46 8-230231 > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From adevey at omniture.com Tue Nov 20 00:11:38 2007 From: adevey at omniture.com (Aaron Devey) Date: Mon, 19 Nov 2007 16:11:38 -0700 Subject: how to get the current temp in a warning messagesent In-Reply-To: References: <47420431.9010805@op5.se> Message-ID: <4742182A.2010204@omniture.com> Instead of $DATETIME try $SHORTDATETIME$ -Aaron Randy Paries wrote: > > Andreas > changing $OUTPUT$ to $SERVICEOUTPUT$ worked!! > thanks > > currently it is set to Date/Time: $DATETIME > and this always is blank > Thanks > > > > On Nov 19, 2007 3:46 PM, Andreas Ericsson wrote: > > > > Randy Paries wrote: > > > Hello, > > > I have the following service: > > > ==================================================== > > > define service{ > > > use generic-service > > > host_name bart > > > service_description Probe #1 Temperature > > > is_volatile 0 > > > check_period 24x7 > > > max_check_attempts 2 > > > normal_check_interval 5 > > > retry_check_interval 1 > > > contact_groups all_admins > > > notification_interval 120 > > > notification_period 24x7 > > > notification_options w,u,c,r > > > check_command check_temptraxf!/dev/ttyS0!1!74!78 > > > } > > > ==================================================== > > > > > > when i get a warning i get the message below. Is there a way to > > > include the current temp in the warning? > > > thanks for any help > > > > > > ==================================================== > > > ***** Nagios ***** > > > > > > Notification Type: PROBLEM > > > > > > Service: Probe #1 Temperature > > > Host: Bart #1 > > > Address: 192.168.0.214 > > > State: WARNING > > > > > > Date/Time: $ > > > > > > Additional Info: > > > > > > $ > > > ==================================================== > > > > > > > You're using the wrong macros. Try changing $OUTPUT$ to > $SERVICEOUTPUT$ in > > your service notification macro. I don't know which one you want for > > date/time, but a glance at the documentation will tell you. > > > > -- > > Andreas Ericsson andreas.ericsson at op5.se > > OP5 AB www.op5.se > > Tel: +46 8-230225 Fax: +46 8-230231 > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mail at aidananderson.co.uk Tue Nov 20 03:36:23 2007 From: mail at aidananderson.co.uk (Aidan Anderson) Date: Tue, 20 Nov 2007 02:36:23 +0000 Subject: Service notifications for a down host? In-Reply-To: <1F6FD8004708EE4AB79615574B34E85C015AEFAB@MAIL.mfi.marketforceinfo.com> References: <1F6FD8004708EE4AB79615574B34E85C015AEFAB@MAIL.mfi.marketforceinfo.com> Message-ID: <47424827.4050107@aidananderson.co.uk> Doug Tabb wrote: > > I?m looking for a little behavior confirmation here, please. It?s my > understanding that a failed service check is one way a host check is > initiated. If Nagios determines the host is down, further service > problem notifications are suppressed. However, I still get one or more > notifications for the initial service problems. Wouldn?t Nagios > suppress those initial service checks until at least one host check > has been made? > > For illustration, I have a remote site with host parent/child > relationships configured. If the site goes down, I get about 2 dozen > service notifications from various child hosts before it realizes the > top parent host is down and suppresses notifications for that site. I > then receive the one host recovery along with the 2 dozen or so > service recovery messages. I had hoped to not receive any service > notifications in this scenario. Is this expected behavior? > > Thank you very much! > > Doug Tabb > You shouldn't be seeing this behavior. The only time your should see this is if your services enter a hard state before the hosts. How does your host retry attempts compare to your service retry attempts? Aidan ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From daniel-listas at gmx.net Tue Nov 20 04:34:13 2007 From: daniel-listas at gmx.net (Daniel Bareiro) Date: Tue, 20 Nov 2007 00:34:13 -0300 Subject: Host object redefinition Message-ID: <20071120033413.GA8127@hermes.freesoftware.org> Hi all! This is my first post in the list/newsgroup. I've several hosts behind a firewall and I'd like to monitoring they with Nagios. These host haven't a public IP. Then, mi idea was to configure the firewall to redirect the Nagios server conection at specific port in the firewall ---one per host without public IP behind the firewall--- to remote NRPE listen port from the remote host. Then, I'd like to redefine the host object to include a port variable for call it in a general service definition. Example: define host { use linux-server-intranet host_name sdptest alias oracle server address a.b.c.d port 5000 parents beta icon_image base/debian.gif statusmap_image base/debian.gd2 } define service { use linux-server-intranet host_name apstest alias application server address x.y.z.t port 5001 parents beta icon_image base/debian.gif statusmap_image base/debian.gd2 } # 'check_nrpe-intranet' command definition define command{ command_name check_nrpe-intranet command_line $USER1$/check_nrpe -H ip.of.the.fw -p $PORT$ -c $ARG2$ } define service { use generic-service host_name apstest,sdptest service_description Disk usage check_command check_nrpe!check_disk check_period 24x7 normal_check_interval 5 retry_check_interval 1 max_check_attempts 3 } Is it possible? Thanks in advance. Regards, Daniel -- Daniel Bareiro - System Administrator Fingerprint: BFB3 08D6 B4D1 31B2 72B9 29CE 6696 BF1B 14E6 1D37 Powered by Debian GNU/Linux Etch - Linux user #188.598 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Tue Nov 20 06:22:41 2007 From: marc at ena.com (Marc Powell) Date: Mon, 19 Nov 2007 23:22:41 -0600 Subject: Service notifications for a down host? In-Reply-To: <47424827.4050107@aidananderson.co.uk> References: <1F6FD8004708EE4AB79615574B34E85C015AEFAB@MAIL.mfi.marketforceinfo.com> <47424827.4050107@aidananderson.co.uk> Message-ID: On Nov 19, 2007, at 8:36 PM, Aidan Anderson wrote: > Doug Tabb wrote: >> >> >> top parent host is down and suppresses notifications for that site. I >> then receive the one host recovery along with the 2 dozen or so >> service recovery messages. I had hoped to not receive any service >> notifications in this scenario. Is this expected behavior? >> >> Thank you very much! >> >> Doug Tabb >> > You shouldn't be seeing this behavior. The only time your should see > this is if your services enter a hard state before the hosts. How does > your host retry attempts compare to your service retry attempts? You should never see this if you have a host check that properly determines the state of the host. When the service returns a non-OK state, the host is checked immediately up to max_check_attempts. No service checks occur during this time. If the host is found to be down, all service notifications are suppressed until the host recovers. The Notifications documentation is more thorough on this. Are you sure that you have your parents directives set up properly? Are the service notifications for the services on the host that is down or child hosts? -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Tue Nov 20 06:25:52 2007 From: marc at ena.com (Marc Powell) Date: Mon, 19 Nov 2007 23:25:52 -0600 Subject: Host object redefinition In-Reply-To: <20071120033413.GA8127@hermes.freesoftware.org> References: <20071120033413.GA8127@hermes.freesoftware.org> Message-ID: On Nov 19, 2007, at 9:34 PM, Daniel Bareiro wrote: > Hi all! > > This is my first post in the list/newsgroup. > > I've several hosts behind a firewall and I'd like to monitoring they > with Nagios. These host haven't a public IP. Then, mi idea was to > configure the firewall to redirect the Nagios server conection at > specific port in the firewall ---one per host without public IP behind > the firewall--- to remote NRPE listen port from the remote host. > > Then, I'd like to redefine the host object to include a port variable > for call it in a general service definition. Example: > > define host { > use linux-server-intranet > host_name sdptest > alias oracle server > address a.b.c.d > port 5000 > parents beta > icon_image base/debian.gif > statusmap_image base/debian.gd2 > } With nagios-3, yes, but not with nagios-2. With nagios-2, you could pass it as a $ARGx$ macro from each service definition or create an nrpe command{} definition per host. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pacmansyu at gmail.com Tue Nov 20 07:24:44 2007 From: pacmansyu at gmail.com (Josh) Date: Tue, 20 Nov 2007 06:24:44 +0000 (UTC) Subject: Host object redefinition References: <20071120033413.GA8127@hermes.freesoftware.org> Message-ID: As an alternative, you could create an ssh tunnel to each of the machines (if they support it.) If not, maybe create an ssh tunnel to one machine and forward ports to other machines. Even though NRPE communication may be encrypted, it may be more secure to keep only one port open. my 2cents ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gcoochey at sapphire.gi Tue Nov 20 10:02:35 2007 From: gcoochey at sapphire.gi (Giles Coochey) Date: Tue, 20 Nov 2007 10:02:35 +0100 Subject: Staggering epager notifications In-Reply-To: <47419BA7.C02D.0075.0@vprmail.tamu.edu> References: <47419BA7.C02D.0075.0@vprmail.tamu.edu> Message-ID: <9D30659ABCA7FB428CF91E386C3A57449A7C93@hermes.sapphire-int.gi> > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Karl Katzke > Sent: 19 November 2007 21:20 > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Staggering epager notifications > > We're having a problem with Sprint's email-to-pager gateway will refuse > connections and defer messages with the response "Too many connections > from host" when Nagios is trying to alert all of us at once that something > has failed. Obviously, since we don't know it's happening unless we're in > the office, this isn't necessarily a good thing -- the person who really > needs to respond might not get their notification for minutes or hours, > and in the meantime, the service is down. > > We've found that if we send messages with a 5-second gap, Sprint doesn't > complain about us spamming their gateway. Is there a way to get Nagios (or > alternately the MTA, which I realize would be off-topic, but I'm not a MTA > guy) to stagger out the notifications --without some arcane hack like > using escalations? > I'm not an MTA guy, but it will be clearly better to do this via the MTA as Nagios does *nothing* while it handles notifications. Having said that, you can wrap each notification in a script with a "sleep 5" at the end of it and you will accomplish what you need. Bear in mind that Nagios does *nothing* else while it runs the notification script. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Tue Nov 20 10:50:16 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Tue, 20 Nov 2007 09:50:16 +0000 Subject: Monitoring hosts and DHCP In-Reply-To: References: Message-ID: <4742ADD8.2060204@googlemail.com> If you dhcp server is on unix, write some code to parse the dhcp leases file to give you the mapping as dynamic input to your check. eg. check_something -H `show_dhcp computer1` ...... or check_something -H `check_nrpe -H dhcp_server -c show_dhcp -a computer1` although this would require passing params through NRPE which I am absolutely against as a security risk. Alternatively you could define lots of nrpe definitions on the dhcp server to get around the need for args... show_dhcp_computer1 for example. Depends on how big your environment is really. I actually starting writing something to display dhcp leases but got sidetracked and didn't finish. If you could wait a little while, there is a good chance that you can just use what I am writing, although I started it just to see who was getting dhcp leases on my network to keep an easier eye on it. I will consider your situation and see what can be done about it when writing my plugin which I should pick up again and finish shortly... -h Hari Sekhon Matt Lozier wrote: > Hi Benny, > > Thank you for the reply, but unfortunately I'm not using DNS, and I don't > want to have to :-) > > Just want to know if there is a way to monitor hosts that obtain their IP > address via DHCP. > > I'll continue to see what I can do with this, and will reply to the list if > I find a solution. > > Thanks again, > > > --- > Matt Lozier > Network Administrator > 972.644.2581, ext. 248 > 972.661.2701 fax > > > > The information contained in this message or any attached document is > confidential and intended only for the individual(s) or entity to which it > is addressed. The information should be considered privileged and > confidential. If you are not the intended recipient, you are hereby > notified that any unauthorized use of the information contained in or > transmitted with the communication, or dissemination, distribution, or > copying of this communication is strictly prohibited by law. If you have > received this communication in error, please inform the sender by > immediately returning this communication to the sender and then deleting the > original message and any copy of it in your possession. > > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of C. Bensend > Sent: Monday, November 19, 2007 9:45 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Monitoring hosts and DHCP > > > >> I'm monitoring about 30 machines using Nagios with SNMP checks. I also >> have >> a DHCP server casting each machine on the network their IP address on >> start-up. Some machines stay on the majority of the time, others for only >> 4-8 hours a day. The machines generally maintain their same IP address >> over >> time as DHCP is designed to try and give a machine back it's same IP, so >> long as it's available. However, there have been times when a machine has >> changed its IP addresses as a result of using DHCP on this LAN. >> > > http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#host > > Pay particular attention to the address section... You can use > the hostname in place of the IP address, at the cost of doing a > DNS lookup when the host is checked. > > Benny > > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Tue Nov 20 11:00:22 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Tue, 20 Nov 2007 10:00:22 +0000 Subject: Monitoring hosts and DHCP In-Reply-To: <2556.134.244.169.17.1195504775.squirrel@webmail.stinkweasel.net> References: <2556.134.244.169.17.1195504775.squirrel@webmail.stinkweasel.net> Message-ID: <4742B036.3090004@googlemail.com> C. Bensend wrote: > Ummmmmm... So how do you access the hosts, if they're switching > IPs on you and you're not using DNS? Do you just rely on WINS or > something? > > You could set up passive checks, and have the DHCPized machines > *send* you the test results, that way Nagios wouldn't have to have > some way of addressing them. I *think* that would work? I've > never tried it. > > Benny > Yes in fact this is a good idea Benny, since the NSCA calls embed the hostname in the message so that it doesn't rely on the IP/hostname of the originator. This should entirely work. If implementing a lot of passive checks though, you should really check out NSCA Wrapper on Nagios Exchange. I wrote it cos writing a wrapper to send nsca result for every single check seems to be a waste of time. Just run ./nsca_wrapper -H hostname -S service_name -C '/path/to/plugin -args' and the /path/to/plugin is run, results formatted properly and then submitted to the Nagios server as an NSCA result, no code writing required. Of course you have to have set up NSCA first, it's not magic after all... NSCA Wrapper can be found here: http://www.nagiosexchange.org/Check_Plugins.21.0.html?&tx_netnagext_pi1[p_view]=980 Because there are better things to have to write a shell script for every check to make it a passive check. If you're using Windows on the remote hosts, then I think the only solution in that case is to use NC_Net as the only Windows nagios monitoring client that supports NSCA (correct me if you know of any other decent ones), but I'm less keen on this than on NSClient++ since it's harder to deploy (NSClient++ is very easy to deploy even to a very large number of hosts since you can easily script the deployment - and I did). NC_Net has dependency on .NET Framework which means you have to go around manually installing that everywhere, it always gives a pop up to complete the installation, so definitely not as nice and simple as NSClient++. So that's the whole NSCA bag if you want it. -h Hari Sekhon ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From efrazier at ic-agency.com Tue Nov 20 14:26:59 2007 From: efrazier at ic-agency.com (Eric Frazier) Date: Tue, 20 Nov 2007 09:26:59 -0400 Subject: Nagios plugin for Ganglia data and NRPE Message-ID: <4742E0A3.4050302@ic-agency.com> Hi, I have been wondering, there is a lot I like about Ganglia and a lot of people I have talked to agree. It is small and very efficient and not hard to expand. What I wondered is if anyone has heard of a Nagios/Ganglia plugin or even examples of people replacing NRPE with Gangila's monitor daemon? Same question goes for Cacti or Monit.. I keep wondering if anyone is trying to tie some of this stuff together? Thanks, Eric -------------- next part -------------- A non-text attachment was scrubbed... Name: efrazier.vcf Type: text/x-vcard Size: 221 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dario.bestetti at opservices.com.br Tue Nov 20 14:56:59 2007 From: dario.bestetti at opservices.com.br (Dario B. Bestetti) Date: Tue, 20 Nov 2007 11:56:59 -0200 Subject: OpMon Agent version 2.5.0.12 Message-ID: <15934.6810346053$1195567077@news.gmane.org> We have as of now NRPE version 2 support built in OpMonAgent. The new version and documentation can be downloaded from: http://www.opservices.com.br/index.php?option=com_content&task=view&id=54&It emid=54 Please notice that NRPE does not support SSL yet, so it must be called with the option -n, check_nrpe -n Suggestions and bugs can be sent to our support forum at https://intranet.opservices.com.br/phpBB2/ Thanks. _________________________________________________ Dario B. Bestetti????????OpServices ??????????????????????????????????R. Luciana de Abreu, 471 - Sala 403 ??????????????????????????????????Porto Alegre, RS - CEP 90570-060 Fone 55(51)30613588 Mobile? 55(51)81518218 Fax???? 55(51)30613588? Email??? dario.bestetti at opservices.com.br ? ???????????????"In God we trust, the rest we monitor ..." _________________________________________________ ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mlozier at spindletopoil.com Tue Nov 20 15:27:36 2007 From: mlozier at spindletopoil.com (Matt Lozier) Date: Tue, 20 Nov 2007 08:27:36 -0600 Subject: Monitoring hosts and DHCP In-Reply-To: <4742ADD8.2060204@googlemail.com> References: <4742ADD8.2060204@googlemail.com> Message-ID: Hari, Thank you for this suggestion, but we do have a very small LAN here, and we simply use the DHCP daemon that is comes with the software on our router. If I were managing a larger LAN, it's likely that I would use a *nix host to run a DHCP daemon. I've configured the router so that it reserves a given IP for a given MAC that is regularly on the network. This way, the DHCP daemon can still do its job of auto-assigning IPs to new machines, but it can also see to it that the IP doesn't change over time (which solves the problem that I was experiencing using Nagios). Thanks to everyone for your help and suggestions! --- Matt Lozier IT Analyst 972.644.2581, ext. 248 972.661.2701 fax The information contained in this message or any attached document is confidential and intended only for the individual(s) or entity to which it is addressed. The information should be considered privileged and confidential. If you are not the intended recipient, you are hereby notified that any unauthorized use of the information contained in or transmitted with the communication, or dissemination, distribution, or copying of this communication is strictly prohibited by law. If you have received this communication in error, please inform the sender by immediately returning this communication to the sender and then deleting the original message and any copy of it in your possession. -----Original Message----- From: Hari Sekhon [mailto:hpsekhon at googlemail.com] Sent: Tuesday, November 20, 2007 3:50 AM To: Matt Lozier Cc: 'C. Bensend'; nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Monitoring hosts and DHCP If you dhcp server is on unix, write some code to parse the dhcp leases file to give you the mapping as dynamic input to your check. eg. check_something -H `show_dhcp computer1` ...... or check_something -H `check_nrpe -H dhcp_server -c show_dhcp -a computer1` although this would require passing params through NRPE which I am absolutely against as a security risk. Alternatively you could define lots of nrpe definitions on the dhcp server to get around the need for args... show_dhcp_computer1 for example. Depends on how big your environment is really. I actually starting writing something to display dhcp leases but got sidetracked and didn't finish. If you could wait a little while, there is a good chance that you can just use what I am writing, although I started it just to see who was getting dhcp leases on my network to keep an easier eye on it. I will consider your situation and see what can be done about it when writing my plugin which I should pick up again and finish shortly... -h Hari Sekhon Matt Lozier wrote: > Hi Benny, > > Thank you for the reply, but unfortunately I'm not using DNS, and I don't > want to have to :-) > > Just want to know if there is a way to monitor hosts that obtain their IP > address via DHCP. > > I'll continue to see what I can do with this, and will reply to the list if > I find a solution. > > Thanks again, > > > --- > Matt Lozier > Network Administrator > 972.644.2581, ext. 248 > 972.661.2701 fax > > > > The information contained in this message or any attached document is > confidential and intended only for the individual(s) or entity to which it > is addressed. The information should be considered privileged and > confidential. If you are not the intended recipient, you are hereby > notified that any unauthorized use of the information contained in or > transmitted with the communication, or dissemination, distribution, or > copying of this communication is strictly prohibited by law. If you have > received this communication in error, please inform the sender by > immediately returning this communication to the sender and then deleting the > original message and any copy of it in your possession. > > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of C. Bensend > Sent: Monday, November 19, 2007 9:45 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Monitoring hosts and DHCP > > > >> I'm monitoring about 30 machines using Nagios with SNMP checks. I also >> have >> a DHCP server casting each machine on the network their IP address on >> start-up. Some machines stay on the majority of the time, others for only >> 4-8 hours a day. The machines generally maintain their same IP address >> over >> time as DHCP is designed to try and give a machine back it's same IP, so >> long as it's available. However, there have been times when a machine has >> changed its IP addresses as a result of using DHCP on this LAN. >> > > http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#host > > Pay particular attention to the address section... You can use > the hostname in place of the IP address, at the cost of doing a > DNS lookup when the host is checked. > > Benny > > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From richardsolid at gmail.com Tue Nov 20 16:29:23 2007 From: richardsolid at gmail.com (Jake Solid) Date: Tue, 20 Nov 2007 10:29:23 -0500 Subject: (no subject) Message-ID: I'm currently running the following version of Cent OS with Sybase 12.5: Linux database.domain.com 2.6.14.3-vs2.0.1-rc5 #1 SMP Tue Dec 6 14:19:56 EST 2005 x86_64 x86_64 x86_64 GNU/Linu Can anyone suggest a plugin to monitor the space of a sybase database? Regards, -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From richardsolid at gmail.com Tue Nov 20 16:35:27 2007 From: richardsolid at gmail.com (Jake Solid) Date: Tue, 20 Nov 2007 10:35:27 -0500 Subject: Sybase plugin? Message-ID: I'm currently running the following version of Cent OS with Sybase 12.5: Linux database.domain.com 2.6.14.3-vs2.0.1-rc5 #1 SMP Tue Dec 6 14:19:56 EST 2005 x86_64 x86_64 x86_64 GNU/Linu Can anyone suggest a plugin to monitor the space of a sybase database? Regards, -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Tue Nov 20 16:41:50 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Tue, 20 Nov 2007 15:41:50 +0000 Subject: (no subject) In-Reply-To: References: Message-ID: <4743003E.8090302@googlemail.com> 1 . It helps to have a subject 2. Have you tried www.NagiosExchange.org? This 2 second search seems to have found check_sybase: http://www.nagiosexchange.org/Search_Projects.43.0.html?tx_netnagext_pi1%5Bphrase%5D=sybase&tx_netnagext_pi1%5Bsubmit%5D=search&tx_netnagext_pi1%5Bsearch%5D=1 -h Hari Sekhon Jake Solid wrote: > I'm currently running the following version of Cent OS with Sybase 12.5: > > Linux database.domain.com > 2.6.14.3-vs2.0.1-rc5 #1 SMP Tue Dec 6 14:19:56 EST 2005 x86_64 x86_64 > x86_64 GNU/Linu > > Can anyone suggest a plugin to monitor the space of a sybase database? > > Regards, > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From leosilva at tse.gov.br Tue Nov 20 17:11:06 2007 From: leosilva at tse.gov.br (Leandro Silva) Date: Tue, 20 Nov 2007 13:11:06 -0300 Subject: Notification by email Message-ID: <004e01c82b8f$f4af3560$2df41c0a@tse.gov.br> Hi I'm using nagios 2.10 and every time i have a email with notification it is send two times the same email. How can i resolve it? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeff.perri at shaw.ca Tue Nov 20 16:49:44 2007 From: jeff.perri at shaw.ca (Jeff Perri) Date: Tue, 20 Nov 2007 10:49:44 -0500 Subject: Notification by email In-Reply-To: <004e01c82b8f$f4af3560$2df41c0a@tse.gov.br> References: <004e01c82b8f$f4af3560$2df41c0a@tse.gov.br> Message-ID: Have you checked your contacts.cfg file to make sure your email address is only specified once? _____ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Leandro Silva Sent: Tuesday, November 20, 2007 11:11 AM To: Nagios-users at lists.sourceforge.net Subject: [Nagios-users] Notification by email Hi I'm using nagios 2.10 and every time i have a email with notification it is send two times the same email. How can i resolve it? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dtabb at marketforceinfo.com Tue Nov 20 17:57:53 2007 From: dtabb at marketforceinfo.com (Doug Tabb) Date: Tue, 20 Nov 2007 09:57:53 -0700 Subject: Service notifications for a down host? In-Reply-To: <47424827.4050107@aidananderson.co.uk> References: <1F6FD8004708EE4AB79615574B34E85C015AEFAB@MAIL.mfi.marketforceinfo.com> <47424827.4050107@aidananderson.co.uk> Message-ID: <1F6FD8004708EE4AB79615574B34E85C015AEFB6@MAIL.mfi.marketforceinfo.com> > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Aidan Anderson > Sent: Monday, November 19, 2007 7:36 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Service notifications for a down host? > > Doug Tabb wrote: > > > > I'm looking for a little behavior confirmation here, please. It's my > > understanding that a failed service check is one way a host check is > > initiated. If Nagios determines the host is down, further service > > problem notifications are suppressed. However, I still get one or more > > notifications for the initial service problems. Wouldn't Nagios > > suppress those initial service checks until at least one host check > > has been made? > > > > For illustration, I have a remote site with host parent/child > > relationships configured. If the site goes down, I get about 2 dozen > > service notifications from various child hosts before it realizes the > > top parent host is down and suppresses notifications for that site. I > > then receive the one host recovery along with the 2 dozen or so > > service recovery messages. I had hoped to not receive any service > > notifications in this scenario. Is this expected behavior? > > > > Thank you very much! > > > > Doug Tabb > > > You shouldn't be seeing this behavior. The only time your should see > this is if your services enter a hard state before the hosts. How does > your host retry attempts compare to your service retry attempts? > > Aidan > That's my problem! Services go to a hard state after one try. Obviously, that's no good. I'll change it. Thanks! -Doug ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Roger at NagiosWiki.com Wed Nov 21 00:56:57 2007 From: Roger at NagiosWiki.com (Roger) Date: Tue, 20 Nov 2007 15:56:57 -0800 Subject: SNMP autodiscovery / Puppet Naginator question Message-ID: <2b7af7c40711201556m62dbad43t3aaa18430aa25996@mail.gmail.com> I'm looking for ways to autocreate Nagios config files, using Puppet's Naginator, but before I can do that, I need to clear up an autodiscovery problem I have. I'm hoping someone here on the list has done something like that before. I would like to query a network device (e.g. Cisco) and get all its routes (as if I typed in something like "show ip route"). Is SNMP "standardized" to the point where I can send one query to any network device and have it return to me the route statements, regardless of the make, model, or vendor of my networking device? If anyone could point me in the right direction of what I should be looking for, I would be eternally grateful! ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Roger at NagiosWiki.com Wed Nov 21 01:57:58 2007 From: Roger at NagiosWiki.com (Roger) Date: Tue, 20 Nov 2007 16:57:58 -0800 Subject: checking wmi with Linux (and not using NSClient++) Message-ID: <2b7af7c40711201657n77656db1h1f43f739b65e9b95@mail.gmail.com> I'm looking for a Linux-based tool that will let me making simple WMI queries on a Windows server. Yes, I know that I can use NSClient++ (or equivalent) on the Windows server to listen for my check_npre commands, but I'm hoping that there is a "quick and dirty" *nix-based tool that will let me do this without having to resort to always having to install NSClient++. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From clee.hk at gmail.com Wed Nov 21 02:22:01 2007 From: clee.hk at gmail.com (Chris Lee) Date: Wed, 21 Nov 2007 02:22:01 +0100 (CET) Subject: Sybase plugin? In-Reply-To: References: Message-ID: <20071121012201.154FE4F4045@desire.netways.de> Hi Jake Have you tried this plugin? http://www.nagiosexchange.org/Others.152.0.html?&tx_netnagext_pi1[p_view]=218 Regards, - Chris Lee (cleegt) ----------------------- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi1[showUid]=6720 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From RLAdams at AdamsInfoServ.Com Wed Nov 21 06:47:10 2007 From: RLAdams at AdamsInfoServ.Com (Russell Adams) Date: Tue, 20 Nov 2007 23:47:10 -0600 Subject: SNMP autodiscovery / Puppet Naginator question In-Reply-To: <2b7af7c40711201556m62dbad43t3aaa18430aa25996@mail.gmail.com> References: <2b7af7c40711201556m62dbad43t3aaa18430aa25996@mail.gmail.com> Message-ID: <20071121054710.GB31587@odin.demosthenes.org> Have a look at NACE: http://www.nagiosexchange.org/Configuration.20.0.html?&tx_netnagext_pi1[p_view]=277 NACE provides a toolkit for creating queries to generate Nagios configurations from any kind of data. One of the examples is creating disk space check services for every drive autodetected via SNMP on a remote host. This would be similar to your route issue. Let me know if you find it useful! Russell On Tue, Nov 20, 2007 at 03:56:57PM -0800, Roger wrote: > I'm looking for ways to autocreate Nagios config files, using Puppet's > Naginator, but before I can do that, I need to clear up an > autodiscovery problem I have. I'm hoping someone here on the list has > done something like that before. > > I would like to query a network device (e.g. Cisco) and get all its > routes (as if I typed in something like "show ip route"). Is SNMP > "standardized" to the point where I can send one query to any network > device and have it return to me the route statements, regardless of > the make, model, or vendor of my networking device? > > If anyone could point me in the right direction of what I should be > looking for, I would be eternally grateful! > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------ Russell Adams RLAdams at AdamsInfoServ.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stephen.wing at steria.co.uk Wed Nov 21 09:07:34 2007 From: stephen.wing at steria.co.uk (stephen wing) Date: Wed, 21 Nov 2007 08:07:34 -0000 Subject: PING WARNING - DUPLICATES FOUND! Message-ID: <001f01c82c15$92f934c0$8202a8c0@uk.sterianet> Hi All I have an intermittent ping problem. I am running nagios 1.2 on AIX and an monitoring both AIX and Windows client. I do a ping test using the check_ping command, but sometimes I get a problem with the ping which says "PING WARNING - DUPLICATES FOUND!", this then sends me the notification, then almost immediately I get the recovery notification. Can anybody explain why this happens and is there anything I can do to stop getting these false errors. Regards Stephen --------------------------------------- Stephen Wing Steria Limited Senior Technical Consultant Telephone 02890393605 Mobile 07966823605 ***************************************************************** This email originates from Steria Limited, registered office: Three Cherry Trees Lane, Hemel Hempstead, Hertfordshire HP2 7AH; Registered in England and Wales, number 2706218; www.steria.co.uk. This email and any attachments may contain confidential information and may be subject to copyright or other intellectual property rights. It is only for the use of the addressee(s). You are prohibited from copying, forwarding, disclosing, saving or otherwise using it in any way if you are not the addressee(s) or responsible for delivery. If you receive this email by mistake, please advise the sender and cancel it immediately. Steria may monitor the content of emails within its network to ensure compliance with its policies and procedures. Any email is susceptible to alteration and its integrity cannot be assured. Steria shall not be liable if the message is altered, modified, falsified, or edited. ================================================ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From J.Filon at office.caiw.nl Wed Nov 21 09:13:03 2007 From: J.Filon at office.caiw.nl (Jasper Filon) Date: Wed, 21 Nov 2007 09:13:03 +0100 Subject: Escalations causing "Recover" messages with no problem message send Message-ID: <6EFD6B9CD50A0643A79CEE5BA3894B8801DF775B@neo.office.caiw.intern> Dear All, I'm implementing Nagios for a large ISP in the Netherlands. I configured all service-notifications to be sent to both the "linux-admin" group and the "linux-admin-sms" group. The first is by email, the second by sms. The Linux-admin-sms is set to only accept C, U and R (critical, unknown, recovered) messages for services. We want the first notification that something is wrong (either critical or warning) not by sms, but only by email. In order to keep configuration as easy as possible and minimizing the work of adding a new host, I simply made an service "escalation" stating: ## All first notifications only go by email define serviceescalation{ host_name * service_description * contact_groups linux-admins; first_notification 1 last_notification 1 notification_interval 15 } This works fine and causes the first message to be only send by Email. Any Critical message beyond the first goes by sms as well as intented. This has an unintended side-effect in case the services goed through the following sequence: - Service goes critical -> notification by email (first notification) - Service goes warning -> notification by email (2nd allert, but no sms is send for warnings) - Service goes ok -> recovery notification by email _and by sms_ Obviously, it is unwanted that a recovery message is send out by SMS in this case, because the recipient didnt know there was a problem in the first place. According to the documentation, this should not be possible: http://nagios.sourceforge.net/docs/2_0/notifications.html#contacts Note: Notifications about host or service recoveries are only sent out if a notification was sent out for the original problem. It doesn't make sense to get a recovery notification for something you never knew was a problem... Can somebody give me more information regarding the way Nagios handles notifications? I thought the above url explained everything clearly but it doesnt explain this problem. Any help appreciated. Met vriendelijke groet/With kind regards, Jasper Filon CAIWAY Business ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bdacosta at csc.com Wed Nov 21 09:18:12 2007 From: bdacosta at csc.com (Benoit da Costa) Date: Wed, 21 Nov 2007 09:18:12 +0100 (CET) Subject: nrpe and backslash Message-ID: <20071121081812.6A06B4F4045@desire.netways.de> Hi there ! I'm using Nagios on a linux OpenSuse 10.2 and NRPE_NT 0.8.0.2. I created different script (batch) on Windows wich work well. Now I scripted a file check and I have problem with backslashes (\) So I used a simple script as follow (test.cmd) : echo %* exit 0 And I use check_nrpe from Suse, trying to send \ like this : ./check_nrpe -H tbm000fb4x00454 -c check_arg\!test which returns : test But the problem comes when I try that : ./check_nrpe -H tbm000fb4x00454 -c check_arg\!test\\this Which returns this : CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages. And on the log : 2007-11-21 09:16:05; 2116; 4;Error: Request contained illegal metachars! 2007-11-21 09:16:05; 2116; 4;Client request was invalid, bailing out... I suppose that as nrpe_nt is made to work on Windows, it should be a way to send a backslash, but I can't... Is someone can help me with it ? Best Regards, Benoit Benoit da Costa ----------------------- The mailing list archive is found here: http://www.nagiosexchange.org/nagios-users.34.0.html ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dennis at huenseler.net Wed Nov 21 09:54:35 2007 From: dennis at huenseler.net (=?UTF-8?Q?Dennis_H=C3=BCnseler?=) Date: Wed, 21 Nov 2007 09:54:35 +0100 Subject: PING WARNING - DUPLICATES FOUND! In-Reply-To: <001f01c82c15$92f934c0$8202a8c0@uk.sterianet> References: <001f01c82c15$92f934c0$8202a8c0@uk.sterianet> Message-ID: <30e3aae507966283fcaedcdfc0af299e@localhost> Hello Stephen, this isn't a nagios error. You seem to have some Problems with your network. Try pinging the monitored host from your nagios host and there you should also see duplicate icmp-replys... If you get this take a look at your network. kind regards, Dennis On Wed, 21 Nov 2007 08:07:34 -0000, "stephen wing" wrote: Hi All I have an intermittent ping problem. I am running nagios 1.2 on AIX and an monitoring both AIX and Windows client. I do a ping test using the check_ping command, but sometimes I get a problem with the ping which says “PING WARNING - DUPLICATES FOUND!”, this then sends me the notification, then almost immediately I get the recovery notification. Can anybody explain why this happens and is there anything I can do to stop getting these false errors. Regards Stephen --------------------------------------- Stephen Wing Steria Limited Senior Technical Consultant Telephone 02890393605 Mobile 07966823605 ***************************************************************** This email originates from Steria Limited, registered office: Three Cherry Trees Lane, Hemel Hempstead, Hertfordshire HP2 7AH; Registered in England and Wales, number 2706218; www.steria.co.uk. This email and any attachments may contain confidential information and may be subject to copyright or other intellectual property rights. It is only for the use of the addressee(s). You are prohibited from copying, forwarding, disclosing, saving or otherwise using it in any way if you are not the addressee(s) or responsible for delivery. If you receive this email by mistake, please advise the sender and cancel it immediately. Steria may monitor the content of emails within its network to ensure compliance with its policies and procedures. Any email is susceptible to alteration and its integrity cannot be assured. Steria shall not be liable if the message is altered, modified, falsified, or edited. ================================================ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mortenmh at gmail.com Wed Nov 21 10:08:44 2007 From: mortenmh at gmail.com (Morten M. Hansen) Date: Wed, 21 Nov 2007 10:08:44 +0100 Subject: mrtg.cfg / nagiostats for nagios 2.6 Message-ID: Hi All Anyone who has a good mrtg.cfg to use with nagiostats from nagios 2.6. The sample mrtg.cfg I can find for nagios 2.7 doesn't seem to work well with the nagiostats from 2.6. (I'm stuck with debian stable). Regards Morten ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From thurgroup at gmail.com Wed Nov 21 10:55:42 2007 From: thurgroup at gmail.com (Roger Dierauer) Date: Wed, 21 Nov 2007 10:55:42 +0100 Subject: PING WARNING - DUPLICATES FOUND! In-Reply-To: <30e3aae507966283fcaedcdfc0af299e@localhost> References: <001f01c82c15$92f934c0$8202a8c0@uk.sterianet> <30e3aae507966283fcaedcdfc0af299e@localhost> Message-ID: Hi this phaenomen is also by me so... it seams, wenn you have ospf-network roules configured so the ping retourns on a second wire... its not a problem, but an interpretation issue from nagios kind regards roger 2007/11/21, Dennis H?nseler : > > Hello Stephen, > > this isn't a nagios error. You seem to have some Problems with your > network. Try pinging the monitored host from your nagios host and there you > should also see duplicate icmp-replys... If you get this take a look at your > network. > > > > kind regards, Dennis > > > > On Wed, 21 Nov 2007 08:07:34 -0000, "stephen wing" wrote: > > Hi All > > I have an intermittent ping problem. I am running nagios 1.2on AIX and an monitoring both AIX and Windows client. I do a ping test using > the check_ping command, but sometimes I get a problem with the ping which > says "PING WARNING - DUPLICATES FOUND!", this then sends me the > notification, then almost immediately I get the recovery notification. Can > anybody explain why this happens and is there anything I can do to stop > getting these false errors. > > > > Regards > > Stephen > > > > --------------------------------------- > > Stephen Wing > > Steria Limited > > Senior Technical Consultant > > Telephone 02890393605 > > Mobile 07966823605 > > > > ***************************************************************** > This email originates from Steria Limited, registered office: Three Cherry > Trees Lane, Hemel Hempstead, Hertfordshire HP2 7AH; Registered in England > and Wales, number 2706218; www.steria.co.uk. > > This email and any attachments may contain confidential information and > may be subject to copyright or other intellectual property rights. It is > only for the use of the addressee(s). You are prohibited from copying, > forwarding, disclosing, saving or otherwise using it in any way if you are > not the addressee(s) or responsible for delivery. > If you receive this email by mistake, please advise the sender and cancel > it immediately. > Steria may monitor the content of emails within its network to ensure > compliance with its policies and procedures. > Any email is susceptible to alteration and its integrity cannot be > assured. Steria shall not be liable if the message is altered, modified, > falsified, or edited. > ================================================ > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- ThurGroup Informatik Dierauer Roger Dierauer eidg. Informatiker mit FA VMware Certified Professional Egelsee Strasse 20a 9535 Wilen bei Wil Mobile: +41 79 216 34 86 Fax: +41 71 911 81 80 info at thurgroup.ch http://thurgroup.ch ==> Online-Shop mit IT - Bedarf zu fairen Preisen und schneller Lieferung http://shop.thurgroup.ch <== -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bdacosta at csc.com Wed Nov 21 11:14:44 2007 From: bdacosta at csc.com (Benoit da Costa) Date: Wed, 21 Nov 2007 11:14:44 +0100 (CET) Subject: nrpe and backslash In-Reply-To: <20071121081812.6A06B4F4045@desire.netways.de> References: <20071121081812.6A06B4F4045@desire.netways.de> Message-ID: <20071121101444.872624F4045@desire.netways.de> Hi Benoit This problem can be solved like this : Send / from linux commands. Modify the windows script like this : set tmp=%* set tmp=%tmp:/=\% echo %tmp% exit 0 As Windows path or files cannot contains /, there should be no problem using slash. - Benoit da Costa (bdacosta) ----------------------- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi1[showUid]=6739 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Wed Nov 21 11:42:31 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Wed, 21 Nov 2007 10:42:31 +0000 Subject: checking wmi with Linux (and not using NSClient++) In-Reply-To: <2b7af7c40711201657n77656db1h1f43f739b65e9b95@mail.gmail.com> References: <2b7af7c40711201657n77656db1h1f43f739b65e9b95@mail.gmail.com> Message-ID: <47440B97.2090205@googlemail.com> Roger wrote: > I'm looking for a Linux-based tool that will let me making simple WMI > queries on a Windows server. > > Yes, I know that I can use NSClient++ (or equivalent) on the Windows > server to listen for my check_npre commands, but I'm hoping that there > is a "quick and dirty" *nix-based tool that will let me do this > without having to resort to always having to install NSClient++. > I've also been looking at this recently, and it looks like things like wbemcli can be used from linux, but iirc this requires a wmi gateway which means installing some server software, and this is much more hassle than just using nsclient++. A couple of open source wbem gateways that I came across were OpenWbem and OpenPegasus, although I've not had time to try either yet so I can't vouch for how good they are. Although relying on nsclient++ is not as pure as just a straight wmi query, you only really need 1 nsclient++ installation, from which you can run wmi queries against any number of windows machines on your network. I am also very interested in this stuff at the moment, so please let me know what you figure out on this. -h -- Hari Sekhon ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Wed Nov 21 11:48:19 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Wed, 21 Nov 2007 10:48:19 +0000 Subject: nrpe and backslash In-Reply-To: <20071121081812.6A06B4F4045@desire.netways.de> References: <20071121081812.6A06B4F4045@desire.netways.de> Message-ID: <47440CF3.3050803@googlemail.com> Benoit da Costa wrote: > But the problem comes when I try that : > ./check_nrpe -H tbm000fb4x00454 -c check_arg\!test\\this > I would absolutely try not to send any args through nrpe, but instead disallowing args and predefining the checks you want in the nrpe config, then calling a command definition which contains the args. It's safer from a security standpoint and also easier to avoid these kinds of issues, maintaining tighter control over your remote execution checks. -h -- Hari Sekhon ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mugnoz.pilar at gmail.com Wed Nov 21 12:09:31 2007 From: mugnoz.pilar at gmail.com (=?ISO-8859-1?Q?Pili_Mu=F1oz_Gargallo?=) Date: Wed, 21 Nov 2007 12:09:31 +0100 Subject: [nagios]Problem starting web interface Message-ID: <53317ec10711210309v1dac9b67vde38f92316e14332@mail.gmail.com> Hi all, I?ve just installed Nagios and it give a warning in http service: HTTP WARNING: Http/1.1 403 Forbidden How i can solve it? it is possible? when i restarted http it failed but when i retried it stopped well and it started ok... i think it wasn't a problem but now i am not sure... I'm waiting for your responses.. Thank you in advance Pili -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ramiro.salvador at siemens.com Wed Nov 21 12:14:36 2007 From: ramiro.salvador at siemens.com (Salvador Lozano, Ramiro) Date: Wed, 21 Nov 2007 12:14:36 +0100 Subject: [nagios]Problem starting web interface In-Reply-To: <53317ec10711210309v1dac9b67vde38f92316e14332@mail.gmail.com> References: <53317ec10711210309v1dac9b67vde38f92316e14332@mail.gmail.com> Message-ID: <608122A3208C154C9C5799CDEA92029B01527C01@ESMADT502A.es001.siemens.net> Hello Pilar, If you made a standard installation Nagios will monitor your local resources. You probably installed Nagios in the /nagios subdirectory. If you don't have a web page in / then the http plugin will check that and raise an error. This is normal. You have the option of disabling http monitor in the localhost or change the command definition for localhost so it don't check / Regards, Ramiro ________________________________ De: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] En nombre de Pili Mu?oz Gargallo Enviado el: mi?rcoles, 21 de noviembre de 2007 12:10 Para: nagios-users at lists.sourceforge.net Asunto: [Nagios-users] [nagios]Problem starting web interface Hi all, I?ve just installed Nagios and it give a warning in http service: HTTP WARNING: Http/1.1 403 Forbidden How i can solve it? it is possible? when i restarted http it failed but when i retried it stopped well and it started ok... i think it wasn't a problem but now i am not sure... I'm waiting for your responses.. Thank you in advance Pili -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dubrowin.list at gmail.com Wed Nov 21 12:20:49 2007 From: dubrowin.list at gmail.com (Shlomo Dubrowin) Date: Wed, 21 Nov 2007 13:20:49 +0200 Subject: PING WARNING - DUPLICATES FOUND! In-Reply-To: References: <001f01c82c15$92f934c0$8202a8c0@uk.sterianet> <30e3aae507966283fcaedcdfc0af299e@localhost> Message-ID: This is interesting. I don't run OSPF on my network, but my nagios servers are using Ethernet Bonding (2 NICs, 1 IP for failover). The very weird thing from my perspective is I only get the duplicate message on a specific switch (the mgmt IP on only 1 specific switch). Shlomo On 11/21/07, Roger Dierauer wrote: > > Hi > this phaenomen is also by me so... it seams, wenn you have ospf-network > roules configured so the ping retourns on a second wire... > > its not a problem, but an interpretation issue from nagios > > kind regards roger > > 2007/11/21, Dennis H?nseler : > > > > Hello Stephen, > > > > this isn't a nagios error. You seem to have some Problems with your > > network. Try pinging the monitored host from your nagios host and there you > > should also see duplicate icmp-replys... If you get this take a look at your > > network. > > > > > > > > kind regards, Dennis > > > > > > > > On Wed, 21 Nov 2007 08:07:34 -0000, "stephen wing" wrote: > > > > Hi All > > > > I have an intermittent ping problem. I am running nagios 1.2on AIX and an monitoring both AIX and Windows client. I do a ping test using > > the check_ping command, but sometimes I get a problem with the ping which > > says "PING WARNING - DUPLICATES FOUND!", this then sends me the > > notification, then almost immediately I get the recovery notification. Can > > anybody explain why this happens and is there anything I can do to stop > > getting these false errors. > > > > > > > > Regards > > > > Stephen > > > > > > > > --------------------------------------- > > > > Stephen Wing > > > > Steria Limited > > > > Senior Technical Consultant > > > > Telephone 02890393605 > > > > Mobile 07966823605 > > > > > > > > ***************************************************************** > > This email originates from Steria Limited, registered office: Three > > Cherry Trees Lane, Hemel Hempstead, Hertfordshire HP2 7AH; Registered in > > England and Wales, number 2706218; www.steria.co.uk. > > > > This email and any attachments may contain confidential information and > > may be subject to copyright or other intellectual property rights. It is > > only for the use of the addressee(s). You are prohibited from copying, > > forwarding, disclosing, saving or otherwise using it in any way if you are > > not the addressee(s) or responsible for delivery. > > If you receive this email by mistake, please advise the sender and > > cancel it immediately. > > Steria may monitor the content of emails within its network to ensure > > compliance with its policies and procedures. > > Any email is susceptible to alteration and its integrity cannot be > > assured. Steria shall not be liable if the message is altered, modified, > > falsified, or edited. > > ================================================ > > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2005. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > > -- > ThurGroup Informatik Dierauer > > Roger Dierauer > eidg. Informatiker mit FA > VMware Certified Professional > Egelsee Strasse 20a > 9535 Wilen bei Wil > > Mobile: +41 79 216 34 86 > Fax: +41 71 911 81 80 > > info at thurgroup.ch > http://thurgroup.ch > > ==> Online-Shop mit IT - Bedarf zu fairen Preisen und schneller Lieferung > http://shop.thurgroup.ch > <== > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Nov 21 12:51:47 2007 From: ae at op5.se (Andreas Ericsson) Date: Wed, 21 Nov 2007 12:51:47 +0100 Subject: PING WARNING - DUPLICATES FOUND! In-Reply-To: References: <001f01c82c15$92f934c0$8202a8c0@uk.sterianet> <30e3aae507966283fcaedcdfc0af299e@localhost> Message-ID: <47441BD3.5090606@op5.se> Shlomo Dubrowin wrote: > This is interesting. I don't run OSPF on my network, but my nagios servers > are using Ethernet Bonding (2 NICs, 1 IP for failover). The very weird > thing from my perspective is I only get the duplicate message on a specific > switch (the mgmt IP on only 1 specific switch). > Do you have duplicate IP's in your network, or does the switch reside on a network broadcast address rather than a "real" address? -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mark.potter at academy.com Wed Nov 21 15:32:53 2007 From: mark.potter at academy.com (mark.potter at academy.com) Date: Wed, 21 Nov 2007 08:32:53 -0600 Subject: Line breaks in notifications ignored Message-ID: I am pretty sure I have seen the answer to this but I have searched the archives, google, and my own archives (since I joined the list) and can't seem to find where I saw this mentioned before. I have notification commands such as: define command{ command_name host-notify-by-email command_line /usr/bin/printf "%b" "** Nagios **\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /usr/bin/mailx -s "Host $HOSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$ } When I run: /usr/bin/printf "%b" "** Nagios **\n\nNotification Type" from the command line it appears correctly, with the \n inserting a line break, however when Nagios sends an alert I get the alert with no line breaks and an"nn" or "n" (depending on the break) where it should have been. I am stumped at the moment. I have been over the docs but only found the macros listing. I have a sneaking suspicion that it may have something to do with 2.9/2.10 upgrades but that didn't make much sense to me. I have tried escaping the breaks but the same thing happens as if there weren't any escapes there at all. Nagios 2.10 SLES: 9 patch level 3 Any help at all, even just the right google phrase for which to search, would really be appreciated! Best Regards, Mark L. Potter Systems Engineer Academy Sports & Outdoors 1800 N. Mason Rd Katy, Texas 77449 Office: 281-646-5857 Cell: 281-734-6965 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nagios at cohen123.com Wed Nov 21 15:35:51 2007 From: nagios at cohen123.com (Tal Cohen) Date: Wed, 21 Nov 2007 09:35:51 -0500 Subject: Line breaks in notifications ignored In-Reply-To: References: Message-ID: <003001c82c4b$d0e902c0$5a01a8c0@D3233XB1> Looks like the back slash is getting escaped out. Try double backslashes: \\n instead of \n. Tal _____ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of mark.potter at academy.com Sent: Wednesday, November 21, 2007 9:33 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Line breaks in notifications ignored I am pretty sure I have seen the answer to this but I have searched the archives, google, and my own archives (since I joined the list) and can't seem to find where I saw this mentioned before. I have notification commands such as: define command{ command_name host-notify-by-email command_line /usr/bin/printf "%b" "** Nagios **\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /usr/bin/mailx -s "Host $HOSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$ } When I run: /usr/bin/printf "%b" "** Nagios **\n\nNotification Type" from the command line it appears correctly, with the \n inserting a line break, however when Nagios sends an alert I get the alert with no line breaks and an"nn" or "n" (depending on the break) where it should have been. I am stumped at the moment. I have been over the docs but only found the macros listing. I have a sneaking suspicion that it may have something to do with 2.9/2.10 upgrades but that didn't make much sense to me. I have tried escaping the breaks but the same thing happens as if there weren't any escapes there at all. Nagios 2.10 SLES: 9 patch level 3 Any help at all, even just the right google phrase for which to search, would really be appreciated! Best Regards, Mark L. Potter Systems Engineer Academy Sports & Outdoors 1800 N. Mason Rd Katy, Texas 77449 Office: 281-646-5857 Cell: 281-734-6965 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mark.potter at academy.com Wed Nov 21 16:11:21 2007 From: mark.potter at academy.com (mark.potter at academy.com) Date: Wed, 21 Nov 2007 09:11:21 -0600 Subject: Line breaks in notifications ignored In-Reply-To: <003001c82c4b$d0e902c0$5a01a8c0@D3233XB1> References: <003001c82c4b$d0e902c0$5a01a8c0@D3233XB1> Message-ID: "Tal Cohen" wrote on 11/21/2007 08:35:51 AM: > Looks like the back slash is getting escaped out. Try double > backslashes: \\n instead of \n. > > Tal > > Double backslashes produce the same results unfortunately. It doesn't make much sense to me that they would but they do. Thanks, though, for the response! > > > I am pretty sure I have seen the answer to this but I have searched > the archives, google, and my own archives (since I joined the list) > and can't seem to find where I saw this mentioned before. I have > notification commands such as: > > define command{ > command_name host-notify-by-email > command_line /usr/bin/printf "%b" "** Nagios **\n > \nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: > $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/ > Time: $LONGDATETIME$\n" | /usr/bin/mailx -s "Host $HOSTSTATE$ alert > for $HOSTNAME$!" $CONTACTEMAIL$ > } > > When I run: /usr/bin/printf "%b" "** Nagios **\n\nNotification Type" > from the command line it appears correctly, with the \n inserting a > line break, however when Nagios sends an alert I get the alert with > no line breaks and an"nn" or "n" (depending on the break) where it > should have been. I am stumped at the moment. I have been over the > docs but only found the macros listing. I have a sneaking suspicion > that it may have something to do with 2.9/2.10 upgrades but that > didn't make much sense to me. I have tried escaping the breaks but > the same thing happens as if there weren't any escapes there at all. > > Nagios 2.10 > SLES: 9 patch level 3 > > Any help at all, even just the right google phrase for which to > search, would really be appreciated! > > Best Regards, > > Mark L. Potter > Systems Engineer > Academy Sports & Outdoors > 1800 N. Mason Rd > Katy, Texas 77449 > Office: 281-646-5857 > Cell: 281-734-6965 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kzembowe at jhuccp.org Wed Nov 21 17:10:02 2007 From: kzembowe at jhuccp.org (Zembower, Kevin) Date: Wed, 21 Nov 2007 11:10:02 -0500 Subject: notification_interval seems to be ignored In-Reply-To: <47420793.4050403@op5.se> References: <2E8AE992B157C0409B18D0225D0B476306CD9168@XCH-VN01.sph.ad.jhsph.edu> <2E8AE992B157C0409B18D0225D0B476306CD916E@XCH-VN01.sph.ad.jhsph.edu><2E8AE992B157C0409B18D0225D0B476306CD917C@XCH-VN01.sph.ad.jhsph.edu><4741CF84.7000400@op5.se> <2E8AE992B157C0409B18D0225D0B476306CD9181@XCH-VN01.sph.ad.jhsph.edu> <2E8AE992B157C0409B18D0225D0B476306CD9188@XCH-VN01.sph.ad.jhsph.edu> <47420793.4050403@op5.se> Message-ID: <2E8AE992B157C0409B18D0225D0B476306CD919E@XCH-VN01.sph.ad.jhsph.edu> Just to wrap up this topic, I finally defeated this problem by changing the output of my ambient temperature monitor to not return the actual temperature in the server room. This made the message static and unchanging and prevented repeated notifications from going out. I did completely stop and restart Nagios, but only after I made the above change, so I don't know for sure that my change caused the problem to go away, but I strongly suspect so. I didn't have the time to change the notifications script. However, notifications are logged in /var/log/syslog on my system. They always agree with the occurrence of notifications that I received. When I get some time, I'd be happy to try to investigate this problem further, since it's not supposed to happen and my solution removes some functionality that's desirable. If anyone can give me any pointers or documents regarding running Nagios in debug mode, I'll try it and report back my finding. Thanks, again, for all the help and suggestions offered regarding my problem. -Kevin -----Original Message----- From: Andreas Ericsson [mailto:ae at op5.se] Sent: Monday, November 19, 2007 5:01 PM To: Zembower, Kevin Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] notification_interval seems to be ignored Zembower, Kevin wrote: > Just a follow-up: Setting 'is_volatile 0' explicitly in the service > definition didn't seem to affect this behavior; it still sent me 3 > notifications, seemingly when the temperature changed. > Right, this is fairly weird. Escalations aren't in effect, is_volatile is set to zero. notification_interval is 0 and no other nagios install has this problem. Can you stop Nagios, make really sure it isn't running and start it again? Also verify that absolutely nothing else is sending notifications. You can do that by replacing the notification script with a home- hacked version that logs something somewhere every time it sends a notification and then cross-check that log with your notifications. If it still sends multiple notifications, It'll be quite hard to fix without enabling debugging in nagios, and that's quite tedious :-/ -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hs at schlittermann.de Wed Nov 21 18:16:37 2007 From: hs at schlittermann.de (Heiko Schlittermann) Date: Wed, 21 Nov 2007 18:16:37 +0100 Subject: (now complete) Nagios-Grapher and reverse proxy for https (fix included) Message-ID: <20071121171637.GZ4440@schlittermann.de> Hello, (I'm not sure if I sent already this mail with just the first some lines. Now it's complete.) While playing with Nagios-Grapher (1.6.1-rc5) I had some problem, caused by our https/proxy/http setup as outlined below: { world } ---> [proxy (pound)] ---> [apache] request sent: request received: https://*/nagios/ -> http://*/nagios/ The proxy terminates the HTTPS connection and thus the nagios cgi scripts have the "feeling", that they're called via http://. That's no problem for nagios at all. But for the Nagios Grapher. In some places the grapher generates self referencing urls (using CGI::self_url()). And of course, these urls are wrong, because they contain "http" as protocol, where "https" should be used. I applied a simple patch in NagiosGrapher/HTML.pm.in: --- NagiosGrapher-1.6.1-rc5-0.3.orig/lib/NagiosGrapher/HTML.pm.in 2007-08-10 17:05:31.000000000 +0200 +++ NagiosGrapher-1.6.1-rc5-0.3/lib/NagiosGrapher/HTML.pm.in 2007-11-21 11:27:06.000000000 +0100 @@ -279,7 +279,10 @@ @_ ); - my $url = $self->Q->self_url; + # We do not include protocol and host information, since this + # information could be something else then visible from the outer world (e.g. + # if there is sitting a proxy (SSL) in front of us. + my $url = $self->Q->url(-relative => 1, -query => 1); return $url unless($args{Type}); From my current point of view it seems to work. If somebody could please review it? And could this be applied to the official source? Best regards from Dresden Viele Gr??e aus Dresden Heiko Schlittermann -- SCHLITTERMANN.de ---------------------------- internet & unix support - Heiko Schlittermann HS12-RIPE ----------------------------------------- gnupg encrypted messages are welcome - key ID: 48D0359B --------------- gnupg fingerprint: 3061 CFBF 2D88 F034 E8D2 7E92 EE4E AC98 48D0 359B - -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tstocking at groundworkopensource.com Wed Nov 21 18:35:31 2007 From: tstocking at groundworkopensource.com (Thomas Stocking) Date: Wed, 21 Nov 2007 09:35:31 -0800 Subject: Nagios performance query In-Reply-To: <47348DBC.3070609@taltos.org> References: <47348DBC.3070609@taltos.org> Message-ID: <47446C63.7040400@groundworkopensource.com> Carson, I don't see any other responses to this thread, but after seeing your talk, I'll chime in. My experience leads me to believe that: IF - you only define 3000 or fewer services - you set service_inter_check_delay_method=s - you set service and host check timeouts to 10 seconds - other settings as you have them here Then.... You can expect to process about 500 active checks per minute, or 8.333 per second. That means a 6 minute service check frequency is about all you can expect. We use 10 minutes by default. Average service check latency should stay down to 10 seconds or less, in this situation. Caveats, of course: Are there active host checks going on, or is the system steady state? Are you doing anything with performance data? What else is running on the machine? What is the hardware (Not that this seems to matter as much as it should with Nagios)? All these can affect throughput and latency. We are working on this problem and testing several enhancements to the GroundWork packaging of Nagios that we plan to release in the next few months. We are also reviewing the Nagios 3 code and contributing everything we find that could help. Your talk was insightful, and inspired our engineers to look at some of your methods. Nice work. Thomas Carson Gaspar wrote: > (Disclosure - I'm giving an invited talk at LISA next week on Nagios) > > I'm trying to determine the maximum active check rate that Nagios can > sustain on a given system. I'm rather surprised that I can't seem to get > more than about 3 checks per second. Am I just being dense? (I haven't > used anything but passive checks for years now, so my active check foo > is stale...) > > Nagios config settings (testing with 2.9, which is what we're using in > production): > > service_inter_check_delay_method=0.01 (tried s as well...) > service_interleave_factor=s > host_inter_check_delay_methos=0.01 (tried s as well) > max_concurrent_checks=0 > service_reaper_frequency=1 > sleep_time=0.01 > > performance stats show svc execution at 0 / .8 / .459, svc latency at 0 > / 10467.99 / 4475.5599 (3 hours after launch, with only 32708 / 50000 > services checked) > > I never see more than 9 nagios procs at once. The config is large (5000 > hosts with 10 services each). The service checks are a simple c program > that sleeps for half a second then returns OK. > > Is this really the best Nagios can do, or am I missing something? > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From palleje at gmail.com Wed Nov 21 19:39:50 2007 From: palleje at gmail.com (Palle L Jensen) Date: Wed, 21 Nov 2007 13:39:50 -0500 Subject: Nagiosgrapher limits? Message-ID: <000001c82c6d$e94f60d0$98ad38a6@na.dsmain.com> Are there any limitations to Nagiosgrapher like how many hosts/services it is capable of to produce graphs for? As soon as I get to a certain limit of hosts/services (passed around 34 hosts and/or around 100 services), the graphs acts "weird", the Icon graphs becomes white and if you click them to see the actual graph, it shows no data there. Has anyone run into this scenario before? We are monitoring 36 Hosts and 103 services, where 100 services are being graphed. Thanks, - Palle System(s): Linux Fedora Core 6 - Nagios 2.9 - Nagios web 2.9 - Nagios plugins 1.4.9-1 - Nagiosgrapher 1.6.1-rc3 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From klausman at schwarzvogel.de Wed Nov 21 20:07:24 2007 From: klausman at schwarzvogel.de (Tobias Klausmann) Date: Wed, 21 Nov 2007 20:07:24 +0100 Subject: Nagiosgrapher limits? In-Reply-To: <000001c82c6d$e94f60d0$98ad38a6@na.dsmain.com> References: <000001c82c6d$e94f60d0$98ad38a6@na.dsmain.com> Message-ID: <20071121190724.GA23232@eric.schwarzvogel.de> Hi! On Wed, 21 Nov 2007, Palle L Jensen wrote: > Are there any limitations to Nagiosgrapher like how many > hosts/services it is capable of to produce graphs for? > > As soon as I get to a certain limit of hosts/services (passed > around 34 hosts and/or around 100 services), the graphs acts > "weird", the Icon graphs becomes white and if you click them to > see the actual graph, it shows no data there. Has anyone run > into this scenario before? We are monitoring 36 Hosts and 103 > services, where 100 services are being graphed. It's probably not a sheer amount-of-objects problem. We currently have close to 480 hosts and well over 5000 services and NagiosGrapher works. We have about 4500 rrds that are being tended to, so I doubt the problem you're seeing is caused by the amount of objects you create graphs for. Your problem is most probably caused in the RRDG CGIs, not during the data collection, so I'd start debugging there. Regards, Tobias -- In the future, everyone will be anonymous for 15 minutes. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From be.bethpage at gmail.com Wed Nov 21 23:11:05 2007 From: be.bethpage at gmail.com (Bill Evans) Date: Wed, 21 Nov 2007 17:11:05 -0500 Subject: Notification Problems Message-ID: Hello users. I have a problem with receiving notifications on Nagios 3.0a3. I have all hosts configured for DOWN and RECOVERY (d,r) notification. I would like to be emailed when a host goes down and then comes back up. I have looked over the configuration many times and it looks fine. However, I only receive DOWN messages, no UP messages. When I look at the Nagios logs it does not appear that Nagios even tries to send them. Also, I have been running Nagios since it was NetSaint? so I do know a bit about it. I am just not sure what I am missing. Any thoughts? Thanks! - Bill E. - IT Manager -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From s.shipway at auckland.ac.nz Wed Nov 21 23:17:03 2007 From: s.shipway at auckland.ac.nz (Steve Shipway) Date: Thu, 22 Nov 2007 11:17:03 +1300 Subject: notification_interval seems to be ignored In-Reply-To: <2E8AE992B157C0409B18D0225D0B476306CD919E@XCH-VN01.sph.ad.jhsph.edu> References: <2E8AE992B157C0409B18D0225D0B476306CD9168@XCH-VN01.sph.ad.jhsph.edu> <2E8AE992B157C0409B18D0225D0B476306CD916E@XCH-VN01.sph.ad.jhsph.edu><2E8AE992B157C0409B18D0225D0B476306CD917C@XCH-VN01.sph.ad.jhsph.edu><4741CF84.7000400@op5.se> <2E8AE992B157C0409B18D0225D0B476306CD9181@XCH-VN01.sph.ad.jhsph.edu><2E8AE992B157C0409B18D0225D0B476306CD9188@XCH-VN01.sph.ad.jhsph.edu><47420793.4050403@op5.se> <2E8AE992B157C0409B18D0225D0B476306CD919E@XCH-VN01.sph.ad.jhsph.edu> Message-ID: <12A6FDDD13C460408A6E47E5DB1235A201627D5F@UXCHANGE3.UoA.auckland.ac.nz> > Just to wrap up this topic, I finally defeated this problem by changing > the output of my ambient temperature monitor to not return the actual > temperature in the server room. This made the message static and > unchanging and prevented repeated notifications from going out. I'm coming into this a bit late, but are you sure you don't have state_stalking enabled for this service? You will get a new notification if the various notification filters are passed, and: 1) The state has changed, or 2) The notification_interval has been reached, or 3) is_volatile is set, or 4) state_stalking is enabled, and the text output of the plugin has changed We use state_stalking for some services, eg SNMP error alerts (where we want to re-notify if a new alert comes in, but not if its just the same one again) Steve ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Nov 21 23:19:06 2007 From: s.shipway at auckland.ac.nz (Steve Shipway) Date: Thu, 22 Nov 2007 11:19:06 +1300 Subject: Notification Problems In-Reply-To: References: Message-ID: <12A6FDDD13C460408A6E47E5DB1235A201627D60@UXCHANGE3.UoA.auckland.ac.nz> Check the definitions for your contact. Do you have host_notification_options d,r set in there as well as in the host definition? If not, then the notifications will be filtered out by your contact definition. Steve notifications on Nagios 3.0a3. I have all hosts configured for DOWN and RECOVERY (d,r) notification. I would like to be emailed when a host goes down and then comes back up. I have looked over the configuration many times and it looks fine. However, I only receive DOWN messages, no UP messages. When I look at the Nagios logs it does not appear that Nagios even tries to send them. Also, I have been running Nagios since it was NetSaint... so I do know a bit about it. I am just not sure what I am missing. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hs at schlittermann.de Wed Nov 21 23:25:00 2007 From: hs at schlittermann.de (Heiko Schlittermann) Date: Wed, 21 Nov 2007 23:25:00 +0100 Subject: Nagios-Grapher: write_fifo does not process '\n' (diff included) Message-ID: <20071121222500.GB4440@schlittermann.de> Hello, the example for the nagios grapher command is about this way: define command{ ... command_line .../contrib/fifo_write .../rw/ngraph.pipe '$HOSTNAME$\t...$SERVICEPERFDATA$\n' 3 } But the fifo_write doesn't process the '\n'. This brings trailing 'n' into the fifo output, but no newline. Currently I'm not even sure, why the pipe reader (collect2.pl) thinks there's a line to read..., if the writer doesn't send a newline. But this is another issue. Here is the diff to fifo_write.c, which now processes \t and \n is extensible. (But extension should be done carefully, because the nagios macros may contain control characters!) If somebody please could review it. And if it turns out to be useful, I'd like to see it in the upstream source :) diff -ruN NagiosGrapher-1.6.1-rc5-0.3.orig/contrib/fifo_write/C/fifo_write.c NagiosGrapher-1.6.1-rc5-0.3/contrib/fifo_write/C/fifo_write.c --- NagiosGrapher-1.6.1-rc5-0.3.orig/contrib/fifo_write/C/fifo_write.c 2005-12-29 16:20:59.000000000 +0100 +++ NagiosGrapher-1.6.1-rc5-0.3/contrib/fifo_write/C/fifo_write.c 2007-11-21 23:20:06.000000000 +0100 @@ -59,49 +59,31 @@ hfpath = open(fpath, O_WRONLY | O_NONBLOCK); if (hfpath) { - //allocate memory for the output - char *formated_output = (char *) malloc(strlen(output)); + //inplace edit + char *formatted = output; + char *raw = output; + + //replace some control chars + while (*raw) { + if (*raw == '\\') { + switch (*(raw+1)) { + case 't': *(formatted++) = '\t'; raw += 2; continue; + case 'n': *(formatted++) = '\n'; raw += 2; continue; + } + } + + *(formatted++) = *(raw++); + } + *formatted = '\0'; + + // write to pipe + alarm(timeout); + write(hfpath, output, formatted - output); + alarm(0); + + /* Errorhandling below */ + - //allocation worked? - if (formated_output) { - int i, j = 0; - int tab = 0; - - //replace \t with tabs - for (i = 0; output[i]; i++) { - if (output[i] != '\\') { - if (output[i] != 't') { - formated_output[j++] = output[i]; - } else { - if (tab) { - formated_output[j++] = 9; - } else { - formated_output[j++] = output[i]; - } - } - tab = 0; - } else { - tab = 1; - } - } - formated_output[j] = 0; - - // write to pipe - alarm(timeout); - write(hfpath, formated_output, - strlen(formated_output)); - alarm(0); - - //free memory - free(formated_output); - - /* Errorhandling below */ - - - } else { - printf("I was not able to allocate enough memory.\n"); - rw = 1; - } close(hfpath); } else { printf("Could not open %s for writing!\n", fpath); Best regards from Dresden Viele Gr??e aus Dresden Heiko Schlittermann -- SCHLITTERMANN.de ---------------------------- internet & unix support - Heiko Schlittermann HS12-RIPE ----------------------------------------- gnupg encrypted messages are welcome - key ID: 48D0359B --------------- gnupg fingerprint: 3061 CFBF 2D88 F034 E8D2 7E92 EE4E AC98 48D0 359B - -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hs at schlittermann.de Wed Nov 21 23:30:05 2007 From: hs at schlittermann.de (Heiko Schlittermann) Date: Wed, 21 Nov 2007 23:30:05 +0100 Subject: Line breaks in notifications ignored In-Reply-To: <003001c82c4b$d0e902c0$5a01a8c0@D3233XB1> References: <003001c82c4b$d0e902c0$5a01a8c0@D3233XB1> Message-ID: <20071121223005.GC4440@schlittermann.de> Tal Cohen (Mi 21 Nov 2007 15:35:51 CET): > Looks like the back slash is getting escaped out. Try double backslashes: > \\n instead of \n. > > archives, google, and my own archives (since I joined the list) and can't > seem to find where I saw this mentioned before. I have notification commands > such as: > > define command{ > command_name host-notify-by-email > command_line /usr/bin/printf "%b" "** Nagios **\n\nNotification > Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: > $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | > /usr/bin/mailx -s "Host $HOSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$ > } > > When I run: /usr/bin/printf "%b" "** Nagios **\n\nNotification Type" from > the command line it appears correctly, with the \n inserting a line break, > however when Nagios sends an alert I get the alert with no line breaks and > an"nn" or "n" (depending on the break) where it should have been. I am > stumped at the moment. I have been over the docs but only found the macros If you tested it on the command line - are you sure about the printf you used? printf is a shell builtin printf is /usr/bin/printf printf is /usr/bin/X11/printf (Here /usr/bin/printf behaves correctly, but it's not your system ;-) Best regards from Dresden Viele Gr??e aus Dresden Heiko Schlittermann -- SCHLITTERMANN.de ---------------------------- internet & unix support - Heiko Schlittermann HS12-RIPE ----------------------------------------- gnupg encrypted messages are welcome - key ID: 48D0359B --------------- gnupg fingerprint: 3061 CFBF 2D88 F034 E8D2 7E92 EE4E AC98 48D0 359B - -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From daniel-listas at gmx.net Thu Nov 22 01:19:05 2007 From: daniel-listas at gmx.net (Daniel Bareiro) Date: Wed, 21 Nov 2007 21:19:05 -0300 Subject: Host object redefinition In-Reply-To: References: <20071120033413.GA8127@hermes.freesoftware.org> Message-ID: <20071122001905.GE8575@hermes.freesoftware.org> On Monday, 19 November 2007 23:25:52 -0600, Marc Powell wrote: > > I've several hosts behind a firewall and I'd like to monitoring they > > with Nagios. These host haven't a public IP. Then, mi idea was to > > configure the firewall to redirect the Nagios server conection at > > specific port in the firewall ---one per host without public IP > > behind the firewall--- to remote NRPE listen port from the remote > > host. > > Then, I'd like to redefine the host object to include a port > > variable for call it in a general service definition. > With nagios-3, yes, but not with nagios-2. I'm using Nagios 3. Could you give me an example? I was searching documentation about it, but I didn't found how to do it yet. > With nagios-2, you could pass it as a $ARGx$ macro from each service > definition or create an nrpe command{} definition per host. Yes. It was first that I thought. But perhaps there would be a best form to deal with it. :-) Thanks for your answer, Marc. Regards, Daniel -- Daniel Bareiro - System Administrator Fingerprint: BFB3 08D6 B4D1 31B2 72B9 29CE 6696 BF1B 14E6 1D37 Powered by Debian GNU/Linux Etch - Linux user #188.598 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hs at schlittermann.de Thu Nov 22 01:37:11 2007 From: hs at schlittermann.de (Heiko Schlittermann) Date: Thu, 22 Nov 2007 01:37:11 +0100 Subject: Nagios-Grapher: write_fifo does not process '\n' (diff included) In-Reply-To: <20071121222500.GB4440@schlittermann.de> References: <20071121222500.GB4440@schlittermann.de> Message-ID: <20071122003711.GA5109@schlittermann.de> Heiko Schlittermann (Mi 21 Nov 2007 23:25:00 CET): > Hello, > > the example for the nagios grapher command is about this way: > > define command{ > ... > command_line .../contrib/fifo_write .../rw/ngraph.pipe '$HOSTNAME$\t...$SERVICEPERFDATA$\n' 3 > } > > > But the fifo_write doesn't process the '\n'. This brings trailing 'n' > into the fifo output, but no newline. > > Currently I'm not even sure, why the pipe reader (collect2.pl) thinks > there's a line to read..., if the writer doesn't send a newline. But > this is another issue. This issue is solved now: the check_ssh doesn't send a '\n' at the end of its performance data, other check_* do. Thus the fifo_write-bug didn't break a lot, just created an additional single 'n' on a line itself. Except for check_ssh. This way each performance output directly after the output from check_ssh wasn't processed, because collect2.pl read a single line, containing first the ssh *and* then the other performance data. Best regards from Dresden Viele Gr??e aus Dresden Heiko Schlittermann -- SCHLITTERMANN.de ---------------------------- internet & unix support - Heiko Schlittermann HS12-RIPE ----------------------------------------- gnupg encrypted messages are welcome - key ID: 48D0359B --------------- gnupg fingerprint: 3061 CFBF 2D88 F034 E8D2 7E92 EE4E AC98 48D0 359B - -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From be.bethpage at gmail.com Thu Nov 22 05:41:06 2007 From: be.bethpage at gmail.com (Bill Evans) Date: Wed, 21 Nov 2007 23:41:06 -0500 Subject: Notification Problems In-Reply-To: <12A6FDDD13C460408A6E47E5DB1235A201627D60@UXCHANGE3.UoA.auckland.ac.nz> References: <12A6FDDD13C460408A6E47E5DB1235A201627D60@UXCHANGE3.UoA.auckland.ac.nz> Message-ID: Steve, thank you for your reply. My config is as follows: *a. host template* # critical host template define host{ name crit-host use base-host check_period 24x7 check_interval 5 retry_interval 1 max_check_attempts 6 check_command check-host-alive notification_period 24x7 notification_interval 240 notification_options d,r contact_groups netadmins,ciptadmins register 0 } *b. host entry* # 'backup1' host definition define host{ use crit-host parents bhs_mdf_msfc host_name backup1 alias BACKUP1 address 10.10.1.15 notification_options d,r } *c. contact template* define contact{ name standard-contact service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c,r,f,s host_notification_options d,u,r,f,s service_notification_commands notify-service-by-email host_notification_commands notify-host-by-email register 0 } *d. contact info* # 'bille' contact definition define contact{ contact_name bille use standard-contact alias Bill E. email bills_email at address.com } That is pretty much it. I basically took my config details from my 2.xinstall and mirrored them in my 3.x install. I did recreate the files from scrach, but copied my logic while factoring in the new version changes. Any ideas based on this? Thanks again. - Bill E. On 11/21/07, Steve Shipway wrote: > > Check the definitions for your contact. Do you have > host_notification_options d,r set in there as well as in the host > definition? If not, then the notifications will be filtered out by your > contact definition. > > > > Steve > > > > notifications on Nagios 3.0a3. I have all hosts configured for DOWN and > RECOVERY (d,r) notification. I would like to be emailed when a host goes > down and then comes back up. I have looked over the configuration many > times and it looks fine. However, I only receive DOWN messages, no UP > messages. When I look at the Nagios logs it does not appear that Nagios > even tries to send them. Also, I have been running Nagios since it was > NetSaint? so I do know a bit about it. I am just not sure what I am > missing. > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bespalov at sovintel.ru Thu Nov 22 06:16:09 2007 From: bespalov at sovintel.ru (Alexander Bespalov) Date: Thu, 22 Nov 2007 06:16:09 +0100 (CET) Subject: Nagios doesn't send notifications Message-ID: <20071122051610.C00B54F4045@desire.netways.de> Hi all, Nagios (3.0b6 version) doesn't send notifications if 'log_notifications' parameter set to '0'. Why? Please explain me if you know. Whom should I report if this is a bug? - Alexander Bespalov ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Nov 22 09:58:52 2007 From: ae at op5.se (Andreas Ericsson) Date: Thu, 22 Nov 2007 09:58:52 +0100 Subject: Nagios doesn't send notifications In-Reply-To: <20071122051610.C00B54F4045@desire.netways.de> References: <20071122051610.C00B54F4045@desire.netways.de> Message-ID: <474544CC.7070303@op5.se> Alexander Bespalov wrote: > Hi all, > > Nagios (3.0b6 version) doesn't send notifications if 'log_notifications' parameter set to '0'. > > Why? Please explain me if you know. It's impossible to know without checking your entire configuration, but if you make really, really sure that Nagios does as expected of it at one point, and then change *only* the log_notifications value only to see it fail (assuming you've verified everything else again, ofcourse), it's reasonable to assume that what you're seeing is a bug. > Whom should I report if this is a bug? > nagios-devel at lists.sourceforge.net. Make really sure notification_options, notification_period and everything else suggests that Nagios really should have sent the notification before you report there though. False bug-reports drain time from developers. When it happens because someone hasn't read the documentation or verified their own configuration, you can get scolded fairly hard. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nagios at pgmail.net Thu Nov 22 10:00:28 2007 From: nagios at pgmail.net (Philipp Geschke) Date: Thu, 22 Nov 2007 10:00:28 +0100 Subject: Using Nokia 6210 to send SMS with gnokii Message-ID: <4745452C.9010603@pgmail.net> Hey list, I'm trying to use a Nokia 6210 mobile phone to send Nagios notifications to other cell phones. I have the 6210 with software version 04.36. I have a DAU9 serial cable. What I don't have is any success :( I tried running the phone with gnokii, without any success. There are tons of "working" configurations out there. Tried most of them, so far non worked. Just to make sure, the cable and phone are ok, I tried running the Nokia PC Suite on Windows 2000. Also, without success, the phone is not found. Since the phone already worked with a serial cable connection, and the cable is new, I don't think that one of them is actually broken, but what do I know. So, my question is: Is anybody out there using a Nokia 6210 with a serial cable (DAU9 would be best) successfully? Maybe even with gnokii? If so, it would be awesome, if you could provide me with a REALLY working configuration, so I could either get it to run, or ensure that "something" is broken. Or maybe someone has the same issues and we could share experience and maybe figure it out? Right now I'm using the following gnokii configuration: [global] port = /dev/ttyS0 model = 7110 initlength = default connection = serial use_locking = yes serial_baudrate = 9600 smsc_timeout = 10 [gnokiid] bindir = /usr/sbin/ [connect_script] TELEPHONE = 12345678 [disconnect_script] Thanks a lot in advance ;-) Regards, Philipp ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From carstenph at gmx.de Thu Nov 22 10:52:29 2007 From: carstenph at gmx.de (Carsten Philipp) Date: Thu, 22 Nov 2007 10:52:29 +0100 Subject: "distributed Monitoring" and graphs Message-ID: <4745515D.40001@gmx.de> Hello, i want to monitor about 500 standard user PCs in our network. these clients should collect cpu, ram, disk,... values the whole day and in the night the data should be sent to or collected by the nagios-server to integrate them into RRDs (nagiosgrapher). But how can i implement this? With nsca and a local nagios installation or some other tools? The values are only for statistics. And to check all clients every 5 minutes is not necessary and creates to much network traffic in my eyes. And i also have to install and configure nrpe on all computers. Or should i use the programm called "atsar" on the client to collect the data and fetch these data with a nagios plugin? So i dont now how to solve this. What is the efficients way? Does anybody has an idea? thanks Carsten Philipp ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bespalov at sovintel.ru Thu Nov 22 11:16:02 2007 From: bespalov at sovintel.ru (Alexander Bespalov) Date: Thu, 22 Nov 2007 11:16:02 +0100 (CET) Subject: Nagios doesn't send notifications In-Reply-To: <474544CC.7070303@op5.se> References: <474544CC.7070303@op5.se> Message-ID: <20071122101602.7968F4F4045@desire.netways.de> Thank you for your answer, I'm absolutely sure. I checked it several times by changing 'log_notifications' parameter only and notifications have been sent if the value was '1' only. - Alexander Bespalov ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bespalov at sovintel.ru Thu Nov 22 11:16:09 2007 From: bespalov at sovintel.ru (Alexander Bespalov) Date: Thu, 22 Nov 2007 11:16:09 +0100 (CET) Subject: Nagios doesn't send notifications In-Reply-To: <474544CC.7070303@op5.se> References: <474544CC.7070303@op5.se> Message-ID: <20071122101609.2ABE44F4045@desire.netways.de> Thank you for your answer, I'm absolutely sure. I checked it several times by changing 'log_notifications' parameter only and notifications have been sent if the value was '1' only. - Alexander Bespalov ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gimenez at cict.fr Thu Nov 22 11:56:25 2007 From: gimenez at cict.fr (Carole Gimenez) Date: Thu, 22 Nov 2007 11:56:25 +0100 Subject: Output of check_disk Message-ID: <47456059.4000005@cict.fr> Hi all, As i have no response on nagiosplug-help mailing list, i permit to write on this. The output of my check_disk appears in truncated manner in the nagios interface web: DISK OK - free space: / 14659 MB (59% inode=99%): /dev 1860 MB (99% inode=96%): /boot/efi 484 MB (97% inode=-): /usr/local 34678 MB (99% inode=99%): /soleil1 40007 MB (32% inode=99%): /soleil3 56847 MB (55% inode=99%): /soleil2 58028 MB (56% inode=99%): /soleil4 58048 MB (56% inode=99%): /soleil5 25967 MB (25% inode=99%): /soleil6 73645 MB (71% ino Is there a solution to this problem? Thanks for advance. Carole Gimenez. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Nov 22 14:13:32 2007 From: ae at op5.se (Andreas Ericsson) Date: Thu, 22 Nov 2007 14:13:32 +0100 Subject: Output of check_disk In-Reply-To: <47456059.4000005@cict.fr> References: <47456059.4000005@cict.fr> Message-ID: <4745807C.4090401@op5.se> Carole Gimenez wrote: > Hi all, > > As i have no response on nagiosplug-help mailing list, i permit to write > on this. > > The output of my check_disk appears in truncated manner in the nagios > interface web: > > DISK OK - free space: / 14659 MB (59% inode=99%): /dev 1860 MB (99% > inode=96%): /boot/efi 484 MB (97% inode=-): /usr/local 34678 MB (99% > inode=99%): /soleil1 40007 MB (32% inode=99%): /soleil3 56847 MB (55% > inode=99%): /soleil2 58028 MB (56% inode=99%): /soleil4 58048 MB (56% > inode=99%): /soleil5 25967 MB (25% inode=99%): /soleil6 73645 MB (71% ino > > Is there a solution to this problem? > Yes, although the complexity of the solution depends on how you're running this check and how desperate you are to maintain the output as it is. If you aren't rabid about keeping the output, you can specify checks that check one partition at a time, which will make output a lot shorter and therefore not susceptible to running into the input limits in Nagios (or whatever transports might see the plugin along the way). That's the "doesn't matter how you run it" answer though. Is it being run via nrpe? If yes, you'll need to extend the NRPE protocol (there are presently discussions regarding this on nagios-devel@) to be able to send arbitrarily long output. What nagios version are you using? If 2.x or 2.x, you may have to increase the input limit in the header files and then re-compile Nagios. AFAIU, Nagios 3 already supports arbitrarily long input from plugins, so that shouldn't be a 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bijuaugustine at gmail.com Thu Nov 22 14:57:23 2007 From: bijuaugustine at gmail.com (Biju Augustine) Date: Thu, 22 Nov 2007 19:27:23 +0530 Subject: Adding Hosts and email notification in NAGIOS help Message-ID: <47f4f79c0711220557o76f7097ao6a826dbbfa90abac@mail.gmail.com> Help me please I am new for nagios OS Fedora 8 Nagios -3.0b6 Nagios-Plugins 1.4.10 I followed the above documentation http://nagios.sourceforge.net/docs/3_0/quickstart-fedora.html vi /usr/local/nagios/etc/objects/contacts.cfg I didn't edit any thing in the above file. Please let me know what are the thing ie email id host name shall I need to add Verify the sample Nagios configuration files. /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg But no errors. I want to know where I need to edit / add the host name and I need to get the email notifications if any host/services is down. Can you please help me with examples of contacts.cfg and hosts.cfg -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Thu Nov 22 15:05:08 2007 From: ae at op5.se (Andreas Ericsson) Date: Thu, 22 Nov 2007 15:05:08 +0100 Subject: Adding Hosts and email notification in NAGIOS help In-Reply-To: <47f4f79c0711220557o76f7097ao6a826dbbfa90abac@mail.gmail.com> References: <47f4f79c0711220557o76f7097ao6a826dbbfa90abac@mail.gmail.com> Message-ID: <47458C94.5010800@op5.se> Biju Augustine wrote: > Help me please I am new for nagios > > > > OS Fedora 8 > > Nagios -3.0b6 > > Nagios-Plugins 1.4.10 > > > > I followed the above documentation > > > > http://nagios.sourceforge.net/docs/3_0/quickstart-fedora.html > > > > vi /usr/local/nagios/etc/objects/contacts.cfg > > > > I didn't edit any thing in the above file. > > Please let me know what are the thing ie email id host name shall I need to add > > > > Verify the sample Nagios configuration files. > > /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg > > > > But no errors. > > > > I want to know where I need to edit / add the host name and I need to > get the email notifications if any host/services is down. > > Can you please help me with examples of contacts.cfg and hosts.cfg > Read the nagios config documentation. There are no shortcuts around it that doesn't cost money. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Nov 22 15:14:54 2007 From: marc at ena.com (Marc Powell) Date: Thu, 22 Nov 2007 08:14:54 -0600 Subject: Host object redefinition In-Reply-To: <20071122001905.GE8575@hermes.freesoftware.org> References: <20071120033413.GA8127@hermes.freesoftware.org> <20071122001905.GE8575@hermes.freesoftware.org> Message-ID: <126A0D01-15A6-4EB0-B9D0-E4F58B013034@ena.com> On Nov 21, 2007, at 6:19 PM, Daniel Bareiro wrote: > On Monday, 19 November 2007 23:25:52 -0600, > Marc Powell wrote: >>> > >>> Then, I'd like to redefine the host object to include a port >>> variable for call it in a general service definition. > >> With nagios-3, yes, but not with nagios-2. > > I'm using Nagios 3. Could you give me an example? I was searching > documentation about it, but I didn't found how to do it yet. See Custom Variable Macros at http://nagios.sourceforge.net/docs/3_0/macros.html . -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gimenez at cict.fr Thu Nov 22 15:45:23 2007 From: gimenez at cict.fr (Carole Gimenez) Date: Thu, 22 Nov 2007 15:45:23 +0100 Subject: Output of check_disk In-Reply-To: <4745807C.4090401@op5.se> References: <47456059.4000005@cict.fr> <4745807C.4090401@op5.se> Message-ID: <47459603.5080909@cict.fr> Thanks for your response. In fact, I execute the check_disk (nagios-plugins-1.4.10.tar.gz) via nrpe (v 2.10) on my remote host. But my version of nagios is older: 1.4.1 Is a solution of my problem? Carole. Andreas Ericsson a ?crit : > Carole Gimenez wrote: >> Hi all, >> >> As i have no response on nagiosplug-help mailing list, i permit to >> write on this. >> >> The output of my check_disk appears in truncated manner in the nagios >> interface web: >> >> DISK OK - free space: / 14659 MB (59% inode=99%): /dev 1860 MB (99% >> inode=96%): /boot/efi 484 MB (97% inode=-): /usr/local 34678 MB (99% >> inode=99%): /soleil1 40007 MB (32% inode=99%): /soleil3 56847 MB (55% >> inode=99%): /soleil2 58028 MB (56% inode=99%): /soleil4 58048 MB (56% >> inode=99%): /soleil5 25967 MB (25% inode=99%): /soleil6 73645 MB (71% >> ino >> >> Is there a solution to this problem? >> > > Yes, although the complexity of the solution depends on how you're > running this check and how desperate you are to maintain the output > as it is. > > If you aren't rabid about keeping the output, you can specify checks > that check one partition at a time, which will make output a lot > shorter and therefore not susceptible to running into the input limits > in Nagios (or whatever transports might see the plugin along the way). > That's the "doesn't matter how you run it" answer though. > > Is it being run via nrpe? > > If yes, you'll need to extend the NRPE protocol (there are presently > discussions regarding this on nagios-devel@) to be able to send > arbitrarily long output. > > What nagios version are you using? > If 2.x or 2.x, you may have to increase the input limit in the header > files and then re-compile Nagios. > AFAIU, Nagios 3 already supports arbitrarily long input from plugins, > so that shouldn't be a problem. > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sunny at tetrain.com Thu Nov 22 16:41:59 2007 From: sunny at tetrain.com (Sunny Bhatheja) Date: Thu, 22 Nov 2007 21:11:59 +0530 Subject: Oracle alert logs Message-ID: <4745A347.5060202@tetrain.com> Hello, I want to monitor the oracle alert log from my nagios server.My oracle is installed on remote machine (sun 5.8) .It is a production server so i can `t do much on that , Is there way way to monitor those alert logs. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ahh at inbodan.dk Thu Nov 22 19:28:25 2007 From: ahh at inbodan.dk (Allan Holdt Hansen INBODAN) Date: Thu, 22 Nov 2007 19:28:25 +0100 Subject: Using Nokia 6210 to send SMS with gnokii In-Reply-To: <4745452C.9010603@pgmail.net> References: <4745452C.9010603@pgmail.net> Message-ID: <2F04E1B72633234494667B5DB0B8B8174E8AD8@TULKAS.inbodan.dk> This will probably not solve your problem, but I'll throw in my 2(euro)cents anyway. After having had all sorts of weird problems with gnokii in the past, mosty connectivity and stability problems I switched to gammu (www.gammu.org). Works very stable. It has an SMS gateway feature (smsd) I suggest using. My gammurc (Nokia 6310i phone): [global] port = /dev/ttyS0 model = 6310i connection = dau9p use_locking = yes serial_baudrate = 19200 smsc_timeout = 10 [gnokiid] bindir = /usr/local/sbin/ [connect_script] TELEPHONE = 12345678 [disconnect_script] [logging] debug = off rlpdebug = off xdebug = off Regards Allan -----Oprindelig meddelelse----- Fra: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] P? vegne af Philipp Geschke Sendt: 22. november 2007 10:00 Til: nagios-users at lists.sourceforge.net Emne: [Nagios-users] Using Nokia 6210 to send SMS with gnokii Hey list, I'm trying to use a Nokia 6210 mobile phone to send Nagios notifications to other cell phones. I have the 6210 with software version 04.36. I have a DAU9 serial cable. What I don't have is any success :( I tried running the phone with gnokii, without any success. There are tons of "working" configurations out there. Tried most of them, so far non worked. Just to make sure, the cable and phone are ok, I tried running the Nokia PC Suite on Windows 2000. Also, without success, the phone is not found. Since the phone already worked with a serial cable connection, and the cable is new, I don't think that one of them is actually broken, but what do I know. So, my question is: Is anybody out there using a Nokia 6210 with a serial cable (DAU9 would be best) successfully? Maybe even with gnokii? If so, it would be awesome, if you could provide me with a REALLY working configuration, so I could either get it to run, or ensure that "something" is broken. Or maybe someone has the same issues and we could share experience and maybe figure it out? Right now I'm using the following gnokii configuration: [global] port = /dev/ttyS0 model = 7110 initlength = default connection = serial use_locking = yes serial_baudrate = 9600 smsc_timeout = 10 [gnokiid] bindir = /usr/sbin/ [connect_script] TELEPHONE = 12345678 [disconnect_script] Thanks a lot in advance ;-) Regards, Philipp ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Zuzana.Gasparovicova at iacgroup.com Thu Nov 22 22:05:19 2007 From: Zuzana.Gasparovicova at iacgroup.com (Zuzana.Gasparovicova at iacgroup.com) Date: Thu, 22 Nov 2007 22:05:19 +0100 Subject: I am out of the office for the rest of the week, I will answer your email on next Monday (26.11) Message-ID: Mimo kancel?? budu od 22.11.2007 a nevr?t?m se do 26.11.2007. ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sunny at tetrain.com Fri Nov 23 06:22:17 2007 From: sunny at tetrain.com (Sunny Bhatheja) Date: Fri, 23 Nov 2007 10:52:17 +0530 Subject: Regarding check_oracle In-Reply-To: <473AC3EB.5010703@googlemail.com> References: <473AC2CA.9070202@tetrain.com> <473AC3EB.5010703@googlemail.com> Message-ID: <47466389.4070306@tetrain.com> Yes i hve installed Oracle client and my $ORACLE_HOME is set and it is connecting through oracle database. Have you any modified script? or any thing else ... Regds Sunny Bhatheja Hari Sekhon wrote: > Yes this is common, make sure the Nagios user has $ORACLE_HOME set in > the environment to your locally installed oracle bits like sqlplus > which this depends on. > > A cheap cheat would just be to modify the script and hardcode it at > the top (but then beware when you upgrade the plugins that this will > revert to broken so if doing that you may want to copy the plugin out > and keep it separate). > > -h > > Hari Sekhon > > > > Sunny Bhatheja wrote: >> Dear All, >> I m trying to monitor using check_oracle >> plugin.But whn i checked my oracle from Plugin like ./check_oracle >> --tns orcl and it gives me ok status but whn i used this by putting >> entry in hosts, services and chkcommands thn if gives like Oracle >> Home is not set for sid. >> >> >> ------------------------------------------------------------------------- >> >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a browser. >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. ::: Messages without supporting info will risk >> being sent to /dev/null >> >> > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nagios at pgmail.net Fri Nov 23 09:16:56 2007 From: nagios at pgmail.net (Philipp Geschke) Date: Fri, 23 Nov 2007 09:16:56 +0100 Subject: Using Nokia 6210 to send SMS with gnokii In-Reply-To: <2F04E1B72633234494667B5DB0B8B8174E8AD8@TULKAS.inbodan.dk> References: <4745452C.9010603@pgmail.net> <2F04E1B72633234494667B5DB0B8B8174E8AD8@TULKAS.inbodan.dk> Message-ID: <47468C78.8000205@pgmail.net> Allan, thanks for your answer. I don't know what was the problem was, but with moving to a different box my configuration worked. It seems as if (for some reason) the linux box didn't like the mobile, and the windows box was... well... a windows box ;-)) Anyway, if someone wants to use the combination of the 6210, a dau9 cable and linux with gnokii, this configuration worked for me: [global] port = /dev/ttyS0 #might be different, depending on how many serial ports you have, an which you use, this is com1. model = 7110 #this driver includes the 6210 initlength = default connection = dau9p # connection = serial also works, but with the dau9p setting you get a way better performance with the dau9 cable. use_locking = yes serial_baudrate = 19200 #unused setting, only in AT mode. smsc_timeout = 10 [gnokiid] bindir = /usr/sbin/ [connect_script] TELEPHONE = 12345678 [disconnect_script] [logging] debug = off rlpdebug = off Anyway, I AM experiencing instability with this combination, my first guess was that the cell phone might be a bit odd (some commands ended up in an error and the cell phone wouldn't work until restarted), so I think I'll give gammu a shot. Thanks for the hint. Regards, Philipp Allan Holdt Hansen INBODAN schrieb: > This will probably not solve your problem, but I'll throw in my 2(euro)cents anyway. > > After having had all sorts of weird problems with gnokii in the past, mosty connectivity and stability problems I switched to gammu (www.gammu.org). > > Works very stable. It has an SMS gateway feature (smsd) I suggest using. > > My gammurc (Nokia 6310i phone): > > [global] > port = /dev/ttyS0 > model = 6310i > connection = dau9p > use_locking = yes > serial_baudrate = 19200 > smsc_timeout = 10 > > [gnokiid] > bindir = /usr/local/sbin/ > > [connect_script] > TELEPHONE = 12345678 > [disconnect_script] > > > [logging] > debug = off > rlpdebug = off > xdebug = off > > Regards > Allan > > > -----Oprindelig meddelelse----- > Fra: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] P? vegne af Philipp Geschke > Sendt: 22. november 2007 10:00 > Til: nagios-users at lists.sourceforge.net > Emne: [Nagios-users] Using Nokia 6210 to send SMS with gnokii > > Hey list, > > I'm trying to use a Nokia 6210 mobile phone to send Nagios notifications > to other cell phones. > > I have the 6210 with software version 04.36. > I have a DAU9 serial cable. > > What I don't have is any success :( > > I tried running the phone with gnokii, without any success. There are > tons of "working" configurations out there. Tried most of them, so far > non worked. > > Just to make sure, the cable and phone are ok, I tried running the Nokia > PC Suite on Windows 2000. Also, without success, the phone is not found. > > Since the phone already worked with a serial cable connection, and the > cable is new, I don't think that one of them is actually broken, but > what do I know. > > So, my question is: > Is anybody out there using a Nokia 6210 with a serial cable (DAU9 would > be best) successfully? Maybe even with gnokii? > > If so, it would be awesome, if you could provide me with a REALLY > working configuration, so I could either get it to run, or ensure that > "something" is broken. > > > Or maybe someone has the same issues and we could share experience and > maybe figure it out? > > Right now I'm using the following gnokii configuration: > > [global] > port = /dev/ttyS0 > model = 7110 > initlength = default > connection = serial > use_locking = yes > serial_baudrate = 9600 > smsc_timeout = 10 > [gnokiid] > bindir = /usr/sbin/ > [connect_script] > TELEPHONE = 12345678 > [disconnect_script] > > Thanks a lot in advance ;-) > > Regards, > Philipp ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Fri Nov 23 11:37:52 2007 From: Gerhard.Lausser at consol.de (Gerhard Lausser) Date: Fri, 23 Nov 2007 11:37:52 +0100 Subject: Oracle alert logs In-Reply-To: <4745A347.5060202@tetrain.com> References: <4745A347.5060202@tetrain.com> Message-ID: <012201c82dbc$e696c040$0202fea9@int.consol.de> Hi Sunny, you could use http://www.consol.com/opensource/nagios/check-logfiles for that. However you need to either run the nrpe daemon or to be able to login wit ssh on the oracle server. On the examples page there is a section on Oracle alert logs: @searches = ( { tag => 'oraalerts', logfile => '......../alert.log', criticalpatterns => [ 'ORA\-0204', # error in reading control file 'ORA\-0206', # error in writing control file 'ORA\-0210', # cannot open control file 'ORA\-0257', # archiver is stuck 'ORA\-0333', # redo log read error 'ORA\-0345', # redo log write error 'ORA\-04[4-7][0-9]',# ORA-0440 - ORA-0485 background process failure 'ORA\-048[0-5]', 'ORA\-06[0-3][0-9]',# ORA-6000 - ORA-0639 internal errors 'ORA\-1114', # datafile I/O write error 'ORA\-1115', # datafile I/O read error 'ORA\-1116', # cannot open datafile 'ORA\-1118', # cannot add a data file 'ORA\-1578', # data block corruption 'ORA\-1135', # file accessed for query is offline 'ORA\-1547', # tablespace is full 'ORA\-1555', # snapshot too old 'ORA\-1562', # failed to extend rollback segment 'ORA\-162[89]', # ORA-1628 - ORA-1632 maximum extents exceeded 'ORA\-163[0-2]', 'ORA\-165[0-6]', # ORA-1650 - ORA-1656 tablespace is full 'ORA\-4031', # out of shared memory. ], warningpatterns => [ 'ORA\-3113', # end of file on communication channel 'ORA\-6501' # PL/SQL internal error ] }); On the DB-server you need the check_logfiles plugin and the above config file. Then you define a service define service { service_description check_oraalerts host_name dbsrv check_command check_by_ssh!/path/to/check_logfiles -f /path/to/above_configfile is_volatile 1 check_period 7x24 max_check_attempts 1 ... } define command { command_name check_by_ssh command_line $USER1$/check_by_ssh -H $HOSTADDRESS$ -C '$ARG1$' } and you should get a nagios notification every time new error messages are appended to the alertlog. Greetings from Munich, Gerhard > -----Urspr?ngliche Nachricht----- > Von: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] Im > Auftrag von Sunny Bhatheja > Gesendet: Donnerstag, 22. November 2007 16:42 > An: nagios-users at lists.sourceforge.net > Betreff: [Nagios-users] Oracle alert logs > > > Hello, > I want to monitor the oracle alert log > from my nagios server.My oracle is installed on remote > machine (sun 5.8) .It is a production server so i can `t do > much on that , Is there way way to monitor those alert logs. > > > > -------------------------------------------------------------- > ----------- > This SF.net email is sponsored by: Microsoft Defy all > challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nur-ab-sal at gmx.de Fri Nov 23 12:13:54 2007 From: nur-ab-sal at gmx.de (Stephan Seitz) Date: Fri, 23 Nov 2007 12:13:54 +0100 Subject: Question about the check_iftraffic.pl output Message-ID: <20071123T1209.GA.c5ca7.stse@fsing.rootsland.net> Hi! Does anyone know what the plugin check_iftraffic.pl produces for values in inAbsolut and outAbsolut? I mean, is this bit or kbit or byte or kbyte? Thanks for the information. Shade and sweet water! Stephan -- | Stephan Seitz E-Mail: Nur-Ab-Sal at gmx.de | | PGP Public Keys: http://fsing.rootsland.net/~stse/pgp.html | -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jakub.laszczynski at gmail.com Fri Nov 23 12:52:07 2007 From: jakub.laszczynski at gmail.com (=?ISO-8859-2?Q?Jakub_=A3aszczy=F1ski?=) Date: Fri, 23 Nov 2007 12:52:07 +0100 Subject: Notifications Message-ID: Hi, I would like to ask if there is possibility to change nagios behavior. It would save me a lot of time and work, if there was a possibility to send service/host notifications to those contactrgoups which are defined only in host definition? Anyone heard about such possibility? ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Fri Nov 23 13:31:46 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Fri, 23 Nov 2007 12:31:46 +0000 Subject: Regarding check_oracle In-Reply-To: <47466389.4070306@tetrain.com> References: <473AC2CA.9070202@tetrain.com> <473AC3EB.5010703@googlemail.com> <47466389.4070306@tetrain.com> Message-ID: <4746C832.1020105@googlemail.com> Sunny Bhatheja wrote: > > Yes i hve installed Oracle client and my $ORACLE_HOME is set and it is > connecting through oracle database. Have you any modified script? or > any thing else ... I added an ORACLE_HOME definition to top of the script at the time so it would not depend on the environment and just work. It might be better to fix the environment though... -h -- Hari Sekhon ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From g.digiambelardini at fabaris.it Fri Nov 23 14:34:33 2007 From: g.digiambelardini at fabaris.it (Di Giambelardini Gabriele) Date: Fri, 23 Nov 2007 14:34:33 +0100 (CET) Subject: check service Message-ID: <48355.192.168.1.1.1195824873.squirrel@webmail2.fabaris.it> Hi to all I'd like check by check_by_ssh if a service is alive on a remote linux server. Some body know if exist an check for the services?? thanks ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Fri Nov 23 15:10:19 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Fri, 23 Nov 2007 14:10:19 +0000 Subject: check service In-Reply-To: <48355.192.168.1.1.1195824873.squirrel@webmail2.fabaris.it> References: <48355.192.168.1.1.1195824873.squirrel@webmail2.fabaris.it> Message-ID: <4746DF4B.8080202@googlemail.com> Di Giambelardini Gabriele wrote: > Hi to all > I'd like check by check_by_ssh if a service is alive on a remote linux > server. > Some body know if exist an check for the services?? > thanks You should use check_procs from the standard plugins. You need the std plugins on the remote box in order to execute it on that side. I'd also recommend nrpe over check_by_ssh unless you have a good reason for doing it. -h -- Hari Sekhon ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sunny at tetrain.com Fri Nov 23 15:51:57 2007 From: sunny at tetrain.com (Sunny Bhatheja) Date: Fri, 23 Nov 2007 20:21:57 +0530 Subject: Oracle alert logs In-Reply-To: <012201c82dbc$e696c040$0202fea9@int.consol.de> References: <4745A347.5060202@tetrain.com> <012201c82dbc$e696c040$0202fea9@int.consol.de> Message-ID: <4746E90D.5030905@tetrain.com> Will the script useful with snmp? I have no nrpe on my oracle server i m collecting information through snmp only... Gerhard Lausser wrote: > Hi Sunny, > > you could use http://www.consol.com/opensource/nagios/check-logfiles for > that. However you need to either run the nrpe daemon or to be able to login > wit ssh on the oracle server. On the examples page there is a section on > Oracle alert logs: > @searches = ( > { > tag => 'oraalerts', > logfile => '......../alert.log', > criticalpatterns => [ > 'ORA\-0204', # error in reading control file > 'ORA\-0206', # error in writing control file > 'ORA\-0210', # cannot open control file > 'ORA\-0257', # archiver is stuck > 'ORA\-0333', # redo log read error > 'ORA\-0345', # redo log write error > 'ORA\-04[4-7][0-9]',# ORA-0440 - ORA-0485 background process failure > 'ORA\-048[0-5]', > 'ORA\-06[0-3][0-9]',# ORA-6000 - ORA-0639 internal errors > 'ORA\-1114', # datafile I/O write error > 'ORA\-1115', # datafile I/O read error > 'ORA\-1116', # cannot open datafile > 'ORA\-1118', # cannot add a data file > 'ORA\-1578', # data block corruption > 'ORA\-1135', # file accessed for query is offline > 'ORA\-1547', # tablespace is full > 'ORA\-1555', # snapshot too old > 'ORA\-1562', # failed to extend rollback segment > 'ORA\-162[89]', # ORA-1628 - ORA-1632 maximum extents exceeded > 'ORA\-163[0-2]', > 'ORA\-165[0-6]', # ORA-1650 - ORA-1656 tablespace is full > 'ORA\-4031', # out of shared memory. > ], > warningpatterns => [ > 'ORA\-3113', # end of file on communication channel > 'ORA\-6501' # PL/SQL internal error > ] > }); > > On the DB-server you need the check_logfiles plugin and the above config > file. > Then you define a service > > define service { > service_description check_oraalerts > host_name dbsrv > check_command check_by_ssh!/path/to/check_logfiles -f > /path/to/above_configfile > is_volatile 1 > check_period 7x24 > max_check_attempts 1 > ... > } > > define command { > command_name check_by_ssh > command_line $USER1$/check_by_ssh -H > $HOSTADDRESS$ -C '$ARG1$' > } > > and you should get a nagios notification every time new error messages are > appended to the alertlog. > > Greetings from Munich, > Gerhard > > >> -----Urspr?ngliche Nachricht----- >> Von: nagios-users-bounces at lists.sourceforge.net >> [mailto:nagios-users-bounces at lists.sourceforge.net] Im >> Auftrag von Sunny Bhatheja >> Gesendet: Donnerstag, 22. November 2007 16:42 >> An: nagios-users at lists.sourceforge.net >> Betreff: [Nagios-users] Oracle alert logs >> >> >> Hello, >> I want to monitor the oracle alert log >> from my nagios server.My oracle is installed on remote >> machine (sun 5.8) .It is a production server so i can `t do >> much on that , Is there way way to monitor those alert logs. >> >> >> >> -------------------------------------------------------------- >> ----------- >> This SF.net email is sponsored by: Microsoft Defy all >> challenges. Microsoft(R) Visual Studio 2005. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS >> when reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> >> > > > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Gerhard.Lausser at consol.de Fri Nov 23 16:11:48 2007 From: Gerhard.Lausser at consol.de (Gerhard Lausser) Date: Fri, 23 Nov 2007 16:11:48 +0100 Subject: Oracle alert logs In-Reply-To: <4746E90D.5030905@tetrain.com> References: <4745A347.5060202@tetrain.com> <012201c82dbc$e696c040$0202fea9@int.consol.de> <4746E90D.5030905@tetrain.com> Message-ID: <012901c82de3$2b6e63a0$0202fea9@int.consol.de> > Will the script useful with snmp? I have no nrpe on my oracle > server i m collecting information through snmp only... Sorry, the plugin must have local access to the logfile. Without nrpe check_by_ssh is your only chance to run the plugin on the database server. If you're limited to snmp then i see no chance except writing your own extension to snmpd (http://www.net-snmp.org/wiki/index.php/Tut:Extending_snmpd_using_perl). Gerhard > > Gerhard Lausser wrote: > > Hi Sunny, > > > > you could use > http://www.consol.com/opensource/nagios/check-logfiles > > for that. However you need to either run the nrpe daemon or > to be able > > to login wit ssh on the oracle server. On the examples page > there is a > > section on Oracle alert logs: > > @searches = ( > > { > > tag => 'oraalerts', > > logfile => '......../alert.log', > > criticalpatterns => [ > > 'ORA\-0204', # error in reading control file > > 'ORA\-0206', # error in writing control file > > 'ORA\-0210', # cannot open control file > > 'ORA\-0257', # archiver is stuck > > 'ORA\-0333', # redo log read error > > 'ORA\-0345', # redo log write error > > 'ORA\-04[4-7][0-9]',# ORA-0440 - ORA-0485 background > process failure > > 'ORA\-048[0-5]', > > 'ORA\-06[0-3][0-9]',# ORA-6000 - ORA-0639 internal errors > > 'ORA\-1114', # datafile I/O write error > > 'ORA\-1115', # datafile I/O read error > > 'ORA\-1116', # cannot open datafile > > 'ORA\-1118', # cannot add a data file > > 'ORA\-1578', # data block corruption > > 'ORA\-1135', # file accessed for query is offline > > 'ORA\-1547', # tablespace is full > > 'ORA\-1555', # snapshot too old > > 'ORA\-1562', # failed to extend rollback segment > > 'ORA\-162[89]', # ORA-1628 - ORA-1632 maximum > extents exceeded > > 'ORA\-163[0-2]', > > 'ORA\-165[0-6]', # ORA-1650 - ORA-1656 tablespace is full > > 'ORA\-4031', # out of shared memory. > > ], > > warningpatterns => [ > > 'ORA\-3113', # end of file on communication channel > > 'ORA\-6501' # PL/SQL internal error > > ] > > }); > > > > On the DB-server you need the check_logfiles plugin and the above > > config file. > > Then you define a service > > > > define service { > > service_description check_oraalerts > > host_name dbsrv > > check_command check_by_ssh!/path/to/check_logfiles -f > > /path/to/above_configfile > > is_volatile 1 > > check_period 7x24 > > max_check_attempts 1 > > ... > > } > > > > define command { > > command_name check_by_ssh > > command_line > $USER1$/check_by_ssh -H > > $HOSTADDRESS$ -C '$ARG1$' > > } > > > > and you should get a nagios notification every time new > error messages > > are appended to the alertlog. > > > > Greetings from Munich, > > Gerhard > > > > > >> -----Urspr?ngliche Nachricht----- > >> Von: nagios-users-bounces at lists.sourceforge.net > >> [mailto:nagios-users-bounces at lists.sourceforge.net] Im Auftrag von > >> Sunny Bhatheja > >> Gesendet: Donnerstag, 22. November 2007 16:42 > >> An: nagios-users at lists.sourceforge.net > >> Betreff: [Nagios-users] Oracle alert logs > >> > >> > >> Hello, > >> I want to monitor the oracle alert > log from my > >> nagios server.My oracle is installed on remote machine > (sun 5.8) .It > >> is a production server so i can `t do much on that , Is > there way way > >> to monitor those alert logs. > >> > >> > >> > >> -------------------------------------------------------------- > >> ----------- > >> This SF.net email is sponsored by: Microsoft Defy all challenges. > >> Microsoft(R) Visual Studio 2005. > >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >> _______________________________________________ > >> Nagios-users mailing list > >> Nagios-users at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/nagios-users > >> ::: Please include Nagios version, plugin version (-v) and OS when > >> reporting any issue. > >> ::: Messages without supporting info will risk being sent to > >> /dev/null > >> > >> > > > > > > > > > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lists at frasa.net Sat Nov 24 01:12:31 2007 From: lists at frasa.net (Mark Frasa) Date: Sat, 24 Nov 2007 01:12:31 +0100 Subject: Process check snmp error Message-ID: Hello, We use nagios to check some processes on remote boxes (LAN). Every once in a while I get errors like these: ERROR: running table : Received noSuchName(2) error-status at error-index 50. And the next check: 1 process matching nagios (0) I have googled for this error as well but could not find anything related to this, and it seems like the error-index is not always the same. There are some hints on that the community name is wrong or not RW, but that's simply not the case, since after a few minutes I get an OK back. I am using check_snmp_process.pl version: 1.4 Though I have tried version 1.10 from http://nagios.manubulon.com/snmp_process.html it seems to have the same errors, so I think its not related to the check itself. The OS on the box is Debian. I caught a error with the -v option, so we can see whats going on: 0 0 0 0 Alarm at 15 Filter : nagios2 OID : 1.3.6.1.2.1.25.4.2.1.2.1719, Desc : getty OID : 1.3.6.1.2.1.25.4.2.1.2.170, Desc : ata/2 OID : 1.3.6.1.2.1.25.4.2.1.2.1667, Desc : cron OID : 1.3.6.1.2.1.25.4.2.1.2.1299, Desc : kjournald OID : 1.3.6.1.2.1.25.4.2.1.2.1488, Desc : klogd OID : 1.3.6.1.2.1.25.4.2.1.2.1482, Desc : syslogd OID : 1.3.6.1.2.1.25.4.2.1.2.173, Desc : ksuspend_usbd OID : 1.3.6.1.2.1.25.4.2.1.2.21780, Desc : apache2 OID : 1.3.6.1.2.1.25.4.2.1.2.2012, Desc : nagios2 1.3.6.1.2.1.25.4.2.1.7.2012 OID : 1.3.6.1.2.1.25.4.2.1.2.14, Desc : khelper OID : 1.3.6.1.2.1.25.4.2.1.2.1257, Desc : kmirrord OID : 1.3.6.1.2.1.25.4.2.1.2.26136, Desc : nagios2 1.3.6.1.2.1.25.4.2.1.7.26136 OID : 1.3.6.1.2.1.25.4.2.1.2.21618, Desc : apache2 OID : 1.3.6.1.2.1.25.4.2.1.2.21805, Desc : apache2 OID : 1.3.6.1.2.1.25.4.2.1.2.1534, Desc : sshd OID : 1.3.6.1.2.1.25.4.2.1.2.1295, Desc : kjournald OID : 1.3.6.1.2.1.25.4.2.1.2.12, Desc : events/2 OID : 1.3.6.1.2.1.25.4.2.1.2.28347, Desc : apache2 OID : 1.3.6.1.2.1.25.4.2.1.2.15818, Desc : ntpd OID : 1.3.6.1.2.1.25.4.2.1.2.1052, Desc : kjournald OID : 1.3.6.1.2.1.25.4.2.1.2.28343, Desc : apache2 OID : 1.3.6.1.2.1.25.4.2.1.2.18072, Desc : tail OID : 1.3.6.1.2.1.25.4.2.1.2.1293, Desc : kjournald OID : 1.3.6.1.2.1.25.4.2.1.2.226, Desc : aio/2 OID : 1.3.6.1.2.1.25.4.2.1.2.10, Desc : events/0 OID : 1.3.6.1.2.1.25.4.2.1.2.1718, Desc : getty OID : 1.3.6.1.2.1.25.4.2.1.2.225, Desc : aio/1 OID : 1.3.6.1.2.1.25.4.2.1.2.1894, Desc : tail OID : 1.3.6.1.2.1.25.4.2.1.2.11, Desc : events/1 OID : 1.3.6.1.2.1.25.4.2.1.2.8, Desc : migration/3 OID : 1.3.6.1.2.1.25.4.2.1.2.1699, Desc : nrpe OID : 1.3.6.1.2.1.25.4.2.1.2.178, Desc : kseriod OID : 1.3.6.1.2.1.25.4.2.1.2.1297, Desc : kjournald OID : 1.3.6.1.2.1.25.4.2.1.2.15, Desc : kthread OID : 1.3.6.1.2.1.25.4.2.1.2.222, Desc : pdflush OID : 1.3.6.1.2.1.25.4.2.1.2.1383, Desc : portmap OID : 1.3.6.1.2.1.25.4.2.1.2.65, Desc : kblockd/3 OID : 1.3.6.1.2.1.25.4.2.1.2.26135, Desc : nagios2 1.3.6.1.2.1.25.4.2.1.7.26135 OID : 1.3.6.1.2.1.25.4.2.1.2.1720, Desc : getty OID : 1.3.6.1.2.1.25.4.2.1.2.221, Desc : pdflush OID : 1.3.6.1.2.1.25.4.2.1.2.1265, Desc : ksnapd OID : 1.3.6.1.2.1.25.4.2.1.2.1600, Desc : rpc.idmapd OID : 1.3.6.1.2.1.25.4.2.1.2.1569, Desc : rpc.statd OID : 1.3.6.1.2.1.25.4.2.1.2.7, Desc : ksoftirqd/2 OID : 1.3.6.1.2.1.25.4.2.1.2.999, Desc : scsi_eh_0 OID : 1.3.6.1.2.1.25.4.2.1.2.62, Desc : kblockd/0 OID : 1.3.6.1.2.1.25.4.2.1.2.66, Desc : kacpid OID : 1.3.6.1.2.1.25.4.2.1.2.63, Desc : kblockd/1 OID : 1.3.6.1.2.1.25.4.2.1.2.21864, Desc : apache2 OID : 1.3.6.1.2.1.25.4.2.1.2.2, Desc : migration/0 OID : 1.3.6.1.2.1.25.4.2.1.2.27892, Desc : named OID : 1.3.6.1.2.1.25.4.2.1.2.224, Desc : aio/0 OID : 1.3.6.1.2.1.25.4.2.1.2.176, Desc : khubd OID : 1.3.6.1.2.1.25.4.2.1.2.5, Desc : ksoftirqd/1 OID : 1.3.6.1.2.1.25.4.2.1.2.17422, Desc : apache2 OID : 1.3.6.1.2.1.25.4.2.1.2.3, Desc : ksoftirqd/0 OID : 1.3.6.1.2.1.25.4.2.1.2.9, Desc : ksoftirqd/3 OID : 1.3.6.1.2.1.25.4.2.1.2.24581, Desc : tail OID : 1.3.6.1.2.1.25.4.2.1.2.168, Desc : ata/0 OID : 1.3.6.1.2.1.25.4.2.1.2.6, Desc : migration/2 OID : 1.3.6.1.2.1.25.4.2.1.2.1, Desc : init OID : 1.3.6.1.2.1.25.4.2.1.2.21699, Desc : apache2 OID : 1.3.6.1.2.1.25.4.2.1.2.2312, Desc : apache2 OID : 1.3.6.1.2.1.25.4.2.1.2.13, Desc : events/3 OID : 1.3.6.1.2.1.25.4.2.1.2.21613, Desc : apache2 OID : 1.3.6.1.2.1.25.4.2.1.2.1721, Desc : getty OID : 1.3.6.1.2.1.25.4.2.1.2.227, Desc : aio/3 OID : 1.3.6.1.2.1.25.4.2.1.2.28765, Desc : tail OID : 1.3.6.1.2.1.25.4.2.1.2.64, Desc : kblockd/2 OID : 1.3.6.1.2.1.25.4.2.1.2.928, Desc : kirqd OID : 1.3.6.1.2.1.25.4.2.1.2.21881, Desc : apache2 OID : 1.3.6.1.2.1.25.4.2.1.2.172, Desc : ata_aux OID : 1.3.6.1.2.1.25.4.2.1.2.169, Desc : ata/1 OID : 1.3.6.1.2.1.25.4.2.1.2.4, Desc : migration/1 OID : 1.3.6.1.2.1.25.4.2.1.2.171, Desc : ata/3 OID : 1.3.6.1.2.1.25.4.2.1.2.223, Desc : kswapd0 OID : 1.3.6.1.2.1.25.4.2.1.2.3299, Desc : exim4 OID : 1.3.6.1.2.1.25.4.2.1.2.1722, Desc : getty OID : 1.3.6.1.2.1.25.4.2.1.2.6191, Desc : getty OID : 1.3.6.1.2.1.25.4.2.1.2.3019, Desc : snmpd ERROR: running table : Received noSuchName(2) error-status at error-index 6. Can anyone tell me why this is giving a error? Thanks in advance, Mark. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Roger at NagiosWiki.com Sat Nov 24 04:29:05 2007 From: Roger at NagiosWiki.com (Roger) Date: Fri, 23 Nov 2007 19:29:05 -0800 Subject: netsnmp SuSE: anyone here have experience using it? Message-ID: <2b7af7c40711231929sa1718c5t288af0a27f5f0c4d@mail.gmail.com> I'm looking to possibly install netsnmp for SuSE ( http://www.nagiosexchange.org/SNMP.64.0.html?&tx_netnagext_pi1%5Bp_view%5D=435) on an older SLOX machine that doesn't have net-snmp installed (it has ucd-snmp instead). Has anyone actually used this project? I notice that it has no rating, which kinda scares me about putting it in production on a box that supports 300 domains. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From td3201 at gmail.com Sat Nov 24 07:07:22 2007 From: td3201 at gmail.com (Terry) Date: Sat, 24 Nov 2007 00:07:22 -0600 Subject: reloading nagios -- scalability discussion Message-ID: <8ee061010711232207ld626018t1c254d64164720fe@mail.gmail.com> Hello, I am pondering a very large deployment where frequent and uncontrollable changes to the nagios configuration files is inevitable. How does nagios react to being hupped a lot? Thanks! Terry ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lists at frasa.net Sat Nov 24 07:45:09 2007 From: lists at frasa.net (Mark Frasa) Date: Sat, 24 Nov 2007 07:45:09 +0100 Subject: Process check snmp error In-Reply-To: References: Message-ID: Hello Again, Perhaps this has something to do with the following (source: http://www.apps.ietf.org/rfc/rfc2089.html#sec-A.1) 2.5 Mapping SNMPv2 SMI into SNMPv1 The SNMPv2 SMI (RFC1902 [2]) defines basically one new syntax that is problematic for SNMPv1 managers. That is the syntax Counter64. All the others can be handled by SNMPv1 managers. The net impact on bi-lingual agents is that they should make sure that they never return a varBind with a Counter64 value to an SNMPv1 manager. The best accepted practice is to consider such object instances implicitly excluded from the view. So: . On an SNMPv1 GET request, we return an error-status of noSuchName and the error-index is set to the varBind that causes this error. When I use check_snmp_process.pl -2 it seems not to happen. Can anybody confirm this? Cheers, Mark ________________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Mark Frasa Sent: zaterdag 24 november 2007 1:13 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Process check snmp error Hello, We use nagios to check some processes on remote boxes (LAN). Every once in a while I get errors like these: ERROR: running table : Received noSuchName(2) error-status at error-index 50. And the next check: 1 process matching nagios (0) I have googled for this error as well but could not find anything related to this, and it seems like the error-index is not always the same. There are some hints on that the community name is wrong or not RW, but that's simply not the case, since after a few minutes I get an OK back. I am using check_snmp_process.pl version: 1.4 Though I have tried version 1.10 from http://nagios.manubulon.com/snmp_process.html it seems to have the same errors, so I think its not related to the check itself. The OS on the box is Debian. I caught a error with the -v option, so we can see whats going on: 0 0 0 0 Alarm at 15 Filter : nagios2 OID : 1.3.6.1.2.1.25.4.2.1.2.1719, Desc : getty OID : 1.3.6.1.2.1.25.4.2.1.2.170, Desc : ata/2 OID : 1.3.6.1.2.1.25.4.2.1.2.1667, Desc : cron OID : 1.3.6.1.2.1.25.4.2.1.2.1299, Desc : kjournald OID : 1.3.6.1.2.1.25.4.2.1.2.1488, Desc : klogd OID : 1.3.6.1.2.1.25.4.2.1.2.1482, Desc : syslogd OID : 1.3.6.1.2.1.25.4.2.1.2.173, Desc : ksuspend_usbd OID : 1.3.6.1.2.1.25.4.2.1.2.21780, Desc : apache2 OID : 1.3.6.1.2.1.25.4.2.1.2.2012, Desc : nagios2 1.3.6.1.2.1.25.4.2.1.7.2012 OID : 1.3.6.1.2.1.25.4.2.1.2.14, Desc : khelper OID : 1.3.6.1.2.1.25.4.2.1.2.1257, Desc : kmirrord OID : 1.3.6.1.2.1.25.4.2.1.2.26136, Desc : nagios2 1.3.6.1.2.1.25.4.2.1.7.26136 OID : 1.3.6.1.2.1.25.4.2.1.2.21618, Desc : apache2 OID : 1.3.6.1.2.1.25.4.2.1.2.21805, Desc : apache2 OID : 1.3.6.1.2.1.25.4.2.1.2.1534, Desc : sshd OID : 1.3.6.1.2.1.25.4.2.1.2.1295, Desc : kjournald OID : 1.3.6.1.2.1.25.4.2.1.2.12, Desc : events/2 OID : 1.3.6.1.2.1.25.4.2.1.2.28347, Desc : apache2 OID : 1.3.6.1.2.1.25.4.2.1.2.15818, Desc : ntpd OID : 1.3.6.1.2.1.25.4.2.1.2.1052, Desc : kjournald OID : 1.3.6.1.2.1.25.4.2.1.2.28343, Desc : apache2 OID : 1.3.6.1.2.1.25.4.2.1.2.18072, Desc : tail OID : 1.3.6.1.2.1.25.4.2.1.2.1293, Desc : kjournald OID : 1.3.6.1.2.1.25.4.2.1.2.226, Desc : aio/2 OID : 1.3.6.1.2.1.25.4.2.1.2.10, Desc : events/0 OID : 1.3.6.1.2.1.25.4.2.1.2.1718, Desc : getty OID : 1.3.6.1.2.1.25.4.2.1.2.225, Desc : aio/1 OID : 1.3.6.1.2.1.25.4.2.1.2.1894, Desc : tail OID : 1.3.6.1.2.1.25.4.2.1.2.11, Desc : events/1 OID : 1.3.6.1.2.1.25.4.2.1.2.8, Desc : migration/3 OID : 1.3.6.1.2.1.25.4.2.1.2.1699, Desc : nrpe OID : 1.3.6.1.2.1.25.4.2.1.2.178, Desc : kseriod OID : 1.3.6.1.2.1.25.4.2.1.2.1297, Desc : kjournald OID : 1.3.6.1.2.1.25.4.2.1.2.15, Desc : kthread OID : 1.3.6.1.2.1.25.4.2.1.2.222, Desc : pdflush OID : 1.3.6.1.2.1.25.4.2.1.2.1383, Desc : portmap OID : 1.3.6.1.2.1.25.4.2.1.2.65, Desc : kblockd/3 OID : 1.3.6.1.2.1.25.4.2.1.2.26135, Desc : nagios2 1.3.6.1.2.1.25.4.2.1.7.26135 OID : 1.3.6.1.2.1.25.4.2.1.2.1720, Desc : getty OID : 1.3.6.1.2.1.25.4.2.1.2.221, Desc : pdflush OID : 1.3.6.1.2.1.25.4.2.1.2.1265, Desc : ksnapd OID : 1.3.6.1.2.1.25.4.2.1.2.1600, Desc : rpc.idmapd OID : 1.3.6.1.2.1.25.4.2.1.2.1569, Desc : rpc.statd OID : 1.3.6.1.2.1.25.4.2.1.2.7, Desc : ksoftirqd/2 OID : 1.3.6.1.2.1.25.4.2.1.2.999, Desc : scsi_eh_0 OID : 1.3.6.1.2.1.25.4.2.1.2.62, Desc : kblockd/0 OID : 1.3.6.1.2.1.25.4.2.1.2.66, Desc : kacpid OID : 1.3.6.1.2.1.25.4.2.1.2.63, Desc : kblockd/1 OID : 1.3.6.1.2.1.25.4.2.1.2.21864, Desc : apache2 OID : 1.3.6.1.2.1.25.4.2.1.2.2, Desc : migration/0 OID : 1.3.6.1.2.1.25.4.2.1.2.27892, Desc : named OID : 1.3.6.1.2.1.25.4.2.1.2.224, Desc : aio/0 OID : 1.3.6.1.2.1.25.4.2.1.2.176, Desc : khubd OID : 1.3.6.1.2.1.25.4.2.1.2.5, Desc : ksoftirqd/1 OID : 1.3.6.1.2.1.25.4.2.1.2.17422, Desc : apache2 OID : 1.3.6.1.2.1.25.4.2.1.2.3, Desc : ksoftirqd/0 OID : 1.3.6.1.2.1.25.4.2.1.2.9, Desc : ksoftirqd/3 OID : 1.3.6.1.2.1.25.4.2.1.2.24581, Desc : tail OID : 1.3.6.1.2.1.25.4.2.1.2.168, Desc : ata/0 OID : 1.3.6.1.2.1.25.4.2.1.2.6, Desc : migration/2 OID : 1.3.6.1.2.1.25.4.2.1.2.1, Desc : init OID : 1.3.6.1.2.1.25.4.2.1.2.21699, Desc : apache2 OID : 1.3.6.1.2.1.25.4.2.1.2.2312, Desc : apache2 OID : 1.3.6.1.2.1.25.4.2.1.2.13, Desc : events/3 OID : 1.3.6.1.2.1.25.4.2.1.2.21613, Desc : apache2 OID : 1.3.6.1.2.1.25.4.2.1.2.1721, Desc : getty OID : 1.3.6.1.2.1.25.4.2.1.2.227, Desc : aio/3 OID : 1.3.6.1.2.1.25.4.2.1.2.28765, Desc : tail OID : 1.3.6.1.2.1.25.4.2.1.2.64, Desc : kblockd/2 OID : 1.3.6.1.2.1.25.4.2.1.2.928, Desc : kirqd OID : 1.3.6.1.2.1.25.4.2.1.2.21881, Desc : apache2 OID : 1.3.6.1.2.1.25.4.2.1.2.172, Desc : ata_aux OID : 1.3.6.1.2.1.25.4.2.1.2.169, Desc : ata/1 OID : 1.3.6.1.2.1.25.4.2.1.2.4, Desc : migration/1 OID : 1.3.6.1.2.1.25.4.2.1.2.171, Desc : ata/3 OID : 1.3.6.1.2.1.25.4.2.1.2.223, Desc : kswapd0 OID : 1.3.6.1.2.1.25.4.2.1.2.3299, Desc : exim4 OID : 1.3.6.1.2.1.25.4.2.1.2.1722, Desc : getty OID : 1.3.6.1.2.1.25.4.2.1.2.6191, Desc : getty OID : 1.3.6.1.2.1.25.4.2.1.2.3019, Desc : snmpd ERROR: running table : Received noSuchName(2) error-status at error-index 6. Can anyone tell me why this is giving a error? Thanks in advance, Mark. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Sat Nov 24 14:07:55 2007 From: ae at op5.se (Andreas Ericsson) Date: Sat, 24 Nov 2007 14:07:55 +0100 Subject: reloading nagios -- scalability discussion In-Reply-To: <8ee061010711232207ld626018t1c254d64164720fe@mail.gmail.com> References: <8ee061010711232207ld626018t1c254d64164720fe@mail.gmail.com> Message-ID: <4748222B.6080804@op5.se> Terry wrote: > Hello, > > I am pondering a very large deployment where frequent and > uncontrollable changes to the nagios configuration files is > inevitable. How does nagios react to being hupped a lot? > You're likely to see some small memory leaks. Beyond that, it *should* work nicely. Although when you say "large deployment with frequent and uncontrollable changes to the config", I can't help but think you're doing something really, really wrong. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From daniel-listas at gmx.net Sat Nov 24 20:05:08 2007 From: daniel-listas at gmx.net (Daniel Bareiro) Date: Sat, 24 Nov 2007 16:05:08 -0300 Subject: Host object redefinition In-Reply-To: <126A0D01-15A6-4EB0-B9D0-E4F58B013034@ena.com> References: <20071120033413.GA8127@hermes.freesoftware.org> <20071122001905.GE8575@hermes.freesoftware.org> <126A0D01-15A6-4EB0-B9D0-E4F58B013034@ena.com> Message-ID: <20071124190508.GA18029@hermes.freesoftware.org> On Thursday, 22 November 2007 08:14:54 -0600, Marc Powell wrote: > >>> Then, I'd like to redefine the host object to include a port > >>> variable for call it in a general service definition. > >> With nagios-3, yes, but not with nagios-2. > > I'm using Nagios 3. Could you give me an example? I was searching > > documentation about it, but I didn't found how to do it yet. > See Custom Variable Macros at > http://nagios.sourceforge.net/docs/3_0/macros.html Great! Thank you very much, Marc. Regards, Daniel -- Daniel Bareiro - System Administrator Fingerprint: BFB3 08D6 B4D1 31B2 72B9 29CE 6696 BF1B 14E6 1D37 Powered by Debian GNU/Linux Etch - Linux user #188.598 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From daniel-listas at gmx.net Sat Nov 24 20:21:44 2007 From: daniel-listas at gmx.net (Daniel Bareiro) Date: Sat, 24 Nov 2007 16:21:44 -0300 Subject: Inode porcentage missing Message-ID: <20071124192144.GB18029@hermes.freesoftware.org> Hi all! I've detected missing porcentage in inode usage for some servers. DISK OK - free space: / 2391 MB (83% inode=-): /var 4443 MB (94% inode=-): DISK OK - free space: / 3058 MB (74% inode=-): /space 8385 MB (81% inode=-): DISK OK - free space: / 18321 MB (96% inode=-): In all the servers I'm using 1.4.7 version of nagios plugins. The Nagios server version is 3. The NRPE daemon version is 2.9. The operating system is Debian GNU/Linux Etch in all they. Any idea? It is a bug? Thanks in advance. Regards, Daniel -- Daniel Bareiro - System Administrator Fingerprint: BFB3 08D6 B4D1 31B2 72B9 29CE 6696 BF1B 14E6 1D37 Powered by Debian GNU/Linux Etch - Linux user #188.598 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From aharrison at gmail.com Sun Nov 25 15:18:10 2007 From: aharrison at gmail.com (Andy Harrison) Date: Sun, 25 Nov 2007 09:18:10 -0500 Subject: netsnmp SuSE: anyone here have experience using it? In-Reply-To: <2b7af7c40711231929sa1718c5t288af0a27f5f0c4d@mail.gmail.com> References: <2b7af7c40711231929sa1718c5t288af0a27f5f0c4d@mail.gmail.com> Message-ID: On 11/23/07, Roger wrote: > I'm looking to possibly install netsnmp for SuSE > (http://www.nagiosexchange.org/SNMP.64.0.html?&tx_netnagext_pi1%5Bp_view%5D=435 > ) on an older SLOX machine that doesn't have net-snmp installed (it has > ucd-snmp instead). > > Has anyone actually used this project? I notice that it has no rating, which > kinda scares me about putting it in production on a box that supports 300 > domains. Net-SNMP is pretty standard. Lots of people don't like the ucd version and use that instead. I've used it on Solaris, FreeBSD, and Linux. But don't install it from nagios exchange, just install it right from the regular suse repositories. -- Andy Harrison public key: 0x67518262 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From haydn.solomon at gmail.com Sun Nov 25 21:57:41 2007 From: haydn.solomon at gmail.com (Haydn Solomon) Date: Sun, 25 Nov 2007 15:57:41 -0500 Subject: Host object redefinition In-Reply-To: <20071124190508.GA18029@hermes.freesoftware.org> References: <20071120033413.GA8127@hermes.freesoftware.org> <20071122001905.GE8575@hermes.freesoftware.org> <126A0D01-15A6-4EB0-B9D0-E4F58B013034@ena.com> <20071124190508.GA18029@hermes.freesoftware.org> Message-ID: Have you considered using nrpe server behind the firewall and nagios master server outside the firewall? Using nrpe like this means you only have to "punch one hole" in the firewall to communicate with nrpe and let nrpe execute the checks as a kind of proxy if you will. This way you don't have to worry about using port address translation. On Nov 24, 2007 2:05 PM, Daniel Bareiro wrote: > On Thursday, 22 November 2007 08:14:54 -0600, > Marc Powell wrote: > > > >>> Then, I'd like to redefine the host object to include a port > > >>> variable for call it in a general service definition. > > > >> With nagios-3, yes, but not with nagios-2. > > > > I'm using Nagios 3. Could you give me an example? I was searching > > > documentation about it, but I didn't found how to do it yet. > > > See Custom Variable Macros at > > http://nagios.sourceforge.net/docs/3_0/macros.html > > Great! Thank you very much, Marc. > > Regards, > Daniel > -- > Daniel Bareiro - System Administrator > Fingerprint: BFB3 08D6 B4D1 31B2 72B9 29CE 6696 BF1B 14E6 1D37 > Powered by Debian GNU/Linux Etch - Linux user #188.598 > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.6 (GNU/Linux) > > iD8DBQFHSHXkZpa/GxTmHTcRAh0VAKCQraAjQh4gnlMHNMb8lTNCdscXJgCfQ8r6 > 38YXYzzOpv70QROa3wq1S9Y= > =nROR > -----END PGP SIGNATURE----- > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cbschuld at aztecsoftware.net Mon Nov 26 03:01:00 2007 From: cbschuld at aztecsoftware.net (Chris Schuld) Date: Sun, 25 Nov 2007 19:01:00 -0700 Subject: Interesting Challenge (Hosts & Services Missing... some of the time) Message-ID: <98bf16030711251801x1506a598ke8850e3a33c525ca@mail.gmail.com> Hello All: I have a new Nagios setup with everything running nearly perfect... except this. If I click on "Service Detail" under monitoring -- I only get my "full list" of services about 60% of the time. The other 40% of the time I only get just the services under localhost. My services and hosts are broke into a two files (one for local host & the original default settings for the local host and a second file which holds a list of servers on our network). It is almost as if the nagios daemon does not see my second config file some of the time... this is actually true on any of the links but it appears to happen more on "Service Detail." I am using 3.0b7 and curious if this has ever happened to anyone else at all? I searched the mailing list and forums and came up empty handed. Thanks, Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hvdkooij at vanderkooij.org Mon Nov 26 07:17:19 2007 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Mon, 26 Nov 2007 07:17:19 +0100 Subject: Interesting Challenge (Hosts & Services Missing... some of the time) In-Reply-To: <98bf16030711251801x1506a598ke8850e3a33c525ca@mail.gmail.com> References: <98bf16030711251801x1506a598ke8850e3a33c525ca@mail.gmail.com> Message-ID: <474A64EF.5030803@vanderkooij.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Chris Schuld wrote: > Hello All: > > I have a new Nagios setup with everything running nearly perfect... > except this. > > If I click on "Service Detail" under monitoring -- I only get my "full > list" of services about 60% of the time. The other 40% of the time I > only get just the services under localhost. > > My services and hosts are broke into a two files (one for local host & > the original default settings for the local host and a second file which > holds a list of servers on our network). > > It is almost as if the nagios daemon does not see my second config file > some of the time... this is actually true on any of the links but it > appears to happen more on "Service Detail." > > I am using 3.0b7 and curious if this has ever happened to anyone else at > all? I searched the mailing list and forums and came up empty handed. This is a common problem if you happen to have two instances of Nagios running. So the obvious plan is to stop Nagios the normal way. Then see if anything is still lingering about and shoot to kill them. Tehn startup Nagios again. If the problem remains also check that you are not mixing startup methods. 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) iD8DBQFHSmTtBvzDRVjxmYERAh8sAJ4vTQZSPLr+lz1tiWFTX0XH84UtEwCgpqPP XxoyclmEhuGviIfkpDCEyBQ= =oFgE -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From J.Filon at office.caiw.nl Mon Nov 26 08:34:12 2007 From: J.Filon at office.caiw.nl (Jasper Filon) Date: Mon, 26 Nov 2007 08:34:12 +0100 Subject: Escalations causing "Recover" messages with noproblem message send Message-ID: <6EFD6B9CD50A0643A79CEE5BA3894B8801DF7768@neo.office.caiw.intern> Gents, Posted this about a week ago and it's starting to become a real problem for us. We receive regular "recovery" message without getting any Warning/Criticals. Any help would be highly appreciated. Met vriendelijke groet/With kind regards, Jasper Filon CAIWAY Business -----Oorspronkelijk bericht----- Van: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] Namens Jasper Filon Verzonden: woensdag 21 november 2007 9:13 Aan: nagios-users at lists.sourceforge.net Onderwerp: [Nagios-users] Escalations causing "Recover" messages with noproblem message send Dear All, I'm implementing Nagios for a large ISP in the Netherlands. I configured all service-notifications to be sent to both the "linux-admin" group and the "linux-admin-sms" group. The first is by email, the second by sms. The Linux-admin-sms is set to only accept C, U and R (critical, unknown, recovered) messages for services. We want the first notification that something is wrong (either critical or warning) not by sms, but only by email. In order to keep configuration as easy as possible and minimizing the work of adding a new host, I simply made an service "escalation" stating: ## All first notifications only go by email define serviceescalation{ host_name * service_description * contact_groups linux-admins; first_notification 1 last_notification 1 notification_interval 15 } This works fine and causes the first message to be only send by Email. Any Critical message beyond the first goes by sms as well as intented. This has an unintended side-effect in case the services goed through the following sequence: - Service goes critical -> notification by email (first notification) - Service goes warning -> notification by email (2nd allert, but no sms is send for warnings) - Service goes ok -> recovery notification by email _and by sms_ Obviously, it is unwanted that a recovery message is send out by SMS in this case, because the recipient didnt know there was a problem in the first place. According to the documentation, this should not be possible: http://nagios.sourceforge.net/docs/2_0/notifications.html#contacts Note: Notifications about host or service recoveries are only sent out if a notification was sent out for the original problem. It doesn't make sense to get a recovery notification for something you never knew was a problem... Can somebody give me more information regarding the way Nagios handles notifications? I thought the above url explained everything clearly but it doesnt explain this problem. Any help appreciated. Met vriendelijke groet/With kind regards, Jasper Filon CAIWAY Business ------------------------------------------------------------------------ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Deze email is gecontroleerd door CAIWAY Internet Virusvrij. Voor meer informatie, zie http://www.caiway.nl/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From carstenph at gmx.de Mon Nov 26 11:22:38 2007 From: carstenph at gmx.de (Carsten Philipp) Date: Mon, 26 Nov 2007 11:22:38 +0100 Subject: live demo In-Reply-To: References: <114036.74558.qm@web45504.mail.sp1.yahoo.com> Message-ID: <474A9E6E.7000306@gmx.de> Hi, do you tried http://nagios-demo.netways.de/ ? Login is "guest" and password "guest". Have fun Carsten Hugo van der Kooij wrote: > On Tue, 2 Oct 2007, Live Great wrote: > > >> Hi, >> > > I am looking for a live demo website for the introudction of nagios. > Can anyone please point me to an available link? > I 've been searched in google, can't find a link for that. The one at Nagios website is broken. > > nagios is so much more then just a couple of webpages. I suggest you grab > one of the Virtual machines with Nagios on it from the catalog on the > VmWare site and play a bit with it in a virtual machine. > > There really is no substitute for getting your feet wet other then taking > a dive into this ocean. > > Enjoy your swim, > Hugo. > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From alexdehaini at gmail.com Mon Nov 26 11:35:27 2007 From: alexdehaini at gmail.com (Alex Dehaini) Date: Mon, 26 Nov 2007 10:35:27 +0000 Subject: Integrating nagvis Message-ID: <4b008f7d0711260235i7078b28fp270d577bb3c3d084@mail.gmail.com> Hi everyone, has anyone successfully integrated nagios and nagvis together? -- 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From giorgio at zarrelli.org Mon Nov 26 11:39:02 2007 From: giorgio at zarrelli.org (Giorgio Zarrelli) Date: Mon, 26 Nov 2007 11:39:02 +0100 Subject: Integrating nagvis In-Reply-To: <4b008f7d0711260235i7078b28fp270d577bb3c3d084@mail.gmail.com> References: <4b008f7d0711260235i7078b28fp270d577bb3c3d084@mail.gmail.com> Message-ID: <20071126.DWs.97384900@www.zarrelli.org> Hi, well I did. But just used the default maps. I don't see any reason to put so much efforts in painting some visio maps to render a better idea of the network and services map. I tried it, then I removed. Painting is way too hard for me :-P Giorgio zarrelli Alex Dehaini (alexdehaini at gmail.com) scritto: > > Hi everyone, > > has anyone successfully integrated nagios and nagvis together? > > -- > Alex Dehaini > Developer > Site - www.alexdehaini.com > Email - alexdehaini at gmail.com > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From alexdehaini at gmail.com Mon Nov 26 11:42:14 2007 From: alexdehaini at gmail.com (Alex Dehaini) Date: Mon, 26 Nov 2007 10:42:14 +0000 Subject: Integrating nagvis In-Reply-To: <20071126.DWs.97384900@www.zarrelli.org> References: <4b008f7d0711260235i7078b28fp270d577bb3c3d084@mail.gmail.com> <20071126.DWs.97384900@www.zarrelli.org> Message-ID: <4b008f7d0711260242g6332fd9v68577e6fa14e674a@mail.gmail.com> What version of nagios and nagvis did you use. I had installation issues. On Nov 26, 2007 10:39 AM, Giorgio Zarrelli wrote: > Hi, > > well I did. But just used the default maps. I don't see any reason to put > so > much efforts in painting some visio maps to render a better idea of the > network and services map. I tried it, then I removed. Painting is way too > hard > for me :-P > > Giorgio zarrelli > > Alex Dehaini (alexdehaini at gmail.com) scritto: > > > > Hi everyone, > > > > has anyone successfully integrated nagios and nagvis together? > > > > -- > > Alex Dehaini > > Developer > > Site - www.alexdehaini.com > > Email - alexdehaini at gmail.com > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From alexdehaini at gmail.com Mon Nov 26 11:53:45 2007 From: alexdehaini at gmail.com (Alex Dehaini) Date: Mon, 26 Nov 2007 10:53:45 +0000 Subject: Integrating nagvis In-Reply-To: <9c1cb51c0711260251y7f8e9fd8u970d21f7fef01b25@mail.gmail.com> References: <4b008f7d0711260235i7078b28fp270d577bb3c3d084@mail.gmail.com> <20071126.DWs.97384900@www.zarrelli.org> <4b008f7d0711260242g6332fd9v68577e6fa14e674a@mail.gmail.com> <9c1cb51c0711260251y7f8e9fd8u970d21f7fef01b25@mail.gmail.com> Message-ID: <4b008f7d0711260253l4865f79ehdcd4a4b1c124ecab@mail.gmail.com> Federick, That is what I need help on. Please point me in the right direction on how to properly configure ndo-backend. Also, when installing nagios, do I have to enable anything to support nagvis? Thanks On Nov 26, 2007 10:51 AM, Frederik Vanhee wrote: > > > On 11/26/07, Alex Dehaini wrote: > > > > What version of nagios and nagvis did you use. I had installation > > issues. > > > > On Nov 26, 2007 10:39 AM, Giorgio Zarrelli wrote: > > > > > > > Hi, > > > > > > well I did. But just used the default maps. I don't see any reason to > > > put so > > > much efforts in painting some visio maps to render a better idea of > > > the > > > network and services map. I tried it, then I removed. Painting is way > > > too hard > > > for me :-P > > > > > > Giorgio zarrelli > > > > > > Alex Dehaini ( alexdehaini at gmail.com) scritto: > > > > > > > > Hi everyone, > > > > > > > > has anyone successfully integrated nagios and nagvis together? > > > > > > > > -- > > > > Alex Dehaini > > > > Developer > > > > Site - www.alexdehaini.com > > > > Email - alexdehaini at gmail.com > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > > > This SF.net email is sponsored by: Microsoft > > > Defy all challenges. Microsoft(R) Visual Studio 2005. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ::: Please include Nagios version, plugin version (-v) and OS when > > > reporting any issue. > > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > > > > > > > > > > -- > > Alex Dehaini > > Developer > > Site - www.alexdehaini.com > > Email - alexdehaini at gmail.com > > > > ------------------------------------------------------------------------- > > > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2005. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > Nagios version 2.9 > Nagvis 1.1 > Make sure you ndo-backend is properly configured, that's very important ! > > > > -- 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From giorgio at zarrelli.org Mon Nov 26 11:58:04 2007 From: giorgio at zarrelli.org (Giorgio Zarrelli) Date: Mon, 26 Nov 2007 11:58:04 +0100 Subject: Integrating nagvis In-Reply-To: <4b008f7d0711260253l4865f79ehdcd4a4b1c124ecab@mail.gmail.com> References: <4b008f7d0711260253l4865f79ehdcd4a4b1c124ecab@mail.gmail.com> Message-ID: <20071126.UQK.51984700@www.zarrelli.org> Hi, I used: nagios-3.0b6 nagvis-1.2b2 What's the problem with the backend? Which operating system? Giorgio Alex Dehaini (alexdehaini at gmail.com) scritto: > > Federick, > > That is what I need help on. Please point me in the right direction on how > to properly configure ndo-backend. Also, when installing nagios, do I have > to enable anything to support nagvis? > > Thanks > > On Nov 26, 2007 10:51 AM, Frederik Vanhee wrote: > > > > > > > On 11/26/07, Alex Dehaini wrote: > > > > > > What version of nagios and nagvis did you use. I had installation > > > issues. > > > > > > On Nov 26, 2007 10:39 AM, Giorgio Zarrelli wrote: > > > > > > > > > > Hi, > > > > > > > > well I did. But just used the default maps. I don't see any reason to > > > > put so > > > > much efforts in painting some visio maps to render a better idea of > > > > the > > > > network and services map. I tried it, then I removed. Painting is way > > > > too hard > > > > for me :-P > > > > > > > > Giorgio zarrelli > > > > > > > > Alex Dehaini ( alexdehaini at gmail.com) scritto: > > > > > > > > > > Hi everyone, > > > > > > > > > > has anyone successfully integrated nagios and nagvis together? > > > > > > > > > > -- > > > > > Alex Dehaini > > > > > Developer > > > > > Site - www.alexdehaini.com > > > > > Email - alexdehaini at gmail.com > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > > > > > This SF.net email is sponsored by: Microsoft > > > > Defy all challenges. Microsoft(R) Visual Studio 2005. > > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > _______________________________________________ > > > > Nagios-users mailing list > > > > Nagios-users at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > ::: Please include Nagios version, plugin version (-v) and OS when > > > > reporting any issue. > > > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > > > > > > > > > > > > > > > > -- > > > Alex Dehaini > > > Developer > > > Site - www.alexdehaini.com > > > Email - alexdehaini at gmail.com > > > > > > ------------------------------------------------------------------------- > > > > > > This SF.net email is sponsored by: Microsoft > > > Defy all challenges. Microsoft(R) Visual Studio 2005. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ::: Please include Nagios version, plugin version (-v) and OS when > > > reporting any issue. > > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > > > Nagios version 2.9 > > Nagvis 1.1 > > Make sure you ndo-backend is properly configured, that's very important ! > > > > > > > > > > > > -- > Alex Dehaini > Developer > Site - www.alexdehaini.com > Email - alexdehaini at gmail.com > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gcoochey at sapphire.gi Mon Nov 26 12:01:43 2007 From: gcoochey at sapphire.gi (Giles Coochey) Date: Mon, 26 Nov 2007 12:01:43 +0100 Subject: Integrating nagvis In-Reply-To: <20071126.UQK.51984700@www.zarrelli.org> References: <4b008f7d0711260253l4865f79ehdcd4a4b1c124ecab@mail.gmail.com> <20071126.UQK.51984700@www.zarrelli.org> Message-ID: <9D30659ABCA7FB428CF91E386C3A5744A59E0F@hermes.sapphire-int.gi> > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Giorgio Zarrelli > Sent: 26 November 2007 11:58 > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Integrating nagvis > > Hi, > > I used: > > nagios-3.0b6 > nagvis-1.2b2 > > What's the problem with the backend? Which operating system? > I'm using Nagios 2.9, NdoUtils 1.4.7b7 and NagVis 1.1.2 Not any problems, I just followed the README's and posted minor issues with descriptions as to the particular problems on the list to resolve all my problems. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Nov 26 12:10:03 2007 From: alexdehaini at gmail.com (Alex Dehaini) Date: Mon, 26 Nov 2007 11:10:03 +0000 Subject: Integrating nagvis In-Reply-To: <9D30659ABCA7FB428CF91E386C3A5744A59E0F@hermes.sapphire-int.gi> References: <4b008f7d0711260253l4865f79ehdcd4a4b1c124ecab@mail.gmail.com> <20071126.UQK.51984700@www.zarrelli.org> <9D30659ABCA7FB428CF91E386C3A5744A59E0F@hermes.sapphire-int.gi> Message-ID: <4b008f7d0711260310ga68913bj47e84b0ff92fd54@mail.gmail.com> Here is the error I get from my logs *Nov 26 11:00:01 development nagios: ndomod: Still unable to connect to data sink. 0 items lost, 1655 queued items to flush. *When I browse to the nagvis home page, I get this error. *Warning*: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in * /usr/local/nagios/share/nagvis/nagvis/includes/classes/class.GlobalBackend- ndomy.php* on line *58 nagiosNotRunning: NDOMy: Nagios not running (Backend ndomy_1) NDO reports that Nagios is not running *Any clue what is wrong? On Nov 26, 2007 11:01 AM, Giles Coochey wrote: > > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > > bounces at lists.sourceforge.net] On Behalf Of Giorgio Zarrelli > > Sent: 26 November 2007 11:58 > > To: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] Integrating nagvis > > > > Hi, > > > > I used: > > > > nagios-3.0b6 > > nagvis-1.2b2 > > > > What's the problem with the backend? Which operating system? > > > > I'm using Nagios 2.9, NdoUtils 1.4.7b7 and NagVis 1.1.2 > > Not any problems, I just followed the README's and posted minor issues > with descriptions as to the particular problems on the list to resolve > all my problems. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From giorgio at zarrelli.org Mon Nov 26 12:17:31 2007 From: giorgio at zarrelli.org (Giorgio Zarrelli) Date: Mon, 26 Nov 2007 12:17:31 +0100 Subject: Integrating nagvis In-Reply-To: <4b008f7d0711260310ga68913bj47e84b0ff92fd54@mail.gmail.com> References: <4b008f7d0711260310ga68913bj47e84b0ff92fd54@mail.gmail.com> Message-ID: <20071126.SYG.67886600@www.zarrelli.org> Hi, check if you can connect to database with the user at host:password you wrote in the config. It seems to me it cant' retrieve data from MySQL tables. Giorgio Alex Dehaini (alexdehaini at gmail.com) scritto: > > Here is the error I get from my logs > > *Nov 26 11:00:01 development nagios: ndomod: Still unable to connect to data > sink. 0 items lost, 1655 queued items to flush. > > *When I browse to the nagvis home page, I get this error. > > *Warning*: mysql_fetch_array(): supplied argument is not a valid MySQL > result resource in * > /usr/local/nagios/share/nagvis/nagvis/includes/classes/class.GlobalBackend- > ndomy.php* on line *58 > > nagiosNotRunning: NDOMy: Nagios not running (Backend ndomy_1) > > NDO reports that Nagios is not running > > *Any clue what is wrong? > > On Nov 26, 2007 11:01 AM, Giles Coochey wrote: > > > > > > > > -----Original Message----- > > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > > > bounces at lists.sourceforge.net] On Behalf Of Giorgio Zarrelli > > > Sent: 26 November 2007 11:58 > > > To: nagios-users at lists.sourceforge.net > > > Subject: Re: [Nagios-users] Integrating nagvis > > > > > > Hi, > > > > > > I used: > > > > > > nagios-3.0b6 > > > nagvis-1.2b2 > > > > > > What's the problem with the backend? Which operating system? > > > > > > > I'm using Nagios 2.9, NdoUtils 1.4.7b7 and NagVis 1.1.2 > > > > Not any problems, I just followed the README's and posted minor issues > > with descriptions as to the particular problems on the list to resolve > > all my problems. > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2005. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: 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 > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gcoochey at sapphire.gi Mon Nov 26 12:20:28 2007 From: gcoochey at sapphire.gi (Giles Coochey) Date: Mon, 26 Nov 2007 12:20:28 +0100 Subject: Integrating nagvis In-Reply-To: <4b008f7d0711260310ga68913bj47e84b0ff92fd54@mail.gmail.com> References: <4b008f7d0711260253l4865f79ehdcd4a4b1c124ecab@mail.gmail.com><20071126.UQK.51984700@www.zarrelli.org><9D30659ABCA7FB428CF91E386C3A5744A59E0F@hermes.sapphire-int.gi> <4b008f7d0711260310ga68913bj47e84b0ff92fd54@mail.gmail.com> Message-ID: <9D30659ABCA7FB428CF91E386C3A5744A59E16@hermes.sapphire-int.gi> If you post in plain text, it's much easier for me not to top post. This is likely something to do with your socket file. Check the socket file in ndo2db configuration file, mine is in: /opt/nagios/var/ndo.sock It is referenced in ndo2db.cfg with this line: socket_name=/opt/nagios/var/ndo.sock if socket exists, it may have been created with insufficient permissions, or the directory mask was bad, remove the file, check permissions and restart ndo. Thanks Giles ________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Alex Dehaini Sent: 26 November 2007 12:10 To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Integrating nagvis Here is the error I get from my logs Nov 26 11:00:01 development nagios: ndomod: Still unable to connect to data sink. 0 items lost, 1655 queued items to flush. When I browse to the nagvis home page, I get this error. Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /usr/local/nagios/share/nagvis/nagvis/includes/classes/class.GlobalBacke nd-ndomy.php on line 58 nagiosNotRunning: NDOMy: Nagios not running (Backend ndomy_1) NDO reports that Nagios is not running Any clue what is wrong? On Nov 26, 2007 11:01 AM, Giles Coochey wrote: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Giorgio Zarrelli > Sent: 26 November 2007 11:58 > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Integrating nagvis > > Hi, > > I used: > > nagios-3.0b6 > nagvis-1.2b2 > > What's the problem with the backend? Which operating system? > I'm using Nagios 2.9, NdoUtils 1.4.7b7 and NagVis 1.1.2 Not any problems, I just followed the README's and posted minor issues with descriptions as to the particular problems on the list to resolve all my problems. ------------------------------------------------------------------------ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From alexdehaini at gmail.com Mon Nov 26 12:26:27 2007 From: alexdehaini at gmail.com (Alex Dehaini) Date: Mon, 26 Nov 2007 11:26:27 +0000 Subject: Integrating nagvis In-Reply-To: <9D30659ABCA7FB428CF91E386C3A5744A59E16@hermes.sapphire-int.gi> References: <4b008f7d0711260253l4865f79ehdcd4a4b1c124ecab@mail.gmail.com> <20071126.UQK.51984700@www.zarrelli.org> <9D30659ABCA7FB428CF91E386C3A5744A59E0F@hermes.sapphire-int.gi> <4b008f7d0711260310ga68913bj47e84b0ff92fd54@mail.gmail.com> <9D30659ABCA7FB428CF91E386C3A5744A59E16@hermes.sapphire-int.gi> Message-ID: <4b008f7d0711260326i36956bd4ta52daaf48b86246a@mail.gmail.com> Let me try the suggestions and get back to you guys. On Nov 26, 2007 11:20 AM, Giles Coochey wrote: > If you post in plain text, it's much easier for me not to top post. > > > > This is likely something to do with your socket file. > > > > Check the socket file in ndo2db configuration file, mine is in: > > > > /opt/nagios/var/ndo.sock > > > > It is referenced in ndo2db.cfg with this line: > > > > socket_name=/opt/nagios/var/ndo.sock > > > > if socket exists, it may have been created with insufficient permissions, > or the directory mask was bad, remove the file, check permissions and > restart ndo. > > > > Thanks > > > > Giles > > > ------------------------------ > > *From:* nagios-users-bounces at lists.sourceforge.net [mailto: > nagios-users-bounces at lists.sourceforge.net] *On Behalf Of *Alex Dehaini > *Sent:* 26 November 2007 12:10 > > *To:* nagios-users at lists.sourceforge.net > *Subject:* Re: [Nagios-users] Integrating nagvis > > > > Here is the error I get from my logs > > *Nov 26 11:00:01 development nagios: ndomod: Still unable to connect to > data sink. 0 items lost, 1655 queued items to flush. > > *When I browse to the nagvis home page, I get this error. > > *Warning*: mysql_fetch_array(): supplied argument is not a valid MySQL > result resource in * > /usr/local/nagios/share/nagvis/nagvis/includes/classes/class.GlobalBackend- > ndomy.php* on line *58 > > nagiosNotRunning: NDOMy: Nagios not running (Backend ndomy_1) > > NDO reports that Nagios is not running > > *Any clue what is wrong? > > On Nov 26, 2007 11:01 AM, Giles Coochey wrote: > > > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > > bounces at lists.sourceforge.net] On Behalf Of Giorgio Zarrelli > > Sent: 26 November 2007 11:58 > > To: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] Integrating nagvis > > > > Hi, > > > > I used: > > > > nagios-3.0b6 > > nagvis-1.2b2 > > > > What's the problem with the backend? Which operating system? > > > > I'm using Nagios 2.9, NdoUtils 1.4.7b7 and NagVis 1.1.2 > > Not any problems, I just followed the README's and posted minor issues > with descriptions as to the particular problems on the list to resolve > all my problems. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 > -- 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gcoochey-MwjkAAnuF3lpIM7fuyJkTg at public.gmane.org Mon Nov 26 17:14:35 2007 From: gcoochey-MwjkAAnuF3lpIM7fuyJkTg at public.gmane.org (Giles Coochey) Date: Mon, 26 Nov 2007 17:14:35 +0100 Subject: jabber notification In-Reply-To: <9D30659ABCA7FB428CF91E386C3A57449A7C5B-oHdYF3S3i21eSSVB+k4q6H2lbfTUI6P0@public.gmane.org> References: <9D30659ABCA7FB428CF91E386C3A57449A7C5B@hermes.sapphire-int.gi> Message-ID: <9D30659ABCA7FB428CF91E386C3A5744A59E4F@hermes.sapphire-int.gi> Below ________________________________________ From: nagiosplug-help-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org [mailto:nagiosplug-help-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org] On Behalf Of Giles Coochey Sent: 19 November 2007 13:02 To: nagiosplug Subject: [Nagiosplug-help] jabber notification Hi All, I have seen the notify_by_jabber perl script. Because of the number of notifications that I get through some passive volatile service checks I was wondering whether anyone has seen one that was compiled in C rather than perl, as Nagios seems to take quite a while running the notification script when I get a flood of events - I'm thinking that a C program might be faster. Are there any jabber alternatives to the perl script? If there isn't one then I'll look at using sec.pl to handle these passive checks (they're SNMP traps, after all) and only produce a single alert (so far they've been routing topology change notifications from multiple routers & switches in our infrastructure). Best Regards, Giles ######################################################################## ## I've tried replacing the notify_via_jabber.pl perl script with centerim. It essentially allows to run centerim in the background (as the Nagios) user, and allows me to, as the Nagios user, send jabber alerts via the command line. A small issue is that as soon as I modify my commands.cfg to have a notification I find it does not work, and cannot seem to talk to the centerim process (centerim is running as the Nagios user). This is what works from the command line: echo "Host '$HOSTALIAS$' is $HOSTSTATE$ - Info: $HOSTOUTPUT$ - Time: $LONGDATETIME$" | /usr/local/bin/centerim -s msg -p jab -t username-eu7EghD4TOFEiooADzr8i9i2O/JbrIOy at public.gmane.org This is what doesn't work from the commands.cfg file: # 'notify-by-jabber' command definition define command{ command_name notify-by-jabber command_line /bin/echo "Service: $SERVICEDESC$ - Host: $HOSTNAME$ - Address: $HOSTADDRESS$ - State: $SERVICESTATE$ - Info: $SERVICEOUTPUT$ - Date: $LONGDATETIME$" | /usr/local/bin/centerim -s msg -p jab -t username-eu7EghD4TOFEiooADzr8i9i2O/JbrIOy at public.gmane.org } >From the Nagios log, I see it calling notify-by-jabber but I get no such alert (I was using $CONTACTPAGER$ as the -t parameter, but tried hardcoding it in the command and it still doesn't work). Any ideas as to what might cause this? On an aside, I have implemented sec.pl, but still have Nagios spending too much time processing notifications, so really need to replace the slow notify_by_jabber perl script. Centerim looks ideal, but for some reason isn't working. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ 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 james.mohr at elaxy.com Mon Nov 26 17:02:35 2007 From: james.mohr at elaxy.com (Mohr James) Date: Mon, 26 Nov 2007 17:02:35 +0100 Subject: Passive service notification after X minutes Message-ID: Hi All! We have an application that sends SNMP traps to a trap server. Which then uses send_nsca to send status changes. The application may notice a problem and send a trap, thus changing the status of the Nagios service, but the problem is self-correcting and the application may be Ok within just a few seconds. However, the Nagios service has become critical and thus send a notification. Not a happy thing at 2AM when you are sound asleep. Looking through the service definition I do not see anything that applies. If it were an active service, I could use max_check_attempts. However, in this cases, we only get the traps on every status change, so if the service is down, the trap is set and thus the notification is sent. Within the trap receiver, there is no way to wait a specific period of time before sending the messages, only wait for X traps in Y minutes. I am at a loss as to how to get Nagios to wait for a specific length of time before starting the notification other than creating some major kludge like tweaking the notification mechanism somehow. Any help is appreaciated. Regards, Jim Mohr ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dario.bestetti at opservices.com.br Mon Nov 26 17:41:25 2007 From: dario.bestetti at opservices.com.br (Dario B. Bestetti) Date: Mon, 26 Nov 2007 14:41:25 -0200 Subject: RES: Passive service notification after X minutes In-Reply-To: References: Message-ID: <33965.0775342763$1196095497@news.gmane.org> James, I would try to use na event correlation mechanism to pre-process the traps before sending it to Nagios. Try SEC (http://kodu.neti.ee/~risto/sec/). It?s an elegant solution for this sort of problem. []s _________________________________________________ Dario B. Bestetti????????OpServices ??????????????????????????????????R. Luciana de Abreu, 471 - Sala 403 ??????????????????????????????????Porto Alegre, RS - CEP 90570-060 Fone 55(51)30613588 Mobile? 55(51)81518218 Fax???? 55(51)30613588? Email??? dario.bestetti at opservices.com.br ? ???????????????"In God we trust, the rest we monitor ..." _________________________________________________ > -----Mensagem original----- > De: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] Em > nome de Mohr James > Enviada em: segunda-feira, 26 de novembro de 2007 14:03 > Para: Nagios-users at lists.sourceforge.net > Assunto: [Nagios-users] Passive service notification after X minutes > > > > Hi All! > > We have an application that sends SNMP traps to a trap server. Which > then uses send_nsca to send status changes. The application may notice a > problem and send a trap, thus changing the status of the Nagios service, > but the problem is self-correcting and the application may be Ok within > just a few seconds. However, the Nagios service has become critical and > thus send a notification. Not a happy thing at 2AM when you are sound > asleep. > > Looking through the service definition I do not see anything that > applies. If it were an active service, I could use max_check_attempts. > However, in this cases, we only get the traps on every status change, so > if the service is down, the trap is set and thus the notification is > sent. Within the trap receiver, there is no way to wait a specific > period of time before sending the messages, only wait for X traps in Y > minutes. > > I am at a loss as to how to get Nagios to wait for a specific length of > time before starting the notification other than creating some major > kludge like tweaking the notification mechanism somehow. Any help is > appreaciated. > > Regards, > > Jim Mohr > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From richardsolid at gmail.com Mon Nov 26 17:11:48 2007 From: richardsolid at gmail.com (Jake Solid) Date: Mon, 26 Nov 2007 11:11:48 -0500 Subject: DBD Sybase perl module hasn't been fully installed Message-ID: I'm using CentOS 4 x86 with perl-DBD-Sybase-1.07-1 installed. I tested using DBViualiazer to make sure the username and password I was using are correct and they are. *I installed the plugins for NRPE and tried testing the check_sybase plugin but I get the following error message:* [root at host plugins]# ./check_sybase -U user -P password -S my.hostname.com-D dbname perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_US", LC_ALL = "default", LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). install_driver(Sybase) failed: Can't locate DBD/Sybase.pm in @INC (@INC contains: /usr/lib/nagios/plugins/ /usr/local/nagios/libexec/ /usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.4/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.3/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.2/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.1/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.0/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.4/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.3/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.2/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.1/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.0/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at (eval 1) line 3. Perhaps the DBD::Sybase perl module hasn't been fully installed, or perhaps the capitalisation of 'Sybase' isn't right. Available drivers: ExampleP, Proxy, Sponge. at ./check_sybase line 133 *The line line 133 refers to the connection:* $dbh = DBI->connect("dbi:Sybase:server=$dbsvr;database=$dbname;". How can I make sure the perl DBD Sybase module is correctly and fully installed? Thanks in advanced. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tstocking at groundworkopensource.com Mon Nov 26 18:08:14 2007 From: tstocking at groundworkopensource.com (Thomas Stocking) Date: Mon, 26 Nov 2007 09:08:14 -0800 Subject: live demo In-Reply-To: <474A9E6E.7000306@gmx.de> References: <114036.74558.qm@web45504.mail.sp1.yahoo.com> <474A9E6E.7000306@gmx.de> Message-ID: <474AFD7E.1090600@groundworkopensource.com> You can also try out GroundWork Monitor (without the config tool enabled) at: http://adzuki.groundworkopensource.com login guest, pw guest This package uses Nagios to feed a back-end mysql database that is used for multiple displays and reports. It also integrates Cacti, RRDtool graphing and several other packages. I agree with Hugo - it's much more than the just the web GUI. Thomas Carsten Philipp wrote: > Hi, > > do you tried http://nagios-demo.netways.de/ ? > Login is "guest" and password "guest". > > Have fun > Carsten > > Hugo van der Kooij wrote: > >> On Tue, 2 Oct 2007, Live Great wrote: >> >> >> >>> Hi, >>> >>> >> I am looking for a live demo website for the introudction of nagios. >> Can anyone please point me to an available link? >> I 've been searched in google, can't find a link for that. The one at Nagios website is broken. >> >> nagios is so much more then just a couple of webpages. I suggest you grab >> one of the Virtual machines with Nagios on it from the catalog on the >> VmWare site and play a bit with it in a virtual machine. >> >> There really is no substitute for getting your feet wet other then taking >> a dive into this ocean. >> >> Enjoy your swim, >> Hugo. >> >> >> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Joel.Roberts at pinkardcc.com Mon Nov 26 18:52:59 2007 From: Joel.Roberts at pinkardcc.com (Joel Roberts) Date: Mon, 26 Nov 2007 10:52:59 -0700 Subject: Nagios Doesn't Notify for Multiple Services Message-ID: <2CE4DD25946EB940B8EE93877AF62531FE36BF@lwmailserver1.pinkard.com> I have a server that has been crashing in the following order: HTTP 80 fails RDP 3389 fails TCP/IP Stack fails I have set up monitoring and notifications for each one, but I only receive notifications for the first failure, port 80 not responding. Once RDP fails I don't receive alerts and once the TCP/IP stack fails (PING stops responding) I don't receive alerts for that either. It seems like Nagios is seeing one error on the box and repeatedly alerting about that, but ignoring any others until the first is fixed. Has anyone else run into this and found a fix? I read through the documentation for alerts, but don't see anything addressing this particular issue. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cbschuld at aztecsoftware.net Mon Nov 26 18:56:00 2007 From: cbschuld at aztecsoftware.net (Chris Schuld) Date: Mon, 26 Nov 2007 10:56:00 -0700 Subject: Interesting Challenge (Hosts & Services Missing... some of the time) In-Reply-To: <474A64EF.5030803@vanderkooij.org> References: <98bf16030711251801x1506a598ke8850e3a33c525ca@mail.gmail.com> <474A64EF.5030803@vanderkooij.org> Message-ID: <98bf16030711260956g557e72d3sb45f63c15d200858@mail.gmail.com> Hugo, Thank you, that solved the problem! --Chris On 11/25/07, Hugo van der Kooij wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Chris Schuld wrote: > > Hello All: > > > > I have a new Nagios setup with everything running nearly perfect... > > except this. > > > > If I click on "Service Detail" under monitoring -- I only get my "full > > list" of services about 60% of the time. The other 40% of the time I > > only get just the services under localhost. > > > > My services and hosts are broke into a two files (one for local host & > > the original default settings for the local host and a second file which > > holds a list of servers on our network). > > > > It is almost as if the nagios daemon does not see my second config file > > some of the time... this is actually true on any of the links but it > > appears to happen more on "Service Detail." > > > > I am using 3.0b7 and curious if this has ever happened to anyone else at > > all? I searched the mailing list and forums and came up empty handed. > > This is a common problem if you happen to have two instances of Nagios > running. So the obvious plan is to stop Nagios the normal way. Then see > if anything is still lingering about and shoot to kill them. Tehn > startup Nagios again. > > If the problem remains also check that you are not mixing startup methods. > > 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) > > iD8DBQFHSmTtBvzDRVjxmYERAh8sAJ4vTQZSPLr+lz1tiWFTX0XH84UtEwCgpqPP > XxoyclmEhuGviIfkpDCEyBQ= > =oFgE > -----END PGP SIGNATURE----- > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Aztec Software Custom Software / Online Applications / Hosting Services (480) 373-6581 / (800) 959-0045 - phone (480) 452-1651 / (800) 747-9598 - fax (800) 997-0065 - after hours support -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chris at sigd.net Mon Nov 26 19:35:22 2007 From: chris at sigd.net (Chris Haulmark) Date: Mon, 26 Nov 2007 13:35:22 -0500 Subject: Nagios Master/Slaves Solution... Message-ID: <6FC9F9894A9F8C49A722CF9F2132FC220F730CB6@ms05.mailstreet2003.net> Hello, Have anyone got any Nagios Master/Slaves solutions that are currently being used in production? The reason that I am asking is because I would like to use Nagios to monitor several hosts/services at multiple locations. I have at least 4 facilities that I would like to assign a Slave per facility while the Master would stay at the office. Each Slave would be monitoring the hosts and services only within the facility that it has been assigned. Firewalls and routings will be in place to prevent the Slaves from interacting with each other. Only the Master will be accessible from each of those Slaves. I have experimented with using NSCA to send passive checks over to the Master from each of the Slaves. It seems to be the solution only if I am not concerned about the Master having a failure or if the route between the slaves to the Master has been interrupted. I have considered giving a Slave the ability to self- promote if this certain Slave detects that Master has became unavailable. That would also include having to make modifications to the send_nsca IP Address on those other Slaves. That includes the firewall and routing adjustments being required. I have looked at DNX but I am thinking that it is really designed to cross check the hosts/services from each of those "Nodes" to distribute the work loads. I do not want the Slaves to overlap each other's territory unless a certain Slave have been self-promoted. Anyone have suggestions on a working solution or can point me to some reading documentations of how someone have set up a HA Nagios Master/Slaves solution? Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hvdkooij at vanderkooij.org Mon Nov 26 20:06:23 2007 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Mon, 26 Nov 2007 20:06:23 +0100 Subject: Nagios Doesn't Notify for Multiple Services In-Reply-To: <2CE4DD25946EB940B8EE93877AF62531FE36BF@lwmailserver1.pinkard.com> References: <2CE4DD25946EB940B8EE93877AF62531FE36BF@lwmailserver1.pinkard.com> Message-ID: <474B192F.9060201@vanderkooij.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Joel Roberts wrote: > I have a server that has been crashing in the following order: > > HTTP 80 fails > RDP 3389 fails > TCP/IP Stack fails I think this is not the way things go down the drain. > I have set up monitoring and notifications for each one, but I only > receive notifications for the first failure, port 80 not responding. > Once RDP fails I don?t receive alerts and once the TCP/IP stack fails > (PING stops responding) I don?t receive alerts for that either. After a service check fails the host check kicks in. So if the host check also fails there will be no further service checks. Now assume that the TCP/IP stack fails. Then all services depending on it will be in a heap of trouble. (If you think Mount Everest is a big heap. It is peanuts compared to this one.) Just to see if my theory is right. - Stop HTTP service. Wait for notification. - Stop RDP service. Do you get a notification? If this scenario works then the probem is that your system died not like you expected and indicated above but in a different manner. Also: What does your log tell you about notifications and events? My 0.02 Euro says it is not a Nagios issue but something odd with the host tested. PS: Did you ever provide us with the required details? Like the Nagios version, description of the service and host checks used, ..... ? 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) iD8DBQFHSxktBvzDRVjxmYERAvp/AKCcZtCMWNV3d5pFObSSBSsxNgrhiACgn/6t 2OxSuzXCpiE1+hkDFzh5NlE= =NA/6 -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Joel.Roberts at pinkardcc.com Mon Nov 26 20:35:53 2007 From: Joel.Roberts at pinkardcc.com (Joel Roberts) Date: Mon, 26 Nov 2007 12:35:53 -0700 Subject: Nagios Doesn't Notify for Multiple Services In-Reply-To: <474B192F.9060201@vanderkooij.org> References: <2CE4DD25946EB940B8EE93877AF62531FE36BF@lwmailserver1.pinkard.com> <474B192F.9060201@vanderkooij.org> Message-ID: <2CE4DD25946EB940B8EE93877AF62531FE36C1@lwmailserver1.pinkard.com> I know this is how the server is failing because of a review of the Windows Event logs. The server is crashing because of a memory leak. First it stops accepting incoming HTTP requests to try and conserve what memory is left, then it stops accepting RDP connections, then the TCP/IP fails completely. And yes, it is a Mount Everest of problems as it's my RES PowerFuse server that provides remote desktop to remote users in a Citrix type environment. Fortunately when the HTTP stops accepting connections, I can usually log in via RDP remotely and reboot the server, but I would like to know if I've missed the window and RDP is no longer up and running and I have to physically drive to the site and reboot from there. Once RDP fails, TCP/IP is usually right behind it. An update on OS and PowerFuse software is scheduled, but until then, I have to keep the remote users up and running. Nagios Version: 3.0b5 Services Checked: HTTP (check_http), PING (check_ping), RDP (check_tcp 3389) -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Hugo van der Kooij Sent: Monday, November 26, 2007 12:06 PM To: Nagios Users Mailinglist Subject: Re: [Nagios-users] Nagios Doesn't Notify for Multiple Services -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Joel Roberts wrote: > I have a server that has been crashing in the following order: > > HTTP 80 fails > RDP 3389 fails > TCP/IP Stack fails I think this is not the way things go down the drain. > I have set up monitoring and notifications for each one, but I only > receive notifications for the first failure, port 80 not responding. > Once RDP fails I don't receive alerts and once the TCP/IP stack fails > (PING stops responding) I don't receive alerts for that either. After a service check fails the host check kicks in. So if the host check also fails there will be no further service checks. Now assume that the TCP/IP stack fails. Then all services depending on it will be in a heap of trouble. (If you think Mount Everest is a big heap. It is peanuts compared to this one.) Just to see if my theory is right. - Stop HTTP service. Wait for notification. - Stop RDP service. Do you get a notification? If this scenario works then the probem is that your system died not like you expected and indicated above but in a different manner. Also: What does your log tell you about notifications and events? My 0.02 Euro says it is not a Nagios issue but something odd with the host tested. PS: Did you ever provide us with the required details? Like the Nagios version, description of the service and host checks used, ..... ? 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) iD8DBQFHSxktBvzDRVjxmYERAvp/AKCcZtCMWNV3d5pFObSSBSsxNgrhiACgn/6t 2OxSuzXCpiE1+hkDFzh5NlE= =NA/6 -----END PGP SIGNATURE----- ------------------------------------------------------------------------ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From james.mohr at elaxy.com Mon Nov 26 20:39:40 2007 From: james.mohr at elaxy.com (Mohr James) Date: Mon, 26 Nov 2007 20:39:40 +0100 Subject: RES: Passive service notification after X minutes In-Reply-To: <028601c8304b$2f4ec130$8dec4390$@bestetti@opservices.com.br> References: <028601c8304b$2f4ec130$8dec4390$@bestetti@opservices.com.br> Message-ID: Hi Dario! Looks very interesting. I will take a look at it. Thanks! Regards, jimmo > -----Urspr?ngliche Nachricht----- > Von: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] Im > Auftrag von Dario B. Bestetti > Gesendet: Montag, 26. November 2007 17:41 > An: nagios-users at lists.sourceforge.net > Betreff: [Nagios-users] RES: Passive service notification > after X minutes > > > James, I would try to use na event correlation mechanism to > pre-process the traps before sending it to Nagios. Try SEC > (http://kodu.neti.ee/~risto/sec/). It?s an elegant solution > for this sort of problem. > > []s > _________________________________________________ > Dario B. Bestetti????????OpServices > ??????????????????????????????????R. Luciana de Abreu, 471 - Sala 403 > ??????????????????????????????????Porto Alegre, RS - CEP > 90570-060 Fone 55(51)30613588 Mobile? 55(51)81518218 Fax???? > 55(51)30613588? Email??? dario.bestetti at opservices.com.br > ? > ???????????????"In God we trust, the rest we monitor ..." > _________________________________________________ > > > > > -----Mensagem original----- > > De: nagios-users-bounces at lists.sourceforge.net > > [mailto:nagios-users-bounces at lists.sourceforge.net] Em nome de Mohr > > James Enviada em: segunda-feira, 26 de novembro de 2007 14:03 > > Para: Nagios-users at lists.sourceforge.net > > Assunto: [Nagios-users] Passive service notification after X minutes > > > > > > > > Hi All! > > > > We have an application that sends SNMP traps to a trap > server. Which > > then uses send_nsca to send status changes. The application > may notice > > a problem and send a trap, thus changing the status of the Nagios > > service, but the problem is self-correcting and the > application may be > > Ok within just a few seconds. However, the Nagios service > has become > > critical and thus send a notification. Not a happy thing at > 2AM when > > you are sound asleep. > > > > Looking through the service definition I do not see anything that > > applies. If it were an active service, I could use > max_check_attempts. > > However, in this cases, we only get the traps on every > status change, > > so if the service is down, the trap is set and thus the > notification > > is sent. Within the trap receiver, there is no way to wait > a specific > > period of time before sending the messages, only wait for X > traps in Y > > minutes. > > > > I am at a loss as to how to get Nagios to wait for a > specific length > > of time before starting the notification other than creating some > > major kludge like tweaking the notification mechanism somehow. Any > > help is appreaciated. > > > > Regards, > > > > Jim Mohr > > > > > ---------------------------------------------------------------------- > > --- This SF.net email is sponsored by: Microsoft Defy all > challenges. > > Microsoft(R) Visual Studio 2005. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and > OS when reporting any issue. > > ::: Messages without supporting info will risk being sent > to /dev/null > > > -------------------------------------------------------------- > ----------- > This SF.net email is sponsored by: Microsoft Defy all > challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chrisserafin at gmail.com Mon Nov 26 21:23:57 2007 From: chrisserafin at gmail.com (chris serafin) Date: Mon, 26 Nov 2007 14:23:57 -0600 Subject: Nagios as Solarwinds replacement Message-ID: So I'm in the process of swapping out our Solarwinds monitoring solution for Nagios. The one thing I have yet to figure out is how I can do reporting on bandwidth and CPU utilization like Solarwinds (Monthly reports) I inherited this Nagios environment from a previouly employee, and I know he installed Cacti for this....? My question is, what do your guys use for this type of reporting? Recommendations? Chris Serafin Security Engineer chrisserafin at gmail.com ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stava at telcotec.se Mon Nov 26 21:27:11 2007 From: stava at telcotec.se (stava) Date: Mon, 26 Nov 2007 21:27:11 +0100 Subject: Nagios as Solarwinds replacement In-Reply-To: References: Message-ID: NagiosGrapher, see http://nagiosexchange.org. /L On Mon, 26 Nov 2007 14:23:57 -0600, "chris serafin" wrote: > So I'm in the process of swapping out our Solarwinds monitoring > solution for Nagios. The one thing I have yet to figure out is how I > can do reporting on bandwidth and CPU utilization like Solarwinds > (Monthly reports) I inherited this Nagios environment from a previouly > employee, and I know he installed Cacti for this....? My question is, > what do your guys use for this type of reporting? Recommendations? > > Chris Serafin > Security Engineer > chrisserafin at gmail.com > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Lars Stavholm ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From brylon at jla.rutgers.edu Mon Nov 26 22:18:49 2007 From: brylon at jla.rutgers.edu (Bryan Loniewski) Date: Mon, 26 Nov 2007 16:18:49 -0500 (EST) Subject: Nagios-users Digest, Vol 18, Issue 42 In-Reply-To: References: Message-ID: > Message: 7 > Date: Mon, 26 Nov 2007 13:35:22 -0500 > From: "Chris Haulmark" > Subject: [Nagios-users] Nagios Master/Slaves Solution... > To: > Message-ID: > <6FC9F9894A9F8C49A722CF9F2132FC220F730CB6 at ms05.mailstreet2003.net> > Content-Type: text/plain; charset="us-ascii" > > Hello, > > > > Have anyone got any Nagios Master/Slaves solutions that are currently > being used in production? > > > > The reason that I am asking is because I would like to use Nagios to > monitor several hosts/services at > > multiple locations. I have at least 4 facilities that I would like to > assign a Slave per facility while the > > Master would stay at the office. > > > > Each Slave would be monitoring the hosts and services only within the > facility that it has been assigned. > > Firewalls and routings will be in place to prevent the Slaves from > interacting with each other. Only > > the Master will be accessible from each of those Slaves. > > > > I have experimented with using NSCA to send passive checks over to the > Master from each of the Slaves. > > It seems to be the solution only if I am not concerned about the Master > having a failure or if the route > > between the slaves to the Master has been interrupted. I have > considered giving a Slave the ability to self- > > promote if this certain Slave detects that Master has became > unavailable. That would also include having > > to make modifications to the send_nsca IP Address on those other Slaves. > That includes the firewall and > > routing adjustments being required. > > > > I have looked at DNX but I am thinking that it is really designed to > cross check the hosts/services from each > > of those "Nodes" to distribute the work loads. I do not want the Slaves > to overlap each other's territory > > unless a certain Slave have been self-promoted. > > > > Anyone have suggestions on a working solution or can point me to some > reading documentations of how > > someone have set up a HA Nagios Master/Slaves solution? > I wrote up some internal docs for myself over a year ago now and don't mind sharing them: http://www.nbcs.rutgers.edu/~brylon/nagios2/ Note: I don't know if this is quite what you are looking for, but figured I'd share and let you decide if it helps. I would also be interested in other docs anyone may have with respect to distributed monitoring and failover redundancy. > > > Chris ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ksumner at physics.unc.edu Mon Nov 26 22:36:04 2007 From: ksumner at physics.unc.edu (Kevin Scott Sumner) Date: Mon, 26 Nov 2007 16:36:04 -0500 (EST) Subject: Bad group on cmd pipe after restart. Message-ID: Hi all, I've got nagios 3.0b6 running on Debian/etch with Debian's default Apache. Apache runs as www-data:www-data. Nagios runs as nagios:www-data, set this way via nagios.cfg's nagios_group command. In /etc/passwd, nagios has the default group of nagios. (Confusing, I know, but I'm trying not to stray too far away from the Debian norm.) When I restart nagios, the command pipe ends up with the group nagios, not www-data, as I specified in the config. I'm confident in saying that it's nagios that does this, not the init script. Is this by design or an oversight? If by design, what have I overlooked or not understood? Thanks! Kevin ----- Kevin Sumner ksumner at physics.unc.edu (919) 962-6494 Assistant Systems Administrator Physics and Astronomy Networking Infrastructure and Computing University of North Carolina at Chapel Hill ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Robert.Cipriani at mybrighthouse.com Mon Nov 26 23:03:47 2007 From: Robert.Cipriani at mybrighthouse.com (Cipriani, Robert C) Date: Mon, 26 Nov 2007 17:03:47 -0500 Subject: Bad group on cmd pipe after restart. In-Reply-To: References: Message-ID: <6F41C23E99FC594D90E848FA5642343131C1624668@TBEMAIL.corp.local> -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Kevin Scott Sumner Sent: Monday, November 26, 2007 4:36 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Bad group on cmd pipe after restart. Hi all, I've got nagios 3.0b6 running on Debian/etch with Debian's default Apache. Apache runs as www-data:www-data. Nagios runs as nagios:www-data, set this way via nagios.cfg's nagios_group command. In /etc/passwd, nagios has the default group of nagios. (Confusing, I know, but I'm trying not to stray too far away from the Debian norm.) When I restart nagios, the command pipe ends up with the group nagios, not www-data, as I specified in the config. I'm confident in saying that it's nagios that does this, not the init script. Is this by design or an oversight? If by design, what have I overlooked or not understood? Thanks! Kevin ----- Kevin Sumner ksumner at physics.unc.edu (919) 962-6494 Assistant Systems Administrator Physics and Astronomy Networking Infrastructure and Computing University of North Carolina at Chapel Hill ------------------------------------------------------------------------- Kevin, Just out of curiosity, why not run Nagios as nagios:nagios? On my setup, the apache user is a member of the nagios group. Maybe yours is using the nagios user's default group? Robert C. Cipriani Senior Network Administrator Tampa Bay Division IT Bright House Networks W: (727) 329-2000 x74264 M: (727) 365-1231 CONFIDENTIALITY NOTICE: This e-mail may contain information that is privileged, confidential or otherwise protected from disclosure. If you are not the intended recipient of this e-mail, please notify the sender immediately by return e-mail, purge it and do not disseminate or copy it. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Robert.Cipriani at mybrighthouse.com Mon Nov 26 23:07:37 2007 From: Robert.Cipriani at mybrighthouse.com (Cipriani, Robert C) Date: Mon, 26 Nov 2007 17:07:37 -0500 Subject: Centralizing NRPE Configuration In-Reply-To: References: Message-ID: <6F41C23E99FC594D90E848FA5642343131C1624670@TBEMAIL.corp.local> Does anyone have any suggestions on a way to centralize NRPE configs? I suppose I can push (rsync, scp, whatever) my nrpe.cfg from the Nagios server if I need to add any commands. Is there a better way to manage this? I'd like the Nagios server to be a central point of configuration. I am using nrpe's --enable-command-args option and passing parameters via check_nrpe, so once the monitored host has the nrpe.cfg, there wouldn't be much to do there. Robert C. Cipriani Senior Network Administrator Tampa Bay Division IT Bright House Networks W: (727) 329-2000 x74264 M: (727) 365-1231 CONFIDENTIALITY NOTICE: This e-mail may contain information that is privileged, confidential or otherwise protected from disclosure. If you are not the intended recipient of this e-mail, please notify the sender immediately by return e-mail, purge it and do not disseminate or copy it. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From btmanmeh at verizon.net Mon Nov 26 23:18:13 2007 From: btmanmeh at verizon.net (Max Hetrick) Date: Mon, 26 Nov 2007 17:18:13 -0500 Subject: Centralizing NRPE Configuration In-Reply-To: <6F41C23E99FC594D90E848FA5642343131C1624670@TBEMAIL.corp.local> References: <6F41C23E99FC594D90E848FA5642343131C1624670@TBEMAIL.corp.local> Message-ID: <474B4625.9030104@verizon.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Cipriani, Robert C wrote: > Does anyone have any suggestions on a way to centralize NRPE configs? I suppose I can push (rsync, scp, whatever) my nrpe.cfg from the Nagios server if I need to add any commands. Is there a better way to manage this? I'd like the Nagios server to be a central point of configuration. I am using nrpe's --enable-command-args option and passing parameters via check_nrpe, so once the monitored host has the nrpe.cfg, there wouldn't be much to do there. What about through SVN? I've never done it, but I just thought of it when you mentioned centralizing it. I keep track of my Nagios configuration files this way, but it wouldn't be hard to add NRPE into the mix so that you can checkout the latest set of files. Just an idea... Regards, Max -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFHS0YlHoeeepPau2ERAoyyAJ9bzsR9NcXyRd86RgbYV+c3J6Al6wCgwCmy x/MAAWU/CHhPQb0pDwCnMdk= =FW0G -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From aaron.segura at cabelas.com Mon Nov 26 23:28:18 2007 From: aaron.segura at cabelas.com (Aaron M. Segura) Date: Mon, 26 Nov 2007 15:28:18 -0700 Subject: Centralizing NRPE Configuration In-Reply-To: <6F41C23E99FC594D90E848FA5642343131C1624670@TBEMAIL.corp.local> References: <6F41C23E99FC594D90E848FA5642343131C1624670@TBEMAIL.corp.local> Message-ID: <1196116098.10545.57.camel@sidhqmis4grdv91> I use cfengine for that purpose. I have it copy the config from the central server then restart the nrpe daemon. Might be a little overkill for just this one thing, but it's useful for all sorts of stuff. http://www.cfengine.org/ On Mon, 2007-11-26 at 17:07 -0500, Cipriani, Robert C wrote: > Does anyone have any suggestions on a way to centralize NRPE configs? I suppose I can push (rsync, scp, whatever) my nrpe.cfg from the Nagios server if I need to add any commands. Is there a better way to manage this? I'd like the Nagios server to be a central point of configuration. I am using nrpe's --enable-command-args option and passing parameters via check_nrpe, so once the monitored host has the nrpe.cfg, there wouldn't be much to do there. > > > > Robert C. Cipriani > Senior Network Administrator > Tampa Bay Division IT > Bright House Networks > W: (727) 329-2000 x74264 > M: (727) 365-1231 > > > > > > CONFIDENTIALITY NOTICE: This e-mail may contain information that is privileged, confidential or otherwise protected from disclosure. If you are not the intended recipient of this e-mail, please notify the sender immediately by return e-mail, purge it and do not disseminate or copy it. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ksumner at physics.unc.edu Tue Nov 27 00:15:14 2007 From: ksumner at physics.unc.edu (Kevin Scott Sumner) Date: Mon, 26 Nov 2007 18:15:14 -0500 (EST) Subject: Bad group on cmd pipe after restart. In-Reply-To: <6F41C23E99FC594D90E848FA5642343131C1624668@TBEMAIL.corp.local> References: <6F41C23E99FC594D90E848FA5642343131C1624668@TBEMAIL.corp.local> Message-ID: Robert, Affecting the apache user will affect *all* instances of apache in our infrastructure (regular website, as well as BackupPC's apache, etc). I know this seems like a broken setup -- it is. :) We're in planning phases for better machine user/group management, but creating a one-off machine in terms of users/groups is difficult at the moment because the flat files are automatically spawned by some, err... "feature challenged" scripts. I'm pushing hard to get this changed, but for now, I can't change change a user's group membership without it affecting that on every machine. I realize I could remedy this situation by running apache as www-data:nagios on our nagios server, but my question isn't so much about making it work -- it's about whether nagios is broken in the way that it deals with creating its command pipe or whether I've over looked something (a bug vs. my poor brain, if you will). Cheers, Kevin ----- Kevin Sumner ksumner at physics.unc.edu (919) 962-6494 Assistant Systems Administrator Physics and Astronomy Networking Infrastructure and Computing University of North Carolina at Chapel Hill > > Kevin, > > Just out of curiosity, why not run Nagios as nagios:nagios? On my setup, the apache user is a member of the nagios group. Maybe yours is using the nagios user's default group? > > > > Robert C. Cipriani > Senior Network Administrator > Tampa Bay Division IT > Bright House Networks > W: (727) 329-2000 x74264 > M: (727) 365-1231 > > > > > CONFIDENTIALITY NOTICE: This e-mail may contain information that is privileged, confidential or otherwise protected from disclosure. If you are not the intended recipient of this e-mail, please notify the sender immediately by return e-mail, purge it and do not disseminate or copy it. > > ------------------------------------------------------------------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ksumner at physics.unc.edu Tue Nov 27 00:33:09 2007 From: ksumner at physics.unc.edu (Kevin Scott Sumner) Date: Mon, 26 Nov 2007 18:33:09 -0500 (EST) Subject: Centralizing NRPE Configuration In-Reply-To: <1196116098.10545.57.camel@sidhqmis4grdv91> References: <6F41C23E99FC594D90E848FA5642343131C1624670@TBEMAIL.corp.local> <1196116098.10545.57.camel@sidhqmis4grdv91> Message-ID: Robert, I second Aaron's CFengine suggestion. Moving an infrastructure towards using something like CFengine or puppet will make you saner in the long run. Much, much saner. Setting it up to push a single config is a little overboard, but it makes syncing and sanitizing all of your machines REALLY easy. We use CFengine here, so feel free to contact me off-list for more specifics about it. Cheers, Kevin ----- Kevin Sumner ksumner at physics.unc.edu (919) 962-6494 Assistant Systems Administrator Physics and Astronomy Networking Infrastructure and Computing University of North Carolina at Chapel Hill On Mon, 26 Nov 2007, Aaron M. Segura wrote: > I use cfengine for that purpose. I have it copy the config from the > central server then restart the nrpe daemon. Might be a little overkill > for just this one thing, but it's useful for all sorts of stuff. > > http://www.cfengine.org/ > > On Mon, 2007-11-26 at 17:07 -0500, Cipriani, Robert C wrote: >> Does anyone have any suggestions on a way to centralize NRPE configs? I suppose I can push (rsync, scp, whatever) my nrpe.cfg from the Nagios server if I need to add any commands. Is there a better way to manage this? I'd like the Nagios server to be a central point of configuration. I am using nrpe's --enable-command-args option and passing parameters via check_nrpe, so once the monitored host has the nrpe.cfg, there wouldn't be much to do there. >> >> >> >> Robert C. Cipriani >> Senior Network Administrator >> Tampa Bay Division IT >> Bright House Networks >> W: (727) 329-2000 x74264 >> M: (727) 365-1231 >> >> >> >> >> >> CONFIDENTIALITY NOTICE: This e-mail may contain information that is privileged, confidential or otherwise protected from disclosure. If you are not the intended recipient of this e-mail, please notify the sender immediately by return e-mail, purge it and do not disseminate or copy it. >> ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cmoody at qualcomm.com Tue Nov 27 00:52:40 2007 From: cmoody at qualcomm.com (Chris Moody) Date: Mon, 26 Nov 2007 15:52:40 -0800 Subject: Integrating nagvis In-Reply-To: <4b008f7d0711260326i36956bd4ta52daaf48b86246a@mail.gmail.com> References: <4b008f7d0711260253l4865f79ehdcd4a4b1c124ecab@mail.gmail.com> <20071126.UQK.51984700@www.zarrelli.org> <9D30659ABCA7FB428CF91E386C3A5744A59E0F@hermes.sapphire-int.gi> <4b008f7d0711260310ga68913bj47e84b0ff92fd54@mail.gmail.com> <9D30659ABCA7FB428CF91E386C3A5744A59E16@hermes.sapphire-int.gi> <4b008f7d0711260326i36956bd4ta52daaf48b86246a@mail.gmail.com> Message-ID: <474B5C48.30701@qualcomm.com> Also be sure to verify that your dbprefix is set correctly in the etc/config.php.ini file for nagvis. This is easily overlooked. Cheers, -Chris Alex Dehaini wrote: > Let me try the suggestions and get back to you guys. > > On Nov 26, 2007 11:20 AM, Giles Coochey > wrote: > > If you post in plain text, it's much easier for me not to top post. > > > > This is likely something to do with your socket file. > > > > Check the socket file in ndo2db configuration file, mine is in: > > > > /opt/nagios/var/ndo.sock > > > > It is referenced in ndo2db.cfg with this line: > > > > socket_name=/opt/nagios/var/ndo.sock > > > > if socket exists, it may have been created with insufficient > permissions, or the directory mask was bad, remove the file, check > permissions and restart ndo. > > > > Thanks > > > > Giles > > > > ------------------------------------------------------------------------ > > *From:* nagios-users-bounces at lists.sourceforge.net > > [mailto:nagios-users-bounces at lists.sourceforge.net > ] *On Behalf Of > *Alex Dehaini > *Sent:* 26 November 2007 12:10 > > *To:* nagios-users at lists.sourceforge.net > > *Subject:* Re: [Nagios-users] Integrating nagvis > > > > Here is the error I get from my logs > > *Nov 26 11:00:01 development nagios: ndomod: Still unable to connect > to data sink. 0 items lost, 1655 queued items to flush. > > *When I browse to the nagvis home page, I get this error. > > *Warning*: mysql_fetch_array(): supplied argument is not a valid > MySQL result resource in > */usr/local/nagios/share/nagvis/nagvis/includes/classes/class.GlobalBackend-ndomy.php* > on line *58 > > nagiosNotRunning: NDOMy: Nagios not running (Backend ndomy_1) > > NDO reports that Nagios is not running > > *Any clue what is wrong? > > On Nov 26, 2007 11:01 AM, Giles Coochey > wrote: > > > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net > > [mailto:nagios-users- > > bounces at lists.sourceforge.net > ] On Behalf Of Giorgio Zarrelli > > Sent: 26 November 2007 11:58 > > To: nagios-users at lists.sourceforge.net > > > Subject: Re: [Nagios-users] Integrating nagvis > > > > Hi, > > > > I used: > > > > nagios-3.0b6 > > nagvis-1.2b2 > > > > What's the problem with the backend? Which operating system? > > > > I'm using Nagios 2.9, NdoUtils 1.4.7b7 and NagVis 1.1.2 > > Not any problems, I just followed the README's and posted minor issues > with descriptions as to the particular problems on the list to resolve > all my problems. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 > > > > > -- > Alex Dehaini > Developer > Site - www.alexdehaini.com > Email - alexdehaini at gmail.com > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dhawal at netmagicsolutions.com Tue Nov 27 01:19:10 2007 From: dhawal at netmagicsolutions.com (Dhawal Doshy) Date: Mon, 26 Nov 2007 16:19:10 -0800 Subject: Nagios Looking Glass Message-ID: http://nagioslookingglass.co.uk/ and other sites related to Andy Shellam (the author) appear to be down since about 2-3 weeks. Does anyone have news on this site OR have a copy of the latest release? TIA, - dhawal ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From froylan.medina at multimedios.com Tue Nov 27 02:22:35 2007 From: froylan.medina at multimedios.com (Froylan Medina V.) Date: Mon, 26 Nov 2007 19:22:35 -0600 Subject: Nagios with Netapp Message-ID: <008c01c83093$ff346a10$6901a8c0@grupo.multimedios.com> Hi, please tell me how to configure nagios to minitoring NetApp. -------------------------------------- Froylan Medina Ingenieria Multimedios TV Tel. (81) 8369 9910 Ext. -- "La informaci?n contenida en este mensaje se env?a ?nicamente para el destinatario, la cual puede contener Informaci?n de car?cter CONFIDENCIAL o PRIVILEGIADA y est? protegida as? contra el acceso indebido. La modificaci?n, retransmisi?n, difusi?n, copia u otro uso de la misma, (incluyendo todos los documentos adjuntos) por cualquier medio, por personas distintas al destinatario se proh?be terminantemente. El contenido de este mensaje es responsabilidad exclusiva del autor y la empresa no necesariamente comparte el sentido del mismo. Si usted ha recibido esta comunicaci?n por error, por favor notifique al remitente respondiendo a este mensaje, y borre el mismo y sus anexos sin retener copia alguna". -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From froylan.medina at multimedios.com Tue Nov 27 02:29:03 2007 From: froylan.medina at multimedios.com (Froylan Medina V.) Date: Mon, 26 Nov 2007 19:29:03 -0600 Subject: Nagios with Netapp In-Reply-To: <008c01c83093$ff346a10$6901a8c0@grupo.multimedios.com> References: <008c01c83093$ff346a10$6901a8c0@grupo.multimedios.com> Message-ID: <009f01c83094$e5cd9e10$6901a8c0@grupo.multimedios.com> Nagios Version 3.0b6 -------------------------------------- Froylan Medina Ingenieria Multimedios TV Tel. (81) 8369 9910 Ext. -- "La informaci?n contenida en este mensaje se env?a ?nicamente para el destinatario, la cual puede contener Informaci?n de car?cter CONFIDENCIAL o PRIVILEGIADA y est? protegida as? contra el acceso indebido. La modificaci?n, retransmisi?n, difusi?n, copia u otro uso de la misma, (incluyendo todos los documentos adjuntos) por cualquier medio, por personas distintas al destinatario se proh?be terminantemente. El contenido de este mensaje es responsabilidad exclusiva del autor y la empresa no necesariamente comparte el sentido del mismo. Si usted ha recibido esta comunicaci?n por error, por favor notifique al remitente respondiendo a este mensaje, y borre el mismo y sus anexos sin retener copia alguna". _____ De: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] En nombre de Froylan Medina V. Enviado el: Lunes, 26 de Noviembre de 2007 07:23 p.m. Para: nagios-users at lists.sourceforge.net Asunto: [Nagios-users] Nagios with Netapp Hi, please tell me how to configure nagios to minitoring NetApp. -------------------------------------- Froylan Medina Ingenieria Multimedios TV Tel. (81) 8369 9910 Ext. -- "La informaci?n contenida en este mensaje se env?a ?nicamente para el destinatario, la cual puede contener Informaci?n de car?cter CONFIDENCIAL o PRIVILEGIADA y est? protegida as? contra el acceso indebido. La modificaci?n, retransmisi?n, difusi?n, copia u otro uso de la misma, (incluyendo todos los documentos adjuntos) por cualquier medio, por personas distintas al destinatario se proh?be terminantemente. El contenido de este mensaje es responsabilidad exclusiva del autor y la empresa no necesariamente comparte el sentido del mismo. Si usted ha recibido esta comunicaci?n por error, por favor notifique al remitente respondiendo a este mensaje, y borre el mismo y sus anexos sin retener copia alguna". -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gmartin at gmartin.org Tue Nov 27 06:03:08 2007 From: gmartin at gmartin.org (Greg Martin) Date: Tue, 27 Nov 2007 00:03:08 -0500 Subject: Scheduled "maintenance" Message-ID: <474BA50C.2080002@gmartin.org> We have several services that alert every night during a scheduled process. (The drive partition drops below the free space limit). We could reschedule maintenance everyday, but it seems there should be a better way. Any thoughts on other approaches? \\Greg ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jdaily at apparatus.net Tue Nov 27 06:19:25 2007 From: jdaily at apparatus.net (John R. Daily) Date: Tue, 27 Nov 2007 00:19:25 -0500 Subject: Scheduled "maintenance" In-Reply-To: <474BA50C.2080002@gmartin.org> References: <474BA50C.2080002@gmartin.org> Message-ID: We wrote a couple of tools to assist with this scenario. I'm attaching them. They leverage an external tool which we wrote to parse the Nagios configuration and identify/verify hosts, but that dependency can be removed easily. We run them from cron. Examples: 55 03 * * * /etc/nagios/tools/toggle-host-notifications --off server1 05 04 * * * /etc/nagios/tools/toggle-host-notifications --on server1 00 02 * * * /etc/nagios/tools/toggle-service-notifications --off -- service "HTTP redirect" server3.domain.com 40 02 * * * /etc/nagios/tools/toggle-service-notifications --on -- service "HTTP redirect" server3.domain.com -John -------------- next part -------------- A non-text attachment was scrubbed... Name: toggle-host-notifications.pl Type: text/x-perl-script Size: 1619 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: toggle-service-notifications.pl Type: text/x-perl-script Size: 1706 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sunny at tetrain.com Mon Nov 26 19:05:15 2007 From: sunny at tetrain.com (Sunny Bhatheja) Date: Mon, 26 Nov 2007 23:35:15 +0530 Subject: Regarding Table spce Message-ID: <474B0ADB.4060008@tetrain.com> hello, I want to monitor 400 table space , currently i m using check_oracle_tbs script .whn i run this script this gives me error:-*DBD::Oracle perl module hasn`t been fully installed, or perhaps the capitalisation of 'Oracle, is not right* ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Tue Nov 27 07:30:27 2007 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Tue, 27 Nov 2007 07:30:27 +0100 Subject: Nagios with Netapp In-Reply-To: <009f01c83094$e5cd9e10$6901a8c0@grupo.multimedios.com> References: <009f01c83094$e5cd9e10$6901a8c0@grupo.multimedios.com> Message-ID: <474BB983.1090807@vanderkooij.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Froylan Medina V. wrote: > Nagios Version 3.0b6 Right. You run a test version and you want to be handheld in monitoring a box? Have you checked out previous posting on the subject? What did you investigate before you posted 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) iD8DBQFHS7l9BvzDRVjxmYERAvm3AJ92TCcYhDVbGKltmJN62YLdJHi8HwCgt1Kp 6kra74uuD+Jr6JQyBy6qpPU= =ENon -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hvdkooij at vanderkooij.org Tue Nov 27 07:33:27 2007 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Tue, 27 Nov 2007 07:33:27 +0100 Subject: Scheduled "maintenance" In-Reply-To: <474BA50C.2080002@gmartin.org> References: <474BA50C.2080002@gmartin.org> Message-ID: <474BBA37.9030209@vanderkooij.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Greg Martin wrote: > We have several services that alert every night during a scheduled > process. (The drive partition drops below the free space limit). We > could reschedule maintenance everyday, but it seems there should be a > better way. Any thoughts on other approaches? I would choose to use two schedules with different monitoring values. If this is business as usual then your Nagios config should reflect that. 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) iD8DBQFHS7o1BvzDRVjxmYERAh7rAJsFqmhiHGFzNuQvR0hnk8B0sSlDTgCgitKB HIL2IipLhhLf+d0esXV6fQk= =Wj0t -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bijuaugustine at gmail.com Tue Nov 27 11:29:19 2007 From: bijuaugustine at gmail.com (Biju Augustine) Date: Tue, 27 Nov 2007 15:59:19 +0530 Subject: Not getting alerts through email. Message-ID: <47f4f79c0711270229m33a41d34oa0d62439966fc7d2@mail.gmail.com> Hi All, OS Fedora 8 Nagios -3.0b6 Nagios-Plugins 1.4.10 I followed the above documentation http://nagios.sourceforge.net/docs/3_0/quickstart-fedora.html vi /usr/local/nagios/etc/objects/contacts.cfg edit define contact{ contact_name biju use generic-contact alias Biju Augustine email biju at essentiaserve.com } ############################################################################### ############################################################################### # # CONTACT GROUPS # ############################################################################### ############################################################################### # We only have one contact in this simple configuration file, so there is # no need to create more than one contact group. define contactgroup{ contactgroup_name admins alias Nagios Administrators members nagiosadmin } define contactgroup{ contactgroup_name esadmins alias Nagios Administrators members nagiosadmin,biju } Please let me know what are the thing ie email id host name shall I need to add Verify the sample Nagios configuration files. /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg no errors. restarted the nagios services and it's working fine. But i am not getting any mail alerts or any notifications. can you please let me know shall i need to add any thing more in vi /usr/local/nagios/etc/objects/contacts.cfg please advice I ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gcoochey at sapphire.gi Tue Nov 27 11:32:19 2007 From: gcoochey at sapphire.gi (Giles Coochey) Date: Tue, 27 Nov 2007 11:32:19 +0100 Subject: Not getting alerts through email. In-Reply-To: <47f4f79c0711270229m33a41d34oa0d62439966fc7d2@mail.gmail.com> References: <47f4f79c0711270229m33a41d34oa0d62439966fc7d2@mail.gmail.com> Message-ID: <9D30659ABCA7FB428CF91E386C3A5744A59E8B@hermes.sapphire-int.gi> > define contactgroup{ > contactgroup_name esadmins > alias Nagios Administrators > members nagiosadmin,biju > } Do you have any hosts/services which are associated with this contact group? ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gcoochey at sapphire.gi Tue Nov 27 11:46:45 2007 From: gcoochey at sapphire.gi (Giles Coochey) Date: Tue, 27 Nov 2007 11:46:45 +0100 Subject: Not getting alerts through email. In-Reply-To: <47f4f79c0711270242w2e65657aq302befc636dd129f@mail.gmail.com> References: <47f4f79c0711270229m33a41d34oa0d62439966fc7d2@mail.gmail.com> <9D30659ABCA7FB428CF91E386C3A5744A59E8B@hermes.sapphire-int.gi> <47f4f79c0711270242w2e65657aq302befc636dd129f@mail.gmail.com> Message-ID: <9D30659ABCA7FB428CF91E386C3A5744A59E8C@hermes.sapphire-int.gi> > -----Original Message----- > From: Biju Augustine [mailto:bijuaugustine at gmail.com] > Sent: 27 November 2007 11:43 > To: Giles Coochey > Subject: Re: [Nagios-users] Not getting alerts through email. > > I dont have > > (vi /etc/hosts > IP address biju.essentia.com) > You will not receive alerts unless you specify the appropriate contact group for a service or host. You can modify your base templates to include the esadmins contactgroup for a group of hosts based on those templates. Always best to reply to list, it makes my outlook rules correctly file your message in the right folder, and it serves as completeness for those who might be following the conversation and also will help future users help themselves by searching the mailing list archives (thus saving future mailing list bandwidth). > > > On Nov 27, 2007 4:02 PM, Giles Coochey wrote: > > > define contactgroup{ > > > contactgroup_name esadmins > > > alias Nagios Administrators > > > members nagiosadmin,biju > > > } > > > > Do you have any hosts/services which are associated with this contact > > group? > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sunny at tetrain.com Mon Nov 26 23:49:58 2007 From: sunny at tetrain.com (Sunny Bhatheja) Date: Tue, 27 Nov 2007 04:19:58 +0530 Subject: Regarding Nrpe in sun 5.8 Message-ID: <474B4D96.7070702@tetrain.com> Hello I want to monitor oracle alert logs from my sun 5.8 server with nrpe. I m nt able to install nrpe in sun 5.8 . Can anybody tell that how to install nrpe and retrieve oracle alert logs. Regds Sunny Bhatheja ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From frederic.schaer at cea.fr Tue Nov 27 11:52:30 2007 From: frederic.schaer at cea.fr (SCHAER Frederic) Date: Tue, 27 Nov 2007 11:52:30 +0100 Subject: Integrating LONGSERVICEOUTPUT in nagios.cgi In-Reply-To: <4730DF42.4040002@ec.gc.ca> References: <4730DF42.4040002@ec.gc.ca> Message-ID: Hi, Yes. I mean : I have several lines of text printed in the service state information CGI, and these lines were separate script output lines... But for now, LONGSERVICEOUTPUT is completely not working in notifications for me - I'm going too try beta7 very soon to see if this is better... Regards -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Tarak Patel Sent: Tuesday, November 06, 2007 10:40 PM To: Nagios-users at lists.sourceforge.net Subject: [Nagios-users] Integrating LONGSERVICEOUTPUT in nagios.cgi Hi all, Has any one integrated LONGSERVICEOUTPUT in nagios-3.0b6 into the cgi. TP ------------------------------------------------------------------------ - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bijuaugustine at gmail.com Tue Nov 27 12:04:53 2007 From: bijuaugustine at gmail.com (Biju Augustine) Date: Tue, 27 Nov 2007 16:34:53 +0530 Subject: Not getting alerts through email. In-Reply-To: <9D30659ABCA7FB428CF91E386C3A5744A59E8B@hermes.sapphire-int.gi> References: <47f4f79c0711270229m33a41d34oa0d62439966fc7d2@mail.gmail.com> <9D30659ABCA7FB428CF91E386C3A5744A59E8B@hermes.sapphire-int.gi> Message-ID: <47f4f79c0711270304q26bfda20rea0d76b395a403f3@mail.gmail.com> no i dont have please let me know what i need to change. On Nov 27, 2007 4:02 PM, Giles Coochey wrote: > > define contactgroup{ > > contactgroup_name esadmins > > alias Nagios Administrators > > members nagiosadmin,biju > > } > > Do you have any hosts/services which are associated with this contact > group? > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kyle.odonnell at gmail.com Tue Nov 27 13:51:32 2007 From: kyle.odonnell at gmail.com (kyle.odonnell at gmail.com) Date: Tue, 27 Nov 2007 07:51:32 -0500 Subject: Centralizing NRPE Configuration In-Reply-To: References: <6F41C23E99FC594D90E848FA5642343131C1624670@TBEMAIL.corp.local> <1196116098.10545.57.camel@sidhqmis4grdv91> Message-ID: <2274b9c30711270451q30016080i55a8821af8491888@mail.gmail.com> We have NRPE running over NFS. -Kyle On 11/26/07, Kevin Scott Sumner wrote: > Robert, > > I second Aaron's CFengine suggestion. > > Moving an infrastructure towards using something like CFengine or puppet > will make you saner in the long run. Much, much saner. Setting it up to > push a single config is a little overboard, but it makes syncing and > sanitizing all of your machines REALLY easy. > > We use CFengine here, so feel free to contact me off-list for more > specifics about it. > > Cheers, > Kevin > ----- > Kevin Sumner > ksumner at physics.unc.edu > (919) 962-6494 > Assistant Systems Administrator > Physics and Astronomy Networking Infrastructure and Computing > University of North Carolina at Chapel Hill > > > On Mon, 26 Nov 2007, Aaron M. Segura wrote: > > > I use cfengine for that purpose. I have it copy the config from the > > central server then restart the nrpe daemon. Might be a little overkill > > for just this one thing, but it's useful for all sorts of stuff. > > > > http://www.cfengine.org/ > > > > On Mon, 2007-11-26 at 17:07 -0500, Cipriani, Robert C wrote: > >> Does anyone have any suggestions on a way to centralize NRPE configs? I > suppose I can push (rsync, scp, whatever) my nrpe.cfg from the Nagios server > if I need to add any commands. Is there a better way to manage this? I'd > like the Nagios server to be a central point of configuration. I am using > nrpe's --enable-command-args option and passing parameters via check_nrpe, > so once the monitored host has the nrpe.cfg, there wouldn't be much to do > there. > >> > >> > >> > >> Robert C. Cipriani > >> Senior Network Administrator > >> Tampa Bay Division IT > >> Bright House Networks > >> W: (727) 329-2000 x74264 > >> M: (727) 365-1231 > >> > >> > >> > >> > >> > >> CONFIDENTIALITY NOTICE: This e-mail may contain information that is > privileged, confidential or otherwise protected from disclosure. If you are > not the intended recipient of this e-mail, please notify the sender > immediately by return e-mail, purge it and do not disseminate or copy it. > >> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From frederic.schaer at cea.fr Tue Nov 27 14:23:10 2007 From: frederic.schaer at cea.fr (SCHAER Frederic) Date: Tue, 27 Nov 2007 14:23:10 +0100 Subject: NRPE bug ?? Message-ID: Hi, I'm currently using NRPE to monitor a few things, and it looks like I'm facing a bug : depending on the plugin output, the end of output is... "strange". Some plugins with lots of output behave correctly, others with just a few words are not OK A typical output is like this one : # /usr/lib/nagios/plugins/check_nrpe -H gate02 -c nrpe_listcmds check_users check_load check_hda1 check_zombie_procs check_total_procs check_firewall check_blackholes check_varparts check_slash check_quattor nrpe_listcmds ?????????????????????????????????????? ??????&??/??8??A??J??S??\??e??n??w?????????????????????????????????????????????????"??+??4??=??F??O??X??a??j??s??|?? ?????? ???????????????????? Not cool... If I add to the bash plugin an << echo -e "\0" >> at the end, the output is clean again... however, I add some "echo" or echo -e '\n' , the output still contains garbage. Would this be a bug ? Or would I be doing something wrong ? I tried changing the linefeed format (dos2unix and unix2dos) : with msdos linefeeds, the output cannot be read, and unix liefeeds don't change my output. These strange chars at the end of the output always look to be the same for a given plugin, but they differ between plugins. I'm wondering if I'm seeing the remainings of the 1024bytes output limit... ? I'm using nrpe-2.8.1-1.i386 and nrpe-plugin-2.8.1-1.i386 on an SL4.4 i386 box... Thanks, Frederic -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Robert.Cipriani at mybrighthouse.com Tue Nov 27 14:55:10 2007 From: Robert.Cipriani at mybrighthouse.com (Cipriani, Robert C) Date: Tue, 27 Nov 2007 08:55:10 -0500 Subject: Centralizing NRPE Configuration In-Reply-To: <1196116098.10545.57.camel@sidhqmis4grdv91> References: <6F41C23E99FC594D90E848FA5642343131C1624670@TBEMAIL.corp.local> <1196116098.10545.57.camel@sidhqmis4grdv91> Message-ID: <6F41C23E99FC594D90E848FA5642343131C1624750@TBEMAIL.corp.local> I had ran across cfengine when looking to manage Kickstart configs. I will definitely give it a look. I'm sure we have a use for it elsewhere. Thank you. Robert C. Cipriani Senior Network Administrator Tampa Bay Division IT Bright House Networks W: (727) 329-2000 x74264 M: (727) 365-1231 -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Aaron M. Segura Sent: Monday, November 26, 2007 5:28 PM To: Cipriani, Robert C Cc: 'nagios-users at lists.sourceforge.net' Subject: Re: [Nagios-users] Centralizing NRPE Configuration I use cfengine for that purpose. I have it copy the config from the central server then restart the nrpe daemon. Might be a little overkill for just this one thing, but it's useful for all sorts of stuff. http://www.cfengine.org/ On Mon, 2007-11-26 at 17:07 -0500, Cipriani, Robert C wrote: > Does anyone have any suggestions on a way to centralize NRPE configs? I suppose I can push (rsync, scp, whatever) my nrpe.cfg from the Nagios server if I need to add any commands. Is there a better way to manage this? I'd like the Nagios server to be a central point of configuration. I am using nrpe's --enable-command-args option and passing parameters via check_nrpe, so once the monitored host has the nrpe.cfg, there wouldn't be much to do there. > > > > Robert C. Cipriani > Senior Network Administrator > Tampa Bay Division IT > Bright House Networks > W: (727) 329-2000 x74264 > M: (727) 365-1231 > > > > > > CONFIDENTIALITY NOTICE: This e-mail may contain information that is privileged, confidential or otherwise protected from disclosure. If you are not the intended recipient of this e-mail, please notify the sender immediately by return e-mail, purge it and do not disseminate or copy it. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 may contain information that is privileged, confidential or otherwise protected from disclosure. If you are not the intended recipient of this e-mail, please notify the sender immediately by return e-mail, purge it and do not disseminate or copy it. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Robert.Cipriani at mybrighthouse.com Tue Nov 27 14:57:53 2007 From: Robert.Cipriani at mybrighthouse.com (Cipriani, Robert C) Date: Tue, 27 Nov 2007 08:57:53 -0500 Subject: Bad group on cmd pipe after restart. In-Reply-To: References: <6F41C23E99FC594D90E848FA5642343131C1624668@TBEMAIL.corp.local> Message-ID: <6F41C23E99FC594D90E848FA5642343131C1624754@TBEMAIL.corp.local> I see what you mean...why doesn't it work as expected? Did you say which version you are using? 3.x? I have the luxury of running apache/Nagios on a dedicated virtual machine. Robert C. Cipriani Senior Network Administrator Tampa Bay Division IT Bright House Networks W: (727) 329-2000 x74264 M: (727) 365-1231 -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Kevin Scott Sumner Sent: Monday, November 26, 2007 6:15 PM To: Cipriani, Robert C Cc: 'nagios-users at lists.sourceforge.net' Subject: Re: [Nagios-users] Bad group on cmd pipe after restart. Robert, Affecting the apache user will affect *all* instances of apache in our infrastructure (regular website, as well as BackupPC's apache, etc). I know this seems like a broken setup -- it is. :) We're in planning phases for better machine user/group management, but creating a one-off machine in terms of users/groups is difficult at the moment because the flat files are automatically spawned by some, err... "feature challenged" scripts. I'm pushing hard to get this changed, but for now, I can't change change a user's group membership without it affecting that on every machine. I realize I could remedy this situation by running apache as www-data:nagios on our nagios server, but my question isn't so much about making it work -- it's about whether nagios is broken in the way that it deals with creating its command pipe or whether I've over looked something (a bug vs. my poor brain, if you will). Cheers, Kevin ----- Kevin Sumner ksumner at physics.unc.edu (919) 962-6494 Assistant Systems Administrator Physics and Astronomy Networking Infrastructure and Computing University of North Carolina at Chapel Hill > > Kevin, > > Just out of curiosity, why not run Nagios as nagios:nagios? On my setup, the apache user is a member of the nagios group. Maybe yours is using the nagios user's default group? > > > > Robert C. Cipriani > Senior Network Administrator > Tampa Bay Division IT > Bright House Networks > W: (727) 329-2000 x74264 > M: (727) 365-1231 > > > > > CONFIDENTIALITY NOTICE: This e-mail may contain information that is privileged, confidential or otherwise protected from disclosure. If you are not the intended recipient of this e-mail, please notify the sender immediately by return e-mail, purge it and do not disseminate or copy it. > > ------------------------------------------------------------------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null CONFIDENTIALITY NOTICE: This e-mail may contain information that is privileged, confidential or otherwise protected from disclosure. If you are not the intended recipient of this e-mail, please notify the sender immediately by return e-mail, purge it and do not disseminate or copy it. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Robert.Cipriani at mybrighthouse.com Tue Nov 27 15:02:51 2007 From: Robert.Cipriani at mybrighthouse.com (Cipriani, Robert C) Date: Tue, 27 Nov 2007 09:02:51 -0500 Subject: Centralizing NRPE Configuration In-Reply-To: <474B4625.9030104@verizon.net> References: <6F41C23E99FC594D90E848FA5642343131C1624670@TBEMAIL.corp.local> <474B4625.9030104@verizon.net> Message-ID: <6F41C23E99FC594D90E848FA5642343131C162475C@TBEMAIL.corp.local> Thanks. I will investigate subversion too. Could you email me some more details of how you are using svn to manage Nagios? I've only used CVS, and not for a purpose such as this. Robert C. Cipriani Senior Network Administrator Tampa Bay Division IT Bright House Networks W: (727) 329-2000 x74264 M: (727) 365-1231 -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Max Hetrick Sent: Monday, November 26, 2007 5:18 PM To: 'nagios-users at lists.sourceforge.net' Subject: Re: [Nagios-users] Centralizing NRPE Configuration -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Cipriani, Robert C wrote: > Does anyone have any suggestions on a way to centralize NRPE configs? I suppose I can push (rsync, scp, whatever) my nrpe.cfg from the Nagios server if I need to add any commands. Is there a better way to manage this? I'd like the Nagios server to be a central point of configuration. I am using nrpe's --enable-command-args option and passing parameters via check_nrpe, so once the monitored host has the nrpe.cfg, there wouldn't be much to do there. What about through SVN? I've never done it, but I just thought of it when you mentioned centralizing it. I keep track of my Nagios configuration files this way, but it wouldn't be hard to add NRPE into the mix so that you can checkout the latest set of files. Just an idea... Regards, Max -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFHS0YlHoeeepPau2ERAoyyAJ9bzsR9NcXyRd86RgbYV+c3J6Al6wCgwCmy x/MAAWU/CHhPQb0pDwCnMdk= =FW0G -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null CONFIDENTIALITY NOTICE: This e-mail may contain information that is privileged, confidential or otherwise protected from disclosure. If you are not the intended recipient of this e-mail, please notify the sender immediately by return e-mail, purge it and do not disseminate or copy it. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sunny at tetrain.com Tue Nov 27 03:36:47 2007 From: sunny at tetrain.com (Sunny Bhatheja) Date: Tue, 27 Nov 2007 08:06:47 +0530 Subject: Regarding oracle table space Message-ID: <474B82BF.4020500@tetrain.com> Hello, I m monitoring my tablespaces with check_oracle_tablespace.sh but whn i run this plugins it gives me error:- *Error: Empty result from sqlplus. Check plugin settings and Oracle status. * ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From g.digiambelardini at fabaris.it Tue Nov 27 15:22:33 2007 From: g.digiambelardini at fabaris.it (Di Giambelardini Gabriele) Date: Tue, 27 Nov 2007 15:22:33 +0100 (CET) Subject: snmp mib for cpu on aix Message-ID: <56050.192.168.1.1.1196173353.squirrel@webmail2.fabaris.it> Hi to all, I have a great problem, I'd like check by check_snmp the Cpu usage on an aix server. some body know the mib? or method?? my snmp is v 1. thanks ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chris at sigd.net Tue Nov 27 17:42:05 2007 From: chris at sigd.net (Chris Haulmark) Date: Tue, 27 Nov 2007 11:42:05 -0500 Subject: Nagios Master/Slaves Solution... In-Reply-To: References: Message-ID: <6FC9F9894A9F8C49A722CF9F2132FC220F7314CE@ms05.mailstreet2003.net> Hello Bryan: > > Message: 7 > > Date: Mon, 26 Nov 2007 13:35:22 -0500 > > From: "Chris Haulmark" > > Subject: [Nagios-users] Nagios Master/Slaves Solution... > > To: > > Message-ID: > > > <6FC9F9894A9F8C49A722CF9F2132FC220F730CB6 at ms05.mailstreet2003.net > > > > Content-Type: text/plain; charset="us-ascii" > > > > Hello, > > > > > > > > Have anyone got any Nagios Master/Slaves solutions that are currently > > being used in production? > > > > > > > > The reason that I am asking is because I would like to use Nagios to > > monitor several hosts/services at > > > > multiple locations. I have at least 4 facilities that I would like > to > > assign a Slave per facility while the > > > > Master would stay at the office. > > > > > > > > Each Slave would be monitoring the hosts and services only within the > > facility that it has been assigned. > > > > Firewalls and routings will be in place to prevent the Slaves from > > interacting with each other. Only > > > > the Master will be accessible from each of those Slaves. > > > > > > > > I have experimented with using NSCA to send passive checks over to > the > > Master from each of the Slaves. > > > > It seems to be the solution only if I am not concerned about the > Master > > having a failure or if the route > > > > between the slaves to the Master has been interrupted. I have > > considered giving a Slave the ability to self- > > > > promote if this certain Slave detects that Master has became > > unavailable. That would also include having > > > > to make modifications to the send_nsca IP Address on those other > Slaves. > > That includes the firewall and > > > > routing adjustments being required. > > > > > > > > I have looked at DNX but I am thinking that it is really designed to > > cross check the hosts/services from each > > > > of those "Nodes" to distribute the work loads. I do not want the > Slaves > > to overlap each other's territory > > > > unless a certain Slave have been self-promoted. > > > > > > > > Anyone have suggestions on a working solution or can point me to some > > reading documentations of how > > > > someone have set up a HA Nagios Master/Slaves solution? > > > > I wrote up some internal docs for myself over a year ago now and don't > mind sharing them: > > http://www.nbcs.rutgers.edu/~brylon/nagios2/ > > Note: I don't know if this is quite what you are looking for, but > figured I'd share and let you decide if it helps. I would also be > interested in other docs anyone may have with respect to distributed > monitoring and failover redundancy. This is nice of you to share your documentations. However, this is not really what I am looking for. I am not really interested in proof of concepts. Those documentations that would show the actual setups that are in use would be useful for me to start off with. I saw that cfengine is mentioned for management of the Nagios configuration files across the servers. It seemed interesting. Using SCP with keys was part of my original plan. This may change or it would not. Any other information about how a failover can occur for a slave when the master goes down? Chris > > > > > > > Chris > > ----------------------------------------------------------------------- > -- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ilohp at yahoo.com Tue Nov 27 16:15:13 2007 From: ilohp at yahoo.com (ilohp) Date: Tue, 27 Nov 2007 07:15:13 -0800 (PST) Subject: Nagios not reporting alerts and keeping the soft-state Message-ID: <854532.85839.qm@web43133.mail.sp1.yahoo.com> I have some remote stores, only with a ping service checking the server After a connection failure, nagios see the server down, but never send the email alert. I believe is because it never made the second attempt to reach the HARD state, and always stay on soft state. It was working well before on the 2.x version, running 3.0b7 now When you check the interface, the status is always soft with only one attempt. Configuration is below. Any idea? Thanks Ileana Host status Down (for 0d 0h 54m 9s) Status Information: PING CRITICAL - Packet loss = 50%, RTA = 1080.06 ms Current Attempt: 1/2 (SOFT state) Last Check Time:11-26-2007 15:43:56 Check Type ACTIVE Check Latency / Duration:0.000 / 1.089 seconds Next Scheduled Active Check: 11-26-2007 15:46:06 Last State Change:11-26-2007 15:44:06 Last Notification: N/A (notification 0) Is This Host Flapping? N/A In Scheduled Downtime? NO Last Update: 11-26-2007 16:38:01 ( 0d 0h 0m 14s ago) The configuration define host { host_name PE552 alias Rio Grande, Store address 192.168.53.14 use Stores contact_groups store-admins } define service { service_description PING-Stores use ping-service-stores host_name PE552 } define host { name Stores process_perf_data 1 retain_status_information 1 flap_detection_enabled 1 retain_nonstatus_information 1 active_checks_enabled 1 passive_checks_enabled 1 check_period 24x7 obsess_over_host 1 check_freshness 1 check_command check-far-host-alive max_check_attempts 2 check_interval 2 event_handler_enabled 1 notifications_enabled 1 notification_interval 120 notification_period 24x7 notification_options d,r contact_groups store-admins register 0 } define command { command_name check-far-host-alive command_line /usr/local/nagios/libexec/check_ping -H $HOSTADDRESS$ -w 600,50% -c 1000,90% -p 1 } define service { name ping-service-stores is_volatile 0 check_period 24x7 max_check_attempts 2 normal_check_interval 2 retry_check_interval 1 active_checks_enabled 1 passive_checks_enabled 1 parallelize_check 1 obsess_over_service 1 check_freshness 0 notifications_enabled 1 notification_interval 240 notification_period 24x7 notification_options c,r event_handler_enabled 1 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 check_command check_ping!600,40%!1200,60% contact_groups store-admins register 0 } ____________________________________________________________________________________ Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it now. http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Nov 27 17:53:09 2007 From: marc at ena.com (Marc Powell) Date: Tue, 27 Nov 2007 10:53:09 -0600 Subject: Scheduled "maintenance" In-Reply-To: <474BA50C.2080002@gmartin.org> References: <474BA50C.2080002@gmartin.org> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Greg Martin > Sent: Monday, November 26, 2007 11:03 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Scheduled "maintenance" > > We have several services that alert every night during a scheduled > process. (The drive partition drops below the free space limit). We > could reschedule maintenance everyday, but it seems there should be a > better way. Any thoughts on other approaches? Create a timeperiod that excludes the problem time and assign that as the check_period for the services. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From haydn.solomon at gmail.com Tue Nov 27 18:00:27 2007 From: haydn.solomon at gmail.com (Haydn Solomon) Date: Tue, 27 Nov 2007 12:00:27 -0500 Subject: Scheduled "maintenance" In-Reply-To: References: <474BA50C.2080002@gmartin.org> Message-ID: I second Marc's solution which I think is the most efficient way of dealing with that situation ie. timeperiods. On Nov 27, 2007 11:53 AM, Marc Powell wrote: > > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > > bounces at lists.sourceforge.net] On Behalf Of Greg Martin > > Sent: Monday, November 26, 2007 11:03 PM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Scheduled "maintenance" > > > > We have several services that alert every night during a scheduled > > process. (The drive partition drops below the free space limit). We > > could reschedule maintenance everyday, but it seems there should be a > > better way. Any thoughts on other approaches? > > Create a timeperiod that excludes the problem time and assign that as > the check_period for the services. > > -- > Marc > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From george.monappallil at rpfl.com Tue Nov 27 18:14:55 2007 From: george.monappallil at rpfl.com (Monappallil, George) Date: Tue, 27 Nov 2007 12:14:55 -0500 Subject: Nagios alerts when nagios server reboots Message-ID: <50CEF36ACC0B0C4197EBCD31C18341483DE3BB@blaster.Platinum.root.rpfl.com> Hi all, my nagios instance falsely reports host down alerts for all the servers that it monitors (check_host_alive) when the server (that hosts nagios) comes back up after the reboot. The server in question is a vmware guest. Why does this happen ? -George -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Tue Nov 27 19:04:05 2007 From: marc at ena.com (Marc Powell) Date: Tue, 27 Nov 2007 12:04:05 -0600 Subject: Scheduled "maintenance" In-Reply-To: References: Message-ID: > -----Original Message----- > From: Jim.Melin at co.hennepin.mn.us [mailto:Jim.Melin at co.hennepin.mn.us] > Sent: Tuesday, November 27, 2007 11:04 AM > To: Marc Powell > Subject: Re: [Nagios-users] Scheduled "maintenance" > > What happens when that time period is a moving target? Then you likely need something more sophisticated than a timeperiod definition such as having that process kick off the submission of an external command to nagios. You would need to think about how nagios is supposed to know that the problem service really isn't a problem and work from there. Fortunately, the OP indicated that it was a _scheduled_ process so it appears hoop-jumping isn't necessary. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pescobar at cipf.es Tue Nov 27 20:12:20 2007 From: pescobar at cipf.es (Pablo Escobar) Date: Tue, 27 Nov 2007 20:12:20 +0100 Subject: notification by mail not working Message-ID: <200711272012.20845.pescobar@cipf.es> hi all I?m really desesperate because I dont know which other config file I should look. My mail server (postfix) is working because if I run $> ps aux | mail pescobar at cifp.es I get a mail. I have this two files: [root at centos64 nagios]# cat contacts.cfg define contact{ contact_name pablo alias pablo service_notification_period 24x7 host_notification_period 24x7 #service_notification_options c #host_notification_options d service_notification_options w,u,c,r host_notification_options d,u,r service_notification_commands notify-by-email host_notification_commands host-notify-by-email email pescobar at cipf.es } ***************************** ***************************** [root at centos64 nagios]# cat contactgroups.cfg define contactgroup{ contactgroup_name sysadmins alias sysadmins members pablo } both included on nagios.cfg [root at centos64 nagios]# cat /etc/nagios/nagios.cfg | grep contact # groups, contacts, contact groups, services, etc. I guess it would # separate from host and contact definitions... cfg_file=/etc/nagios/contactgroups.cfg cfg_file=/etc/nagios/contacts.cfg # host/contact/service configuration files. Setting this to 60 means I have also verified that the "host-notify-by-email" and "notify-by-email" commands that are defined on commands.cfg work if I run them on a terminal. and I am using this service and host templates: define host{ name generic-host-gen notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 register 0 contact_groups sysadmins check_command check-host-alive normal_check_interval 3 max_check_attempts 3 notification_interval 0 notification_period 24x7 notification_options d,u } define service{ name servicio-generico-gen normal_check_interval 3 retry_check_interval 5 max_check_attempts 3 notification_interval 0 notification_period 24x7 check_period 24x7 notification_options c active_checks_enabled 1 passive_checks_enabled 0 parallelize_check 1 obsess_over_service 0 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 register 0 contact_groups sysadmins } everything on the web interface seems to work and I havent found any error related to mail on logs but I can?t get mail notifications when a service or host fails. ??any clue about what I?m doing wrong?? many thanks in advance for any help and sorry for a so long mail :) Pablo -- Pablo Escobar Lopez Head of Infrastructure & IT Support Bioinformatics Department Centro de Investigaci?n Pr?ncipe Felipe (CIPF) Tfn: (34) 96 328 96 80 ext: 1004 http://bioinfo.cipf.es ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kemotaha at gmail.com Tue Nov 27 20:18:11 2007 From: kemotaha at gmail.com (Nathan Blackham) Date: Tue, 27 Nov 2007 12:18:11 -0700 Subject: Performance of NRPE vs.SNMP Message-ID: Quick Question. I am wondering if anyone has done a performance comparison of NRPE vs. SNMP for simple things like CPU load and Disk Space? I want to know the performance impact for the machine being monitored. Thanks Nathan ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From btmanmeh at verizon.net Tue Nov 27 20:26:05 2007 From: btmanmeh at verizon.net (Max Hetrick) Date: Tue, 27 Nov 2007 14:26:05 -0500 Subject: Performance of NRPE vs.SNMP In-Reply-To: References: Message-ID: <474C6F4D.8060400@verizon.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Nathan Blackham wrote: > I am wondering if anyone has done a performance comparison of NRPE vs. > SNMP for simple things like CPU load and Disk Space? I want to know > the performance impact for the machine being monitored. Hi, Nathan. - From the point of processing performance numbers I can't help you, but I can offer my situation. I used to run a lot of SNMP checks, but every now and again I would get bottlenecks with bandwidth. This would then cause the checks to timeout and fail. I switched to using NRPE and I haven't had any issue like that since. Checks seem to be done much faster. This is my experience using it in regards to limited, or constrained, bandwidth across networks. I do both CPU load and disk space checks and definitely prefer the disk check across NRPE. Regards, Max -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFHTG9NHoeeepPau2ERAlCoAJ0f97PlnYWYmUuFx34j1W34y/nPVACfSSJN 7vcuQu437n80EMD7R+ARfw0= =YQHt -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Tue Nov 27 20:49:16 2007 From: marc at ena.com (Marc Powell) Date: Tue, 27 Nov 2007 13:49:16 -0600 Subject: notification by mail not working In-Reply-To: <200711272012.20845.pescobar@cipf.es> References: <200711272012.20845.pescobar@cipf.es> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Pablo Escobar > Sent: Tuesday, November 27, 2007 1:12 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] notification by mail not working > > hi all > > I?m really desesperate because I dont know which other config file I > should > look. > > My mail server (postfix) is working because if I run Thanks for the config snippets. While you included host and service templates, you didn't include any definitions that actually use those templates. Make sure that those definitions don't overwrite any of the template definitions related to notifications. Also note that your service template only specifies notifications for CRITICAL status. > ??any clue about what I?m doing wrong?? > > many thanks in advance for any help and sorry for a so long mail :) > Pablo Do you have notifications enabled in nagios.cfg (enable_notifications=1)? Do you see notification attempts in nagios.log and in your postfix logs? When you tested your notification commands from the terminal as the nagios user, did you test them exactly as nagios would call them, including substituting appropriate values for the macros? -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sudhir at stratogent.com Tue Nov 27 20:51:49 2007 From: sudhir at stratogent.com (Sudhir Damle) Date: Tue, 27 Nov 2007 11:51:49 -0800 Subject: check_mem plugin for solaris 9 Message-ID: <00b001c8312e$f3d3cda0$7c011cac@sdamle> Hi All, I am using Nagios to monitor many machines, some of them are Solaris 9. There is a requirement for memory monitoring. Most of the plugins on NagiosExchange are perl scripts using 'meminfo' or 'free' commands which are not available on Solaris box. Any idea how to accomplish this check? Any idea, comments, suggestions appreciated. Thanks, Sudhir Damle Systems & Operations Stratogent sudhir at stratogent.com Tel: (650) 577-2332 www.stratogent.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From aaron.segura at cabelas.com Tue Nov 27 21:05:14 2007 From: aaron.segura at cabelas.com (Aaron M. Segura) Date: Tue, 27 Nov 2007 13:05:14 -0700 Subject: check_mem plugin for solaris 9 In-Reply-To: <00b001c8312e$f3d3cda0$7c011cac@sdamle> References: <00b001c8312e$f3d3cda0$7c011cac@sdamle> Message-ID: <1196193914.14208.0.camel@sidhqmis4grdv91> check_solaris I believe it's part of the standard nagios-plugins distribution. On Tue, 2007-11-27 at 11:51 -0800, Sudhir Damle wrote: > Hi All, > > > > I am using Nagios to monitor many machines, some of them are Solaris > 9. There is a requirement for memory monitoring. > > > > Most of the plugins on NagiosExchange are perl scripts using ?meminfo? > or ?free? commands which are not available on Solaris box. > > > > Any idea how to accomplish this check? Any idea, comments, suggestions > appreciated. > > > > Thanks, > > > > Sudhir Damle > > Systems & Operations > > Stratogent > > sudhir at stratogent.com > > Tel: (650) 577-2332 > > www.stratogent.com > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From throck at duke.edu Tue Nov 27 22:00:03 2007 From: throck at duke.edu (Tom Throckmorton) Date: Tue, 27 Nov 2007 16:00:03 -0500 Subject: Slow Nagios reloads with NDOUtils In-Reply-To: References: Message-ID: <474C8553.2000304@duke.edu> On 11/16/2007 04:23 PM, mark.potter at academy.com wrote: > My first problem, and I am not sure it is actually a problem, is that when > I do a reload of nagios (/etc/init.d/nagios reload) it takes, what seems > to me to be, a long time. It is usually around 90-120 seconds for Nagios > to start allowing use of the web interface once the reload is initiated. Mark, I encountered the same issue, spent a while poking at NDO and found that tuning down the table trimming options in ndo2db.cfg helped reduce the time of this symptom by a third or more, depending on how short of an age I chose. This also cut the user cpu time (taken up by mysqld) by about half, as well as the storage and I/O overhead. YMMV, of course, but I found that at this point I don't need to keep the data in those very busy tables longer than an hour or so - it'll be *very* useful of course when I have an interface that can use that data, but for now, keeping it for only a short period is fine. IANA db expert, but from what I can tell and as Ton suggests, the table indexing doesn't appear to be optimal - I see a high handler_read_rnd_next count, which usually indicates unnecessary table scans). As far as this particular symptom goes, though, I think it might be the indexing in conjunction with the re-sending of retained status data that's the culprit here (see the blurb on 'Do not resend retained status to NDO' on http://altinity.blogs.com/dotorg/2007/09/nagios-patch-da.html) > We are monitoring: > > # Active Host / Service Checks:272 / 329 > This doesn't seem like enough to bog down a Dell PowerEdge 1855 with 2GB > RAM onboard. For comparison, I'm running one of our hosts (Nagios 2.10, ndoutils 1.4b6, MySQL 5.0.22 on CentOS 5, active hosts/services 504/2771), on a PowerEdge 1850 w/ 2GB :) Without any ndo2db tuning, I was seeing around a 30-second wait while the status.dat was being recreated (presumably waiting on ndomod). After tuning, I was able to drop that time from ~30 seconds to between 6-8. One caveat - if you do choose to trim those ages, you'll note a longer pause after the next Nagios restart, as NDO goes about dropping older rows. Once that's complete, be sure to optimize the relevant tables to reclaim the unused space. HTH, -tt -- Tom Throckmorton OIT - CSI Duke University ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From aragonx at dcsnow.com Tue Nov 27 22:15:00 2007 From: aragonx at dcsnow.com (aragonx at dcsnow.com) Date: Tue, 27 Nov 2007 16:15:00 -0500 (EST) Subject: Problems with adding my own command Message-ID: <55819.192.35.79.70.1196198100.squirrel@www.dcsnow.com> Hello all, I am trying to add a command. I would like to have a link on the hostgroup page that would allow me to run a bash script on each host in that hostgroup. Passing the script the hostname as a command line parameter. Everything seems to work fine. I have a link on the hostgroup page that says what I want. When I click on it, I get a new page that says just about what I want. When I click on commit however, I get: "An error occurred while attempting to commit your command for processing." I haven't done much C development so I don't have a real good idea as to what I should be doing. I have a feeling the problem is with the function I have added in commands.c. Here is what I have done: I have modified the following files: base/commands.c cgi/cmd.c include/common.h include/nagios.h.in include/nagios.h In commands.c under function void check_for_external_commands(void) else if(!strcmp(command_id,"RUN_CMD_ON_HOSTGROUP")) command_type=CMD_RUN_CMD_ON_HOSTGROUP; In commands.c under function void process_external_command(int cmd, time_t entry_time, char *args) case CMD_RUN_CMD_ON_HOSTGROUP: process_hostgroup_command(cmd,entry_time,args); break; In commands.c under function process_hostgroup_command(int cmd, time_t entry_time, char *args) case CMD_RUN_CMD_ON_HOSTGROUP: run_cmd_on_hostgroup(temp_host); break; In commands.c added function run_cmd_on_hostgroup(host *hst) char extcmd[200]; #ifdef DEBUG0 printf("run_cmd_on_hostgroup() start\n"); #endif /* Run the script. */ strcpy(extcmd, "/usr/local/nagios/bin/hostgroup.bash "); strcat(extcmd, hst->name); system(extcmd); #ifdef DEBUG0 printf("run_cmd_on_hostgroup() with command as %s end\n", extcmd); #endif return; } in cmd.c under function request_command_data(int cmd) case CMD_RUN_CMD_ON_HOSTGROUP: printf("Distribution script run on all hosts in a particular hostgroup"); break; case CMD_RUN_CMD_ON_HOSTGROUP: printf("Hostgroup Name:"); printf("",hostgroup_name); printf("\n"); if(cmd==CMD_RUN_CMD_ON_HOSTGROUP){ printf(""); printf("\n"); } break; case CMD_RUN_CMD_ON_HOSTGROUP: /* see if the user is authorized to issue a command... */ temp_hostgroup=find_hostgroup(hostgroup_name); if(is_authorized_for_hostgroup(temp_hostgroup,¤t_authdata)==TRUE) authorized=TRUE; break; In cmd.c under function show_command_help(cmd) case CMD_RUN_CMD_ON_HOSTGROUP: printf("This command is used to copy files to all the hosts in the host group.\n"); break; in common.h #define CMD_RUN_CMD_ON_HOSTGROUP 144 In nagios.h void run_cmd_on_hostgroup(host *); /* Distributes files to all hosts in a host group */ As always, any help would be appreciated. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sudhir at stratogent.com Wed Nov 28 00:17:15 2007 From: sudhir at stratogent.com (Sudhir Damle) Date: Tue, 27 Nov 2007 15:17:15 -0800 Subject: check_mem plugin for solaris 9 In-Reply-To: <1196193914.14208.0.camel@sidhqmis4grdv91> References: <00b001c8312e$f3d3cda0$7c011cac@sdamle> <1196193914.14208.0.camel@sidhqmis4grdv91> Message-ID: <00fa01c8314b$a66f4f40$7c011cac@sdamle> Hi Aaron, Thanks for reply, but could not find check_solaris plugin anywhere. Any other ideas? Thanks, Sudhir Damle -----Original Message----- From: Aaron M. Segura [mailto:aaron.segura at cabelas.com] Sent: Tuesday, November 27, 2007 12:05 PM To: Sudhir Damle Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] check_mem plugin for solaris 9 check_solaris I believe it's part of the standard nagios-plugins distribution. On Tue, 2007-11-27 at 11:51 -0800, Sudhir Damle wrote: > Hi All, > > > > I am using Nagios to monitor many machines, some of them are Solaris > 9. There is a requirement for memory monitoring. > > > > Most of the plugins on NagiosExchange are perl scripts using 'meminfo' > or 'free' commands which are not available on Solaris box. > > > > Any idea how to accomplish this check? Any idea, comments, suggestions > appreciated. > > > > Thanks, > > > > Sudhir Damle > > Systems & Operations > > Stratogent > > sudhir at stratogent.com > > Tel: (650) 577-2332 > > www.stratogent.com > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Nov 28 00:25:51 2007 From: aaron.segura at cabelas.com (Aaron M. Segura) Date: Tue, 27 Nov 2007 16:25:51 -0700 Subject: check_mem plugin for solaris 9 In-Reply-To: <00fa01c8314b$a66f4f40$7c011cac@sdamle> References: <00b001c8312e$f3d3cda0$7c011cac@sdamle> <1196193914.14208.0.camel@sidhqmis4grdv91> <00fa01c8314b$a66f4f40$7c011cac@sdamle> Message-ID: <1196205951.14208.35.camel@sidhqmis4grdv91> After actually checking, you're right, it's not in the standard nagios-plugins distribution...I guess I was thrown off by the fact that the banner on the help output states that it's part of the nagios-plugins package: ---- check_solaris (nagios-plugins 1.4.9) 1.0 Copyright (c) 2003 Luc Suryo Check memory/swap space on local server. ---- I'm pretty sure Luc is a lurker on this list, so maybe he'll speak up and tell you where you can get it. On Tue, 2007-11-27 at 15:17 -0800, Sudhir Damle wrote: > Hi Aaron, > > Thanks for reply, but could not find check_solaris plugin anywhere. > > Any other ideas? > > Thanks, > > Sudhir Damle > -----Original Message----- > From: Aaron M. Segura [mailto:aaron.segura at cabelas.com] > Sent: Tuesday, November 27, 2007 12:05 PM > To: Sudhir Damle > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] check_mem plugin for solaris 9 > > check_solaris > > I believe it's part of the standard nagios-plugins distribution. > > On Tue, 2007-11-27 at 11:51 -0800, Sudhir Damle wrote: > > Hi All, > > > > > > > > I am using Nagios to monitor many machines, some of them are Solaris > > 9. There is a requirement for memory monitoring. > > > > > > > > Most of the plugins on NagiosExchange are perl scripts using 'meminfo' > > or 'free' commands which are not available on Solaris box. > > > > > > > > Any idea how to accomplish this check? Any idea, comments, suggestions > > appreciated. > > > > > > > > Thanks, > > > > > > > > Sudhir Damle > > > > Systems & Operations > > > > Stratogent > > > > sudhir at stratogent.com > > > > Tel: (650) 577-2332 > > > > www.stratogent.com > > > > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2005. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include > Nagios version, plugin version (-v) and OS when reporting any issue. ::: > Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Nov 28 10:08:53 2007 From: ae at op5.se (Andreas Ericsson) Date: Wed, 28 Nov 2007 10:08:53 +0100 Subject: Nagios alerts when nagios server reboots In-Reply-To: <50CEF36ACC0B0C4197EBCD31C18341483DE3BB@blaster.Platinum.root.rpfl.com> References: <50CEF36ACC0B0C4197EBCD31C18341483DE3BB@blaster.Platinum.root.rpfl.com> Message-ID: <474D3025.4070103@op5.se> Monappallil, George wrote: > Hi all, > my nagios instance falsely reports host down alerts for all the servers > that it monitors (check_host_alive) when the server (that hosts nagios) > comes back up after the reboot. > The server in question is a vmware guest. Why does this happen ? > Possibly because the vmware networking stuff isn't set up properly on boot. I'd really recommend you not to run your monitoring server as a vmware guest. Besides the fact that system clocks usually gets a royal screwover by vmware, it's a tremenduously bad idea to have your monitoring system depend on something it's monitoring. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pescobar at cipf.es Wed Nov 28 12:47:46 2007 From: pescobar at cipf.es (Pablo Escobar) Date: Wed, 28 Nov 2007 12:47:46 +0100 Subject: notification by mail not working In-Reply-To: References: Message-ID: <200711281247.46423.pescobar@cipf.es> > Thanks for the config snippets. great that my configs are usefull to you :) > While you included host and service > templates, you didn't include any definitions that actually use those > templates. Make sure that those definitions don't overwrite any of the > template definitions related to notifications. Also note that your service > template only specifies notifications for CRITICAL status. > Do you have notifications enabled in nagios.cfg (enable_notifications=1)? > Do you see notification attempts in nagios.log and in your postfix logs? > When you tested your notification commands from the terminal as the nagios > user, did you test them exactly as nagios would call them, including > substituting appropriate values for the macros? > Finally I have found the problem wasn?t nagios config. Everything there was ok. On definitions I dont overwrite anything about notification and I know I am just notificating critical events, I want it in that way. Also I have notifications enabled on nagios.cfg The problem was that smtp server I am using for relay has a "special" config. I had to add a line in the file /etc/postfix/sendercanonical for the user nagios and everything is working fine now. many thanks for your help. -- Pablo Escobar Lopez Head of Infrastructure & IT Support Bioinformatics Department Centro de Investigaci?n Pr?ncipe Felipe (CIPF) Tfn: (34) 96 328 96 80 ext: 1004 http://bioinfo.cipf.es ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fagundes.pacheco at gmail.com Wed Nov 28 03:25:22 2007 From: fagundes.pacheco at gmail.com (Rodrigo Pacheco) Date: Wed, 28 Nov 2007 00:25:22 -0200 Subject: RES: check_mem plugin for solaris 9 In-Reply-To: <1196205951.14208.35.camel@sidhqmis4grdv91> References: <1196205951.14208.35.camel@sidhqmis4grdv91> Message-ID: <474cd197.19ac7e0a.2231.ffffe439@mx.google.com> How i can monitor the memory in aix box? -----Mensagem original----- De: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] Em nome de Aaron M. Segura Enviada em: ter?a-feira, 27 de novembro de 2007 21:26 Para: Sudhir Damle Cc: nagios-users at lists.sourceforge.net Assunto: Re: [Nagios-users] check_mem plugin for solaris 9 After actually checking, you're right, it's not in the standard nagios-plugins distribution...I guess I was thrown off by the fact that the banner on the help output states that it's part of the nagios-plugins package: ---- check_solaris (nagios-plugins 1.4.9) 1.0 Copyright (c) 2003 Luc Suryo Check memory/swap space on local server. ---- I'm pretty sure Luc is a lurker on this list, so maybe he'll speak up and tell you where you can get it. On Tue, 2007-11-27 at 15:17 -0800, Sudhir Damle wrote: > Hi Aaron, > > Thanks for reply, but could not find check_solaris plugin anywhere. > > Any other ideas? > > Thanks, > > Sudhir Damle > -----Original Message----- > From: Aaron M. Segura [mailto:aaron.segura at cabelas.com] > Sent: Tuesday, November 27, 2007 12:05 PM > To: Sudhir Damle > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] check_mem plugin for solaris 9 > > check_solaris > > I believe it's part of the standard nagios-plugins distribution. > > On Tue, 2007-11-27 at 11:51 -0800, Sudhir Damle wrote: > > Hi All, > > > > > > > > I am using Nagios to monitor many machines, some of them are Solaris > > 9. There is a requirement for memory monitoring. > > > > > > > > Most of the plugins on NagiosExchange are perl scripts using 'meminfo' > > or 'free' commands which are not available on Solaris box. > > > > > > > > Any idea how to accomplish this check? Any idea, comments, suggestions > > appreciated. > > > > > > > > Thanks, > > > > > > > > Sudhir Damle > > > > Systems & Operations > > > > Stratogent > > > > sudhir at stratogent.com > > > > Tel: (650) 577-2332 > > > > www.stratogent.com > > > > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2005. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include > Nagios version, plugin version (-v) and OS when reporting any issue. ::: > Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Wed Nov 28 08:08:00 2007 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Wed, 28 Nov 2007 08:08:00 +0100 Subject: Not getting alerts through email. In-Reply-To: <47f4f79c0711270304q26bfda20rea0d76b395a403f3@mail.gmail.com> References: <47f4f79c0711270229m33a41d34oa0d62439966fc7d2@mail.gmail.com> <9D30659ABCA7FB428CF91E386C3A5744A59E8B@hermes.sapphire-int.gi> <47f4f79c0711270304q26bfda20rea0d76b395a403f3@mail.gmail.com> Message-ID: <474D13D0.9020003@vanderkooij.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Biju Augustine wrote: > no i dont have please let me know what i need to change. Well. There is no substitute for reading the full manual. Read it from cover to cover at least once. Go: http://www.nagios.org/docs/ There is no point in asking questions untill you have read this. 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) iD8DBQFHTRPOBvzDRVjxmYERAoyRAJ4u1DhKTk4DM9S59z2jVbI8ckVPTgCbBuQG 4RT0VSScC4j3yuC57Qv8UnA= =IIpf -----END PGP SIGNATURE----- ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From thurgroup at gmail.com Wed Nov 28 08:43:12 2007 From: thurgroup at gmail.com (Roger Dierauer) Date: Wed, 28 Nov 2007 08:43:12 +0100 Subject: Not getting alerts through email. In-Reply-To: <474D13D0.9020003@vanderkooij.org> References: <47f4f79c0711270229m33a41d34oa0d62439966fc7d2@mail.gmail.com> <9D30659ABCA7FB428CF91E386C3A5744A59E8B@hermes.sapphire-int.gi> <47f4f79c0711270304q26bfda20rea0d76b395a403f3@mail.gmail.com> <474D13D0.9020003@vanderkooij.org> Message-ID: Hello List Users One Question the check_log script is als available for check in intervalls the ora{SID}.log have anybody some experience? kind regard Roger -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Wed Nov 28 14:13:42 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Wed, 28 Nov 2007 13:13:42 +0000 Subject: Centralizing NRPE Configuration In-Reply-To: <6F41C23E99FC594D90E848FA5642343131C1624670@TBEMAIL.corp.local> References: <6F41C23E99FC594D90E848FA5642343131C1624670@TBEMAIL.corp.local> Message-ID: <474D6986.6050406@googlemail.com> Cipriani, Robert C wrote: > Does anyone have any suggestions on a way to centralize NRPE configs? I suppose I can push (rsync, scp, whatever) my nrpe.cfg from the Nagios server if I need to add any commands. Is there a better way to manage this? I'd like the Nagios server to be a central point of configuration. I am using nrpe's --enable-command-args option and passing parameters via check_nrpe, so once the monitored host has the nrpe.cfg, there wouldn't be much to do there. > I use Svn + Bash to rsync/scp configs. This works swimmingly for me, but then I do love bash and I wrote quite a bit to install nrpe, configure the environment by checking /etc/services etc and push the config over. If you are a wizz in Bash then this is excellent. I can redeploy all configurations to all servers with just one command. There is also cfengine, but I didn't bother with this. Even if you're not a Bash wizz, then just a few lines to scp and possibly restart daemon (although I use xinetd to limit the source of the request to the nagios server for extra protection so I don't even have to do that). -h -- Hari Sekhon ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gcoochey at sapphire.gi Wed Nov 28 09:47:01 2007 From: gcoochey at sapphire.gi (Giles Coochey) Date: Wed, 28 Nov 2007 09:47:01 +0100 Subject: notification by mail not working In-Reply-To: <200711272012.20845.pescobar@cipf.es> References: <200711272012.20845.pescobar@cipf.es> Message-ID: <9D30659ABCA7FB428CF91E386C3A5744A59EF0@hermes.sapphire-int.gi> > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Pablo Escobar > Sent: 27 November 2007 20:12 > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] notification by mail not working > > hi all > > I?m really desesperate because I dont know which other config file I > should > look. > Logfile excerpts will help, though you can probably check yourself. Does the Nagios logfile say that a notification has been sent? Does your MTA logfile say that it has received the message? And what does it say that it has done with the message? What happens if you run the notification command that is actually defined for your notifications? For me this is in commands.cfg Thanks Giles ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Robert.Cipriani at mybrighthouse.com Wed Nov 28 14:43:04 2007 From: Robert.Cipriani at mybrighthouse.com (Cipriani, Robert C) Date: Wed, 28 Nov 2007 08:43:04 -0500 Subject: Centralizing NRPE Configuration In-Reply-To: <474D6986.6050406@googlemail.com> References: <6F41C23E99FC594D90E848FA5642343131C1624670@TBEMAIL.corp.local> <474D6986.6050406@googlemail.com> Message-ID: <6F41C23E99FC594D90E848FA5642343131C1624D3A@TBEMAIL.corp.local> I'll probably need something a bit more sophisticated than a bash script. I like the idea of being able to say "add line x to file y if line x doesn't yet exist". Robert C. Cipriani Senior Network Administrator Tampa Bay Division IT Bright House Networks W: (727) 329-2000 x74264 M: (727) 365-1231 -----Original Message----- From: Hari Sekhon [mailto:hpsekhon at googlemail.com] Sent: Wednesday, November 28, 2007 8:14 AM To: Cipriani, Robert C Cc: 'nagios-users at lists.sourceforge.net' Subject: Re: [Nagios-users] Centralizing NRPE Configuration Cipriani, Robert C wrote: > Does anyone have any suggestions on a way to centralize NRPE configs? I suppose I can push (rsync, scp, whatever) my nrpe.cfg from the Nagios server if I need to add any commands. Is there a better way to manage this? I'd like the Nagios server to be a central point of configuration. I am using nrpe's --enable-command-args option and passing parameters via check_nrpe, so once the monitored host has the nrpe.cfg, there wouldn't be much to do there. > I use Svn + Bash to rsync/scp configs. This works swimmingly for me, but then I do love bash and I wrote quite a bit to install nrpe, configure the environment by checking /etc/services etc and push the config over. If you are a wizz in Bash then this is excellent. I can redeploy all configurations to all servers with just one command. There is also cfengine, but I didn't bother with this. Even if you're not a Bash wizz, then just a few lines to scp and possibly restart daemon (although I use xinetd to limit the source of the request to the nagios server for extra protection so I don't even have to do that). -h -- Hari Sekhon CONFIDENTIALITY NOTICE: This e-mail may contain information that is privileged, confidential or otherwise protected from disclosure. If you are not the intended recipient of this e-mail, please notify the sender immediately by return e-mail, purge it and do not disseminate or copy it. ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Wed Nov 28 14:48:15 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Wed, 28 Nov 2007 13:48:15 +0000 Subject: Centralizing NRPE Configuration In-Reply-To: <6F41C23E99FC594D90E848FA5642343131C1624D3A@TBEMAIL.corp.local> References: <6F41C23E99FC594D90E848FA5642343131C1624670@TBEMAIL.corp.local> <474D6986.6050406@googlemail.com> <6F41C23E99FC594D90E848FA5642343131C1624D3A@TBEMAIL.corp.local> Message-ID: <474D719F.50407@googlemail.com> Cipriani, Robert C wrote: > I'll probably need something a bit more sophisticated than a bash script. I like the idea of being able to say "add line x to file y if line x doesn't yet exist". > You can do that in Bash, in fact I do it for deployment to make sure nrpe is in /etc/services. Why not just have one global nrpe config that you have on all hosts though? This is way easier to manage and maintain. You just make up different check command names for very specific things. This also simplifies things incredibly and means you could never lose your config, unless all your nrpe holding servers burned down along with your svn server and all your backups. -h -- Hari Sekhon ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From james.mohr at elaxy.com Wed Nov 28 14:52:13 2007 From: james.mohr at elaxy.com (Mohr James) Date: Wed, 28 Nov 2007 14:52:13 +0100 Subject: Monitoring Nagios Message-ID: Hi All! We had a problem the other day where the nagios process died and no one noticed it for over 30 minutes. Therefore, I was thinking about ways to monitor Nagios itself. One simply way would be a cronjob that checks if the nagios process is running and then uses yaps or something to send an SMS. But what about cases where the nagios process is running, but for whatever reason the messages are not being processed. I was thinking about setting up a service that is triggered by a cronjob and then sends a notification. This notification writes a flag file and every X minutes a cron job checks the age of the flag file. If the flag file is too old, it sends an SMS via yaps. Rather than re-invent the wheel, I was wondering if other people had already implemented something similar. Regards, Jim Mohr ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From donnell.lewis at icoretechnology.com Wed Nov 28 14:58:50 2007 From: donnell.lewis at icoretechnology.com (Donnell Lewis) Date: Wed, 28 Nov 2007 08:58:50 -0500 Subject: Monitoring Nagios In-Reply-To: References: Message-ID: <1196258331.2633.8.camel@localhost.localdomain> Hey Jim, I use Monit which will monitor services and makes sure they stay running, there are alot of options and I have it making sure ssh, nagios and HTTP are running on the nagios box. Monit runs via the inittab and if it dies for any reason gets respawned using init and it has notifications it can send out about specific things. You can have it notify just for about anything, maybe this will help you out. http://www.tildeslash.com/monit/ -Donnell Lewis On Wed, 2007-11-28 at 14:52 +0100, Mohr James wrote: > Hi All! > > We had a problem the other day where the nagios process died and no one > noticed it for over 30 minutes. Therefore, I was thinking about ways to > monitor Nagios itself. One simply way would be a cronjob that checks if > the nagios process is running and then uses yaps or something to send an > SMS. But what about cases where the nagios process is running, but for > whatever reason the messages are not being processed. > > I was thinking about setting up a service that is triggered by a cronjob > and then sends a notification. This notification writes a flag file and > every X minutes a cron job checks the age of the flag file. If the flag > file is too old, it sends an SMS via yaps. > > Rather than re-invent the wheel, I was wondering if other people had > already implemented something similar. > > Regards, > > Jim Mohr > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: The Future of Linux Business White Paper > from Novell. From the desktop to the data center, Linux is going > mainstream. Let it simplify your IT future. > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mwlucas at blackhelicopters.org Wed Nov 28 15:01:25 2007 From: mwlucas at blackhelicopters.org (Michael W. Lucas) Date: Wed, 28 Nov 2007 09:01:25 -0500 Subject: Monitoring Nagios In-Reply-To: References: Message-ID: <20071128140125.GA44015@bewilderbeast.blackhelicopters.org> On Wed, Nov 28, 2007 at 02:52:13PM +0100, Mohr James wrote: > Hi All! > > We had a problem the other day where the nagios process died and no one > noticed it for over 30 minutes. Therefore, I was thinking about ways to > monitor Nagios itself. One simply way would be a cronjob that checks if > the nagios process is running and then uses yaps or something to send an > SMS. But what about cases where the nagios process is running, but for > whatever reason the messages are not being processed. > > I was thinking about setting up a service that is triggered by a cronjob > and then sends a notification. This notification writes a flag file and > every X minutes a cron job checks the age of the flag file. If the flag > file is too old, it sends an SMS via yaps. > > Rather than re-invent the wheel, I was wondering if other people had > already implemented something similar. Daemontools' supervise program will restart nagios if it crashes. http://cr.yp.to/daemontools.html In the event that supervise cannot restart the program, you can have it send an email. ==ml -- Michael W. Lucas mwlucas at BlackHelicopters.org, mwlucas at FreeBSD.org http://www.BlackHelicopters.org/~mwlucas/ Now Shipping: "Absolute FreeBSD" -- http://www.AbsoluteFreeBSD.com On 5/4/2007, the TSA kept 3 pairs of my soiled undies "for security reasons." ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Robert.Cipriani at mybrighthouse.com Wed Nov 28 15:07:30 2007 From: Robert.Cipriani at mybrighthouse.com (Cipriani, Robert C) Date: Wed, 28 Nov 2007 09:07:30 -0500 Subject: Centralizing NRPE Configuration In-Reply-To: <474D719F.50407@googlemail.com> References: <6F41C23E99FC594D90E848FA5642343131C1624670@TBEMAIL.corp.local> <474D6986.6050406@googlemail.com> <6F41C23E99FC594D90E848FA5642343131C1624D3A@TBEMAIL.corp.local> <474D719F.50407@googlemail.com> Message-ID: <6F41C23E99FC594D90E848FA5642343131C1624D8A@TBEMAIL.corp.local> True, the nrpe config will be generic, and will only have to push nrpe.cfg when I add new commands. I just wanted to know what tools were out there, in case things get more complicated in the future. I have a monitored box configured the way I want it, I will probably just tar /usr/local/nagios, /usr/lib/nrpe, etc. and make a package to install on other servers that appends a line to /etc/services and copies the nrpe file into /etc/xinetd.d. Robert C. Cipriani Senior Network Administrator Tampa Bay Division IT Bright House Networks W: (727) 329-2000 x74264 M: (727) 365-1231 -----Original Message----- From: Hari Sekhon [mailto:hpsekhon at googlemail.com] Sent: Wednesday, November 28, 2007 8:48 AM To: Cipriani, Robert C Cc: 'nagios-users at lists.sourceforge.net' Subject: Re: [Nagios-users] Centralizing NRPE Configuration Cipriani, Robert C wrote: > I'll probably need something a bit more sophisticated than a bash script. I like the idea of being able to say "add line x to file y if line x doesn't yet exist". > You can do that in Bash, in fact I do it for deployment to make sure nrpe is in /etc/services. Why not just have one global nrpe config that you have on all hosts though? This is way easier to manage and maintain. You just make up different check command names for very specific things. This also simplifies things incredibly and means you could never lose your config, unless all your nrpe holding servers burned down along with your svn server and all your backups. -h -- Hari Sekhon CONFIDENTIALITY NOTICE: This e-mail may contain information that is privileged, confidential or otherwise protected from disclosure. If you are not the intended recipient of this e-mail, please notify the sender immediately by return e-mail, purge it and do not disseminate or copy it. ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From donnell.lewis at icoretechnology.com Wed Nov 28 15:17:19 2007 From: donnell.lewis at icoretechnology.com (Donnell Lewis) Date: Wed, 28 Nov 2007 09:17:19 -0500 Subject: Centralizing NRPE Configuration In-Reply-To: <6F41C23E99FC594D90E848FA5642343131C1624D8A@TBEMAIL.corp.local> References: <6F41C23E99FC594D90E848FA5642343131C1624670@TBEMAIL.corp.local> <474D6986.6050406@googlemail.com> <6F41C23E99FC594D90E848FA5642343131C1624D3A@TBEMAIL.corp.local> <474D719F.50407@googlemail.com> <6F41C23E99FC594D90E848FA5642343131C1624D8A@TBEMAIL.corp.local> Message-ID: <1196259439.2633.12.camel@localhost.localdomain> This was a learning curve for me but once I got it up and going using Puppet to manage configs enterprise-wide is making things easier: http://reductivelabs.com/trac/puppet Not that this will be what you are looking for, but it will manage configs globally and with invidual nodes defined. It uses cfengine as it's backend. Good stuff, but is a bit of learning curve. -Donnell Lewis On Wed, 2007-11-28 at 09:07 -0500, Cipriani, Robert C wrote: > True, the nrpe config will be generic, and will only have to push nrpe.cfg when I add new commands. I just wanted to know what tools were out there, in case things get more complicated in the future. I have a monitored box configured the way I want it, I will probably just tar /usr/local/nagios, /usr/lib/nrpe, etc. and make a package to install on other servers that appends a line to /etc/services and copies the nrpe file into /etc/xinetd.d. > > > > Robert C. Cipriani > Senior Network Administrator > Tampa Bay Division IT > Bright House Networks > W: (727) 329-2000 x74264 > M: (727) 365-1231 > > > > > > -----Original Message----- > From: Hari Sekhon [mailto:hpsekhon at googlemail.com] > Sent: Wednesday, November 28, 2007 8:48 AM > To: Cipriani, Robert C > Cc: 'nagios-users at lists.sourceforge.net' > Subject: Re: [Nagios-users] Centralizing NRPE Configuration > > Cipriani, Robert C wrote: > > I'll probably need something a bit more sophisticated than a bash script. I like the idea of being able to say "add line x to file y if line x doesn't yet exist". > > > You can do that in Bash, in fact I do it for deployment to make sure > nrpe is in /etc/services. > > Why not just have one global nrpe config that you have on all hosts though? > > This is way easier to manage and maintain. You just make up different > check command names for very specific things. > This also simplifies things incredibly and means you could never lose > your config, unless all your nrpe holding servers burned down along with > your svn server and all your backups. > > > -h > > -- > Hari Sekhon > > CONFIDENTIALITY NOTICE: This e-mail may contain information that is privileged, confidential or otherwise protected from disclosure. If you are not the intended recipient of this e-mail, please notify the sender immediately by return e-mail, purge it and do not disseminate or copy it. > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: The Future of Linux Business White Paper > from Novell. From the desktop to the data center, Linux is going > mainstream. Let it simplify your IT future. > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From andrea.gabellini at telecomitalia.sm Wed Nov 28 15:29:03 2007 From: andrea.gabellini at telecomitalia.sm (Andrea Gabellini) Date: Wed, 28 Nov 2007 15:29:03 +0100 Subject: check_mem plugin for solaris 9 In-Reply-To: <00b001c8312e$f3d3cda0$7c011cac@sdamle> References: <00b001c8312e$f3d3cda0$7c011cac@sdamle> Message-ID: <474D7B2F.8060907@telecomitalia.sm> Hi, I wrote a little perl script. Do you want to try it? Andrea Sudhir Damle wrote: > Hi All, > > > > I am using Nagios to monitor many machines, some of them are Solaris 9. > There is a requirement for memory monitoring. > > > > Most of the plugins on NagiosExchange are perl scripts using ?meminfo? > or ?free? commands which are not available on Solaris box. > > > > Any idea how to accomplish this check? Any idea, comments, suggestions > appreciated. > > > > Thanks, > > > > **Sudhir Damle** > > Systems & Operations > > Stratogent > > sudhir at stratogent.com > > Tel: (650) 577-2332 > > www.stratogent.com > > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- --------------------------------------- Politicians are people, who when they see the light at the end of the tunnel, go out and buy more tunnel. --------------------------------------- Ing. Andrea Gabellini Email: andrea.gabellini at telecomitalia.sm Skype: andreagabellini Tel: (+378) 0549 886111 Fax: (+378) 0549 886188 Telecom Italia San Marino S.p.A. Strada degli Angariari, 3 47891 Rovereta Republic of San Marino http://www.telecomitalia.sm ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ksumner at physics.unc.edu Wed Nov 28 15:28:32 2007 From: ksumner at physics.unc.edu (Kevin Scott Sumner) Date: Wed, 28 Nov 2007 09:28:32 -0500 (EST) Subject: Centralizing NRPE Configuration In-Reply-To: <6F41C23E99FC594D90E848FA5642343131C1624D8A@TBEMAIL.corp.local> References: <6F41C23E99FC594D90E848FA5642343131C1624670@TBEMAIL.corp.local> <474D6986.6050406@googlemail.com> <6F41C23E99FC594D90E848FA5642343131C1624D3A@TBEMAIL.corp.local> <474D719F.50407@googlemail.com> <6F41C23E99FC594D90E848FA5642343131C1624D8A@TBEMAIL.corp.local> Message-ID: I'd like to emphasize that if you're going to have multiple things to manage (even later on), bash/perl/etc scripts are inefficent. You'll spend more time coding in the long run. Don't get me wrong, the learning curve for a configuration engine (CFengine, puppet, et al) is moderately steep, but once done, it's very satisfying. And it makes adding more things to do quite simple. You could use a script for this, certainly, but you'll be writing functions that are just a reinvention of the CFengine/puppet wheel. This is the exact reason CFengine was written -- to replace complex/monolithic scripts. Cheers, Kevin ----- Kevin Sumner ksumner at physics.unc.edu (919) 962-6494 Assistant Systems Administrator Physics and Astronomy Networking Infrastructure and Computing University of North Carolina at Chapel Hill On Wed, 28 Nov 2007, Cipriani, Robert C wrote: > True, the nrpe config will be generic, and will only have to push nrpe.cfg when I add new commands. I just wanted to know what tools were out there, in case things get more complicated in the future. I have a monitored box configured the way I want it, I will probably just tar /usr/local/nagios, /usr/lib/nrpe, etc. and make a package to install on other servers that appends a line to /etc/services and copies the nrpe file into /etc/xinetd.d. > > > > Robert C. Cipriani > Senior Network Administrator > Tampa Bay Division IT > Bright House Networks > W: (727) 329-2000 x74264 > M: (727) 365-1231 > > > > > > -----Original Message----- > From: Hari Sekhon [mailto:hpsekhon at googlemail.com] > Sent: Wednesday, November 28, 2007 8:48 AM > To: Cipriani, Robert C > Cc: 'nagios-users at lists.sourceforge.net' > Subject: Re: [Nagios-users] Centralizing NRPE Configuration > > Cipriani, Robert C wrote: >> I'll probably need something a bit more sophisticated than a bash script. I like the idea of being able to say "add line x to file y if line x doesn't yet exist". >> > You can do that in Bash, in fact I do it for deployment to make sure > nrpe is in /etc/services. > > Why not just have one global nrpe config that you have on all hosts though? > > This is way easier to manage and maintain. You just make up different > check command names for very specific things. > This also simplifies things incredibly and means you could never lose > your config, unless all your nrpe holding servers burned down along with > your svn server and all your backups. > > > -h > > -- > Hari Sekhon > > CONFIDENTIALITY NOTICE: This e-mail may contain information that is privileged, confidential or otherwise protected from disclosure. If you are not the intended recipient of this e-mail, please notify the sender immediately by return e-mail, purge it and do not disseminate or copy it. > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: The Future of Linux Business White Paper > from Novell. From the desktop to the data center, Linux is going > mainstream. Let it simplify your IT future. > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > -- > > ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ksumner at physics.unc.edu Wed Nov 28 15:38:48 2007 From: ksumner at physics.unc.edu (Kevin Scott Sumner) Date: Wed, 28 Nov 2007 09:38:48 -0500 (EST) Subject: Bad group on cmd pipe after restart. In-Reply-To: <6F41C23E99FC594D90E848FA5642343131C1624754@TBEMAIL.corp.local> References: <6F41C23E99FC594D90E848FA5642343131C1624668@TBEMAIL.corp.local> <6F41C23E99FC594D90E848FA5642343131C1624754@TBEMAIL.corp.local> Message-ID: I would expect that if I say that Nagios' user is nagios and its group is www-data, it would use nagios as it's user and www-data as it's group for all it's operations, including fixing up files when it starts. I'm using 3.0b6, currently. Cheers, Kevin ----- Kevin Sumner ksumner at physics.unc.edu (919) 962-6494 Assistant Systems Administrator Physics and Astronomy Networking Infrastructure and Computing University of North Carolina at Chapel Hill On Tue, 27 Nov 2007, Cipriani, Robert C wrote: > I see what you mean...why doesn't it work as expected? Did you say which version you are using? 3.x? > > I have the luxury of running apache/Nagios on a dedicated virtual machine. > > > Robert C. Cipriani > Senior Network Administrator > Tampa Bay Division IT > Bright House Networks > W: (727) 329-2000 x74264 > M: (727) 365-1231 > > > > > > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Kevin Scott Sumner > Sent: Monday, November 26, 2007 6:15 PM > To: Cipriani, Robert C > Cc: 'nagios-users at lists.sourceforge.net' > Subject: Re: [Nagios-users] Bad group on cmd pipe after restart. > > Robert, > > Affecting the apache user will affect *all* instances of apache in our > infrastructure (regular website, as well as BackupPC's apache, etc). I > know this seems like a broken setup -- it is. :) We're in planning > phases for better machine user/group management, but creating a one-off > machine in terms of users/groups is difficult at the moment because the flat files > are automatically spawned by some, err... "feature challenged" > scripts. I'm pushing hard to get this changed, but for now, I can't change > change a user's group membership without it affecting that on every > machine. > > I realize I could remedy this situation by running apache as > www-data:nagios on our nagios server, but my question isn't so much about > making it work -- it's about whether nagios is broken in the way that it > deals with creating its command pipe or whether I've over looked something > (a bug vs. my poor brain, if you will). > > Cheers, > Kevin > ----- > Kevin Sumner > ksumner at physics.unc.edu > (919) 962-6494 > Assistant Systems Administrator > Physics and Astronomy Networking Infrastructure and Computing > University of North Carolina at Chapel Hill > > > > >> >> Kevin, >> >> Just out of curiosity, why not run Nagios as nagios:nagios? On my setup, the apache user is a member of the nagios group. Maybe yours is using the nagios user's default group? >> >> >> >> Robert C. Cipriani >> Senior Network Administrator >> Tampa Bay Division IT >> Bright House Networks >> W: (727) 329-2000 x74264 >> M: (727) 365-1231 >> >> >> >> >> CONFIDENTIALITY NOTICE: This e-mail may contain information that is privileged, confidential or otherwise protected from disclosure. If you are not the intended recipient of this e-mail, please notify the sender immediately by return e-mail, purge it and do not disseminate or copy it. >> >> ------------------------------------------------------------------------- > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > CONFIDENTIALITY NOTICE: This e-mail may contain information that is privileged, confidential or otherwise protected from disclosure. If you are not the intended recipient of this e-mail, please notify the sender immediately by return e-mail, purge it and do not disseminate or copy it. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > -- > > ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ksumner at physics.unc.edu Wed Nov 28 15:48:51 2007 From: ksumner at physics.unc.edu (Kevin Scott Sumner) Date: Wed, 28 Nov 2007 09:48:51 -0500 (EST) Subject: Environmental monitoring Message-ID: This is somewhat off-topic, but can anyone recommend a vendor for environmental? I would like to monitor the temp. and humidity of our two server rooms. Integration with Nagios is a huge plus. Cheers, Kevin ----- Kevin Sumner ksumner at physics.unc.edu (919) 962-6494 Assistant Systems Administrator Physics and Astronomy Networking Infrastructure and Computing University of North Carolina at Chapel Hill ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Robert.Cipriani at mybrighthouse.com Wed Nov 28 15:49:50 2007 From: Robert.Cipriani at mybrighthouse.com (Cipriani, Robert C) Date: Wed, 28 Nov 2007 09:49:50 -0500 Subject: Environmental monitoring In-Reply-To: References: Message-ID: <6F41C23E99FC594D90E848FA5642343131C1624DF5@TBEMAIL.corp.local> Using APC. Has SNMP. Robert C. Cipriani Senior Network Administrator Tampa Bay Division IT Bright House Networks W: (727) 329-2000 x74264 M: (727) 365-1231 -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Kevin Scott Sumner Sent: Wednesday, November 28, 2007 9:49 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Environmental monitoring This is somewhat off-topic, but can anyone recommend a vendor for environmental? I would like to monitor the temp. and humidity of our two server rooms. Integration with Nagios is a huge plus. Cheers, Kevin ----- Kevin Sumner ksumner at physics.unc.edu (919) 962-6494 Assistant Systems Administrator Physics and Astronomy Networking Infrastructure and Computing University of North Carolina at Chapel Hill ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 may contain information that is privileged, confidential or otherwise protected from disclosure. If you are not the intended recipient of this e-mail, please notify the sender immediately by return e-mail, purge it and do not disseminate or copy it. ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dennis at huenseler.net Wed Nov 28 15:54:51 2007 From: dennis at huenseler.net (=?UTF-8?Q?Dennis_H=C3=BCnseler?=) Date: Wed, 28 Nov 2007 15:54:51 +0100 Subject: Environmental monitoring In-Reply-To: References: Message-ID: Hi Kevin, what about self made humidity and temperature sensors on serial line? I remember several how to's online... If this could be one option for you ask google how to :-) kind regards, Dennis On Wed, 28 Nov 2007 09:48:51 -0500 (EST), Kevin Scott Sumner wrote: > This is somewhat off-topic, but can anyone recommend a vendor for > environmental? I would like to monitor the temp. and humidity of our two > server rooms. Integration with Nagios is a huge plus. > > Cheers, > Kevin > ----- > Kevin Sumner > ksumner at physics.unc.edu > (919) 962-6494 > Assistant Systems Administrator > Physics and Astronomy Networking Infrastructure and Computing > University of North Carolina at Chapel Hill > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: The Future of Linux Business White Paper > from Novell. From the desktop to the data center, Linux is going > mainstream. Let it simplify your IT future. > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gcoochey at sapphire.gi Wed Nov 28 15:59:52 2007 From: gcoochey at sapphire.gi (Giles Coochey) Date: Wed, 28 Nov 2007 15:59:52 +0100 Subject: Environmental monitoring In-Reply-To: References: Message-ID: <9D30659ABCA7FB428CF91E386C3A5744A59F65@hermes.sapphire-int.gi> > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Kevin Scott Sumner > Sent: 28 November 2007 15:49 > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Environmental monitoring > > This is somewhat off-topic, but can anyone recommend a vendor for > environmental? I would like to monitor the temp. and humidity of our two > server rooms. Integration with Nagios is a huge plus. > Have used the EM1 from Sensatronics before, works fine with Nagios. Netbotz (now APC) work great too. Both are SNMP enabled and have Nagios plugins for their monitoring (plus their own standalone alerting mechanisms). ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Nov 28 16:03:05 2007 From: ae at op5.se (Andreas Ericsson) Date: Wed, 28 Nov 2007 16:03:05 +0100 Subject: Centralizing NRPE Configuration In-Reply-To: <6F41C23E99FC594D90E848FA5642343131C1624D3A@TBEMAIL.corp.local> References: <6F41C23E99FC594D90E848FA5642343131C1624670@TBEMAIL.corp.local> <474D6986.6050406@googlemail.com> <6F41C23E99FC594D90E848FA5642343131C1624D3A@TBEMAIL.corp.local> Message-ID: <474D8329.5050506@op5.se> Cipriani, Robert C wrote: > I like the idea of being able to say "add line x to file y if > line x doesn't yet exist". > grep -q "^$line$" file || echo "$line" >> file oh gods, that was a tricky one! ;-) -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ksumner at physics.unc.edu Wed Nov 28 16:05:27 2007 From: ksumner at physics.unc.edu (Kevin Scott Sumner) Date: Wed, 28 Nov 2007 10:05:27 -0500 (EST) Subject: Environmental monitoring In-Reply-To: References: Message-ID: Serial is nearly right-out, since we use serial on our machines for console redirection. I can throw an add-in card into one of the larger machines, I suppose. Of course, I have seen howtos online to build USB sensors, too... Although none of us in the office are too handy with a soldering gun, I might be able to convince/coerce one of our Electronics faculty to build a few for us. :) I'm really looking for some inexpensive, preferably USB sensors to hang off a couple of machines. The $20 to $50 (USD) range is nice, but we could probably go up to $100 each. We don't really need a dedicated env monitoring device, like APC offers. Cheers, Kevin ----- Kevin Sumner ksumner at physics.unc.edu (919) 962-6494 Assistant Systems Administrator Physics and Astronomy Networking Infrastructure and Computing University of North Carolina at Chapel Hill On Wed, 28 Nov 2007, Dennis H?nseler wrote: > > > Hi Kevin, > > what about self made humidity and temperature sensors on serial line? I > remember several how to's online... > If this could be one option for you ask google how to :-) > > kind regards, Dennis > On Wed, 28 Nov 2007 09:48:51 -0500 (EST), Kevin Scott Sumner > wrote: >> This is somewhat off-topic, but can anyone recommend a vendor for >> environmental? I would like to monitor the temp. and humidity of our two >> server rooms. Integration with Nagios is a huge plus. >> >> Cheers, >> Kevin >> ----- >> Kevin Sumner >> ksumner at physics.unc.edu >> (919) 962-6494 >> Assistant Systems Administrator >> Physics and Astronomy Networking Infrastructure and Computing >> University of North Carolina at Chapel Hill >> >> ------------------------------------------------------------------------- >> SF.Net email is sponsored by: The Future of Linux Business White Paper >> from Novell. From the desktop to the data center, Linux is going >> mainstream. Let it simplify your IT future. >> http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null > > > > -- > > ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From james.mohr at elaxy.com Wed Nov 28 16:06:25 2007 From: james.mohr at elaxy.com (Mohr James) Date: Wed, 28 Nov 2007 16:06:25 +0100 Subject: Monitoring Nagios In-Reply-To: <20071128140125.GA44015@bewilderbeast.blackhelicopters.org> References: <20071128140125.GA44015@bewilderbeast.blackhelicopters.org> Message-ID: > -----Urspr?ngliche Nachricht----- > Von: Michael W. Lucas [mailto:mwlucas at blackhelicopters.org] > Gesendet: Mittwoch, 28. November 2007 15:01 > An: Mohr James > Cc: nagios-users at lists.sourceforge.net > Betreff: Re: [Nagios-users] Monitoring Nagios > > On Wed, Nov 28, 2007 at 02:52:13PM +0100, Mohr James wrote: > > Hi All! > > > > We had a problem the other day where the nagios process died and no > > one noticed it for over 30 minutes. Therefore, I was thinking about > > ways to monitor Nagios itself. One simply way would be a > cronjob that > > checks if the nagios process is running and then uses yaps or > > something to send an SMS. But what about cases where the nagios > > process is running, but for whatever reason the messages > are not being processed. > > > > I was thinking about setting up a service that is triggered by a > > cronjob and then sends a notification. This notification > writes a flag > > file and every X minutes a cron job checks the age of the > flag file. > > If the flag file is too old, it sends an SMS via yaps. > > > > Rather than re-invent the wheel, I was wondering if other > people had > > already implemented something similar. > > Daemontools' supervise program will restart nagios if it crashes. > > http://cr.yp.to/daemontools.html > > In the event that supervise cannot restart the program, you > can have it send an email. > > ==ml > > -- > Michael W. Lucas mwlucas at BlackHelicopters.org, > mwlucas at FreeBSD.org > http://www.BlackHelicopters.org/~mwlucas/ > Now Shipping: "Absolute FreeBSD" -- > http://www.AbsoluteFreeBSD.com On 5/4/2007, the TSA kept 3 > pairs of my soiled undies "for security reasons." Thanks Michael and Donnell! I will give Daemontools and Monit a look and see if that can solve my problems. Regards, Jim Mohr ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From amoore at dekalbmemorial.com Wed Nov 28 16:21:45 2007 From: amoore at dekalbmemorial.com (Aaron K. Moore) Date: Wed, 28 Nov 2007 10:21:45 -0500 Subject: Scheduled "maintenance" In-Reply-To: References: Message-ID: <60D398EB2DB948409CA1F50D8AF1225702ED1BCE@exch1.dekalbmemorial.local> I use the script at the following URL for a few of my windows servers. I use it to set downtime for some services before they are shutdown so we can run some backups. It works great when you don't know exactly when a process is going to start, but do know how long it will take once it starts. http://www.nagios-wiki.de/doku.php/nagios/howtos/shutdown_script_vbs -- Aaron Kent Moore Information Technology Services DeKalb Memorial Hospital, Inc. Auburn, Indiana Phone: 260.920.2808 E-Mail: amoore at dekalbmemorial.com > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf > Of Marc Powell > Sent: Tuesday, November 27, 2007 1:04 PM > To: nagios-users at lists.sourceforge.net > Cc: Jim.Melin at co.hennepin.mn.us > Subject: Re: [Nagios-users] Scheduled "maintenance" > > > > > -----Original Message----- > > From: Jim.Melin at co.hennepin.mn.us > [mailto:Jim.Melin at co.hennepin.mn.us] > > Sent: Tuesday, November 27, 2007 11:04 AM > > To: Marc Powell > > Subject: Re: [Nagios-users] Scheduled "maintenance" > > > > What happens when that time period is a moving target? > > Then you likely need something more sophisticated than a > timeperiod definition such as having that process kick off > the submission of an external command to nagios. You would > need to think about how nagios is supposed to know that the > problem service really isn't a problem and work from there. > > Fortunately, the OP indicated that it was a _scheduled_ > process so it appears hoop-jumping isn't necessary. > > -- > Marc > > -------------------------------------------------------------- > ----------- > This SF.net email is sponsored by: Microsoft Defy all > challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Robert.Cipriani at mybrighthouse.com Wed Nov 28 16:25:12 2007 From: Robert.Cipriani at mybrighthouse.com (Cipriani, Robert C) Date: Wed, 28 Nov 2007 10:25:12 -0500 Subject: Centralizing NRPE Configuration In-Reply-To: <474D8329.5050506@op5.se> References: <6F41C23E99FC594D90E848FA5642343131C1624670@TBEMAIL.corp.local> <474D6986.6050406@googlemail.com> <6F41C23E99FC594D90E848FA5642343131C1624D3A@TBEMAIL.corp.local> <474D8329.5050506@op5.se> Message-ID: <6F41C23E99FC594D90E848FA5642343131C1624E59@TBEMAIL.corp.local> ;) *hangs head in shame* Robert C. Cipriani Senior Network Administrator Tampa Bay Division IT Bright House Networks W: (727) 329-2000 x74264 M: (727) 365-1231 -----Original Message----- From: Andreas Ericsson [mailto:ae at op5.se] Sent: Wednesday, November 28, 2007 10:03 AM To: Cipriani, Robert C Cc: 'nagios-users at lists.sourceforge.net' Subject: Re: [Nagios-users] Centralizing NRPE Configuration Cipriani, Robert C wrote: > I like the idea of being able to say "add line x to file y if > line x doesn't yet exist". > grep -q "^$line$" file || echo "$line" >> file oh gods, that was a tricky one! ;-) -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 CONFIDENTIALITY NOTICE: This e-mail may contain information that is privileged, confidential or otherwise protected from disclosure. If you are not the intended recipient of this e-mail, please notify the sender immediately by return e-mail, purge it and do not disseminate or copy it. ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From benny at bennyvision.com Wed Nov 28 16:28:44 2007 From: benny at bennyvision.com (C. Bensend) Date: Wed, 28 Nov 2007 09:28:44 -0600 (CST) Subject: Environmental monitoring In-Reply-To: References: Message-ID: <4615.134.244.169.17.1196263724.squirrel@webmail.stinkweasel.net> > This is somewhat off-topic, but can anyone recommend a vendor for > environmental? I would like to monitor the temp. and humidity of our two > server rooms. Integration with Nagios is a huge plus. We use a number of TemPager 4E units: http://www.tempager.com/ Nagios queries them via SNMP. Benny -- "If it's true that our species is alone in the universe, then I'd have to say that the universe aimed rather low and settled for very little." -- George Carlin ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Wed Nov 28 16:55:57 2007 From: livio.zanol.puppim at gmail.com (Livio Zanol Puppim) Date: Wed, 28 Nov 2007 13:55:57 -0200 Subject: Disable Notifications for a certain amount of time Message-ID: Hi guys, Is it possible to disable the notifications for a specifc host during a pre-defined amount of time, and then, have nagios to atomatically turn notifications back on? Can I use the Schedule down time to have the same effect as this? Thx, L?vio Zanol Puppim -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sloane at ku.edu Wed Nov 28 17:13:18 2007 From: sloane at ku.edu (Sloane, Robert Raymond) Date: Wed, 28 Nov 2007 10:13:18 -0600 Subject: NSCA Confusing host check results as service checks In-Reply-To: <20071128105940.H88617@arbitor.digitalfreaks.org> References: <20071128105940.H88617@arbitor.digitalfreaks.org> Message-ID: <9632C3DAB675864EB0A9B7724D85DB7908EA127E@MAILBOXSEVEN.home.ku.edu> It looks like the problem is caused by using "," as the delimiter. There is a "," in the status string "PING OK..." which would provide NSCA with the fouth argument, and make it a service result rather than a host result. -- Bob Sloane, University of Kansas Computer Center, Lawrence, KS, 66045 Email:sloane at ku.edu http://www.ku.edu/home/sloane Phone:(785)864-0444 > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf > Of Brian A. Seklecki > Sent: Wednesday, November 28, 2007 10:07 AM > To: miskobs at yahoo.com; nagios-users at lists.sourceforge.net; > chris at sigd.net > Subject: [Nagios-users] NSCA Confusing host check results as > service checks > > > > Original msg: > > > Warning: Passive check result was received for service '0' on host > > 'server1', but the service could not be found! > > NSCA daemon makes the host/service check determination based > simply on the > number of arguments. > > If you take a remote nagios instance which is reporting passive > host/service checks, you can bump the debugging_level=384 and see > something like this: > > [1196258852.155446] [256.1] [pid=20619] Running command > '/usr/local/libexec/nagios/send_host_check fbsd05 0 'PING OK > - Packet loss > = 0%, RTA = 0.67 ms''... > > In this case, there are the proper number of arguments: 3 > > But NSCA recieving this msg is seeing 4 arguments. > > A closer look at /usr/local/libexec/nagios/send_host_check > reveals why: > > #!/bin/sh > > /bin/echo "$1","$2","$3" | /usr/local/sbin/send_nsca -H > master.tld \ -c > /usr/local/etc/nagios/send_nsca.cfg -d "," > > > This means that depending on how shit is escaped within: > - Nagios on remote node > - /bin/sh > - send_nsca binary > > Therefore, a $3 value of: 'PING OK - Packet loss = 0%, RTA = 0.67 ms' > > May or may not be truncated into three values. I'm going to > track it down > further. > > ~BAS > > ---------- Forwarded message ---------- > Date: Mon, 19 Nov 2007 13:52:21 -0500 (EST) > From: Brian A. Seklecki > To: miskobs at yahoo.com > Cc: nagios-users at lists.sourceforge.net, chris at sigd.net > Subject: RE: [Nagios-users] nsca PROCESS_HOST_CHECK_RESULT problem > > > Bratislav: > > Did you ever resolve these bizaare PROCESS_HOST_CHECK_RESULT / > PROCESS_SERVICE_CHECK_RESULT errors? > > I'm having trouble debugging them as well > > ~BAS > > > > If I simulate host down I got HOST_CHECK from nagios.log on remote > > host: > > > EXTERNAL COMMAND: PROCESS_HOST_CHECK_RESULT;server1;1;PING > CRITICAL - > > Packet > > loss = 100% > > > but regularly, it is triggered like it is service check, and > > PROCESS_HOST_CHECK_RESULT is not performed at all. > > > [1175605177] EXTERNAL COMMAND: > > PROCESS_SERVICE_CHECK_RESULT;server1;0;0; RTA = 0.18 ms [1175605177] > > Warning: Passive check result was received for service '0' on host > > 'server1', but the service could not be found! > > > 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 > > > -------------------------------------------------------------- > ----------- > SF.Net email is sponsored by: The Future of Linux Business White Paper > from Novell. From the desktop to the data center, Linux is going > mainstream. Let it simplify your IT future. > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lavalamp at spiritual-machines.org Wed Nov 28 17:06:46 2007 From: lavalamp at spiritual-machines.org (Brian A. Seklecki) Date: Wed, 28 Nov 2007 11:06:46 -0500 (EST) Subject: NSCA Confusing host check results as service checks Message-ID: <20071128105940.H88617@arbitor.digitalfreaks.org> Original msg: > Warning: Passive check result was received for service '0' on host > 'server1', but the service could not be found! NSCA daemon makes the host/service check determination based simply on the number of arguments. If you take a remote nagios instance which is reporting passive host/service checks, you can bump the debugging_level=384 and see something like this: [1196258852.155446] [256.1] [pid=20619] Running command '/usr/local/libexec/nagios/send_host_check fbsd05 0 'PING OK - Packet loss = 0%, RTA = 0.67 ms''... In this case, there are the proper number of arguments: 3 But NSCA recieving this msg is seeing 4 arguments. A closer look at /usr/local/libexec/nagios/send_host_check reveals why: #!/bin/sh /bin/echo "$1","$2","$3" | /usr/local/sbin/send_nsca -H master.tld \ -c /usr/local/etc/nagios/send_nsca.cfg -d "," This means that depending on how shit is escaped within: - Nagios on remote node - /bin/sh - send_nsca binary Therefore, a $3 value of: 'PING OK - Packet loss = 0%, RTA = 0.67 ms' May or may not be truncated into three values. I'm going to track it down further. ~BAS ---------- Forwarded message ---------- Date: Mon, 19 Nov 2007 13:52:21 -0500 (EST) From: Brian A. Seklecki To: miskobs at yahoo.com Cc: nagios-users at lists.sourceforge.net, chris at sigd.net Subject: RE: [Nagios-users] nsca PROCESS_HOST_CHECK_RESULT problem Bratislav: Did you ever resolve these bizaare PROCESS_HOST_CHECK_RESULT / PROCESS_SERVICE_CHECK_RESULT errors? I'm having trouble debugging them as well ~BAS > If I simulate host down I got HOST_CHECK from nagios.log on remote host: > EXTERNAL COMMAND: PROCESS_HOST_CHECK_RESULT;server1;1;PING CRITICAL - Packet > loss = 100% > but regularly, it is triggered like it is service check, and > PROCESS_HOST_CHECK_RESULT is not performed at all. > [1175605177] EXTERNAL COMMAND: > PROCESS_SERVICE_CHECK_RESULT;server1;0;0; RTA = 0.18 ms [1175605177] > Warning: Passive check result was received for service '0' on host > 'server1', but the service could not be found! 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 ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From RLAdams at AdamsInfoServ.Com Wed Nov 28 17:19:59 2007 From: RLAdams at AdamsInfoServ.Com (Russell Adams) Date: Wed, 28 Nov 2007 10:19:59 -0600 Subject: Environmental monitoring In-Reply-To: References: Message-ID: <20071128161959.GB23123@odin.demosthenes.org> I've had good results with AKCP devices for environmental monitoring. http://www.akcpinc.com/ The smallest sensorprobe with 2 sensor ports including a single temperature / humidity sensor is under $500. These run on Ethernet with an SNMP and Web interface, and integrate nicely with Nagios. Russell On Wed, Nov 28, 2007 at 09:48:51AM -0500, Kevin Scott Sumner wrote: > This is somewhat off-topic, but can anyone recommend a vendor for > environmental? I would like to monitor the temp. and humidity of our two > server rooms. Integration with Nagios is a huge plus. > > Cheers, > Kevin > ----- > Kevin Sumner > ksumner at physics.unc.edu > (919) 962-6494 > Assistant Systems Administrator > Physics and Astronomy Networking Infrastructure and Computing > University of North Carolina at Chapel Hill > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: The Future of Linux Business White Paper > from Novell. From the desktop to the data center, Linux is going > mainstream. Let it simplify your IT future. > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------ Russell Adams RLAdams at AdamsInfoServ.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3 ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lavalamp at spiritual-machines.org Wed Nov 28 17:25:40 2007 From: lavalamp at spiritual-machines.org (Brian A. Seklecki) Date: Wed, 28 Nov 2007 11:25:40 -0500 (EST) Subject: NSCA Confusing host check results as service checks In-Reply-To: <9632C3DAB675864EB0A9B7724D85DB7908EA127D@MAILBOXSEVEN.home.ku.edu> References: <9632C3DAB675864EB0A9B7724D85DB7908EA127D@MAILBOXSEVEN.home.ku.edu> Message-ID: <20071128111918.D88617@arbitor.digitalfreaks.org> On Wed, 28 Nov 2007, Sloane, Robert Raymond wrote: > It looks like the problem is caused by using "," as the delimiter. > There is a "," in the status string "PING OK..." which would provide Well, yea, but the question is how to address it. It really seems like /usr/local/libexec/nagios/send_{host,service}_check is superfluous. Its a lot of extra forking and pipeing on an already deadly inefficient system. Of course, one cheap hack deserves another and for the time being it seems that: /bin/echo "$1//$2//$3" | /usr/local/sbin/send_nsca -H master \ -c /usr/local/etc/nagios/send_nsca.cfg -d "//" Using "//" as a delimeter is not likely to show up in any macro of plugin output (Except for maybe Samba? fuck screw that) ~BAS ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Nov 28 17:38:45 2007 From: marc at ena.com (Marc Powell) Date: Wed, 28 Nov 2007 10:38:45 -0600 Subject: NSCA Confusing host check results as service checks In-Reply-To: <20071128111918.D88617@arbitor.digitalfreaks.org> References: <20071128111918.D88617@arbitor.digitalfreaks.org> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Brian A. Seklecki > Sent: Wednesday, November 28, 2007 10:26 AM > To: nagios-users at lists.sourceforge.net; Sloane, Robert Raymond > Subject: Re: [Nagios-users] NSCA Confusing host check results as service > checks > > On Wed, 28 Nov 2007, Sloane, Robert Raymond wrote: > > > It looks like the problem is caused by using "," as the delimiter. > > There is a "," in the status string "PING OK..." which would provide > > Well, yea, but the question is how to address it. Where did you get a send_nsca that expects comma-delimited input? The standard send_nsca expects tab-delimited input so this problem doesn't arise. -- Marc ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From emi_p_l at yahoo.com Wed Nov 28 17:41:22 2007 From: emi_p_l at yahoo.com (Emilio Perez) Date: Wed, 28 Nov 2007 08:41:22 -0800 (PST) Subject: Interval between check attempts Message-ID: <758644.64005.qm@web57705.mail.re3.yahoo.com> Hi Can I define the time in a service between the check_attempts? I would like when had a problem and begin to check the service the max_check_attempts, nagios wait a minut witch as attempt. thank you ____________________________________________________________________________________ Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how. http://overview.mail.yahoo.com/ ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From emi_p_l at yahoo.com Wed Nov 28 17:42:43 2007 From: emi_p_l at yahoo.com (Emilio Perez) Date: Wed, 28 Nov 2007 08:42:43 -0800 (PST) Subject: Interval between check attempts Message-ID: <994175.29649.qm@web57706.mail.re3.yahoo.com> Hi Can I define the time in a service between the check_attempts? I would like when had a problem and begin to check the service the max_check_attempts, nagios wait a minut witch as attempt. thank you ____________________________________________________________________________________ Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it now. http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sloane at ku.edu Wed Nov 28 17:47:32 2007 From: sloane at ku.edu (Sloane, Robert Raymond) Date: Wed, 28 Nov 2007 10:47:32 -0600 Subject: NSCA Confusing host check results as service checks In-Reply-To: <20071128111918.D88617@arbitor.digitalfreaks.org> References: <20071128111918.D88617@arbitor.digitalfreaks.org> Message-ID: <9632C3DAB675864EB0A9B7724D85DB7908EA1299@MAILBOXSEVEN.home.ku.edu> Hmm. A glance at the source indicates that (for version 2.7.2) the delimeter must be a single character. What do you have against TAB as the delimiter? /bin/echo -e "$1\t$2\t$3" | /usr/local/sbin/send_nsca -H master \ -c /usr/local/etc/nagios/send_nsca.cfg If you want to be even safer, run $3 through `tr "\t" " "` to eliminate any tabs. -- Bob Sloane, University of Kansas Computer Center, Lawrence, KS, 66045 Email:sloane at ku.edu http://www.ku.edu/home/sloane Phone:(785)864-0444 ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Jim.Melin at co.hennepin.mn.us Wed Nov 28 17:49:11 2007 From: Jim.Melin at co.hennepin.mn.us (Jim.Melin at co.hennepin.mn.us) Date: Wed, 28 Nov 2007 10:49:11 -0600 Subject: If anyone is interested... Message-ID: I just whipped up a check for CLAM AV to report on the freshness of the clam-AV signature file. Be happy to post the code for people to improve upon. ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Nov 28 17:50:39 2007 From: marc at ena.com (Marc Powell) Date: Wed, 28 Nov 2007 10:50:39 -0600 Subject: Interval between check attempts In-Reply-To: <758644.64005.qm@web57705.mail.re3.yahoo.com> References: <758644.64005.qm@web57705.mail.re3.yahoo.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Emilio Perez > Sent: Wednesday, November 28, 2007 10:41 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Interval between check attempts > > Hi > > Can I define the time in a service between the > check_attempts? > > I would like when had a problem and begin to check the > service the max_check_attempts, nagios wait a minut > witch as attempt. For nagios-2, service definitions you have normal_check_interval and retry_check_interval. For hosts there is no ability to change the interval. For nagios-3, hosts and services you have check_interval and retry_interval. -- Marc ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Nov 28 17:54:27 2007 From: aaron.segura at cabelas.com (Aaron M. Segura) Date: Wed, 28 Nov 2007 09:54:27 -0700 Subject: If anyone is interested... In-Reply-To: References: Message-ID: <1196268867.14208.106.camel@sidhqmis4grdv91> Post it on nagiosexchange. http://www.nagiosexchange.org/ On Wed, 2007-11-28 at 10:49 -0600, Jim.Melin at co.hennepin.mn.us wrote: > I just whipped up a check for CLAM AV to report on the freshness of the clam-AV signature file. > > Be happy to post the code for people to improve upon. > > > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: The Future of Linux Business White Paper > from Novell. From the desktop to the data center, Linux is going > mainstream. Let it simplify your IT future. > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From michaelkintzios at gmail.com Wed Nov 28 17:55:56 2007 From: michaelkintzios at gmail.com (Mick) Date: Wed, 28 Nov 2007 16:55:56 +0000 Subject: Cannot switch off Notifications! Message-ID: <200711281656.18972.michaelkintzios@gmail.com> Hi All, We have a hard fault with a device and Nagios keeps sending notifications despite disabling these both in the GUI and in the host file for the Service in question. What else can I try? -- Regards, Mick -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. URL: -------------- next part -------------- ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Nov 28 18:00:33 2007 From: marc at ena.com (Marc Powell) Date: Wed, 28 Nov 2007 11:00:33 -0600 Subject: Cannot switch off Notifications! In-Reply-To: <200711281656.18972.michaelkintzios@gmail.com> References: <200711281656.18972.michaelkintzios@gmail.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Mick > Sent: Wednesday, November 28, 2007 10:56 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Cannot switch off Notifications! > > Hi All, > > We have a hard fault with a device and Nagios keeps sending notifications > despite disabling these both in the GUI and in the host file for the > Service > in question. > > What else can I try? Make sure you don't have more then one nagios daemon running. Chances are that you do. -- Marc ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From michaelkintzios at gmail.com Wed Nov 28 18:04:37 2007 From: michaelkintzios at gmail.com (Mick) Date: Wed, 28 Nov 2007 17:04:37 +0000 Subject: Cannot switch off Notifications! In-Reply-To: References: Message-ID: <200711281707.56724.michaelkintzios@gmail.com> On Wednesday 28 November 2007, Marc Powell wrote: > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > > bounces at lists.sourceforge.net] On Behalf Of Mick > > Sent: Wednesday, November 28, 2007 10:56 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Cannot switch off Notifications! > > > > Hi All, > > > > We have a hard fault with a device and Nagios keeps sending > > notifications > > > despite disabling these both in the GUI and in the host file for the > > Service > > in question. > > > > What else can I try? > > Make sure you don't have more then one nagios daemon running. Chances > are that you do. Bloody thing! I should have checked that first . . . =============================================== $ sudo ps axf | grep nagios 19856 ttyp0 S+ 0:00 \_ grep nagios 6139 ? Ssl 0:07 /usr/local/nagios/bin/nagios -uxd /usr/local/nagios/etc/nagios.cfg 23999 ? Ssl 0:00 /usr/local/nagios/bin/nagios -uxd /usr/local/nagios/etc/nagios.cfg =============================================== Thank you very much! -- Regards, Mick -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. URL: -------------- next part -------------- ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ajcooper80 at googlemail.com Wed Nov 28 18:17:14 2007 From: ajcooper80 at googlemail.com (Alan Cooper) Date: Wed, 28 Nov 2007 17:17:14 +0000 Subject: If anyone is interested... In-Reply-To: References: Message-ID: <474DA29A.7000507@googlemail.com> Jim.Melin at co.hennepin.mn.us wrote: > I just whipped up a check for CLAM AV to report on the freshness of the clam-AV signature file. > > Be happy to post the code for people to improve upon. > Hi Jim, That would be fantastic as we are currently relying on people remembering to check Cron output - happy to see what improvements we could make. Kind Regards, Alan ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From michaelkintzios at gmail.com Wed Nov 28 18:16:50 2007 From: michaelkintzios at gmail.com (Mick) Date: Wed, 28 Nov 2007 17:16:50 +0000 Subject: Cannot switch off Notifications! In-Reply-To: <200711281707.56724.michaelkintzios@gmail.com> References: <200711281707.56724.michaelkintzios@gmail.com> Message-ID: <200711281716.53282.michaelkintzios@gmail.com> On Wednesday 28 November 2007, Mick wrote: > On Wednesday 28 November 2007, Marc Powell wrote: > > > -----Original Message----- > > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > > > bounces at lists.sourceforge.net] On Behalf Of Mick > > > Sent: Wednesday, November 28, 2007 10:56 AM > > > To: nagios-users at lists.sourceforge.net > > > Subject: [Nagios-users] Cannot switch off Notifications! > > > > > > Hi All, > > > > > > We have a hard fault with a device and Nagios keeps sending > > > > notifications > > > > > despite disabling these both in the GUI and in the host file for the > > > Service > > > in question. > > > > > > What else can I try? > > > > Make sure you don't have more then one nagios daemon running. Chances > > are that you do. > > Bloody thing! I should have checked that first . . . > =============================================== > $ sudo ps axf | grep nagios > 19856 ttyp0 S+ 0:00 \_ grep nagios > 6139 ? Ssl > 0:07 /usr/local/nagios/bin/nagios -uxd /usr/local/nagios/etc/nagios.cfg > 23999 ? Ssl > 0:00 /usr/local/nagios/bin/nagios -uxd /usr/local/nagios/etc/nagios.cfg > =============================================== > > Thank you very much! BTW, why/how did I end up with two processes? -- Regards, Mick -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. URL: -------------- next part -------------- ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Nov 28 18:35:26 2007 From: marc at ena.com (Marc Powell) Date: Wed, 28 Nov 2007 11:35:26 -0600 Subject: Cannot switch off Notifications! In-Reply-To: <200711281716.53282.michaelkintzios@gmail.com> References: <200711281716.53282.michaelkintzios@gmail.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Mick > Sent: Wednesday, November 28, 2007 11:17 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Cannot switch off Notifications! > > BTW, why/how did I end up with two processes? You started the daemon twice, the stop part of a restart failed or something like that. -- Marc ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Jim.Melin at co.hennepin.mn.us Wed Nov 28 18:39:20 2007 From: Jim.Melin at co.hennepin.mn.us (Jim.Melin at co.hennepin.mn.us) Date: Wed, 28 Nov 2007 11:39:20 -0600 Subject: Freshclam nagios check version 0.5 Message-ID: A few caveats - It doesn't take passed parameters. I didn't feel like it. So the freshness dates are hard coded. Everything is converted to seconds since the epoch, even the date stamp supplied on the end of the freshclam -V output. It made it easier for me to deal with. This code has been tested with a current sig file, and one on a dusty old z/VM guest that hadn't been fired up in almost 2 years. It detected that the signature file was 579 days old. Presumably, the 2 day old check works, but I've not got a machine with a sig file in that state. Cheers. -J ____________________________ begin code ___________________________ #!/bin/bash ################################################################################# #check_freshclam - written by James Melin of Hennepin County #Mainframe services department on 11/28/2007 # #Purpose - to check the freshness of the CLAM-AV signature file via freshclam -V #and report on whether or not the last update date (expressed in seconds since #the epoch) is more than 3 days older than the freshclam update stamp (expressed #in seconds since the epoch - 259200 seconds) and issue a warning. If the last #CLAM-AV Signature file is more than 5 days (432000 seconds) older than the #timestamp provided by freshclam -V then issue a critical. If the value is 0 #then issue unknown and message that the status of the virus signature cannot be #determined. ################################################################################# STATE_OK=0 STATE_WARNING=1 STATE_CRITICAL=2 STATE_UNKNOWN=3 filepath=$1 let freshclam=$(date -d "$(/usr/bin/freshclam -V | awk -F "/" '{ print $3 }')" +%s) let curr_date=$(date +%s) let days_ago_3=$(echo $curr_date - 259200 | bc) let days_ago_5=$(echo $curr_date - 432000 | bc) let not_scanned=0 let scan_interval=$(echo $curr_date - $freshclam | bc) if [ $freshclam -eq 0 ]; then echo "Last Virus Signature update UNKNOWN" exit $STATE_UNKNOWN elif [ $freshclam -lt $days_ago_5 ]; then echo "Virus Signature Update CRITICAL - not updated in $(echo $scan_interval / 86400 | bc) days" exit $STATE_CRITICAL elif [ $freshclam -lt $days_ago_3 ]; then echo "Virus Signature Update WARNING - not updated in $(echo $scan_interval / 86400 | bc) days" exit $STATE_WARNING else echo "Virus Signature Update OK - last updated $(date -d "$(/usr/bin/freshclam -V | awk -F "/" '{ print $3 }') ")" exit $STATE_OK fi ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fvanhee at gmail.com Wed Nov 28 19:56:44 2007 From: fvanhee at gmail.com (Vanhee Frederik) Date: Wed, 28 Nov 2007 19:56:44 +0100 Subject: Environmental monitoring In-Reply-To: <9D30659ABCA7FB428CF91E386C3A5744A59F65@hermes.sapphire-int.gi> References: <9D30659ABCA7FB428CF91E386C3A5744A59F65@hermes.sapphire-int.gi> Message-ID: <474DB9EC.9030000@gmail.com> Giles Coochey wrote: >> -----Original Message----- >> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- >> bounces at lists.sourceforge.net] On Behalf Of Kevin Scott Sumner >> Sent: 28 November 2007 15:49 >> To: nagios-users at lists.sourceforge.net >> Subject: [Nagios-users] Environmental monitoring >> >> This is somewhat off-topic, but can anyone recommend a vendor for >> environmental? I would like to monitor the temp. and humidity of our >> > two > >> server rooms. Integration with Nagios is a huge plus. >> >> > > Have used the EM1 from Sensatronics before, works fine with Nagios. > > Netbotz (now APC) work great too. > > Both are SNMP enabled and have Nagios plugins for their monitoring (plus > their own standalone alerting mechanisms). > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: The Future of Linux Business White Paper > from Novell. From the desktop to the data center, Linux is going > mainstream. Let it simplify your IT future. > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 definitely recommend www.pcmeasure.com They sell the ethernetbox, a little box which you can attach to the network and where you can connect temperature, humidity,smoke sensors, door contacts, switching 220V outlets..... Snmp is supported and nagios plugins are available. Frederik ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lavalamp at spiritual-machines.org Wed Nov 28 20:44:49 2007 From: lavalamp at spiritual-machines.org (Brian A. Seklecki) Date: Wed, 28 Nov 2007 14:44:49 -0500 Subject: NSCA Confusing host check results as service checks In-Reply-To: References: Message-ID: <1196279090.10583.12.camel@new-host> > Where did you get a send_nsca that expects comma-delimited input? The > standard send_nsca expects tab-delimited input so this problem doesn't > arise. > Chris Haulmark can provide the ISBN and revision of the book in which the example code was taken. Its his project -- I just get involved for the goofy stuff. ~BAS ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From reed at reedmedia.net Wed Nov 28 22:15:55 2007 From: reed at reedmedia.net (Jeremy C. Reed) Date: Wed, 28 Nov 2007 15:15:55 -0600 (CST) Subject: max_check_attempts not working for me Message-ID: I have templates that define max_check_attempts as 3 and others as 5 with retry_check_interval as 1 (my interval_length is 60). But I never see any indication that the failures are retried at all before I receive a notification. I get a service notification on the first CRITICAL failure which becomes immediately HARD. I set: log_service_retries=1 log_host_retries=1 But I don't get any logging about any retries. How can I troubleshoot why my max_check_attempts doesn't work? I want it to not do any notification on first failure. I want it to retry the failed service in approximately one minute. And only then notify if it fails again. This is on Nagios 2.8. Here is the template I am using: define service{ name service-template ; The 'name' of this service template, referenced in other service definitions active_checks_enabled 1 ; Active service checks are enabled passive_checks_enabled 1 ; Passive service checks are enabled/accepted parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major performance problems) obsess_over_service 1 ; We should obsess over this service (if necessary) check_freshness 0 ; Default is to NOT check service 'freshness' notifications_enabled 1 ; Service notifications are enabled event_handler_enabled 1 ; Service event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups noc-admins notification_interval 0 ; disable recurring notifications notification_period 24x7 notification_options w,u,c,r register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! } ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chris at sigd.net Wed Nov 28 22:41:43 2007 From: chris at sigd.net (Chris Haulmark) Date: Wed, 28 Nov 2007 16:41:43 -0500 Subject: NSCA Confusing host check results asservice checks In-Reply-To: <1196279090.10583.12.camel@new-host> References: <1196279090.10583.12.camel@new-host> Message-ID: <6FC9F9894A9F8C49A722CF9F2132FC220F7C787F@ms05.mailstreet2003.net> > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Brian A. Seklecki > Sent: Wednesday, November 28, 2007 1:45 PM > To: Marc Powell > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] NSCA Confusing host check results asservice > checks > > > Where did you get a send_nsca that expects comma-delimited input? The > > standard send_nsca expects tab-delimited input so this problem > doesn't > > arise. > > > > Chris Haulmark can provide the ISBN and revision of the book in which > the example code was taken. It is Pro Nagios 2.0 written by James Turnbull. ISBN-13 978-1-59059-609-8 ISBN-10 1-59059-609-9 Page 277 at the bottom shows that if you leave out -d for the send_nsca program, it would use tab by default. The script examples show that it is using -d "," and two examples are shown on page 278. Chris > > Its his project -- I just get involved for the goofy stuff. > > ~BAS > > > ----------------------------------------------------------------------- > -- > SF.Net email is sponsored by: The Future of Linux Business White Paper > from Novell. From the desktop to the data center, Linux is going > mainstream. Let it simplify your IT future. > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From maco at maco.sk Wed Nov 28 22:40:06 2007 From: maco at maco.sk (Marcel Hecko) Date: Wed, 28 Nov 2007 22:40:06 +0100 (CET) Subject: SMS gateway Message-ID: Hi, does anybody know of any HARDWARE solution into which I would just stick GSM SIM card and send SMS messages from Nagios? Something with ethernet interface - like - I would just call HTTP URI and the device will send the SMS text to the number encoded in the HTTP request (both - the text and phone number). Basically - very basic SMS gateway. With pre-paid sim card that would be just magic! Does something like that exist? Possibly with two-way communitaction? What price should I be looking at? Cheers! Marcel ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From efrazier at ic-agency.com Wed Nov 28 23:15:35 2007 From: efrazier at ic-agency.com (Eric Frazier) Date: Wed, 28 Nov 2007 18:15:35 -0400 Subject: SMS gateway In-Reply-To: References: Message-ID: <000001c8320c$3500f270$6389b3cf@eric> Hi, This looks like a winner. Since it is a command line tool it should be easy to get working with Nagios. http://www.gnokii.org/ Others? -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Marcel Hecko Sent: Wednesday, November 28, 2007 5:40 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] SMS gateway Hi, does anybody know of any HARDWARE solution into which I would just stick GSM SIM card and send SMS messages from Nagios? Something with ethernet interface - like - I would just call HTTP URI and the device will send the SMS text to the number encoded in the HTTP request (both - the text and phone number). Basically - very basic SMS gateway. With pre-paid sim card that would be just magic! Does something like that exist? Possibly with two-way communitaction? What price should I be looking at? Cheers! Marcel ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Nov 28 23:54:49 2007 From: marc at ena.com (Marc Powell) Date: Wed, 28 Nov 2007 16:54:49 -0600 Subject: max_check_attempts not working for me In-Reply-To: References: Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Jeremy C. Reed > Sent: Wednesday, November 28, 2007 3:16 PM > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] max_check_attempts not working for me > > I have templates that define max_check_attempts as 3 and others as 5 with > retry_check_interval as 1 (my interval_length is 60). > > But I never see any indication that the failures are retried at all before > I receive a notification. > > I get a service notification on the first CRITICAL failure which > becomes immediately HARD. > Here is the template I am using: > > define service{ > name service-template ; The 'name' of this > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 1 Assuming this is the template that you have applied to the service in question and you don't override any of the relevant values in your service definition, this should do nearly what you want (it'd be about 3 minutes before notification actually). This is a common configuration and I'm not aware of any bugs related to it ever appearing. Are you sure nagios was restarted after applying this configuration? That you only have one daemon process running? Are you sure that nagios is reading this file? Are you sure that this template is applied to your services in question? Are you sure that it's a service notification that you're receiving and not a host notification? -- Marc ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Nov 28 23:57:56 2007 From: marc at ena.com (Marc Powell) Date: Wed, 28 Nov 2007 16:57:56 -0600 Subject: NSCA Confusing host check resultsasservice checks In-Reply-To: <6FC9F9894A9F8C49A722CF9F2132FC220F7C787F@ms05.mailstreet2003.net> References: <6FC9F9894A9F8C49A722CF9F2132FC220F7C787F@ms05.mailstreet2003.net> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Chris Haulmark > Sent: Wednesday, November 28, 2007 3:42 PM > To: Brian A. Seklecki; Marc Powell > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] NSCA Confusing host check resultsasservice > checks > It is Pro Nagios 2.0 written by James Turnbull. > ISBN-13 978-1-59059-609-8 > ISBN-10 1-59059-609-9 > > Page 277 at the bottom shows that if you leave out -d for the send_nsca > program, it would use tab by default. The script examples show that it > is > using -d "," and two examples are shown on page 278. Seems like an unusual example to choose considering it's a pretty clear conflict with the most common plugin test around (check_ping, check_icmp). In any event, tabs are the way to go IMHO. -- Marc ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From reed at reedmedia.net Thu Nov 29 00:59:33 2007 From: reed at reedmedia.net (Jeremy C. Reed) Date: Wed, 28 Nov 2007 17:59:33 -0600 (CST) Subject: max_check_attempts not working for me In-Reply-To: References: Message-ID: On Wed, 28 Nov 2007, Marc Powell wrote: > > Here is the template I am using: > > > > define service{ > > name service-template ; The > 'name' of this > > > > is_volatile 0 > > check_period 24x7 > > max_check_attempts 3 > > normal_check_interval 5 > > retry_check_interval 1 > > Assuming this is the template that you have applied to the service in > question and you don't override any of the relevant values in your > service definition, this should do nearly what you want (it'd be about 3 > minutes before notification actually). This is a common configuration > and I'm not aware of any bugs related to it ever appearing. Are you sure > nagios was restarted after applying this configuration? That you only > have one daemon process running? Are you sure that nagios is reading > this file? Are you sure that this template is applied to your services > in question? Are you sure that it's a service notification that you're > receiving and not a host notification? This is the template we have used for a long time (probably with those same settings and over a hundred nagios restarts). I also have similar for my host template (but it is "max_check_attempts 5"). You mention "3 minutes" above, but I don't see any indication that it is checked multiple times before the notification. What types of logs would I see if it checked but not notifying yet because still max_check_attempts-1 to do? When I watch my logs I only see one indication of the "SERVICE ALERT:...CRITICAL;HARD" and then immediately (same second) followed by the corresponding "SERVICE NOTIFICATION"s. \ Also when I previously setup debugging for nrpe, I didn't see them checked multiple times (every minute) on failures. But I may try that again. ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Nov 29 02:52:09 2007 From: marc at ena.com (Marc Powell) Date: Wed, 28 Nov 2007 19:52:09 -0600 Subject: max_check_attempts not working for me In-Reply-To: References: Message-ID: <69AC6F93-4D6C-4356-ACD4-D3E2F26101BA@ena.com> On Nov 28, 2007, at 5:59 PM, Jeremy C. Reed wrote: > On Wed, 28 Nov 2007, Marc Powell wrote: > >>> Here is the template I am using: >>> >>> define service{ >>> name service-template ; The >> 'name' of this >> >> >>> is_volatile 0 >>> check_period 24x7 >>> max_check_attempts 3 >>> normal_check_interval 5 >>> retry_check_interval 1 >> >> Assuming this is the template that you have applied to the service in >> question and you don't override any of the relevant values in your >> service definition, this should do nearly what you want (it'd be >> about 3 >> minutes before notification actually). This is a common configuration >> and I'm not aware of any bugs related to it ever appearing. Are you >> sure >> nagios was restarted after applying this configuration? That you only >> have one daemon process running? Are you sure that nagios is reading >> this file? Are you sure that this template is applied to your >> services >> in question? Are you sure that it's a service notification that >> you're >> receiving and not a host notification? > > This is the template we have used for a long time (probably with those > same settings and over a hundred nagios restarts). I also have > similar for > my host template (but it is "max_check_attempts 5"). Does that one work as expected or are they all 'broken'? If they're all broken then I'd hazard that something is still amiss with your configuration. > You mention "3 minutes" above, but I don't see any indication that > it is > checked multiple times before the notification. yup. 3 check attempts (max_check_attempts) at 1 minute retry interval. > What types of logs would I see if it checked but not notifying yet > because > still max_check_attempts-1 to do? It's displayed in the web interface in the 'Attempts' column or Current Attempt if you're looking at a specific service detail. It'll be 1/3, 2/3 or 3/3. If you see 1/1 then your template isn't being applied as you think it is. -- Marc ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From reed at reedmedia.net Thu Nov 29 06:20:19 2007 From: reed at reedmedia.net (Jeremy C. Reed) Date: Wed, 28 Nov 2007 23:20:19 -0600 (CST) Subject: what is log format? Message-ID: Where is the log format described? I found http://www.nagios.org/faqs/viewfaq.php?faq_id=66 but it is not same as my /var/log/nagios/nagios.log. For example, I don't see any retry number. Here are some examples from a Nagios 2.8 system: [1196236855] SERVICE ALERT: foo.example.com;foo.disk1;CRITICAL ;HARD;3;DISK CRITICAL [469380 kB (5%) free on /dev/sda2] [1196236855] SERVICE NOTIFICATION: jeremy;foo.example.com;foo.disk1;CRITICAL;notify-by-epager;DISK CRITICAL [469380 kB (5%) free on /dev/sda2] [1196312026] SERVICE ALERT: bar.example.org;bar.cpu;OK;SOFT;2;NOW: Mean:0.000000% Variance: 0.000000% CUMULATIVE: Mean:0.000000% Variance: 0.000000% ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From reed at reedmedia.net Thu Nov 29 07:35:47 2007 From: reed at reedmedia.net (Jeremy C. Reed) Date: Thu, 29 Nov 2007 00:35:47 -0600 (CST) Subject: max_check_attempts not working for me In-Reply-To: <69AC6F93-4D6C-4356-ACD4-D3E2F26101BA@ena.com> References: <69AC6F93-4D6C-4356-ACD4-D3E2F26101BA@ena.com> Message-ID: On Wed, 28 Nov 2007, Marc Powell wrote: > It's displayed in the web interface in the 'Attempts' column or > Current Attempt if you're looking at a specific service detail. It'll > be 1/3, 2/3 or 3/3. If you see 1/1 then your template isn't being > applied as you think it is. Thank you Marc for this and other information. I read the docs over and over again, but your explanations made it more clear for me. I see it was working and now that I knew what to look for even my old nagios logs showed it in action. For anyone reading the archive, here is an example once I added more logging with: log_service_retries=1 [1196288346] SERVICE ALERT: foo.example.com;mysql;CRITICAL;SOFT;1;CHECK_NRPE: Socket timeout after 20 seconds. [1196288406] SERVICE ALERT: foo.example.com;mysql;CRITICAL;SOFT;2;CHECK_NRPE: Socket timeout after 20 seconds. [1196288466] SERVICE ALERT: foo.example.com;mysql;CRITICAL;HARD;3;CHECK_NRPE: Socket timeout after 20 seconds. [1196288466] SERVICE NOTIFICATION: jeremy;foo.example.com;mysql;CRITICAL;notify-by-epager;CHECK_NRPE: Socket timeout after 20 seconds. It shows three attempts. ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From reed at reedmedia.net Thu Nov 29 07:38:09 2007 From: reed at reedmedia.net (Jeremy C. Reed) Date: Thu, 29 Nov 2007 00:38:09 -0600 (CST) Subject: what is log format? In-Reply-To: References: Message-ID: On Wed, 28 Nov 2007, Jeremy C. Reed wrote: > Where is the log format described? > > I found http://www.nagios.org/faqs/viewfaq.php?faq_id=66 but it is not > same as my /var/log/nagios/nagios.log. For example, I don't see any retry > number. I didn't see the retry number because it was in a different place than documented in above FAQ. But it is there. > Here are some examples from a Nagios 2.8 system: > > [1196236855] SERVICE ALERT: foo.example.com;foo.disk1;CRITICAL > ;HARD;3;DISK CRITICAL [469380 kB (5%) free on /dev/sda2] So above is 3 (see HARD;3). > [1196236855] SERVICE NOTIFICATION: > jeremy;foo.example.com;foo.disk1;CRITICAL;notify-by-epager;DISK CRITICAL > [469380 kB (5%) free on /dev/sda2] > > [1196312026] SERVICE ALERT: bar.example.org;bar.cpu;OK;SOFT;2;NOW: > Mean:0.000000% Variance: 0.000000% CUMULATIVE: Mean:0.000000% Variance: > 0.000000% And above is a second retry (see SOFT;2). ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Nov 29 07:40:14 2007 From: marc at ena.com (Marc Powell) Date: Thu, 29 Nov 2007 00:40:14 -0600 Subject: what is log format? In-Reply-To: References: Message-ID: On Nov 28, 2007, at 11:20 PM, Jeremy C. Reed wrote: > Where is the log format described? in base/logging.c or in a fairly recent post by me to this list (in the last couple of weeks). > I found http://www.nagios.org/faqs/viewfaq.php?faq_id=66 but it is not > same as my /var/log/nagios/nagios.log. For example, I don't see any > retry > number. That's for the status.dat file. As you've seen, it has a slightly different format. > Here are some examples from a Nagios 2.8 system: > > [1196236855] SERVICE ALERT: foo.example.com;foo.disk1;CRITICAL > ;HARD;3;DISK CRITICAL [469380 kB (5%) free on /dev/sda2] This service has reached a HARD state on the 3rd non-ok check attempt. > > [1196236855] SERVICE NOTIFICATION: > jeremy;foo.example.com;foo.disk1;CRITICAL;notify-by-epager;DISK > CRITICAL > [469380 kB (5%) free on /dev/sda2] A notification was sent out upon reaching a HARD state (max_check_attempts). > [1196312026] SERVICE ALERT: bar.example.org;bar.cpu;OK;SOFT;2;NOW: > Mean:0.000000% Variance: 0.000000% CUMULATIVE: Mean:0.000000% > Variance: > 0.000000% This service is in a SOFT state as it's only on retry 2 of some unknown number. (unknown because it's not recorded in the log file at this point). It appears this service may be bouncing between states? Based on these entries, nagios is not alerting on the first non-ok check result. -- Marc ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dennis at huenseler.net Thu Nov 29 08:58:18 2007 From: dennis at huenseler.net (=?UTF-8?Q?Dennis_H=C3=BCnseler?=) Date: Thu, 29 Nov 2007 08:58:18 +0100 Subject: SMS gateway In-Reply-To: References: Message-ID: <0bd3fc7d48f45593d85909eaf26fabf0@localhost> Hi everybody, the solution i prefer is using a gsm modem like Siemens TC35i and the smstools, which are available as Debian Package or as source for example. The modem gets connected via serial and is controlled by smstools. Just ask google for smstools and tc35i... Kind regards, Dennis On Wed, 28 Nov 2007 22:40:06 +0100 (CET), "Marcel Hecko" wrote: > > Hi, does anybody know of any HARDWARE solution into which I would just > stick GSM SIM card and send SMS messages from Nagios? > Something with ethernet interface - like - I would just call HTTP URI and > the device will send the SMS text to the number encoded in the HTTP > request (both - the text and phone number). > > Basically - very basic SMS gateway. With pre-paid sim card that would be > just magic! > > Does something like that exist? Possibly with two-way communitaction? > What price should I be looking at? > > Cheers! > Marcel > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: The Future of Linux Business White Paper > from Novell. From the desktop to the data center, Linux is going > mainstream. Let it simplify your IT future. > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 ggaweb.ch Thu Nov 29 09:28:55 2007 From: nagios at ggaweb.ch (nagios) Date: Thu, 29 Nov 2007 09:28:55 +0100 Subject: SMS gateway In-Reply-To: References: Message-ID: <474E7847.3080408@ggaweb.ch> Hi Marcel have a lock at http://www.kannel.org/ and http://www.kannel.org/download/1.4.1/userguide-1.4.1/userguide.html#AEN4201 Regards Florian Marcel Hecko schrieb: > Hi, does anybody know of any HARDWARE solution into which I would just > stick GSM SIM card and send SMS messages from Nagios? > Something with ethernet interface - like - I would just call HTTP URI and > the device will send the SMS text to the number encoded in the HTTP > request (both - the text and phone number). > > Basically - very basic SMS gateway. With pre-paid sim card that would be > just magic! > > Does something like that exist? Possibly with two-way communitaction? > What price should I be looking at? > > Cheers! > Marcel > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: The Future of Linux Business White Paper > from Novell. From the desktop to the data center, Linux is going > mainstream. Let it simplify your IT future. > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From J.Filon at office.caiw.nl Thu Nov 29 09:30:20 2007 From: J.Filon at office.caiw.nl (Jasper Filon) Date: Thu, 29 Nov 2007 09:30:20 +0100 Subject: Dealing with nightly high load Message-ID: <6EFD6B9CD50A0643A79CEE5BA3894B8801DF7776@neo.office.caiw.intern> All, I'm trying to deal with a bunch of servers that generate some high load during the night. That is, between 00:00 and 06:00 a series of job is run that will generate load from 10 to 15. Outside this windows, load should be no more than 3. I have read all the documentation, but I cant find a way to implement this in Nagios. I have found 2 options: - defining 2 services (load_daily and load_nightly) with different tresholds. This will make 2 services show up in nagios that are essential the same - using escalations to supress messages during the night. This will however still show errors in the webinterface and spoil you reports with fake errors How can I tell Nagios that during the day the load should be max 3 (warning) and max 5 (critical) but during the night, it's ok if they are 8 (warning) and 10 (critical)? I'm sure other people have ran into this same problem and found a solution for it? Please share! I'm running Nagios 2.10 Thanx for the help. Met vriendelijke groet/With kind regards, Jasper Filon CAIWAY Business ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gcoochey at sapphire.gi Thu Nov 29 09:53:45 2007 From: gcoochey at sapphire.gi (Giles Coochey) Date: Thu, 29 Nov 2007 09:53:45 +0100 Subject: snmptraphandling.py Message-ID: <9D30659ABCA7FB428CF91E386C3A5744A59FA5@hermes.sapphire-int.gi> Is anyone using Francois Meehan's snmptraphandling.py script? There's a part of the script where it opens the Nagios.cmd file. I'm not a python coder, but it appears to me that it writes to the file with 'w' which would overwrite any pending commands that Nagios has not yet processed: #print mondata_res output = open('/opt/nagios/var/rw/nagios.cmd', 'w') results = "[" + mytime + "] " + "PROCESS_SERVICE_CHECK_RESULT;" \ + host + ";" + "TRAP-" + service_suffix + ";" \ + return_code + ";" + mondata_res + "\n" output.write(results) I'm thinking that this script should be opening the file with the 'a' (Append) mode, so that unprocessed commands in nagios.cmd do not get overwritten. I do appear to be missing some traps within Nagios, I can see them as far as snmptt, but it seems either sec.pl or snmptraphandling.py somehow doesn't process them and the trap doesn't make it as far as Nagios. ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From duncan.ferguson at altinity.com Thu Nov 29 09:54:32 2007 From: duncan.ferguson at altinity.com (Duncan Ferguson) Date: Thu, 29 Nov 2007 08:54:32 +0000 Subject: Dealing with nightly high load In-Reply-To: <6EFD6B9CD50A0643A79CEE5BA3894B8801DF7776@neo.office.caiw.intern> References: <6EFD6B9CD50A0643A79CEE5BA3894B8801DF7776@neo.office.caiw.intern> Message-ID: <6465B05E-B90E-4BC6-BEC3-E6469F66218C@altinity.com> On 29 Nov 2007, at 08:30, Jasper Filon wrote: > All, > > I'm trying to deal with a bunch of servers that generate some high > load > during the night. That is, between 00:00 and 06:00 a series of job is > run that will generate load from 10 to 15. Outside this windows, load > should be no more than 3. > http://altinity.blogs.com/dotorg/2007/04/changing_a_serv.html It works for us... Duncs -- Duncan Ferguson Senior Developer, Altinity Limited http://www.altinity.com Tel: +44 (0)870 787 9243 US: +1 866 879 9184 Fax: +44 (0)845 280 1725 Skype: duncan_j_ferguson MSN: duncan.ferguson at altinity.com The contents of this email and any files transmitted with it are confidential and intended solely for the use of the individuals to whom it is addressed. If you are not the intended recipient or have received this e-mail in error please notify the sender and delete this e-mail immediately. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly prohibited. Altinity Limited | 404 Seven Sisters Road | London | N4 2LX | United Kingdom Registered in England and Wales under company number 4743767 ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From duncan.ferguson at altinity.com Thu Nov 29 10:40:17 2007 From: duncan.ferguson at altinity.com (Duncan Ferguson) Date: Thu, 29 Nov 2007 09:40:17 +0000 Subject: snmptraphandling.py In-Reply-To: <9D30659ABCA7FB428CF91E386C3A5744A59FA5@hermes.sapphire-int.gi> References: <9D30659ABCA7FB428CF91E386C3A5744A59FA5@hermes.sapphire-int.gi> Message-ID: On 29 Nov 2007, at 08:53, Giles Coochey wrote: > Is anyone using Francois Meehan's snmptraphandling.py script? > > There's a part of the script where it opens the Nagios.cmd file. > I'm not > a python coder, but it appears to me that it writes to the file > with 'w' > which would overwrite any pending commands that Nagios has not yet > processed: > nagios.cmd is a pipe, not an ordinary file and the contents cannot be overwritten as such - whatever gets written into the pipe will be read out of the pipe by the controlling binary in the same order. If you cat the pipe then the contents will be lost to nagios, as when items are read from the pipe they are automatically removed from it. Pipes have the first letter as a 'p' on 'ls -l'. Duncs -- Duncan Ferguson Senior Developer, Altinity Limited http://www.altinity.com Tel: +44 (0)870 787 9243 US: +1 866 879 9184 Fax: +44 (0)845 280 1725 Skype: duncan_j_ferguson MSN: duncan.ferguson at altinity.com The contents of this email and any files transmitted with it are confidential and intended solely for the use of the individuals to whom it is addressed. If you are not the intended recipient or have received this e-mail in error please notify the sender and delete this e-mail immediately. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly prohibited. Altinity Limited | 404 Seven Sisters Road | London | N4 2LX | United Kingdom Registered in England and Wales under company number 4743767 ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gcoochey at sapphire.gi Thu Nov 29 11:07:43 2007 From: gcoochey at sapphire.gi (Giles Coochey) Date: Thu, 29 Nov 2007 11:07:43 +0100 Subject: snmptraphandling.py In-Reply-To: References: <9D30659ABCA7FB428CF91E386C3A5744A59FA5@hermes.sapphire-int.gi> Message-ID: <9D30659ABCA7FB428CF91E386C3A5744A59FB9@hermes.sapphire-int.gi> > On 29 Nov 2007, at 08:53, Giles Coochey wrote: > > > Is anyone using Francois Meehan's snmptraphandling.py script? > > > > There's a part of the script where it opens the Nagios.cmd file. > > I'm not > > a python coder, but it appears to me that it writes to the file > > with 'w' > > which would overwrite any pending commands that Nagios has not yet > > processed: > > > > nagios.cmd is a pipe, not an ordinary file and the contents cannot be > overwritten as such - whatever gets written into the pipe will be > read out of the pipe by the controlling binary in the same order. > > If you cat the pipe then the contents will be lost to nagios, as when > items are read from the pipe they are automatically removed from it. > > Pipes have the first letter as a 'p' on 'ls -l'. > Thanks Duncan, so it's a FIFO. So now I need to find out why I'm losing events along the way :-( ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rafe.oxley at moving-edge.net Thu Nov 29 11:14:26 2007 From: rafe.oxley at moving-edge.net (R.Oxley) Date: Thu, 29 Nov 2007 10:14:26 +0000 Subject: SMS gateway In-Reply-To: References: Message-ID: <474E9102.1010104@moving-edge.net> I use a Nokia 6210e with a data cable connected to the serial port, running gnokii to handle sending the SMSs. Cheap and functional, regards Rafe Marcel Hecko wrote: > Hi, does anybody know of any HARDWARE solution into which I would just > stick GSM SIM card and send SMS messages from Nagios? > Something with ethernet interface - like - I would just call HTTP URI and > the device will send the SMS text to the number encoded in the HTTP > request (both - the text and phone number). > > Basically - very basic SMS gateway. With pre-paid sim card that would be > just magic! > > Does something like that exist? Possibly with two-way communitaction? > What price should I be looking at? > > Cheers! > Marcel > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: The Future of Linux Business White Paper > from Novell. From the desktop to the data center, Linux is going > mainstream. Let it simplify your IT future. > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From caphilipp at cbs.mpg.de Thu Nov 29 11:19:15 2007 From: caphilipp at cbs.mpg.de (Carsten Philipp) Date: Thu, 29 Nov 2007 11:19:15 +0100 Subject: test Message-ID: <474E9223.9040301@cbs.mpg.de> only a testmail -- Mit freundlichen Gr??en Max-Planck-Institut fuer Kognitions- und Neurowissenschaften Carsten Philipp Web: http://www.cbs.mpg.de Stephanstr. 1a Mail: caphilipp at cbs.mpg.de 04103 Leipzig Phone: +49 341 9940-169 ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From philc at foundation-it.com Thu Nov 29 11:38:09 2007 From: philc at foundation-it.com (Phil Costelloe) Date: Thu, 29 Nov 2007 10:38:09 -0000 Subject: SMS gateway In-Reply-To: <000001c8320c$3500f270$6389b3cf@eric> References: <000001c8320c$3500f270$6389b3cf@eric> Message-ID: I use Gnokii with a Nokia phone and it works really well but it relies on a wired or wireless connection (serial, usb, infrared or Bluetooth according to the website) between the server and the phone. I use some simple shell scripts to interface between Nagios and Gnokii. It could be part of what the OP wants if somebody writes (or has already written) an http-to-gnokii gateway, but then that wouldn't really be a hardware solution as requested. I've never run across anything that implements the sending interface and modem hardware in one product but it may be out there. -- Phil Costelloe Foundation IT, Hermitage, Berkshire RG18 9SE (apologies for the top post, we were already on that path) -------------------------------------------------------- Phil Costelloe Technical Consultant philc at foundation-it.com http://www.foundation-it.com Foundation IT Foundation Court Old Street Oare Hermitage Berkshire RG18 9SE Switch: +44 (0) 1635 203700 Helpdesk: +44 (0) 800 0121099 DDI: +44 (0) 1635 203719 Fax: +44 (0) 8700 543537 Mobile: +44 (0) 7884 236299 -------------------------------------------------------- This message contains confidential information and is intended only for nagios-users at lists.sourceforge.net. If you are not nagios-users at lists.sourceforge.net you should not disseminate, distribute or copy this e-mail. Please notify Foundation IT 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. Foundation IT 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. If verification is required please request a hard-copy version. Foundation IT Registered Office: Foundation Court, Old Street, Oare, Hermitage, Berkshire, RG18 9SE Registered in England Number 3281803 -------------------------------------------------------- -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Eric Frazier Sent: 28 November 2007 22:16 To: 'Marcel Hecko'; nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] SMS gateway Hi, This looks like a winner. Since it is a command line tool it should be easy to get working with Nagios. http://www.gnokii.org/ Others? -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Marcel Hecko Sent: Wednesday, November 28, 2007 5:40 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] SMS gateway Hi, does anybody know of any HARDWARE solution into which I would just stick GSM SIM card and send SMS messages from Nagios? Something with ethernet interface - like - I would just call HTTP URI and the device will send the SMS text to the number encoded in the HTTP request (both - the text and phone number). Basically - very basic SMS gateway. With pre-paid sim card that would be just magic! Does something like that exist? Possibly with two-way communitaction? What price should I be looking at? Cheers! Marcel ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dario.bestetti at opservices.com.br Thu Nov 29 13:11:10 2007 From: dario.bestetti at opservices.com.br (Dario B. Bestetti) Date: Thu, 29 Nov 2007 10:11:10 -0200 Subject: RES: SMS gateway In-Reply-To: <474E9102.1010104@moving-edge.net> References: <474E9102.1010104@moving-edge.net> Message-ID: <2309.4147597023$1196338329@news.gmane.org> We use Smstools (http://smstools.meinemullemaus.de/) which works very smoothly, but hardware is always a problems because of cable and cel devices compatibility. Lately we?ve found a little device from Huawei, the E220 model which connects trhough USB and works fine. I think the best hw solution would be the Falcon modems, but unfortunately they are hard and expensive to find here. Check with the guys from Netways (www.netways.de), I believe they have a "ready" package using Falcon as SMS gateway fully integrated with Nagios. []s _________________________________________________ Dario B. Bestetti????????OpServices ??????????????????????????????????R. Luciana de Abreu, 471 - Sala 403 ??????????????????????????????????Porto Alegre, RS - CEP 90570-060 Fone 55(51)30613588 Mobile? 55(51)81518218 Fax???? 55(51)30613588? Email??? dario.bestetti at opservices.com.br ? ???????????????"In God we trust, the rest we monitor ..." _________________________________________________ > -----Mensagem original----- > De: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] Em > nome de R.Oxley > Enviada em: quinta-feira, 29 de novembro de 2007 08:14 > Para: nagios-users at lists.sourceforge.net > Assunto: Re: [Nagios-users] SMS gateway > > > > I use a Nokia 6210e with a data cable connected to the serial port, > running gnokii to handle sending the SMSs. > Cheap and functional, > regards > Rafe > > > Marcel Hecko wrote: > > Hi, does anybody know of any HARDWARE solution into which I would just > > stick GSM SIM card and send SMS messages from Nagios? > > Something with ethernet interface - like - I would just call HTTP URI and > > the device will send the SMS text to the number encoded in the HTTP > > request (both - the text and phone number). > > > > Basically - very basic SMS gateway. With pre-paid sim card that would be > > just magic! > > > > Does something like that exist? Possibly with two-way communitaction? > > What price should I be looking at? > > > > Cheers! > > Marcel > > > > ------------------------------------------------------------------------- > > SF.Net email is sponsored by: The Future of Linux Business White Paper > > from Novell. From the desktop to the data center, Linux is going > > mainstream. Let it simplify your IT future. > > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > -- > > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: The Future of Linux Business White Paper > from Novell. From the desktop to the data center, Linux is going > mainstream. Let it simplify your IT future. > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mwjredding at gmail.com Thu Nov 29 15:25:59 2007 From: mwjredding at gmail.com (mark redding) Date: Thu, 29 Nov 2007 14:25:59 +0000 Subject: obsessing and event handlers Message-ID: Hi all, Can anyone here tell me where I'm going wrong in my attempts to correctly setup a slave nagios server. What I have is as follows :- 1 master nagios host (running FreeBSD 6.2). This host executes active checks some of which trigger event handlers (ie. to restart web servers, etc... the usual stuff). 1 slave nagios host (running FreeBSD 5.5). This host rsyncs the nagios configuration files from the master, and performs the check_nagios plugin to determine if the master is running. If it is not, then it takes over active checks. The above has been setup using the documentation accompanying the nagios installation and has v 2.10 installed. Yesterday I tried to get the slave to receive service check results from the master by running the nsca daemon on the slave and adding commands to enable send_nsca on the master to transmit results to the slave. To achieve this I forced the master to obsess over services and this all worked correctly. However, when I checked the system today I have found that although an event handler should have been executed overnight, it did NOT get executed. The only way I've been able to get the master to actually run the event handlers as needed has been to disable obsessing on the master - hence I no longer have the slave passively receiving service check results. I've sort of worked round this by enabling a global event handler on the master which calls the send_nsca command, so at the moment the slave is passively gettings the changes of state to services (but, as the http://nagios.sourceforge.net/docs/2_0/distributed.html page says, "We could use event handlers to report changes in the state of a service, but that just doesn't cut it.") and the master is happily executing event handlers as needed. Anyone else had this problem with event handlers when obsessing is enabled ? And does anyone have this working correctly ? thanks, Mark ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mark.potter at academy.com Thu Nov 29 15:21:47 2007 From: mark.potter at academy.com (mark.potter at academy.com) Date: Thu, 29 Nov 2007 08:21:47 -0600 Subject: Dealing with nightly high load In-Reply-To: <6EFD6B9CD50A0643A79CEE5BA3894B8801DF7776@neo.office.caiw.intern> References: <6EFD6B9CD50A0643A79CEE5BA3894B8801DF7776@neo.office.caiw.intern> Message-ID: Cell: 281-734-6965 nagios-users-bounces at lists.sourceforge.net wrote on 11/29/2007 02:30:20 AM: > All, > > I'm trying to deal with a bunch of servers that generate some high load > during the night. That is, between 00:00 and 06:00 a series of job is > run that will generate load from 10 to 15. Outside this windows, load > should be no more than 3. > > I have read all the documentation, but I cant find a way to implement > this in Nagios. I have found 2 options: > - defining 2 services (load_daily and load_nightly) with different > tresholds. This will make 2 services show up in nagios that are > essential the same > - using escalations to supress messages during the night. This will > however still show errors in the webinterface and spoil you reports with > fake errors > > How can I tell Nagios that during the day the load should be max 3 > (warning) and max 5 (critical) but during the night, it's ok if they are > 8 (warning) and 10 (critical)? I'm sure other people have ran into this > same problem and found a solution for it? Please share! > > I'm running Nagios 2.10 > > Thanx for the help. > > Met vriendelijke groet/With kind regards, > > Jasper Filon > > CAIWAY Business > Jasper, I have sort of the same issue and you have already stated the most expedient, and indeed only, solution that I found. Two services with different time periods for checking. It's doesn't look as pretty in the web interface but it works like a charm. The other method would be to write a wrapper that performs the check and alerts on the value you set based on time. This wouldn't be hard to do to be honest but it seems like re-inventing the wheel to some degree. The other question I have is if the servers are capable of withstanding a load that high why not just have your high threshold set the same all time? My situation isn't load based but with the standard Nagios plugin you can alert on any of the three points that uptime returns (here I make the assumption you are monitoring *nix boxen). If the situation calls for being able to be alerted to spikes during normal operating hours then you will either need two checks and time period for each or a wrapper that checks the time and returns an alert based on the time and load. Best Regards, Mark L. Potter -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From unix678 at gmail.com Thu Nov 29 17:09:43 2007 From: unix678 at gmail.com (Sean Bowers) Date: Thu, 29 Nov 2007 11:09:43 -0500 Subject: Need help using check_by_ssh with check_disk Message-ID: I'm running Nagios 2.10 with plugins 1.4.10 running on: Linux nagioshost 2.6.9-34.ELsmp #1 SMP Fri Feb 24 16:56:28 EST 2006 x86_64 x86_64 x86_64 GNU/Linux System information on the two remote hosts is: Linux remotehost1 2.6.9-11.ELsmp #1 SMP Fri May 20 18:26:27 EDT 2005 i686 i686 i386 GNU/Linux Linux remotehost2 2.6.9-5.ELsmp #1 SMP Wed Jan 5 19:30:39 EST 2005 i686 i686 i386 GNU/Linux My check (in commands.cfg as check_disk_by_ssh) is: $USER1$/libexec/check_by_ssh -E -i identify.txt -l nagios -H $HOSTADDRESS$ -C "/usr/lib/nagios/plugins/check_disk -w $ARG1$ -c $ARG2$" The services.cmd has: check_disk_by_ssh!10%!5% This test runs fine on remotehost1, but on remotehost2 it returns back "UNKNOWN - check_by_ssh: Remote command '/usr/lib/nagios/plugins/check_disk -w 10% -c 5%' returned status 255". At first, I thought this could be a 32 vs. 64-bit issue, but the Nagios host is 64-bit while both remotes are 32. >From the command line, both hosts work fine and 'echo $?' shows 0 for both. Logging into the remote boxes and running check_disk manually is fine as well. Using -v doesn't help since it doesn't show tracing information. Does anyone have any ideas or thoughts on this? Are there any other tricks I can try for debugging this? Any help would be appreciated immensely. Thanks! ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Thu Nov 29 17:26:41 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Thu, 29 Nov 2007 16:26:41 +0000 Subject: Announce: Check Dhcpd Leases - Shows leases / Alerts on unauthorized machines Message-ID: <474EE841.5090503@googlemail.com> Hi, I've just released another plugin on www.NagiosExchange.org to display the leases that have been handed out by an ISC Dhcpd server. It can also be used to alert you if any unauthorized machine is detected as having a dhcp lease by going Critical. This works by giving the plugin any combination of Whitelists/Blacklists of Hostnames and/or Mac Addresses. Combine for maximum tripping effect. Outputting is also flexible so you can choose whether you want to include/exclude Hostnames and/or Macs displayed as well as just IPs when displaying the leases (default is Hostname = IP). There are also switches for sorting the order of display and whether you want compacted output, as well as whether to give the summary information on the number of active leases. As usual, it should be flexible enough for all needs, and is open to suggestions/constructive criticisms or feature requests which should be sent to this address. Find the plugin here: http://www.nagiosexchange.org/Check_Plugins.21.0.html?&tx_netnagext_pi1[p_view]=1164 Hope you find it useful Thanks -h -- Hari Sekhon ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ntoughe at hotmail.com Thu Nov 29 17:48:35 2007 From: ntoughe at hotmail.com (NTOUGHE GUY-SERGE) Date: Thu, 29 Nov 2007 16:48:35 +0000 Subject: Nagios-users Digest, Vol 18, Issue 48 In-Reply-To: References: Message-ID: Hi All, I want to define 3D drawing by defining hostextinfo.cfg and seviceextinfo.cfg when i launched the checking of nagios *.cfg files : /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg i got this error message: Error: Could not add duplicate hostextinfo entry for host 'americano'. Error: Could not allocate memory for hostextinfo list to add extended info for host 'americano'. Error: Could not register extended host information (config file '/usr/local/nagios/etc/servers/hostextinfo.cfg', starting on line 6) I defined host americano in the differents file it has to be : host.cfg hostgroups.cfg services.cfg servicegroups.cfg If you have experienced such a problem, could you please give me a clue for solving this little headache? Regards. ntoughe at hotmail.com > From: nagios-users-request at lists.sourceforge.net > Subject: Nagios-users Digest, Vol 18, Issue 48 > To: nagios-users at lists.sourceforge.net > Date: Thu, 29 Nov 2007 08:09:43 -0800 > > Send Nagios-users mailing list submissions to > nagios-users at lists.sourceforge.net > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/nagios-users > or, via email, send a message with subject or body 'help' to > nagios-users-request at lists.sourceforge.net > > You can reach the person managing the list at > nagios-users-owner at lists.sourceforge.net > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Nagios-users digest..." > > > Today's Topics: > > 1. max_check_attempts not working for me (Jeremy C. Reed) > 2. Re: NSCA Confusing host check results asservice checks > (Chris Haulmark) > 3. SMS gateway (Marcel Hecko) > 4. Re: SMS gateway (Eric Frazier) > 5. Re: max_check_attempts not working for me (Marc Powell) > 6. Re: NSCA Confusing host check resultsasservice checks > (Marc Powell) > 7. Re: max_check_attempts not working for me (Jeremy C. Reed) > 8. Re: max_check_attempts not working for me (Marc Powell) > 9. what is log format? (Jeremy C. Reed) > 10. Re: max_check_attempts not working for me (Jeremy C. Reed) > 11. Re: what is log format? (Jeremy C. Reed) > 12. Re: what is log format? (Marc Powell) > 13. Re: SMS gateway (Dennis H?nseler) > 14. Re: SMS gateway (nagios) > 15. Dealing with nightly high load (Jasper Filon) > 16. snmptraphandling.py (Giles Coochey) > 17. Re: Dealing with nightly high load (Duncan Ferguson) > 18. Re: snmptraphandling.py (Duncan Ferguson) > 19. Re: snmptraphandling.py (Giles Coochey) > 20. Re: SMS gateway (R.Oxley) > 21. test (Carsten Philipp) > 22. Re: SMS gateway (Phil Costelloe) > 23. RES: SMS gateway (Dario B. Bestetti) > 24. obsessing and event handlers (mark redding) > 25. Re: Dealing with nightly high load (mark.potter at academy.com) > 26. Need help using check_by_ssh with check_disk (Sean Bowers) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Wed, 28 Nov 2007 15:15:55 -0600 (CST) > From: "Jeremy C. Reed" > Subject: [Nagios-users] max_check_attempts not working for me > To: Nagios-users at lists.sourceforge.net > Message-ID: > Content-Type: TEXT/PLAIN; charset=US-ASCII > > I have templates that define max_check_attempts as 3 and others as 5 with > retry_check_interval as 1 (my interval_length is 60). > > But I never see any indication that the failures are retried at all before > I receive a notification. > > I get a service notification on the first CRITICAL failure which > becomes immediately HARD. > > I set: > > log_service_retries=1 > log_host_retries=1 > > But I don't get any logging about any retries. > > How can I troubleshoot why my max_check_attempts doesn't work? > > I want it to not do any notification on first failure. I want it to retry > the failed service in approximately one minute. And only then notify if it > fails again. > > This is on Nagios 2.8. > > Here is the template I am using: > > define service{ > name service-template ; The 'name' of this service template, referenced in other service definitions > active_checks_enabled 1 ; Active service checks are enabled > passive_checks_enabled 1 ; Passive service checks are enabled/accepted > parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major performance problems) > obsess_over_service 1 ; We should obsess over this service (if necessary) > check_freshness 0 ; Default is to NOT check service 'freshness' > notifications_enabled 1 ; Service notifications are enabled > event_handler_enabled 1 ; Service event handler is enabled > flap_detection_enabled 1 ; Flap detection is enabled > process_perf_data 1 ; Process performance data > retain_status_information 1 ; Retain status information across program restarts > retain_nonstatus_information 1 ; Retain non-status information across program restarts > > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 1 > contact_groups noc-admins > notification_interval 0 ; disable recurring notifications > notification_period 24x7 > notification_options w,u,c,r > > register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! > } > > > > ------------------------------ > > Message: 2 > Date: Wed, 28 Nov 2007 16:41:43 -0500 > From: "Chris Haulmark" > Subject: Re: [Nagios-users] NSCA Confusing host check results > asservice checks > To: "Brian A. Seklecki" , "Marc > Powell" > Cc: nagios-users at lists.sourceforge.net > Message-ID: > <6FC9F9894A9F8C49A722CF9F2132FC220F7C787F at ms05.mailstreet2003.net> > Content-Type: text/plain; charset="us-ascii" > > > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > > bounces at lists.sourceforge.net] On Behalf Of Brian A. Seklecki > > Sent: Wednesday, November 28, 2007 1:45 PM > > To: Marc Powell > > Cc: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] NSCA Confusing host check results > asservice > > checks > > > > > Where did you get a send_nsca that expects comma-delimited input? > The > > > standard send_nsca expects tab-delimited input so this problem > > doesn't > > > arise. > > > > > > > Chris Haulmark can provide the ISBN and revision of the book in which > > the example code was taken. > > It is Pro Nagios 2.0 written by James Turnbull. > ISBN-13 978-1-59059-609-8 > ISBN-10 1-59059-609-9 > > Page 277 at the bottom shows that if you leave out -d for the send_nsca > program, it would use tab by default. The script examples show that it > is > using -d "," and two examples are shown on page 278. > > Chris > > > > > Its his project -- I just get involved for the goofy stuff. > > > > ~BAS > > > > > > > ----------------------------------------------------------------------- > > -- > > SF.Net email is sponsored by: The Future of Linux Business White Paper > > from Novell. From the desktop to the data center, Linux is going > > mainstream. Let it simplify your IT future. > > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > ------------------------------ > > Message: 3 > Date: Wed, 28 Nov 2007 22:40:06 +0100 (CET) > From: "Marcel Hecko" > Subject: [Nagios-users] SMS gateway > To: nagios-users at lists.sourceforge.net > Message-ID: > Content-Type: text/plain; charset=ISO-8859-1 > > > Hi, does anybody know of any HARDWARE solution into which I would just > stick GSM SIM card and send SMS messages from Nagios? > Something with ethernet interface - like - I would just call HTTP URI and > the device will send the SMS text to the number encoded in the HTTP > request (both - the text and phone number). > > Basically - very basic SMS gateway. With pre-paid sim card that would be > just magic! > > Does something like that exist? Possibly with two-way communitaction? > What price should I be looking at? > > Cheers! > Marcel > > > > ------------------------------ > > Message: 4 > Date: Wed, 28 Nov 2007 18:15:35 -0400 > From: "Eric Frazier" > Subject: Re: [Nagios-users] SMS gateway > To: "'Marcel Hecko'" , > > Message-ID: <000001c8320c$3500f270$6389b3cf at eric> > Content-Type: text/plain; charset="us-ascii" > > Hi, > > This looks like a winner. Since it is a command line tool it should be easy > to get working with Nagios. > > http://www.gnokii.org/ > > Others? > > > > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Marcel > Hecko > Sent: Wednesday, November 28, 2007 5:40 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] SMS gateway > > > Hi, does anybody know of any HARDWARE solution into which I would just stick > GSM SIM card and send SMS messages from Nagios? > Something with ethernet interface - like - I would just call HTTP URI and > the device will send the SMS text to the number encoded in the HTTP request > (both - the text and phone number). > > Basically - very basic SMS gateway. With pre-paid sim card that would be > just magic! > > Does something like that exist? Possibly with two-way communitaction? > What price should I be looking at? > > Cheers! > Marcel > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: The Future of Linux Business White Paper from > Novell. From the desktop to the data center, Linux is going mainstream. > Let it simplify your IT future. > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > > > ------------------------------ > > Message: 5 > Date: Wed, 28 Nov 2007 16:54:49 -0600 > From: "Marc Powell" > Subject: Re: [Nagios-users] max_check_attempts not working for me > To: > Message-ID: > Content-Type: text/plain; charset="US-ASCII" > > > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > > bounces at lists.sourceforge.net] On Behalf Of Jeremy C. Reed > > Sent: Wednesday, November 28, 2007 3:16 PM > > To: Nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] max_check_attempts not working for me > > > > I have templates that define max_check_attempts as 3 and others as 5 > with > > retry_check_interval as 1 (my interval_length is 60). > > > > But I never see any indication that the failures are retried at all > before > > I receive a notification. > > > > I get a service notification on the first CRITICAL failure which > > becomes immediately HARD. > > > > Here is the template I am using: > > > > define service{ > > name service-template ; The > 'name' of this > > > > is_volatile 0 > > check_period 24x7 > > max_check_attempts 3 > > normal_check_interval 5 > > retry_check_interval 1 > > Assuming this is the template that you have applied to the service in > question and you don't override any of the relevant values in your > service definition, this should do nearly what you want (it'd be about 3 > minutes before notification actually). This is a common configuration > and I'm not aware of any bugs related to it ever appearing. Are you sure > nagios was restarted after applying this configuration? That you only > have one daemon process running? Are you sure that nagios is reading > this file? Are you sure that this template is applied to your services > in question? Are you sure that it's a service notification that you're > receiving and not a host notification? > > -- > Marc > > > > ------------------------------ > > Message: 6 > Date: Wed, 28 Nov 2007 16:57:56 -0600 > From: "Marc Powell" > Subject: Re: [Nagios-users] NSCA Confusing host check resultsasservice > checks > To: > Message-ID: > Content-Type: text/plain; charset="US-ASCII" > > > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > > bounces at lists.sourceforge.net] On Behalf Of Chris Haulmark > > Sent: Wednesday, November 28, 2007 3:42 PM > > To: Brian A. Seklecki; Marc Powell > > Cc: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] NSCA Confusing host check resultsasservice > > checks > > > > It is Pro Nagios 2.0 written by James Turnbull. > > ISBN-13 978-1-59059-609-8 > > ISBN-10 1-59059-609-9 > > > > Page 277 at the bottom shows that if you leave out -d for the > send_nsca > > program, it would use tab by default. The script examples show that > it > > is > > using -d "," and two examples are shown on page 278. > > Seems like an unusual example to choose considering it's a pretty clear > conflict with the most common plugin test around (check_ping, > check_icmp). In any event, tabs are the way to go IMHO. > > -- > Marc > > > > ------------------------------ > > Message: 7 > Date: Wed, 28 Nov 2007 17:59:33 -0600 (CST) > From: "Jeremy C. Reed" > Subject: Re: [Nagios-users] max_check_attempts not working for me > To: Marc Powell > Cc: Nagios-users at lists.sourceforge.net > Message-ID: > Content-Type: TEXT/PLAIN; charset=US-ASCII > > On Wed, 28 Nov 2007, Marc Powell wrote: > > > > Here is the template I am using: > > > > > > define service{ > > > name service-template ; The > > 'name' of this > > > > > > > is_volatile 0 > > > check_period 24x7 > > > max_check_attempts 3 > > > normal_check_interval 5 > > > retry_check_interval 1 > > > > Assuming this is the template that you have applied to the service in > > question and you don't override any of the relevant values in your > > service definition, this should do nearly what you want (it'd be about 3 > > minutes before notification actually). This is a common configuration > > and I'm not aware of any bugs related to it ever appearing. Are you sure > > nagios was restarted after applying this configuration? That you only > > have one daemon process running? Are you sure that nagios is reading > > this file? Are you sure that this template is applied to your services > > in question? Are you sure that it's a service notification that you're > > receiving and not a host notification? > > This is the template we have used for a long time (probably with those > same settings and over a hundred nagios restarts). I also have similar for > my host template (but it is "max_check_attempts 5"). > > You mention "3 minutes" above, but I don't see any indication that it is > checked multiple times before the notification. > > What types of logs would I see if it checked but not notifying yet because > still max_check_attempts-1 to do? > > When I watch my logs I only see one indication of the "SERVICE > ALERT:...CRITICAL;HARD" and then immediately (same second) followed by the > corresponding "SERVICE NOTIFICATION"s. > \ > Also when I previously setup debugging for nrpe, I didn't see them checked > multiple times (every minute) on failures. But I may try that again. > > > > ------------------------------ > > Message: 8 > Date: Wed, 28 Nov 2007 19:52:09 -0600 > From: Marc Powell > Subject: Re: [Nagios-users] max_check_attempts not working for me > To: Nagios-users at lists.sourceforge.net > Message-ID: <69AC6F93-4D6C-4356-ACD4-D3E2F26101BA at ena.com> > Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes > > > On Nov 28, 2007, at 5:59 PM, Jeremy C. Reed wrote: > > > On Wed, 28 Nov 2007, Marc Powell wrote: > > > >>> Here is the template I am using: > >>> > >>> define service{ > >>> name service-template ; The > >> 'name' of this > >> > >> > >>> is_volatile 0 > >>> check_period 24x7 > >>> max_check_attempts 3 > >>> normal_check_interval 5 > >>> retry_check_interval 1 > >> > >> Assuming this is the template that you have applied to the service in > >> question and you don't override any of the relevant values in your > >> service definition, this should do nearly what you want (it'd be > >> about 3 > >> minutes before notification actually). This is a common configuration > >> and I'm not aware of any bugs related to it ever appearing. Are you > >> sure > >> nagios was restarted after applying this configuration? That you only > >> have one daemon process running? Are you sure that nagios is reading > >> this file? Are you sure that this template is applied to your > >> services > >> in question? Are you sure that it's a service notification that > >> you're > >> receiving and not a host notification? > > > > This is the template we have used for a long time (probably with those > > same settings and over a hundred nagios restarts). I also have > > similar for > > my host template (but it is "max_check_attempts 5"). > > Does that one work as expected or are they all 'broken'? If they're > all broken then I'd hazard that something is still amiss with your > configuration. > > > You mention "3 minutes" above, but I don't see any indication that > > it is > > checked multiple times before the notification. > > yup. 3 check attempts (max_check_attempts) at 1 minute retry interval. > > > What types of logs would I see if it checked but not notifying yet > > because > > still max_check_attempts-1 to do? > > It's displayed in the web interface in the 'Attempts' column or > Current Attempt if you're looking at a specific service detail. It'll > be 1/3, 2/3 or 3/3. If you see 1/1 then your template isn't being > applied as you think it is. > > -- > Marc > > > > ------------------------------ > > Message: 9 > Date: Wed, 28 Nov 2007 23:20:19 -0600 (CST) > From: "Jeremy C. Reed" > Subject: [Nagios-users] what is log format? > To: Nagios-users at lists.sourceforge.net > Message-ID: > Content-Type: TEXT/PLAIN; charset=US-ASCII > > Where is the log format described? > > I found http://www.nagios.org/faqs/viewfaq.php?faq_id=66 but it is not > same as my /var/log/nagios/nagios.log. For example, I don't see any retry > number. > > Here are some examples from a Nagios 2.8 system: > > [1196236855] SERVICE ALERT: foo.example.com;foo.disk1;CRITICAL > ;HARD;3;DISK CRITICAL [469380 kB (5%) free on /dev/sda2] > > [1196236855] SERVICE NOTIFICATION: > jeremy;foo.example.com;foo.disk1;CRITICAL;notify-by-epager;DISK CRITICAL > [469380 kB (5%) free on /dev/sda2] > > [1196312026] SERVICE ALERT: bar.example.org;bar.cpu;OK;SOFT;2;NOW: > Mean:0.000000% Variance: 0.000000% CUMULATIVE: Mean:0.000000% Variance: > 0.000000% > > > > ------------------------------ > > Message: 10 > Date: Thu, 29 Nov 2007 00:35:47 -0600 (CST) > From: "Jeremy C. Reed" > Subject: Re: [Nagios-users] max_check_attempts not working for me > To: Nagios-users at lists.sourceforge.net > Message-ID: > Content-Type: TEXT/PLAIN; charset=US-ASCII > > On Wed, 28 Nov 2007, Marc Powell wrote: > > > It's displayed in the web interface in the 'Attempts' column or > > Current Attempt if you're looking at a specific service detail. It'll > > be 1/3, 2/3 or 3/3. If you see 1/1 then your template isn't being > > applied as you think it is. > > Thank you Marc for this and other information. I read the docs over and > over again, but your explanations made it more clear for me. > > I see it was working and now that I knew what to look for even my old > nagios logs showed it in action. For anyone reading the archive, here is > an example once I added more logging with: > log_service_retries=1 > > [1196288346] SERVICE ALERT: > foo.example.com;mysql;CRITICAL;SOFT;1;CHECK_NRPE: Socket timeout after 20 > seconds. > > [1196288406] SERVICE ALERT: > foo.example.com;mysql;CRITICAL;SOFT;2;CHECK_NRPE: Socket timeout after 20 > seconds. > > [1196288466] SERVICE ALERT: > foo.example.com;mysql;CRITICAL;HARD;3;CHECK_NRPE: Socket timeout after 20 > seconds. > > [1196288466] SERVICE NOTIFICATION: > jeremy;foo.example.com;mysql;CRITICAL;notify-by-epager;CHECK_NRPE: Socket > timeout after 20 seconds. > > It shows three attempts. > > > > ------------------------------ > > Message: 11 > Date: Thu, 29 Nov 2007 00:38:09 -0600 (CST) > From: "Jeremy C. Reed" > Subject: Re: [Nagios-users] what is log format? > To: Nagios-users at lists.sourceforge.net > Message-ID: > Content-Type: TEXT/PLAIN; charset=US-ASCII > > On Wed, 28 Nov 2007, Jeremy C. Reed wrote: > > > Where is the log format described? > > > > I found http://www.nagios.org/faqs/viewfaq.php?faq_id=66 but it is not > > same as my /var/log/nagios/nagios.log. For example, I don't see any retry > > number. > > I didn't see the retry number because it was in a different place than > documented in above FAQ. But it is there. > > > Here are some examples from a Nagios 2.8 system: > > > > [1196236855] SERVICE ALERT: foo.example.com;foo.disk1;CRITICAL > > ;HARD;3;DISK CRITICAL [469380 kB (5%) free on /dev/sda2] > > So above is 3 (see HARD;3). > > > [1196236855] SERVICE NOTIFICATION: > > jeremy;foo.example.com;foo.disk1;CRITICAL;notify-by-epager;DISK CRITICAL > > [469380 kB (5%) free on /dev/sda2] > > > > [1196312026] SERVICE ALERT: bar.example.org;bar.cpu;OK;SOFT;2;NOW: > > Mean:0.000000% Variance: 0.000000% CUMULATIVE: Mean:0.000000% Variance: > > 0.000000% > > And above is a second retry (see SOFT;2). > > > > ------------------------------ > > Message: 12 > Date: Thu, 29 Nov 2007 00:40:14 -0600 > From: Marc Powell > Subject: Re: [Nagios-users] what is log format? > To: Nagios-users at lists.sourceforge.net > Message-ID: > Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes > > > On Nov 28, 2007, at 11:20 PM, Jeremy C. Reed wrote: > > > Where is the log format described? > > in base/logging.c or in a fairly recent post by me to this list (in > the last couple of weeks). > > > I found http://www.nagios.org/faqs/viewfaq.php?faq_id=66 but it is not > > same as my /var/log/nagios/nagios.log. For example, I don't see any > > retry > > number. > > That's for the status.dat file. As you've seen, it has a slightly > different format. > > > Here are some examples from a Nagios 2.8 system: > > > > [1196236855] SERVICE ALERT: foo.example.com;foo.disk1;CRITICAL > > ;HARD;3;DISK CRITICAL [469380 kB (5%) free on /dev/sda2] > > This service has reached a HARD state on the 3rd non-ok check attempt. > > > > > [1196236855] SERVICE NOTIFICATION: > > jeremy;foo.example.com;foo.disk1;CRITICAL;notify-by-epager;DISK > > CRITICAL > > [469380 kB (5%) free on /dev/sda2] > > A notification was sent out upon reaching a HARD state > (max_check_attempts). > > > [1196312026] SERVICE ALERT: bar.example.org;bar.cpu;OK;SOFT;2;NOW: > > Mean:0.000000% Variance: 0.000000% CUMULATIVE: Mean:0.000000% > > Variance: > > 0.000000% > > This service is in a SOFT state as it's only on retry 2 of some > unknown number. (unknown because it's not recorded in the log file at > this point). It appears this service may be bouncing between states? > > Based on these entries, nagios is not alerting on the first non-ok > check result. > > -- > Marc > > > > > ------------------------------ > > Message: 13 > Date: Thu, 29 Nov 2007 08:58:18 +0100 > From: Dennis H?nseler > Subject: Re: [Nagios-users] SMS gateway > To: Marcel Hecko > Cc: nagios-users at lists.sourceforge.net > Message-ID: <0bd3fc7d48f45593d85909eaf26fabf0 at localhost> > Content-Type: text/plain; charset="UTF-8" > > > Hi everybody, > > the solution i prefer is using a gsm modem like Siemens TC35i and the > smstools, which are available as Debian Package or as source for example. > The modem gets connected via serial and is controlled by smstools. Just ask > google for smstools and tc35i... > > Kind regards, Dennis > > On Wed, 28 Nov 2007 22:40:06 +0100 (CET), "Marcel Hecko" > wrote: > > > > Hi, does anybody know of any HARDWARE solution into which I would just > > stick GSM SIM card and send SMS messages from Nagios? > > Something with ethernet interface - like - I would just call HTTP URI and > > the device will send the SMS text to the number encoded in the HTTP > > request (both - the text and phone number). > > > > Basically - very basic SMS gateway. With pre-paid sim card that would be > > just magic! > > > > Does something like that exist? Possibly with two-way communitaction? > > What price should I be looking at? > > > > Cheers! > > Marcel > > > > ------------------------------------------------------------------------- > > SF.Net email is sponsored by: The Future of Linux Business White Paper > > from Novell. From the desktop to the data center, Linux is going > > mainstream. Let it simplify your IT future. > > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > ------------------------------ > > Message: 14 > Date: Thu, 29 Nov 2007 09:28:55 +0100 > From: nagios > Subject: Re: [Nagios-users] SMS gateway > To: Nagios-users at lists.sourceforge.net > Message-ID: <474E7847.3080408 at ggaweb.ch> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Hi Marcel > have a lock at > http://www.kannel.org/ > and > http://www.kannel.org/download/1.4.1/userguide-1.4.1/userguide.html#AEN4201 > Regards Florian > > Marcel Hecko schrieb: > > Hi, does anybody know of any HARDWARE solution into which I would just > > stick GSM SIM card and send SMS messages from Nagios? > > Something with ethernet interface - like - I would just call HTTP URI and > > the device will send the SMS text to the number encoded in the HTTP > > request (both - the text and phone number). > > > > Basically - very basic SMS gateway. With pre-paid sim card that would be > > just magic! > > > > Does something like that exist? Possibly with two-way communitaction? > > What price should I be looking at? > > > > Cheers! > > Marcel > > > > ------------------------------------------------------------------------- > > SF.Net email is sponsored by: The Future of Linux Business White Paper > > from Novell. From the desktop to the data center, Linux is going > > mainstream. Let it simplify your IT future. > > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > > > > > > > ------------------------------ > > Message: 15 > Date: Thu, 29 Nov 2007 09:30:20 +0100 > From: "Jasper Filon" > Subject: [Nagios-users] Dealing with nightly high load > To: > Message-ID: > <6EFD6B9CD50A0643A79CEE5BA3894B8801DF7776 at neo.office.caiw.intern> > Content-Type: text/plain; charset="US-ASCII" > > All, > > I'm trying to deal with a bunch of servers that generate some high load > during the night. That is, between 00:00 and 06:00 a series of job is > run that will generate load from 10 to 15. Outside this windows, load > should be no more than 3. > > I have read all the documentation, but I cant find a way to implement > this in Nagios. I have found 2 options: > - defining 2 services (load_daily and load_nightly) with different > tresholds. This will make 2 services show up in nagios that are > essential the same > - using escalations to supress messages during the night. This will > however still show errors in the webinterface and spoil you reports with > fake errors > > How can I tell Nagios that during the day the load should be max 3 > (warning) and max 5 (critical) but during the night, it's ok if they are > 8 (warning) and 10 (critical)? I'm sure other people have ran into this > same problem and found a solution for it? Please share! > > I'm running Nagios 2.10 > > Thanx for the help. > > Met vriendelijke groet/With kind regards, > > Jasper Filon > > CAIWAY Business > > > > ------------------------------ > > Message: 16 > Date: Thu, 29 Nov 2007 09:53:45 +0100 > From: "Giles Coochey" > Subject: [Nagios-users] snmptraphandling.py > To: > Cc: francois at iecholden.com > Message-ID: > <9D30659ABCA7FB428CF91E386C3A5744A59FA5 at hermes.sapphire-int.gi> > Content-Type: text/plain; charset="us-ascii" > > Is anyone using Francois Meehan's snmptraphandling.py script? > > There's a part of the script where it opens the Nagios.cmd file. I'm not > a python coder, but it appears to me that it writes to the file with 'w' > which would overwrite any pending commands that Nagios has not yet > processed: > > #print mondata_res > output = open('/opt/nagios/var/rw/nagios.cmd', 'w') > results = "[" + mytime + "] " + "PROCESS_SERVICE_CHECK_RESULT;" > \ > + host + ";" + "TRAP-" + service_suffix + ";" \ > + return_code + ";" + mondata_res + "\n" > output.write(results) > > I'm thinking that this script should be opening the file with the 'a' > (Append) mode, so that unprocessed commands in nagios.cmd do not get > overwritten. > > I do appear to be missing some traps within Nagios, I can see them as > far as snmptt, but it seems either sec.pl or snmptraphandling.py somehow > doesn't process them and the trap doesn't make it as far as Nagios. > > > > ------------------------------ > > Message: 17 > Date: Thu, 29 Nov 2007 08:54:32 +0000 > From: Duncan Ferguson > Subject: Re: [Nagios-users] Dealing with nightly high load > To: Jasper Filon > Cc: nagios-users at lists.sourceforge.net > Message-ID: <6465B05E-B90E-4BC6-BEC3-E6469F66218C at altinity.com> > Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed > > > On 29 Nov 2007, at 08:30, Jasper Filon wrote: > > > All, > > > > I'm trying to deal with a bunch of servers that generate some high > > load > > during the night. That is, between 00:00 and 06:00 a series of job is > > run that will generate load from 10 to 15. Outside this windows, load > > should be no more than 3. > > > > http://altinity.blogs.com/dotorg/2007/04/changing_a_serv.html > > It works for us... > > Duncs > > -- > Duncan Ferguson > Senior Developer, Altinity Limited > > http://www.altinity.com > Tel: +44 (0)870 787 9243 > US: +1 866 879 9184 > Fax: +44 (0)845 280 1725 > Skype: duncan_j_ferguson > MSN: duncan.ferguson at altinity.com > > The contents of this email and any files transmitted with it are > confidential and intended solely for the use of the individuals to > whom it is addressed. > If you are not the intended recipient or have received this e-mail in > error please notify the sender and delete this e-mail immediately. > Any unauthorised copying, disclosure or distribution of the material > in this e-mail is strictly prohibited. > > Altinity Limited | 404 Seven Sisters Road | London | N4 2LX | United > Kingdom > Registered in England and Wales under company number 4743767 > > > > > ------------------------------ > > Message: 18 > Date: Thu, 29 Nov 2007 09:40:17 +0000 > From: Duncan Ferguson > Subject: Re: [Nagios-users] snmptraphandling.py > To: "Giles Coochey" > Cc: nagios-users at lists.sourceforge.net, francois at iecholden.com > Message-ID: > Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed > > > On 29 Nov 2007, at 08:53, Giles Coochey wrote: > > > Is anyone using Francois Meehan's snmptraphandling.py script? > > > > There's a part of the script where it opens the Nagios.cmd file. > > I'm not > > a python coder, but it appears to me that it writes to the file > > with 'w' > > which would overwrite any pending commands that Nagios has not yet > > processed: > > > > nagios.cmd is a pipe, not an ordinary file and the contents cannot be > overwritten as such - whatever gets written into the pipe will be > read out of the pipe by the controlling binary in the same order. > > If you cat the pipe then the contents will be lost to nagios, as when > items are read from the pipe they are automatically removed from it. > > Pipes have the first letter as a 'p' on 'ls -l'. > > Duncs > > -- > Duncan Ferguson > Senior Developer, Altinity Limited > > http://www.altinity.com > Tel: +44 (0)870 787 9243 > US: +1 866 879 9184 > Fax: +44 (0)845 280 1725 > Skype: duncan_j_ferguson > MSN: duncan.ferguson at altinity.com > > The contents of this email and any files transmitted with it are > confidential and intended solely for the use of the individuals to > whom it is addressed. > If you are not the intended recipient or have received this e-mail in > error please notify the sender and delete this e-mail immediately. > Any unauthorised copying, disclosure or distribution of the material > in this e-mail is strictly prohibited. > > Altinity Limited | 404 Seven Sisters Road | London | N4 2LX | United > Kingdom > Registered in England and Wales under company number 4743767 > > > > > ------------------------------ > > Message: 19 > Date: Thu, 29 Nov 2007 11:07:43 +0100 > From: "Giles Coochey" > Subject: Re: [Nagios-users] snmptraphandling.py > To: "Duncan Ferguson" > Cc: nagios-users at lists.sourceforge.net, francois at iecholden.com > Message-ID: > <9D30659ABCA7FB428CF91E386C3A5744A59FB9 at hermes.sapphire-int.gi> > Content-Type: text/plain; charset="us-ascii" > > > On 29 Nov 2007, at 08:53, Giles Coochey wrote: > > > > > Is anyone using Francois Meehan's snmptraphandling.py script? > > > > > > There's a part of the script where it opens the Nagios.cmd file. > > > I'm not > > > a python coder, but it appears to me that it writes to the file > > > with 'w' > > > which would overwrite any pending commands that Nagios has not yet > > > processed: > > > > > > > nagios.cmd is a pipe, not an ordinary file and the contents cannot be > > overwritten as such - whatever gets written into the pipe will be > > read out of the pipe by the controlling binary in the same order. > > > > If you cat the pipe then the contents will be lost to nagios, as when > > items are read from the pipe they are automatically removed from it. > > > > Pipes have the first letter as a 'p' on 'ls -l'. > > > > Thanks Duncan, so it's a FIFO. So now I need to find out why I'm losing > events along the way :-( > > > > ------------------------------ > > Message: 20 > Date: Thu, 29 Nov 2007 10:14:26 +0000 > From: "R.Oxley" > Subject: Re: [Nagios-users] SMS gateway > To: nagios-users at lists.sourceforge.net > Message-ID: <474E9102.1010104 at moving-edge.net> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > I use a Nokia 6210e with a data cable connected to the serial port, > running gnokii to handle sending the SMSs. > Cheap and functional, > regards > Rafe > > > Marcel Hecko wrote: > > Hi, does anybody know of any HARDWARE solution into which I would just > > stick GSM SIM card and send SMS messages from Nagios? > > Something with ethernet interface - like - I would just call HTTP URI and > > the device will send the SMS text to the number encoded in the HTTP > > request (both - the text and phone number). > > > > Basically - very basic SMS gateway. With pre-paid sim card that would be > > just magic! > > > > Does something like that exist? Possibly with two-way communitaction? > > What price should I be looking at? > > > > Cheers! > > Marcel > > > > ------------------------------------------------------------------------- > > SF.Net email is sponsored by: The Future of Linux Business White Paper > > from Novell. From the desktop to the data center, Linux is going > > mainstream. Let it simplify your IT future. > > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > -- > > > > > ------------------------------ > > Message: 21 > Date: Thu, 29 Nov 2007 11:19:15 +0100 > From: Carsten Philipp > Subject: [Nagios-users] test > To: Nagios-users at lists.sourceforge.net > Message-ID: <474E9223.9040301 at cbs.mpg.de> > Content-Type: text/plain; charset=ISO-8859-1 > > only a testmail > > -- > > > Mit freundlichen Gr??en > > Max-Planck-Institut fuer Kognitions- und Neurowissenschaften > Carsten Philipp Web: http://www.cbs.mpg.de > Stephanstr. 1a Mail: caphilipp at cbs.mpg.de > 04103 Leipzig Phone: +49 341 9940-169 > > > > > ------------------------------ > > Message: 22 > Date: Thu, 29 Nov 2007 10:38:09 -0000 > From: "Phil Costelloe" > Subject: Re: [Nagios-users] SMS gateway > To: > Message-ID: > Content-Type: text/plain; charset="us-ascii" > > I use Gnokii with a Nokia phone and it works really well but it relies > on a wired or wireless connection (serial, usb, infrared or Bluetooth > according to the website) between the server and the phone. I use some > simple shell scripts to interface between Nagios and Gnokii. It could be > part of what the OP wants if somebody writes (or has already written) an > http-to-gnokii gateway, but then that wouldn't really be a hardware > solution as requested. I've never run across anything that implements > the sending interface and modem hardware in one product but it may be > out there. > > -- > Phil Costelloe > Foundation IT, Hermitage, Berkshire RG18 9SE > (apologies for the top post, we were already on that path) > > > > > -------------------------------------------------------- > > Phil Costelloe > Technical Consultant > > > philc at foundation-it.com > http://www.foundation-it.com > Foundation IT > Foundation Court > Old Street > Oare > Hermitage Berkshire RG18 9SE > Switch: +44 (0) 1635 203700 > Helpdesk: +44 (0) 800 0121099 > DDI: +44 (0) 1635 203719 > Fax: +44 (0) 8700 543537 > Mobile: +44 (0) 7884 236299 > > > > > > > > > > > > -------------------------------------------------------- > > > This message contains confidential information and is intended only for nagios-users at lists.sourceforge.net. If you are not nagios-users at lists.sourceforge.net you should not disseminate, distribute or copy this e-mail. Please notify Foundation IT 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. Foundation IT 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. If verification is required please request a hard-copy version. > > Foundation IT > Registered Office: Foundation Court, Old Street, Oare, Hermitage, Berkshire, RG18 9SE > Registered in England Number 3281803 > -------------------------------------------------------- > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Eric > Frazier > Sent: 28 November 2007 22:16 > To: 'Marcel Hecko'; nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] SMS gateway > > Hi, > > This looks like a winner. Since it is a command line tool it should be > easy > to get working with Nagios. > > http://www.gnokii.org/ > > Others? > > > > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Marcel > Hecko > Sent: Wednesday, November 28, 2007 5:40 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] SMS gateway > > > Hi, does anybody know of any HARDWARE solution into which I would just > stick > GSM SIM card and send SMS messages from Nagios? > Something with ethernet interface - like - I would just call HTTP URI > and > the device will send the SMS text to the number encoded in the HTTP > request > (both - the text and phone number). > > Basically - very basic SMS gateway. With pre-paid sim card that would be > just magic! > > Does something like that exist? Possibly with two-way communitaction? > What price should I be looking at? > > Cheers! > Marcel > > > > ------------------------------ > > Message: 23 > Date: Thu, 29 Nov 2007 10:11:10 -0200 > From: "Dario B. Bestetti" > Subject: [Nagios-users] RES: SMS gateway > To: > Message-ID: > <015301c83280$edcfcb40$c96f61c0$@bestetti at opservices.com.br> > Content-Type: text/plain; charset="iso-8859-1" > > > We use Smstools (http://smstools.meinemullemaus.de/) which works very smoothly, but hardware is always a problems because of cable > and cel devices compatibility. Lately we?ve found a little device from Huawei, the E220 model which connects trhough USB and works > fine. I think the best hw solution would be the Falcon modems, but unfortunately they are hard and expensive to find here. Check > with the guys from Netways (www.netways.de), I believe they have a "ready" package using Falcon as SMS gateway fully integrated with > Nagios. > > []s > _________________________________________________ > Dario B. Bestetti????????OpServices > ??????????????????????????????????R. Luciana de Abreu, 471 - Sala 403 > ??????????????????????????????????Porto Alegre, RS - CEP 90570-060 > Fone 55(51)30613588 Mobile? 55(51)81518218 > Fax???? 55(51)30613588? Email??? dario.bestetti at opservices.com.br > ? > ???????????????"In God we trust, the rest we monitor ..." > _________________________________________________ > > > > -----Mensagem original----- > > De: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] Em > > nome de R.Oxley > > Enviada em: quinta-feira, 29 de novembro de 2007 08:14 > > Para: nagios-users at lists.sourceforge.net > > Assunto: Re: [Nagios-users] SMS gateway > > > > > > > > I use a Nokia 6210e with a data cable connected to the serial port, > > running gnokii to handle sending the SMSs. > > Cheap and functional, > > regards > > Rafe > > > > > > Marcel Hecko wrote: > > > Hi, does anybody know of any HARDWARE solution into which I would just > > > stick GSM SIM card and send SMS messages from Nagios? > > > Something with ethernet interface - like - I would just call HTTP URI and > > > the device will send the SMS text to the number encoded in the HTTP > > > request (both - the text and phone number). > > > > > > Basically - very basic SMS gateway. With pre-paid sim card that would be > > > just magic! > > > > > > Does something like that exist? Possibly with two-way communitaction? > > > What price should I be looking at? > > > > > > Cheers! > > > Marcel > > > > > > ------------------------------------------------------------------------- > > > SF.Net email is sponsored by: The Future of Linux Business White Paper > > > from Novell. From the desktop to the data center, Linux is going > > > mainstream. Let it simplify your IT future. > > > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > > > ::: Messages without supporting info will risk being sent to /dev/null > > > > -- > > > > > > ------------------------------------------------------------------------- > > SF.Net email is sponsored by: The Future of Linux Business White Paper > > from Novell. From the desktop to the data center, Linux is going > > mainstream. Let it simplify your IT future. > > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > ------------------------------ > > Message: 24 > Date: Thu, 29 Nov 2007 14:25:59 +0000 > From: "mark redding" > Subject: [Nagios-users] obsessing and event handlers > To: nagios-users at lists.sourceforge.net > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > Hi all, > > Can anyone here tell me where I'm going wrong in my attempts to > correctly setup a slave nagios server. > > What I have is as follows :- > > 1 master nagios host (running FreeBSD 6.2). This host executes active > checks some of which trigger event handlers (ie. to restart web > servers, etc... the usual stuff). > 1 slave nagios host (running FreeBSD 5.5). This host rsyncs the nagios > configuration files from the master, and performs the check_nagios > plugin to determine if the master is running. If it is not, then it > takes over active checks. > > The above has been setup using the documentation accompanying the > nagios installation and has v 2.10 installed. > > Yesterday I tried to get the slave to receive service check results > from the master by running the nsca daemon on the slave and adding > commands to enable send_nsca on the master to transmit results to the > slave. To achieve this I forced the master to obsess over services and > this all worked correctly. > > However, when I checked the system today I have found that although an > event handler should have been executed overnight, it did NOT get > executed. > The only way I've been able to get the master to actually run the > event handlers as needed has been to disable obsessing on the master - > hence I no longer have the slave passively receiving service check > results. > I've sort of worked round this by enabling a global event handler on > the master which calls the send_nsca command, so at the moment the > slave is passively gettings the changes of state to services (but, as > the http://nagios.sourceforge.net/docs/2_0/distributed.html page says, > "We could use event handlers to report changes in the state of a > service, but that just doesn't cut it.") and the master is happily > executing event handlers as needed. > > Anyone else had this problem with event handlers when obsessing is > enabled ? And does anyone have this working correctly ? > > thanks, > Mark > > > > ------------------------------ > > Message: 25 > Date: Thu, 29 Nov 2007 08:21:47 -0600 > From: mark.potter at academy.com > Subject: Re: [Nagios-users] Dealing with nightly high load > To: nagios-users at lists.sourceforge.net > Message-ID: > > > Content-Type: text/plain; charset="us-ascii" > > Cell: 281-734-6965 > > > nagios-users-bounces at lists.sourceforge.net wrote on 11/29/2007 02:30:20 > AM: > > > All, > > > > I'm trying to deal with a bunch of servers that generate some high load > > during the night. That is, between 00:00 and 06:00 a series of job is > > run that will generate load from 10 to 15. Outside this windows, load > > should be no more than 3. > > > > I have read all the documentation, but I cant find a way to implement > > this in Nagios. I have found 2 options: > > - defining 2 services (load_daily and load_nightly) with different > > tresholds. This will make 2 services show up in nagios that are > > essential the same > > - using escalations to supress messages during the night. This will > > however still show errors in the webinterface and spoil you reports with > > fake errors > > > > How can I tell Nagios that during the day the load should be max 3 > > (warning) and max 5 (critical) but during the night, it's ok if they are > > 8 (warning) and 10 (critical)? I'm sure other people have ran into this > > same problem and found a solution for it? Please share! > > > > I'm running Nagios 2.10 > > > > Thanx for the help. > > > > Met vriendelijke groet/With kind regards, > > > > Jasper Filon > > > > CAIWAY Business > > > > > Jasper, > > I have sort of the same issue and you have already stated the most > expedient, and indeed only, solution that I found. Two services with > different time periods for checking. It's doesn't look as pretty in the > web interface but it works like a charm. The other method would be to > write a wrapper that performs the check and alerts on the value you set > based on time. This wouldn't be hard to do to be honest but it seems like > re-inventing the wheel to some degree. The other question I have is if the > servers are capable of withstanding a load that high why not just have > your high threshold set the same all time? My situation isn't load based > but with the standard Nagios plugin you can alert on any of the three > points that uptime returns (here I make the assumption you are monitoring > *nix boxen). If the situation calls for being able to be alerted to spikes > during normal operating hours then you will either need two checks and > time period for each or a wrapper that checks the time and returns an > alert based on the time and load. > > Best Regards, > > Mark L. Potter > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 26 > Date: Thu, 29 Nov 2007 11:09:43 -0500 > From: "Sean Bowers" > Subject: [Nagios-users] Need help using check_by_ssh with check_disk > To: nagios-users at lists.sourceforge.net > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > I'm running Nagios 2.10 with plugins 1.4.10 running on: > Linux nagioshost 2.6.9-34.ELsmp #1 SMP Fri Feb 24 16:56:28 EST 2006 > x86_64 x86_64 x86_64 GNU/Linux > > System information on the two remote hosts is: > > Linux remotehost1 2.6.9-11.ELsmp #1 SMP Fri May 20 18:26:27 EDT 2005 > i686 i686 i386 GNU/Linux > Linux remotehost2 2.6.9-5.ELsmp #1 SMP Wed Jan 5 19:30:39 EST 2005 > i686 i686 i386 GNU/Linux > > > My check (in commands.cfg as check_disk_by_ssh) is: > > $USER1$/libexec/check_by_ssh -E -i identify.txt -l nagios -H > $HOSTADDRESS$ -C "/usr/lib/nagios/plugins/check_disk -w $ARG1$ -c > $ARG2$" > > The services.cmd has: > > check_disk_by_ssh!10%!5% > > This test runs fine on remotehost1, but on remotehost2 it returns back > "UNKNOWN - check_by_ssh: Remote command > '/usr/lib/nagios/plugins/check_disk -w 10% -c 5%' returned status > 255". At first, I thought this could be a 32 vs. 64-bit issue, but > the Nagios host is 64-bit while both remotes are 32. > > >From the command line, both hosts work fine and 'echo $?' shows 0 for > both. Logging into the remote boxes and running check_disk manually > is fine as well. Using -v doesn't help since it doesn't show tracing > information. > > Does anyone have any ideas or thoughts on this? Are there any other > tricks I can try for debugging this? Any help would be appreciated > immensely. > > Thanks! > > > > ------------------------------ > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: The Future of Linux Business White Paper > from Novell. From the desktop to the data center, Linux is going > mainstream. Let it simplify your IT future. > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > > ------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > End of Nagios-users Digest, Vol 18, Issue 48 > ******************************************** _________________________________________________________________ Explore the seven wonders of the world http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From israel at frontierflying.com Thu Nov 29 18:00:00 2007 From: israel at frontierflying.com (Israel Brewster) Date: Thu, 29 Nov 2007 08:00:00 -0900 Subject: Monitoring Nagios In-Reply-To: References: Message-ID: <5771C2B7-1CD6-479D-8B1B-F683E7797BD8@frontierflying.com> On Nov 28, 2007, at 4:52 AM, Mohr James wrote: > Hi All! > > We had a problem the other day where the nagios process died and no > one > noticed it for over 30 minutes. Therefore, I was thinking about ways > to > monitor Nagios itself. One simply way would be a cronjob that checks > if > the nagios process is running and then uses yaps or something to > send an > SMS. But what about cases where the nagios process is running, but for > whatever reason the messages are not being processed. > > I was thinking about setting up a service that is triggered by a > cronjob > and then sends a notification. This notification writes a flag file > and > every X minutes a cron job checks the age of the flag file. If the > flag > file is too old, it sends an SMS via yaps. > > Rather than re-invent the wheel, I was wondering if other people had > already implemented something similar. > > Regards, > > Jim Mohr For a simple solution that requires no additional software, I just use the check_nagios plugin that comes with nagios, and run it from a script/cron job. This not only checks to see if nagios has crashed, but also checks the age of the status file. If a problem is detected with either (and I have had both situations) the script then first attempts to restart nagios via a full stop/start, then checks again and e-mails me with the result. So far, this has always just been a status notification saying that it had restarted nagios, as the stop/ start has worked as expected, but if for some reason that should fail it would notify me of this fact as well. ----------------------------------------------- Israel Brewster Computer Support Technician Frontier Flying Service Inc. 5245 Airport Industrial Rd Fairbanks, AK 99709 (907) 450-7250 x293 ----------------------------------------------- > > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: The Future of Linux Business White Paper > from Novell. From the desktop to the data center, Linux is going > mainstream. Let it simplify your IT future. > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From reed at reedmedia.net Thu Nov 29 18:05:45 2007 From: reed at reedmedia.net (Jeremy C. Reed) Date: Thu, 29 Nov 2007 11:05:45 -0600 (CST) Subject: hard_check_interval revisited Message-ID: I want my final failed services to be rechecked faster that my normal checks. I want this so I will be notified quicker when the service is successful again. (I already use retry_check_interval with max_check_attempts, but I want an interval when the service is in HARD state.) So I googled "hard_check_interval" and I saw that keyword was mentioned before. This mail from 2003 nagios-devel archive describes it: http://ml.osdir.com/network.nagios.devel/2003-06/msg00064.html Does anything like this exist but maybe with a different configuration name? ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Nov 29 18:44:22 2007 From: marc at ena.com (Marc Powell) Date: Thu, 29 Nov 2007 11:44:22 -0600 Subject: Nagios-users Digest, Vol 18, Issue 48 In-Reply-To: References: Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of NTOUGHE GUY-SERGE > Sent: Thursday, November 29, 2007 10:49 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Nagios-users Digest, Vol 18, Issue 48 > We'll start with the problems at the bottom of your e-mail and work our way up (Subject: [Nagios-users] Need help using check_by_ssh with check_disk). Since the e-mail is quite long, it may take us some time to read through it all. -- Marc ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Nov 29 18:51:35 2007 From: marc at ena.com (Marc Powell) Date: Thu, 29 Nov 2007 11:51:35 -0600 Subject: hard_check_interval revisited In-Reply-To: References: Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Jeremy C. Reed > Sent: Thursday, November 29, 2007 11:06 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] hard_check_interval revisited > > I want my final failed services to be rechecked faster that my normal > checks. I want this so I will be notified quicker when the service is > successful again. (I already use retry_check_interval with > max_check_attempts, but I want an interval when the service is in HARD > state.) > > So I googled "hard_check_interval" and I saw that keyword was mentioned > before. This mail from 2003 nagios-devel archive describes it: > > http://ml.osdir.com/network.nagios.devel/2003-06/msg00064.html > > Does anything like this exist but maybe with a different configuration > name? It does not. Nagios uses normal_check_interval (or check_interval for nagios-3) for checks beyond max_check_attempts (HARD states). -- Marc ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chrisserafin at gmail.com Thu Nov 29 18:59:32 2007 From: chrisserafin at gmail.com (chris serafin) Date: Thu, 29 Nov 2007 11:59:32 -0600 Subject: How to get reboot messages Message-ID: I have a bunch of devices which alert me fine up/down, but I'm looking to find how to get messages when they reboot. Solarwinds does this for me now, but I'm trying to move off this solution, but my boss want reboot messages as well as up/downs for the devices... Any ideas? Chris Serafin chrisserafin at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From btmanmeh at verizon.net Thu Nov 29 19:38:02 2007 From: btmanmeh at verizon.net (Max Hetrick) Date: Thu, 29 Nov 2007 13:38:02 -0500 Subject: How to get reboot messages In-Reply-To: References: Message-ID: <474F070A.1040407@verizon.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 chris serafin wrote: > I have a bunch of devices which alert me fine up/down, but I'm looking > to find how to get messages when they reboot. Solarwinds does this for > me now, but I'm trying to move off this solution, but my boss want > reboot messages as well as up/downs for the devices... > > Any ideas? Are you talking Linux? If not, ignore the rest of this message. :) If so, what about some type of script to write a flag file when the host reboots. Then a script which checks to see if that flag file exists. If it exists, exit with an OK status and delete the flag file. I set something similar to this up yesterday with an AS400 backup. My boss was tired of getting a page off of a completed backup. He set things up to write to an NFS share with a simple touch flag file. I then check to see if that files exists. If the backup completed successfully the night before it sees the file, says ok, deletes the file and exits normally. If the file isn't there, then it exits with an error to which we get notified. #!/bin/bash FILE=/var/flags/AS400_DAILY if [ -f $FILE ]; then echo "OK: AS400 backup completed normally." rm -f $FILE exit 0 else echo "CRIT: AS400 backup error." exit 2 fi A simple script of some sort linked to /etc/init.d could write the flag file after the system boots and disks are mounted. Once that's there, then you can check if the file exists. It's not elegant, but would work. If anyone has a better idea, please chime in. Regards, Max -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFHTwcKHoeeepPau2ERArpDAJ4lVqyC5z2nWt2uBwD+aFiTBGOYQgCgtZ+f rubEvG3ToHPGsm34ubat0UE= =GUQs -----END PGP SIGNATURE----- ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ksumner at physics.unc.edu Thu Nov 29 19:45:11 2007 From: ksumner at physics.unc.edu (Kevin Scott Sumner) Date: Thu, 29 Nov 2007 13:45:11 -0500 (EST) Subject: How to get reboot messages In-Reply-To: <474F070A.1040407@verizon.net> References: <474F070A.1040407@verizon.net> Message-ID: We have our site-specific init script do this on Linux and Solaris. We also dump the users from last into the mail just in case a user rebooted a lab machine. The general algorithm is: -build the input to /usr/lib/sendmail in some file -mail it with `cat $file | /usr/lib/sendmail -oi $emailAddress` -if shutting down, wait 10 seconds (this was for older Solaris, may not be needed) Make it run last on boots and first on shutdowns and you should be good. Cheers, Kevin ----- Kevin Sumner ksumner at physics.unc.edu (919) 962-6494 Assistant Systems Administrator Physics and Astronomy Networking Infrastructure and Computing University of North Carolina at Chapel Hill On Thu, 29 Nov 2007, Max Hetrick wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > chris serafin wrote: >> I have a bunch of devices which alert me fine up/down, but I'm looking >> to find how to get messages when they reboot. Solarwinds does this for >> me now, but I'm trying to move off this solution, but my boss want >> reboot messages as well as up/downs for the devices... >> >> Any ideas? > > Are you talking Linux? If not, ignore the rest of this message. :) > > If so, what about some type of script to write a flag file when the host > reboots. Then a script which checks to see if that flag file exists. If > it exists, exit with an OK status and delete the flag file. > > I set something similar to this up yesterday with an AS400 backup. My > boss was tired of getting a page off of a completed backup. He set > things up to write to an NFS share with a simple touch flag file. > > I then check to see if that files exists. If the backup completed > successfully the night before it sees the file, says ok, deletes the > file and exits normally. If the file isn't there, then it exits with an > error to which we get notified. > > #!/bin/bash > > FILE=/var/flags/AS400_DAILY > > if [ -f $FILE ]; then > echo "OK: AS400 backup completed normally." > rm -f $FILE > exit 0 > else > echo "CRIT: AS400 backup error." > exit 2 > fi > > A simple script of some sort linked to /etc/init.d could write the flag > file after the system boots and disks are mounted. Once that's there, > then you can check if the file exists. > > It's not elegant, but would work. If anyone has a better idea, please > chime in. > > Regards, > Max > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.6 (GNU/Linux) > > iD8DBQFHTwcKHoeeepPau2ERArpDAJ4lVqyC5z2nWt2uBwD+aFiTBGOYQgCgtZ+f > rubEvG3ToHPGsm34ubat0UE= > =GUQs > -----END PGP SIGNATURE----- > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: The Future of Linux Business White Paper > from Novell. From the desktop to the data center, Linux is going > mainstream. Let it simplify your IT future. > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > -- > > ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From josh.yost at epsiia.com Thu Nov 29 19:47:23 2007 From: josh.yost at epsiia.com (Yost, Josh) Date: Thu, 29 Nov 2007 12:47:23 -0600 Subject: How to get reboot messages References: Message-ID: <69AB3F80173BDD46960FB60E86DF94F827E76F@MKEXCHVS2.Mail.Fiserv.net> hi, One simple idea is to use the Uptime number from SNMP ("hrSystemUptime.0"), and if that ever says "0 days" then you get an alert. I have a script that does a little more than this, but that's the basic idea. you should be able to do this with check_snmp (or a quick perl script that uses snmpget and does regular expression matches). - Josh ________________________________ From: nagios-users-bounces at lists.sourceforge.net on behalf of chris serafin Sent: Thu 11/29/2007 11:59 AM To: Nagios-users at lists.sourceforge.net Subject: [Nagios-users] How to get reboot messages I have a bunch of devices which alert me fine up/down, but I'm looking to find how to get messages when they reboot. Solarwinds does this for me now, but I'm trying to move off this solution, but my boss want reboot messages as well as up/downs for the devices... Any ideas? Chris Serafin chrisserafin at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From donnell.lewis at icoretechnology.com Thu Nov 29 19:51:59 2007 From: donnell.lewis at icoretechnology.com (Donnell Lewis) Date: Thu, 29 Nov 2007 13:51:59 -0500 Subject: How to get reboot messages In-Reply-To: References: Message-ID: <1196362319.2411.2.camel@localhost.localdomain> You could also (if it's linux) just put a simple mail command with message in /etc/rc.local which executes after system boot and init. -Don On Thu, 2007-11-29 at 11:59 -0600, chris serafin wrote: > I have a bunch of devices which alert me fine up/down, but I'm looking > to find how to get messages when they reboot. Solarwinds does this for > me now, but I'm trying to move off this solution, but my boss want > reboot messages as well as up/downs for the devices... > > Any ideas? > > Chris Serafin > chrisserafin at gmail.com > ------------------------------------------------------------------------- > SF.Net email is sponsored by: The Future of Linux Business White Paper > from Novell. From the desktop to the data center, Linux is going > mainstream. Let it simplify your IT future. > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From josh.yost at epsiia.com Thu Nov 29 19:56:14 2007 From: josh.yost at epsiia.com (Yost, Josh) Date: Thu, 29 Nov 2007 12:56:14 -0600 Subject: How to get reboot messages References: <69AB3F80173BDD46960FB60E86DF94F827E76F@MKEXCHVS2.Mail.Fiserv.net> Message-ID: <69AB3F80173BDD46960FB60E86DF94F827E770@MKEXCHVS2.Mail.Fiserv.net> if you're trying to check windows boxes, I wouldn't use this snmp value because I don't think it's set reliably. I've been using "check_nt -v UPTIME" for those (but i still think it resets correctly at reboot). Also, it may not say "0 days" (so you could look to see if "days" doesn't show up); it may just give a time such as the following: libexec # snmpget -v1 -c hrSystemUptime.0 HOST-RESOURCES-MIB::hrSystemUptime.0 = Timeticks: (8082663) 22:27:06.63 you'll have to play around w/ it, I guess (sorry for the top-posting). - Josh ________________________________ From: nagios-users-bounces at lists.sourceforge.net on behalf of Yost, Josh Sent: Thu 11/29/2007 12:47 PM To: chris serafin; Nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] How to get reboot messages hi, One simple idea is to use the Uptime number from SNMP ("hrSystemUptime.0"), and if that ever says "0 days" then you get an alert. I have a script that does a little more than this, but that's the basic idea. you should be able to do this with check_snmp (or a quick perl script that uses snmpget and does regular expression matches). - Josh ________________________________ From: nagios-users-bounces at lists.sourceforge.net on behalf of chris serafin Sent: Thu 11/29/2007 11:59 AM To: Nagios-users at lists.sourceforge.net Subject: [Nagios-users] How to get reboot messages I have a bunch of devices which alert me fine up/down, but I'm looking to find how to get messages when they reboot. Solarwinds does this for me now, but I'm trying to move off this solution, but my boss want reboot messages as well as up/downs for the devices... Any ideas? Chris Serafin chrisserafin at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From btmanmeh at verizon.net Thu Nov 29 20:00:26 2007 From: btmanmeh at verizon.net (Max Hetrick) Date: Thu, 29 Nov 2007 14:00:26 -0500 Subject: How to get reboot messages In-Reply-To: <1196362319.2411.2.camel@localhost.localdomain> References: <1196362319.2411.2.camel@localhost.localdomain> Message-ID: <474F0C4A.90707@verizon.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Donnell Lewis wrote: > You could also (if it's linux) just put a simple mail command with > message in /etc/rc.local which executes after system boot and init. > Duh! That's so simple I wasn't even thinking about it. I was thinking of how to have it checked in Nagios, so see it in the web interface that it was rebooted. :) Max -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFHTwxKHoeeepPau2ERAhUYAKCUKiBCtVYhzl8mbBk2l3o5acwtXgCgw4P2 NwcIMRgeKePQOlyhaYsUmKA= =bqYi -----END PGP SIGNATURE----- ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mthomps71 at gmail.com Thu Nov 29 20:01:57 2007 From: mthomps71 at gmail.com (Michael T) Date: Thu, 29 Nov 2007 13:01:57 -0600 Subject: Help with failover Message-ID: <4f5f44cd0711291101o79211ab6g862e640289f6c1b1@mail.gmail.com> I have 2 master servers that attach to a shared NAS which holds the nagios configs and status data basically /etc and /var. When the primary goes down there's an event handler that mounts the NAS on the backup and starts nagios. When I implemented this setup I thought it would be beneficial in the sense that I would have all the status data retained from the primary instance. This is not the case when I initiate a failover the backup system which mounts all the same data that the primary had prior to being brought down doesn't see any saved status data all checks are in a pending state until the distributed servers send new check data via nsca. The other confusing thing is that if I fail it back over to the primary it see's the old saved status data. I'm not sure what I'm missing here can anyone enlighten me? Thanks in advance Michael -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chrisserafin at gmail.com Thu Nov 29 20:10:08 2007 From: chrisserafin at gmail.com (chris serafin) Date: Thu, 29 Nov 2007 13:10:08 -0600 Subject: How to get reboot messages In-Reply-To: References: Message-ID: Thanks for all the replies, these would be Windows servers, Cisco/Juniper devices and Checkpoint boxes running mainly on SPLAT (linux) I prefer to do this with SNMP, as that's how I have done it on Solarwinds. I will be trying the SNMP_uptime command and report my results. Chrisserafin at gmail.com On Nov 29, 2007 12:03 PM, Edwin Zoeller wrote: > You could create a script in /etc/rc2.d or rc3.d that will page/email > upon shutdown/startup. > > ------------------------------ > *From:* nagios-users-bounces at lists.sourceforge.net [mailto: > nagios-users-bounces at lists.sourceforge.net] *On Behalf Of *chris serafin > *Sent:* Thursday, November 29, 2007 12:00 PM > *To:* Nagios-users at lists.sourceforge.net > *Subject:* [Nagios-users] How to get reboot messages > > I have a bunch of devices which alert me fine up/down, but I'm looking to > find how to get messages when they reboot. Solarwinds does this for me now, > but I'm trying to move off this solution, but my boss want reboot messages > as well as up/downs for the devices... > > Any ideas? > > Chris Serafin > chrisserafin at gmail.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From slackamp at gmail.com Thu Nov 29 21:57:07 2007 From: slackamp at gmail.com (slamp slamp) Date: Thu, 29 Nov 2007 15:57:07 -0500 Subject: check_rbl.c in contrib Message-ID: <78926d250711291257h3da0ad88o7b29a05f3aaa0a63@mail.gmail.com> anyone using this? please share how you compiled it and how you are using it. what rbl's is it checking against? ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From s.shipway at auckland.ac.nz Thu Nov 29 21:57:36 2007 From: s.shipway at auckland.ac.nz (Steve Shipway) Date: Fri, 30 Nov 2007 09:57:36 +1300 Subject: How to get reboot messages In-Reply-To: References: Message-ID: <12A6FDDD13C460408A6E47E5DB1235A20188CBF8@UXCHANGE3.UoA.auckland.ac.nz> Here, we do this by checking the uptime of the host/device. For switches etc, this is in the SNMP counter. For windows hosts, it is via check_nt and the UPTIME object. For unix, you just create an appropriate script to run via nrpe. We then do a critical if uptime < 10min. Since hosts are checked every 5min at most then even if the hosts reboots quickly, this will alert. A scheduled outage is OK because the scheduled downtime extends 10min after the reboot. Steve ________________________________ I have a bunch of devices which alert me fine up/down, but I'm looking to find how to get messages when they reboot. Solarwinds does this for me now, but I'm trying to move off this solution, but my boss want reboot messages as well as up/downs for the devices... -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chrisserafin at gmail.com Thu Nov 29 22:08:37 2007 From: chrisserafin at gmail.com (chris serafin) Date: Thu, 29 Nov 2007 15:08:37 -0600 Subject: How to get reboot messages In-Reply-To: <12A6FDDD13C460408A6E47E5DB1235A20188CBF8@UXCHANGE3.UoA.auckland.ac.nz> References: <12A6FDDD13C460408A6E47E5DB1235A20188CBF8@UXCHANGE3.UoA.auckland.ac.nz> Message-ID: So SNMP won't work with Windows? Damn, clients hate extra software. :( Would you be willing to post your commands/services configs? I bet if I see your configs I may be able to replicate it to SNMP/windows. Thanks Chrisserafin at gmail.com On Nov 29, 2007 2:57 PM, Steve Shipway wrote: > Here, we do this by checking the uptime of the host/device. For > switches etc, this is in the SNMP counter. For windows hosts, it is via > check_nt and the UPTIME object. For unix, you just create an appropriate > script to run via nrpe. > > We then do a critical if uptime < 10min. Since hosts are checked every > 5min at most then even if the hosts reboots quickly, this will alert. A > scheduled outage is OK because the scheduled downtime extends 10min after > the reboot. > > > > Steve > > > ------------------------------ > > I have a bunch of devices which alert me fine up/down, but I'm looking to > find how to get messages when they reboot. Solarwinds does this for me now, > but I'm trying to move off this solution, but my boss want reboot messages > as well as up/downs for the devices... > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tdbtdb+nagios at gmail.com Thu Nov 29 22:25:59 2007 From: tdbtdb+nagios at gmail.com (Dave) Date: Thu, 29 Nov 2007 11:25:59 -1000 Subject: Need help using check_by_ssh with check_disk In-Reply-To: <943be0b10711291312l29e26c39qc83c07928fdc0b2f@mail.gmail.com> References: <943be0b10711291312l29e26c39qc83c07928fdc0b2f@mail.gmail.com> Message-ID: <943be0b10711291325r75b2414lb6bf3f8ce254d518@mail.gmail.com> Oops, sent from wrong return address. ---------- Forwarded message ---------- From: Dave Burns Date: Nov 29, 2007 11:12 AM Subject: Re: [Nagios-users] Need help using check_by_ssh with check_disk To: nagios-users at lists.sourceforge.net On Nov 29, 2007 6:09 AM, Sean Bowers wrote: > >From the command line, both hosts work fine and 'echo $?' shows 0 for > both. In a similar situation, I found it helpful to break my command line tests into steps. First ssh directly into the remote as nagios and execute the disk check, as you seem to have done. Then sudo -u nagios ssh -i /var/spool/nagios/.ssh/id_dsa nagios at remote "/usr/lib/nagios/plugins/check_disk -w 10% -c 5% -e -m -p /" to make sure the key is working and the args and path are correct. Then sudo -u nagios /usr/lib/nagios/plugins/check_by_ssh -H linoleum -i /var/spool/nagios/.ssh/id_dsa -C "/usr/lib/nagios/plugins/check_disk -w 10% -c 5% -e -m -p /" If that works, the regular nagios process should work. I once had a sticky problem where I could get the above working, but nagios kept telling me unknown. It turned out I had a subtle little typo in my config that made it different from my command line tests. Headache! HTH, Dave Here are my defs define command{ command_name check_slash_free command_line $USER1$/check_by_ssh -i /var/spool/nagios/.ssh/id_dsa -H $HOSTADDRESS$ -C '$USER1$/check_disk -w $ARG1$ -c $ARG2$ -e -p \/ -m ' } and the service define service { host_name service_description check slash check_command check_slash_free!30%!20% max_check_attempts 3 retry_check_interval 1 normal_check_interval 5 check_period 24x7 notification_interval 120 notification_period 24x7 notification_options w,u,c,r,f contact_groups localadmins } ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From AHKAPLAN at PARTNERS.ORG Thu Nov 29 22:30:48 2007 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Thu, 29 Nov 2007 16:30:48 -0500 Subject: Check_SMTP plugin Problem Message-ID: Hi there - I want to monitor the status of our Sendmail server, and I plan on using the check_smtp plugin. When I manually run the plugin using the following syntax: ./check_smtp -H The output I get is the following: Connection refused SMTP CRITICAL - 0.000 sec. response time|time=0.000473s;;;0.000000 The server is outside the company's firewall, but it is able to be monitored via port 5666. What steps can I take to enable the use of this plugin? The Nagios server are both version 2.6. Thanks. The information transmitted in this electronic communication is intended only for the person or entity to whom it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this information in error, please contact the Compliance HelpLine at 800-856-1983 and properly dispose of this information. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From btmanmeh at verizon.net Thu Nov 29 22:38:02 2007 From: btmanmeh at verizon.net (Max Hetrick) Date: Thu, 29 Nov 2007 16:38:02 -0500 Subject: Check_SMTP plugin Problem In-Reply-To: References: Message-ID: <474F313A.3070203@verizon.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Kaplan, Andrew H. wrote: > > The server is outside the company?s firewall, but it is able to be > monitored via port 5666. What steps can I take to enable the use of this > plugin? The Nagios Read the help on the plugin. ./check_smtp --help ./check_smtp -H HOST -p 5666 # specify the port Regards, Max -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFHTzE6HoeeepPau2ERAp0nAKCekPQyym9WjG9GnvosqrDYcDS+MgCeKbtt smwA2hbI00BBoA0v4pgvlP4= =k9Xp -----END PGP SIGNATURE----- ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From AHKAPLAN at PARTNERS.ORG Thu Nov 29 22:42:20 2007 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Thu, 29 Nov 2007 16:42:20 -0500 Subject: Check_SMTP plugin Problem In-Reply-To: <474F313A.3070203@verizon.net> References: <474F313A.3070203@verizon.net> Message-ID: Hi there -- I tried the command syntax you suggested, and the output was the following: Invalid SMTP response received from host on port 5666 -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Max Hetrick Sent: Thursday, November 29, 2007 4:38 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Check_SMTP plugin Problem -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Kaplan, Andrew H. wrote: > > The server is outside the company's firewall, but it is able to be > monitored via port 5666. What steps can I take to enable the use of this > plugin? The Nagios Read the help on the plugin. ./check_smtp --help ./check_smtp -H HOST -p 5666 # specify the port Regards, Max -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFHTzE6HoeeepPau2ERAp0nAKCekPQyym9WjG9GnvosqrDYcDS+MgCeKbtt smwA2hbI00BBoA0v4pgvlP4= =k9Xp -----END PGP SIGNATURE----- ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 transmitted in this electronic communication is intended only for the person or entity to whom it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this information in error, please contact the Compliance HelpLine at 800-856-1983 and properly dispose of this information. ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From BStover at NorcalMutual.com Thu Nov 29 22:42:45 2007 From: BStover at NorcalMutual.com (Stover, Beth) Date: Thu, 29 Nov 2007 13:42:45 -0800 Subject: NRPE_NT Error: NRPE_NT failed to create process, exiting... Message-ID: <712A35065082D1498246BF2070D864675CFDEE@norcalex2.norcalmutual.com> Hi there, I'm trying to use NRPE to monitor remote Windows XP machines for the first time. Nagios version 2.8. I have installed check_nrpe on the Nagios server. Windows XP SP2 is the remote host. I installed NRPE_NT Version: 0.7f/2.0 on the XP machine. I edited the nrpe.cfg with the basic info including the following command definition: command[check_cmd]=c:\nrpe\test.cmd Test.cmd is on the XP machine in the following location: c:\nrpe\test.cmd. Here are the contents: @echo off echo hallo from cmd exit 1 I do a basic test from the Nagios server like this and it works: /usr/local/nagios/libexec/check_nrpe -H 192.168.1.10 NRPE_NT v0.7f/2.0 Next, I try executing the remote cmd file, and this is where I get the error: /usr/local/nagios/libexec/check_nrpe -H 192.168.1.10 -c check_cmd NRPE_NT failed to create process, exiting... There's nothing in the Windows event log. Nothing interesting in the nagios.log. Am I missing something totally simple? Thanks so much... Beth Stover Systems Administrator 415.395.8768 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stava at telcotec.se Thu Nov 29 22:46:30 2007 From: stava at telcotec.se (stava) Date: Thu, 29 Nov 2007 22:46:30 +0100 Subject: =?utf-8?q?Check=5FSMTP_plugin_Problem?= In-Reply-To: References: Message-ID: <40bab5296b0655bbd932b92ebfcfd5d4@imap.telcotec.se> On Thu, 29 Nov 2007 16:42:20 -0500, "Kaplan, Andrew H." wrote: > Hi there -- > > I tried the command syntax you suggested, and the output was the > following: > > Invalid SMTP response received from host on port 5666 And what do you suppose that could mean? I wild guess: there's no SMTP server listening on port 5666. Cheers /Lars > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Max > Hetrick > Sent: Thursday, November 29, 2007 4:38 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Check_SMTP plugin Problem > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Kaplan, Andrew H. wrote: > >> >> The server is outside the company's firewall, but it is able to be >> monitored via port 5666. What steps can I take to enable the use of this >> plugin? The Nagios > > Read the help on the plugin. > > ./check_smtp --help > > ./check_smtp -H HOST -p 5666 # specify the port > > Regards, > Max > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.6 (GNU/Linux) > > iD8DBQFHTzE6HoeeepPau2ERAp0nAKCekPQyym9WjG9GnvosqrDYcDS+MgCeKbtt > smwA2hbI00BBoA0v4pgvlP4= > =k9Xp > -----END PGP SIGNATURE----- > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: The Future of Linux Business White Paper > from Novell. From the desktop to the data center, Linux is going > mainstream. Let it simplify your IT future. > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 transmitted in this electronic communication is intended > only > for the person or entity to whom it is addressed and may contain > confidential > and/or privileged material. Any review, retransmission, dissemination or > other > use of or taking of any action in reliance upon this information by > persons or > entities other than the intended recipient is prohibited. If you received > this > information in error, please contact the Compliance HelpLine at > 800-856-1983 and > properly dispose of this information. > > > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: The Future of Linux Business White Paper > from Novell. From the desktop to the data center, Linux is going > mainstream. Let it simplify your IT future. > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Lars Stavholm ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From btmanmeh at verizon.net Thu Nov 29 23:03:48 2007 From: btmanmeh at verizon.net (Max Hetrick) Date: Thu, 29 Nov 2007 17:03:48 -0500 Subject: Check_SMTP plugin Problem In-Reply-To: <40bab5296b0655bbd932b92ebfcfd5d4@imap.telcotec.se> References: <40bab5296b0655bbd932b92ebfcfd5d4@imap.telcotec.se> Message-ID: <474F3744.6070602@verizon.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 stava wrote: > On Thu, 29 Nov 2007 16:42:20 -0500, "Kaplan, Andrew H." wrote: >> Hi there -- >> >> I tried the command syntax you suggested, and the output was the >> following: >> >> Invalid SMTP response received from host on port 5666 > > And what do you suppose that could mean? > > I wild guess: there's no SMTP server listening on port 5666. > Or your firewall isn't allowing it through. I'd check that first. Regards, Max -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFHTzdEHoeeepPau2ERApPEAJoDBjsLcoHL0MHvF7GYY5l4YJcAgQCg2JsN aC+Fk0Xc/pdPMXSnhq2kVt4= =M2qE -----END PGP SIGNATURE----- ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jriggin at gmail.com Thu Nov 29 23:05:53 2007 From: jriggin at gmail.com (Jerad Riggin) Date: Thu, 29 Nov 2007 16:05:53 -0600 Subject: String errors Message-ID: <66955c170711291405k6d6895c2icdbc3f32ff9973ee@mail.gmail.com> Ok, so I'm monitoring about 100 websites with string checks via check_http. We are mirroring what our datacenter actually checks, so we have notifications turned off so when a site goes down we aren't being spammed by the datacenter and our nagios installation. The issue is that every once in awhile a string changes on the site so it goes critical in our nagios. We perhaps won't notice it for a day which messes up our availability reports. Is there a way to retroactively mark the time that it was critical as scheduled downtime? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mail at aidananderson.co.uk Fri Nov 30 01:24:51 2007 From: mail at aidananderson.co.uk (Aidan Anderson) Date: Fri, 30 Nov 2007 00:24:51 +0000 Subject: String errors In-Reply-To: <66955c170711291405k6d6895c2icdbc3f32ff9973ee@mail.gmail.com> References: <66955c170711291405k6d6895c2icdbc3f32ff9973ee@mail.gmail.com> Message-ID: <474F5853.8010301@aidananderson.co.uk> Jerad Riggin wrote: > Ok, so I'm monitoring about 100 websites with string checks via > check_http. We are mirroring what our datacenter actually checks, so > we have notifications turned off so when a site goes down we aren't > being spammed by the datacenter and our nagios installation. > > The issue is that every once in awhile a string changes on the site so > it goes critical in our nagios. We perhaps won't notice it for a day > which messes up our availability reports. Is there a way to > retroactively mark the time that it was critical as scheduled downtime? I'm not aware of any way to retrospectively schedule downtime but you could probably solve your problem by adjusting your checking procedure. Assuming you or a colleague has access to change the html on your websites, you could have a standard string of text that you add to all your websites so that Nagios is checking the same text on each site. Whenever a new site is added, just make sure that your standard text string is added and you will avoid this problem in the first place. hth Aidan ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nickpratley1984 at gmail.com Fri Nov 30 04:20:18 2007 From: nickpratley1984 at gmail.com (Nick Pratley) Date: Fri, 30 Nov 2007 13:20:18 +1000 Subject: SMS notification commands Message-ID: <000301c832ff$f120ff60$d362fe20$@com> Hi, I need to be able to send notifications via SMS in the event that the email servers are unavailable, or the internet connection is down. There is a server on the same network as the Nagios host that has a modem installed and uses SMS Tools 3 to send messages. To send a message all I need to do is place a file in a certain directory on that server, in a simple format, and it does the rest. So, I created a script called 'notify-by-sms' in /usr/local/nagios/libexec which is as follows: TMPFILE=`/bin/mktemp notify.XXXXXX` /bin/echo -e $1 > $TMPFILE /usr/bin/scp $TMPFILE sms-server:/var/spool/sms/outgoing/ rm $TMPFILE The script is owned by the user nagios and is executable. To run it I just need to pass it a string like "To: \n\n" as the only parameter. If I run it from the command line while logged in as nagios it works fine. I have the following in commands.cfg which I adapted from notify-service-by-email and notify-host-by-email: # 'notify-host-by-sms' command definition define command{ command_name notify-host-by-sms command_line /usr/local/nagios/libexec/notify-by-sms "To: $CONTACTPAGER$\n\n***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" } # 'notify-service-by-sms' command definition define command{ command_name notify-service-by-sms command_line /usr/local/nagios/libexec/notify-by-sms "To: $CONTACTPAGER$\n\n***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" } I see the following in /usr/local/nagios/var/nagios.log, as an example (I have replaced some things with <...>): [1196327641] SERVICE NOTIFICATION: ;;SyncServer;CRITICAL;notify-service-by-sms;CRITICA L - Error Fetching http:///sync/ds [503] Service Temporarily Unavailable however the sms is not received. It does not even appear in the log on the SMS server which indicates the script isn't running or isn't able to scp the file to that server. I am using public key authentication to negate the need for a SSH password to be entered. Any ideas what the problem could be, when it runs manually from the command line but not through the nagios daemon? Thank you, Nick -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 inatick.com Fri Nov 30 05:32:39 2007 From: nagios at inatick.com (Peter Hallam) Date: Fri, 30 Nov 2007 13:32:39 +0900 Subject: SMS notification commands In-Reply-To: <000301c832ff$f120ff60$d362fe20$@com> References: <000301c832ff$f120ff60$d362fe20$@com> Message-ID: <20071130043239.GA32582@ip-72-167-16-201.ip.secureserver.net> On Fri, 30 Nov, 13:20 +1000 Nick Pratley wrote: > Hi, I need to be able to send notifications via SMS in the event that the > email servers are unavailable, or the internet connection is down. There is > a server on the same network as the Nagios host that has a modem installed > and uses SMS Tools 3 to send messages. To send a message all I need to do is > place a file in a certain directory on that server, in a simple format, and > it does the rest. > > Any ideas what the problem could be, when it runs manually from the command > line but not through the nagios daemon? Having just solved this problem this week: chmod g+w /var/spool/sms/outgoing chgrp nagios /var/spool/sms/outgoing This should enable nagios to write to the directory using your script. Regards, Peter. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nickpratley1984 at gmail.com Fri Nov 30 06:24:36 2007 From: nickpratley1984 at gmail.com (Nick Pratley) Date: Fri, 30 Nov 2007 15:24:36 +1000 Subject: SMS notification commands In-Reply-To: <20071130043239.GA32582@ip-72-167-16-201.ip.secureserver.net> References: <000301c832ff$f120ff60$d362fe20$@com> <20071130043239.GA32582@ip-72-167-16-201.ip.secureserver.net> Message-ID: <001d01c83311$4fa149d0$eee3dd70$@com> Thanks for the reply Peter, however that isn't what the problem is in my case. The /var/spool/sms/outgoing directory on that server is in fact world-writable. And as I said I can run it from the command line successfully while logged in as the nagios user, which I wouldn't be able to do if the permissions were not right. Keep in mind that SMS Tools is running on a different server, and I'm using SCP to copy the file to that server. Any other ideas? Thanks anyway. -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Peter Hallam Sent: Friday, 30 November 2007 2:33 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] SMS notification commands Having just solved this problem this week: chmod g+w /var/spool/sms/outgoing chgrp nagios /var/spool/sms/outgoing This should enable nagios to write to the directory using your script. Regards, Peter. ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 inatick.com Fri Nov 30 06:39:50 2007 From: nagios at inatick.com (Peter Hallam) Date: Fri, 30 Nov 2007 14:39:50 +0900 Subject: SMS notification commands In-Reply-To: <001d01c83311$4fa149d0$eee3dd70$@com> References: <000301c832ff$f120ff60$d362fe20$@com> <20071130043239.GA32582@ip-72-167-16-201.ip.secureserver.net> <001d01c83311$4fa149d0$eee3dd70$@com> Message-ID: <20071130053950.GB32582@ip-72-167-16-201.ip.secureserver.net> On Fri, 30 Nov, 15:24 +1000 Nick Pratley wrote: > Thanks for the reply Peter, however that isn't what the problem is in my > case. The /var/spool/sms/outgoing directory on that server is in fact > world-writable. And as I said I can run it from the command line > successfully while logged in as the nagios user, which I wouldn't be able to > do if the permissions were not right. > > Keep in mind that SMS Tools is running on a different server, and I'm using > SCP to copy the file to that server. Ah I overlooked it was being copied to a remote server. As for running as the user nagios, how did you achieve that - with su or logging in directly? I found that su doesn't work as expected. Anyhow, as you say the outgoing dir is world-writeable on the remote server, then it should work AFAIK - though why don't you move the notify-by-sms script to the remote server and have a sommand on the nagios server such as: define command { command_name notify-host-by-sms command_line /usr/bin/ssh root at remotemachine "/some/path/notify-by-sms $CONTACTPAGER$ \"$TIME$ $HOSTALIAS$ $HOSTSTATE$ $NOTIFICATIONTYPE$ $HOSTOUTPUT$\"" } In my mind it's cleaner than the scp method, though whether or not it'll work or not I'm not sure! Regards, Peter -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Nov 30 09:06:11 2007 From: ae at op5.se (Andreas Ericsson) Date: Fri, 30 Nov 2007 09:06:11 +0100 Subject: hard_check_interval revisited In-Reply-To: References: Message-ID: <474FC473.50006@op5.se> Jeremy C. Reed wrote: > I want my final failed services to be rechecked faster that my normal > checks. I want this so I will be notified quicker when the service is > successful again. (I already use retry_check_interval with > max_check_attempts, but I want an interval when the service is in HARD > state.) > > So I googled "hard_check_interval" and I saw that keyword was mentioned > before. This mail from 2003 nagios-devel archive describes it: > > http://ml.osdir.com/network.nagios.devel/2003-06/msg00064.html > > Does anything like this exist but maybe with a different configuration > name? > No, but it would be positively trivial to implement. If a patch comes in that implements this in a clean way, I'd ack it without hesitation. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mwjredding at gmail.com Fri Nov 30 09:47:57 2007 From: mwjredding at gmail.com (mark redding) Date: Fri, 30 Nov 2007 08:47:57 +0000 Subject: Help with failover In-Reply-To: <4f5f44cd0711291101o79211ab6g862e640289f6c1b1@mail.gmail.com> References: <4f5f44cd0711291101o79211ab6g862e640289f6c1b1@mail.gmail.com> Message-ID: Hi Michael, I tried doing a very similar thing (only difference was that I was scp'ing the data between hosts) and experienced the same as you have. It seems that the only way to retain status data is by using the nsca server/client - and having the primary post its active check results (either with a global event handler or by enabling obsessing (but beware, I could not get event handlers to run when obsessing was active)) to the secondary (with the secondary running the nsca daemon and having passive checks enabled), having the secondary periodically checking that the primary is running (using check_nagios) and having the secondary enable active checks and notifications when it detects that the primary is down (and subsequently disabling these once the primary is detected) regards, Mark On 29/11/2007, Michael T wrote: > I have 2 master servers that attach to a shared NAS which holds the nagios > configs and status data basically /etc and /var. When the primary goes down > there's an event handler that mounts the NAS on the backup and starts > nagios. When I implemented this setup I thought it would be beneficial in > the sense that I would have all the status data retained from the primary > instance. This is not the case when I initiate a failover the backup system > which mounts all the same data that the primary had prior to being brought > down doesn't see any saved status data all checks are in a pending state > until the distributed servers send new check data via nsca. The other > confusing thing is that if I fail it back over to the primary it see's the > old saved status data. > > I'm not sure what I'm missing here can anyone enlighten me? > > Thanks in advance > Michael > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: The Future of Linux Business White Paper > from Novell. From the desktop to the data center, Linux is going > mainstream. Let it simplify your IT future. > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- bright blessings, Mark ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mwjredding at gmail.com Fri Nov 30 10:05:22 2007 From: mwjredding at gmail.com (mark redding) Date: Fri, 30 Nov 2007 09:05:22 +0000 Subject: SMS notification commands In-Reply-To: <000301c832ff$f120ff60$d362fe20$@com> References: <000301c832ff$f120ff60$d362fe20$@com> Message-ID: Hi, A couple of questions for you. 1. When you run this interactively are you doing so from the account that nagios is running under ? This could be the cause if the ssh key information is not present for the 'nagios' account. 2. Have you defined the contact name correctly :- for example, I have the following in my config for my on-call sysadmin. define contact{ use mark contact_name oncall alias On Call Sys Admin service_notification_options c,r host_notification_options d,r service_notification_commands service-notify-by-sms host_notification_commands host-notify-by-sms } and :- define contact{ name mark contact_name mark alias Mark Redding service_notification_period 24x7 host_notification_period 24x7 service_notification_options c,r host_notification_options d,r service_notification_commands service-notify-by-email host_notification_commands host-notify-by-email,host-notify-by-sms email mwjredding at gmail.com pager 44???????? } regards, Mark this is in addition to the usual define contactgroup { contactgroup_name admin alias System Administrators members nagaios,mark,fred,oncall } On 30/11/2007, Nick Pratley wrote: > > > > > Hi, I need to be able to send notifications via SMS in the event that the > email servers are unavailable, or the internet connection is down. There is > a server on the same network as the Nagios host that has a modem installed > and uses SMS Tools 3 to send messages. To send a message all I need to do is > place a file in a certain directory on that server, in a simple format, and > it does the rest. > > > > So, I created a script called 'notify-by-sms' in /usr/local/nagios/libexec > which is as follows: > > > > TMPFILE=`/bin/mktemp notify.XXXXXX` > > /bin/echo -e $1 > $TMPFILE > > /usr/bin/scp $TMPFILE sms-server:/var/spool/sms/outgoing/ > > rm $TMPFILE > > > > The script is owned by the user nagios and is executable. To run it I just > need to pass it a string like "To: \n\n" as the > only parameter. If I run it from the command line while logged in as nagios > it works fine. > > > > I have the following in commands.cfg which I adapted from > notify-service-by-email and notify-host-by-email: > > > > # 'notify-host-by-sms' command definition > > define command{ > > command_name notify-host-by-sms > > command_line /usr/local/nagios/libexec/notify-by-sms "To: > $CONTACTPAGER$\n\n***** Nagios *****\n\nNotification Type: > $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: HOSTSTATE$\nAddress: > $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" > > } > > > > # 'notify-service-by-sms' command definition > > define command{ > > command_name notify-service-by-sms > > command_line /usr/local/nagios/libexec/notify-by-sms "To: > $CONTACTPAGER$\n\n***** Nagios *****\n\nNotification Type: > $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: HOSTALIAS$\nAddress: > $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: > $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" > > > > } > > > > I see the following in /usr/local/nagios/var/nagios.log, as > an example (I have replaced some things with <...>): > > > > [1196327641] SERVICE NOTIFICATION: > ;;SyncServer;CRITICAL;notify-service-by-sms;CRITICAL > - Error Fetching http:///sync/ds [503] Service Temporarily > Unavailable > > > > however the sms is not received. It does not even appear in the log on the > SMS server which indicates the script isn't running or isn't able to scp the > file to that server. I am using public key authentication to negate the need > for a SSH password to be entered. > > > > Any ideas what the problem could be, when it runs manually from the command > line but not through the nagios daemon? > > > > Thank you, > > Nick > > > > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: The Future of Linux Business White Paper > from Novell. From the desktop to the data center, Linux is going > mainstream. Let it simplify your IT future. > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- bright blessings, Mark ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ntoughe at hotmail.com Fri Nov 30 10:19:36 2007 From: ntoughe at hotmail.com (NTOUGHE GUY-SERGE) Date: Fri, 30 Nov 2007 09:19:36 +0000 Subject: Hostextinfo.cfg configuration problems In-Reply-To: References: Message-ID: Hi All, Below you'll find the message i had sent yesterday, but i apologize for the subject of my first message. I want to define 3D drawing by defining hostextinfo.cfg and seviceextinfo.cfg when i launched the checking of nagios *.cfg files : /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg i got this error message: Error: Could not add duplicate hostextinfo entry for host 'americano'.Error: Could not allocate memory for hostextinfo list to add extended info for host 'americano'.Error: Could not register extended host information (config file '/usr/local/nagios/etc/servers/hostextinfo.cfg', starting on line 6) I defined host americano in the differents file it has to be : host.cfg hostgroups.cfg services.cfg servicegroups.cfg If you have experienced such a problem, could you please give me a clue for solving this little headache? Regards. ntoughe at hotmail.com _________________________________________________________________ Explore the seven wonders of the world http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gcoochey at sapphire.gi Fri Nov 30 10:28:03 2007 From: gcoochey at sapphire.gi (Giles Coochey) Date: Fri, 30 Nov 2007 10:28:03 +0100 Subject: Hostextinfo.cfg configuration problems In-Reply-To: References: Message-ID: <9D30659ABCA7FB428CF91E386C3A5744A5A017@hermes.sapphire-int.gi> >Error: Could not add duplicate hostextinfo entry for host 'americano'. Start with the first error. Duplicate hostextinfo information for host Americano... Do a grep (type 'man grep' for the manual page on how to use it) for the Americano host and check that you have not defined this in multiple locations. Once you've resolved this, rerun the pre-flight check and proceed on to the next problem, if any. ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gcoochey at sapphire.gi Fri Nov 30 10:30:00 2007 From: gcoochey at sapphire.gi (Giles Coochey) Date: Fri, 30 Nov 2007 10:30:00 +0100 Subject: Hostextinfo.cfg configuration problems In-Reply-To: References: Message-ID: <9D30659ABCA7FB428CF91E386C3A5744A5A018@hermes.sapphire-int.gi> >Error: Could not allocate memory for hostextinfo list to add extended info for host 'americano'. >Error: Could not register extended host information (config file '/usr/local/nagios/etc/servers/hostextinfo.cfg', starting on line 6) Also, for your other errors, you may want to check that you are not parsing multiple configuration files, by having conflicting cfg_file & cfg_dir directives in Nagios.cfg. ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gcoochey at sapphire.gi Fri Nov 30 10:49:39 2007 From: gcoochey at sapphire.gi (Giles Coochey) Date: Fri, 30 Nov 2007 10:49:39 +0100 Subject: Nagios and IM notification In-Reply-To: <4b008f7d0710260403h189ae439k3bf3c2af08edfeda@mail.gmail.com> References: <4b008f7d0710250927u1746f02dldd0c57999e428bdd@mail.gmail.com><1193380509.9005.39.camel@bofh.dtnet.de><4b008f7d0710260115j51229b8emb7d8692431f5351c@mail.gmail.com><1193391532.18978.2.camel@bofh.dtnet.de><4b008f7d0710260245m63ee7a08gccc374499991632@mail.gmail.com><1193392612.18978.7.camel@bofh.dtnet.de><4b008f7d0710260341o4f9d9ae6x345fa923dfcaa1b7@mail.gmail.com><1193395611.18978.9.camel@bofh.dtnet.de> <4b008f7d0710260403h189ae439k3bf3c2af08edfeda@mail.gmail.com> Message-ID: <9D30659ABCA7FB428CF91E386C3A5744A5A01D@hermes.sapphire-int.gi> Have either of you had any luck with centerim? I have centerim running as the Nagios user, and if I run the centerim on the command line then I am able to send messages, but for some obscure reason I cannot get the command to work within Nagios, this is my command: # 'notify-by-jabber' command definition define command{ command_name notify-by-jabber command_line /usr/bin/printf "%b" "Service: $SERVICEDESC$ - Host: $HOSTNAME$ - Address: $HOSTADDRESS$ - State: $SERVICESTATE$ - Info: $SERVICEOUTP UT$ - Date: $LONGDATETIME$" | /usr/local/bin/centerim -s msg -p jab -t $CONTACTPAGER$ } I've tried both printf and echo, but centerim never seems to get the results. I am unsure how centerim does its IPC? ________________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Alex Dehaini Sent: 26 October 2007 13:04 To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Nagios and IM notification In that case I will give it a spin. Are there instructions on how to integrate it with nagios? On 10/26/07, Sebastian Ries < Sebastian.Ries at dtnet.de> wrote: Hi Am Freitag, den 26.10.2007, 10:41 +0000 schrieb Alex Dehaini: > Can it send service and host notification to yahoo IM? > As centerim can connect to the yahoo network, yes ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ntoughe at hotmail.com Fri Nov 30 11:20:43 2007 From: ntoughe at hotmail.com (NTOUGHE GUY-SERGE) Date: Fri, 30 Nov 2007 10:20:43 +0000 Subject: Hostextinfo.cfg configuration problems In-Reply-To: <9D30659ABCA7FB428CF91E386C3A5744A5A018@hermes.sapphire-int.gi> References: <9D30659ABCA7FB428CF91E386C3A5744A5A018@hermes.sapphire-int.gi> Message-ID: Hi Giles, You 're rigth, i uncommented out these lines in my nagios.cfg file: cfg_file=/usr/local/nagios/etc/servers/hostextinfo.cfgcfg_file=/usr/local/nagios/etc/servers/serviceextinfo.cfg Although i asked nagios to process all config files in a particular directory by defining this directive: cfg_dir=/usr/local/nagios/etc/servers where are located all my *.cfg files (configuration files). Normaly i have to comment them out like this #cfg_file=/usr/local/nagios/etc/servers/hostextinfo.cfg#cfg_file=/usr/local/nagios/etc/servers/serviceextinfo.cfg and let the cfg_dir line in nagios.cfg. THANKS A LOT GURU regards ntoughe at hotmail.com > Subject: RE: [Nagios-users] Hostextinfo.cfg configuration problems > Date: Fri, 30 Nov 2007 10:30:00 +0100 > From: gcoochey at sapphire.gi > To: ntoughe at hotmail.com > CC: nagios-users at lists.sourceforge.net > > >Error: Could not allocate memory for hostextinfo list to add extended > info for host 'americano'. > >Error: Could not register extended host information (config file > '/usr/local/nagios/etc/servers/hostextinfo.cfg', starting on line 6) > > > Also, for your other errors, you may want to check that you are not > parsing multiple configuration files, by having conflicting cfg_file & > cfg_dir directives in Nagios.cfg. _________________________________________________________________ Discover the new Windows Vista http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lars at linux-schulserver.de Fri Nov 30 17:10:34 2007 From: lars at linux-schulserver.de (Lars Vogdt) Date: Fri, 30 Nov 2007 17:10:34 +0100 Subject: Patches for NagiosGrapher Message-ID: <648024fb43c9592f4a1d9ac562ccbc0d@localhost> Hi Marius Hein, Christian D?bler and Gerd Mueller I'm currently trying to build a RPM for openSUSE. By doing this, I have created the following patches and would be very happy if you can apply them in the main source: config.layout patch: I have to adapt the configure.ac script so it allows me to build with prefix='/'. Index: config.layout =================================================================== --- config.layout.orig +++ config.layout @@ -205,3 +205,24 @@ init_script_dir: /etc/init.d logrotate_conf_dir: /etc/logrotate.d + +# layout for suse rpm install + + prefix: / + nagios_config: ${prefix}etc/nagios/nagios.cfg + nagios_config_cgi: ${prefix}etc/nagios/cgi.cfg + nagios_images: ${prefix}usr/share/nagios/images + nagios_images_logos: ${prefix}usr/share/nagios/images/logos + nagios_folder_cgi: ${prefix}usr/lib/nagios/cgi + perl_inc: ${libdir}/perl5/vendor_perl/5.8.8 + nagios_contribution: ${prefix}usr/lib/nagios/contrib + ng_config: ${prefix}etc/nagios + ng_config_sub: ${prefix}etc/nagios/ngraph.d + ng_daemon: ${prefix}var/run/nagiosgrapher + ng_srvext_file: ${prefix}etc/nagios/serviceextinfo.cfg + ng_srvext_dir: ${prefix}etc/nagios/serviceext + ng_interface_pipe: ${prefix}var/run/nagiosgrapher/ngraph.pipe + ng_logfile: ${prefix}var/log/nagios/ngraph.log + ng_rrd: ${prefix}var/lib/nagios/rrd + ng_rrd_font: ${prefix}usr/share/fonts/truetype/DejaVuSansMono.ttf + Index: configure.ac =================================================================== --- configure.ac.orig +++ configure.ac @@ -212,10 +212,6 @@ AC_MSG_RESULT([invalid! Please check your layout.]) exit 1 fi - if test "x${exp_prefix}" = "x/"; then - AC_MSG_RESULT([is '/'! Please check your layout]) - exit 1 - fi AC_MSG_RESULT([set to '${exp_prefix}']) ] ) Next patch is a bit more interesting even for other distributions, I think. I patched cfg/ngraph.ncfg.in, configure.ac, config.layout and Makefile.in so you can set a "ng_tmp_path" (default /tmp/nagiosgrapher) in the config.layout file. Index: cfg/ngraph.ncfg.in =================================================================== --- cfg/ngraph.ncfg.in.orig +++ cfg/ngraph.ncfg.in @@ -23,7 +23,7 @@ heartbeat AUTO rrdpath @NG_RRD@/ - tmppath /tmp/nagiosgrapher/ + tmppath @NG_TMPPATH@ fontfile @NG_RRD_FONT@ Index: configure.ac =================================================================== --- configure.ac.orig +++ configure.ac @@ -115,6 +115,7 @@ NG_SUBST_EXPANDED_ARG(ng_logfile) NG_SUBST_EXPANDED_ARG(ng_rrd) NG_SUBST_EXPANDED_ARG(ng_rrd_font) + NG_SUBST_EXPANDED_ARG(ng_tmp_path) NG_SUBST_EXPANDED_ARG(ng_cgi) NG_SUBST_EXPANDED_ARG(ng_logos) NG_SUBST_EXPANDED_ARG(ng_pid_file) @@ -430,6 +431,7 @@ AC_SUBST([NG_LOGFILE], ${exp_ng_logfile}) AC_SUBST([NG_RRD], ${exp_ng_rrd}) AC_SUBST([NG_RRD_FONT], ${exp_ng_rrd_font}) +AC_SUBST([NG_TMPPATH], ${exp_ng_tmp_path}) AC_SUBST([NG_CGI], ${exp_ng_cgi}) AC_SUBST([NG_LOGOS], ${exp_ng_logos}) AC_SUBST([NG_PREFIX], ${exp_prefix}) Index: config.layout =================================================================== --- config.layout.orig +++ config.layout @@ -19,6 +19,7 @@ ng_logfile: ${prefix}/var/ngraph.log ng_rrd: ${prefix}/var/rrd ng_rrd_font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed.ttf + ng_tmp_path: /tmp/nagiosgrapher ng_cgi: /nagios/cgi-bin ng_logos: /nagios/images/logos ng_pid_file: ${ng_daemon}/nagios_grapher.pid @@ -45,6 +46,7 @@ ng_logfile: ${prefix}/var/ngraph.log ng_rrd: ${prefix}/var/rrd ng_rrd_font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed.ttf + ng_tmp_path: /tmp/nagiosgrapher ng_cgi: /nagios/cgi-bin ng_logos: /nagios/images/logos ng_pid_file: ${ng_daemon}/nagios_grapher.pid @@ -71,6 +73,7 @@ ng_logfile: /var/log/nagiosgrapher/ngraph.log ng_rrd: /var/lib/nagiosgrapher/rrd ng_pid_file: ${ng_daemon}/nagios_grapher.pid + ng_tmp_path: /tmp/nagiosgrapher init_script_dir: /etc/init.d logrotate_conf_dir: /etc/logrotate.d @@ -94,6 +97,7 @@ ng_logfile: ${prefix}/var/ngraph.log ng_rrd: ${prefix}/var/rrd ng_rrd_font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed.ttf + ng_tmp_path: /tmp/nagiosgrapher ng_cgi: /nagios/cgi-bin ng_logos: /nagios/images/logos ng_pid_file: ${ng_daemon}/nagios_grapher.pid @@ -120,6 +124,7 @@ ng_logfile: /var/log/nagios2/ngraph.log ng_rrd: /var/lib/nagios2/rrd ng_rrd_font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf + ng_tmp_path: /tmp/nagiosgrapher ng_cgi: /nagios2/cgi-bin ng_logos: /nagios2/images/logos ng_pid_file: ${ng_daemon}/nagios_grapher.pid @@ -146,6 +151,7 @@ ng_logfile: /var/log/nagios/ngraph.log ng_rrd: /var/lib/nagios/rrd ng_rrd_font: /usr/local/rrdtool/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf + ng_tmp_path: /tmp/nagiosgrapher # and to add for fontfile in ngraph.ncfg: # ng_rrd_font: ${datadir}/rrdtool/fonts/DejaVuSansMono-Roman.ttf ng_cgi: /nagios/cgi-bin @@ -173,6 +179,7 @@ ng_logfile: /var/log/nagios/ngraph.log ng_rrd: /var/nagios/rrd ng_rrd_font: /usr/local/rrdtool/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf + ng_tmp_path: /tmp/nagiosgrapher ng_cgi: /nagios/cgi-bin ng_logos: /nagios/images/logos ng_pid_file: ${ng_daemon}/nagios_grapher.pid @@ -199,6 +206,7 @@ ng_logfile: /var/log/nagios/ngraph.log ng_rrd: /var/lib/nagios/rrd ng_rrd_font: /usr/local/rrdtool/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf + ng_tmp_path: /tmp/nagiosgrapher ng_cgi: /nagios/cgi-bin ng_logos: /nagios/images/logos ng_pid_file: ${ng_daemon}/nagios_grapher.pid @@ -225,4 +233,5 @@ ng_logfile: ${prefix}var/log/nagios/ngraph.log ng_rrd: ${prefix}var/lib/nagios/rrd ng_rrd_font: ${prefix}usr/share/fonts/truetype/DejaVuSansMono.ttf + ng_tmp_path: ${prefix}var/spool/nagios/nagiosgrapher Index: Makefile.in =================================================================== --- Makefile.in.orig +++ Makefile.in @@ -20,6 +20,7 @@ NG_LOGLEVEL = @NG_LOGLEVEL@ NG_RRD = @NG_RRD@ NG_RRD_FONT = @NG_RRD_FONT@ +NG_TMPPATH = @NG_TMPPATH@ NG_INTERFACE_PIPE = @NG_INTERFACE_PIPE@ NG_SRVEXT = @NG_SRVEXT@ Last Patch: SrvExtWriteHostextInfo.pm.in has a hardcoded path to /usr/local/nagios/etc/hostext/ - this should IMHO be replaced by the following patch: Index: lib/NagiosGrapher/Hooks/SrvExtWriteHostextInfo.pm.in =================================================================== --- lib/NagiosGrapher/Hooks/SrvExtWriteHostextInfo.pm.in.orig +++ lib/NagiosGrapher/Hooks/SrvExtWriteHostextInfo.pm.in @@ -97,7 +97,7 @@ sub prepare { my $self = shift; - $self->{'dir'} = '/usr/local/nagios/etc/hostext/'; + $self->{'dir'} = '@NG_CONFIG@/hostext/'; $self->{'file'} = $self->{'dir'}. $self->Host. '.cfg'; if (!$self->check_entry_exists()) { Thanks in advance for your responses (even if good or bad ;-) ! Lars ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From BStover at NorcalMutual.com Fri Nov 30 19:44:48 2007 From: BStover at NorcalMutual.com (Stover, Beth) Date: Fri, 30 Nov 2007 10:44:48 -0800 Subject: NRPE_NT Error: NRPE_NT failed to create process, exiting... In-Reply-To: <200711300923439215387@126.com> References: <712A35065082D1498246BF2070D864675CFDEE@norcalex2.norcalmutual.com> <200711300923439215387@126.com> Message-ID: <712A35065082D1498246BF2070D864675CFDFE@norcalex2.norcalmutual.com> I took another stab at it: I created another batch script that merely calls the original one. When I executed the check_nrpe command from the nagios server, I got the same error. I restored the original script by renaming it. I tested it again, and it worked this time. I have no idea why this worked. Beth Stover Systems Administrator 415.395.8768 ________________________________ From: hjbcn [mailto:hjbcn at 126.com] Sent: Thursday, November 29, 2007 5:24 PM To: Stover, Beth Subject: Re: [Nagios-users] NRPE_NT Error: NRPE_NT failed to create process,exiting... May be you should rename your plugin, like "test.bat". I Installed NSClient in Windows XP, and define a command like this check_mail_size=inject CheckFileSize ShowAll MaxWarn=1024M MaxCrit=4096M File:MAIL=G:\MAIL\*.* nrpe_ok="C:\Program Files\NSC\scripts\ok.bat" check_os_version="C:\Program Files\NSC\scripts\osver.bat" check_system_dir="C:\Program Files\NSC\scripts\SysDir.bat" and define a service like this define command{ command_name check_nt_nrpe command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -p 5666 -c $ARG1$ } define service{ name service_check_os_version_win use generic-service service_description Win Server OS Version check_command check_nt_nrpe!check_os_version register 0 } 2007-11-30 ________________________________ hjbcn ________________________________ ???? Stover, Beth ????? 2007-11-30 05:42:57 ???? nagios-users at lists.sourceforge.net ??? ??? [Nagios-users] NRPE_NT Error: NRPE_NT failed to create process,exiting... Hi there, I?m trying to use NRPE to monitor remote Windows XP machines for the first time. Nagios version 2.8. I have installed check_nrpe on the Nagios server. Windows XP SP2 is the remote host. I installed NRPE_NT Version: 0.7f/2.0 on the XP machine. I edited the nrpe.cfg with the basic info including the following command definition: command[check_cmd]=c:\nrpe\test.cmd Test.cmd is on the XP machine in the following location: c:\nrpe\test.cmd. Here are the contents: @echo off echo hallo from cmd exit 1 I do a basic test from the Nagios server like this and it works: /usr/local/nagios/libexec/check_nrpe -H 192.168.1.10 NRPE_NT v0.7f/2.0 Next, I try executing the remote cmd file, and this is where I get the error: /usr/local/nagios/libexec/check_nrpe -H 192.168.1.10 -c check_cmd NRPE_NT failed to create process, exiting... There?s nothing in the Windows event log. Nothing interesting in the nagios.log. Am I missing something totally simple? Thanks so much? Beth Stover Systems Administrator 415.395.8768 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null