summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3d72fbb)
raw | patch | inline | side by side (parent: 3d72fbb)
author | Patrick Shan <patrick@freelancer.com> | |
Thu, 3 Jan 2013 03:58:59 +0000 (14:58 +1100) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Mon, 15 Jul 2013 15:55:58 +0000 (17:55 +0200) |
* "nginx_handled"
src/nginx.c | patch | blob | history | |
src/types.db | patch | blob | history |
diff --git a/src/nginx.c b/src/nginx.c
index 7568a2c5ee2ded6439b6eb24927d64bb1b503e4a..a87c35c986e35399acc1f0fe4232c4eeaf31f5f8 100644 (file)
--- a/src/nginx.c
+++ b/src/nginx.c
values[0].gauge = value;
else if (strcmp (type, "nginx_requests") == 0)
values[0].derive = value;
+ else if (strcmp (type, "nginx_accepts") == 0)
+ values[0].derive = value;
+ else if (strcmp (type, "nginx_handled") == 0)
+ values[0].derive = value;
else
return;
&& (atoll (fields[1]) != 0)
&& (atoll (fields[2]) != 0))
{
+ submit ("nginx_accepts", NULL, atoll (fields[0]));
+ submit ("nginx_handled", NULL, atoll (fields[1]));
submit ("nginx_requests", NULL, atoll (fields[2]));
}
}
diff --git a/src/types.db b/src/types.db
index 4922aa75f06338626e661878fb8d296eecec74e3..38655878a47220a9736b041ec255c7a9af58bc5d 100644 (file)
--- a/src/types.db
+++ b/src/types.db
nfs_procedure value:DERIVE:0:U
nginx_connections value:GAUGE:0:U
nginx_requests value:DERIVE:0:U
+nginx_accepts value:DERIVE:0:U
+nginx_handled value:DERIVE:0:U
node_octets rx:DERIVE:0:U, tx:DERIVE:0:U
node_rssi value:GAUGE:0:255
node_stat value:DERIVE:0:U