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

Diff of /monit/event.c

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

revision 1.23 by martinp, Wed Aug 27 01:42:40 2003 UTC revision 1.24 by martinp, Wed Aug 27 21:53:13 2003 UTC
# Line 70  struct Event_Table { Line 70  struct Event_Table {
70      {EVENT_PERMISSION, "Permission error"},      {EVENT_PERMISSION, "Permission error"},
71      {EVENT_UID,        "UID error"},      {EVENT_UID,        "UID error"},
72      {EVENT_GID,        "GID error"},      {EVENT_GID,        "GID error"},
     {EVENT_MONITOR,    "Monitoring enabled"},  
73      {EVENT_UNMONITOR,  "Monitoring disabled"}      {EVENT_UNMONITOR,  "Monitoring disabled"}
74  };  };
75    
# Line 92  static void handle_resource(Event_T E); Line 91  static void handle_resource(Event_T E);
91  static void handle_timestamp(Event_T E);  static void handle_timestamp(Event_T E);
92  static void handle_connection(Event_T E);  static void handle_connection(Event_T E);
93  static void handle_permission(Event_T E);  static void handle_permission(Event_T E);
94    static void handle_unmonitor(Event_T E);
95    
96    
97  /* ------------------------------------------------------------------ Public */  /* ------------------------------------------------------------------ Public */
# Line 245  static void handle_event(Event_T E) { Line 245  static void handle_event(Event_T E) {
245    case EVENT_TIMESTAMP:  handle_timestamp(E); break;    case EVENT_TIMESTAMP:  handle_timestamp(E); break;
246    case EVENT_CONNECTION: handle_connection(E); break;    case EVENT_CONNECTION: handle_connection(E); break;
247    case EVENT_PERMISSION: handle_permission(E); break;    case EVENT_PERMISSION: handle_permission(E); break;
248      case EVENT_UNMONITOR:  handle_unmonitor(E); break;
249    }    }
250        
251    if(E->id != EVENT_NULL) {    if(E->id != EVENT_NULL) {
# Line 433  static void handle_gid(Event_T E) { Line 434  static void handle_gid(Event_T E) {
434    
435  }  }
436    
437    
438    static void handle_unmonitor(Event_T E) {
439    
440      check_service(E->source->name, "unmonitor");
441    
442    }
443    
444    
445  /* ------------------------------------------------------------------------- */  /* ------------------------------------------------------------------------- */
446    

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

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