<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
 
 </head><body style="">
 
  <div>
   Ok,
  </div> 
  <div>
    
  </div> 
  <div>
   forget about this question. Found the answer by reading the manpage of alerts.cfg instead of relying on the comments in alerts.cfg itself.
  </div> 
  <div>
    
  </div> 
  <div>
   manpage:
  </div> 
  <div>
    
  </div> 
  <div>
   RECOVERED Is "0" if the service is alerting, "1" if the service has recovered, "2" if the service was disabled.
  </div> 
  <div>
    
  </div> 
  <div>
   alerts.cfg:
  </div> 
  <div>
    
  </div> 
  <div>
   #    RECOVERED     - Is "1" if the service has recovered.
  </div> 
  <div>
    
  </div> 
  <div>
   Sorry for the noise
   <br/>Torsten
  </div> 
  <blockquote style="position: relative; margin-left: 0px; padding-left: 10px; border-left: solid 1px blue;" type="cite">
   "bb4@richter-it.net" <bb4@richter-it.net> hat am 9. September 2013 um 08:46 geschrieben:
   <br/>
   <br/> 
   <div>
    Hi folks,
   </div> 
   <div>
     
   </div> 
   <div>
    I am running XYmon 4.3.12 (self compiled) on a RHEL 6.3 and have a question about the behaviour of sending "RECOVERED" messages.
   </div> 
   <div>
    I've been forced to send SNMP traps of alerts to a Patrol console and of course they also want to have "RECOVERED" messages to close these alerts automatically.
   </div> 
   <div>
    But now I've seen in my logs that if someone disables a test that has an alert another alert trap is being sent out instead of a "RECOVERED" trap.
   </div> 
   <div>
    I.e. I have a server that has an alert in msgs an red alert is sent to Patrol and the responsible admin is called. He sets the state of msgs to blue for a certain time and another red alert is sent to Patrol instead of a green trap saying everything back to normal.
   </div> 
   <div>
    Is this an expected behaviour?
   </div> 
   <div>
    I thought even blue would trigger a recovery message since I have the following lines in my xymonserver.cfg:
   </div> 
   <div>
     
   </div> 
   <div>
    ALERTCOLORS="red,yellow,purple"                 # Colors that may trigger an alert message 
    <br/>OKCOLORS="green,blue,clear"                     # Colors that may trigger a recovery message 
    <br/> 
   </div> 
   <div>
    Any help would be appreciated.
   </div> 
   <div>
     
   </div> 
   <div>
    Regards
   </div> 
   <div>
    Torsten
   </div> 
  </blockquote> 
  <div>
   <br/> 
  </div>
 
</body></html>