kbrownlees / bme280

Python Driver for the BME280 Temperature/Pressure/Humidity Sensor from Bosch
Other
39 stars 15 forks source link

munin plugin run: read_bme280 not found #1

Closed banzo closed 8 years ago

banzo commented 8 years ago

On Raspbian (Jessie), the read_bme binary is not known by the plugin:

$ sudo munin-run bme280_temperature
/etc/munin/plugins/bme280_humidity: 21: /etc/munin/plugins/bme280_humidity: read_bme280: not found
banzo commented 8 years ago

If I specify the full path in the plugin file then it is ok:

CMD="/usr/local/bin/read_bme280 --pressure"

instead of

CMD="read_bme280 --pressure

Not sure how to fix that properly, maybe it is a bad idea to hardcode the full binary path in the config file since it could change depending on the distribution.

kbrownlees commented 8 years ago

Thanks for the report - I had it symlinked locally, whoops!

Should be able to add the following to the [bme280_*] section in /etc/munin/plugin-conf.d/munin-node:

env.PATH /usr/local/bin:/usr/bin