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

Diff of /monit/monitor.h

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

revision 1.163 by martinp, Thu Jan 6 20:51:49 2005 UTC revision 1.164 by hauk, Mon Jan 24 01:04:36 2005 UTC
# Line 66  Line 66 
66  #define STRERROR            strerror(errno)  #define STRERROR            strerror(errno)
67  #define STRLEN             256  #define STRLEN             256
68  #define ARGMAX             64  #define ARGMAX             64
 #define MAX_HEADERS        20  
69  /* Set log file mode: "-rw-rw-r--" */  /* Set log file mode: "-rw-rw-r--" */
70  #define LOGMASK            0112  #define LOGMASK            0112
71  /* Set pid file mode: "-rw-r--r--" */  /* Set pid file mode: "-rw-r--r--" */
# Line 249  typedef struct myurl { Line 248  typedef struct myurl {
248    
249  /** Defines a HTTP client request object */  /** Defines a HTTP client request object */
250  typedef struct myrequest {  typedef struct myrequest {
251    URL_T url;                                      /**< Optional URL request */    URL_T url;                                               /**< URL request */
   int   length;                        /**< The length of the headers array */  
252    int   operator;                 /**< Response content comparison operator */    int   operator;                 /**< Response content comparison operator */
   char *headers[MAX_HEADERS];     /**< HTTP headers embedded in the request */  
253  #ifdef HAVE_REGEX_H  #ifdef HAVE_REGEX_H
254    regex_t *regex;                   /* regex used to test the response body */    regex_t *regex;                   /* regex used to test the response body */
255  #else  #else
# Line 649  typedef struct myservice { Line 646  typedef struct myservice {
646    Gid_T       gid;                                            /**< Gid check */    Gid_T       gid;                                            /**< Gid check */
647    Icmp_T      icmplist;                                 /**< ICMP check list */    Icmp_T      icmplist;                                 /**< ICMP check list */
648    Perm_T      perm;                                    /**< Permission check */    Perm_T      perm;                                    /**< Permission check */
649    Port_T      portlist;              /**< Portnumbers the service listens on */    Port_T      portlist; /**< Portnumbers to check, either local or at a host */
650    Resource_T  resourcelist;                          /**< Resouce check list */    Resource_T  resourcelist;                          /**< Resouce check list */
651    Size_T      sizelist;                                 /**< Size check list */    Size_T      sizelist;                                 /**< Size check list */
652    Timestamp_T timestamplist;                       /**< Timestamp check list */    Timestamp_T timestamplist;                       /**< Timestamp check list */
653    Uid_T       uid;                                            /**< Uid check */    Uid_T       uid;                                            /**< Uid check */
   URL_T       urllist;                    /**< URLs to check for the service */  
654        
655    EventAction_T action_PID;   /**< Description of the action upon pid change */    EventAction_T action_PID;   /**< Description of the action upon pid change */
656    EventAction_T action_PPID; /**< Description of the action upon ppid change */    EventAction_T action_PPID; /**< Description of the action upon ppid change */
# Line 702  typedef struct myevent *Event_T; Line 698  typedef struct myevent *Event_T;
698    
699  /* -------------------------------------------------------- Global variables */  /* -------------------------------------------------------- Global variables */
700    
   
701  char   *prog;                                  /**< The Name of this Program */  char   *prog;                                  /**< The Name of this Program */
702  struct myrun Run;                      /**< Struct holding runtime constants */  struct myrun Run;                      /**< Struct holding runtime constants */
703  Service_T servicelist;                /**< The service list (created in p.y) */  Service_T servicelist;                /**< The service list (created in p.y) */
# Line 761  int  check_device(Service_T); Line 756  int  check_device(Service_T);
756  int  check_file(Service_T);  int  check_file(Service_T);
757  int  check_directory(Service_T);  int  check_directory(Service_T);
758  int  check_remote_host(Service_T);  int  check_remote_host(Service_T);
759    int  check_URL(Service_T s);
760  int  sha_md5_stream (FILE *, void *, void *);  int  sha_md5_stream (FILE *, void *, void *);
761  void reset_procinfo(Service_T);  void reset_procinfo(Service_T);
762  int  check_service_status(Service_T);  int  check_service_status(Service_T);

Legend:
Removed from v.1.163  
changed lines
  Added in v.1.164

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