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

Diff of /monit/validate.c

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

revision 1.79 by martinp, Sat Aug 16 07:05:48 2003 UTC revision 1.80 by hauk, Sun Aug 17 02:21:22 2003 UTC
# Line 249  static int eval_actions(int action, Serv Line 249  static int eval_actions(int action, Serv
249    
250    switch(action) {    switch(action) {
251    case ACTION_ALERT:    case ACTION_ALERT:
252      if(s->def_timeout) s->nstart++;        Event_post(s, event, "Event: %s\n", report);
253      Event_post(s, event, "Event: %s\n", report);        break; /* continue */
     break; /* continue */  
254            
255    case ACTION_STOP:    case ACTION_STOP:
256      Event_post(s, EVENT_STOP, "Event: %s\n", report);        Event_post(s, EVENT_STOP, "Event: %s\n", report);
257      return FALSE;        return FALSE;
258              
259    case ACTION_RESTART:    case ACTION_RESTART:
260      Event_post(s, EVENT_RESTART, "Event: %s\n", report);        Event_post(s, EVENT_RESTART, "Event: %s\n", report);
261      return FALSE;        return FALSE;
262              
263    case ACTION_EXEC:    case ACTION_EXEC:
264      Event_post(s, event, "Event: %s\n", report);        Event_post(s, event, "Event: %s\n", report);
265      return FALSE;        break; /* continue */
266    
267    default:    default:
268      log("'%s' Unknow %s failure action.\n", s->name, check);        log("'%s' Unknow %s failure action.\n", s->name, check);
269      break;        break;
270            
271    }    }
272    

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

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