I’m trying to create a Custom Graph with data outputted from multiple temperature sensors on a Raspberry Pi.
I have created a python script which outputs the following when doing an snmpwalk:
snmpwalk -c community -v2c rpi-temp01 -Oqv .188.8.131.52.4.1.8072.1.3.2.184.108.40.206.220.127.116.11.18.104.22.168.22.214.171.124.97.116.101
There are 4 sensors total. Of which 2 are Temperature and 2 are Humidity.
From there I have created the Application in:
Then the page in:
And Finally the Graphs in: /opt/librenms/includes/html/graphs/application/cabinet_climate_temperature.inc.php
The ./poller.php and ./validate.php output are also in the paste link.
Now when I enable the Application in the Web UI, it shows the Graphs OK, but with NAN as the data.
Would anybody be able to have a look at the code to see if you can see where I am going wrong? Apologies for the link-ception but I could only post 2 links!
I referenced the pi-hole application for most of the code.
Appreciate the help in advance!