Page 1 of 1

Check timeperiod scheduling problem?

Posted: Mon Oct 24, 2016 7:44 pm
by rajasegar
I have a service that was stuck in Pending state for no reason, last check was shown as never but it was working fine before.
I executed force check and the scheduling went back to normal.
However it is scheduling every 5 minutes but not executing it.
By right it should schedule as per the time period, so the next check should be 23:46

Update: The scheduling is stuck at this. Next Check: 25/10/2016 08:37:00
2016-10-25_08-42-06.jpg
Please advice on this.

Code: Select all


define timeperiod {
        timeperiod_name Time_clicks_CRON_TEMP_RECORDS
        alias   Time_clicks_CRON_TEMP_RECORDS
        sunday  23:46-00:00
        monday  23:46-00:00
        tuesday 23:46-00:00
        wednesday       23:46-00:00
        thursday        23:46-00:00
        friday  23:46-00:00
        saturday        23:46-00:00
        }

define service {
        host_name       MYCLKSUPRDDB02
        service_description     Cronjob : TM_RECON_FILE
        check_period    Time_Clicks_TM_RECON_FILE
        check_command   rs_fping_check_nrpe_unix!cronjob_check_status!TM_RECON_FILE!00!!!!!
        contact_groups  CGRP_APP_CLICKS,CGRP_TMC
        notification_period     Time_Clicks_TM_RECON_FILE
        initial_state   o
        importance      0
        check_interval  60.000000
        retry_interval  5.000000
        max_check_attempts      2
        is_volatile     0
        parallelize_check       1
        active_checks_enabled   1
        passive_checks_enabled  1
        obsess  1
        event_handler_enabled   1
        low_flap_threshold      0.000000
        high_flap_threshold     0.000000
        flap_detection_enabled  1
        flap_detection_options  a
        freshness_threshold     0
        check_freshness 0
        notification_options    r,w,u,c
        notifications_enabled   1
        notification_interval   44640.000000
        first_notification_delay        0.000000
        stalking_options        n
        process_perf_data       1
        retain_status_information       1
        retain_nonstatus_information    1
        _CRITICAL_EMAIL true
        _CRITICAL_REC_EMAIL     true
        _WARNING_EMAIL  true
        _WARNING_REC_EMAIL      true
        _WARNING_REC_SMS        false
        _WARNING_SMS    false
        _CRITICAL_SMS   true
        _CRITICAL_REC_SMS       true
        }

Re: Check timeperiod scheduling problem?

Posted: Tue Oct 25, 2016 12:16 am
by Box293
https://assets.nagios.com/downloads/nag ... timeperiod

I suspect the definition needs to be 23:46-24:00

Re: Check timeperiod scheduling problem?

Posted: Tue Oct 25, 2016 1:15 am
by rajasegar
Box293 wrote:https://assets.nagios.com/downloads/nag ... timeperiod

I suspect the definition needs to be 23:46-24:00
Thanks I will try it out

Re: Check timeperiod scheduling problem?

Posted: Tue Oct 25, 2016 1:39 am
by rajasegar
Box293 wrote:https://assets.nagios.com/downloads/nag ... timeperiod

I suspect the definition needs to be 23:46-24:00

It is ok now. Thanks for your excellent work Troy.
It was driving me nuts whole day.

Hope Nagios can throw validation error is that definition in not valid.

Please close this thread.

Re: Check timeperiod scheduling problem?

Posted: Tue Oct 25, 2016 10:13 am
by avandemore
Glad it is working for you. Thanks for using the Nagios forums.