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

Diff of /monit/util.c

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

revision 1.64 by hauk, Thu Jun 26 14:24:11 2003 UTC revision 1.65 by hauk, Wed Jul 2 19:32:03 2003 UTC
# Line 600  void printservice(Service_T s) { Line 600  void printservice(Service_T s) {
600      printf("   %-18s = %-.20s%s\n", "alert message",      printf("   %-18s = %-.20s%s\n", "alert message",
601             is_str_defined_default(r->message),             is_str_defined_default(r->message),
602             r->message?"..":"");             r->message?"..":"");
603      printf("   %-18s = %s\n", "alert on timeout",      printf("   %-18s = %s\n", "alert on start",
604             r->alerts.alert_on_timeout?"yes":"no");             IS_EVENT_SET(r->events, EVENT_START)?"yes":"no");
605        printf("   %-18s = %s\n", "alert on stop",
606               IS_EVENT_SET(r->events, EVENT_STOP)?"yes":"no");
607      printf("   %-18s = %s\n", "alert on restart",      printf("   %-18s = %s\n", "alert on restart",
608               r->alerts.alert_on_restart?"yes":"no");               IS_EVENT_SET(r->events, EVENT_RESTART)?"yes":"no");
609      printf("   %-18s = %s\n", "alert on checksum",      printf("   %-18s = %s\n", "alert on checksum",
610             r->alerts.alert_on_checksum?"yes":"no");             IS_EVENT_SET(r->events, EVENT_CHECKSUM)?"yes":"no");
611      printf("   %-18s = %s\n", "alert on resource",      printf("   %-18s = %s\n", "alert on resource",
612             r->alerts.alert_on_resource?"yes":"no");             IS_EVENT_SET(r->events, EVENT_RESOURCE)?"yes":"no");
613      printf("   %-18s = %s\n", "alert on stop",      printf("   %-18s = %s\n", "alert on timeout",
614             r->alerts.alert_on_stop?"yes":"no");             IS_EVENT_SET(r->events, EVENT_TIMEOUT)?"yes":"no");
615      printf("   %-18s = %s\n", "alert on timestamp",      printf("   %-18s = %s\n", "alert on timestamp",
616             r->alerts.alert_on_timestamp?"yes":"no");             IS_EVENT_SET(r->events, EVENT_TIMESTAMP)?"yes":"no");
617    
618    }    }
619    

Legend:
Removed from v.1.64  
changed lines
  Added in v.1.65

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