From abdul.khader at ctrls.in Mon Nov 1 07:56:10 2010 From: abdul.khader at ctrls.in (Abdul Khader) Date: Mon, 01 Nov 2010 12:26:10 +0530 Subject: New perl module: Nagios::Plugin::WWW::Mechanize In-Reply-To: <4CBC4698.8050103@op5.se> References: <4CBC3958.4070503@ctrls.in> <4CBC4698.8050103@op5.se> Message-ID: <4CCE648A.6010209@ctrls.in> Dear All, Does this help me ? http://udel.edu/~doke/nagios/check_sakai_login Regards Abdul Khader On 10/18/2010 6:37 PM, Andreas Ericsson wrote: > On 10/18/2010 02:11 PM, Abdul Khader wrote: >> Dear All, >> I see that this plug-in allows me to do synthetic transactions. >> I would like to know if it is possible to use it for java based >> application server like tomcat. > It's not. It has no JRE embedded in it, and coding a java engine > in perl would be almost as complex as it would be stupid. > >> My goal is to login to a page with a username and password, then go to >> the user's home page. If not successful, then send an email alert to the >> admin. >> > Look at java-based automation things instead, but be aware that > java-based checks are just plain horrible to run unless you can > get a java-daemon to accept queries from the command-line and > return the results to you. Java has a ridiculously high loadtime, > making it extremely unsuitable for writing command-line apps and > nagios plugins. > Email secured by Anti Spam at CtrlS ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From trm.nagios at gmail.com Mon Nov 1 09:32:39 2010 From: trm.nagios at gmail.com (trm asn) Date: Mon, 1 Nov 2010 14:02:39 +0530 Subject: Nagios Performance Issue In-Reply-To: References: Message-ID: On 30 October 2010 21:23, trm asn wrote: > Dear List , > > I am getting frequent Nagios screen issue. The checks are not updating > properly . Below is my nagios.cfg file with nagiostats. Please let me know > is there anywhere I can fine tune the Nagios. I am using a Xeon 2.0 GH X 2 , > 4 GB RAM , . > > > > log_file=/usr/local/nagios/var/nagios.log > cfg_file=/usr/local/nagios/etc/objects/commands.cfg > cfg_file=/usr/local/nagios/etc/objects/contacts.cfg > cfg_file=/usr/local/nagios/etc/objects/timeperiods.cfg > cfg_file=/usr/local/nagios/etc/objects/contactgroups.cfg > cfg_file=/usr/local/nagios/etc/objects/dependencies.cfg > cfg_file=/usr/local/nagios/etc/objects/escalations.cfg > cfg_file=/usr/local/nagios/etc/objects/hosts.cfg > cfg_file=/usr/local/nagios/etc/objects/hostgroups.cfg > cfg_file=/usr/local/nagios/etc/objects/services.cfg > cfg_file=/usr/local/nagios/etc/objects/servicegroups.cfg > object_cache_file=/usr/local/nagios/var/objects.cache > precached_object_file=/usr/local/nagios/var/objects.precache > resource_file=/usr/local/nagios/etc/resource.cfg > status_file=/usr/local/nagios/var/status.dat > aggregate_status_updates=0 > status_update_interval=10 > nagios_user=nagios > nagios_group=nagios > check_external_commands=1 > command_check_interval=-1 > command_file=/usr/local/nagios/var/rw/nagios.cmd > external_command_buffer_slots=4096 > lock_file=/usr/local/nagios/var/nagios.lock > temp_file=/usr/local/nagios/var/nagios.tmp > temp_path=/tmp > event_broker_options=-1 > log_rotation_method=d > log_archive_path=/usr/local/nagios/var/archives > use_syslog=1 > log_notifications=1 > log_service_retries=1 > log_host_retries=1 > log_event_handlers=1 > log_initial_states=1 > log_external_commands=1 > log_passive_checks=1 > service_inter_check_delay_method=s > max_service_check_spread=30 > service_interleave_factor=s > host_inter_check_delay_method=s > max_host_check_spread=30 > max_concurrent_checks=0 > check_result_reaper_frequency=5 > max_check_result_reaper_time=20 > check_result_path=/usr/local/nagios/var/spool/checkresults > max_check_result_file_age=3600 > cached_host_check_horizon=15 > cached_service_check_horizon=15 > enable_predictive_host_dependency_checks=1 > enable_predictive_service_dependency_checks=1 > soft_state_dependencies=0 > auto_reschedule_checks=0 > auto_rescheduling_interval=30 > auto_rescheduling_window=180 > sleep_time=0.25 > service_check_timeout=120 > host_check_timeout=30 > event_handler_timeout=30 > notification_timeout=30 > ocsp_timeout=5 > perfdata_timeout=5 > retain_state_information=1 > state_retention_file=/usr/local/nagios/var/retention.dat > retention_update_interval=60 > use_retained_program_state=1 > use_retained_scheduling_info=1 > retained_host_attribute_mask=0 > retained_service_attribute_mask=0 > retained_process_host_attribute_mask=0 > retained_process_service_attribute_mask=0 > retained_contact_host_attribute_mask=0 > retained_contact_service_attribute_mask=0 > interval_length=60 > use_aggressive_host_checking=0 > execute_service_checks=1 > accept_passive_service_checks=1 > execute_host_checks=1 > accept_passive_host_checks=1 > enable_notifications=1 > enable_event_handlers=1 > process_performance_data=0 > obsess_over_services=0 > obsess_over_hosts=0 > translate_passive_host_checks=0 > passive_host_checks_are_soft=0 > check_for_orphaned_services=1 > check_for_orphaned_hosts=1 > check_service_freshness=1 > service_freshness_check_interval=60 > check_host_freshness=0 > host_freshness_check_interval=60 > additional_freshness_latency=15 > enable_flap_detection=1 > low_service_flap_threshold=5.0 > high_service_flap_threshold=20.0 > low_host_flap_threshold=5.0 > high_host_flap_threshold=20.0 > date_format=us > p1_file=/usr/local/nagios/bin/p1.pl > enable_embedded_perl=1 > use_embedded_perl_implicitly=1 > illegal_object_name_chars=`~!$%^*|'"<>?,()= > illegal_macro_output_chars=`~$&|'"<> > use_regexp_matching=0 > use_true_regexp_matching=0 > daemon_dumps_core=0 > use_large_installation_tweaks=0 > enable_environment_macros=1 > debug_level=2 > debug_verbosity=2 > debug_file=/usr/local/nagios/var/nagios.debug > max_debug_file_size=1000000 > broker_module=/usr/local/lib/mk-livestatus/livestatus.o > /usr/local/nagios/var/rw/live > event_broker_options=-1 > > > ----------------------------------------------------------------------------------------------------------------------------------- > > CURRENT STATUS DATA > ------------------------------------------------------ > Status File: /usr/local/nagios/var/status.dat > Status File Age: 0d 0h 0m 4s > Status File Version: 3.0.3 > > Program Running Time: 0d 0h 10m 55s > Nagios PID: 21581 > Used/High/Total Command Buffers: 0 / 0 / 4096 > > Total Services: 6747 > Services Checked: 6747 > Services Scheduled: 6747 > Services Actively Checked: 6747 > Services Passively Checked: 0 > Total Service State Change: 0.000 / 41.580 / 0.077 % > Active Service Latency: 0.090 / 351.086 / 191.014 sec > Active Service Execution Time: 0.013 / 60.096 / 0.472 sec > Active Service State Change: 0.000 / 41.580 / 0.077 % > Active Services Last 1/5/15/60 min: 365 / 1365 / 1747 / 5490 > Passive Service Latency: 0.000 / 0.000 / 0.000 sec > Passive Service State Change: 0.000 / 0.000 / 0.000 % > Passive Services Last 1/5/15/60 min: 0 / 0 / 0 / 0 > Services Ok/Warn/Unk/Crit: 6539 / 82 / 13 / 113 > Services Flapping: 4 > Services In Downtime: 0 > > Total Hosts: 1925 > Hosts Checked: 1925 > Hosts Scheduled: 1925 > Hosts Actively Checked: 1925 > Host Passively Checked: 0 > Total Host State Change: 0.000 / 23.550 / 5.055 % > Active Host Latency: 0.000 / 124.702 / 111.270 sec > Active Host Execution Time: 0.014 / 4.335 / 0.089 sec > Active Host State Change: 0.000 / 23.550 / 5.055 % > Active Hosts Last 1/5/15/60 min: 521 / 1925 / 1925 / 1925 > Passive Host Latency: 0.000 / 0.000 / 0.000 sec > Passive Host State Change: 0.000 / 0.000 / 0.000 % > Passive Hosts Last 1/5/15/60 min: 0 / 0 / 0 / 0 > Hosts Up/Down/Unreach: 1907 / 18 / 0 > Hosts Flapping: 8 > Hosts In Downtime: 0 > > Active Host Checks Last 1/5/15 min: 633 / 3345 / 9068 > Scheduled: 625 / 3297 / 8997 > On-demand: 8 / 48 / 71 > Parallel: 625 / 3303 / 9007 > Serial: 0 / 0 / 0 > Cached: 8 / 43 / 61 > Passive Host Checks Last 1/5/15 min: 0 / 0 / 0 > Active Service Checks Last 1/5/15 min: 421 / 1948 / 2452 > Scheduled: 421 / 1948 / 2452 > On-demand: 0 / 0 / 0 > Cached: 0 / 0 / 0 > Passive Service Checks Last 1/5/15 min: 0 / 0 / 0 > > External Commands Last 1/5/15 min: 0 / 0 / 0 > > > > > Thanks & Regards, > dE > Hi List, What are the parameter needs to be enable for a large scale ( above 2000 host & above 6500 service check) of monitroing with Nagios 3.0. /\ dE -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From andre at nine.ch Mon Nov 1 10:28:59 2010 From: andre at nine.ch (Andre Timmermann) Date: Mon, 01 Nov 2010 10:28:59 +0100 Subject: Best Practice: Forgotten Acknowledgements Message-ID: <1288603739.3179.58.camel@pcandre.nine.ch> Hello list, from time to time you may acknowledge a problem without solving it at once. This will result in forgotten acknowledgements. What do you do to resolve this issue? Ist there anything existing which parses the statufiles and writes a mail once a week as a reminder (cron-job)? Greetz, Andre ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From yu.watanabe at jp.fujitsu.com Mon Nov 1 11:14:18 2010 From: yu.watanabe at jp.fujitsu.com (Yu Watanabe) Date: Mon, 01 Nov 2010 19:14:18 +0900 Subject: Does Performance processing command fail in high loaded situations? Message-ID: <201011011014.AA02731@S2007337.jp.fujitsu.com> Hello all. Has anyone experineced a failure of performance processing in high loaded servers, or is there a chance of failure in this situation? Espicially , in high memory usages(80 - 90%). My nagios environement is following, nagios 3.0.6 RHEL 5 Best Regards, Yu Watanabe ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Uwe.Knop at ZIT-BB.Brandenburg.de Mon Nov 1 11:30:32 2010 From: Uwe.Knop at ZIT-BB.Brandenburg.de (Knop Uwe) Date: Mon, 01 Nov 2010 11:30:32 +0100 Subject: Antw: Does Performance processing command fail in high loaded situations? In-Reply-To: <201011011014.AA02731@S2007337.jp.fujitsu.com> References: <201011011014.AA02731@S2007337.jp.fujitsu.com> Message-ID: <4CCEA4D8020000750000A6F7@clgw3.lvnbb.de> Hi, why do you use this old version (3.0.6) ? The current Version is 3.2.3 . Try this version. That would be my first proposal for you. bye >>> Von: Yu Watanabe An: Datum: 01.11.2010 11:23 Betreff: [Nagios-users] Does Performance processing command fail in high loaded situations? Hello all. Has anyone experineced a failure of performance processing in high loaded servers, or is there a chance of failure in this situation? Espicially , in high memory usages(80 - 90%). My nagios environement is following, nagios 3.0.6 RHEL 5 Best Regards, Yu Watanabe ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From BChan at Shawcor.com Mon Nov 1 10:53:43 2010 From: BChan at Shawcor.com (Brian Chan) Date: Mon, 1 Nov 2010 05:53:43 -0400 Subject: AUTO: Chan, Brian is out of the office. (returning 11/02/2010) Message-ID: I am out of the office until 11/02/2010. I will respond to your message when I return. Note: This is an automated response to your message "Nagios-users Digest, Vol 54, Issue 1" sent on 11/1/2010 5:48:33. This is the only notification you will receive while this person is away. ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Mon Nov 1 11:53:21 2010 From: ae at op5.se (Andreas Ericsson) Date: Mon, 01 Nov 2010 11:53:21 +0100 Subject: Does Performance processing command fail in high loaded situations? In-Reply-To: <201011011014.AA02731@S2007337.jp.fujitsu.com> References: <201011011014.AA02731@S2007337.jp.fujitsu.com> Message-ID: <4CCE9C21.2040704@op5.se> On 11/01/2010 11:14 AM, Yu Watanabe wrote: > Hello all. > > Has anyone experineced a failure of performance processing in high > loaded servers, or is there a chance of failure in this situation? > Espicially , in high memory usages(80 - 90%). > If the performance data handling command starts swapping, it's entirely possible it takes too long to complete, causing Nagios to kill it by force. > My nagios environement is following, > > nagios 3.0.6 RHEL 5 > That's rather old. An upgrade would do you good. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From carlo.maesen at maastrichtuniversity.nl Mon Nov 1 12:28:30 2010 From: carlo.maesen at maastrichtuniversity.nl (Maesen Carlo (ICTS)) Date: Mon, 1 Nov 2010 12:28:30 +0100 Subject: Wrong Next Scheduled Check Message-ID: <6ABFFD29FEDBB3478B6986988638E74F01956881FE@UM-MAIL4109.unimaas.nl> Hello, Nagios shows a wrong Wrong Next Scheduled Check for all services and hosts. Here is an example: Current Status: OK (for 60d 1h 55m 0s) Status Information: DISK OK - free space: / 9235 MB (96% inode=98%): Performance Data: /=335MB;9578;9578;0;10083 Current Attempt: 1/3 (HARD state) Last Check Time: 10-31-2010 22:36:44 Check Type: ACTIVE Check Latency / Duration: 1233.755 / 0.910 seconds Next Scheduled Check: 11-01-2010 23:00:00 Last State Change: 09-02-2010 11:26:26 Last Notification: N/A (notification 0) Is This Service Flapping? NO (0.00% state change) In Scheduled Downtime? NO Last Update: 11-01-2010 12:21:23 ( 0d 0h 0m 3s ago) The config of nagios did not change. The service-template ================ define service{ name generic-service active_checks_enabled 1 passive_checks_enabled 1 parallelize_check 1 obsess_over_service 1 check_freshness 0 notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 1 failure_prediction_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 is_volatile 0 check_period 24x7 max_check_attempts 1 normal_check_interval 5 retry_check_interval 2 # contact_groups admins notification_options w,u,c,r # notification_interval 0 # notification_period 24x7 register 1 } # Production service definition template define service{ name service-prod use generic-service max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 notification_interval 240 notification_period 24x7 register 1 } A service example: ============== define service{ use service-prod host_name serverx service_description FS / check_command check_nrpe_disk!5%!5%!/ } Can someone explain this issue ? Thanks in advance. Carlo -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From andy.graybeal at casanueva.com Mon Nov 1 12:40:52 2010 From: andy.graybeal at casanueva.com (Andy Graybeal) Date: Mon, 01 Nov 2010 07:40:52 -0400 Subject: NSCA w/ secondary nagios machine monitoring separate network segment In-Reply-To: References: <4CCC6005.2080900@casanueva.com> Message-ID: <4CCEA744.2040307@casanueva.com> > > Have you checked the nagios.cfg file and ensured the path for > command_file is the same in both the nagios.cfg and nsca.cfg? Nagios > should be creating the command file on start up. If they are the same, > check that nagios has write permissions to /var/lib/nagios3/rw. Also, > the command file is a pipe, not a simple file, so "touch" isn't good > enough, you'll need to use mkfifo or mknod. > Jonathon, it was simple newb issue. nagios.cfg needed 'check_external_commands' enabled. I got passive service checks working last night. Many thanks to bashk on irc. Now to get passive host checks working. -Andy ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pangrazi at gmail.com Mon Nov 1 12:41:54 2010 From: pangrazi at gmail.com (Greg Pangrazio) Date: Mon, 1 Nov 2010 06:41:54 -0500 Subject: Wrong Next Scheduled Check In-Reply-To: <6ABFFD29FEDBB3478B6986988638E74F01956881FE@UM-MAIL4109.unimaas.nl> References: <6ABFFD29FEDBB3478B6986988638E74F01956881FE@UM-MAIL4109.unimaas.nl> Message-ID: Did daylight saving end in your timeline this weekend? If so check out the dst patches or upgrade nagios to fix the scheduled check problem Greg On Nov 1, 2010 6:38 AM, "Maesen Carlo (ICTS)" < carlo.maesen at maastrichtuniversity.nl> wrote: > Hello, > > Nagios shows a wrong Wrong Next Scheduled Check for all services and hosts. > > Here is an example: > Current Status: OK (for 60d 1h 55m 0s) > Status Information: DISK OK - free space: / 9235 MB (96% inode=98%): > Performance Data: /=335MB;9578;9578;0;10083 > Current Attempt: 1/3 (HARD state) > Last Check Time: 10-31-2010 22:36:44 > Check Type: ACTIVE > Check Latency / Duration: 1233.755 / 0.910 seconds > Next Scheduled Check: 11-01-2010 23:00:00 > Last State Change: 09-02-2010 11:26:26 > Last Notification: N/A (notification 0) > Is This Service Flapping? NO (0.00% state change) > In Scheduled Downtime? NO > Last Update: 11-01-2010 12:21:23 ( 0d 0h 0m 3s ago) > > The config of nagios did not change. > > The service-template > ================ > > define service{ > name generic-service > active_checks_enabled 1 > passive_checks_enabled 1 > parallelize_check 1 > obsess_over_service 1 > check_freshness 0 > notifications_enabled 1 > event_handler_enabled 1 > flap_detection_enabled 1 > failure_prediction_enabled 1 > process_perf_data 1 > retain_status_information 1 > retain_nonstatus_information 1 > is_volatile 0 > check_period 24x7 > max_check_attempts 1 > normal_check_interval 5 > retry_check_interval 2 > # contact_groups admins > notification_options w,u,c,r > # notification_interval 0 > # notification_period 24x7 > register 1 > } > > > # Production service definition template > > define service{ > name service-prod > use generic-service > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 1 > notification_interval 240 > notification_period 24x7 > register 1 > } > > A service example: > ============== > define service{ > use service-prod > host_name serverx > service_description FS / > check_command check_nrpe_disk!5%!5%!/ > } > > Can someone explain this issue ? > Thanks in advance. > > Carlo -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From carlo.maesen at maastrichtuniversity.nl Mon Nov 1 13:19:52 2010 From: carlo.maesen at maastrichtuniversity.nl (Maesen Carlo (ICTS)) Date: Mon, 1 Nov 2010 13:19:52 +0100 Subject: Wrong Next Scheduled Check In-Reply-To: References: <6ABFFD29FEDBB3478B6986988638E74F01956881FE@UM-MAIL4109.unimaas.nl> Message-ID: <6ABFFD29FEDBB3478B6986988638E74F01956881FF@UM-MAIL4109.unimaas.nl> Is this a known bug for version 3.2.0 ? I can not find some info about this. ________________________________ From: Greg Pangrazio [mailto:pangrazi at gmail.com] Sent: maandag 1 november 2010 12:42 To: Nagios Users List Subject: Re: [Nagios-users] Wrong Next Scheduled Check Did daylight saving end in your timeline this weekend? If so check out the dst patches or upgrade nagios to fix the scheduled check problem Greg On Nov 1, 2010 6:38 AM, "Maesen Carlo (ICTS)" > wrote: > Hello, > > Nagios shows a wrong Wrong Next Scheduled Check for all services and hosts. > > Here is an example: > Current Status: OK (for 60d 1h 55m 0s) > Status Information: DISK OK - free space: / 9235 MB (96% inode=98%): > Performance Data: /=335MB;9578;9578;0;10083 > Current Attempt: 1/3 (HARD state) > Last Check Time: 10-31-2010 22:36:44 > Check Type: ACTIVE > Check Latency / Duration: 1233.755 / 0.910 seconds > Next Scheduled Check: 11-01-2010 23:00:00 > Last State Change: 09-02-2010 11:26:26 > Last Notification: N/A (notification 0) > Is This Service Flapping? NO (0.00% state change) > In Scheduled Downtime? NO > Last Update: 11-01-2010 12:21:23 ( 0d 0h 0m 3s ago) > > The config of nagios did not change. > > The service-template > ================ > > define service{ > name generic-service > active_checks_enabled 1 > passive_checks_enabled 1 > parallelize_check 1 > obsess_over_service 1 > check_freshness 0 > notifications_enabled 1 > event_handler_enabled 1 > flap_detection_enabled 1 > failure_prediction_enabled 1 > process_perf_data 1 > retain_status_information 1 > retain_nonstatus_information 1 > is_volatile 0 > check_period 24x7 > max_check_attempts 1 > normal_check_interval 5 > retry_check_interval 2 > # contact_groups admins > notification_options w,u,c,r > # notification_interval 0 > # notification_period 24x7 > register 1 > } > > > # Production service definition template > > define service{ > name service-prod > use generic-service > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 1 > notification_interval 240 > notification_period 24x7 > register 1 > } > > A service example: > ============== > define service{ > use service-prod > host_name serverx > service_description FS / > check_command check_nrpe_disk!5%!5%!/ > } > > Can someone explain this issue ? > Thanks in advance. > > Carlo -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nagios at ljnet.dk Mon Nov 1 13:35:10 2010 From: nagios at ljnet.dk (Leif J.) Date: Mon, 01 Nov 2010 13:35:10 +0100 Subject: Wrong Next Scheduled Check In-Reply-To: <6ABFFD29FEDBB3478B6986988638E74F01956881FF@UM-MAIL4109.unimaas.nl> References: <6ABFFD29FEDBB3478B6986988638E74F01956881FE@UM-MAIL4109.unimaas.nl> <6ABFFD29FEDBB3478B6986988638E74F01956881FF@UM-MAIL4109.unimaas.nl> Message-ID: <4CCEB3FE.2080704@ljnet.dk> But if you "Freshness Threshold" is for example 10min. it should automatically reschedule the check, is does here. /Leif On 01-11-2010 13:19, Maesen Carlo (ICTS) wrote: > > Is this a known bug for version 3.2.0 ? > > I can not find some info about this. > > ------------------------------------------------------------------------ > > *From:*Greg Pangrazio [mailto:pangrazi at gmail.com] > *Sent:* maandag 1 november 2010 12:42 > *To:* Nagios Users List > *Subject:* Re: [Nagios-users] Wrong Next Scheduled Check > > Did daylight saving end in your timeline this weekend? > > If so check out the dst patches or upgrade nagios to fix the scheduled > check problem > > Greg > > On Nov 1, 2010 6:38 AM, "Maesen Carlo (ICTS)" > > wrote: > > Hello, > > > > Nagios shows a wrong Wrong Next Scheduled Check for all services and > hosts. > > > > Here is an example: > > Current Status: OK (for 60d 1h 55m 0s) > > Status Information: DISK OK - free space: / 9235 MB (96% inode=98%): > > Performance Data: /=335MB;9578;9578;0;10083 > > Current Attempt: 1/3 (HARD state) > > Last Check Time: 10-31-2010 22:36:44 > > Check Type: ACTIVE > > Check Latency / Duration: 1233.755 / 0.910 seconds > > Next Scheduled Check: 11-01-2010 23:00:00 > > Last State Change: 09-02-2010 11:26:26 > > Last Notification: N/A (notification 0) > > Is This Service Flapping? NO (0.00% state change) > > In Scheduled Downtime? NO > > Last Update: 11-01-2010 12:21:23 ( 0d 0h 0m 3s ago) > > > > The config of nagios did not change. > > > > The service-template > > ================ > > > > define service{ > > name generic-service > > active_checks_enabled 1 > > passive_checks_enabled 1 > > parallelize_check 1 > > obsess_over_service 1 > > check_freshness 0 > > notifications_enabled 1 > > event_handler_enabled 1 > > flap_detection_enabled 1 > > failure_prediction_enabled 1 > > process_perf_data 1 > > retain_status_information 1 > > retain_nonstatus_information 1 > > is_volatile 0 > > check_period 24x7 > > max_check_attempts 1 > > normal_check_interval 5 > > retry_check_interval 2 > > # contact_groups admins > > notification_options w,u,c,r > > # notification_interval 0 > > # notification_period 24x7 > > register 1 > > } > > > > > > # Production service definition template > > > > define service{ > > name service-prod > > use generic-service > > max_check_attempts 3 > > normal_check_interval 5 > > retry_check_interval 1 > > notification_interval 240 > > notification_period 24x7 > > register 1 > > } > > > > A service example: > > ============== > > define service{ > > use service-prod > > host_name serverx > > service_description FS / > > check_command check_nrpe_disk!5%!5%!/ > > } > > > > Can someone explain this issue ? > > Thanks in advance. > > > > Carlo > > > ------------------------------------------------------------------------------ > Nokia and AT&T present the 2010 Calling All Innovators-North America contest > Create new apps& games for the Nokia N8 for consumers in U.S. and Canada > $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store > http://p.sf.net/sfu/nokia-dev2dev > > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pangrazi at gmail.com Mon Nov 1 14:10:24 2010 From: pangrazi at gmail.com (Greg Pangrazio) Date: Mon, 1 Nov 2010 08:10:24 -0500 Subject: Wrong Next Scheduled Check In-Reply-To: <4CCEB3FE.2080704@ljnet.dk> References: <6ABFFD29FEDBB3478B6986988638E74F01956881FE@UM-MAIL4109.unimaas.nl> <6ABFFD29FEDBB3478B6986988638E74F01956881FF@UM-MAIL4109.unimaas.nl> <4CCEB3FE.2080704@ljnet.dk> Message-ID: Here is a link to the information from the list archives. http://www.mail-archive.com/nagios-users at lists.sourceforge.net/msg31474.html Greg Pangrazio On Mon, Nov 1, 2010 at 7:35 AM, Leif J. wrote: > But if you "Freshness Threshold" is for example 10min. it should > automatically reschedule the check, is does here. > > /Leif > > On 01-11-2010 13:19, Maesen Carlo (ICTS) wrote: > > Is this a known bug for version 3.2.0 ? > > I can not find some info about this. > > > > ________________________________ > > From: Greg Pangrazio [mailto:pangrazi at gmail.com] > Sent: maandag 1 november 2010 12:42 > To: Nagios Users List > Subject: Re: [Nagios-users] Wrong Next Scheduled Check > > > > Did daylight saving end in your timeline this weekend? > > If so check out the dst patches or upgrade nagios to fix the scheduled check > problem > > Greg > > On Nov 1, 2010 6:38 AM, "Maesen Carlo (ICTS)" > wrote: >> Hello, >> >> Nagios shows a wrong Wrong Next Scheduled Check for all services and >> hosts. >> >> Here is an example: >> Current Status: OK (for 60d 1h 55m 0s) >> Status Information: DISK OK - free space: / 9235 MB (96% inode=98%): >> Performance Data: /=335MB;9578;9578;0;10083 >> Current Attempt: 1/3 (HARD state) >> Last Check Time: 10-31-2010 22:36:44 >> Check Type: ACTIVE >> Check Latency / Duration: 1233.755 / 0.910 seconds >> Next Scheduled Check: 11-01-2010 23:00:00 >> Last State Change: 09-02-2010 11:26:26 >> Last Notification: N/A (notification 0) >> Is This Service Flapping? NO (0.00% state change) >> In Scheduled Downtime? NO >> Last Update: 11-01-2010 12:21:23 ( 0d 0h 0m 3s ago) >> >> The config of nagios did not change. >> >> The service-template >> ================ >> >> define service{ >> name generic-service >> active_checks_enabled 1 >> passive_checks_enabled 1 >> parallelize_check 1 >> obsess_over_service 1 >> check_freshness 0 >> notifications_enabled 1 >> event_handler_enabled 1 >> flap_detection_enabled 1 >> failure_prediction_enabled 1 >> process_perf_data 1 >> retain_status_information 1 >> retain_nonstatus_information 1 >> is_volatile 0 >> check_period 24x7 >> max_check_attempts 1 >> normal_check_interval 5 >> retry_check_interval 2 >> # contact_groups admins >> notification_options w,u,c,r >> # notification_interval 0 >> # notification_period 24x7 >> register 1 >> } >> >> >> # Production service definition template >> >> define service{ >> name service-prod >> use generic-service >> max_check_attempts 3 >> normal_check_interval 5 >> retry_check_interval 1 >> notification_interval 240 >> notification_period 24x7 >> register 1 >> } >> >> A service example: >> ============== >> define service{ >> use service-prod >> host_name serverx >> service_description FS / >> check_command check_nrpe_disk!5%!5%!/ >> } >> >> Can someone explain this issue ? >> Thanks in advance. >> >> Carlo > > ------------------------------------------------------------------------------ > Nokia and AT&T present the 2010 Calling All Innovators-North America contest > Create new apps & games for the Nokia N8 for consumers in U.S. and Canada > $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store > http://p.sf.net/sfu/nokia-dev2dev > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------------------------------ > Nokia and AT&T present the 2010 Calling All Innovators-North America contest > Create new apps & games for the Nokia N8 for consumers in ?U.S. and Canada > $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store > http://p.sf.net/sfu/nokia-dev2dev > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From s.waitz at rtsgroup.net Mon Nov 1 15:06:25 2010 From: s.waitz at rtsgroup.net (Sebastian Waitz) Date: Mon, 1 Nov 2010 15:06:25 +0100 Subject: SLES10 x64 RT kernel servers die after NRPE is executed Message-ID: Hey there, I have a strange error happening on several different servers having NRPE installed. The system hangs and need to be rebooted. After the server is back online the logs say: Oct 19 03:13:11 glddb-rtd2 sudo: rts : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/find / -noleaf -name core -type f Oct 19 03:16:06 glddb-rtd2 kernel: Bad page state in process 'nrpe' Oct 19 03:16:06 glddb-rtd2 kernel: page:ffff81032a92fd80 flags:0x0000000600000005 mapping:0000000000000000 mapcount:0 count:7 Oct 19 03:16:06 glddb-rtd2 kernel: Trying to fix it up, but a reboot is needed Oct 19 03:16:06 glddb-rtd2 kernel: Backtrace: Oct 19 03:16:06 glddb-rtd2 kernel: Oct 19 03:16:06 glddb-rtd2 kernel: Call Trace: Oct 19 03:16:06 glddb-rtd2 kernel: [] bad_page+0x60/0xa0 Oct 19 03:16:06 glddb-rtd2 kernel: [] get_page_from_freelist+0x585/0x620 Oct 19 03:16:06 glddb-rtd2 kernel: [] find_get_page+0x86/0x190 Oct 19 03:16:06 glddb-rtd2 kernel: [] __alloc_pages+0x67/0x380 Oct 19 03:16:06 glddb-rtd2 kernel: [] __handle_mm_fault+0x7c0/0xb90 Oct 19 03:16:06 glddb-rtd2 kernel: [] do_page_fault+0x216/0x8e0 Oct 19 03:16:06 glddb-rtd2 kernel: [] split_vma+0x152/0x170 Oct 19 03:16:06 glddb-rtd2 kernel: [] flush_tlb_mm+0x5b/0x150 Oct 19 03:16:06 glddb-rtd2 kernel: [] sys_mprotect+0x194/0x850 Oct 19 03:16:06 glddb-rtd2 kernel: [] error_exit+0x0/0x84 Oct 19 03:16:06 glddb-rtd2 kernel: Oct 19 03:16:06 glddb-rtd2 kernel: general protection fault: 0000 [1] PREEMPT SMP Oct 19 03:16:06 glddb-rtd2 kernel: last sysfs file: /devices/pci0000:00/0000:00:06.0/0000:05:00.1/irq Here are some details about the system: glddb-rtd2:~ # cat /etc/issue Welcome to SUSE Linux Enterprise Server 10 SP2 (x86_64) - Kernel \r (\l). glddb-rtd2:~ # uname -a Linux glddb-rtd2 2.6.22.19-0.14-rt #1 SMP PREEMPT RT 2008-06-04 00:52:17 +0200 x86_64 x86_64 x86_64 GNU/Linux glddb-rtd2:~ # /usr/local/nagios/bin/nrpe --version /usr/local/nagios/bin/nrpe: unrecognized option `--version' NRPE - Nagios Remote Plugin Executor Copyright (c) 1999-2008 Ethan Galstad (nagios at nagios.org) Version: 2.12 Last Modified: 03-10-2008 All servers have SLES 10 SP 2 x64 Realtime Kernel in common. Any ideas if this is an NRPE or kernel problem/bug are appreciated. Or did someone face the similar/same problems? If some information is missing, feel free to request. I'd be glad to add the info. Thanks much for your input. Sebastian Waitz IT Operations Manager [cid:rts-logo.png at 02aeae5248894d848dc6f606a972e216] RTS Realtime Systems (Deutschland) AG, Rembrandtstrasse 13, D-60596 Frankfurt am Main T: +49.69.61009.0 / F: +49.69.61009.181 / Hotline: +49.69.61009.100 Sitz: Frankfurt am Main - HRB 46523 Amtsgericht Frankfurt/M. Vorstand: Steffen Gemuenden (Vorsitzender), Mark van Vugt Aufsichtsratsvorsitzender: Engelbert Gemuenden www.rtsgroup.net This email and any attachments are for the exclusive and confidential use of the intended recipient. If you are not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, please do not read, distribute or take action in reliance upon this message. If you have received this in error, please notify me immediately by return email and promptly delete this message and its attachments from your computer system. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: rts-logo.png Type: image/png Size: 13233 bytes Desc: rts-logo.png URL: -------------- next part -------------- ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cbeattie at geninfo.com Mon Nov 1 17:50:38 2010 From: cbeattie at geninfo.com (Chris Beattie) Date: Mon, 1 Nov 2010 12:50:38 -0400 Subject: Best Practice: Forgotten Acknowledgements In-Reply-To: <1288603739.3179.58.camel@pcandre.nine.ch> References: <1288603739.3179.58.camel@pcandre.nine.ch> Message-ID: Acknowledgements add comments to hosts and services, so you could just set yourself a reminder to occasionally check the comments link in the side bar and look for anything that's getting stale. -----Original Message----- From: Andre Timmermann [mailto:andre at nine.ch] Sent: Monday, November 01, 2010 5:29 AM To: Nagios Users List Subject: [Nagios-users] Best Practice: Forgotten Acknowledgements Hello list, from time to time you may acknowledge a problem without solving it at once. This will result in forgotten acknowledgements. What do you do to resolve this issue? Ist there anything existing which parses the statufiles and writes a mail once a week as a reminder (cron-job)? Greetz, Andre ------------------------------------------------------------------------ ------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nagios at ljnet.dk Mon Nov 1 18:08:55 2010 From: nagios at ljnet.dk (Leif J.) Date: Mon, 01 Nov 2010 18:08:55 +0100 Subject: Best Practice: Forgotten Acknowledgements In-Reply-To: References: <1288603739.3179.58.camel@pcandre.nine.ch> Message-ID: <4CCEF427.1060505@ljnet.dk> What I'm planning is a way to pass a Ticket to our Ticket system when a host/service are down/critical, on that way I will from my current overview of assigments also see the issues from Nagios. then it will be visible for me every single day when I look a what open problems there are. /Leif Den 01-11-2010 17:50, Chris Beattie skrev: > Acknowledgements add comments to hosts and services, so you could just > set yourself a reminder to occasionally check the comments link in the > side bar and look for anything that's getting stale. > > -----Original Message----- > From: Andre Timmermann [mailto:andre at nine.ch] > Sent: Monday, November 01, 2010 5:29 AM > To: Nagios Users List > Subject: [Nagios-users] Best Practice: Forgotten Acknowledgements > > Hello list, > > from time to time you may acknowledge a problem without solving it at > once. This will result in forgotten acknowledgements. > > What do you do to resolve this issue? > > Ist there anything existing which parses the statufiles and writes a > mail once a week as a reminder (cron-job)? > > Greetz, > Andre > > > ------------------------------------------------------------------------ > ------ > Nokia and AT&T present the 2010 Calling All Innovators-North America > contest Create new apps& games for the Nokia N8 for consumers in U.S. > and Canada > $10 million total in prizes - $4M cash, 500 devices, nearly $6M in > marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to > Ovi Store http://p.sf.net/sfu/nokia-dev2dev > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------------------------------ > Nokia and AT&T present the 2010 Calling All Innovators-North America contest > Create new apps& games for the Nokia N8 for consumers in U.S. and Canada > $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store > http://p.sf.net/sfu/nokia-dev2dev > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From andre at nine.ch Mon Nov 1 18:32:56 2010 From: andre at nine.ch (Andre Timmermann) Date: Mon, 01 Nov 2010 18:32:56 +0100 Subject: Best Practice: Forgotten Acknowledgements In-Reply-To: References: <1288603739.3179.58.camel@pcandre.nine.ch> Message-ID: <1288632776.3179.74.camel@pcandre.nine.ch> Am Montag, den 01.11.2010, 12:50 -0400 schrieb Chris Beattie: > Acknowledgements add comments to hosts and services, so you could just > set yourself a reminder to occasionally check the comments link in the > side bar and look for anything that's getting stale. Yes, but this would enforce a human not to forget things. I tend to believe something automatic is more reliable than a human ;) Greetz, Andre ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From work at paul.dubuc.org Mon Nov 1 19:34:16 2010 From: work at paul.dubuc.org (Paul M. Dubuc) Date: Mon, 01 Nov 2010 14:34:16 -0400 Subject: Best Practice: Forgotten Acknowledgements In-Reply-To: <1288632776.3179.74.camel@pcandre.nine.ch> References: <1288603739.3179.58.camel@pcandre.nine.ch> <1288632776.3179.74.camel@pcandre.nine.ch> Message-ID: <4CCF0828.1040306@paul.dubuc.org> Andre Timmermann wrote: > Am Montag, den 01.11.2010, 12:50 -0400 schrieb Chris Beattie: >> Acknowledgements add comments to hosts and services, so you could just >> set yourself a reminder to occasionally check the comments link in the >> side bar and look for anything that's getting stale. > > Yes, but this would enforce a human not to forget things. I tend to > believe something automatic is more reliable than a human ;) You could write an event handler that fixes whatever the problem is. Otherwise you are relying on a human at every level not to forget the acknowledgments and reminders. ;-) ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From daniel.wittenberg.r0ko at statefarm.com Mon Nov 1 20:57:53 2010 From: daniel.wittenberg.r0ko at statefarm.com (Daniel Wittenberg) Date: Mon, 1 Nov 2010 12:57:53 -0700 Subject: hostgroup with no members - Enhancement Message-ID: <31B0FE0A1A8166409E9DF35C6DEECB2404EEE87E@WPSCV6MM.OPR.STATEFARM.ORG> I'd like to be able to create a hostgroup with no members assigned, but doesn't appear to work. The reason being is that I'm generating the host configs using a third-party tool, and it puts in that host file which hostgroups a host belong to. This works great, but there has to be at least 1 member in the hostgroup for it not to complain. It would be nice if I could just put the hostgroups out there blank and then let the host definition completely populate what's in there. Right now I have 1 fake host that is in every group, so I have one host with hundreds of service checks that will fail , just rather messy. Does that sound reasonable, another way to do this I've missed? Thanks! Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lomiz.mail at gmail.com Mon Nov 1 22:53:39 2010 From: lomiz.mail at gmail.com (Enrico Zimol) Date: Mon, 1 Nov 2010 22:53:39 +0100 Subject: hostgroup with no members - Enhancement In-Reply-To: <31B0FE0A1A8166409E9DF35C6DEECB2404EEE87E@WPSCV6MM.OPR.STATEFARM.ORG> References: <31B0FE0A1A8166409E9DF35C6DEECB2404EEE87E@WPSCV6MM.OPR.STATEFARM.ORG> Message-ID: On 1 November 2010 20:57, Daniel Wittenberg wrote: >? It would be nice if I could just put the hostgroups out there > blank and then let the host definition completely populate what?s in there. > Right now I have 1 fake host that is in every group, so I have one host with > hundreds of service checks that will fail , just rather messy. I've got the same problem. To assign service check on host I create an hostgroup on every service to check (example: host_raid, host_http), and to assign that service check on an host I simply ad that host on corresponding hostgroup ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Tue Nov 2 08:33:53 2010 From: ae at op5.se (Andreas Ericsson) Date: Tue, 02 Nov 2010 08:33:53 +0100 Subject: hostgroup with no members - Enhancement In-Reply-To: <31B0FE0A1A8166409E9DF35C6DEECB2404EEE87E@WPSCV6MM.OPR.STATEFARM.ORG> References: <31B0FE0A1A8166409E9DF35C6DEECB2404EEE87E@WPSCV6MM.OPR.STATEFARM.ORG> Message-ID: <4CCFBEE1.3040007@op5.se> On 11/01/2010 08:57 PM, Daniel Wittenberg wrote: > I'd like to be able to create a hostgroup with no members assigned, but > doesn't appear to work. Empty hostgroups work just fine. The check that says this is so starts at line 12516 in xdata/xodtemplate.c as of latest CVS/git. It's been like that for a while now. > The reason being is that I'm generating the > host configs using a third-party tool, and it puts in that host file > which hostgroups a host belong to. This works great, but there has to > be at least 1 member in the hostgroup for it not to complain. It would > be nice if I could just put the hostgroups out there blank and then let > the host definition completely populate what's in there. Right now I > have 1 fake host that is in every group, so I have one host with > hundreds of service checks that will fail , just rather messy. > So what you *really* want is some way of assigning services to hosts from within the service. That's an entirely different thing. You could add "register 0" to the fake host definition. Not sure if that would work, but it's possible that it does. > Does that sound reasonable, another way to do this I've missed? > The hopefully-up-and-coming way of handling this is to use service sets, a feature I've been thinking of for quite some time now. It can be safely implemented without altering the object structure version, which is quite nice, and will mean you can assign a set of services to a host from within the definition of that host. The idea is to, in the long run, use service sets to create full host types that can be shared among community members. Would that satisfy your needs? -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From daniel.wittenberg.r0ko at statefarm.com Tue Nov 2 14:59:05 2010 From: daniel.wittenberg.r0ko at statefarm.com (Daniel Wittenberg) Date: Tue, 2 Nov 2010 06:59:05 -0700 Subject: hostgroup with no members - Enhancement In-Reply-To: <4CCFBEE1.3040007@op5.se> References: <31B0FE0A1A8166409E9DF35C6DEECB2404EEE87E@WPSCV6MM.OPR.STATEFARM.ORG> <4CCFBEE1.3040007@op5.se> Message-ID: <31B0FE0A1A8166409E9DF35C6DEECB2404EEEC37@WPSCV6MM.OPR.STATEFARM.ORG> Ok, so this was a basic test, I have a GENERIC_PING check and it had the fake host in there and was working fine, as soon as I removed it (so no members defined): Error: Could not expand hostgroups and/or hosts specified in service (config file '/etc/nagios/objects/services/GENERIC_PING.cfg', starting on line 1) # cat /etc/nagios/objects/services/GENERIC_PING.cfg define service{ service_description GENERIC_PING display_name Generic ping, typically used for parent hosts hostgroup_name GENERIC_PING use generic-service check_command check_ping!100.0,20%!500.0,60% } define hostgroup{ hostgroup_name GENERIC_PING alias GENERIC_PING } So is this a different problem then what you were looking at maybe ? Dan -----Original Message----- From: Andreas Ericsson [mailto:ae at op5.se] Sent: Tuesday, November 02, 2010 2:34 AM To: Nagios Users List Cc: Daniel Wittenberg Subject: Re: [Nagios-users] hostgroup with no members - Enhancement On 11/01/2010 08:57 PM, Daniel Wittenberg wrote: > I'd like to be able to create a hostgroup with no members assigned, but > doesn't appear to work. Empty hostgroups work just fine. The check that says this is so starts at line 12516 in xdata/xodtemplate.c as of latest CVS/git. It's been like that for a while now. > The reason being is that I'm generating the > host configs using a third-party tool, and it puts in that host file > which hostgroups a host belong to. This works great, but there has to > be at least 1 member in the hostgroup for it not to complain. It would > be nice if I could just put the hostgroups out there blank and then let > the host definition completely populate what's in there. Right now I > have 1 fake host that is in every group, so I have one host with > hundreds of service checks that will fail , just rather messy. > So what you *really* want is some way of assigning services to hosts from within the service. That's an entirely different thing. You could add "register 0" to the fake host definition. Not sure if that would work, but it's possible that it does. > Does that sound reasonable, another way to do this I've missed? > The hopefully-up-and-coming way of handling this is to use service sets, a feature I've been thinking of for quite some time now. It can be safely implemented without altering the object structure version, which is quite nice, and will mean you can assign a set of services to a host from within the definition of that host. The idea is to, in the long run, use service sets to create full host types that can be shared among community members. Would that satisfy your needs? -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From daniel.wittenberg.r0ko at statefarm.com Tue Nov 2 14:42:14 2010 From: daniel.wittenberg.r0ko at statefarm.com (Daniel Wittenberg) Date: Tue, 2 Nov 2010 06:42:14 -0700 Subject: hostgroup with no members - Enhancement In-Reply-To: <4CCFBEE1.3040007@op5.se> References: <31B0FE0A1A8166409E9DF35C6DEECB2404EEE87E@WPSCV6MM.OPR.STATEFARM.ORG> <4CCFBEE1.3040007@op5.se> Message-ID: <31B0FE0A1A8166409E9DF35C6DEECB2404EEEBD6@WPSCV6MM.OPR.STATEFARM.ORG> Well, we're running 3.2.3, and if I don't have at least 1 member of a hostgroup it throws a fit during the test. Maybe there's something else I have to change, but last we tried it would not work. And no, I don't really want to assign hosts within the service. The way we have it now works great, because everything about a host is in one file, easy to add, delete, update. The only issue we've had is the empty hostgroup. I'll try it again today, I think last I tried was at 3.2.1 so maybe it's changed since then. Either way I'll report back on how it goes. However, your description of services sets sounds pretty interesting and sounds like it would accomplish the same thing. I don't suppose you have any pseudo-examples of what you're thinking? Dan -----Original Message----- From: Andreas Ericsson [mailto:ae at op5.se] Sent: Tuesday, November 02, 2010 2:34 AM To: Nagios Users List Cc: Daniel Wittenberg Subject: Re: [Nagios-users] hostgroup with no members - Enhancement On 11/01/2010 08:57 PM, Daniel Wittenberg wrote: > I'd like to be able to create a hostgroup with no members assigned, but > doesn't appear to work. Empty hostgroups work just fine. The check that says this is so starts at line 12516 in xdata/xodtemplate.c as of latest CVS/git. It's been like that for a while now. > The reason being is that I'm generating the > host configs using a third-party tool, and it puts in that host file > which hostgroups a host belong to. This works great, but there has to > be at least 1 member in the hostgroup for it not to complain. It would > be nice if I could just put the hostgroups out there blank and then let > the host definition completely populate what's in there. Right now I > have 1 fake host that is in every group, so I have one host with > hundreds of service checks that will fail , just rather messy. > So what you *really* want is some way of assigning services to hosts from within the service. That's an entirely different thing. You could add "register 0" to the fake host definition. Not sure if that would work, but it's possible that it does. > Does that sound reasonable, another way to do this I've missed? > The hopefully-up-and-coming way of handling this is to use service sets, a feature I've been thinking of for quite some time now. It can be safely implemented without altering the object structure version, which is quite nice, and will mean you can assign a set of services to a host from within the definition of that host. The idea is to, in the long run, use service sets to create full host types that can be shared among community members. Would that satisfy your needs? -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Tue Nov 2 15:09:57 2010 From: ae at op5.se (Andreas Ericsson) Date: Tue, 02 Nov 2010 15:09:57 +0100 Subject: hostgroup with no members - Enhancement In-Reply-To: <31B0FE0A1A8166409E9DF35C6DEECB2404EEEC37@WPSCV6MM.OPR.STATEFARM.ORG> References: <31B0FE0A1A8166409E9DF35C6DEECB2404EEE87E@WPSCV6MM.OPR.STATEFARM.ORG> <4CCFBEE1.3040007@op5.se> <31B0FE0A1A8166409E9DF35C6DEECB2404EEEC37@WPSCV6MM.OPR.STATEFARM.ORG> Message-ID: <4CD01BB5.103@op5.se> On 11/02/2010 02:59 PM, Daniel Wittenberg wrote: > Ok, so this was a basic test, I have a GENERIC_PING check and it had the > fake host in there and was working fine, as soon as I removed it (so no > members defined): > > Error: Could not expand hostgroups and/or hosts specified in service > (config file '/etc/nagios/objects/services/GENERIC_PING.cfg', starting > on line 1) > > # cat /etc/nagios/objects/services/GENERIC_PING.cfg > define service{ > service_description GENERIC_PING > display_name Generic ping, typically used for parent > hosts > hostgroup_name GENERIC_PING > use generic-service > check_command check_ping!100.0,20%!500.0,60% > } > > define hostgroup{ > hostgroup_name GENERIC_PING > alias GENERIC_PING > } > > So is this a different problem then what you were looking at maybe ? > Yes. That's not just an empty hostgroup, but an empty hostgroup to which services are assigned. That's supposed to be an error. What's the reason for using empty hostgroups to assign services to? -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ravishankar.gundlapali at wipro.com Tue Nov 2 15:13:37 2010 From: ravishankar.gundlapali at wipro.com (ravishankar.gundlapali at wipro.com) Date: Tue, 2 Nov 2010 19:43:37 +0530 Subject: SQL-DB Services-Unknown Status Message-ID: <618F928F9E2D824AAB26DCAA0F25221F02CCD3BE@HYD-MKD-MBX02.wipro.com> Hi, I am using Nagios Version 3.0.6 on a Linux server to monitor the SQL-DB-LOG-GROWTH and SQL-DB-LOG-USED on the Windows servers. For the many of the servers the status information is showing following errors. Please see the screenshots below 1) UNKNOWN: No handler for that command 2) Unknown - * query: No row returned. 3) Unknown - No data received from WMI: I am using the following the check commands check_nrpe_mssql_log_used!*!50!90 check_nrpe_mssql_log_growths!*!5000!9000 Please someone let me know how can I resolve this. Please see the service definition and command definition which I am using for SQL-DB-LOG-USED and SQL-DB-LOG-GROWTH. Request you to provide a clue on this. define service{ use generic-service ; Name of service template to use host_name abcd service_description SQL-DB-LOG-USED is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups sql-admins notification_interval 0 notification_period 24x7 notification_options c,r check_command check_nrpe_mssql_log_used!*!50!90 } define service{ use generic-service ; Name of service template to use host_name abcd service_description SQL-DB-LOG-GROWTH is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups sql-admins notification_interval 0 notification_period 24x7 notification_options c,r check_command check_nrpe_mssql_log_growths!*!5000!9000 ; Log growth scale is 0.01 hence 5000 and 9000 } define command { command_name check_nrpe_mssql_log_used command_line $USER1$/check_nrpe -t 60 -H $HOSTADDRESS$ -p 5666 -c get_mssql_log_used -a $HOSTADDRESS$ "$ARG1$" "$ARG2$" "$ARG3$" } define command { command_name check_nrpe_mssql_log_growths command_line $USER1$/check_nrpe -t 60 -H $HOSTADDRESS$ -p 5666 -c get_mssql_log_growth -a $HOSTADDRESS$ "$ARG1$" "$ARG2$" "$ARG3$" } Thanks & Regards, Ravi G ------------------------------------------------------------------------ ------ Automate Storage Tiering Simply Optimize IT performance and efficiency through flexible, powerful, automated storage tiering capabilities. View this brief to learn how you can reduce costs and improve performance. http://p.sf.net/sfu/dell-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 3817 bytes Desc: image001.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.png Type: image/png Size: 3787 bytes Desc: image002.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image004.png Type: image/png Size: 3787 bytes Desc: image004.png URL: -------------- next part -------------- ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From daniel.wittenberg.r0ko at statefarm.com Tue Nov 2 15:16:19 2010 From: daniel.wittenberg.r0ko at statefarm.com (Daniel Wittenberg) Date: Tue, 2 Nov 2010 07:16:19 -0700 Subject: hostgroup with no members - Enhancement In-Reply-To: <4CD01BB5.103@op5.se> References: <31B0FE0A1A8166409E9DF35C6DEECB2404EEE87E@WPSCV6MM.OPR.STATEFARM.ORG> <4CCFBEE1.3040007@op5.se> <31B0FE0A1A8166409E9DF35C6DEECB2404EEEC37@WPSCV6MM.OPR.STATEFARM.ORG> <4CD01BB5.103@op5.se> Message-ID: <31B0FE0A1A8166409E9DF35C6DEECB2404EEEC8B@WPSCV6MM.OPR.STATEFARM.ORG> Basically because all the backend files are controlled via puppet, to a number of nagios servers, but the actual host assignments are controlled by third-party package. So, the "base" configs about all the services are pushed to every server, and then the other tool determines the best "balance" of devices per nagios server. If that makes sense. So instead of maintaining service and hostgroup configs constantly across all the servers, I can push out one set of configs, and if there's a host pushed to that server which needs those configs, they are there and ready to go. That help? Dan -----Original Message----- From: Andreas Ericsson [mailto:ae at op5.se] Sent: Tuesday, November 02, 2010 9:10 AM To: Daniel Wittenberg Cc: Nagios Users List Subject: Re: [Nagios-users] hostgroup with no members - Enhancement On 11/02/2010 02:59 PM, Daniel Wittenberg wrote: > Ok, so this was a basic test, I have a GENERIC_PING check and it had the > fake host in there and was working fine, as soon as I removed it (so no > members defined): > > Error: Could not expand hostgroups and/or hosts specified in service > (config file '/etc/nagios/objects/services/GENERIC_PING.cfg', starting > on line 1) > > # cat /etc/nagios/objects/services/GENERIC_PING.cfg > define service{ > service_description GENERIC_PING > display_name Generic ping, typically used for parent > hosts > hostgroup_name GENERIC_PING > use generic-service > check_command check_ping!100.0,20%!500.0,60% > } > > define hostgroup{ > hostgroup_name GENERIC_PING > alias GENERIC_PING > } > > So is this a different problem then what you were looking at maybe ? > Yes. That's not just an empty hostgroup, but an empty hostgroup to which services are assigned. That's supposed to be an error. What's the reason for using empty hostgroups to assign services to? -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pangrazi at gmail.com Tue Nov 2 15:36:47 2010 From: pangrazi at gmail.com (Greg Pangrazio) Date: Tue, 2 Nov 2010 09:36:47 -0500 Subject: SQL-DB Services-Unknown Status In-Reply-To: <618F928F9E2D824AAB26DCAA0F25221F02CCD3BE@HYD-MKD-MBX02.wipro.com> References: <618F928F9E2D824AAB26DCAA0F25221F02CCD3BE@HYD-MKD-MBX02.wipro.com> Message-ID: I don't use this plugin, but it looks like it doesn't like the "*" between the first and second "!". That spot holds the sql query so try a real query that will return some rows like a select statement. Greg Pangrazio On Tue, Nov 2, 2010 at 9:13 AM, wrote: > Hi, > > I am using Nagios Version 3.0.6 on a Linux server to monitor the > SQL-DB-LOG-GROWTH and SQL-DB-LOG-USED on the Windows servers. > > For the many of the servers the status information is showing following > errors. Please see the screenshots below > > 1) UNKNOWN: No handler for that command > > 2) Unknown - * query: No row returned. > > 3) Unknown - No data received from WMI: > > > > I am using the following the check commands > > check_nrpe_mssql_log_used!*!50!90 > > check_nrpe_mssql_log_growths!*!5000!9000 > > > > Please someone let me know how can I resolve this. > > > > Please see the service definition and command definition which I am using > for SQL-DB-LOG-USED and SQL-DB-LOG-GROWTH. > > > > Request you to provide a clue on this. > > > > > > define service{ > > use generic-service ; Name of > service template to use > > host_name abcd > > service_description SQL-DB-LOG-USED > > is_volatile 0 > > check_period 24x7 > > max_check_attempts 3 > > normal_check_interval 5 > > retry_check_interval 1 > > contact_groups sql-admins > > notification_interval 0 > > notification_period 24x7 > > notification_options c,r > > check_command check_nrpe_mssql_log_used!*!50!90 > > } > > > > > > > > define service{ > > use generic-service ; Name of > service template to use > > host_name abcd > > service_description SQL-DB-LOG-GROWTH > > is_volatile 0 > > check_period 24x7 > > max_check_attempts 3 > > normal_check_interval 5 > > retry_check_interval 1 > > contact_groups sql-admins > > notification_interval 0 > > notification_period 24x7 > > notification_options c,r > > check_command > check_nrpe_mssql_log_growths!*!5000!9000 ; Log growth scale is 0.01 hence > 5000 and 9000 > > } > > > > > > define command { > > command_name check_nrpe_mssql_log_used > > command_line $USER1$/check_nrpe -t 60 -H > $HOSTADDRESS$ -p 5666 -c get_mssql_log_used -a $HOSTADDRESS$ "$ARG1$" > "$ARG2$" "$ARG3$" > > } > > > > > > define command { > > command_name > check_nrpe_mssql_log_growths > > command_line $USER1$/check_nrpe -t 60 -H > $HOSTADDRESS$ -p 5666 -c get_mssql_log_growth -a $HOSTADDRESS$ "$ARG1$" > "$ARG2$" "$ARG3$" > > } > > > > > > Thanks & Regards, > > *Ravi G* > > > > > > > > ------------------------------------------------------------------------------ > Automate Storage Tiering Simply > Optimize IT performance and efficiency through flexible, powerful, > automated storage tiering capabilities. View this brief to learn how > you can reduce costs and improve performance. > http://p.sf.net/sfu/dell-sfdev2dev > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > > > ------------------------------------------------------------------------------ > Nokia and AT&T present the 2010 Calling All Innovators-North America > contest > Create new apps & games for the Nokia N8 for consumers in U.S. and Canada > $10 million total in prizes - $4M cash, 500 devices, nearly $6M in > marketing > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store > http://p.sf.net/sfu/nokia-dev2dev > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image004.png Type: image/png Size: 3787 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.png Type: image/png Size: 3787 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 3817 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Tue Nov 2 15:42:55 2010 From: ae at op5.se (Andreas Ericsson) Date: Tue, 02 Nov 2010 15:42:55 +0100 Subject: hostgroup with no members - Enhancement In-Reply-To: <31B0FE0A1A8166409E9DF35C6DEECB2404EEEC8B@WPSCV6MM.OPR.STATEFARM.ORG> References: <31B0FE0A1A8166409E9DF35C6DEECB2404EEE87E@WPSCV6MM.OPR.STATEFARM.ORG> <4CCFBEE1.3040007@op5.se> <31B0FE0A1A8166409E9DF35C6DEECB2404EEEC37@WPSCV6MM.OPR.STATEFARM.ORG> <4CD01BB5.103@op5.se> <31B0FE0A1A8166409E9DF35C6DEECB2404EEEC8B@WPSCV6MM.OPR.STATEFARM.ORG> Message-ID: <4CD0236F.6040602@op5.se> On 11/02/2010 03:16 PM, Daniel Wittenberg wrote: > Basically because all the backend files are controlled via puppet, to a > number of nagios servers, but the actual host assignments are controlled > by third-party package. So, the "base" configs about all the services > are pushed to every server, and then the other tool determines the best > "balance" of devices per nagios server. If that makes sense. So > instead of maintaining service and hostgroup configs constantly across > all the servers, I can push out one set of configs, and if there's a > host pushed to that server which needs those configs, they are there and > ready to go. > > That help? > Yup. Fixing Nagios to handle this is a bit off my todo-list right now though, but as an autofix, have the init-script run a repair-script to sed out the offending services or hostgroups on the offending systems. I'd let Nagios do the heavy lifting if I was you and just surround each hostgroup with ##HGBEGIN_lalala define hostgroup { hostgroup_name lalala } ##HGEND_lalala to make sed'ing a bit easier. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ravishankar.gundlapali at wipro.com Tue Nov 2 15:50:09 2010 From: ravishankar.gundlapali at wipro.com (ravishankar.gundlapali at wipro.com) Date: Tue, 2 Nov 2010 20:20:09 +0530 Subject: SQL-DB Services-Unknown Status In-Reply-To: References: <618F928F9E2D824AAB26DCAA0F25221F02CCD3BE@HYD-MKD-MBX02.wipro.com> Message-ID: <618F928F9E2D824AAB26DCAA0F25221F02CCD3D9@HYD-MKD-MBX02.wipro.com> Hi , Please let me know which plugin I can use to resolve this issue. Also please let me know the query which I have to use. Thanks, Ravi G From: Greg Pangrazio [mailto:pangrazi at gmail.com] Sent: Tuesday, November 02, 2010 8:07 PM To: Nagios Users List Subject: Re: [Nagios-users] SQL-DB Services-Unknown Status I don't use this plugin, but it looks like it doesn't like the "*" between the first and second "!". That spot holds the sql query so try a real query that will return some rows like a select statement. Greg Pangrazio On Tue, Nov 2, 2010 at 9:13 AM, wrote: Hi, I am using Nagios Version 3.0.6 on a Linux server to monitor the SQL-DB-LOG-GROWTH and SQL-DB-LOG-USED on the Windows servers. For the many of the servers the status information is showing following errors. Please see the screenshots below 1) UNKNOWN: No handler for that command 2) Unknown - * query: No row returned. 3) Unknown - No data received from WMI: I am using the following the check commands check_nrpe_mssql_log_used!*!50!90 check_nrpe_mssql_log_growths!*!5000!9000 Please someone let me know how can I resolve this. Please see the service definition and command definition which I am using for SQL-DB-LOG-USED and SQL-DB-LOG-GROWTH. Request you to provide a clue on this. define service{ use generic-service ; Name of service template to use host_name abcd service_description SQL-DB-LOG-USED is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups sql-admins notification_interval 0 notification_period 24x7 notification_options c,r check_command check_nrpe_mssql_log_used!*!50!90 } define service{ use generic-service ; Name of service template to use host_name abcd service_description SQL-DB-LOG-GROWTH is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups sql-admins notification_interval 0 notification_period 24x7 notification_options c,r check_command check_nrpe_mssql_log_growths!*!5000!9000 ; Log growth scale is 0.01 hence 5000 and 9000 } define command { command_name check_nrpe_mssql_log_used command_line $USER1$/check_nrpe -t 60 -H $HOSTADDRESS$ -p 5666 -c get_mssql_log_used -a $HOSTADDRESS$ "$ARG1$" "$ARG2$" "$ARG3$" } define command { command_name check_nrpe_mssql_log_growths command_line $USER1$/check_nrpe -t 60 -H $HOSTADDRESS$ -p 5666 -c get_mssql_log_growth -a $HOSTADDRESS$ "$ARG1$" "$ARG2$" "$ARG3$" } Thanks & Regards, Ravi G ------------------------------------------------------------------------ ------ Automate Storage Tiering Simply Optimize IT performance and efficiency through flexible, powerful, automated storage tiering capabilities. View this brief to learn how you can reduce costs and improve performance. http://p.sf.net/sfu/dell-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------ ------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 3817 bytes Desc: image001.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.png Type: image/png Size: 3787 bytes Desc: image002.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.png Type: image/png Size: 3787 bytes Desc: image003.png URL: -------------- next part -------------- ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From daniel.wittenberg.r0ko at statefarm.com Tue Nov 2 15:56:21 2010 From: daniel.wittenberg.r0ko at statefarm.com (Daniel Wittenberg) Date: Tue, 2 Nov 2010 07:56:21 -0700 Subject: hostgroup with no members - Enhancement In-Reply-To: <4CD0236F.6040602@op5.se> References: <31B0FE0A1A8166409E9DF35C6DEECB2404EEE87E@WPSCV6MM.OPR.STATEFARM.ORG> <4CCFBEE1.3040007@op5.se> <31B0FE0A1A8166409E9DF35C6DEECB2404EEEC37@WPSCV6MM.OPR.STATEFARM.ORG> <4CD01BB5.103@op5.se> <31B0FE0A1A8166409E9DF35C6DEECB2404EEEC8B@WPSCV6MM.OPR.STATEFARM.ORG> <4CD0236F.6040602@op5.se> Message-ID: <31B0FE0A1A8166409E9DF35C6DEECB2404EEED9F@WPSCV6MM.OPR.STATEFARM.ORG> Maybe it could just be considered a warning and not a fatal error? I can ignore warnings :) Dan -----Original Message----- From: Andreas Ericsson [mailto:ae at op5.se] Sent: Tuesday, November 02, 2010 9:43 AM To: Daniel Wittenberg Cc: Nagios Users List Subject: Re: [Nagios-users] hostgroup with no members - Enhancement On 11/02/2010 03:16 PM, Daniel Wittenberg wrote: > Basically because all the backend files are controlled via puppet, to a > number of nagios servers, but the actual host assignments are controlled > by third-party package. So, the "base" configs about all the services > are pushed to every server, and then the other tool determines the best > "balance" of devices per nagios server. If that makes sense. So > instead of maintaining service and hostgroup configs constantly across > all the servers, I can push out one set of configs, and if there's a > host pushed to that server which needs those configs, they are there and > ready to go. > > That help? > Yup. Fixing Nagios to handle this is a bit off my todo-list right now though, but as an autofix, have the init-script run a repair-script to sed out the offending services or hostgroups on the offending systems. I'd let Nagios do the heavy lifting if I was you and just surround each hostgroup with ##HGBEGIN_lalala define hostgroup { hostgroup_name lalala } ##HGEND_lalala to make sed'ing a bit easier. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Tue Nov 2 16:11:52 2010 From: ae at op5.se (Andreas Ericsson) Date: Tue, 02 Nov 2010 16:11:52 +0100 Subject: hostgroup with no members - Enhancement In-Reply-To: <31B0FE0A1A8166409E9DF35C6DEECB2404EEED9F@WPSCV6MM.OPR.STATEFARM.ORG> References: <31B0FE0A1A8166409E9DF35C6DEECB2404EEE87E@WPSCV6MM.OPR.STATEFARM.ORG> <4CCFBEE1.3040007@op5.se> <31B0FE0A1A8166409E9DF35C6DEECB2404EEEC37@WPSCV6MM.OPR.STATEFARM.ORG> <4CD01BB5.103@op5.se> <31B0FE0A1A8166409E9DF35C6DEECB2404EEEC8B@WPSCV6MM.OPR.STATEFARM.ORG> <4CD0236F.6040602@op5.se> <31B0FE0A1A8166409E9DF35C6DEECB2404EEED9F@WPSCV6MM.OPR.STATEFARM.ORG> Message-ID: <4CD02A38.90508@op5.se> On 11/02/2010 03:56 PM, Daniel Wittenberg wrote: > Maybe it could just be considered a warning and not a fatal error? I > can ignore warnings :) > Yes and no. The code returns NULL for non-existing hostgroups referenced (which should remain an error) and NULL for existing hostgroups without member hosts. It needs to be changed to return an int and pass the data back as an out-argument, and I simply don't have time to do that just now. So yes, it could be considered an error, and no that won't happen in the foreseeable future unless someone else sends me a patch for it. I'd be delighted to apply such a patch if someone did though, and especially if it was configurable from nagios.cfg whether empty hostgroups referenced from services was an error or just a warning, with error enabled by default. The patch must not change the object layouts as defined in include/objects.h. Backwards compatibility is kinda boring to cater to, but it's necessary for projects as large as Nagios. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pangrazi at gmail.com Tue Nov 2 16:12:06 2010 From: pangrazi at gmail.com (Greg Pangrazio) Date: Tue, 2 Nov 2010 10:12:06 -0500 Subject: SQL-DB Services-Unknown Status In-Reply-To: <618F928F9E2D824AAB26DCAA0F25221F02CCD3D9@HYD-MKD-MBX02.wipro.com> References: <618F928F9E2D824AAB26DCAA0F25221F02CCD3BE@HYD-MKD-MBX02.wipro.com> <618F928F9E2D824AAB26DCAA0F25221F02CCD3D9@HYD-MKD-MBX02.wipro.com> Message-ID: Go ask your Database admin for a query that will return a few rows. I can't write the query for you I have no idea what your SQL schemas are or how your database is configured. Greg Pangrazio On Tue, Nov 2, 2010 at 9:50 AM, wrote: > Hi , > > > > Please let me know which plugin I can use to resolve this issue. > > > > Also please let me know the query which I have to use. > > > > Thanks, > > Ravi G > > > > *From:* Greg Pangrazio [mailto:pangrazi at gmail.com] > *Sent:* Tuesday, November 02, 2010 8:07 PM > *To:* Nagios Users List > *Subject:* Re: [Nagios-users] SQL-DB Services-Unknown Status > > > > I don't use this plugin, but it looks like it doesn't like the "*" between > the first and second "!". That spot holds the sql query so try a real query > that will return some rows like a select statement. > > Greg Pangrazio > > > On Tue, Nov 2, 2010 at 9:13 AM, wrote: > > Hi, > > I am using Nagios Version 3.0.6 on a Linux server to monitor the > SQL-DB-LOG-GROWTH and SQL-DB-LOG-USED on the Windows servers. > > For the many of the servers the status information is showing following > errors. Please see the screenshots below > > 1) UNKNOWN: No handler for that command > > 2) Unknown - * query: No row returned. > > 3) Unknown - No data received from WMI: > > > > I am using the following the check commands > > check_nrpe_mssql_log_used!*!50!90 > > check_nrpe_mssql_log_growths!*!5000!9000 > > > > Please someone let me know how can I resolve this. > > > > Please see the service definition and command definition which I am using > for SQL-DB-LOG-USED and SQL-DB-LOG-GROWTH. > > > > Request you to provide a clue on this. > > > > > > define service{ > > use generic-service ; Name of > service template to use > > host_name abcd > > service_description SQL-DB-LOG-USED > > is_volatile 0 > > check_period 24x7 > > max_check_attempts 3 > > normal_check_interval 5 > > retry_check_interval 1 > > contact_groups sql-admins > > notification_interval 0 > > notification_period 24x7 > > notification_options c,r > > check_command check_nrpe_mssql_log_used!*!50!90 > > } > > > > > > > > define service{ > > use generic-service ; Name of > service template to use > > host_name abcd > > service_description SQL-DB-LOG-GROWTH > > is_volatile 0 > > check_period 24x7 > > max_check_attempts 3 > > normal_check_interval 5 > > retry_check_interval 1 > > contact_groups sql-admins > > notification_interval 0 > > notification_period 24x7 > > notification_options c,r > > check_command > check_nrpe_mssql_log_growths!*!5000!9000 ; Log growth scale is 0.01 hence > 5000 and 9000 > > } > > > > > > define command { > > command_name check_nrpe_mssql_log_used > > command_line $USER1$/check_nrpe -t 60 -H > $HOSTADDRESS$ -p 5666 -c get_mssql_log_used -a $HOSTADDRESS$ "$ARG1$" > "$ARG2$" "$ARG3$" > > } > > > > > > define command { > > command_name > check_nrpe_mssql_log_growths > > command_line $USER1$/check_nrpe -t 60 -H > $HOSTADDRESS$ -p 5666 -c get_mssql_log_growth -a $HOSTADDRESS$ "$ARG1$" > "$ARG2$" "$ARG3$" > > } > > > > > > Thanks & Regards, > > *Ravi G* > > > > > > > > ------------------------------------------------------------------------------ > Automate Storage Tiering Simply > Optimize IT performance and efficiency through flexible, powerful, > automated storage tiering capabilities. View this brief to learn how > you can reduce costs and improve performance. > http://p.sf.net/sfu/dell-sfdev2dev > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > > > > ------------------------------------------------------------------------------ > Nokia and AT&T present the 2010 Calling All Innovators-North America > contest > Create new apps & games for the Nokia N8 for consumers in U.S. and Canada > $10 million total in prizes - $4M cash, 500 devices, nearly $6M in > marketing > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store > http://p.sf.net/sfu/nokia-dev2dev > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > > * Please do not print this email unless it is absolutely necessary. * > > The information contained in this electronic message and any attachments to > this message are intended for the exclusive use of the addressee(s) and may > contain proprietary, confidential or privileged information. If you are not > the intended recipient, you should not disseminate, distribute or copy this > e-mail. Please notify the sender immediately and destroy all copies of this > message and any attachments. > > WARNING: Computer viruses can be transmitted via email. The recipient > should check this email and any attachments for the presence of viruses. The > company accepts no liability for any damage caused by any virus transmitted > by this email. > > www.wipro.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 3817 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.png Type: image/png Size: 3787 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.png Type: image/png Size: 3787 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fredrik at barrud.se Tue Nov 2 15:52:14 2010 From: fredrik at barrud.se (Fredrik Barrud) Date: Tue, 2 Nov 2010 15:52:14 +0100 Subject: hostgroup with no members - Enhancement In-Reply-To: <4CD01BB5.103@op5.se> References: <31B0FE0A1A8166409E9DF35C6DEECB2404EEE87E@WPSCV6MM.OPR.STATEFARM.ORG> <4CCFBEE1.3040007@op5.se> <31B0FE0A1A8166409E9DF35C6DEECB2404EEEC37@WPSCV6MM.OPR.STATEFARM.ORG> <4CD01BB5.103@op5.se> Message-ID: Hi, I would also like to be able to create empty hostgroups with services assigned. The reason for this is that I've setup a nagios installation for a customer where a host is only member to one hostgroup to inherit services from other hostgroups, like all->windows->citrix->server and for a few special servertypes I would like to prepare the chain with hostgroup and services so that when the servers are ready to be monitored everything is prepared and the servers only needs to be added to the apropriate hostgroup. Best regards, Fredrik Barrud On 2 nov 2010, at 15.09, Andreas Ericsson wrote: > On 11/02/2010 02:59 PM, Daniel Wittenberg wrote: >> Ok, so this was a basic test, I have a GENERIC_PING check and it had the >> fake host in there and was working fine, as soon as I removed it (so no >> members defined): >> >> Error: Could not expand hostgroups and/or hosts specified in service >> (config file '/etc/nagios/objects/services/GENERIC_PING.cfg', starting >> on line 1) >> >> # cat /etc/nagios/objects/services/GENERIC_PING.cfg >> define service{ >> service_description GENERIC_PING >> display_name Generic ping, typically used for parent >> hosts >> hostgroup_name GENERIC_PING >> use generic-service >> check_command check_ping!100.0,20%!500.0,60% >> } >> >> define hostgroup{ >> hostgroup_name GENERIC_PING >> alias GENERIC_PING >> } >> >> So is this a different problem then what you were looking at maybe ? >> > > Yes. That's not just an empty hostgroup, but an empty hostgroup to > which services are assigned. That's supposed to be an error. What's > the reason for using empty hostgroups to assign services to? > > -- > Andreas Ericsson andreas.ericsson at 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. > > ------------------------------------------------------------------------------ > Nokia and AT&T present the 2010 Calling All Innovators-North America contest > Create new apps & games for the Nokia N8 for consumers in U.S. and Canada > $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store > http://p.sf.net/sfu/nokia-dev2dev > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From maxs at webwizarddesign.com Tue Nov 2 16:50:03 2010 From: maxs at webwizarddesign.com (Max Schubert) Date: Tue, 2 Nov 2010 11:50:03 -0400 Subject: hostgroup with no members - Enhancement In-Reply-To: References: <31B0FE0A1A8166409E9DF35C6DEECB2404EEE87E@WPSCV6MM.OPR.STATEFARM.ORG> <4CCFBEE1.3040007@op5.se> <31B0FE0A1A8166409E9DF35C6DEECB2404EEEC37@WPSCV6MM.OPR.STATEFARM.ORG> <4CD01BB5.103@op5.se> Message-ID: On Tue, Nov 2, 2010 at 10:52 AM, Fredrik Barrud wrote: > Hi, > > I would also like to be able to create empty hostgroups with services assigned. > > The reason for this is that I've setup a nagios installation for a customer where a host is only member to one hostgroup to inherit services from other hostgroups, like all->windows->citrix->server and for a few special servertypes I would like to prepare the chain with hostgroup and services so that when the servers are ready to be monitored everything is prepared and the servers only needs to be added to the apropriate hostgroup. We have a local patch to turn the error into a warning, patched against 3.2.0 - we needed this because we have customers who can use host -> hostgroup -> N related services mappings but we do not control their configs, we only define the global service sets - so we could not have this be fatal and fail everyone's changes just because one customer stopped using the mapping. We have been using this patch in production for a year without issues. To apply: 1) Put patch in top level source directory 2) patch -p0 < name-of-patch - Max -------------- next part -------------- A non-text attachment was scrubbed... Name: 20101026171548-allow_empty_hostgroups.patch Type: application/octet-stream Size: 3335 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From maxs at webwizarddesign.com Tue Nov 2 16:54:32 2010 From: maxs at webwizarddesign.com (Max Schubert) Date: Tue, 2 Nov 2010 11:54:32 -0400 Subject: hostgroup with no members - Enhancement In-Reply-To: References: <31B0FE0A1A8166409E9DF35C6DEECB2404EEE87E@WPSCV6MM.OPR.STATEFARM.ORG> <4CCFBEE1.3040007@op5.se> <31B0FE0A1A8166409E9DF35C6DEECB2404EEEC37@WPSCV6MM.OPR.STATEFARM.ORG> <4CD01BB5.103@op5.se> Message-ID: To activate the downgrade from error to warning, put allow_empty_hostgroups = 1 in your nagios.cfg after compiling Nagios with the patch in place. - Max ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From michael.friedrich at univie.ac.at Tue Nov 2 18:01:43 2010 From: michael.friedrich at univie.ac.at (Michael Friedrich) Date: Tue, 02 Nov 2010 18:01:43 +0100 Subject: hostgroup with no members - Enhancement In-Reply-To: References: <31B0FE0A1A8166409E9DF35C6DEECB2404EEE87E@WPSCV6MM.OPR.STATEFARM.ORG> <4CCFBEE1.3040007@op5.se> <31B0FE0A1A8166409E9DF35C6DEECB2404EEEC37@WPSCV6MM.OPR.STATEFARM.ORG> <4CD01BB5.103@op5.se> Message-ID: <4CD043F7.9040905@univie.ac.at> On 02.11.2010 16:50, Max Schubert wrote: > We have a local patch to turn the error into a warning, patched > against 3.2.0 - we needed this because we have customers who can use > host -> hostgroup -> N related services mappings but we do not control > their configs, we only define the global service sets - so we could > not have this be fatal and fail everyone's changes just because one > customer stopped using the mapping. > > We have been using this patch in production for a year without issues. Nice thanks :) Kind regards, Michael ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Tue Nov 2 18:55:54 2010 From: ae at op5.se (Andreas Ericsson) Date: Tue, 02 Nov 2010 18:55:54 +0100 Subject: hostgroup with no members - Enhancement In-Reply-To: References: <31B0FE0A1A8166409E9DF35C6DEECB2404EEE87E@WPSCV6MM.OPR.STATEFARM.ORG> <4CCFBEE1.3040007@op5.se> <31B0FE0A1A8166409E9DF35C6DEECB2404EEEC37@WPSCV6MM.OPR.STATEFARM.ORG> <4CD01BB5.103@op5.se> Message-ID: <4CD050AA.6000709@op5.se> On 11/02/2010 04:54 PM, Max Schubert wrote: > To activate the downgrade from error to warning, put > > allow_empty_hostgroups = 1 > > in your nagios.cfg after compiling Nagios with the patch in place. > Neato. I'll apply and push it out tomorrow. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From daniel.wittenberg.r0ko at statefarm.com Tue Nov 2 19:31:24 2010 From: daniel.wittenberg.r0ko at statefarm.com (Daniel Wittenberg) Date: Tue, 2 Nov 2010 11:31:24 -0700 Subject: hostgroup with no members - Enhancement In-Reply-To: <4CD050AA.6000709@op5.se> References: <31B0FE0A1A8166409E9DF35C6DEECB2404EEE87E@WPSCV6MM.OPR.STATEFARM.ORG> <4CCFBEE1.3040007@op5.se> <31B0FE0A1A8166409E9DF35C6DEECB2404EEEC37@WPSCV6MM.OPR.STATEFARM.ORG> <4CD01BB5.103@op5.se> <4CD050AA.6000709@op5.se> Message-ID: <31B0FE0A1A8166409E9DF35C6DEECB2404EEF0DE@WPSCV6MM.OPR.STATEFARM.ORG> Very cool, look forward to using it! Dan -----Original Message----- From: Andreas Ericsson [mailto:ae at op5.se] Sent: Tuesday, November 02, 2010 12:56 PM To: Nagios Users List Subject: Re: [Nagios-users] hostgroup with no members - Enhancement On 11/02/2010 04:54 PM, Max Schubert wrote: > To activate the downgrade from error to warning, put > > allow_empty_hostgroups = 1 > > in your nagios.cfg after compiling Nagios with the patch in place. > Neato. I'll apply and push it out tomorrow. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------ ------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Nov 3 12:08:06 2010 From: ae at op5.se (Andreas Ericsson) Date: Wed, 03 Nov 2010 12:08:06 +0100 Subject: hostgroup with no members - Enhancement In-Reply-To: References: <31B0FE0A1A8166409E9DF35C6DEECB2404EEE87E@WPSCV6MM.OPR.STATEFARM.ORG> <4CCFBEE1.3040007@op5.se> <31B0FE0A1A8166409E9DF35C6DEECB2404EEEC37@WPSCV6MM.OPR.STATEFARM.ORG> <4CD01BB5.103@op5.se> Message-ID: <4CD14296.1030400@op5.se> On 11/02/2010 04:54 PM, Max Schubert wrote: > > allow_empty_hostgroups = 1 > I'll take this, but rename the option to something more mnemonic, as empty hostgroups are already allowed and it's a bit ambiguous what it means. Any chance you could re-roll the patch against latest CVS head and include a brief documentation update? Name the var "allow_empty_hostgroups" in the docs so I can find it when I sed it in. If you want any special attributions (company or person thanks, beyond the addition of your name to the THANKS file and your name and email in the commit log message), let me know. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Achieve Improved Network Security with IP and DNS Reputation. Defend against bad network traffic, including botnets, malware, phishing sites, and compromised hosts - saving your company time, money, and embarrassment. Learn More! http://p.sf.net/sfu/hpdev2dev-nov _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From maxs at webwizarddesign.com Wed Nov 3 13:03:50 2010 From: maxs at webwizarddesign.com (Max Schubert) Date: Wed, 3 Nov 2010 08:03:50 -0400 Subject: hostgroup with no members - Enhancement In-Reply-To: <4CD14296.1030400@op5.se> References: <31B0FE0A1A8166409E9DF35C6DEECB2404EEE87E@WPSCV6MM.OPR.STATEFARM.ORG> <4CCFBEE1.3040007@op5.se> <31B0FE0A1A8166409E9DF35C6DEECB2404EEEC37@WPSCV6MM.OPR.STATEFARM.ORG> <4CD01BB5.103@op5.se> <4CD14296.1030400@op5.se> Message-ID: Will do my best to do this this week - if I don't get to it this week I will forget about it for sure, all the patches our team has done to make Nagios (some very very specific to our env) work for us will be available on our team github account; will do my best to get that updated this week as well and post that url along with the patch / docs to this list or I will forget to do that for another few months too. Max On 11/3/10, Andreas Ericsson wrote: > On 11/02/2010 04:54 PM, Max Schubert wrote: >> >> allow_empty_hostgroups = 1 >> > > I'll take this, but rename the option to something more mnemonic, as > empty hostgroups are already allowed and it's a bit ambiguous what it > means. > > Any chance you could re-roll the patch against latest CVS head and > include a brief documentation update? Name the var "allow_empty_hostgroups" > in the docs so I can find it when I sed it in. > > If you want any special attributions (company or person thanks, beyond > the addition of your name to the THANKS file and your name and email in > the commit log message), let me know. > > > -- > Andreas Ericsson andreas.ericsson at 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. > ------------------------------------------------------------------------------ Achieve Improved Network Security with IP and DNS Reputation. Defend against bad network traffic, including botnets, malware, phishing sites, and compromised hosts - saving your company time, money, and embarrassment. Learn More! http://p.sf.net/sfu/hpdev2dev-nov _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ampranti at gmail.com Thu Nov 4 08:54:34 2010 From: ampranti at gmail.com (Andreas Brandino) Date: Thu, 4 Nov 2010 09:54:34 +0200 Subject: NSCA - Status is changing after 10 seconds to OK Message-ID: Hi all, I am trying to configure nagios with NSCA. NSCA is successfully receiving the messages (sent with send_nsca), updates the services state and the message info. The problem is that after 10 seconds, the service is returning to "OK" state; in the meantime I haven't send any other messages. How can I make the service keep that last state until it receives a new message? The definition of the services I am using follows: define service{ use generic-service name passive-service active_checks_enabled 0 passive_checks_enabled 1 register 0 is_volatile 0 check_period 24x7 max_check_attempts 1 normal_check_interval 5 retry_check_interval 1 check_freshness 0 freshness_threshold 5 contact_groups admins check_command check_dummy!0 notification_interval 120 notification_period 24x7 notification_options w,u,c,r } define service{ use passive-service service_description TestMessage10 host_name NMS register 1 contact_groups admins check_freshness 1 freshness_threshold 60 check_period 24x7 } Thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mark.elsen at gmail.com Thu Nov 4 09:18:33 2010 From: mark.elsen at gmail.com (Mark Elsen) Date: Thu, 4 Nov 2010 09:18:33 +0100 Subject: NSCA - Status is changing after 10 seconds to OK In-Reply-To: References: Message-ID: > Hi all, > > I am trying to configure nagios with NSCA. > NSCA is successfully receiving? the messages (sent with send_nsca), updates > the services state and the message info. > The problem is that after 10 seconds, the service is returning to "OK" > state; in the meantime I haven't send any other messages. > >.... Make sure that no new state info arrived from the remote nsca sender, check the NAGIOS event log,for details M. ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ampranti at gmail.com Thu Nov 4 09:30:03 2010 From: ampranti at gmail.com (Brandino Andreas) Date: Thu, 4 Nov 2010 10:30:03 +0200 Subject: NSCA - Status is changing after 10 seconds to OK In-Reply-To: References: Message-ID: <1798625003.20101104103003@gmail.com> Thursday, November 4, 2010, 10:18:33 AM, you wrote: >> Hi all, >> >> I am trying to configure nagios with NSCA. >> NSCA is successfully receiving? the messages (sent with send_nsca), updates >> the services state and the message info. >> The problem is that after 10 seconds, the service is returning to "OK" >> state; in the meantime I haven't send any other messages. >> >>.... > Make sure that no new state info arrived from the remote nsca sender, > check the NAGIOS event log,for > details > M. Its a test environment, only I am sending test messages to NSCA service. Event log is not showing a new received message... > ------------------------------------------------------------------------------ > The Next 800 Companies to Lead America's Growth: New Video Whitepaper > David G. Thomson, author of the best-selling book "Blueprint to a > Billion" shares his insights and actions to help propel your > business during the next growth cycle. Listen Now! > http://p.sf.net/sfu/SAP-dev2dev > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null <> --- - - - --- <> Brandino Andreas ampranti at gmail.com <> --- - - - --- <> ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nagios at flatto.net Thu Nov 4 14:44:56 2010 From: nagios at flatto.net (Assaf Flatto) Date: Thu, 04 Nov 2010 13:44:56 +0000 Subject: NSCA - Status is changing after 10 seconds to OK In-Reply-To: <1798625003.20101104103003@gmail.com> References: <1798625003.20101104103003@gmail.com> Message-ID: <4CD2B8D8.4060002@flatto.net> On 04/11/10 08:30, Brandino Andreas wrote: > > > Thursday, November 4, 2010, 10:18:33 AM, you wrote: > >>> Hi all, >>> >>> I am trying to configure nagios with NSCA. >>> NSCA is successfully receiving the messages (sent with send_nsca), updates >>> the services state and the message info. >>> The problem is that after 10 seconds, the service is returning to "OK" >>> state; in the meantime I haven't send any other messages. >>> >>> .... >>> Its a test environment, only I am sending test messages to NSCA >>> service. Event log is not showing a new received message... Make sure that the nagios server is considering the check as passive and not trying to actively check it also . I've had this when both the nagios master and the remote server were checking a service and thus providing conflicting data. Assaf -- Never,Ever Cut A Deal With a Dragon Next year I will be doing the London to Paris bike ride to raise money for the DogTrust (www.dogstrust.co.uk) . Please Sponsor me at http://www.justgiving.com/Assaf-Flatto ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From phil_g at pobox.com Thu Nov 4 16:18:47 2010 From: phil_g at pobox.com (Phil! Gold) Date: Thu, 4 Nov 2010 11:18:47 -0400 Subject: hostgroup-defined services with notifications defined by other hostgroups? Message-ID: <20101104151846.GB10019@aperiodic.net> I'm sure this is something other people have wanted to do, but I must not be hitting the right combination of search terms when looking for it. I have a bunch of servers for which I'm using hostgroups to manage their monitored services. In other words, there's a set of standard service checks for Windows servers, another set of standard checks for Linux servers, and so on. I then have subgroups for the hosts at each site: Windows servers at site 1, Windows servers at site 2, and so on. I'd like to be able to use the site groups to determine who gets notifications for service failures while only defining the services once. Is this possible? I suppose I could make something work by hacking with user macros and some custom notification commands that make their own decisions about whether to send the emails (or whatever), but I'd rather work within Nagios' structure. Is my only option to define a separate set of services for each site's hostgroups? -- ...computer contrarian of the first order... / http://aperiodic.net/phil/ PGP: 026A27F2 print: D200 5BDB FC4B B24A 9248 9F7A 4322 2D22 026A 27F2 --- -- "I was talking aloud to myself. A habit of the old: they choose the wisest person present to speak to; the long explanations needed by the young are wearying." -- _The Lord of the Rings_, J. R. R. Tolkien ---- --- -- ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nagios at flatto.net Thu Nov 4 17:06:26 2010 From: nagios at flatto.net (Assaf Flatto) Date: Thu, 04 Nov 2010 16:06:26 +0000 Subject: hostgroup-defined services with notifications defined by other hostgroups? In-Reply-To: <20101104151846.GB10019@aperiodic.net> References: <20101104151846.GB10019@aperiodic.net> Message-ID: <4CD2DA02.3060306@flatto.net> On 04/11/10 15:18, Phil! Gold wrote: > I'm sure this is something other people have wanted to do, but I must not > be hitting the right combination of search terms when looking for it. > > I have a bunch of servers for which I'm using hostgroups to manage their > monitored services. In other words, there's a set of standard service > checks for Windows servers, another set of standard checks for Linux > servers, and so on. I then have subgroups for the hosts at each site: > Windows servers at site 1, Windows servers at site 2, and so on. I'd like > to be able to use the site groups to determine who gets notifications for > service failures while only defining the services once. Is this possible? > > I suppose I could make something work by hacking with user macros and some > custom notification commands that make their own decisions about whether > to send the emails (or whatever), but I'd rather work within Nagios' > structure. Is my only option to define a separate set of services for > each site's hostgroups? > i think you can do this with two service templates . define service{ name windows_site2_service use generic_service contact_groups site2_admins register 0 } define service{ name windows_site1_service use generic_service contact_groups site1_admins register 0 } and then you define the service once for each group using that template . Assaf -- Never,Ever Cut A Deal With a Dragon Next year I will be doing the London to Paris bike ride to raise money for the DogTrust (www.dogstrust.co.uk) . Please Sponsor me at http://www.justgiving.com/Assaf-Flatto ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ampranti at gmail.com Thu Nov 4 22:38:14 2010 From: ampranti at gmail.com (Brandino Andreas) Date: Thu, 4 Nov 2010 23:38:14 +0200 Subject: NSCA - Status is changing after 10 seconds to OK In-Reply-To: References: <1798625003.20101104103003@gmail.com> Message-ID: <11710263187.20101104233814@gmail.com> The message appearing in the "Status Information" when service is again green and "OK" is a simple "OK" !!! Thursday, November 4, 2010, 11:34:05 AM, you wrote: >>... >>... >> >> Its ?a ?test ?environment, ?only ?I ?am ?sending test messages to NSCA >> service. Event log is not showing a new received message... >> > Which message string is displayed in the 'Status information' , row, > for the particular > service when it is being set to OK again ? > M. <> --- - - - --- <> Brandino Andreas ampranti at gmail.com <> --- - - - --- <> ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lists at xodus.org Fri Nov 5 03:59:01 2010 From: lists at xodus.org (Marc Powell) Date: Thu, 4 Nov 2010 21:59:01 -0500 Subject: NSCA - Status is changing after 10 seconds to OK In-Reply-To: <11710263187.20101104233814@gmail.com> References: <1798625003.20101104103003@gmail.com> <11710263187.20101104233814@gmail.com> Message-ID: <5EF57E96-B336-4289-8C0C-9E04D535D52F@xodus.org> On Nov 4, 2010, at 4:38 PM, Brandino Andreas wrote: > The message appearing in the "Status Information" when service is > again green and "OK" is a simple "OK" !!! Were you previously testing something that gave that message? Freshness checks or active checks perhaps? Do you have multiple nagios daemons running at the same time, one running with the old config and one with the new? They'd both write to the same status file so you'd see results like this. -- Marc ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rutger at blokje.net Fri Nov 5 10:44:45 2010 From: rutger at blokje.net (Rutger Blom) Date: Fri, 5 Nov 2010 10:44:45 +0100 Subject: SMS Foxbox Message-ID: Hello list, I was wondering if any of you have experience with using the SMS Foxbox and Nagios? Are you satisfied with the product? Is there any other solution you would recommend instead? http://www.nagios.org/products/notification/foxbox/ /Rutger -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ampranti at gmail.com Fri Nov 5 14:45:22 2010 From: ampranti at gmail.com (Brandino Andreas) Date: Fri, 5 Nov 2010 15:45:22 +0200 Subject: NSCA - Status is changing after 10 seconds to OK In-Reply-To: <5EF57E96-B336-4289-8C0C-9E04D535D52F@xodus.org> References: <1798625003.20101104103003@gmail.com> <11710263187.20101104233814@gmail.com> <5EF57E96-B336-4289-8C0C-9E04D535D52F@xodus.org> Message-ID: <1581673112.20101105154522@gmail.com> Friday, November 5, 2010, 4:59:01 AM, you wrote: > On Nov 4, 2010, at 4:38 PM, Brandino Andreas wrote: >> The message appearing in the "Status Information" when service is >> again green and "OK" is a simple "OK" !!! > Were you previously testing something that gave that message? > Freshness checks or active checks perhaps? Do you have multiple > nagios daemons running at the same time, one running with the old > config and one with the new? They'd both write to the same status > file so you'd see results like this. > -- > Marc I have defined by mistake freshness checks to final (TestMessage10) service definition. The full definition of the service that finally seems to work is: define service{ name generic-service active_checks_enabled 1 passive_checks_enabled 1 parallelize_check 1 obsess_over_service 1 check_freshness 0 notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 1 failure_prediction_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 10 retry_check_interval 2 contact_groups admins notification_options w,u,c,r notification_interval 60 notification_period 24x7 register 0 } define service{ use generic-service name passive-service active_checks_enabled 0 passive_checks_enabled 1 register 0 is_volatile 0 max_check_attempts 1 check_freshness 0 check_command check_dummy!0 } define service{ use passive-service service_description TestMessage10 host_name NMS register 1 flap_detection_enabled 0 contact_groups admins check_period 24x7 notification_interval 240 notification_period 24x7 notification_options w,u,c,r } Thank you for the help > ------------------------------------------------------------------------------ > The Next 800 Companies to Lead America's Growth: New Video Whitepaper > David G. Thomson, author of the best-selling book "Blueprint to a > Billion" shares his insights and actions to help propel your > business during the next growth cycle. Listen Now! > http://p.sf.net/sfu/SAP-dev2dev > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null <> --- - - - --- <> Brandino Andreas ampranti at gmail.com <> --- - - - --- <> ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chrishudson at gmail.com Fri Nov 5 17:21:57 2010 From: chrishudson at gmail.com (Chris Hudson) Date: Fri, 5 Nov 2010 11:21:57 -0500 Subject: Nagios training? In-Reply-To: References: <4CCAD540.7030007@flatto.net> Message-ID: Thanks Steve, I am asking my boss to pick that one up. --Chris On Fri, Oct 29, 2010 at 9:49 AM, steve f wrote: > if you have not yet picked it up, I would recommend getting Learning Nagios > 3.0 ( assuming you are using 3.0 ) by Wojciech Kocjan. Has clarified alot ( > but not all ) questions I have. > > Steve > > ------------------------------ > Date: Fri, 29 Oct 2010 09:15:01 -0500 > From: chrishudson at gmail.com > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Nagios training? > > > Well yes, that is what I am currently doing (grin). Just wanted to see if > anyone knew of anything a bit more structured. :-) > > Thanks, > Chris > > > > On Fri, Oct 29, 2010 at 9:08 AM, Assaf Flatto wrote: > > I was unaware that such a thing exist , most of us just read the > documentation , buy a book and muck about and learn it as we go along ( > oh, and "annoy" the other members of the group for help :-) ). > > > Assaf > > > On 29/10/10 14:57, Chris Hudson wrote: > > My employer has ok'ed me getting Nagios training, and has told me that > > web-based training is preferred. Anyone have any suggestions for good > > Nagios training courses? > > Thanks, > > Chris > > > > -- > Never,Ever Cut A Deal With a Dragon > > > Next year I will be doing the London to Paris bike ride to > raise money for the DogTrust (www.dogstrust.co.uk) . > Please Sponsor me at http://www.justgiving.com/Assaf-Flatto > > > > ------------------------------------------------------------------------------ > Nokia and AT&T present the 2010 Calling All Innovators-North America > contest > Create new apps & games for the Nokia N8 for consumers in U.S. and Canada > $10 million total in prizes - $4M cash, 500 devices, nearly $6M in > marketing > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store > http://p.sf.net/sfu/nokia-dev2dev > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > > ------------------------------------------------------------------------------ > Nokia and AT&T present the 2010 Calling All Innovators-North America contest > Create new apps & games for the Nokia N8 for consumers in U.S. and Canada > $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store > http://p.sf.net/sfu/nokia-dev2dev > > _______________________________________________ Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please > include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > ------------------------------------------------------------------------------ > Nokia and AT&T present the 2010 Calling All Innovators-North America > contest > Create new apps & games for the Nokia N8 for consumers in U.S. and Canada > $10 million total in prizes - $4M cash, 500 devices, nearly $6M in > marketing > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store > http://p.sf.net/sfu/nokia-dev2dev > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rt at ragweed.net Fri Nov 5 20:49:02 2010 From: rt at ragweed.net (RT) Date: Fri, 5 Nov 2010 14:49:02 -0500 Subject: Exit code for NRPE connection refused? Message-ID: Using: Nagios Version 3.2.2 Can check_nrpe be convinced (or hacked) to exit UNKNOWN rather than CRITICAL on `Connection Refused`? Is there a way to accomplish this without having to modify check_nrpe's source directly? Currently, NRPE returns 2 for `Connection Refused` as well as `Not defined`. In my particular use case, neither of these are considered Critical but rather Unknown. Thank you for your assistance. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rt at ragweed.net Fri Nov 5 20:51:48 2010 From: rt at ragweed.net (RT) Date: Fri, 5 Nov 2010 14:51:48 -0500 Subject: Changing behavior of check-host-alive? Message-ID: Using: Nagios 3.2.2. By default, Nagios considers a host down if it is unreachable by ICMP. From what I understand, if a host is unreachable, then further notifications for the host are disabled. We have a hostgroup that is always reachable by ICMP (the hosts are usually exhausted of memory and hard-lock) and should only be considered "down" if SSH isn't available. The desired behavior would be to suppress all other notifications for the host if SSH is unreachable. Is this accomplished by altering the 'check_command check-host-alive' within the host template and creating a new 'check-host-by-ssh' command in the Command Definitions? Thank you for your help. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rt at ragweed.net Fri Nov 5 20:54:45 2010 From: rt at ragweed.net (RT) Date: Fri, 5 Nov 2010 14:54:45 -0500 Subject: Replacing check_ssh with check_by_ssh? Message-ID: Currently, check_ssh appears to only check for a banner/listening port. Would a more proper check be to use check_by_ssh to execute say, `/bin/true` for example? # check_by_ssh -H {host} -C /bin/true -l {nagiosuser} Has anyone on the list done this and had good results? Thank you, -RT -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rt at ragweed.net Fri Nov 5 21:00:26 2010 From: rt at ragweed.net (RT) Date: Fri, 5 Nov 2010 15:00:26 -0500 Subject: Host dependencies on large deployment? Message-ID: Using: Nagios 3.2.2. I have a number of hosts (actually hundreds), each running a few services as well as SSH. For Host A, I'd like for all other notifications on Host A to be disabled when SSH on Host A is critical. I would like to have the same behavior apply for Hosts B-Z, each dependent on their own locally-running SSH. In order to do this, does one have to generate a 'servicedependency' definition for each service on every single host? While I appreciate the effort put into the first image here ( http://nagios.sourceforge.net/docs/3_0/dependencies.html), I was a bit confused by it. For example, for each host: define servicedependency{ host_name Host A service_description Load Average dependent_service_description SSH Service } define servicedependency{ host_name Host A service_description Disk Usage dependent_service_description SSH Service } Is this the correct syntax? define servicedependency{ host_name Host A service_description Load Average dependent_service_description SSH Service } Is there any way to do something like the following, as a shortcut to the above? define servicedependency{ hostgroup_name ^rack-[A-Z][0-9]$ service_description Load Average dependent_service_description SSH Service } I'd like to avoid having an exceptionally complex Nagios configuration and use templating as much as possible. Thanks for any suggestions anyone might have to offer. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rutger at blokje.net Fri Nov 5 21:09:21 2010 From: rutger at blokje.net (Rutger Blom) Date: Fri, 5 Nov 2010 21:09:21 +0100 Subject: Changing behavior of check-host-alive? In-Reply-To: References: Message-ID: That sounds like the correct way of doing it. /Rutger On Fri, Nov 5, 2010 at 8:51 PM, RT wrote: > Using: Nagios 3.2.2. > > By default, Nagios considers a host down if it is unreachable by ICMP. From > what I understand, if a host is unreachable, then further notifications for > the host are disabled. > > We have a hostgroup that is always reachable by ICMP (the hosts are usually > exhausted of memory and hard-lock) and should only be considered "down" if > SSH isn't available. The desired behavior would be to suppress all other > notifications for the host if SSH is unreachable. > > Is this accomplished by altering the 'check_command check-host-alive' > within the host template and creating a new 'check-host-by-ssh' command in > the Command Definitions? > > Thank you for your help. > > > ------------------------------------------------------------------------------ > The Next 800 Companies to Lead America's Growth: New Video Whitepaper > David G. Thomson, author of the best-selling book "Blueprint to a > Billion" shares his insights and actions to help propel your > business during the next growth cycle. Listen Now! > http://p.sf.net/sfu/SAP-dev2dev > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Rutger Blom Luzernv?gen 14 227 38 LUND Sweden Tel. +46 763 46 99 44 www.rutgerblom.com about.me/rutgerblom -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jwiggins at salon.com Sat Nov 6 01:30:48 2010 From: jwiggins at salon.com (Jonathan Wiggins) Date: Fri, 5 Nov 2010 17:30:48 -0700 Subject: Change "Procs Critical" threshold Message-ID: <311029F2-8E8F-49DF-9A3F-E22465BF4233@salon.com> I have a couple of systems that are reporting critical notifications, that when you drill into them, the Service : Total Processes has been triggered. Its showing critical process level of 231, 453, for example. Which on a production server is nothing really --- my question is, how do I change that threshold level to something like 750, or 1500? Perhaps I'm not searching online for the correct term or using the right parlance. Any ideas where this can be modified? Thanks team. Jonathan ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From benny at bennyvision.com Sat Nov 6 02:38:36 2010 From: benny at bennyvision.com (C. Bensend) Date: Fri, 5 Nov 2010 20:38:36 -0500 Subject: Change "Procs Critical" threshold In-Reply-To: <311029F2-8E8F-49DF-9A3F-E22465BF4233@salon.com> References: <311029F2-8E8F-49DF-9A3F-E22465BF4233@salon.com> Message-ID: <362f11756be45b7b92b5088cdb3637d7.squirrel@webmail.stinkweasel.net> > I have a couple of systems that are reporting critical notifications, that > when you drill into them, the Service : Total Processes has been > triggered. Its showing critical process level of 231, 453, for example. > Which on a production server is nothing really --- my question is, how do > I change that threshold level to something like 750, or 1500? > > Perhaps I'm not searching online for the correct term or using the right > parlance. Any ideas where this can be modified? If you have a look at the options for the plugin (hint: ./plugin --help), they will reveal their secrets to you. :) Then, using that knowledge, you can adjust your service check to use the appropriate values for your environment. Benny -- "No matter how many shorts we have in the system, my guards will be instructed to treat every surveillance camera malfunction as a full-scale emergency." -- Peter Anspach's Evil Overlord List, #67 ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From shacky83 at gmail.com Mon Nov 8 12:07:45 2010 From: shacky83 at gmail.com (shacky) Date: Mon, 8 Nov 2010 12:07:45 +0100 Subject: ndomod: Could not open data sink! Message-ID: Hi. I'm succesfully using Nagios 3.2.3 and I installed ndoutils-1.4b9 to have data in a MySQL db. I configured ndomod and ndo2db and I made a lot of tries, but it does not work. I have this in nagios.log: [1289212021] Nagios 3.2.3 starting... (PID=1583) [1289212021] Local time is Mon Nov 08 11:27:01 CET 2010 [1289212021] LOG VERSION: 2.0 [1289212021] ndomod: NDOMOD 1.4b9 (10-27-2009) Copyright (c) 2009 Nagios Core Development Team and Community Contributors [1289212021] ndomod: Could not open data sink! I'll keep trying, but some output may get lost... [1289212021] Event broker module '/opt/nagios/bin/ndomod.o' initialized successfully. [1289212021] Finished daemonizing... (New PID=1584) This is my ndomod.cfg file: ##################################################################### # NDOMOD CONFIG FILE # # Last Modified: 09-05-2007 ##################################################################### instance_name=default output_type=unixsocket output=/opt/nagios/var/ndo.sock tcp_port=5668 use_ssl=0 output_buffer_items=5000 buffer_file=/opt/nagios/var/ndomod.tmp file_rotation_interval=14400 #file_rotation_command=rotate_ndo_log file_rotation_timeout=60 reconnect_interval=15 reconnect_warning_interval=15 #reconnect_warning_interval=900 data_processing_options=-1 config_output_options=2 And this is my ndo2db.cfg file: ##################################################################### # NDO2DB DAEMON CONFIG FILE # # Last Modified: 01-02-2009 ##################################################################### lock_file=/opt/nagios/var/ndo2db.lock ndo2db_user=nagios ndo2db_group=nagios socket_type=unix socket_name=/opt/nagios/var/ndo.sock tcp_port=5668 use_ssl=0 db_servertype=mysql db_host=localhost db_port=3306 db_name=nagios db_prefix=nagios_ db_user=nagios db_pass=password max_timedevents_age=1440 max_systemcommands_age=10080 max_servicechecks_age=10080 max_hostchecks_age=10080 max_eventhandlers_age=44640 max_externalcommands_age=44640 debug_level=-1 debug_verbosity=2 debug_file=/tmp/ndo2db.debug max_debug_file_size=1000000 I can succesfully log to the MySQL db with the data specified in ndo2db.cfg file: server:/opt/nagios/etc# mysql -unagios -p nagios Enter password: Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 7649 Server version: 5.0.51a-24+lenny4 (Debian) Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> show tables; +----------------------------------------+ | Tables_in_nagios | +----------------------------------------+ | nagios_acknowledgements | | nagios_commands | | nagios_commenthistory | | nagios_comments | | nagios_configfiles | | nagios_configfilevariables | | nagios_conninfo | | nagios_contact_addresses | | nagios_contact_notificationcommands | | nagios_contactgroup_members | | nagios_contactgroups | | nagios_contactnotificationmethods | | nagios_contactnotifications | | nagios_contacts | | nagios_contactstatus | | nagios_customvariables | | nagios_customvariablestatus | | nagios_dbversion | | nagios_downtimehistory | | nagios_eventhandlers | | nagios_externalcommands | | nagios_flappinghistory | | nagios_host_contactgroups | | nagios_host_contacts | | nagios_host_parenthosts | | nagios_hostchecks | | nagios_hostdependencies | | nagios_hostescalation_contactgroups | | nagios_hostescalation_contacts | | nagios_hostescalations | | nagios_hostgroup_members | | nagios_hostgroups | | nagios_hosts | | nagios_hoststatus | | nagios_instances | | nagios_logentries | | nagios_notifications | | nagios_objects | | nagios_processevents | | nagios_programstatus | | nagios_runtimevariables | | nagios_scheduleddowntime | | nagios_service_contactgroups | | nagios_service_contacts | | nagios_servicechecks | | nagios_servicedependencies | | nagios_serviceescalation_contactgroups | | nagios_serviceescalation_contacts | | nagios_serviceescalations | | nagios_servicegroup_members | | nagios_servicegroups | | nagios_services | | nagios_servicestatus | | nagios_statehistory | | nagios_systemcommands | | nagios_timedeventqueue | | nagios_timedevents | | nagios_timeperiod_timeranges | | nagios_timeperiods | +----------------------------------------+ 59 rows in set (0.00 sec) mysql> My ndo2db.debug file is empty: server:/opt/nagios/etc# ls -l /tmp/ndo2db.debug -rw-r--r-- 1 nagios nagios 0 Nov 7 16:43 /tmp/ndo2db.debug My ndo.sock file exist and the permissions seem to be correct: server:/opt/nagios/var# ls -l /opt/nagios/var/ndo.sock srwxr-xr-x 1 nagios nagios 0 Nov 8 11:26 /opt/nagios/var/ndo.sock Can you help me please? Thank you very much! Bye. ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jwellband at gmail.com Mon Nov 8 13:42:08 2010 From: jwellband at gmail.com (Jason W.) Date: Mon, 8 Nov 2010 07:42:08 -0500 Subject: Exit code for NRPE connection refused? In-Reply-To: References: Message-ID: On Fri, Nov 5, 2010 at 3:49 PM, RT wrote: > Using: Nagios?Version 3.2.2 > Can check_nrpe be convinced (or hacked) to exit UNKNOWN rather than CRITICAL > on `Connection Refused`? Is there a way to accomplish this without having to > modify check_nrpe's source directly? Not that I know of. I have gotten around this by writing a "filter" script that is used as a wrapper for check_nrpe in some cases. The filter calls check_nrpe with the supplied arguments and (as defined by a config file) does a regex match to see if it should change the return code. If so, it returns the new return code (UNKNOWN in your case). Otherwise, it returns whatever check_nrpe returned. -- HTH, YMMV, HANW :) Jason The path to enlightenment is /usr/bin/enlightenment. ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mgagne at iweb.com Mon Nov 8 17:06:50 2010 From: mgagne at iweb.com (=?ISO-8859-1?Q?Mathieu_Gagn=E9?=) Date: Mon, 08 Nov 2010 11:06:50 -0500 Subject: Host dependencies on large deployment? In-Reply-To: References: Message-ID: <4CD8201A.5090104@iweb.com> On 11/5/10 4:00 PM, RT wrote: > > For Host A, I'd like for all other notifications on Host A to be > disabled when SSH on Host A is critical. I would like to have the same > behavior apply for Hosts B-Z, each dependent on their own > locally-running SSH. Did you mean that you want to disable all notifications for all *services* on the host if the SSH service is down on the same host? There would be 3 solutions coming to my mind: 1) Change the "check_command" on the host from "check_ping" to "check_ssh". 2) Manually massdefine servicedependency for all your services on the SSH service on the same host. 3) Use the patch proposed in "[Nagios-users] Service dependency for nrpe on nagios 3.2.3": http://www.mail-archive.com/nagios-users at lists.sourceforge.net/msg33827.html Unfortunately, I did not have time to write tests for my patch since tests were failing at checkout before I applied my patch. I will have to find some time to check that out again... -- Mathieu ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Matt.Garrett at shell.com Mon Nov 8 17:45:50 2010 From: Matt.Garrett at shell.com (Matt.Garrett at shell.com) Date: Mon, 8 Nov 2010 17:45:50 +0100 Subject: Status Information in to Logfile Message-ID: Folks If a Service state is ok and its state has not changed from the last state it does not Log a message in the nagios.log file However for a external application we would like to be able to log all Service Information Tried looking in the nagios.cfg but all the logging options are set to 1 e.g on The only way we found so far was to make the plugin exit code 2 which then forces a log entry but would prefer to have normal exit 0 Any idea's FYI Nagios 3.2.1 Matt -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Mon Nov 8 18:16:22 2010 From: jim at jimavery.me.uk (Jim Avery) Date: Mon, 8 Nov 2010 17:16:22 +0000 Subject: Status Information in to Logfile In-Reply-To: References: Message-ID: On 8 November 2010 16:45, wrote: > If a Service state is ok and its state has not changed from the last state > it does not Log a message in the nagios.log file > > However for a external application we would like to be able to log all > Service Information > > > > Tried looking in the nagios.cfg but all the logging options are set to 1 e.g > on > > > > The only way we found so far was to make the plugin exit code 2 which then > forces a log entry but would prefer to have normal exit 0 According to the documentation , you need to set the relevant stalking_options in the service definition. See: http://nagios.sourceforge.net/docs/3_0/stalking.html and http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#service I can't say I've ever tried it myself though. Cheers, Jim ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jwiggins at salon.com Mon Nov 8 20:54:24 2010 From: jwiggins at salon.com (Jonathan Wiggins) Date: Mon, 8 Nov 2010 11:54:24 -0800 Subject: Change "Procs Critical" threshold In-Reply-To: <362f11756be45b7b92b5088cdb3637d7.squirrel@webmail.stinkweasel.net> References: <311029F2-8E8F-49DF-9A3F-E22465BF4233@salon.com> <362f11756be45b7b92b5088cdb3637d7.squirrel@webmail.stinkweasel.net> Message-ID: On Nov 5, 2010, at 6:38 PM, C. Bensend wrote: > >> I have a couple of systems that are reporting critical notifications, that >> when you drill into them, the Service : Total Processes has been >> triggered. Its showing critical process level of 231, 453, for example. >> Which on a production server is nothing really --- my question is, how do >> I change that threshold level to something like 750, or 1500? >> >> Perhaps I'm not searching online for the correct term or using the right >> parlance. Any ideas where this can be modified? > > If you have a look at the options for the plugin (hint: ./plugin > --help), they will reveal their secrets to you. :) > > Then, using that knowledge, you can adjust your service check to > use the appropriate values for your environment. > > Benny > > Benny - thanks so much for replying. I was able to find the necessary parameters to adjust the "check_procs" plugin, from there I see that I can modify this in the monitored system's nrpe.cfg file. So I edited nrpe.cfg relevant line for check_procs to read as: command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 1000 -c 1500 then I restart munin-node: /etc/rc.d/init.d/munin-node restart Now I just got to figure out my other Nagios issues. Maybe another thread later. Thanks again Benny, and of course to the entire Nagios User list. Such a great resource ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stuart.browne at ausregistry.com.au Mon Nov 8 23:22:11 2010 From: stuart.browne at ausregistry.com.au (Stuart Browne) Date: Tue, 9 Nov 2010 09:22:11 +1100 Subject: Status Information in to Logfile In-Reply-To: References: Message-ID: <8CEF048B9EC83748B1517DC64EA130FB43C2D18BF2@off-win2003-01.ausregistrygroup.local> > -----Original Message----- > From: Jim Avery [mailto:jim at jimavery.me.uk] > Sent: Tuesday, 9 November 2010 4:16 AM > To: Nagios Users List > Subject: Re: [Nagios-users] Status Information in to Logfile > > On 8 November 2010 16:45, wrote: > > If a Service state is ok and its state has not changed from the last > state > > it does not Log a message in the nagios.log file > > > > However for a external application we would like to be able to log all > > Service Information > > > > According to the documentation , you need to set the relevant > stalking_options in the service definition. See: > > http://nagios.sourceforge.net/docs/3_0/stalking.html > > and > > http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#service > > > I can't say I've ever tried it myself though. I use stalking for a few of our services, it works as advertised. If you want it for all services, then it's probably easier to use an ocsp_command instead; Obsessive Compulsive Service Processor. I use this one too for different purposes. All service events get sent to the defined command and you can filter/act-on them as you desire. Stuart ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From John.Alberts at exlibrisgroup.com Tue Nov 9 18:40:49 2010 From: John.Alberts at exlibrisgroup.com (John Alberts) Date: Tue, 9 Nov 2010 11:40:49 -0600 Subject: any macro for viewing host parent? Message-ID: <4CB3E05044AE6D47989FF271DEF16ADA080F20AA@us-ex02.Corp.Exlibrisgroup.com> I would like to have our notification emails for service alerts, include the host parent. Is there any existing macro I can use to include this? I couldn't find anything when googling. If not, any suggesions how I might get it in an email? Thanks -- John Alberts Hosted Services Exlibris USA john.alberts at exlibrisgroup.com ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From work at paul.dubuc.org Tue Nov 9 19:03:39 2010 From: work at paul.dubuc.org (Paul M. Dubuc) Date: Tue, 09 Nov 2010 13:03:39 -0500 Subject: any macro for viewing host parent? In-Reply-To: <4CB3E05044AE6D47989FF271DEF16ADA080F20AA@us-ex02.Corp.Exlibrisgroup.com> References: <4CB3E05044AE6D47989FF271DEF16ADA080F20AA@us-ex02.Corp.Exlibrisgroup.com> Message-ID: <4CD98CFB.2040502@paul.dubuc.org> John Alberts wrote: > I would like to have our notification emails for service alerts, include > the host parent. Is there any existing macro I can use to include > this? I couldn't find anything when googling. If not, any suggesions > how I might get it in an email? > The way we do this is to use a user-defined macro in the host definition like so: define host{ use aps-launcher host_name APS-P52 parents aps52 __PARENT_HOST aps52 } Then you can expand expand it, $_PARENT_HOST$, in the notification. Unfortunately this means you need to define the parent in 2 places. Would be nice if there was built-in macro for this, but I don't think there is. ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mlitwin at stubhub.com Tue Nov 9 19:23:08 2010 From: mlitwin at stubhub.com (Litwin, Matthew) Date: Tue, 9 Nov 2010 11:23:08 -0700 Subject: Setting Command Timeout that isn't global? Message-ID: <40D299CC-98DE-4DED-8B6C-D7F52A728AC4@stubhub.com> Is there a way to set the command timeout within an object definition that overrides the global definition? ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From work at paul.dubuc.org Tue Nov 9 19:55:28 2010 From: work at paul.dubuc.org (Paul M. Dubuc) Date: Tue, 09 Nov 2010 13:55:28 -0500 Subject: any macro for viewing host parent? In-Reply-To: <4CD98CFB.2040502@paul.dubuc.org> References: <4CB3E05044AE6D47989FF271DEF16ADA080F20AA@us-ex02.Corp.Exlibrisgroup.com> <4CD98CFB.2040502@paul.dubuc.org> Message-ID: <4CD99920.2050001@paul.dubuc.org> Paul M. Dubuc wrote: > John Alberts wrote: >> I would like to have our notification emails for service alerts, include >> the host parent. Is there any existing macro I can use to include >> this? I couldn't find anything when googling. If not, any suggesions >> how I might get it in an email? >> > > The way we do this is to use a user-defined macro in the host definition like so: > > > define host{ > use aps-launcher > host_name APS-P52 > > parents aps52 > __PARENT_HOST aps52 > } > > Then you can expand expand it, $_PARENT_HOST$, in the notification. I mean that would be $_HOST_PARENT_HOST$ > Unfortunately this means you need to define the parent in 2 places. Would be > nice if there was built-in macro for this, but I don't think there is. ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.morris at hp.com Tue Nov 9 20:10:22 2010 From: patrick.morris at hp.com (Morris, Patrick) Date: Tue, 09 Nov 2010 11:10:22 -0800 Subject: Setting Command Timeout that isn't global? In-Reply-To: <40D299CC-98DE-4DED-8B6C-D7F52A728AC4@stubhub.com> References: <40D299CC-98DE-4DED-8B6C-D7F52A728AC4@stubhub.com> Message-ID: <4CD99C9E.8030708@hp.com> On 11/9/2010 10:23 AM, Litwin, Matthew wrote: > Is there a way to set the command timeout within an object definition that overrides the global definition? Sure, most plugins support a timeout value. However, the global timeout is absolute and you won't be able to go over it. Shorter timeouts are possible, though. ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.morris at hp.com Tue Nov 9 20:14:22 2010 From: patrick.morris at hp.com (Morris, Patrick) Date: Tue, 09 Nov 2010 11:14:22 -0800 Subject: ndomod: Could not open data sink! In-Reply-To: References: Message-ID: <4CD99D8E.4050204@hp.com> On 11/8/2010 3:07 AM, shacky wrote: > Hi. > I'm succesfully using Nagios 3.2.3 and I installed ndoutils-1.4b9 to > have data in a MySQL db. > I configured ndomod and ndo2db and I made a lot of tries, but it does not work. > I have this in nagios.log: > > [1289212021] Nagios 3.2.3 starting... (PID=1583) > [1289212021] Local time is Mon Nov 08 11:27:01 CET 2010 > [1289212021] LOG VERSION: 2.0 > [1289212021] ndomod: NDOMOD 1.4b9 (10-27-2009) Copyright (c) 2009 > Nagios Core Development Team and Community Contributors > [1289212021] ndomod: Could not open data sink! I'll keep trying, but > some output may get lost... > [1289212021] Event broker module '/opt/nagios/bin/ndomod.o' > initialized successfully. > [1289212021] Finished daemonizing... (New PID=1584) Forgive me if I'm asking an obvious question, but is nod2db running? Also, since you've specified "localhost" in your config, can you still connect to the DB as nagios of you specify that hostname when you connect (I'd think you could, but don't have a similar config I can try that on)? ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From John.Alberts at exlibrisgroup.com Tue Nov 9 21:42:30 2010 From: John.Alberts at exlibrisgroup.com (John Alberts) Date: Tue, 9 Nov 2010 14:42:30 -0600 Subject: any macro for viewing host parent? In-Reply-To: <4CD99920.2050001@paul.dubuc.org> References: <4CB3E05044AE6D47989FF271DEF16ADA080F20AA@us-ex02.Corp.Exlibrisgroup.com> <4CD98CFB.2040502@paul.dubuc.org> <4CD99920.2050001@paul.dubuc.org> Message-ID: <4CB3E05044AE6D47989FF271DEF16ADA080F20AB@us-ex02.Corp.Exlibrisgroup.com> On 11/09/2010 12:55 PM, Paul M. Dubuc wrote: > Unfortunately this means you need to define the parent in 2 places. Would be > nice if there was built-in macro for this, but I don't think there is. Yeah, I thought about doing it this way as well, but as you said, you then have to define the parent in 2 places which can be messy and get tedious. I guess if no one else chimes in with a magical solution that we can't think of, I guess I'll be doing it this way as well. :) -- John Alberts Hosted Services Exlibris USA john.alberts at exlibrisgroup.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From charlie.reddington at gmail.com Tue Nov 9 23:07:23 2010 From: charlie.reddington at gmail.com (Charlie R) Date: Tue, 9 Nov 2010 16:07:23 -0600 Subject: Problem running ssh script in nagios Message-ID: <0CA00A0B-C40C-4CBD-BC85-7958E291B1CD@gmail.com> Hi List, Before we start, check_ssh and check_by_ssh is not a workable solution for me. I have a special setup in place that needs to run checks over native ssh since I have a bunch of ssh config options per host and need to use a proxy from where my nagios server is. So far what I have found doesn't let me use my ssh config file. My goal is to use ssh to check for host uptime since that's available on every host. I wrote a script that is very very basic. It's job is to ssh to a host to determine if it's up or down. Here's the meat and potatoes of that. --- checkhost.sh --- #!/bin/bash # Purpose: Replacement host alive check for nagios # on hosts that cannot be directly pinged # Usage function usage() { cat << EOF usage: checkhost.sh -H OPTIONS: -h Show this message -H SSH host address EOF } # Variables SSHPath='/usr/bin/ssh' # Options menu while getopts "hH:" OPTION do case $OPTION in h) usage exit 1 ;; H) SSHHost=$OPTARG ;; ?) usage exit 1 ;; esac done # Make sure the required stuff is here if [[ -z $SSHHost ]] then usage exit 1 fi # Connect function SSHConnect() { $SSHPath -q $SSHHost exit if [[ "$?" -eq 0 ]] then echo "Host is reachable" exit 0 else echo "Unable to reach host" exit 2 fi } SSHConnect --- end script --- When I run this script on my bash shell, it works perfect. When I run this as a host check in nagios, it fails with (Return code of 255 is out of bounds). I've checked to make sure it's not getting prompted to accept the local host key. I've checked nagios.debug to make sure the command is parsing correctly I've checked ssh key permissions I've changed my ssh code around to return something no matter what and it works. At this point, I'd like to blame ssh but I'm not 100% sure on that. Is there any caveats to run SSH on the native system with ssh keys and a more than customized ssh config file? Maybe I'm missing a ssh option? I've tried with and with out -T and -t. I've specifcally specified my config file along with my ssh keys. Thanks, Charlie ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From diego.roccia at gmail.com Tue Nov 9 23:10:43 2010 From: diego.roccia at gmail.com (diego.roccia at gmail.com) Date: Tue, 9 Nov 2010 23:10:43 +0100 Subject: any macro for viewing host parent? In-Reply-To: <4CD99920.2050001@paul.dubuc.org> References: <4CB3E05044AE6D47989FF271DEF16ADA080F20AA@us-ex02.Corp.Exlibrisgroup.com> <4CD98CFB.2040502@paul.dubuc.org> <4CD99920.2050001@paul.dubuc.org> Message-ID: Isn't it $_HOSTPARENT_HOST$ ? btw, in order to avoid the double declaration (and human errors) you could add in generic-host (ot whatever template you define) define generic-host { ... parents $_HOSTPARENT_HOST$ } and in the real host definition you will define only the custom macro. Haven't tried it, but it should work On Tue, Nov 9, 2010 at 7:55 PM, Paul M. Dubuc wrote: > Paul M. Dubuc wrote: >> John Alberts wrote: >>> I would like to have our notification emails for service alerts, include >>> the host parent. ?Is there any existing macro I can use to include >>> this? ?I couldn't find anything when googling. ?If not, any suggesions >>> how I might get it in an email? >>> >> >> The way we do this is to use a user-defined macro in the host definition like so: >> >> >> define host{ >> ? ? ? use ? ? ? ? ? ? ? ? ? ? aps-launcher >> ? ? ? host_name ? ? ? ? ? ? ? APS-P52 >> >> ? ? ? parents ? ? ? ? ? ? ? ? aps52 >> ? ? ? __PARENT_HOST ? ? ? ? ? aps52 >> } >> >> Then you can expand expand it, $_PARENT_HOST$, in the notification. > > I mean that would be $_HOST_PARENT_HOST$ > >> Unfortunately this means you need to define the parent in 2 places. ?Would be >> nice if there was built-in macro for this, but I don't think there is. > > ------------------------------------------------------------------------------ > The Next 800 Companies to Lead America's Growth: New Video Whitepaper > David G. Thomson, author of the best-selling book "Blueprint to a > Billion" shares his insights and actions to help propel your > business during the next growth cycle. Listen Now! > http://p.sf.net/sfu/SAP-dev2dev > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Diego Roccia diego.roccia (at) gmail (dot) com ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From work at paul.dubuc.org Tue Nov 9 23:30:32 2010 From: work at paul.dubuc.org (Paul M. Dubuc) Date: Tue, 09 Nov 2010 17:30:32 -0500 Subject: any macro for viewing host parent? In-Reply-To: References: <4CB3E05044AE6D47989FF271DEF16ADA080F20AA@us-ex02.Corp.Exlibrisgroup.com> <4CD98CFB.2040502@paul.dubuc.org> <4CD99920.2050001@paul.dubuc.org> Message-ID: <4CD9CB88.5090804@paul.dubuc.org> diego.roccia at gmail.com wrote: > Isn't it $_HOSTPARENT_HOST$ ? Not if you put TWO underscores in front of the macro name. Then you get $_HOST_PARENT_HOST$ which I think is much more readable (a nice suggestion I found in Barth's book.) > btw, in order to avoid the double declaration (and human errors) you > could add in generic-host (ot whatever template you define) > > define generic-host { > ... > parents $_HOSTPARENT_HOST$ > } > > and in the real host definition you will define only the custom macro. > Haven't tried it, but it should work I don't think this will work because the macro isn't expanded in that context. I think they only expand in the command object or (effectively) in arguments in the check_command definition (because their expanded when passed to the command). Even if this did work it would work if all your hosts had the same parent. All my hosts have different parents. > > On Tue, Nov 9, 2010 at 7:55 PM, Paul M. Dubuc wrote: >> Paul M. Dubuc wrote: >>> John Alberts wrote: >>>> I would like to have our notification emails for service alerts, include >>>> the host parent. ? Is there any existing macro I can use to include >>>> this? ? I couldn't find anything when googling. ? If not, any suggesions >>>> how I might get it in an email? >>>> >>> >>> The way we do this is to use a user-defined macro in the host definition like so: >>> >>> >>> define host{ >>> use aps-launcher >>> host_name APS-P52 >>> >>> parents aps52 >>> __PARENT_HOST aps52 >>> } >>> >>> Then you can expand expand it, $_PARENT_HOST$, in the notification. >> >> I mean that would be $_HOST_PARENT_HOST$ >> >>> Unfortunately this means you need to define the parent in 2 places. It Would be >>> nice if there was built-in macro for this, but I don't think there is. >> ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From charlie.reddington at gmail.com Tue Nov 9 23:33:22 2010 From: charlie.reddington at gmail.com (Charlie R) Date: Tue, 9 Nov 2010 16:33:22 -0600 Subject: Problem running ssh script in nagios In-Reply-To: <0CA00A0B-C40C-4CBD-BC85-7958E291B1CD@gmail.com> References: <0CA00A0B-C40C-4CBD-BC85-7958E291B1CD@gmail.com> Message-ID: <1E40F039-5E16-4F7F-9DB3-194FA1EB627C@gmail.com> Please disregard, turned out I needed to add a full path to my ssh config file :/ Charlie On Nov 9, 2010, at 4:07 PM, Charlie R wrote: > Hi List, > > Before we start, check_ssh and check_by_ssh is not a workable > solution for me. I have a special setup in place that needs to run > checks over native ssh since I have a bunch of ssh config options > per host and need to use a proxy from where my nagios server is. So > far what I have found doesn't let me use my ssh config file. My goal > is to use ssh to check for host uptime since that's available on > every host. > > I wrote a script that is very very basic. It's job is to ssh to a > host to determine if it's up or down. Here's the meat and potatoes > of that. > > --- checkhost.sh --- > #!/bin/bash > > # Purpose: Replacement host alive check for nagios > # on hosts that cannot be directly pinged > > # Usage function > usage() > { > cat << EOF > > usage: checkhost.sh -H > > OPTIONS: > -h Show this message > -H SSH host address > EOF > } > > # Variables > SSHPath='/usr/bin/ssh' > > # Options menu > while getopts "hH:" OPTION > do > case $OPTION in > h) > usage > exit 1 > ;; > H) > SSHHost=$OPTARG > ;; > ?) > usage > exit 1 > ;; > esac > done > > # Make sure the required stuff is here > if [[ -z $SSHHost ]] > then > usage > exit 1 > fi > > # Connect function > SSHConnect() > { > $SSHPath -q $SSHHost exit > if [[ "$?" -eq 0 ]] > then > echo "Host is reachable" > exit 0 > else > echo "Unable to reach host" > exit 2 > fi > } > SSHConnect > --- end script --- > > When I run this script on my bash shell, it works perfect. When I > run this as a host check in nagios, it fails with (Return code of > 255 is out of bounds). > > I've checked to make sure it's not getting prompted to accept the > local host key. > I've checked nagios.debug to make sure the command is parsing > correctly > I've checked ssh key permissions > I've changed my ssh code around to return something no matter what > and it works. > > At this point, I'd like to blame ssh but I'm not 100% sure on that. > > Is there any caveats to run SSH on the native system with ssh keys > and a more than customized ssh config file? Maybe I'm missing a ssh > option? I've tried with and with out -T and -t. I've specifcally > specified my config file along with my ssh keys. > > Thanks, > > Charlie ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From diego.roccia at gmail.com Wed Nov 10 00:02:30 2010 From: diego.roccia at gmail.com (diego.roccia at gmail.com) Date: Wed, 10 Nov 2010 00:02:30 +0100 Subject: any macro for viewing host parent? In-Reply-To: <4CD9CB88.5090804@paul.dubuc.org> References: <4CB3E05044AE6D47989FF271DEF16ADA080F20AA@us-ex02.Corp.Exlibrisgroup.com> <4CD98CFB.2040502@paul.dubuc.org> <4CD99920.2050001@paul.dubuc.org> <4CD9CB88.5090804@paul.dubuc.org> Message-ID: I like the double-underscore thing :) About my advice, I performed a test and it seems you're right. I used custom vars in extra notes, check_commands, custom CGIs for RT integration, and others places, so I assumed it would have worked in this case, too On Tue, Nov 9, 2010 at 11:30 PM, Paul M. Dubuc wrote: > diego.roccia at gmail.com wrote: >> >> Isn't it $_HOSTPARENT_HOST$ ? > > Not if you put TWO underscores in front of the macro name. ?Then you get > $_HOST_PARENT_HOST$ which I think is much more readable (a nice suggestion I > found in Barth's book.) > >> btw, in order to avoid the double declaration (and human errors) you >> could add in generic-host (ot whatever template you define) >> >> define generic-host { >> ? ?... >> ? ?parents ? ? ? ? ? ? $_HOSTPARENT_HOST$ >> ? ?} >> >> and in the real host definition you will define only the custom macro. >> Haven't tried it, but it should work > > I don't think this will work because the macro isn't expanded in that > context. ?I think they only expand in the command object or (effectively) in > arguments in the check_command definition (because their expanded when > passed to the command). > > Even if this did work it would work if all your hosts had the same parent. > All my hosts have different parents. > >> >> On Tue, Nov 9, 2010 at 7:55 PM, Paul M. Dubuc ?wrote: >>> >>> Paul M. Dubuc wrote: >>>> >>>> John Alberts wrote: >>>>> >>>>> I would like to have our notification emails for service alerts, >>>>> include >>>>> the host parent. ? Is there any existing macro I can use to include >>>>> this? ? I couldn't find anything when googling. ? If not, any >>>>> suggesions >>>>> how I might get it in an email? >>>>> >>>> >>>> The way we do this is to use a user-defined macro in the host definition >>>> like so: >>>> >>>> >>>> define host{ >>>> ? ? ? ?use ? ? ? ? ? aps-launcher >>>> ? ?host_name ? ? APS-P52 >>>> >>>> ? ?parents ? ? ? ? aps52 >>>> ? ?__PARENT_HOST ? aps52 >>>> } >>>> >>>> Then you can expand expand it, $_PARENT_HOST$, in the notification. >>> >>> I mean that would be $_HOST_PARENT_HOST$ >>> >>>> Unfortunately this means you need to define the parent in 2 places. It >>>> Would be >>>> nice if there was built-in macro for this, but I don't think there is. >>> > > -- Diego Roccia diego.roccia (at) gmail (dot) com ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mark at zarzax.com Wed Nov 10 04:07:38 2010 From: mark at zarzax.com (Mark Young) Date: Tue, 9 Nov 2010 21:07:38 -0600 Subject: SMS Foxbox In-Reply-To: References: Message-ID: <6438D96F-8865-4C53-8567-3A40931C53B6@zarzax.com> On Nov 5, 2010, at 4:44 AM, Rutger Blom wrote: > Hello list, > > I was wondering if any of you have experience with using the SMS Foxbox and Nagios? Are you satisfied with the product? Is there any other solution you would recommend instead? > > http://www.nagios.org/products/notification/foxbox/ > > /Rutger Hi Rutger, I originally demoed the SMS FoxBox while working at Nagios Enterprises in 2007. My original integration attempt was written up on the wiki http://wiki.nagios.org/index.php/ACME_SYSTEMS_SMSFoxBox. The device is a small embedded linux server that takes a SIM card and has a external antenna. *It is very important that it has cell (GSM) reception. Also my knowledge of the device is now a few years old. My experience was that it worked very well. It has the limitation that it can only send one message at a time (one GSM modem). My script from the wiki page used the web api, where you use a web address to send the message body and recipient. This was only able to handle a few requests before it overwhelmed the small web server. I later created another script that uploaded messages to a spool directory on the device (using SCP). This was able to handle a large number of messages but it takes a long time for the device to process messages. I would say if you have over 20 notification recipients you may want to look for an alternative. There are web services that handle these requests (AlarmTilt) or many people now use email addresses provided by cell providers that text phones (http:/ /www.emailtextmessages.com/). I hope that this helps you out. Good luck in your quest! Mark Young ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rutger at blokje.net Wed Nov 10 10:09:28 2010 From: rutger at blokje.net (Rutger Blom) Date: Wed, 10 Nov 2010 10:09:28 +0100 Subject: SMS Foxbox In-Reply-To: <6438D96F-8865-4C53-8567-3A40931C53B6@zarzax.com> References: <6438D96F-8865-4C53-8567-3A40931C53B6@zarzax.com> Message-ID: Thank you very much for the information. In our case we only have one SMS recipient so it should work fine. /Rutger On Wed, Nov 10, 2010 at 4:07 AM, Mark Young wrote: > On Nov 5, 2010, at 4:44 AM, Rutger Blom wrote: > > > Hello list, > > > > I was wondering if any of you have experience with using the SMS Foxbox > and Nagios? Are you satisfied with the product? Is there any other solution > you would recommend instead? > > > > http://www.nagios.org/products/notification/foxbox/ > > > > /Rutger > > Hi Rutger, > > I originally demoed the SMS FoxBox while working at Nagios Enterprises in > 2007. My original integration attempt was written up on the wiki > http://wiki.nagios.org/index.php/ACME_SYSTEMS_SMSFoxBox. The device is a > small embedded linux server that takes a SIM card and has a external > antenna. *It is very important that it has cell (GSM) reception. Also my > knowledge of the device is now a few years old. > > My experience was that it worked very well. It has the limitation that it > can only send one message at a time (one GSM modem). My script from the > wiki page used the web api, where you use a web address to send the message > body and recipient. This was only able to handle a few requests before it > overwhelmed the small web server. I later created another script that > uploaded messages to a spool directory on the device (using SCP). This was > able to handle a large number of messages but it takes a long time for the > device to process messages. I would say if you have over 20 notification > recipients you may want to look for an alternative. There are web services > that handle these requests (AlarmTilt) or many people now use email > addresses provided by cell providers that text phones ( > http://www.emailtextmessages.com/). > > I hope that this helps you out. Good luck in your quest! > > Mark Young > > > > > ------------------------------------------------------------------------------ > The Next 800 Companies to Lead America's Growth: New Video Whitepaper > David G. Thomson, author of the best-selling book "Blueprint to a > Billion" shares his insights and actions to help propel your > business during the next growth cycle. Listen Now! > http://p.sf.net/sfu/SAP-dev2dev > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Rutger Blom Luzernv?gen 14 227 38 LUND Sweden Tel. +46 763 46 99 44 www.rutgerblom.com about.me/rutgerblom -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From duncan at dcl.co.uk Wed Nov 10 10:41:04 2010 From: duncan at dcl.co.uk (Duncan Berriman) Date: Wed, 10 Nov 2010 09:41:04 -0000 Subject: SMS Foxbox In-Reply-To: <6438D96F-8865-4C53-8567-3A40931C53B6@zarzax.com> References: <6438D96F-8865-4C53-8567-3A40931C53B6@zarzax.com> Message-ID: <09ff01cb80bb$64894af0$2d9be0d0$@dcl.co.uk> Just a note about volume, that is standard for any sim based device as it is in effect the same as sending them via a phone and each message takes a few seconds to send. You could set up a bank of gsm modems like the maestro eco 100 with software of your choice to get round this (even your own software as it is pretty easy to do). As Mark points out an external gateway is a good alternative (like aql.com, clickatell), perhaps using that for most messages and using the fox box for messages when your internet connectivity fails. Duncan -----Original Message----- From: Mark Young [mailto:mark at zarzax.com] Sent: 10 November 2010 03:08 To: Nagios Users List Subject: Re: [Nagios-users] SMS Foxbox On Nov 5, 2010, at 4:44 AM, Rutger Blom wrote: > Hello list, > > I was wondering if any of you have experience with using the SMS Foxbox and Nagios? Are you satisfied with the product? Is there any other solution you would recommend instead? > > http://www.nagios.org/products/notification/foxbox/ > > /Rutger Hi Rutger, I originally demoed the SMS FoxBox while working at Nagios Enterprises in 2007. My original integration attempt was written up on the wiki http://wiki.nagios.org/index.php/ACME_SYSTEMS_SMSFoxBox. The device is a small embedded linux server that takes a SIM card and has a external antenna. *It is very important that it has cell (GSM) reception. Also my knowledge of the device is now a few years old. My experience was that it worked very well. It has the limitation that it can only send one message at a time (one GSM modem). My script from the wiki page used the web api, where you use a web address to send the message body and recipient. This was only able to handle a few requests before it overwhelmed the small web server. I later created another script that uploaded messages to a spool directory on the device (using SCP). This was able to handle a large number of messages but it takes a long time for the device to process messages. I would say if you have over 20 notification recipients you may want to look for an alternative. There are web services that handle these requests (AlarmTilt) or many people now use email addresses provided by cell providers that text phones (http://www.emailtextmessages.com/). I hope that this helps you out. Good luck in your quest! Mark Young ---------------------------------------------------------------------------- -- The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jc at info-systems.de Wed Nov 10 10:24:08 2010 From: jc at info-systems.de (Jakob Curdes) Date: Wed, 10 Nov 2010 10:24:08 +0100 Subject: SMS Foxbox In-Reply-To: References: <6438D96F-8865-4C53-8567-3A40931C53B6@zarzax.com> Message-ID: <4CDA64B8.4090802@info-systems.de> Am 10.11.2010 10:09, schrieb Rutger Blom: > Thank you very much for the information. In our case we only have one > SMS recipient so it should work fine. > Another option is to use a GSM modem (or old cellphone with serial cable) and the GPLed software "SMS server tools" ( http://smstools3.kekekasvi.com/ ) which gives you a nice SMS daemon. You can send messages then by dropping them in a spool directory. The message format is simple, containing phone number and text in a fixed format. This can be eaysily generated by a script you run when needing an alert. We found it quite easy o setup, only trick is to use a phone or modem that is well supported. I can give some details on request. Best regards, Jakob Curdes -- Jakob Curdes *Anschrift:* iS information systems oHG Postfach 3011 26020 Oldenburg Tel.: (0)441 - 84 53 1 Fax: (0)441 - 88 59 378 *Sitz:* Donnerschweer Str. 89-91 D 26123 Oldenburg Web: www.info-systems.de Firmierung und Handelsregisterangaben finden Sie unter diesem Link: Firmendaten. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: is-logo_150.jpg Type: image/jpeg Size: 13333 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dwilhelm at peakwebhosting.com Wed Nov 10 13:25:49 2010 From: dwilhelm at peakwebhosting.com (Dale Wilhelm) Date: Wed, 10 Nov 2010 04:25:49 -0800 Subject: Nagios Notification State Issue Message-ID: ( this time with a proper subject ) Hello All... I am seeing an odd problem host status and retention after reloads and I am wondering if anyone else has seen this and possibly knows of a fix it... When I disable notifications for a host via the UI the command completes and I see that notifications are indeed disabled, notifications stop, etc... However when I reload Nagios the notifications are re-enabled. This is only showing up with host checks, service check state is retained after a reload. I can see the status.dat file change however the retention.dat always stays the same ( notifications_enabled=0 ). I am not even sure if that is it or not, or if this is a permissions issue or some kind. Also, this has worked with this build in the past. It stopped working a short time ago... Any help would be greatly appreciated... Nagios Version: 3.2.1 ( perms ) -rw------- 1 nagios nagios 1003961 2010-11-10 03:47 retention.dat -rw-r--r-- 1 nagios nagios 757630 2010-11-10 03:47 objects.cache -rw-r--r-- 1 nagios nagios 80887 2010-11-10 04:05 nagios.log -rw-rw-r-- 1 nagios nagios 1000332 2010-11-10 04:05 status.dat Regards, Dale -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dwilhelm at peakwebhosting.com Wed Nov 10 13:21:42 2010 From: dwilhelm at peakwebhosting.com (Dale Wilhelm) Date: Wed, 10 Nov 2010 04:21:42 -0800 Subject: Message-ID: Hello All... I am seeing an odd problem host status and retention after reloads and I am wondering if anyone else has seen this and possibly knows of a fix it... When I disable notifications for a host via the UI the command completes and I see that notifications are indeed disabled, notifications stop, etc... However when I reload Nagios the notifications are re-enabled. This is only showing up with host checks, service check state is retained after a reload. I can see the status.dat file change however the retention.dat always stays the same ( notifications_enabled=0 ). I am not even sure if that is it or not, or if this is a permissions issue or some kind. Also, this has worked with this build in the past. It stopped working a short time ago... Any help would be greatly appreciated... Nagios Version: 3.2.1 ( perms ) -rw------- 1 nagios nagios 1003961 2010-11-10 03:47 retention.dat -rw-r--r-- 1 nagios nagios 757630 2010-11-10 03:47 objects.cache -rw-r--r-- 1 nagios nagios 80887 2010-11-10 04:05 nagios.log -rw-rw-r-- 1 nagios nagios 1000332 2010-11-10 04:05 status.dat Regards, Dale -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Nov 10 14:00:14 2010 From: ae at op5.se (Andreas Ericsson) Date: Wed, 10 Nov 2010 14:00:14 +0100 Subject: Nagios Notification State Issue In-Reply-To: References: Message-ID: <4CDA975E.1020700@op5.se> On 11/10/2010 01:25 PM, Dale Wilhelm wrote: > ( this time with a proper subject ) > > Hello All... > > I am seeing an odd problem host status and retention after reloads > and I am wondering if anyone else has seen this and possibly knows of > a fix it... When I disable notifications for a host via the UI the > command completes and I see that notifications are indeed disabled, > notifications stop, etc... However when I reload Nagios the > notifications are re-enabled. This is only showing up with host > checks, service check state is retained after a reload. I can see the > status.dat file change however the retention.dat always stays the > same ( notifications_enabled=0 ). I am not even sure if that is it or > not, or if this is a permissions issue or some kind. Also, this has > worked with this build in the past. It stopped working a short time > ago... Any help would be greatly appreciated... > Have you disabled retention data lately but kept an old retention data file around? Normally, retention data should be saved in a file named status.sav. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From work at paul.dubuc.org Wed Nov 10 16:27:57 2010 From: work at paul.dubuc.org (Paul M. Dubuc) Date: Wed, 10 Nov 2010 10:27:57 -0500 Subject: Time frame for Monitoring Performance? In-Reply-To: References: <1288603739.3179.58.camel@pcandre.nine.ch> Message-ID: <4CDAB9FD.10401@paul.dubuc.org> I'm using Nagios 3.2.3. I'm wondering what time frame is used for the measurements shown in the Monitoring Performance box on the Tactical Overview display. In particular, are the execution times (min. max. avg.) measured over the last hour, 10 minutes, or what? I can't find any information on this in the documents. Thanks, Paul Dubuc ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Nov 10 17:25:12 2010 From: ae at op5.se (Andreas Ericsson) Date: Wed, 10 Nov 2010 17:25:12 +0100 Subject: Time frame for Monitoring Performance? In-Reply-To: <4CDAB9FD.10401@paul.dubuc.org> References: <1288603739.3179.58.camel@pcandre.nine.ch> <4CDAB9FD.10401@paul.dubuc.org> Message-ID: <4CDAC768.5010409@op5.se> Please don't hijack threads. It's terribly bad form. On 11/10/2010 04:27 PM, Paul M. Dubuc wrote: > I'm using Nagios 3.2.3. I'm wondering what time frame is used for the > measurements shown in the Monitoring Performance box on the Tactical Overview > display. In particular, are the execution times (min. max. avg.) measured > over the last hour, 10 minutes, or what? I can't find any information on this > in the documents. > The execution times are measured over the last executed check for each host and services. Latency is calculated the exact same way. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mark.frost1 at pepsico.com Wed Nov 10 18:25:44 2010 From: mark.frost1 at pepsico.com (Frost, Mark {PBC}) Date: Wed, 10 Nov 2010 12:25:44 -0500 Subject: different notification_intervals by contact Message-ID: So we're setting up some Nagios checks for a new team and they're asking for something new that I'm not really sure we can do with Nagios. For any production alerts they want to receive pager alerts every 15 minutes and e-mail alerts every 60 minutes. Since each host/service definition has only a single notification_interval setting and contact definitions don't allow a notification_interval setting, I don't see how this can be done within that context. We don't currently use escalations for anything, but I've been staring at them and trying to figure out how that might work for us. In terms of using escalations to solve this problem I'm struck by several issues: - I'd be trying to use escalations to setup an indefinite pattern, not a system where there's an last_notification where everyone gets the notifications. - I have to do this for a lot of hosts/services and it doesn't look like I can wildcard service_descriptions (tried it and it failed). My other thought is to just have 2 checks for the same service where check A has the 15-minute notification_interval and goes to pagers and check B has a 1-hour notification_interval and goes to e-mail. And that's for a lot of services. I can't really do the duplicate checks on hosts. But either way, you know, "yuck". I keep thinking there's some easier more obvious solution that's eluding me to this. Is something that anyone else has solved? I'm inclined to tell them that we can't do this and get them to unify on one notification_interval like everyone else, but before I do, I thought I'd ask. Thanks Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From duncan at dcl.co.uk Wed Nov 10 18:59:57 2010 From: duncan at dcl.co.uk (Duncan Berriman) Date: Wed, 10 Nov 2010 17:59:57 -0000 Subject: different notification_intervals by contact In-Reply-To: References: Message-ID: <0b0101cb8101$160248f0$4206dad0$@dcl.co.uk> Escalations are a little pesky to get working correctly. Here is an example. define serviceescalation{ host_name .* service_description .* first_notification 1 last_notification 0 notification_interval 60 contact_groups admins escalation_period 24x7 escalation_options w,u,c,r } define serviceescalation{ host_name .* servicegroup_name disks,dns,firewall,load,mailq,processes,sendmail,ssh,time first_notification 2 last_notification 2 notification_interval 60 contact_groups support escalation_period 24x7 escalation_options w,u,c,r } define hostescalation{ host_name .* first_notification 1 last_notification 0 notification_interval 60 contact_groups admins escalation_period 24x7 escalation_options d,u,r } define hostescalation{ host_name .* first_notification 2 last_notification 2 notification_interval 60 contact_groups support escalation_period 24x7 escalation_options d,u,r } This alerts admins after the interval set on the host/service (5 mins) and then every hour. On the second alert (5+60 mins) it will alert support (for the services listed) just the once but then continue to alert admins every hour. At least that's what I think happens, I'm never sure with esculations! For this to work I had to enable regular expressions and set up service groups. I have a feeling I also removed the following from my hosts definitions as well. contact_groups admins notification_interval 30 notification_period 24x7 notification_options d,r Hope that helps and gives you some ideas. Duncan From: Frost, Mark {PBC} [mailto:mark.frost1 at pepsico.com] Sent: 10 November 2010 17:26 To: 'Nagios Users List' Subject: [Nagios-users] different notification_intervals by contact So we're setting up some Nagios checks for a new team and they're asking for something new that I'm not really sure we can do with Nagios. For any production alerts they want to receive pager alerts every 15 minutes and e-mail alerts every 60 minutes. Since each host/service definition has only a single notification_interval setting and contact definitions don't allow a notification_interval setting, I don't see how this can be done within that context. We don't currently use escalations for anything, but I've been staring at them and trying to figure out how that might work for us. In terms of using escalations to solve this problem I'm struck by several issues: - I'd be trying to use escalations to setup an indefinite pattern, not a system where there's an last_notification where everyone gets the notifications. - I have to do this for a lot of hosts/services and it doesn't look like I can wildcard service_descriptions (tried it and it failed). My other thought is to just have 2 checks for the same service where check A has the 15-minute notification_interval and goes to pagers and check B has a 1-hour notification_interval and goes to e-mail. And that's for a lot of services. I can't really do the duplicate checks on hosts. But either way, you know, "yuck". I keep thinking there's some easier more obvious solution that's eluding me to this. Is something that anyone else has solved? I'm inclined to tell them that we can't do this and get them to unify on one notification_interval like everyone else, but before I do, I thought I'd ask. Thanks Mark -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jwiggins at salon.com Wed Nov 10 21:13:06 2010 From: jwiggins at salon.com (Jonathan Wiggins) Date: Wed, 10 Nov 2010 12:13:06 -0800 Subject: "No Route to Host" error - ssh-key exchange issue even if plugin checks work? Message-ID: I'm stuck troubleshooting an error message in the Service Status Details, where a monitored host is being reported as "No Route to Host". I can do remote plugin tests from the Nagios server to the monitored node without any problems, but referencing this page: http://www.troubleshootingwiki.org/Troubleshooting_Nagios_3.0 I see a paragraph about testing SSH key-exchange. Nagios Server = 10.0.100.130 monitored node = 10.0.100.143 when I do an "ssh -vvvv 10.0.100.130" from the monitored node, it goes straight through, no login prompt. When the reverse is attempted: "ssh -vvvv 10.0.100.143" from Nagios box, I consistently get prompted for login. I was recommended to use DSA instead of RSA, but that made no difference. I've appended the contents of both id_rsa.pub and id_dsa.pub to the "authorized_keys" (and "known_hosts") files the exact same way to and from each box respectively. Of course my tests on 2 test systems worked perfectly, but I'm missing something with this setup. Additionally, if I do an NRPE check from Nagios > monitored node, it completes successfully. /usr/local/nagios/libexec/check_tcp -H 10.0.100.143 -p 5666 TCP OK - 0.000 second response time on port 5666|time=0.000361s;0.000000;0.000000;0.000000;10.000000 checking logs on monitored node: grep nrpe /var/log/messages /var/log/messages:Nov 10 12:01:26 monitorednode xinetd[5672]: START: nrpe pid=8607 from=10.0.100.130 /var/log/messages:Nov 10 12:01:26 monitorednode nrpe[8607]: Error: Could not complete SSL handshake. 5 /var/log/messages:Nov 10 12:01:26 monitorednode xinetd[5672]: EXIT: nrpe status=0 pid=8607 duration=0(sec) /var/log/messages:Nov 10 12:03:29 monitorednode xinetd[5672]: START: nrpe pid=9220 from=10.0.100.130 /var/log/messages:Nov 10 12:03:29 monitorednode nrpe[9220]: Error: Could not complete SSL handshake. 5 /var/log/messages:Nov 10 12:03:29 monitorednode xinetd[5672]: EXIT: nrpe status=0 pid=9220 duration=0(sec) "Error could not complete SSL handshake" seems to confirm my suspicions about the SSH key-exchange i'm quite junior on this so I really appreciate everyones patience and thanks in advance -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dwilhelm at peakwebhosting.com Wed Nov 10 23:43:47 2010 From: dwilhelm at peakwebhosting.com (Dale Wilhelm) Date: Wed, 10 Nov 2010 14:43:47 -0800 Subject: Nagios Notification State Issue In-Reply-To: <4CDA975E.1020700@op5.se> References: <4CDA975E.1020700@op5.se> Message-ID: Thanks for the reply... I haven't changed any of the setting for retention since the system was deployed. I tried deleting the retention.dat and status.dat and restarting and the problem persists. I even tried different user perms on the file and no go... Here are my settings nagios.conf: retain_state_information=1 state_retention_file=/usr/local/nagios-3.2.1/var/retention.dat retention_update_interval=60 use_retained_program_state=1 use_retained_scheduling_info=1 retained_host_attribute_mask=0 retained_service_attribute_mask=0 retained_process_host_attribute_mask=0 retained_process_service_attribute_mask=0 retained_contact_host_attribute_mask=0 retained_contact_service_attribute_mask=0 If I am not mistaken I believe all of that is set by default... I don't see any status.sav files. Just the status.dat... On 11/10/10 6:00 AM, "Andreas Ericsson" wrote: On 11/10/2010 01:25 PM, Dale Wilhelm wrote: > ( this time with a proper subject ) > > Hello All... > > I am seeing an odd problem host status and retention after reloads > and I am wondering if anyone else has seen this and possibly knows of > a fix it... When I disable notifications for a host via the UI the > command completes and I see that notifications are indeed disabled, > notifications stop, etc... However when I reload Nagios the > notifications are re-enabled. This is only showing up with host > checks, service check state is retained after a reload. I can see the > status.dat file change however the retention.dat always stays the > same ( notifications_enabled=0 ). I am not even sure if that is it or > not, or if this is a permissions issue or some kind. Also, this has > worked with this build in the past. It stopped working a short time > ago... Any help would be greatly appreciated... > Have you disabled retention data lately but kept an old retention data file around? Normally, retention data should be saved in a file named status.sav. -- Andreas Ericsson andreas.ericsson at 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jwiggins at salon.com Thu Nov 11 02:36:23 2010 From: jwiggins at salon.com (Jonathan Wiggins) Date: Wed, 10 Nov 2010 17:36:23 -0800 Subject: "No Route to Host" error - ssh-key exchange issue even if plugin checks work? In-Reply-To: References: Message-ID: <27D494A2-099E-404A-AE08-67BA2F6C0A84@salon.com> On Nov 10, 2010, at 12:13 PM, Jonathan Wiggins wrote: > I'm stuck troubleshooting an error message in the Service Status Details, where a monitored host is being reported as "No Route to Host". > > I can do remote plugin tests from the Nagios server to the monitored node without any problems, but referencing this page: http://www.troubleshootingwiki.org/Troubleshooting_Nagios_3.0 I see a paragraph about testing SSH key-exchange. > > Nagios Server = 10.0.100.130 > monitored node = 10.0.100.143 > > when I do an "ssh -vvvv 10.0.100.130" from the monitored node, it goes straight through, no login prompt. When the reverse is attempted: "ssh -vvvv 10.0.100.143" from Nagios box, I consistently get prompted for login. I was recommended to use DSA instead of RSA, but that made no difference. > > I've appended the contents of both id_rsa.pub and id_dsa.pub to the "authorized_keys" (and "known_hosts") files the exact same way to and from each box respectively. Of course my tests on 2 test systems worked perfectly, but I'm missing something with this setup. > > Additionally, if I do an NRPE check from Nagios > monitored node, it completes successfully. > > /usr/local/nagios/libexec/check_tcp -H 10.0.100.143 -p 5666 > TCP OK - 0.000 second response time on port 5666|time=0.000361s;0.000000;0.000000;0.000000;10.000000 > > checking logs on monitored node: > > grep nrpe /var/log/messages > > > /var/log/messages:Nov 10 12:01:26 monitorednode xinetd[5672]: START: nrpe pid=8607 from=10.0.100.130 > /var/log/messages:Nov 10 12:01:26 monitorednode nrpe[8607]: Error: Could not complete SSL handshake. 5 > /var/log/messages:Nov 10 12:01:26 monitorednode xinetd[5672]: EXIT: nrpe status=0 pid=8607 duration=0(sec) > /var/log/messages:Nov 10 12:03:29 monitorednode xinetd[5672]: START: nrpe pid=9220 from=10.0.100.130 > /var/log/messages:Nov 10 12:03:29 monitorednode nrpe[9220]: Error: Could not complete SSL handshake. 5 > /var/log/messages:Nov 10 12:03:29 monitorednode xinetd[5672]: EXIT: nrpe status=0 pid=9220 duration=0(sec) > > "Error could not complete SSL handshake" seems to confirm my suspicions about the SSH key-exchange > > Ok, i've solved the SSH key-exchange part of my problem (criss-crossed id_rsa.pub keys or something) - so I have that piece figured out. But the "No Route to Host" message is still visible in Service Host Details for my monitored node. so.. am able to run the following against remote host: /usr/local/nagios/libexec/check_tcp -H 10.0.100.143 -p 5666 TCP OK - 0.000 second response time on port 5666|time=0.000361s;0.000000;0.000000;0.000000;10.000000 and this: ssh 10.0.100.143 /usr/local/nagios/libexec/check_procs PROCS OK: 603 processes I see this in the messages files: Nov 9 00:00:00 nagiosbox nagios: CURRENT SERVICE STATE: monitorednode;Home Page;CRITICAL;HARD;1;No route to host Nov 10 00:00:00 nagiosbox nagios: CURRENT HOST STATE: monitorednode;UP;HARD;1;PING OK - Packet loss = 0%, RTA = 0.21 ms Nov 10 00:00:00 nagiosbox nagios: CURRENT SERVICE STATE: monitorednode;Home Page;CRITICAL;HARD;1;No route to host which looks like there is no packet loss on the PING to the host, but then it shows No Route To Host Thanks again for the assistance. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From yu.watanabe at jp.fujitsu.com Thu Nov 11 11:06:08 2010 From: yu.watanabe at jp.fujitsu.com (Yu Watanabe) Date: Thu, 11 Nov 2010 19:06:08 +0900 Subject: Nagios host check retry interval inconsistent Message-ID: <201011111006.AA02795@S2007337.jp.fujitsu.com> Hello all. I would like to ask a regarding to the host check retry interval. This is about nagios 3.0.6 , little bit old. I have set the interval length as 30 and the host check retry interval as default , 1. However, the interval seems to be not always 40 which includes the reaper interval. [1289460951] HOST ALERT: localhost;DOWN;SOFT;2;CRITICAL - 192.1.1.1: rta nan, lost 100% [1289460991] HOST ALERT: localhost;DOWN;SOFT;3;CRITICAL - 192.1.1.1: rta nan, lost 100% [1289461011] HOST ALERT: localhost;DOWN;SOFT;4;CRITICAL - 192.1.1.1: rta nan, lost 100% [1289461032] HOST ALERT: localhost;DOWN;SOFT;5;CRITICAL - 192.1.1.1: rta nan, lost 100% [1289461071] HOST ALERT: localhost;DOWN;SOFT;6;CRITICAL - 192.1.1.1: rta nan, lost 100% [1289461101] HOST ALERT: localhost;DOWN;SOFT;7;CRITICAL - 192.1.1.1: rta nan, lost 100% [1289461111] HOST ALERT: localhost;DOWN;SOFT;8;CRITICAL - 192.1.1.1: rta nan, lost 100% [1289461151] HOST ALERT: localhost;DOWN;SOFT;9;CRITICAL - 192.1.1.1: rta nan, lost 100% [1289461191] HOST ALERT: localhost;DOWN;HARD;10;CRITICAL - 192.1.1.1: rta nan, lost 100% Is there a certain rule in nagios process about this ? Any advice would be helpful. Thanks! Yu Watanabe ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Thu Nov 11 11:57:51 2010 From: ae at op5.se (Andreas Ericsson) Date: Thu, 11 Nov 2010 11:57:51 +0100 Subject: Nagios host check retry interval inconsistent In-Reply-To: <201011111006.AA02795@S2007337.jp.fujitsu.com> References: <201011111006.AA02795@S2007337.jp.fujitsu.com> Message-ID: <4CDBCC2F.5080905@op5.se> On 11/11/2010 11:06 AM, Yu Watanabe wrote: > Hello all. > > I would like to ask a regarding to the host check retry interval. > This is about nagios 3.0.6 , little bit old. > > I have set the interval length as 30 and the host check retry interval as default , 1. > > However, the interval seems to be not always 40 which includes the reaper interval. > > [1289460951] HOST ALERT: localhost;DOWN;SOFT;2;CRITICAL - 192.1.1.1: rta nan, lost 100% > [1289460991] HOST ALERT: localhost;DOWN;SOFT;3;CRITICAL - 192.1.1.1: rta nan, lost 100% > [1289461011] HOST ALERT: localhost;DOWN;SOFT;4;CRITICAL - 192.1.1.1: rta nan, lost 100% > [1289461032] HOST ALERT: localhost;DOWN;SOFT;5;CRITICAL - 192.1.1.1: rta nan, lost 100% > [1289461071] HOST ALERT: localhost;DOWN;SOFT;6;CRITICAL - 192.1.1.1: rta nan, lost 100% > [1289461101] HOST ALERT: localhost;DOWN;SOFT;7;CRITICAL - 192.1.1.1: rta nan, lost 100% > [1289461111] HOST ALERT: localhost;DOWN;SOFT;8;CRITICAL - 192.1.1.1: rta nan, lost 100% > [1289461151] HOST ALERT: localhost;DOWN;SOFT;9;CRITICAL - 192.1.1.1: rta nan, lost 100% > [1289461191] HOST ALERT: localhost;DOWN;HARD;10;CRITICAL - 192.1.1.1: rta nan, lost 100% > > Is there a certain rule in nagios process about this ? > Failing service checks trigger host checks. I think there was some patch to make forced hostchecks not count as an attempt. I might be mistaken though, but if you upgrade your Nagios you should see it behave differently. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From yu.watanabe at jp.fujitsu.com Thu Nov 11 12:21:50 2010 From: yu.watanabe at jp.fujitsu.com (Yu Watanabe) Date: Thu, 11 Nov 2010 20:21:50 +0900 Subject: Nagios host check retry interval inconsistent In-Reply-To: <4CDBCC2F.5080905@op5.se> References: <4CDBCC2F.5080905@op5.se> Message-ID: <201011111121.AA02797@S2007337.jp.fujitsu.com> Hello Andreas. Thank you for the reply. >Failing service checks trigger host checks. I think there was some >patch to make forced hostchecks not count as an attempt. I might >be mistaken though, but if you upgrade your Nagios you should see >it behave differently. So in old version there are some incosistency for the host check retry? Such as Nagios fails to reschedule according to the host check retry. I am very curious about this and if there were a discussion preriously, do you have a reference about that discussion? Else, I will try to check the source code. Thanks! Yu Watanabe Andreas Ericsson ????????: >On 11/11/2010 11:06 AM, Yu Watanabe wrote: >> Hello all. >> >> I would like to ask a regarding to the host check retry interval. >> This is about nagios 3.0.6 , little bit old. >> >> I have set the interval length as 30 and the host check retry interval as default , 1. >> >> However, the interval seems to be not always 40 which includes the reaper interval. >> >> [1289460951] HOST ALERT: localhost;DOWN;SOFT;2;CRITICAL - 192.1.1.1: rta nan, lost 100% >> [1289460991] HOST ALERT: localhost;DOWN;SOFT;3;CRITICAL - 192.1.1.1: rta nan, lost 100% >> [1289461011] HOST ALERT: localhost;DOWN;SOFT;4;CRITICAL - 192.1.1.1: rta nan, lost 100% >> [1289461032] HOST ALERT: localhost;DOWN;SOFT;5;CRITICAL - 192.1.1.1: rta nan, lost 100% >> [1289461071] HOST ALERT: localhost;DOWN;SOFT;6;CRITICAL - 192.1.1.1: rta nan, lost 100% >> [1289461101] HOST ALERT: localhost;DOWN;SOFT;7;CRITICAL - 192.1.1.1: rta nan, lost 100% >> [1289461111] HOST ALERT: localhost;DOWN;SOFT;8;CRITICAL - 192.1.1.1: rta nan, lost 100% >> [1289461151] HOST ALERT: localhost;DOWN;SOFT;9;CRITICAL - 192.1.1.1: rta nan, lost 100% >> [1289461191] HOST ALERT: localhost;DOWN;HARD;10;CRITICAL - 192.1.1.1: rta nan, lost 100% >> >> Is there a certain rule in nagios process about this ? >> > >Failing service checks trigger host checks. I think there was some >patch to make forced hostchecks not count as an attempt. I might >be mistaken though, but if you upgrade your Nagios you should see >it behave differently. > >-- >Andreas Ericsson andreas.ericsson at 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. > ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Thu Nov 11 12:30:01 2010 From: ae at op5.se (Andreas Ericsson) Date: Thu, 11 Nov 2010 12:30:01 +0100 Subject: Nagios host check retry interval inconsistent In-Reply-To: <201011111121.AA02797@S2007337.jp.fujitsu.com> References: <4CDBCC2F.5080905@op5.se> <201011111121.AA02797@S2007337.jp.fujitsu.com> Message-ID: <4CDBD3B9.7080304@op5.se> On 11/11/2010 12:21 PM, Yu Watanabe wrote: > Hello Andreas. > > Thank you for the reply. > >> Failing service checks trigger host checks. I think there was some >> patch to make forced hostchecks not count as an attempt. I might >> be mistaken though, but if you upgrade your Nagios you should see >> it behave differently. > > So in old version there are some incosistency for the host check retry? > Such as Nagios fails to reschedule according to the host check retry. > Not that it fails to reschedule it. Just that failing service checks always force a hostcheck to occur. That's by design. The change was, afair, to make sure Nagios doesn't reschedule the hostcheck when a forced hostcheck happens, and also to not increment the check attempt variable. I could be entirely wrong though. > I am very curious about this and if there were a discussion preriously, > do you have a reference about that discussion? Else, I will try to check the > source code. > Google and a decent source code editor are your best bets. Good luck. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From yu.watanabe at jp.fujitsu.com Thu Nov 11 13:13:20 2010 From: yu.watanabe at jp.fujitsu.com (Yu Watanabe) Date: Thu, 11 Nov 2010 21:13:20 +0900 Subject: Nagios host check retry interval inconsistent In-Reply-To: <4CDBD3B9.7080304@op5.se> References: <4CDBD3B9.7080304@op5.se> Message-ID: <201011111213.AA02800@S2007337.jp.fujitsu.com> >Not that it fails to reschedule it. Just that failing service checks always >force a hostcheck to occur. That's by design. The change was, afair, to >make sure Nagios doesn't reschedule the hostcheck when a forced hostcheck >happens, and also to not increment the check attempt variable. Sorry my words were wrong. I meant by the interval is not the value that I have specified. If I list both host check and service check, it would be like this: [1289460901] SERVICE ALERT: localhost;icmp_ping;CRITICAL;SOFT;1;CRITICAL - Network Unreachable (192.1.1.1) [1289460911] HOST ALERT: localhost;DOWN;SOFT;1;CRITICAL - 192.1.1.1: rta nan, lost 100% [1289460931] SERVICE ALERT: localhost;icmp_ping;CRITICAL;HARD;1;CRITICAL - Network Unreachable (192.1.1.1) [1289460951] HOST ALERT: localhost;DOWN;SOFT;2;CRITICAL - 192.1.1.1: rta nan, lost 100% [1289460991] HOST ALERT: localhost;DOWN;SOFT;3;CRITICAL - 192.1.1.1: rta nan, lost 100% [1289461011] HOST ALERT: localhost;DOWN;SOFT;4;CRITICAL - 192.1.1.1: rta nan, lost 100% [1289461032] HOST ALERT: localhost;DOWN;SOFT;5;CRITICAL - 192.1.1.1: rta nan, lost 100% [1289461071] HOST ALERT: localhost;DOWN;SOFT;6;CRITICAL - 192.1.1.1: rta nan, lost 100% [1289461101] HOST ALERT: localhost;DOWN;SOFT;7;CRITICAL - 192.1.1.1: rta nan, lost 100% [1289461111] HOST ALERT: localhost;DOWN;SOFT;8;CRITICAL - 192.1.1.1: rta nan, lost 100% [1289461151] HOST ALERT: localhost;DOWN;SOFT;9;CRITICAL - 192.1.1.1: rta nan, lost 100% [1289461191] HOST ALERT: localhost;DOWN;HARD;10;CRITICAL - 192.1.1.1: rta nan, lost 100% However, when it comes to the 4th host check , the host check occured only in 20 seconds not 40 seconds. I see that service check already turned to HARD status ,so I just don't see the reason why the interval suddenly changed to 20 seconds. Any idea about this? Thanks! Yu Watanabe Andreas Ericsson ????????: >On 11/11/2010 12:21 PM, Yu Watanabe wrote: >> Hello Andreas. >> >> Thank you for the reply. >> >>> Failing service checks trigger host checks. I think there was some >>> patch to make forced hostchecks not count as an attempt. I might >>> be mistaken though, but if you upgrade your Nagios you should see >>> it behave differently. >> >> So in old version there are some incosistency for the host check retry? >> Such as Nagios fails to reschedule according to the host check retry. >> > >Not that it fails to reschedule it. Just that failing service checks always >force a hostcheck to occur. That's by design. The change was, afair, to >make sure Nagios doesn't reschedule the hostcheck when a forced hostcheck >happens, and also to not increment the check attempt variable. > >I could be entirely wrong though. > >> I am very curious about this and if there were a discussion preriously, >> do you have a reference about that discussion? Else, I will try to check the >> source code. >> > >Google and a decent source code editor are your best bets. Good luck. > >-- >Andreas Ericsson andreas.ericsson at 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. > ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Thu Nov 11 13:20:07 2010 From: ae at op5.se (Andreas Ericsson) Date: Thu, 11 Nov 2010 13:20:07 +0100 Subject: Nagios host check retry interval inconsistent In-Reply-To: <201011111213.AA02800@S2007337.jp.fujitsu.com> References: <4CDBD3B9.7080304@op5.se> <201011111213.AA02800@S2007337.jp.fujitsu.com> Message-ID: <4CDBDF77.40909@op5.se> On 11/11/2010 01:13 PM, Yu Watanabe wrote: >> Not that it fails to reschedule it. Just that failing service checks always >> force a hostcheck to occur. That's by design. The change was, afair, to >> make sure Nagios doesn't reschedule the hostcheck when a forced hostcheck >> happens, and also to not increment the check attempt variable. > > Sorry my words were wrong. I meant by the interval is not the value that > I have specified. If I list both host check and service check, it > would be like this: > > [1289460901] SERVICE ALERT: localhost;icmp_ping;CRITICAL;SOFT;1;CRITICAL - Network Unreachable (192.1.1.1) > [1289460911] HOST ALERT: localhost;DOWN;SOFT;1;CRITICAL - 192.1.1.1: rta nan, lost 100% > [1289460931] SERVICE ALERT: localhost;icmp_ping;CRITICAL;HARD;1;CRITICAL - Network Unreachable (192.1.1.1) > [1289460951] HOST ALERT: localhost;DOWN;SOFT;2;CRITICAL - 192.1.1.1: rta nan, lost 100% > [1289460991] HOST ALERT: localhost;DOWN;SOFT;3;CRITICAL - 192.1.1.1: rta nan, lost 100% > [1289461011] HOST ALERT: localhost;DOWN;SOFT;4;CRITICAL - 192.1.1.1: rta nan, lost 100% > [1289461032] HOST ALERT: localhost;DOWN;SOFT;5;CRITICAL - 192.1.1.1: rta nan, lost 100% > [1289461071] HOST ALERT: localhost;DOWN;SOFT;6;CRITICAL - 192.1.1.1: rta nan, lost 100% > [1289461101] HOST ALERT: localhost;DOWN;SOFT;7;CRITICAL - 192.1.1.1: rta nan, lost 100% > [1289461111] HOST ALERT: localhost;DOWN;SOFT;8;CRITICAL - 192.1.1.1: rta nan, lost 100% > [1289461151] HOST ALERT: localhost;DOWN;SOFT;9;CRITICAL - 192.1.1.1: rta nan, lost 100% > [1289461191] HOST ALERT: localhost;DOWN;HARD;10;CRITICAL - 192.1.1.1: rta nan, lost 100% > > However, when it comes to the 4th host check , the host check occured only in 20 seconds > not 40 seconds. I see that service check already turned to HARD status ,so I just > don't see the reason why the interval suddenly changed to 20 seconds. > > Any idea about this? > Like I said; Google and some source code history browsing will be your tools. I also mentioned that upgrading Nagios may prove beneficial to your cause. Try that before getting back to the list again, please. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lists at xodus.org Thu Nov 11 14:26:52 2010 From: lists at xodus.org (Marc Powell) Date: Thu, 11 Nov 2010 07:26:52 -0600 Subject: "No Route to Host" error - ssh-key exchange issue even if plugin checks work? In-Reply-To: <27D494A2-099E-404A-AE08-67BA2F6C0A84@salon.com> References: <27D494A2-099E-404A-AE08-67BA2F6C0A84@salon.com> Message-ID: On Nov 10, 2010, at 7:36 PM, Jonathan Wiggins wrote: > I see this in the messages files: > > Nov 9 00:00:00 nagiosbox nagios: CURRENT SERVICE STATE: monitorednode;Home Page;CRITICAL;HARD;1;No route to host > Nov 10 00:00:00 nagiosbox nagios: CURRENT HOST STATE: monitorednode;UP;HARD;1;PING OK - Packet loss = 0%, RTA = 0.21 ms > Nov 10 00:00:00 nagiosbox nagios: CURRENT SERVICE STATE: monitorednode;Home Page;CRITICAL;HARD;1;No route to host > > which looks like there is no packet loss on the PING to the host, but then it shows No Route To Host 'No Route To Host' is not a nagios error message but is coming from your operating system. Based on that and the above information, I'd say that the 'Home Page' check is being told to check a different, invalid, host name or address than the ping check. Please post the host{}, service{} and command{} definition related to the 'Home Page' check if that's not enough to get you on the right path so we can take a look at it. -- Marc ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rik.dahlberg at gmail.com Thu Nov 11 14:42:48 2010 From: rik.dahlberg at gmail.com (Rikard Dahlberg) Date: Thu, 11 Nov 2010 13:42:48 +0000 Subject: Nagios passive checks, client? Message-ID: Hello! I'm fairly new to nagios, and im hoping that someone of you have had a similiar situation which i am currently facing. The active servers i got on my local network is being monitored fine, with all the services i have written. BUT, how do i monitor a server BEHIND a firewall? can i filter on ports on the firewall to accept active checks from nagios, or can i walk around the problem by configuring pasive checks? Meaning klient -> server, instead of server -> klient. Ive read that this particular option is when i want to use NSCA, which im trying to get to work, but so far no success. I do want some kind of client-agent that sends out notifications to my nagios server, but at this point, i havn't got anything to work... Could someone please help me out? Is nsca the best option? Or are there other choices? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Edwin.Zoeller at ama-assn.org Thu Nov 11 16:19:32 2010 From: Edwin.Zoeller at ama-assn.org (Edwin Zoeller) Date: Thu, 11 Nov 2010 09:19:32 -0600 Subject: Map Message-ID: I have a question that I hope someone give me some guidance on. How do I view the map? What I try it still looks all jumbled together. Thanks, Ed P Please consider the environment before printing this e-mail -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pangrazi at gmail.com Thu Nov 11 16:59:07 2010 From: pangrazi at gmail.com (Greg Pangrazio) Date: Thu, 11 Nov 2010 09:59:07 -0600 Subject: Nagios passive checks, client? In-Reply-To: References: Message-ID: What kind of hosts are you monitoring on the remote end? Greg Pangrazio On Thu, Nov 11, 2010 at 7:42 AM, Rikard Dahlberg wrote: > Hello! > > I'm fairly new to nagios, and im hoping that someone of you have had a > similiar situation which i am currently facing. > The active servers i got on my local network is being monitored fine, with > all the services i have written. > > BUT, how do i monitor a server BEHIND a firewall? can i filter on ports on > the firewall to accept active checks from nagios, or can i walk around the > problem by configuring pasive checks? Meaning klient -> server, instead of > server -> klient. > Ive read that this particular option is when i want to use NSCA, which im > trying to? get to work, but so far no success. I do want some kind of > client-agent that sends out notifications to my nagios server, but at this > point, i havn't got anything to work... > > Could someone please help me out? Is nsca the best option? Or are there > other choices? > > ------------------------------------------------------------------------------ > Centralized Desktop Delivery: Dell and VMware Reference Architecture > Simplifying enterprise desktop deployment and management using > Dell EqualLogic storage and VMware View: A highly scalable, end-to-end > client virtualization framework. Read more! > http://p.sf.net/sfu/dell-eql-dev2dev > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From CMacleod at edrington.co.uk Thu Nov 11 16:35:43 2010 From: CMacleod at edrington.co.uk (Macleod, Chris) Date: Thu, 11 Nov 2010 15:35:43 -0000 Subject: Map Message-ID: The map is built automatically based on the parent/child relationship you have set in your host definitions. For instance if you make Switch1 the parent of Server1 and switch1 parent is local host you will have a map of Server1->Switch1=>Localhost This also means if switch1 goes down nagios knows server1 will be unreachable - helps reduce alerts. From: Edwin Zoeller [mailto:Edwin.Zoeller at ama-assn.org] Sent: 11 November 2010 15:20 To: Nagios Users List Subject: [Nagios-users] Map I have a question that I hope someone give me some guidance on. How do I view the map? What I try it still looks all jumbled together. Thanks, Ed P Please consider the environment before printing this e-mail ________________________________________________________________________ This e-mail has been scanned for all viruses by MessageLabs. TEG-IN ________________________________________________________________________ This e-mail has been scanned for all viruses by Message Labs. Please enjoy our brands responsibly. www.drinkaware.co.uk The Edrington Group is a private limited company registered in Scotland (Registered Number SC 36374) with its Registered Office at 2500 Great Western Road, Glasgow, G15 6RW. ________________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rik.dahlberg at gmail.com Thu Nov 11 17:05:57 2010 From: rik.dahlberg at gmail.com (Rikard Dahlberg) Date: Thu, 11 Nov 2010 16:05:57 +0000 Subject: Nagios passive checks, client? In-Reply-To: References: , Message-ID: Hello! only a couple of windows servers... (sadly ;) ) im however planning on monitor the firewall, but that is for later .. > From: pangrazi at gmail.com > Date: Thu, 11 Nov 2010 09:59:07 -0600 > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Nagios passive checks, client? > > What kind of hosts are you monitoring on the remote end? > > Greg Pangrazio > > > > > > On Thu, Nov 11, 2010 at 7:42 AM, Rikard Dahlberg wrote: > > Hello! > > > > I'm fairly new to nagios, and im hoping that someone of you have had a > > similiar situation which i am currently facing. > > The active servers i got on my local network is being monitored fine, with > > all the services i have written. > > > > BUT, how do i monitor a server BEHIND a firewall? can i filter on ports on > > the firewall to accept active checks from nagios, or can i walk around the > > problem by configuring pasive checks? Meaning klient -> server, instead of > > server -> klient. > > Ive read that this particular option is when i want to use NSCA, which im > > trying to get to work, but so far no success. I do want some kind of > > client-agent that sends out notifications to my nagios server, but at this > > point, i havn't got anything to work... > > > > Could someone please help me out? Is nsca the best option? Or are there > > other choices? > > > > ------------------------------------------------------------------------------ > > Centralized Desktop Delivery: Dell and VMware Reference Architecture > > Simplifying enterprise desktop deployment and management using > > Dell EqualLogic storage and VMware View: A highly scalable, end-to-end > > client virtualization framework. Read more! > > http://p.sf.net/sfu/dell-eql-dev2dev > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when reporting > > any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > ------------------------------------------------------------------------------ > Centralized Desktop Delivery: Dell and VMware Reference Architecture > Simplifying enterprise desktop deployment and management using > Dell EqualLogic storage and VMware View: A highly scalable, end-to-end > client virtualization framework. Read more! > http://p.sf.net/sfu/dell-eql-dev2dev > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pangrazi at gmail.com Thu Nov 11 17:37:40 2010 From: pangrazi at gmail.com (Greg Pangrazio) Date: Thu, 11 Nov 2010 10:37:40 -0600 Subject: Nagios passive checks, client? In-Reply-To: References: Message-ID: If they are just windows, i would check out check_nt and the NSClient. I use that to monitor about 20 hosts and probably 200 services behind a firewall. That requires a client software to be installed on the windows boxes though. Some people balk at that. I do go the passive route as well but that requires a host in the network to do the "active" side of the check or a client on each system. I like the reporting I get out of the NSClient a bit better personally. Greg Pangrazio On Thu, Nov 11, 2010 at 10:05 AM, Rikard Dahlberg wrote: > > Hello! > > only a couple of windows servers... (sadly ;) ) > im however planning on monitor the firewall, but that is for later .. > >> From: pangrazi at gmail.com >> Date: Thu, 11 Nov 2010 09:59:07 -0600 >> To: nagios-users at lists.sourceforge.net >> Subject: Re: [Nagios-users] Nagios passive checks, client? >> >> What kind of hosts are you monitoring on the remote end? >> >> Greg Pangrazio >> >> >> >> >> >> On Thu, Nov 11, 2010 at 7:42 AM, Rikard Dahlberg >> wrote: >> > Hello! >> > >> > I'm fairly new to nagios, and im hoping that someone of you have had a >> > similiar situation which i am currently facing. >> > The active servers i got on my local network is being monitored fine, >> > with >> > all the services i have written. >> > >> > BUT, how do i monitor a server BEHIND a firewall? can i filter on ports >> > on >> > the firewall to accept active checks from nagios, or can i walk around >> > the >> > problem by configuring pasive checks? Meaning klient -> server, instead >> > of >> > server -> klient. >> > Ive read that this particular option is when i want to use NSCA, which >> > im >> > trying to? get to work, but so far no success. I do want some kind of >> > client-agent that sends out notifications to my nagios server, but at >> > this >> > point, i havn't got anything to work... >> > >> > Could someone please help me out? Is nsca the best option? Or are there >> > other choices? >> > >> > >> > ------------------------------------------------------------------------------ >> > Centralized Desktop Delivery: Dell and VMware Reference Architecture >> > Simplifying enterprise desktop deployment and management using >> > Dell EqualLogic storage and VMware View: A highly scalable, end-to-end >> > client virtualization framework. Read more! >> > http://p.sf.net/sfu/dell-eql-dev2dev >> > _______________________________________________ >> > Nagios-users mailing list >> > Nagios-users at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/nagios-users >> > ::: Please include Nagios version, plugin version (-v) and OS when >> > reporting >> > any issue. >> > ::: Messages without supporting info will risk being sent to /dev/null >> > >> >> >> ------------------------------------------------------------------------------ >> Centralized Desktop Delivery: Dell and VMware Reference Architecture >> Simplifying enterprise desktop deployment and management using >> Dell EqualLogic storage and VMware View: A highly scalable, end-to-end >> client virtualization framework. Read more! >> http://p.sf.net/sfu/dell-eql-dev2dev >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------------------------------ > Centralized Desktop Delivery: Dell and VMware Reference Architecture > Simplifying enterprise desktop deployment and management using > Dell EqualLogic storage and VMware View: A highly scalable, end-to-end > client virtualization framework. Read more! > http://p.sf.net/sfu/dell-eql-dev2dev > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jwiggins at salon.com Thu Nov 11 20:46:04 2010 From: jwiggins at salon.com (Jonathan Wiggins) Date: Thu, 11 Nov 2010 11:46:04 -0800 Subject: "No Route to Host" error - ssh-key exchange issue even if plugin checks work? In-Reply-To: References: <27D494A2-099E-404A-AE08-67BA2F6C0A84@salon.com> Message-ID: <4F3AB9EB-5CE7-4CA0-995F-B013CBF8129B@salon.com> On Nov 11, 2010, at 5:26 AM, Marc Powell wrote: > > On Nov 10, 2010, at 7:36 PM, Jonathan Wiggins wrote: > >> I see this in the messages files: >> >> Nov 9 00:00:00 nagiosbox nagios: CURRENT SERVICE STATE: monitorednode;Home Page;CRITICAL;HARD;1;No route to host >> Nov 10 00:00:00 nagiosbox nagios: CURRENT HOST STATE: monitorednode;UP;HARD;1;PING OK - Packet loss = 0%, RTA = 0.21 ms >> Nov 10 00:00:00 nagiosbox nagios: CURRENT SERVICE STATE: monitorednode;Home Page;CRITICAL;HARD;1;No route to host >> >> which looks like there is no packet loss on the PING to the host, but then it shows No Route To Host > > 'No Route To Host' is not a nagios error message but is coming from your operating system. Based on that and the above information, I'd say that the 'Home Page' check is being told to check a different, invalid, host name or address than the ping check. > > Please post the host{}, service{} and command{} definition related to the 'Home Page' check if that's not enough to get you on the right path so we can take a look at it. > > -- > Marc > ------------------------------------------------------------------------------ Hi Marc Thanks for answering my question. what you say above makes total sense, except that I can't find a "home page" check anywhere on the system. I can locate the check_ping, check_http, check_host_alive.. but they dont reference anything by host name or IP for that matter: I got these from /usr/local/nagios/etc/objects/commands.cfg 'check-host-alive' command definition define command{ command_name check-host-alive command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 5 'check_ping' command definition define command{ command_name check_ping command_line $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5 # 'check_http' command definition define command{ command_name check_http command_line $USER1$/check_http -I $HOSTADDRESS$ $ARG1$ } Under /etc/rc.d/init.d/nagios I can see that I've got the paths right: prefix="/usr/local/nagios" exec_prefix="/usr/local/nagios" exec="/usr/local/nagios/bin/nagios" config="/usr/local/nagios/etc/nagios.cfg" It probably doesn't help my understanding/troubleshooting that the previous admin rolled up 2 different sets of binaries, and wound up different paths; e.g. /usr/local/nagios vs /etc/nagios/ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhall at iodatacenters.com Thu Nov 11 23:27:06 2010 From: jhall at iodatacenters.com (Hall, JC) Date: Thu, 11 Nov 2010 15:27:06 -0700 Subject: Notifications on passive service checks Message-ID: <57F018B226E004449B318DAF71A6014658D1C8ED23@IO-SCD-EX-M-01.corp.iodatacenters.com> Is it accurate that Nagios will only send 1 notification for a passive service check? IE, the notification_interval definition for a passively checked service won't instruct Nagios to re-send a notification such as with actively checked services? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.morris at hp.com Fri Nov 12 06:09:31 2010 From: patrick.morris at hp.com (Morris, Patrick) Date: Thu, 11 Nov 2010 21:09:31 -0800 Subject: "No Route to Host" error - ssh-key exchange issue even if plugin checks work? In-Reply-To: <4F3AB9EB-5CE7-4CA0-995F-B013CBF8129B@salon.com> References: <27D494A2-099E-404A-AE08-67BA2F6C0A84@salon.com> <4F3AB9EB-5CE7-4CA0-995F-B013CBF8129B@salon.com> Message-ID: <4CDCCC0B.3020003@hp.com> On 11/11/2010 11:46 AM, Jonathan Wiggins wrote: > >> 'No Route To Host' is not a nagios error message but is coming from >> your operating system. Based on that and the above information, I'd >> say that the 'Home Page' check is being told to check a different, >> invalid, host name or address than the ping check. >> >> Please post the host{}, service{} and command{} definition related to >> the 'Home Page' check if that's not enough to get you on the right >> path so we can take a look at it. > > what you say above makes total sense, except that I can't find a "home > page" check anywhere on the system. I can locate the check_ping, > check_http, check_host_alive.. but they dont reference anything by > host name or IP for that matter: > Try something like "grep -R 'Home Page' /usr/local/magios/etc; grep -R 'Home Page' /etc/nagios. It's on the system somewhere, and once you find it you may have your answer. Without any information about how it's set up, it's impossible to say with any certainty why it's breaking. ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From danilo.godec at agenda.si Fri Nov 12 09:01:54 2010 From: danilo.godec at agenda.si (Danilo Godec) Date: Fri, 12 Nov 2010 09:01:54 +0100 Subject: Nagios check with multiple results and graphing Message-ID: <4CDCF472.6090403@agenda.si> Hi, I would like to graph the CPU usage of a Xen host using NagiosGrapher. I created a custom check that utilizes 'xentop' and I can have that script show the 'total' CPU usage, but also CPU usage of each VM - like that: > XEN_DOMU_PERF - domU1 CpuUsage:.35% MemUsage:9.4% > XEN_DOMU_PERF - domU2 CpuUsage:.02% MemUsage:6.3% > XEN_DOMU_PERF - domU3 CpuUsage:.25% MemUsage:1.6% > XEN_DOMU_PERF - Domain-0 CpuUsage:4.35% MemUsage:3.1% > XEN_DOMU_PERF - domU4 CpuUsage:1.30% MemUsage:6.3% > XEN_DOMU_PERF - domU5 CpuUsage:32.72% MemUsage:6.3% > XEN_DOMU_PERF - domU6 CpuUsage:.20% MemUsage:6.3% > XEN_DOMU_PERF - domU7 CpuUsage:.25% MemUsage:3.1% > XEN_DOMU_PERF - domU8 CpuUsage:.05% MemUsage:4.7% > XEN_DOMU_PERF - domU9 CpuUsage:.02% MemUsage:6.3% > XEN_DOMU_PERF - domU10 CpuUsage:13.97% MemUsage:37.5% > XEN_PERFORMANCE OK - CPUs:4 CpuUsage:53.50% MemTotal:16378MB > MemUsage:90.9% The 'problem' is, that DomU's are 'dynamic' - they get moved around Xen hosts, new VM's are created, some are shutdown etc... Is there any way to create such a 'dynamic' graph without the need to constantly update Nagios and NagiosGrapher configuration? Danilo ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Sunny_Jaisinghani at symantec.com Fri Nov 12 10:02:29 2010 From: Sunny_Jaisinghani at symantec.com (Sunny Jaisinghani) Date: Fri, 12 Nov 2010 14:32:29 +0530 Subject: upgrade nagios 1.4.1 to nagios 3.2.3 Message-ID: Hi, Can someone describe steps to upgrade nagios 1.4.1 to nagios 3.2.3. Currently i am monitoring over 500 hosts and 3000 services using nagios 1.4.1 I am also using nsca and ocsp for nagios failover. Nagios 1.4.1 is installed using rpms nagios-plugins-1.3.1-10.rhel3.dag nagios-plugins-nrpe-2.0-3.rhel3.dag nagios-nrpe-2.0-3.rhel3.dag nagios-nsca-2.4-2.rhel3.dag nagios-1.4.1-1.el3.rf I wish to install the newer version using rpm. These are the rpms i found nagios-3.2.3-2.el5.rf.i386.rpm nagios-devel-3.2.3-2.el5.rf.i386.rpm Thanks Sunny -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From brian.omahony at curamsoftware.com Fri Nov 12 11:49:53 2010 From: brian.omahony at curamsoftware.com (Brian O'Mahony) Date: Fri, 12 Nov 2010 10:49:53 +0000 Subject: check_by_ssh help Message-ID: <86E8DA9E18BC2344BD0218BF23C88DF301434CE2FA58@MAIL06.curamsoftware.com> I have an appliance that I cannot install anything on. However I can connect via ssh. I can run remote commands with check_by_ssh, eg check_by_ssh -H hmc -C "lsled -m ratbat -r sa -t phys" -l hscroot -s /home/nagios/.ssh/id_rsa This checks my HMC for the status of the attention LED on an AIX box. However, whatever the option is it comes back as OK in nagios. Is there a way to use check_by_ssh to check for a specific word? Also, the list active/deactive systems command puts each system on a separate line, which I would rather all be in one continuous line. It is not possible to write anything to the remote machine. Regards B The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. If you are not the intended addressee please contact the sender and dispose of this e-mail. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Nov 12 13:00:17 2010 From: ae at op5.se (Andreas Ericsson) Date: Fri, 12 Nov 2010 13:00:17 +0100 Subject: Notifications on passive service checks In-Reply-To: <57F018B226E004449B318DAF71A6014658D1C8ED23@IO-SCD-EX-M-01.corp.iodatacenters.com> References: <57F018B226E004449B318DAF71A6014658D1C8ED23@IO-SCD-EX-M-01.corp.iodatacenters.com> Message-ID: <4CDD2C51.2040600@op5.se> On 11/11/2010 11:27 PM, Hall, JC wrote: > Is it accurate that Nagios will only send 1 notification for a > passive service check? > > IE, the notification_interval definition for a passively checked > service won't instruct Nagios to re-send a notification such as with > actively checked services? > To be honest, I haven't got the faintest idea. An educated guess is that it will re-send the notification if it receives another passive check-result and enough time has passed though, or that it simply re-sends the notification when enough time has passed. If you try and find out, let me know either way and I'll amend the docs. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Nov 12 13:03:32 2010 From: ae at op5.se (Andreas Ericsson) Date: Fri, 12 Nov 2010 13:03:32 +0100 Subject: upgrade nagios 1.4.1 to nagios 3.2.3 In-Reply-To: References: Message-ID: <4CDD2D14.4090305@op5.se> On 11/12/2010 10:02 AM, Sunny Jaisinghani wrote: > Hi, > > > > Can someone describe steps to upgrade nagios 1.4.1 to nagios 3.2.3. > > Currently i am monitoring over 500 hosts and 3000 services using nagios > 1.4.1 > > I am also using nsca and ocsp for nagios failover. > > > > Nagios 1.4.1 is installed using rpms > > > > nagios-plugins-1.3.1-10.rhel3.dag > > nagios-plugins-nrpe-2.0-3.rhel3.dag > > nagios-nrpe-2.0-3.rhel3.dag > > nagios-nsca-2.4-2.rhel3.dag > > nagios-1.4.1-1.el3.rf > > > > I wish to install the newer version using rpm. These are the rpms i > found > > > > nagios-3.2.3-2.el5.rf.i386.rpm > > nagios-devel-3.2.3-2.el5.rf.i386.rpm > RPM packages quite often contain trigger-scripts that handle everything automagically. That might not be the case if you go from rhel3 to rhel5 packages though. Make backups before you try anything. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nagios at flatto.net Fri Nov 12 14:21:43 2010 From: nagios at flatto.net (Assaf Flatto) Date: Fri, 12 Nov 2010 13:21:43 +0000 Subject: debugging eventhandler via nrpe Message-ID: <4CDD3F67.7050603@flatto.net> Hello all I am trying to implement an event handler on a remote machine , and having a problem with the way the status arguments are transferred over the NRPE channel . My config is as such : define service{ max_check_attempts 3 event_handler check_nrpe_nonssl!solr-restart!$SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$!-t 200 } On the remote server the nrpe was compiled with --allow-command-args ,and in the nrpe.cfg i have the following parameters ? dont_blame_nrpe=1 debug=1 command_timeout=300 # Event Handler command[solr-restart]=/usr/local/nagios/libexec/eventhandlers/restart-solr.sh the event handler script is : #!/bin/bash # # Event handler script for restarting the web server on the local machine # # Note: This script will only restart the web server if the service is # retried 3 times (in a "soft" state) or if the web service somehow # manages to fall into a "hard" error state. # case "$1" in OK) # The service just came back up, so don't do anything... ;; WARNING) ;; UNKNOWN) ;; CRITICAL) case "$2" in SOFT) case "$3" in 2) echo "Too early - not restarting yet" exit 0 ;; esac case "$3" in 3) echo "Too early - not restarting yet" exit 0 ;; esac ;; HARD) cd /usr/local/nagios/libexec/eventhandlers/ curl -s -v -u *****:******* --request PUT -d @solr7down.xml http://LB sleep 5 sudo /etc/init.d/jboss stop sleep 60 sudo /etc/init.d/jboss start sleep 15 curl -s -v -u *****:****** --request PUT -d @solr7up.xml http://LB sleep 3 echo " Event handler restarted the solr service" ;; esac ;; esac echo "Event handler restarted the solr service" exit 0 I can see in the syslog that the script is initiated : Nov 11 18:15:44 gbc1-solr-07 nrpe[29687]: Host address is in allowed_hosts Nov 11 18:15:44 gbc1-solr-07 nrpe[29687]: Handling the connection... Nov 11 18:15:44 gbc1-solr-07 nrpe[29687]: Host is asking for command 'solr-restart' to be run... Nov 11 18:15:44 gbc1-solr-07 nrpe[29687]: Running command: /usr/local/nagios/libexec/eventhandlers/restart-solr.sh Nov 11 18:15:44 gbc1-solr-07 nrpe[29687]: Command completed with return code 0 and output: But the event handler is not preforming the tasks it is meant to . when i initiate the command manually ~/libexec/check_nrpe -H -n -c solr-restart -a " Critical HARD 3" -t 200 it is running fine . I know it is an issue with the transfer of the arguments to the nrpe - but i am missing something to make sure they are parsed and sent properly . Anyone can point me to the sign in front of me i am blindingly missing ? Thanks -- Never,Ever Cut A Deal With a Dragon ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nagios at flatto.net Fri Nov 12 14:36:21 2010 From: nagios at flatto.net (Assaf Flatto) Date: Fri, 12 Nov 2010 13:36:21 +0000 Subject: Notifications on passive service checks In-Reply-To: <4CDD2C51.2040600@op5.se> References: <57F018B226E004449B318DAF71A6014658D1C8ED23@IO-SCD-EX-M-01.corp.iodatacenters.com> <4CDD2C51.2040600@op5.se> Message-ID: <4CDD42D5.7070904@flatto.net> Actually , the fact that the check is passive or active is some what irrelevant in this context. The place that will determine the notification policy is you "central" nagios , and what you defined in your service/host notifications directive . if you also define an escalation for that service - that will kick off the notifications . On 12/11/10 12:00, Andreas Ericsson wrote: > On 11/11/2010 11:27 PM, Hall, JC wrote: >> Is it accurate that Nagios will only send 1 notification for a >> passive service check? >> >> IE, the notification_interval definition for a passively checked >> service won't instruct Nagios to re-send a notification such as with >> actively checked services? >> > To be honest, I haven't got the faintest idea. An educated guess is > that it will re-send the notification if it receives another passive > check-result and enough time has passed though, or that it simply > re-sends the notification when enough time has passed. > > If you try and find out, let me know either way and I'll amend the > docs. > -- Never,Ever Cut A Deal With a Dragon Next year I will be doing the London to Paris bike ride to raise money for the DogTrust (www.dogstrust.co.uk) . Please Sponsor me at http://www.justgiving.com/Assaf-Flatto ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From work at paul.dubuc.org Fri Nov 12 16:30:43 2010 From: work at paul.dubuc.org (Paul M. Dubuc) Date: Fri, 12 Nov 2010 10:30:43 -0500 Subject: Suppress "Max concurrent service checks" messages. Message-ID: <4CDD5DA3.8070306@paul.dubuc.org> We're running Nagios 3.2.3 with concurrent service checks set to 40. We can't go much higher than this due to resource constraints outside of Nagios but we're running 329 services at 5 minute intervals (this is a "load test" of sorts not production load ... yet). Average execution time/latency is 36/11 seconds so we're seeing quite a few messages like this in the Nagios log file: (Informational Message) [11-11-2010 14:55:57] Max concurrent service checks (40) has been reached. Nudging : by 9 seconds... Is there any way to suppress these messages from being logged? I don't see an option for logging these in the config file documentation. Thanks, Paul Dubuc ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Nov 12 17:37:30 2010 From: ae at op5.se (Andreas Ericsson) Date: Fri, 12 Nov 2010 17:37:30 +0100 Subject: Suppress "Max concurrent service checks" messages. In-Reply-To: <4CDD5DA3.8070306@paul.dubuc.org> References: <4CDD5DA3.8070306@paul.dubuc.org> Message-ID: <4CDD6D4A.6080606@op5.se> On 11/12/2010 04:30 PM, Paul M. Dubuc wrote: > We're running Nagios 3.2.3 with concurrent service checks set to 40. We can't > go much higher than this due to resource constraints outside of Nagios but > we're running 329 services at 5 minute intervals (this is a "load test" of > sorts not production load ... yet). Average execution time/latency is 36/11 > seconds so we're seeing quite a few messages like this in the Nagios log file: > If you're doing a "load test" on a system that clearly doesn't handle production load and thus forces you to run with less than optimal settings, you're doing things wrong. > (Informational Message) [11-11-2010 14:55:57] Max concurrent service checks > (40) has been reached. Nudging: by 9 seconds... > > Is there any way to suppress these messages from being logged? I don't see an > option for logging these in the config file documentation. > Not really, no. See my previous comment though. It's equally valid now, even though about 12 seconds have passed since I wrote it. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tonvoon at gmail.com Fri Nov 12 18:03:24 2010 From: tonvoon at gmail.com (Ton Voon) Date: Fri, 12 Nov 2010 17:03:24 +0000 Subject: Suppress "Max concurrent service checks" messages. In-Reply-To: <4CDD5DA3.8070306@paul.dubuc.org> References: <4CDD5DA3.8070306@paul.dubuc.org> Message-ID: On 12 Nov 2010, at 15:30, Paul M. Dubuc wrote: > We're running Nagios 3.2.3 with concurrent service checks set to > 40. We can't > go much higher than this due to resource constraints outside of > Nagios but > we're running 329 services at 5 minute intervals (this is a "load > test" of > sorts not production load ... yet). Average execution time/latency > is 36/11 > seconds so we're seeing quite a few messages like this in the Nagios > log file: > > (Informational Message) [11-11-2010 14:55:57] Max concurrent service > checks > (40) has been reached. Nudging : by 9 seconds... > > Is there any way to suppress these messages from being logged? I > don't see an > option for logging these in the config file documentation. I put those messages in. Firstly, 40 doesn't necessarily mean there are 40 concurrent service checks running as they may have finished but not been reaped yet (to decrement the counter). Secondly, if you are getting these messages, then either (1) this limit is too low - increase and keep an eye of the load on your nagios server; (2) you've got too many checks running - reduce frequencies/ numbers or setup a slave server. The trouble with the way the nudging works is that it hides the fact that you have latency issues (as the check is rescheduled to a future time). This means nagiostats will not include the additional latency time here. If someone has a better way of working this out, I'm all ears. Ton ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kdavison at innosphere.ca Fri Nov 12 18:15:26 2010 From: kdavison at innosphere.ca (Kevin Davison) Date: Fri, 12 Nov 2010 12:15:26 -0500 Subject: check_http requests - SSL Not available Message-ID: I've been digging at this one for a while and not getting any closer to resolution. Has anyone else encountered problems with getting check_http to work with the -S/--ssl option? Nagios 3.2.1 running on a CentOS box. I have openssl and openssl-devel installed Package openssl-0.9.8e-12.el5_4.6.x86_64 already installed and latest version Package openssl-0.9.8e-12.el5_4.6.i686 already installed and latest version Nothing to do Package openssl-devel-0.9.8e-12.el5_4.6.x86_64 already installed and latest version Package openssl-devel-0.9.8e-12.el5_4.6.i386 already installed and latest version Nothing to do I recompiled my plugins and got confirmation of openssl --with-apt-get-command: --with-ping6-command: /bin/ping6 -n -U -w %d -c %d %s --with-ping-command: /bin/ping -n -U -w %d -c %d %s --with-ipv6: yes --with-mysql: no --with-openssl: yes --with-gnutls: no --enable-extra-opts: no --with-perl: /usr/bin/perl --enable-perl-modules: no --with-cgiurl: /nagios/cgi-bin --with-trusted-path: /bin:/sbin:/usr/bin:/usr/sbin --enable-libtap: no For some reason, after this, I'm still not able to get a response to -ssl checks using check_http. [root at nagios nagios-plugins-1.4.14]# /usr/local/nagios/libexec/check_http --ssl -H check_http: Invalid option - SSL is not available Kevin Davison Network Administrator Innosphere SDG Ltd. 147 Wyndham St. N., Ste 306 Guelph, ON, N1H 4E9 (519) 766-9726 X223 Email: kdavison at innosphere.ca Website: www.innosphere.ca -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nagios at flatto.net Fri Nov 12 18:26:30 2010 From: nagios at flatto.net (Assaf Flatto) Date: Fri, 12 Nov 2010 17:26:30 +0000 Subject: check_http requests - SSL Not available In-Reply-To: References: Message-ID: <4CDD78C6.9070700@flatto.net> On 12/11/10 17:15, Kevin Davison wrote: > > I've been digging at this one for a while and not getting any closer > to resolution. > > Has anyone else encountered problems with getting check_http to work > with the --S/--ssl option? > > Nagios 3.2.1 running on a CentOS box. > > I have openssl and openssl-devel installed > > Package openssl-0.9.8e-12.el5_4.6.x86_64 already installed and latest > version > > Package openssl-0.9.8e-12.el5_4.6.i686 already installed and latest > version > > Nothing to do > > Package openssl-devel-0.9.8e-12.el5_4.6.x86_64 already installed and > latest version > > Package openssl-devel-0.9.8e-12.el5_4.6.i386 already installed and > latest version > > Nothing to do > > I recompiled my plugins and got confirmation of openssl > > --with-apt-get-command: > > --with-ping6-command: /bin/ping6 -n -U -w %d -c %d %s > > --with-ping-command: /bin/ping -n -U -w %d -c %d %s > > --with-ipv6: yes > > --with-mysql: no > > --with-openssl: yes > > --with-gnutls: no > > --enable-extra-opts: no > > --with-perl: /usr/bin/perl > > --enable-perl-modules: no > > --with-cgiurl: /nagios/cgi-bin > > --with-trusted-path: /bin:/sbin:/usr/bin:/usr/sbin > > --enable-libtap: no > > For some reason, after this, I'm still not able to get a response to > --ssl checks using check_http. > > [root at nagios nagios-plugins-1.4.14]# > /usr/local/nagios/libexec/check_http --ssl -H > > check_http: Invalid option - SSL is not available > > Kevin Davison > > Network Administrator > > I am able to run the check_http with the -S option ~/libexec/check_http -H 10.0.X.XX -S HTTP WARNING: HTTP/1.1 401 Authorization Required - 1726 bytes in 0.036 second response time |time=0.035854s;;;0.000000 size=1726B;;;0 openssl might be installed , but do you have the devel package - it will be required for the compilation to work . -- Never,Ever Cut A Deal With a Dragon Next year I will be doing the London to Paris bike ride to raise money for the DogTrust (www.dogstrust.co.uk) . Please Sponsor me at http://www.justgiving.com/Assaf-Flatto -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From work at paul.dubuc.org Fri Nov 12 18:40:35 2010 From: work at paul.dubuc.org (Paul M. Dubuc) Date: Fri, 12 Nov 2010 12:40:35 -0500 Subject: Suppress "Max concurrent service checks" messages. In-Reply-To: References: <4CDD5DA3.8070306@paul.dubuc.org> Message-ID: <4CDD7C13.2040408@paul.dubuc.org> Ton Voon wrote: > > On 12 Nov 2010, at 15:30, Paul M. Dubuc wrote: > >> We're running Nagios 3.2.3 with concurrent service checks set to >> 40. We can't >> go much higher than this due to resource constraints outside of >> Nagios but >> we're running 329 services at 5 minute intervals (this is a "load >> test" of >> sorts not production load ... yet). Average execution time/latency >> is 36/11 >> seconds so we're seeing quite a few messages like this in the Nagios >> log file: >> >> (Informational Message) [11-11-2010 14:55:57] Max concurrent service >> checks >> (40) has been reached. Nudging: by 9 seconds... >> >> Is there any way to suppress these messages from being logged? I >> don't see an >> option for logging these in the config file documentation. > > I put those messages in. > > Firstly, 40 doesn't necessarily mean there are 40 concurrent service > checks running as they may have finished but not been reaped yet (to > decrement the counter). > > Secondly, if you are getting these messages, then either (1) this > limit is too low - increase and keep an eye of the load on your nagios > server; (2) you've got too many checks running - reduce frequencies/ > numbers or setup a slave server. > > The trouble with the way the nudging works is that it hides the fact > that you have latency issues (as the check is rescheduled to a future > time). This means nagiostats will not include the additional latency > time here. > > If someone has a better way of working this out, I'm all ears. > > Ton Thanks, Ton. This is helpful information and advice. The services we're running require web browsers to run which are a cpu and memory intensive resource that, temporarily, we need to manage on the Nagios server. In production we shouldn't have these limitations, but for now I just wanted to keep all these messages from flooding the log. Andreas, I know it's doing things "wrong", but there's not much I can do about it right now. Since I know what the problem is that these messages are trying to tell me. I'd just like to keep them from flooding the logs so I can see what else is happening more easily. That's all. Thanks, Paul Dubuc ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From work at paul.dubuc.org Fri Nov 12 18:50:42 2010 From: work at paul.dubuc.org (Paul M. Dubuc) Date: Fri, 12 Nov 2010 12:50:42 -0500 Subject: Suppress "Max concurrent service checks" messages. In-Reply-To: References: <4CDD5DA3.8070306@paul.dubuc.org> Message-ID: <4CDD7E72.6010102@paul.dubuc.org> Ton Voon wrote: ... > > The trouble with the way the nudging works is that it hides the fact > that you have latency issues (as the check is rescheduled to a future > time). This means nagiostats will not include the additional latency > time here. > > If someone has a better way of working this out, I'm all ears. Would it cause other problems if the total nudging time for a service were included in its latency time? ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mark.frost1 at pepsico.com Fri Nov 12 19:06:34 2010 From: mark.frost1 at pepsico.com (Frost, Mark {PBC}) Date: Fri, 12 Nov 2010 13:06:34 -0500 Subject: different notification_intervals by contact In-Reply-To: <0b0101cb8101$160248f0$4206dad0$@dcl.co.uk> References: <0b0101cb8101$160248f0$4206dad0$@dcl.co.uk> Message-ID: From: Duncan Berriman [mailto:duncan at dcl.co.uk] Sent: Wednesday, November 10, 2010 1:00 PM To: 'Nagios Users List' Subject: Re: [Nagios-users] different notification_intervals by contact Escalations are a little pesky to get working correctly. Here is an example. ... Thanks, Duncan. I've decided to take a somewhat different approach. Ultimately, what they want is for the pager to occur at 4x the frequency of the e-mail (15 minutes versus 1 hour). So this doesn't wind up being all that hard if I make a contact that calls a simple shell script. That shell script then looks at the NOTIFICATIONNUMBER to (in this case) determine if it's a multiple of 4 and if so, sends the alert. In fact, I'm going to make this so that's going to take an argument to determine what number to perform 'modulo' on. So in theory this could be reused if someone wanted to have something run every other notification number, every 6th, etc, indefinitely. The downside as I see it is that Nagios won't quite have an accurate representation of who got what notifications. From Nagios' perspective, it sent an alert to the mailing list, but really, the script acts as a gateway to determine if a message was actually sent. So the "Notifications" for the host/service as shown in the UI will not be quite correct. But I think they can live with that. Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kdavison at innosphere.ca Fri Nov 12 19:16:33 2010 From: kdavison at innosphere.ca (Kevin Davison) Date: Fri, 12 Nov 2010 13:16:33 -0500 Subject: check_http requests - SSL Not available In-Reply-To: <4CDD78C6.9070700@flatto.net> References: <4CDD78C6.9070700@flatto.net> Message-ID: Yes. openssl-devel is installed. Package openssl-devel-0.9.8e-12.el5_4.6.x86_64 already installed and latest version Package openssl-devel-0.9.8e-12.el5_4.6.i386 already installed and latest version From: Assaf Flatto [mailto:nagios at flatto.net] Sent: November-12-10 12:27 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] check_http requests - SSL Not available On 12/11/10 17:15, Kevin Davison wrote: I've been digging at this one for a while and not getting any closer to resolution. Has anyone else encountered problems with getting check_http to work with the -S/--ssl option? Nagios 3.2.1 running on a CentOS box. I have openssl and openssl-devel installed Package openssl-0.9.8e-12.el5_4.6.x86_64 already installed and latest version Package openssl-0.9.8e-12.el5_4.6.i686 already installed and latest version Nothing to do Package openssl-devel-0.9.8e-12.el5_4.6.x86_64 already installed and latest version Package openssl-devel-0.9.8e-12.el5_4.6.i386 already installed and latest version Nothing to do I recompiled my plugins and got confirmation of openssl --with-apt-get-command: --with-ping6-command: /bin/ping6 -n -U -w %d -c %d %s --with-ping-command: /bin/ping -n -U -w %d -c %d %s --with-ipv6: yes --with-mysql: no --with-openssl: yes --with-gnutls: no --enable-extra-opts: no --with-perl: /usr/bin/perl --enable-perl-modules: no --with-cgiurl: /nagios/cgi-bin --with-trusted-path: /bin:/sbin:/usr/bin:/usr/sbin --enable-libtap: no For some reason, after this, I'm still not able to get a response to -ssl checks using check_http. [root at nagios nagios-plugins-1.4.14]# /usr/local/nagios/libexec/check_http --ssl -H check_http: Invalid option - SSL is not available Kevin Davison Network Administrator I am able to run the check_http with the -S option ~/libexec/check_http -H 10.0.X.XX -S HTTP WARNING: HTTP/1.1 401 Authorization Required - 1726 bytes in 0.036 second response time |time=0.035854s;;;0.000000 size=1726B;;;0 openssl might be installed , but do you have the devel package - it will be required for the compilation to work . -- Never,Ever Cut A Deal With a Dragon Next year I will be doing the London to Paris bike ride to raise money for the DogTrust (www.dogstrust.co.uk) . Please Sponsor me at http://www.justgiving.com/Assaf-Flatto -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jbrooks at oddelement.com Fri Nov 12 20:41:34 2010 From: jbrooks at oddelement.com (Joel Brooks) Date: Fri, 12 Nov 2010 14:41:34 -0500 Subject: check_openmanage -- question about battery check Message-ID: hey gang, i'm using check_openmanage ( http://folk.uio.no/trondham/software/check_openmanage.html) to monitor some dell servers. i'm using version 3.5.6 in production, but have also tested with 3.6.1 (latest, released Nov. 2, 2010). the problem i'm having is that the check is reporting battery charging WARNINGS even though I'm blacklisting that check. =========================== root at nagios:/opt/plugins# perl ./check_openmanage-3.6.1 -H server1 -C public -e -s -i -b bat_charge WARNING: [ABCDEFG] Cache Battery 0 in controller 0 is Learning (Active) [probably harmless] WARNING: [ABCDEFG] Cache Battery 0 in controller 1 is Learning (Active) [probably harmless] ------ SYSTEM: PowerEdge R710, SN: ABCDEFG root at nagios:/opt/plugins# ========================== is there a way to ignore these that works? am i doing something wrong? thanks, J -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From benny at bennyvision.com Fri Nov 12 21:22:49 2010 From: benny at bennyvision.com (C. Bensend) Date: Fri, 12 Nov 2010 14:22:49 -0600 Subject: check_openmanage -- question about battery check In-Reply-To: References: Message-ID: <6955e0cd49a740aafc80a5713371a306.squirrel@webmail.stinkweasel.net> > the problem i'm having is that the check is reporting battery charging > WARNINGS even though I'm blacklisting that check. > > =========================== > root at nagios:/opt/plugins# perl ./check_openmanage-3.6.1 -H server1 -C > public > -e -s -i -b bat_charge No, you're not... Not quite, anyway. :) Re-visit the documentation for blacklisting - you need to specify *which* battery you're blacklisting. This is the case for all blacklist directives. Hint: I use '-b bat_charge=ALL' in my service definition. Benny -- "No matter how many shorts we have in the system, my guards will be instructed to treat every surveillance camera malfunction as a full-scale emergency." -- Peter Anspach's Evil Overlord List, #67 ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Nov 12 22:22:01 2010 From: ae at op5.se (Andreas Ericsson) Date: Fri, 12 Nov 2010 22:22:01 +0100 Subject: Suppress "Max concurrent service checks" messages. In-Reply-To: References: <4CDD5DA3.8070306@paul.dubuc.org> Message-ID: <4CDDAFF9.3020002@op5.se> On 11/12/2010 06:03 PM, Ton Voon wrote: > > On 12 Nov 2010, at 15:30, Paul M. Dubuc wrote: > >> We're running Nagios 3.2.3 with concurrent service checks set to >> 40. We can't >> go much higher than this due to resource constraints outside of >> Nagios but >> we're running 329 services at 5 minute intervals (this is a "load >> test" of >> sorts not production load ... yet). Average execution time/latency >> is 36/11 >> seconds so we're seeing quite a few messages like this in the Nagios >> log file: >> >> (Informational Message) [11-11-2010 14:55:57] Max concurrent service >> checks >> (40) has been reached. Nudging: by 9 seconds... >> >> Is there any way to suppress these messages from being logged? I >> don't see an >> option for logging these in the config file documentation. > > I put those messages in. > > Firstly, 40 doesn't necessarily mean there are 40 concurrent service > checks running as they may have finished but not been reaped yet (to > decrement the counter). > > Secondly, if you are getting these messages, then either (1) this > limit is too low - increase and keep an eye of the load on your nagios > server; (2) you've got too many checks running - reduce frequencies/ > numbers or setup a slave server. > > The trouble with the way the nudging works is that it hides the fact > that you have latency issues (as the check is rescheduled to a future > time). This means nagiostats will not include the additional latency > time here. > > If someone has a better way of working this out, I'm all ears. > We could use something like pnp4nagios does, and issue a check to make sure load is below a certain threshold before firing off new checks. There's a (reasonably) portable way of getting the number of online CPU's, so we could even make an educated guess at how many checks we can run to saturate the CPU's while still not running too many checks. Ofcourse, some checks are more heavy-duty than others. As a first stab at maintaining reasonable load, we should probably ignore that. At a later point, we might want to introduce "probably load increase of running this check" and nudge checks into the future when we're in danger of load / num_cpus > 0.9 or some other suitable number. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Nov 12 22:23:40 2010 From: ae at op5.se (Andreas Ericsson) Date: Fri, 12 Nov 2010 22:23:40 +0100 Subject: Suppress "Max concurrent service checks" messages. In-Reply-To: <4CDD7E72.6010102@paul.dubuc.org> References: <4CDD5DA3.8070306@paul.dubuc.org> <4CDD7E72.6010102@paul.dubuc.org> Message-ID: <4CDDB05C.2000300@op5.se> On 11/12/2010 06:50 PM, Paul M. Dubuc wrote: > Ton Voon wrote: > ... >> >> The trouble with the way the nudging works is that it hides the fact >> that you have latency issues (as the check is rescheduled to a future >> time). This means nagiostats will not include the additional latency >> time here. >> >> If someone has a better way of working this out, I'm all ears. > > Would it cause other problems if the total nudging time for a service were > included in its latency time? > Not really. It would just be a much more obvious concern. This is something we'll look into implementing when we're doing Nagios 4 though, as it's painfully difficult to do without altering the object structure of hosts and services. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Nov 12 22:25:47 2010 From: ae at op5.se (Andreas Ericsson) Date: Fri, 12 Nov 2010 22:25:47 +0100 Subject: Suppress "Max concurrent service checks" messages. In-Reply-To: <4CDD7C13.2040408@paul.dubuc.org> References: <4CDD5DA3.8070306@paul.dubuc.org> <4CDD7C13.2040408@paul.dubuc.org> Message-ID: <4CDDB0DB.7040305@op5.se> On 11/12/2010 06:40 PM, Paul M. Dubuc wrote: > > Andreas, I know it's doing things "wrong", but there's not much I can do about > it right now. Since I know what the problem is that these messages are trying > to tell me. I'd just like to keep them from flooding the logs so I can see > what else is happening more easily. That's all. > You could always run Nagios in the foreground and redirect the log through a grep -v filter, restarting it on midnight every night and rotating logs manually. It's not difficult. Just cumbersome. So long as you're aware that whatever you conclude from your tests will be more than just a little off wrt what you wanted to determine, you'll almost certainly do alright though. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Sunny_Jaisinghani at symantec.com Sat Nov 13 12:09:59 2010 From: Sunny_Jaisinghani at symantec.com (Sunny Jaisinghani) Date: Sat, 13 Nov 2010 16:39:59 +0530 Subject: upgrade nagios 1.4.1 to nagios 3.2.3 In-Reply-To: <4CDD2D14.4090305@op5.se> References: <4CDD2D14.4090305@op5.se> Message-ID: -----Original Message----- From: Andreas Ericsson [mailto:ae at op5.se] Sent: 12 November 2010 17:34 To: Nagios Users List Cc: Sunny Jaisinghani Subject: Re: [Nagios-users] upgrade nagios 1.4.1 to nagios 3.2.3 On 11/12/2010 10:02 AM, Sunny Jaisinghani wrote: > Hi, > > > > Can someone describe steps to upgrade nagios 1.4.1 to nagios 3.2.3. > > Currently i am monitoring over 500 hosts and 3000 services using nagios > 1.4.1 > > I am also using nsca and ocsp for nagios failover. > > > > Nagios 1.4.1 is installed using rpms > > > > nagios-plugins-1.3.1-10.rhel3.dag > > nagios-plugins-nrpe-2.0-3.rhel3.dag > > nagios-nrpe-2.0-3.rhel3.dag > > nagios-nsca-2.4-2.rhel3.dag > > nagios-1.4.1-1.el3.rf > > > > I wish to install the newer version using rpm. These are the rpms i > found > > > > nagios-3.2.3-2.el5.rf.i386.rpm > > nagios-devel-3.2.3-2.el5.rf.i386.rpm > RPM packages quite often contain trigger-scripts that handle everything automagically. That might not be the case if you go from rhel3 to rhel5 packages though. Make backups before you try anything. -- Andreas Ericsson andreas.ericsson at 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. Hey Andreas, Going to rhel 5 from rhel 3 is also in my to do list. May be, i'll upgrade to rhel 5 before i upgrade nagios to 3.2.3 So, since i am gonna use the rpm, you suggest taking backups and just upgrading the nagios packages. Right? Anything apart from this that i need to take care of? Thanks Sunny ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dtuecks at googlemail.com Sun Nov 14 01:16:07 2010 From: dtuecks at googlemail.com (Daniel Tuecks) Date: Sun, 14 Nov 2010 01:16:07 +0100 Subject: upgrade nagios 1.4.1 to nagios 3.2.3 In-Reply-To: References: <4CDD2D14.4090305@op5.se> Message-ID: Upgrading from Nagios 1 to Nagios 3 will likely break your config. I wouldn't take a chance on the rpm package to do all of the needed changes to make it compatible with nagios 3.2. So doing a backup before upgrading is a wise idea. If your rpm doesn't update your config, please have a look at the following two links: http://support.nagios.com/knowledgebase/faqs/index.php?option=com_content&view=article&id=52&catid=35&faq_id=407&expand=false&showdesc=true http://nagios.sourceforge.net/docs/3_0/upgrading.html#nagios2x Daniel 2010/11/13 Sunny Jaisinghani : > > > > > > -----Original Message----- > From: Andreas Ericsson [mailto:ae at op5.se] > Sent: 12 November 2010 17:34 > To: Nagios Users List > Cc: Sunny Jaisinghani > Subject: Re: [Nagios-users] upgrade nagios 1.4.1 to nagios 3.2.3 > > On 11/12/2010 10:02 AM, Sunny Jaisinghani wrote: >> Hi, >> >> >> >> Can someone describe steps to upgrade nagios 1.4.1 to nagios 3.2.3. >> >> Currently i am monitoring over 500 hosts and 3000 services using > nagios >> 1.4.1 >> >> I am also using nsca and ocsp for nagios failover. >> >> >> >> Nagios 1.4.1 is installed using rpms >> >> >> >> nagios-plugins-1.3.1-10.rhel3.dag >> >> nagios-plugins-nrpe-2.0-3.rhel3.dag >> >> nagios-nrpe-2.0-3.rhel3.dag >> >> nagios-nsca-2.4-2.rhel3.dag >> >> nagios-1.4.1-1.el3.rf >> >> >> >> I wish to install the newer version using rpm. These are the rpms i >> found >> >> >> >> nagios-3.2.3-2.el5.rf.i386.rpm >> >> nagios-devel-3.2.3-2.el5.rf.i386.rpm >> > > RPM packages quite often contain trigger-scripts that handle > everything automagically. That might not be the case if you go > from rhel3 to rhel5 packages though. > > Make backups before you try anything. > > -- > Andreas Ericsson ? ? ? ? ? ? ? ? ? andreas.ericsson at 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. > > > Hey Andreas, > > Going to rhel 5 from rhel 3 is also in my to do list. > May be, i'll upgrade to rhel 5 before i upgrade nagios to 3.2.3 > > So, since i am gonna use the rpm, you suggest taking backups and just > upgrading the nagios packages. Right? > > Anything apart from this that i need to take care of? > > Thanks > Sunny > > ------------------------------------------------------------------------------ > Centralized Desktop Delivery: Dell and VMware Reference Architecture > Simplifying enterprise desktop deployment and management using > Dell EqualLogic storage and VMware View: A highly scalable, end-to-end > client virtualization framework. Read more! > http://p.sf.net/sfu/dell-eql-dev2dev > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From skaaa.at0m at gmail.com Mon Nov 15 09:06:30 2010 From: skaaa.at0m at gmail.com (Korrawit Yindeeyoungyeon) Date: Mon, 15 Nov 2010 15:06:30 +0700 Subject: Nagios Historical Data Question Message-ID: Hi, I'm new with Nagios. I have questions. 1.) Can Nagios keeps the historical data ? How? 2.) Now,I'm use flat file to keep the data.Can I get the historical data? 3.) Can Nagios work with MySQL? How? Thank you.. ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Mon Nov 15 09:15:31 2010 From: ae at op5.se (Andreas Ericsson) Date: Mon, 15 Nov 2010 09:15:31 +0100 Subject: Nagios Historical Data Question In-Reply-To: References: Message-ID: <4CE0EC23.4020902@op5.se> On 11/15/2010 09:06 AM, Korrawit Yindeeyoungyeon wrote: > Hi, I'm new with Nagios. I have questions. > > 1.) Can Nagios keeps the historical data ? How? > Yes. The log-files store all state-changes. > 2.) Now,I'm use flat file to keep the data.Can I get the historical data? > >From the logfiles, yes. > 3.) Can Nagios work with MySQL? How? > Via eventbroker modules such as Merlin or NDOUtils, Nagios can store information in a database. The standard UI doesn't work with either of those database backends though. The only free UI I know of that has full support for everything and uses mysql as a backend is Ninja, which works with the Merlin schema. Google will help you further. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lists at xodus.org Mon Nov 15 09:21:13 2010 From: lists at xodus.org (Marc Powell) Date: Mon, 15 Nov 2010 02:21:13 -0600 Subject: Nagios Historical Data Question In-Reply-To: References: Message-ID: <7F6E6714-65A2-46E5-9271-3207F7CCB8AE@xodus.org> On Nov 15, 2010, at 2:06 AM, Korrawit Yindeeyoungyeon wrote: > Hi, I'm new with Nagios. I have questions. > > 1.) Can Nagios keeps the historical data ? How? Yes, it does this by default. Historical data is kept in the archive directory, typically /usr/local/nagios/var/archives. > 2.) Now,I'm use flat file to keep the data.Can I get the historical data? Yes. Nagios only uses flat files for data. No special action is necessary and the web interface is used to display that data or you can parse the files and use the data on your own. > 3.) Can Nagios work with MySQL? How? Not directly but there are addons available at http://exchange.nagios.org to tie nagios to MySQL for both configuration (i.e. front ends that store their data in MySQL, then generate the flat file with configuration data that nagios requires) and data retention for parsing/presentation by other third party apps (i.e. merlin or other alternative front end.) -- Marc ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From quanta.linux at gmail.com Mon Nov 15 16:54:58 2010 From: quanta.linux at gmail.com (quanta) Date: Mon, 15 Nov 2010 15:54:58 +0000 Subject: debugging eventhandler via nrpe In-Reply-To: <4CDD3F67.7050603@flatto.net> References: <4CDD3F67.7050603@flatto.net> Message-ID: <4CE157D2.3040407@gmail.com> Check your nagios.log file. Why didn't you put the argument (-t 200) to the remote host, in nrpe.cfg? On 11/12/2010 01:21 PM, Assaf Flatto wrote: > Hello all > > I am trying to implement an event handler on a remote machine , and > having a problem with the way the status arguments are transferred over > the NRPE channel . > > My config is as such : > > define service{ > > max_check_attempts 3 > event_handler > check_nrpe_nonssl!solr-restart!$SERVICESTATE$ $SERVICESTATETYPE$ > $SERVICEATTEMPT$!-t 200 > > > } > > On the remote server the nrpe was compiled with --allow-command-args > ,and in the nrpe.cfg i have the following parameters ? > > dont_blame_nrpe=1 > debug=1 > command_timeout=300 > # Event Handler > command[solr-restart]=/usr/local/nagios/libexec/eventhandlers/restart-solr.sh > > > the event handler script is : > #!/bin/bash > # > # Event handler script for restarting the web server on the local machine > # > # Note: This script will only restart the web server if the service is > # retried 3 times (in a "soft" state) or if the web service somehow > # manages to fall into a "hard" error state. > # > > case "$1" in > OK) > # The service just came back up, so don't do anything... > ;; > WARNING) > ;; > UNKNOWN) > ;; > CRITICAL) > case "$2" in > SOFT) > > case "$3" in > 2) > echo "Too early - not restarting yet" > exit 0 > ;; > esac > > case "$3" in > 3) > echo "Too early - not restarting yet" > exit 0 > ;; > esac > ;; > HARD) > cd /usr/local/nagios/libexec/eventhandlers/ > curl -s -v -u *****:******* --request PUT -d @solr7down.xml http://LB > sleep 5 > sudo /etc/init.d/jboss stop > > sleep 60 > sudo /etc/init.d/jboss start > sleep 15 > curl -s -v -u *****:****** --request PUT -d @solr7up.xml http://LB > sleep 3 > echo " Event handler restarted the solr service" > ;; > esac > ;; > esac > echo "Event handler restarted the solr service" > exit 0 > > I can see in the syslog that the script is initiated : > Nov 11 18:15:44 gbc1-solr-07 nrpe[29687]: Host address is in allowed_hosts > Nov 11 18:15:44 gbc1-solr-07 nrpe[29687]: Handling the connection... > Nov 11 18:15:44 gbc1-solr-07 nrpe[29687]: Host is asking for command > 'solr-restart' to be run... > Nov 11 18:15:44 gbc1-solr-07 nrpe[29687]: Running command: > /usr/local/nagios/libexec/eventhandlers/restart-solr.sh > Nov 11 18:15:44 gbc1-solr-07 nrpe[29687]: Command completed with return > code 0 and output: > > But the event handler is not preforming the tasks it is meant to . > > > when i initiate the command manually > > ~/libexec/check_nrpe -H -n -c solr-restart -a " Critical HARD 3" > -t 200 > it is running fine . > I know it is an issue with the transfer of the arguments to the nrpe - > but i am missing something to make sure they are parsed and sent properly . > > Anyone can point me to the sign in front of me i am blindingly missing ? > > Thanks > > ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From skaaa.at0m at gmail.com Mon Nov 15 10:23:02 2010 From: skaaa.at0m at gmail.com (Korrawit Yindeeyoungyeon) Date: Mon, 15 Nov 2010 16:23:02 +0700 Subject: Nagios Historical Data Question In-Reply-To: <4CE0EC23.4020902@op5.se> References: <4CE0EC23.4020902@op5.se> Message-ID: Thank Andreas Ericsson On Mon, Nov 15, 2010 at 3:15 PM, Andreas Ericsson wrote: > On 11/15/2010 09:06 AM, Korrawit Yindeeyoungyeon wrote: >> Hi, I'm new with Nagios. I have questions. >> >> 1.) Can Nagios keeps the historical data ? How? >> > > Yes. The log-files store all state-changes. > >> 2.) Now,I'm use flat file to keep the data.Can I get the historical data? >> > > From the logfiles, yes. > >> 3.) Can Nagios work with MySQL? How? >> > > Via eventbroker modules such as Merlin or NDOUtils, Nagios can store > information in a database. The standard UI doesn't work with either > of those database backends though. The only free UI I know of that > has full support for everything and uses mysql as a backend is Ninja, > which works with the Merlin schema. > > Google will help you further. > > -- > Andreas Ericsson ? ? ? ? ? ? ? ? ? andreas.ericsson at 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. > ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From skaaa.at0m at gmail.com Mon Nov 15 10:25:29 2010 From: skaaa.at0m at gmail.com (Korrawit Yindeeyoungyeon) Date: Mon, 15 Nov 2010 16:25:29 +0700 Subject: Nagios Historical Data Question In-Reply-To: <7F6E6714-65A2-46E5-9271-3207F7CCB8AE@xodus.org> References: <7F6E6714-65A2-46E5-9271-3207F7CCB8AE@xodus.org> Message-ID: Thank Marc Powell On Mon, Nov 15, 2010 at 3:21 PM, Marc Powell wrote: > > On Nov 15, 2010, at 2:06 AM, Korrawit Yindeeyoungyeon wrote: > >> Hi, I'm new with Nagios. I have questions. >> >> 1.) Can Nagios keeps the historical data ? How? > > Yes, it does this by default. Historical data is kept in the archive directory, typically /usr/local/nagios/var/archives. > >> 2.) Now,I'm use flat file to keep the data.Can I get the historical data? > > Yes. Nagios only uses flat files for data. No special action is necessary and the web interface is used to display that data or you can parse the files and use the data on your own. > >> 3.) Can Nagios work with MySQL? How? > > Not directly but there are addons available at http://exchange.nagios.org to tie nagios to MySQL for both configuration (i.e. front ends that store their data in MySQL, then generate the flat file with configuration data that nagios requires) and data retention for parsing/presentation by other third party apps (i.e. merlin or other alternative front end.) > > -- > Marc > > ------------------------------------------------------------------------------ > Centralized Desktop Delivery: Dell and VMware Reference Architecture > Simplifying enterprise desktop deployment and management using > Dell EqualLogic storage and VMware View: A highly scalable, end-to-end > client virtualization framework. Read more! > http://p.sf.net/sfu/dell-eql-dev2dev > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nagios at flatto.net Mon Nov 15 11:02:18 2010 From: nagios at flatto.net (Assaf Flatto) Date: Mon, 15 Nov 2010 10:02:18 +0000 Subject: debugging eventhandler via nrpe In-Reply-To: <4CE157D2.3040407@gmail.com> References: <4CDD3F67.7050603@flatto.net> <4CE157D2.3040407@gmail.com> Message-ID: <4CE1052A.5030209@flatto.net> Nagios.log show that the event handler is being executed ,and showing the passed parameters from nagios.log ;JBoss Port 8080;CRITICAL;SOFT;1;check_nrpe_nonssl!solr-restart!CRITICAL SOFT 1!-t 200 the "-t 200" is to tell nagios to wait for the reply for 200 seconds - on the remote host we have a timeout of 300 , so that will allow the nrpe session time to work the command and then terminate . The debug log is not showing the event handler at all , i have changed the logging to -1 and hopefully it will give me some more data . Assaf quanta wrote: > Check your nagios.log file. Why didn't you put the argument (-t 200) to > the remote host, in nrpe.cfg? > > > On 11/12/2010 01:21 PM, Assaf Flatto wrote: > >> Hello all >> >> I am trying to implement an event handler on a remote machine , and >> having a problem with the way the status arguments are transferred over >> the NRPE channel . >> >> My config is as such : >> >> define service{ >> >> max_check_attempts 3 >> event_handler >> check_nrpe_nonssl!solr-restart!$SERVICESTATE$ $SERVICESTATETYPE$ >> $SERVICEATTEMPT$!-t 200 >> >> >> } >> >> On the remote server the nrpe was compiled with --allow-command-args >> ,and in the nrpe.cfg i have the following parameters ? >> >> dont_blame_nrpe=1 >> debug=1 >> command_timeout=300 >> # Event Handler >> command[solr-restart]=/usr/local/nagios/libexec/eventhandlers/restart-solr.sh >> >> >> the event handler script is : >> #!/bin/bash >> # >> # Event handler script for restarting the web server on the local machine >> # >> # Note: This script will only restart the web server if the service is >> # retried 3 times (in a "soft" state) or if the web service somehow >> # manages to fall into a "hard" error state. >> # >> >> case "$1" in >> OK) >> # The service just came back up, so don't do anything... >> ;; >> WARNING) >> ;; >> UNKNOWN) >> ;; >> CRITICAL) >> case "$2" in >> SOFT) >> >> case "$3" in >> 2) >> echo "Too early - not restarting yet" >> exit 0 >> ;; >> esac >> >> case "$3" in >> 3) >> echo "Too early - not restarting yet" >> exit 0 >> ;; >> esac >> ;; >> HARD) >> cd /usr/local/nagios/libexec/eventhandlers/ >> curl -s -v -u *****:******* --request PUT -d @solr7down.xml http://LB >> sleep 5 >> sudo /etc/init.d/jboss stop >> >> sleep 60 >> sudo /etc/init.d/jboss start >> sleep 15 >> curl -s -v -u *****:****** --request PUT -d @solr7up.xml http://LB >> sleep 3 >> echo " Event handler restarted the solr service" >> ;; >> esac >> ;; >> esac >> echo "Event handler restarted the solr service" >> exit 0 >> >> I can see in the syslog that the script is initiated : >> Nov 11 18:15:44 gbc1-solr-07 nrpe[29687]: Host address is in allowed_hosts >> Nov 11 18:15:44 gbc1-solr-07 nrpe[29687]: Handling the connection... >> Nov 11 18:15:44 gbc1-solr-07 nrpe[29687]: Host is asking for command >> 'solr-restart' to be run... >> Nov 11 18:15:44 gbc1-solr-07 nrpe[29687]: Running command: >> /usr/local/nagios/libexec/eventhandlers/restart-solr.sh >> Nov 11 18:15:44 gbc1-solr-07 nrpe[29687]: Command completed with return >> code 0 and output: >> >> But the event handler is not preforming the tasks it is meant to . >> >> >> when i initiate the command manually >> >> ~/libexec/check_nrpe -H -n -c solr-restart -a " Critical HARD 3" >> -t 200 >> it is running fine . >> I know it is an issue with the transfer of the arguments to the nrpe - >> but i am missing something to make sure they are parsed and sent properly . >> >> Anyone can point me to the sign in front of me i am blindingly missing ? >> >> Thanks > to /dev/null > -- Never,Ever Cut A Deal With a Dragon Next year I will be doing the London to Paris bike ride to raise money for the DogTrust (www.dogstrust.co.uk) . Please Sponsor me at http://www.justgiving.com/Assaf-Flatto ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ales.Rikovsky at upol.cz Mon Nov 15 10:52:22 2010 From: Ales.Rikovsky at upol.cz (Ales Rikovsky) Date: Mon, 15 Nov 2010 10:52:22 +0100 Subject: Another Nagios Historical Data Question In-Reply-To: References: <7F6E6714-65A2-46E5-9271-3207F7CCB8AE@xodus.org> Message-ID: <4CE102D6.1000403@upol.cz> Hi, when I change name of the host or service, I'll lose history for them. Has anyone found the solution for that problem? Probably some script, that will replace names of of the host and/or service in the log files....???? Thank you. Ales -- Ales Rikovsky +420 585631826 Ales.Rikovsky at upol.cz Biskupske nam. 1 Palacky University Computer Center 771 11 Olomouc ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From astakhovp at yarbroiler.ru Mon Nov 15 11:41:18 2010 From: astakhovp at yarbroiler.ru (Astakhov Peter) Date: Mon, 15 Nov 2010 13:41:18 +0300 Subject: No permission to web-interface Message-ID: <4CE10E4E.6030602@yarbroiler.ru> Hello, colleagues! I installed nagios on RHEL6. But I get error on web-interface: It appears as though you do not have permission to view information for any of the hosts you requested... If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI and check the authorization options in your CGI configuration file. I checked /etc/httpd/conf.d/nagios.conf ScriptAlias /nagios/cgi-bin/ "/usr/lib/nagios/cgi-bin/" Options ExecCGI AllowOverride None Order allow,deny Allow from all AuthName "Nagios Access" AuthType Basic AuthUserFile /etc/nagios/htpasswd.users Require valid-user Alias /nagios "/usr/share/nagios/html" Options None AllowOverride None Order allow,deny Allow from all AuthName "Nagios Access" AuthType Basic AuthUserFile /etc/nagios/htpasswd.users Require valid-user I create /etc/nagios/htpasswd.users and add user nagiosadmin I checked cgi.cfg for this parameters: use_authentication=1 authorized_for_system_information=nagiosadmin authorized_for_configuration_information=nagiosadmin authorized_for_system_commands=nagiosadmin authorized_for_all_services=nagiosadmin authorized_for_all_hosts=nagiosadmin authorized_for_all_service_commands=nagiosadmin authorized_for_all_host_commands=nagiosadmin SELinux is off. What is wrong? Astakhov Peter -- ??????? ?.?. ????????? ???????????? ??? ? ?? ??? "??????????? ???????" ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kbastin at mindspring.com Mon Nov 15 13:14:27 2010 From: kbastin at mindspring.com (Keith Bastin) Date: Mon, 15 Nov 2010 07:14:27 -0500 Subject: Nagios Historical Data Question In-Reply-To: References: <7F6E6714-65A2-46E5-9271-3207F7CCB8AE@xodus.org> Message-ID: <00f301cb84be$a6911610$f3b34230$@com> Note that by default Nagios only retains a history of state changes - it does NOT retain the results of service checks for trending, If you want to maintain results for trending purposes You will need to modify your service checks to write the relevant performance trend data to a database or file to be processed by a trending tool (such as cacti). Also if you are running SUSE 11 the default installation auto-archives the "archive" folders with a cron job in the /etc/cron.weekly folder. This basically bzip's each daily archive file which will prevent Nagios from being able to read them when you run the state history trends. -----Original Message----- From: Korrawit Yindeeyoungyeon [mailto:skaaa.at0m at gmail.com] Sent: Monday, November 15, 2010 4:25 AM To: Nagios Users List Subject: Re: [Nagios-users] Nagios Historical Data Question Thank Marc Powell On Mon, Nov 15, 2010 at 3:21 PM, Marc Powell wrote: > > On Nov 15, 2010, at 2:06 AM, Korrawit Yindeeyoungyeon wrote: > >> Hi, I'm new with Nagios. I have questions. >> >> 1.) Can Nagios keeps the historical data ? How? > > Yes, it does this by default. Historical data is kept in the archive directory, typically /usr/local/nagios/var/archives. > >> 2.) Now,I'm use flat file to keep the data.Can I get the historical data? > > Yes. Nagios only uses flat files for data. No special action is necessary and the web interface is used to display that data or you can parse the files and use the data on your own. > >> 3.) Can Nagios work with MySQL? How? > > Not directly but there are addons available at > http://exchange.nagios.org to tie nagios to MySQL for both > configuration (i.e. front ends that store their data in MySQL, then > generate the flat file with configuration data that nagios requires) > and data retention for parsing/presentation by other third party apps > (i.e. merlin or other alternative front end.) > > -- > Marc > > ---------------------------------------------------------------------- > -------- Centralized Desktop Delivery: Dell and VMware Reference > Architecture Simplifying enterprise desktop deployment and management > using Dell EqualLogic storage and VMware View: A highly scalable, > end-to-end client virtualization framework. Read more! > http://p.sf.net/sfu/dell-eql-dev2dev > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ---------------------------------------------------------------------------- -- Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kbastin at mindspring.com Mon Nov 15 13:17:50 2010 From: kbastin at mindspring.com (Keith Bastin) Date: Mon, 15 Nov 2010 07:17:50 -0500 Subject: Another Nagios Historical Data Question In-Reply-To: <4CE102D6.1000403@upol.cz> References: <7F6E6714-65A2-46E5-9271-3207F7CCB8AE@xodus.org> <4CE102D6.1000403@upol.cz> Message-ID: <00f401cb84bf$1f089ff0$5d19dfd0$@com> When you run the history reports they build the historical data by parsing for the service name in the files in the archives folder. The reason the history isn't there is because the name has changed. You could do a search and replace on all the files in the archive folder to stamp them with the new service name if you really want to maintain that history. -----Original Message----- From: Ales Rikovsky [mailto:Ales.Rikovsky at upol.cz] Sent: Monday, November 15, 2010 4:52 AM To: Nagios Users List Subject: [Nagios-users] Another Nagios Historical Data Question Hi, when I change name of the host or service, I'll lose history for them. Has anyone found the solution for that problem? Probably some script, that will replace names of of the host and/or service in the log files....???? Thank you. Ales -- Ales Rikovsky +420 585631826 Ales.Rikovsky at upol.cz Biskupske nam. 1 Palacky University Computer Center 771 11 Olomouc ---------------------------------------------------------------------------- -- Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kbastin at mindspring.com Mon Nov 15 13:22:00 2010 From: kbastin at mindspring.com (Keith Bastin) Date: Mon, 15 Nov 2010 07:22:00 -0500 Subject: Another Nagios Historical Data Question In-Reply-To: <4CE102D6.1000403@upol.cz> References: <7F6E6714-65A2-46E5-9271-3207F7CCB8AE@xodus.org> <4CE102D6.1000403@upol.cz> Message-ID: <00f501cb84bf$b4557330$1d005990$@com> I am referring to a search and replace within each of the history files, not the names of those files. The Nagios Archives all of the state change data for hosts and services within a flat text file that is rolled daily. Those files are stored in the archives folder and whenever you run a trend report on a service or host state history it parses every daily file in the archive folder that falls within the date range of your query. --- When you run the history reports they build the historical data by parsing for the service name in the files in the archives folder. The reason the history isn't there is because the name has changed. You could do a search and replace on all the files in the archive folder to stamp them with the new service name if you really want to maintain that history. -----Original Message----- From: Ales Rikovsky [mailto:Ales.Rikovsky at upol.cz] Sent: Monday, November 15, 2010 4:52 AM To: Nagios Users List Subject: [Nagios-users] Another Nagios Historical Data Question Hi, when I change name of the host or service, I'll lose history for them. Has anyone found the solution for that problem? Probably some script, that will replace names of of the host and/or service in the log files....???? Thank you. Ales -- Ales Rikovsky +420 585631826 Ales.Rikovsky at upol.cz Biskupske nam. 1 Palacky University Computer Center 771 11 Olomouc ---------------------------------------------------------------------------- -- Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rlemerlus at merethis.com Mon Nov 15 10:33:33 2010 From: rlemerlus at merethis.com (Romain Le Merlus) Date: Mon, 15 Nov 2010 10:33:33 +0100 Subject: Nagios Historical Data Question In-Reply-To: <4CE0EC23.4020902@op5.se> References: <4CE0EC23.4020902@op5.se> Message-ID: Hi Korrawit, On Mon, Nov 15, 2010 at 9:15 AM, Andreas Ericsson wrote: > > 3.) Can Nagios work with MySQL? How? > Via eventbroker modules such as Merlin or NDOUtils, Nagios can store > information in a database. The standard UI doesn't work with either > of those database backends though. The only free UI I know of that > has full support for everything and uses mysql as a backend is Ninja, > which works with the Merlin schema. > There is also the Centreon software which provide a very nice UI and some new features to Nagios. http://www.centreon.com http://demo.centreon.com/ Best regards. -- Romain LE MERLUS -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From skaaa.at0m at gmail.com Mon Nov 15 15:05:50 2010 From: skaaa.at0m at gmail.com (Korrawit Yindeeyoungyeon) Date: Mon, 15 Nov 2010 21:05:50 +0700 Subject: Nagios Historical Data Question In-Reply-To: References: <4CE0EC23.4020902@op5.se> Message-ID: Where can I find the standard database schema of Nagios ? or I need to find in source code of 3rd party front-end software? On Mon, Nov 15, 2010 at 4:33 PM, Romain Le Merlus wrote: > Hi Korrawit, > > On Mon, Nov 15, 2010 at 9:15 AM, Andreas Ericsson wrote: >> >> > 3.) Can Nagios work with MySQL? How? >> Via eventbroker modules such as Merlin or NDOUtils, Nagios can store >> information in a database. The standard UI doesn't work with either >> of those database backends though. The only free UI I know of that >> has full support for everything and uses mysql as a backend is Ninja, >> which works with the Merlin schema. > > > There is also the Centreon software which provide a very nice UI and some > new features to Nagios. > http://www.centreon.com > http://demo.centreon.com/ > > Best regards. > -- > Romain LE MERLUS > > ------------------------------------------------------------------------------ > Centralized Desktop Delivery: Dell and VMware Reference Architecture > Simplifying enterprise desktop deployment and management using > Dell EqualLogic storage and VMware View: A highly scalable, end-to-end > client virtualization framework. Read more! > http://p.sf.net/sfu/dell-eql-dev2dev > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ales.Rikovsky at upol.cz Mon Nov 15 15:12:19 2010 From: Ales.Rikovsky at upol.cz (Ales Rikovsky) Date: Mon, 15 Nov 2010 15:12:19 +0100 Subject: Another Nagios Historical Data Question In-Reply-To: <00f501cb84bf$b4557330$1d005990$@com> References: <7F6E6714-65A2-46E5-9271-3207F7CCB8AE@xodus.org> <4CE102D6.1000403@upol.cz> <00f501cb84bf$b4557330$1d005990$@com> Message-ID: <4CE13FC3.9090300@upol.cz> On 15.11.2010 13:22, Keith Bastin wrote: > I am referring to a search and replace > within each of the history files, not the names of those files. The Nagios > Archives all of the state change data for hosts and services within a flat > text file that is rolled daily. Those files are stored in the archives > folder and whenever you run a trend report on a service or host state > history it parses every daily file in the archive folder that falls within > the date range of your query. Well, I know. It's stored in /var/log/nagios/archives/xxxxx.log But I'm not hunger for rewriting the tons of files manually. Can anyone help me with the script or something like that, maybe if it could ask for old and new names and rewrites all occurences in the log liles correctly. ______ .... Enter the old name: blahblahold Enter the new name: blahblahnew ..... ______ ;-))) Thanks in advance Ales R. -- Ales Rikovsky +420 585631826 Ales.Rikovsky at upol.cz Biskupske nam. 1 Palacky University Computer Center 771 11 Olomouc ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lists at xodus.org Mon Nov 15 15:31:55 2010 From: lists at xodus.org (Marc Powell) Date: Mon, 15 Nov 2010 08:31:55 -0600 Subject: Nagios Historical Data Question In-Reply-To: References: <4CE0EC23.4020902@op5.se> Message-ID: On Nov 15, 2010, at 8:05 AM, Korrawit Yindeeyoungyeon wrote: > Where can I find the standard database schema of Nagios ? or I need to > find in source code of 3rd party front-end software? You'll need to look at the third party software to determine how they get data into a database. Nagios doesn't use a database so has no standard database schema. Each addon either has it's own specific schema or utilizes one of other common event broker -> database addons (such as ndoutils). -- Marc ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lists at xodus.org Mon Nov 15 15:38:59 2010 From: lists at xodus.org (Marc Powell) Date: Mon, 15 Nov 2010 08:38:59 -0600 Subject: Another Nagios Historical Data Question In-Reply-To: <4CE13FC3.9090300@upol.cz> References: <7F6E6714-65A2-46E5-9271-3207F7CCB8AE@xodus.org> <4CE102D6.1000403@upol.cz> <00f501cb84bf$b4557330$1d005990$@com> <4CE13FC3.9090300@upol.cz> Message-ID: <4EA52C63-FA81-42D8-B9FE-7158BFFDCE91@xodus.org> On Nov 15, 2010, at 8:12 AM, Ales Rikovsky wrote: > I know. It's stored in /var/log/nagios/archives/xxxxx.log > > But I'm not hunger for rewriting the tons of files manually. > Can anyone help me with the script or something like that, maybe if it > could ask for old and new names and rewrites all occurences in the log > liles correctly. > ______ > .... > Enter the old name: blahblahold > Enter the new name: blahblahnew It could be something as simple as -- sed -i .bak 's/blahblahold/blahblanew/g' /var/log/nagios/archives/*.log I leave how to pass the 'blahblahold' and 'blahblahnew' as a rather straighforward exercise for you. -- Marc ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From work at paul.dubuc.org Mon Nov 15 16:24:08 2010 From: work at paul.dubuc.org (Paul M. Dubuc) Date: Mon, 15 Nov 2010 10:24:08 -0500 Subject: No permission to web-interface In-Reply-To: <4CE10E4E.6030602@yarbroiler.ru> References: <4CE10E4E.6030602@yarbroiler.ru> Message-ID: <4CE15098.2030500@paul.dubuc.org> Astakhov Peter wrote: > Hello, colleagues! > I installed nagios on RHEL6. > But I get error on web-interface: > > It appears as though you do not have permission to view information for > any of the hosts you requested... > If you believe this is an error, check the HTTP server authentication > requirements for accessing this CGI > and check the authorization options in your CGI configuration file. > > I checked /etc/httpd/conf.d/nagios.conf > > ScriptAlias /nagios/cgi-bin/ "/usr/lib/nagios/cgi-bin/" > ... Which display are you trying to use when you get this error? I have one instance of Nagios configured with no host groups and this error comes out if I try to view host groups. It's a little confusing since it's not really a permission issue since I have permission to access all the hosts. It's just that there is nothing to display using that particular query. There is no default "all hosts" hostgroup. Paul Dubuc ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From paul.weaver at bbc.co.uk Mon Nov 15 16:29:23 2010 From: paul.weaver at bbc.co.uk (Paul Weaver) Date: Mon, 15 Nov 2010 15:29:23 -0000 Subject: Map In-Reply-To: References: Message-ID: <5C44E813F7481A46980A2F6778680B1A02B8EECE@bbcxues16.national.core.bbc.co.uk> >> I have a question that I hope someone give me some guidance on. How do I view the map? What I try it still looks all jumbled together. > The map is built automatically based on the parent/child relationship you have set in your host definitions. The default automap is fairly unusable once you hit a non-trivial number of hosts. We have 386 on ours, and nobody bothers. It doesn't help if you want to map certain services instead of hosts either. If you're keen on a map, you need to look at something like nagvis to do that. We have a nice map of the country/world showing connections to various overseas bureaus. Not too useful from a support point of view (most of it is green for most of the time), but is does give management something nice to look at. ________________________________ From: Macleod, Chris [mailto:CMacleod at edrington.co.uk] Sent: 11 November 2010 15:36 To: Nagios Users List Subject: Re: [Nagios-users] Map The map is built automatically based on the parent/child relationship you have set in your host definitions. For instance if you make Switch1 the parent of Server1 and switch1 parent is local host you will have a map of Server1->Switch1=>Localhost This also means if switch1 goes down nagios knows server1 will be unreachable - helps reduce alerts. From: Edwin Zoeller [mailto:Edwin.Zoeller at ama-assn.org] Sent: 11 November 2010 15:20 To: Nagios Users List Subject: [Nagios-users] Map I have a question that I hope someone give me some guidance on. How do I view the map? What I try it still looks all jumbled together. Thanks, Ed http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From work at paul.dubuc.org Mon Nov 15 16:33:19 2010 From: work at paul.dubuc.org (Paul M. Dubuc) Date: Mon, 15 Nov 2010 10:33:19 -0500 Subject: Nagios Historical Data Question In-Reply-To: References: <4CE0EC23.4020902@op5.se> Message-ID: <4CE152BF.50705@paul.dubuc.org> Marc Powell wrote: > > On Nov 15, 2010, at 8:05 AM, Korrawit Yindeeyoungyeon wrote: > >> Where can I find the standard database schema of Nagios ? or I need to >> find in source code of 3rd party front-end software? > > You'll need to look at the third party software to determine how they get data into a database. > > Nagios doesn't use a database so has no standard database schema. Each addon either has it's own specific schema or utilizes one of other common event broker -> database addons (such as ndoutils). > > -- > Marc Maybe he's looking for this: http://nagios.sourceforge.net/docs/ndoutils/NDOUtils_DB_Model.pdf the DB schema used by NDOUtils. ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kbastin at mindspring.com Mon Nov 15 16:41:53 2010 From: kbastin at mindspring.com (Keith Bastin) Date: Mon, 15 Nov 2010 10:41:53 -0500 Subject: No permission to web-interface In-Reply-To: <4CE15098.2030500@paul.dubuc.org> References: <4CE10E4E.6030602@yarbroiler.ru> <4CE15098.2030500@paul.dubuc.org> Message-ID: <015c01cb84db$a0e2e640$e2a8b2c0$@com> What user doesn't have rights? Did you create a password for the nagiosadmin user account using htpasswd? Are you trying to access administrative functions (issue commands, etc.) - If so you may need to add your account to the various directives in the cgi.cfg file. Did you create a new user? By default you can only see hosts/services that you are assigned as a contact for. (unless you are allowed to via the directive in the cgi.cfg file - authorized_for_all_service_commands or authorized_for_all_host_commands to issue commands and - authorized_for_all_services and authorized_for_all_hosts for view access ) -----Original Message----- From: Paul M. Dubuc [mailto:work at paul.dubuc.org] Sent: Monday, November 15, 2010 10:24 AM To: Nagios Users List Subject: Re: [Nagios-users] No permission to web-interface Astakhov Peter wrote: > Hello, colleagues! > I installed nagios on RHEL6. > But I get error on web-interface: > > It appears as though you do not have permission to view information > for any of the hosts you requested... > If you believe this is an error, check the HTTP server authentication > requirements for accessing this CGI and check the authorization > options in your CGI configuration file. > > I checked /etc/httpd/conf.d/nagios.conf > > ScriptAlias /nagios/cgi-bin/ "/usr/lib/nagios/cgi-bin/" > ... Which display are you trying to use when you get this error? I have one instance of Nagios configured with no host groups and this error comes out if I try to view host groups. It's a little confusing since it's not really a permission issue since I have permission to access all the hosts. It's just that there is nothing to display using that particular query. There is no default "all hosts" hostgroup. Paul Dubuc ---------------------------------------------------------------------------- -- Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kaiwang.chen at gmail.com Mon Nov 15 19:39:11 2010 From: kaiwang.chen at gmail.com (Kaiwang Chen) Date: Tue, 16 Nov 2010 02:39:11 +0800 Subject: debugging eventhandler via nrpe In-Reply-To: <4CE1052A.5030209@flatto.net> References: <4CDD3F67.7050603@flatto.net> <4CE157D2.3040407@gmail.com> <4CE1052A.5030209@flatto.net> Message-ID: Guess the "-t 200" option got you , because check_nrpe_nonssl!solr-restart!$SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$!-t200 will be processed in two steps: 1) macro expansion in args solr-restart!CRITICAL SOFT 1!-t 200 ARG1=solr-restart ARG2=CRITICAL SOFT 1 ARG3=-t 200 2) macro expansion the whole raw line, 2.1) say the difinition be "check_nrpe -H $HOSTADDRESS$ -n -c $ARG1$ -a $ARG2$ $ARG3$" check_nrpe -H -n -c solr-restart -a "CRITICAL SOFT 1" "-t 200" 2.2) or, say it be "check_nrpe -H $HOSTADDRESS$ -n -c $ARG1$ -a $ARG2$" check_nrpe -H -n -c solr-restart -a "CRITICAL SOFT 1" That is, if more than n args are specified in the case of ARGn being the last positional macro, the additional parts are simply ignored. In any case, "-t 200" is not used as expected, while the default is 10 seconds. Then the check_nrpe generates a query to nrpe: solr-restart!CRITICAL SOFT 1!-t 200 or solr-restart!CRITICAL SOFT 1 And nrpe invoke the defined command as /usr/local/nagios/libexec/eventhandlers/restart-solr.sh "CRITICAL SOFT 1" "-t 200" or /usr/local/nagios/libexec/eventhandlers/restart-solr.sh "CRITICAL SOFT 1" given the definition command[solr-restart]=/usr/local/nagios/libexec/eventhandlers/restart-solr.sh $ARG1$ $ARG2$ or command[solr-restart]=/usr/local/nagios/libexec/eventhandlers/restart-solr.sh $ARG1$ Similary, if more than n args are specified in the case of ARGn being the last positional macro, the additional parts are simply ignored. The above analysis is not verified. thanks, kc 2010/11/15 Assaf Flatto : > Nagios.log ?show that the event handler is being executed ,and showing > the passed parameters > > > from nagios.log > > ;JBoss Port > 8080;CRITICAL;SOFT;1;check_nrpe_nonssl!solr-restart!CRITICAL SOFT 1!-t 200 > > > > the "-t 200" is to tell nagios to wait for the reply for 200 seconds - > on the remote host we have a timeout of 300 , so that will allow the > nrpe session time to work the command and then terminate . > > > The debug log is not showing the event handler at all , i have changed > the logging to -1 and hopefully it will give me some more data . > > > Assaf > > > quanta wrote: > >> ?Check your nagios.log file. Why didn't you put the argument (-t 200) to >> the remote host, in nrpe.cfg? >> >> >> On 11/12/2010 01:21 PM, Assaf Flatto wrote: >> >>> ? Hello all >>> >>> I am trying to implement an event handler on a remote machine , and >>> having a problem with the way the status arguments are transferred over >>> the NRPE channel . >>> >>> My config is as such : >>> >>> define service{ >>> >>> ? max_check_attempts ? ? ? ? ? ? ?3 >>> ? event_handler >>> check_nrpe_nonssl!solr-restart!$SERVICESTATE$ $SERVICESTATETYPE$ >>> $SERVICEATTEMPT$!-t 200 >>> >>> >>> } >>> >>> On the remote server the nrpe was compiled with --allow-command-args >>> ,and in ?the nrpe.cfg i have the following parameters ? >>> >>> dont_blame_nrpe=1 >>> debug=1 >>> command_timeout=300 >>> # Event Handler >>> command[solr-restart]=/usr/local/nagios/libexec/eventhandlers/restart-solr.sh >>> >>> >>> the event handler script is : >>> #!/bin/bash >>> # >>> # Event handler script for restarting the web server on the local machine >>> # >>> # Note: This script will only restart the web server if the service is >>> # retried 3 times (in a "soft" state) or if the web service somehow >>> # manages to fall into a "hard" error state. >>> # >>> >>> case "$1" in >>> OK) >>> ? # The service just came back up, so don't do anything... >>> ? ;; >>> WARNING) >>> ? ;; >>> UNKNOWN) >>> ? ;; >>> CRITICAL) >>> ? case "$2" in >>> ? SOFT) >>> >>> ? case "$3" in >>> ? 2) >>> ? echo "Too early - not restarting yet" >>> ? exit 0 >>> ? ;; >>> ? ? ?esac >>> >>> ? case "$3" in >>> ? 3) >>> ? echo "Too early - not restarting yet" >>> ? exit 0 >>> ? ;; >>> ? esac >>> ? ;; >>> ? HARD) >>> cd /usr/local/nagios/libexec/eventhandlers/ >>> curl -s -v -u *****:******* --request PUT -d @solr7down.xml http://LB >>> sleep 5 >>> sudo /etc/init.d/jboss stop >>> >>> sleep 60 >>> sudo /etc/init.d/jboss start >>> sleep 15 >>> curl -s -v -u *****:****** --request PUT -d @solr7up.xml http://LB >>> sleep 3 >>> echo " Event handler restarted the solr service" >>> ? ;; >>> ? esac >>> ? ;; >>> esac >>> echo "Event handler restarted the solr service" >>> exit 0 >>> >>> I can see in the syslog that the script is initiated : >>> Nov 11 18:15:44 gbc1-solr-07 nrpe[29687]: Host address is in allowed_hosts >>> Nov 11 18:15:44 gbc1-solr-07 nrpe[29687]: Handling the connection... >>> Nov 11 18:15:44 gbc1-solr-07 nrpe[29687]: Host is asking for command >>> 'solr-restart' to be run... >>> Nov 11 18:15:44 gbc1-solr-07 nrpe[29687]: Running command: >>> /usr/local/nagios/libexec/eventhandlers/restart-solr.sh >>> Nov 11 18:15:44 gbc1-solr-07 nrpe[29687]: Command completed with return >>> code 0 and output: >>> >>> But the event handler is not preforming the tasks it is meant to . >>> >>> >>> when i initiate the command manually >>> >>> ~/libexec/check_nrpe -H -n -c solr-restart -a " Critical HARD 3" >>> -t 200 Fine? the query sent to nrpe is: solr-restart! Critical HARD 3!-t!200 >>> it is running fine . >>> I know it is an issue with the transfer of the arguments to the nrpe - >>> but i am missing something to make sure they are parsed and sent properly . >>> >>> Anyone can point me to the sign in front of me i am blindingly missing ? >>> >>> Thanks >> ?to /dev/null >> > > > -- > Never,Ever Cut A Deal With a Dragon > > > Next year I will be doing the London to Paris bike ride to > raise money for the DogTrust (www.dogstrust.co.uk) . > Please Sponsor me at http://www.justgiving.com/Assaf-Flatto > > > ------------------------------------------------------------------------------ > Centralized Desktop Delivery: Dell and VMware Reference Architecture > Simplifying enterprise desktop deployment and management using > Dell EqualLogic storage and VMware View: A highly scalable, end-to-end > client virtualization framework. Read more! > http://p.sf.net/sfu/dell-eql-dev2dev > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Eliot.Picken at wenaas.co.uk Mon Nov 15 20:00:15 2010 From: Eliot.Picken at wenaas.co.uk (Eliot.Picken at wenaas.co.uk) Date: Mon, 15 Nov 2010 19:00:15 +0000 Subject: AUTO: Eliot Picken is out of the office (returning 17/11/2010) Message-ID: I am out of the office until 17/11/2010. I am currently out of the office, and I will respond to your email upon my return. Your email has not been forwarded. For all enquiries, please contact Alex Lawrie on +44 (0) 1224 894 000 Note: This is an automated response to your message "Re: [Nagios-users] debugging eventhandler via nrpe" sent on 11/15/2010 6:39:11 PM. This is the only notification you will receive while this person is away. ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kaiwang.chen at gmail.com Tue Nov 16 04:55:42 2010 From: kaiwang.chen at gmail.com (Kaiwang Chen) Date: Tue, 16 Nov 2010 11:55:42 +0800 Subject: debugging eventhandler via nrpe In-Reply-To: <4CE1052A.5030209@flatto.net> References: <4CDD3F67.7050603@flatto.net> <4CE157D2.3040407@gmail.com> <4CE1052A.5030209@flatto.net> Message-ID: make sure you check the right file, since the debug output goes to var/nagios.debug (debug_file=) debug_level=-1 debug_verbosity=2 Then everything is clear. 2010/11/15 Assaf Flatto : > Nagios.log ?show that the event handler is being executed ,and showing > the passed parameters > > > from nagios.log > > ;JBoss Port > 8080;CRITICAL;SOFT;1;check_nrpe_nonssl!solr-restart!CRITICAL SOFT 1!-t 200 > > > > the "-t 200" is to tell nagios to wait for the reply for 200 seconds - > on the remote host we have a timeout of 300 , so that will allow the > nrpe session time to work the command and then terminate . > > > The debug log is not showing the event handler at all , i have changed > the logging to -1 and hopefully it will give me some more data . > > > Assaf > > > quanta wrote: > >> ?Check your nagios.log file. Why didn't you put the argument (-t 200) to >> the remote host, in nrpe.cfg? >> >> >> On 11/12/2010 01:21 PM, Assaf Flatto wrote: >> >>> ? Hello all >>> >>> I am trying to implement an event handler on a remote machine , and >>> having a problem with the way the status arguments are transferred over >>> the NRPE channel . >>> >>> My config is as such : >>> >>> define service{ >>> >>> ? max_check_attempts ? ? ? ? ? ? ?3 >>> ? event_handler >>> check_nrpe_nonssl!solr-restart!$SERVICESTATE$ $SERVICESTATETYPE$ >>> $SERVICEATTEMPT$!-t 200 >>> >>> >>> } >>> >>> On the remote server the nrpe was compiled with --allow-command-args >>> ,and in ?the nrpe.cfg i have the following parameters ? >>> >>> dont_blame_nrpe=1 >>> debug=1 >>> command_timeout=300 >>> # Event Handler >>> command[solr-restart]=/usr/local/nagios/libexec/eventhandlers/restart-solr.sh >>> >>> >>> the event handler script is : >>> #!/bin/bash >>> # >>> # Event handler script for restarting the web server on the local machine >>> # >>> # Note: This script will only restart the web server if the service is >>> # retried 3 times (in a "soft" state) or if the web service somehow >>> # manages to fall into a "hard" error state. >>> # >>> >>> case "$1" in >>> OK) >>> ? # The service just came back up, so don't do anything... >>> ? ;; >>> WARNING) >>> ? ;; >>> UNKNOWN) >>> ? ;; >>> CRITICAL) >>> ? case "$2" in >>> ? SOFT) >>> >>> ? case "$3" in >>> ? 2) >>> ? echo "Too early - not restarting yet" >>> ? exit 0 >>> ? ;; >>> ? ? ?esac >>> >>> ? case "$3" in >>> ? 3) >>> ? echo "Too early - not restarting yet" >>> ? exit 0 >>> ? ;; >>> ? esac >>> ? ;; >>> ? HARD) >>> cd /usr/local/nagios/libexec/eventhandlers/ >>> curl -s -v -u *****:******* --request PUT -d @solr7down.xml http://LB >>> sleep 5 >>> sudo /etc/init.d/jboss stop >>> >>> sleep 60 >>> sudo /etc/init.d/jboss start >>> sleep 15 >>> curl -s -v -u *****:****** --request PUT -d @solr7up.xml http://LB >>> sleep 3 >>> echo " Event handler restarted the solr service" >>> ? ;; >>> ? esac >>> ? ;; >>> esac >>> echo "Event handler restarted the solr service" >>> exit 0 >>> >>> I can see in the syslog that the script is initiated : >>> Nov 11 18:15:44 gbc1-solr-07 nrpe[29687]: Host address is in allowed_hosts >>> Nov 11 18:15:44 gbc1-solr-07 nrpe[29687]: Handling the connection... >>> Nov 11 18:15:44 gbc1-solr-07 nrpe[29687]: Host is asking for command >>> 'solr-restart' to be run... >>> Nov 11 18:15:44 gbc1-solr-07 nrpe[29687]: Running command: >>> /usr/local/nagios/libexec/eventhandlers/restart-solr.sh >>> Nov 11 18:15:44 gbc1-solr-07 nrpe[29687]: Command completed with return >>> code 0 and output: >>> >>> But the event handler is not preforming the tasks it is meant to . >>> >>> >>> when i initiate the command manually >>> >>> ~/libexec/check_nrpe -H -n -c solr-restart -a " Critical HARD 3" >>> -t 200 >>> it is running fine . >>> I know it is an issue with the transfer of the arguments to the nrpe - >>> but i am missing something to make sure they are parsed and sent properly . >>> >>> Anyone can point me to the sign in front of me i am blindingly missing ? >>> >>> Thanks >> ?to /dev/null >> > > > -- > Never,Ever Cut A Deal With a Dragon > > > Next year I will be doing the London to Paris bike ride to > raise money for the DogTrust (www.dogstrust.co.uk) . > Please Sponsor me at http://www.justgiving.com/Assaf-Flatto > > > ------------------------------------------------------------------------------ > Centralized Desktop Delivery: Dell and VMware Reference Architecture > Simplifying enterprise desktop deployment and management using > Dell EqualLogic storage and VMware View: A highly scalable, end-to-end > client virtualization framework. Read more! > http://p.sf.net/sfu/dell-eql-dev2dev > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lists at xodus.org Tue Nov 16 07:04:29 2010 From: lists at xodus.org (Marc Powell) Date: Tue, 16 Nov 2010 00:04:29 -0600 Subject: Nagios Historical Data Question In-Reply-To: <4CE152BF.50705@paul.dubuc.org> References: <4CE0EC23.4020902@op5.se> <4CE152BF.50705@paul.dubuc.org> Message-ID: <75221BAB-CDF4-4D21-98C8-2F0760ACEA9A@xodus.org> On Nov 15, 2010, at 9:33 AM, Paul M. Dubuc wrote: > Maybe he's looking for this: > > http://nagios.sourceforge.net/docs/ndoutils/NDOUtils_DB_Model.pdf > > the DB schema used by NDOUtils. Could be, but I stopped trying to read people's minds about a decade ago. He's so far asked about configuration and retention so who knows... -- Marc ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Sunny_Jaisinghani at symantec.com Tue Nov 16 07:07:30 2010 From: Sunny_Jaisinghani at symantec.com (Sunny Jaisinghani) Date: Tue, 16 Nov 2010 11:37:30 +0530 Subject: upgrade nagios 1.4.1 to nagios 3.2.3 In-Reply-To: References: <4CDD2D14.4090305@op5.se> Message-ID: Thanks Daniel, If upgrading using an rpm is not advisable; could you please suggest a procedure to upgrade using the source package. I want to plan a clean risk free upgrade plan. After i backup the old configs and remove the Nagios 1.4 rpms; how do i proceed to compile the new Nagios package. Do i have to upgrade the plugins also.?? These are the rpms currently installed nagios-plugins-1.3.1-10.rhel3.dag nagios-plugins-nrpe-2.0-3.rhel3.dag nagios-nrpe-2.0-3.rhel3.dag nagios-nsca-2.4-2.rhel3.dag nagios-1.4.1-1.el3.rf Sunny Jaisinghani -----Original Message----- From: Daniel Tuecks [mailto:dtuecks at googlemail.com] Sent: 14 November 2010 05:46 To: Nagios Users List Subject: Re: [Nagios-users] upgrade nagios 1.4.1 to nagios 3.2.3 Upgrading from Nagios 1 to Nagios 3 will likely break your config. I wouldn't take a chance on the rpm package to do all of the needed changes to make it compatible with nagios 3.2. So doing a backup before upgrading is a wise idea. If your rpm doesn't update your config, please have a look at the following two links: http://support.nagios.com/knowledgebase/faqs/index.php?option=com_content&view=article&id=52&catid=35&faq_id=407&expand=false&showdesc=true http://nagios.sourceforge.net/docs/3_0/upgrading.html#nagios2x Daniel 2010/11/13 Sunny Jaisinghani : > > > > > > -----Original Message----- > From: Andreas Ericsson [mailto:ae at op5.se] > Sent: 12 November 2010 17:34 > To: Nagios Users List > Cc: Sunny Jaisinghani > Subject: Re: [Nagios-users] upgrade nagios 1.4.1 to nagios 3.2.3 > > On 11/12/2010 10:02 AM, Sunny Jaisinghani wrote: >> Hi, >> >> >> >> Can someone describe steps to upgrade nagios 1.4.1 to nagios 3.2.3. >> >> Currently i am monitoring over 500 hosts and 3000 services using > nagios >> 1.4.1 >> >> I am also using nsca and ocsp for nagios failover. >> >> >> >> Nagios 1.4.1 is installed using rpms >> >> >> >> nagios-plugins-1.3.1-10.rhel3.dag >> >> nagios-plugins-nrpe-2.0-3.rhel3.dag >> >> nagios-nrpe-2.0-3.rhel3.dag >> >> nagios-nsca-2.4-2.rhel3.dag >> >> nagios-1.4.1-1.el3.rf >> >> >> >> I wish to install the newer version using rpm. These are the rpms i >> found >> >> >> >> nagios-3.2.3-2.el5.rf.i386.rpm >> >> nagios-devel-3.2.3-2.el5.rf.i386.rpm >> > > RPM packages quite often contain trigger-scripts that handle > everything automagically. That might not be the case if you go > from rhel3 to rhel5 packages though. > > Make backups before you try anything. > > -- > Andreas Ericsson ? ? ? ? ? ? ? ? ? andreas.ericsson at 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. > > > Hey Andreas, > > Going to rhel 5 from rhel 3 is also in my to do list. > May be, i'll upgrade to rhel 5 before i upgrade nagios to 3.2.3 > > So, since i am gonna use the rpm, you suggest taking backups and just > upgrading the nagios packages. Right? > > Anything apart from this that i need to take care of? > > Thanks > Sunny > > ------------------------------------------------------------------------------ > Centralized Desktop Delivery: Dell and VMware Reference Architecture > Simplifying enterprise desktop deployment and management using > Dell EqualLogic storage and VMware View: A highly scalable, end-to-end > client virtualization framework. Read more! > http://p.sf.net/sfu/dell-eql-dev2dev > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From MarkL at lmfj.com Tue Nov 16 16:33:53 2010 From: MarkL at lmfj.com (Mark A. Lappin) Date: Tue, 16 Nov 2010 09:33:53 -0600 Subject: Macros in notes? Message-ID: <0227B653B3DC82438B8291BC5218612F671A0706F5@lmfjex07.lmfj.com> What I would like to do, for my network printers, switches, routers, and some other devices, is add more information to the extended info page. I have been playing around with notes and to get decently readable output, I end up with a bunch of ugly looking HTML which I have been duplicating on every host definition. Trying to include printer make, model, print queue, location, primary users, toner part number etc; routers nearest service center, circuit identifier, etc. Works great, hard to maintain. So I was/have been trying (unsuccessfully) to use macros in my host definition and on the template put in the more complex HTML that would fill in from the macros The below configs show what I was attempting. I do not get any configuration warnings, I don't however get the value that I have set in the host, I get the literal output: $_HOSTprnMake$. So I'm thinking (1) Nagios doesn't support what I'm trying to do and I can't use macros in notes or (2) I have a syntax error that I'm not seeing. I'm hoping somebody here can give me some insight into which case it might be - especially for #1 before I really start beating my head against the wall. define host{ use generic-printer host_name 11314-AR alias 11314-AR-4200N address 192.168.98.31 action_url http://192.168.98.31 hostgroups network-printers _prnMake HP _prnModel Laserjet 2300n _prnMainQueue "\\\\lmfj-print\\11314-AR" } define host{ name generic-printer ; The name of this host template use generic-host ; Inherit default values from the generic-host template check_period 24x7 ; By default, printers are monitored round the clock check_interval 5 ; Actively check the printer every 5 minutes retry_interval 1 ; Schedule host check retries at 1 minute intervals max_check_attempts 10 ; Check each printer 10 times (max) check_command check-host-alive ; Default command to check if printers are "alive" notification_period workhours ; Printers are only used during the workday notification_interval 30 ; Resend notifications every 30 minutes notification_options d,r ; Only send notifications for specific host states contact_groups admins ; Notifications get sent to the admins by default register 0 ; DONT REGISTER THIS - ITS JUST A TEMPLATE notes \ \ \
Make
$_HOSTprnMake$
} Any advice/input is very much appreciated. --Mark Mark A. Lappin, CCNA, MCITP: Enterprise Administrator | Lee Michaels Fine Jewelry Director of Information Technology 11314 Cloverland Ave | Baton Rouge, LA 70809 Ph: 225.291.9094 ext 245 | Fax: 225.368.3675 | Mobile: 225-362-2770 www.lmfj.com This communication is privileged and confidential. If you are not the intended recipient, please notify the sender by reply e-mail and destroy all copies of this communication . ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mmelin at gmail.com Tue Nov 16 21:33:58 2010 From: mmelin at gmail.com (Martin Melin) Date: Tue, 16 Nov 2010 21:33:58 +0100 Subject: Macros in notes? In-Reply-To: <0227B653B3DC82438B8291BC5218612F671A0706F5@lmfjex07.lmfj.com> References: <0227B653B3DC82438B8291BC5218612F671A0706F5@lmfjex07.lmfj.com> Message-ID: On Tue, Nov 16, 2010 at 4:33 PM, Mark A. Lappin wrote: > > What I would like to do, for my network printers, switches, routers, and some other devices, is add more information to the extended info page. ?I have been playing around with notes and to get decently readable output, I end up with a bunch of ugly looking HTML which I have been duplicating on every host definition. ?Trying to include printer make, model, print queue, location, primary users, toner part number etc; ?routers nearest service center, circuit identifier, etc. ?Works great, hard to maintain. Agreed. IMHO information like that shouldn't be kept in the Nagios config. A trick we've used a few times is to have a wiki installed, then have notes_url be http://wiki/$HOSTNAME$ This also means you can let more people update information on hosts, printers etc. without having to give them access to Nagios' configs and reloading after each change. > > So I was/have been trying (unsuccessfully) to use macros in my host definition and on the template put in the more complex HTML that would fill in from the macros > > The below configs show what I was attempting. ?I do not get any configuration warnings, I don't however get the value that I have set in the host, I get the literal output: $_HOSTprnMake$. ? So I'm thinking (1) Nagios doesn't support what I'm trying to do and I can't use macros in notes ? or ? (2) ?I have a syntax error that I'm not seeing. ?I'm hoping somebody here can give me some insight into which case it might be - especially for #1 before I really start beating my head against the wall. I'm pretty sure but haven't confirmed that all custom macro names are converted to uppercase. If that's done when defining custom macros but not when referring to macros, $_HOSTprnMake$ should instead be $_HOSTPRNMAKE$. Let me know if that works. Cheers, Martin Melin ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From work at paul.dubuc.org Tue Nov 16 21:44:27 2010 From: work at paul.dubuc.org (Paul M. Dubuc) Date: Tue, 16 Nov 2010 15:44:27 -0500 Subject: Macros in notes? In-Reply-To: <0227B653B3DC82438B8291BC5218612F671A0706F5@lmfjex07.lmfj.com> References: <0227B653B3DC82438B8291BC5218612F671A0706F5@lmfjex07.lmfj.com> Message-ID: <4CE2ED2B.9030101@paul.dubuc.org> Mark A. Lappin wrote: > > What I would like to do, for my network printers, switches, routers, and > some other devices, is add more information to the extended info page. I have > been playing around with notes and to get decently readable output, I end up > with a bunch of ugly looking HTML which I have been duplicating on every host > definition. Trying to include printer make, model, print queue, location, > primary users, toner part number etc; routers nearest service center, circuit > identifier, etc. Works great, hard to maintain. > > So I was/have been trying (unsuccessfully) to use macros in my host > definition and on the template put in the more complex HTML that would fill in > from the macros > > The below configs show what I was attempting. I do not get any > configuration warnings, I don't however get the value that I have set in the host, I get the > literal output: $_HOSTprnMake$. So I'm thinking (1) Nagios doesn't support > what I'm trying to do and I can't use macros in notes or (2) I have a syntax > error that I'm not seeing. I'm hoping somebody here can give me some insight > into which case it might be - especially for #1 before I really start beating > my head against the wall. It's #1. Nagios only supports macro expansion for command objects (maybe others I don't know). Using macro expansions will work in the arguments (if any) that you pass to the check_command because they're expanded for the command object. Being able to do what you are trying to do here would be nice. I would like to use macros for constructing host and service names. > > define host{ > use generic-printer > host_name 11314-AR > alias 11314-AR-4200N > address 192.168.98.31 > action_url http://192.168.98.31 > hostgroups network-printers > _prnMake HP > _prnModel Laserjet 2300n > _prnMainQueue "\\\\lmfj-print\\11314-AR" > } > > > define host{ > name generic-printer ; The name of this host template > use generic-host ; Inherit default values from the generic-host template > check_period 24x7 ; By default, printers are monitored round the clock > check_interval 5 ; Actively check the printer every 5 minutes > retry_interval 1 ; Schedule host check retries at 1 minute intervals > max_check_attempts 10 ; Check each printer 10 times (max) > check_command check-host-alive ; Default command to check if printers are "alive" > notification_period workhours ; Printers are only used during the workday > notification_interval 30 ; Resend notifications every 30 minutes > notification_options d,r ; Only send notifications for specific host states > contact_groups admins ; Notifications get sent to the admins by default > register 0 ; DONT REGISTER THIS - ITS JUST A TEMPLATE > notes\ > \ > \ >
Make
$_HOSTprnMake$
> } > > > Any advice/input is very much appreciated. > > --Mark > > > > Mark A. Lappin, CCNA, MCITP: Enterprise Administrator | Lee Michaels Fine Jewelry > Director of Information Technology > 11314 Cloverland Ave | Baton Rouge, LA 70809 > Ph: 225.291.9094 ext 245 | Fax: 225.368.3675 | Mobile: 225-362-2770 > www.lmfj.com > ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Jeff.Chung at sig.com Tue Nov 16 21:44:22 2010 From: Jeff.Chung at sig.com (Chung, Jeff) Date: Tue, 16 Nov 2010 15:44:22 -0500 Subject: Next possible notification time bug Message-ID: <26AD5A26C15C3948AEF795C346F7E9ED096B1989D6@msgbal518.ds.susq.com> Hi, Here is the problem I'm trying to solve. We have services that have a set maintenance window, for example every Tuesday from 13:30 to 14:00. So to stop Nagios from sending notifications during this maintenance window I have created a time period that excludes "tuesday 13:30-14:00" and use it as the notification_period for the service. When testing this it seems like Nagios isn't correctly picking the next available time to send notifications out. I have configured a service called "TEST_SERVICE2" to return CRITICAL status starting at 13:57:28 (which is during the maintenance window). In Nagios' debug log it says "Next possible notification time: Wed Nov 17 00:00:00 2010", but I think the next possible time should be Nov 16 14:00 or soon after. Anyone else came across this issue? Thanks in advance! Here are my configurations. define timeperiod{ name 24x7 timeperiod_name 24x7 alias 24 Hours A Day, 7 Days A Week sunday 00:00-24:00 monday 00:00-24:00 tuesday 00:00-24:00 wednesday 00:00-24:00 thursday 00:00-24:00 friday 00:00-24:00 saturday 00:00-24:00 } # 'test-downtime' timeperiod definition define timeperiod{ name test-downtime timeperiod_name test-downtime alias test downtime tuesday 13:30-14:00 } # 'test' timeperiod definition define timeperiod{ name test timeperiod_name test alias test use 24x7 exclude test-downtime } define service{ host_name dsmgtbal800 service_description TEST_SERVICE2 check_command check_test contacts chung contact_groups null active_checks_enabled 1 passive_checks_enabled 1 parallelize_check 1 obsess_over_service 1 check_freshness 0 notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 0 failure_prediction_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 is_volatile 0 check_period 24x7 max_check_attempts 1 normal_check_interval 1 retry_check_interval 1 notification_options u,c,r,s notification_interval 15 notification_period test } Here is the output from Nagios' debug log. Tue Nov 16 13:57:28 2010 [1289933848.065697] [032.0] [pid=4359] ** Service Notification Attempt ** Host: 'dsmgtbal800', Service: 'TEST_SERVICE2', Type : 0, Options: 0, Current State: 2, Last Notification: Wed Dec 31 19:00:00 1969 Tue Nov 16 13:57:28 2010 [1289933848.065732] [032.1] [pid=4359] This service shouldn't have notifications sent out at this time. Tue Nov 16 13:57:28 2010 [1289933848.065747] [032.1] [pid=4359] Next possible notification time: Wed Nov 17 00:00:00 2010 Tue Nov 16 13:57:28 2010 [1289933848.065775] [032.0] [pid=4359] Notification viability test failed. No notification will be sent out. Tue Nov 16 13:58:28 2010 [1289933908.196211] [032.0] [pid=4359] ** Service Notification Attempt ** Host: 'dsmgtbal800', Service: 'TEST_SERVICE2', Type: 0, Options: 0, Current State: 2, Last Notification: Wed Dec 31 19:00:00 1969 Tue Nov 16 13:58:28 2010 [1289933908.196248] [032.1] [pid=4359] This service shouldn't have notifications sent out at this time. Tue Nov 16 13:58:28 2010 [1289933908.196262] [032.1] [pid=4359] Next possible notification time: Wed Nov 17 00:00:00 2010 Tue Nov 16 13:58:28 2010 [1289933908.196269] [032.0] [pid=4359] Notification viability test failed. No notification will be sent out. Tue Nov 16 13:59:28 2010 [1289933968.114925] [032.0] [pid=4359] ** Service Notification Attempt ** Host: 'dsmgtbal800', Service: 'TEST_SERVICE2', Type: 0, Options: 0, Current State: 2, Last Notification: Wed Dec 31 19:00:00 1969 Tue Nov 16 13:59:28 2010 [1289933968.114970] [032.1] [pid=4359] This service shouldn't have notifications sent out at this time. Tue Nov 16 13:59:28 2010 [1289933968.114985] [032.1] [pid=4359] Next possible notification time: Wed Nov 17 00:00:00 2010 Tue Nov 16 13:59:28 2010 [1289933968.114991] [032.0] [pid=4359] Notification viability test failed. No notification will be sent out. Tue Nov 16 14:00:28 2010 [1289934028.020298] [032.0] [pid=4359] ** Service Notification Attempt ** Host: 'dsmgtbal800', Service: 'TEST_SERVICE2', Type: 0, Options: 0, Current State: 2, Last Notification: Wed Dec 31 19:00:00 1969 Tue Nov 16 14:00:28 2010 [1289934028.020343] [032.1] [pid=4359] We haven't waited long enough to re-notify contacts about this service. Tue Nov 16 14:00:28 2010 [1289934028.020353] [032.1] [pid=4359] Next valid notification time: Wed Nov 17 00:00:00 2010 Tue Nov 16 14:00:28 2010 [1289934028.020359] [032.0] [pid=4359] Notification viability test failed. No notification will be sent out. Tue Nov 16 14:01:28 2010 [1289934088.188354] [032.0] [pid=4359] ** Service Notification Attempt ** Host: 'dsmgtbal800', Service: 'TEST_SERVICE2', Type: 0, Options: 0, Current State: 2, Last Notification: Wed Dec 31 19:00:00 1969 Tue Nov 16 14:01:28 2010 [1289934088.188397] [032.1] [pid=4359] We haven't waited long enough to re-notify contacts about this service. Tue Nov 16 14:01:28 2010 [1289934088.188407] [032.1] [pid=4359] Next valid notification time: Wed Nov 17 00:00:00 2010 Tue Nov 16 14:01:28 2010 [1289934088.188414] [032.0] [pid=4359] Notification viability test failed. No notification will be sent out. ________________________________ IMPORTANT: The information contained in this email and/or its attachments is confidential. If you are not the intended recipient, please notify the sender immediately by reply and immediately delete this message and all its attachments. Any review, use, reproduction, disclosure or dissemination of this message or any attachment by an unintended recipient is strictly prohibited. Neither this message nor any attachment is intended as or should be construed as an offer, solicitation or recommendation to buy or sell any security or other financial instrument. Neither the sender, his or her employer nor any of their respective affiliates makes any warranties as to the completeness or accuracy of any of the information contained herein or that this message or any of its attachments is free of viruses. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhall at iodatacenters.com Tue Nov 16 21:56:03 2010 From: jhall at iodatacenters.com (Hall, JC) Date: Tue, 16 Nov 2010 13:56:03 -0700 Subject: Notifications on passive service checks In-Reply-To: <4CDD2C51.2040600@op5.se> References: <57F018B226E004449B318DAF71A6014658D1C8ED23@IO-SCD-EX-M-01.corp.iodatacenters.com> <4CDD2C51.2040600@op5.se> Message-ID: <57F018B226E004449B318DAF71A6014658D1EA7719@IO-SCD-EX-M-01.corp.iodatacenters.com> After some testing, it looks like it will only re-notify after receiving another passive check result. It won't simply re-notify because it's still in a non-ok state after the notification_interval has expired. So to combat this I just used the check freshness attribute to re-execute my external script and feed the passive check result into nagios and thus re-sending a non-ok notification at what would have been the interval for notifications. So technically my external scripts are running at every interval to check the freshnes, not only when it's called for by my event_handler from another active service check... which I'm ok with. -----Original Message----- From: Andreas Ericsson [mailto:ae at op5.se] Sent: Friday, November 12, 2010 5:00 AM To: Nagios Users List Cc: Hall, JC Subject: Re: [Nagios-users] Notifications on passive service checks On 11/11/2010 11:27 PM, Hall, JC wrote: > Is it accurate that Nagios will only send 1 notification for a > passive service check? > > IE, the notification_interval definition for a passively checked > service won't instruct Nagios to re-send a notification such as with > actively checked services? > To be honest, I haven't got the faintest idea. An educated guess is that it will re-send the notification if it receives another passive check-result and enough time has passed though, or that it simply re-sends the notification when enough time has passed. If you try and find out, let me know either way and I'll amend the docs. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cbeattie at geninfo.com Tue Nov 16 21:59:38 2010 From: cbeattie at geninfo.com (Chris Beattie) Date: Tue, 16 Nov 2010 15:59:38 -0500 Subject: Nagios Core 3.2.3 host check retry interval Message-ID: I noticed something curious. It looks like Nagios 3.2.3 is making on-demand host checks faster than the retry_interval should allow. The interval_length is set to 60 and the retry_interval is set to 1. Nagios and the plugins were compiled from source on CentOS 5.5 x64. I'm not sure if this is related to Yu Watanabe's problem (http://www.mail-archive.com/nagios-users at lists.sourceforge.net/msg34042 .html) because I didn't start having it until after I upgraded to 3.2.3. Here are some alerts from October when I was running Nagios 3.2.1. There were service alerts too, but the host checks do not occur less than one minute from each other: -------------------------------------------------- [10-10-2010 06:41:29] HOST ALERT: wwwhost;UP;HARD;1;PING OK - Packet loss = 0%, RTA = 50.10 ms [10-10-2010 06:28:40] HOST ALERT: wwwhost;DOWN;HARD;3;PING CRITICAL - Packet loss = 100% [10-10-2010 06:27:29] HOST ALERT: wwwhost;DOWN;SOFT;2;PING CRITICAL - Packet loss = 100% [10-10-2010 06:26:19] HOST ALERT: wwwhost;DOWN;SOFT;1;PING CRITICAL - Packet loss = 100% -------------------------------------------------- Here's some from earlier this month, after I'd switched from check_ping to check_icmp. Again, there were service alerts, but the host checks are still about a minute apart: -------------------------------------------------- [11-07-2010 21:55:53] HOST ALERT: wwwhost;UP;SOFT;2;OK - 10.3.1.11: rta 4.480ms, lost 0% [11-07-2010 21:54:43] HOST ALERT: wwwhost;DOWN;SOFT;1;CRITICAL - 10.3.1.11: rta nan, lost 100% -------------------------------------------------- [11-09-2010 23:40:15] HOST ALERT: wwwhost;UP;SOFT;2;OK - 10.3.1.11: rta 1.018ms, lost 0% [11-09-2010 23:39:15] HOST ALERT: wwwhost;DOWN;SOFT;1;CRITICAL - 10.3.1.11: rta 650.987ms, lost 80% -------------------------------------------------- On November 12th, I upgraded to Nagios 3.2.3 and the 1.4.15 plugins, and got this later that evening. The host checks were only about 20 seconds apart: -------------------------------------------------- [11-12-2010 23:46:43] SERVICE ALERT: wwwhost;Counter: IIS Web Connections;OK;SOFT;2;Web Sessions: 2 [11-12-2010 23:45:14] HOST ALERT: wwwhost;UP;SOFT;2;OK - 10.3.1.11: rta 0.985ms, lost 0% [11-12-2010 23:44:53] HOST ALERT: wwwhost;DOWN;SOFT;1;CRITICAL - 10.3.1.11: rta 355.633ms, lost 80% [11-12-2010 23:44:44] SERVICE ALERT: wwwhost;Counter: IIS Web Connections;WARNING;SOFT;1;No data was received from host! -------------------------------------------------- Two days later, it looked like it was behaving properly: -------------------------------------------------- [11-14-2010 23:44:57] HOST ALERT: wwwhost;UP;SOFT;2;OK - 10.3.1.11: rta 1.338ms, lost 0% [11-14-2010 23:44:27] SERVICE ALERT: wwwhost;Service: Snare;CRITICAL;HARD;1;CRITICAL - Socket timeout after 10 seconds [11-14-2010 23:44:27] SERVICE ALERT: wwwhost;Service: RServer3;CRITICAL;HARD;1;CRITICAL - Socket timeout after 10 seconds [11-14-2010 23:43:34] HOST ALERT: wwwhost;DOWN;SOFT;1;CRITICAL - 10.3.1.11: rta 860.577ms, lost 80% [11-14-2010 23:43:22] SERVICE ALERT: wwwhost;Service: Epilog;CRITICAL;SOFT;1;CRITICAL - Socket timeout after 10 seconds -------------------------------------------------- [11-14-2010 08:56:55] HOST ALERT: wwwhost;UP;SOFT;2;OK - 10.3.1.11: rta 2.633ms, lost 0% [11-14-2010 08:55:45] HOST ALERT: wwwhost;DOWN;SOFT;1;CRITICAL - 10.3.1.11: rta 518.822ms, lost 80% [11-14-2010 08:55:36] SERVICE ALERT: wwwhost;Counter: IIS Web Connections;WARNING;SOFT;1;No data was received from host! -------------------------------------------------- Last night, however, the host got rechecked at short intervals: -------------------------------------------------- [11-15-2010 23:56:09] HOST ALERT: wwwhost;UP;SOFT;3;WARNING - 10.3.1.11: rta 89.448ms, lost 40% [11-15-2010 23:55:39] HOST ALERT: wwwhost;DOWN;SOFT;2;CRITICAL - 10.3.1.11: rta 984.594ms, lost 80% [11-15-2010 23:55:21] HOST ALERT: wwwhost;DOWN;SOFT;1;CRITICAL - 10.3.1.11: rta 738.100ms, lost 80% [11-15-2010 23:55:09] SERVICE ALERT: wwwhost;CPU;WARNING;SOFT;1;No data was received from host! [11-15-2010 23:54:00] HOST FLAPPING ALERT: wwwhost;STARTED; Host appears to have started flapping (23.0% change > 20.0% threshold) [11-15-2010 23:53:59] HOST ALERT: wwwhost;UP;HARD;1;WARNING - 10.3.1.11: rta 183.851ms, lost 60% [11-15-2010 23:53:29] HOST ALERT: wwwhost;DOWN;HARD;3;CRITICAL - 10.3.1.11: rta nan, lost 100% [11-15-2010 23:53:29] SERVICE ALERT: wwwhost;Counter: IIS Web Connections;CRITICAL;SOFT;2;CRITICAL - Socket timeout after 10 seconds [11-15-2010 23:53:09] HOST ALERT: wwwhost;DOWN;SOFT;2;CRITICAL - 10.3.1.11: rta 418.803ms, lost 80% [11-15-2010 23:52:49] HOST ALERT: wwwhost;DOWN;SOFT;1;CRITICAL - 10.3.1.11: rta 1618.861ms, lost 80% [11-15-2010 23:51:59] HOST ALERT: wwwhost;UP;SOFT;2;OK - 10.3.1.11: rta 0.893ms, lost 0% [11-15-2010 23:51:41] HOST ALERT: wwwhost;DOWN;SOFT;1;CRITICAL - 10.3.1.11: rta 724.543ms, lost 80% [11-15-2010 23:51:29] SERVICE ALERT: wwwhost;Counter: IIS Web Connections;CRITICAL;SOFT;1;CRITICAL - Socket timeout after 10 seconds Nothing in this message is intended to make or accept an 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From MarkL at lmfj.com Tue Nov 16 22:33:22 2010 From: MarkL at lmfj.com (Mark A. Lappin) Date: Tue, 16 Nov 2010 15:33:22 -0600 Subject: Macros in notes? In-Reply-To: References: <0227B653B3DC82438B8291BC5218612F671A0706F5@lmfjex07.lmfj.com> Message-ID: <0227B653B3DC82438B8291BC5218612F671A28EBD2@lmfjex07.lmfj.com> >> toner part number etc; routers nearest service center, circuit identifier, etc. Works great, hard to maintain. > Agreed. IMHO information like that shouldn't be kept in the Nagios config. A trick we've used a few times is to have a wiki installed, then have notes_url be http://wiki/$HOSTNAME$ Generally, I agree. I have the information in great detail on my intranet, including escalation contacts, methods, detailed troubleshooting guides but with me being the only IT person, and if I get a problem phone call I can generally walk somebody through checking something in Nagios for me and have them read the info to me right there is easier than having to send them through more hoops. Thankfully, my environment does not change that often though. > I'm pretty sure but haven't confirmed that all custom macro names are converted to uppercase. If that's done when defining custom > macros but not when referring to macros, $_HOSTprnMake$ should instead be $_HOSTPRNMAKE$. Let me know if that works. This seems to be the problem, I did not however try it with lower case definitions and uppercase usage, I just did everything uppercase, problem solved. ....The simple things right! Thank you for your help --Mark Mark A. Lappin, CCNA, MCITP: Enterprise Administrator | Lee Michaels Fine Jewelry Director of Information Technology 11314 Cloverland Ave | Baton Rouge, LA 70809 Ph: 225.291.9094 ext 245 | Fax: 225.368.3675 | Mobile: 225-362-2770 www.lmfj.com This communication is privileged and confidential. If you are not the intended recipient, please notify the sender by reply e-mail and destroy all copies of this communication . ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Tue Nov 16 22:43:32 2010 From: ae at op5.se (Andreas Ericsson) Date: Tue, 16 Nov 2010 22:43:32 +0100 Subject: Next possible notification time bug In-Reply-To: <26AD5A26C15C3948AEF795C346F7E9ED096B1989D6@msgbal518.ds.susq.com> References: <26AD5A26C15C3948AEF795C346F7E9ED096B1989D6@msgbal518.ds.susq.com> Message-ID: <4CE2FB04.6070905@op5.se> Please set your MUA to wrap long lines at something sensible (72 chars is the standard, I think). On 11/16/2010 09:44 PM, Chung, Jeff wrote: > Hi, Here is the problem I'm trying to solve. We have services that > have a set maintenance window, for example every Tuesday from 13:30 > to 14:00. So to stop Nagios from sending notifications during this > maintenance window I have created a time period that excludes > "tuesday 13:30-14:00" and use it as the notification_period for the > service. When testing this it seems like Nagios isn't correctly > picking the next available time to send notifications out. I have > configured a service called "TEST_SERVICE2" to return CRITICAL status > starting at 13:57:28 (which is during the maintenance window). In > Nagios' debug log it says "Next possible notification time: Wed Nov > 17 00:00:00 2010", but I think the next possible time should be Nov > 16 14:00 or soon after. Anyone else came across this issue? > exclude is a fairly new feature, which surprisingly few people use. I have no doubts there are bugs in it. Thanks for reporting this though. I should probably write up a test-case for it, but that'll have to wait til next time I'm fiddling with the Nagios sources. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Tue Nov 16 22:52:19 2010 From: ae at op5.se (Andreas Ericsson) Date: Tue, 16 Nov 2010 22:52:19 +0100 Subject: Nagios Core 3.2.3 host check retry interval In-Reply-To: References: Message-ID: <4CE2FD13.7080504@op5.se> On 11/16/2010 09:59 PM, Chris Beattie wrote: > I noticed something curious. It looks like Nagios 3.2.3 is making > on-demand host checks faster than the retry_interval should allow. The > interval_length is set to 60 and the retry_interval is set to 1. Nagios > and the plugins were compiled from source on CentOS 5.5 x64. > Very curious indeed. The only thing I can see that might trigger something like this is the following patch: http://git.op5.org/git/?p=nagios.git;a=commitdiff;h=1149d275011d7c4d8631b44dbba30ebdb4d7e83f That one was in 3.2.2 too though. Could you try un-commenting the lines mentioned there and see if that helps? I won't revert that patch, but it would give me a pretty good idea of where to start the bug-hunt. Thanks. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Tue Nov 16 22:56:04 2010 From: ae at op5.se (Andreas Ericsson) Date: Tue, 16 Nov 2010 22:56:04 +0100 Subject: Next possible notification time bug In-Reply-To: <4CE2FB04.6070905@op5.se> References: <26AD5A26C15C3948AEF795C346F7E9ED096B1989D6@msgbal518.ds.susq.com> <4CE2FB04.6070905@op5.se> Message-ID: <4CE2FDF4.80607@op5.se> On 11/16/2010 10:43 PM, Andreas Ericsson wrote: > Please set your MUA to wrap long lines at something sensible (72 chars > is the standard, I think). > > On 11/16/2010 09:44 PM, Chung, Jeff wrote: >> Hi, Here is the problem I'm trying to solve. We have services that >> have a set maintenance window, for example every Tuesday from 13:30 >> to 14:00. So to stop Nagios from sending notifications during this >> maintenance window I have created a time period that excludes >> "tuesday 13:30-14:00" and use it as the notification_period for the >> service. When testing this it seems like Nagios isn't correctly >> picking the next available time to send notifications out. I have >> configured a service called "TEST_SERVICE2" to return CRITICAL status >> starting at 13:57:28 (which is during the maintenance window). In >> Nagios' debug log it says "Next possible notification time: Wed Nov >> 17 00:00:00 2010", but I think the next possible time should be Nov >> 16 14:00 or soon after. Anyone else came across this issue? >> > > exclude is a fairly new feature, which surprisingly few people use. > I have no doubts there are bugs in it. Thanks for reporting this > though. I should probably write up a test-case for it, but that'll > have to wait til next time I'm fiddling with the Nagios sources. > On a side-note though; Does it work properly if you create your 'test' timeperiod like so: define timeperiod { use 24x7 timeperiod_name test alias Test timeperiod tuesday 00:00-13:30,14:00-24:00 } If it does, we'll know for sure that it's a bug with the 'exclude' directive. Thanks. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From alb.menichetti at tai.it Tue Nov 16 22:41:03 2010 From: alb.menichetti at tai.it (Alberto Menichetti) Date: Tue, 16 Nov 2010 22:41:03 +0100 Subject: Notifications on passive service checks In-Reply-To: <57F018B226E004449B318DAF71A6014658D1EA7719@IO-SCD-EX-M-01.corp.iodatacenters.com> References: <57F018B226E004449B318DAF71A6014658D1C8ED23@IO-SCD-EX-M-01.corp.iodatacenters.com> <4CDD2C51.2040600@op5.se> <57F018B226E004449B318DAF71A6014658D1EA7719@IO-SCD-EX-M-01.corp.iodatacenters.com> Message-ID: <4CE2FA6F.8000303@tai.it> Hi all, I noticed the same strange behavior, but I don't think it's the right behavior. Operating in this way, a linkDown trap will be notified only once (in fact the sender device will generate a single trap in response to state change). Is it possibile to modify this behavior? Hall, JC wrote: > After some testing, it looks like it will only re-notify after receiving another passive check result. It won't simply re-notify because it's still in a non-ok state after the notification_interval has expired. So to combat this I just used the check freshness attribute to re-execute my external script and feed the passive check result into nagios and thus re-sending a non-ok notification at what would have been the interval for notifications. > > So technically my external scripts are running at every interval to check the freshnes, not only when it's called for by my event_handler from another active service check... which I'm ok with. > > -----Original Message----- > From: Andreas Ericsson [mailto:ae at op5.se] > Sent: Friday, November 12, 2010 5:00 AM > To: Nagios Users List > Cc: Hall, JC > Subject: Re: [Nagios-users] Notifications on passive service checks > > On 11/11/2010 11:27 PM, Hall, JC wrote: > >> Is it accurate that Nagios will only send 1 notification for a >> passive service check? >> >> IE, the notification_interval definition for a passively checked >> service won't instruct Nagios to re-send a notification such as with >> actively checked services? >> >> > > To be honest, I haven't got the faintest idea. An educated guess is > that it will re-send the notification if it receives another passive > check-result and enough time has passed though, or that it simply > re-sends the notification when enough time has passed. > > If you try and find out, let me know either way and I'll amend the > docs. > > -- TAI S.r.l. Alberto Menichetti Area Mercato - Ingegneria dei Sistemi System Engineer 50141 Firenze - Via Pazzagli, 2 Voice: +39 055 42661 - Fax +39 055 4266356 56125 Pisa - Viale Gramsci, 12 Voice: +39 050 220221 - Fax: +39 050 24421 e-mail: alb.menichetti at tai.it http://www.tai.it ----------------------------------------------------------------------- COMUNICAZIONE AI SENSI LEGGE 196/03 Il presente messaggio di posta elettronica viene inviato al Vostro indirizzo email, che abbiamo acquisito da Vostre Visite, da incontri commerciali, elenchi di pubblico dominio, Vostre precedenti comunicazioni. Il Vostro dato in questione e' in possesso di TAI S.r.l., che lo ha immagazzinato in formato elettronico. Tali informazioni non saranno divulgate a terzi. Se desiderate verificare, cancellare o modificare i dati in nostro possesso, inviate fax al numero 0554266356. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Jeff.Chung at sig.com Tue Nov 16 23:24:19 2010 From: Jeff.Chung at sig.com (Chung, Jeff) Date: Tue, 16 Nov 2010 17:24:19 -0500 Subject: Next possible notification time bug In-Reply-To: <4CE2FDF4.80607@op5.se> References: <26AD5A26C15C3948AEF795C346F7E9ED096B1989D6@msgbal518.ds.susq.com> <4CE2FB04.6070905@op5.se> <4CE2FDF4.80607@op5.se> Message-ID: <26AD5A26C15C3948AEF795C346F7E9ED096B198A71@msgbal518.ds.susq.com> Not using exclude works perfectly. -----Original Message----- From: Andreas Ericsson [mailto:ae at op5.se] Sent: Tuesday, November 16, 2010 4:56 PM To: Nagios Users List Cc: Chung, Jeff Subject: Re: [Nagios-users] Next possible notification time bug On 11/16/2010 10:43 PM, Andreas Ericsson wrote: > Please set your MUA to wrap long lines at something sensible (72 chars > is the standard, I think). > > On 11/16/2010 09:44 PM, Chung, Jeff wrote: >> Hi, Here is the problem I'm trying to solve. We have services that >> have a set maintenance window, for example every Tuesday from 13:30 >> to 14:00. So to stop Nagios from sending notifications during this >> maintenance window I have created a time period that excludes >> "tuesday 13:30-14:00" and use it as the notification_period for the >> service. When testing this it seems like Nagios isn't correctly >> picking the next available time to send notifications out. I have >> configured a service called "TEST_SERVICE2" to return CRITICAL status >> starting at 13:57:28 (which is during the maintenance window). In >> Nagios' debug log it says "Next possible notification time: Wed Nov >> 17 00:00:00 2010", but I think the next possible time should be Nov >> 16 14:00 or soon after. Anyone else came across this issue? >> > > exclude is a fairly new feature, which surprisingly few people use. > I have no doubts there are bugs in it. Thanks for reporting this > though. I should probably write up a test-case for it, but that'll > have to wait til next time I'm fiddling with the Nagios sources. > On a side-note though; Does it work properly if you create your 'test' timeperiod like so: define timeperiod { use 24x7 timeperiod_name test alias Test timeperiod tuesday 00:00-13:30,14:00-24:00 } If it does, we'll know for sure that it's a bug with the 'exclude' directive. Thanks. -- Andreas Ericsson andreas.ericsson at 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. IMPORTANT: The information contained in this email and/or its attachments is confidential. If you are not the intended recipient, please notify the sender immediately by reply and immediately delete this message and all its attachments. Any review, use, reproduction, disclosure or dissemination of this message or any attachment by an unintended recipient is strictly prohibited. Neither this message nor any attachment is intended as or should be construed as an offer, solicitation or recommendation to buy or sell any security or other financial instrument. Neither the sender, his or her employer nor any of their respective affiliates makes any warranties as to the completeness or accuracy of any of the information contained herein or that this message or any of its attachments is free of vi ruses. ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From maxs at webwizarddesign.com Tue Nov 16 23:32:03 2010 From: maxs at webwizarddesign.com (Max Schubert) Date: Tue, 16 Nov 2010 17:32:03 -0500 Subject: Notifications on passive service checks In-Reply-To: <4CE2FA6F.8000303@tai.it> References: <57F018B226E004449B318DAF71A6014658D1C8ED23@IO-SCD-EX-M-01.corp.iodatacenters.com> <4CDD2C51.2040600@op5.se> <57F018B226E004449B318DAF71A6014658D1EA7719@IO-SCD-EX-M-01.corp.iodatacenters.com> <4CE2FA6F.8000303@tai.it> Message-ID: Escalations can resolve this - if you set an escalation to trigger at notification 1 and set a re-notify interval in the escalation you will be re-notified at the set interval while the service remains in the configured alarm state. - Max On Tue, Nov 16, 2010 at 4:41 PM, Alberto Menichetti wrote: > Hi all, > > I noticed the same strange behavior, but I don't think it's the right > behavior. > Operating in this way, a linkDown trap will be notified only once (in fact > the sender device will generate a single trap in response to state change). > Is it possibile to modify this behavior? > > > > Hall, JC wrote: > > After some testing, it looks like it will only re-notify after receiving > another passive check result. It won't simply re-notify because it's still > in a non-ok state after the notification_interval has expired. So to combat > this I just used the check freshness attribute to re-execute my external > script and feed the passive check result into nagios and thus re-sending a > non-ok notification at what would have been the interval for notifications. > > So technically my external scripts are running at every interval to check > the freshnes, not only when it's called for by my event_handler from another > active service check... which I'm ok with. > > -----Original Message----- > From: Andreas Ericsson [mailto:ae at op5.se] > Sent: Friday, November 12, 2010 5:00 AM > To: Nagios Users List > Cc: Hall, JC > Subject: Re: [Nagios-users] Notifications on passive service checks > > On 11/11/2010 11:27 PM, Hall, JC wrote: > > > Is it accurate that Nagios will only send 1 notification for a > passive service check? > > IE, the notification_interval definition for a passively checked > service won't instruct Nagios to re-send a notification such as with > actively checked services? > > > > To be honest, I haven't got the faintest idea. An educated guess is > that it will re-send the notification if it receives another passive > check-result and enough time has passed though, or that it simply > re-sends the notification when enough time has passed. > > If you try and find out, let me know either way and I'll amend the > docs. > > > > -- > TAI S.r.l. > > Alberto Menichetti > Area Mercato - Ingegneria dei Sistemi > System Engineer > > 50141 Firenze - Via Pazzagli, 2 > Voice: +39 055 42661 - Fax +39 055 4266356 > 56125 Pisa - Viale Gramsci, 12 > Voice: +39 050 220221 - Fax: +39 050 24421 > > e-mail: alb.menichetti at tai.it > http://www.tai.it > > ----------------------------------------------------------------------- > COMUNICAZIONE AI SENSI LEGGE 196/03 > Il presente messaggio di posta elettronica viene inviato al Vostro indirizzo > email, che abbiamo acquisito da Vostre Visite, da incontri commerciali, > elenchi di pubblico dominio, Vostre precedenti comunicazioni. Il Vostro dato > in questione e' in possesso di TAI S.r.l., che lo ha immagazzinato in > formato elettronico. Tali informazioni non saranno divulgate a terzi. Se > desiderate verificare, cancellare o modificare i dati in nostro possesso, > inviate fax al numero 0554266356. > > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ?ECMAScript5, and DOM L2 & L3. > Spend less time writing and ?rewriting code and more time creating great > experiences on the web. Be a part of the beta today > http://p.sf.net/sfu/msIE9-sfdev2dev > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mmelin at gmail.com Tue Nov 16 23:59:18 2010 From: mmelin at gmail.com (Martin Melin) Date: Tue, 16 Nov 2010 23:59:18 +0100 Subject: Notifications on passive service checks In-Reply-To: <4CE2FA6F.8000303@tai.it> References: <57F018B226E004449B318DAF71A6014658D1C8ED23@IO-SCD-EX-M-01.corp.iodatacenters.com> <4CDD2C51.2040600@op5.se> <57F018B226E004449B318DAF71A6014658D1EA7719@IO-SCD-EX-M-01.corp.iodatacenters.com> <4CE2FA6F.8000303@tai.it> Message-ID: Just use the built in feature for this: is_volatile. See http://nagios.sourceforge.net/docs/2_0/volatileservices.html Regards, Martin Melin On Tue, Nov 16, 2010 at 10:41 PM, Alberto Menichetti wrote: > Hi all, > > I noticed the same strange behavior, but I don't think it's the right > behavior. > Operating in this way, a linkDown trap will be notified only once (in fact > the sender device will generate a single trap in response to state change). > Is it possibile to modify this behavior? > > > > Hall, JC wrote: > > After some testing, it looks like it will only re-notify after receiving > another passive check result. It won't simply re-notify because it's still > in a non-ok state after the notification_interval has expired. So to combat > this I just used the check freshness attribute to re-execute my external > script and feed the passive check result into nagios and thus re-sending a > non-ok notification at what would have been the interval for notifications. > > So technically my external scripts are running at every interval to check > the freshnes, not only when it's called for by my event_handler from another > active service check... which I'm ok with. > > -----Original Message----- > From: Andreas Ericsson [mailto:ae at op5.se] > Sent: Friday, November 12, 2010 5:00 AM > To: Nagios Users List > Cc: Hall, JC > Subject: Re: [Nagios-users] Notifications on passive service checks > > On 11/11/2010 11:27 PM, Hall, JC wrote: > > > Is it accurate that Nagios will only send 1 notification for a > passive service check? > > IE, the notification_interval definition for a passively checked > service won't instruct Nagios to re-send a notification such as with > actively checked services? > > > > To be honest, I haven't got the faintest idea. An educated guess is > that it will re-send the notification if it receives another passive > check-result and enough time has passed though, or that it simply > re-sends the notification when enough time has passed. > > If you try and find out, let me know either way and I'll amend the > docs. > > > > -- > TAI S.r.l. > > Alberto Menichetti > Area Mercato - Ingegneria dei Sistemi > System Engineer > > 50141 Firenze - Via Pazzagli, 2 > Voice: +39 055 42661 - Fax +39 055 4266356 > 56125 Pisa - Viale Gramsci, 12 > Voice: +39 050 220221 - Fax: +39 050 24421 > > e-mail: alb.menichetti at tai.it > http://www.tai.it > > ----------------------------------------------------------------------- > COMUNICAZIONE AI SENSI LEGGE 196/03 > Il presente messaggio di posta elettronica viene inviato al Vostro indirizzo > email, che abbiamo acquisito da Vostre Visite, da incontri commerciali, > elenchi di pubblico dominio, Vostre precedenti comunicazioni. Il Vostro dato > in questione e' in possesso di TAI S.r.l., che lo ha immagazzinato in > formato elettronico. Tali informazioni non saranno divulgate a terzi. Se > desiderate verificare, cancellare o modificare i dati in nostro possesso, > inviate fax al numero 0554266356. > > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ?ECMAScript5, and DOM L2 & L3. > Spend less time writing and ?rewriting code and more time creating great > experiences on the web. Be a part of the beta today > http://p.sf.net/sfu/msIE9-sfdev2dev > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From alb.menichetti at tai.it Wed Nov 17 00:38:58 2010 From: alb.menichetti at tai.it (Alberto Menichetti) Date: Wed, 17 Nov 2010 00:38:58 +0100 Subject: Notifications on passive service checks In-Reply-To: References: <57F018B226E004449B318DAF71A6014658D1C8ED23@IO-SCD-EX-M-01.corp.iodatacenters.com> <4CDD2C51.2040600@op5.se> <57F018B226E004449B318DAF71A6014658D1EA7719@IO-SCD-EX-M-01.corp.iodatacenters.com> <4CE2FA6F.8000303@tai.it> Message-ID: <4CE31612.4020703@tai.it> In my opinion it'useless in this scenario; the official doc says: Volatile services differ from "normal" services in three important ways. */Each time/ they are checked* when they are in a hard non-OK state, and the check returns a non-OK state (i.e. no state change has occurred)... But in my setup passive services are never checked (they are trap collectors, and my devices send traps on state change). Let's suppose this scenario: 1. interface Gi0/1 on catalyst switch goes down 2. the switch sends a linkDown trap to the manager 3. the manager decodes the event and submits the alert via nagios.cmd 4. the service associated with that switch changes it's state to critical 5. the contacts are notified (the first time) 6. that's all...contacts will never be notified again until a new linkDown trap is processed Martin Melin wrote: > Just use the built in feature for this: is_volatile. > > See http://nagios.sourceforge.net/docs/2_0/volatileservices.html > > Regards, > Martin Melin > > On Tue, Nov 16, 2010 at 10:41 PM, Alberto Menichetti > wrote: > >> Hi all, >> >> I noticed the same strange behavior, but I don't think it's the right >> behavior. >> Operating in this way, a linkDown trap will be notified only once (in fact >> the sender device will generate a single trap in response to state change). >> Is it possibile to modify this behavior? >> >> >> >> Hall, JC wrote: >> >> After some testing, it looks like it will only re-notify after receiving >> another passive check result. It won't simply re-notify because it's still >> in a non-ok state after the notification_interval has expired. So to combat >> this I just used the check freshness attribute to re-execute my external >> script and feed the passive check result into nagios and thus re-sending a >> non-ok notification at what would have been the interval for notifications. >> >> So technically my external scripts are running at every interval to check >> the freshnes, not only when it's called for by my event_handler from another >> active service check... which I'm ok with. >> >> -----Original Message----- >> From: Andreas Ericsson [mailto:ae at op5.se] >> Sent: Friday, November 12, 2010 5:00 AM >> To: Nagios Users List >> Cc: Hall, JC >> Subject: Re: [Nagios-users] Notifications on passive service checks >> >> On 11/11/2010 11:27 PM, Hall, JC wrote: >> >> >> Is it accurate that Nagios will only send 1 notification for a >> passive service check? >> >> IE, the notification_interval definition for a passively checked >> service won't instruct Nagios to re-send a notification such as with >> actively checked services? >> >> >> >> To be honest, I haven't got the faintest idea. An educated guess is >> that it will re-send the notification if it receives another passive >> check-result and enough time has passed though, or that it simply >> re-sends the notification when enough time has passed. >> >> If you try and find out, let me know either way and I'll amend the >> docs. >> >> >> >> -- >> TAI S.r.l. >> >> Alberto Menichetti >> Area Mercato - Ingegneria dei Sistemi >> System Engineer >> >> 50141 Firenze - Via Pazzagli, 2 >> Voice: +39 055 42661 - Fax +39 055 4266356 >> 56125 Pisa - Viale Gramsci, 12 >> Voice: +39 050 220221 - Fax: +39 050 24421 >> >> e-mail: alb.menichetti at tai.it >> http://www.tai.it >> >> ----------------------------------------------------------------------- >> COMUNICAZIONE AI SENSI LEGGE 196/03 >> Il presente messaggio di posta elettronica viene inviato al Vostro indirizzo >> email, che abbiamo acquisito da Vostre Visite, da incontri commerciali, >> elenchi di pubblico dominio, Vostre precedenti comunicazioni. Il Vostro dato >> in questione e' in possesso di TAI S.r.l., che lo ha immagazzinato in >> formato elettronico. Tali informazioni non saranno divulgate a terzi. Se >> desiderate verificare, cancellare o modificare i dati in nostro possesso, >> inviate fax al numero 0554266356. >> >> >> ------------------------------------------------------------------------------ >> Beautiful is writing same markup. Internet Explorer 9 supports >> standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. >> Spend less time writing and rewriting code and more time creating great >> experiences on the web. Be a part of the beta today >> http://p.sf.net/sfu/msIE9-sfdev2dev >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when reporting >> any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> >> > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today > http://p.sf.net/sfu/msIE9-sfdev2dev > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > -- TAI S.r.l. Alberto Menichetti Area Mercato - Ingegneria dei Sistemi System Engineer 50141 Firenze - Via Pazzagli, 2 Voice: +39 055 42661 - Fax +39 055 4266356 56125 Pisa - Viale Gramsci, 12 Voice: +39 050 220221 - Fax: +39 050 24421 e-mail: alb.menichetti at tai.it http://www.tai.it ----------------------------------------------------------------------- COMUNICAZIONE AI SENSI LEGGE 196/03 Il presente messaggio di posta elettronica viene inviato al Vostro indirizzo email, che abbiamo acquisito da Vostre Visite, da incontri commerciali, elenchi di pubblico dominio, Vostre precedenti comunicazioni. Il Vostro dato in questione e' in possesso di TAI S.r.l., che lo ha immagazzinato in formato elettronico. Tali informazioni non saranno divulgate a terzi. Se desiderate verificare, cancellare o modificare i dati in nostro possesso, inviate fax al numero 0554266356. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From danieljlaird at hotmail.com Wed Nov 17 15:49:12 2010 From: danieljlaird at hotmail.com (Daniel Laird) Date: Wed, 17 Nov 2010 14:49:12 +0000 Subject: Checking Clients Online before other checks Message-ID: All, I am new to nagios and am trying something I suspect has been done before - but I am struggling and was wondering if you can help? I have a server that is online 24x7 I haev a group of machines (upto 50) that are on and offline (desktop machines) I want to have the server check if a client is online (ping will do for now) If the ping is successful I want to run a number of checks (apt, disks, load etc) If the ping is unsuccessful I don't want any errors at all - as this is perfectly possible. I have created a HostGroup with all my desktop machines I have also created a service group of the checks I want to run once a host is determined as being there. I know I can make the service group dependent on the ping test. Can anyone give me any hints as to what I have to do next and how I make sure that if a ping fails I dont get an error at all? Cheers Dan ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cbeattie at geninfo.com Wed Nov 17 15:55:19 2010 From: cbeattie at geninfo.com (Chris Beattie) Date: Wed, 17 Nov 2010 09:55:19 -0500 Subject: Nagios Core 3.2.3 host check retry interval In-Reply-To: <4CE2FD13.7080504@op5.se> References: <4CE2FD13.7080504@op5.se> Message-ID: <1290005719.26830.12.camel@DevNagios.geninfo.com> On Tue, 2010-11-16 at 22:52 +0100, Andreas Ericsson wrote: > http://git.op5.org/git/?p=nagios.git;a=commitdiff;h=1149d275011d7c4d8631b44dbba30ebdb4d7e83f > > That one was in 3.2.2 too though. Could you try un-commenting the lines > mentioned there and see if that helps? I won't revert that patch, but it Thanks for the help. So I can make sure I've correctly done what you asked, this is what I did. I removed lines 1415 and 1419 below from checks.c, then did a make clean, make all, make install, and restarted Nagios. 1414:/* Below removed 08/04/2010 EG - http://tracker.nagios.org/view.php?id=128 */ 1415-/* 1416-temp_service->state_type=HARD_STATE; 1417-temp_service->last_hard_state=temp_service->current_state; 1418-temp_service->current_attempt=1; 1419-*/ If that's right, I'll keep an eye on the frequency of our host alerts and see what happens. Nothing in this message is intended to make or accept an 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. ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Luis.Carneiro at compsisnet.com.br Wed Nov 17 16:09:11 2010 From: Luis.Carneiro at compsisnet.com.br (=?iso-8859-1?Q?Luis_Gustavo_de_Andrade_Jord=E3o_Carneiro?=) Date: Wed, 17 Nov 2010 13:09:11 -0200 Subject: help check_svn Message-ID: <6E3EBE71CB62274F8EB78338A6CDD9750207ADBF873C@ADEXC07A.intranet.local> Hello People!! Can you help me? I installed plugin check_svn in my Nagios 3.0.3. When I run check_svn using prompt, that's work. But Nagios running with Nagios, not. nagiosql:~# su - nagios nagios at nagiosql:/usr/local/nagios/libexec$ ./check_svn -H 10.0.0.33 --https -U lcarneiro -P xxxx --dir /svn/aocsw_config SVN OK: svn repository online - directory listing successful But, when Service Nagios run, not work. See: SVN CRITICAL: Error connecting to svn server - OPTIONS of 'https://svnaero/svn/aocsw_desenv': Server certificate verification failed: issuer is not trusted (https://svnaero) Commands.cfg: $USER1$/check_svn -H $HOSTADDRESS$ --https -U $ARG1$ -P $ARG2$ --dir $ARG3$ Service: $ARG1$ lcarneiro $ARG2$ xxxxxx $ARG2$/svn/aocsw_desenv check_command check_svn!lcarneiro!xxxxx!/svn/aocsw_desenv I already accept certificate permanent (p) using svn info . Luis Gustavo de A. J. Carneiro -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Nov 17 16:14:15 2010 From: ae at op5.se (Andreas Ericsson) Date: Wed, 17 Nov 2010 16:14:15 +0100 Subject: Nagios Core 3.2.3 host check retry interval In-Reply-To: <1290005719.26830.12.camel@DevNagios.geninfo.com> References: <4CE2FD13.7080504@op5.se> <1290005719.26830.12.camel@DevNagios.geninfo.com> Message-ID: <4CE3F147.8040209@op5.se> On 11/17/2010 03:55 PM, Chris Beattie wrote: > > On Tue, 2010-11-16 at 22:52 +0100, Andreas Ericsson wrote: > >> http://git.op5.org/git/?p=nagios.git;a=commitdiff;h=1149d275011d7c4d8631b44dbba30ebdb4d7e83f >> >> That one was in 3.2.2 too though. Could you try un-commenting the lines >> mentioned there and see if that helps? I won't revert that patch, but it > > Thanks for the help. So I can make sure I've correctly done what you > asked, this is what I did. I removed lines 1415 and 1419 below from > checks.c, then did a make clean, make all, make install, and restarted > Nagios. > That sounds about right, yes. > 1414:/* Below removed 08/04/2010 EG - > http://tracker.nagios.org/view.php?id=128 */ > 1415-/* > 1416-temp_service->state_type=HARD_STATE; > 1417-temp_service->last_hard_state=temp_service->current_state; > 1418-temp_service->current_attempt=1; > 1419-*/ > > If that's right, I'll keep an eye on the frequency of our host alerts > and see what happens. > Neat. Thanks. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From CMacleod at edrington.co.uk Wed Nov 17 16:04:21 2010 From: CMacleod at edrington.co.uk (Macleod, Chris) Date: Wed, 17 Nov 2010 15:04:21 -0000 Subject: Checking Clients Online before other checks In-Reply-To: References: Message-ID: Hello, You need to configure service dependencies like below. } define servicedependency { dependent_host_name server1 dependent_service_description CPU Usage,DNS Server,Drive C: Disk Usage,Drive D: Disk Usage,IIS Web Server,Logon Errors,Memory Usage,Page File Usage,Server Work Queues,SQL Server,Uptime host_name TAISQL1 service_description Ping inherits_parent 1 execution_failure_criteria w,u,c notification_failure_criteria w,u,c dependency_period 24x7 } I create one for each host this way if ping fails the other services will be checked but no alerts will be generated. Thanks Chris -----Original Message----- From: Daniel Laird [mailto:danieljlaird at hotmail.com] Sent: 17 November 2010 14:49 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Checking Clients Online before other checks All, I am new to nagios and am trying something I suspect has been done before - but I am struggling and was wondering if you can help? I have a server that is online 24x7 I haev a group of machines (upto 50) that are on and offline (desktop machines) I want to have the server check if a client is online (ping will do for now) If the ping is successful I want to run a number of checks (apt, disks, load etc) If the ping is unsuccessful I don't want any errors at all - as this is perfectly possible. I have created a HostGroup with all my desktop machines I have also created a service group of the checks I want to run once a host is determined as being there. I know I can make the service group dependent on the ping test. Can anyone give me any hints as to what I have to do next and how I make sure that if a ping fails I dont get an error at all? Cheers Dan ------------------------------------------------------------------------ ------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ________________________________________________________________________ This e-mail has been scanned for all viruses by MessageLabs. TEG-IN ________________________________________________________________________ This e-mail has been scanned for all viruses by Message Labs. Please enjoy our brands responsibly. www.drinkaware.co.uk The Edrington Group is a private limited company registered in Scotland (Registered Number SC 36374) with its Registered Office at 2500 Great Western Road, Glasgow, G15 6RW. ________________________________________________________________________ ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From p6411 at hotmail.com Wed Nov 17 17:29:33 2010 From: p6411 at hotmail.com (Paul Paul) Date: Wed, 17 Nov 2010 17:29:33 +0100 Subject: (no subject) Message-ID: http://studioview.com.br/this.php -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Luis.Carneiro at compsisnet.com.br Wed Nov 17 18:11:51 2010 From: Luis.Carneiro at compsisnet.com.br (=?Windows-1252?Q?Luis_Gustavo_de_Andrade_Jord=E3o_Carneiro?=) Date: Wed, 17 Nov 2010 15:11:51 -0200 Subject: RES: help check_svn In-Reply-To: <6E3EBE71CB62274F8EB78338A6CDD9750207ADBF873C@ADEXC07A.intranet.local> References: <6E3EBE71CB62274F8EB78338A6CDD9750207ADBF873C@ADEXC07A.intranet.local> Message-ID: <6E3EBE71CB62274F8EB78338A6CDD9750207ADC3B1D6@ADEXC07A.intranet.local> How can i know which USER run check_svn? I think this could be the problem, because i need to accept certificate to user that run check_svn. Tks! Luis Gustavo ________________________________________ De: Luis Gustavo de Andrade Jord?o Carneiro [Luis.Carneiro at compsisnet.com.br] Enviado: quarta-feira, 17 de novembro de 2010 13:09 Para: 'nagios-users at lists.sourceforge.net' Assunto: [Nagios-users] help check_svn Hello People!! Can you help me? I installed plugin check_svn in my Nagios 3.0.3. When I run check_svn using prompt, that?s work. But Nagios running with Nagios, not. nagiosql:~# su - nagios nagios at nagiosql:/usr/local/nagios/libexec$ ./check_svn -H 10.0.0.33 --https -U lcarneiro -P xxxx --dir /svn/aocsw_config SVN OK: svn repository online - directory listing successful But, when Service Nagios run, not work. See: SVN CRITICAL: Error connecting to svn server - OPTIONS of 'https://svnaero/svn/aocsw_desenv': Server certificate verification failed: issuer is not trusted (https://svnaero) Commands.cfg: $USER1$/check_svn -H $HOSTADDRESS$ --https -U $ARG1$ -P $ARG2$ --dir $ARG3$ Service: $ARG1$ lcarneiro $ARG2$ xxxxxx $ARG2$/svn/aocsw_desenv check_command check_svn!lcarneiro!xxxxx!/svn/aocsw_desenv I already accept certificate permanent (p) using svn info . Luis Gustavo de A. J. Carneiro ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ray at ganymede.org Wed Nov 17 18:42:59 2010 From: ray at ganymede.org (Ray Kiddy) Date: Wed, 17 Nov 2010 09:42:59 -0800 Subject: can log show actual command executed? Message-ID: <3FB3E3CF-3F8A-47E7-94AB-F920F9E29EE7@ganymede.org> I am having a problem figuring out see what is actually being executed from a service. Is there a way to get the nagios log to contain the actual command being executed? This is what I am seeing in the Nagios.log file: [1290013792] SERVICE ALERT: myhost.com;Special App;CRITICAL;SOFT;1;(Service Check Timed Out) This is what I see in the nagios.dat file: check_command=check_http!/myURL!alive So, this shows me what the command string is in the service.cfg. I cannot see, though, what the actual command line is at this moment in time. It turns out that this check_command corresponds (I think) to: check_http -u /myURL -s alive How would I know this, though, if the command definition had been changed or if it is using, because of a mis-spelling, a command I do not think it is using? If I go into the command.cfg and switch the order of parameters, for example, I see nothing in these logs that tells me what is doing what. I know the simplest answer is "You should not do that." But my point is that the log file does not have enough information to tell me what happened at a past moment of time. I would need the log information _and_ the state of the command definitions at that time. If a log does not show you what happened in the past, what is its purpose? I am having a problem with a particular web application. For some reason I put in the check and it fails. I execute the check_http that I _think_ this service is doing, and it gives me an OK. I ended up creating a custom executable that calls curl and fetches against the same URL and this now works fine. Kind of lame, though. I use check_http in about 100 other services. So, why is this one single service not working? An obvious answer is that I am not calling the command in the way I think I am. But if I look in the log to see what the service did, I can see what I _think_ it did based on what I can see in what I _think_ is the correct command definition. But I really do not know. I do not see a line like "check_http -u /myURL -s alive" in the log, so, I cannot see if I am mis-reading thi ngs. Any suggestions? - ray ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lomiz.mail at gmail.com Wed Nov 17 19:49:22 2010 From: lomiz.mail at gmail.com (Enrico Zimol) Date: Wed, 17 Nov 2010 19:49:22 +0100 Subject: (no subject) In-Reply-To: References: Message-ID: On 17 November 2010 17:29, Paul Paul wrote: > http://studioview.com.br/this.php > Malware, ban him please ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc.m.pascual at gmail.com Wed Nov 17 20:11:57 2010 From: marc.m.pascual at gmail.com (marc pascual) Date: Thu, 18 Nov 2010 03:11:57 +0800 Subject: too much passive check status coming in In-Reply-To: References: Message-ID: Hello, I have too much passive checks coming in (12*880) to the point that some aren't getting processed by nagios. Now I've decided to rewrite the plugins so that it will only report state changes via nsca. (OK-to-CRIT and CRIT-to-OK). The problem I see with this move is that, if something temporarily hampers an nsca communication (e.g. transient high load, or temporary network blip), then there's no guaranteed way for nagios to know the real state of the service on the next check cycle. I wonder if anyone out there has implemented their checks similar to this, and what solutions or workarounds were implemented to make sure that nagios will eventually get updated with the correct states. Thank you, Marc -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Nov 17 20:27:26 2010 From: ae at op5.se (Andreas Ericsson) Date: Wed, 17 Nov 2010 20:27:26 +0100 Subject: too much passive check status coming in In-Reply-To: References: Message-ID: <4CE42C9E.6060909@op5.se> On 11/17/2010 08:11 PM, marc pascual wrote: > Hello, > > I have too much passive checks coming in (12*880) to the point that some > aren't getting processed by nagios. Now I've decided to rewrite the plugins > so that it will only report state changes via nsca. (OK-to-CRIT and > CRIT-to-OK). The problem I see with this move is that, if something > temporarily hampers an nsca communication (e.g. transient high load, or > temporary network blip), then there's no guaranteed way for nagios to know > the real state of the service on the next check cycle. I wonder if anyone > out there has implemented their checks similar to this, and what solutions > or workarounds were implemented to make sure that nagios will eventually get > updated with the correct states. > You want freshness checks. Browse the nagios documentation for it and you'll find what you're looking for. Welcome to the list btw. It seems things finally worked out for you. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc.m.pascual at gmail.com Thu Nov 18 03:11:59 2010 From: marc.m.pascual at gmail.com (marc pascual) Date: Thu, 18 Nov 2010 10:11:59 +0800 Subject: too much passive check status coming in In-Reply-To: <4CE42C9E.6060909@op5.se> References: <4CE42C9E.6060909@op5.se> Message-ID: On Thu, Nov 18, 2010 at 3:27 AM, Andreas Ericsson wrote: > On 11/17/2010 08:11 PM, marc pascual wrote: > > Hello, > > > > I have too much passive checks coming in (12*880) to the point that some > > aren't getting processed by nagios. Now I've decided to rewrite the > plugins > > so that it will only report state changes via nsca. (OK-to-CRIT and > > CRIT-to-OK). The problem I see with this move is that, if something > > temporarily hampers an nsca communication (e.g. transient high load, or > > temporary network blip), then there's no guaranteed way for nagios to > know > > the real state of the service on the next check cycle. I wonder if anyone > > out there has implemented their checks similar to this, and what > solutions > > or workarounds were implemented to make sure that nagios will eventually > get > > updated with the correct states. > > > > You want freshness checks. Browse the nagios documentation for it and > you'll > find what you're looking for. > > Welcome to the list btw. It seems things finally worked out for you. > > > But freshness checks imply that checks should be coming in at a regular interval (unless I'm mistaken). In this case, I don't have an idea when the next check result will come as I'm only sending results on state changes. (Thanks for the help earlier/yesterday, I had to re-resubscribe my email address "with the dots" in it) Marc -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jwiggins at salon.com Thu Nov 18 04:05:36 2010 From: jwiggins at salon.com (Jonathan Wiggins) Date: Wed, 17 Nov 2010 19:05:36 -0800 Subject: "No Route to Host" error - ssh-key exchange issue even if plugin checks work? In-Reply-To: <4CDCCC0B.3020003@hp.com> References: <27D494A2-099E-404A-AE08-67BA2F6C0A84@salon.com> <4F3AB9EB-5CE7-4CA0-995F-B013CBF8129B@salon.com> <4CDCCC0B.3020003@hp.com> Message-ID: <8EA316A5-68B7-46C3-B1E8-6F20D19F76C4@salon.com> On Nov 11, 2010, at 9:09 PM, Morris, Patrick wrote: > On 11/11/2010 11:46 AM, Jonathan Wiggins wrote: >> >>> 'No Route To Host' is not a nagios error message but is coming from >>> your operating system. Based on that and the above information, I'd >>> say that the 'Home Page' check is being told to check a different, >>> invalid, host name or address than the ping check. >>> >>> Please post the host{}, service{} and command{} definition related to >>> the 'Home Page' check if that's not enough to get you on the right >>> path so we can take a look at it. >> >> what you say above makes total sense, except that I can't find a "home >> page" check anywhere on the system. I can locate the check_ping, >> check_http, check_host_alive.. but they dont reference anything by >> host name or IP for that matter: >> > > Try something like "grep -R 'Home Page' /usr/local/magios/etc; grep -R > 'Home Page' /etc/nagios. It's on the system somewhere, and once you > find it you may have your answer. Without any information about how it's > set up, it's impossible to say with any certainty why it's breaking. > Hey Patrick, thanks for replying. I had seen the "Home Page" in the snippet of the .cfg below -- but guess I glossed over it. in the individual .cfg file for this server in question this exists: define host{ use linux-server ; Inherit default values from a template host_name mywebbox ; The name we're giving to this server alias mywebbox ; A longer name for the server address 10.0.100.143 ; IP address of the server } define service{ use generic-service host_name mywebbox service_description Home Page check_command check_http!ww2 } the IP listed above is correct for the host. But again, no reference to an IP defined in the commands below 'check-host-alive' command definition define command{ command_name check-host-alive command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 5 'check_ping' command definition define command{ command_name check_ping command_line $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5 # 'check_http' command definition define command{ command_name check_http command_line $USER1$/check_http -I $HOSTADDRESS$ $ARG1$ } what is weird though.. i ran this plugin check again, for grins n giggles: /usr/local/nagios/libexec/check_tcp -H 10.0.100.143 -p 5666 TCP OK - 0.002 second response time on port 5666|time=0.001501s;0.000000;0.000000;0.000000;10.000000 but when i hop onto the monitored node, and run this: grep nrpe /var/log/messages Nov 17 18:41:35 mywebbox xinetd[9523]: START: nrpe pid=24837 from=10.0.100.130 Nov 17 18:41:35 mywebbox nrpe[24837]: Error: Could not complete SSL handshake. 5 Nov 17 18:41:35 mywebbox xinetd[9523]: EXIT: nrpe status=0 pid=24837 duration=0(sec) you can see that its failing the SSL handshake. But... I went and tested SSH key exchange b/t both hosts, and it works perfectly. Any help is greatly appreciated. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Thu Nov 18 09:40:13 2010 From: ae at op5.se (Andreas Ericsson) Date: Thu, 18 Nov 2010 09:40:13 +0100 Subject: too much passive check status coming in In-Reply-To: References: <4CE42C9E.6060909@op5.se> Message-ID: <4CE4E66D.6050307@op5.se> On 11/18/2010 03:11 AM, marc pascual wrote: > On Thu, Nov 18, 2010 at 3:27 AM, Andreas Ericsson wrote: > >> On 11/17/2010 08:11 PM, marc pascual wrote: >>> Hello, >>> >>> I have too much passive checks coming in (12*880) to the point that some >>> aren't getting processed by nagios. Now I've decided to rewrite the >> plugins >>> so that it will only report state changes via nsca. (OK-to-CRIT and >>> CRIT-to-OK). The problem I see with this move is that, if something >>> temporarily hampers an nsca communication (e.g. transient high load, or >>> temporary network blip), then there's no guaranteed way for nagios to >> know >>> the real state of the service on the next check cycle. I wonder if anyone >>> out there has implemented their checks similar to this, and what >> solutions >>> or workarounds were implemented to make sure that nagios will eventually >> get >>> updated with the correct states. >>> >> >> You want freshness checks. Browse the nagios documentation for it and >> you'll >> find what you're looking for. >> >> Welcome to the list btw. It seems things finally worked out for you. >> >> >> > But freshness checks imply that checks should be coming in at a regular > interval (unless I'm mistaken). In this case, I don't have an idea when the > next check result will come as I'm only sending results on state changes. > Ah, right. In that case, check out Merlin. It replaces NSCA with a much faster protocol for transmitting check-data, and you get failover for free in case the poller node goes to lunch. http://www.op5.org/community/plugin-inventory/op5-projects/merlin -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tim at tany.com Thu Nov 18 15:48:14 2010 From: tim at tany.com (Tim Palmer) Date: Thu, 18 Nov 2010 09:48:14 -0500 Subject: Some alerts not getting to sendmail Message-ID: <4CE53CAE.1090200@tany.com> Good morning, or whatever as the case may be... I have a Nagios 3.2.1install which is showing a problem I'm unsure how to troubleshoot further. It's either something simple I'm missing, or a deeper, more difficult problem. Or a transient to be perhaps put on a shelf until it happens again. First, the questions: - Is the notifications log absolute? - Meaning, if a notification is shown in this log, it has passed all filters (notification options etc) and Nagios believes it was submitted to the MTA. - Is there anywhere besides the MTA's log,status.dat and nagios.log to look for clues to mail problems? ============== Details - Running on FreeBSD 7.0, using stock sendmail on localhost. - In general, everything is working fine. 125 hosts, 1600 ish services. This system has been up and stable for a few months. Host and service notifications of all kinds go out properly all the time. Last night, I had a host go down. Notification got to my cell phone and the other contacts it's configured to just fine. This morning, I dealt with the problem host and Nagios showed it back up. But no Host up notification to any of the configured contacts. The Notifications log shows the host up notifications as having been sent. There's nothing in /var/log/maillog for the time Nagios says the notifications were sent. In status.dat, the record for my cell contact has a "last_host_notification" line with the epoch time version of the exact second the notification was in theory sent. Host and template records included at the bottom of this email. I've included one contact def, but there were 4 contacts, using 2 different scripts that should have received the notification. As far as I can see, there is nothing in the host configuration or related templates that would keep a host up notification from being sent. We use custom host-notify scripts which log actions, and again, no entries for the specific problem, but lots of other notifications before and after. These scripts could be the problem, but I want to rule out other issues first. Thank you for your time, Tim Palmer =============== Host config: define host{ host_name host.foo.bar.tld use dslam alias Anytown DSLAM address xxx.xxx.xxx.xxx parents another.foo.bar.tld } define host{ name dslam use generic-host check_period 24x7 check_interval 5 retry_interval 1 max_check_attempts 10 check_command check_dslam_uptime_snmp notification_period 24x7 notification_interval 0 notification_options d,u,r contact_groups contact1, contact2 register 0 } define host{ name generic-host notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 1 failure_prediction_enabled 1 process_perf_data 0 retain_status_information 1 retain_nonstatus_information 1 notification_period 24x7 register 0 } Contact: define contact{ contact_name me_text use text-contact alias me_text email npanxx_lfour at txt.smx.gateway } define contact{ name text-contact use generic-contact service_notification_options c,r,w service_notification_commands notify-by-textmessage-service host_notification_commands notify-by-textmessage-host register 0 } define contact{ name generic-contact service_notification_period 24x7 host_notification_period 24x7 service_notification_options c,r host_notification_options d,r service_notification_commands notify-by-email-service host_notification_commands notify-by-email-host register 0 } ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Thu Nov 18 16:58:16 2010 From: ae at op5.se (Andreas Ericsson) Date: Thu, 18 Nov 2010 16:58:16 +0100 Subject: Some alerts not getting to sendmail In-Reply-To: <4CE53CAE.1090200@tany.com> References: <4CE53CAE.1090200@tany.com> Message-ID: <4CE54D18.6040505@op5.se> On 11/18/2010 03:48 PM, Tim Palmer wrote: > Good morning, or whatever as the case may be... > > I have a Nagios 3.2.1install which is showing a problem I'm unsure how > to troubleshoot further. It's either something simple I'm missing, or a > deeper, more difficult problem. Or a transient to be perhaps put on a > shelf until it happens again. > > First, the questions: > - Is the notifications log absolute? > - Meaning, if a notification is shown in this log, it has passed all > filters (notification options etc) and Nagios believes it was submitted > to the MTA. > Yes. > - Is there anywhere besides the MTA's log,status.dat and nagios.log to > look for clues to mail problems? The receiving end comes to mind, or any server(s) in between. > ============== > Details > - Running on FreeBSD 7.0, using stock sendmail on localhost. > - In general, everything is working fine. 125 hosts, 1600 ish services. > This system has been up and stable for a few months. > > Host and service notifications of all kinds go out properly all the time. > > Last night, I had a host go down. Notification got to my cell phone and > the other contacts it's configured to just fine. This morning, I dealt > with the problem host and Nagios showed it back up. But no Host up > notification to any of the configured contacts. The Notifications log > shows the host up notifications as having been sent. There's nothing in > /var/log/maillog for the time Nagios says the notifications were sent. > In status.dat, the record for my cell contact has a > "last_host_notification" line with the epoch time version of the exact > second the notification was in theory sent. Host and template records > included at the bottom of this email. I've included one contact def, but > there were 4 contacts, using 2 different scripts that should have > received the notification. > > As far as I can see, there is nothing in the host configuration or > related templates that would keep a host up notification from being sent. > > We use custom host-notify scripts which log actions, and again, no > entries for the specific problem, but lots of other notifications before > and after. These scripts could be the problem, but I want to rule out > other issues first. > Notifications are a pretty integral part to what makes Nagios worth anything at all. Since you're using homebrewed scripts and noone else has reported any problems with them, I suggest you first debug your own scripts, or enable debug-logging for notifications. The dosc will tell you how to do that. It won't help for this occurrance of the failed notifications, but it will definitely help you in the future if it ever happens again. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tim at tany.com Thu Nov 18 17:13:48 2010 From: tim at tany.com (Tim Palmer) Date: Thu, 18 Nov 2010 11:13:48 -0500 Subject: Some alerts not getting to sendmail In-Reply-To: <4CE54D18.6040505@op5.se> References: <4CE53CAE.1090200@tany.com> <4CE54D18.6040505@op5.se> Message-ID: <4CE550BC.7090505@tany.com> Andreas Ericsson wrote: > On 11/18/2010 03:48 PM, Tim Palmer wrote: > >> Good morning, or whatever as the case may be... >> >> I have a Nagios 3.2.1install which is showing a problem I'm unsure how >> to troubleshoot further. It's either something simple I'm missing, or a >> deeper, more difficult problem. Or a transient to be perhaps put on a >> shelf until it happens again. >> >> First, the questions: >> - Is the notifications log absolute? >> - Meaning, if a notification is shown in this log, it has passed all >> filters (notification options etc) and Nagios believes it was submitted >> to the MTA. >> >> > > Yes. > Excellent, thank you. That's the critical bit for me regarding Nagios. > >> - Is there anywhere besides the MTA's log,status.dat and nagios.log to >> look for clues to mail problems? >> > > The receiving end comes to mind, or any server(s) in between. > > >> ============== >> Details >> - Running on FreeBSD 7.0, using stock sendmail on localhost. >> - In general, everything is working fine. 125 hosts, 1600 ish services. >> This system has been up and stable for a few months. >> >> Host and service notifications of all kinds go out properly all the time. >> >> Last night, I had a host go down. Notification got to my cell phone and >> the other contacts it's configured to just fine. This morning, I dealt >> with the problem host and Nagios showed it back up. But no Host up >> notification to any of the configured contacts. The Notifications log >> shows the host up notifications as having been sent. There's nothing in >> /var/log/maillog for the time Nagios says the notifications were sent. >> In status.dat, the record for my cell contact has a >> "last_host_notification" line with the epoch time version of the exact >> second the notification was in theory sent. Host and template records >> included at the bottom of this email. I've included one contact def, but >> there were 4 contacts, using 2 different scripts that should have >> received the notification. >> >> As far as I can see, there is nothing in the host configuration or >> related templates that would keep a host up notification from being sent. >> >> We use custom host-notify scripts which log actions, and again, no >> entries for the specific problem, but lots of other notifications before >> and after. These scripts could be the problem, but I want to rule out >> other issues first. >> >> > > Notifications are a pretty integral part to what makes Nagios worth > anything at all. Since you're using homebrewed scripts and noone else > has reported any problems with them, I suggest you first debug your > own scripts, or enable debug-logging for notifications. The dosc will > tell you how to do that. It won't help for this occurrance of the > failed notifications, but it will definitely help you in the future > if it ever happens again. > > Agreed on all counts. Now that you've confirmed the final-ness of the notifications log, I am comfortable looking outside Nagios to the scripts, system and sendmail. I'm sure there's a reasonable, logical explanation for a small subset of mail not getting from Nagios to the local MTA... Thank you Tim ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Deborah.Martin at Kognitio.com Thu Nov 18 17:25:39 2010 From: Deborah.Martin at Kognitio.com (Deborah Martin) Date: Thu, 18 Nov 2010 16:25:39 -0000 Subject: More than one command defined Message-ID: <84836290D5AD43418C40DCF0C4A54ED3038B7A9E@kogex02.pmpl.co.uk> Hi, I have a need to run two different commands when processing the performance data from Nagios (3.2.2) I want the first command to run the process-perfdata.pl script from pnp4nagios and the second command to log various things to a different log file. The reason is that we've only just had a requirement to process performance data for pnp4nagios graphing. But historically we've created our own "performance data" log which is then used within a database to produce SLA reports developed in-house (no graphing just numbers produced for the SLA reports) If I do the following I don't get an errors when I run nagios -v nagios.cfg ... :- define command { command_name process-service-perfdata-file command_line - process performance data for pnp4nagios command_line - log different data to a different file } I'd like to avoid creating a script with both commands in if I can help it as it's extremely useful to keep it simple and visible in the misccommands.cfg file. Perhaps there is some other way I can do this or is a script with both commands really the only way ? Any help / pointers would be really appreciated. If I'm being dense about this and the answer is staring right at me feel free to say so! Thanks, 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 *************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Thu Nov 18 18:09:44 2010 From: ae at op5.se (Andreas Ericsson) Date: Thu, 18 Nov 2010 18:09:44 +0100 Subject: More than one command defined In-Reply-To: <84836290D5AD43418C40DCF0C4A54ED3038B7A9E@kogex02.pmpl.co.uk> References: <84836290D5AD43418C40DCF0C4A54ED3038B7A9E@kogex02.pmpl.co.uk> Message-ID: <4CE55DD8.60307@op5.se> On 11/18/2010 05:25 PM, Deborah Martin wrote: > Hi, > > I have a need to run two different commands when processing the performance > data from Nagios (3.2.2) > > I want the first command to run the process-perfdata.pl script from > pnp4nagios and the second command to log various things to a different log > file. > > The reason is that we've only just had a requirement to process performance > data for pnp4nagios graphing. But historically we've created our own > "performance data" log > which is then used within a database to produce SLA reports developed > in-house (no graphing just numbers produced for the SLA reports) > > If I do the following I don't get an errors when I run nagios -v nagios.cfg > ... :- > > define command { > command_name process-service-perfdata-file > command_line - process performance data for > pnp4nagios > command_line - log different data to a different > file > } > I'm not surprised. This is a sort of unintentional fallout that comes from using the template system the way it's defined today. I guess only the second command_line will get run though, right? > I'd like to avoid creating a script with both commands in if I can help it > as it's extremely useful to keep it simple and visible in the > misccommands.cfg file. > > Perhaps there is some other way I can do this or is a script with both > commands really the only way ? > You could use Merlin and set the perfdata_table option in the database section of the daemon compound. Then you can grab the perfdata items from the merlin database. Note that you'll have to drop old entries from that table every once in a while though, as the table will surely grow huge otherwise. That doesn't really let you have things visible in the misccommands.cfg file though, so you'll have to pick your poison on this one. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From daniel.wittenberg.r0ko at statefarm.com Thu Nov 18 18:14:56 2010 From: daniel.wittenberg.r0ko at statefarm.com (Daniel Wittenberg) Date: Thu, 18 Nov 2010 10:14:56 -0700 Subject: More than one command defined In-Reply-To: <84836290D5AD43418C40DCF0C4A54ED3038B7A9E@kogex02.pmpl.co.uk> References: <84836290D5AD43418C40DCF0C4A54ED3038B7A9E@kogex02.pmpl.co.uk> Message-ID: <31B0FE0A1A8166409E9DF35C6DEECB240516CF6D@WPSCV6MM.OPR.STATEFARM.ORG> I'm looking at the same issue and our thoughts are to use NDO utils or possibly custom NEB to grab perf data that way, but then still let pnp4nagios run the 'normal' way. Dan From: Deborah Martin [mailto:Deborah.Martin at Kognitio.com] Sent: Thursday, November 18, 2010 10:26 AM To: 'Nagios Users List' Subject: [Nagios-users] More than one command defined Importance: High Hi, I have a need to run two different commands when processing the performance data from Nagios (3.2.2) I want the first command to run the process-perfdata.pl script from pnp4nagios and the second command to log various things to a different log file. The reason is that we've only just had a requirement to process performance data for pnp4nagios graphing. But historically we've created our own "performance data" log which is then used within a database to produce SLA reports developed in-house (no graphing just numbers produced for the SLA reports) If I do the following I don't get an errors when I run nagios -v nagios.cfg ... :- define command { command_name process-service-perfdata-file command_line - process performance data for pnp4nagios command_line - log different data to a different file } I'd like to avoid creating a script with both commands in if I can help it as it's extremely useful to keep it simple and visible in the misccommands.cfg file. Perhaps there is some other way I can do this or is a script with both commands really the only way ? Any help / pointers would be really appreciated. If I'm being dense about this and the answer is staring right at me feel free to say so! Thanks, 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 ************************************************************************ *** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cbeattie at geninfo.com Thu Nov 18 19:09:05 2010 From: cbeattie at geninfo.com (Chris Beattie) Date: Thu, 18 Nov 2010 13:09:05 -0500 Subject: Nagios Core 3.2.3 host check retry interval In-Reply-To: <4CE2FD13.7080504@op5.se> References: <4CE2FD13.7080504@op5.se> Message-ID: <1290103745.29293.17.camel@DevNagios.geninfo.com> On Tue, 2010-11-16 at 22:52 +0100, Andreas Ericsson wrote: > That one was in 3.2.2 too though. Could you try un-commenting the lines > mentioned there and see if that helps? It looks like something weird is still happening after making that change. I checked some more hosts and the retry_interval is low, but only for HOST UP alerts. ------------------------ [11-18-2010 01:23:31] SERVICE ALERT: hcsprodnwweb5;Service: Epilog;CRITICAL;SOFT;1;CRITICAL - Socket timeout after 10 seconds [11-18-2010 01:23:41] HOST ALERT: hcsprodnwweb5;DOWN;SOFT;1;CRITICAL - 10.3.2.177: rta nan, lost 100% [11-18-2010 01:24:01] HOST ALERT: hcsprodnwweb5;UP;SOFT;2;OK - 10.3.2.177: rta 1.943ms, lost 0% ------------------------ [11-18-2010 01:32:51] HOST ALERT: wwwhost;DOWN;SOFT;2;CRITICAL - 10.3.1.11: rta nan, lost 100% [11-18-2010 01:34:02] HOST ALERT: wwwhost;DOWN;HARD;3;CRITICAL - 10.3.1.11: rta nan, lost 100% [11-18-2010 01:34:21] HOST ALERT: wwwhost;UP;HARD;1;OK - 10.3.1.11: rta 115.733ms, lost 20% ------------------------ But sometimes it works the way I expect it to. ------------------------ [11-18-2010 01:38:41] HOST ALERT: wwwhost;DOWN;SOFT;2;CRITICAL - 10.3.1.11: rta nan, lost 100% [11-18-2010 01:39:51] HOST ALERT: wwwhost;DOWN;HARD;3;CRITICAL - 10.3.1.11: rta 488.367ms, lost 80% [11-18-2010 01:49:21] HOST ALERT: wwwhost;UP;HARD;1;OK - 10.3.1.11: rta 31.928ms, lost 0% ------------------------ I'm going to try reverting back to Nagios 3.2.1 to see what happens. It's possible I had the problem then but never noticed. Nothing in this message is intended to make or accept an 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. ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From a.smith at ukgrid.net Thu Nov 18 20:04:37 2010 From: a.smith at ukgrid.net (a.smith at ukgrid.net) Date: Thu, 18 Nov 2010 19:04:37 +0000 Subject: SNMP checks, using multiple snmpgets Message-ID: <20101118190437.21345tovjb4x1z28@webmail2.ukgrid.net> Hi, Im trying to get my SNMP monitoring a bit more informative. I want to monitor port status on ethernet switches (which Ive tested and works quite nicely). Im using the instructions given here: http://www.thegeekstuff.com/2008/11/how-to-monitor-network-switch-and-ports-using-nagios/ What would be nice is that in the out put of a give port, rather than just saying up or down Id like to also include the output from the ifDescr along with the port status. Logically this would seem to be possible, give the how to above shows in example 7 a config whereby you monitor multiple ports in a single command. I tried this config: check_command check_snmp!-C public -o ifDescr.52 -m RFC1213-MI B -o ifOperStatus.52 -r 1 -m RFC1213-MIB The output of the command is fine, I see the string returned from the ifDescr first then the status of the port, but Nagios takes this as being an error state and marks the service as faulted permanently. If anyone can understand that, do you know if what I want is possible to achieve? :P thanks! Andy. ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Jeff.Chung at sig.com Thu Nov 18 20:30:10 2010 From: Jeff.Chung at sig.com (Chung, Jeff) Date: Thu, 18 Nov 2010 14:30:10 -0500 Subject: macro for notified contacts Message-ID: <26AD5A26C15C3948AEF795C346F7E9ED096B199222@msgbal518.ds.susq.com> Is there a macro that expands to the list of notified or will be notified contacts in a Host or Service notification? I'm currently using $NOTIFICATIONRECIPIENTS$, but this doesn't expand to contacts that are actually notified because if a contact's notification period filters them out, it still shows up in $NOTIFICATIONRECIPIENTS$. ________________________________ IMPORTANT: The information contained in this email and/or its attachments is confidential. If you are not the intended recipient, please notify the sender immediately by reply and immediately delete this message and all its attachments. Any review, use, reproduction, disclosure or dissemination of this message or any attachment by an unintended recipient is strictly prohibited. Neither this message nor any attachment is intended as or should be construed as an offer, solicitation or recommendation to buy or sell any security or other financial instrument. Neither the sender, his or her employer nor any of their respective affiliates makes any warranties as to the completeness or accuracy of any of the information contained herein or that this message or any of its attachments is free of viruses. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From daniel.wittenberg.r0ko at statefarm.com Thu Nov 18 21:18:39 2010 From: daniel.wittenberg.r0ko at statefarm.com (Daniel Wittenberg) Date: Thu, 18 Nov 2010 13:18:39 -0700 Subject: server profiling options Message-ID: <31B0FE0A1A8166409E9DF35C6DEECB240516D1ED@WPSCV6MM.OPR.STATEFARM.ORG> I'm looking at minimizing the CPU impact that nagios has on our server, and done some of the basic performance tuning stuff, but what I see right now is a lot of the nagios worker procs generating a lot of CPU and curious if there was a way people have used to watch what those processes and threads were doing that might be taknig the most cycles to try and reduce it? Thanks! Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From daniel.wittenberg.r0ko at statefarm.com Thu Nov 18 21:19:27 2010 From: daniel.wittenberg.r0ko at statefarm.com (Daniel Wittenberg) Date: Thu, 18 Nov 2010 13:19:27 -0700 Subject: hostgroup with no members - Enhancement In-Reply-To: References: <31B0FE0A1A8166409E9DF35C6DEECB2404EEE87E@WPSCV6MM.OPR.STATEFARM.ORG><4CCFBEE1.3040007@op5.se><31B0FE0A1A8166409E9DF35C6DEECB2404EEEC37@WPSCV6MM.OPR.STATEFARM.ORG><4CD01BB5.103@op5.se><4CD14296.1030400@op5.se> Message-ID: <31B0FE0A1A8166409E9DF35C6DEECB240516D1F2@WPSCV6MM.OPR.STATEFARM.ORG> I was curious if we were able to make any progress on getting this patch included? Thanks! Dan -----Original Message----- From: Max Schubert [mailto:maxs at webwizarddesign.com] Sent: Wednesday, November 03, 2010 7:04 AM To: Andreas Ericsson; Nagios Users List Subject: Re: [Nagios-users] hostgroup with no members - Enhancement Will do my best to do this this week - if I don't get to it this week I will forget about it for sure, all the patches our team has done to make Nagios (some very very specific to our env) work for us will be available on our team github account; will do my best to get that updated this week as well and post that url along with the patch / docs to this list or I will forget to do that for another few months too. Max On 11/3/10, Andreas Ericsson wrote: > On 11/02/2010 04:54 PM, Max Schubert wrote: >> >> allow_empty_hostgroups = 1 >> > > I'll take this, but rename the option to something more mnemonic, as > empty hostgroups are already allowed and it's a bit ambiguous what it > means. > > Any chance you could re-roll the patch against latest CVS head and > include a brief documentation update? Name the var "allow_empty_hostgroups" > in the docs so I can find it when I sed it in. > > If you want any special attributions (company or person thanks, beyond > the addition of your name to the THANKS file and your name and email in > the commit log message), let me know. > > > -- > Andreas Ericsson andreas.ericsson at 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. > ------------------------------------------------------------------------ ------ Achieve Improved Network Security with IP and DNS Reputation. Defend against bad network traffic, including botnets, malware, phishing sites, and compromised hosts - saving your company time, money, and embarrassment. Learn More! http://p.sf.net/sfu/hpdev2dev-nov _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tim at tany.com Thu Nov 18 21:33:43 2010 From: tim at tany.com (Tim Palmer) Date: Thu, 18 Nov 2010 15:33:43 -0500 Subject: Some alerts not getting to sendmail In-Reply-To: <4CE550BC.7090505@tany.com> References: <4CE53CAE.1090200@tany.com> <4CE54D18.6040505@op5.se> <4CE550BC.7090505@tany.com> Message-ID: <4CE58DA7.8070907@tany.com> Tim Palmer wrote: > Andreas Ericsson wrote: > >> On 11/18/2010 03:48 PM, Tim Palmer wrote: >> >> >>> Good morning, or whatever as the case may be... >>> >>> I have a Nagios 3.2.1install which is showing a problem I'm unsure how >>> to troubleshoot further. It's either something simple I'm missing, or a >>> deeper, more difficult problem. Or a transient to be perhaps put on a >>> shelf until it happens again. >>> >>> First, the questions: >>> - Is the notifications log absolute? >>> - Meaning, if a notification is shown in this log, it has passed all >>> filters (notification options etc) and Nagios believes it was submitted >>> to the MTA. >>> >>> >>> >> Yes. >> >> > > Excellent, thank you. That's the critical bit for me regarding Nagios. > > >> >> >>> - Is there anywhere besides the MTA's log,status.dat and nagios.log to >>> look for clues to mail problems? >>> >>> >> The receiving end comes to mind, or any server(s) in between. >> >> >> >>> ============== >>> Details >>> - Running on FreeBSD 7.0, using stock sendmail on localhost. >>> - In general, everything is working fine. 125 hosts, 1600 ish services. >>> This system has been up and stable for a few months. >>> >>> Host and service notifications of all kinds go out properly all the time. >>> >>> Last night, I had a host go down. Notification got to my cell phone and >>> the other contacts it's configured to just fine. This morning, I dealt >>> with the problem host and Nagios showed it back up. But no Host up >>> notification to any of the configured contacts. The Notifications log >>> shows the host up notifications as having been sent. There's nothing in >>> /var/log/maillog for the time Nagios says the notifications were sent. >>> In status.dat, the record for my cell contact has a >>> "last_host_notification" line with the epoch time version of the exact >>> second the notification was in theory sent. Host and template records >>> included at the bottom of this email. I've included one contact def, but >>> there were 4 contacts, using 2 different scripts that should have >>> received the notification. >>> >>> As far as I can see, there is nothing in the host configuration or >>> related templates that would keep a host up notification from being sent. >>> >>> We use custom host-notify scripts which log actions, and again, no >>> entries for the specific problem, but lots of other notifications before >>> and after. These scripts could be the problem, but I want to rule out >>> other issues first. >>> >>> >>> >> Notifications are a pretty integral part to what makes Nagios worth >> anything at all. Since you're using homebrewed scripts and noone else >> has reported any problems with them, I suggest you first debug your >> own scripts, or enable debug-logging for notifications. The dosc will >> tell you how to do that. It won't help for this occurrance of the >> failed notifications, but it will definitely help you in the future >> if it ever happens again. >> >> >> > Agreed on all counts. Now that you've confirmed the final-ness of the > notifications log, I am comfortable looking outside Nagios to the > scripts, system and sendmail. I'm sure there's a reasonable, logical > explanation for a small subset of mail not getting from Nagios to the > local MTA... > > Thank you > > Tim > Note to self, and whoever else might be listening - properly quoting plugin output before releasing into the shell is a Good Thing. Blaming ex-employees for the oversight is tempting, but cowardly. And Tim's Trouble Shooting Rule #1 holds again - "It's your fault, find what you did wrong" or, "Never forget you're an idiot". Tim ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Deborah.Martin at Kognitio.com Thu Nov 18 21:17:13 2010 From: Deborah.Martin at Kognitio.com (Deborah Martin) Date: Thu, 18 Nov 2010 20:17:13 -0000 Subject: More than one command defined Message-ID: <84836290D5AD43418C40DCF0C4A54ED3038B7A9F@kogex02.pmpl.co.uk> Thanks for the input everyone. Much appreciated. I'll try with merlin and see where that goes. And the script idea as well. The trouble is Nagios is a complicated beast (to me anyway). Coupled with that and getting pnp4nagios working as well this week, my head hurts from config file overload :) Anyway all food for thought! Thanks again. Deborah -----Original Message----- From: Andreas Ericsson [mailto:ae at op5.se] Sent: 18 November 2010 17:10 To: Nagios Users List Cc: Deborah Martin Subject: Re: [Nagios-users] More than one command defined On 11/18/2010 05:25 PM, Deborah Martin wrote: > Hi, > > I have a need to run two different commands when processing the performance > data from Nagios (3.2.2) > > I want the first command to run the process-perfdata.pl script from > pnp4nagios and the second command to log various things to a different log > file. > > The reason is that we've only just had a requirement to process performance > data for pnp4nagios graphing. But historically we've created our own > "performance data" log > which is then used within a database to produce SLA reports developed > in-house (no graphing just numbers produced for the SLA reports) > > If I do the following I don't get an errors when I run nagios -v nagios.cfg > ... :- > > define command { > command_name process-service-perfdata-file > command_line - process performance data for > pnp4nagios > command_line - log different data to a different > file > } > I'm not surprised. This is a sort of unintentional fallout that comes from using the template system the way it's defined today. I guess only the second command_line will get run though, right? > I'd like to avoid creating a script with both commands in if I can help it > as it's extremely useful to keep it simple and visible in the > misccommands.cfg file. > > Perhaps there is some other way I can do this or is a script with both > commands really the only way ? > You could use Merlin and set the perfdata_table option in the database section of the daemon compound. Then you can grab the perfdata items from the merlin database. Note that you'll have to drop old entries from that table every once in a while though, as the table will surely grow huge otherwise. That doesn't really let you have things visible in the misccommands.cfg file though, so you'll have to pick your poison on this one. -- Andreas Ericsson andreas.ericsson at 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 *************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From breandan at dezendorf.com Thu Nov 18 22:05:24 2010 From: breandan at dezendorf.com (Breandan Dezendorf) Date: Thu, 18 Nov 2010 16:05:24 -0500 Subject: server profiling options In-Reply-To: <31B0FE0A1A8166409E9DF35C6DEECB240516D1ED@WPSCV6MM.OPR.STATEFARM.ORG> References: <31B0FE0A1A8166409E9DF35C6DEECB240516D1ED@WPSCV6MM.OPR.STATEFARM.ORG> Message-ID: On Thu, Nov 18, 2010 at 3:18 PM, Daniel Wittenberg wrote: > I?m looking at minimizing the CPU impact that nagios has on our server, and > done some of the basic performance tuning stuff, but what I see right now is > a lot of the nagios worker procs generating a lot of CPU and curious if > there was a way people have used to watch what those processes and threads > were doing that might be taknig the most cycles to try and reduce it? If you have a large number of monitored hosts and services, you may want to look into "use_large_installation_tweaks": http://nagios.sourceforge.net/docs/3_0/largeinstalltweaks.html -- Breandan Dezendorf breandan at dezendorf.com bwdezend at gmail.com ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From daniel.wittenberg.r0ko at statefarm.com Thu Nov 18 22:10:19 2010 From: daniel.wittenberg.r0ko at statefarm.com (Daniel Wittenberg) Date: Thu, 18 Nov 2010 14:10:19 -0700 Subject: server profiling options In-Reply-To: References: <31B0FE0A1A8166409E9DF35C6DEECB240516D1ED@WPSCV6MM.OPR.STATEFARM.ORG> Message-ID: <31B0FE0A1A8166409E9DF35C6DEECB240516D2D0@WPSCV6MM.OPR.STATEFARM.ORG> Yup, already enabled... Dan -----Original Message----- From: Breandan Dezendorf [mailto:breandan at dezendorf.com] Sent: Thursday, November 18, 2010 3:05 PM To: Nagios Users List Subject: Re: [Nagios-users] server profiling options On Thu, Nov 18, 2010 at 3:18 PM, Daniel Wittenberg wrote: > I'm looking at minimizing the CPU impact that nagios has on our server, and > done some of the basic performance tuning stuff, but what I see right now is > a lot of the nagios worker procs generating a lot of CPU and curious if > there was a way people have used to watch what those processes and threads > were doing that might be taknig the most cycles to try and reduce it? If you have a large number of monitored hosts and services, you may want to look into "use_large_installation_tweaks": http://nagios.sourceforge.net/docs/3_0/largeinstalltweaks.html -- Breandan Dezendorf breandan at dezendorf.com bwdezend at gmail.com ------------------------------------------------------------------------ ------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From daniel.wittenberg.r0ko at statefarm.com Thu Nov 18 23:30:42 2010 From: daniel.wittenberg.r0ko at statefarm.com (Daniel Wittenberg) Date: Thu, 18 Nov 2010 15:30:42 -0700 Subject: server profiling options and pre-caching macros In-Reply-To: References: <31B0FE0A1A8166409E9DF35C6DEECB240516D1ED@WPSCV6MM.OPR.STATEFARM.ORG> Message-ID: <31B0FE0A1A8166409E9DF35C6DEECB240516D3EF@WPSCV6MM.OPR.STATEFARM.ORG> Watching nagios in debug mode for awhile, made me think about the processing of macros and the performance impact. It seems that for most macro's, like user defined ones, they don't change. So does it really make sense to keep processing them over and over and over...could that be something that maybe you could do in the pre-cache stage when nagios starts. Would that cause more problems? Dan -----Original Message----- From: Breandan Dezendorf [mailto:breandan at dezendorf.com] Sent: Thursday, November 18, 2010 3:05 PM To: Nagios Users List Subject: Re: [Nagios-users] server profiling options On Thu, Nov 18, 2010 at 3:18 PM, Daniel Wittenberg wrote: > I'm looking at minimizing the CPU impact that nagios has on our server, and > done some of the basic performance tuning stuff, but what I see right now is > a lot of the nagios worker procs generating a lot of CPU and curious if > there was a way people have used to watch what those processes and threads > were doing that might be taknig the most cycles to try and reduce it? If you have a large number of monitored hosts and services, you may want to look into "use_large_installation_tweaks": http://nagios.sourceforge.net/docs/3_0/largeinstalltweaks.html -- Breandan Dezendorf breandan at dezendorf.com bwdezend at gmail.com ------------------------------------------------------------------------ ------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Nov 19 10:17:29 2010 From: ae at op5.se (Andreas Ericsson) Date: Fri, 19 Nov 2010 10:17:29 +0100 Subject: hostgroup with no members - Enhancement In-Reply-To: <31B0FE0A1A8166409E9DF35C6DEECB240516D1F2@WPSCV6MM.OPR.STATEFARM.ORG> References: <31B0FE0A1A8166409E9DF35C6DEECB2404EEE87E@WPSCV6MM.OPR.STATEFARM.ORG><4CCFBEE1.3040007@op5.se><31B0FE0A1A8166409E9DF35C6DEECB2404EEEC37@WPSCV6MM.OPR.STATEFARM.ORG><4CD01BB5.103@op5.se><4CD14296.1030400@op5.se> <31B0FE0A1A8166409E9DF35C6DEECB240516D1F2@WPSCV6MM.OPR.STATEFARM.ORG> Message-ID: <4CE640A9.7080507@op5.se> On 11/18/2010 09:19 PM, Daniel Wittenberg wrote: > I was curious if we were able to make any progress on getting this patch > included? > That depends on you, more or less. I'm just waiting for a rerolled one that's tested with latest CVS head and has the necessary documentation amendments. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Nov 19 10:20:21 2010 From: ae at op5.se (Andreas Ericsson) Date: Fri, 19 Nov 2010 10:20:21 +0100 Subject: server profiling options and pre-caching macros In-Reply-To: <31B0FE0A1A8166409E9DF35C6DEECB240516D3EF@WPSCV6MM.OPR.STATEFARM.ORG> References: <31B0FE0A1A8166409E9DF35C6DEECB240516D1ED@WPSCV6MM.OPR.STATEFARM.ORG> <31B0FE0A1A8166409E9DF35C6DEECB240516D3EF@WPSCV6MM.OPR.STATEFARM.ORG> Message-ID: <4CE64155.8040209@op5.se> On 11/18/2010 11:30 PM, Daniel Wittenberg wrote: > Watching nagios in debug mode for awhile, made me think about the > processing of macros and the performance impact. It seems that for most > macro's, like user defined ones, they don't change. So does it really > make sense to keep processing them over and over and over...could that > be something that maybe you could do in the pre-cache stage when nagios > starts. Would that cause more problems? > That would be an excellent idea. Any chance you could whip up a patch? If you run grep -i -e xxx -e todo */*.c on latest cvs or git sources, you'll find a few more places where there are obvious and simple performance improvements to be made. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From love.gronvall at iis.se Fri Nov 19 10:48:33 2010 From: love.gronvall at iis.se (=?utf-8?B?TG92ZSBHcsO2bnZhbGw=?=) Date: Fri, 19 Nov 2010 10:48:33 +0100 Subject: certain timeperiods for some services on some hosts Message-ID: <983F17705339E24699AA251B458249B571A3B9E3D4@EXCHANGE2K7.office.nic.se> I have two hosts; host_a and host_b, both running web servers which are being checked by Nagios. I want workhours notification_period on all services on host_a and host_b apart from: - 24x7 notification_period for http on host_a - workhours notification_period for http on host_b Do I need to set up different services for the two different time periods? The perfect solution for me would be to set up a servicegroup, "24x7-services", where I place important services on certain servers. But obviously I can't define notification_period for a service group. How is the best solution to solve this? (It's a setup with hundreds of servers, and doing duplicate definitions of services wouldn't be the prettiest solution.) Best Regards, Love Gronvall .SE -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 475 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From maxs at webwizarddesign.com Fri Nov 19 11:48:08 2010 From: maxs at webwizarddesign.com (Max Schubert) Date: Fri, 19 Nov 2010 05:48:08 -0500 Subject: More than one command defined In-Reply-To: <84836290D5AD43418C40DCF0C4A54ED3038B7A9F@kogex02.pmpl.co.uk> References: <84836290D5AD43418C40DCF0C4A54ED3038B7A9F@kogex02.pmpl.co.uk> Message-ID: We went through a couple of rounds of changes with this: * We first hacked our copy of process_perfdata.pl and added logging to it, then built a relay to our long term trending data warehouse for relaying Nagios perfdata to it after allowing PNP to process it for short term views of the data Nagios -> PNP NEB -> network -> performance data server -> NPCD queue -> process_perfdata.pl -> log -> relay -> network -> data warehouse * Now we have a POE-based solution in place that processes the perfdata for PNP and our relay as two data driven events Nagios -> PNP NEB -> network -> performance data server -> POE server POE server -> RRD files (replaces npcd and process_perfdata.pl) POE server -> network -> data warehouse network listener For both methods we built off of the (at the time very young) modpnpsender.c NEB module source included with PNP. ; we then migrated to a NEB modules who's code was based on some NEB code Andreas wrote that showed how to write to the input of a second external program over a pipe + an external perl script that relayed the data to the destination servers over the network (or queued if the network was down). Code will be available open source this year for people who are interested. - Max ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nagios at flatto.net Fri Nov 19 12:00:33 2010 From: nagios at flatto.net (Assaf Flatto) Date: Fri, 19 Nov 2010 11:00:33 +0000 Subject: certain timeperiods for some services on some hosts In-Reply-To: <983F17705339E24699AA251B458249B571A3B9E3D4@EXCHANGE2K7.office.nic.se> References: <983F17705339E24699AA251B458249B571A3B9E3D4@EXCHANGE2K7.office.nic.se> Message-ID: <4CE658D1.40205@flatto.net> you can use a template to make it easier. Build the template to encompass all the definitions you need and then define the service for the host group/service group you want to associate it to , and in the service definition you "override " the timeperiod definition with the local definition . that way you still have a duplicate , but it will be an easier and neater solution . Assaf On 19/11/10 09:48, Love Gr?nvall wrote: > I have two hosts; host_a and host_b, both running web servers which are being checked by Nagios. > > I want workhours notification_period on all services on host_a and host_b apart from: > - 24x7 notification_period for http on host_a > - workhours notification_period for http on host_b > > Do I need to set up different services for the two different time periods? > > > The perfect solution for me would be to set up a servicegroup, "24x7-services", where I place important services on certain servers. But obviously I can't define notification_period for a service group. > > How is the best solution to solve this? (It's a setup with hundreds of servers, and doing duplicate definitions of services wouldn't be the prettiest solution.) > > > Best Regards, > > Love Gronvall > .SE -- Never,Ever Cut A Deal With a Dragon Next year I will be doing the London to Paris bike ride to raise money for the DogTrust (www.dogstrust.co.uk) . Please Sponsor me at http://www.justgiving.com/Assaf-Flatto ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From love.gronvall at iis.se Fri Nov 19 13:16:40 2010 From: love.gronvall at iis.se (=?utf-8?B?TG92ZSBHcsO2bnZhbGw=?=) Date: Fri, 19 Nov 2010 13:16:40 +0100 Subject: certain timeperiods for some services on some hosts In-Reply-To: <4CE658D1.40205@flatto.net> References: <983F17705339E24699AA251B458249B571A3B9E3D4@EXCHANGE2K7.office.nic.se> <4CE658D1.40205@flatto.net> Message-ID: <983F17705339E24699AA251B458249B571A3B9E48D@EXCHANGE2K7.office.nic.se> Yes, that's the solution I described below that I don't want to use. Is duplicate service definitions the only way to go? Best Regards, Love Gronvall .SE -----Ursprungligt meddelande----- Fr?n: Assaf Flatto [mailto:nagios at flatto.net] Skickat: den 19 november 2010 12:01 Till: nagios-users at lists.sourceforge.net ?mne: Re: [Nagios-users] certain timeperiods for some services on some hosts you can use a template to make it easier. Build the template to encompass all the definitions you need and then define the service for the host group/service group you want to associate it to , and in the service definition you "override " the timeperiod definition with the local definition . that way you still have a duplicate , but it will be an easier and neater solution . Assaf On 19/11/10 09:48, Love Gr?nvall wrote: > I have two hosts; host_a and host_b, both running web servers which are being checked by Nagios. > > I want workhours notification_period on all services on host_a and host_b apart from: > - 24x7 notification_period for http on host_a > - workhours notification_period for http on host_b > > Do I need to set up different services for the two different time periods? > > > The perfect solution for me would be to set up a servicegroup, "24x7-services", where I place important services on certain servers. But obviously I can't define notification_period for a service group. > > How is the best solution to solve this? (It's a setup with hundreds of servers, and doing duplicate definitions of services wouldn't be the prettiest solution.) > > > Best Regards, > > Love Gronvall > .SE -- Never,Ever Cut A Deal With a Dragon Next year I will be doing the London to Paris bike ride to raise money for the DogTrust (www.dogstrust.co.uk) . Please Sponsor me at http://www.justgiving.com/Assaf-Flatto ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 475 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nagios at ljnet.dk Fri Nov 19 14:43:38 2010 From: nagios at ljnet.dk (Leif J.) Date: Fri, 19 Nov 2010 14:43:38 +0100 Subject: MSSQL CRITICAL - Error: Provider cannot be found. It may not be properly installed Message-ID: <4CE67F0A.7070206@ljnet.dk> On a brand new Windows 2008R2 and MSSQL 2008R2 I have installed NSClient++ and put check_mssql_nt but when I try to connect to the localhost I'm getting: /MSSQL CRITICAL - Error: Provider cannot be found. It may not be properly installed / What can it be ? I have looked several sites and have not yet figured it out why. /Leif -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kaiwang.chen at gmail.com Fri Nov 19 16:32:51 2010 From: kaiwang.chen at gmail.com (Kaiwang Chen) Date: Fri, 19 Nov 2010 23:32:51 +0800 Subject: can log show actual command executed? In-Reply-To: <3FB3E3CF-3F8A-47E7-94AB-F920F9E29EE7@ganymede.org> References: <3FB3E3CF-3F8A-47E7-94AB-F920F9E29EE7@ganymede.org> Message-ID: enable debug log in nagios.cfg: # DEBUG LEVEL # This option determines how much (if any) debugging information will # be written to the debug file. OR values together to log multiple # types of information. # Values: # -1 = Everything # 0 = Nothing # 1 = Functions # 2 = Configuration # 4 = Process information # 8 = Scheduled events # 16 = Host/service checks # 32 = Notifications # 64 = Event broker # 128 = External commands # 256 = Commands # 512 = Scheduled downtime # 1024 = Comments # 2048 = Macros debug_level=-1 # DEBUG VERBOSITY # This option determines how verbose the debug log out will be. # Values: 0 = Brief output # 1 = More detailed # 2 = Very detailed debug_verbosity=2 # DEBUG FILE # This option determines where Nagios should write debugging information. debug_file=/var/nagios.debug Then you will get the most verbose internal states. I experienced a typo of 172 to 127, and found it with the help of debug log. If you are lucky, do serveral search of check_http will locate the problem. Thanks, kc 2010/11/18 Ray Kiddy : > > I am having a problem figuring out see what is actually being executed from a service. Is there a way to get the nagios log to contain the actual command being executed? > > This is what I am seeing in the Nagios.log file: > > ? ? ? ?[1290013792] SERVICE ALERT: myhost.com;Special App;CRITICAL;SOFT;1;(Service Check Timed Out) > > This is what I see in the nagios.dat file: > > ? ? ? ?check_command=check_http!/myURL!alive > > So, this shows me what the command string is in the service.cfg. I cannot see, though, what the actual command line is at this moment in time. It turns out that this check_command corresponds (I think) to: > > ? ? ? ?check_http -u /myURL -s alive > > How would I know this, though, if the command definition had been changed or if it is using, because of a mis-spelling, a command I do not think it is using? If I go into the command.cfg and switch the order of parameters, for example, I see nothing in these logs that tells me what is doing what. > > I know the simplest answer is "You should not do that." But my point is that the log file does not have enough information to tell me what happened at a past moment of time. I would need the log information _and_ the state of the command definitions at that time. If a log does not show you what happened in the past, what is its purpose? > > I am having a problem with a particular web application. For some reason I put in the check and it fails. I execute the check_http that I _think_ this service is doing, and it gives me an OK. I ended up creating a custom executable that calls curl and fetches against the same URL and this now works fine. Kind of lame, though. I use check_http in about 100 other services. So, why is this one single service not working? An obvious answer is that I am not calling the command in the way I think I am. But if I look in the log to see what the service did, I can see what I _think_ it did based on what I can see in what I _think_ is the correct command definition. But I really do not know. I do not see a line like "check_http -u /myURL -s alive" in the log, so, I cannot see if I am mis-reading things. > > Any suggestions? > > - ray > > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ?ECMAScript5, and DOM L2 & L3. > Spend less time writing and ?rewriting code and more time creating great > experiences on the web. Be a part of the beta today > http://p.sf.net/sfu/msIE9-sfdev2dev > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From daniel.wittenberg.r0ko at statefarm.com Fri Nov 19 16:39:27 2010 From: daniel.wittenberg.r0ko at statefarm.com (Daniel Wittenberg) Date: Fri, 19 Nov 2010 08:39:27 -0700 Subject: server profiling options and pre-caching macros In-Reply-To: <4CE64155.8040209@op5.se> References: <31B0FE0A1A8166409E9DF35C6DEECB240516D1ED@WPSCV6MM.OPR.STATEFARM.ORG> <31B0FE0A1A8166409E9DF35C6DEECB240516D3EF@WPSCV6MM.OPR.STATEFARM.ORG> <4CE64155.8040209@op5.se> Message-ID: <31B0FE0A1A8166409E9DF35C6DEECB240516D6DB@WPSCV6MM.OPR.STATEFARM.ORG> I'll see what I can do...with holiday coming up not sure how much will get done but I'll see... Dan -----Original Message----- From: Andreas Ericsson [mailto:ae at op5.se] Sent: Friday, November 19, 2010 3:20 AM To: Nagios Users List Cc: Daniel Wittenberg Subject: Re: [Nagios-users] server profiling options and pre-caching macros On 11/18/2010 11:30 PM, Daniel Wittenberg wrote: > Watching nagios in debug mode for awhile, made me think about the > processing of macros and the performance impact. It seems that for most > macro's, like user defined ones, they don't change. So does it really > make sense to keep processing them over and over and over...could that > be something that maybe you could do in the pre-cache stage when nagios > starts. Would that cause more problems? > That would be an excellent idea. Any chance you could whip up a patch? If you run grep -i -e xxx -e todo */*.c on latest cvs or git sources, you'll find a few more places where there are obvious and simple performance improvements to be made. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From daniel.wittenberg.r0ko at statefarm.com Fri Nov 19 16:40:47 2010 From: daniel.wittenberg.r0ko at statefarm.com (Daniel Wittenberg) Date: Fri, 19 Nov 2010 08:40:47 -0700 Subject: hostgroup with no members - Enhancement In-Reply-To: <4CE640A9.7080507@op5.se> References: <31B0FE0A1A8166409E9DF35C6DEECB2404EEE87E@WPSCV6MM.OPR.STATEFARM.ORG><4CCFBEE1.3040007@op5.se><31B0FE0A1A8166409E9DF35C6DEECB2404EEEC37@WPSCV6MM.OPR.STATEFARM.ORG><4CD01BB5.103@op5.se><4CD14296.1030400@op5.se> <31B0FE0A1A8166409E9DF35C6DEECB240516D1F2@WPSCV6MM.OPR.STATEFARM.ORG> <4CE640A9.7080507@op5.se> Message-ID: <31B0FE0A1A8166409E9DF35C6DEECB240516D6E2@WPSCV6MM.OPR.STATEFARM.ORG> I'll check with the original author of the patch...I re-rolled it already against head and tested great, been a lifesaver. I sent the updates to him so he could post and move forward with so if he's not had time I'll see about submitting directly. Dan -----Original Message----- From: Andreas Ericsson [mailto:ae at op5.se] Sent: Friday, November 19, 2010 3:17 AM To: Nagios Users List Cc: Daniel Wittenberg Subject: Re: [Nagios-users] hostgroup with no members - Enhancement On 11/18/2010 09:19 PM, Daniel Wittenberg wrote: > I was curious if we were able to make any progress on getting this patch > included? > That depends on you, more or less. I'm just waiting for a rerolled one that's tested with latest CVS head and has the necessary documentation amendments. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kaiwang.chen at gmail.com Fri Nov 19 17:08:06 2010 From: kaiwang.chen at gmail.com (Kaiwang Chen) Date: Sat, 20 Nov 2010 00:08:06 +0800 Subject: More than one command defined In-Reply-To: <31B0FE0A1A8166409E9DF35C6DEECB240516CF6D@WPSCV6MM.OPR.STATEFARM.ORG> References: <84836290D5AD43418C40DCF0C4A54ED3038B7A9E@kogex02.pmpl.co.uk> <31B0FE0A1A8166409E9DF35C6DEECB240516CF6D@WPSCV6MM.OPR.STATEFARM.ORG> Message-ID: Not sure about 3.2.2. In 3.2.3 nagios can be configured to both write to log and run a defined command on each copy of perfdata. PNP bulk mode relies on the former, and the following configure directive are involved: process_performance_data host_perfdata_file service_perfdata_file host_perfdata_file_mode service_perfdata_file_mode host_perfdata_file_processing_interval service_perfdata_file_processing_interval host_perfdata_file_processing_command service_perfdata_file_processing_command Don't worry about uncommpleted files, Nagios will close the file, invoke the file processing command, then reopen the file. The performance data is logged in the file, you can then do what you like in the defined processing command, which can be simply a /bin/mv to move it to another place as PNP bulk mode with NPCD, or processing the whole perfdata log file as PNP bulk mode. the PNP default mode relies on the latter, and the following configure directives are involved: process_performance_data host_perfdata_command service_perfdata_command Nagios simple invokes the comands passing in perfdata and other infomation in NAGIOS_XXX environment variables (have a look at parse_env() in process_perfdata.pl). Let me know if it works. Thanks, kc 2010/11/19 Daniel Wittenberg : > I?m looking at the same issue and our thoughts are to use NDO utils or > possibly custom NEB to grab perf data that way, but then still let > pnp4nagios run the ?normal? way. > > Dan > > > > > > From: Deborah Martin [mailto:Deborah.Martin at Kognitio.com] > Sent: Thursday, November 18, 2010 10:26 AM > To: 'Nagios Users List' > Subject: [Nagios-users] More than one command defined > Importance: High > > > > Hi, > > I have a need to run two different commands when processing the performance > data from Nagios (3.2.2) > > I want the first? command to run the process-perfdata.pl script from > pnp4nagios and the second command to log various things to a different log > file. > > The reason is that we've only just had a requirement to process performance > data for pnp4nagios graphing. But historically we've created our own > "performance data" log > > which is then used within a database to produce SLA reports developed > in-house (no graphing just numbers produced for the SLA reports) > > If I do the following I don't get an errors when I run nagios -v nagios.cfg > ... :- > > define command { > ??????? command_name process-service-perfdata-file > ??????? command_line - process performance data for > pnp4nagios > ??????? command_line - log different data to a different > file > ??????? } > > I'd like to avoid creating a script with both commands in if I can help it > as it's extremely useful to keep it simple and visible in the > misccommands.cfg file. > > Perhaps there is some other way I can do this or is a script with both > commands really the only way ? > > Any help / pointers would be really appreciated. If I'm being dense about > this and the answer is staring right at me feel free to say so! > > Thanks, > 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 > *************************************************************************** > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ?ECMAScript5, and DOM L2 & L3. > Spend less time writing and ?rewriting code and more time creating great > experiences on the web. Be a part of the beta today > http://p.sf.net/sfu/msIE9-sfdev2dev > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cbeattie at geninfo.com Fri Nov 19 17:20:05 2010 From: cbeattie at geninfo.com (Chris Beattie) Date: Fri, 19 Nov 2010 11:20:05 -0500 Subject: Nagios Core 3.2.3 host check retry interval In-Reply-To: <1290103745.29293.17.camel@DevNagios.geninfo.com> References: <4CE2FD13.7080504@op5.se> <1290103745.29293.17.camel@DevNagios.geninfo.com> Message-ID: <1290183605.5449.15.camel@DevNagios.geninfo.com> On Thu, 2010-11-18 at 13:09 -0500, Chris Beattie wrote: > > I'm going to try reverting back to Nagios 3.2.1 to see what happens. > It's possible I had the problem then but never noticed. No luck: even running 3.2.1 I still got the early retries. Since it's not a 3.2.3 problem, and I've apparently had it for quite some time without noticing, I've re-upgraded. This time I'm trying a nearly-stock nagios.cfg file. The one I've been using predates Nagios 3.0. Though it's been updated some, it doesn't contain all the more-recent settings. Nothing in this message is intended to make or accept an 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. ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Luis.Carneiro at compsisnet.com.br Fri Nov 19 19:27:13 2010 From: Luis.Carneiro at compsisnet.com.br (=?iso-8859-1?Q?Luis_Gustavo_de_Andrade_Jord=E3o_Carneiro?=) Date: Fri, 19 Nov 2010 16:27:13 -0200 Subject: CHECK_SVN Message-ID: <6E3EBE71CB62274F8EB78338A6CDD9750207ADBF875A@ADEXC07A.intranet.local> Hello People!! Can you help me? I installed plugin check_svn in my Nagios 3.2.3. When I run check_svn using prompt, that's work. But not when Nagios running check_svn. nagiosql:~# su - nagios nagios at nagiosql:/usr/local/nagios/libexec$ ./check_svn -H 10.0.0.33 --https -U lcarneiro -P xxxx --dir /svn/aocsw_config SVN OK: svn repository online - directory listing successful But, when Service Nagios run, not work. See: SVN CRITICAL: Error connecting to svn server - OPTIONS of 'https://svnaero/svn/aocsw_desenv': Server certificate verification failed: issuer is not trusted (https://svnaero) Commands.cfg: $USER1$/check_svn -H $HOSTADDRESS$ --https -U $ARG1$ -P $ARG2$ --dir $ARG3$ Service: $ARG1$ lcarneiro $ARG2$ xxxxx $ARG2$/svn/aocsw_desenv check_command check_svn!lcarneiro!xxxxx!/svn/aocsw_desenv I already accept certificate permanent (p) using svn info . How can i know which USER run check_svn? I think this could be the problem, because i need to accept certificate to user that run check_svn. Luis Gustavo de A. J. Carneiro ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rick at screenscape.net Fri Nov 19 20:02:24 2010 From: rick at screenscape.net (Rick Munn) Date: Fri, 19 Nov 2010 15:02:24 -0400 Subject: CHECK_SVN In-Reply-To: <6E3EBE71CB62274F8EB78338A6CDD9750207ADBF875A@ADEXC07A.intranet.local> References: <6E3EBE71CB62274F8EB78338A6CDD9750207ADBF875A@ADEXC07A.intranet.local> Message-ID: In your check_command check_svn!lcarneiro!xxxxx!/svn/aocsw_desenv Try taking out two of the three exclamation marks and putting spaces, like this: check_command check_svn!lcarneiro xxxxx /svn/aocsw_desenv Rick Rick B. Munn Operations Team ScreenScape Networks T: 902-368-1975 x329 F: 902-368-3706 E: rick at screenscape.net 2010/11/19 Luis Gustavo de Andrade Jord?o Carneiro < Luis.Carneiro at compsisnet.com.br> > Hello People!! > > > > Can you help me? > > I installed plugin check_svn in my Nagios 3.2.3. When I run check_svn using > prompt, that's work. But not when Nagios running check_svn. > > > > nagiosql:~# su - nagios > > nagios at nagiosql:/usr/local/nagios/libexec$ ./check_svn -H 10.0.0.33 > --https -U lcarneiro -P xxxx --dir /svn/aocsw_config > > SVN OK: svn repository online - directory listing successful > > > > But, when Service Nagios run, not work. See: > > > > SVN CRITICAL: Error connecting to svn server - OPTIONS of ' > https://svnaero/svn/aocsw_desenv': Server certificate verification failed: > issuer is not trusted (https://svnaero) > > > > Commands.cfg: $USER1$/check_svn -H $HOSTADDRESS$ --https -U $ARG1$ -P > $ARG2$ --dir $ARG3$ > > Service: > > $ARG1$ lcarneiro > > $ARG2$ xxxxx > > $ARG2$/svn/aocsw_desenv > > > > check_command check_svn!lcarneiro!xxxxx!/svn/aocsw_desenv > > > > > > I already accept certificate permanent (p) using svn info . > How can i know which USER run check_svn? > I think this could be the problem, because i need to accept certificate to > user that run check_svn. > > > Luis Gustavo de A. J. Carneiro > > > > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today > http://p.sf.net/sfu/msIE9-sfdev2dev > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Fri Nov 19 20:07:55 2010 From: jim at jimavery.me.uk (Jim Avery) Date: Fri, 19 Nov 2010 19:07:55 +0000 Subject: SNMP checks, using multiple snmpgets In-Reply-To: <20101118190437.21345tovjb4x1z28@webmail2.ukgrid.net> References: <20101118190437.21345tovjb4x1z28@webmail2.ukgrid.net> Message-ID: On 18 November 2010 19:04, wrote: > ? Im trying to get my SNMP monitoring a bit more informative. I want > to monitor port status on ethernet switches (which Ive tested and > works quite nicely). > Im using the instructions given here: > > http://www.thegeekstuff.com/2008/11/how-to-monitor-network-switch-and-ports-using-nagios/ > > What would be nice is that in the out put of a give port, rather than > just saying up or down Id like to also include the output from the > ifDescr along with the port status. Logically this would seem to be > possible, give the how to above shows in example 7 a config whereby > you monitor multiple ports in a single command. > I tried this config: > > check_command ? ? ? ? ? check_snmp!-C public -o ifDescr.52 -m RFC1213-MI > B -o ifOperStatus.52 -r 1 -m RFC1213-MIB > > The output of the command is fine, I see the string returned from the > ifDescr first then the status of the port, but Nagios takes this as > being an error state and marks the service as faulted permanently. > If anyone can understand that, do you know if what I want is possible > to achieve? :P Have you looked at http://nagios.manubulon.com/snmp_int.html ? I'm at home so can't check for sure but I think it will retrieve the ifDescr. hth, Jim ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From diego.roccia at gmail.com Fri Nov 19 20:25:22 2010 From: diego.roccia at gmail.com (diego.roccia at gmail.com) Date: Fri, 19 Nov 2010 19:25:22 +0000 Subject: CHECK_SVN In-Reply-To: <6E3EBE71CB62274F8EB78338A6CDD9750207ADBF875A@ADEXC07A.intranet.local> References: <6E3EBE71CB62274F8EB78338A6CDD9750207ADBF875A@ADEXC07A.intranet.local> Message-ID: <1990739067-1290194704-cardhu_decombobulator_blackberry.rim.net-176979597-@b17.c7.bise7.blackberry> I think you're right about the problem. In nagios.cfg file you can find the user you're running these commands as. It's usually nagios Sent from my BlackBerry? wireless device -----Original Message----- From: Luis Gustavo de Andrade Jord?o Carneiro Date: Fri, 19 Nov 2010 16:27:13 To: 'nagios-users at lists.sourceforge.net' Reply-To: Nagios Users List Subject: [Nagios-users] CHECK_SVN Hello People!! Can you help me? I installed plugin check_svn in my Nagios 3.2.3. When I run check_svn using prompt, that's work. But not when Nagios running check_svn. nagiosql:~# su - nagios nagios at nagiosql:/usr/local/nagios/libexec$ ./check_svn -H 10.0.0.33 --https -U lcarneiro -P xxxx --dir /svn/aocsw_config SVN OK: svn repository online - directory listing successful But, when Service Nagios run, not work. See: SVN CRITICAL: Error connecting to svn server - OPTIONS of 'https://svnaero/svn/aocsw_desenv': Server certificate verification failed: issuer is not trusted (https://svnaero) Commands.cfg: $USER1$/check_svn -H $HOSTADDRESS$ --https -U $ARG1$ -P $ARG2$ --dir $ARG3$ Service: $ARG1$ lcarneiro $ARG2$ xxxxx $ARG2$/svn/aocsw_desenv check_command check_svn!lcarneiro!xxxxx!/svn/aocsw_desenv I already accept certificate permanent (p) using svn info . How can i know which USER run check_svn? I think this could be the problem, because i need to accept certificate to user that run check_svn. Luis Gustavo de A. J. Carneiro ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Fri Nov 19 20:45:05 2010 From: jim at jimavery.me.uk (Jim Avery) Date: Fri, 19 Nov 2010 19:45:05 +0000 Subject: server profiling options In-Reply-To: <31B0FE0A1A8166409E9DF35C6DEECB240516D1ED@WPSCV6MM.OPR.STATEFARM.ORG> References: <31B0FE0A1A8166409E9DF35C6DEECB240516D1ED@WPSCV6MM.OPR.STATEFARM.ORG> Message-ID: On 18 November 2010 20:18, Daniel Wittenberg wrote: > I?m looking at minimizing the CPU impact that nagios has on our server, and > done some of the basic performance tuning stuff, but what I see right now is > a lot of the nagios worker procs generating a lot of CPU and curious if > there was a way people have used to watch what those processes and threads > were doing that might be taknig the most cycles to try and reduce it? I've just been looking at this myself. I'm a bit suspicious about the external_command_check_interval directive ( see http://nagios.sourceforge.net/docs/3_0/configmain.html ) If it's set to "-1" (as mine was until recently) then Nagios will check external commands as often as possible. I suspect it helps if you set it to a definite interval, for example 15s, but check nagiostats to make sure your command buffers don't fill up. IME Nagios itself is usually quite light on CPU. It's the plugins and how frequently they run which affect performance the most. I always set check_interval and retry_interval as long as possible in service definitions to spread the load as much as possible. Some plugins can be real performance hogs too, especially check_esx3.pl if you use that (I don't mean to dis' it, as it's a super plugin - it just eats cpu). Run 'top' and you will probably see which plugins are the biggest hogs on your system. ndo (the interface with MySQL if you have that installed) can be a real performance hog. That's a whole other topic! If you're using pnp4nagios for graphing performance data, consider setting it up in bulk mode, ideally on a separate server. It won't make a huge difference but might help a bit. If it's more important to you to stop Nagios hammering your server than it is for Nagios to work right, you can use max_concurrent_checks to limit the number of checks Nagios can run at any time. Keep an eye on your service check latency if you do that though - if latency gets too high (more than a minute or so) you will find Nagios' usefulness diminish quite rapidly! Personally I think you should give Nagios a dedicated server and let it use as much CPU as it needs. Oh, and v3.1.3 includes a fix which improves performance of the status cgis. I'm looking forward to trying that myself next week. Ah, yes, if you have quite a few users, consider setting "refresh_rate" in cgi.cfg to a longer time, otherwise everyone who leaves a status screen open in their browser will hit your Nagios server every 90 seconds (or whatever value it's set to on your system). If I recall I set mine to 180. I'm not sure if any of this will help you, but hopefully it will give you an idea or two. Cheers, Jim ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From daniel.wittenberg.r0ko at statefarm.com Fri Nov 19 20:55:48 2010 From: daniel.wittenberg.r0ko at statefarm.com (Daniel Wittenberg) Date: Fri, 19 Nov 2010 12:55:48 -0700 Subject: server profiling options In-Reply-To: References: <31B0FE0A1A8166409E9DF35C6DEECB240516D1ED@WPSCV6MM.OPR.STATEFARM.ORG> Message-ID: <31B0FE0A1A8166409E9DF35C6DEECB240516D96A@WPSCV6MM.OPR.STATEFARM.ORG> I'm a bit suspicious about the external_command_check_interval directive ( see http://nagios.sourceforge.net/docs/3_0/configmain.html ) If it's set to "-1" (as mine was until recently) then Nagios will check external commands as often as possible. I suspect it helps if you set it to a definite interval, for example 15s, but check nagiostats to make sure your command buffers don't fill up. -- This is something I was going to try as well IME Nagios itself is usually quite light on CPU. It's the plugins and how frequently they run which affect performance the most. I always set check_interval and retry_interval as long as possible in service definitions to spread the load as much as possible. Some plugins can be real performance hogs too, especially check_esx3.pl if you use that (I don't mean to dis' it, as it's a super plugin - it just eats cpu). Run 'top' and you will probably see which plugins are the biggest hogs on your system. - Right now the plugins aren't causing much of an issues, it's the core nagios engine Causing issues... ndo (the interface with MySQL if you have that installed) can be a real performance hog. That's a whole other topic! - Luckily no not right now... If you're using pnp4nagios for graphing performance data, consider setting it up in bulk mode, ideally on a separate server. It won't make a huge difference but might help a bit. - Already done If it's more important to you to stop Nagios hammering your server than it is for Nagios to work right, you can use max_concurrent_checks to limit the number of checks Nagios can run at any time. Keep an eye on your service check latency if you do that though - if latency gets too high (more than a minute or so) you will find Nagios' usefulness diminish quite rapidly! Personally I think you should give Nagios a dedicated server and let it use as much CPU as it needs. Oh, and v3.1.3 includes a fix which improves performance of the status cgis. I'm looking forward to trying that myself next week. Ah, yes, if you have quite a few users, consider setting "refresh_rate" in cgi.cfg to a longer time, otherwise everyone who leaves a status screen open in their browser will hit your Nagios server every 90 seconds (or whatever value it's set to on your system). If I recall I set mine to 180. - Luckily almost no users with this, we've been using multisite since we have A number of servers I'm not sure if any of this will help you, but hopefully it will give you an idea or two. Cheers, Jim - Yeah, any other thoughts people have is helpful. I also tried using the new: auto_reschedule_checks=1 auto_rescheduling_interval=30 auto_rescheduling_window=180 Options this morning and with the default it seems to actually be helping... One other thing I'll probably do is strip out some macros to reduce processing overhead for things that Are static and don't need to be checked every time, like path to plugins, and such. Dan ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mike at summersault.com Fri Nov 19 20:34:24 2010 From: mike at summersault.com (Mike Neimoyer) Date: Fri, 19 Nov 2010 14:34:24 -0500 Subject: Notifications and Escalations and Notification_intervals, oh my! In-Reply-To: References: <6E3EBE71CB62274F8EB78338A6CDD9750207ADBF875A@ADEXC07A.intranet.local> Message-ID: <4CE6D140.6090002@summersault.com> Hello, all! I'm trying to understand how notification intervals work when it comes to basic service definitions and serviceescalation definitions. Does Nagios disregard the initial notification_interval of a service definition, once it reaches an escalation, in favor of the escalation's notification_interval? Example: I have a service's notification_interval set to 15, so that once a state change occurs, a notification is sent out, then another after 15 minutes, and another after 15 minutes, etc... With Nagios counting the notifications as they get sent. Now, I want to define an escalation for that service so that on notification number 2 Nagios notifies a different contact_group. I have the notification_interval for the escalation set to 10 minutes. How does the notification_interval work in this instance, where the period is different? Thanks! ~~Mike ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mmelin at gmail.com Fri Nov 19 21:13:30 2010 From: mmelin at gmail.com (Martin Melin) Date: Fri, 19 Nov 2010 21:13:30 +0100 Subject: Notifications and Escalations and Notification_intervals, oh my! In-Reply-To: <4CE6D140.6090002@summersault.com> References: <6E3EBE71CB62274F8EB78338A6CDD9750207ADBF875A@ADEXC07A.intranet.local> <4CE6D140.6090002@summersault.com> Message-ID: On Fri, Nov 19, 2010 at 8:34 PM, Mike Neimoyer wrote: > Hello, all! > > I'm trying to understand how notification intervals work when it comes > to basic service definitions and serviceescalation definitions. Does > Nagios disregard the initial notification_interval of a service > definition, once it reaches an escalation, in favor of the escalation's > notification_interval? > > Example: > I have a service's notification_interval set to 15, so that once a state > change occurs, a notification is sent out, then another after 15 > minutes, and another after 15 minutes, etc... With Nagios counting the > notifications as they get sent. > > Now, I want to define an escalation for that service so that on > notification number 2 Nagios notifies a different contact_group. ?I have > the notification_interval for the escalation set to 10 minutes. > > How does the notification_interval work in this instance, where the > period is different? Hey Mike, If there is a matching escalation definition that will take precedence over the service definition. In cases where you have conflicting notification_interval values that are all valid, Nagios will use the smallest interval. http://nagios.sourceforge.net/docs/3_0/escalations.html Regards Martin Melin ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From p6411 at hotmail.com Fri Nov 19 21:26:36 2010 From: p6411 at hotmail.com (Paul Paul) Date: Fri, 19 Nov 2010 21:26:36 +0100 Subject: (no subject) Message-ID: http://www.studiobombardieri.it/upload.php -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From maxs at webwizarddesign.com Fri Nov 19 22:22:17 2010 From: maxs at webwizarddesign.com (Max Schubert) Date: Fri, 19 Nov 2010 16:22:17 -0500 Subject: hostgroup with no members - Enhancement In-Reply-To: <31B0FE0A1A8166409E9DF35C6DEECB240516D6E2@WPSCV6MM.OPR.STATEFARM.ORG> References: <31B0FE0A1A8166409E9DF35C6DEECB2404EEE87E@WPSCV6MM.OPR.STATEFARM.ORG> <4CCFBEE1.3040007@op5.se> <31B0FE0A1A8166409E9DF35C6DEECB2404EEEC37@WPSCV6MM.OPR.STATEFARM.ORG> <4CD01BB5.103@op5.se> <4CD14296.1030400@op5.se> <31B0FE0A1A8166409E9DF35C6DEECB240516D1F2@WPSCV6MM.OPR.STATEFARM.ORG> <4CE640A9.7080507@op5.se> <31B0FE0A1A8166409E9DF35C6DEECB240516D6E2@WPSCV6MM.OPR.STATEFARM.ORG> Message-ID: Will try to get this done this weekend - sorry all, it is an irony to be working for a company that allows us to release code from work to open source and be so busy at the job that I rarely have time to do so :). My apologies for the delay - and thanks for your input, help, and feedback on the patch, Dan. Glad you find it useful. - Max On Fri, Nov 19, 2010 at 10:40 AM, Daniel Wittenberg wrote: > I'll check with the original author of the patch...I re-rolled it > already against head and tested great, been a lifesaver. ?I sent the > updates to him so he could post and move forward with so if he's not had > time I'll see about submitting directly. ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jwiggins at salon.com Sat Nov 20 00:04:52 2010 From: jwiggins at salon.com (Jonathan Wiggins) Date: Fri, 19 Nov 2010 15:04:52 -0800 Subject: Change "Procs Critical" threshold In-Reply-To: <362f11756be45b7b92b5088cdb3637d7.squirrel@webmail.stinkweasel.net> References: <311029F2-8E8F-49DF-9A3F-E22465BF4233@salon.com> <362f11756be45b7b92b5088cdb3637d7.squirrel@webmail.stinkweasel.net> Message-ID: <25788594-1EA9-44D3-9E48-CEDF4F5B735D@salon.com> > >> I have a couple of systems that are reporting critical notifications, that >> when you drill into them, the Service : Total Processes has been >> triggered. Its showing critical process level of 231, 453, for example. >> Which on a production server is nothing really --- my question is, how do >> I change that threshold level to something like 750, or 1500? >> >> Perhaps I'm not searching online for the correct term or using the right >> parlance. Any ideas where this can be modified? > > If you have a look at the options for the plugin (hint: ./plugin > --help), they will reveal their secrets to you. :) > > Then, using that knowledge, you can adjust your service check to > use the appropriate values for your environment. > > Benny > Hey Benny. I had another question regarding adjusting these thresholds, this time on localhost. It regards the Current Load parameter, which is giving me a Critical Load average of -- 2.47, 3.43, and 4.06 in localhost.cfg, /usr/local/nagios/etc/objects/localhost.cfg, I have this define service{ use local-service ; Name of service template to use host_name localhost service_description Current Load check_command check_local_load!5.0,4.0,3.0!10.0,6.0,4.0 } which I actually went and adjusted to : check_command check_local_load!7.0,4.0,3.0!10.0,6.0,4.0 I restarted the Nagios service..but this didn't have any effect -- the status information still reads the same -- Critical Load Average - 2.47, 3.43, 4.06 Is there something else I'm missing? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ray at ganymede.org Sat Nov 20 01:30:18 2010 From: ray at ganymede.org (Ray Kiddy) Date: Fri, 19 Nov 2010 16:30:18 -0800 Subject: combining more than one status.dat file... Message-ID: <5090318F-F277-4275-8571-198F064B2CF4@ganymede.org> I have an idea on how to get a sort of distributed nagios to work. It actually seems simple. MaybeI am not seeing something. Maybe someone here knows a reason this will not work. I have a nagios server here. It is watching some things in about a dozen data centers around the world. There is a nagios running in China and another one running in Ankara, as well. I want to see, in one interface, how all three of these nagios servers see things. I think I should be able to take the status.dat here, take the status.dat from Ankara (with a "_tr" added to the service names), take the status.dat from China (with a "_cn" added to the names of the services), and put these all three together into the one status.dat file here. I figure I have to do it in such a way that I do not get into a race condition with the nagios server itself, but other than that, what is the problem with this? I had asked for this kind of thing before. With our nagios server, we can see if the cn servers are up, but we care a lot more about whether the cn servers are up for the cn customers. It does not matter how the CN-US link is behaving. So, if the cn servers look to be down, but Ankara can see them, we know there is no problem. This just seems to be a really simple way to get this. But, given the complexities of some of discussions about this stuff, I am dubious. If it was this simple, it would be documented, and even talked about, no? I am sure I am not the only one who wants this. Any thoughts? thanx - ray ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From benny at bennyvision.com Sat Nov 20 02:48:22 2010 From: benny at bennyvision.com (C. Bensend) Date: Fri, 19 Nov 2010 19:48:22 -0600 Subject: Change "Procs Critical" threshold In-Reply-To: <25788594-1EA9-44D3-9E48-CEDF4F5B735D@salon.com> References: <311029F2-8E8F-49DF-9A3F-E22465BF4233@salon.com> <362f11756be45b7b92b5088cdb3637d7.squirrel@webmail.stinkweasel.net> <25788594-1EA9-44D3-9E48-CEDF4F5B735D@salon.com> Message-ID: <8c009ac3aaca6852106dcf0971b1c825.squirrel@webmail.stinkweasel.net> > I had another question regarding adjusting these thresholds, this time on > localhost. It regards the Current Load parameter, which is giving me a > Critical Load average of -- 2.47, 3.43, and 4.06 > > in localhost.cfg, /usr/local/nagios/etc/objects/localhost.cfg, I have this > > define service{ > use local-service ; Name of > service template to use > host_name localhost > service_description Current Load > check_command > check_local_load!5.0,4.0,3.0!10.0,6.0,4.0 > } > > which I actually went and adjusted to : > > check_command check_local_load!7.0,4.0,3.0!10.0,6.0,4.0 > > I restarted the Nagios service..but this didn't have any effect -- the > status information still reads the same -- Critical Load Average - 2.47, > 3.43, 4.06 >From the help for check_load (which I'm assuming you're using in the command definition): Usage:check_load [-r] -w WLOAD1,WLOAD5,WLOAD15 -c CLOAD1,CLOAD5,CLOAD15 So, in your service definition, you're telling check_load that you want to trigger a critical condition if the 15 minute average is 4.0. Yours is 4.06. So, yes, it's critical. :) WLOAD1 = 1 minute average warning threshold WLOAD5 = 5 minute average warning threshold WLOAD15 = 15 minute average warning threshold CLOAD1 = 1 minute average critical threshold CLOAD5 = 5 minute average critical threshold CLOAD15 = 15 minute average critical threshold If you want your 15 minute average to *not* trigger a critical, you need to adjust that last value (4.0) to something higher. Benny -- "No matter how many shorts we have in the system, my guards will be instructed to treat every surveillance camera malfunction as a full-scale emergency." -- Peter Anspach's Evil Overlord List, #67 ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rutger at blokje.net Sat Nov 20 07:08:36 2010 From: rutger at blokje.net (Rutger Blom) Date: Sat, 20 Nov 2010 07:08:36 +0100 Subject: combining more than one status.dat file... In-Reply-To: <5090318F-F277-4275-8571-198F064B2CF4@ganymede.org> References: <5090318F-F277-4275-8571-198F064B2CF4@ganymede.org> Message-ID: Hi, I would really suggest you have a look at check_mk and multisite. This Nagios addon supports having multiple Nagios servers in one management interface. http://mathias-kettner.de/checkmk_multisite.html /Rutger On Saturday, November 20, 2010, Ray Kiddy wrote: > > I have an idea on how to get a sort of distributed nagios to work. It actually seems simple. MaybeI am not seeing something. Maybe someone here knows a reason this will not work. > > I have a nagios server here. It is watching some things in about a dozen data centers around the world. There is a nagios running in China and another one running in Ankara, as well. > > I want to see, in one interface, how all three of these nagios servers see things. I think I should be able to take the status.dat here, take the status.dat from Ankara (with a "_tr" added to the service names), take the status.dat from China (with a "_cn" added to the names of the services), and put these all three together into the one status.dat file here. I figure I have to do it in such a way that I do not get into a race condition with the nagios server itself, but other than that, what is the problem with this? > > I had asked for this kind of thing before. With our nagios server, we can see if the cn servers are up, but we care a lot more about whether the cn servers are up for the cn customers. It does not matter how the CN-US link is behaving. So, if the cn servers look to be down, but Ankara can see them, we know there is no problem. > > This just seems to be a really simple way to get this. But, given the complexities of some of discussions about this stuff, I am dubious. If it was this simple, it would be documented, and even talked about, no? I am sure I am not the only one who wants this. Any thoughts? > > thanx - ray > > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ?ECMAScript5, and DOM L2 & L3. > Spend less time writing and ?rewriting code and more time creating great > experiences on the web. Be a part of the beta today > http://p.sf.net/sfu/msIE9-sfdev2dev > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Rutger Blom Luzernv?gen 14 227 38 LUND Sweden Tel. +46 763 46 99 44 www.rutgerblom.com about.me/rutgerblom ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ray at ganymede.org Sat Nov 20 21:41:56 2010 From: ray at ganymede.org (Ray Kiddy) Date: Sat, 20 Nov 2010 12:41:56 -0800 Subject: combining more than one status.dat file... In-Reply-To: References: <5090318F-F277-4275-8571-198F064B2CF4@ganymede.org> Message-ID: <70C71053-5866-4B74-AF5A-E98F34291023@ganymede.org> On Nov 19, 2010, at 10:08 PM, Rutger Blom wrote: > Hi, > > I would really suggest you have a look at check_mk and multisite. This > Nagios addon supports having multiple Nagios servers in one management > interface. > http://mathias-kettner.de/checkmk_multisite.html > > /Rutger > This seems to be a larger solution than I am seeking. I am still thinking a ten-line script that grabs some status.dat files, matches on a regex to rename services and combines the files will work. Any reason why not? - ray > On Saturday, November 20, 2010, Ray Kiddy wrote: >> >> I have an idea on how to get a sort of distributed nagios to work. It actually seems simple. MaybeI am not seeing something. Maybe someone here knows a reason this will not work. >> >> I have a nagios server here. It is watching some things in about a dozen data centers around the world. There is a nagios running in China and another one running in Ankara, as well. >> >> I want to see, in one interface, how all three of these nagios servers see things. I think I should be able to take the status.dat here, take the status.dat from Ankara (with a "_tr" added to the service names), take the status.dat from China (with a "_cn" added to the names of the services), and put these all three together into the one status.dat file here. I figure I have to do it in such a way that I do not get into a race condition with the nagios server itself, but other than that, what is the problem with this? >> >> I had asked for this kind of thing before. With our nagios server, we can see if the cn servers are up, but we care a lot more about whether the cn servers are up for the cn customers. It does not matter how the CN-US link is behaving. So, if the cn servers look to be down, but Ankara can see them, we know there is no problem. >> >> This just seems to be a really simple way to get this. But, given the complexities of some of discussions about this stuff, I am dubious. If it was this simple, it would be documented, and even talked about, no? I am sure I am not the only one who wants this. Any thoughts? >> >> thanx - ray >> >> >> ------------------------------------------------------------------------------ >> Beautiful is writing same markup. Internet Explorer 9 supports >> standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. >> Spend less time writing and rewriting code and more time creating great >> experiences on the web. Be a part of the beta today >> http://p.sf.net/sfu/msIE9-sfdev2dev >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> > > -- > Rutger Blom > Luzernv?gen 14 > 227 38 LUND > Sweden > Tel. +46 763 46 99 44 > www.rutgerblom.com > about.me/rutgerblom > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today > http://p.sf.net/sfu/msIE9-sfdev2dev > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Sunny_Jaisinghani at symantec.com Mon Nov 22 08:14:03 2010 From: Sunny_Jaisinghani at symantec.com (Sunny Jaisinghani) Date: Mon, 22 Nov 2010 12:44:03 +0530 Subject: upgrade nagios 1.4.1 to nagios 3.2.3 In-Reply-To: References: <4CDD2D14.4090305@op5.se> Message-ID: Hello, Can some help me with this doubt. If upgrading using an rpm is not advisable; could you please suggest a procedure to upgrade using the source package. I want to plan a clean risk free upgrade plan. After i backup the old configs and remove the Nagios 1.4 rpms; how do i proceed to compile the new Nagios package. Do i have to upgrade the plugins also.?? These are the rpms currently installed nagios-plugins-1.3.1-10.rhel3.dag nagios-plugins-nrpe-2.0-3.rhel3.dag nagios-nrpe-2.0-3.rhel3.dag nagios-nsca-2.4-2.rhel3.dag nagios-1.4.1-1.el3.rf Sunny Jaisinghani -----Original Message----- From: Sunny Jaisinghani [mailto:Sunny_Jaisinghani at symantec.com] Sent: 16 November 2010 11:38 To: Nagios Users List Subject: Re: [Nagios-users] upgrade nagios 1.4.1 to nagios 3.2.3 Thanks Daniel, If upgrading using an rpm is not advisable; could you please suggest a procedure to upgrade using the source package. I want to plan a clean risk free upgrade plan. After i backup the old configs and remove the Nagios 1.4 rpms; how do i proceed to compile the new Nagios package. Do i have to upgrade the plugins also.?? These are the rpms currently installed nagios-plugins-1.3.1-10.rhel3.dag nagios-plugins-nrpe-2.0-3.rhel3.dag nagios-nrpe-2.0-3.rhel3.dag nagios-nsca-2.4-2.rhel3.dag nagios-1.4.1-1.el3.rf Sunny Jaisinghani -----Original Message----- From: Daniel Tuecks [mailto:dtuecks at googlemail.com] Sent: 14 November 2010 05:46 To: Nagios Users List Subject: Re: [Nagios-users] upgrade nagios 1.4.1 to nagios 3.2.3 Upgrading from Nagios 1 to Nagios 3 will likely break your config. I wouldn't take a chance on the rpm package to do all of the needed changes to make it compatible with nagios 3.2. So doing a backup before upgrading is a wise idea. If your rpm doesn't update your config, please have a look at the following two links: http://support.nagios.com/knowledgebase/faqs/index.php?option=com_content&view=article&id=52&catid=35&faq_id=407&expand=false&showdesc=true http://nagios.sourceforge.net/docs/3_0/upgrading.html#nagios2x Daniel 2010/11/13 Sunny Jaisinghani : > > > > > > -----Original Message----- > From: Andreas Ericsson [mailto:ae at op5.se] > Sent: 12 November 2010 17:34 > To: Nagios Users List > Cc: Sunny Jaisinghani > Subject: Re: [Nagios-users] upgrade nagios 1.4.1 to nagios 3.2.3 > > On 11/12/2010 10:02 AM, Sunny Jaisinghani wrote: >> Hi, >> >> >> >> Can someone describe steps to upgrade nagios 1.4.1 to nagios 3.2.3. >> >> Currently i am monitoring over 500 hosts and 3000 services using > nagios >> 1.4.1 >> >> I am also using nsca and ocsp for nagios failover. >> >> >> >> Nagios 1.4.1 is installed using rpms >> >> >> >> nagios-plugins-1.3.1-10.rhel3.dag >> >> nagios-plugins-nrpe-2.0-3.rhel3.dag >> >> nagios-nrpe-2.0-3.rhel3.dag >> >> nagios-nsca-2.4-2.rhel3.dag >> >> nagios-1.4.1-1.el3.rf >> >> >> >> I wish to install the newer version using rpm. These are the rpms i >> found >> >> >> >> nagios-3.2.3-2.el5.rf.i386.rpm >> >> nagios-devel-3.2.3-2.el5.rf.i386.rpm >> > > RPM packages quite often contain trigger-scripts that handle > everything automagically. That might not be the case if you go > from rhel3 to rhel5 packages though. > > Make backups before you try anything. > > -- > Andreas Ericsson ? ? ? ? ? ? ? ? ? andreas.ericsson at 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. > > > Hey Andreas, > > Going to rhel 5 from rhel 3 is also in my to do list. > May be, i'll upgrade to rhel 5 before i upgrade nagios to 3.2.3 > > So, since i am gonna use the rpm, you suggest taking backups and just > upgrading the nagios packages. Right? > > Anything apart from this that i need to take care of? > > Thanks > Sunny > > ------------------------------------------------------------------------------ > Centralized Desktop Delivery: Dell and VMware Reference Architecture > Simplifying enterprise desktop deployment and management using > Dell EqualLogic storage and VMware View: A highly scalable, end-to-end > client virtualization framework. Read more! > http://p.sf.net/sfu/dell-eql-dev2dev > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Mon Nov 22 09:28:58 2010 From: ae at op5.se (Andreas Ericsson) Date: Mon, 22 Nov 2010 09:28:58 +0100 Subject: upgrade nagios 1.4.1 to nagios 3.2.3 In-Reply-To: References: <4CDD2D14.4090305@op5.se> Message-ID: <4CEA29CA.7000807@op5.se> On 11/22/2010 08:14 AM, Sunny Jaisinghani wrote: > Hello, > > Can some help me with this doubt. > > If upgrading using an rpm is not advisable; could you please suggest > a procedure to upgrade using the source package. I want to plan a > clean risk free upgrade plan. > There's plenty of documentation available online on how to upgrade from 1.x to 2.x, and plenty more for upgrading from 2.x to 3.x. I'd be surprised if there isn't also quite a bit of info on how to upgrade from 1.x to 3.x. If you want someone to hold your hand so your installation works well the entire way, you'll most likely have to pay someone, as I doubt any volunteer is likely to want to guarantee that everything will go smoothly. If I were you, I'd start with the "what's new" documents that have accompanied every major release and simply start out fresh with a new server, running "nagios -v /path/to/nagios.cfg" frequently until you've gotten your configuration Nagios 3.x compliant. Good luck. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Sunny_Jaisinghani at symantec.com Mon Nov 22 09:58:02 2010 From: Sunny_Jaisinghani at symantec.com (Sunny Jaisinghani) Date: Mon, 22 Nov 2010 14:28:02 +0530 Subject: upgrade nagios 1.4.1 to nagios 3.2.3 In-Reply-To: <4CEA29CA.7000807@op5.se> References: <4CDD2D14.4090305@op5.se> <4CEA29CA.7000807@op5.se> Message-ID: Well, it's worth to check with Nagios experts if they have a documented procedure, before i go and experiment on my production box. Also, it is obvious for anyone to search online for documents before asking for help on forums. Since, i did not find "much" information, i had to seek help from the blessed ones. May be, i need to tweak my search queries. Anyways, it seems i am on my own. I liked your last suggestion btw; i'll clone my production box and experiment on it. Sunny Jaisinghani -----Original Message----- From: Andreas Ericsson [mailto:ae at op5.se] Sent: 22 November 2010 13:59 To: Nagios Users List Cc: Sunny Jaisinghani Subject: Re: [Nagios-users] upgrade nagios 1.4.1 to nagios 3.2.3 On 11/22/2010 08:14 AM, Sunny Jaisinghani wrote: > Hello, > > Can some help me with this doubt. > > If upgrading using an rpm is not advisable; could you please suggest > a procedure to upgrade using the source package. I want to plan a > clean risk free upgrade plan. > There's plenty of documentation available online on how to upgrade from 1.x to 2.x, and plenty more for upgrading from 2.x to 3.x. I'd be surprised if there isn't also quite a bit of info on how to upgrade from 1.x to 3.x. If you want someone to hold your hand so your installation works well the entire way, you'll most likely have to pay someone, as I doubt any volunteer is likely to want to guarantee that everything will go smoothly. If I were you, I'd start with the "what's new" documents that have accompanied every major release and simply start out fresh with a new server, running "nagios -v /path/to/nagios.cfg" frequently until you've gotten your configuration Nagios 3.x compliant. Good luck. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Mon Nov 22 10:12:46 2010 From: ae at op5.se (Andreas Ericsson) Date: Mon, 22 Nov 2010 10:12:46 +0100 Subject: upgrade nagios 1.4.1 to nagios 3.2.3 In-Reply-To: References: <4CDD2D14.4090305@op5.se> <4CEA29CA.7000807@op5.se> Message-ID: <4CEA340E.804@op5.se> On 11/22/2010 09:58 AM, Sunny Jaisinghani wrote: > Well, it's worth to check with Nagios experts if they have a documented > procedure, before i go and experiment on my production box. > Also, it is obvious for anyone to search online for documents before > asking for help on forums. > Since, i did not find "much" information, i had to seek help from the > blessed ones. May be, i need to tweak my search queries. > Could be. There are two scripts floating around that can be quite helpful to modify your configuration from 1.x to 2.x. The changes between 2.x and 3.x are much less significant and touch primarily nagios.cfg, except for some host object parameters which you can almost certainly get away with setting in your templates. I can't recall the names of the scripts now (which is weird, since I wrote them), but trying +nagios +1to2 +retention +contact should at least get you started. > Anyways, it seems i am on my own. I liked your last suggestion btw; i'll > clone my production box and experiment on it. > Always a good idea. Don't forget to disable checks and/or notifications while you're experimenting. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From allanc at chickenandporn.com Mon Nov 22 10:27:43 2010 From: allanc at chickenandporn.com (Allan Clark) Date: Mon, 22 Nov 2010 01:27:43 -0800 Subject: upgrade nagios 1.4.1 to nagios 3.2.3 In-Reply-To: <4CEA340E.804@op5.se> References: <4CDD2D14.4090305@op5.se> <4CEA29CA.7000807@op5.se> <4CEA340E.804@op5.se> Message-ID: On Mon, Nov 22, 2010 at 01:12, Andreas Ericsson wrote: > On 11/22/2010 09:58 AM, Sunny Jaisinghani wrote: >> Well, it's worth to check with Nagios experts if they have a documented >> procedure, before i go and experiment on my production box. >> Also, it is obvious for anyone to search online for documents before >> asking for help on forums. >> Since, i did not find "much" information, i had to seek help from the >> blessed ones. May be, i need to tweak my search queries. >> > > Could be. There are two scripts floating around that can be quite helpful > to modify your configuration from 1.x to 2.x. The changes between 2.x and > 3.x are much less significant and touch primarily nagios.cfg, except for > some host object parameters which you can almost certainly get away with > setting in your templates. > > I can't recall the names of the scripts now (which is weird, since I wrote > them), but trying +nagios +1to2 +retention +contact should at least get you > started. > >> Anyways, it seems i am on my own. I liked your last suggestion btw; i'll >> clone my production box and experiment on it. >> > > Always a good idea. Don't forget to disable checks and/or notifications > while you're experimenting. In development self-tests (using autotest) I get a lot of mileage from "nagios -v /etc/nagios/nagios.cfg" to check that the parsing succeeds. I also get mileage form the following which catches when the upstream moves my binaries around -- it might also help you if plugins drop executables or install in a different location: define command{ command_name check_runnable command_line /usr/bin/check_runnable $USER1$/$ARG1$ } define command{ command_name check_runnable_fullpath command_line /usr/bin/check_runnable $ARG1$ } ... ... # dependency configures the on-demand running when dependent fails: if check_users fails, this dependency # causes "is it even there and runnable?" to be confirmed define servicedependency{ dependent_host_name localhost dependent_service_description Total Processes host_name localhost service_description Runnable check_users execution_failure_criteria w,c,u notification_failure_criteria w,c,u } # run twice daily -- shouldn't have execs changing too often, and really this runs when a dependent fails define service{ use bidaily-service ; Name of service template to use host_name localhost service_description Runnable check_users check_command check_runnable!check_users notifications_enabled 0 } Checking that your binaries are there may seem a bit silly, but I spent a bit long trying to see why something was failing only to see that the RPM no longer provided some executables. Defining them as dependencies means they'll only be run if the actual test fails, so they incur no load in the event of no exception, but ask as a quick check-for-existence when a failure occurs. Since you're moving versions, you may get some mileage of checking that your executables are there before and after. Allan -- allanc at chickenandporn.com? "??" http://linkedin.com/in/goldfish ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Luis.Carneiro at compsisnet.com.br Mon Nov 22 11:19:32 2010 From: Luis.Carneiro at compsisnet.com.br (=?iso-8859-1?Q?Luis_Gustavo_de_Andrade_Jord=E3o_Carneiro?=) Date: Mon, 22 Nov 2010 08:19:32 -0200 Subject: RES: CHECK_SVN In-Reply-To: References: Message-ID: <6E3EBE71CB62274F8EB78338A6CDD975020A7EEDE089@ADEXC07A.intranet.local> Don't work: Usage: check_svn [options] Tks! Luis Gustavo de A. J. Carneiro -----Mensagem original----- De: Rick Munn [mailto:rick at screenscape.net] Enviada em: sexta-feira, 19 de novembro de 2010 17:02 Para: Nagios Users List Assunto: Re: [Nagios-users] CHECK_SVN In your check_command check_svn!lcarneiro!xxxxx!/svn/aocsw_desenv Try taking out two of the three exclamation marks and putting spaces, like this: check_command check_svn!lcarneiro xxxxx /svn/aocsw_desenv Rick Rick B. Munn Operations Team ScreenScape Networks T: 902-368-1975 x329 F: 902-368-3706 E: rick at screenscape.net 2010/11/19 Luis Gustavo de Andrade Jord?o Carneiro Hello People!! Can you help me? I installed plugin check_svn in my Nagios 3.2.3. When I run check_svn using prompt, that's work. But not when Nagios running check_svn. nagiosql:~# su - nagios nagios at nagiosql:/usr/local/nagios/libexec$ ./check_svn -H 10.0.0.33 --https -U lcarneiro -P xxxx --dir /svn/aocsw_config SVN OK: svn repository online - directory listing successful But, when Service Nagios run, not work. See: SVN CRITICAL: Error connecting to svn server - OPTIONS of 'https://svnaero/svn/aocsw_desenv': Server certificate verification failed: issuer is not trusted (https://svnaero) Commands.cfg: $USER1$/check_svn -H $HOSTADDRESS$ --https -U $ARG1$ -P $ARG2$ --dir $ARG3$ Service: $ARG1$ lcarneiro $ARG2$ xxxxx $ARG2$/svn/aocsw_desenv check_command check_svn!lcarneiro!xxxxx!/svn/aocsw_desenv I already accept certificate permanent (p) using svn info . How can i know which USER run check_svn? I think this could be the problem, because i need to accept certificate to user that run check_svn. Luis Gustavo de A. J. Carneiro ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From trm.nagios at gmail.com Mon Nov 22 15:51:36 2010 From: trm.nagios at gmail.com (trm asn) Date: Mon, 22 Nov 2010 20:21:36 +0530 Subject: SLA ( service level agreement) with Nagios Message-ID: Dear List, Has anyone configured SLA with Nagios. /\ dE -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Mon Nov 22 16:04:56 2010 From: ae at op5.se (Andreas Ericsson) Date: Mon, 22 Nov 2010 16:04:56 +0100 Subject: SLA ( service level agreement) with Nagios In-Reply-To: References: Message-ID: <4CEA8698.9070909@op5.se> On 11/22/2010 03:51 PM, trm asn wrote: > Dear List, > > Has anyone configured SLA with Nagios. > Yes. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From trm.nagios at gmail.com Mon Nov 22 16:13:40 2010 From: trm.nagios at gmail.com (trm asn) Date: Mon, 22 Nov 2010 20:43:40 +0530 Subject: SLA ( service level agreement) with Nagios In-Reply-To: <4CEA8698.9070909@op5.se> References: <4CEA8698.9070909@op5.se> Message-ID: On Mon, Nov 22, 2010 at 8:34 PM, Andreas Ericsson wrote: > On 11/22/2010 03:51 PM, trm asn wrote: > > Dear List, > > > > Has anyone configured SLA with Nagios. > > > > Yes. > > -- > Andreas Ericsson andreas.ericsson at 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. > will you be able to pass any URL / idea to configure that , I am using Nagios Version 3.2.1 . /\ dE -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Mon Nov 22 16:19:38 2010 From: ae at op5.se (Andreas Ericsson) Date: Mon, 22 Nov 2010 16:19:38 +0100 Subject: SLA ( service level agreement) with Nagios In-Reply-To: References: <4CEA8698.9070909@op5.se> Message-ID: <4CEA8A0A.5070302@op5.se> On 11/22/2010 04:13 PM, trm asn wrote: > On Mon, Nov 22, 2010 at 8:34 PM, Andreas Ericsson wrote: > >> On 11/22/2010 03:51 PM, trm asn wrote: >>> Dear List, >>> >>> Has anyone configured SLA with Nagios. >>> >> >> Yes. >> >> -- >> Andreas Ericsson andreas.ericsson at 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. >> > > will you be able to pass any URL / idea to configure that , I am using > Nagios Version 3.2.1 . > > http://www.op5.org/community/plugin-inventory/op5-projects/ninja -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hsjang at gmail.com Mon Nov 22 19:45:23 2010 From: hsjang at gmail.com (HyunSung Jang) Date: Tue, 23 Nov 2010 03:45:23 +0900 Subject: scheduled downtime configuration Message-ID: dear list, every once a week, we have service maintenance day. so i want to configure scheduled downtime for all hosts and all services i tried to put * to hostname and service name field in cgi interface but it seems not work. is it possible to use asterisk character when i configure scheduled downtime? i'm using nagios 3.2.0 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Mon Nov 22 20:49:50 2010 From: jim at jimavery.me.uk (Jim Avery) Date: Mon, 22 Nov 2010 19:49:50 +0000 Subject: scheduled downtime configuration In-Reply-To: References: Message-ID: On 22 November 2010 18:45, HyunSung Jang wrote: > dear list, > every once a week, we have service maintenance day. > so i want to configure scheduled downtime for all hosts and all services > i tried to put * to hostname and service name field in cgi interface but it > seems not work. > is it possible to use asterisk character when i configure scheduled > downtime? > i'm using nagios 3.2.0 If you have all your parent relationships defined with 'localhost' the ultimate parent of everything else, then I guess you could schedule downtime for localhost and tick the box to schedule downtime for that host and all its children. I can't say I've ever tried it myself but think it should do what you want. ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From work at paul.dubuc.org Mon Nov 22 22:41:55 2010 From: work at paul.dubuc.org (Paul M. Dubuc) Date: Mon, 22 Nov 2010 16:41:55 -0500 Subject: check scheduling when checks are inhibited. Message-ID: <4CEAE3A3.903@paul.dubuc.org> We're using Nagios 3.2.3 for simulation of monitoring load in a load test environment as well as for monitoring production services. I've notices some interesting behavior in the way Nagios schedules checks when checks are inhibited either though the CGI Process Commands or by setting a check_period timeperiod that inhibits checks during regularly scheduled down times. Normally Nagios seems to spread out host and service checks evenly over time but when checks are stopped with the Process Command, Nagios seems to reschedule checks so that they are "bunched up" much closer together. This creates alternating periods of densely scheduled and more sparsely scheduled checks that seem to persist when checks are turned on again. It has a noticeable effect in our load testing. The only way--or the quickest way--to get Nagios to smooth out the schedule again is to stop the process completely until all the scheduled check times have passed. In testing Nagios monitoring of our production services, if I use the check_period to inhibit checks during our down times, I notice that as the downtime approaches, ALL checks are rescheduled for the exact time that the downtime ends (according to the check_period). This creates a big spike in monitoring activity after the downtime. One way to avoid this, I think, is to let checks run during the down times but inhibit notifications instead by using the timeperiod to define a notification_period. But I wonder if this "bunching" up of the schedule when using check_periods is ever a desirable behavior. These aren't critical issues for us since we can work around them procedurally. But I wonder if there his a way to prevent the scheduled checks from getting bunched together like this if/when you need to inhibit checks for a time while keeping Nagios running. Maybe the auto_rescheduling options in the nagios.cfg are meant to address this, but they have a potentially negative effect on performance according to the comments around them in the file. ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jwiggins at salon.com Mon Nov 22 22:58:39 2010 From: jwiggins at salon.com (Jonathan Wiggins) Date: Mon, 22 Nov 2010 13:58:39 -0800 Subject: Change "Procs Critical" threshold In-Reply-To: <8c009ac3aaca6852106dcf0971b1c825.squirrel@webmail.stinkweasel.net> References: <311029F2-8E8F-49DF-9A3F-E22465BF4233@salon.com> <362f11756be45b7b92b5088cdb3637d7.squirrel@webmail.stinkweasel.net> <25788594-1EA9-44D3-9E48-CEDF4F5B735D@salon.com> <8c009ac3aaca6852106dcf0971b1c825.squirrel@webmail.stinkweasel.net> Message-ID: On Nov 19, 2010, at 5:48 PM, C. Bensend wrote: > >> I had another question regarding adjusting these thresholds, this time on >> localhost. It regards the Current Load parameter, which is giving me a >> Critical Load average of -- 2.47, 3.43, and 4.06 >> >> in localhost.cfg, /usr/local/nagios/etc/objects/localhost.cfg, I have this >> >> define service{ >> use local-service ; Name of >> service template to use >> host_name localhost >> service_description Current Load >> check_command >> check_local_load!5.0,4.0,3.0!10.0,6.0,4.0 >> } >> >> which I actually went and adjusted to : >> >> check_command check_local_load!7.0,4.0,3.0!10.0,6.0,4.0 >> >> I restarted the Nagios service..but this didn't have any effect -- the >> status information still reads the same -- Critical Load Average - 2.47, >> 3.43, 4.06 > >> From the help for check_load (which I'm assuming you're using > in the command definition): > > Usage:check_load [-r] -w WLOAD1,WLOAD5,WLOAD15 -c CLOAD1,CLOAD5,CLOAD15 > > So, in your service definition, you're telling check_load that you > want to trigger a critical condition if the 15 minute average is 4.0. > > Yours is 4.06. So, yes, it's critical. :) > > WLOAD1 = 1 minute average warning threshold > WLOAD5 = 5 minute average warning threshold > WLOAD15 = 15 minute average warning threshold > > CLOAD1 = 1 minute average critical threshold > CLOAD5 = 5 minute average critical threshold > CLOAD15 = 15 minute average critical threshold > > If you want your 15 minute average to *not* trigger a critical, you > need to adjust that last value (4.0) to something higher. > > Benny > > That sounds logical, and this is what I've adjusted: check_command check_local_load!8.0,5.0,4.0!12.0,7.0,6.0 but I've restarted the nagios process and the alert still persists. I dont see anything in nagios.log or /var/log/messages related to this either. what could I be missing? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From AdcockJ at leoncountyfl.gov Tue Nov 23 01:52:10 2010 From: AdcockJ at leoncountyfl.gov (Jon Adcock) Date: Mon, 22 Nov 2010 19:52:10 -0500 Subject: Check For Updates Feature Message-ID: <4CEAC9EA02000075000302F4@leoncountyfl.gov> When Nagios Core 3.2.3 came out, I waited a week to see if the main landing page (main.php) would tell me that an update was available. My notification never showed up. If everything is working properly, I THINK it is supposed to display a banner on the page that says "A new version of Nagios Core is available!". I do have check_for_updates=1 and bare_update_check=0 in nagios.cfg Also, as a test, I modified the main.php file so that the line that read \\$updateinfo['update_available']=true; was changed to $updateinfo['update_available']=true; When I did that, the banner was displayed. Can you give me some ideas on where I can start troubleshooting why none of my 3 Nagios servers show when an update is available? Jon Adcock Network Systems Administrator MIS / Systems Team Leon County (850) 606-5500 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From benny at bennyvision.com Tue Nov 23 02:05:50 2010 From: benny at bennyvision.com (C. Bensend) Date: Mon, 22 Nov 2010 19:05:50 -0600 Subject: Change "Procs Critical" threshold In-Reply-To: References: <311029F2-8E8F-49DF-9A3F-E22465BF4233@salon.com> <362f11756be45b7b92b5088cdb3637d7.squirrel@webmail.stinkweasel.net> <25788594-1EA9-44D3-9E48-CEDF4F5B735D@salon.com> <8c009ac3aaca6852106dcf0971b1c825.squirrel@webmail.stinkweasel.net> Message-ID: <67479388f76786f33dbd9f857974294f.squirrel@webmail.stinkweasel.net> >> From the help for check_load (which I'm assuming you're using >> in the command definition): >> >> Usage:check_load [-r] -w WLOAD1,WLOAD5,WLOAD15 -c CLOAD1,CLOAD5,CLOAD15 >> >> So, in your service definition, you're telling check_load that you >> want to trigger a critical condition if the 15 minute average is 4.0. >> >> Yours is 4.06. So, yes, it's critical. :) >> >> WLOAD1 = 1 minute average warning threshold >> WLOAD5 = 5 minute average warning threshold >> WLOAD15 = 15 minute average warning threshold >> >> CLOAD1 = 1 minute average critical threshold >> CLOAD5 = 5 minute average critical threshold >> CLOAD15 = 15 minute average critical threshold >> >> If you want your 15 minute average to *not* trigger a critical, you >> need to adjust that last value (4.0) to something higher. >> >> Benny >> >> > > That sounds logical, and this is what I've adjusted: > check_command check_local_load!8.0,5.0,4.0!12.0,7.0,6.0 > > but I've restarted the nagios process and the alert still persists. I dont > see anything in nagios.log or /var/log/messages related to this either. > > what could I be missing? Kill your Nagios daemon. Now, kill the *other* Nagios daemon you have running. If you make changes to your config file and send Nagios a SIGHUP (or restart it) and the changes don't seem to "stick", you might have multiple Nagios daemons running, one with an old config (that still thinks 4.00 is a critical threshold), while the new daemon is receiving the changes you mean to make. This is a common issue, and it's easy to fix. Shut down your daemon via whatever method you have (service nagios stop, pkill, etc). Then, wait 30 seconds or so to allow outstanding service checks to wrap up, and see if there are still Nagios processes hanging around. If they are, kill them too. Wait another 30 seconds, rinse and repeat until there are no more Nagios processes. At that point, restart Nagios. Do your changes take affect now? Benny -- "No matter how many shorts we have in the system, my guards will be instructed to treat every surveillance camera malfunction as a full-scale emergency." -- Peter Anspach's Evil Overlord List, #67 ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From schneemann at b1-systems.de Tue Nov 23 08:54:05 2010 From: schneemann at b1-systems.de (Christian Schneemann) Date: Tue, 23 Nov 2010 08:54:05 +0100 Subject: Check For Updates Feature In-Reply-To: <4CEAC9EA02000075000302F4@leoncountyfl.gov> References: <4CEAC9EA02000075000302F4@leoncountyfl.gov> Message-ID: <201011230854.05546.schneemann@b1-systems.de> Hi, On Tuesday, November 23, 2010 01:52:10 Jon Adcock wrote: > Can you give me some ideas on where I can start troubleshooting why none > of my 3 Nagios servers show when an update is available? have you installed from source or a package from a distributor? Suse packages for example have a patch against the calling home function! Regards, Christian -- Christian Schneemann Linux Consultant & Developer Tel.: +49-175-7250665 Mail: schneemann at b1-systems.de B1 Systems GmbH Osterfeldstra?e 7 / 85088 Vohburg / http://www.b1-systems.de GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537 ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Tue Nov 23 09:50:13 2010 From: ae at op5.se (Andreas Ericsson) Date: Tue, 23 Nov 2010 09:50:13 +0100 Subject: check scheduling when checks are inhibited. In-Reply-To: <4CEAE3A3.903@paul.dubuc.org> References: <4CEAE3A3.903@paul.dubuc.org> Message-ID: <4CEB8045.8090507@op5.se> On 11/22/2010 10:41 PM, Paul M. Dubuc wrote: > We're using Nagios 3.2.3 for simulation of monitoring load in a load test > environment as well as for monitoring production services. I've notices some > interesting behavior in the way Nagios schedules checks when checks are > inhibited either though the CGI Process Commands or by setting a check_period > timeperiod that inhibits checks during regularly scheduled down times. > > Normally Nagios seems to spread out host and service checks evenly over time > but when checks are stopped with the Process Command, Nagios seems to > reschedule checks so that they are "bunched up" much closer together. This > creates alternating periods of densely scheduled and more sparsely scheduled > checks that seem to persist when checks are turned on again. It has a > noticeable effect in our load testing. The only way--or the quickest way--to > get Nagios to smooth out the schedule again is to stop the process completely > until all the scheduled check times have passed. > > In testing Nagios monitoring of our production services, if I use the > check_period to inhibit checks during our down times, I notice that as the > downtime approaches, ALL checks are rescheduled for the exact time that the > downtime ends (according to the check_period). This creates a big spike in > monitoring activity after the downtime. One way to avoid this, I think, is to > let checks run during the down times but inhibit notifications instead by > using the timeperiod to define a notification_period. But I wonder if this > "bunching" up of the schedule when using check_periods is ever a desirable > behavior. > I have some plans to make Nagios spread the checks with a randomized interleave factor so that a check scheduled to run once every 5 minutes can be run anywhere between 4m 30s and 5m 0s after it last ran. The 30 second random-spread would be the default and it would otherwise be configurable. Another thing worth looking into is to make services to the same host not run simultaneously, in case the checked server is expected to be loaded heavily it may not play nicely with 30-40 checks fired at it at once. You really should be using scheduled downtime for regular downtime though. There are pre-hacked solutions to automagically reschedule re-occurring downtime. Ninja supports it out of the box as of the latest version (or possibly latest git). > These aren't critical issues for us since we can work around them > procedurally. That's good to hear. > But I wonder if there his a way to prevent the scheduled checks > from getting bunched together like this if/when you need to inhibit checks for > a time while keeping Nagios running. Maybe the auto_rescheduling options in > the nagios.cfg are meant to address this, but they have a potentially negative > effect on performance according to the comments around them in the file. > The below text is what I'd call "educated speculation" after having thrown a quick glance at the code. I might be completely wrong, but I don't think so. Not potentially; They do have a negative sideeffect. This is because they maintain the scheduling intervals between checks stable over time by adding them to the scheduling queue all the time when they're supposed to run, but not actually executing them. So if you've scheduled downtime for 4 hours and have a default check-interval of 5 minutes, auto_rescheduling will schedule the check every 30 seconds (default) that entire time, but not actually run the check command unless it's time to do so. On the one hand, it shouldn't actually cause any major problems since it'll still do less than it would do were the checks enabled. On the other hand, it should be solveable without such hackery, but with the downside that a check executed 3 minutes before downtime started may not be executed again until a few minutes after downtime ends. That's how the auto_reschedule option works too though, if I'm reading the code correctly. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Tue Nov 23 09:55:51 2010 From: ae at op5.se (Andreas Ericsson) Date: Tue, 23 Nov 2010 09:55:51 +0100 Subject: Check For Updates Feature In-Reply-To: <201011230854.05546.schneemann@b1-systems.de> References: <4CEAC9EA02000075000302F4@leoncountyfl.gov> <201011230854.05546.schneemann@b1-systems.de> Message-ID: <4CEB8197.4050007@op5.se> On 11/23/2010 08:54 AM, Christian Schneemann wrote: > Hi, > > > On Tuesday, November 23, 2010 01:52:10 Jon Adcock wrote: >> Can you give me some ideas on where I can start troubleshooting why none >> of my 3 Nagios servers show when an update is available? > > have you installed from source or a package from a distributor? > > Suse packages for example have a patch against the calling home function! > Most dists do. Since the cgi's and the core are always from the same version, it's considered a security risk that random people can sniff the traffic and find out the version. Given the potential XSRF exploit in cmd.cgi (which was patched one day after private disclosure) that floated around about a year ago, I can't say I blame the distros. Besides. If you've installed from packages once you'll probably want to keep doing that in the future too, so "check for updates" is patched out in very nearly all programs that support it when dist packagers get busy. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From AdcockJ at leoncountyfl.gov Tue Nov 23 13:28:58 2010 From: AdcockJ at leoncountyfl.gov (Jon Adcock) Date: Tue, 23 Nov 2010 07:28:58 -0500 Subject: Check For Updates Feature In-Reply-To: <4CEB8197.4050007@op5.se> References: <4CEAC9EA02000075000302F4@leoncountyfl.gov> <201011230854.05546.schneemann@b1-systems.de> <4CEB8197.4050007@op5.se> Message-ID: <4CEB6D3A0200007500030303@leoncountyfl.gov> Andreas, In reply to Christian's question, I installed it from source (and compiled it myself). However, our Nagios systems are all running on Novell Suse Linux Enterprise Server (SLES). Jon Adcock Network Systems Administrator MIS / Systems Team Leon County (850) 606-5500 >>> Andreas Ericsson 11/23/2010 3:55 AM >>> On 11/23/2010 08:54 AM, Christian Schneemann wrote: > Hi, > > > On Tuesday, November 23, 2010 01:52:10 Jon Adcock wrote: >> Can you give me some ideas on where I can start troubleshooting why none >> of my 3 Nagios servers show when an update is available? > > have you installed from source or a package from a distributor? > > Suse packages for example have a patch against the calling home function! > Most dists do. Since the cgi's and the core are always from the same version, it's considered a security risk that random people can sniff the traffic and find out the version. Given the potential XSRF exploit in cmd.cgi (which was patched one day after private disclosure) that floated around about a year ago, I can't say I blame the distros. Besides. If you've installed from packages once you'll probably want to keep doing that in the future too, so "check for updates" is patched out in very nearly all programs that support it when dist packagers get busy. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From yu.watanabe at jp.fujitsu.com Wed Nov 24 08:28:53 2010 From: yu.watanabe at jp.fujitsu.com (Yu Watanabe) Date: Wed, 24 Nov 2010 16:28:53 +0900 Subject: UTF-8 charcterest for nagios 3.2.3 Message-ID: <201011240728.AA02849@S2007337.jp.fujitsu.com> Hello all. I would like to ask a question regarding to the charset for nagios 3.2.3. The cgi for nagios 3.2.3 seems to be not capable of UTF 8 characters, espicially Japanese characters. I find that there are Japanese patches for nagios but nagios 3.2.3 is not supported yet. If anyone has a experience of dealing with the non ascii characters on 3.2.3 , could you please share your knowledge? Thank you , Yu Watanabe ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From alex at geloet.de Wed Nov 24 21:39:44 2010 From: alex at geloet.de (Alexander Haas) Date: Wed, 24 Nov 2010 21:39:44 +0100 Subject: $HOME is not set correctly for plug-ins Message-ID: <4CED7810.70106@geloet.de> Hi Nagios users, this is my first post. I encountered a behavior I am not able to understand. Well, I guess I did understand it, but I don't know how to counter it :) When I write a plug-in for Nagios it is executed as nagios:nagios. Yet $HOME is set to "/root". My /etc/password and nagios's home-directory are ok. It works well when I log in as user nagios and execute the plug-in there. I did expect to find some attributes for command definitions to set the home directory, but I could not find any. I guess the whole thing has to do with su and the way it does (not) handle the home directory or environment in general. Currently I work around that behavior using this code: if [ "$HOME" == "/root" ] && [ "`whoami`" == "nagios" ] then HOME="/usr/local/nagios" fi But as you might guess I am not very satisfied. Thanks in advance, Alex ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From alex at geloet.de Wed Nov 24 21:50:56 2010 From: alex at geloet.de (Alexander Haas) Date: Wed, 24 Nov 2010 21:50:56 +0100 Subject: No output returned from plugin Message-ID: <4CED7AB0.8040006@geloet.de> Hi list, it's me again :) I wrote a plug-in which does work great. It works from the shell as root, from the shell as nagios and from nagios executed as plug-in. The only problem is when there is an error returned. It does not work when i execute it from nagios as a plug-in and there is an error (=> return code != 0). Every time my plug-in returns anything but zero, Nagios tells me that there is "No output returned from plugin". It does not matter if my script does output its error message on STDOUT or STDERR. Of cause there is an error message visible when I execute my plug-in from a shell. I guess there is an easy explanation? Thank you very much, Alex ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From AdcockJ at leoncountyfl.gov Wed Nov 24 22:04:19 2010 From: AdcockJ at leoncountyfl.gov (Jon Adcock) Date: Wed, 24 Nov 2010 16:04:19 -0500 Subject: $HOME is not set correctly for plug-ins In-Reply-To: <4CED7810.70106@geloet.de> References: <4CED7810.70106@geloet.de> Message-ID: <4CED378302000075000304D1@leoncountyfl.gov> Alexander, It sounds like you are saying that you login as root, then su to nagios. If that's the case, make sure that you use su - nagios The hyphen tells su to use the environmental variables of the user that you are switching to. Without using the hyphen, it continues to use the environmental variables of the base user (root in this case). Jon Adcock Network Systems Administrator MIS / Systems Team Leon County (850) 606-5500 >>> Alexander Haas 11/24/2010 3:39 PM >>> Hi Nagios users, this is my first post. I encountered a behavior I am not able to understand. Well, I guess I did understand it, but I don't know how to counter it :) When I write a plug-in for Nagios it is executed as nagios:nagios. Yet $HOME is set to "/root". My /etc/password and nagios's home-directory are ok. It works well when I log in as user nagios and execute the plug-in there. I did expect to find some attributes for command definitions to set the home directory, but I could not find any. I guess the whole thing has to do with su and the way it does (not) handle the home directory or environment in general. Currently I work around that behavior using this code: if [ "$HOME" == "/root" ] && [ "`whoami`" == "nagios" ] then HOME="/usr/local/nagios" fi But as you might guess I am not very satisfied. Thanks in advance, Alex ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stuart.browne at ausregistry.com.au Wed Nov 24 23:04:04 2010 From: stuart.browne at ausregistry.com.au (Stuart Browne) Date: Thu, 25 Nov 2010 09:04:04 +1100 Subject: No output returned from plugin In-Reply-To: <4CED7AB0.8040006@geloet.de> References: <4CED7AB0.8040006@geloet.de> Message-ID: <8CEF048B9EC83748B1517DC64EA130FB43E00381D5@off-win2003-01.ausregistrygroup.local> > -----Original Message----- > From: Alexander Haas [mailto:alex at geloet.de] > Subject: [Nagios-users] No output returned from plugin > > Hi list, > > it's me again :) > > I wrote a plug-in which does work great. It works from the shell as > root, from the shell as nagios and from nagios executed as plug-in. > > The only problem is when there is an error returned. It does not work > when i execute it from nagios as a plug-in and there is an error (=> > return code != 0). Every time my plug-in returns anything but zero, > Nagios tells me that there is "No output returned from plugin". It does > not matter if my script does output its error message on STDOUT or > STDERR. Of cause there is an error message visible when I execute my > plug-in from a shell. Nagios doesn't capture anything sent to STDERR, so make sure it is sending its output to STDOUT. Also make sure that the first line returned when an error occurs is not an empty line; an empty line is considered "No output". Perhaps you'd like to run the plugin (as nagios) when it is erroring and show us the output? > I guess there is an easy explanation? > > Thank you very much, > > Alex Stuart ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From alex at geloet.de Thu Nov 25 00:12:49 2010 From: alex at geloet.de (Alexander Haas) Date: Thu, 25 Nov 2010 00:12:49 +0100 Subject: $HOME is not set correctly for plug-ins In-Reply-To: <4CED378302000075000304D1@leoncountyfl.gov> References: <4CED7810.70106@geloet.de> <4CED378302000075000304D1@leoncountyfl.gov> Message-ID: <4CED9BF1.8090600@geloet.de> Hi Jon, thank you for getting back on me. Of course I did do a su - nagios for my tests. I fact all my console tests run fine. I think it's Nagois doing some kind of su in its internals which causes my plug-in to get a wrong $HOME inherited. The bad behavior only occurs when executed by the actual Nagios setup. Best, Alex On 24.11.2010 22:04, Jon Adcock wrote: > Alexander, > It sounds like you are saying that you login as root, then su to > nagios. If that's the case, make sure that you use su - nagios > The hyphen tells su to use the environmental variables of the user > that you are switching to. Without using the hyphen, it continues to > use the environmental variables of the base user (root in this case). > > Jon Adcock > Network Systems Administrator > MIS / Systems Team > Leon County > (850) 606-5500 > >>> Alexander Haas 11/24/2010 3:39 PM >>> > Hi Nagios users, > > this is my first post. I encountered a behavior I am not able to > understand. Well, I guess I did understand it, but I don't know how to > counter it :) > > When I write a plug-in for Nagios it is executed as nagios:nagios. Yet > $HOME is set to "/root". > > My /etc/password and nagios's home-directory are ok. It works well when > I log in as user nagios and execute the plug-in there. > > I did expect to find some attributes for command definitions to set the > home directory, but I could not find any. > > I guess the whole thing has to do with su and the way it does (not) > handle the home directory or environment in general. > > Currently I work around that behavior using this code: > if [ "$HOME" == "/root" ] && [ "`whoami`" == "nagios" ] > then > HOME="/usr/local/nagios" > fi > > But as you might guess I am not very satisfied. > > Thanks in advance, > > Alex > > ------------------------------------------------------------------------------ > Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! > Tap into the largest installed PC base & get more eyes on your game by > optimizing for Intel(R) Graphics Technology. Get started today with the > Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. > http://p.sf.net/sfu/intelisp-dev2dev > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > ------------------------------------------------------------------------------ > Increase Visibility of Your 3D Game App& Earn a Chance To Win $500! > Tap into the largest installed PC base& get more eyes on your game by > optimizing for Intel(R) Graphics Technology. Get started today with the > Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. > http://p.sf.net/sfu/intelisp-dev2dev > > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From alex at geloet.de Thu Nov 25 00:32:19 2010 From: alex at geloet.de (Alexander Haas) Date: Thu, 25 Nov 2010 00:32:19 +0100 Subject: No output returned from plugin In-Reply-To: <8CEF048B9EC83748B1517DC64EA130FB43E00381D5@off-win2003-01.ausregistrygroup.local> References: <4CED7AB0.8040006@geloet.de> <8CEF048B9EC83748B1517DC64EA130FB43E00381D5@off-win2003-01.ausregistrygroup.local> Message-ID: <4CEDA083.1030806@geloet.de> Hi Stuart, you got me on that one :) The output did in fact contain a empty new line. I did not pay very much attention to this fact because my own error messages are all single lined. But in this actual case PHP clutters STDOUT with some error messages and a IMHO very disputable new line: > someserver:~# /usr/local/nagios/libexec/check_ftp_archived_backup -S > someserver -V somevolume > > Warning: > file(/opt/backup-sites-nagios/someserver/somevolume.sitecopyrc): > failed to open stream: No such file or directory in > /usr/local/nagios/libexec/check_ftp_archived_backup.php on line 18 > Failed to load sitecopy config file > '/opt/backup-sites-nagios/someserver /somevolume.sitecopyrc'! Where the last line is my own and sole expected output. Thank you very much for your precise and narrow format description :) Alex On 24.11.2010 23:04, Stuart Browne wrote: >> -----Original Message----- >> From: Alexander Haas [mailto:alex at geloet.de] >> Subject: [Nagios-users] No output returned from plugin >> >> Hi list, >> >> it's me again :) >> >> I wrote a plug-in which does work great. It works from the shell as >> root, from the shell as nagios and from nagios executed as plug-in. >> >> The only problem is when there is an error returned. It does not work >> when i execute it from nagios as a plug-in and there is an error (=> >> return code != 0). Every time my plug-in returns anything but zero, >> Nagios tells me that there is "No output returned from plugin". It does >> not matter if my script does output its error message on STDOUT or >> STDERR. Of cause there is an error message visible when I execute my >> plug-in from a shell. > Nagios doesn't capture anything sent to STDERR, so make sure it is sending its output to STDOUT. Also make sure that the first line returned when an error occurs is not an empty line; an empty line is considered "No output". > > Perhaps you'd like to run the plugin (as nagios) when it is erroring and show us the output? > > >> I guess there is an easy explanation? >> >> Thank you very much, >> >> Alex > Stuart > > ------------------------------------------------------------------------------ > Increase Visibility of Your 3D Game App& Earn a Chance To Win $500! > Tap into the largest installed PC base& get more eyes on your game by > optimizing for Intel(R) Graphics Technology. Get started today with the > Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. > http://p.sf.net/sfu/intelisp-dev2dev > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stuart.browne at ausregistry.com.au Thu Nov 25 00:50:04 2010 From: stuart.browne at ausregistry.com.au (Stuart Browne) Date: Thu, 25 Nov 2010 10:50:04 +1100 Subject: No output returned from plugin In-Reply-To: <4CEDA083.1030806@geloet.de> References: <4CED7AB0.8040006@geloet.de> <8CEF048B9EC83748B1517DC64EA130FB43E00381D5@off-win2003-01.ausregistrygroup.local> <4CEDA083.1030806@geloet.de> Message-ID: <8CEF048B9EC83748B1517DC64EA130FB43E00382DC@off-win2003-01.ausregistrygroup.local> > -----Original Message----- > From: Alexander Haas [mailto:alex at geloet.de] > Subject: Re: [Nagios-users] No output returned from plugin > > Hi Stuart, > > you got me on that one :) > > The output did in fact contain a empty new line. I did not pay very much > attention to this fact because my own error messages are all single > lined. But in this actual case PHP clutters STDOUT with some error > messages and a IMHO very disputable new line: > > someserver:~# /usr/local/nagios/libexec/check_ftp_archived_backup -S > > someserver -V somevolume > > > > Warning: > > file(/opt/backup-sites-nagios/someserver/somevolume.sitecopyrc): > > failed to open stream: No such file or directory in > > /usr/local/nagios/libexec/check_ftp_archived_backup.php on line 18 > > Failed to load sitecopy config file > > '/opt/backup-sites-nagios/someserver /somevolume.sitecopyrc'! > Where the last line is my own and sole expected output. Yay! Be careful of bare-lines and simple line feeds in your PHP code outside of the sections. Also consider using @'s on your lines that are possibly going to fail (@file()) or wrapping the code with 'if (is_readable($file) === true&& ($string = file($file)) === true) {' type constructs. Anyway, glad I could help :) Stuart ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From harish.kasture at aressindia.net Thu Nov 25 02:58:51 2010 From: harish.kasture at aressindia.net (Harish Kasture) Date: Thu, 25 Nov 2010 07:28:51 +0530 Subject: Nagios Distributed monitoring & GUI Message-ID: <3C6EDDC72342614D8145B38779FC16FC01B18F236189@aress.aressindia.net> Hi Nagios users, We have 4 Nagios host configured which all are monitoring the same hosts(more than 300). the results from each of the 4 Nagios monitors. For example: Host : ABC.com Nag1 (IN) OK 01-21-2009 1:0:00 0d 0h 0m 0s 1/4 HTTP OK: 154 processes Nag2 (US) OK 01-21-2009 1:0:00 0d 0h 0m 0s 1/4 HTTP DOWN: 154 processes Nag3 (UK) OK 01-21-2009 1:0:00 0d 0h 0m 0s 1/4 HTTP OK: 154 processes Nag4 (CA) OK 01-21-2009 1:0:00 0d 0h 0m 0s 1/4 HTTP DOWN: 154 processes Nag1 (IN) OK 01-21-2009 1:0:00 0d 0h 0m 0s 1/4 POP OK: 154 processes Nag2 (US) OK 01-21-2009 1:0:00 0d 0h 0m 0s 1/4 POP DOWN: 154 processes Nag3 (UK) OK 01-21-2009 1:0:00 0d 0h 0m 0s 1/4 POP OK: 154 processes Nag4 (CA) OK 01-21-2009 1:0:00 0d 0h 0m 0s 1/4 POP DOWN: 154 processes Host :XYZ.com Nag1 (IN) OK 01-21-2009 1:0:00 0d 0h 0m 0s 1/4 SSH OK: 154 processes Nag2 (US) OK 01-21-2009 1:0:00 0d 0h 0m 0s 1/4 SSH DOWN: 154 processes Nag3 (UK) OK 01-21-2009 1:0:00 0d 0h 0m 0s 1/4 SSH OK: 154 processes Nag4 (CA) OK 01-21-2009 1:0:00 0d 0h 0m 0s 1/4 SSH DOWN: 154 processes and so on. We have setup NSCA and send_nsca between Nag1 and Nag2, which is showing the passive check results in the Nag1 event log. We can further setup the send_nsca on Nag3 and Nag4, but before that we want to achieve the above formatted output at Nag1 for Nag2. Pleas let us know the best solution to achieve this scenario. -- Best Regards, Harish Kasture ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From harish.kasture at aressindia.net Thu Nov 25 03:43:12 2010 From: harish.kasture at aressindia.net (Harish) Date: Thu, 25 Nov 2010 02:43:12 +0000 (UTC) Subject: Nagios Distributed monitoring & GUI References: <3C6EDDC72342614D8145B38779FC16FC01B18F236189@aress.aressindia.net> Message-ID: Hi Nagios users, We have 4 Nagios host configured which all are monitoring the same hosts(more than 300). We want to see the results from each of the 4 Nagios monitors in below given format or similar. For example: Host : ABC.com Nag1 (IN)OK 01-21-2009 1:0:00 0d 0h 0m 0s 1/4 HTTP OK: 154 processes Nag2 (US)OK 01-21-2009 1:0:00 0d 0h 0m 0s 1/4 HTTP DOWN: 154 processes Nag3 (UK)OK 01-21-2009 1:0:00 0d 0h 0m 0s 1/4 HTTP OK: 154 processes Nag4 (CA)OK 01-21-2009 1:0:00 0d 0h 0m 0s 1/4 HTTP DOWN: 154 processes Nag1 (IN)OK 01-21-2009 1:0:00 0d 0h 0m 0s 1/4 POP OK: 154 processes Nag2 (US)OK 01-21-2009 1:0:00 0d 0h 0m 0s 1/4 POP DOWN: 154 processes Nag3 (UK)OK 01-21-2009 1:0:00 0d 0h 0m 0s 1/4 POP OK: 154 processes Nag4 (CA)OK 01-21-2009 1:0:00 0d 0h 0m 0s 1/4 POP DOWN: 154 processes Host :XYZ.com Nag1 (IN) OK 01-21-2009 1:0:00 0d 0h 0m 0s 1/4 SSH OK: 154 processes Nag2 (US) OK 01-21-2009 1:0:00 0d 0h 0m 0s 1/4 SSH DOWN: 154 processes Nag3 (UK) OK 01-21-2009 1:0:00 0d 0h 0m 0s 1/4 SSH OK: 154 processes Nag4 (CA) OK 01-21-2009 1:0:00 0d 0h 0m 0s 1/4 SSH DOWN: 154 processes and so on. We have setup NSCA and send_nsca between Nag1 and Nag2, which is showing the passive check results in the Nag1 event log. We can further setup the send_nsca on Nag3 and Nag4, but before that we want to achieve the above formatted output at Nag1 for Nag2. Pleas let us know the best solution to achieve this scenario. -- Best Regards, Harish Kasture ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From harish.kasture at aressindia.net Thu Nov 25 03:44:00 2010 From: harish.kasture at aressindia.net (Harish Kasture) Date: Thu, 25 Nov 2010 08:14:00 +0530 Subject: Nagios Distributed monitoring & GUI In-Reply-To: <3C6EDDC72342614D8145B38779FC16FC01B18F236189@aress.aressindia.net> References: <3C6EDDC72342614D8145B38779FC16FC01B18F236189@aress.aressindia.net> Message-ID: <3C6EDDC72342614D8145B38779FC16FC01B18F23618A@aress.aressindia.net> Hi Nagios users, We have 4 Nagios host configured which all are monitoring the same hosts(more than 300). What I want is that, the Nag1 would show not just the local Nagios result but the result from each of the 4 Nagios monitors, or at the very least a link to each result (possibly at status.cgi page). We want to see the results from each of the 4 Nagios monitors to Nag1 in below given format or similar. (You can say this as combined results using single interface) For example: Host : ABC.com Nag1 (IN) OK 01-21-2009 1:0:00 0d 0h 0m 0s 1/4 HTTP OK: 154 processes Nag2 (US) OK 01-21-2009 1:0:00 0d 0h 0m 0s 1/4 HTTP DOWN: 154 processes Nag3 (UK) OK 01-21-2009 1:0:00 0d 0h 0m 0s 1/4 HTTP OK: 154 processes Nag4 (CA) OK 01-21-2009 1:0:00 0d 0h 0m 0s 1/4 HTTP DOWN: 154 processes Nag1 (IN) OK 01-21-2009 1:0:00 0d 0h 0m 0s 1/4 POP OK: 154 processes Nag2 (US) OK 01-21-2009 1:0:00 0d 0h 0m 0s 1/4 POP DOWN: 154 processes Nag3 (UK) OK 01-21-2009 1:0:00 0d 0h 0m 0s 1/4 POP OK: 154 processes Nag4 (CA) OK 01-21-2009 1:0:00 0d 0h 0m 0s 1/4 POP DOWN: 154 processes Host :XYZ.com Nag1 (IN) OK 01-21-2009 1:0:00 0d 0h 0m 0s 1/4 SSH OK: 154 processes Nag2 (US) OK 01-21-2009 1:0:00 0d 0h 0m 0s 1/4 SSH DOWN: 154 processes Nag3 (UK) OK 01-21-2009 1:0:00 0d 0h 0m 0s 1/4 SSH OK: 154 processes Nag4 (CA) OK 01-21-2009 1:0:00 0d 0h 0m 0s 1/4 SSH DOWN: 154 processes and so on. We have setup NSCA and send_nsca between Nag1 and Nag2, which is showing the passive check results in the Nag1 event log. We can further setup the send_nsca on Nag3 and Nag4, but before that we want to achieve the above formatted output at Nag1 for Nag2. Pleas let us know the best solution to achieve this scenario. -- Best Regards, Harish Kasture ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From roets.marius at gmail.com Thu Nov 25 10:15:16 2010 From: roets.marius at gmail.com (Marius Roets) Date: Thu, 25 Nov 2010 11:15:16 +0200 Subject: No output returned from plugin In-Reply-To: <8CEF048B9EC83748B1517DC64EA130FB43E00381D5@off-win2003-01.ausregistrygroup.local> References: <4CED7AB0.8040006@geloet.de> <8CEF048B9EC83748B1517DC64EA130FB43E00381D5@off-win2003-01.ausregistrygroup.local> Message-ID: Hi everybody, On Thu, Nov 25, 2010 at 12:04 AM, Stuart Browne < stuart.browne at ausregistry.com.au> wrote: > > -----Original Message----- > > From: Alexander Haas [mailto:alex at geloet.de] > > Subject: [Nagios-users] No output returned from plugin > > > > Hi list, > > > > it's me again :) > > > > I wrote a plug-in which does work great. It works from the shell as > > root, from the shell as nagios and from nagios executed as plug-in. > > > > The only problem is when there is an error returned. It does not work > > when i execute it from nagios as a plug-in and there is an error (=> > > return code != 0). Every time my plug-in returns anything but zero, > > Nagios tells me that there is "No output returned from plugin". It does > > not matter if my script does output its error message on STDOUT or > > STDERR. Of cause there is an error message visible when I execute my > > plug-in from a shell. > > Nagios doesn't capture anything sent to STDERR, so make sure it is sending > its output to STDOUT. Also make sure that the first line returned when an > error occurs is not an empty line; an empty line is considered "No output". > > Perhaps you'd like to run the plugin (as nagios) when it is erroring and > show us the output? > > > I was just about to ask the same question, when this thread appeared. I have exactly the same problem. In my case it is a Python script. The output is fine for the OK state, but missing for other states. I have confirmed: 1) It writes to STDOUT 2) There is no space or black line in the output 3) It works when run from the command line as nagios in the error state Any suggestions? Regards Marius -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Thu Nov 25 11:39:56 2010 From: ae at op5.se (Andreas Ericsson) Date: Thu, 25 Nov 2010 11:39:56 +0100 Subject: $HOME is not set correctly for plug-ins In-Reply-To: <4CED9BF1.8090600@geloet.de> References: <4CED7810.70106@geloet.de> <4CED378302000075000304D1@leoncountyfl.gov> <4CED9BF1.8090600@geloet.de> Message-ID: <4CEE3CFC.1010004@op5.se> On 11/25/2010 12:12 AM, Alexander Haas wrote: > Hi Jon, > > thank you for getting back on me. Of course I did do a su - nagios for > my tests. I fact all my console tests run fine. I think it's Nagois > doing some kind of su in its internals which causes my plug-in to get a > wrong $HOME inherited. The bad behavior only occurs when executed by the > actual Nagios setup. > Nagios just drops privileges. It doesn't handle parsing environment variables already set by the user. And for all it knows, it could be wrong if it tries to do so. You could set whatever vars you want in /etc/sysconfig/nagios though and have them work properly for every check Nagios runs. You can use shell from there, so HOME=~nagios would be perfectly valid. The /etc/sysconfig thing only works on reasonably recent versions of Nagios btw, but setting the vars in the init-script would have much the same effect. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Luis.Carneiro at compsisnet.com.br Thu Nov 25 13:54:19 2010 From: Luis.Carneiro at compsisnet.com.br (=?iso-8859-1?Q?Luis_Gustavo_de_Andrade_Jord=E3o_Carneiro?=) Date: Thu, 25 Nov 2010 10:54:19 -0200 Subject: RES: RES: CHECK_SVN In-Reply-To: <6E3EBE71CB62274F8EB78338A6CDD975020A7EEDE089@ADEXC07A.intranet.local> References: <6E3EBE71CB62274F8EB78338A6CDD975020A7EEDE089@ADEXC07A.intranet.local> Message-ID: <6E3EBE71CB62274F8EB78338A6CDD9750211DFB185FC@ADEXC07A.intranet.local> I dont understand whats hapened. With user nagios work. Luis Gustavo de A. J. Carneiro -----Mensagem original----- De: Luis Gustavo de Andrade Jord?o Carneiro [mailto:Luis.Carneiro at compsisnet.com.br] Enviada em: segunda-feira, 22 de novembro de 2010 08:20 Para: 'Nagios Users List' Assunto: [Nagios-users] RES: CHECK_SVN Don't work: Usage: check_svn [options] Tks! Luis Gustavo de A. J. Carneiro -----Mensagem original----- De: Rick Munn [mailto:rick at screenscape.net] Enviada em: sexta-feira, 19 de novembro de 2010 17:02 Para: Nagios Users List Assunto: Re: [Nagios-users] CHECK_SVN In your check_command check_svn!lcarneiro!xxxxx!/svn/aocsw_desenv Try taking out two of the three exclamation marks and putting spaces, like this: check_command check_svn!lcarneiro xxxxx /svn/aocsw_desenv Rick Rick B. Munn Operations Team ScreenScape Networks T: 902-368-1975 x329 F: 902-368-3706 E: rick at screenscape.net 2010/11/19 Luis Gustavo de Andrade Jord?o Carneiro Hello People!! Can you help me? I installed plugin check_svn in my Nagios 3.2.3. When I run check_svn using prompt, that's work. But not when Nagios running check_svn. nagiosql:~# su - nagios nagios at nagiosql:/usr/local/nagios/libexec$ ./check_svn -H 10.0.0.33 --https -U lcarneiro -P xxxx --dir /svn/aocsw_config SVN OK: svn repository online - directory listing successful But, when Service Nagios run, not work. See: SVN CRITICAL: Error connecting to svn server - OPTIONS of 'https://svnaero/svn/aocsw_desenv': Server certificate verification failed: issuer is not trusted (https://svnaero) Commands.cfg: $USER1$/check_svn -H $HOSTADDRESS$ --https -U $ARG1$ -P $ARG2$ --dir $ARG3$ Service: $ARG1$ lcarneiro $ARG2$ xxxxx $ARG2$/svn/aocsw_desenv check_command check_svn!lcarneiro!xxxxx!/svn/aocsw_desenv I already accept certificate permanent (p) using svn info . How can i know which USER run check_svn? I think this could be the problem, because i need to accept certificate to user that run check_svn. Luis Gustavo de A. J. Carneiro ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Deborah.Martin at Kognitio.com Thu Nov 25 15:51:32 2010 From: Deborah.Martin at Kognitio.com (Deborah Martin) Date: Thu, 25 Nov 2010 14:51:32 -0000 Subject: Differences of certain parameters set in Nagios.cfg Message-ID: <84836290D5AD43418C40DCF0C4A54ED3038B7B0D@kogex02.pmpl.co.uk> Folks, I'm running nagios 3.2.2 on SLES 10 SP2 # HOST AND SERVICE PERFORMANCE DATA PROCESSING COMMANDS # These commands are run after every host and service check is # performed. These commands are executed only if the # enable_performance_data option (above) is set to 1. The command # argument is the short name of a command definition that you # define in your host configuration file. Read the HTML docs for # more information on performance data. service_perfdata_command= and # HOST AND SERVICE PERFORMANCE DATA FILE PROCESSING COMMANDS # These commands are used to periodically process the host and # service performance data files. The interval at which the # processing occurs is determined by the options above. service_perfdata_file_processing_command= I'm using the parameter "service_perfdata_file_processing_command" to process performance data for pnp4nagios. The first parameter "service_perfdata_command" is commented out. But could I still use that first parameter? It would solve a big issue I'm having if I could use it as I need to keep a legacy set of performance data for reports at the same time as being able to graph a a subset of the same data. Any help / pointers would be much appreciated. Thanks, 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 *************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev -------------- next part -------------- _______________________________________________ Nagios-devel mailing list Nagios-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-devel From alex at geloet.de Thu Nov 25 21:18:21 2010 From: alex at geloet.de (Alexander Haas) Date: Thu, 25 Nov 2010 21:18:21 +0100 Subject: $HOME is not set correctly for plug-ins In-Reply-To: <4CEE3CFC.1010004@op5.se> References: <4CED7810.70106@geloet.de> <4CED378302000075000304D1@leoncountyfl.gov> <4CED9BF1.8090600@geloet.de> <4CEE3CFC.1010004@op5.se> Message-ID: <4CEEC48D.2080208@geloet.de> On 25.11.2010 11:39, Andreas Ericsson wrote: > On 11/25/2010 12:12 AM, Alexander Haas wrote: >> I think it's Nagois >> doing some kind of su in its internals which causes my plug-in to get a >> wrong $HOME inherited. The bad behavior only occurs when executed by the >> actual Nagios setup. > Nagios just drops privileges. It doesn't handle parsing environment > variables already set by the user. And for all it knows, it could > be wrong if it tries to do so. > > You could set whatever vars you want in /etc/sysconfig/nagios though > and have them work properly for every check Nagios runs. You can use > shell from there, so > HOME=~nagios > would be perfectly valid. > > The /etc/sysconfig thing only works on reasonably recent versions of > Nagios btw, but setting the vars in the init-script would have much > the same effect. So this is an expected behavior for every privileges dropping daemon? Well, I can live with the workaround for now. And I don't understand your recommendations: /etc/sysconfig sounds like a SuSE/Yast concept to me. I use Debian. I don't know if the init-script would be the right place. If I understand it correctly, "$NagiosBin -d $NagiosCfgFile" does start the daemon. So Nagios drops the privileges itself. Therefore I would need a "HOME=~nagios" before I start the daemon and a "HOME=~" right after it. I do not know if there is any other impact on other parts of Nagios (ofc there _should_ not be any ;). So I think the most clean way to go is my workaround in the script itself. At least it will work stable for any upgrades because I do not need to touch distributed files. I wonder why there is no better way to go. Some file executed before and after every plug-in or anything like that would be great for a whole bouquet of possibilities. My Nagios is rather old (2.4). Thank you for confirming my assumptions about what is happening, Alex ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From malarie at processia.com Thu Nov 25 21:29:30 2010 From: malarie at processia.com (Maxime Alarie) Date: Thu, 25 Nov 2010 15:29:30 -0500 Subject: Problem with External Commands and Nagios 3 Message-ID: <62F2034CF68DFB45BAA4FB7466782DDC019456A4@denali.processia2003.com> Good day, This is my 1st post, and I am also new to nagios. I have installed Nagios3 on a Ubuntu Server VM, and I am learning it. I have installed Nagios3, a with the nsclient on my own Windows laptop as well. I can see my laptop is UP on the Nagios3's web inrterface, but that's about it.. The way I have cretaed my config file for my laptop is by copying the localhost_nagios2.cfg file, then replaced 127.0.0.1 by my IP and localhost by my hostname, and renamed the file to penang_nagios2.cfg When I go to the interface, I select my laptop on the list and then click Re-schedule the next check of this host.. I get this error message: Error: Could not stat() command file '/var/lib/nagios3/rw/nagios.cmd'! The external command file may be missing, Nagios may not be running, and/or Nagios may not be checking external commands. An error occurred while attempting to commit your command for processing. Any help would be apreciated. Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nagios at flatto.net Thu Nov 25 23:02:22 2010 From: nagios at flatto.net (Assaf Flatto) Date: Thu, 25 Nov 2010 22:02:22 +0000 Subject: Problem with External Commands and Nagios 3 In-Reply-To: <62F2034CF68DFB45BAA4FB7466782DDC019456A4@denali.processia2003.com> References: <62F2034CF68DFB45BAA4FB7466782DDC019456A4@denali.processia2003.com> Message-ID: <4CEEDCEE.2020901@flatto.net> Hello and Welcome . first advice - start here http://nagios.sourceforge.net/docs/3_0/beginners.html And then try this one : http://nagios.sourceforge.net/docs/3_0/monitoring-windows.html these should get you started. Assaf Maxime Alarie wrote: > Good day, > > This is my 1^st post, and I am also new to nagios. > > I have installed Nagios3 on a Ubuntu Server VM, and I am learning it. > I have installed Nagios3, a with the nsclient on my own Windows laptop > as well. > > I can see my laptop is UP on the Nagios3?s web inrterface, but that?s > about it.. The way I have cretaed my config file for my laptop is by > copying the /localhost_nagios2.cfg/ file, then replaced 127.0.0.1 by > my IP and localhost by my hostname, and renamed the file to > /penang_nagios2.cfg/ > > When I go to the interface, I select my laptop on the list and then > click _Re-schedule the next check of this host_.. I get this error > message: > > *Error: Could not stat() command file '/var/lib/nagios3/rw/nagios.cmd'!* > > *The external command file may be missing, Nagios may not be running, > and/or Nagios may not be checking external commands.* > > *An error occurred while attempting to commit your command for > processing.* > > Any help would be apreciated. > > Regards > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! > Tap into the largest installed PC base & get more eyes on your game by > optimizing for Intel(R) Graphics Technology. Get started today with the > Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. > http://p.sf.net/sfu/intelisp-dev2dev > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Never,Ever Cut A Deal With a Dragon Next year I will be doing the London to Paris bike ride to raise money for the DogTrust (www.dogstrust.co.uk) . Please Sponsor me at http://www.justgiving.com/Assaf-Flatto ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From malarie at processia.com Thu Nov 25 23:05:50 2010 From: malarie at processia.com (Maxime Alarie) Date: Thu, 25 Nov 2010 17:05:50 -0500 Subject: Problem with External Commands and Nagios 3 In-Reply-To: <4CEEDCEE.2020901@flatto.net> References: <62F2034CF68DFB45BAA4FB7466782DDC019456A4@denali.processia2003.com> <4CEEDCEE.2020901@flatto.net> Message-ID: <62F2034CF68DFB45BAA4FB7466782DDC019456BA@denali.processia2003.com> Thanks for the reply, the problem I had was due to a bug. It is now fixed. -----Original Message----- From: Assaf Flatto [mailto:nagios at flatto.net] Sent: 25 November 2010 17:02 To: Nagios Users List Subject: Re: [Nagios-users] Problem with External Commands and Nagios 3 Hello and Welcome . first advice - start here http://nagios.sourceforge.net/docs/3_0/beginners.html And then try this one : http://nagios.sourceforge.net/docs/3_0/monitoring-windows.html these should get you started. Assaf Maxime Alarie wrote: > Good day, > > This is my 1^st post, and I am also new to nagios. > > I have installed Nagios3 on a Ubuntu Server VM, and I am learning it. > I have installed Nagios3, a with the nsclient on my own Windows laptop > as well. > > I can see my laptop is UP on the Nagios3's web inrterface, but that's > about it.. The way I have cretaed my config file for my laptop is by > copying the /localhost_nagios2.cfg/ file, then replaced 127.0.0.1 by > my IP and localhost by my hostname, and renamed the file to > /penang_nagios2.cfg/ > > When I go to the interface, I select my laptop on the list and then > click _Re-schedule the next check of this host_.. I get this error > message: > > *Error: Could not stat() command file '/var/lib/nagios3/rw/nagios.cmd'!* > > *The external command file may be missing, Nagios may not be running, > and/or Nagios may not be checking external commands.* > > *An error occurred while attempting to commit your command for > processing.* > > Any help would be apreciated. > > Regards > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------ ------ > Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! > Tap into the largest installed PC base & get more eyes on your game by > optimizing for Intel(R) Graphics Technology. Get started today with the > Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. > http://p.sf.net/sfu/intelisp-dev2dev > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Never,Ever Cut A Deal With a Dragon Next year I will be doing the London to Paris bike ride to raise money for the DogTrust (www.dogstrust.co.uk) . Please Sponsor me at http://www.justgiving.com/Assaf-Flatto ------------------------------------------------------------------------ ------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stuart.browne at ausregistry.com.au Thu Nov 25 23:14:23 2010 From: stuart.browne at ausregistry.com.au (Stuart Browne) Date: Fri, 26 Nov 2010 09:14:23 +1100 Subject: No output returned from plugin In-Reply-To: References: <4CED7AB0.8040006@geloet.de> <8CEF048B9EC83748B1517DC64EA130FB43E00381D5@off-win2003-01.ausregistrygroup.local> Message-ID: <8CEF048B9EC83748B1517DC64EA130FB43E0038521@off-win2003-01.ausregistrygroup.local> > > Perhaps you'd like to run the plugin (as nagios) when it is erroring > > and show us the output? > > I was just about to ask the same question, when this thread appeared. I > have exactly the same problem. In my case it is a Python script. The > output is fine for the OK state, but missing for other states. I have > confirmed: > 1) It writes to STDOUT > 2) There is no space or black line in the output > 3) It works when run from the command line as nagios in the error state > > Any suggestions? > > Regards > Marius Same as above. Show us what it says / does when it errors from the command line. Redirect STDERR to /dev/null and just show us the STDOUT. Stuart ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From flyinvap at kabano.net Thu Nov 25 23:03:42 2010 From: flyinvap at kabano.net (Flyinvap) Date: Thu, 25 Nov 2010 23:03:42 +0100 Subject: Problem with External Commands and Nagios 3 In-Reply-To: <62F2034CF68DFB45BAA4FB7466782DDC019456A4@denali.processia2003.com> References: <62F2034CF68DFB45BAA4FB7466782DDC019456A4@denali.processia2003.com> Message-ID: <4CEEDD3E.4010703@kabano.net> Le 25/11/2010 21:29, Maxime Alarie a ?crit : > Any help would be apreciated. You're web server can't access /var/lib/nagios3/rw/nagios.cmd. Change permissions on the file and directory. You're web server have to write in this file. Read the doc Luke [0] or [1]. [0] http://nagios.sourceforge.net/docs/3_0/extcommands.html [1] http://memotechnique.blogspot.com/2009/03/nagios-permettre-commandes-externes.html -- Fly ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Nov 26 08:41:05 2010 From: ae at op5.se (Andreas Ericsson) Date: Fri, 26 Nov 2010 08:41:05 +0100 Subject: $HOME is not set correctly for plug-ins In-Reply-To: <4CEEC48D.2080208@geloet.de> References: <4CED7810.70106@geloet.de> <4CED378302000075000304D1@leoncountyfl.gov> <4CED9BF1.8090600@geloet.de> <4CEE3CFC.1010004@op5.se> <4CEEC48D.2080208@geloet.de> Message-ID: <4CEF6491.7020209@op5.se> On 11/25/2010 09:18 PM, Alexander Haas wrote: > On 25.11.2010 11:39, Andreas Ericsson wrote: >> On 11/25/2010 12:12 AM, Alexander Haas wrote: >>> I think it's Nagois >>> doing some kind of su in its internals which causes my plug-in to get a >>> wrong $HOME inherited. The bad behavior only occurs when executed by the >>> actual Nagios setup. >> Nagios just drops privileges. It doesn't handle parsing environment >> variables already set by the user. And for all it knows, it could >> be wrong if it tries to do so. >> >> You could set whatever vars you want in /etc/sysconfig/nagios though >> and have them work properly for every check Nagios runs. You can use >> shell from there, so >> HOME=~nagios >> would be perfectly valid. >> >> The /etc/sysconfig thing only works on reasonably recent versions of >> Nagios btw, but setting the vars in the init-script would have much >> the same effect. > So this is an expected behavior for every privileges dropping daemon? > Yes. Most of them don't run a ton of other programs though. > Well, I can live with the workaround for now. It's not a "workaround for now". It's something you'll have to use more or less indefinitely if you want to be able to use $HOME from plugins. > And I don't understand > your recommendations: /etc/sysconfig sounds like a SuSE/Yast concept to > me. I use Debian. It's where daemons init-files can source in extra parameters for the daemon to use before actually launching the daemon. It's the typical place to set up basic shell environment things. If debian doesn't have it, it will have something like it, or you should simply complain to debian. > I don't know if the init-script would be the right > place. If I understand it correctly, "$NagiosBin -d $NagiosCfgFile" does > start the daemon. So Nagios drops the privileges itself. Therefore I > would need a "HOME=~nagios" before I start the daemon and a "HOME=~" > right after it. No, you would not. A simple "HOME=~nagios $NagiosBin -d $NagiosCfgFile" would set HOME to ~nagios for only that process. Besides, if you want environment variables you set to be inherited by the parent process, you need to export them. > I do not know if there is any other impact on other > parts of Nagios (ofc there _should_ not be any ;). So I think the most > clean way to go is my workaround in the script itself. At least it will > work stable for any upgrades because I do not need to touch distributed > files. > Everything that reads the $HOME environment variable. Nothing in Nagios core anyways. > I wonder why there is no better way to go. Some file executed before and > after every plug-in or anything like that would be great for a whole > bouquet of possibilities. > And it would also be horrible for performance, but you can make that happen if you want. Just write a nebmodule for it. > My Nagios is rather old (2.4). > Ouch. Any particular reason why you're not at least on the latest 2.x version? > Thank you for confirming my assumptions about what is happening, > You're welcome. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Christian.Mies at it-novum.com Fri Nov 26 10:40:13 2010 From: Christian.Mies at it-novum.com (Mies, Christian) Date: Fri, 26 Nov 2010 10:40:13 +0100 Subject: nsclient.org ? Message-ID: Hi List, I've tried to download the last nightly Build of nsclient++. But the last file is from January 2010. Any ideas / information what happens to the Website? Regards, Christian i.A. Christian Mies Senior Consultant Tel: +49 (661) 103-874 (-333) Fax: +49 (661) 103-17874 (-334) mailto:Christian.Mies at it-novum.com it-novum GmbH . Edelzeller Strasse 44 . 36043 Fulda . http://www.it-novum.com Handelsregister Amtsgericht Fulda, HRB 1934 . Geschaftsfuhrer: Michael Kienle . Sitz der Gesellschaft: Fulda Der Inhalt dieser E-Mail ist vertraulich. Wenn Sie nicht der eigentliche Empfaenger sein sollten, informieren Sie bitte sofort den Absender oder vernichten umgehend diese Mail. Jegliche unerlaubte Vervielfaeltigung oder Weiterleitung dieser Mail ist strengstens verboten. This e-mail may contain confidential and/or priviledged information. If you are not the intended recepient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of material in this e-mail is strictly forbidden. ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From MarkL at lmfj.com Fri Nov 26 14:26:25 2010 From: MarkL at lmfj.com (Mark A. Lappin) Date: Fri, 26 Nov 2010 07:26:25 -0600 Subject: checking windows processes Message-ID: <0227B653B3DC82438B8291BC5218612F6737532FE6@lmfjex07.lmfj.com> Good Morning! I guess I'm trying to do something "weird" since I've not been able to find an example (yet). I have some Windows hosts where I need them to stay logged in and running various "things" - for software not written to run as a service. Easy enough, if explorer.exe is not running (along with the other processes I have service checks for, I get errors and notifications. Other systems however, should not be logged in, and for various reasons, sometimes get left logged in if somebody just disconnects their RDP session without logging off or doesn't log off the local console. I need a check for the "OK" state to be if explorer.exe is not running and for the error state to be if explorer.exe IS running. Below are the two definitions, pretty much straight out of the default example configuration files which I modified just slightly. I'm not sure where I got the "=stopped" on my check_command from, its been a while since I've modified anything in Nagios until this week. Any ideas somebody would be willing to share would be greatly appreciated! define service{ use generic-service hostgroups windows-servers service_description Explorer check_command check_nt!PROCSTATE!-d SHOWALL -l "Explorer.exe"=stopped } define command{ command_name check_nt command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -s nagios12345 -v $ARG1$ $ARG2$ } --Mark Mark A. Lappin, CCNA, MCITP: Enterprise Administrator | Lee Michaels Fine Jewelry Director of Information Technology 11314 Cloverland Ave | Baton Rouge, LA 70809 Ph: 225.291.9094 ext 245 | Fax: 225.368.3675 | Mobile: 225-362-2770 www.lmfj.com This communication is privileged and confidential. If you are not the intended recipient, please notify the sender by reply e-mail and destroy all copies of this communication . ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nagios at flatto.net Fri Nov 26 14:55:45 2010 From: nagios at flatto.net (Assaf Flatto) Date: Fri, 26 Nov 2010 13:55:45 +0000 Subject: checking windows processes In-Reply-To: <0227B653B3DC82438B8291BC5218612F6737532FE6@lmfjex07.lmfj.com> References: <0227B653B3DC82438B8291BC5218612F6737532FE6@lmfjex07.lmfj.com> Message-ID: <4CEFBC61.4040406@flatto.net> On 26/11/10 13:26, Mark A. Lappin wrote: > Good Morning! > > I guess I'm trying to do something "weird" since I've not been able to find an example (yet). I have some Windows hosts where I need them to stay logged in and running various "things" - for software not written to run as a service. Easy enough, if explorer.exe is not running (along with the other processes I have service checks for, I get errors and notifications. > > Other systems however, should not be logged in, and for various reasons, sometimes get left logged in if somebody just disconnects their RDP session without logging off or doesn't log off the local console. I need a check for the "OK" state to be if explorer.exe is not running and for the error state to be if explorer.exe IS running. > > Below are the two definitions, pretty much straight out of the default example configuration files which I modified just slightly. I'm not sure where I got the "=stopped" on my check_command from, its been a while since I've modified anything in Nagios until this week. > > Any ideas somebody would be willing to share would be greatly appreciated! > > define service{ > use generic-service > hostgroups windows-servers > service_description Explorer > check_command check_nt!PROCSTATE!-d SHOWALL -l "Explorer.exe"=stopped > } > > define command{ > command_name check_nt > command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -s nagios12345 -v $ARG1$ $ARG2$ > } > > > > --Mark > I have not heard about the option of "=stopped" , but if that works it's a good way. another way to manipulate the return output is to use the "nagate" plugin ( should be in the libexec dir ) , and it will allow you to twick the output submitted to nagios from the service execution . http://nagiosplugins.org/man/negate Assaf -- Never,Ever Cut A Deal With a Dragon Next year I will be doing the London to Paris bike ride to raise money for the DogTrust (www.dogstrust.co.uk) . Please Sponsor me at http://www.justgiving.com/Assaf-Flatto ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From MarkL at lmfj.com Fri Nov 26 15:05:17 2010 From: MarkL at lmfj.com (Mark A. Lappin) Date: Fri, 26 Nov 2010 08:05:17 -0600 Subject: checking windows processes In-Reply-To: <4CEFBC61.4040406@flatto.net> References: <0227B653B3DC82438B8291BC5218612F6737532FE6@lmfjex07.lmfj.com> <4CEFBC61.4040406@flatto.net> Message-ID: <0227B653B3DC82438B8291BC5218612F6737532FE8@lmfjex07.lmfj.com> > I have not heard about the option of "=stopped" , but if that works it's a good way. > another way to manipulate the return output is to use the "nagate" > plugin ( should be in the libexec dir ) , and it will allow you to twick the output submitted to nagios from the service execution . > http://nagiosplugins.org/man/negate > Assaf Assaf - Thanks for the tip, I'll check that out shortly. I can't find reference to =stopped. I'm wondering if maybe I was just trying it to see what would happen or if maybe at some point I was trying a different plugin with other features. Can't remember. Mark Mark A. Lappin, CCNA, MCITP: Enterprise Administrator | Lee Michaels Fine Jewelry Director of Information Technology 11314 Cloverland Ave | Baton Rouge, LA 70809 Ph: 225.291.9094 ext 245 | Fax: 225.368.3675 | Mobile: 225-362-2770 www.lmfj.com This communication is privileged and confidential. If you are not the intended recipient, please notify the sender by reply e-mail and destroy all copies of this communication . ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ck at claudiokuenzler.com Fri Nov 26 16:57:50 2010 From: ck at claudiokuenzler.com (Claudio Kuenzler) Date: Fri, 26 Nov 2010 16:57:50 +0100 Subject: nsclient.org ? In-Reply-To: References: Message-ID: Hi Christian As the developer writes in his blog: "*First off: sorry for the lack of updates. My current project (at work) is often labeled as "the most difficult project in Sweden".*" He wrote that ten days ago (Posted: 2010-11-16 22:41 ). While the official released versions have not been updated for a longer time now the nightly builds with updates are still being created: *"In the mean time I can give some quick updates there is a few new nightly build of the 0.3.x branch with some minor changes "* The last stable file (version 0.3.8) dates from May 27 2010 by the way, not January: http://nsclient.org/nscp/downloads cheers ck On Fri, Nov 26, 2010 at 10:40 AM, Mies, Christian < Christian.Mies at it-novum.com> wrote: > Hi List, > > I've tried to download the last nightly Build of nsclient++. But the > last file is from January 2010. Any ideas / information what happens to > the Website? > > Regards, > Christian > > i.A. Christian Mies > Senior Consultant > > Tel: +49 (661) 103-874 (-333) > Fax: +49 (661) 103-17874 (-334) > mailto:Christian.Mies at it-novum.com > > > > it-novum GmbH . Edelzeller Strasse 44 . 36043 Fulda . > http://www.it-novum.com > Handelsregister Amtsgericht Fulda, HRB 1934 . Geschaftsfuhrer: Michael > Kienle . Sitz der Gesellschaft: Fulda > > > Der Inhalt dieser E-Mail ist vertraulich. Wenn Sie nicht der eigentliche > Empfaenger sein sollten, informieren Sie bitte sofort den Absender oder > vernichten umgehend diese Mail. Jegliche unerlaubte Vervielfaeltigung oder > Weiterleitung dieser Mail ist strengstens verboten. > This e-mail may contain confidential and/or priviledged information. If you > are not the intended recepient (or have received this e-mail in error) > please notify the sender immediately and destroy this e-mail. Any > unauthorised copying, disclosure or distribution of material in this e-mail > is strictly forbidden. > > > > > ------------------------------------------------------------------------------ > Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! > Tap into the largest installed PC base & get more eyes on your game by > optimizing for Intel(R) Graphics Technology. Get started today with the > Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. > http://p.sf.net/sfu/intelisp-dev2dev > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From malarie at processia.com Fri Nov 26 22:23:34 2010 From: malarie at processia.com (Maxime Alarie) Date: Fri, 26 Nov 2010 16:23:34 -0500 Subject: nsclient wrong password Message-ID: <62F2034CF68DFB45BAA4FB7466782DDC0194579F@denali.processia2003.com> Hi, I keep getting this error and I don't know why.. When I install nsclient on a windows macine, I provide the nagiosadmin password in the client, as well as my nagios server IP address. For some reason, I keep having the Invalid password error message both on nsclient.log and on the server logs, on th e server I also have Connection Refused. Nsclient.log: \NSClientListener.cpp:160: Invalid password (None). Server: [1290806215] SERVICE ALERT: Penang;C:\ Drive Space;UNKNOWN;HARD;4;NSClient - ERROR: Invalid password. [1290806215] SERVICE NOTIFICATION: root;Penang;C:\ Drive Space;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid password. [1290806227] EXTERNAL COMMAND: SCHEDULE_FORCED_HOST_CHECK;Penang;1290806226 [1290806235] SERVICE ALERT: Penang;W3SVC;UNKNOWN;HARD;4;NSClient - ERROR: Invalid password. [1290806235] SERVICE NOTIFICATION: root;Penang;W3SVC;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid password. [1290806275] SERVICE ALERT: Penang;CPU Load;UNKNOWN;HARD;4;NSClient - ERROR: Invalid password. [1290806275] SERVICE NOTIFICATION: root;Penang;CPU Load;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid password. [1290806335] SERVICE ALERT: Penang;Explorer;UNKNOWN;HARD;4;NSClient - ERROR: Invalid password. [1290806335] SERVICE NOTIFICATION: root;Penang;Explorer;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid password. [1290806515] SERVICE ALERT: Penang;C:\ Drive Space;CRITICAL;HARD;4;Connection refused [1290806515] SERVICE NOTIFICATION: root;Penang;C:\ Drive Space;CRITICAL;notify-service-by-email;Connection refused [1290806535] SERVICE ALERT: Penang;W3SVC;CRITICAL;HARD;4;Connection refused [1290806535] SERVICE NOTIFICATION: root;Penang;W3SVC;CRITICAL;notify-service-by-email;Connection refused [1290806575] SERVICE ALERT: Penang;CPU Load;CRITICAL;HARD;4;Connection refused [1290806575] SERVICE NOTIFICATION: root;Penang;CPU Load;CRITICAL;notify-service-by-email;Connection refused What am I doing wrong here? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From trm.nagios at gmail.com Sat Nov 27 11:20:18 2010 From: trm.nagios at gmail.com (trm asn) Date: Sat, 27 Nov 2010 15:50:18 +0530 Subject: nsclient wrong password In-Reply-To: <62F2034CF68DFB45BAA4FB7466782DDC0194579F@denali.processia2003.com> References: <62F2034CF68DFB45BAA4FB7466782DDC0194579F@denali.processia2003.com> Message-ID: check nsc.ini for the password & set the same password in nagios command.cfg file On Sat, Nov 27, 2010 at 2:53 AM, Maxime Alarie wrote: > Hi, I keep getting this error and I don?t know why.. When I install > nsclient on a windows macine, I provide the nagiosadmin password in the > client, as well as my nagios server IP address. For some reason, I keep > having the Invalid password error message both on nsclient.log and on the > server logs, on th e server I also have Connection Refused. > > > > Nsclient.log: > > \NSClientListener.cpp:160: Invalid password (None). > > > > Server: > > [1290806215] SERVICE ALERT: Penang;C:\ Drive Space;UNKNOWN;HARD;4;NSClient > - ERROR: Invalid password. > > [1290806215] SERVICE NOTIFICATION: root;Penang;C:\ Drive > Space;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid password. > > [1290806227] EXTERNAL COMMAND: SCHEDULE_FORCED_HOST_CHECK;Penang;1290806226 > > [1290806235] SERVICE ALERT: Penang;W3SVC;UNKNOWN;HARD;4;NSClient - ERROR: > Invalid password. > > [1290806235] SERVICE NOTIFICATION: > root;Penang;W3SVC;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid > password. > > [1290806275] SERVICE ALERT: Penang;CPU Load;UNKNOWN;HARD;4;NSClient - > ERROR: Invalid password. > > [1290806275] SERVICE NOTIFICATION: root;Penang;CPU > Load;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid password. > > [1290806335] SERVICE ALERT: Penang;Explorer;UNKNOWN;HARD;4;NSClient - > ERROR: Invalid password. > > [1290806335] SERVICE NOTIFICATION: > root;Penang;Explorer;UNKNOWN;notify-service-by-email;NSClient - ERROR: > Invalid password. > > [1290806515] SERVICE ALERT: Penang;C:\ Drive > Space;CRITICAL;HARD;4;Connection refused > > [1290806515] SERVICE NOTIFICATION: root;Penang;C:\ Drive > Space;CRITICAL;notify-service-by-email;Connection refused > > [1290806535] SERVICE ALERT: Penang;W3SVC;CRITICAL;HARD;4;Connection refused > > [1290806535] SERVICE NOTIFICATION: > root;Penang;W3SVC;CRITICAL;notify-service-by-email;Connection refused > > [1290806575] SERVICE ALERT: Penang;CPU Load;CRITICAL;HARD;4;Connection > refused > > [1290806575] SERVICE NOTIFICATION: root;Penang;CPU > Load;CRITICAL;notify-service-by-email;Connection refused > > > > > > What am I doing wrong here? > > > > Thanks. > > > > > > > ------------------------------------------------------------------------------ > Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! > Tap into the largest installed PC base & get more eyes on your game by > optimizing for Intel(R) Graphics Technology. Get started today with the > Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. > http://p.sf.net/sfu/intelisp-dev2dev > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From polifemos at conedsolutions.com Sat Nov 27 12:59:27 2010 From: polifemos at conedsolutions.com (Polifemo, Salvatore) Date: Sat, 27 Nov 2010 06:59:27 -0500 Subject: nsclient wrong password References: <62F2034CF68DFB45BAA4FB7466782DDC0194579F@denali.processia2003.com> Message-ID: <5BE7D0404F28DC44B780100927AA4CB00C011F3F@whplex3.int.cecdes.net> Have you checked that the password matches? -----Original Message----- From: trm asn [mailto:trm.nagios at gmail.com] Sent: Sat 11/27/2010 5:20 AM To: Nagios Users List Subject: Re: [Nagios-users] nsclient wrong password check nsc.ini for the password & set the same password in nagios command.cfg file On Sat, Nov 27, 2010 at 2:53 AM, Maxime Alarie wrote: Hi, I keep getting this error and I don't know why.. When I install nsclient on a windows macine, I provide the nagiosadmin password in the client, as well as my nagios server IP address. For some reason, I keep having the Invalid password error message both on nsclient.log and on the server logs, on th e server I also have Connection Refused. Nsclient.log: \NSClientListener.cpp:160: Invalid password (None). Server: [1290806215] SERVICE ALERT: Penang;C:\ Drive Space;UNKNOWN;HARD;4;NSClient - ERROR: Invalid password. [1290806215] SERVICE NOTIFICATION: root;Penang;C:\ Drive Space;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid password. [1290806227] EXTERNAL COMMAND: SCHEDULE_FORCED_HOST_CHECK;Penang;1290806226 [1290806235] SERVICE ALERT: Penang;W3SVC;UNKNOWN;HARD;4;NSClient - ERROR: Invalid password. [1290806235] SERVICE NOTIFICATION: root;Penang;W3SVC;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid password. [1290806275] SERVICE ALERT: Penang;CPU Load;UNKNOWN;HARD;4;NSClient - ERROR: Invalid password. [1290806275] SERVICE NOTIFICATION: root;Penang;CPU Load;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid password. [1290806335] SERVICE ALERT: Penang;Explorer;UNKNOWN;HARD;4;NSClient - ERROR: Invalid password. [1290806335] SERVICE NOTIFICATION: root;Penang;Explorer;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid password. [1290806515] SERVICE ALERT: Penang;C:\ Drive Space;CRITICAL;HARD;4;Connection refused [1290806515] SERVICE NOTIFICATION: root;Penang;C:\ Drive Space;CRITICAL;notify-service-by-email;Connection refused [1290806535] SERVICE ALERT: Penang;W3SVC;CRITICAL;HARD;4;Connection refused [1290806535] SERVICE NOTIFICATION: root;Penang;W3SVC;CRITICAL;notify-service-by-email;Connection refused [1290806575] SERVICE ALERT: Penang;CPU Load;CRITICAL;HARD;4;Connection refused [1290806575] SERVICE NOTIFICATION: root;Penang;CPU Load;CRITICAL;notify-service-by-email;Connection refused What am I doing wrong here? Thanks. ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From p6411 at hotmail.com Sun Nov 28 03:27:18 2010 From: p6411 at hotmail.com (Paul Paul) Date: Sun, 28 Nov 2010 03:27:18 +0100 Subject: (no subject) Message-ID: http://www.st-hippolytes.de/index11.php -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From randywhite30 at neb.rr.com Sun Nov 28 12:11:24 2010 From: randywhite30 at neb.rr.com (Randy White) Date: Sun, 28 Nov 2010 03:11:24 -0800 Subject: Notifications Message-ID: <1290942684.2622.5.camel@ubuntu> I am having a problem with the notification part of this. I followed the instructions on how to setup this up and use postfix, I did make the change in the commands.cfg file. I still dont recieve emails when the host I am monitoring is down. I was thinking that in order to have the ability to send out an email from the server I would need to setup postfix to use an outside smtp server but I am not finding where to put in the information and with all my googleing I have comeup with nothing. I am running ubuntu 10.4 Thanks Randy ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From maxs at webwizarddesign.com Mon Nov 29 04:27:55 2010 From: maxs at webwizarddesign.com (Max Schubert) Date: Sun, 28 Nov 2010 22:27:55 -0500 Subject: hostgroup with no members - Enhancement In-Reply-To: References: <31B0FE0A1A8166409E9DF35C6DEECB2404EEE87E@WPSCV6MM.OPR.STATEFARM.ORG> <4CCFBEE1.3040007@op5.se> <31B0FE0A1A8166409E9DF35C6DEECB2404EEEC37@WPSCV6MM.OPR.STATEFARM.ORG> <4CD01BB5.103@op5.se> <4CD14296.1030400@op5.se> <31B0FE0A1A8166409E9DF35C6DEECB240516D1F2@WPSCV6MM.OPR.STATEFARM.ORG> <4CE640A9.7080507@op5.se> <31B0FE0A1A8166409E9DF35C6DEECB240516D6E2@WPSCV6MM.OPR.STATEFARM.ORG> Message-ID: Hi, Long overdue and anxiously waited on by at least 3 people :), here is the patch, diffed against the CVS HEAD (as of tonight) revision of Nagios, with a documentation patch for configmain.html as well (as requested by Andreas): The option is now named allow_empty_hostgroup_assignment Thanks to Dan Whittenberg and Michael Friedrich for their input on the option name and the patch itself - thanks to my managers at Comcast (a great place to work as a developer) Eric Scholz and Mike Fischer for allowing the team I am on to contribute code back to the community, and thanks to the team I am on for their hard work and dedication with our distributed Nagios set up and the many other projects we are involved with. Andreas, please let me know if you'd like any further modifications or documentation for the patch beyond what is provided. https://github.com/netoisstools/Nagios-3-Patches/blob/master/CVS-HEAD-201011292220/201011281330-allow_empty_hostgroup_assignment.patch - Max ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From glenn.bilocca at sprachcaffe.com Mon Nov 29 08:11:46 2010 From: glenn.bilocca at sprachcaffe.com (Glenn Bilocca) Date: Mon, 29 Nov 2010 08:11:46 +0100 Subject: Nagios host search Message-ID: <799.140128265385$1291015811@news.gmane.org> Hey people, I'm new to the usage of nagios but I found it to be very useful in my case. But I have a query about such program. Is it possible for nagios to search for me all the hosts in my network and add them in the hosts section. Right now I have added 4 pcs manually but I have 65 left. Is there a way to add them via a script or something similar. Thanks and Regards Glenn -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Mon Nov 29 09:20:24 2010 From: ae at op5.se (Andreas Ericsson) Date: Mon, 29 Nov 2010 09:20:24 +0100 Subject: hostgroup with no members - Enhancement In-Reply-To: References: <31B0FE0A1A8166409E9DF35C6DEECB2404EEE87E@WPSCV6MM.OPR.STATEFARM.ORG> <4CCFBEE1.3040007@op5.se> <31B0FE0A1A8166409E9DF35C6DEECB2404EEEC37@WPSCV6MM.OPR.STATEFARM.ORG> <4CD01BB5.103@op5.se> <4CD14296.1030400@op5.se> <31B0FE0A1A8166409E9DF35C6DEECB240516D1F2@WPSCV6MM.OPR.STATEFARM.ORG> <4CE640A9.7080507@op5.se> <31B0FE0A1A8166409E9DF35C6DEECB240516D6E2@WPSCV6MM.OPR.STATEFARM.ORG> Message-ID: <4CF36248.1090401@op5.se> On 11/29/2010 04:27 AM, Max Schubert wrote: > Hi, > > Long overdue and anxiously waited on by at least 3 people :), here is > the patch, diffed against the CVS HEAD (as of tonight) revision of > Nagios, with a documentation patch for configmain.html as well (as > requested by Andreas): > > The option is now named > > allow_empty_hostgroup_assignment > > Thanks to Dan Whittenberg and Michael Friedrich for their input on the > option name and the patch itself - thanks to my managers at Comcast (a > great place to work as a developer) Eric Scholz and Mike Fischer for > allowing the team I am on to contribute code back to the community, > and thanks to the team I am on for their hard work and dedication with > our distributed Nagios set up and the many other projects we are > involved with. > > Andreas, please let me know if you'd like any further modifications or > documentation for the patch beyond what is provided. > > https://github.com/netoisstools/Nagios-3-Patches/blob/master/CVS-HEAD-201011292220/201011281330-allow_empty_hostgroup_assignment.patch > This looks nice. It's in my "compile and test" queue right now, so assuming it works out ok it'll be committed before the week is out. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rutger at blokje.net Mon Nov 29 08:50:32 2010 From: rutger at blokje.net (Rutger Blom) Date: Mon, 29 Nov 2010 08:50:32 +0100 Subject: Nagios host search In-Reply-To: <000001cb8f94$afe3ba20$0fab2e60$@bilocca@sprachcaffe.com> References: <000001cb8f94$afe3ba20$0fab2e60$@bilocca@sprachcaffe.com> Message-ID: <837BCE16-EE9B-4785-9962-907A7EF16E82@blokje.net> Last time I checked this wasn't possible. There are some third party utils that can do this for you. Rutger 29 nov 2010 kl. 08:11 skrev "Glenn Bilocca" : > Hey people, > > I?m new to the usage of nagios but I found it to be very useful in my case. But I have a query about such program. Is it possible for nagios to search for me all the hosts in my network and add them in the hosts section. Right now I have added 4 pcs manually but I have 65 left. Is there a way to add them via a script or something similar. > > > > Thanks and Regards > > Glenn > > > > ------------------------------------------------------------------------------ > Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! > Tap into the largest installed PC base & get more eyes on your game by > optimizing for Intel(R) Graphics Technology. Get started today with the > Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. > http://p.sf.net/sfu/intelisp-dev2dev > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dit.dash at gmail.com Mon Nov 29 13:10:31 2010 From: dit.dash at gmail.com (dave stern - e-mail.pluribus.unum) Date: Mon, 29 Nov 2010 07:10:31 -0500 Subject: Nagios host search In-Reply-To: <4295455619844057014@unknownmsgid> References: <4295455619844057014@unknownmsgid> Message-ID: The most common way of doing this is running nmap. Of course it's likely to pick up things you don't want to monitor so you'll then need to filter the results. Additionally, if one of the hosts you DO wish to monitor doesn't happen to be available at the time.... On Mon, Nov 29, 2010 at 2:11 AM, Glenn Bilocca wrote: > Hey people, > > I?m new to the usage of nagios but I found it to be very useful in my case. > But I have a query about such program. Is it possible for nagios to search > for me all the hosts in my network and add them in the hosts section. Right > now I have added 4 pcs manually but I have 65 left. Is there a way to add > them via a script or something similar. > > > > Thanks and Regards > > Glenn > > > > ------------------------------------------------------------------------------ > Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! > Tap into the largest installed PC base & get more eyes on your game by > optimizing for Intel(R) Graphics Technology. Get started today with the > Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. > http://p.sf.net/sfu/intelisp-dev2dev > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Mon Nov 29 13:49:15 2010 From: ae at op5.se (Andreas Ericsson) Date: Mon, 29 Nov 2010 13:49:15 +0100 Subject: hostgroup with no members - Enhancement In-Reply-To: <4CF36248.1090401@op5.se> References: <31B0FE0A1A8166409E9DF35C6DEECB2404EEE87E@WPSCV6MM.OPR.STATEFARM.ORG> <4CCFBEE1.3040007@op5.se> <31B0FE0A1A8166409E9DF35C6DEECB2404EEEC37@WPSCV6MM.OPR.STATEFARM.ORG> <4CD01BB5.103@op5.se> <4CD14296.1030400@op5.se> <31B0FE0A1A8166409E9DF35C6DEECB240516D1F2@WPSCV6MM.OPR.STATEFARM.ORG> <4CE640A9.7080507@op5.se> <31B0FE0A1A8166409E9DF35C6DEECB240516D6E2@WPSCV6MM.OPR.STATEFARM.ORG> <4CF36248.1090401@op5.se> Message-ID: <4CF3A14B.7080802@op5.se> On 11/29/2010 09:20 AM, Andreas Ericsson wrote: > > This looks nice. It's in my "compile and test" queue right now, so > assuming it works out ok it'll be committed before the week is out. > And now it's out there. More testing would be much appreciated though, but considering the patch is fairly well written I have few qualms about it. Cheers, and thanks again. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ml.alasta at gmail.com Mon Nov 29 14:14:07 2010 From: ml.alasta at gmail.com (ML Alasta) Date: Mon, 29 Nov 2010 14:14:07 +0100 Subject: Ask pb synchro Message-ID: Hi, I am new in this ML. I am a nagios 3.0.6, NagiosQL for administration, NAgVis and NDO. I search to synchronised Nagios "Master" to Nagios "Backup" but I have problems : - synchronize database (because InnoDB isn't files) - synchronize folder of status.log (it works with a refresh time and after that I commend the old information) Where is the files which store the hosts/services information ? I am lost Best regards -- Alasta -------------------------------------------- Linux user registered as #385162 Site Perso : http://alasta.com.free.Fr -------------------------------------------- ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From daniel.wittenberg.r0ko at statefarm.com Mon Nov 29 14:47:51 2010 From: daniel.wittenberg.r0ko at statefarm.com (Daniel Wittenberg) Date: Mon, 29 Nov 2010 06:47:51 -0700 Subject: hostgroup with no members - Enhancement In-Reply-To: <4CF3A14B.7080802@op5.se> References: <31B0FE0A1A8166409E9DF35C6DEECB2404EEE87E@WPSCV6MM.OPR.STATEFARM.ORG> <4CCFBEE1.3040007@op5.se> <31B0FE0A1A8166409E9DF35C6DEECB2404EEEC37@WPSCV6MM.OPR.STATEFARM.ORG> <4CD01BB5.103@op5.se> <4CD14296.1030400@op5.se> <31B0FE0A1A8166409E9DF35C6DEECB240516D1F2@WPSCV6MM.OPR.STATEFARM.ORG> <4CE640A9.7080507@op5.se> <31B0FE0A1A8166409E9DF35C6DEECB240516D6E2@WPSCV6MM.OPR.STATEFARM.ORG> <4CF36248.1090401@op5.se> <4CF3A14B.7080802@op5.se> Message-ID: <31B0FE0A1A8166409E9DF35C6DEECB2405232D89@WPSCV6MM.OPR.STATEFARM.ORG> I've been testing for few weeks now with a few hundred hosts and few thousand servers in our test center and so far so good, no issues from me. Dan -----Original Message----- From: Andreas Ericsson [mailto:ae at op5.se] Sent: Monday, November 29, 2010 6:49 AM To: Nagios Users List Subject: Re: [Nagios-users] hostgroup with no members - Enhancement On 11/29/2010 09:20 AM, Andreas Ericsson wrote: > > This looks nice. It's in my "compile and test" queue right now, so > assuming it works out ok it'll be committed before the week is out. > And now it's out there. More testing would be much appreciated though, but considering the patch is fairly well written I have few qualms about it. Cheers, and thanks again. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------ ------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From maxs at webwizarddesign.com Mon Nov 29 15:07:01 2010 From: maxs at webwizarddesign.com (Max Schubert) Date: Mon, 29 Nov 2010 09:07:01 -0500 Subject: hostgroup with no members - Enhancement In-Reply-To: <4CF3A14B.7080802@op5.se> References: <31B0FE0A1A8166409E9DF35C6DEECB2404EEE87E@WPSCV6MM.OPR.STATEFARM.ORG> <4CCFBEE1.3040007@op5.se> <31B0FE0A1A8166409E9DF35C6DEECB2404EEEC37@WPSCV6MM.OPR.STATEFARM.ORG> <4CD01BB5.103@op5.se> <4CD14296.1030400@op5.se> <31B0FE0A1A8166409E9DF35C6DEECB240516D1F2@WPSCV6MM.OPR.STATEFARM.ORG> <4CE640A9.7080507@op5.se> <31B0FE0A1A8166409E9DF35C6DEECB240516D6E2@WPSCV6MM.OPR.STATEFARM.ORG> <4CF36248.1090401@op5.se> <4CF3A14B.7080802@op5.se> Message-ID: Thank you, Andreas - I actually really enjoy writing tests and understand their value - will see if I can put a few in place using tap over the next week or so and update the patch with them. On 11/29/10, Andreas Ericsson wrote: > On 11/29/2010 09:20 AM, Andreas Ericsson wrote: >> >> This looks nice. It's in my "compile and test" queue right now, so >> assuming it works out ok it'll be committed before the week is out. >> > > And now it's out there. More testing would be much appreciated though, > but considering the patch is fairly well written I have few qualms > about it. > > Cheers, and thanks again. > > -- > Andreas Ericsson andreas.ericsson at 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. > ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From malarie at processia.com Mon Nov 29 15:59:18 2010 From: malarie at processia.com (Maxime Alarie) Date: Mon, 29 Nov 2010 09:59:18 -0500 Subject: nsclient wrong password In-Reply-To: <5BE7D0404F28DC44B780100927AA4CB00C011F3F@whplex3.int.cecdes.net> References: <62F2034CF68DFB45BAA4FB7466782DDC0194579F@denali.processia2003.com> <5BE7D0404F28DC44B780100927AA4CB00C011F3F@whplex3.int.cecdes.net> Message-ID: <62F2034CF68DFB45BAA4FB7466782DDC01945850@denali.processia2003.com> Password in nsclient is the same as the nagiosadmin password. From: Polifemo, Salvatore [mailto:polifemos at conedsolutions.com] Sent: 27 November 2010 06:59 To: Nagios Users List; Nagios Users List Subject: Re: [Nagios-users] nsclient wrong password Have you checked that the password matches? -----Original Message----- From: trm asn [mailto:trm.nagios at gmail.com] Sent: Sat 11/27/2010 5:20 AM To: Nagios Users List Subject: Re: [Nagios-users] nsclient wrong password check nsc.ini for the password & set the same password in nagios command.cfg file On Sat, Nov 27, 2010 at 2:53 AM, Maxime Alarie wrote: Hi, I keep getting this error and I don't know why.. When I install nsclient on a windows macine, I provide the nagiosadmin password in the client, as well as my nagios server IP address. For some reason, I keep having the Invalid password error message both on nsclient.log and on the server logs, on th e server I also have Connection Refused. Nsclient.log: \NSClientListener.cpp:160: Invalid password (None). Server: [1290806215] SERVICE ALERT: Penang;C:\ Drive Space;UNKNOWN;HARD;4;NSClient - ERROR: Invalid password. [1290806215] SERVICE NOTIFICATION: root;Penang;C:\ Drive Space;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid password. [1290806227] EXTERNAL COMMAND: SCHEDULE_FORCED_HOST_CHECK;Penang;1290806226 [1290806235] SERVICE ALERT: Penang;W3SVC;UNKNOWN;HARD;4;NSClient - ERROR: Invalid password. [1290806235] SERVICE NOTIFICATION: root;Penang;W3SVC;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid password. [1290806275] SERVICE ALERT: Penang;CPU Load;UNKNOWN;HARD;4;NSClient - ERROR: Invalid password. [1290806275] SERVICE NOTIFICATION: root;Penang;CPU Load;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid password. [1290806335] SERVICE ALERT: Penang;Explorer;UNKNOWN;HARD;4;NSClient - ERROR: Invalid password. [1290806335] SERVICE NOTIFICATION: root;Penang;Explorer;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid password. [1290806515] SERVICE ALERT: Penang;C:\ Drive Space;CRITICAL;HARD;4;Connection refused [1290806515] SERVICE NOTIFICATION: root;Penang;C:\ Drive Space;CRITICAL;notify-service-by-email;Connection refused [1290806535] SERVICE ALERT: Penang;W3SVC;CRITICAL;HARD;4;Connection refused [1290806535] SERVICE NOTIFICATION: root;Penang;W3SVC;CRITICAL;notify-service-by-email;Connection refused [1290806575] SERVICE ALERT: Penang;CPU Load;CRITICAL;HARD;4;Connection refused [1290806575] SERVICE NOTIFICATION: root;Penang;CPU Load;CRITICAL;notify-service-by-email;Connection refused What am I doing wrong here? Thanks. ------------------------------------------------------------------------ ------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From malarie at processia.com Mon Nov 29 15:58:41 2010 From: malarie at processia.com (Maxime Alarie) Date: Mon, 29 Nov 2010 09:58:41 -0500 Subject: nsclient wrong password In-Reply-To: References: <62F2034CF68DFB45BAA4FB7466782DDC0194579F@denali.processia2003.com> Message-ID: <62F2034CF68DFB45BAA4FB7466782DDC0194584F@denali.processia2003.com> From: trm asn [mailto:trm.nagios at gmail.com] Sent: 27 November 2010 05:20 To: Nagios Users List Subject: Re: [Nagios-users] nsclient wrong password check nsc.ini for the password & set the same password in nagios command.cfg file On Sat, Nov 27, 2010 at 2:53 AM, Maxime Alarie wrote: Hi, I keep getting this error and I don't know why.. When I install nsclient on a windows macine, I provide the nagiosadmin password in the client, as well as my nagios server IP address. For some reason, I keep having the Invalid password error message both on nsclient.log and on the server logs, on th e server I also have Connection Refused. Nsclient.log: \NSClientListener.cpp:160: Invalid password (None). Server: [1290806215] SERVICE ALERT: Penang;C:\ Drive Space;UNKNOWN;HARD;4;NSClient - ERROR: Invalid password. [1290806215] SERVICE NOTIFICATION: root;Penang;C:\ Drive Space;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid password. [1290806227] EXTERNAL COMMAND: SCHEDULE_FORCED_HOST_CHECK;Penang;1290806226 [1290806235] SERVICE ALERT: Penang;W3SVC;UNKNOWN;HARD;4;NSClient - ERROR: Invalid password. [1290806235] SERVICE NOTIFICATION: root;Penang;W3SVC;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid password. [1290806275] SERVICE ALERT: Penang;CPU Load;UNKNOWN;HARD;4;NSClient - ERROR: Invalid password. [1290806275] SERVICE NOTIFICATION: root;Penang;CPU Load;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid password. [1290806335] SERVICE ALERT: Penang;Explorer;UNKNOWN;HARD;4;NSClient - ERROR: Invalid password. [1290806335] SERVICE NOTIFICATION: root;Penang;Explorer;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid password. [1290806515] SERVICE ALERT: Penang;C:\ Drive Space;CRITICAL;HARD;4;Connection refused [1290806515] SERVICE NOTIFICATION: root;Penang;C:\ Drive Space;CRITICAL;notify-service-by-email;Connection refused [1290806535] SERVICE ALERT: Penang;W3SVC;CRITICAL;HARD;4;Connection refused [1290806535] SERVICE NOTIFICATION: root;Penang;W3SVC;CRITICAL;notify-service-by-email;Connection refused [1290806575] SERVICE ALERT: Penang;CPU Load;CRITICAL;HARD;4;Connection refused [1290806575] SERVICE NOTIFICATION: root;Penang;CPU Load;CRITICAL;notify-service-by-email;Connection refused What am I doing wrong here? I don't have any password in my commands.cfg looks like this: cat /etc/nagios3/commands.cfg ######################################################################## ####### # COMMANDS.CFG - SAMPLE COMMAND DEFINITIONS FOR NAGIOS ######################################################################## ####### ######################################################################## ######## # NOTIFICATION COMMANDS ######################################################################## ######## # 'notify-host-by-email' command definition define command{ command_name notify-host-by-email command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$ } # 'notify-service-by-email' command definition define command{ command_name notify-service-by-email command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ } ######################################################################## ######## # HOST CHECK COMMANDS ######################################################################## ######## # On Debian, check-host-alive is being defined from within the # nagios-plugins-basic package ######################################################################## ######## # PERFORMANCE DATA COMMANDS ######################################################################## ######## # 'process-host-perfdata' command definition define command{ command_name process-host-perfdata command_line /usr/bin/printf "%b" "$LASTHOSTCHECK$\t$HOSTNAME$\t$HOSTSTATE$\t$HOSTATTEMPT$\t$HOSTSTATETYPE $\t$HOSTEXECUTIONTIME$\t$HOSTOUTPUT$\t$HOSTPERFDATA$\n" >> /var/lib/nagios3/host-perfdata.out } # 'process-service-perfdata' command definition define command{ command_name process-service-perfdata command_line /usr/bin/printf "%b" "$LASTSERVICECHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICESTATE$\t$SERVICE ATTEMPT$\t$SERVICESTATETYPE$\t$SERVICEEXECUTIONTIME$\t$SERVICELATENCY$\t $SERVICEOUTPUT$\t$SERVICEPERFDATA$\n" >> /var/lib/nagios3/service-perfdata.out } -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pangrazi at gmail.com Mon Nov 29 16:24:13 2010 From: pangrazi at gmail.com (Greg Pangrazio) Date: Mon, 29 Nov 2010 09:24:13 -0600 Subject: nsclient wrong password In-Reply-To: <62F2034CF68DFB45BAA4FB7466782DDC0194584F@denali.processia2003.com> References: <62F2034CF68DFB45BAA4FB7466782DDC0194579F@denali.processia2003.com> <62F2034CF68DFB45BAA4FB7466782DDC0194584F@denali.processia2003.com> Message-ID: Can you send us the definition for the nagios command you are using? Greg Pangrazio On Mon, Nov 29, 2010 at 8:58 AM, Maxime Alarie wrote: > From: trm asn [mailto:trm.nagios at gmail.com] > Sent: 27 November 2010 05:20 > To: Nagios Users List > Subject: Re: [Nagios-users] nsclient wrong password > > > > check nsc.ini for the password & set the same password in nagios command.cfg > file > > > On Sat, Nov 27, 2010 at 2:53 AM, Maxime Alarie > wrote: > > Hi, I keep getting this error and I don?t know why..? When I install > nsclient on a windows macine, I provide the nagiosadmin password in the > client, as well as my nagios server IP address.?? For some reason, I keep > having the Invalid password error message both on nsclient.log and on the > server logs, on th e server I also have Connection Refused. > > > > Nsclient.log: > > \NSClientListener.cpp:160: Invalid password (None). > > > > Server: > > [1290806215] SERVICE ALERT: Penang;C:\ Drive Space;UNKNOWN;HARD;4;NSClient - > ERROR: Invalid password. > > [1290806215] SERVICE NOTIFICATION: root;Penang;C:\ Drive > Space;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid password. > > [1290806227] EXTERNAL COMMAND: SCHEDULE_FORCED_HOST_CHECK;Penang;1290806226 > > [1290806235] SERVICE ALERT: Penang;W3SVC;UNKNOWN;HARD;4;NSClient - ERROR: > Invalid password. > > [1290806235] SERVICE NOTIFICATION: > root;Penang;W3SVC;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid > password. > > [1290806275] SERVICE ALERT: Penang;CPU Load;UNKNOWN;HARD;4;NSClient - ERROR: > Invalid password. > > [1290806275] SERVICE NOTIFICATION: root;Penang;CPU > Load;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid password. > > [1290806335] SERVICE ALERT: Penang;Explorer;UNKNOWN;HARD;4;NSClient - ERROR: > Invalid password. > > [1290806335] SERVICE NOTIFICATION: > root;Penang;Explorer;UNKNOWN;notify-service-by-email;NSClient - ERROR: > Invalid password. > > [1290806515] SERVICE ALERT: Penang;C:\ Drive > Space;CRITICAL;HARD;4;Connection refused > > [1290806515] SERVICE NOTIFICATION: root;Penang;C:\ Drive > Space;CRITICAL;notify-service-by-email;Connection refused > > [1290806535] SERVICE ALERT: Penang;W3SVC;CRITICAL;HARD;4;Connection refused > > [1290806535] SERVICE NOTIFICATION: > root;Penang;W3SVC;CRITICAL;notify-service-by-email;Connection refused > > [1290806575] SERVICE ALERT: Penang;CPU Load;CRITICAL;HARD;4;Connection > refused > > [1290806575] SERVICE NOTIFICATION: root;Penang;CPU > Load;CRITICAL;notify-service-by-email;Connection refused > > > > > > What am I doing? wrong here? > > > > I don?t have any password in my commands.cfg looks like this: > > cat /etc/nagios3/commands.cfg > > ############################################################################### > > # COMMANDS.CFG - SAMPLE COMMAND DEFINITIONS FOR NAGIOS > ############################################################################### > > > > > > ################################################################################ > > # NOTIFICATION COMMANDS > > ################################################################################ > > > > > > # 'notify-host-by-email' command definition > > define command{ > > ????? command_name????? notify-host-by-email > > ????? command_line????? /usr/bin/printf "%b" "***** Nagios > *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: > $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: > $LONGDATETIME$\n" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: > $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$ > > ????? } > > > > # 'notify-service-by-email' command definition > > define command{ > > ????? command_name????? notify-service-by-email > > ????? command_line????? /usr/bin/printf "%b" "***** Nagios > *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: > $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: > $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional > Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Service > Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ > > ????? } > > > > > > > > > > > > ################################################################################ > > # HOST CHECK COMMANDS > > ################################################################################ > > > > # On Debian, check-host-alive is being defined from within the > > # nagios-plugins-basic package > > > > ################################################################################ > > # PERFORMANCE DATA COMMANDS > > ################################################################################ > > > > > > # 'process-host-perfdata' command definition > > define command{ > > ????? command_name????? process-host-perfdata > > ????? command_line????? /usr/bin/printf "%b" > "$LASTHOSTCHECK$\t$HOSTNAME$\t$HOSTSTATE$\t$HOSTATTEMPT$\t$HOSTSTATETYPE$\t$HOSTEXECUTIONTIME$\t$HOSTOUTPUT$\t$HOSTPERFDATA$\n" >>> /var/lib/nagios3/host-perfdata.out > > ????? } > > > > > > # 'process-service-perfdata' command definition > > define command{ > > ????? command_name????? process-service-perfdata > > ????? command_line????? /usr/bin/printf "%b" > "$LASTSERVICECHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICESTATE$\t$SERVICEATTEMPT$\t$SERVICESTATETYPE$\t$SERVICEEXECUTIONTIME$\t$SERVICELATENCY$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$\n" >>> /var/lib/nagios3/service-perfdata.out > > ????? } > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! > Tap into the largest installed PC base & get more eyes on your game by > optimizing for Intel(R) Graphics Technology. Get started today with the > Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. > http://p.sf.net/sfu/intelisp-dev2dev > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From trm.nagios at gmail.com Mon Nov 29 16:48:13 2010 From: trm.nagios at gmail.com (trm asn) Date: Mon, 29 Nov 2010 21:18:13 +0530 Subject: nsclient wrong password In-Reply-To: <62F2034CF68DFB45BAA4FB7466782DDC0194584F@denali.processia2003.com> References: <62F2034CF68DFB45BAA4FB7466782DDC0194579F@denali.processia2003.com> <62F2034CF68DFB45BAA4FB7466782DDC0194584F@denali.processia2003.com> Message-ID: On Mon, Nov 29, 2010 at 8:28 PM, Maxime Alarie wrote: > *From:* trm asn [mailto:trm.nagios at gmail.com] > *Sent:* 27 November 2010 05:20 > > *To:* Nagios Users List > *Subject:* Re: [Nagios-users] nsclient wrong password > > > > check nsc.ini for the password & set the same password in nagios > command.cfg file > > > On Sat, Nov 27, 2010 at 2:53 AM, Maxime Alarie > wrote: > > Hi, I keep getting this error and I don?t know why.. When I install > nsclient on a windows macine, I provide the nagiosadmin password in the > client, as well as my nagios server IP address. For some reason, I keep > having the Invalid password error message both on nsclient.log and on the > server logs, on th e server I also have Connection Refused. > > > > Nsclient.log: > > \NSClientListener.cpp:160: Invalid password (None). > > > > Server: > > [1290806215] SERVICE ALERT: Penang;C:\ Drive Space;UNKNOWN;HARD;4;NSClient > - ERROR: Invalid password. > > [1290806215] SERVICE NOTIFICATION: root;Penang;C:\ Drive > Space;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid password. > > [1290806227] EXTERNAL COMMAND: SCHEDULE_FORCED_HOST_CHECK;Penang;1290806226 > > [1290806235] SERVICE ALERT: Penang;W3SVC;UNKNOWN;HARD;4;NSClient - ERROR: > Invalid password. > > [1290806235] SERVICE NOTIFICATION: > root;Penang;W3SVC;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid > password. > > [1290806275] SERVICE ALERT: Penang;CPU Load;UNKNOWN;HARD;4;NSClient - > ERROR: Invalid password. > > [1290806275] SERVICE NOTIFICATION: root;Penang;CPU > Load;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid password. > > [1290806335] SERVICE ALERT: Penang;Explorer;UNKNOWN;HARD;4;NSClient - > ERROR: Invalid password. > > [1290806335] SERVICE NOTIFICATION: > root;Penang;Explorer;UNKNOWN;notify-service-by-email;NSClient - ERROR: > Invalid password. > > [1290806515] SERVICE ALERT: Penang;C:\ Drive > Space;CRITICAL;HARD;4;Connection refused > > [1290806515] SERVICE NOTIFICATION: root;Penang;C:\ Drive > Space;CRITICAL;notify-service-by-email;Connection refused > > [1290806535] SERVICE ALERT: Penang;W3SVC;CRITICAL;HARD;4;Connection refused > > [1290806535] SERVICE NOTIFICATION: > root;Penang;W3SVC;CRITICAL;notify-service-by-email;Connection refused > > [1290806575] SERVICE ALERT: Penang;CPU Load;CRITICAL;HARD;4;Connection > refused > > [1290806575] SERVICE NOTIFICATION: root;Penang;CPU > Load;CRITICAL;notify-service-by-email;Connection refused > > > > > > What am I doing wrong here? > > > > I don?t have any password in my commands.cfg looks like this: > > cat /etc/nagios3/commands.cfg > > > ############################################################################### > > # COMMANDS.CFG - SAMPLE COMMAND DEFINITIONS FOR NAGIOS > ############################################################################### > > > > > > > ################################################################################ > > # NOTIFICATION COMMANDS > > > ################################################################################ > > > > > > # 'notify-host-by-email' command definition > > define command{ > > command_name notify-host-by-email > > command_line /usr/bin/printf "%b" "***** Nagios > *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: > $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: > $LONGDATETIME$\n" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: > $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$ > > } > > > > # 'notify-service-by-email' command definition > > define command{ > > command_name notify-service-by-email > > command_line /usr/bin/printf "%b" "***** Nagios > *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: > $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: > $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional > Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Service > Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ > > } > > > > > > > > > > > > > ################################################################################ > > # HOST CHECK COMMANDS > > > ################################################################################ > > > > # On Debian, check-host-alive is being defined from within the > > # nagios-plugins-basic package > > > > > ################################################################################ > > # PERFORMANCE DATA COMMANDS > > > ################################################################################ > > > > > > # 'process-host-perfdata' command definition > > define command{ > > command_name process-host-perfdata > > command_line /usr/bin/printf "%b" > "$LASTHOSTCHECK$\t$HOSTNAME$\t$HOSTSTATE$\t$HOSTATTEMPT$\t$HOSTSTATETYPE$\t$HOSTEXECUTIONTIME$\t$HOSTOUTPUT$\t$HOSTPERFDATA$\n" > >> /var/lib/nagios3/host-perfdata.out > > } > > > > > > # 'process-service-perfdata' command definition > > define command{ > > command_name process-service-perfdata > > command_line /usr/bin/printf "%b" > "$LASTSERVICECHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICESTATE$\t$SERVICEATTEMPT$\t$SERVICESTATETYPE$\t$SERVICEEXECUTIONTIME$\t$SERVICELATENCY$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$\n" > >> /var/lib/nagios3/service-perfdata.out > > } > > > where is your check_nt command defined ? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From butlerd at ntelos.com Mon Nov 29 17:11:24 2010 From: butlerd at ntelos.com (Butler, Daryl) Date: Mon, 29 Nov 2010 16:11:24 +0000 Subject: Nagios with Google Maps and Weather Message-ID: <2BAD9F3F557D8E4A888C061F57AA017F25810587@NMAILBOX1.ntelos.com> Hello, Does anyone know of a map the will work with google maps and also provide a weather overlay for it? We are currently mapping host to a google map which is great and works as designed but it is lacking the weather aspect. Thanks in advance, Daryl Butler ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jra at baylink.com Mon Nov 29 17:45:11 2010 From: jra at baylink.com (Jay Ashworth) Date: Mon, 29 Nov 2010 11:45:11 -0500 (EST) Subject: Nagios with Google Maps and Weather In-Reply-To: <2BAD9F3F557D8E4A888C061F57AA017F25810587@NMAILBOX1.ntelos.com> References: <2BAD9F3F557D8E4A888C061F57AA017F25810587@NMAILBOX1.ntelos.com> Message-ID: <31915160.64.1291049111667.JavaMail.root@benjamin.baylink.com> ----- Original Message ----- > From: "Daryl Butler" > > Does anyone know of a map the will work with google maps and also > provide a weather overlay for it? > We are currently mapping host to a google map which is great and works > as designed but it is lacking the weather aspect. You might want to look at Weather Underground's fullscreenweather.com, which is a Googlemaps mashup. I don't know if they provide an API for mashing it up further, or if you can just use the standard GMaps API to do so, but it looks like it might be what you want. Cheers, -- jra -- Jay R. Ashworth ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nagios at flatto.net Mon Nov 29 18:10:38 2010 From: nagios at flatto.net (Assaf Flatto) Date: Mon, 29 Nov 2010 17:10:38 +0000 Subject: Nagios with Google Maps and Weather In-Reply-To: <2BAD9F3F557D8E4A888C061F57AA017F25810587@NMAILBOX1.ntelos.com> References: <2BAD9F3F557D8E4A888C061F57AA017F25810587@NMAILBOX1.ntelos.com> Message-ID: <4CF3DE8E.3050108@flatto.net> You might want to take a look at nagvis . http://www.nagvis.org/ I am not sure it will do exactly what you need , but maybe it will. Assaf On 29/11/10 16:11, Butler, Daryl wrote: > Hello, > > Does anyone know of a map the will work with google maps and also provide a weather overlay for it? > We are currently mapping host to a google map which is great and works as designed but it is lacking the weather aspect. > > Thanks in advance, > Daryl Butler > > ------------------------------------------------------------------------------ > Increase Visibility of Your 3D Game App& Earn a Chance To Win $500! > Tap into the largest installed PC base& get more eyes on your game by > optimizing for Intel(R) Graphics Technology. Get started today with the > Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. > http://p.sf.net/sfu/intelisp-dev2dev > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Never,Ever Cut A Deal With a Dragon Next year I will be doing the London to Paris bike ride to raise money for the DogTrust (www.dogstrust.co.uk) . Please Sponsor me at http://www.justgiving.com/Assaf-Flatto ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chrishudson at gmail.com Tue Nov 30 15:21:59 2010 From: chrishudson at gmail.com (Chris Hudson) Date: Tue, 30 Nov 2010 08:21:59 -0600 Subject: How to find MIB for OpenVMS Message-ID: Hello, I have some VMS servers that I have implemented SNMP service on. I am able to successfully do an snmpwalk from my Nagios server. However my SNMP plugin is looking for a MIB that is apparently different than the one that these VMS servers use. Question: how do I find the MIB value for these VMS servers? I have a mix of OpenVMS Alpha's and Mini-Vax's. Thanks, Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From malarie at processia.com Tue Nov 30 15:56:30 2010 From: malarie at processia.com (Maxime Alarie) Date: Tue, 30 Nov 2010 09:56:30 -0500 Subject: nsclient wrong password In-Reply-To: References: <62F2034CF68DFB45BAA4FB7466782DDC0194579F@denali.processia2003.com><62F2034CF68DFB45BAA4FB7466782DDC0194584F@denali.processia2003.com> Message-ID: <62F2034CF68DFB45BAA4FB7466782DDC01945992@denali.processia2003.com> From: trm asn [mailto:trm.nagios at gmail.com] Sent: 29 November 2010 10:48 To: Nagios Users List Subject: Re: [Nagios-users] nsclient wrong password On Mon, Nov 29, 2010 at 8:28 PM, Maxime Alarie wrote: From: trm asn [mailto:trm.nagios at gmail.com] Sent: 27 November 2010 05:20 To: Nagios Users List Subject: Re: [Nagios-users] nsclient wrong password check nsc.ini for the password & set the same password in nagios command.cfg file On Sat, Nov 27, 2010 at 2:53 AM, Maxime Alarie wrote: Hi, I keep getting this error and I don't know why.. When I install nsclient on a windows macine, I provide the nagiosadmin password in the client, as well as my nagios server IP address. For some reason, I keep having the Invalid password error message both on nsclient.log and on the server logs, on th e server I also have Connection Refused. Nsclient.log: \NSClientListener.cpp:160: Invalid password (None). Server: [1290806215] SERVICE ALERT: Penang;C:\ Drive Space;UNKNOWN;HARD;4;NSClient - ERROR: Invalid password. [1290806215] SERVICE NOTIFICATION: root;Penang;C:\ Drive Space;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid password. [1290806227] EXTERNAL COMMAND: SCHEDULE_FORCED_HOST_CHECK;Penang;1290806226 [1290806235] SERVICE ALERT: Penang;W3SVC;UNKNOWN;HARD;4;NSClient - ERROR: Invalid password. [1290806235] SERVICE NOTIFICATION: root;Penang;W3SVC;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid password. [1290806275] SERVICE ALERT: Penang;CPU Load;UNKNOWN;HARD;4;NSClient - ERROR: Invalid password. [1290806275] SERVICE NOTIFICATION: root;Penang;CPU Load;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid password. [1290806335] SERVICE ALERT: Penang;Explorer;UNKNOWN;HARD;4;NSClient - ERROR: Invalid password. [1290806335] SERVICE NOTIFICATION: root;Penang;Explorer;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid password. [1290806515] SERVICE ALERT: Penang;C:\ Drive Space;CRITICAL;HARD;4;Connection refused [1290806515] SERVICE NOTIFICATION: root;Penang;C:\ Drive Space;CRITICAL;notify-service-by-email;Connection refused [1290806535] SERVICE ALERT: Penang;W3SVC;CRITICAL;HARD;4;Connection refused [1290806535] SERVICE NOTIFICATION: root;Penang;W3SVC;CRITICAL;notify-service-by-email;Connection refused [1290806575] SERVICE ALERT: Penang;CPU Load;CRITICAL;HARD;4;Connection refused [1290806575] SERVICE NOTIFICATION: root;Penang;CPU Load;CRITICAL;notify-service-by-email;Connection refused What am I doing wrong here? I don't have any password in my commands.cfg looks like this: cat /etc/nagios3/commands.cfg ######################################################################## ####### # COMMANDS.CFG - SAMPLE COMMAND DEFINITIONS FOR NAGIOS ######################################################################## ####### ######################################################################## ######## # NOTIFICATION COMMANDS ######################################################################## ######## # 'notify-host-by-email' command definition define command{ command_name notify-host-by-email command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$ } # 'notify-service-by-email' command definition define command{ command_name notify-service-by-email command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ } ######################################################################## ######## # HOST CHECK COMMANDS ######################################################################## ######## # On Debian, check-host-alive is being defined from within the # nagios-plugins-basic package ######################################################################## ######## # PERFORMANCE DATA COMMANDS ######################################################################## ######## # 'process-host-perfdata' command definition define command{ command_name process-host-perfdata command_line /usr/bin/printf "%b" "$LASTHOSTCHECK$\t$HOSTNAME$\t$HOSTSTATE$\t$HOSTATTEMPT$\t$HOSTSTATETYPE $\t$HOSTEXECUTIONTIME$\t$HOSTOUTPUT$\t$HOSTPERFDATA$\n" >> /var/lib/nagios3/host-perfdata.out } # 'process-service-perfdata' command definition define command{ command_name process-service-perfdata command_line /usr/bin/printf "%b" "$LASTSERVICECHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICESTATE$\t$SERVICE ATTEMPT$\t$SERVICESTATETYPE$\t$SERVICEEXECUTIONTIME$\t$SERVICELATENCY$\t $SERVICEOUTPUT$\t$SERVICEPERFDATA$\n" >> /var/lib/nagios3/service-perfdata.out } where is your check_nt command defined ? UI don't know. I h ave install nagio3 that is packaged with Ubuntu. I just used apt-get install nagios and the plugins. It must be run as a deamon? I have removed the password from the NSC files, and it works now. (I only have 4 servers to monitor) -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From a31modela at hotmail.com Tue Nov 30 16:42:57 2010 From: a31modela at hotmail.com (steve f) Date: Tue, 30 Nov 2010 10:42:57 -0500 Subject: Check timeout value question Message-ID: I am running a homemade check to check about 8 core processes. Occasionally the check times out after 10 seconds. All this check does is run /etc/init.d/xxxx status and use either the 0 or 1 exit code to report that the process is OK or Critical. I verified in my nagios.cfg file the timeoout setting is set to 60 secs and the utils.pm variable for timeout is set to 15 seconds. I have no timeout setting in this script but figured I need one. Where is the check getting the 10 sec value from? I assume its a default for a nagios check. If I rewrite the script in perl ( its a simple bash now) and use the utils.pm, does that automatically give me the -t option where I could set any timeout value or will it only set the timeout to 15 seconds as in the utils.pm? Is there a simple way to add a timeout for this check only ? Thanks, Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pangrazi at gmail.com Tue Nov 30 17:20:03 2010 From: pangrazi at gmail.com (Greg Pangrazio) Date: Tue, 30 Nov 2010 10:20:03 -0600 Subject: nsclient wrong password In-Reply-To: <62F2034CF68DFB45BAA4FB7466782DDC01945992@denali.processia2003.com> References: <62F2034CF68DFB45BAA4FB7466782DDC0194579F@denali.processia2003.com> <62F2034CF68DFB45BAA4FB7466782DDC0194584F@denali.processia2003.com> <62F2034CF68DFB45BAA4FB7466782DDC01945992@denali.processia2003.com> Message-ID: If you are using the standard Ubuntu apt-get install the comand definitions are located in /etc/nagios-plugins/config you can modifiy the check_nt command from there in the nt.cfg file Greg Pangrazio On Tue, Nov 30, 2010 at 8:56 AM, Maxime Alarie wrote: > > > > > From: trm asn [mailto:trm.nagios at gmail.com] > Sent: 29 November 2010 10:48 > > To: Nagios Users List > Subject: Re: [Nagios-users] nsclient wrong password > > > > > > On Mon, Nov 29, 2010 at 8:28 PM, Maxime Alarie > wrote: > > From: trm asn [mailto:trm.nagios at gmail.com] > Sent: 27 November 2010 05:20 > > To: Nagios Users List > Subject: Re: [Nagios-users] nsclient wrong password > > > > check nsc.ini for the password & set the same password in nagios command.cfg > file > > On Sat, Nov 27, 2010 at 2:53 AM, Maxime Alarie > wrote: > > Hi, I keep getting this error and I don?t know why..? When I install > nsclient on a windows macine, I provide the nagiosadmin password in the > client, as well as my nagios server IP address.?? For some reason, I keep > having the Invalid password error message both on nsclient.log and on the > server logs, on th e server I also have Connection Refused. > > > > Nsclient.log: > > \NSClientListener.cpp:160: Invalid password (None). > > > > Server: > > [1290806215] SERVICE ALERT: Penang;C:\ Drive Space;UNKNOWN;HARD;4;NSClient - > ERROR: Invalid password. > > [1290806215] SERVICE NOTIFICATION: root;Penang;C:\ Drive > Space;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid password. > > [1290806227] EXTERNAL COMMAND: SCHEDULE_FORCED_HOST_CHECK;Penang;1290806226 > > [1290806235] SERVICE ALERT: Penang;W3SVC;UNKNOWN;HARD;4;NSClient - ERROR: > Invalid password. > > [1290806235] SERVICE NOTIFICATION: > root;Penang;W3SVC;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid > password. > > [1290806275] SERVICE ALERT: Penang;CPU Load;UNKNOWN;HARD;4;NSClient - ERROR: > Invalid password. > > [1290806275] SERVICE NOTIFICATION: root;Penang;CPU > Load;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid password. > > [1290806335] SERVICE ALERT: Penang;Explorer;UNKNOWN;HARD;4;NSClient - ERROR: > Invalid password. > > [1290806335] SERVICE NOTIFICATION: > root;Penang;Explorer;UNKNOWN;notify-service-by-email;NSClient - ERROR: > Invalid password. > > [1290806515] SERVICE ALERT: Penang;C:\ Drive > Space;CRITICAL;HARD;4;Connection refused > > [1290806515] SERVICE NOTIFICATION: root;Penang;C:\ Drive > Space;CRITICAL;notify-service-by-email;Connection refused > > [1290806535] SERVICE ALERT: Penang;W3SVC;CRITICAL;HARD;4;Connection refused > > [1290806535] SERVICE NOTIFICATION: > root;Penang;W3SVC;CRITICAL;notify-service-by-email;Connection refused > > [1290806575] SERVICE ALERT: Penang;CPU Load;CRITICAL;HARD;4;Connection > refused > > [1290806575] SERVICE NOTIFICATION: root;Penang;CPU > Load;CRITICAL;notify-service-by-email;Connection refused > > > > > > What am I doing? wrong here? > > > > I don?t have any password in my commands.cfg looks like this: > > cat /etc/nagios3/commands.cfg > > ############################################################################### > > # COMMANDS.CFG - SAMPLE COMMAND DEFINITIONS FOR NAGIOS > ############################################################################### > > > > > > ################################################################################ > > # NOTIFICATION COMMANDS > > ################################################################################ > > > > > > # 'notify-host-by-email' command definition > > define command{ > > ????? command_name????? notify-host-by-email > > ????? command_line????? /usr/bin/printf "%b" "***** Nagios > *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: > $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: > $LONGDATETIME$\n" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: > $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$ > > ????? } > > > > # 'notify-service-by-email' command definition > > define command{ > > ????? command_name????? notify-service-by-email > > ????? command_line????? /usr/bin/printf "%b" "***** Nagios > *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: > $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: > $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional > Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Service > Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ > > ????? } > > > > > > > > > > > > ################################################################################ > > # HOST CHECK COMMANDS > > ################################################################################ > > > > # On Debian, check-host-alive is being defined from within the > > # nagios-plugins-basic package > > > > ################################################################################ > > # PERFORMANCE DATA COMMANDS > > ################################################################################ > > > > > > # 'process-host-perfdata' command definition > > define command{ > > ????? command_name????? process-host-perfdata > > ????? command_line????? /usr/bin/printf "%b" > "$LASTHOSTCHECK$\t$HOSTNAME$\t$HOSTSTATE$\t$HOSTATTEMPT$\t$HOSTSTATETYPE$\t$HOSTEXECUTIONTIME$\t$HOSTOUTPUT$\t$HOSTPERFDATA$\n" >>> /var/lib/nagios3/host-perfdata.out > > ????? } > > > > > > # 'process-service-perfdata' command definition > > define command{ > > ????? command_name????? process-service-perfdata > > ????? command_line????? /usr/bin/printf "%b" > "$LASTSERVICECHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICESTATE$\t$SERVICEATTEMPT$\t$SERVICESTATETYPE$\t$SERVICEEXECUTIONTIME$\t$SERVICELATENCY$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$\n" >>> /var/lib/nagios3/service-perfdata.out > > ????? } > > > > where is your check_nt command defined ? > > > > > > UI don?t know.? I h ave install? nagio3 that is packaged with Ubuntu.? I > just ?used ?apt-get install nagios and the plugins.? ???It must be run as a > deamon? > > I have removed the password from the NSC files, and it works now. (I only > have? 4 servers to monitor) > > > > > > > ------------------------------------------------------------------------------ > Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! > Tap into the largest installed PC base & get more eyes on your game by > optimizing for Intel(R) Graphics Technology. Get started today with the > Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. > http://p.sf.net/sfu/intelisp-dev2dev > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From work at paul.dubuc.org Tue Nov 30 20:11:11 2010 From: work at paul.dubuc.org (Paul M. Dubuc) Date: Tue, 30 Nov 2010 14:11:11 -0500 Subject: check scheduling when checks are inhibited. In-Reply-To: <4CEB8045.8090507@op5.se> References: <4CEAE3A3.903@paul.dubuc.org> <4CEB8045.8090507@op5.se> Message-ID: <4CF54C4F.2000500@paul.dubuc.org> Andreas, Thanks for your reply to my earlier message. I've done some testing and some more thinking on this since then: On 11/23/2010 03:50 AM, Andreas Ericsson wrote: > On 11/22/2010 10:41 PM, Paul M. Dubuc wrote: >> We're using Nagios 3.2.3 for simulation of monitoring load in a load test >> environment as well as for monitoring production services. I've notices some >> interesting behavior in the way Nagios schedules checks when checks are >> inhibited either though the CGI Process Commands or by setting a check_period >> timeperiod that inhibits checks during regularly scheduled down times. >> >> Normally Nagios seems to spread out host and service checks evenly over time >> but when checks are stopped with the Process Command, Nagios seems to >> reschedule checks so that they are "bunched up" much closer together. This >> creates alternating periods of densely scheduled and more sparsely scheduled >> checks that seem to persist when checks are turned on again. It has a >> noticeable effect in our load testing. The only way--or the quickest way--to >> get Nagios to smooth out the schedule again is to stop the process completely >> until all the scheduled check times have passed. >> >> In testing Nagios monitoring of our production services, if I use the >> check_period to inhibit checks during our down times, I notice that as the >> downtime approaches, ALL checks are rescheduled for the exact time that the >> downtime ends (according to the check_period). This creates a big spike in >> monitoring activity after the downtime. One way to avoid this, I think, is to >> let checks run during the down times but inhibit notifications instead by >> using the timeperiod to define a notification_period. But I wonder if this >> "bunching" up of the schedule when using check_periods is ever a desirable >> behavior. >> > > I have some plans to make Nagios spread the checks with a randomized interleave > factor so that a check scheduled to run once every 5 minutes can be run anywhere > between 4m 30s and 5m 0s after it last ran. The 30 second random-spread would be > the default and it would otherwise be configurable. > > Another thing worth looking into is to make services to the same host not run > simultaneously, in case the checked server is expected to be loaded heavily > it may not play nicely with 30-40 checks fired at it at once. Here's another suggestion: An option that would tell Nagios to stagger the scheduling of service checks when the check_period resumes. Instead of scheduling all the checks for the exact time that the next check_period begins, add an amount of time equal to the time past the check_period ending that the service would have run if the check_period hadn't disabled checks. For example, If I have a check period that is from 9:00 to 17:00 every day. A service running every 5 minutes that runs at 16:57:14 would normally run at 17:02:14 if the check_period did not end at 17:00. This check would be scheduled to run at 9:02:14 the next day instead of 9:00:00. This should keep all checks staggered by the same amount of time in the schedule once the check_period resumes. I think this would be an ideal solution to the problem. Using the auto_rescheduling options (discussed below) seems to help a little bit but not as much as I'd hoped. > > You really should be using scheduled downtime for regular downtime though. There > are pre-hacked solutions to automagically reschedule re-occurring downtime. Ninja > supports it out of the box as of the latest version (or possibly latest git). There are some cases where we really should not be running the checks during down times because of the extra load they put on our system when they fail. (Checks are still run during down times, if I'm not mistaken, only notifications are inhibited.) Many of our checks fail in this case by timing out and they use relatively scarce (shared) and resource intensive processes (web browser sessions run under SeleniumRC). Timeouts tend to be long for these checks so there is more contention for these processes when all the checks using them start failing, and they're run more often until they all go into a 'hard' failure state, etc. Maybe we can live with this, but it would be easier on the system to just inhibit checks we know are going to fail during certain regularly scheduled down times. > >> These aren't critical issues for us since we can work around them >> procedurally. > > That's good to hear. > >> But I wonder if there his a way to prevent the scheduled checks >> from getting bunched together like this if/when you need to inhibit checks for >> a time while keeping Nagios running. Maybe the auto_rescheduling options in >> the nagios.cfg are meant to address this, but they have a potentially negative >> effect on performance according to the comments around them in the file. >> > > The below text is what I'd call "educated speculation" after having thrown > a quick glance at the code. I might be completely wrong, but I don't think > so. > > Not potentially; They do have a negative sideeffect. This is because they > maintain the scheduling intervals between checks stable over time by adding > them to the scheduling queue all the time when they're supposed to run, but > not actually executing them. So if you've scheduled downtime for 4 hours and > have a default check-interval of 5 minutes, auto_rescheduling will schedule > the check every 30 seconds (default) that entire time, but not actually run > the check command unless it's time to do so. > > On the one hand, it shouldn't actually cause any major problems since it'll > still do less than it would do were the checks enabled. On the other hand, > it should be solvable without such hackery, but with the downside that > a check executed 3 minutes before downtime started may not be executed again > until a few minutes after downtime ends. That's how the auto_reschedule > option works too though, if I'm reading the code correctly. > I haven't been able to find anything about how the auto_rescheduling options actually work but, if it does work this way, why reschedule a check at 30 second intervals if it's not going to be run anyway until its regularly scheduled time. From reading the comments in the nagios.cfg (below), I get the impression that, for these values, every 30 seconds Nagios will look at all the checks that are scheduled within the next 180 second window and reschedule them to spread them out equally over time. I tried setting these options to watch what will happen when a check_period ends and begins. When a check_period ends, Nagios still schedules all checks affected by it at the exact time of the beginning of the next check_period but, once the next check period begins, Nagios does seem to spread the checks out a little bit. Some tests are still bunched together, scheduled to run on the same second, others run one second later, still other groups are run concurrenly 10 seconds later. I'm going to experiment more with different interval and window values. > # AUTO-RESCHEDULING OPTION > # This option determines whether or not Nagios will attempt to > # automatically reschedule active host and service checks to > # "smooth" them out over time. This can help balance the load on > # the monitoring server. > # WARNING: THIS IS AN EXPERIMENTAL FEATURE - IT CAN DEGRADE > # PERFORMANCE, RATHER THAN INCREASE IT, IF USED IMPROPERLY > > auto_reschedule_checks=1 > > > > # AUTO-RESCHEDULING INTERVAL > # This option determines how often (in seconds) Nagios will > # attempt to automatically reschedule checks. This option only > # has an effect if the auto_reschedule_checks option is enabled. > # Default is 30 seconds. > # WARNING: THIS IS AN EXPERIMENTAL FEATURE - IT CAN DEGRADE > # PERFORMANCE, RATHER THAN INCREASE IT, IF USED IMPROPERLY > > auto_rescheduling_interval=30 > > > > # AUTO-RESCHEDULING WINDOW > # This option determines the "window" of time (in seconds) that > # Nagios will look at when automatically rescheduling checks. > # Only host and service checks that occur in the next X seconds > # (determined by this variable) will be rescheduled. This option > # only has an effect if the auto_reschedule_checks option is > # enabled. Default is 180 seconds (3 minutes). > # WARNING: THIS IS AN EXPERIMENTAL FEATURE - IT CAN DEGRADE > # PERFORMANCE, RATHER THAN INCREASE IT, IF USED IMPROPERLY > > auto_rescheduling_window=180 ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From malarie at processia.com Tue Nov 30 21:32:16 2010 From: malarie at processia.com (Maxime Alarie) Date: Tue, 30 Nov 2010 15:32:16 -0500 Subject: nsclient wrong password In-Reply-To: References: <62F2034CF68DFB45BAA4FB7466782DDC0194579F@denali.processia2003.com><62F2034CF68DFB45BAA4FB7466782DDC0194584F@denali.processia2003.com><62F2034CF68DFB45BAA4FB7466782DDC01945992@denali.processia2003.com> Message-ID: <62F2034CF68DFB45BAA4FB7466782DDC01945A2B@denali.processia2003.com> Thanks, I will check that right away. Cheers. -----Original Message----- From: Greg Pangrazio [mailto:pangrazi at gmail.com] Sent: 30 November 2010 11:20 To: Nagios Users List Subject: Re: [Nagios-users] nsclient wrong password If you are using the standard Ubuntu apt-get install the comand definitions are located in /etc/nagios-plugins/config you can modifiy the check_nt command from there in the nt.cfg file Greg Pangrazio On Tue, Nov 30, 2010 at 8:56 AM, Maxime Alarie wrote: > > > > > From: trm asn [mailto:trm.nagios at gmail.com] > Sent: 29 November 2010 10:48 > > To: Nagios Users List > Subject: Re: [Nagios-users] nsclient wrong password > > > > > > On Mon, Nov 29, 2010 at 8:28 PM, Maxime Alarie > wrote: > > From: trm asn [mailto:trm.nagios at gmail.com] > Sent: 27 November 2010 05:20 > > To: Nagios Users List > Subject: Re: [Nagios-users] nsclient wrong password > > > > check nsc.ini for the password & set the same password in nagios command.cfg > file > > On Sat, Nov 27, 2010 at 2:53 AM, Maxime Alarie > wrote: > > Hi, I keep getting this error and I don't know why..? When I install > nsclient on a windows macine, I provide the nagiosadmin password in the > client, as well as my nagios server IP address.?? For some reason, I keep > having the Invalid password error message both on nsclient.log and on the > server logs, on th e server I also have Connection Refused. > > > > Nsclient.log: > > \NSClientListener.cpp:160: Invalid password (None). > > > > Server: > > [1290806215] SERVICE ALERT: Penang;C:\ Drive Space;UNKNOWN;HARD;4;NSClient - > ERROR: Invalid password. > > [1290806215] SERVICE NOTIFICATION: root;Penang;C:\ Drive > Space;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid password. > > [1290806227] EXTERNAL COMMAND: SCHEDULE_FORCED_HOST_CHECK;Penang;1290806226 > > [1290806235] SERVICE ALERT: Penang;W3SVC;UNKNOWN;HARD;4;NSClient - ERROR: > Invalid password. > > [1290806235] SERVICE NOTIFICATION: > root;Penang;W3SVC;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid > password. > > [1290806275] SERVICE ALERT: Penang;CPU Load;UNKNOWN;HARD;4;NSClient - ERROR: > Invalid password. > > [1290806275] SERVICE NOTIFICATION: root;Penang;CPU > Load;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid password. > > [1290806335] SERVICE ALERT: Penang;Explorer;UNKNOWN;HARD;4;NSClient - ERROR: > Invalid password. > > [1290806335] SERVICE NOTIFICATION: > root;Penang;Explorer;UNKNOWN;notify-service-by-email;NSClient - ERROR: > Invalid password. > > [1290806515] SERVICE ALERT: Penang;C:\ Drive > Space;CRITICAL;HARD;4;Connection refused > > [1290806515] SERVICE NOTIFICATION: root;Penang;C:\ Drive > Space;CRITICAL;notify-service-by-email;Connection refused > > [1290806535] SERVICE ALERT: Penang;W3SVC;CRITICAL;HARD;4;Connection refused > > [1290806535] SERVICE NOTIFICATION: > root;Penang;W3SVC;CRITICAL;notify-service-by-email;Connection refused > > [1290806575] SERVICE ALERT: Penang;CPU Load;CRITICAL;HARD;4;Connection > refused > > [1290806575] SERVICE NOTIFICATION: root;Penang;CPU > Load;CRITICAL;notify-service-by-email;Connection refused > > > > > > What am I doing? wrong here? > > > > I don't have any password in my commands.cfg looks like this: > > cat /etc/nagios3/commands.cfg > > ############################################################################### > > # COMMANDS.CFG - SAMPLE COMMAND DEFINITIONS FOR NAGIOS > ############################################################################### > > > > > > ################################################################################ > > # NOTIFICATION COMMANDS > > ################################################################################ > > > > > > # 'notify-host-by-email' command definition > > define command{ > > ????? command_name????? notify-host-by-email > > ????? command_line????? /usr/bin/printf "%b" "***** Nagios > *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: > $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: > $LONGDATETIME$\n" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: > $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$ > > ????? } > > > > # 'notify-service-by-email' command definition > > define command{ > > ????? command_name????? notify-service-by-email > > ????? command_line????? /usr/bin/printf "%b" "***** Nagios > *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: > $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: > $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional > Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Service > Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ > > ????? } > > > > > > > > > > > > ################################################################################ > > # HOST CHECK COMMANDS > > ################################################################################ > > > > # On Debian, check-host-alive is being defined from within the > > # nagios-plugins-basic package > > > > ################################################################################ > > # PERFORMANCE DATA COMMANDS > > ################################################################################ > > > > > > # 'process-host-perfdata' command definition > > define command{ > > ????? command_name????? process-host-perfdata > > ????? command_line????? /usr/bin/printf "%b" > "$LASTHOSTCHECK$\t$HOSTNAME$\t$HOSTSTATE$\t$HOSTATTEMPT$\t$HOSTSTATETYPE$\t$HOSTEXECUTIONTIME$\t$HOSTOUTPUT$\t$HOSTPERFDATA$\n" >>> /var/lib/nagios3/host-perfdata.out > > ????? } > > > > > > # 'process-service-perfdata' command definition > > define command{ > > ????? command_name????? process-service-perfdata > > ????? command_line????? /usr/bin/printf "%b" > "$LASTSERVICECHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICESTATE$\t$SERVICEATTEMPT$\t$SERVICESTATETYPE$\t$SERVICEEXECUTIONTIME$\t$SERVICELATENCY$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$\n" >>> /var/lib/nagios3/service-perfdata.out > > ????? } > > > > where is your check_nt command defined ? > > > > > > UI don't know.? I h ave install? nagio3 that is packaged with Ubuntu.? I > just ?used ?apt-get install nagios and the plugins.? ???It must be run as a > deamon? > > I have removed the password from the NSC files, and it works now. (I only > have? 4 servers to monitor) > > > > > > > ------------------------------------------------------------------------------ > Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! > Tap into the largest installed PC base & get more eyes on your game by > optimizing for Intel(R) Graphics Technology. Get started today with the > Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. > http://p.sf.net/sfu/intelisp-dev2dev > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From malarie at processia.com Tue Nov 30 21:50:36 2010 From: malarie at processia.com (Maxime Alarie) Date: Tue, 30 Nov 2010 15:50:36 -0500 Subject: nsclient wrong password In-Reply-To: <62F2034CF68DFB45BAA4FB7466782DDC01945A2B@denali.processia2003.com> References: <62F2034CF68DFB45BAA4FB7466782DDC0194579F@denali.processia2003.com><62F2034CF68DFB45BAA4FB7466782DDC0194584F@denali.processia2003.com><62F2034CF68DFB45BAA4FB7466782DDC01945992@denali.processia2003.com> <62F2034CF68DFB45BAA4FB7466782DDC01945A2B@denali.processia2003.com> Message-ID: <62F2034CF68DFB45BAA4FB7466782DDC01945A33@denali.processia2003.com> I dont have any passowrd in my nt.cfg file for the check_nt command.. Here is my config file: # If you are confused about this command definition, cause you was # reading other suggestions, please have a look into # /usr/share/doc/nagios-plugins/README.Debian # 'check_nt' command definition define command { command_name check_nt command_line /usr/lib/nagios/plugins/check_nt -H '$HOSTADDRESS$' -v '$ARG1$' } # 'check_nscp' command definition define command { command_name check_nscp command_line /usr/lib/nagios/plugins/check_nt -H '$HOSTADDRESS$' -p 12489 -v '$ARG1$' } -----Original Message----- From: Maxime Alarie [mailto:malarie at processia.com] Sent: 30 November 2010 15:32 To: Nagios Users List Subject: Re: [Nagios-users] nsclient wrong password Thanks, I will check that right away. Cheers. -----Original Message----- From: Greg Pangrazio [mailto:pangrazi at gmail.com] Sent: 30 November 2010 11:20 To: Nagios Users List Subject: Re: [Nagios-users] nsclient wrong password If you are using the standard Ubuntu apt-get install the comand definitions are located in /etc/nagios-plugins/config you can modifiy the check_nt command from there in the nt.cfg file Greg Pangrazio On Tue, Nov 30, 2010 at 8:56 AM, Maxime Alarie wrote: > > > > > From: trm asn [mailto:trm.nagios at gmail.com] > Sent: 29 November 2010 10:48 > > To: Nagios Users List > Subject: Re: [Nagios-users] nsclient wrong password > > > > > > On Mon, Nov 29, 2010 at 8:28 PM, Maxime Alarie > wrote: > > From: trm asn [mailto:trm.nagios at gmail.com] > Sent: 27 November 2010 05:20 > > To: Nagios Users List > Subject: Re: [Nagios-users] nsclient wrong password > > > > check nsc.ini for the password & set the same password in nagios command.cfg > file > > On Sat, Nov 27, 2010 at 2:53 AM, Maxime Alarie > wrote: > > Hi, I keep getting this error and I don't know why..? When I install > nsclient on a windows macine, I provide the nagiosadmin password in the > client, as well as my nagios server IP address.?? For some reason, I keep > having the Invalid password error message both on nsclient.log and on the > server logs, on th e server I also have Connection Refused. > > > > Nsclient.log: > > \NSClientListener.cpp:160: Invalid password (None). > > > > Server: > > [1290806215] SERVICE ALERT: Penang;C:\ Drive Space;UNKNOWN;HARD;4;NSClient - > ERROR: Invalid password. > > [1290806215] SERVICE NOTIFICATION: root;Penang;C:\ Drive > Space;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid password. > > [1290806227] EXTERNAL COMMAND: SCHEDULE_FORCED_HOST_CHECK;Penang;1290806226 > > [1290806235] SERVICE ALERT: Penang;W3SVC;UNKNOWN;HARD;4;NSClient - ERROR: > Invalid password. > > [1290806235] SERVICE NOTIFICATION: > root;Penang;W3SVC;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid > password. > > [1290806275] SERVICE ALERT: Penang;CPU Load;UNKNOWN;HARD;4;NSClient - ERROR: > Invalid password. > > [1290806275] SERVICE NOTIFICATION: root;Penang;CPU > Load;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid password. > > [1290806335] SERVICE ALERT: Penang;Explorer;UNKNOWN;HARD;4;NSClient - ERROR: > Invalid password. > > [1290806335] SERVICE NOTIFICATION: > root;Penang;Explorer;UNKNOWN;notify-service-by-email;NSClient - ERROR: > Invalid password. > > [1290806515] SERVICE ALERT: Penang;C:\ Drive > Space;CRITICAL;HARD;4;Connection refused > > [1290806515] SERVICE NOTIFICATION: root;Penang;C:\ Drive > Space;CRITICAL;notify-service-by-email;Connection refused > > [1290806535] SERVICE ALERT: Penang;W3SVC;CRITICAL;HARD;4;Connection refused > > [1290806535] SERVICE NOTIFICATION: > root;Penang;W3SVC;CRITICAL;notify-service-by-email;Connection refused > > [1290806575] SERVICE ALERT: Penang;CPU Load;CRITICAL;HARD;4;Connection > refused > > [1290806575] SERVICE NOTIFICATION: root;Penang;CPU > Load;CRITICAL;notify-service-by-email;Connection refused > > > > > > What am I doing? wrong here? > > > > I don't have any password in my commands.cfg looks like this: > > cat /etc/nagios3/commands.cfg > > ############################################################################### > > # COMMANDS.CFG - SAMPLE COMMAND DEFINITIONS FOR NAGIOS > ############################################################################### > > > > > > ################################################################################ > > # NOTIFICATION COMMANDS > > ################################################################################ > > > > > > # 'notify-host-by-email' command definition > > define command{ > > ????? command_name????? notify-host-by-email > > ????? command_line????? /usr/bin/printf "%b" "***** Nagios > *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: > $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: > $LONGDATETIME$\n" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: > $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$ > > ????? } > > > > # 'notify-service-by-email' command definition > > define command{ > > ????? command_name????? notify-service-by-email > > ????? command_line????? /usr/bin/printf "%b" "***** Nagios > *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: > $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: > $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional > Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Service > Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ > > ????? } > > > > > > > > > > > > ################################################################################ > > # HOST CHECK COMMANDS > > ################################################################################ > > > > # On Debian, check-host-alive is being defined from within the > > # nagios-plugins-basic package > > > > ################################################################################ > > # PERFORMANCE DATA COMMANDS > > ################################################################################ > > > > > > # 'process-host-perfdata' command definition > > define command{ > > ????? command_name????? process-host-perfdata > > ????? command_line????? /usr/bin/printf "%b" > "$LASTHOSTCHECK$\t$HOSTNAME$\t$HOSTSTATE$\t$HOSTATTEMPT$\t$HOSTSTATETYPE$\t$HOSTEXECUTIONTIME$\t$HOSTOUTPUT$\t$HOSTPERFDATA$\n" >>> /var/lib/nagios3/host-perfdata.out > > ????? } > > > > > > # 'process-service-perfdata' command definition > > define command{ > > ????? command_name????? process-service-perfdata > > ????? command_line????? /usr/bin/printf "%b" > "$LASTSERVICECHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICESTATE$\t$SERVICEATTEMPT$\t$SERVICESTATETYPE$\t$SERVICEEXECUTIONTIME$\t$SERVICELATENCY$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$\n" >>> /var/lib/nagios3/service-perfdata.out > > ????? } > > > > where is your check_nt command defined ? > > > > > > UI don't know.? I h ave install? nagio3 that is packaged with Ubuntu.? I > just ?used ?apt-get install nagios and the plugins.? ???It must be run as a > deamon? > > I have removed the password from the NSC files, and it works now. (I only > have? 4 servers to monitor) > > > > > > > ------------------------------------------------------------------------------ > Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! > Tap into the largest installed PC base & get more eyes on your game by > optimizing for Intel(R) Graphics Technology. Get started today with the > Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. > http://p.sf.net/sfu/intelisp-dev2dev > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null