- submit_gauge ("apache_scoreboard", "open" , open);
- submit_gauge ("apache_scoreboard", "waiting" , waiting);
- submit_gauge ("apache_scoreboard", "starting" , starting);
- submit_gauge ("apache_scoreboard", "reading" , reading);
- submit_gauge ("apache_scoreboard", "sending" , sending);
- submit_gauge ("apache_scoreboard", "keepalive", keepalive);
- submit_gauge ("apache_scoreboard", "dnslookup", dnslookup);
- submit_gauge ("apache_scoreboard", "closing" , closing);
- submit_gauge ("apache_scoreboard", "logging" , logging);
- submit_gauge ("apache_scoreboard", "finishing", finishing);
- submit_gauge ("apache_scoreboard", "idle_cleanup", idle_cleanup);
+ if (st->server_type == APACHE)
+ {
+ submit_gauge ("apache_scoreboard", "open" , open, st);
+ submit_gauge ("apache_scoreboard", "waiting" , waiting, st);
+ submit_gauge ("apache_scoreboard", "starting" , starting, st);
+ submit_gauge ("apache_scoreboard", "reading" , reading, st);
+ submit_gauge ("apache_scoreboard", "sending" , sending, st);
+ submit_gauge ("apache_scoreboard", "keepalive", keepalive, st);
+ submit_gauge ("apache_scoreboard", "dnslookup", dnslookup, st);
+ submit_gauge ("apache_scoreboard", "closing" , closing, st);
+ submit_gauge ("apache_scoreboard", "logging" , logging, st);
+ submit_gauge ("apache_scoreboard", "finishing", finishing, st);
+ submit_gauge ("apache_scoreboard", "idle_cleanup", idle_cleanup, st);
+ }
+ else
+ {
+ submit_gauge ("apache_scoreboard", "connect" , open, st);
+ submit_gauge ("apache_scoreboard", "close" , closing, st);
+ submit_gauge ("apache_scoreboard", "hard_error" , hard_error, st);
+ submit_gauge ("apache_scoreboard", "read" , lighttpd_read, st);
+ submit_gauge ("apache_scoreboard", "read_post" , reading, st);
+ submit_gauge ("apache_scoreboard", "write" , sending, st);
+ submit_gauge ("apache_scoreboard", "handle_request", handle_request, st);
+ submit_gauge ("apache_scoreboard", "request_start" , request_start, st);
+ submit_gauge ("apache_scoreboard", "request_end" , request_end, st);
+ submit_gauge ("apache_scoreboard", "response_start", response_start, st);
+ submit_gauge ("apache_scoreboard", "response_end" , response_end, st);
+ }