Page 1 of 1

how to specify an off time in the check interval or...

Posted: Mon Dec 16, 2019 5:40 pm
by gmills
Hello,

I have an unusual request - I think, not sure if Nagios can do this.

I've been asked on a service I put in

1. Can we have it run every 30 minutes? If I rerun data I wouldn’t want it to send an email every 3 minutes.
2. Also it will not run from 11CST to 5CST while cycles and hours are processing correct?

so I believe I resolved the run every 30 minutes... by setting the check_interval to 30 minutes and retry of 5 minutes

#use symbolic link on Windows 2012 server
# D:\>mklink /D ApmLoader "D:Delta Incoming\IncomingData\PersistentStore\Delta IBM MQ Series"
define service {
host_name GEIPALPDLTPRC01
service_description Delta File Count
check_command check_ncpa!-t 'gold3726' -P 5693 -M 'plugins/check_files.vbs' -a '-p 'D:\\ApmLoader' -w 200 -c 200'
max_check_attempts 5
check_interval 30
retry_interval 5
check_period 24x7
notification_interval 60
notification_period 24x7
contact_groups Delta-Admins
register 1
}

not sure how or if can be done NOT to RUN checks between 11CST to 5CST.
is there a way with the below parameter?
check_period 24x7

Re: how to specify an off time in the check interval or...

Posted: Mon Dec 16, 2019 5:55 pm
by mbellerue
This is the handiest link you can have when working with Nagios Core.
https://assets.nagios.com/downloads/nag ... tions.html

check_interval is the time between service checks, usually in minutes, but I believe that's configurable as well.
retry_interval kicks in when a service check returns a non-OK result. Nagios will re-check the service up to the max_check_attempts using retry_interval as the time between checks until max_check_attempts has been reached. Once max_check_attempts has been reached, assuming it's still a non-OK status, the service enters into a hard non-OK state, event handlers kick off, and notifications go out.
check_period can be configured in the file /usr/local/nagios/etc/objects/timeperiods.cfg.

Re: how to specify an off time in the check interval or...

Posted: Mon Dec 16, 2019 6:04 pm
by gmills
thank you! I will try this and post results.
and thanks for the link :)

wow! ok, I see what you are saying... thank you. gee, after all this, I'm gonna be a Nadios Core PRO :) thanks to you!

this ticket can be closed.

Re: how to specify an off time in the check interval or...

Posted: Tue Dec 17, 2019 7:34 am
by scottwilkerson
gmills wrote:thank you! I will try this and post results.
and thanks for the link :)

wow! ok, I see what you are saying... thank you. gee, after all this, I'm gonna be a Nadios Core PRO :) thanks to you!

this ticket can be closed.
Great!

Locking