alert.h File Reference

Go to the source code of this file.

Defines

#define ALERT_FROM   "monit@$HOST"
 Default mail from string.

#define ALERT_SUBJECT   "monit alert -- $PROGRAM $EVENT"
 Default mail subject.

#define ALERT_MESSAGE
 Default mail message.


Functions

void smtp_alert_timeout (Process_T, char *,...)
 Send an alert timeout message to the email address for this process.

void smtp_alert_restart (Process_T, char *,...)
 Send an alert restart message to the email address for this process.

void smtp_alert_checksum (Process_T, char *,...)
 Send an alert checksum message to the email address for this process.

void smtp_alert_resource (Process_T, char *,...)
 Send an alert resource message to the email address for this process.

void smtp_alert_stop (Process_T, char *,...)
 Send an alert stop message to the email address for this process.

void smtp_alert_failed (Process_T, char *,...)
 Send an alert failed message to the email address for this process.

void smtp_alert_timestamp (Process_T, char *,...)
 Send an alert timestamp message to the email address for this process.


Define Documentation

#define ALERT_FROM   "monit@$HOST"
 

Default mail from string.

Definition at line 28 of file alert.h.

#define ALERT_MESSAGE
 

Value:

"Program $PROGRAM $EVENT\r\n\r\n\tDate: $DATE\r\n"\
          "\tHost: $HOST\r\n\r\nYour faithful employee,\r\nmonit\r\n"
Default mail message.

Definition at line 34 of file alert.h.

#define ALERT_SUBJECT   "monit alert -- $PROGRAM $EVENT"
 

Default mail subject.

Definition at line 31 of file alert.h.


Function Documentation

void smtp_alert_checksum Process_T    p,
char *    m,
...   
 

Send an alert checksum message to the email address for this process.

Parameters:
p  A process_t object
m  An optional message string. May be NULL.

Definition at line 104 of file alert.c.

References ASSERT, and DO_CHECKSUM.

void smtp_alert_failed Process_T    p,
char *    m,
...   
 

Send an alert failed message to the email address for this process.

Parameters:
p  A process_t object
m  An optional message string. May be NULL.

Definition at line 176 of file alert.c.

References ASSERT, and DO_FAILED.

void smtp_alert_resource Process_T    p,
char *    m,
...   
 

Send an alert resource message to the email address for this process.

Parameters:
p  A process_t object
m  An optional message string. May be NULL.

Definition at line 140 of file alert.c.

References ASSERT, and DO_RESOURCE.

void smtp_alert_restart Process_T    p,
char *    m,
...   
 

Send an alert restart message to the email address for this process.

Parameters:
p  A process_t object
m  An optional message string. May be NULL.

Definition at line 122 of file alert.c.

References ASSERT, and DO_RESTART.

void smtp_alert_stop Process_T    p,
char *    m,
...   
 

Send an alert stop message to the email address for this process.

Parameters:
p  A process_t object
m  An optional message string. May be NULL.

Definition at line 158 of file alert.c.

References ASSERT, and DO_STOP.

void smtp_alert_timeout Process_T    p,
char *    m,
...   
 

Send an alert timeout message to the email address for this process.

Parameters:
p  A Process_T object
m  An optional message string. May be NULL.

Definition at line 84 of file alert.c.

References ASSERT, and DO_TIMEOUT.

void smtp_alert_timestamp Process_T    p,
char *    m,
...   
 

Send an alert timestamp message to the email address for this process.

Parameters:
p  A process_t object
m  An optional message string. May be NULL.

Definition at line 194 of file alert.c.

References ASSERT, and DO_TIMESTAMP.