[Nagios-users] Set up user for monitoring purpose
Hi All, I would like to set up a new user (say monitor) for the purpose of monitoring the nagios GUI interface alerts. He should be having less privileges than a user nagiosadmin. Is that possible? I just want to give him a basic privileges like acknowledge host and services. can you tell me is there anyway to accomplish such task? Thanks -- Shankar -- 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] Nagios-SNMP snmptt
Hi All, I am able to execute external command and make an entry in nagios.cmd file as [Mon Mar 23 14:43:26 IST 2009] PROCESS_SERVICE_CHECK_RESULT;mfin-sol02;TRAP;2;10.10.7.37 Disk_Space_in_VAR 3 NRPE: [Mon Mar 23 14:44:52 IST 2009] PROCESS_SERVICE_CHECK_RESULT;mfin-sol02;TRAP;2;10.10.7.37 MSM_Log_Cleaner 2 Log [Mon Mar 23 14:44:52 IST 2009] PROCESS_SERVICE_CHECK_RESULT;mfin-sol02;TRAP;2;10.10.7.37 MSM_Weblogic_Server 2 Weblogic But I am not able to display it to the UI. My configurations define service{ name generic-service2 register 0 check_period 24x7 max_check_attempts 3 normal_check_interval15 retry_check_interval 5 active_checks_enabled1 passive_checks_enabled 0 parallelize_check1 obsess_over_service 0 check_freshness 0 event_handler_enabled0 flap_detection_enabled 0 process_perf_data1 retain_status_information1 retain_nonstatus_information 1 notification_interval60 notification_period 24x7 notification_options w,u,c,r notifications_enabled1 } define service{ namesnmptrap-service use generic-service2 register0 service_description TRAP is_volatile 1 check_command check-host-alive max_check_attempts 1 normal_check_interval 1 retry_check_interval1 passive_checks_enabled 1 check_periodnone notification_interval 31536000 } define service{ host_name mfin-sol02 use snmptrap-service } mfin-sol02[10.10.7.37] is the host machine UI it says Service is not scheduled to be checked... Command.cfg define command{ command_namecheck-host-alive command_line$USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 5 } Any help will be appreciated Thankyou Joseph Joseph Ribin Roy Solutions Engineer Mformation Technologies Inc. Direct Line: +91 80 66205 934 Switchboard: +91 80 6620 5900 Visit WWW.MFORMATION.COM and see how the MFORMATION SERVICE MANAGER can help you to transform your business Please consider the environment before printingimage/COM-- 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
[Nagios-users] Using $SERVICESTATEID$ and $LASTSERVICESTATEID$ macros in notes URL
Hi all This may be a dummy question. I would like to use the $SERVICESTATEID$ and $LASTSERVICESTATEID$ macros to define a note URL for some services, but for some reasons, these macros are not processed by Nagios. For example, I defined a notes URL as : /nagios/notes/?host=$HOSTNAME$service=$SERVICEDESC$state=$SERVICESTATEID$ This gave me the following note URL : http://my_serveur/nagios/notes/?host=my_hostservice=my_servicestate=$SERVICESTATEID$ instead of the waited one : http://my_serveur/nagios/notes/?host=my_hostservice=my_servicestate=0 I checked on the macros chart given in the documentation but the $SERVICEDESC$ macro and the $SERVICESTATEID$ and $LASTSERVICESTATEID$ ones have the same ranges of use. Is it possible to use those macros in notes URL (and in that case where am I doing wrong ?) or should I use an other way to generate my note pages dynamically depending on the service's state ? Marc-André -- 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] Opsview
I've never installed Nagios before. I was asked to take over an existing installation. I'm going to install the latest version of Nagios on a clean CentOS build. We've never used Opsview before, but I looked into it and like the idea of using Opsview to configure all of the hosts, hostgroups, contacts, contactgroups, etc via a web browser.There isn't very detailed installation instructions on the Opsview website. Is it very difficult to install Opsview and integrate it into Nagios? Layne Meier Atlanta Journal-Constitution A Cox Newspaper -- 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] job announcement - Senior Technical Operations Leader
Allan Clark wrote: On Fri, Mar 20, 2009 at 15:41, Michael Osofsky mosof...@netbase.com wrote: Senior Technical Operations Leader Location: Mountain View, CA NetBase, a well-funded, fast growing company with an impressive roster of top-tier Fortune 500 companies, seeks to grow its team with a hands-on senior technical operations leader. ... How do I unsubscribe from nagios-jobs list? It doesn't seem to be split from nagios-users. Send unsubscribe nagios-jobs to Michael Osofsky mosof...@netbase.com once every 30 seconds for a year. I'll send you my script if you want ;-) -- 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. -- 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] Service latency suddenly through the roof
Hi, I'm running nagios 2.0b4, on suse 9.3. The plan is to upgrade to 3.0.6 (nagios) and SLES10 sp1. Recently, during some checking of the data that I collect for SLA reporting, I noticed the service latency has gone through the roof! The only recent change I've made is to put ssh checks as a host check. This was to filter ssh checks away from the service problem web interface as we do have to shut nodes down from time to time but we don't want to be alerted as a service problem. I then had to introduce check_dummy as the service check (otherwise the pre-flight check outputs hundred of lines stating the no services was associated with host). The check_dummy service check is only done on a Sunday once per host as it's a dummy check. I thought this would put less load on Nagios (please correct me if I'm wrong) We regard service problems to only be checks against our databases. Does anyone know of what could set this servicelatency to suddenly increase like this ? regards, deborah *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. Kognitio Limited, a company registered in England and Wales. Registered number 0212 7833. Registered Office: 3a Waterside Park, Cookham Road, Bracknell, Berks, RG12 1RB. VAT number 864 4378 92. Kognitio Inc, a company incorporated in Delaware, principal office 180 North Stetson, Suite 3500, Chicago, IL 60601, USA ***-- 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] .htpasswd login
On 23/03/09 12:55, Chris wrote: On Fri, Mar 20, 2009 at 5:08 PM, Klaus Umbach treibh...@sozial-inkompetent.de wrote: On 20/03/09 16:28, Chris wrote: Thanks. I have addedd AuthUserFile /etc/nagios/.htaccess to my /etc/apache2/conf.d/nagios.conf ScriptAlias /nagios/cgi-bin /usr/lib/nagios/cgi Directory /usr/lib/nagios/cgi Options ExecCGI AllowOverride None Order allow,deny Allow from all AuthName Nagios AuthType Basic AuthUserFile /etc/nagios/htpasswd.users AuthUserFile /etc/nagios/.htaccess ^ This can never work .htaccess is NOT a Userauthfile. Just do it as I wrote it in my example. Require valid-user /Directory Alias /nagios /usr/share/nagios Directory /usr/share/nagios Options None AllowOverride None Order allow,deny Allow from all AuthName Nagios AuthType Basic AuthUserFile /etc/nagios/htpasswd.users AuthUserFile /etc/nagios/.htaccess Require valid-user /Directory My /etc/nagios/.htaccess files look like this AuthName AD AuthType Basic AuthLDAPURL ldap://ad:389/ou=tree,dc=company,dc=com?sAMAccountName?sub AuthBasicProvider ldap AuthzLDAPAuthoritative off require valid-user I restarted apache2 and nagios, but now I can't login - neither as nagiosadmin nor as AD user. -- BOFH excuse #225: It's those computer people in X {city of world}. They keep stuffing things up. -- 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?
Hi Christopher, You must indicate the path of the command perl : /usr/bin/perl /usr/local/nagios/host_check.pl $HOSTADDRESS$ $HOSTEVENTID$ if you don't have enable EPn. Sincerly Frank [ENVOYE PAR INTERNET] Christopher McAtackney crist...@gmail.com 23/03/2009 10:57 A Nagios Users Nagios-users@lists.sourceforge.net cc Objet 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 -- 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?
On Mar 23, 2009, at 6:57 AM, frank.bourd...@dga.defense.gouv.fr wrote: Hi Christopher, You must indicate the path of the command perl : /usr/bin/perl /usr/ local/nagios/host_check.pl $HOSTADDRESS$ $HOSTEVENTID$ if you don't have enable EPn. This is incorrect. The shell will invoke the interpreter specified by the magic shebang in perl scripts just the same as any other script. -- 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
Re: [Nagios-users] Service latency suddenly through the roof
Deborah Martin wrote: Hi, I'm running nagios 2.0b4, on suse 9.3. The plan is to upgrade to 3.0.6 (nagios) and SLES10 sp1. Recently, during some checking of the data that I collect for SLA reporting, I noticed the service latency has gone through the roof! The only recent change I've made is to put ssh checks as a host check. This was to filter ssh checks away from the service problem web interface as we do have to shut nodes down from time to time but we don't want to be alerted as a service problem. Did you also enable scheduled host checks? In 2.x, nagios stops everything as soon as it runs a host check, so latency will naturally go through the roof. I then had to introduce check_dummy as the service check (otherwise the pre-flight check outputs hundred of lines stating the no services was associated with host). The check_dummy service check is only done on a Sunday once per host as it's a dummy check. I thought this would put less load on Nagios (please correct me if I'm wrong) We regard service problems to only be checks against our databases. Does anyone know of what could set this servicelatency to suddenly increase like this ? Since you're running a beta release that's more than 2 years old, I'm not even remotely interested to guess or investigate this matter. At least upgrade to latest 2.x stable (2.12, I think?). If the problem still persists, then it's worth investigating. -- 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. -- 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?
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. 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_namehost_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? -- 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. -- 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] Service latency suddenly through the roof
Andreas, Thanks for your reply. I completely agree with the suggestion of upgrading. I'm currently migrating configs across to Nagios 3.0.6 with the hope of switching to this box in about a week. I was hoping to keep the configs on the nagios 2.0b4 box fairly consistent with the new box so we can run them in parallel for about a month before trashing it. Should I expect latency to be a lot lower with the new version of Nagios ? I'm currently looking at the logs produced so far for the new version to see what the latency levels are like. regards, deborah -Original Message- From: Andreas Ericsson [mailto:a...@op5.se] Sent: 23 March 2009 14:02 To: Deborah Martin Cc: 'nagios-users@lists.sourceforge.net' Subject: Re: [Nagios-users] Service latency suddenly through the roof Deborah Martin wrote: Hi, I'm running nagios 2.0b4, on suse 9.3. The plan is to upgrade to 3.0.6 (nagios) and SLES10 sp1. Recently, during some checking of the data that I collect for SLA reporting, I noticed the service latency has gone through the roof! The only recent change I've made is to put ssh checks as a host check. This was to filter ssh checks away from the service problem web interface as we do have to shut nodes down from time to time but we don't want to be alerted as a service problem. Did you also enable scheduled host checks? In 2.x, nagios stops everything as soon as it runs a host check, so latency will naturally go through the roof. I then had to introduce check_dummy as the service check (otherwise the pre-flight check outputs hundred of lines stating the no services was associated with host). The check_dummy service check is only done on a Sunday once per host as it's a dummy check. I thought this would put less load on Nagios (please correct me if I'm wrong) We regard service problems to only be checks against our databases. Does anyone know of what could set this servicelatency to suddenly increase like this ? Since you're running a beta release that's more than 2 years old, I'm not even remotely interested to guess or investigate this matter. At least upgrade to latest 2.x stable (2.12, I think?). If the problem still persists, then it's worth investigating. -- 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. *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. Kognitio Limited, a company registered in England and Wales. Registered number 0212 7833. Registered Office: 3a Waterside Park, Cookham Road, Bracknell, Berks, RG12 1RB. VAT number 864 4378 92. Kognitio Inc, a company incorporated in Delaware, principal office 180 North Stetson, Suite 3500, Chicago, IL 60601, USA ***-- 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
[Nagios-users] host downtime problem
Hey Folks, I was asked to put the entire hostgroup for the downtime which i did . But inspite of that i got alerts to my mail from few server from that hostgroup. I selected both schedule downtime for all host in this hostgroup schedule downtime for all services in this hostgroup Can anyone please shed some light on this issue, and why is this happening. Thanks -- Anirudh Srinivasan -- 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?
Christopher McAtackney wrote: 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_namehost_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. When you test it manually, do you test as the same user as Nagios runs as? If not, are you removing the file the script should write to before you try letting Nagios run it? Does Nagios have write access to the directory where the file resides? It's quite common that people try things like this as root, and then the file is not writable by nagios, but the script has no sensible way of letting the user know that, so they think Nagios isn't running the script at all. I'm 99% sure it's something like that in this case too, or this list would be cluttered with questions why ocsp/ochp commands don't work. -- 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. -- 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?
On Mar 23, 2009, at 9:12 AM, Christopher McAtackney wrote: 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). In your script, you should specify the full path to that text file (I recommend something in /tmp). The shell used when executing plugins has most of the environment stripped from it. 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. Based on your previous report of the return code 127, nagios _is_ trying to execute it. 127 means that the plugin was not found where you told nagios it was, or possibly that it wasn't executable by the nagios user as Andreas pointed out. Are you still seeing that error? If not, is there anything being logged? You could enable debug mode and likely gain a lot more insight... -- 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
[Nagios-users] Hosts are Critical
I am running CentOS 5 and I installed nagios thru yum using the RPMForge repository. When I log into the web interface, it shows my server as down/critical under hosts. Obviously since I'm accessing the host remotely via HTTP it isn't down. Any thoughts on how to fix this? Also, this was a clean install of the OS that I installed Apache, MySQL, PHP, and Nagios onto (including dependencies). Any help would be great. Thanks, Andy Carlson IT Manager City of Princeton www.princeton-il.com Office (815) 875-2631 ext. 253 Cell (815) 719-0023 41° 22' 30 N 89° 27' 55 W --- The ubiquity of the Internet is more important than the technology of the Internet -- Jeff Bezos -- 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] Hosts are Critical
On Mar 23, 2009, at 10:15 AM, acarl...@princeton-il.com wrote: I am running CentOS 5 and I installed nagios thru yum using the RPMForge repository. When I log into the web interface, it shows my server as down/critical under hosts. I can't speak to the specifics of what RPMForge does for defaults but generally, your host's check_command doesn't work or doesn't accurately reflect the status of the host. What is the Status Information? What is the host{} definition? What is the command{} definition it references as it's check_command? Obviously since I'm accessing the host remotely via HTTP it isn't down. Any thoughts on how to fix this? Also, this was a clean install of the OS that I installed Apache, MySQL, PHP, and Nagios onto (including dependencies). An somewhat arbitrary guess is that the host check_command tries to ping localhost and that doesn't work. Can you ping localhost as the nagios user? If not, you may need to SUID /bin/ping so that it can be run by non-root users. -- 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
[Nagios-users] Service Template Inheritance
I am working on setting up Nagios for the first time and am trying to search different forums to find my answers, but it appears forums.meulie.net has been down for several days (or I can't seem to get there from my network) and SF is giving me Search Server timeout errors when I try and search this forum. This is a long way of apologizing up front if this question is therefore redundant to topics already covered at length in the past. I am struggling with getting service template inheritance to work properly as it relates to placing the check_command in an inherited template I did see a brief post about this from around 2003, but I wasn't able to fully follow the chain. Having read the documentation and doing some pondering, I am looking to break my service monitoring into two notification trees: Production and Development. That way, I am not bothered by development services alerting off hours and only get production notifications off hours. (If there is a better way to set this up, I'm open to suggestions.) Additionally, when I am working with one platform, I can define the one command centrally and not have to worry about changing it in several places if I choose to go a different route. Therefore, I am setting up my services as follows: define service { name global_service # All the settings found in the global-service example in the quickstart setup register 0 } define service { name windows_service use global_service servicegroups windows_services # This will group all windows services together register 0 } # Define the central definition of Client Version define service { name w_client_version # Windows Service, get Client Version of NSClient++ use windows_service service_description NSClient Version check_command check_nt!CLIENTVERSION register 0 # Don't register this yet as it will be referenced later! } # No inheritance here, begin the production shell of notification periods to override any global settings define service { nameproduction_service notification_period 24x7# Set 24x7 notification and other intervals/options . register 0 } ## Now for putting the command and the service level together such that it is production and will notify based on the production_service entry when the w_client_version command is executed: define service { name production_client_version use production_service,w_client_version # Merge the Production definition with the service command } I keep getting an error when validating the configuration (nagios -v nagios.cfg) that the w_client_version is a duplicate within the config files and I have searched for it only finding it in one location. Can the check_command only be defined at the lowest level? Is this a valid configuration or are there better examples of separating development alerts from production alerts? (I'm using Nagios v 3.0.6) Thanks, Ken -- 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] Nagios with Trouble Ticket system or Managment System integration
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 = END =-- 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] Code of 139 when checking mapped unit
Hello everybody, I am pretty novice at Nagios, so I hope that my question were easy to answer, or at least, I could get a hint... The thing is that I want to monitor a mapped unit on a Windows host, just to check the available disk space (i.e., drive U:, that might be myuser at server\users). What I have done is the following: At windows.cfg: (...) define host { use windows-server host_name myhost alias My Windows host address xxx.xxx.xxx.xxx } (...) define service { use generic-service host_name myhost service_description Check C: disk space check_command check_nt!USEDDISKSPACE!-l c -w 80 -c 90 } define service { use generic-service host_name myhost service_description Check mapped unit U: disk space check_command check_nt!USEDDISKSPACE!-l u -w 80 -c 90 } (I had previously installed NSClient++ at the host...). The thing is that I get a correct answer from C:, but U: gives me the error Return code of 139 is out of bounds. So obviously I guess that it's not that what I should have done. I checked the log file at the Windows host and it only says -repeatedly: NSCA Configuration missmatch. I don't think it has anything to see with my problem though... Any hint? Thanks in advance. Alejandro == Alejandro Sanchez - alejandro.sanc...@ite.es IT Department Institute of Electrical Technology - www.ite.es Valencia - Spain -- 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] pnp4nagios or nagiosgraph?
Hi, i recommend pnp. Integration in Nagios is very simple and you get the graphs immediately. Nevertheless you can design the look of the graphs individually with the template mechanism. Gerhard -Ursprüngliche Nachricht- Von: Sergio Ariel [mailto:sergio.ar...@iris.uh.cu] Gesendet: Freitag, 20. März 2009 21:53 An: nagios-users Betreff: [Nagios-users] pnp4nagios or nagiosgraph? I wanna to graph plugin output. What do I should install? -- Sergio Ariel de la Campa Saiz Administrador Red UH -- 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
[Nagios-users] extra garbled characters at end of plugin result output
Dear All, I seem to get extra garbled characters at the end of the data returned by the various plugins running on Solaris clients. Unfortunately, it's messing up my graphing (pnp4nagios) output. My NAGIOS server is on a RedHat 5.3 system while most of my clients are Solaris 9/10. I may have come across some reference in the past that stated it has to do with the SSL libraries differences on the various platforms. Any ideas on how to fix this? Can I run the returned data through some filter that can get rid of the garbled characters for example? The linux clients are fine. Thanks. /usr/local/nagios/libexec/check_nrpe -H aserver1 -c check_dsk_root DISK OK - free space: / 20823 MB (51% inode=97%);| /=19445MB;30507;36608;0;40676 Added command[check_oracle]=/usr/local/nagiosÿexec/check_oracle --µIÛöÿÿ? /usr/local/nagios/libexec/check_nrpe -H aserver1 -c check_dsk_swap SWAP OK - 100% free (16004 MB out of 16004 MB) |swap=16004MB;4001;1600;0;16004 Added command[check_oracle]=/usr/local/nagiosÿexec/check_oracle --µIÛöÿÿ? /usr/local/nagios/libexec/check_nrpe -H aserver1 -c check_cpu OK - CPU Utilisations is OK 95% idle Added command[check_oracle]=/usr/local/nagiosÿexec/check_oracle --µIÛöÿÿ? /usr/local/nagios/libexec/check_nrpe -H alinuxserver -c check_cpu CPU OK - CPU usage in 6%|cpu=6%;80;85;0;100 /usr/local/nagios/libexec/check_nrpe -H asolarisbox -c check_cpu CRITICAL - CPU Utilisation is HIGH 1% idle /usr/local/nagiosµIÛöÿ4Àÿ3ØÿçÄ /usr/local/nagios/libexec/check_nrpe -H alinuxclient -c check_dsk_root DISK OK - free space: / 7195 MB (93% inode=96%);| /=462MB;6050;7260;0;8067 This mail is from a Gimper -- 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] extra garbled characters at end of plugin result output
What version of nrpe are you using on the solaris clients? On Mon, Mar 23, 2009 at 4:23 PM, Ayotunde Itayemi ayotunde.itay...@zain.com wrote: Dear All, I seem to get extra garbled characters at the end of the data returned by the various plugins running on Solaris clients. Unfortunately, it's messing up my graphing (pnp4nagios) output. My NAGIOS server is on a RedHat 5.3 system while most of my clients are Solaris 9/10. I may have come across some reference in the past that stated it has to do with the SSL libraries differences on the various platforms. Any ideas on how to fix this? Can I run the returned data through some filter that can get rid of the garbled characters for example? The linux clients are fine. Thanks. /usr/local/nagios/libexec/check_nrpe -H aserver1 -c check_dsk_root DISK OK - free space: / 20823 MB (51% inode=97%);| /=19445MB;30507;36608;0;40676 Added command[check_oracle]=/usr/local/nagiosÿexec/check_oracle --µIÛöÿÿ? /usr/local/nagios/libexec/check_nrpe -H aserver1 -c check_dsk_swap SWAP OK - 100% free (16004 MB out of 16004 MB) |swap=16004MB;4001;1600;0;16004 Added command[check_oracle]=/usr/local/nagiosÿexec/check_oracle --µIÛöÿÿ? /usr/local/nagios/libexec/check_nrpe -H aserver1 -c check_cpu OK - CPU Utilisations is OK 95% idle Added command[check_oracle]=/usr/local/nagiosÿexec/check_oracle --µIÛöÿÿ? /usr/local/nagios/libexec/check_nrpe -H alinuxserver -c check_cpu CPU OK - CPU usage in 6%|cpu=6%;80;85;0;100 /usr/local/nagios/libexec/check_nrpe -H asolarisbox -c check_cpu CRITICAL - CPU Utilisation is HIGH 1% idle /usr/local/nagiosµIÛöÿ4Àÿ3ØÿçÄ /usr/local/nagios/libexec/check_nrpe -H alinuxclient -c check_dsk_root DISK OK - free space: / 7195 MB (93% inode=96%);| /=462MB;6050;7260;0;8067 This mail is from a Gimper -- 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 -- Alex Dehaini Developer Site - www.alexdehaini.com Email - alexdeha...@gmail.com -- 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] Service Template Inheritance
Think I've gotten to the root of my rookie issue. Using # instead of ; inside a definition for commenting. In addition to realizing the cfg_dir definition in the nagios.cfg is recursive and I didn't need to define each directory under the base directory it was pointing to. Still interested in anyone's thoughts on breaking up services into Production/Development and avoiding defining the commands in multiple places. Is my approach similar to others out there or has someone tried this approach and found there are limitations and moved to something different? Thanks! Ken On Mon, Mar 23, 2009 at 11:59 AM, Ken Netzorg knetz...@gmail.com wrote: I am working on setting up Nagios for the first time and am trying to search different forums to find my answers, but it appears forums.meulie.net has been down for several days (or I can't seem to get there from my network) and SF is giving me Search Server timeout errors when I try and search this forum. This is a long way of apologizing up front if this question is therefore redundant to topics already covered at length in the past. I am struggling with getting service template inheritance to work properly as it relates to placing the check_command in an inherited template I did see a brief post about this from around 2003, but I wasn't able to fully follow the chain. Having read the documentation and doing some pondering, I am looking to break my service monitoring into two notification trees: Production and Development. That way, I am not bothered by development services alerting off hours and only get production notifications off hours. (If there is a better way to set this up, I'm open to suggestions.) Additionally, when I am working with one platform, I can define the one command centrally and not have to worry about changing it in several places if I choose to go a different route. Therefore, I am setting up my services as follows: define service { name global_service # All the settings found in the global-service example in the quickstart setup register 0 } define service { name windows_service use global_service servicegroups windows_services # This will group all windows services together register 0 } # Define the central definition of Client Version define service { name w_client_version # Windows Service, get Client Version of NSClient++ use windows_service service_description NSClient Version check_command check_nt!CLIENTVERSION register 0 # Don't register this yet as it will be referenced later! } # No inheritance here, begin the production shell of notification periods to override any global settings define service { nameproduction_service notification_period 24x7# Set 24x7 notification and other intervals/options . register 0 } ## Now for putting the command and the service level together such that it is production and will notify based on the production_service entry when the w_client_version command is executed: define service { name production_client_version use production_service,w_client_version # Merge the Production definition with the service command } I keep getting an error when validating the configuration (nagios -v nagios.cfg) that the w_client_version is a duplicate within the config files and I have searched for it only finding it in one location. Can the check_command only be defined at the lowest level? Is this a valid configuration or are there better examples of separating development alerts from production alerts? (I'm using Nagios v 3.0.6) Thanks, Ken -- 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] Service Template Inheritance
Think I've gotten to the root of my rookie issue. Using # instead of ; inside a definition for commenting. In addition to realizing the cfg_dir definition in the nagios.cfg is recursive and I didn't need to define each directory under the base directory it was pointing to. Still interested in anyone's thoughts on breaking up services into Production/Development and avoiding defining the commands in multiple places. Is my approach similar to others out there or has someone tried this approach and found there are limitations and moved to something different? Thanks! Ken On Mon, Mar 23, 2009 at 11:59 AM, Ken Netzorg knetz...@gmail.com wrote: I am working on setting up Nagios for the first time and am trying to search different forums to find my answers, but it appears forums.meulie.net has been down for several days (or I can't seem to get there from my network) and SF is giving me Search Server timeout errors when I try and search this forum. This is a long way of apologizing up front if this question is therefore redundant to topics already covered at length in the past. I am struggling with getting service template inheritance to work properly as it relates to placing the check_command in an inherited template I did see a brief post about this from around 2003, but I wasn't able to fully follow the chain. Having read the documentation and doing some pondering, I am looking to break my service monitoring into two notification trees: Production and Development. That way, I am not bothered by development services alerting off hours and only get production notifications off hours. (If there is a better way to set this up, I'm open to suggestions.) Additionally, when I am working with one platform, I can define the one command centrally and not have to worry about changing it in several places if I choose to go a different route. Therefore, I am setting up my services as follows: define service { name global_service # All the settings found in the global-service example in the quickstart setup register 0 } define service { name windows_service use global_service servicegroups windows_services # This will group all windows services together register 0 } # Define the central definition of Client Version define service { name w_client_version # Windows Service, get Client Version of NSClient++ use windows_service service_description NSClient Version check_command check_nt!CLIENTVERSION register 0 # Don't register this yet as it will be referenced later! } # No inheritance here, begin the production shell of notification periods to override any global settings define service { nameproduction_service notification_period 24x7# Set 24x7 notification and other intervals/options . register 0 } ## Now for putting the command and the service level together such that it is production and will notify based on the production_service entry when the w_client_version command is executed: define service { name production_client_version use production_service,w_client_version # Merge the Production definition with the service command } I keep getting an error when validating the configuration (nagios -v nagios.cfg) that the w_client_version is a duplicate within the config files and I have searched for it only finding it in one location. Can the check_command only be defined at the lowest level? Is this a valid configuration or are there better examples of separating development alerts from production alerts? (I'm using Nagios v 3.0.6) Thanks, Ken -- 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] Example setups for a newbie
Hi! I'm relatively new to Nagios but for a number of reasons we want to migrate away from Hobbit. I've read the manual, read some of the book Nagios 3 Enterprise Network Monitoring, setup most of our hosts and some services but I cannot really get all the groups (service group, host group, contact group) and their relation to templates etc. So could you give me a short description of your setups (maybe some of them candidates for the manual)? What templates you have, what groups you have and so on. Just to give newbies some pointers to how to organise stuff. -- Fredrik Rambris fredrik.ramb...@it.cdon.com -- 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] Hosts are Critical
Marc, The status (of the host in Nagios) is down. The host definition is: define host{ use linux-server; Name of host template$ ; This host definition $ ; in (or inherited by) $ host_name localhost alias localhost address 127.0.0.1 } This is how it is out-of-the-box. How would I impliment a check_command? Thanks, Andy Quoting Marc Powell m...@ena.com: On Mar 23, 2009, at 10:15 AM, acarl...@princeton-il.com wrote: I am running CentOS 5 and I installed nagios thru yum using the RPMForge repository. When I log into the web interface, it shows my server as down/critical under hosts. I can't speak to the specifics of what RPMForge does for defaults but generally, your host's check_command doesn't work or doesn't accurately reflect the status of the host. What is the Status Information? What is the host{} definition? What is the command{} definition it references as it's check_command? Obviously since I'm accessing the host remotely via HTTP it isn't down. Any thoughts on how to fix this? Also, this was a clean install of the OS that I installed Apache, MySQL, PHP, and Nagios onto (including dependencies). An somewhat arbitrary guess is that the host check_command tries to ping localhost and that doesn't work. Can you ping localhost as the nagios user? If not, you may need to SUID /bin/ping so that it can be run by non-root users. -- 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 Andy Carlson IT Manager City of Princeton www.princeton-il.com Office (815) 875-2631 ext. 253 Cell (815) 719-0023 41° 22' 30 N 89° 27' 55 W --- The ubiquity of the Internet is more important than the technology of the Internet -- Jeff Bezos -- 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] Code of 139 when checking mapped unit
In regards to your NCSA Mismatch, are you intending to use NSClient++ through NCSA or only through the check_nt option? If you aren't using NCSA, you may need to double check your nsc.ini file to make sure it is commented out. There is a pretty good tutorial here http://trac.nakednuns.org/nscp/wiki/doc/usage/nagios for configuring NSClient for simple check_nt usage. As far as the other error goes, I'm not sure how NSClient handles mapped drives. I know there was a post a while back about someone accidently monitoring a CDROM drive that caused errors. You can also run the NSClient from the command line with /test argument and then run any command through there to see what the output is. That may help identify what is causing the 139 error. (here is the link on how to use the /test argument in NSClient http://trac.nakednuns.org/nscp/wiki/doc/Usage) Ken 2009/3/23 Alejandro Sánchez Meroño alejandro.sanc...@ite.es Hello everybody, I am pretty novice at Nagios, so I hope that my question were easy to answer, or at least, I could get a hint... The thing is that I want to monitor a mapped unit on a Windows host, just to check the available disk space (i.e., drive U:, that might be myuser at server\users). What I have done is the following: At windows.cfg: (...) define host { use windows-server host_name myhost alias My Windows host address xxx.xxx.xxx.xxx } (...) define service { use generic-service host_name myhost service_description Check C: disk space check_command check_nt!USEDDISKSPACE!-l c -w 80 -c 90 } define service { use generic-service host_name myhost service_description Check mapped unit U: disk space check_command check_nt!USEDDISKSPACE!-l u -w 80 -c 90 } (I had previously installed NSClient++ at the host...). The thing is that I get a correct answer from C:, but U: gives me the error Return code of 139 is out of bounds. So obviously I guess that it's not that what I should have done. I checked the log file at the Windows host and it only says -repeatedly: NSCA Configuration missmatch. I don't think it has anything to see with my problem though... Any hint? Thanks in advance. Alejandro == Alejandro Sanchez - alejandro.sanc...@ite.es IT Department Institute of Electrical Technology - www.ite.es Valencia - Spain -- 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
Re: [Nagios-users] Service Template Inheritance
Ken Netzorg wrote: Having read the documentation and doing some pondering, I am looking to break my service monitoring into two notification trees: Production and Development. That way, I am not bothered by development services alerting off hours and only get production notifications off hours. (If there is a better way to set this up, I'm open to suggestions.) Service checks can inherit their notification period from their associated host object. I set up my host templates for my dev and production servers with different notification periods, but I can use the same service templates for both since I haven't got a notification period defined in my service template.. The production server host template can notify 24x7, but the dev server host template is limitited to notifying during work hours. The check period is 24x7 for both types of hosts, so Nagios always knows what's going on, even if it isn't saying anything about it. Services can also inherit their contacts from their associated hosts, so my prod host template includes a pager contact group that my dev host template does not. name production_client_version use production_service,w_client_version # Merge the Production definition with the service command } I keep getting an error when validating the configuration (nagios -v nagios.cfg) that the w_client_version is a duplicate within the config files and I have searched for it only finding it in one location. I haven't tried referencing two templates in a definition before, so I can't tell you if that works or not. My instinct is to try it with just one template and see if the error goes away. Can the check_command only be defined at the lowest level? Is this a valid configuration or are there better examples of separating development alerts from production alerts? You can set the check_command in the service template and/or the service definition. Anything you set in the service definition that's already been set in the service template will override the template's settings. For example, I have an SSL-enabled site service template defined to use / as its URL (my standard_service template has other things defined): define service { use standard_service nameSSL Site check_command check_ssl_site!/ notes blah blah blah register0 } For a host where I want to check /, all I need is: define service { use SSL Site host_name foo } But for a host where I want to check a different URL, I use: define service { use SSL Site host_name different-foo check_command check_ssl_site!/foo/bar/bat.asp } The second one is still inheriting everything except the check_command from the SSL Site template. However, I think the answer to splitting up your dev and prod service types is just letting them inherit the notification period from the host. You'll have half the service templates to manage if you can do that. Look for implied inheritance on this page: http://nagios.sourceforge.net/docs/3_0/objectinheritance.html -- Chris Beattie 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. -- 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] Service Template Inheritance
Chris, Thanks for the detailed info. I had gone through the inheritance documentation you'd listed below, but I didn't put the facts together that I can mix my host template with my service template such that I can have a host's notification settings apply to a service. I had been trying to figure out how to merge the two since I want the service checks associated with my development hosts to take on the host notifications. I'll have to go back and re-evaluate this and see if I can get this working. If so, I agree, it will cut down on the number of templates and areas I have to define notifications. Ken On Mon, Mar 23, 2009 at 1:27 PM, Chris Beattie cbeat...@geninfo.com wrote: Ken Netzorg wrote: Having read the documentation and doing some pondering, I am looking to break my service monitoring into two notification trees: Production and Development. That way, I am not bothered by development services alerting off hours and only get production notifications off hours. (If there is a better way to set this up, I'm open to suggestions.) Service checks can inherit their notification period from their associated host object. I set up my host templates for my dev and production servers with different notification periods, but I can use the same service templates for both since I haven't got a notification period defined in my service template.. The production server host template can notify 24x7, but the dev server host template is limitited to notifying during work hours. The check period is 24x7 for both types of hosts, so Nagios always knows what's going on, even if it isn't saying anything about it. Services can also inherit their contacts from their associated hosts, so my prod host template includes a pager contact group that my dev host template does not. name production_client_version use production_service,w_client_version # Merge the Production definition with the service command } I keep getting an error when validating the configuration (nagios -v nagios.cfg) that the w_client_version is a duplicate within the config files and I have searched for it only finding it in one location. I haven't tried referencing two templates in a definition before, so I can't tell you if that works or not. My instinct is to try it with just one template and see if the error goes away. Can the check_command only be defined at the lowest level? Is this a valid configuration or are there better examples of separating development alerts from production alerts? You can set the check_command in the service template and/or the service definition. Anything you set in the service definition that's already been set in the service template will override the template's settings. For example, I have an SSL-enabled site service template defined to use / as its URL (my standard_service template has other things defined): define service { use standard_service nameSSL Site check_command check_ssl_site!/ notes blah blah blah register0 } For a host where I want to check /, all I need is: define service { use SSL Site host_name foo } But for a host where I want to check a different URL, I use: define service { use SSL Site host_name different-foo check_command check_ssl_site!/foo/bar/bat.asp } The second one is still inheriting everything except the check_command from the SSL Site template. However, I think the answer to splitting up your dev and prod service types is just letting them inherit the notification period from the host. You'll have half the service templates to manage if you can do that. Look for implied inheritance on this page: http://nagios.sourceforge.net/docs/3_0/objectinheritance.html -- Chris Beattie 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. -- 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
Re: [Nagios-users] pnp4nagios or nagiosgraph?
Gerhard Lausser wrote: Hi, i recommend pnp. Integration in Nagios is very simple and you get the graphs immediately. Nevertheless you can design the look of the graphs individually with the template mechanism. Gerhard -Ursprüngliche Nachricht- Von: Sergio Ariel [mailto:sergio.ar...@iris.uh.cu] Gesendet: Freitag, 20. März 2009 21:53 An: nagios-users Betreff: [Nagios-users] pnp4nagios or nagiosgraph? I wanna to graph plugin output. What do I should install? -- Sergio Ariel de la Campa Saiz Administrador Red UH -- 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 Same here - recommend pnp for the reasons stated above. -- --Moby They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. -- Benjamin Franklin -- 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] pnp4nagios or nagiosgraph?
I haven't used nagiosgraph so I cannot talk to how it works, but PNP is also very flexible with how you integrate it and can be made to scale very nicely :); the developers are also open to user patches. - max -- 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] Hosts are Critical
2009/3/23 acarl...@princeton-il.com: Marc, it also is giving me the following error: Return code of 127 is out of bounds - plugin may be missing Sorry for not mentioning that before. Thanks, Andy yeah, that's probably the problem - nagios can't find / can't run the plugin. Make sure that the plugins are installed, nagios can run them, and nagios knows where they are. presumably you already installed the plugins through the RPMForge repository, so they should be executable by the nagios user. As for telling nagios where they are, you should have a commands file that defines commands. It'll use one the $USER$, most likely $USER1$. Edit resources.cfg and point $USER1$ (or whatever) to the correct location of your nagios plugins, which will be where you installed them. Probably in /usr/lib/nagios/libexec on centos if memory servers me right. .r' -- 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] pnp4nagios or nagiosgraph?
On Fri, 20 Mar 2009, Sergio Ariel wrote: I wanna to graph plugin output. What do I should install? I like to think I'm relatively competent with Nagios, but I fought with nagiosgraph for a while before I ran out of patience and gave up. Unfortunately it's been several months since I did this, so I can't remember why I hated it so much. It didn't help that there are multiple packages out there named 'nagiosgraph'. pnp4nagios, otoh, installed quickly, easily, and just works. I'm disappointed that Nagios doesn't have a graphing engine built in. It's silly to go to the trouble of setting up checks to build datapoints (e.g. ping RTT, memory, disk space) and then throw away data that could have great historic value. Of course, this is a whole 'nother can of worms and gets into the it's only build for one thing argument. Met vriendelijke groet/kind regards, bryan -- 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] Scheduling Queue
Hi Ricardo I believe that a better approach is to change your script to schedule a new service check through nagios pipe. What you think about that? Using pipe we can insert a new service check to our Nagios and this server can schedule service checks dinamically. thats a interesting option, i made a new script to be used as a plugin which can detect and optional fix service checks through the command interface. Works well on my system. You can get it here: http://it-operations.net/download/script/check_nssc Matthias -- 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] Download Nagios for CentOS 5.2 64 bits
Hi friends. From where can I find Nagios 3.0.6 tarball files for CentOS 5.2 64 bits ? Thank. -- 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. I can't say I've tried it myself (yet), but this book has a section describing the various options in Nagios 3 for integrating with a helpdesk system. http://www.waterstones.com/waterstonesweb/displayProductDetails.do?sku=6209247 hth, Jim -- Web Admin for Corsham Diary http://corshamdiary.org.uk -- 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] Example setups for a newbie
2009/3/23 Fredrik Rambris fredrik.ramb...@it.cdon.com: Hi! I'm relatively new to Nagios but for a number of reasons we want to migrate away from Hobbit. I've read the manual, read some of the book Nagios 3 Enterprise Network Monitoring, setup most of our hosts and some services but I cannot really get all the groups (service group, host group, contact group) and their relation to templates etc. So could you give me a short description of your setups (maybe some of them candidates for the manual)? What templates you have, what groups you have and so on. Just to give newbies some pointers to how to organise stuff. Nagios 3 Enterprise Network Monitoring contains some really useful information, but I wouldn't recommend it as an introduction. If your budget will run to buying another book, get Wolfgang Barth's Nagios 2nd edition. http://nostarch.com/nagios_2e.htm hth, Jim -- 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] Download Nagios for CentOS 5.2 64 bits
On Mar 23, 2009, at 2:47 PM, Cristiano Casado wrote: Hi friends. From where can I find Nagios 3.0.6 tarball files for CentOS 5.2 64 bits ? The usual place - http://www.nagios.org/download. -- 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
[Nagios-users] Nagios and email
Hello, I have a kind of custom nagios setup, so maybe this is a byproduct of that... I had to reboot my nagios server today, and it didn't come right back up. By the time it did, it realized that the service checks weren't fresh, and started sending out lots of notifications. I stopped sendmail to keep from flooding my inbox...so here's the question: I just want to clear out the outgoing email queue. mailq and sendmail -bp both show nothing queued up. When I restart sendmail, it starts sending again. Has nagios passed all the emails over to sendmail, and I just need to clear out sendmail's queue, or is nagios holding onto them while sendmail isn't running, and then once it sees sendmail running, it starts dumping email into the queue? Which is it, and how do I clear them from the queue? Thank you. --Peter -- 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 and email
You have checked your /var/spool/mqueue and /var/spool/clientmqueue right? I have had a few million emails queued up there before. Charlie On Mar 23, 2009, at 9:22 PM, Peter Doherty wrote: Hello, I have a kind of custom nagios setup, so maybe this is a byproduct of that... I had to reboot my nagios server today, and it didn't come right back up. By the time it did, it realized that the service checks weren't fresh, and started sending out lots of notifications. I stopped sendmail to keep from flooding my inbox...so here's the question: I just want to clear out the outgoing email queue. mailq and sendmail -bp both show nothing queued up. When I restart sendmail, it starts sending again. Has nagios passed all the emails over to sendmail, and I just need to clear out sendmail's queue, or is nagios holding onto them while sendmail isn't running, and then once it sees sendmail running, it starts dumping email into the queue? Which is it, and how do I clear them from the queue? Thank you. --Peter -- 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
Re: [Nagios-users] Nagios and email
On Mar 23, 2009, at 9:22 PM, Peter Doherty wrote: Has nagios passed all the emails over to sendmail, and I just need to clear out sendmail's queue, or is nagios holding onto them while sendmail isn't running, and then once it sees sendmail running, it starts dumping email into the queue? Nagios does not queue or hold notifications. Either these are new notifications or your MTA has them queued. -- 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
Re: [Nagios-users] Nagios and email
It's probably Nagios. Does the blizzard of emails stop when you stop the Nagios service? How about stopping the Nagios server, turning off all notifications in the configuration files, and then restarting it? Peter Doherty wrote: Hello, I have a kind of custom nagios setup, so maybe this is a byproduct of that... I had to reboot my nagios server today, and it didn't come right back up. By the time it did, it realized that the service checks weren't fresh, and started sending out lots of notifications. I stopped sendmail to keep from flooding my inbox...so here's the question: I just want to clear out the outgoing email queue. mailq and sendmail -bp both show nothing queued up. When I restart sendmail, it starts sending again. Has nagios passed all the emails over to sendmail, and I just need to clear out sendmail's queue, or is nagios holding onto them while sendmail isn't running, and then once it sees sendmail running, it starts dumping email into the queue? Which is it, and how do I clear them from the queue? Thank you. --Peter -- 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 -- 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. -- 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 and email
On Mar 23, 2009, at 10:52 PM, Charlie Reddington wrote: You have checked your /var/spool/mqueue and /var/spool/clientmqueue right? I have had a few million emails queued up there before. They were in /var/spool/clientmqueue. Thanks Charlie! -- 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