Getting recovery emails ONLY

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
brianp89
Posts: 18
Joined: Thu May 08, 2014 10:53 am

Getting recovery emails ONLY

Post by brianp89 »

I have a service check that looks for a file at all times of the day. The user being notified only wants alerts to be sent when the file appears in the directory. I do NOT want any critical or warning notifications to be sent. I only want the OK (recovery) emails to be sent.

I tried unchecking all the Notification options except for "r" (recovery) but it will not send any emails unless I also check "c" (critical). Is there a way to make it ONLY send recovery emails?

To make it more clear, here is the exact process of what should happen:

Nagios checks for file, none found (critical), NO alert
Nagios checks for file, file is found (recovered), send OK alert
User sees OK alert and processes file, emptying the directory
Nagios checks for file, none found (critical), NO alert
repeat

Thank you
brianp89
Posts: 18
Joined: Thu May 08, 2014 10:53 am

Re: Getting recovery emails ONLY

Post by brianp89 »

After reading around and looking at plugins, I stumbled upon the "Negate" plugin. I have since reversed the Critical and OK return codes and it seems to have solved my issue. For reference in case anyone else has this issue, check out:

http://assets.nagios.com/downloads/nagi ... ios-XI.pdf

Sometimes simply typing it out on here helps me organize my thoughts better :)

Thanks again guys
Locked