alert.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (C), 2000-2002 by Contributors to the monit codebase. 
00003  * All Rights Reserved.
00004  *
00005  * This program is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU General Public License as
00007  * published by the Free Software Foundation; either version 2 of the
00008  * License, or (at your option) any later version.
00009  *
00010  * This program is distributed in the hope that it will be useful, but
00011  * WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * General Public License for more details.
00014  * 
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software Foundation,
00017  * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
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