warning in event log

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
gregwhite
Posts: 206
Joined: Wed Jun 01, 2011 12:40 pm

warning in event log

Post 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
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: warning in event log

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