notification interval less than its check interval

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
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

notification interval less than its check interval

Post 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
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: notification interval less than its check interval

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Re: notification interval less than its check interval

Post by kwhogster »

I only want to check this on 1440 once a day.

Am I missing a parameter?
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: notification interval less than its check interval

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Re: notification interval less than its check interval

Post 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
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: notification interval less than its check interval

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked