/[monit]/monit/alert.h
ViewVC logotype

Diff of /monit/alert.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.10 by hauk, Tue Jun 24 02:49:09 2003 UTC revision 1.11 by hauk, Wed Jul 2 19:32:02 2003 UTC
# Line 18  Line 18 
18   */   */
19    
20    
21  #ifndef ALERT_H  #ifndef MONIT_ALERT_H
22  #define ALERT_H  #define MONIT_ALERT_H
23    
24    #include "event.h"
25    
 #include <config.h>  
 #include "monitor.h"  
26    
27  /** Default mail from string */  /** Default mail from string */
28  #define ALERT_FROM    "monit@$HOST"  #define ALERT_FROM    "monit@$HOST"
29    
30  /** Default mail subject */  /** Default mail subject */
31  #define ALERT_SUBJECT "monit alert -- $SERVICE $EVENT"  #define ALERT_SUBJECT "monit alert --  $EVENT $SERVICE"
32    
33  /** Default mail message */  /** Default mail message */
34  #define ALERT_MESSAGE "Service $SERVICE $EVENT\r\n\r\n\tDate: $DATE\r\n"\  #define ALERT_MESSAGE "$EVENT Service $SERVICE \r\n\r\n\tDate: $DATE\r\n"\
35                "\tHost: $HOST\r\n\r\nYour faithful employee,\r\nmonit\r\n"                "\tHost: $HOST\r\n\r\nYour faithful employee,\r\nmonit\r\n"
36    
37  void  alert_stop(Service_T, char *, ...);  
38  void  alert_failed(Service_T, char *, ...);  /**
39  void  alert_timeout(Service_T, char *, ...);   *  This module is an event handler for alert events.
40  void  alert_restart(Service_T, char *, ...);   *
41  void  alert_checksum(Service_T, char *, ...);   *  @author Jan-Henrik Haukeland, <hauk@tildeslash.com>
42  void  alert_resource(Service_T, char *, ...);   *  @author Martin Pala <martin.pala@iol.cz>
43  void  alert_timestamp(Service_T, char *, ...);   *  @author Christian Hopp <chopp@iei.tu-clausthal.de>
44     *
45     *  @version \$Id$
46     *
47     *  @file
48     */
49    
50    
51    
52    /**
53     * Handle the alert event
54     * @param E An Event object
55     */
56    void handle_alert_event(Event_T E);
57    
58    
59  #endif  #endif

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26