aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin/irq.php
diff options
context:
space:
mode:
authorPim van den Berg2009-11-04 23:04:30 +0100
committerPim van den Berg2009-11-04 23:04:30 +0100
commit488b4f3ea230b0bc3cb7fa7e5264691e21067cd0 (patch)
tree67944684b708f9e2998eeeb0200e608f1f451a36 /plugin/irq.php
parentremove path_format from plugins (diff)
downloadapt-panopticon_cgp-488b4f3ea230b0bc3cb7fa7e5264691e21067cd0.zip
apt-panopticon_cgp-488b4f3ea230b0bc3cb7fa7e5264691e21067cd0.tar.gz
apt-panopticon_cgp-488b4f3ea230b0bc3cb7fa7e5264691e21067cd0.tar.bz2
apt-panopticon_cgp-488b4f3ea230b0bc3cb7fa7e5264691e21067cd0.tar.xz
add unixsock flush support
Via the UnixSock plugin of Collectd it is possible to send commands to the Collectd daemon. One of the commands is the FLUSH command, which you can use to let the daemon write cached data to the rrd files. CGP uses the FLUSH command before generating a graph and before showing the load information on the main page. In this case the information shown via CGP is always up-to-date. Also when you have configured the RRDTool plugin of Collectd with a CacheTimeout setting. This commit includes code based on functions collectd_identifier and collectd_flush from php-collection by Bruno Prémont.
Diffstat (limited to '')
-rw-r--r--plugin/irq.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugin/irq.php b/plugin/irq.php
index e442142..95bddcf 100644
--- a/plugin/irq.php
+++ b/plugin/irq.php
@@ -34,6 +34,8 @@ $obj->rrd_title = "Interrupts on $host";
34$obj->rrd_vertical = 'IRQs/s'; 34$obj->rrd_vertical = 'IRQs/s';
35$obj->rrd_format = '%6.1lf'; 35$obj->rrd_format = '%6.1lf';
36 36
37collectd_flush(ident_from_args($obj->args));
38
37$obj->rrd_graph(); 39$obj->rrd_graph();
38 40
39?> 41?>