Hi,
Trying to get https://docs.librenms.org/Extensions/Applications/#docker-stats working. On the client machine(s) I confirmed the script works by manually running it and it outputs json with the docker data. Librenms discovers it as new app, says status ok, but all the graphs say Error drawing graph.
Example of one such graph’s RRD command:
RRDTool Command
rrdtool graph /tmp/EQjsqQ9LbNDGsf7E --alt-autoscale-max --rigid -E --start 1617228900 --end 1617315581 --width 2273 --height 648 -c BACK#EEEEEE00 -c SHADEA#EEEEEE00 -c SHADEB#EEEEEE00 -c CANVAS#FFFFFF00 -c GRID#a5a5a5 -c MGRID#FF9999 -c FRAME#5e5e5e -c ARROW#5e5e5e -R normal -c FONT#000000 --font LEGEND:8:DejaVuSansMono --font AXIS:7:DejaVuSansMono --font-render-mode normal COMMENT:'PIDs (count) Now Min Max Avg\l' COMMENT:'\l'
RRDTool Output
OK u:0.00 s:0.00 r:0.00
output of the script on one of clients:
[email protected]:~ $ /etc/snmp/docker-stats.sh
{"version":"1","data":[{"container":"zigbee2mqtt","pids":22,"memory":{"used":"0B","limit":"0B","perc":"0.00%"},"cpu":"0.00%"},{"container":"mosquitto","pids":1,"memory":{"used":"0B","limit":"0B","perc":"0.00%"},"cpu":"0.10%"},{"container":"ddns-updater","pids":11,"memory":{"used":"0B","limit":"0B","perc":"0.00%"},"cpu":"0.00%"},{"container":"room-assistant","pids":10,"memory":{"used":"0B","limit":"0B","perc":"0.00%"},"cpu":"9.36%"},{"container":"diun","pids":16,"memory":{"used":"0B","limit":"0B","perc":"0.00%"},"cpu":"0.03%"},{"container":"pihole","pids":21,"memory":{"used":"0B","limit":"0B","perc":"0.00%"},"cpu":"0.15%"},{"container":"portainer_agent","pids":10,"memory":{"used":"0B","limit":"0B","perc":"0.00%"},"cpu":"0.00%"},{"container":"portainer","pids":13,"memory":{"used":"0B","limit":"0B","perc":"0.00%"},"cpu":"0.00%"},{"container":"zigbee2mqtt-assistant","pids":21,"memory":{"used":"0B","limit":"0B","perc":"0.00%"},"cpu":"1.88%"}],"error":"0","errorString":""}
Running latest LibreNMS inside a docker. All other Applications I use work ok (fail2ban, freebsdnfsserver, ntp-server, osupdate, smart, unbound, ups-apcupsd)
Any advice welcome, thanks!