Skip to content

Plugin exec solusvm bandwidth.sh

Florian Forster edited this page Nov 20, 2023 · 1 revision
Name: collectd-solusvm-bw.sh plugin
Type: read
Callbacks: n/a
Status: external
FirstVersion: n/a
Copyright: 2016 Fredrik Lundhag
License: MIT License
Manpage: n/a
See also: List of Plugins

collectd-solusvm-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.

Synopsis

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>

Example graphs

Collectd-Solus-bw.png

Dependencies

See also

Clone this wiki locally