Page 1 of 1

notification interval less than its check interval

Posted: Tue Oct 30, 2018 7:20 am
by kwhogster
Nagios Core 4.3.4
MSW Appliance

Defined this check

Code: Select all

define service {
host_name TGCS-VCSA65
service_description vCenter Version
check_command box293_check_vmware!$HOSTADDRESS$!vCenter_Name_Version!!!!!!
initial_state u
max_check_attempts 3
check_interval 1440
retry_interval 7
active_checks_enabled 1
check_period 24x7
register 1
}
When I run this
/usr/local/nagios/bin/nagios -vv /usr/local/nagios/etc/nagios.cfg

I get this warning

Checking objects...
Warning: Service 'vCenter Version' on host 'TGCS-VCSA65' has a notification interval less than its check interval! Notifications are only re-sent after checks are made, so the effective notification interval will be that of the check interval.


This check came from box293 manual page 15

Any ideas?

Thank you

Tom

Re: notification interval less than its check interval

Posted: Tue Oct 30, 2018 4:43 pm
by npolovenko
Hello, @kwhogster. I think this service inherits the notification interval from the host check --> TGCS-VCSA65. The standard notification interval is 60 minutes.
It doesn't make sense to have a notification interval smaller than the check interval, because you will be getting notification emails with repeated results. If your notification interval is 60 minutes you will receive 24 emails in the next 24 hours (with the same result), because Nagios will not actually update the check result until 1440 minutes pass. So your service can recover from critical to OK(working) state after 2 hours but you will still receive 24 emails telling you that the service is critical.

Re: notification interval less than its check interval

Posted: Tue Oct 30, 2018 5:03 pm
by kwhogster
I only want to check this on 1440 once a day.

Am I missing a parameter?

Re: notification interval less than its check interval

Posted: Wed Oct 31, 2018 11:05 am
by npolovenko
@npolovenko, With these settings, you will be checking the service once a day. Does it matter to you how often you will get notified if this check gets critical? If the answer is no, you can ignore the warning message.

Re: notification interval less than its check interval

Posted: Wed Oct 31, 2018 7:41 pm
by kwhogster

Code: Select all

define service {
        host_name                       hostname
        service_description             vCenter Version
        check_command                   box293_check_vmware_test!$HOSTADDRESS$!vCenter_Name_Version!!!!!!
        initial_state                   u
        max_check_attempts              3
        check_interval                  5
        retry_interval                  3
        active_checks_enabled           1
        check_period                    24x7
        register                        1
        }
Changed it to this

Now it works but I would rather only check it once a day

This can be locked if know one knows how to change this check to once a day

Thank you

Tom

Re: notification interval less than its check interval

Posted: Thu Nov 01, 2018 10:17 am
by npolovenko
@kwhogster, If you set the check interval to 1440, Nagios will execute this service once a day.
This message didn't say anything about Nagios overriding the check_interval. It said that notification interval(how often Nagios will send emails if there is a problem) is going to be 1440 as well. That's all it says.
Notifications are only re-sent after checks are made, so the effective notification interval will be that of the check interval.