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

Diff of /monit/monitor.h

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

revision 1.80 by martinp, Wed Aug 6 13:10:51 2003 UTC revision 1.81 by martinp, Wed Aug 6 14:51:13 2003 UTC
# Line 276  typedef struct mydependant { Line 276  typedef struct mydependant {
276  } *Dependant_T;  } *Dependant_T;
277    
278    
 /** Defines a checksum object */  
 typedef struct mychecksum {  
   char *file;                  /**< A filename to compute a md5 checksum for */  
   char *md5;                       /**< A md5 checksum computed for the file */  
   
   /** For internal use */  
   struct mychecksum *next;                       /**< next checksum in chain */  
 } *Checksum_T;  
   
   
279  /** Defines a mailinglist object */  /** Defines a mailinglist object */
280  typedef struct mymail {  typedef struct mymail {
281    char *to;                         /**< Mail address for alert notification */    char *to;                         /**< Mail address for alert notification */
# Line 318  typedef struct myresource { Line 308  typedef struct myresource {
308    
309  /** Defines timestamp object */  /** Defines timestamp object */
310  typedef struct mytimestamp {  typedef struct mytimestamp {
   char *pathname;                                    /**< Path to the object */  
311    int  operator;                                    /**< Comparison operator */    int  operator;                                    /**< Comparison operator */
312    int  time;                                        /**< Timestamp watermark */    int  time;                                        /**< Timestamp watermark */
313    int  action;                                /**< Action in case of failure */    int  action;                                /**< Action in case of failure */
# Line 416  typedef struct myservice { Line 405  typedef struct myservice {
405    int  has_gid_error;               /**< TRUE if the service has a GID error */    int  has_gid_error;               /**< TRUE if the service has a GID error */
406    int  def_every;              /**< TRUE if every is defined for the service */    int  def_every;              /**< TRUE if every is defined for the service */
407    int  def_timeout;          /**< TRUE if timeout is defined for the service */    int  def_timeout;          /**< TRUE if timeout is defined for the service */
408    int  def_checksum;        /**< TRUE if checksum is defined for the service */    char *md5;                       /**< A md5 checksum computed for the path */
409    int  def_procinfo;        /**< TRUE if procinfo is defined for the service */    int  def_procinfo;        /**< TRUE if procinfo is defined for the service */
410    int  visited;      /**< Service visited flag, set if dependencies are used */    int  visited;      /**< Service visited flag, set if dependencies are used */
411    int  depend_visited;/**< Depend visited flag, set if dependencies are used */    int  depend_visited;/**< Depend visited flag, set if dependencies are used */
# Line 424  typedef struct myservice { Line 413  typedef struct myservice {
413    int  uid;                                                 /**< Owner's uid */    int  uid;                                                 /**< Owner's uid */
414    int  gid;                                                 /**< Owner's gid */    int  gid;                                                 /**< Owner's gid */
415    
   Checksum_T checksumlist;          /**< A list of file associated checksums */  
416    Dependant_T dependantlist;                      /**<Dependant service list */    Dependant_T dependantlist;                      /**<Dependant service list */
417    Device_T devicelist;                                /**< Device check list */    Device_T devicelist;                                /**< Device check list */
418    Mail_T maillist;                       /**< Alert notification mailinglist */    Mail_T maillist;                       /**< Alert notification mailinglist */
# Line 502  char *get_md5sum(char *); Line 490  char *get_md5sum(char *);
490  int   check_md5(char *, char *);  int   check_md5(char *, char *);
491  char *url_encode(char *uri);  char *url_encode(char *uri);
492  char *get_basic_authentication_header();  char *get_basic_authentication_header();
 int   set_md5sum(char **, char *);  
493  int   parse(char *);  int   parse(char *);
494  void  control(char *);  void  control(char *);
495  void  control_group(char *, char *);  void  control_group(char *, char *);

Legend:
Removed from v.1.80  
changed lines
  Added in v.1.81

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