Custom Service with Negative Value Not Graphing

/opt/librenms/includes/html/graphs/customoid/customoid.inc.php
$scale_min = -30;

I had the same problem with outside temps.
Seems like this might solve the problem. Change scale min to your preferred value. Maybe the min value should be more dynamic with the values that the probe gives. Or maybe the ability to set that in the custom oid config might be useful. I’ll look in to it, may I can come up with a universal solution that can be committed to the code base.

You can also set the max.
$scale_max = 30;
$scale_min = -30;

Edit: You can also omit the scale_min altogether to have a completely dynamic graph!

1 Like