Page 1 of 1

not execcuting service checks, itsonly checking for flapping

Posted: Mon Sep 08, 2014 3:59 pm
by peter_dobbs
Hello,

Service checks do not seem to be happening, when it time to run the service check,it only
checks to see if its flapping instead of executing the actual check comand.

The 'last check' looks good, about 3 minutes ago
The 'next check' looks good, about 5 minutes in the future
In the scheduling queue, I see the service check is scheduled, same as the 'next check' time in service status.

When it comes time to check, it does not run the check command, and reschedules the next check anyway.

If I manually fail the website ( what the service is checking) and it comes time to check the service, it does
not mark it down..
In nagios.debug , when it somes time to run the service check, i see
Checking service 'FOO' on host 'BAR' for flapping...
[1410202548.652321] [016.1] [pid=26838] Service is not flapping (0.00% state change).

This is happening to all my services. I tried stopping nagios , removing the retention file, now
everything is stuck in 'pending' and the 'next check' time keeps incrementing.

This is nagios 3.4.1 on Debian Wheezy. My main config file is:

Code: Select all

accept_passive_host_checks=1
accept_passive_service_checks=1
additional_freshness_latency=15
admin_email=root@localhost
admin_pager=pageroot@localhost
auto_reschedule_checks=0
auto_rescheduling_interval=30
auto_rescheduling_window=180
bare_update_check=0
cached_host_check_horizon=15
cached_service_check_horizon=15
cfg_dir=/etc/nagios3/conf.d
cfg_dir=/etc/nagios3/rusa/
cfg_dir=/etc/nagios-plugins/config
cfg_file=/etc/nagios3/commands.cfg
check_external_commands=1
check_for_orphaned_hosts=1
check_for_orphaned_services=1
check_for_updates=1
check_host_freshness=0
check_result_path=/var/lib/nagios3/spool/checkresults
check_result_reaper_frequency=10
check_service_freshness=1
command_check_interval=-1
command_file=/var/lib/nagios3/rw/nagios.cmd
daemon_dumps_core=0
date_format=iso8601
debug_file=/var/log/nagios3/nagios.debug
debug_level=-1
debug_verbosity=1
enable_embedded_perl=1
enable_environment_macros=1
enable_event_handlers=1
enable_flap_detection=0
enable_notifications=0
enable_predictive_host_dependency_checks=1
enable_predictive_service_dependency_checks=1
event_broker_options=-1
event_handler_timeout=30
execute_host_checks=1
execute_service_checks=1
external_command_buffer_slots=4096
high_host_flap_threshold=20.0
high_service_flap_threshold=20.0
host_check_timeout=30
host_freshness_check_interval=60
host_inter_check_delay_method=s
illegal_macro_output_chars=`~$&|'"<>
illegal_object_name_chars=`~!$%^&*|'"<>?,()=
interval_length=60
lock_file=/var/run/nagios3/nagios3.pid
log_archive_path=/var/log/nagios3/archives
log_event_handlers=1
log_external_commands=1
log_file=/var/log/nagios3/nagios.log
log_host_retries=1
log_initial_states=0
log_notifications=1
log_passive_checks=1
log_rotation_method=d
log_service_retries=1
low_host_flap_threshold=5.0
low_service_flap_threshold=5.0
max_check_result_file_age=3600
max_check_result_reaper_time=30
max_concurrent_checks=0
max_debug_file_size=100000000
max_host_check_spread=30
max_service_check_spread=30
nagios_group=nagios
nagios_user=nagios
notification_timeout=30
object_cache_file=/var/cache/nagios3/objects.cache
obsess_over_hosts=0
obsess_over_services=0
ocsp_timeout=5
p1_file=/usr/lib/nagios3/p1.pl
passive_host_checks_are_soft=0
perfdata_timeout=5
precached_object_file=/var/lib/nagios3/objects.precache
process_performance_data=0
resource_file=/etc/nagios3/resource.cfg
retained_contact_host_attribute_mask=0
retained_contact_service_attribute_mask=0
retained_host_attribute_mask=0
retained_process_host_attribute_mask=0
retained_process_service_attribute_mask=0
retained_service_attribute_mask=0
retain_state_information=1
retention_update_interval=60
service_check_timeout=60
service_check_timeout_state=c
service_freshness_check_interval=60
service_inter_check_delay_method=s
service_interleave_factor=s
sleep_time=0.25
soft_state_dependencies=0
state_retention_file=/var/lib/nagios3/retention.dat
status_file=/var/cache/nagios3/status.dat
status_update_interval=10
temp_file=/var/cache/nagios3/nagios.tmp
temp_path=/tmp
translate_passive_host_checks=0
use_aggressive_host_checking=0
use_embedded_perl_implicitly=1
use_large_installation_tweaks=0
use_regexp_matching=0
use_retained_program_state=1
use_retained_scheduling_info=1
use_syslog=1

Re: not execcuting service checks, itsonly checking for flap

Posted: Mon Sep 08, 2014 5:09 pm
by abrist
Could you restart nagios, wait a moment, and the run a large tail of the debug log and post it here?

Code: Select all

service nagios restart
tail -100 /var/log/nagios3/nagios.debug 

Re: not execcuting service checks, itsonly checking for flap

Posted: Tue Sep 09, 2014 10:44 am
by peter_dobbs
I"m not sure how others do it, but for a website check, i have a 'host' setup with a check_command that goes to a no-op plugin that always returns OK, then a service with check_http on that host.

I have 2 snippets below, the first one i captured after about 30 seconds into restart only seems to capture host checks so there is another snippit following showing the flapping check instead of service check.

I watched the particular service chck for 'vendor_website-exact_target-V021' from the web interface. The service check was scheduled for 11:31. A few minutes after 11:31 that particular service shows "This service has not yet been checked," and in the service status detail it shows PENDING N/A 0d 0h 0m 25s+ 1/2 Service check scheduled for Tue Sep 9 11:49:13 EDT 2014



Thanks for looking,
Peter.

Code: Select all

[1410273616.694023] [064.1] [pid=14108] Making callbacks (type 8)...
[1410273616.944157] [008.1] [pid=14108] ** Event Check Loop
[1410273616.944208] [008.1] [pid=14108] Next High Priority Event Time: Tue Sep  9 10:40:18 2014
[1410273616.944214] [008.1] [pid=14108] Next Low Priority Event Time:  Tue Sep  9 10:40:26 2014
[1410273616.944217] [008.1] [pid=14108] Current/Max Service Checks: 0/0
[1410273616.944222] [001.0] [pid=14108] check_for_external_commands()
[1410273616.944225] [064.1] [pid=14108] Making callbacks (type 8)...
[1410273617.194374] [008.1] [pid=14108] ** Event Check Loop
[1410273617.196031] [008.1] [pid=14108] Next High Priority Event Time: Tue Sep  9 10:40:18 2014
[1410273617.196040] [008.1] [pid=14108] Next Low Priority Event Time:  Tue Sep  9 10:40:26 2014
[1410273617.196043] [008.1] [pid=14108] Current/Max Service Checks: 0/0
[1410273617.196048] [001.0] [pid=14108] check_for_external_commands()
[1410273617.196052] [064.1] [pid=14108] Making callbacks (type 8)...
[1410273617.446206] [008.1] [pid=14108] ** Event Check Loop
[1410273617.446267] [008.1] [pid=14108] Next High Priority Event Time: Tue Sep  9 10:40:18 2014
[1410273617.446274] [008.1] [pid=14108] Next Low Priority Event Time:  Tue Sep  9 10:40:26 2014
[1410273617.446276] [008.1] [pid=14108] Current/Max Service Checks: 0/0
[1410273617.446282] [001.0] [pid=14108] check_for_external_commands()
[1410273617.446286] [064.1] [pid=14108] Making callbacks (type 8)...
[1410273617.696446] [008.1] [pid=14108] ** Event Check Loop
[1410273617.696500] [008.1] [pid=14108] Next High Priority Event Time: Tue Sep  9 10:40:18 2014
[1410273617.696507] [008.1] [pid=14108] Next Low Priority Event Time:  Tue Sep  9 10:40:26 2014
[1410273617.696510] [008.1] [pid=14108] Current/Max Service Checks: 0/0
[1410273617.696515] [001.0] [pid=14108] check_for_external_commands()
[1410273617.696519] [064.1] [pid=14108] Making callbacks (type 8)...
[1410273617.946652] [008.1] [pid=14108] ** Event Check Loop
[1410273617.946707] [008.1] [pid=14108] Next High Priority Event Time: Tue Sep  9 10:40:18 2014
[1410273617.946714] [008.1] [pid=14108] Next Low Priority Event Time:  Tue Sep  9 10:40:26 2014
[1410273617.946717] [008.1] [pid=14108] Current/Max Service Checks: 0/0
[1410273617.946723] [001.0] [pid=14108] check_for_external_commands()
[1410273617.946727] [064.1] [pid=14108] Making callbacks (type 8)...
[1410273618.196871] [008.1] [pid=14108] ** Event Check Loop
[1410273618.196920] [008.1] [pid=14108] Next High Priority Event Time: Tue Sep  9 10:40:18 2014
[1410273618.196937] [008.1] [pid=14108] Next Low Priority Event Time:  Tue Sep  9 10:40:26 2014
[1410273618.196941] [008.1] [pid=14108] Current/Max Service Checks: 0/0
[1410273618.196946] [001.0] [pid=14108] handle_timed_event() start
[1410273618.196949] [064.1] [pid=14108] Making callbacks (type 8)...
[1410273618.196954] [008.0] [pid=14108] ** Timed Event ** Type: 5, Run Time: Tue Sep  9 10:40:18 2014
[1410273618.196957] [008.0] [pid=14108] ** Check Result Reaper
[1410273618.196960] [001.0] [pid=14108] reap_check_results() start
[1410273618.196962] [016.0] [pid=14108] Starting to reap check results.
[1410273618.196984] [016.1] [pid=14108] Starting to read check result queue '/var/lib/nagios3/spool/checkresults'...
[1410273618.197007] [016.1] [pid=14108] Processing check result file: '/var/lib/nagios3/spool/checkresults/c4MJgi2'
[1410273618.197092] [016.1] [pid=14108] Processing check result file: '/var/lib/nagios3/spool/checkresults/cwhXPH7'
[1410273618.197152] [016.1] [pid=14108] Processing check result file: '/var/lib/nagios3/spool/checkresults/ce0GA7c'
[1410273618.197206] [016.1] [pid=14108] Processing check result file: '/var/lib/nagios3/spool/checkresults/chZiBSW'
[1410273618.197251] [016.1] [pid=14108] Handling check result for host 'website-www.mustard.com-prd-V189'...
[1410273618.197256] [001.0] [pid=14108] handle_async_host_check_result_3x()
[1410273618.197258] [016.1] [pid=14108] ** Handling async check result for host 'website-www.mustard.com-prd-V189'...
[1410273618.197266] [001.0] [pid=14108] process_host_check_result_3x()
[1410273618.197269] [016.1] [pid=14108] HOST: website-www.mustard.com-prd-V189, ATTEMPT=1/2, CHECK TYPE=ACTIVE, STATE TYPE=HARD, OLD STATE=0, NEW STATE=0
[1410273618.197272] [016.1] [pid=14108] Host was UP.
[1410273618.197274] [016.1] [pid=14108] Host is still UP.
[1410273618.197276] [016.1] [pid=14108] Pre-handle_host_state() Host: website-www.mustard.com-prd-V189, Attempt=1/2, Type=HARD, Final State=0
[1410273618.197279] [001.0] [pid=14108] handle_host_state()
[1410273618.197281] [001.0] [pid=14108] obsessive_compulsive_host_check_processor()
[1410273618.197285] [016.1] [pid=14108] Post-handle_host_state() Host: website-www.mustard.com-prd-V189, Attempt=1/2, Type=HARD, Final State=0
[1410273618.197288] [001.0] [pid=14108] check_for_host_flapping()
[1410273618.197290] [016.1] [pid=14108] Checking host 'website-www.mustard.com-prd-V189' for flapping...
[1410273618.197297] [016.1] [pid=14108] Rescheduling next check of host at Tue Sep  9 10:45:18 2014
[1410273618.197300] [001.0] [pid=14108] get_next_valid_time()
[1410273618.197303] [001.0] [pid=14108] schedule_host_check()
[1410273618.197307] [016.0] [pid=14108] Scheduling a non-forced, active check of host 'website-www.mustard.com-prd-V189' @ Tue Sep  9 10:45:18 2014
[1410273618.197311] [001.0] [pid=14108] reschedule_event()
[1410273618.197313] [001.0] [pid=14108] add_event()
[1410273618.197317] [064.1] [pid=14108] Making callbacks (type 8)...
[1410273618.197320] [064.1] [pid=14108] Making callbacks (type 19)...
[1410273618.197323] [064.1] [pid=14108] Making callbacks (type 19)...
[1410273618.197325] [016.1] [pid=14108] ** Async check result for host 'website-www.mustard.com-prd-V189' handled: new state=0
[1410273618.197329] [064.1] [pid=14108] Making callbacks (type 14)...
[1410273618.197331] [016.1] [pid=14108] Deleted check result file '/var/lib/nagios3/spool/checkresults/ce0GA7c'
[1410273618.197334] [016.1] [pid=14108] Handling check result for host 'website-www.fishnchips.com-prd-V027'...
[1410273618.197336] [001.0] [pid=14108] handle_async_host_check_result_3x()
[1410273618.197339] [016.1] [pid=14108] ** Handling async check result for host 'website-www.fishnchips.com-prd-V027'...
[1410273618.197342] [001.0] [pid=14108] process_host_check_result_3x()
[1410273618.197344] [016.1] [pid=14108] HOST: website-www.fishnchips.com-prd-V027, ATTEMPT=1/2, CHECK TYPE=ACTIVE, STATE TYPE=HARD, OLD STATE=0, NEW STATE=0
[1410273618.197347] [016.1] [pid=14108] Host was UP.
[1410273618.197349] [016.1] [pid=14108] Host is still UP.
[1410273618.197355] [016.1] [pid=14108] Pre-handle_host_state() Host: website-www.fishnchips.com-prd-V027, Attempt=1/2, Type=HARD, Final State=0
[1410273618.197358] [001.0] [pid=14108] handle_host_state()
[1410273618.197360] [001.0] [pid=14108] obsessive_compulsive_host_check_processor()
[1410273618.197362] [016.1] [pid=14108] Post-handle_host_state() Host: website-www.fishnchips.com-prd-V027, Attempt=1/2, Type=HARD, Final State=0
[1410273618.197365] [001.0] [pid=14108] check_for_host_flapping()
[1410273618.197367] [016.1] [pid=14108] Checking host 'website-www.fishnchips.com-prd-V027' for flapping...
[1410273618.197373] [016.1] [pid=14108] Rescheduling next check of host at Tue Sep  9 10:45:18 2014
[1410273618.197375] [001.0] [pid=14108] get_next_valid_time()
[1410273618.197378] [001.0] [pid=14108] schedule_host_check()
[1410273618.197382] [016.0] [pid=14108] Scheduling a non-forced, active check of host 'website-www.fishnchips.com-prd-V027' @ Tue Sep  9 10:45:18 2014
[1410273618.197385] [001.0] [pid=14108] reschedule_event()
[1410273618.197387] [001.0] [pid=14108] add_event()
[1410273618.197390] [064.1] [pid=14108] Making callbacks (type 8)...
[1410273618.197392] [064.1] [pid=14108] Making callbacks (type 19)...
[1410273618.197395] [064.1] [pid=14108] Making callbacks (type 19)...
[1410273618.197397] [016.1] [pid=14108] ** Async check result for host 'website-www.fishnchips.com-prd-V027' handled: new state=0
[1410273618.197400] [064.1] [pid=14108] Making callbacks (type 14)...
[1410273618.197402] [016.1] [pid=14108] Deleted check result file '/var/lib/nagios3/spool/checkresults/cwhXPH7'
[1410273618.197405] [016.1] [pid=14108] Handling check result for host 'website-wiggleworm.com-prd-V209'...
[1410273618.197407] [001.0] [pid=14108] handle_async_host_check_result_3x()
[1410273618.197410] [016.1] [pid=14108] ** Handling async check result for host 'website-wiggleworm.com-prd-V209'...
[1410273618.197414] [001.0] [pid=14108] process_host_check_result_3x()
[1410273618.197417] [016.1] [pid=14108] HOST: website-wiggleworm.com-prd-V209, ATTEMPT=1/2, CHECK TYPE=ACTIVE, STATE TYPE=HARD, OLD STATE=0, NEW STATE=0
[1410273618.197420] [016.1] [pid=14108] Host was UP.
[1410273618.197422] [016.1] [pid=14108] Host is still UP.


Code: Select all

[1410273588.895558] [001.0] [pid=14108] check_for_service_flapping()
[1410273588.895561] [016.1] [pid=14108] Checking service 'dns-server-check' on host 'ns2.mustard.com' for flapping...
[1410273588.895564] [064.1] [pid=14108] Making callbacks (type 20)...
[1410273588.897804] [001.0] [pid=14108] check_for_service_flapping()
[1410273588.897815] [016.1] [pid=14108] Checking service 'dns-server-check' on host 'ns3.mustard.com' for flapping...
[1410273588.897818] [064.1] [pid=14108] Making callbacks (type 20)...
[1410273588.897883] [001.0] [pid=14108] check_for_service_flapping()
[1410273588.897887] [016.1] [pid=14108] Checking service 'vanity-redirect-ai.rpus.net' on host 'website-ai.rpus.net-prd' for flapping...
[1410273588.897890] [064.1] [pid=14108] Making callbacks (type 20)...
[1410273588.897953] [001.0] [pid=14108] check_for_service_flapping()
[1410273588.897957] [016.1] [pid=14108] Checking service 'vendor_website-bullhorn_webservice-V018' on host 'website-api.bullhornstaffing.com-prd-V211' for flapping...
[1410273588.897960] [064.1] [pid=14108] Making callbacks (type 20)...
[1410273588.898008] [001.0] [pid=14108] check_for_service_flapping()
[1410273588.898011] [016.1] [pid=14108] Checking service 'vendor_website-exact_target-V021' on host 'website-api.dc1.exacttarget.com-prd-V214' for flapping...
[1410273588.898014] [064.1] [pid=14108] Making callbacks (type 20)...
[1410273588.898064] [001.0] [pid=14108] check_for_service_flapping()
[1410273588.898071] [016.1] [pid=14108] Checking service 'peoplesoft_public_website-applyonline.4career.com-prd-P324' on host 'website-applyonline.4career.com-prd-V123' for flapping...
[1410273588.898074] [064.1] [pid=14108] Making callbacks (type 20)...
[1410273588.898132] [001.0] [pid=14108] check_for_service_flapping()
[1410273588.898135] [016.1] [pid=14108] Checking service 'peoplesoft_public_website-applyonline.mustard.com-prd-P334' on host 'website-applyonline.mustard.com-prd-V126' for flapping...
[1410273588.898137] [064.1] [pid=14108] Making callbacks (type 20)...
[1410273588.898196] [001.0] [pid=14108] check_for_service_flapping()
[1410273588.898200] [016.1] [pid=14108] Checking service 'iis_public_website-dpmoleads.pickleusa.com-prd-V012' on host 'website-dpmoleads.pickleusa.com-prd-V205' for flapping...
[1410273588.898202] [064.1] [pid=14108] Making callbacks (type 20)...
[1410273588.898246] [001.0] [pid=14108] check_for_service_flapping()
[1410273588.898248] [016.1] [pid=14108] Checking service 'vendor_website-dhs_everify-V019' on host 'website-e-verify.uscis.gov-prd-V212' for flapping...
[1410273588.898251] [064.1] [pid=14108] Making callbacks (type 20)...
[1410273588.898293] [001.0] [pid=14108] check_for_service_flapping()
[1410273588.898296] [016.1] [pid=14108] Checking service 'iis_public_website-erecruit.pickleusa.com-prd-V035' on host 'website-erecruit.pickleusa.com-prd-V226' for flapping...
[1410273588.898299] [064.1] [pid=14108] Making callbacks (type 20)...
[1410273588.898343] [001.0] [pid=14108] check_for_service_flapping()
[1410273588.898346] [016.1] [pid=14108] Checking service 'iis_public_website-expertexchange.pickleusa.com-prd-V013' on host 'website-expertexchange.pickleusa.com-prd-V206' for flapping...
[1410273588.898349] [064.1] [pid=14108] Making callbacks (type 20)...
[1410273588.898391] [001.0] [pid=14108] check_for_service_flapping()
[1410273588.898394] [016.1] [pid=14108] Checking service 'iis_public_website-jobapply.pickleusa.com-prd-V030' on host 'website-jobapply.pickleusa.com-prd-V187' for flapping...
[1410273588.898396] [064.1] [pid=14108] Making callbacks (type 20)...
[1410273588.898439] [001.0] [pid=14108] check_for_service_flapping()
[1410273588.898441] [016.1] [pid=14108] Checking service 'peoplesoft_public_website-ksfield.mustard.com-prd-P118' on host 'website-ksfield.mustard.com-prd-V092' for flapping...
[1410273588.898444] [064.1] [pid=14108] Making callbacks (type 20)...
[1410273588.898488] [001.0] [pid=14108] check_for_service_flapping()
[1410273588.898491] [016.1] [pid=14108] Checking service 'peoplesoft_public_website-ksfield.mustardexchange.com-prd-P316' on host 'website-ksfield.mustardexchange.com-prd-V121' for flapping...
[1410273588.898506] [064.1] [pid=14108] Making callbacks (type 20)...
[1410273588.898551] [001.0] [pid=14108] check_for_service_flapping()
[1410273588.898554] [016.1] [pid=14108] Checking service 'peoplesoft_public_website-ksfin.mustard.com-prd-P630' on host 'website-ksfin.mustard.com-prd-V185' for flapping...
[1410273588.898556] [064.1] [pid=14108] Making callbacks (type 20)...
[1410273588.898600] [001.0] [pid=14108] check_for_service_flapping()
[1410273588.898602] [016.1] [pid=14108] Checking service 'peoplesoft_public_website-ksfin.mustardexchange.com-prd-P320' on host 'website-ksfin.mustardexchange.com-prd-V122' for flapping...
[1410273588.898605] [064.1] [pid=14108] Making callbacks (type 20)...
[1410273588.898651] [001.0] [pid=14108] check_for_service_flapping()
[1410273588.898654] [016.1] [pid=14108] Checking service 'peoplesoft_public_website-kshrms.mustard.com-prd-P065' on host 'website-kshrms.mustard.com-prd-V080' for flapping...
[1410273588.898656] [064.1] [pid=14108] Making callbacks (type 20)...
[1410273588.898714] [001.0] [pid=14108] check_for_service_flapping()

Re: not execcuting service checks, itsonly checking for flap

Posted: Tue Sep 09, 2014 5:23 pm
by abrist
Can you post the no-op plugin that you mentioned?
Additionally, can you also post the log starting from the point that nagios is restarted?

Re: not execcuting service checks, itsonly checking for flap

Posted: Tue Sep 09, 2014 8:02 pm
by peter_dobbs
Here is the detailed config with one sample service check. The debug log is attached. Upon startup this check was: Service check scheduled for Tue Sep 9 20:39:07 EDT 2014

==========================================================

Code: Select all

define host{
        name                            remote_virtual-host    ; The name of this host template
        notifications_enabled           1       ; Host notifications are enabled
        event_handler_enabled           1       ; Host event handler is enabled
        flap_detection_enabled          1       ; Flap detection is enabled
        failure_prediction_enabled      1       ; Failure prediction is enabled
        process_perf_data               1       ; Process performance data
        retain_status_information       1       ; Retain status information across program restarts
        retain_nonstatus_information    1       ; Retain non-status information across program restarts
        max_check_attempts     2
        notification_interval   120
        notification_options    d,r  ; down and recover
        register                        0       ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
        }

define host {
        host_name       website-api.dc1.exacttarget.com-prd-V214
        alias           none
        address         api.dc1.exacttarget.com
        notification_period 24x7
        contact_groups  admins
        use                     remote_virtual-host
        check_command phony-check-host-alive

        }


define command{
        command_name    phony-check-host-alive
        command_line    /usr/lib/nagios/plugins/check_phony
        }



#ls -l /usr/lib/nagios/plugins/check_phony
-rwxr-xr-x 1 root root 165 Aug 8 16:08 /usr/lib/nagios/plugins/check_phony

# cat /usr/lib/nagios/plugins/check_phony
printf "!!!! CHECKS DISABLED !!!!!"
exit 0
#
#



==========================================================


Code: Select all

define service{
        name                                     remote_root-service-check
        active_checks_enabled           1       ; Active service checks are enabled
        passive_checks_enabled          1       ; Passive service checks are enabled/accepted
        parallelize_check               1       ; Active service checks should be parallelized (disabling this can lead to major per
formance problems)
        obsess_over_service             1       ; We should obsess over this service (if necessary)
        check_freshness                 0       ; Default is to NOT check service 'freshness'
        notifications_enabled           1       ; Service notifications are enabled
        event_handler_enabled           1       ; Service event handler is enabled
        flap_detection_enabled          1       ; Flap detection is enabled
        failure_prediction_enabled      1       ; Failure prediction is enabled
        process_perf_data               1       ; Process performance data
        retain_status_information       1       ; Retain status information across program restarts
        retain_nonstatus_information    1       ; Retain non-status information across program restarts
        register                        0       ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
                                max_check_attempts      2
                                normal_check_interval   5
                                retry_check_interval    1
                                check_period            24x7
                                notification_interval   120
                                notification_options    w,c,r
        }


define service {
                                name                    remote_vendor-website
                                normal_check_interval   2
                                use                     remote_root-service-check
                                register                0
}

define service {
        display_name            vendor_website-exact_target-V021
        use                     remote_vendor-website
        service_description     vendor_website-exact_target-V021
        host_name               website-api.dc1.exacttarget.com-prd-V214
        check_command           check_https_website!"/integrate.aspx"!"parameter"!443!api.dc1.exacttarget.com
        notification_period     24x7
        contact_groups          admins
}



#### NOTE= PROVIDE ARG2 as expect string even though its is not used ( for backward compat )
define command{
        command_name    check_https_website
        command_line    /usr/lib/nagios/plugins/check_http --onredirect=ok --ssl -H $HOSTADDRESS$ -u $ARG1$ -p $ARG3$ -I $ARG4$  --timeout=21
        }

==========================================================

Re: not execcuting service checks, itsonly checking for flap

Posted: Thu Sep 11, 2014 5:00 pm
by abrist
The debug log is missing from the post. Could you PM it?