Re: [Nagios-users] graphing trends across hosts or services instead of a timeseries
2009/2/23 Rahul Nabar rpna...@gmail.com: Thanks for the pointer. I just looked up ddraw and it does look promising. Do you think you can share some of your ddraw configs with me? Or maybe if you had any other notes. No problem. Note that I'm running Ubuntu 8.04 LTS Server and have installed Nagios and PNP as far as possible according to the online instructions (nothing fancy). I installed drraw.cgi and drraw.conf under /var/www/cgi-bin/ . Not sure if that's ideal but it works for me. Most of drraw.conf stays as is as far as I remember, except the following: # The Test area /var/www/drraw/data is just for my playpen. The Live area /usr/local/nagios/share/perfdata is where the PNP .rrd files are. # drraw will look recursively under these directories. %datadirs = ('/var/www/drraw/data' = '[Test] ', '/usr/local/nagios/share/perfdata' = '[Live] ', ); # make sure these exist and are writeable by the apache (www-data in my case) user. $saved_dir = '/usr/local/drraw/saved'; $tmp_dir = '/usr/local/drraw/tmp'; # If you don't care for authentication, set the following to 2. # I've set this to 2 while I get it working, will tighten it down later. %users = ( 'guest' = 2 ); # This is to enable a patch I found in the drraw mailing list. I couldn't get it to work so disable it for now. # pnp4nagios XML $use_pnp4nagios_xml = 0; I also edited /etc/apache2/sites-available/default to enable the cgi-bin directory for cgi execution: ScriptAlias /cgi-bin/ /var/www/cgi-bin/ Directory /var/www/cgi-bin AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all /Directory I had to install some dependencies, I forget which ones, but I'm pretty sure librrds-perl was one of them. The web interface for drraw is fairly intuitive, except it took me a few minutes to notice that in order to save a graph, you need to specify a Graph Title in the Graph Options section! hth, Jim -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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] graphing trends across hosts or services instead of a timeseries
On Tue, Feb 24, 2009 at 3:17 AM, Jim Avery j...@jimavery.me.uk wrote: I had to install some dependencies, I forget which ones, but I'm pretty sure librrds-perl was one of them. The web interface for drraw is fairly intuitive, except it took me a few minutes to notice that in order to save a graph, you need to specify a Graph Title in the Graph Options section! hth, Jim Awesome! That will be a lot of help I am sure. Thank you again, Jim. I appreciate the help! -- Rahul -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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] Distributed Linux set up configuration
Hi All While trying to configure Distributed Linux set up in Nagios I am getting only the following error message from the server CHECK_NRPE: Error - Could not complete SSL handshake Whether some body can check and help me. Both plug-in and daemon versions ae same and permissions are correct. Some body please help me Thanks and regards, V.Dharini Practice Team - Tools Engineer |WIPRO Infotech| # 37, Castle street, Samridhibhavan, Ashok Nagar. Bangalore - |560 025| -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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] Specifying hostgroup in the host?
I am running nagios 3.0.6, and would like to find a better way to manage my hostgroups. In Nagios, you usually create a hostgroup by specifying all the relevant hosts in the hostgroup object. What I would like to do is instead tell each host object which hostgroup it belongs to. This is so that I don't have to touch the hostgroup definition when I add new hosts. Is this possible? Or is there some other way to accomplish the same goal? -- Kevin Keane Owner The NetTech Find the Uncommon: Expert Solutions for a Network You Never Have to Think About Office: 866-642-7116 http://www.4nettech.com This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof. -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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] Specifying hostgroup in the host?
On Tuesday February 24 2009 11:35:57 am Kevin Keane wrote: I am running nagios 3.0.6, and would like to find a better way to manage my hostgroups. In Nagios, you usually create a hostgroup by specifying all the relevant hosts in the hostgroup object. What I would like to do is instead tell each host object which hostgroup it belongs to. This is so that I don't have to touch the hostgroup definition when I add new hosts. Is this possible? Or is there some other way to accomplish the same goal? Hi, both is possible and documented in the docs http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#host hostgroups:This directive is used to identify the short name(s) of the hostgroup(s) that the host belongs to. Multiple hostgroups should be separated by commas. This directive may be used as an alternative to (or in addition to) using the members directive in hostgroup definitions. Greetings, Christian -- Christian Schneemann - SUSE LINUX Products GmbH, Maxfeldstr. 5, D - 90409 Nürnberg Phone: +49 (0)911 - 740 53 0 e-mail: cschneem...@suse.de - SUSE LINUX Products GmbH, GF: Markus Rex HRB 16746 (AG Nürnberg) -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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] Installing and configuring Nagios
Hi all, im new to nagios, just installed nagios 2.12 on my centos machine. it is been installed successflly, now i want to add my host for testing. i added one host, but that did not work. Please can u give me any template for this. Thank you, Saif Syed -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H___ 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] Installing and configuring Nagios
you might want to follow up on this http://nagios.telecity1.uk.ssp/docs/quickstart.html On Tuesday 24 February 2009 14:31:26 SyedMohammedSaif MabroorAhmed wrote: Hi all, im new to nagios, just installed nagios 2.12 on my centos machine. it is been installed successflly, now i want to add my host for testing. i added one host, but that did not work. Please can u give me any template for this. Thank you, Saif Syed -- Assaf Flatto SSP Ops Team Linux System Administrator 169 Euston Road, London, NW1 2AE IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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] lazy nagios und cygwin...
Hello, we are running nagios 3.0.5 under cygwin quite successfully in a relatively simple setup (most check results come via NRPE from NSCA++ clients on windows machines). Everything is well, but sometimes a awkward thing happens: nagios just stops doing anything. - It continues to run : the processes are visible in the Windows process table - It ceases to execute checks: checks just stop bein executed - It ceases to write anything to a logfile - It also ceases to write anything to a debug file with Debug=16 (last entry is nothing suspicous) After killing the nagios processes and restarting the windows service (nagios is registered as a windows service using the cygrunsrv facility) everything is back to normal. What I find most annoying is that even in the CGI output everything seems normal - just that the last checks are several hours overdue, but no alarm or other signal is shown. We are not sure if this is cygwin/windows related or if it is a problem which also happens in the normal unix environment. Comments would be very welcome. I will now turn up debugging further in the hope that then we see something interesting. Regards, Jakob Curdes -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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] Installing and configuring Nagios
On Feb 24, 2009, at 8:31 AM, SyedMohammedSaif MabroorAhmed wrote: Hi all, im new to nagios, Welcome. just installed nagios 2.12 on my centos machine. it is been installed successflly, now i want to add my host for testing. i added one host, but that did not work. Please can u give me any template for this. nagios-2.12 is old. Unless you have a compelling reason to install it, you should be using the latest, nagios-3.1.0. You should also read the documentation and examine the sample config files. Both are fairly comprehensive and will answer most of your questions. As a bonus, you'll learn a lot about nagios and what kind of information to provide when asking questions here. -- Marc -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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] lazy nagios und cygwin...
On Feb 24, 2009, at 8:42 AM, Jakob Curdes wrote: We are not sure if this is cygwin/windows related or if it is a problem which also happens in the normal unix environment. It is not normal under unix. -- Marc -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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] lazy nagios und cygwin...
Hello, we are running nagios 3.0.5 under cygwin quite successfully in a relatively simple setup That's surprising, but good news. I hope you don't rely on it (most check results come via NRPE from NSCA++ clients on windows machines). Everything is well, but sometimes a awkward thing happens: nagios just stops doing anything. - It continues to run : the processes are visible in the Windows process table - It ceases to execute checks: checks just stop bein executed - It ceases to write anything to a logfile - It also ceases to write anything to a debug file with Debug=16 (last entry is nothing suspicous) Interesting definition of quite successfully. After killing the nagios processes and restarting the windows service (nagios is registered as a windows service using the cygrunsrv facility) everything is back to normal. What I find most annoying is that even in the CGI output everything seems normal - just that the last checks are several hours overdue, but no alarm or other signal is shown. We are not sure if this is cygwin/windows related or if it is a problem which also happens in the normal unix environment I've never seen anything like it. Our main nagios installation has failed in the past -- the disk has filled up, preventing status updates, and the power has failed -- not the box UPS power, but the Aircon GS power, so we had to shut down as much as possible. If it happens again we wont be shutting down nagios, too essential. The Aircon should be powered by diesel generators, they didn't kick in (not nagios monitored you see!) Comments would be very welcome. I will now turn up debugging further in the hope that then we see something interesting. Cygwin != unix. At the core, windows deals with files and sockets in a very different way to linux and solaris (and probably other unixes) It wouldn't surprise me if the something changed with the status file. If you can't install a linux distro onto the box, run up a virtualbox environment to host nagios in. It wouldn't be perfect, but will probably be better than cygwin. -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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] lazy nagios und cygwin...
This is gonna be hard to debug with out any debugging output. I concur, it is by no means normal for nagios to just stop doing anything without user intervention. For comparison, I'm running Nagios 3.0.6 from Debian with 34 hosts and 107 services. It has been running continually for 3 months, which is when I first brought it online. -lee On Tue, Feb 24, 2009 at 9:42 AM, Jakob Curdes j...@info-systems.de wrote: Hello, we are running nagios 3.0.5 under cygwin quite successfully in a relatively simple setup (most check results come via NRPE from NSCA++ clients on windows machines). Everything is well, but sometimes a awkward thing happens: nagios just stops doing anything. - It continues to run : the processes are visible in the Windows process table - It ceases to execute checks: checks just stop bein executed - It ceases to write anything to a logfile - It also ceases to write anything to a debug file with Debug=16 (last entry is nothing suspicous) After killing the nagios processes and restarting the windows service (nagios is registered as a windows service using the cygrunsrv facility) everything is back to normal. What I find most annoying is that even in the CGI output everything seems normal - just that the last checks are several hours overdue, but no alarm or other signal is shown. We are not sure if this is cygwin/windows related or if it is a problem which also happens in the normal unix environment. Comments would be very welcome. I will now turn up debugging further in the hope that then we see something interesting. Regards, Jakob Curdes -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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 -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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] lazy nagios und cygwin...
That's surprising, but good news. I hope you don't rely on it Oh, we do, after running it for half a year without problems the hard part was to get the standard check scripts running as they won't compile under cygwin. The main nagios executable compiles and runs nicely (hem... almost..) with --enable-cygwin . Interesting definition of quite successfully. Well, as said, the error did not appear always. It happens now and then, sometimes twice a day and then the system runs for weeks. I've never seen anything like it. I haven't and we are running other nagios installations too, on several different linux installations. Cygwin != unix. At the core, windows deals with files and sockets in a very different way to linux and solaris (and probably other unixes) It wouldn't surprise me if the something changed with the status file. If you can't install a linux distro onto the box, run up a virtualbox environment to host nagios in. It wouldn't be perfect, but will probably be better than cygwin. For reasons that are quite complicated in this case it is not an option to run nagios in a virtual box. I posed this question here mainly to see if this happens with unices also - if not, it is probably something for the cygwin mailing list. I just observed that after ending one of the two existing nagios processes with the windows task manager, things continued to run normally without a restart. So now I suspect it is either a blocked file access or some fork() problem- these sometimes happen with cygwin. I enabled the large installation quirks that should reduce the number of forks, let's see if that helps. Regards, Jakob -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H___ 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] 1st post to the group, basic q ... I think
On Mon, Feb 23, 2009 at 11:10 PM, Lance Raymond lraym...@weatherflow.com wrote: I tried a few things after the _v1 but nagios kept failing on restart, so I think I just need to figure out howto push the variables (such as hostIP , community name) to the check_command, right? Since changing the service to use the new command, nagios is now red with the following error; Return code of 255 is out of bounds There are good docs on how to pass arguments to a check command. Here's my pattern to bring new service checks online without mucking about with the running nagios process: 1) Find the plugin on the host running nagios 2) Run the plugin manually as the nagios user with the arguments you would like. Inspect the output. Is it what you expect? 3) If it is what you expect, compose the check command and service definition exactly as your manual run, only use macro substitution as per the documentation 4) Save your configs and check them before loading the new objects. nagios -v nagios.cfg will automate this check and inform you that everything is okay before you go live. 5) If everything's okay, reload the configuration and check the web interface for the new service check status. -lee -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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] (no subject)
Thanks, Kurt Fritsch ResNet Manager Division of University Housing Information Technology Department University of Wisconsin-Madison 608-265-3846 -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H___ 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] Understanding check_cluster
I need some help understanding the check_cluster plugin, please. I'm using version 1.4.13 of the plugins on Nagios 3.10, all compiled from source on 64-bit CentOS 5.2. We use VMWare ESX clusters, and I'd like the hosts in Nagios that happen to be virtual machines to have one parent instead of a list of parents comprising every ESX host in the cluster. Recently, an ESX host was moved from one cluster to another, so I had to change a lot of parents. If there's a better way to represent VMs and their hosts, I'm open to suggestions too. I don't have any problem running it as the Nagios user from the command line and feeding it states, like so: ./check_cluster --host --data=0,0,2,1 --warning=0 --critical=1 CLUSTER CRITICAL: Host cluster: 2 up, 1 down, 1 unreachable ./check_cluster --host --data=0,0,0,0 --warning=0 --critical=1 CLUSTER OK: Host cluster: 4 up, 0 down, 0 unreachable ./check_cluster --host --data=0,0,0,1 --warning=0 --critical=1 CLUSTER WARNING: Host cluster: 3 up, 1 down, 0 unreachable Adding --verbose just says check_cluster - Warning: start=0 end=0; Critical: start=0 end=1 first. However, if I try anything with the $HOSTSTATEID$ macro, everything is always OK, even if I just make up host names: [./check_cluster --host --data=$HOSTSTATEID:duck$,$HOSTSTATEID:cow$,$HOSTSTATEID:chicken$ --warning=0 --critical=1 CLUSTER OK: Host cluster: 3 up, 0 down, 0 unreachable I thought maybe macros work better when executed by Nagios, so I added check_host_cluster command a host with that as its check_command. define command { command_namecheck_host_cluster command_line$USER1$/check_cluster --host --label=$HOSTNAME$ --warning=$ARG1$ --critical=$ARG2$ --data=$ARG3$ } define host { use linux-server host_name ProductionCluster1 alias Production Cluster 1 address 127.0.0.1 parents gisesx1,gisesx3,gisesx4 check_command check_host_cluster!1!2!$HOSTSTATEID:foo1$,$HOSTSTATEID:foo3$,$HOSTSTATEI D:foo4$ hostgroups nogsupport } The check_interval for the linux-server template is set to 3. I made the assumption that it didn't matter what I set the address to since I'm only interested in the state of other hosts, and it's not being referenced in the check_command. It shows up in the host information web page as being up, but I don't have any hosts named foo: Host Status: UP (for 0d 3h 41m 9s+) Status Information: CLUSTER OK: ProductionCluster1: 3 up, 0 down, 0 unreachable I had better luck with check_icmp, but it looks like it goes straight to CRITICAL if one host is down. Nothing in this message is intended to make or accept and offer or to form a contract, except that an attachment that is an image of a contract bearing the signature of an officer of our company may be or become a contract. This message (including any attachments) is intended only for the use of the individual or entity to whom it is addressed. It may contain information that is non-public, proprietary, privileged, confidential, and exempt from disclosure under applicable law or may constitute as attorney work product. If you are not the intended recipient, we hereby notify you that any use, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this message in error, please notify us immediately by telephone and delete this message immediately. Thank you. -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H___ 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] monitor router temperature
On Fri, Feb 13, 2009 at 1:46 PM, Max perld...@webwizarddesign.com wrote: On Thu, Feb 12, 2009 at 6:16 PM, Chris atst...@gmail.com wrote: I was wondering if there is any way to monitor a router's internal temperature via Nagios? I get lots of information when I use snmlwalk. But most check_snmp_* plugins give me Error: walkoid() returned nothing error. Thanks for any suggestions. I wrote and have used this script extensively: http://www.nagios3book.com/nagios-3-enm/checks/cisco/check_snmp_cisco_temp.pl If you get errors from scripts, most likely your device does not support the MIBs the scripts are looking for. as Marc stated, 7600s, 6000 series, and some 5000 series Ciscos support temperature sensors, 2x and 3x models do not, the 4000 series models I have used did not either. What kind of device are you querying? If it is a Cisco device, it will need to support the CISCO-ENTITY-SENSOR MIB http://www.oidview.com/mibs/9/CISCO-ENTITY-SENSOR-MIB.html Thanks. I tried your script but it gives me the following error. My router is a multi-layer switch: Cisco 6509. Error: Can't locate Nagios/Plugin/SNMP.pm in @INC (@INC contains: /usr/lib/nagios/plugins/lib /usr/lib/perl5/5.8.8/i586-linux-thread-multi /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i586-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl .) at ./check_snmp_cisco_temp.pl line 60. BEGIN failed--compilation aborted at ./check_snmp_cisco_temp.pl line 60. How do I get rid of this error? Thanks. -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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] monitor router temperature
On Tue, Feb 24, 2009 at 6:23 PM, Chris atst...@gmail.com wrote: Thanks. I tried your script but it gives me the following error. My router is a multi-layer switch: Cisco 6509. Error: Can't locate Nagios/Plugin/SNMP.pm in @INC (@INC contains: /usr/lib/nagios/plugins/lib /usr/lib/perl5/5.8.8/i586-linux-thread-multi /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i586-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl .) at ./check_snmp_cisco_temp.pl line 60. BEGIN failed--compilation aborted at ./check_snmp_cisco_temp.pl line 60. How do I get rid of this error? Thanks. Use CPAN to install Nagios::Plugin and Nagios::Plugin SNMP :) bash$ sudo cpan cpan install Nagios::Plugin ... lots of output ... cpan install Nagios::Plugin::SNMP -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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] 1st post to the group, basic q ... I think
ok, I am closer, but still unclear on the check_command and the define service part (I will try to read more 2nt) but I can run in manually as nagios from the cli; ./check_snmp_load.pl -H 1.1.1.1 -C community -w 3,3,2 -c 4,4,3 -T netsl Load : 4.37 4.27 4.20 : 4.37 4 : CRITICAL 4.27 4 : CRITICAL 4.20 3 : CRITICAL so that works. Now in the command.cfg I have the following; define command{ command_name check_snmp_load_v1 command_line $USER1$/check_snmp_load.pl -H $HOSTADDRESS$ $USER7$ -T $ARG1$ -w $ARG2$ -c $ARG3$ $ARG4$ -C community } and the server.cfg I have; define service{ use local-service ; Name of service$ host_name bigbird service_description Current Load via SNMP check_command check_snmp_load_v1!netsl!3,3,2!4,4,3 } I have played numerous times, that is the latest, I am trying to understand where the $ARG variables are defined (and how). I assume the $HOSTADDRESS is just by the server.cfg file, but not sure on $USER7$ as well as push the other $ARG$ one's, becuase as you see from the cli hand entering the info it works! Can't wait till all this basic stuff is behind me! Lee Azzarello wrote: On Mon, Feb 23, 2009 at 11:10 PM, Lance Raymond lraym...@weatherflow.com wrote: I tried a few things after the _v1 but nagios kept failing on restart, so I think I just need to figure out howto push the variables (such as hostIP , community name) to the check_command, right? Since changing the service to use the new command, nagios is now red with the following error;Return code of 255 is out of bounds There are good docs on how to pass arguments to a check command. Here's my pattern to bring new service checks online without mucking about with the running nagios process: 1) Find the plugin on the host running nagios 2) Run the plugin manually as the nagios user with the arguments you would like. Inspect the output. Is it what you expect? 3) If it is what you expect, compose the check command and service definition exactly as your manual run, only use macro substitution as per the documentation 4) Save your configs and check them before loading the new objects. nagios -v nagios.cfg will automate this check and inform you that everything is okay before you "go live". 5) If everything's okay, reload the configuration and check the web interface for the new service check status. -lee -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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 -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H___ 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] 1st post to the group, basic q ... I think
Sorry for the quick update, but don't want people to waste time, or they may change based on my update. Well, reading the http://nagios.manubulon.com/index_commands.html#load page more, I am trying to understand a bit more. So my commands.cfg file now looks like this; define command{ command_name check_snmp_load_v1 command_line $USER1$/check_snmp_load.pl -H $HOSTADDRESS$ -C community -T netsl -w 3,3,2 -c 4,4,3 -C community } and the server.cfg file looks like this; define service{ use local-service ; Name of service$ host_name bigbird service_description Current Load via SNMP check_command check_snmp_load_v1!netsl!3,3,2!4,4,3 } All seems to be working now, I need to understand the alarm levels a bit (that's easy reading) as well as figure if I even need the !netsl, etc. on the check_command line. But thanks for the push's in the right direction Lee Azzarello wrote: On Mon, Feb 23, 2009 at 11:10 PM, Lance Raymond lraym...@weatherflow.com wrote: I tried a few things after the _v1 but nagios kept failing on restart, so I think I just need to figure out howto push the variables (such as hostIP , community name) to the check_command, right? Since changing the service to use the new command, nagios is now red with the following error;Return code of 255 is out of bounds There are good docs on how to pass arguments to a check command. Here's my pattern to bring new service checks online without mucking about with the running nagios process: 1) Find the plugin on the host running nagios 2) Run the plugin manually as the nagios user with the arguments you would like. Inspect the output. Is it what you expect? 3) If it is what you expect, compose the check command and service definition exactly as your manual run, only use macro substitution as per the documentation 4) Save your configs and check them before loading the new objects. nagios -v nagios.cfg will automate this check and inform you that everything is okay before you "go live". 5) If everything's okay, reload the configuration and check the web interface for the new service check status. -lee -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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 -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H___ 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] Understanding check_cluster
Here's my config. It's functional: define command{ command_name check-cluster-health command_line /usr/lib/nagios/plugins/check_cluster --service -l $ARG1$ -w $ARG2$ -c $ARG3$ -d $ARG4$ } define service{ service_description check-cluster-health host app-proxy check_command check-cluster-health!App Thread Health!0!1!$SERVICESTATEID:app-1:mongrel-count$,$SERVICESTATEID:app-2:mongrel-count$,$SERVICESTATEID:app-3:mongrel-count$,$SERVICESTATEID:app-4:mongrel-count$ use serviceClusterTemplate } define service{ service_description mongrel-count hostgroup app-servers,manager-servers check_command check_nrpe_1arg!check_mongrel_count notifications_enabled 0 use serviceClusterTemplate } -lee On Tue, Feb 24, 2009 at 5:18 PM, Chris Beattie cbeat...@geninfo.com wrote: I need some help understanding the check_cluster plugin, please. I’m using version 1.4.13 of the plugins on Nagios 3.10, all compiled from source on 64-bit CentOS 5.2. We use VMWare ESX clusters, and I’d like the hosts in Nagios that happen to be virtual machines to have one parent instead of a list of parents comprising every ESX host in the cluster. Recently, an ESX host was moved from one cluster to another, so I had to change a lot of parents. If there’s a better way to represent VMs and their hosts, I’m open to suggestions too. I don’t have any problem running it as the Nagios user from the command line and feeding it states, like so: ./check_cluster --host --data=0,0,2,1 --warning=0 --critical=1 CLUSTER CRITICAL: Host cluster: 2 up, 1 down, 1 unreachable ./check_cluster --host --data=0,0,0,0 --warning=0 --critical=1 CLUSTER OK: Host cluster: 4 up, 0 down, 0 unreachable ./check_cluster --host --data=0,0,0,1 --warning=0 --critical=1 CLUSTER WARNING: Host cluster: 3 up, 1 down, 0 unreachable Adding --verbose just says “check_cluster - Warning: start=0 end=0; Critical: start=0 end=1” first. However, if I try anything with the $HOSTSTATEID$ macro, everything is always OK, even if I just make up host names: [./check_cluster --host --data=$HOSTSTATEID:duck$,$HOSTSTATEID:cow$,$HOSTSTATEID:chicken$ --warning=0 --critical=1 CLUSTER OK: Host cluster: 3 up, 0 down, 0 unreachable I thought maybe macros work better when executed by Nagios, so I added check_host_cluster command a host with that as its check_command. define command { command_name check_host_cluster command_line $USER1$/check_cluster --host --label=$HOSTNAME$ --warning=$ARG1$ --critical=$ARG2$ --data=$ARG3$ } define host { use linux-server host_name ProductionCluster1 alias Production Cluster 1 address 127.0.0.1 parents gisesx1,gisesx3,gisesx4 check_command check_host_cluster!1!2!$HOSTSTATEID:foo1$,$HOSTSTATEID:foo3$,$HOSTSTATEID:foo4$ hostgroups nogsupport } The check_interval for the linux-server template is set to 3. I made the assumption that it didn’t matter what I set the address to since I’m only interested in the state of other hosts, and it’s not being referenced in the check_command. It shows up in the host information web page as being up, but I don’t have any hosts named foo: Host Status: UP (for 0d 3h 41m 9s+) Status Information: CLUSTER OK: ProductionCluster1: 3 up, 0 down, 0 unreachable I had better luck with check_icmp, but it looks like it goes straight to CRITICAL if one host is down. This message (including any attachments) is intended only for the use of the individual or entity to which it is addressed and may contain information that is non-public, proprietary, privileged, confidential, and exempt from disclosure under applicable law or may constitute as attorney work product. If you are not the intended recipient, you are hereby notified that any use, dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, notify us immediately by telephone and (i) destroy this message if a facsimile or (ii) delete this message immediately if this is an electronic communication. Thank you. -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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
Re: [Nagios-users] 1st post to the group, basic q ... I think
-Original Message- From: Lance Raymond [mailto:lraym...@weatherflow.com] Sent: Tuesday, February 24, 2009 4:41 PM To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] 1st post to the group, basic q ... I think ok, I am closer, but still unclear on the check_command and the define service part (I will try to read more 2nt) but I can run in manually as nagios from the cli; ./check_snmp_load.pl -H 1.1.1.1 -C community -w 3,3,2 -c 4,4,3 -T netsl Load : 4.37 4.27 4.20 : 4.37 4 : CRITICAL 4.27 4 : CRITICAL 4.20 3 : CRITICAL so that works. Now in the command.cfg I have the following; define command{ command_name check_snmp_load_v1 command_line $USER1$/check_snmp_load.pl -H $HOSTADDRESS$ $USER7$ -T $ARG1$ -w $ARG2$ -c $ARG3$ $ARG4$ -C community } and the server.cfg I have; define service{ use local-service ; Name of service$ host_name bigbird service_description Current Load via SNMP check_command check_snmp_load_v1!netsl!3,3,2!4,4,3 } I have played numerous times, that is the latest, I am trying to understand where the $ARG variables are defined (and how). I assume the $HOSTADDRESS is just by the server.cfg file, but not sure on $USER7$ as well as push the other $ARG$ one's, becuase as you see from the cli hand entering the info it works! Yes, $HOSTADDRESS$ that is used by commands.cfg is defined in the service definition as 'host_name' $ARG1$, $ARG2$, etc are just that - in your definition above, $ARG1$ = netsl , $ARG2$ = 3,3,2 $ARG3$ = 4,4,3 (and so on).. (Not sure why you cannot execute it via nagios but can do so by hand - try running it as the nagios user using su - nagios -c command here Hth.. Regards, Jamie -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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 fail to monitor copy forward mail queue
Dear All i have problem with nagios monitoring copy forward mail queue in qmail mail server, if queue in the mail server coming from ussual email (not copy forwrd) nagios can monitoring queue, but if queue from copy forward email is fail to monitor Note : we have qmail server that some user copy forward/forward only to our Exchange server Anybody have some experience ? Thanks Regards -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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] Distributed Linux set up configuration
Have u installed u all openssl libraries In which OS are u trying to install what verion of nagios are u using --- On Tue, 2/24/09, dharini.vi...@wipro.com dharini.vi...@wipro.com wrote: From: dharini.vi...@wipro.com dharini.vi...@wipro.com Subject: [Nagios-users] Distributed Linux set up configuration To: nagios-users@lists.sourceforge.net Date: Tuesday, February 24, 2009, 3:09 PM Hi All While trying to configure Distributed Linux set up in Nagios I am getting only the following error message from the server CHECK_NRPE: Error - Could not complete SSL handshake Whether some body can check and help me. Both plug-in and daemon versions ae same and permissions are correct. Some body please help me Thanks and regards, V.Dharini Practice Team - Tools Engineer |WIPRO Infotech| # 37, Castle street, Samridhibhavan, Ashok Nagar. Bangalore - |560 025| -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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 -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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