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
#define DO_FAILED   5
#define DO_TIMESTAMP   6

Functions

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

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

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

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

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

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

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


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.12 2002/12/21 19:40:48 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_FAILED   5
 

Definition at line 39 of file alert.c.

Referenced by smtp_alert_failed().

#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().

#define DO_TIMESTAMP   6
 

Definition at line 40 of file alert.c.

Referenced by smtp_alert_timestamp().


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.