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
    https://forum.openmediavault.o…light=influxdb#post204733


    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.




    #!/bin/sh
    # This script adds support for sending data to InfluxDB


    set -e


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


    OMV_COLLECTD_CONFIG=${OMV_COLLECTD_CONFIG:-"/etc/collectd/collectd.conf"}
    OMV_COLLECTD_CONFIG_DIR=${OMV_COLLECTD_CONFIG_DIR:-"/etc/collectd/collectd.conf.d"}
    OMV_COLLECTD_RRDTOOL_MKGRAPH=${OMV_COLLECTD_RRDTOOL_MKGRAPH:-"/usr/sbin/omv-mkrrdgraph"}


    HOST_NAME=`homenas`


    # 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 "192.168.1.240" "25826"
    </Plugin>
    EOF

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!