Cannot add plugin to collectd

  • Hi,

    I'm following this guide to get Influxdb and Grafana working, but it seems the the "network" file cannot be found by the service. It does exist in the right place, but maye this guide was for an older OMV version? I see this error when i input the command sudo omv-mkconf collectd

    run-parts: failed to exec /usr/share/openmediavault/mkconf/collectd.d/network: No such file or directory
    run-parts: /usr/share/openmediavault/mkconf/collectd.d/network exited with return code 1

    the network file perms are set to 755

  • i figured out that something seems to be wrong in the "network" file, but i don't see any issues.

    # This script adds support for sending data to InfluxDB

    set -e

    . /etc/default/openmediavault
    . /usr/share/openmediavault/scripts/helper-functions



    # change hostname
    sed -i -e "s/Hostname\ \"localhost\"/Hostname\ \"$HOST_NAME\"/g" ${OMV_COLLECTD_CONFIG}

    cat <<EOF > "${OMV_COLLECTD_CONFIG_DIR}/network.conf"
    LoadPlugin network
    <Plugin "network">
    Server "" "25826"

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!