Hi,
I am trying to add an input plugin to collectd using the exec plugin. I want to have graphs produced with the rrdtool plugin.
I add the following script: /sbin/test_plugin.sh
#!/bin/sh
HOST=$COLLECTD_HOSTNAME
INTERVAL=$COLLECTD_INTERVAL
[ -z "$INTERVAL" ] && INTERVAL=5
while sleep $INTERVAL; do
val=$(dd if=/dev/urandom bs=1 count=1 2>/dev/null | hexdump -e "\"%d\n\"")
echo "PUTVAL \"$HOST/exec-test/dummy\" interval=$INTERVAL N:$val"
done
and I added it to /etc/collectd.conf (I used the GUI):
LoadPlugin exec
<Plugin exec>
Exec "root:root" "/sbin/test_plugin.sh"
</Plugin>
I have rrdtool installed. I rebooted the device but I don't see any change.
Nothing in the GUI under "Graphs". no files are created unter /tmp/rrd
am I missing anthing? Is there anything else I need to do?
thanks!