And disable the plugin when they are not.
Hi all, For my needs at work I wrote a plugin for collectd and I wish to share it with you. This plugins, temporary called ethstat and wrote in C, collect lot of performance counter about network interface as "ethtool -S ethX" do by asking NIC driver module. At the moment this plugin work only under Linux. Any help would be great for make it working under Solaris, AIX and co ... If you think this plugin may be included to collectd sources, what is the procedure to do it ? Regards, Cyril Feraudet To be added to configuration file to make it work : LoadPlugin ethstat <Plugin ethstat> Iface "eth0" #Iface "eth1" #Iface "eth2" #Iface "eth3" </Plugin> Signed-off-by: Florian Forster <firstname.lastname@example.org>
This somewhat duplicates the code in the read callback, but it's easier to read than having four or so defines in one function. Addresses GitHub issue #14.
I welcome from rainy Ingermanland! Our thoughts are now occupied by Putin and vodka, however... I have paid attention to a little incorrect data which is given out by a processes plugin on my beautifull FreeBSD system. I have corrected them and in process have made absolutely slightly have improved accuracy and productivity of a processes plugin for FreeBSD systems. - Fix strange plural call of getpagesize(). Has entered a global variable and initialization procedure for FreeBSD - Data was summarized on all processes including threads. It led to absolutely uncertain result. Fix based on codebase of FreeBSD top programm. KERN_PROC_ALL attribute keep for future purposes. - Gets command argument failed for some processes as system and some other. It led to error messages to console. Fix based on codebase of FreeBSD top programm. - System and user CPU times turned out from the sum of miliseconds and... Oh! microseconds in one glass with overflow possibility. Fixed. My girlfriend has left me for such Christmas vacation, but I am assured that have made good business. Patch in mail attachment. -- Non nobis Domine non nobis sed Nomini Tuo da gloriam Phil Kulin Change-Id: Ib88faadf5a0fd335b426e9024b0a2e438ddbaf1f Signed-off-by: Florian Forster <email@example.com>
The values are exported as an array now. This is very close to the way data is exported as JSON.
Resolves GitHub issue #37. Change-Id: I9b2ff533003e379f0eb81de256a946fdf8851661
This hopefully makes graphing easier.