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

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
faroohussain
Posts: 2
Joined: Fri Jul 06, 2012 2:45 am

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

Post 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
        }
faroohussain
Posts: 2
Joined: Fri Jul 06, 2012 2:45 am

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

Post 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
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

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

Post 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
Locked