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

Diff of /monit/monitor.h

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

revision 1.101 by martinp, Thu Sep 25 15:22:09 2003 UTC revision 1.102 by hauk, Thu Sep 25 19:27:38 2003 UTC
# Line 267  typedef struct myport { Line 267  typedef struct myport {
267    char *address;               /**< Human readable destination of the socket */    char *address;               /**< Human readable destination of the socket */
268    int  action;                                /**< Action in case of failure */    int  action;                                /**< Action in case of failure */
269    int  event_flag;              /**< TRUE if an event occured on this object */    int  event_flag;              /**< TRUE if an event occured on this object */
270      int  event_handled;        /**< TRUE if this event has been handled before */
271    Command_T exec;      /**< Optional command to be executed upon a port event*/    Command_T exec;      /**< Optional command to be executed upon a port event*/
272    int timeout;   /**< The timeout in seconds to wait for connect or read i/o */    int timeout;   /**< The timeout in seconds to wait for connect or read i/o */
273    int is_available;                /**< TRUE if the server/port is available */    int is_available;                /**< TRUE if the server/port is available */
# Line 291  typedef struct myicmp { Line 292  typedef struct myicmp {
292    int timeout;              /**< The timeout in seconds to wait for response */    int timeout;              /**< The timeout in seconds to wait for response */
293    int action;                                 /**< Action in case of failure */    int action;                                 /**< Action in case of failure */
294    int event_flag;               /**< TRUE if an event occured on this object */    int event_flag;               /**< TRUE if an event occured on this object */
295      int  event_handled;        /**< TRUE if this event has been handled before */
296    Command_T exec;     /**< Optional command to be executed upon a icmp event */    Command_T exec;     /**< Optional command to be executed upon a icmp event */
297    int is_available;                     /**< TRUE if the server is available */    int is_available;                     /**< TRUE if the server is available */
298        
# Line 330  typedef struct myresource { Line 332  typedef struct myresource {
332    int  max_cycle;                                   /**< Cycle overrun limit */    int  max_cycle;                                   /**< Cycle overrun limit */
333    int  action;                                /**< Action in case of failure */    int  action;                                /**< Action in case of failure */
334    int  event_flag;              /**< TRUE if an event occured on this object */    int  event_flag;              /**< TRUE if an event occured on this object */
335      int  event_handled;        /**< TRUE if this event has been handled before */
336    Command_T exec;   /**< Optional command to be executed upon a resurce event*/    Command_T exec;   /**< Optional command to be executed upon a resurce event*/
337      
338    /** For internal use */    /** For internal use */
339    struct myresource *next;                       /**< next resource in chain */    struct myresource *next;                       /**< next resource in chain */
340  } *Resource_T;  } *Resource_T;
# Line 345  typedef struct mytimestamp { Line 348  typedef struct mytimestamp {
348    int  test_changes;            /**< TRUE if we only should test for changes */    int  test_changes;            /**< TRUE if we only should test for changes */
349    time_t timestamp; /**< The original last modified timestamp for this object*/    time_t timestamp; /**< The original last modified timestamp for this object*/
350    int  event_flag;              /**< TRUE if an event occured on this object */    int  event_flag;              /**< TRUE if an event occured on this object */
351      int  event_handled;        /**< TRUE if this event has been handled before */
352    Command_T exec; /**< Optional command to be executed upon a timestamp event*/    Command_T exec; /**< Optional command to be executed upon a timestamp event*/
353        
354    /** For internal use */    /** For internal use */
# Line 360  typedef struct mysize { Line 364  typedef struct mysize {
364    int  test_changes;            /**< TRUE if we only should test for changes */    int  test_changes;            /**< TRUE if we only should test for changes */
365    unsigned long runsize;              /**< The original size for this object */    unsigned long runsize;              /**< The original size for this object */
366    int  event_flag;              /**< TRUE if an event occured on this object */    int  event_flag;              /**< TRUE if an event occured on this object */
367      int  event_handled;        /**< TRUE if this event has been handled before */
368    Command_T exec;     /**< Optional command to be executed upon a size event */    Command_T exec;     /**< Optional command to be executed upon a size event */
369        
370    /** For internal use */    /** For internal use */
# Line 449  typedef struct mydevice { Line 454  typedef struct mydevice {
454    long limit_absolute;                               /**< Watermark - blocks */    long limit_absolute;                               /**< Watermark - blocks */
455    int  limit_percent;                               /**< Watermark - percent */    int  limit_percent;                               /**< Watermark - percent */
456    int  action;                                /**< Action in case of failure */    int  action;                                /**< Action in case of failure */
457      int  event_flag;              /**< TRUE if an event occured on this object */
458      int  event_handled;        /**< TRUE if this event has been handled before */
459    Command_T exec;   /**< Optional command to be executed upon a device event */    Command_T exec;   /**< Optional command to be executed upon a device event */
460    
461    /** For internal use */    /** For internal use */

Legend:
Removed from v.1.101  
changed lines
  Added in v.1.102

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