Re: [Nagios-users] Multiple NRPE Processes
Can you elaborate Matthew, why is it critical to run NRPE in daemon mode under Solaris? I'm just curious as to any issues that may result from not doing so. Cheers, Chris -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev ___ 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 as a Service Resiliency Manager
That's an interesting link - but unfortunately I don't think it really covers the situation where a host goes down or becomes unreachable. It may be the case that Nagios is not suitable for this purpose, but I thought I would check on here in case anyone had done anything like this previously. Cheers, Chris 2009/12/10 Marcel mits...@gmail.com: Maybe this would help: http://onlamp.com/onlamp/2006/05/25/self-healing-networks.html On Thu, Dec 10, 2009 at 3:08 PM, Christopher McAtackney crist...@gmail.com wrote: Hi all, I have a need to control an Active / Passive pair of components and was wondering if anyone had tackled this problem with Nagios? The scenario is as follows; Host A has SERVICE_1 installed and running. Host B has SERVICE_2 installed, but not running. The desired functionality is to detect when SERVICE_1 is not running (or that Host A is down / unreachable), and then to start SERVICE_2 on Host B. I believe I can do this with Nagios by defining an event handler on SERVICE_1 which will make the appropriate call to start SERVICE_2 on Host B Would it make sense to store the relationship between SERVICE_1 and Host B / SERVICE_2 as a service macro, e.g. $_SERVICE_PASSIVE_HOSTNAME, $_SERVICE_PASSIVE_SERVICENAME? There are too many scenarios in which the SERVICE_1 might come back up to try automate the switching off of SERVICE_2 I believe, e.g. if someone pulled a network cable on Host A accidently, then plugged it in 15 minutes later - during which time Nagios detects that it is down and so starts up SERVICE_2. The user then plugs the network lead back in and now we have two Active instances running - which is what we specifically wanted to avoid. Even if Nagios detects that the primary component is up, it's still too late because any Active / Active overlap will cause problems for this particular application. I can't think of any way to automate that side of things - but does the general concept of having Nagios start up a Passive partner make sense? Thanks for any insight you have, Chris -- Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev ___ 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 -- Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev ___ 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 as a Service Resiliency Manager
Hi all, I have a need to control an Active / Passive pair of components and was wondering if anyone had tackled this problem with Nagios? The scenario is as follows; Host A has SERVICE_1 installed and running. Host B has SERVICE_2 installed, but not running. The desired functionality is to detect when SERVICE_1 is not running (or that Host A is down / unreachable), and then to start SERVICE_2 on Host B. I believe I can do this with Nagios by defining an event handler on SERVICE_1 which will make the appropriate call to start SERVICE_2 on Host B Would it make sense to store the relationship between SERVICE_1 and Host B / SERVICE_2 as a service macro, e.g. $_SERVICE_PASSIVE_HOSTNAME, $_SERVICE_PASSIVE_SERVICENAME? There are too many scenarios in which the SERVICE_1 might come back up to try automate the switching off of SERVICE_2 I believe, e.g. if someone pulled a network cable on Host A accidently, then plugged it in 15 minutes later - during which time Nagios detects that it is down and so starts up SERVICE_2. The user then plugs the network lead back in and now we have two Active instances running - which is what we specifically wanted to avoid. Even if Nagios detects that the primary component is up, it's still too late because any Active / Active overlap will cause problems for this particular application. I can't think of any way to automate that side of things - but does the general concept of having Nagios start up a Passive partner make sense? Thanks for any insight you have, Chris -- Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev ___ 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] Services on Host Templates
Hi all, If I create a host template, and associate a number of services with it, will hosts which inherit from that template also inherit the service associations? I've tried this out, but it doesn't seem to be working, and I'm wondering if there's something I'm missing. Previously I was using host groups to achieve this, but decided to use templates for my platform specific service checks (so instead of having a Windows Hosts host group with all my Windows specific checks, I would just have a Windows-Host template with the associated service checks which would then be inherited by all my Windows boxes). Cheers, Chris -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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] Services on Host Templates
2009/8/20 Jim Avery j...@jimavery.me.uk: 2009/8/20 Christopher McAtackney crist...@gmail.com: Hi all, If I create a host template, and associate a number of services with it, will hosts which inherit from that template also inherit the service associations? No. You can only associate actual hosts or hostgroups with a service. Ok, that's the route I had originally gone, looks like I'll stick with it now. Cheers for the info, Chris -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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: NDO Utils Question
2009/6/25 Wheeler, JF (Jonathan) jonathan.whee...@stfc.ac.uk: -Original Message- From: Christopher McAtackney [mailto:crist...@gmail.com] Sent: 25 June 2009 14:51 Hi everyone, I have a quick question about Nagios and NDOUtils I was hoping someone could answer. What happens if the database that NDO Utils is using becomes unavailable? (e.g. the server has crashed). The answer depends a lot on whether you are using Nagios v2 or Nagios v3; we are using Nagios v2.11. My understanding is that in Nagios v2, the code that communicates with the event broker module in single-threaded. Therefore a problem with the SQL server can jam up Nagios to the extent that it effectively stops running commands. In Nagios v3, threading has been rewritten and this problem no longer exists. Sorry, should have specified that. I'm running 3.0.6. I'm assuming Nagios will continue to monitor and send notifications as normal, is this correct? In Nagios v2 it seems that almost all activity is suspended when you are using NDOutils and the MySQL server is unavailable; this continues until the SQL server is restored. One solution is to restart Nagios without the broker_module. What about the service check results that would normally be passed to NDO Utils and then stored in the database? Are they queued somewhere? And if so, how is the capacity of this queue defined? If they are not queued, what happens? Will NDO Utils just throw an error for each result it tries to store in the database and fails? Will this affect the core Nagios process? Results passing into the command pipe are stored. The relevant parameters are in nagios.cfg; they are external_command_buffer_slots and check_result_buffer_slots - by default these are set to 4096 (see documentation within the configuration file). Great, that's what I was hoping for. Do you have any experience of setting this buffer to much higher values? Not that I necessarily intend to, but it's always useful to know the effects of pushing the system to its limits. Hopefully someone can provide some insight. Hopefully this has Yes, this has been very helpful, thanks for your answer. Thanks as well Carsten, much appreciated. Jonathan Wheeler e-Science Centre Rutherford Appleton Laboratory -- ___ 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] Removing NRPE Daemon
Turns out the problem was that the old NRPE daemon process hadn't been killed before trying to install to the new one. Killing it and reinstalling solved the problem. Cheers, Chris 2009/5/27 Assaf Flatto assaf.fla...@ssp-intl.com: try /etc/init.d/ directory - which is the usual place for init scripts How do you start the nrpe daemon ? Assaf On Wednesday 27 May 2009 14:32:40 Christopher McAtackney wrote: Hi Assaf, where can I find the init script for the NRPE daemon? Cheers, Chris 2009/5/27 Assaf Flatto assaf.fla...@ssp-intl.com: When you did the make install - did you also make sure that the proper init script was copied and the new binaries were copied over the old one ? What i think you have is two installs of nrpe located in different locations and the init script is calling the old one . check the paths and locations and see what is called when you start the nrpe daemon . Assaf On Wednesday 27 May 2009 13:47:49 Christopher McAtackney wrote: Hi all, I was wondering how to remove the NRPE daemon completely from my Ubuntu machine? It was compiled without SSL support, and is an older version, so I'd like to stick 2.12 on w/ SSL. I tried just make'ing and install'ing 2.12, but NRPE 2.8.1 is still running. Do I have to kill it somehow before installing the new version? Cheers, Chris --- --- Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, Big Spaceship. http://p.sf.net/sfu/creativitycat-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 -- Assaf Flatto SSP Ops Team Linux System Administrator 169 Euston Road, London, NW1 2AE Along with a few colleagues I am doing The Three Peaks Challenge again this year to raise money for The Railway Children. Please sponsor me by making a donation online, simply click on the link below and give via your switch/credit card. Thank you. http://www.justgiving.com/londonnorththreepeaks 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 - - Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, Big Spaceship. http://p.sf.net/sfu/creativitycat-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 -- Assaf Flatto SSP Ops Team Linux System Administrator 169 Euston Road, London, NW1
Re: [Nagios-users] Removing NRPE Daemon
Hi Assaf, where can I find the init script for the NRPE daemon? Cheers, Chris 2009/5/27 Assaf Flatto assaf.fla...@ssp-intl.com: When you did the make install - did you also make sure that the proper init script was copied and the new binaries were copied over the old one ? What i think you have is two installs of nrpe located in different locations and the init script is calling the old one . check the paths and locations and see what is called when you start the nrpe daemon . Assaf On Wednesday 27 May 2009 13:47:49 Christopher McAtackney wrote: Hi all, I was wondering how to remove the NRPE daemon completely from my Ubuntu machine? It was compiled without SSL support, and is an older version, so I'd like to stick 2.12 on w/ SSL. I tried just make'ing and install'ing 2.12, but NRPE 2.8.1 is still running. Do I have to kill it somehow before installing the new version? Cheers, Chris --- --- Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, Big Spaceship. http://p.sf.net/sfu/creativitycat-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 -- Assaf Flatto SSP Ops Team Linux System Administrator 169 Euston Road, London, NW1 2AE Along with a few colleagues I am doing The Three Peaks Challenge again this year to raise money for The Railway Children. Please sponsor me by making a donation online, simply click on the link below and give via your switch/credit card. Thank you. http://www.justgiving.com/londonnorththreepeaks 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 -- Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, Big Spaceship. http://p.sf.net/sfu/creativitycat-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 -- Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, Big Spaceship. http://p.sf.net/sfu/creativitycat-com ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users
Re: [Nagios-users] Problem in configuring NSClient ++
2009/5/12 Sundar V S sunnywa...@in.com: Hi, I configured NSClient on Windows server, as menitoned in Nagios Documentation. Now, when i restarted the Nagios service on my Nagios Server, i gave me the following error, Stopping nagios: No lock file found in /usr/local/nagios/var/nagios.lock When i started the nagios service it gave, Starting nagios:CONFIG ERROR! Start aborted. Check your Nagios configuration. I tried to verify the nagios configuration it gave me the below error. Nagios 3.0.6 Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org) Last Modified: 12-01-2008 License: GPL Reading configuration data... Error: Template 'windows-server' specified in host definition could not be not found (config file '/usr/local/nagios/etc/objects/windows.cfg', starting on line 25) *** One or more problems was encountered while processing the config files...Check your configuration file(s) to ensure that they contain valid directives and data defintions. If you are upgrading from a previous version of Nagios, you should be aware that some variables/definitions may have been removed or modified in this version. Make sure to read the HTML documentation regarding the config files, as well as the 'Whats New' section to find out what has changed. Can anyone guide me whats going wrong in my configuration. I followed all the steps mentioned in NSCLient++ site. I want to montior my Windows Server (10.180.117.172) on my Nagios Server (10.180.117.171) having OS RHEL 4. Please help. Hi Sundar, Check your etc/objects/templates.cfg file and make sure that the following default template is defined; define host{ namewindows-server ; The name of this host template use generic-host; Inherit default values from the generic-host template check_period24x7; By default, Windows servers are monitored round the clock check_interval 5 ; Actively check the server every 5 minutes retry_interval 1 ; Schedule host check retries at 1 minute intervals max_check_attempts 10 ; Check each server 10 times (max) check_command check-host-alive; Default command to check if servers are alive notification_period 24x7; Send notification out at any time - day or night notification_interval 30 ; Resend notifications every 30 minutes notification_optionsd,r ; Only send notifications for specific host states contact_groups admins ; Notifications get sent to the admins by default hostgroups windows-servers ; Host groups that Windows servers should be a member of register0 ; DONT REGISTER THIS - ITS JUST A TEMPLATE } This should be there by default, but it sounds like your configuration is missing this definition for some reason. It may be commented out by default, I can't remember - but if so, just uncomment it. Chris -- The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-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] Centreon
Hi Simon, Sorry, just realised that I had forgotten to reply to you. I got Centreon working perfectly in the end. My centstorage service wasn't running for some reason, but once it started, the graphs started becoming populated with data as expected. I've had it running for about 10 days now and haven't encountered any problems with it at all. One thing I was wondering about though, is if anyone has experience with redundancy strategies for Centreon. With Nagios alone, it seemed simple enough (consolidate the log files), but Centreon's database usage makes things somewhat more complicated. Have you got a strategy in place for synchronising your primary server from a secondary server's database if the primary should go down for any reason? I'll admit I haven't looked too deeply into Centreon's schema, so I'm not sure how feasible this task is. Cheers, Chris 2009/5/7 Simon Finch fin...@stgeorge.com.au: Hi Chris, First does the file /etc/centreon/conf.pm exist ? It should have the database hostname, dbname, dbuser and dbpassword in it. Who owns the /var/lib/centreon directory structure ? The apache user that centreon runs as needs full rights to this directory and the directories below it. These dirs should have been created by the centreon install, what version on centreon did you install and did the install run smoothly ? Thanks, Simon Simon Finch | ESM Specialist Ground Floor, 4-16 Montgomery St, Kogarah NSW 2217 (+61 2 9952 2574 7 +61 412 256 814 Email: fin...@stgeorge.com.au www.stgeorge.com.au __ St.George Bank IT - Good with people. Good with monitoring. -- The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-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] Centreon
Hi Simon, It looks like I'll have to take you up on your offer of help :-) Centreon seems to be working perfectly, except that graphs are not displaying. I see the following errors in nagiosPerfTrace.log; Can't locate /etc/centreon/conf.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/local/lib/site_perl .) at /usr/local/centreon/bin/nagiosPerfTrace line 188 mkdir: cannot create directory '/var/lib/centreon/nagios-perf/': permission denied chown: cannot access '/var/lib/centreon/nagios-perf/': No such file or directory chmod: cannot access '/var/lib/centreon/nagios-perf/': No such file or directory mkdir: cannot create directory '/var/lib/centreon/nagios-perf/perfmon-1': permission denied chown: cannot access '/var/lib/centreon/nagios-perf/perfmon-1': No such file or directory chmod: cannot access '/var/lib/centreon/nagios-perf/perfmon-1': No such file or directory Do you have any idea what might be causing these errors? I manually created these directories and granted permission to nagios on them, but still am not seeing any results. Hopefully you've come across something like this before. Cheers, Chris 2009/4/10 Simon Finch fin...@stgeorge.com.au: Chris, Centreon is a very powerful addition to Nagios, so good that I have managed to replace a large enterprise deployment of IBM Tivoli monitoring with Nagios, but only by using Centreon, Nagios by itself wouldn't have stood a chance. I started using it from version 2.0 beta 4 and the doco was terrible or non existent. I am currently using version 2.1 and the doco is still non existent, but the wiki / forum support more than makes up for it. If you compiled Nagios, nrpe, ndo and got it all working then you could easily get Centreon working. I work in IT for a moderately large bank in Australia who has recently been taken over by a larger bank. The new IT top dog is an American who used to run IT for a huge US aircraft manufacturer, he was impressed by what he saw in our NOC / war room. It was Nagios3 front ended by Centreon with management eye candy provided by NagVis, so I truly believe it when I say it's worth the effort because I am in the middle of doing it. If you want more details the feel free to ask as I found a number of traps in the beginning, eg, I don't recommend Redhat RHEL5 for the main server that runs Centreon, I switched to Ubuntu 8.04 , but I still use Redhat RHEL4 5 for the remote satellite Nagios servers. Rgds, Simon Simon Finch ESM Team Leader St George Bank ** * IMPORTANT INFORMATION * This document should be read only by those persons to whom it is addressed and its content is not intended for use by any other persons. If you have received this message in error, please notify us immediately. Please also destroy and delete the message from your computer. Any unauthorised form of reproduction of this message is strictly prohibited. St George Bank Limited AFSL 240997, Advance Asset Management Limited AFSL 240902, St George Life Limited AFSL 240900, ASGARD Capital Management Limited AFSL 240695 and Securitor Financial Group Limited AFSL 240687 is not liable for the proper and complete transmission of the information contained in this communication, nor for any delay in its receipt. ** -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-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 -- Register Now Save for Velocity, the Web Performance Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf ___ 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] parse log files
2009/4/29 Chris atst...@gmail.com: I have a log server where all servers log in its individual files. Logs are rotated once a month. Is there any way get Nagios to read the *.crit lines from the log files and alert for each individual server? Thanks. I haven't tried it out myself, but it sounds like this plugin is what you're looking for; http://www.consol.com/opensource/nagios/check-logfiles -- Register Now Save for Velocity, the Web Performance Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf ___ 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] Protocol
Thanks Kevin 2009/4/27 Kevin Keane subscript...@kkeane.com: TCP. UDP would be too unreliable for this type of application, and there also is too much data going over the line to make UDP a viable option. Christopher McAtackney wrote: Hi everyone, I was just wondering; what protocol (TCP, UDP?) does Nagios use to communicate with remote hosts when using the check_nrpe plugin? Or just generally? Cheers, Chris -- 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. -- Crystal Reports #45; New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty#45;free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ 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 -- Register Now Save for Velocity, the Web Performance Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf ___ 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] Protocol
Hi everyone, I was just wondering; what protocol (TCP, UDP?) does Nagios use to communicate with remote hosts when using the check_nrpe plugin? Or just generally? Cheers, Chris -- Crystal Reports #45; New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty#45;free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ 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] C++ Plugins
2009/4/21 Michael Medin mich...@medin.name: Hello, All the built in plugins are avalible as source so it should be pretty simple to figure out. The idea is anyways that you fill the buffer passed to the function from the core. (this will BTW change in the next major release) Thanks for the explanation Michael - this should be very helpful. I'm curious though, what are the guidelines around writing a C++ program to be executed as an external script? I've written a simple program for checking if the driver name supplied as an arg is loaded in the system, but I'm not using any of the above glue to do so, I just make the checks and printf the output and return the result code. Is this sufficient? Here's the code; #include stdafx.h #include windows.h #include psapi.h #include tchar.h #include stdio.h #define ARRAY_SIZE 1024 int main(int argc, char* argv[]) { LPVOID drivers[ARRAY_SIZE]; DWORD cbNeeded; int cDrivers, i; if(EnumDeviceDrivers(drivers, sizeof(drivers), cbNeeded) cbNeeded sizeof(drivers)) { TCHAR szDriver[ARRAY_SIZE]; cDrivers = cbNeeded / sizeof(drivers[0]);; for (i=0; i cDrivers; i++ ) { if(GetDeviceDriverBaseName(drivers[i], szDriver, sizeof(szDriver) / sizeof(szDriver[0]))) { if(argv[1] != NULL _tcscmp ( szDriver, _T(argv[1])) == 0) { printf(Driver is loaded); return 0; // OK } } } printf(Driver is not loaded!); return 2; // CRITICAL } else { printf(EnumDeviceDrivers failed; array size needed is %d\n, cbNeeded / sizeof(LPVOID)); return 3; // UNKNOWN } } It's based off the code here; http://msdn.microsoft.com/en-us/library/ms682619(VS.85).aspx I just drop the compiled program into ExternalScripts and add this to nsc.ini; [External Scripts] check_driver = ExternalScripts\Check_Driver.exe driver-name-here Is this an appropriate way to carry-out this check? It works perfectly fine so far, but I'm just curious to see if this is a proper way of doing things? Cheers, Chris -- Crystal Reports #45; New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty#45;free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ 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] C++ Plugins
Hi all, I'm trying to develop a plug-in for NSClient++ written in C++, but I'm unsure of how to return the status code and the check result string (e.g. 2 and Service is Critical). Are there any examples of C++ plugins online anywhere that I can use as a template? Cheers, Chris -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ 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] C++ Plugins
Chris, if you do a search on http://nagiosexchange.org for c++ you will find various plugins, utilities and addons written using C++. I guess most or at least some of them will include the source code. I don't program any version of C myself so can't check for sure which might be a good example for you. Cheers, Jim Thanks Jim, I found some examples there and was able to base my plugin off them. Cheers, Chris -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ 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] Precompiled Solaris Binaries
Hi everyone, I was wondering if there were pre-compiled binaries of Nagios 3.0.6, NRPE 2.12 and Plugins 1.4.13 for Solaris 10 x86 available anywhere? Cheers, Chris -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ 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] Precompiled Solaris Binaries
2009/4/17 Kyle O'Donnell kyleodonn...@gmail.com: I'll be compiling these shortly and uploading to nagios exchange. Great, good to hear :) Will these be available today Kyle? I'm quite eager to get my hands on them. Also, whilst on the subject of Nagios under Solaris, does anyone have examples of a bash script / manifest file for running the NRPE daemon under SMF? That would be a big help to me too. Cheers, Chris -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ 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] Precompiled Solaris Binaries
Sorry, I meant to ask, are there also binaries available for Solaris 10 U6 x64? -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ 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] Consolidating Log Files
2009/4/17 Andreas Ericsson a...@op5.se: Christopher McAtackney wrote: Hi all, I'm thinking of setting up my Nagios system in a Redundant Monitoring configuration - two servers (a primary and secondary) which both monitor all hosts / services, but only one of which has notifications enabled (the primary). Upon failure of the primary, the secondary will enable its own notifications (and upon the primary returning to an OK state, notifications will be disabled). One aspect of this that I am wondering how to tackle is consolidating my log files after a failure has occurred. I want my primary Nagios server's log files to reflect the total history of check results that have been made - and so would like the results from the secondary server for the time period when the primary was done, to be consolidated into the log files of the primary (for browsing through the web UI). Has anyone looked into this before, and how did you solve the problem of duplicate result checks being created in the primary log? Fortunately, line-based merging of files where every line is prefix with a timestamp is as simple as doing cat file1 file2 file3 filen... | sort -n merged-file Since the primary server won't be logging at all during the time it's offline, this merge-strategy will work quite nicely. Do note that it requires quite a lot of memory and is fairly cpu intensive though, so if you have a large installation, you'll want to filter out the period where the primary server was up from the logs of the secondary server and then just paste those in at the end of the primary server's logs. Some sed or perl-scripting can help you there. Note that for either of the above ways to work, the two server's clocks have to be in sync. If they're not, you need to take the clock-delta into consideration when merging the logs. -- Andreas Ericsson andreas.erics...@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror, I think we should give some serious thought to declaring war on peace. Cheers Andreas, I'll give this a shot, sounds good! Chris -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ 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] Consolidating Log Files
Hi all, I'm thinking of setting up my Nagios system in a Redundant Monitoring configuration - two servers (a primary and secondary) which both monitor all hosts / services, but only one of which has notifications enabled (the primary). Upon failure of the primary, the secondary will enable its own notifications (and upon the primary returning to an OK state, notifications will be disabled). One aspect of this that I am wondering how to tackle is consolidating my log files after a failure has occurred. I want my primary Nagios server's log files to reflect the total history of check results that have been made - and so would like the results from the secondary server for the time period when the primary was done, to be consolidated into the log files of the primary (for browsing through the web UI). Has anyone looked into this before, and how did you solve the problem of duplicate result checks being created in the primary log? Cheers, Chris -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ 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] Centreon
Thanks to all for the replies, I appreciate the offers of help. I was thinking of trying to port Centreon to run against Oracle instead of MySQL. I took a quick skim over the source and it looks like a lot of the database calls are going through PEAR and are fairly generic, so I'm hoping that it won't be overly complicated. The installation scripts look simple enough to port too. Does anyone have any pointers on this idea? I've noticed in some places that NDOUtils is mentioned in connection with Centreon, but I can't determine if it's actually required or not. Anyway, hopefully someone out there has tried something like this before! Cheers, Chris -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-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] Nagios and Cacti
With parallel checks in Nagios 3 and some configuration tuning and well-written SNMP checks, I'd argue that Nagios is as good if not a better poller than cactid :). our instance is not huge, but currently we do 7000+ SNMP-based checks in 3 minutes on a dual quad-core Linux-based server. Before PNP I used to use Cacti and Nagios. I like Cacti, but with PNP around I would never go back to that combination again .. Nagios + PNP really does simplify life for Nagios administrators and provides a lot of flexibility as far as how you scale your graphing as your node base grows. - Max Hi Max, Do you all of your SNMP management manually? I'm still learning a lot about SNMP, and was under the impression that Cacti took a lot of the pain out of SNMP management, but I'd be interested in hearing how you administer it in your system just using Nagios + PNP4Nagios if you don't mind? Cheers, Chris -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-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] Centreon
Hi all, Does anyone have any experience using Centreon? http://www.centreon.com/ It seems like a really nice front-end to Nagios, but I'd like to hear of other people's experiences using it before installing and setting it up. Cheers, Chris -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-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] Centreon
2009/4/9 James Pratt jpr...@norwich.edu: -Original Message- From: Christopher McAtackney [mailto:crist...@gmail.com] Sent: Thursday, April 09, 2009 8:59 AM To: Nagios Users Subject: [Nagios-users] Centreon Hi all, Does anyone have any experience using Centreon? http://www.centreon.com/ It seems like a really nice front-end to Nagios, but I'd like to hear of other people's experiences using it before installing and setting it up. Cheers, Chris Hi, if you search the archives, this was actually discussed fairly recently: http://www.mail-archive.com/nagios-users@lists.sourceforge.net/msg24257. html regards, jamie Hm, doesn't sound too promising. That's a shame, because it looks great from the description and screen shots. Chris -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-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] Nagios and Cacti
Hi all, I've been looking into making use of Cacti to act as an SNMP management tool which runs alongside my Nagios instance. Ideally, what I would like to do is have Cacti monitor various SNMP-exposed metrics on my hosts, and then have a service check in Nagios which parses Cacti's results (which I believe are RRD files) and send alerts etc. Nagios itself will still be used for running directly checks for services running, errors in log files etc. Does this approach make sense? One issue that I can think of is the difficulty in keeping the config files of Nagios and Cacti synchronised. I was planning on using Lilac Platform to act as my Nagios config file management tool, but how that is kept in synch with Cacti is a problem. Has anyone ever set up an arrangement like this before? Cheers, Chris -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-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] Nagios and Cacti
2009/4/8 Andrew Davis ncc...@gmail.com: And just an FYI from my own experience... putting Nagios Cacti on the same server has been somewhat problematic for us. We have over 400 network devices between switches, routers, WAPs, etc. We also have about 300 monitored servers. Initially I had Nagios and Cacti both on one server with Cacti running via cron every 5 minutes. About every 5 minutes, my shells would become unresponsive for roughly 30 to 90 seconds. Turning off either Nagios or Cacti resolved the issue. Running both seems to have hammered the server a bit (4Gb of RAM, 2 x dual core 2.x Ghz CPUs). We don't integrate Cacti and Nagios, however. Nagios does both trending and alerts of all servers. Cacti does trending only of all network devices/ports. Once I moved Cacti to its own server, all was fine as far as load/latency went. That's useful to know Andrew, thanks. Regarding the trending of network devices - is there any reason why this can't be done by Nagios? I intend to install PNP4Nagios to take care of graphing anyway, but I think it would be nice to have all my monitored resources under the one system (for notifications and ease of administration). Is there some major advantage that Cacti provides when it comes to SNMP monitoring of network devices that cannot be achieved with Nagios and the various SNMP plug-ins available for it (e.g. like these ones http://nagios.manubulon.com) ? Cheers, Chris -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-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] Uniquely Identifiable Events in Nagios.log?
Since you almost certainly want to maintain a single process to handle the logged lines, why not just write a tail-like program that parses them one by one as they're written? After all, you'd hardly want to slog through all the log-entries multiple times anyway. With this solution, I find it hard to see a need for uniqueness. should it happen that you still want to be able to uniquely identify lines, I believe a hash over the last 15 or so lines should suffice, assuming it's sufficiently strong (say, SHA1 or something). The chance of running into a collision should be very slim, and if it happens you can just increase the number of hashed lines. -- Andreas Ericsson andreas.erics...@op5.se Thanks for the advice Andreas, I'll take a look into this approach. Cheers, Chris -- ___ 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] Auto-Discovery
2009/3/25 Russell Adams rlad...@adamsinfoserv.com: It doesn't appear to me that the configuration syntax has changed significantly, but I haven't used 3.x yet. NACE updates your templates, so the syntax shouldn't matter much. If you write Nagios 3.x configs, and let NACE reuse them with variable replacement, there shouldn't be a problem. Thanks. Thanks for the info Russel, I'll give it a shot and see how I get on. Cheers, Chris -- ___ 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] Auto-Discovery
There is a new config / discovery manager for nagios called Lilac. http://www.lilacplatform.com/ Have a look and let us know how you get on. Rich Hi Rich, I have looked at Lilac before, and it looks great, unfortunately the only supported database platform I'll be using is Oracle. Is there a way to configure Lilac so that it does not have to use MySQL, or is it required for the core functionality? Cheers, Chris -- ___ 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] Uniquely Identifiable Events in Nagios.log?
Hi all, I was wondering if it is possible to configure Nagios to produce uniquely identifiable entries in the nagios/var/nagios.log file? The reason I ask, is that I would like to parse this log file for service check results and perform further processing based on the values discovered there. The trouble is, that as far as I can see, Nagios uses a time-stamp which is only accurate to the second, and so my log files have lines which all have the same time-stamp. Is there a way to increase the accuracy of this time-stamp perhaps? Or any other suitable solution to the general problem of identifying log entries? Cheers, Chris -- ___ 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] Uniquely Identifiable Events in Nagios.log?
2009/3/26 Marc Powell m...@ena.com: On Mar 26, 2009, at 9:22 AM, Christopher McAtackney wrote: Hi all, I was wondering if it is possible to configure Nagios to produce uniquely identifiable entries in the nagios/var/nagios.log file? No, the log format isn't configurable. Or any other suitable solution to the general problem of identifying log entries? NDO seems like a good fit. It's all in an query-able database and each row has a unique id. -- Marc I have come across NDO before, but unfortunately I cannot run MySQL in the production environment, and so I have to find a different solution to this problem. I found an NDOUtils Oracle, but I believe that it is still in a pre-alpha state, and so probably not suitable for a production environment with thousands of checks occurring. Chris -- ___ 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] Auto-Discovery
2009/3/24 Russell Adams rlad...@adamsinfoserv.com: NACE is a toolkit that you can use to build your own configuration. It was creating during the Nagios 2.x days, if you have any problems let me know. Once queries were created, it was incredibly low maintenance. Thanks. Hi Russell, I haven't attempted to use NACE yet, but can you think of any potential problems that I might run into using it with Nagios 3.x ? This is the version that I have to work with, so it'd be quite handy if NACE was compatible with it. Cheers, Chris -- ___ 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 vs. check_by_ssh
2009/3/25 Kevin Keane subscript...@kkeane.com: I think you are comparing apples and oranges here, because in most situations that I can think of, the decision is dictated by the network topology. If you are exclusively on a trusted private network, check_by_ssh really doesn't offer any benefits. Conversely, if your topology involves the Internet or some other untrusted network (WiFi), then you wouldn't want NRPE in the first place. The only exception to the above that I can think of is when it comes to deciding between using check_by_ssh over an untrusted network, vs. NRPE through some other kind of tunnel or VPN. But in that case, you'd incur encryption overhead either way, and the comparison is very different from the question you asked. All that said: I don't have any first-hand experience, but I suspect that the impact of establishing 2200 ssh connections in a five-minute span (assuming that you are using a five-minute check interval) is pretty substantial. The main impact actually lies in establishing and tearing down the connections, key negotiations etc.; the encryption during the data phase probably has only limited impact because most checks only transmit a few bytes back and forth. SSH does much better with longer-duration connections when the keys are already exchanged. This is even more true if you have a router-based VPN, because in that case the overhead is offloaded to a different machine. So if you have the option of sending the checks as NRPE through one or a few long-term VPNs: you are probably going to be better off. Of course, in the big picture, your mileage may vary. Firstly, thanks for the detailed explanation of the issues involved in this choice Kevin, it's been very helpful. I'm curious though, could you elaborate on why NRPE is unsuitable if communication with my remote hosts is going to go via the Internet? Is it not sufficient that NRPE uses SSL? This may be more of a network security question than a Nagios one, but I've no real experience in either area unfortunately, so I appreciate any info you can give here. Cheers, Chris -- ___ 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 vs. check_by_ssh
Hi all, I was wondering if someone could give a brief overview of the pros / cons of using NRPE to monitor my remote hosts versus using the check_by_ssh command? I'm aware that check_by_ssh increases the CPU overhead, but I'm not clear on the level of impact here - does this increase the load on the monitoring machine in direction relation to the number of hosts being monitored? For example, if I was using check_by_ssh to monitor, say, 2000 services spread across 200 hosts, would I experience significant slowdown on my monitoring machine? Cheers for any info, Chris -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-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] NRPE vs. check_by_ssh
2009/3/24 Michael Schwartzkopff mi...@multinet.de: Am Dienstag, 24. März 2009 10:45:08 schrieb Christopher McAtackney: Hi all, I was wondering if someone could give a brief overview of the pros / cons of using NRPE to monitor my remote hosts versus using the check_by_ssh command? I'm aware that check_by_ssh increases the CPU overhead, but I'm not clear on the level of impact here - does this increase the load on the monitoring machine in direction relation to the number of hosts being monitored? For example, if I was using check_by_ssh to monitor, say, 2000 services spread across 200 hosts, would I experience significant slowdown on my monitoring machine? Cheers for any info, Chris hi, ust SNMP! No need to install anything on the target system. SNMP Agents are already installed on nearly all systems. Since everything speaks SNMP you can gather info about hardware, operation system AND applications, independent of any OS. nagios: check_snmp Greetings, -- Dr. Michael Schwartzkopff This sounds interesting Michael. I searched around a bit, but wasn't able to find a good introduction to using check_snmp. Could you suggest an article / tutorial / blog entry somewhere that would be suitable for a Nagios newbie? Cheers, Chris -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-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] Auto-Discovery
Hi folks, I was wondering if anyone had some pointers on Auto-discovery? Both hardware / services preferably. I've found something which looks promising, NACE (http://freshmeat.net/projects/nace/), but I'd like to hear other people's opinions on it and their experiences with it. Cheers, Chris -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-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] Storing Historical Data into Oracle?
2009/3/20 Marc Powell m...@ena.com: On Mar 20, 2009, at 8:48 AM, Christopher McAtackney wrote: to start? I'm envisioning some sort of script or service which INSERTs into the Oracle database after each service/host check is performed. Does Nagios support this sort of functionality? Yes, nagios can run a custom script after every host/service check using the ochp and ocsp options -- http://nagios.sourceforge.net/docs/3_0/configmain.html#obsess_over_hosts http://nagios.sourceforge.net/docs/3_0/configmain.html#obsess_over_services It's most often used for Distributed Monitoring but can be used for anything. It's been very reliable in my experience. -- Marc Hi Marc, I've tried doing as you suggested, but my post check command does not seem to be being executed for some reason. Do you have any idea what I might have done wrong? Here is the setup I've used; In nagios.cfg obsess_over_hosts=1 ochp_command=host_check And then in commands.cfg; define command { command_namehost_check command_line/usr/local/nagios/host_check.pl $HOSTADDRESS$ $HOSTEVENTID$ } Finally, my simple Perl script to test the output; #!/usr/bin/perl open MYFILE, data.txt; print MYFILE Logging for server $ARGV[0], Event ID: $ARGV[1] \n; close (MYFILE); Unfortunately, the script is not being called for some reason. I know the script itself is working fine, as I've tested it independently. I've made sure that Nagios is restarted, and the pre-flight check doesn't report any problems. Any thoughts on what the problem might be? Cheers, Chris -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-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] Storing Historical Data into Oracle?
2009/3/23 Christopher McAtackney crist...@gmail.com: 2009/3/20 Marc Powell m...@ena.com: On Mar 20, 2009, at 8:48 AM, Christopher McAtackney wrote: to start? I'm envisioning some sort of script or service which INSERTs into the Oracle database after each service/host check is performed. Does Nagios support this sort of functionality? Yes, nagios can run a custom script after every host/service check using the ochp and ocsp options -- http://nagios.sourceforge.net/docs/3_0/configmain.html#obsess_over_hosts http://nagios.sourceforge.net/docs/3_0/configmain.html#obsess_over_services It's most often used for Distributed Monitoring but can be used for anything. It's been very reliable in my experience. -- Marc Hi Marc, I've tried doing as you suggested, but my post check command does not seem to be being executed for some reason. Do you have any idea what I might have done wrong? Here is the setup I've used; In nagios.cfg obsess_over_hosts=1 ochp_command=host_check And then in commands.cfg; define command { command_name host_check command_line /usr/local/nagios/host_check.pl $HOSTADDRESS$ $HOSTEVENTID$ } Finally, my simple Perl script to test the output; #!/usr/bin/perl open MYFILE, data.txt; print MYFILE Logging for server $ARGV[0], Event ID: $ARGV[1] \n; close (MYFILE); Unfortunately, the script is not being called for some reason. I know the script itself is working fine, as I've tested it independently. I've made sure that Nagios is restarted, and the pre-flight check doesn't report any problems. Any thoughts on what the problem might be? Cheers, Chris Further to the above email, I've also made the nagios user owner of the host_check.pl file, but still no luck in getting it to execute. -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-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] Storing Historical Data into Oracle?
2009/3/23 Christopher McAtackney crist...@gmail.com: 2009/3/23 Christopher McAtackney crist...@gmail.com: 2009/3/20 Marc Powell m...@ena.com: On Mar 20, 2009, at 8:48 AM, Christopher McAtackney wrote: to start? I'm envisioning some sort of script or service which INSERTs into the Oracle database after each service/host check is performed. Does Nagios support this sort of functionality? Yes, nagios can run a custom script after every host/service check using the ochp and ocsp options -- http://nagios.sourceforge.net/docs/3_0/configmain.html#obsess_over_hosts http://nagios.sourceforge.net/docs/3_0/configmain.html#obsess_over_services It's most often used for Distributed Monitoring but can be used for anything. It's been very reliable in my experience. -- Marc Hi Marc, I've tried doing as you suggested, but my post check command does not seem to be being executed for some reason. Do you have any idea what I might have done wrong? Here is the setup I've used; In nagios.cfg obsess_over_hosts=1 ochp_command=host_check And then in commands.cfg; define command { command_name host_check command_line /usr/local/nagios/host_check.pl $HOSTADDRESS$ $HOSTEVENTID$ } Finally, my simple Perl script to test the output; #!/usr/bin/perl open MYFILE, data.txt; print MYFILE Logging for server $ARGV[0], Event ID: $ARGV[1] \n; close (MYFILE); Unfortunately, the script is not being called for some reason. I know the script itself is working fine, as I've tested it independently. I've made sure that Nagios is restarted, and the pre-flight check doesn't report any problems. Any thoughts on what the problem might be? Cheers, Chris Further to the above email, I've also made the nagios user owner of the host_check.pl file, but still no luck in getting it to execute. Sorry for the monologue here, but I was messing around with it a bit more and moved the script file into nagios/libexec to see if that made any difference. It didn't, but in the interim period between moving the files, updating the configs and restarting Nagios, I noticed that the following was logged to nagios/var/nagios.log; [1237804472] Warning: Attempting to execute the command /usr/local/nagios/host_check.pl 127.0.0.1 53 resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists... So it appears that Nagios is picking up the command OK, and is at least *attempting* to execute it, but for some reason, nothing is happening. Is there some permissions issue here that I'm unaware of? Thanks again, Chris -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-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] Storing Historical Data into Oracle?
2009/3/23 Andreas Ericsson a...@op5.se: Unless you're an op5 customer and thereby paying for my services, I *really* don't want off-list emails regarding Nagios problems. Thanks for respecting that in the future. Answers are below. Sorry, my mistake, I didn't realise I had replied to you directly. Christopher McAtackney wrote: 2009/3/23 Andreas Ericsson a...@op5.se: Christopher McAtackney wrote: [1237804472] Warning: Attempting to execute the command /usr/local/nagios/host_check.pl 127.0.0.1 53 resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists... So it appears that Nagios is picking up the command OK, and is at least *attempting* to execute it, but for some reason, nothing is happening. Is there some permissions issue here that I'm unaware of? Is host_check.pl executable? If not, try adding /usr/bin/perl or do chmod 755 /usr/local/nagios/host_check.pl Hi Andreas, Frank, I updated commands.cfg to point to the perl binary and granted 755 permission on the scripts as you have suggested; define command { command_name host_check command_line /usr/bin/perl $USER1$/host_check.pl $HOSTADDRESS$ $HOSTEVENTID$ } I performed the pre-flight check and everything was fine, restarted and no problems in the log, but.. still no execution of the plug-ins. I'm a bit stumped here as to what else might be causing this problem... How do you verify that the program isn't getting executed? Does it log something to a file with modes 666 every time it's run, or do you just assume this because it doesn't insert the data into the database? The program writes out to the text file every time it is run (it's not connecting to a database yet, this is just proof-of-concept work). If I execute the program from the command line, it writes to this text file as expected. However, nothing is being written to the file after service / host checks, and therefore I can only guess that it is not being executed by Nagios. -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-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] Nagios with Trouble Ticket system or Managment System integration
2009/3/23 Florence Luk lukk...@netvigator.com: Dear all, I am new to Nagios and now my company want to try let Nagios to integrate with our new Service Desk system (Management System). For this project our aim is to inject Nagios's alert message to Service Desk system and it can create a 'Trouble Ticket' automatically. So I want to find out basic requirement of Nagios at Nagios side and it how to provide interface (E.g. Application programming interface (API)) for the Trouble Ticket system. I look forward to hear from you soon. Many Thanks. KoKo Florence, Check out Nagiosity ( http://code.google.com/p/nagiosity/ ). It's a Python script which converts the current Nagios status data into XML. It's pretty simple to modify to suit your own particular requirements, and so you just need to write your own program to grab the XML and make the relevant calls to your Service Desk system. Cheers, Chris -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-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] Storing Historical Data into Oracle?
Hi all, I'm new to Nagios and was wondering about possible strategies for storing service / host check results in an Oracle database. I'm aware of an Oracle extension to NDOUtils (https://www.nagiosforge.org/gf/project/ndoutils_oracle/) but I believe that it is in a pre-alpha state, which makes it unsuitable for my particular scenario (which will be the production-level monitoring of about 200 business-critical hosts with 10+ services on each). I would be happy to be corrected on this point, but as I said, I'm very new to Nagios and so I'm making some guesses here. Anyway, let's say I decide to go the route of catching the service check results into my database manually, where would be the best place to start? I'm envisioning some sort of script or service which INSERTs into the Oracle database after each service/host check is performed. Does Nagios support this sort of functionality? Thanks very much folks, I appreciate any help you can offer, Chris -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-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] Storing Historical Data into Oracle?
Thanks Marc, I'll take a look into those options and see if I can make use of them for logging to Oracle. Cheers, Chris 2009/3/20 Marc Powell m...@ena.com: On Mar 20, 2009, at 8:48 AM, Christopher McAtackney wrote: to start? I'm envisioning some sort of script or service which INSERTs into the Oracle database after each service/host check is performed. Does Nagios support this sort of functionality? Yes, nagios can run a custom script after every host/service check using the ochp and ocsp options -- http://nagios.sourceforge.net/docs/3_0/configmain.html#obsess_over_hosts http://nagios.sourceforge.net/docs/3_0/configmain.html#obsess_over_services It's most often used for Distributed Monitoring but can be used for anything. It's been very reliable in my experience. -- Marc -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-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 -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-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