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

Diff of /monit/util.c

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

revision 1.168 by martinp, Wed Nov 2 14:06:10 2005 UTC revision 1.169 by martinp, Sat Nov 5 14:09:01 2005 UTC
# Line 513  void Util_printRunList() { Line 513  void Util_printRunList() {
513    printf(" %-18s = %s\n", "Use process engine", Run.doprocess?"True":"False");    printf(" %-18s = %s\n", "Use process engine", Run.doprocess?"True":"False");
514    printf(" %-18s = %d seconds\n", "Poll time", Run.polltime);    printf(" %-18s = %d seconds\n", "Poll time", Run.polltime);
515    
516      if(Run.eventlist_dir) {
517        char slots[STRLEN];
518    
519        if(Run.eventlist_slots < 0)
520          snprintf(slots, STRLEN, "unlimited");
521        else
522          snprintf(slots, STRLEN, "%d", Run.eventlist_slots);
523    
524        printf(" %-18s = base directory %s with %s slots\n",
525          "Event queue", Run.eventlist_dir, slots);
526      }
527    
528    if(Run.collectors) {    if(Run.collectors) {
529      Collector_T c= Run.collectors;      Collector_T c= Run.collectors;
530      printf(" %-18s = ", "Collector(s)");      printf(" %-18s = ", "Collector(s)");
# Line 622  void Util_printService(Service_T s) { Line 634  void Util_printService(Service_T s) {
634    
635    snprintf(string, STRLEN, "%s Name", servicetypes[s->type]);    snprintf(string, STRLEN, "%s Name", servicetypes[s->type]);
636    printf("%-21s = %s\n", string, s->name);    printf("%-21s = %s\n", string, s->name);
637    printf(" %-20s = %s\n", "Group", is_str_defined(s->group));    if(s->group)
638        printf(" %-20s = %s\n", "Group", s->group);
639    if(s->type == TYPE_PROCESS)    if(s->type == TYPE_PROCESS)
640      printf(" %-20s = %s\n", "Pid file", s->path);      printf(" %-20s = %s\n", "Pid file", s->path);
641    else if(s->type != TYPE_HOST)    else if(s->type != TYPE_HOST && s->type != TYPE_SYSTEM)
642      printf(" %-20s = %s\n", "Path", s->path);      printf(" %-20s = %s\n", "Path", s->path);
643    printf(" %-20s = %s\n", "Monitoring mode", modenames[s->mode]);    printf(" %-20s = %s\n", "Monitoring mode", modenames[s->mode]);
644    if(s->start) {    if(s->start) {
# Line 1843  static void printevents(unsigned int eve Line 1856  static void printevents(unsigned int eve
1856        printf("Gid ");        printf("Gid ");
1857      if(IS_EVENT_SET(events, EVENT_ICMP))      if(IS_EVENT_SET(events, EVENT_ICMP))
1858        printf("Icmp ");        printf("Icmp ");
1859        if(IS_EVENT_SET(events, EVENT_INSTANCE))
1860          printf("Instance ");
1861      if(IS_EVENT_SET(events, EVENT_INVALID))      if(IS_EVENT_SET(events, EVENT_INVALID))
1862        printf("Invalid ");        printf("Invalid ");
1863      if(IS_EVENT_SET(events, EVENT_MATCH))      if(IS_EVENT_SET(events, EVENT_MATCH))

Legend:
Removed from v.1.168  
changed lines
  Added in v.1.169

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