Extended sensor Raspberry


#1

guys…

what’s the best way to add a new sensor?!

We extend our snmpd file to have this:

pass .1.3.6.1.2.1.25.1.8.1 /usr/bin/python3 /etc/snmp/DHT-temp-snmp.py
pass .1.3.6.1.2.1.25.1.8.2 /usr/bin/python3 /etc/snmp/DHT-hum-snmp.py

extend temp /etc/snmp/DHT-hum-snmp.py
extend hum /etc/snmp/DHT-temp-snmp.py

This is 2 new values, one for Temperature and also Humidity provided by an external wired sensor (DHT22) on the raspberry.

I would like to add them inside librenms under the Health tab maybe…


#2

Check here -> https://docs.librenms.org/Developing/os/Health-Information/


#3

interesting… but how to deal with that with only a specific host ? Don’t want to apply this 2 new sensors on all our raspberry/linux devices…