/[monit]/monit/validate.c
ViewVC logotype

Diff of /monit/validate.c

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

revision 1.146 by martinp, Wed Nov 2 14:06:10 2005 UTC revision 1.147 by martinp, Sat Nov 5 14:09:01 2005 UTC
# Line 102  static void check_uid(Service_T); Line 102  static void check_uid(Service_T);
102  static void check_gid(Service_T);  static void check_gid(Service_T);
103  static void check_size(Service_T);  static void check_size(Service_T);
104  static void check_perm(Service_T);  static void check_perm(Service_T);
105   void check_match(Service_T);  static void check_match(Service_T);
106   int  check_match_ignore(Service_T, char *);  static int  check_match_ignore(Service_T, char *);
107   void check_match_if(Service_T, char *);  static void check_match_if(Service_T, char *);
108  static int  check_skip(Service_T);  static int  check_skip(Service_T);
109  static int  check_timeout(Service_T);  static int  check_timeout(Service_T);
110  static void check_checksum(Service_T);  static void check_checksum(Service_T);
# Line 136  void validate() { Line 136  void validate() {
136    Service_T s;    Service_T s;
137    sigset_t ns, os;    sigset_t ns, os;
138    
139      Run.handler_flag = HANDLER_PASSED;
140      Event_queue_process(Run.eventlist);
141    
142    if(Run.doprocess) {    if(Run.doprocess) {
143      initprocesstree(&ptree, &ptreesize, &oldptree, &oldptreesize);      initprocesstree(&ptree, &ptreesize, &oldptree, &oldptreesize);
144      update_system_load(ptree, ptreesize);      update_system_load(ptree, ptreesize);
# Line 452  int check_remote_host(Service_T s) { Line 455  int check_remote_host(Service_T s) {
455  }  }
456    
457    
458    /**
459     * Validate the general system indicators. In case of a fatal event
460     * FALSE is returned.
461     */
462    int check_system(Service_T s) {
463      return TRUE;
464    }
465    
466    
467  /* --------------------------------------------------------------- Private */  /* --------------------------------------------------------------- Private */
468    
469    
# Line 971  static void check_size(Service_T s) { Line 983  static void check_size(Service_T s) {
983  /**  /**
984   * Match content   * Match content
985   */   */
986   void check_match(Service_T s) {  static void check_match(Service_T s) {
987    char    line[MATCH_LINE_LENGTH];    char    line[MATCH_LINE_LENGTH];
988    FILE    *file;    FILE    *file;
989    int     inode_checked=FALSE;    int     inode_checked=FALSE;
# Line 1074  static void check_size(Service_T s) { Line 1086  static void check_size(Service_T s) {
1086  /**  /**
1087   * Match line for "ignore" statements   * Match line for "ignore" statements
1088   */   */
1089   int check_match_ignore(Service_T s, char *line) {  static int check_match_ignore(Service_T s, char *line) {
1090    
1091    int     rv=FALSE;    int     rv=FALSE;
1092    Match_T ml;    Match_T ml;
# Line 1124  static void check_size(Service_T s) { Line 1136  static void check_size(Service_T s) {
1136  /**  /**
1137   * Match line for "if" statements   * Match line for "if" statements
1138   */   */
1139   void check_match_if(Service_T s, char *line) {  static void check_match_if(Service_T s, char *line) {
1140    
1141    Match_T ml;    Match_T ml;
1142    int     match_return;    int     match_return;

Legend:
Removed from v.1.146  
changed lines
  Added in v.1.147

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