645 |
"<tr><td>Monitoring mode</a></td><td>%s</td></tr>", |
"<tr><td>Monitoring mode</a></td><td>%s</td></tr>", |
646 |
modenames[p->mode]); |
modenames[p->mode]); |
647 |
out_print(res, |
out_print(res, |
648 |
|
"<tr><td>Monitoring status</a></td><td>%s</td></tr>", |
649 |
|
statusnames[p->do_validate]); |
650 |
|
out_print(res, |
651 |
"<tr><td>Start program</a></td><td>%s</td></tr>", |
"<tr><td>Start program</a></td><td>%s</td></tr>", |
652 |
p->start?p->start->arg[0]:"(not defined)"); |
p->start?p->start->arg[0]:"(not defined)"); |
653 |
out_print(res, |
out_print(res, |
876 |
if( Run.httpdssl ) { |
if( Run.httpdssl ) { |
877 |
|
|
878 |
printf_ssl_socket(res->ssl, |
printf_ssl_socket(res->ssl, |
879 |
"Process '%s' is running with pid [%d] \n\tUptime: %s " |
"Process '%s' is running with pid [%d]\n\tUptime: %s " |
880 |
"CPU: %.1f%% Memory: %.1f%% [%ldkB]\n", |
"CPU: %.1f%% Memory: %.1f%% [%ldkB]\n\tMonitoring status: %s\n", |
881 |
p->name, (int)pid, uptime, |
p->name, (int)pid, uptime, pi->cpu_percent/10.0, |
882 |
pi->cpu_percent/10.0, |
pi->mem_percent/10.0,pi->mem_kbyte, statusnames[p->do_validate]); |
|
pi->mem_percent/10.0,pi->mem_kbyte); |
|
883 |
|
|
884 |
} else { |
} else { |
885 |
|
|
886 |
fprintf(out, |
fprintf(out, |
887 |
"Process '%s' is running with pid [%d] \n\tUptime: %s " |
"Process '%s' is running with pid [%d]\n\tUptime: %s " |
888 |
"CPU: %.1f%% Memory: %.1f%% [%ldkB]\n", |
"CPU: %.1f%% Memory: %.1f%% [%ldkB]\n\tMonitoring status: %s\n", |
889 |
p->name, (int)pid, uptime, |
p->name, (int)pid, uptime, pi->cpu_percent/10.0, |
890 |
pi->cpu_percent/10.0, |
pi->mem_percent/10.0,pi->mem_kbyte, statusnames[p->do_validate]); |
|
pi->mem_percent/10.0,pi->mem_kbyte); |
|
891 |
|
|
892 |
} |
} |
893 |
|
|