Difference between revisions of "Plugin:exec-solusvm-bandwidth.sh"
m (Jolt moved page Plugin:exec-solusvm-bandwidth to Plugin:exec-solusvm-bandwidth.sh: Change title again. Third times the charm...)
Revision as of 23:04, 1 November 2016
|Copyright:||2016 Fredrik Lundhag|
|List of Plugins|
collectd-solus-bw.sh is a shell script which read bandwidth statistics from SolusVM, a common platform for VPS providers. The script requires the Exec plugin, curl and grep with -P (--perl-regexp support) to run and was written by Fredrik Lundhag.
To use this script, do the following:
- Download or copy the gist collectd-solusvm-bw.sh from GitHub into /etc/collectd.
- Enable API in the VPS SolusVM control panel, then copy your API key + hash and put them into the script together with the path to the API.
- I recommend you to run the script manually first to make sure that the output looks correct and that the API URL works.
- Add the section below the configuration of the Exec plugin:
LoadPlugin exec <Plugin exec> Exec <user>[:group] "/etc/collectd/collectd-solusvm-bw.sh" </Plugin>