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

Diff of /monit/monitor.h

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

revision 1.170 by hauk, Sat Apr 23 00:48:40 2005 UTC revision 1.171 by chopp, Fri Aug 5 09:38:09 2005 UTC
# Line 553  typedef struct myperm { Line 553  typedef struct myperm {
553    EventAction_T action;  /**< Description of the action upon event occurence */    EventAction_T action;  /**< Description of the action upon event occurence */
554  } *Perm_T;  } *Perm_T;
555    
556    /** Defines match object */
557    typedef struct mymatch {
558      int     ignore;                                          /**< Ignore match */
559      int     not;                                             /**< Invert match */
560      char    *match_string;                                   /**< Match string */
561      char    *match_path;                         /**< File with matching rules */
562    #ifdef HAVE_REGEX_H
563      regex_t *regex_comp;                                    /**< Match compile */
564    #endif
565      EventAction_T action;  /**< Description of the action upon event occurence */
566    
567      /** For internal use */
568      struct mymatch *next;                             /**< next match in chain */
569    } *Match_T;
570    
571    
572  /** Defines uid object */  /** Defines uid object */
573  typedef struct myuid {  typedef struct myuid {
# Line 588  typedef struct myinfo { Line 603  typedef struct myinfo {
603    mode_t  st_mode;                                           /**< Permission */    mode_t  st_mode;                                           /**< Permission */
604    uid_t   st_uid;                                           /**< Owner's uid */    uid_t   st_uid;                                           /**< Owner's uid */
605    gid_t   st_gid;                                           /**< Owner's gid */    gid_t   st_gid;                                           /**< Owner's gid */
606      ino_t   st_ino;                                                 /**< Inode */
607    time_t  timestamp;                                          /**< Timestamp */    time_t  timestamp;                                          /**< Timestamp */
608    
609    /* Device specific */    /* Device specific */
# Line 605  typedef struct myinfo { Line 621  typedef struct myinfo {
621    
622    /* File specific */    /* File specific */
623    size_t st_size;                                                  /**< Size */    size_t st_size;                                                  /**< Size */
624      size_t readpos;                           /**< Position for regex matching */
625      ino_t  st_ino_prev;                 /**< Previous inode for regex matching */
626    char  *cs_sum;                                               /**< Checksum */    char  *cs_sum;                                               /**< Checksum */
627    
628    /* Process specific */    /* Process specific */
# Line 621  typedef struct myinfo { Line 639  typedef struct myinfo {
639    int    cpu_percent;                                    /**< pecentage * 10 */    int    cpu_percent;                                    /**< pecentage * 10 */
640    int    total_cpu_percent;                              /**< pecentage * 10 */    int    total_cpu_percent;                              /**< pecentage * 10 */
641    time_t uptime;                                         /**< Process uptime */    time_t uptime;                                         /**< Process uptime */
   
642  } *Info_T;  } *Info_T;
643    
644    
# Line 660  typedef struct myservice { Line 677  typedef struct myservice {
677    Port_T      portlist; /**< Portnumbers to check, either local or at a host */    Port_T      portlist; /**< Portnumbers to check, either local or at a host */
678    Resource_T  resourcelist;                          /**< Resouce check list */    Resource_T  resourcelist;                          /**< Resouce check list */
679    Size_T      sizelist;                                 /**< Size check list */    Size_T      sizelist;                                 /**< Size check list */
680      Match_T     matchlist;                             /**< Content Match list */
681    Timestamp_T timestamplist;                       /**< Timestamp check list */    Timestamp_T timestamplist;                       /**< Timestamp check list */
682    Uid_T       uid;                                            /**< Uid check */    Uid_T       uid;                                            /**< Uid check */
683        

Legend:
Removed from v.1.170  
changed lines
  Added in v.1.171

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