Page 1 of 1

warning in event log

Posted: Fri Oct 09, 2020 3:45 pm
by gregwhite
We are doing an uptime service check on network devices to catch any that may reboot on their own. (Unscheduled) In an effort to reduce the amount of email notifications, we have set the alert to only send one email for recovery. However the event log has now a significant amount of warning entries. Is there a way to eliminate these without have to reinstate the warning and critical alerts?

Warning: Recovery notification option in service 'Uptime for network devices' for host 'AND-15SHATTUCK-A3-3' doesn't make any sense - specify warning and/or critical options as well

Re: warning in event log

Posted: Mon Oct 12, 2020 11:06 am
by cdienger
The only way I found to do this would be to remove the logic from the nagios source(base/config.c) and then recompile/install. Here is the logic that triggers the message:

Code: Select all

/* check for sane recovery options */
                if(temp_service->notification_options == OPT_RECOVERY) {
                        logit(NSLOG_VERIFICATION_WARNING, TRUE, "Warning: Recovery notification option in service '%s' for host '%s' doesn't make any sense - specify warning and/or critical options as well", temp_service->description, temp_service->host_name);
                        warnings++;
                        }