Re: [Nagios-users] Comments between versions 2 and 3 of Nagios
Hi Martine, This is a known issue between Nagios 2 and 3 - it's also the case for downtime. See the following package for how-to migrate the comments from one system to another: http://nagios.sourceforge.net/docs/3_0/upgrading.html#nagios2x I don't know if anyone's written a script for it, but it's a 10-second job to do manually as I did it on my test Nagios 3 system. Andy Martine Carannante wrote: If we update a nagios 2 version into a nagios3.0b4, the comments set on hosts and services are lost. In nagios 2, the comments are saved in a file comments.dat . In nagios 3, the comments are saved in status.dat. Is there a script to keep comments between versions 2 and 3 of Nagios Thanks for your help Martine - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and 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
[Nagios-users] [Fwd: Re: Nagios 3.0b4 crashing]
Sorry, due to an error on my mail server, this didn't get through first time round. Hi, Found the cause of this: the pre-flight check isn't working correctly (see output below) which caused the confusion (the errors were off-screen in my terminal window, and I mistakenly trusted the Total Warnings: 0, Total Errors: 0 bit!! I've copied in nagios-devel to report this (also confirmed the same with today's CVS build.) Note that the servicegroup Server_Info does *not* exist (I mistakenly removed it a few days ago), so the pre-flight check should report it as an error, but it doesn't. Nagios 3.0b4 Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org) Last Modified: 09-27-2007 License: GPL Reading configuration data... Error: Could not find any servicegroup matching 'Server_Info' (config file '/usr /local/nagios.test/etc/services/system-uptime.cfg', starting on line 1) Error: Could not find any servicegroup matching 'Server_Info' (config file '/usr /local/nagios.test/etc/services/system-processes.cfg', starting on line 1) Error: Could not find any servicegroup matching 'Server_Info' (config file '/usr /local/nagios.test/etc/services/system-name.cfg', starting on line 1) Error: Could not find any servicegroup matching 'Server_Info' (config file '/usr /local/nagios.test/etc/services/system-location.cfg', starting on line 1) Error: Could not find any servicegroup matching 'Server_Info' (config file '/usr /local/nagios.test/etc/services/system-contact.cfg', starting on line 1) Error: Could not find any servicegroup matching 'Server_Info' (config file '/usr /local/nagios.test/etc/services/snmp-uptime.cfg', starting on line 1) Running pre-flight check on configuration data... Checking services... Checked 7 services. Checking hosts... Checked 1 hosts. Checking host groups... Checked 1 host groups. Checking service groups... Checked 1 service groups. Checking contacts... Checked 1 contacts. Checking contact groups... Checked 1 contact groups. Checking service escalations... Checked 0 service escalations. Checking service dependencies... Checked 0 service dependencies. Checking host escalations... Checked 0 host escalations. Checking host dependencies... Checked 0 host dependencies. Checking commands... Checked 4 commands. Checking time periods... Checked 1 time periods. Checking for circular paths between hosts... Checking for circular host and service dependencies... Checking global event handlers... Checking obsessive compulsive processor commands... Checking misc settings... Total Warnings: 0 Total Errors: 0 Things look okay - No serious problems were detected during the pre-flight check Thanks, Andy Andreas Ericsson wrote: Please don't top-post. [EMAIL PROTECTED] wrote: Thanks, According to the 3.0 documentation, you don't need to re-compile Nagios to get the debug symbols - is this right? No. See below. Debugging information can now be written to a separate debug file, which is automatically rotated when it reaches a user-defined size. This should make debugging problems much easier, as you don't need to recompiled Nagios. This is about debugging symbols which reside inside the executable binary, not about debugging output generated by the program itself. Debugging symbols and debug output is not even remotely the same. I've enabled the allow Nagios to create core dumps option (can't remember what it's called atm), and the notes for that directive do say that even with that option enabled, Nagios may not create a core dump, which it doesn't. It's supposed to. Perhaps you meant disabled the ... ? I'll try strace/ktrace, but how do you get Nagios to run in the foreground, as soon as you start it with -d it goes to the background anyway? Start it without -d, or use strace -f, although you'll still have to send the backtrace of your resulting core-dump to the nagios-devel@ mailing list if you want any help solving the problem, unless a recent CVS snapshot does the trick for 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
Re: [Nagios-users] check_telnet?
Use check_tcp to connect to port 23 (if it's a Telnet host in the strictest sense of the word) or check_ssh if it's an SSH host. Andy Marc Powell wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:nagios-users- [EMAIL PROTECTED] On Behalf Of Melanie Pfefer Sent: Tuesday, September 18, 2007 5:47 AM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] check_telnet? Hi Is there a check_telnet to see if the server can be telnet'ed? 99% of the time, Google will tell you if you search for 'nagios check_something' (i.e. 'nagios check_telnet') or 'nagios check something'. With very few exceptions, you're almost certainly not the first to need to check whatever it is. Google should really be the first place checked for any question. -- Marc - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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 !DSPAM:37,46efbfff7681725816736! - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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
Re: [Nagios-users] Fwd: Problem with availability report
Hi Pablo, What does the report class the Indeterminate data as? (Insufficient data or Nagios not running?) If it says Insufficient data, I'd hazard a guess that your last month's log files aren't where Nagios expects them to be, perhaps they've been archived or zipped by a log rotation program, but that's just a guess. If you browse to your Event Log in Nagios, near the the top, it should say File: and the path to a file. That's the current log file. Look in that file's directory on your system and see if there are any other files with last month's dates in. Andy. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Pablo Daniel Estigarribia Davyt Sent: Monday, 03 September, 2007 1:52 pm To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Fwd: Problem with availability report I re send it because the confirmation of my register arrives after I sent the email -- Forwarded message -- From: Pablo Daniel Estigarribia Davyt [EMAIL PROTECTED] Date: 03-sep-2007 8:57 Subject: Problem with availability report To: nagios-users@lists.sourceforge.net Hi all, I have installed nagios on Debian, I have 2 installation and I have the same problem on both: *When I try to take a report from the last month every host appears with undetermined state to %100, but if I try to take a report of this month everything works well. Do you know something about this?, I searched on google but I don't know how I can fix it. Br, -- Pablo Estigarribia. counter.li.org : 392716 -- Pablo Estigarribia. counter.li.org : 392716 !DSPAM:37,46dc422e107501718520730! - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and 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
Re: [Nagios-users] Fwd: Problem with availability report
Hi Pablo, Yes, it looks as if your Nagios user does not have permissions to write to /var/log/nagios2/archives. Do chown nagios:adm /var/log/nagios2/archives, then when your logs are rotated, you should get the old logs moved inside your archives directory, and you'll be able to run historical reports. What you'll probably find is that currently, the reports are only picking up the current day's data (as you only have today's log file.) Andy. From: Pablo Daniel Estigarribia Davyt [mailto:[EMAIL PROTECTED] Sent: Monday, 03 September, 2007 11:15 pm To: [EMAIL PROTECTED] Subject: Re: [Nagios-users] Fwd: Problem with availability report Is possible it happens by file system rights ? XXXHOST:/etc/nagios2/conf.d# ll /var/log/nagios2/ total 13552 drwxr-xr-x 2 root root 4096 2007-03-04 20:56 archives -rw-r--r-- 1 nagios adm 13850632 2007-09-03 19:11 nagios.log Br, 2007/9/3, Pablo Daniel Estigarribia Davyt [EMAIL PROTECTED]: Hi Andy, I opened and it says the current log file is: /var/log/nagios2/nagios.log, so I on latest archive and it says the following: Error: Could not open log file '/var/log/nagios2/archives/nagios-09-03-2007-00.log ' for reading! Wen i see inside /var/log/nagios2/archives there are no file inside. Do you know how i can fix it? My /etc/nagios2/nagios.cfg has log_rotation_method=d, but there is only /var/log/nagios2/nagios.log on my filesystem. Thanks ! 2007/9/3, Andy Shellam (Mailing Lists) mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]: Hi Pablo, What does the report class the Indeterminate data as? (Insufficient data or Nagios not running?) If it says Insufficient data, I'd hazard a guess that your last month's log files aren't where Nagios expects them to be, perhaps they've been archived or zipped by a log rotation program, but that's just a guess. If you browse to your Event Log in Nagios, near the the top, it should say File: and the path to a file. That's the current log file. Look in that file's directory on your system and see if there are any other files with last month's dates in. Andy. From: [EMAIL PROTECTED] [mailto: mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of Pablo Daniel Estigarribia Davyt Sent: Monday, 03 September, 2007 1:52 pm To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Fwd: Problem with availability report I re send it because the confirmation of my register arrives after I sent the email -- Forwarded message -- From: Pablo Daniel Estigarribia Davyt [EMAIL PROTECTED] Date: 03-sep-2007 8:57 Subject: Problem with availability report To: nagios-users@lists.sourceforge.net Hi all, I have installed nagios on Debian, I have 2 installation and I have the same problem on both: *When I try to take a report from the last month every host appears with undetermined state to %100, but if I try to take a report of this month everything works well. Do you know something about this?, I searched on google but I don't know how I can fix it. Br, -- Pablo Estigarribia. counter.li.org : 392716 -- Pablo Estigarribia. counter.li.org : 392716 -- Pablo Estigarribia. counter.li.org : 392716 -- Pablo Estigarribia. counter.li.org : 392716 !DSPAM:37,46dc875f107508896821081! - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and 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
Re: [Nagios-users] Can Nagios keep the data returned from the services?
Hi Chris, I'm looking at the possibility of doing this myself over the coming months. Unfortunately, I can only give you a pointer. I believe what you're looking for is performance data - that is, when a plugin returns it's output, a specially crafted string at the end of the output (containing the statistics - e.g cpu usage, memory usage etc) for that particular plugin can be parsed by Nagios and processed in some way. However, not having done this, I'm not privy to how it works - lookup the performance-related config directives in the Nagios 2 documentation, I'm sure this will provide an insight. Andy. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Lee Sent: Thursday, 30 August, 2007 7:44 am To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Can Nagios keep the data returned from the services? Hi, I am new to nagios and just set up one a few days ago. I am using Nagios to monitor the CPU, Memory usage and disk usage of the my servers. I would like to know if Nagios is able to keep the data (ie. cpu, memory, disk usage data) returned by the services from those hosts. I need the data because I will use it for capacity planning and for some simple monthly reports. Can I make use of Nagios for this purpose? Thanks a lot, - Chris Lee --- The mailing list archive is found here: http://www.nagiosexchange.org/nagios-users.34.0.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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null !DSPAM:37,46d66738107502094449794! - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and 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
Re: [Nagios-users] NDOUtils 1.4b4 OpenBSD build issue
Hi Israel, The ceil function is part of a standard math library, a quick Google search for undefined reference to `ceil' (http://www.google.co.uk/search?q=undefined+reference+to+%60ceil'ie=utf-8o e=utf-8aq=trls=org.mozilla:en-GB:officialclient=firefox-a) reveals that you need to add the flag -lm to your linker flags. E.g., try: LDFLAGS=-L/usr/lib/mysql -lz -lnsl -lmysqlclient -lm ./configure rest of your configure line Andy. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Israel Brewster Sent: Wednesday, 29 August, 2007 9:31 pm To: Nagios Users mailinglist Subject: [Nagios-users] NDOUtils 1.4b4 OpenBSD build issue Ok, I have now attempted to build ndoutils 1.4b4 on a RHEL 4 box, only to get the following error: gcc -O0 -g -DHAVE_CONFIG_H -D BUILD_NAGIOS_2X -o ndo2db-2x ndo2db.c dbhandlers-2x.o io.o utils.o db.o -L/usr/lib/mysql -lz -lnsl - lmysqlclient utils.o(.text+0x14e): In function `ndo_dbuf_strcat': /root/ndoutils-1.4b4/src/utils.c:67: undefined reference to `ceil' collect2: ld returned 1 exit status make[2]: *** [ndo2db-2x] Error 1 make[2]: Leaving directory `/root/ndoutils-1.4b4/src' make[1]: *** [ndo2db] Error 2 make[1]: Leaving directory `/root/ndoutils-1.4b4/src' Not that building it on the RHEL box would help with the OpenBSD build, mind you, but at least it would show me that the problem isn't in the package. To make things more interesting, if I try building ndoutils 1.4b3 on the RHEL box, it builds just fine. Neither one will build on my OpenBSD box however. Are there any other utilities that perform the same function as ndoutils perhaps? Or anywhere else that I can ask to get a solution? My primary goal here is to be able to use Nagvis, which, to the best of my knowledge, requires this utility. So any help that can be provided in getting this working would be appreciated. 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null !DSPAM:37,46d5d7e8107501641318227! - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and 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
Re: [Nagios-users] Opinion Sought... Essential Nagios 3rd Party Apps.
Hi Chris, I'm playing my own trumpet a bit here, but I started a project called Nagios Looking Glass - it's aim is to provide a prettier, read-only interface to users with the essentials at-a-glance without the complexity of the Nagios GUI. The view-switching between servers, services and network status all uses AJAX. The next major release series (2.x) promises to provide much more security features, and better views on the information that's in your Nagios system. Check out http://looking-glass.andyshellam.eu for a live demo, or www.nagioslookingglass.co.uk for the project website. Thanks, Andy. Chris Stankaitis wrote: We have been using Nagios for a very long time, I have been running it under an older rev for a bit because everything has worked, and there have been no new features that my install has needed. However for various reasons we are now looking to upgrade to current. I would like some opinions of what the must have 3rd party apps are for nagios (beyond say NSCA) to make life easier for config, make nagios look prettier (some Ajax eye candy would be nice in the interface), extend information presented (graphs etc)... basically if your using an app... and your asking yourself why the heck don't they just put this into the main trunk of the program because we can't live without it then I would like to know about that app and investigate it for my own inclusion in my upgrade. Thanks for the recommendations in advanced. --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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null !DSPAM:37,46c45800107503214010152! - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and 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
Re: [Nagios-users] Opinion Sought... Essential Nagios 3rd PartyApps.
Hi Dimitry, Yep. NLG 2.0 release is code-named Padlock for this very reason! The main goal is purely on security, anything else I can get going will be a bonus, and it will feature a complete security model. In v2, you'll be able to create users and tag them to groups. Users can then be assigned to host- and/or service-groups, as well as hosts/services themselves. Users and individual groups will be able to have different permission levels, and if a user is defined in a group, but has explicit permissions on their username, the individual permissions will override that of the group (the way I see it at the moment, unless anyone has any objections / other ideas?) As for how it links in with Nagios, I'm not sure yet whether to pick up the contact group a user is in, or to leave NLG permissions completely separate to Nagios? In NLG 2, the view will also revolve around host/service groups as opposed to the hosts/services themselves. At the moment I'm thinking something along the lines of (in the network browser): - Network Status --- Web servers (host group) - Web 01 - Web 02 --- Mail servers (host group) - Mail 01 - Mail 02 --- Web services (service group) - www.websiteone.com on Web 01 - www.websiteone.com (user login) on Web 02 --- Mail services (service group) - SMTP server on Mail 01 - IMAP server on Mail 01 - IMAP server on Mail 02# Thoughts on any of the above, anyone? If you need anything quick in the meantime, NLG 1.0.6 features custom-filters, so you can only include certain hosts in the filter view filters. This only works on the hostname set in Nagios, and each host has to be explicitly set (i.e. it doesn't allow for regex's.) This was a quick-fix patch I put in for a user back in v1.0.2, and it became a popular requested feature so I put it in the trunk for the 1.0.6 release. Thanks, Andy. Sapon, Dimitry wrote: Andy, In the future release, will it allow the ability to customize which hosts you want to view, maybe by viewing only certain host groups (by specifically choosing them or through some REGEX on the name)? Also, in terms of security, are you planning on implementing who can view what services based on the if they are a contact of that service/host? Regards, Dimitry -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Shellam (Mailing Lists) Sent: Thursday, August 16, 2007 1:40 PM To: Chris Stankaitis Cc: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Opinion Sought... Essential Nagios 3rd PartyApps. Hi Chris, I'm playing my own trumpet a bit here, but I started a project called Nagios Looking Glass - it's aim is to provide a prettier, read-only interface to users with the essentials at-a-glance without the complexity of the Nagios GUI. The view-switching between servers, services and network status all uses AJAX. The next major release series (2.x) promises to provide much more security features, and better views on the information that's in your Nagios system. Check out http://looking-glass.andyshellam.eu for a live demo, or www.nagioslookingglass.co.uk for the project website. Thanks, Andy. Chris Stankaitis wrote: We have been using Nagios for a very long time, I have been running it under an older rev for a bit because everything has worked, and there have been no new features that my install has needed. However for various reasons we are now looking to upgrade to current. I would like some opinions of what the must have 3rd party apps are for nagios (beyond say NSCA) to make life easier for config, make nagios look prettier (some Ajax eye candy would be nice in the interface), extend information presented (graphs etc)... basically if your using an app... and your asking yourself why the heck don't they just put this into the main trunk of the program because we can't live without it then I would like to know about that app and investigate it for my own inclusion in my upgrade. Thanks for the recommendations in advanced. --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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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
Re: [Nagios-users] How do I check the services on remote machines
Hi Lingyun, Have a look at NRPE. Basically you run an NRPE daemon on the remote machines (which is configured with the commands to use.) You set up a service in Nagios to use check_nrpe to query the remote NRPE daemon. The NRPE daemon takes the command name to use, runs the command associated on the system, then sends the result back to Nagios, which determines if it was successful or not. You get the check_nrpe plugin by compiling NPRE (you just have to copy it to Nagios' libexec directory. Andy. Lingyun Yang wrote: Hi: I am running nagios to monitoring a cluster. There are different kinds of services running on different machines. How could I use nagios to monitor the services on remote machines? I know I may need to write new plugins to check the service status. My question is: how could I send the service status back to nagios's machine. Do I need to write a client which running on the remote machine and send check results back to nagios periodically? or is there any existing nagios's figure supporting this functionality? thanks Lingyun - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and 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 !DSPAM:37,46c499c8107501549885501! - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and 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
Re: [Nagios-users] guest access
Hi Paul, Are you looking for your read-only users simply to see your host/service statuses without being able to do anything else? If so, this is what Nagios Looking Glass was designed for, and as Nagios moves into v3.0, there are plans to possibly extend this functionality to do other stuff as well, like reporting, and a full management suite. See www.nagioslookingglass.co.uk for more details and to get it. Version 2 of Nagios Looking Glass (due for previews at the end of the year/early next year) will have a complete security model and management dashboard. Regards Andy Paul Dugas wrote: Been fiddling with this for a while now and am stumped. I figure I'm not the first to want this so before I get a brain cramp I'll ask. I run a couple Nagios server on internal networks and I want internal users to get read access without having to log in. I want a select number of users to be able to login and get higher level access. I've been trying to get the HTTP interface default to the guest account and the HTTPS interface to require a login. My admins and I would use the HTTPS interface while our customers would use the standard HTTP interface. Anybody got something like this going? Perhaps something else that would accomplish the same? Any info would be appreciated. pd - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ !DSPAM:37,46acd2fb267728080321068! ___ 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 !DSPAM:37,46acd2fb267728080321068! - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and 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
Re: [Nagios-users] Problem with statusmap
What's your ./configure line? Mark Thompson wrote: Opensuse 10.2 Nagios 2.7 all libs installed. make all returns this error: gcc -g -O2 -I/usr/local/include/ -DHAVE_CONFIG_H -DNSCGI -L/usr/local/lib/ -o statusmap.cgi statusmap.c getcgi.o cgiutils.o cgiauth.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o -lgd -lttf -lpng -ljpeg -lz -lm /tmp/ccQJAY1X.o: In function `load_image_from_file': /usr/local/src/nagios-2.7/cgi/statusmap.c:2215: undefined reference to `gdImageCreateFromJpeg' collect2: ld returned 1 exit status make[1]: *** [statusmap.cgi] Error 1 make[1]: Leaving directory `/usr/local/src/nagios-2.7/cgi' make: *** [all] Error 2 Is this a bug in the compile or is there something else that needs to be installed? thanks - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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 !DSPAM:37,45e85264103002543180458! - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Re: [Nagios-users] Problem with statusmap
Try adding /usr/local/lib to /etc/ld.so.conf and run ldconfig (not sure if SuSE has this?) Or try linking /usr/local/lib/libgd*.so* /usr/local/lib/libpng*.so* /usr/local/lib/libjpeg*.so* /usr/local/lib/libttf*.so.* into /lib. I've had this sorta problem with other applications on FreeBSD (Nagios was actually OK.) PS. Don't forget to copy the list in! Mark Thompson wrote: ./configure --sysconfdir=/etc/nagios --localstatedir=/var/nagios --with-command-group=nagcmd --with-gd-lib=/usr/local/lib --with-gd-inc=/usr/local/include. The 4 libs that are listed in the faq were installed with yast. thanks Andy Shellam (Mailing Lists) [EMAIL PROTECTED] 3/2/2007 11:28 AM What's your ./configure line? Mark Thompson wrote: Opensuse 10.2 Nagios 2.7 all libs installed. make all returns this error: gcc -g -O2 -I/usr/local/include/ -DHAVE_CONFIG_H -DNSCGI -L/usr/local/lib/ -o statusmap.cgi statusmap.c getcgi.o cgiutils.o cgiauth.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o -lgd -lttf -lpng -ljpeg -lz -lm /tmp/ccQJAY1X.o: In function `load_image_from_file': /usr/local/src/nagios-2.7/cgi/statusmap.c:2215: undefined reference to `gdImageCreateFromJpeg' collect2: ld returned 1 exit status make[1]: *** [statusmap.cgi] Error 1 make[1]: Leaving directory `/usr/local/src/nagios-2.7/cgi' make: *** [all] Error 2 Is this a bug in the compile or is there something else that needs to be installed? thanks - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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 !DSPAM:37,45e860fc103001942811417! -- Andy Shellam NetServe Support Team the Mail Network an alternative in a standardised world p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ 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
Re: [Nagios-users] Uptime error
As Patrick said, this plugin (as a host check) will only get run if a service goes into a non-OK state, therefore showing old information until it a service fails. I have exactly the same plugin (written myself with a couple of differences to yours) which runs as a service called Uptime on every host - this way it is always run every 5 minutes and shows up-to-date info. The host check is a simple check_ping. HTH Andy. sujith h wrote: No am running this plugin for host check only Sujith On 2/28/07, *Morris, Patrick* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: when I click the Host Detail I can see that in the status information section we have a different output.. such aser 20:17:46 up 3 days, 9:56, 1 user, load average: 0.89, 0.86, 0.71 Here u can see that am not getting the output synchronized. But the problem I had found with uptime only in the Host Detail. The Service Details are running good as if now. Are you running this command as both a host check and a service check? If so, that's why you're seeing different output. The host check will only run if a service on it goes to a non-OK state, and probably hasn't run for a few days, when the host had only been up for two minutes. It looks like you've defined the same plugin for two checks. If that's the case, they are never going to match. !DSPAM:37,45e52941103001189734924! - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV !DSPAM:37,45e52941103001189734924! ___ 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 !DSPAM:37,45e52941103001189734924! -- Andy Shellam NetServe Support Team the Mail Network an alternative in a standardised world p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ 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
Re: [Nagios-users] Uptime error
What results? I haven't yet been able to find a clear indication in this thread of the problem you're seeing. What is the relevant definitions of your host, service and commands? Please explain your problem more clearly. Thanks Andy. sujith h wrote: Hi Andy, Actually my problem is that it works for some 1 day or more. But after that I get these sort of results. So thats what makes me worry... Sujith Bangalore On 2/28/07, *Andy Shellam (Mailing Lists)* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: As Patrick said, this plugin (as a host check) will only get run if a service goes into a non-OK state, therefore showing old information until it a service fails. I have exactly the same plugin (written myself with a couple of differences to yours) which runs as a service called Uptime on every host - this way it is always run every 5 minutes and shows up-to-date info. The host check is a simple check_ping. HTH Andy. sujith h wrote: No am running this plugin for host check only Sujith On 2/28/07, *Morris, Patrick* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: when I click the Host Detail I can see that in the status information section we have a different output.. such aser 20:17:46 up 3 days, 9:56, 1 user, load average: 0.89, 0.86, 0.71 Here u can see that am not getting the output synchronized. But the problem I had found with uptime only in the Host Detail. The Service Details are running good as if now. Are you running this command as both a host check and a service check? If so, that's why you're seeing different output. The host check will only run if a service on it goes to a non-OK state, and probably hasn't run for a few days, when the host had only been up for two minutes. It looks like you've defined the same plugin for two checks. If that's the case, they are never going to match. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV !DSPAM:37,45e52941103001189734924! ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net mailto: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 !DSPAM:37,45e52941103001189734924! - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ 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
Re: [Nagios-users] Uptime error
I think you need to explain what you're trying to do overall, as this isn't making any sense to me! You cannot possibly determine which server is responding using it's uptime output. A more sensible option surely would be it's hostname? #!/bin/bash hostname exit 0 However you're going to run into a lot of trouble trying to use Nagios to monitor a server using its dynamic IP address. I think to start with you need to be looking at a solution such as Dynamic DNS (e.g. No-IP, DynDNS for commercial services, or Bind with DNSSEC/TSIG if you use Bind within your organisation.) Your machines would then change their DNS address when they detect their IP address has changed, and you would definite it's dynamic DNS hostname as the host_name directive to Nagios. Only thing you'd have to watch would be if your DNS service fails, Nagios will fail on everything. Re your last e-mail, please give example outputs of what you see on the command-line and what Nagios says. Andy. sujith h wrote: Actually the problem with the ping is that we are giving dynamic IP address so when the ip address changes its difficult to know who is responding to the ping. And so we moved to ssh and uptime... Sujith Bangalore. On 2/28/07, *sujith h* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi Andy, Actually my problem is that it works for some 1 day or more. But after that I get these sort of results. So thats what makes me worry... Sujith Bangalore On 2/28/07, *Andy Shellam (Mailing Lists)* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: As Patrick said, this plugin (as a host check) will only get run if a service goes into a non-OK state, therefore showing old information until it a service fails. I have exactly the same plugin (written myself with a couple of differences to yours) which runs as a service called Uptime on every host - this way it is always run every 5 minutes and shows up-to-date info. The host check is a simple check_ping. HTH Andy. sujith h wrote: No am running this plugin for host check only Sujith On 2/28/07, *Morris, Patrick* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: when I click the Host Detail I can see that in the status information section we have a different output.. such aser 20:17:46 up 3 days, 9:56, 1 user, load average: 0.89, 0.86, 0.71 Here u can see that am not getting the output synchronized. But the problem I had found with uptime only in the Host Detail. The Service Details are running good as if now. Are you running this command as both a host check and a service check? If so, that's why you're seeing different output. The host check will only run if a service on it goes to a non-OK state, and probably hasn't run for a few days, when the host had only been up for two minutes. It looks like you've defined the same plugin for two checks. If that's the case, they are never going to match. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV !DSPAM:37,45e52941103001189734924! ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net mailto: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 !DSPAM:37,45e52941103001189734924! -- Andy Shellam NetServe Support Team the Mail Network an alternative in a standardised world p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 !DSPAM:37,45e545e1103007241816293! -- Andy Shellam NetServe Support Team the Mail Network an alternative in a standardised world p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834
Re: [Nagios-users] Uptime error
Again, as I and Patrick have said, your host's check_command is only getting run when a service is deemed to have problems. You're getting the difference in the uptime output in Nagios and the console because Nagios hasn't run the uptime command for the host for over a day. If you're not retaining status information, then when you restart Nagios, it re-runs all it's checks, hence why it then gets updated. After that it is only run when a service fails. What I still don't understand is how your uptime command ensures the router is up? If the router is not up, then Nagios won't be running (as you're running it on the same host) so it seems quite pointless really. If the Lanlink checks that the LAN interface is up and connected - that makes sense, but then a check_ping to 127.0.0.1 as your host check_command would give the same result as the uptime, then you could have an Uptime service with your check_uptime command. That way you could be confident that the status detail in Nagios is reasonably up-to-date. Andy. sujith h wrote: Ok let me explain the scenario in detail. I have my router in which nagios is installed. I have to monitor a few services like Lanstatus of net1 interface, Webserver, and DNS. Well now for this I have a host.cfg and services.cfg file where I had configured this way: Host.cfg define hostgroup{ hostgroup_name Enpaq alias Enpaq members sujith } define host{ host_name sujith alias Enpaq Router address 127.0.0.1 http://127.0.0.1 max_check_attempts 1 check_command check_uptime check_period24x7 contact_groups admin notification_interval 0 notification_period 24x7 notification_optionsd,u,r,f } And services.cfg define service{ host_name sujith service_description LAN LINK check_command check_link!net1 max_check_attempts 1 normal_check_interval 1 retry_check_interval1 check_period24x7 notification_interval 2 notification_period 24x7 notification_optionsw,u,c,r,f contact_groups admin } define service{ host_name sujith service_description WEB SERVER check_command check_procs!1:!1:!apache2!SNSlSsRl max_check_attempts 1 normal_check_interval 1 retry_check_interval1 check_period24x7 notification_interval 2 notification_period 24x7 notification_optionsw,u,c,r,f contact_groups admin } define service{ host_name sujith service_description DNS check_command check_dig!sujith.elina.in max_check_attempts 1 normal_check_interval 1 retry_check_interval1 check_period24x7 notification_interval 2 notification_period 24x7 notification_optionsw,u,c,r,f contact_groups admin } This is all about the 2 files. And let me give the output also. When I type the command uptime in my router I see like this: [EMAIL PROTECTED]:~$uptime 15:15:50 up 4 days, 4:54, 1 user, load average: 0.76, 0.70, 0.59 And when I see the nagios page for the Host Detail section, the Status Information shows me: 20:17:46 up 3 days, 9:56, 1 user, load average: 0.89, 0.86, 0.71 But the output that I had given you is from the running nagios page. If i would restart nagios then everything will be ok for a while. This is what I want to know why this output comes like this. Again in the /var/nagios/status.dat file is there which when I do ls -lt command , it shows me that its getting updated in each and every minute. Now if u again have any doubt on what I am trying to tell please do mail me. Again I do repeat that when I do /usr/local/nagios/bin/nagios -v /etc/nagios/etc/nagios.cfg It doesn't give me any error. But this misbehaviour is worrying me Sujith Bangalore On 2/28/07, *Andy Shellam (Mailing Lists)* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I think you need to explain what you're trying to do overall, as this isn't making any sense to me! You cannot possibly determine which server is responding using it's uptime output. A more sensible option surely would be it's hostname? #!/bin/bash hostname exit 0 However you're going to run into a lot of trouble trying to use Nagios to monitor a server using its dynamic IP address. I think to start with you need to be looking at a solution such as Dynamic DNS (e.g. No-IP, DynDNS for commercial services, or Bind with DNSSEC/TSIG if you use Bind within your organisation.) Your machines would then change their DNS address when they detect their IP address has changed, and you would definite it's dynamic DNS hostname as the host_name directive to Nagios. Only
Re: [Nagios-users] Uptime error
sujith h wrote: I think i foregot to explain a crucial point that nagios is running in my router not in my machine. If i had told u my machine, then I really apolagise for stealing your precious time. No, I understand that. And is there anyway that I can trigger the check_uptime (plugin written by me) all the time when the router is up??? Yes. Define it as a service for your host that runs, say, every 5 minutes 24x7. . If so please do tell me. If the router is down and nagios doesnt run then its ok for me. Since that is a different issue. But from your reply I came to understand that check_uptime will be called for the first time when the nagios is started and then if any of the services fails then again the check_uptime is called. Yes. Nagios only checks a host status when it absolutely needs to, not any other time. This is usually when a service fails, or a network blockage is detected. check_ping to 127.0.0.1 on this check would work fine in your case. Andy. Sujith Bangalore. On 2/28/07, *Andy Shellam (Mailing Lists) * [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Again, as I and Patrick have said, your host's check_command is only getting run when a service is deemed to have problems. You're getting the difference in the uptime output in Nagios and the console because Nagios hasn't run the uptime command for the host for over a day. If you're not retaining status information, then when you restart Nagios, it re-runs all it's checks, hence why it then gets updated. After that it is only run when a service fails. What I still don't understand is how your uptime command ensures the router is up? If the router is not up, then Nagios won't be running (as you're running it on the same host) so it seems quite pointless really. If the Lanlink checks that the LAN interface is up and connected - that makes sense, but then a check_ping to 127.0.0.1 http://127.0.0.1 as your host check_command would give the same result as the uptime, then you could have an Uptime service with your check_uptime command. That way you could be confident that the status detail in Nagios is reasonably up-to-date. Andy. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ 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
Re: [Nagios-users] Uptime error
You can do it by setting scheduled host checks, but it's very performance-intensive, and *will* affect your service checks. Your uptime check will do what you want much better if you add it as a service to your host. Why are you so insistent you don't want to use check_ping as your host command and Uptime as a service? Andy. sujith h wrote: The use of option : use_aggressive_host_checking=1 in the nagios.cfg file will make any difference??? Sujith Bangalore On 2/28/07, *Andy Shellam (Mailing Lists) * [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: sujith h wrote: I think i foregot to explain a crucial point that nagios is running in my router not in my machine. If i had told u my machine, then I really apolagise for stealing your precious time. No, I understand that. And is there anyway that I can trigger the check_uptime (plugin written by me) all the time when the router is up??? Yes. Define it as a service for your host that runs, say, every 5 minutes 24x7. . If so please do tell me. If the router is down and nagios doesnt run then its ok for me. Since that is a different issue. But from your reply I came to understand that check_uptime will be called for the first time when the nagios is started and then if any of the services fails then again the check_uptime is called. Yes. Nagios only checks a host status when it absolutely needs to, not any other time. This is usually when a service fails, or a network blockage is detected. check_ping to 127.0.0.1 http://127.0.0.1 on this check would work fine in your case. Andy. Sujith Bangalore. On 2/28/07, *Andy Shellam (Mailing Lists) * [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Again, as I and Patrick have said, your host's check_command is only getting run when a service is deemed to have problems. You're getting the difference in the uptime output in Nagios and the console because Nagios hasn't run the uptime command for the host for over a day. If you're not retaining status information, then when you restart Nagios, it re-runs all it's checks, hence why it then gets updated. After that it is only run when a service fails. What I still don't understand is how your uptime command ensures the router is up? If the router is not up, then Nagios won't be running (as you're running it on the same host) so it seems quite pointless really. If the Lanlink checks that the LAN interface is up and connected - that makes sense, but then a check_ping to 127.0.0.1 http://127.0.0.1 as your host check_command would give the same result as the uptime, then you could have an Uptime service with your check_uptime command. That way you could be confident that the status detail in Nagios is reasonably up-to-date. Andy. !DSPAM:37,45e56884103005404720733! -- Andy Shellam NetServe Support Team the Mail Network an alternative in a standardised world p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ 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
[Nagios-users] [Fwd: Re: Uptime error]
A hostname check would be much more informative, or check_nrpe - if the other guy in your office doesn't have NRPE installed, then a check_nrpe will fail. Note that the way you have it setup, check_uptime will always run on the Nagios server, regardless, because it's a local plugin. So whatever the IP of your router (Nagios machine), it will always succeed. You need to be using NRPE in conjunction with it to get it to check by IP address. Even that will always succeed at the moment because your IP in your Nagios configuration is 127.0.0.1, which will always refer to itself. You're much better off having this as a service. For every host in my install I have a Server Availability service which is a check_ping, as this constantly monitors that the servers are up and responding, every minute, and doesn't create any havoc from host checks being run too often. Andy. Original Message Subject:Re: [Nagios-users] Uptime error Date: Wed, 28 Feb 2007 19:12:50 +0530 From: sujith h [EMAIL PROTECTED] To: Andy Shellam (Mailing Lists) [EMAIL PROTECTED] References: [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Actually we used check_ping till 5 months before and then we decided to move on to uptime . The reason is that suppose I have a machine named don whose ip is 192.102.1.2 http://192.102.1.2 and if my machine is down for 1 day. And some other guy in my office started his machine his dhcpclient will run and give my ip (Think as if for the time being). Now the ping will work in any case but the uptime wont. So that is why I decided to move on with uptime in Host check. Sujith Bangalore On 2/28/07, *Andy Shellam (Mailing Lists)* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: You can do it by setting scheduled host checks, but it's very performance-intensive, and *will* affect your service checks. Your uptime check will do what you want much better if you add it as a service to your host. Why are you so insistent you don't want to use check_ping as your host command and Uptime as a service? Andy. sujith h wrote: The use of option : use_aggressive_host_checking=1 in the nagios.cfg file will make any difference??? Sujith Bangalore On 2/28/07, *Andy Shellam (Mailing Lists) * [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: sujith h wrote: I think i foregot to explain a crucial point that nagios is running in my router not in my machine. If i had told u my machine, then I really apolagise for stealing your precious time. No, I understand that. And is there anyway that I can trigger the check_uptime (plugin written by me) all the time when the router is up??? Yes. Define it as a service for your host that runs, say, every 5 minutes 24x7. . If so please do tell me. If the router is down and nagios doesnt run then its ok for me. Since that is a different issue. But from your reply I came to understand that check_uptime will be called for the first time when the nagios is started and then if any of the services fails then again the check_uptime is called. Yes. Nagios only checks a host status when it absolutely needs to, not any other time. This is usually when a service fails, or a network blockage is detected. check_ping to 127.0.0.1 http://127.0.0.1 on this check would work fine in your case. Andy. Sujith Bangalore. On 2/28/07, *Andy Shellam (Mailing Lists) * [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Again, as I and Patrick have said, your host's check_command is only getting run when a service is deemed to have problems. You're getting the difference in the uptime output in Nagios and the console because Nagios hasn't run the uptime command for the host for over a day. If you're not retaining status information, then when you restart Nagios, it re-runs all it's checks, hence why it then gets updated. After that it is only run when a service fails. What I still don't understand is how your uptime command ensures the router is up? If the router is not up, then Nagios won't be running (as you're running it on the same host) so it seems quite pointless really. If the Lanlink checks that the LAN interface is up and connected - that makes sense, but then a check_ping to 127.0.0.1 http://127.0.0.1 as your host check_command would give the same result as the uptime
Re: [Nagios-users] cgi.cfg
My guess is Nagios is trying to parse cgi.cfg as an object configuration file. IIRC, cgi.cfg should be in the same place as nagios.cfg, and NOT entered into the nagios.cfg as part of either a cfg_file or cfg_dir directive. As Jim said, it would help if you post the relevant portions of your nagios.cfg file. Andy. Jim Avery wrote: On 26/02/07, Michael Weiner [EMAIL PROTECTED] wrote: I am experiencing two issues, which i am having trouble getting around. The first issue, and probably the most concerning is that whenever i define the cgi.cfg in nagios.cfg and run nagios -v /etc/nagios/nagios.cfg it fails complaining about the first unremarked line in the file It would help greatly if you could post the relevant portion of your nagios.cfg and cgi.cfg files, and the exact error you get when you run nagios -v /etc/nagios/nagios.cfg. I would strongly recommend that you consider installing Nagios and the plugins from the source tarball which can be found at http://www.nagios.org rather than from .rpm . The .rpm install is quite different to a source tarball install - it puts various bits of Nagios in various different directories and makes it more difficult to support. Also, it will install a version which has embedded perl enabled - something you might find you don't want in the future. If you install from source tarball, it may take you a little longer than an rpm install, but you will learn more about Nagios while you do the install, and will find that if you want to try some of the various excellent add-ons for Nagios in the future, they are easier to get working if you have done a standard install from tarball. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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 !DSPAM:37,45e2e0b9103003857517878! -- Andy Shellam NetServe Support Team the Mail Network an alternative in a standardised world p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ 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
Re: [Nagios-users] PHP parse error in NLG
Hi Carlo, What version of PHP are you running? Line 327 in the code is a comparison of two classes, using the instanceof operator, which was introduced in PHP 5 (http://uk2.php.net/manual/en/language.operators.type.php). It sounds like you have PHP 4, which is not supported by NLG. Andy. Carlo Piccini wrote: Hello, just installed NLG 1.0.2, but stuck with a blank page on hitting URL. In apache error log I have: [client 192.168.1.5] PHP Parse error: parse error, unexpected T_STRING in /usr/share/nagios/client/s3_client.php on line 327 Any advice for me? Nagios 2.0 Thank you, Carlo Piccini !DSPAM:37,45e0cf26925177317654902! - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV !DSPAM:37,45e0cf26925177317654902! ___ 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 !DSPAM:37,45e0cf26925177317654902! -- Andy Shellam NetServe Support Team the Mail Network an alternative in a standardised world p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ 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
Re: [Nagios-users] Notifications by SMS
I think this could spark an interesting discussion! Both AQL and Text Anywhere (providers I've used in the past) take only the subject and the body (up to the 160-character limit) as the text message body. Taking the entire e-mail including headers seems bad practice for the obvious reasons of message length restrictions! TextAnywhere also do some other interesting things, based upon which TA domain you send your e-mail to: - Take the first 11 characters of the e-mail subject as the originator ID (instead of your mobile number) and the first 160 characters of the body as the text message - Take the first 160 characters of the e-mail body as the text message, setting the originator ID to your account's default mobile number - Take the entire e-mail body and send as many SMSes as needed to send the complete message (up to 3 messages will get linked as 1 by your handset) If you use the HTTP gateway there are a lot more options you can do, including getting a delivery report back when the message has been delivered to the handset (obviously custom programming on your side is needed.) Andy. Frost, Mark {PBG} wrote: We do this as well (e-mail to [EMAIL PROTECTED]) to receive alerts. What's not so good about this is that most phone companies limit the length of an SMS message. The provider includes a lot of the e-mail header in the SMS message which eats up a good chunk of that length. We find that regularly we get the subject, but little or none of the body of the alert message. It would be nice to be able to get just the alert without all the e-mail header crap. That's what makes the notion of a service that translates the e-mail message more intelligently and sends it via SMS an intriguing idea to us. Mark - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Re: [Nagios-users] Notifications by SMS
There are plenty of email-to-SMS providers out there. www.textanywhere.net www.aql.com To name 2 that spring to mind (UK-based.) They all use pretty much the same approach - send an e-mail to your_sms_device_number@providers_domain.tld, and it'll relay the first 160 characters (or whatever the network allows) of the e-mail to the mobile device number. I've used both AQL and TextAnywhere, TA has a slightly quicker response time than AQL on sent messages, and they invoice us on a monthly basis rather than having to pre-pay (like AQL, where we often ran into the problem of running out of credit, then messages don't get relayed.) I'm sure there are some free providers that may do this too, but the paid ones often implement better solutions (like TA has a HTTP and SOAP protocol so you can POST a HTTP request in the correct format to generate a text message rather than using e-mail.) HTH, Andy. Chaim Keren Tzion wrote: What are the recommended ways to have Nagios send SMS notifications via the net? (Non modem solutions please.) Free and non-free. TIA - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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 !DSPAM:37,45de396b925171512379562! - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Re: [Nagios-users] NRPE unable to read output
I had this problem, and had to put the full path to sudo (/usr/bin/sudo) in nrpe's config. HTH Andy. Hari Sekhon wrote: I know that nrpe works, I run over 100 checks via nrpe, and on this host all other nrpe checks work. I don't know if it's really the sudo in the line because I have another line which says command[check_another_plugin]=sudo /etc/nagios/another_plugin and this works fine when called via nrpe as such check_nrpe -H hostname -c check_another_plugin OK: test ok If sudo was the problem, I would expect both checks to fail, but the other one works fine. Also, I need to run the check with sudo because this check will not work without root privs and my nrpe runs under the nagios user. -h Hari Sekhon Lane, Jim wrote: Hari: I think your problem is with the sudo in the line command[check_plugin]=sudo /etc/nagios/check_plugin Try it as command[check_plugin]=/etc/nagios/check_plugin and see how you get on. I run NRPE plugins as above on my systems and they work fine. HTH Jim Lane -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hari Sekhon Sent: February 21, 2007 8:04 AM To: Nagios Users mailinglist Subject: [Nagios-users] NRPE unable to read output Hi, I'm using NRPE to execute checks on remote hosts and am have problems with one plugin on just one machine. I have the plugin in the configuration of nrpe and execute /usr/nagios/libexec/check_nrpe -H hostname -c check_plugin NRPE: Unable to read output The definition of the command call in nrpe.cfg is as follows: command[check_plugin]=sudo /etc/nagios/check_plugin and I have the following line in /etc/sudoers: nagios ALL=(ALL) NOPASSWD: /etc/nagios/check_plugin NRPE is running as the nagios user. When logged in as root I can do su - nagios sudo /etc/nagios/check_plugin OK: test passed so I don't understand why it is saying no output. I tried changing the nrpe.cfg to have /tmp/output.log 21 at the end of it but the file /tmp/output.log was not created so I assume that there really was no output when run from the check_nrpe command. This works on all my other servers (most of which are Gentoo) and this one is RHEL4. SELinux is disabled. I can execute all other nrpe checks correctly on this server including another one which also uses sudo. The difference in Distro is the only thing I can think of but it even works from the command line. I am using nrpe 2.6. I have racked my brains but can't think of anything else. Any ideas on this? -h - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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 !DSPAM:37,45dc4dfa18514730279235! -- Andy Shellam NetServe Support Team the Mail Network an alternative in a standardised world p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ 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
Re: [Nagios-users] NRPE unable to read output
Another stab in the dark... the NRPE agent isn't inside a BSD jail is it? My Nagios host refuses to read NRPE's output in a machine that's jailed :( Andy. Hari Sekhon wrote: Thanks for the reply, I just tried that but unfortunately it still gave the same result. I have another sudo /etc/nagios/plugin and that works. Also, su-ing to nagios and then running the command by hand works. so I'm still stuck Hari Sekhon - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ 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
Re: [Nagios-users] Host down /UNREACHABLE
Does the host have the same parent in both Nagios installations? It looks like on one Nagios server, the host goes through a parent which is down, and on the other there is no parent relationship (or it's parent is OK.) Note: UNREACHABLE is not in terms of the network packets not reaching the host, it means that the parent host of a child host in Nagios is down. Andy. Riahi Taieb wrote: thanks for the replay I'm using the check_host_alive for hosts and check_ping as service, but the problem is that both of the 2 machines go through the same routers. Robert Wolfe a écrit : Are you using a PING plugin to check this? If so, one of the routes may have a firewall or router that blocks ICMP pings. *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of *Riahi Taieb *Sent:* Friday, February 16, 2007 4:26 AM *To:* nagios-users@lists.sourceforge.net *Subject:* [Nagios-users] Host down /UNREACHABLE Hi list, I have Nagios running on 2 machines on 2 sites that monitor the same route to one host. Although they have the same route, one gives me host down and the other host unreachable! 1: Host Status: DOWN Status Information: CRITICAL - Plugin timed out after 10 seconds 2: Host Status: UNREACHABLE Status Information: CRITICAL - Plugin timed out after 10 seconds Do any one see this before ? Thx !DSPAM:37,45d585c318516976812548! - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV !DSPAM:37,45d585c318516976812548! ___ 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 !DSPAM:37,45d585c318516976812548! -- Andy Shellam NetServe Support Team the Mail Network an alternative in a standardised world p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ 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
Re: [Nagios-users] email notice problem
[EMAIL PROTECTED] wrote: I am running 2.7 on an Ubuntu server, with sendmail. I have read the docs, but am having trouble here. According to the examples given I have define contact set up correctly. I also have an alias nagiosadmin in /etc/aliases. Here is my config, and the error I am getting below. The error is occuring when it reaches the email line. Any ideas how to resolve this? Not sure if this directly relates to your problem, but you don't need nagiosadmin in your aliases file, as the e-mail address that will be delivered to is [EMAIL PROTECTED], and the e-mail will come from your Nagios shell [EMAIL PROTECTED] machine domain (e.g. [EMAIL PROTECTED]) How do you know the error is at the email line? If /path/to/nagios/bin/nagios -v /path/to/nagios.cfg (substitute paths as required) reports your configuration is correct, then the problem more than likely lies within your command definitions. Andy. define contact{ contact_namenagiosadmin alias Nagios Admin service_notification_period 24x7 host_notification_period24x7 service_notification_optionsw,u,c,r host_notification_options d,r service_notification_commands notify-by-email host_notification_commands host-notify-by-email email [EMAIL PROTECTED] } Host Unreachable (10.10.4.89)\n\nDate/Time: Fri Feb 16 09:10:01 CST 2007\n | -s Host DOWN alert for relay-1.domain.com! [EMAIL PROTECTED] resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists... - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Re: [Nagios-users] email notice problem
[EMAIL PROTECTED] wrote: That looks fine to me. The problem is in your host-notify-by-email definition in the misccommands.cfg file. If you look below you have; sterilizing Host Unreachable (10.10.4.89)\n\nDate/Time: Fri Feb 16 09:10:01 CST 2007\n | -s Host DOWN alert for relay-1.domain.com! [EMAIL PROTECTED] Where it should read; Host Unreachable (10.10.4.89)\n\nDate/Time: Fri Feb 16 09:10:01 CST 2007\n | mail -s Host DOWN alert for relay-1.domain.com! [EMAIL PROTECTED] Looks like a copy and paste error. Oh and you probably also want to use something other than your '[EMAIL PROTECTED]' account. It's like sending from [EMAIL PROTECTED] :P Sorry about that... I was sterolizing the error. Here is exactly what the error says. [1171638601] HOST NOTIFICATION: nagiosadmin;relay-1.lctn.org;DOWN;host-notify-by-email;CRITICAL - Host Unreachable (10.10.4.89) [1171638601] Warning: Attempting to execute the command /usr/bin/printf %b * Nagios 2.7 *\n\nNotification Type: PROBLEM\nHost: relay-1.lctn.org\nState: DOWN\nAddress: 10.10.4.89\nInfo: CRITICAL - Host Unreachable (10.10.4.89)\n\nDate/Time: Fri Feb 16 09:10:01 CST 2007\n | -s Host DOWN alert for relay-1.lctn.org! [EMAIL PROTECTED] resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists... I do not have a misccommands.cfg, but I do have commands.cfg. using the mail command yields nothing, but as I mentioned, I do have sendmail installed. I can telnet to localhost on port 25. The reason I suspected it stops at email, is that if I change the contact email, it shows up in the log file with the same error. If you su to the Nagios user, and just run mail - does it yield anything, or command not found? The error seems to be (as someone previously said) it's piping your notification text to -s Host DOWN... which isn't a valid command. You need to change your notification command to pipe the result to mail -s instead of -s ... You may also need to try sendmail (I don't use sendmail so I don't know if mail is part of it or not.) Andy. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ 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
Re: [Nagios-users] email notice problem
[EMAIL PROTECTED] wrote: If you su to the Nagios user, and just run mail - does it yield anything, or command not found? The error seems to be (as someone previously said) it's piping your notification text to -s Host DOWN... which isn't a valid command. You need to change your notification command to pipe the result to mail -s instead of -s ... You may also need to try sendmail (I don't use sendmail so I don't know if mail is part of it or not.) I inserted sendmail, but still get the err. I am working on the syntax to see if I can resolve the error. What does everyone else have installed that the mail command works. I really don't care what MTA is used, just so I can get the sample, and new configs to work. I assumed on the install it would locate sendmail and insert the appropriate commands, but obviously, I was wrong. No, Nagios doesn't assume anything because everyone's networks/servers are setup differently. Try an absolute path to sendmail (use whereis sendmail to locate it if you're not sure.) The trick is to (while logged in or su'd to the Nagios user) manually type out a command and keep adjusting until it works - then put that into Nagios. e.g. echo Test e-mail|/usr/sbin/sendmail -s Host DOWN [EMAIL PROTECTED] Andy. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ 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
Re: [Nagios-users] email notice problem
[EMAIL PROTECTED] wrote: The trick is to (while logged in or su'd to the Nagios user) manually type out a command and keep adjusting until it works - then put that into Nagios. e.g. echo Test e-mail|/usr/sbin/sendmail -s Host DOWN [EMAIL PROTECTED] OK, now we're getting somewhere. Here is the error I get under the nagios user: WARNING: RunAsUser for MSP ignored, check group ids (egid=1001, want=120) can not chdir(/var/spool/mqueue-client/): Permission denied Program mode requires special privileges, e.g., root or TrustedUser. What is the best way to resolve this without causing a security problem? This is within your MTA - you'll have to read up (in sendmail's documentation) on how to set your nagios shell user as a trusted user within sendmail - this tells sendmail the users that are allowed to use it in program-mode (i.e. local submission, not over an SMTP connection.) Either that, or you need a script/plugin that will receive your text and send the mail via SMTP instead of local submission. Somebody familiar with sendmail may be able to help, I'm afraid I'm not. Andy. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ 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
Re: [Nagios-users] email notice problem
[EMAIL PROTECTED] wrote: This is within your MTA - you'll have to read up (in sendmail's documentation) on how to set your nagios shell user as a trusted user within sendmailhassles tells sendmail the users that are allowed to usehasslehasslehassle it in program-mode (i.e. local submission, not over an SMTP connection.) Either that, or you need a script/plugin that will receive your text and send the mail via SMTP instead of local submission. Somebody familiar with sendmail may be able to help, I'm afraid I'm not. Hardly worth the hassle, just to get notices. If I install mailx will it work without the same hassles? Try it. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ 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
Re: [Nagios-users] Using SSH to run remote command checks
Nagios Mail wrote: I wanted to update this problem as it appears to have never been resolved. The current version of check_by_ssh still returns an UKNOWN status in nagios. I have ran the command manually from the command line and echoed $?, and while it does return 0, nagios is putting in an UNKNOWN status. Not only that but the status appears to be flapping. The Critical and Warning status appear to work every time, but when an OK status is returned from one of the check programs (check_load, check_disk, check_process), check_by_ssh returns an UNKNOWN almost 80% of the time. I've followed up with three different people on this list who have reported the problem, and all of them just decided to move to NRPE. Has anyone gotten this plugin to work? I am assuming this is a code problem with check_by_ssh I just get the following very helpful error message: Remote command execution failed: ___ ___ _ _ Not even a reason why it failed, just a lot of underscores! I preferred NRPE from the beginning anyway, so I've always used that. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Re: [Nagios-users] Plugin time out
Hi Sean, If it's a standard plugin (from nagios-plugins), you can normally use the -t option in your check command definition to set the timeout to 300 seconds (i.e. 5 minutes.) E.g. /usr/local/nagios/libexec/check_ping -H [IP address] -w 1000,20% -c 2000,50% -t 300 Andy. Sean Thomas wrote: Hi guys Im fairly new to Nagios and in need of some assistence with the following: How would I go about extending the plugin time for this to 5 min. There is a lot of traffic on our clients lines which makes the 10 second interval to short for them to respond. Following is the mail output from Nagios * Nagios * Notification Type: PROBLEM Host: xxx.xxx.co.za State: DOWN Address: x.x.x.x Info: CRITICAL - Plugin timed out after 10 seconds Any help will be much appreciated !DSPAM:37,45d4376718511044721252! - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV !DSPAM:37,45d4376718511044721252! ___ 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 !DSPAM:37,45d4376718511044721252! -- Andy Shellam NetServe Support Team the Mail Network an alternative in a standardised world p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ 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
Re: [Nagios-users] Bug in check_disk when using mount points?
Hari, Works fine here (this is on Fedora 4) - check_disk (nagios-plugins 1.4.5) 1.79: [EMAIL PROTECTED] ~]$ df -h FilesystemSize Used Avail Use% Mounted on /dev/hda1 12G 1.4G 10G 13% / /dev/hda5 4.6G 33M 4.4G 1% /tmp /dev/hda6 56G 912M 52G 2% /endeavour none 247M 0 247M 0% /dev/shm [EMAIL PROTECTED] ~]$ sudo -u nagios /usr/local/nagios/libexec/check_disk -w 20% -c 10% -p / DISK OK - free space: / 10180 MB (87% inode=96%);| /=1406MB;9764;10985;0;12206 [EMAIL PROTECTED] ~]$ sudo -u nagios /usr/local/nagios/libexec/check_disk -w 90% -c 10% -p / DISK WARNING - free space: / 10180 MB (87% inode=96%);| /=1406MB;1220;10985;0;12206 [EMAIL PROTECTED] ~]$ sudo -u nagios /usr/local/nagios/libexec/check_disk -w 95% -c 90% -p / DISK CRITICAL - free space: / 10180 MB (87% inode=96%);| /=1406MB;610;1220;0;12206 Even with the megabytes switch (-m): [EMAIL PROTECTED] ~]$ sudo -u nagios /usr/local/nagios/libexec/check_disk -w 10100 -c 1 -m -p / DISK OK - free space: / 10180 MB (87% inode=96%);| /=1406MB;2106;2206;0;12206 [EMAIL PROTECTED] ~]$ sudo -u nagios /usr/local/nagios/libexec/check_disk -w 10190 -c 1 -m -p / DISK WARNING - free space: / 10180 MB (87% inode=96%);| /=1406MB;2016;2206;0;12206 [EMAIL PROTECTED] ~]$ sudo -u nagios /usr/local/nagios/libexec/check_disk -w 12000 -c 11000 -m -p / DISK CRITICAL - free space: / 10180 MB (87% inode=96%);| /=1406MB;206;1206;0;12206 Have you tried the latest version of the plugins? Andy. Hari Sekhon wrote: OK it's not just a bug with the -m switch but with the whole plugin. Observe: /usr/nagios/libexec/check_disk -l -w 2 -c 1 -u TB -vvv DISK OK - free space: / 0 TB (77% inode=98%); /dev 0 TB (100% inode=98%); /home/match/ramdisk 0 TB (17% inode=100%); /dev/shm 0 TB (100% inode=100%); /boot 0 TB (93% inode=100%); 0 of 0 TB (77% inode=98%) free on /dev/sda2 (type ext3 mounted on /) warn:2 crit:1 warn%:-1% crit%:-1% 0 of 0 TB (100% inode=98%) free on udev (type tmpfs mounted on /dev) warn:2 crit:1 warn%:-1% crit%:-1% 0 of 0 TB (17% inode=100%) free on tmpfs (type tmpfs mounted on /home/match/ramdisk) warn:2 crit:1 warn%:-1% crit%:-1% 0 of 0 TB (100% inode=100%) free on shm (type tmpfs mounted on /dev/shm) warn:2 crit:1 warn%:-1% crit%:-1% 0 of 0 TB (93% inode=100%) free on /dev/sda1 (type ext3 mounted on /boot) warn:2 crit:1 warn%:-1% crit%:-1%| /=0TB;0;0;98;0 /dev=0TB;0;0;97;0 /home/match/ramdisk=0TB;0;0;99;0 /dev/shm=0TB;0;0;99;0 /boot=0TB;0;0;99;0 Hari Sekhon Hari Sekhon wrote: I'm using check disk and want to have it test the filesystem of a mount point rather than a partition. # df / Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda2153337060 28240084 117307864 20% / DF shows the filesystem is 20% used so I want this to force an error using the following test line so see that it actually works: check_disk -m / -w 90% the above check_disk should show Warning at this point as there is less than 90% free space left. Whether I do 10% or 90% it still returns successful even when it's not in the threshold range. # /usr/nagios/libexec/check_disk -m /home -w 100% DISK OK - free space: / 114558 MB (77% inode=98%);| /=35185MB;149743;149743;98;149743 # /usr/nagios/libexec/check_disk -m /home -w 10% DISK OK - free space: / 114558 MB (77% inode=98%);| /=35185MB;149743;149743;98;149743 # /usr/nagios/libexec/check_disk -m /home -w 90% DISK OK - free space: / 114558 MB (77% inode=98%);| /=35185MB;149743;149743;98;149743 The same is true when I was testing the /boot partition (which is a separate partition). So it looks like the -m switch is broken. Can anyone verify this? Is it a known bug, is it fixed? I am running check_disk (nagios-plugins 1.4.3) 1.64 (taken from the top line of check_disk --help) - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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 !DSPAM:37,45d347e218511427819843! -- Andy Shellam NetServe Support Team the Mail Network an alternative in a standardised world p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics
Re: [Nagios-users] Why Mysql on plugin installation
Mestdagh Tommy wrote: Found ! ./configure --without-mysql Strange. On my system it builds without mysql by default, and you supply --with-mysql if you want MySQL included. Andy. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ 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
Re: [Nagios-users] Help with Nagios Looking Glass 1.0.2
Hello Gary, In your client/s3_config_stub.inc.php file, set the $Stub_ClientEnableDebugging option to 1, then append ?debug=yes to the end of your looking-glass URL: e.g. http://looking-glass.andyshellam.eu/?debug=yes That should give you a further clue as to where things are going wrong. The main causes of this error are: - HTTP authentication required to access s3_download.php, but not specified in the config - URL to s3_download.php is incorrect - No write permission to client/sync-files - No data received from s3_download.php (server-side configuration for sync'd files is incorrect) If you're still having problems, please post the output from running in debug mode. Thanks, Andy. Cook, Garry wrote: I'm seeing this same error Could not sync all required files with the server. I've verified that all files in /usr/local/nagios/share/client and ../server are owned by www-data, the user apache is running as. I've also made sure that /usr/local/nagios/share/server/index is writable by www-data. Still seeing the problem. Hmmm... Maybe the write permission solution was for the failure code error. Reading through the thread again it looks like Stuart fixed the original issue that I'm now seeing, but never mentioned how he did so. Little help, Stu? Thanks, Garry -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Shellam (Mailing Lists) Sent: Thursday, February 08, 2007 1:52 PM To: Stuart Thornton Cc: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Help with Nagios Looking Glass 1.0.2 Stuart Thornton wrote: Thanks Andy That sorted it out. However either im going blind or thats not in the PDF documentation. The only permissions operations i see are performed in the client area. No, you're right. That change was introduced into 1.0.2, however the manual applies for 1.0.0. I'm still waiting on my manual author to update it for me. I did put a note in the release announcement on nagios-users, but it can easily go missed. I will put a note on the website when I get a spare second. Thanks Andy. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ 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 !DSPAM:37,45cb9d6718518298091890! -- Andy Shellam NetServe Support Team the Mail Network an alternative in a standardised world p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ 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
Re: [Nagios-users] Help with Nagios Looking Glass 1.0.2
Stuart Thornton wrote: Update I managed to sort out the sync issue however was stumped by the next error. The polling server feed returned a 'failure' code; the polling server said: The poller could not re-build the indexes The webserver user needs write permissions to NLG's server/index folder. Regards, Andy. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ 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
Re: [Nagios-users] Service Dependencies - refer to self
Matthew Joyce wrote: I like to see this issue come up time and time again, if only to hopefully get address in v2.8 or v3 It would be so much simpler if there was a parent_service directive in the service definition. Andy, will you share you php script ? Thanks Hi Matt, Yep no problem, unfortunately I'm short of time at the moment, but as and when I've done it I'll let you have it. Thanks, Andy. *Matthew Joyce* 02 9382 0051* |* IT Manager* |* Children's Cancer Institute Australia for Medical Research *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of *Andy Shellam (Mailing Lists) *Sent:* Monday, 5 February 2007 7:24 PM *To:* moshe sharon *Cc:* Nagios Users Mailing List *Subject:* Re: [Nagios-users] Service Dependencies - refer to self moshe sharon wrote: Hi its pretty simple solution without perl script. create a service called NRPE and enter the following check_command command_name nrpe_version command_line ./check_nrpe -H 212.150.36.20 http://212.150.36.20 when running this command against NRPE daemon you should get response NRPE v2.0 now create your dependencies that this NRPE is the master server and the other dependent on it. Yes, that's what I've done, but how do you do it by simply defining one dependency to do the same thing across multiple servers? If I use wildcards in the dependency, it makes every NRPE client service depend on every other NRPE server in the network, not just the server that service instance runs on. Andy. !DSPAM:37,45c9284218511209245668! -- Andy Shellam NetServe Support Team the Mail Network an alternative in a standardised world p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ 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
Re: [Nagios-users] Loosing status info after restart
Is it set in Nagios generally, i.e. in your nagios.cfg? # cat /usr/local/nagios/etc/nagios.cfg|grep retain retain_state_information=1 use_retained_program_state=1 use_retained_scheduling_info=0 Andy Sjaak Nabuurs wrote: Hello Nagios users Nagios -v 2.5 I've hanging around for a long time with a small problem When i restart nagios i'm loosing the state information and every status returns to pending. Also if I use /bin/printf [%lu] SAVE_STATE_INFORMATION\n $now $commandfile /bin/printf [%lu] RESTART_PROGRAM\n $now $commandfile define host {^ host_nameserver_domain alias domain address domain.com check_command check-host-alive max_check_attempts 5 check_interval5 active_checks_enabled 1 passive_checks_enabled 1 check_period 24x7 obsess_over_host 1 check_freshness 0 event_handler_enabled0 flap_detection_enabled 1 process_perf_data 0 retain_status_information1 - retain_nonstatus_information1 -- contact_groups administrator notification_interval5 notification_period 24x7 notification_options d,u,r,f notifications_enabled 1 register 1 } Thanks for reading - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ 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 !DSPAM:37,45c9732b18511055269334! -- Andy Shellam NetServe Support Team the Mail Network an alternative in a standardised world p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ 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
Re: [Nagios-users] Sending as specific email address
Peter L. Berghold wrote: Unless totally misunderstand the issue this is more of a MTA configuration issue than a Nagios issue. FYI If you are using Exim as your MTA like me, you need to set your Nagios user as a trusted user - then as long as you have a From: header in your e-mail, Exim will send the e-mail out as if it came from that address. If Nagios isn't a trusted user, the e-mail will look to have come from nagios@machine-name.domain-name Regards, Andy. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ 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
Re: [Nagios-users] Nagios not polling httpd
Sounds like a firewall issue between your Nagios server and 10.0.4.37. Andy. edalB wrote: Done the same. I just dont get any connection On 2/5/07, Robin Ericsson [EMAIL PROTECTED] wrote: On 2/5/07, edalB [EMAIL PROTECTED] wrote: Hi there I have a weird problem. I have a server that has a httpd service running off it. When I go to the website on the server I can access it and it works 100% but when I ask nagios to check_http it gives me the following. nagios-0 libexec # ./check_http 10.0.4.37 CRITICAL - Socket timeout after 10 seconds What about telnet 10.0.4.37 80 ? -- regards, Robin - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ 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 - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ 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 !DSPAM:37,45c86ad118513151514555! -- Andy Shellam NetServe Support Team the Mail Network an alternative in a standardised world p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ 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
Re: [Nagios-users] Nagios not polling httpd
edalB wrote: Nope it would not be the reason. All the servers I try to monitor is inside my firewall. What does telnet 10.0.4.37 80 yield? How long do you have to wait before issuing the telnet command and it coming back with a failure? If you cannot even telnet to the server, then something is stopping packets getting there, or the web server on that machine is not listening on that IP. If you can connect to it with telnet, type GET / and you should get some form of HTML code back. Andy. Thanks tho On 2/6/07, Andy Shellam (Mailing Lists) [EMAIL PROTECTED] wrote: Sounds like a firewall issue between your Nagios server and 10.0.4.37. Andy. edalB wrote: Done the same. I just dont get any connection On 2/5/07, Robin Ericsson [EMAIL PROTECTED] wrote: On 2/5/07, edalB [EMAIL PROTECTED] wrote: Hi there I have a weird problem. I have a server that has a httpd service running off it. When I go to the website on the server I can access it and it works 100% but when I ask nagios to check_http it gives me the following. nagios-0 libexec # ./check_http 10.0.4.37 CRITICAL - Socket timeout after 10 seconds What about telnet 10.0.4.37 80 ? -- regards, Robin - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ 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 - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ 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 -- Andy Shellam NetServe Support Team the Mail Network an alternative in a standardised world p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 !DSPAM:37,45c8728918512128552232! -- Andy Shellam NetServe Support Team the Mail Network an alternative in a standardised world p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ 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
Re: [Nagios-users] Service Dependencies - refer to self
moshe sharon wrote: Hi its pretty simple solution without perl script. create a service called NRPE and enter the following check_command command_name nrpe_version command_line ./check_nrpe -H 212.150.36.20 http://212.150.36.20 when running this command against NRPE daemon you should get response NRPE v2.0 now create your dependencies that this NRPE is the master server and the other dependent on it. Yes, that's what I've done, but how do you do it by simply defining one dependency to do the same thing across multiple servers? If I use wildcards in the dependency, it makes every NRPE client service depend on every other NRPE server in the network, not just the server that service instance runs on. Andy. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ 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
[Nagios-users] Nagios Looking Glass 1.0.2 in Beta-testing
Nagios Looking Glass v1.0.2 Beta is available for download! This is a call for testers to try out 1.0.2 before it is released. The reason being there have been massive performance improvements in the way NLG gathers the data from Nagios, and I'm hoping people who couldn't get 1.0.1 or below working in large environments can test 1.0.2#Beta successfully. 1.0.1 and below didn't display when there were more than 200 servers in Nagios. 1.0.2#Beta takes 6-8 seconds to render 600 servers and 6000 services for the first visit, and 1-2 seconds per subsequent visit (when status data is cached.) It is available to download at www.nagioslookingglass.co.uk/download.phpx#nlg_dev The Important Bits === = The official project site is: http://www.nagioslookingglass.co.uk Get the latest release at: http://www.nagioslookingglass.co.uk/download.phpx Available in Windows Zip, and Unix .tar.gz and .tar.bz2 formats. (Beta versions available in Windows Zip only.) To upgrade from a previous version, please see UPGRADING.TXT in the distribution. The Administrator Manual for 1.0.0#PRE still applies on the whole, however the the server/index folder also needs write permissions by the web server user on the Nagios server. If you enforce PHP memory limits on the polling server (PHP compiled with --enable-memory-limit), you may need to increase the default 8MB memory limit in php.ini. For 600 servers/6000 metrics, NLG needs 48MB allocating. More Detail == NLG is a Web-2.0 browser-based application that works in Firefox, IE, Safari and Konqueror. It shows visitors the status of your network without giving them access to the Nagios CGIs, and starts at a network summary view with the options to drill down into servers (hosts) and their metrics (services). NLG can easily be customised to match your company's look and feel, and is ideal for hosting companies who run Nagios. For the full changelog for this version, please see the CHANGELOG.TXT file in the distribution, or visit: http://arctic.andyshellam.eu/index.php?cmd=changelogproject=2version=12 Please see the 'Support' section on the NLG project website to see the best way to report bugs / request new features etc. To see where NLG is headed in the future, visit: http://arctic.andyshellam.eu/index.php?cmd=roadmapproject=2 Regards, Andy Shellam - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ 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
[Nagios-users] servicegroup_name in dependencies
Can anyone see a problem with this service dependency setup? Nagios complains with a NULL service description/host name in service dependency definition message with this configuration, but I cannot see anything wrong myself. According to the manual: --- start man quote --- All Services In Multiple Servicegroups: If you want to create service dependencies for all services that belong in one or more servicegroups, you can do use the servicegroup_name and/or dependent_ servicegroup_name directive as follows: define servicedependency{ servicegroup_name SERVICEGROUP1,SERVICEGROUP2,...,SERVICEGROUPN dependent_servicegroup_name SERVICEGROUP3,SERVICEGROUP4,...SERVICEGROUPN other escalation directives ... } --- end man quote --- I cannot get this to work under Nagios 2.7. In my setup, I have a group called aseu_web_servers. Every host in that group (currently only one) has a service called Web Service which, using NRPE, checks that the local web server is running. I then have a list of 13 websites assigned to a service group called web_sites. What I'm trying to do is setup a dependency on every website, with the Web Service on the host being the master service, so if the web server dies, I don't get a notification for every website that fails. With the above manual excerpt, I figured the following would work: define servicedependency { hostgroup_nameaseu_web_servers service_descriptionWeb Service dependent_hostgroup_nameaseu_web_servers dependent_servicegroup_nameweb_sites inherits_parent0 execution_failure_criteriac notification_failure_criteriaw,u,c,p } Config check fails with: NULL service description/host name in service dependency definition If I change dependent_servicegroup_name to dependent_service_description and put a single website in, instead of the web_sites group, it works, as follows: define servicedependency { hostgroup_nameaseu_web_servers service_descriptionWeb Service dependent_hostgroup_nameaseu_web_servers dependent_service_description Website: www.andyshellam.eu inherits_parent0 execution_failure_criteriac notification_failure_criteriaw,u,c,p } Config check results in Total Warnings: 0; Total Errors: 0 Even if I set a specific host name instead of a host group, it still complains whenever the dependent_servicegroup_name option is used. This means I'll have to add in a service dependency for every website. I cannot use a wildcard in the dependent_service_description because there are other services on those servers that don't have a dependency on the web server. If I add a new website, all I want to have to do is add it into the web_sites group and have everything else taken care of, which the manual says you can by using the dependent_servicegroup_name directive. Is this a bug in Nagios, or can anyone tell me I'm missing something silly? Thanks Andy. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ 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
[Nagios-users] Service Dependencies - refer to self
Is there any way to make a service dependency refer to the service's own host? For example: I have a list of services that perform basic health checking (disk-space, swap-space, load, uptime etc) across all servers defined in Nagios. There is also a service on every server that checks that NRPE is running. What I'd like to do is create a service dependency so that all the basic health checks only get checked/notified if NRPE is running. However, I cannot seem to create a dependency that refers to it's own host. E.g. define servicedependency { hostgroup_nameall_servers service_descriptionRemote Monitoring Agent dependent_hostgroup_nameall_servers dependent_service_descriptionDisk Space (OS) inherits_parent0 execution_failure_criteriac notification_failure_criteriaw,u,c,p } What this does, and I understand why, is that one server's Disk Space (OS) service depends on every other server's Remote Monitoring Agent, instead of just it's own. I'd need something like: define servicedependency { host_name_self service_descriptionRemote Monitoring Agent dependent_host_name_self dependent_service_descriptionDisk Space (OS) inherits_parent0 execution_failure_criteriac notification_failure_criteriaw,u,c,p } So the service Disk Space (OS) is dependent on the Remote Monitoring Agent on that same server. The only way forward I can see for now is creating a service dependency for every host, for every health check service (which for me means upwards of 40 dependencies.) I hope this is a good enough explanation of what I'm trying to do - can this be done? Thanks Andy. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ 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
Re: [Nagios-users] Service Dependencies - refer to self
Hugo van der Kooij wrote: On Sun, 4 Feb 2007, Andy Shellam (Mailing Lists) wrote: Is there any way to make a service dependency refer to the service's own host? In your case I would write a tiny script and generate the service dependencies. I guess some 20 lines of perl might do the trick if you are fluent in perl. Hugo. Thanks Hugo, I'll probably do it in PHP as I haven't touched Perl other than the very basics. Was just hoping there may have been an easier way I'd missed in the docs ;) - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ 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
Re: [Nagios-users] Nagios and exception monitoring
You can do this in Nagios Looking Glass (a portal viewer for Nagios), you can set a filter so it only shows you hosts that have problems (and is refreshed at regular intervals so you can leave it on screen.) It might not be exactly what you're after, but worth a look? www.nagioslookingglass.co.uk Scott Micciche wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Is there any way to configure Nagios to only show the exceptions on the service detail and associated pages? I only ask as we have many machines and although we can sort by status, it isn't the default sort so if you change pages, you must re-sort and it would be nice to configure Nagios to only show exceptions, like Critial and Warnings at the top and all the machines that are in good status at the bottom. Thanks in advance for any help. - -- Scott Micciche Unix Systems Administrator Sierra Pacific Mortgage (916) 932-0634 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFv8EXla/LXXqKLxIRAkDgAKCABgIVoCztVQUMuk27YfHpAFNI4gCfYSeb rZn9ZnzIPAdpiBa1EjOWtRw= =TgeN -END PGP SIGNATURE- - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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 !DSPAM:37,45bfc143118218947617192! -- Andy Shellam NetServe Support Team the Mail Network an alternative in a standardised world p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
[Nagios-users] NRPE in FreeBSD jail
I've been struggling with this for the last 2 hours and I cannot work out where it's going wrong. I have a Nagios 2.7 server talking to an NRPE 2.6 client. The Nagios 2.7 server is running FreeBSD as does the NRPE client - however the NRPE client is being run in a FreeBSD jail (this is a hosted system which I have no control of outside of the jail.) I'm hoping I've simply missed something simple. When I run from the console of the NRPE client, as the Nagios user: $ /usr/local/bin/sudo /usr/local/nagios/libexec/check_swap -w 25% -c 10% SWAP OK - 91% free (7442 MB out of 8192 MB) |swap=7442MB;2048;819;0;8192 $ When I run the check from the Nagios server: sudo -u nagios /usr/local/nagios/libexec/check_nrpe -H mackay.mailnetwork.co.uk -c check_swap NRPE: Unable to read output If I try an invalid command: sudo -u nagios /usr/local/nagios/libexec/check_nrpe -H mackay.mailnetwork.co.uk -c check_swapNOTEXIST NRPE: Command 'check_swapNOTEXIST' not defined So, as you can see, it is reaching NRPE fine (and I presume the SSL is working correctly.) I've tried starting up NRPE without SSL (-n), and ditto on the Nagios server - still the same error. I've also tried setting allow_weak_random_seed=1, same error. I'm guessing it has something to do with NRPE not sending the output data from the plugin to the correct stream, and as I don't know much about FreeBSD jails, I don't know whether stdin/out works as normal. As you can see, I've also set debug=1, but don't get anything in my log files other than daemon starting up. Is anyone else running NRPE inside a jail? Or can point out something obvious I'm missing!? Or how to get more debug info? Thanks Andy. --- My nrpe.cfg file: pid_file=/var/run/nrpe.pid server_port=5666 #server_address=192.168.1.1 nrpe_user=nagios nrpe_group=localservice #allowed_hosts=127.0.0.1,10.100.9.201 dont_blame_nrpe=0 command_prefix=/usr/local/bin/sudo debug=1 command_timeout=60 connection_timeout=300 #allow_weak_random_seed=1 command[check_swap]=/usr/local/nagios/libexec/check_swap -w 25% -c 10% - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Re: [Nagios-users] NRPE in FreeBSD jail
Dan Langille wrote: On 27 Jan 2007 at 22:07, Andy Shellam (Mailing Lists) wrote: I've been struggling with this for the last 2 hours and I cannot work out where it's going wrong. I have a Nagios 2.7 server talking to an NRPE 2.6 client. The Nagios 2.7 server is running FreeBSD as does the NRPE client - however the NRPE client is being run in a FreeBSD jail (this is a hosted system which I have no control of outside of the jail.) I'm hoping I've simply missed something simple. When I run from the console of the NRPE client, as the Nagios user: $ /usr/local/bin/sudo /usr/local/nagios/libexec/check_swap -w 25% -c 10% SWAP OK - 91% free (7442 MB out of 8192 MB) |swap=7442MB;2048;819;0;8192 $ You are you issuing ...? When I run the check from the Nagios server: sudo -u nagios /usr/local/nagios/libexec/check_nrpe -H mackay.mailnetwork.co.uk -c check_swap NRPE: Unable to read output If I try an invalid command: sudo -u nagios /usr/local/nagios/libexec/check_nrpe -H mackay.mailnetwork.co.uk -c check_swapNOTEXIST NRPE: Command 'check_swapNOTEXIST' not defined So, as you can see, it is reaching NRPE fine (and I presume the SSL is working correctly.) I've tried starting up NRPE without SSL (-n), and ditto on the Nagios server - still the same error. I've also tried setting allow_weak_random_seed=1, same error. I'm guessing it has something to do with NRPE not sending the output data from the plugin to the correct stream, and as I don't know much about FreeBSD jails, I don't know whether stdin/out works as normal. As you can see, I've also set debug=1, but don't get anything in my log files other than daemon starting up. Is anyone else running NRPE inside a jail? Or can point out something obvious I'm missing!? Or how to get more debug info? Thanks Andy. --- My nrpe.cfg file: pid_file=/var/run/nrpe.pid server_port=5666 #server_address=192.168.1.1 nrpe_user=nagios nrpe_group=localservice #allowed_hosts=127.0.0.1,10.100.9.201 Why commented out? The server_address is commented out so NRPE binds to all addresses - this config file template came from another server where I only wanted it to listen on one of it's two addresses. The allowed_hosts is commented out as a further debugging attempt. dont_blame_nrpe=0 command_prefix=/usr/local/bin/sudo debug=1 command_timeout=60 connection_timeout=300 #allow_weak_random_seed=1 command[check_swap]=/usr/local/nagios/libexec/check_swap -w 25% -c 10% You issued an sudo above, yet the command here does not use sudo. The command_prefix puts /usr/local/bin/sudo before all commands, as some core plugins require root access. I've seen this error before, and recently. Usually it was a permissions issue. For some readon nrpe is unable to execute the command. Perhaps it is this sudo issue. Perhaps, but this same config works fine on a Fedora Core 4 system, by changing /usr/local/bin/sudo to /usr/bin/sudo. Before I changed this I got the same error on the Fedora system, so I am leaning towards it being a permissions issue, but I can't figure out what. A side note: sometimes it helps to add wrapper function. All the wrapper function does it a cd /usr/local/nagios/libexec and then runs the command you would normally specify in nrpe.cfg The plugins I'm trying to execute are all core plugins (check_swap, check_dns etc.) I haven't had to add a wrapper on any other system (including an identical FreeBSD machine, just not running in a jail.) Thanks, Andy. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Re: [Nagios-users] ANNOUNCE: Nagios Looking Glass 1.0.1 released!
Hi Randall, You can put NLG's folders wherever you want, as long as it has a URL that can be accessed via HTTP (e.g. Apache.) This can be setup as a separate virtual host, a so-called virtual directory under Apache, or simply as a subdirectory of Apache's default htdocs. The main files NLG needs from Nagios are those in 'nagios/var' and these must be accessible via the local file-system to NLG's server scripts. The client can be placed on a separate machine if required. Currently the server-side of NLG requires a HTTP URL, even if the client is on the same machine. This will be changed in future versions, but that's how it is now. The 'share' folder is where all the templates/HTML files etc are for Nagios' front-end, and this was used for sake of simplicity. This may be different on OSX, I'm not sure, someone more familiar with the OSX builds of Nagios may be able to help you further. Andy. Randall R. Saeks wrote: I am looking to get this installed on OS X, and can't seem to find a share folder inside of any of my Nagios folders. Is this something that I should be creating if it is not there? Is the directory where this should be installed the same one that has all the image, local folders and index.html, config.js? Once I get some of that down, I can put the steps for the install on OS X together, but I just need some guidance on where to put these. Thanks, Randall R. Saeks, ACSA Network Administrator/Computer Support Specialist Northbrook / Glenview School District 30 On Jan 23, 2007, at 4:51 AM, Andy Shellam (Mailing Lists) wrote: Nagios Looking Glass v1.0.1 is available for download! *** Please upgrade from 1.0.0#PRE and 1.0.0 as soon as possible as a possible vulnerability has been patched *** The Important Bits === = The official project site is: http://www.nagioslookingglass..co.uk http://www.nagioslookingglass.co.uk Get the latest release at: http://www.nagioslookingglass.co.uk/download.phpx Available in Windows Zip, and Unix .tar.gz and .tar.bz2 formats. The files on Nagios Exchange will be upgraded once the documentation has been released, so please download from the project site (above.) To upgrade from a previous version, please see UPGRADING.TXT in the distribution. The documentation is not currently in the distribution but will be added in the next few days. The 1.0.0#PRE administrator manual is still available on the NLG project website under Documentation and the majority of it still applies for 1.0.0. More Detail == NLG is a Web-2.0 browser-based application that works in Firefox, IE, Safari and Konqueror. It shows visitors the status of your network without giving them access to the Nagios CGIs, and starts at a network summary view with the options to drill down into servers (hosts) and their metrics (services). NLG can easily be customised to match your company's look and feel, and is ideal for hosting companies who run Nagios. For the full changelog for this version, please see the CHANGELOG.TXT file in the distribution, or visit: http://arctic.andyshellam.eu/index.php?cmd=changelogproject=2version=8 http://arctic.andyshellam.eu/index.php?cmd=changelogproject=2version=8 Please see the 'Support' section on the NLG project website to see the best way to report bugs / request new features etc. To see where NLG is headed in the future, visit: http://arctic.andyshellam.eu/index.php?cmd=roadmapproject=2 http://arctic.andyshellam.eu/index.php?cmd=roadmapproject=2 Regards, Andy Shellam - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net mailto: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 !DSPAM:37,45ba3501118211186321138! -- Andy Shellam NetServe Support Team the Mail Network an alternative in a standardised world p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Nagios
Re: [Nagios-users] Error when starting nagios in debug mode.
Gopinath wrote: Hi and happy new year everyone, I am very new to this list nagios. So please bare with me. I have successfully installed and compiled nagios in my machine running Fedora core 3. When i try to start the nagios service I encounter with the following error. Error: Unexpected token or statement in file '/usr/local/nagios/etc/hosts.cfg' on line 1. My hosts.cfg file has the default value: Erm, the last time I looked that's not a default Nagios host file :S 0 CFGDIR cfg 0 DEFHOST pc1 192.168.10.1.cfg serial0 0 DEFHOST pc2 192.168.10.1.cfg serial2 0 DEFHOST pc3 192.168.10.1.cfg serial3 I don't find any document in nagios doc page defining how to edit the host.cfg file. So please help me out. http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#host -- Andy Shellam NetServe Support Team the Mail Network an alternative in a standardised world - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Re: [Nagios-users] Howto not check a service each day from 03-06
Martin Møller Pedersen wrote: Hi, Every night some oracle databases are stopped. Is it possible to specifiy that the a specific service (eg. check_oracle) shouldn't be tested beetween eg. 03-06 each day. Certainly - define yourself a time period which doesn't include these times :) http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#timeperiod e.g. define timeperiod{ timeperiod_name oracle-downtime alias Oracle Downtime sunday 00:00-03:00,06:00-24:00 - repeat for monday - saturday - } Then in your Oracle service check, use oracle-downtime as the value for check_period Andy. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Re: [Nagios-users] Howto not check a service each day from 03-06
Marcel Mitsuto Fucatu Sugano wrote: On Wed, 2007-01-24 at 10:07 +, Andy Shellam (Mailing Lists) wrote: define timeperiod{ timeperiod_name oracle-downtime alias Oracle Downtime sunday 00:00-03:00,06:00-24:00 - repeat for monday - saturday - } Then in your Oracle service check, use oracle-downtime as the value for check_period just being itchy, the name leads to misunderstanding, it should be called oracle-uptime, as this timeperiod is defined to check the running oracle instance, not the downtimed period. Hehe yep good point, I was just making it obvious that it's a time period for a specific-use, but yep I agree! - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
[Nagios-users] ANNOUNCE: Nagios Looking Glass 1.0.1 released!
Nagios Looking Glass v1.0.1 is available for download! *** Please upgrade from 1.0.0#PRE and 1.0.0 as soon as possible as a possible vulnerability has been patched *** The Important Bits === = The official project site is: http://www.nagioslookingglass.co.uk Get the latest release at: http://www.nagioslookingglass.co.uk/download.phpx Available in Windows Zip, and Unix .tar.gz and .tar.bz2 formats. The files on Nagios Exchange will be upgraded once the documentation has been released, so please download from the project site (above.) To upgrade from a previous version, please see UPGRADING.TXT in the distribution. The documentation is not currently in the distribution but will be added in the next few days. The 1.0.0#PRE administrator manual is still available on the NLG project website under Documentation and the majority of it still applies for 1.0.0. More Detail == NLG is a Web-2.0 browser-based application that works in Firefox, IE, Safari and Konqueror. It shows visitors the status of your network without giving them access to the Nagios CGIs, and starts at a network summary view with the options to drill down into servers (hosts) and their metrics (services). NLG can easily be customised to match your company's look and feel, and is ideal for hosting companies who run Nagios. For the full changelog for this version, please see the CHANGELOG.TXT file in the distribution, or visit: http://arctic.andyshellam.eu/index.php?cmd=changelogproject=2version=8 Please see the 'Support' section on the NLG project website to see the best way to report bugs / request new features etc. To see where NLG is headed in the future, visit: http://arctic.andyshellam.eu/index.php?cmd=roadmapproject=2 Regards, Andy Shellam - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Re: [Nagios-users] problems with Nagios Looking Glass
Hi Mark, If you enable the debugging option in the client/s3_config_stub.inc.php file ($Stub_ClientEnableDebugging) to 1, then visit http://nagioshost/nlg/client/?debug=yes;, that will generate your debugging output, but I'm guessing it will go as far as the error it's already generated in the front-end. 1.0.0#PRE didn't give any error messages apart from feed download failed - that was fixed in 1.0.0. 1.0.1 literally only changed one line of code, so it's strange if it's giving you a different error to 1.0.0. :S As a private e-mail, can you send me your config files and the debug output? (Obviously strip any usernames/passwords out of your config before-hand!) Just glancing over your e-mail, is this just an oversight, or is this actually in your config? - You say you're using the same server as both client and server, and your client address starts http://nagioshost, but your server address starts http://nagios - this would cause the delay you're seeing, but I think I'm being a bit hopeful that this is all it is ;) As per your question about authentication, the sync'd files are requested from the normal file-system (when configured), but the poller still uses a HTTP request - this is something I'm hoping to change in 1.0.2. FYI you don't have to put NLG in the share directory of Nagios - I've done exactly the same trick as you did with my server feed, and my client UI is sitting on a completely different server to Nagios. Thanks Andy. Frost, Mark {PBG} wrote: Hello. I've been trying to use Nagios Looking Glass and have so far been unable to. I've tried 1.0Pre, 1.0 and now 1.0.1. When I go to the client URL (http://nagioshost/nlg/client) it sits there working on it for 30 seconds and gives me back an error page which includes: The checksum I received with the feed is invalid compared to my local check. Network problems may be causing packet loss The long wait before the error was consistent with behavior in 1.0Pre and 1.0, but each version has given me different errors (or none at all I think with 1.0Pre). I'm running Nagios 2.6 with authentication to the Nagios share directory. I've got both the NLG client and server on the same box which is the same as the Nagios server itself. One thing I'm doing differently here (and maybe I can't do this) is that I put the NLG stuff *outside* of the nagios share directory. I tweaked my Apache config so that it would find 'nlg' as a separate URL with no authentication. So the NLG URLs would be something like http://nagioshost/nlg/client or http://nagios/nlg/server/s3_poller.php I modified the php include files per the 1.0PRE documentation (that's still current for 1.0 and 1.0.1, right?) to use these URLs. I'm a little unclear about authentication here because I wasn't sure that NLG would need it as it's accessing files directly. That is, since the entire /nlg URL tree is unauthenticated and I thought NLG would access Nagios' files directly (i.e. not using the Nagios URLs) no authentication was necessary. I can't find any error logs and I'm having some difficulty figuring out how I might turn debugging on in the code to tell me what I might have done wrong. Any help would be greatly appreciated. thanks Mark - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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 !DSPAM:37,45b632b0118219947612590! -- Andy Shellam NetServe Support Team the Mail Network an alternative in a standardised world p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Re: [Nagios-users] problems with Nagios Looking Glass
Frost, Mark {PBG} wrote: As a followup, it looks like (perhaps among other issues) the s3_poller.php script is timing out. I've turned on the displaying of PHP error messages and when I put the s3_poller.php URL in and wait, I eventually get: Fatal error: Maximum execution time of 30 seconds exceeded in /usr/local/nlg_101/server/sync-files/s3_functions.inc.php on line 248 Yep what that's doing is parsing your var/status.dat file to get the current services and their statuses. How big is your Nagios installation? (i.e. how many hosts/services?) Looking at that file, this seems to be looking at one of my nagios var files... preg_match_all(/(?:\n|\r\n)\w*service {(?:\n|\r\n)\s*host_name= . $ServerObject-HostName . (?:\n|\r\n)/, stream_get_contents($StatusFileHandle), $ServiceMatches, PREG_OFFSET_CAPTURE, 0); Mark Andy. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Re: [Nagios-users] Nagios: checking actual health of a disk.
I have SMART enabled on my hard disks, and have a plugin downloaded from Nagios Exchange (it requires Python) that parses the SMART output and reports an OK or Bad status. (I think it's called check_smartmon.py). Andy. David Rivera wrote: Hi all, I was wondering is anyone has done this, I am wondering if there are plugins already out there I can use to check the health of Sun boxes and linux boxes. I know 'checking the health' is very vague, since there are a number of things to check. For Sun, checking metadevices or disks not under any any voluem manager. linux, not sure how to check on them? thanks much David Money can't buy happiness, but neither can poverty. -Leo Rosten !DSPAM:37,45b69bfc118211922293640! - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV !DSPAM:37,45b69bfc118211922293640! ___ 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 !DSPAM:37,45b69bfc118211922293640! -- Andy Shellam NetServe Support Team the Mail Network an alternative in a standardised world p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Re: [Nagios-users] nagios.cmd external
Nedim Bicic wrote: Hi all, i have nagios 2.4 I need want to change and input settings via the web interface like scheduale downtime etc, which i read that the external command does this i enabled it in nagiod.cfg =1 but i aslo found out that you need to create a nagios.cmd file and give it directory permission , located in one of the folders that keeps this log my question is how do i create this file and make it point to external command so when i do isue an extenal command on web interface does anyone know how this is set ...manual doesnt tell me much from what i already did You shouldn't create it yourself - Nagios creates it as required. Just make sure the rw directory has read/write permission to the Nagios user and start Nagios. You should get a nagios.cmd file in there. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Re: [Nagios-users] Accessing /dev/ttyUSB0 to send SMS
Herman (ISTD) wrote: Dear all, I use gnokii to send Nagios notification. Gnokii need to access /dev/ttyUSB0 in order to deliver message to Handphone. At present, I need to set nagios user to root group in order to accomplish this task. If the nagios user is not in root group, it could not access /dev/ttyUSB0. Previously when nagios user is not in root group, I tried to do some workarounds such as : chown nagios /dev/ttyUSB0 but it didn't work. Is there's any way to access /dev/ttyUSB0 without setting nagios user as root group ? Thank you. Will sudo not accomplish this? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
[Nagios-users] ANNOUNCE: Nagios Looking Glass 1.0.0 released!
With immediate effect, Nagios Looking Glass v1.0.0 is available for download! The Important Bits === = The official project site is: http://www.nagioslookingglass.co.uk Get the latest release at: http://www.nagioslookingglass.co.uk/download.phpx Available in Windows Zip, and Unix .tar.gz and .tar.bz2 formats. The files on Nagios Exchange will be upgraded once the documentation has been released, so please download from the project site (above.) To upgrade from a previous version, please see upgrading.txt in the distribution. The documentation is not currently in the distribution but will be added in the next few days. The 1.0.0#PRE administrator manual is still available on the NLG project website under Documentation and the majority of it still applies for 1.0.0. More Detail == NLG is a Web-2.0 browser-based application that works in Firefox, IE, Safari and Konqueror. It shows visitors the status of your network without giving them access to the Nagios CGIs, and starts at a network summary view with the options to drill down into servers (hosts) and their metrics (services). NLG can easily be customised to match your company's look and feel, and is ideal for hosting companies who run Nagios. For the full changelog for this version, please see the CHANGELOG.TXT file in the distribution, or visit: http://arctic.andyshellam.eu/index.php?cmd=changelogproject=2version=5 Please see the 'Support' section on the NLG project website to see the best way to report bugs / request new features etc. Thanks to everyone who's beta-tested over the last few months, to Dave Green for the Safari testing, and thanks to Mark Novak for the documentation. To see where NLG is headed in the future, visit: http://arctic.andyshellam.eu/index.php?cmd=roadmap Enjoy!! -- Andy Shellam NetServe Support Team the Mail Network an alternative in a standardised world - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Re: [Nagios-users] nagios.cmd external
You may be connecting to Nagios using nagiosadmin, but that is a user under your webserver, not an OS user. If your Apache runs under the user nobody, that is the user you need to add to the nagioscmd group. Nedim Bicic wrote: yeah i think thats the problem i am loging in as nagiosadmin but from what i copied and pasted from documentation in nagios created user nobody and nagios ' But when i log into nagios i am logging in as nagiosadmin not nobody or nagios i tried adding nagiosadmin with this command: */usr/sbin/usermod -G nagiocmd nagiosadmin* usermod: user nagiosadmin does not exist keeps giving me this error but i think difinitly this might be casuing the error can you show me what i can do to add the user to this group or check weather it has been added?? thanks - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Re: [Nagios-users] Event Handlers
Please please please don't forgot to copy your responses to the list! Yep Nagios is executing your service handler (or at least trying to.) Try executing your command from an SSH console as the Nagios user. Andy. edalB wrote: This is what I see in the log file Jan 19 15:21:18 nagios-0 nagios: SERVICE ALERT: imap-1.rba.ispafrica.net;HTTP;CRITICAL;SOFT;1;Connection refused Jan 19 15:21:18 nagios-0 nagios: SERVICE EVENT HANDLER: imap-1.rba.ispafrica.net;HTTP;CRITICAL;SOFT;1;restart-httpd And I do have it enabled in my nagios.cfg config file Regards On 1/19/07, Andy Shellam (Mailing Lists) [EMAIL PROTECTED] wrote: Are event handlers enabled for this service? Do they show up as executed in the log file when your HTTP service goes down? edalB wrote: Hi all. I have created a event handler as a test to see how it works. The hard part I have done. I created a ssh key on on the nagios server. I tested that I am able to connect via ssh over to the other server working 100% fine. I then next tested my ssh connection using my ssh key to execute the sudo apache2 restart on the other server all worked 100%. So in thury all is working nicely from command line. The command line command I am using is. /usr/bin/ssh -p 222 -i /home/nagios/.ssh/id_dsa [EMAIL PROTECTED] sudo /etc/init.d/apache2 restart So what I did was I then added a extra line in my host define service{ use local-service host_name imap-1.rba.ispafrica.net service_description HTTP event_handler restart-httpd check_command check_http } And the command define command{ command_namerestart-httpd command_line/usr/bin/ssh -p 222 -i /home/nagios/.ssh/id_dsa [EMAIL PROTECTED] sudo /etc/init.d/apache2 res tart } So now nagios still does not want to execute my command Any advice would be appriciated. Thanks - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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 -- Andy Shellam NetServe Support Team the Mail Network an alternative in a standardised world p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 !DSPAM:37,45b0d09e137101451594761! - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Re: [Nagios-users] check host alive
Most systems have 64 as default TTL, otherwise you're right. There are two variants of Time to live exceeded. One is where the there are more hops to the target than the TTL set in the packet. This is known as Time to live exceeded in transit. Hmmm something rang a bell when you've said 64, however I've just got a completely different answer to both of our theories! On Windows, the TTL is set to 127, on my FreeBSD 6.1 box it's set to 246, and on Fedora 5 it's 243. The TTL displayed in the ping output, is this the same TTL as what we're both referring to? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Re: [Nagios-users] check host alive
Andreas Ericsson wrote: No, that's the TTL in the response packet, which will be defult TTL of host sending ICMP_ECHOREPLY minus hops between pinged host and self. The TTL on the outgoing packets are, by default, 64 on *BSD and Linux, 128 on Windows and HP switches/routers, 255 on Cisco and 3Com stuff... 64 is usually as high a TTL as one can stomach for most practical reasons (I reach Australia with 36 hops from Sweden). On Linux, the default TTL can be accessed through /proc/sys/net/ipv4/ip_default_ttl Ah great, thanks for the info :) - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Re: [Nagios-users] Defining different notification behavior for the same service on different hosts
As part of the hackery I would have the first (live) service have all options set, and the second (test-bed) service simply use the first service as a template, and override the notifications_enabled setting (and obviously the host too.) That way you really only have one service to change should you need to. Andreas Ericsson wrote: Scott Greenman wrote: I can't any way to have the same service on two hosts have different notification rules. Am I missing anything? Say you have two hosts, 'A' and 'B'. The service 'S' is defined as existing on both hosts. If 'S' goes down on 'A', I want notifications sent. If 'S' goes down on 'B', I don't want any notifications sent. If I set the 'notifications_enabled' directive on the service to either on or off, it's wrong for one host or the other. If I set the 'notifications_enabled' directive on the two hosts, this only affects host notifications, it seems to have no effect on service notifications on those hosts. To get what I want, It seems I'd have to create two services, one with 'notifications_enabled' set to 1 and one with it set to 0 (zero). That would be a real pain because most of my services would have to be duplicated this way. We run one group of machines as our 'production' environment where notifications are turned on and another group of machines as a 'test' environment where notifications are turned off. Both of these are monitored by the same nagios server and both run the same set of services. Unless someone can suggest an alternative, I am planning on having notifications turned on for both environments, and add filtering in the script defined as the 'service_notification_commands' for the contacts. This has the down side that Nagios will show I sent notifications to both hosts, when some of those notifications will have been filtered out by my script. Any help or ideas would be greatly appreciated. Sounds sensible. Since the two services really have different options defined, you can't keep them as one service without hackery. If the hackery lets you maintain configuration in a very simple manner I'd say it's worth it. Otherwise I'd go with creating two services. -- Andy Shellam NetServe Support Team the Mail Network an alternative in a standardised world p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Re: [Nagios-users] Monitoring question
Formoso, Travis wrote: OK I will try to give it the check_http check and see if it works when I bring down the httpd. Here is what I have now: (I added the event handler to http) # http define service{ usegeneric-service host_name www.blueslate.net,prpc,mars.blueslate.net,localhost service_descriptionHTTP is_volatile0 check_period 24x7 max_check_attempts 3 event_handler restart-httpd normal_check_interval 3 retry_check_interval 1 contact_groups bssadmins notification_interval 60 notification_period24x7 notification_options w,u,c,r check_command check_http!guest:guest } Here is the output of the log file: [1169048695] SERVICE ALERT: localhost;HTTP;CRITICAL;SOFT;1;Connection refused [1169048695] SERVICE EVENT HANDLER: localhost;HTTP;CRITICAL;SOFT;1;restart-httpd [1169048755] SERVICE ALERT: localhost;HTTP;CRITICAL;SOFT;2;Connection refused [1169048755] SERVICE EVENT HANDLER: localhost;HTTP;CRITICAL;SOFT;2;restart-httpd [1169048815] SERVICE ALERT: localhost;HTTP;CRITICAL;HARD;3;Connection refused [1169048815] SERVICE NOTIFICATION: tformoso;localhost;HTTP;CRITICAL;notify-by-email;Connection refused [1169048815] SERVICE EVENT HANDLER: localhost;HTTP;CRITICAL;HARD;3;restart-httpd I shut down the httpd - however the service did not restart auto - so the handler is not working. Any thing I can try or did wrong? Have you tried running the restart-httpd command as the Nagios user from the console? Also, on my server Apache (2.2) takes roughly 3-4 seconds to start up, and it looks like Nagios doesn't provide any delay between running the event handler, and the subsequent check if httpd's running. If the command works OK, try adding a sleep for 5 seconds command (e.g. sleep 5 for bash) to your event handler script after Apache has started. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Re: [Nagios-users] Monitoring question
Marc Powell wrote: the handler is not working. Any thing I can try or did wrong? Have you tried running the restart-httpd command as the Nagios user from the console? Always a good suggestion. Also, on my server Apache (2.2) takes roughly 3-4 seconds to start up, and it looks like Nagios doesn't provide any delay between running the event handler, and the subsequent check if httpd's running. Yes, there is a delay between the event_handler running and the next check for services at least. Whatever retry_check_interval is set to is the time nagios will wait to check again after executing the event_handler. Travis's retry_check_interval appears to be 1 minute (60 seconds). Ah, yes, sorry I was reading the Nagios log from bottom-to-top instead of top-to-bottom (don't ask why! It's been a long day!) Noting that, you can see the delay clearly - good to know! :) Andy. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Re: [Nagios-users] Monitoring question
Formoso, Travis wrote: I shut down the httpd - however the service did not restart auto - so the handler is not working. Any thing I can try or did wrong? Have you tried running the restart-httpd command as the Nagios user from the console? Always a good suggestion. I never was able to run anything as the Nagios user. I tried to su nagios and got: The account is currently not available. If your Nagios user's shell is set to /sbin/nologin (good practice) that's why. So use sudo not su. You need to be reading your Operating System's sudo and sudoers man page to learn how to grant passwordless access to a user to run commands - the default /etc/sudoers file has an example of how to do this. You will need to add sudo at the beginning of your command in Nagios - e.g. sudo /usr/local/nagios/libexec/eventhandler.. I ran ./check-httpd as root and when I typed that in - nothing happened. The command is usually check_http and requires the relevant parameters (website address to check, status code to cause an error on etc.) It's basically checking to see that a visitor to a website would get a valid http response from your server - if httpd is not running, this won't happen and the Nagios check will fail. Run /usr/local/nagios/libexec/check_http -h for more info (substitute Nagios plugins path as appropriate.) - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Re: [Nagios-users] Nagios-users Digest, Vol 8, Issue 23
Thanks alot andy and everyone else who chipped in.Now how do i enable it so that i can receive sms notifications? http://nagios.sourceforge.net/docs/2_0/notifications.html http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#host http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#contact http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#contactgroup http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#service To send a regular e-mail: 1. You need to create a command that will send an e-mail (with the relevant host/service information and states.) 2. You need to create a contact to receive the e-mail, and assign that contact to a contact group. 3. You need to configure the contact to use your command created in (1) for host and service notifications. 4. You need to set the notification group of your host/service to the contact group you created in (2). 5. You need to set any additional options for the notification. To send an SMS: You need an e-mail-to-SMS provider (www.aql.com, www.textanywhere.net etc) who will give you an e-mail such as your_mobile_number@smsprovider.com. You need to use that e-mail address in your contact definition. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Re: [Nagios-users] check_disk_smb
Create one service definition per share. You could do, for each extra share: define service { use SMB service_description SMB2 check_command check_disk_smb!backups!guest } You could then set up a dependency of the extra shares on the main share so if the SMB service fails you won't get a notification for each additional share. Only one check_command per service/host is processed and it's the last one in the list - hence why you're only seeing the backup share being checked. Andy. Formoso, Travis wrote: I am trying to set up monitoring on more than one share on our file server – here is my script # smb define service{ usegeneric-service host_name linuxdev1 service_descriptionSMB is_volatile0 check_period 24x7 max_check_attempts 3 normal_check_interval 1 retry_check_interval 1 contact_groups bssadmins notification_interval 120 notification_period24x7 notification_options w,u,c,r check_command check_disk_smb!public!guest check_command check_disk_smb!backups!guest } However it only is monitoring the backups – is their a way to set it up so it can monitor all shares on this server? This e-mail and any files transmitted with it are for the sole use of Blue Slate Solutions and the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. !DSPAM:37,45ad148e137101336215360! - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV !DSPAM:37,45ad148e137101336215360! ___ 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 !DSPAM:37,45ad148e137101336215360! -- Andy Shellam NetServe Support Team the Mail Network an alternative in a standardised world p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Re: [Nagios-users] Sending Notifications on Soft (from Passive Checks)
Set a maximum attempts to 1 in your service definitions, then any change in state results in a HARD state. Brian A. Seklecki wrote: Whenver the CGI submits passive check results; the state transition is always SOFT. If you submit a Critical down passive result, you then get SERVICE ALERT as state SOFT, which does not result in actually exec'ing the CONTACT commands. Is there any way to make these external command result result in HARD? [1168966519] EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;NCCluster04;Foo Web Cluster Health Check;2;TestPagers|TestPagers [1168966525] SERVICE ALERT: NCCluster04;Foo Web Cluster Health Check;CRITICAL;SOFT;1;TestPagers TIA, l8* -lava (Brian A. Seklecki - Pittsburgh, PA, USA) http://www.spiritual-machines.org/ ...from back in the heady days when helpdesk meant nothing, diskquota meant everything, and lives could be bought and sold for a couple of pages of laser printout - and frequently were. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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 !DSPAM:37,45ad1505137103131262399! -- Andy Shellam NetServe Support Team the Mail Network an alternative in a standardised world p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Re: [Nagios-users] Sending Notifications on Soft (from Passive Checks)
Hugo van der Kooij wrote: On Tue, 16 Jan 2007, Brian A. Seklecki wrote: Nevermind -- just Submit 3 passive service checks and the state transitions from Soft - Hard; What a PITA from the web interface. A macro would be great; a checkbox. Wouldn't this be related to the default retry counter? If you set the retry counter to 1 will it change the amount of passive check results one has to submit? Haven't tried anything but just thinking out loud. Hugo. Ah, hadn't seen your reply Hugo before I replied - yep that's basically what I've suggested. My system currently has a retry of 1 for each service, and when you submit a passive check through the web interface, it does result in a HARD state as opposed to SOFT - as expected. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Re: [Nagios-users] Monitoring question
Formoso, Travis wrote: Hi guys, When monitoring services - I wanted to know if and when a service goes down - is their a script to run that would try to bring the service back up automatically? I wanted to know if nagios went this far. Thanks a lot. There are event handlers which, according to the docs, will run a command to try and recover the service before sending a notification, but I haven't (yet) implemented them, so you'd have to have a look at the manual. You'd need to write the script yourself, it's impossible for Nagios to know how to bring a service up, or even if it was the service that had failed and not an underlying problem, such as networking. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Re: [Nagios-users] Plugin issue
[EMAIL PROTECTED] wrote: Don't forget to copy the mailing list in so others can chip in and help. Read the above line again!! HI Andy am kinda confused here: when you say i insert the values 2000,25% to the $ARG1$ and $ARG2$ respectively do you mean that i should insert them in the check_ping command defination or what?? Kindly explain! Thanks OK there are a few ways of doing it - in your current definition, you need something like this 2000,25% in anything that uses your check_ping command - i.e. host, service, whatever. I'll show you an example using a host definition. Firstly, the way you're doing it: define command { command_namecheck_ping command_line$USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5 } You need to be passing, for example, 2000,25% as $ARG1$ and, for example, 4000,50% as $ARG2$. So, your object definition (in this example, host) will need to be as follows: define host { ... check_commandcmd-Ping!2000,25%!4000,50% ... } Your check_ping command will then turn out to be something like: /usr/local/nagios/libexec/check_ping -H 127.0.0.1 -w 2000,25% -c 4000,50% -p 5 The second way is the way I'm doing it at the moment. The check_ping command: define command { command_namecmd-Ping command_line$USER1$/check_ping -p 3 -t 10 -4 -H $ARG1$ -w $ARG2$,$ARG3$% -c $ARG4$,$ARG5$% } The object definition: define host { ... check_commandcmd-Ping!$HOSTADDRESS$!1000!20!2000!50 ... } As you can see, a few more arguments need to be passed from the object, but you can override any of the thresholds for one particular object. Another way is simply to hard-code the values in your command, and have no arguments passed in from the object. The command: define command { command_namecmd-Ping command_line$USER1$/check_ping -p 3 -t 10 -4 -H $HOSTADDRESS$ -w 2000,25% -c 4000,50% } The object: define host { ... check_commandcmd-Ping ... } Hopefully this clears things up - but *don't forget to copy the mailing list in* to your replies - hit Reply to all in your mailer and it'll sort it out for you. -- Andy Shellam NetServe Support Team the Mail Network an alternative in a standardised world - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Re: [Nagios-users] Plugin issue
What's the command line of your check_ping command (as defined in Nagios?) The correct syntax is: /path/to/nagios/plugins/check_ping -H ip address -w 2000,25% -c 4000,50% whereby ip address is the IP of the machine to ping, 2000 is the round-trip time (in ms) to generate a warning, 25% is the packet-loss amount to generate a warning, and ditto for the critical. Also note there's a bug in the check_ping whereby if the critical parameters are incorrect, it says the error is with the warning parameters - so check that's not the case as well. And you do need the percent signs ;) Andy. [EMAIL PROTECTED] wrote: Hi guys am still running nagios and now there,s this error am getting with the check_ping command. It is giving me an error that: check_ping: %s: Warning threshold must be integer or percentage! Am wondering why that is the case and yet am able to ping th machine. am running red hat 9 AS and nagios version 2.6. Your assistance will highly be appreciated. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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 !DSPAM:37,45a892bd137106816226190! -- Andy Shellam NetServe Support Team the Mail Network an alternative in a standardised world p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Re: [Nagios-users] Interval setup
Along with the usual read the manual comment ;) ... - Timing Interval Length This is the number of seconds per unit interval used for timing in the scheduling queue, re-notifications, etc. Units intervals are used in the object configuration file to determine how often to run a service check, how often of re-notify a contact, etc. Format: interval_length=seconds - Your directive should therefore be interval_length=60 This is from the Nagios 2.x manual btw. Andy. Daniel wrote: Guten Tag Daniel, am Samstag, 13. Januar 2007 um 19:25 schrieben Sie: Guten Tag Rob Blake, am Samstag, 13. Januar 2007 um 13:30 schrieben Sie: In your nagios.cfg, what is the timing_interval set to? Taken from the main Nagios docs: **This is the number of seconds per unit interval used for timing in the scheduling queue, re-notifications, etc. Units intervals are used in the object configuration file to determine how often to run a service check, how often of re-notify a contact, etc. i cant find anythink about that: [ »timing_interval« not found ] in nagios.cfg I will try it with that command ;) Error in configuration file '/usr/local/nagios/etc/nagios.cfg' - Line 132 (UNKNOWN VARIABLE) *** One or more problems was encountered while processing the config files Was set to: timeing_interval=60 bzw timing_interval=60 both entries wont work... -- Andy Shellam NetServe Support Team the Mail Network an alternative in a standardised world p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Re: [Nagios-users] FreeBSD could not get group entry for Nagios
Personally I prefer to compile from source as I know exactly what it does and where things go. I sorted it anyway, it was basically a config item that still read nagios_group=nagios - I changed that to nagios_group=localservice and the warning went away. Thanks Andy Dan Langille wrote: On 9 Jan 2007 at 22:36, Andy Shellam (Mailing Lists) wrote: Hi Dan, Thanks for the reply (answers inline below) Dan Langille wrote: Did you install via ports? No - downloaded 2.6 and compiled from source. Are you missing this? $ grep nagios /etc/group nagios:*:1005: I don't think so - I configured Nagios with: ./configure --prefix=/usr/local/nagios --with-cgiurl=/nagios/cgi-bin --with-htmurl=/nagios --with-nagios-user=nagios --with-nagios-group=localservice --with-command-group=webservice so this should say the Nagios group is localservice - right? The Nagios user has localservice set as it's default group, and it's also a member of webservice - the command group. Sorry, I don' t know. I always use the port, and let it do what it does. :( By using the port, it trivializes upgrades and removals, and makes security notices easier (e.g. security/portaudit). cd /usr/port/net-mgtm/nagios make install pretty easy... and if you need/want special config items, you can still do them, plus you get the benefits of packaging. My recommendation: remove what you installed, and use the port. -- Andy Shellam NetServe Support Team the Mail Network an alternative in a standardised world p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Re: [Nagios-users] email help
Jim Perrin wrote: On 1/10/07, Nedim Bicic [EMAIL PROTECTED] wrote: Hey how do you get the notifications to work and send emails it doesnt work i put in my email address in the conacts.cfg file i restart the server where nagios is installed but i dont get any emails Read The Fine Manual. Check your MTA for proper configuration and email handling. Ensure nagios is configured correctly. AFAIK Nagios doesn't include a send e-mail command - you need to configure your own Nagios command to pipe the required details to your MTA. And yes - read the manual ;) - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Re: [Nagios-users] no libexec after intalling plugins!
Sam Fraser wrote: Hello All, could someone please advise me where I've gone wrong installing my plugins? The problem is with this installation step Install the compiled plugins and plugin scripts with the following command: make install The installation procedure will attempt to place the plugins in a 'libexec/' subdirectory in the base directory you specified with the --prefix argument to the configure script. The problem is that this folder never turns up in The problem is you've got a lot of MySQL errors - have you specified the correct path to MySQL in the ./configure statement? (--with-mysql=/usr/local/mysql). make[1]: *** [check_mysql-check_mysql.o] Error 1 make[1]: Leaving directory `/root/nagios-plugins-1.4.5/plugins' make: *** [install-recursive] Error 1 This indicates the make operation failed - which is why you don't have a libexec directory yet. Sort your MySQL errors out and you should be OK then. Regards Andy - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Re: [Nagios-users] Parents on ubuntu
There is a much newer version of Nagios available, plus the version you've reported appears to a CVS export, not a stable release. Try downloading and compiling 2.6 from www.nagios.org and try again - note you will possibly need to adjust your configs to suit Nagios 2.x, but not by much. Note you are also including u in your notification_options for the host - this means that if the host is unreachable (ie. parent hosts are down) you will still get a notification. I'd set notification_options d,r in your generic-host template and remove the override per host. Regards Andy mario wrote: Hello List, i have my nagios box in an internal network and i monitor out to the world. Sometimes our internet connections is down for some minutes, and i get like 40 Mails with alerts. Thats when the parent dependecy gets intresting. I read the docs to understand the differences. I am quite sure i want to use the child/parent structure in my case. Nagio-Box -- Router/Firewall -- A-FEW-Hosts I am running Ubuntu breezy with nagios 1.3-cvs.20050402-4ubuntu3.2. define host{ use generic-host ; Name of host template to use host_nameservice.server.de address service.server.de check_commandcheck-host-alive max_check_attempts 20 notification_interval5 notification_period 24x7 notification_options d,u,r parents provider-gateway } The exspected parent feature does not work though. If my internet connection fails, i still get a error msg for each host, instead from the parent provider-gateway. What am i doning wrong? Thanks, Mario - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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 !DSPAM:37,45a37de4137102559373519! -- Andy Shellam NetServe Support Team the Mail Network an alternative in a standardised world p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Re: [Nagios-users] Fw: nagios alerts to pc
Why are you re-directing to a log file? What does the output of smbclient -M adminmachine -I adminip give you? Does the nagios user have write permissions on /tmp and tmp/smbclient.log (e.g. if smbclient.log was created by root, Nagios won't have write access to append to it.) Andy. Dhaval Thakar wrote: Hi, Thanks for the reply, I tried configuring alters using smbclient as mentioned in the following URL. http://www.nagiosexchange.org/typo3conf/ext/net_nagext/pi1/download.php?file=uploads/tx_netnagext_pi1/Net_send_notification/configuration.txtext=.txt I checked following smbclient -M adminmachine -I adminip is working properly. redirecting output of the to log file, does not shows any input to the file. command_line/bin/echo '$SERVICESTATE$ alert for $HOSTALIAS$/$SERVICEDESC$' | /usr/bin/smbclient -M netbios_name_of_client -U NAGIOS /tmp/smbclient.log i suspect there must some problem with contact configuration. define contact{ contact_namenagios-fw1 alias Nagios fw1 service_notification_period 24x7 host_notification_period24x7 service_notification_optionsw,u,c,r host_notification_options d,r service_notification_commands notify-by-smbclient host_notification_commands host-notify-by-smbclient email [EMAIL PROTECTED] } i intentionaly kept email object for the contact nagios-fw1, as putting smbclient or address throws error Error: Invalid contact object directive 'smbclient'. Kindly suggest if there any solution for the same. - Original Message - From: Jim Perrin [EMAIL PROTECTED] To: dhaval thakar [EMAIL PROTECTED] Cc: nagios-users@lists.sourceforge.net Sent: Sunday, January 07, 2007 10:33 PM Subject: Re: [Nagios-users] nagios alerts to pc On 1/7/07, dhaval thakar [EMAIL PROTECTED] wrote: Dear All, I want to send host/service alters on Windows PC, is there any plugin available for the same?? Look at http://www.nagiosexchange.org/Notifications.35.0.html There are several things there which may do what you want. -- During times of universal deceit, telling the truth becomes a revolutionary act. George Orwell - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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 !DSPAM:37,45a38f1a137101219915068! -- Andy Shellam NetServe Support Team the Mail Network an alternative in a standardised world p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Re: [Nagios-users] Fw: nagios alerts to pc
Dhaval Thakar wrote: the reason to redirect to logs was to ensure execution of the command, but log is not created. i tried with mentioned command from shell using root. it is working hence communication to windows machine is ok. There could be your problem - test the plugin running as the nagios user. i have not created file /tmp/smbclient.log, just mentioned in commands.cfg nagios user has the rights to write to /tmp dir Don't forget to copy the list in on your replies as it could help somebody else in the future when searching the archives. Andy. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Re: [Nagios-users] Fw: Fw: nagios alerts to pc
Post your configuration for the service, host, command and contact in question - we're just stabbing in the dark without it. Andy. Dhaval Thakar wrote: Andy, Same command (smbclient -M adminmachine -I adminip) I checked with nagios user, it is working. I created /tmp/smbclient.log file with nagios user, but still there is no input in the file - Original Message - From: Andy Shellam (Mailing Lists) [EMAIL PROTECTED] To: Dhaval Thakar [EMAIL PROTECTED]; Nagios Users mailinglist nagios-users@lists.sourceforge.net Sent: Tuesday, January 09, 2007 7:04 PM Subject: Re: [Nagios-users] Fw: nagios alerts to pc Dhaval Thakar wrote: the reason to redirect to logs was to ensure execution of the command, but log is not created. i tried with mentioned command from shell using root. it is working hence communication to windows machine is ok. There could be your problem - test the plugin running as the nagios user. i have not created file /tmp/smbclient.log, just mentioned in commands.cfg nagios user has the rights to write to /tmp dir Don't forget to copy the list in on your replies as it could help somebody else in the future when searching the archives. Andy. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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 !DSPAM:37,45a3a3b9137101955318944! -- Andy Shellam NetServe Support Team the Mail Network an alternative in a standardised world p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Re: [Nagios-users] NAGIOS - check_by_ssh failed
Hi Neal, Have you tried running your command as the Nagios user? Also does /usr/bin/ssh exist on your Nagios machine? Just a couple of ideas. Regards, Andy. [EMAIL PROTECTED] wrote: Hey Guys, I am having an issue with the check_by_ssh plugin and was wondering if someone could lend a hand. I have compiled and installed both NAGIOS version 2.5 and the nagios-plugins 1.4.4 on EL4. When trying to execute the check_by_ssh_plugin and telling it to run just a basic file listing command on a HPUX 11.11 host I receive the following error: ./check_by_ssh -v -H 10.1.9.21 -t 60 -n hpux2 -C '/usr/bin/ll /tmp' /usr/bin/ssh 10.1.9.21 '/usr/bin/ll /tmp' Remote command execution failed: However If I just cut and past the verbose output from the command calling ssh directly I have no problems: /usr/bin/ssh 10.1.9.21 '/usr/bin/ll /tmp' Any ideas? Neal J. Giger City of Chandler - Information Technology Phone 480.782.2457 Fax480.782.2606 !DSPAM:37,45a3f2d8137101509920716! - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV !DSPAM:37,45a3f2d8137101509920716! ___ 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 !DSPAM:37,45a3f2d8137101509920716! -- Andy Shellam NetServe Support Team the Mail Network an alternative in a standardised world p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Re: [Nagios-users] NAGIOS - check_by_ssh failed
When it says, remote execution failed - does it give an error after it? [EMAIL PROTECTED] wrote: Yes , /usr/bin/ssh is in its place and the user portion doesn't make any difference either. Neal J. Giger City of Chandler - Information Technology Phone 480.782.2457 Fax480.782.2606 *Andy Shellam (Mailing Lists) [EMAIL PROTECTED]* Sent by: [EMAIL PROTECTED] 01/09/2007 01:01 PM To [EMAIL PROTECTED] cc nagios-users@lists.sourceforge.net Subject Re: [Nagios-users] NAGIOS - check_by_ssh failed Hi Neal, Have you tried running your command as the Nagios user? Also does /usr/bin/ssh exist on your Nagios machine? Just a couple of ideas. Regards, Andy. [EMAIL PROTECTED] wrote: Hey Guys, I am having an issue with the check_by_ssh plugin and was wondering if someone could lend a hand. I have compiled and installed both NAGIOS version 2.5 and the nagios-plugins 1.4.4 on EL4. When trying to execute the check_by_ssh_plugin and telling it to run just a basic file listing command on a HPUX 11.11 host I receive the following error: ./check_by_ssh -v -H 10.1.9.21 -t 60 -n hpux2 -C '/usr/bin/ll /tmp' /usr/bin/ssh 10.1.9.21 '/usr/bin/ll /tmp' Remote command execution failed: However If I just cut and past the verbose output from the command calling ssh directly I have no problems: /usr/bin/ssh 10.1.9.21 '/usr/bin/ll /tmp' Any ideas? Neal J. Giger City of Chandler - Information Technology Phone 480.782.2457 Fax480.782.2606 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV !DSPAM:37,45a3f2d8137101509920716! ___ 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 !DSPAM:37,45a3f2d8137101509920716! -- Andy Shellam NetServe Support Team the Mail Network an alternative in a standardised world p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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 !DSPAM:37,45a3f5b4137104580613464! -- Andy Shellam NetServe Support Team the Mail Network an alternative in a standardised world p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
[Nagios-users] FreeBSD could not get group entry for Nagios
I'm testing Nagios out on a FreeBSD 6.1 system, and am getting a warning about Nagios' group entry when I run a config file check - will this cause any problems? --- Nagios 2.6 Copyright (c) 1999-2006 Ethan Galstad (http://www.nagios.org) Last Modified: 11-27-2006 License: GPL Reading configuration data... Warning: Could not get group entry for 'nagios' --- Passwd entry: nagios:*:1002:1001:Nagios Service Account:/home/nagios:/usr/local/bin/bash Group file entry: localservice:*:1001: Thanks, Andy - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Re: [Nagios-users] FreeBSD could not get group entry for Nagios
Hi Dan, Thanks for the reply (answers inline below) Dan Langille wrote: Did you install via ports? No - downloaded 2.6 and compiled from source. Are you missing this? $ grep nagios /etc/group nagios:*:1005: I don't think so - I configured Nagios with: ./configure --prefix=/usr/local/nagios --with-cgiurl=/nagios/cgi-bin --with-htmurl=/nagios --with-nagios-user=nagios --with-nagios-group=localservice --with-command-group=webservice so this should say the Nagios group is localservice - right? The Nagios user has localservice set as it's default group, and it's also a member of webservice - the command group. Thanks, Andy - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Re: [Nagios-users] FreeBSD could not get group entry for Nagios
For info - this warning does not prevent Nagios from starting up - however if you add a group called nagios it goes away. Perhaps there's a bug in this/other versions where it checks for the specific group called nagios and not the one used in the configure script - or is this a feature? ;) Andy. Andy Shellam (Mailing Lists) wrote: Hi Dan, Thanks for the reply (answers inline below) Dan Langille wrote: Did you install via ports? No - downloaded 2.6 and compiled from source. Are you missing this? $ grep nagios /etc/group nagios:*:1005: I don't think so - I configured Nagios with: ./configure --prefix=/usr/local/nagios --with-cgiurl=/nagios/cgi-bin --with-htmurl=/nagios --with-nagios-user=nagios --with-nagios-group=localservice --with-command-group=webservice so this should say the Nagios group is localservice - right? The Nagios user has localservice set as it's default group, and it's also a member of webservice - the command group. Thanks, Andy -- Andy Shellam NetServe Support Team the Mail Network an alternative in a standardised world p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Re: [Nagios-users] FreeBSD could not get group entry for Nagios
Robert Hajime Lanning wrote: quote who=Andy Shellam (Mailing Lists) For info - this warning does not prevent Nagios from starting up - however if you add a group called nagios it goes away. Perhaps there's a bug in this/other versions where it checks for the specific group called nagios and not the one used in the configure script - or is this a feature? ;) in nagios.cfg: # NAGIOS GROUP # This determines the effective group that Nagios should run as. # You can either supply a group name or a GID. nagios_group=nagios Ah brill! Thanks for that Robert :) I hadn't thought about checking the config - I thought that's what the configure option was for :S -- Andy Shellam NetServe Support Team the Mail Network an alternative in a standardised world - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
[Nagios-users] Plugin error text confusion
After playing around with Nagios 2.6 and the latest plugins (1.4.5) I found a little inaccuracy in the text displayed in the check_ping plugin. For the plugin, consider the command: /usr/local/nagios/libexec/check_ping -p 3 -t 10 -4 -H 10.100.9.201 -w 1000,20% -c 2000,50% This works. Take the percentage sign off the critical indicator so it reads -c 2000,50 - and you get: check_ping: %s: Warning threshold must be integer or percentage! ... displayed in the plugin status for Nagios. However the error is on the critical threshold not the warning threshold. Got my head scratching for a tad! -- Andy Shellam NetServe Support Team the Mail Network an alternative in a standardised world - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Re: [Nagios-users] Service Alerts and Notifications
Hmm, that's bad news. In other time settings within in the config you can set seconds. I only did this in my new Nagios server build which I haven't gone live with yet - the config checker doesn't throw an error so I'd assumed it was valid. Anyone else know this - In my case what I'd like to do is check each service every 5 minutes, then if it goes down, check 10 seconds later 3 times - so after 30 seconds if it's still down notify me. One of my routers can be flaky, and at least once a day it will fail a Ping check, but succeed straight away with the next one - therefore I don't want to have to wait a minute since it failed to find out that it's OK. I was going to alter the interval units setting in the config, but Nagios warns that the consequences are untested - anyone have anything further on this? Andy. wnorth wrote: Andy, I tried setting the retry value to 30s, and it interpreted it as 30 minutes: max_check_attempts 3 retry_check_interval 30s normal_check_interval 5 I would have thought the above would set a HARD alert after 1.5 minutes, but it checked, then scheduled the next check 30 minutes later. Is there a global setting somewhere that I missed that needs to be changed from minutes to seconds? -Wes - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Re: [Nagios-users] Service Alerts and Notifications
Thanks for the info Wes, As it appears to work OK I'll try it out on my new box before it goes live, I was a bit cautious with all the warnings about un-tested consequences etc. Can you not do your web request with the check_http plugin, or does it require something a bit more complicated? Andy. wnorth wrote: Thanks Patrick that fixed it. I had to change the interval_length from 60 to 1 which equates to seconds now instead of minutes I have to specify all my values in seconds, as follows: max_check_attempts 3 retry_check_interval 30s normal_check_interval 300 This causes it to check every 5 minutes, if it receives a non-OK message back it will try 3 times before marking it HARD down, each interval check is set to 30 seconds, so 1.5 minutes before an alert is sent out. Also, I had to specify the notification_interval, which was set to 30 minutes by default, to 1800 which equates to 30 minutes. I think that value should probably be equal to if not greater by 2X the normal check interval, at least that's what I think. This way each time it checks if the condition is still bad it will notify, then again you don't want to get flooded, so perhaps every other time it checks send an email? It's really up to me to decide that. Oh well, onto the next task, trying to see if I can build some sort of transaction based monitor, which will hit a home page, navigate to a specific screen and execute a web query. This is where something like Gomez, Mercury or Netcool would be great at, with Nagios...have to think a bit more out of the box, besides its free right? And from the last 1-2 days I've spent on it, very powerful...starting to like it more and more. ;-) -Wes -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Morris, Patrick Sent: Saturday, January 06, 2007 10:26 AM To: Andy Shellam (Mailing Lists) Cc: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Service Alerts and Notifications I tried setting the retry value to 30s, and it interpreted it as 30 minutes: max_check_attempts 3 retry_check_interval 30s normal_check_interval 5 I would have thought the above would set a HARD alert after 1.5 minutes, but it checked, then scheduled the next check 30 minutes later. Is there a global setting somewhere that I missed that needs to be changed from minutes to seconds? Check your interval_length in nagios.cfg. That determines how long a single unit it. If 30 gives you 30 minutes, then it's probably set to 60 (60 seconds/1 minute). Sticking an s on your retry interval isn't going to change anything; it'll just be ignored. You'll need to adjust your interval if you want things to happen in under 1 time unit (in the default case, 60 seconds). - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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 !DSPAM:37,45a033fa137101071920780! -- Andy Shellam NetServe Support Team the Mail Network an alternative in a standardised world p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Re: [Nagios-users] System appears as down, but services are being monitored
Andy Shellam (Mailing Lists) wrote: Perhaps the definition for the check_host command for your host is wrong or not succeeding, but your service commands are? Sorry, that should be check_command for your host. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Re: [Nagios-users] System appears as down, but services are being monitored
Perhaps the definition for the check_host command for your host is wrong or not succeeding, but your service commands are? Kaplan, Andrew H. wrote: Hi there – I am monitoring a Windows XP system that has the NSClient version 1.06 software on it. The Nagios server is running version 2.6 on a Fedora Core 5 system. The remote workstation shows up as being down, but the services that I am monitoring on the workstation, diskspace and McAfee AntiVirus are sending back information to the server. What would cause this to occur, and how do I correct it? 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 SENDER AND THE PRIVACY OFFICER, AND PROPERLY DISPOSE OF THIS INFORMATION. !DSPAM:37,459ec30d137107056713303! - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV !DSPAM:37,459ec30d137107056713303! ___ 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 !DSPAM:37,459ec30d137107056713303! -- Andy Shellam NetServe Support Team the Mail Network an alternative in a standardised world p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Re: [Nagios-users] parent/child setup not working
If I understand it right, your host checks should not be scheduled - but your service checks are. So, every time a service requires checking and Nagios finds the service is down, it checks the host to see if the host is down. If it is, then it suppresses notifications for the service and instead goes into the host's notification handling. However I'm not sure if this is the case for escalated service notifications. You have a notification_interval set - try commenting this out (or setting to 0) and see if you then get the same thing happening. Andy. David Miller wrote: Andy Shellam (Mailing Lists) wrote: Arghh! Sorry for the previous, content free reply. The service entry is; define service{ use generic-service ; Name of service template to use hostgroup_name webservers service_description Check Simple Webservers is_volatile 0 check_period24x7 max_check_attempts 5 normal_check_interval 5 retry_check_interval2 contact_groups ops notification_interval 120 notification_period 24x7 notification_optionsw,u,c,r check_command check_http } But the point is, unless I'm missing something, that the service should not be checked at all if the parent is down. Thanks! --- David Hi David, I'm not clued up on parent/child relationships between hosts, however one thing I believe might be happening is that the example of the alert you've sent for the service - it might be a reminder notification that the service is still down. (Perhaps as a result of escalation settings?) I think this is because it has a delay in the state variable - ie. CRITICAL for x as opposed to just CRITICAL. What's the definition for that service? Andy. David Miller wrote: Hi; I'm not sure what I'm doing wrong. Running nagios 2.5 on debian-stable. I have the nagios server in one data center monitoring 30ish servers in another data center. In the hosts.cfg file I have a gateway (firewall) defined: define host { use generic-host; Name of host template to use host_name pix alias PIX address x.y.z.2 check_command check-host-alive max_check_attempts 1 notification_interval 1 notification_period 24x7 notification_optionsd,u,r } I then use that as a parent to all the hosts I want to monitor in the remote data center. Those have host entries like this; define host { use generic-host; Name of host template to use host_name logweb1 alias Logweb1 address logweb1.foo.com parents pix max_check_attempts 1 active_checks_enabled 0 notification_interval 1 notification_period 24x7 notification_optionsd,r } As I read the documentation, when nagios detects that host pix is down that it won't check or report on host logweb1. If the network connection is broken, however, by deleting the default route, I get three messages that the pix is down that look like this: Subject:** PROBLEM alert 1 - PIX host is DOWN ** * Nagios * Notification Type: PROBLEM Host: PIX State: DOWN for 0d 0h 0m 0s Address: 66.151.232.2 Info: CRITICAL - Network unreachable (x.y.z.2) Date/Time: Fri Jan 5 16:17:48 EST 2007 ACK by: Comment: And a few minutes later I get notice on the child server: Subject: ** PROBLEM alert 1 - Logweb1/Check Simple Webservers is CRITICAL ** * Nagios * Notification Type: PROBLEM Service: Check Simple Webservers Host: Logweb1 State: CRITICAL for 0d 0h 8m 6s Address: logweb1.foo.com Info: Network is unreachable Date/Time: Fri Jan 5 16:29:28 EST 2007 ACK by: Comment: What am I doing wrong? Thanks in advance, --- David - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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 !DSPAM
Re: [Nagios-users] Service Alerts and Notifications
Don't know if it helps, but on my services, I check services every 5 minutes. If it fails, it retries 3 times every 30 seconds (so a max. of 1.5 minutes) then it sends me an e-mail/SMS (because it switches to HARD state.) What this will do... max_check_attempts 3 retry_check_interval 5 normal_check_interval 5 ...is it will check your service every 5 minutes - if it goes off-line, it will set it to a SOFT fail, wait 5 minutes then check again, if it still fails (2nd SOFT fail), wait 5 minutes, then check again, then if it fails a third time, you'll get a HARD fail - so in theory, if the service is down, you won't find out for 15 minutes. What might be better is: max_check_attempts 3 retry_check_interval 1 normal_check_interval 5 This will check your service every 5 minutes - if it fails, it'll re-try 3 times with a 1 minute interval between each, so you'll get notified if it's still down after 3 minutes. What you can also do is set retry_check_interval to a seconds interval, like: max_check_attempts 3 retry_check_interval 5s normal_check_interval 5 This tells Nagios to wait 5 seconds between non-OK states, and 5 minutes between active checks. You could of course also set max_check_attempts to 2 and retry_check_interval to 1 - so the first-time it fails, it waits a minute then checks again - and if it still fails you get a notification, so in theory you only get a minute's lag. hope this random rambling works for you :) Andy. wnorth wrote: That is actually interesting, when the host goes down I see a HARD service alert as follows: HOST ALERT: ebro;DOWN;HARD;5;CRITICAL - Host Unreachable (10.0.33.8) But for the check_http I only see the following: SERVICE ALERT: ebro;Website App Server MS2;CRITICAL;SOFT;3;Connection refused Once I changed the retry interval to 1 and the max attempts to 1 I saw the email, so I just wasn't waiting long enough...makes sense. In theory I would want it to try 3 times in a row, if it fails send an email, then wait 5 minutes and retry again. For that to work I tried the following: max_check_attempts 3 retry_check_interval 5 normal_check_interval 5 This should force it to try 3 times before setting a HARD alert and wait 5 minutes between normal intervals, however that is not what it does, it appears it sets the retry_check_interval to 5 minutes between non-OK service alerts, so if I tell it to try 3 times, it will try 3 times and wait in-between tries for 5 minutes, if I set it to 2 on the retry it will wait 2 minutes in between tries, which comes out to a total of 6 minutes. I'd rather it fail after a minute or so, so if I set it to 0 it will inherit a standard minute...the only way to solve this is to set it at a 1 minute interval and just wait. Sound about right? -Original Message- From: Josh Yost [mailto:[EMAIL PROTECTED] Sent: Friday, January 05, 2007 3:56 PM To: [EMAIL PROTECTED] Cc: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Service Alerts and Notifications Hi, This is kind of stupid/obvious, but a) I don't see a HARD service alert in your log snip for the service. Did it actually get to that state? Your retry interval is 3 min, so it would take you 15 min or so to get an alert. b) If it did get to HARD, what was the cmd it tried to run is that a valid cmd? c) Did you kill all the old processes and restart Nagios w/ the new config? I don't see anything obvious in your cfgs that wouldn't be working. - Josh [EMAIL PROTECTED] wrote: I have setup a few host and HTTP service checks and alerts. When a host goes down I recieve an email, but when the check_http service fails (e.g. the TCP port is shutdown on the web server) I see the service alert in the nagios.log as follows: [1168038639] EXTERNAL COMMAND: SCHEDULE_FORCED_SVC_CHECK;ebro;Website App Server MS2;1168038636 [1168038644] SERVICE ALERT: ebro;Website App Server MS2;CRITICAL;SOFT;1;Connection refused [1168038824] SERVICE ALERT: ebro;Website App Server MS2;CRITICAL;SOFT;2;Connection refused [1168039004] SERVICE ALERT: ebro;Website App Server MS2;CRITICAL;SOFT;3;Connection refused But I do not recieve an email. The following service is defined: define service{ host_name ebro service_description Website App Server MS2 check_command check_http_fitness_app max_check_attempts 5 normal_check_interval 5 retry_check_interval3 check_period24x7 contact_groups jboss-admins notification_interval 30 notification_period 24x7 notification_optionsw,u,c,r,f } The following contact is setup for the jboss-admins groups: define contactgroup{ contactgroup_name jboss-admins alias JBoss Administrators members wnorth } The following contact is setup for wnorth: define contact{
Re: [Nagios-users] Problem with check_pgsql
I think on Fedora you can edit /etc/ld.so.conf, then run ldconfig. Or make sure there is a symlink to the libpq.so.5 in /lib, /usr/lib and /usr/local/lib (just to cover all bases!) I had a similar problem on FreeBSD, and linking libpq.so.5 in /lib was the trick. Andy. Patrick Morris wrote: Hi Kaplan,! On Thu, 04 Jan 2007, Kaplan, Andrew H. wrote: I am encountering and error every time I try to run the check_pgsql plugin. The error is the following: Error while loading shared libraries: libpq.so.5: cannot open shared object file. No such file or directory. What steps do I need to take to correct this? Thanks. You haven't said what you're running it on, so I can't give specifics, but you need that directory in the library search path when the plugin is called. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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 !DSPAM:37,459d5e3331755596269461! -- Andy Shellam NetServe Support Team the Mail Network an alternative in a standardised world p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Re: [Nagios-users] ANNOUNCE: Nagios Looking Glass 1.0.0#PRE is here!
Andreas Ericsson wrote: Andy Shellam (Mailing Lists) wrote: If you requested the full URL that's passed to the poller back-end, you'd find it extremely difficult to decipher it without the s3_class.inc.php file (as this is what the client front-end does) and to the average Joe it'd be a load of figures and numbers (sure you could base64 decode the relevant part of it, but it'd mean nothing without the s3_class.inc.php.) Correct me if I'm wrong, but s3_class.inc.php is publicly available, no? Either way, securing against the average Joe is neither difficult nor sufficient. Just worth considering. Yes, as I've answered before, - a) you'd need to know the application is in fact NLG, b) you'd need to know which file to use and what to do with it, c) you'd need the correct part of the returned code, d) you'd need to know it's a base64-encoded serialisation of the poller object, and at the end of the day, you should use HTTP authentication on the poller feed anyway. Also as I've said before, the poller gives out nothing more than you can access through the front-end anyway (as it's designed to be a public interface) so it'd be a waste of time trying to crack the feed. I'm more worried about securing things like XSS attacks, which I'm pretty certain NLG is not vulnerable to as the GET variables are processed in some other way before-hand, they're not printed to the page verbatim. Thanks, -- Andy Shellam NetServe Support Team the Mail Network an alternative in a standardised world p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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