alert.c File Reference

Alert routines, at the moment only mail alert is used. More...

Go to the source code of this file.

Defines

#define DO_TIMEOUT   0
#define DO_RESTART   1
#define DO_CHECKSUM   2
#define DO_RESOURCE   3
#define DO_STOP   4

Functions

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

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

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

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

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


Detailed Description

Alert routines, at the moment only mail alert is used.

In the future this could be a placeholder for other types of alert notification.

Author:
Jan-Henrik Haukeland, <hauk@tildeslash.com> , Martin Pala <martin.pala@hq.iol.cz> , Christian Hopp <chopp@iei.tu-clausthal.de>
Version:
$Id: alert.c,v 1.7 2002/09/06 17:25:42 hauk Exp $

Definition in file alert.c.


Define Documentation

#define DO_CHECKSUM   2
 

Definition at line 36 of file alert.c.

Referenced by smtp_alert_checksum().

#define DO_RESOURCE   3
 

Definition at line 37 of file alert.c.

Referenced by smtp_alert_resource().

#define DO_RESTART   1
 

Definition at line 35 of file alert.c.

Referenced by smtp_alert_restart().

#define DO_STOP   4
 

Definition at line 38 of file alert.c.

Referenced by smtp_alert_stop().

#define DO_TIMEOUT   0
 

Definition at line 34 of file alert.c.

Referenced by smtp_alert_timeout().


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 98 of file alert.c.

References DO_CHECKSUM.

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 130 of file alert.c.

References 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 114 of file alert.c.

References 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 146 of file alert.c.

References 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 80 of file alert.c.

References DO_TIMEOUT.