Page 1 of 1

reducing time b/w Last Check Time and Next Scheduled Check

Posted: Fri Jul 06, 2012 3:17 am
by faroohussain
Dear All,

Can anyone let me know how I would reduce time between Last Check Time and Next Scheduled Check on a particular service. I have a very critical task to monitor and Last Check Time and Next Scheduled time difference is 5 minute which to long for this service. Can I reduce that time. I need this to be 1 minute are 30 seconds.

I want nagios will check this service after every 30 sec. I have define my as following please pass you suggestion to improve Next Scheduled time

Code: Select all

define service{
        use                     local-service
        host_name               OpenSIP,test-RTSIP
        service_description     SIP Registration
        check_command           check_nrpe!check_sipreg
        check_freshness         0
        freshness_threshold     900
        active_checks_enabled   1
        passive_checks_enabled  1
        }

Re: reducing time b/w Last Check Time and Next Scheduled Che

Posted: Thu Jul 12, 2012 10:17 pm
by faroohussain

Code: Select all

check_interval 1
Added to you service or host to reduce the scheduled check. Nagios will automatically check this service after one min

Re: reducing time b/w Last Check Time and Next Scheduled Che

Posted: Fri Jul 13, 2012 10:14 am
by agriffin
By default, nagios measures everything in minutes. You can change the value of interval_length to 30 to measure in units of 30 seconds (then a check_interval of 3 will get you 1m 30s like you want), but then you will need to change every check_interval in your configs to match. For this reason it's not usually recommended