/[monit]/monit/monitor.h
ViewVC logotype

Diff of /monit/monitor.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.69 by hauk, Wed Jul 16 20:29:28 2003 UTC revision 1.70 by hauk, Sat Jul 19 01:13:05 2003 UTC
# Line 82  Line 82 
82  #define ACTION_ALERT       1  #define ACTION_ALERT       1
83  #define ACTION_RESTART     2  #define ACTION_RESTART     2
84  #define ACTION_STOP        3  #define ACTION_STOP        3
85    #define ACTION_EXEC        4
86    
87  #define TASK_DEVICE        0  #define TASK_DEVICE        0
88  #define TASK_DIRECTORY     1  #define TASK_DIRECTORY     1
# Line 336  typedef struct mycommand { Line 337  typedef struct mycommand {
337    uid_t uid;         /**< The user id to switch to when running this Command */    uid_t uid;         /**< The user id to switch to when running this Command */
338    int has_gid;            /**< TRUE if a new gid is defined for this Command */    int has_gid;            /**< TRUE if a new gid is defined for this Command */
339    gid_t gid;        /**< The group id to switch to when running this Command */    gid_t gid;        /**< The group id to switch to when running this Command */
 } *Command_T;  
   
   
 /** Defines an alien program to be execute upon alert or upon an action. */  
 typedef struct myexec {  
340    unsigned int events;    /**< Events triggering this program to be executed */    unsigned int events;    /**< Events triggering this program to be executed */
   Command_T program;                       /**< The external program to call */  
341        
342    /** For internal use */    /** For internal use */
343    struct myexec *next;                   /**< next external program in chain */    struct mycommand *next;                /**< next external program in chain */
344  } *Exec_T;  } *Command_T;
345    
346    
347  /** Defines filesystem device data */  /** Defines filesystem device data */
# Line 411  typedef struct myservice { Line 406  typedef struct myservice {
406    Dependant_T dependantlist;                      /**<Dependant service list */    Dependant_T dependantlist;                      /**<Dependant service list */
407    Timestamp_T timestamplist;                       /**< Timestamp check list */    Timestamp_T timestamplist;                       /**< Timestamp check list */
408    Device_T devicelist;                                /**< Device check list */    Device_T devicelist;                                /**< Device check list */
409    Exec_T execlist;    /**< External programs to call upon an alert or action */    Command_T execlist;          /**< External programs to call upon an action */
410        
411    /** Runtime parameters */    /** Runtime parameters */
412    DeviceInfo_T devinfo;                       /**< Data for the device check */    DeviceInfo_T devinfo;                       /**< Data for the device check */

Legend:
Removed from v.1.69  
changed lines
  Added in v.1.70

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26