00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef ALERT_H
00022 #define ALERT_H
00023
00024 #include <config.h>
00025 #include "monitor.h"
00026
00028 #define ALERT_FROM "monit@$HOST"
00029
00031 #define ALERT_SUBJECT "monit alert -- $PROGRAM $EVENT"
00032
00034 #define ALERT_MESSAGE "Program $PROGRAM $EVENT\r\n\r\n\tDate: $DATE\r\n"\
00035 "\tHost: $HOST\r\n\r\nYour faithful employee,\r\nmonit\r\n"
00036
00037 void smtp_alert_timeout(Process_T, char *, ...);
00038 void smtp_alert_restart(Process_T, char *, ...);
00039 void smtp_alert_checksum(Process_T, char *, ...);
00040 void smtp_alert_resource(Process_T, char *, ...);
00041 void smtp_alert_stop(Process_T, char *, ...);
00042 void smtp_alert_failed(Process_T, char *, ...);
00043 void smtp_alert_timestamp(Process_T, char *, ...);
00044
00045 #endif