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

Diff of /monit/monitor.h

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

revision 1.75 by hauk, Wed Jul 30 01:27:15 2003 UTC revision 1.76 by martinp, Sun Aug 3 19:19:39 2003 UTC
# Line 328  typedef struct mytimestamp { Line 328  typedef struct mytimestamp {
328  } *Timestamp_T;  } *Timestamp_T;
329    
330    
331    /** Defines size object */
332    typedef struct mysize {
333      int  operator;                                    /**< Comparison operator */
334      unsigned long size;                                    /**< Size watermark */
335      int  action;                                /**< Action in case of failure */
336      int  test_changes;            /**< TRUE if we only should test for changes */
337      unsigned long runsize;               /**< The original size for this object*/
338      int  event_flag;              /**< TRUE if an event occured on this object */
339      Command_T exec;      /**< Optional command to be executed upon a size event*/
340      
341      /** For internal use */
342      struct mysize *next;                          /**< next timestamp in chain */
343    } *Size_T;
344    
345    
346  /** Defines procfs (or other mechanism) data */  /** Defines procfs (or other mechanism) data */
347  typedef struct myprocinfo {  typedef struct myprocinfo {
348    int  pid;    int  pid;
# Line 378  typedef struct mydevice { Line 393  typedef struct mydevice {
393  typedef struct myservice {  typedef struct myservice {
394    
395    /** Common parameters */    /** Common parameters */
   int task;                                         /**< Monitored task type */  
396    char *name;                                  /**< Service descriptive name */    char *name;                                  /**< Service descriptive name */
397    char *group;                                       /**< Service group name */    char *group;                                       /**< Service group name */
398    Command_T start;                    /**< The start command for the service */    Command_T start;                    /**< The start command for the service */
399    Command_T stop;                      /**< The stop command for the service */    Command_T stop;                      /**< The stop command for the service */
400      int  task;                                        /**< Monitored task type */
401    int  do_monitor; /**< Monitor flag, if FALSE, the service is not monitored */    int  do_monitor; /**< Monitor flag, if FALSE, the service is not monitored */
402    int  mode;                            /**< Monitoring mode for the service */    int  mode;                            /**< Monitoring mode for the service */
403    int  ncycle;                          /**< The number of the current cycle */    int  ncycle;                          /**< The number of the current cycle */
# Line 402  typedef struct myservice { Line 417  typedef struct myservice {
417    int  uid;                                                 /**< Owner's uid */    int  uid;                                                 /**< Owner's uid */
418    int  gid;                                                 /**< Owner's gid */    int  gid;                                                 /**< Owner's gid */
419    
420      Checksum_T checksumlist;          /**< A list of file associated checksums */
421      Dependant_T dependantlist;                      /**<Dependant service list */
422      Device_T devicelist;                                /**< Device check list */
423    Mail_T maillist;                       /**< Alert notification mailinglist */    Mail_T maillist;                       /**< Alert notification mailinglist */
424    Port_T portlist;                   /**< Portnumbers the service listens on */    Port_T portlist;                   /**< Portnumbers the service listens on */
   Device_T devicelist;                                /**< Device check list */  
425    Resource_T resourcelist;                           /**< Resouce check list */    Resource_T resourcelist;                           /**< Resouce check list */
426    Checksum_T checksumlist;          /**< A list of file associated checksums */    Size_T sizelist;                                      /**< Size check list */
   Dependant_T dependantlist;                      /**<Dependant service list */  
427    Timestamp_T timestamplist;                       /**< Timestamp check list */    Timestamp_T timestamplist;                       /**< Timestamp check list */
428        
429    /** Runtime parameters */    /** Runtime parameters */
   ProcInfo_T procinfo;                        /**< Data for the procfs check */  
430    DeviceInfo_T devinfo;                       /**< Data for the device check */    DeviceInfo_T devinfo;                       /**< Data for the device check */
431      ProcInfo_T procinfo;                        /**< Data for the procfs check */
432    
433    /** Context specific parameters */    /** Context specific parameters */
434    char *path;   /**< Path to the device, file, directory or process pid file */    char *path;   /**< Path to the device, file, directory or process pid file */

Legend:
Removed from v.1.75  
changed lines
  Added in v.1.76

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