After last night’s update my custom OIDs are broken - the graphs are no longer displayed. For example, these are from a Raspberry Pi with a temperature sensor in my loft:
These were working fine until this morning. I have another device with a couple of custom OIDs and it’s the same there.
Any idea how I can fix this?
validate.php reports no issues, and I have tried rebooting. I also tried adding a new custom OID and that one also fails to produce a graph. The OID values are being read successfully.
It looks like this started after commit 4e6a7291a204b712284ffed9361cba472981a154 .
It seems to work if I undo the changes to graphs.inc.php from that commit, but I haven’t had time to track down what broke (I don’t recommend this as a workaround, as I’m not sure what it will break).
git show 4e6a7291a204b712284ffed9361cba472981a154 includes/html/pages/device/graphs.inc.php | git apply --reverse
This new conditional seems to be causing the problem:
if (is_file("includes/html/pages/device/graphs/$group.inc.php")) {
include "includes/html/pages/device/graphs/$group.inc.php";
} else {
// original code
If I remove/rename this file the custom OID graphs are shown again:
It looks like the commit that broke this may have just exposed a problem in /includes/html/pages/graphs/customoid.inc.php. It looks like that file was not being used before.