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)"); |
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) { |
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)) |