I just setted up a Raspberry Pi 2 with the newest version of rasbian. I have completed the setup for linux miniprobe to connect it to prtg.

The miniprobe works 100% and cpu, ram ect. works fine in prtg. The temperature sensor works in the pi. i can readout the temperatures. But the sensor in PRTG gives a error message. Error: DS18B20 sensor failed. See log for details

Do i need to make a script within the pi or should it work?


Article Comments

Hi,
have you followed the instructions for the installation of the DS18B20?
Best regards


May, 2016 - Permalink

Yes i have. Inside the Pi i get correct temperatures of the sensor. i reinstalled the pi serveral times but still doesnt work


May, 2016 - Permalink

What are the results when you execute the following command:

ls -al /sys/bus/w1/devices

Could you post the results?


Jun, 2016 - Permalink

Command "ls -al /sys/bus/w1/devices" :

pi@raspberrypi:/sys/bus/w1/devices $ ls -al /sys/bus/w1/devices
total 0
drwxr-xr-x 2 root root 0 Jun  2 15:00 .
drwxr-xr-x 4 root root 0 May 31 14:17 ..
lrwxrwxrwx 1 root root 0 Jun  2 14:57 28-0315651429ff -> ../../../devices/w1_bus_master1/28-0315651429ff
lrwxrwxrwx 1 root root 0 Jun  2 14:57 w1_bus_master1 -> ../../../devices/w1_bus_master1

Jun, 2016 - Permalink

In the probe.log i get the error:

Ooops Something went wrong with 'mpds18b20' sensor 4406. Error: global name '__init__' is not defined


Jun, 2016 - Permalink

I Fixed it,

in the sensor code of the temperature sensor there is a comment i have removed. PythonMiniProbe/miniprobe/sensors/ds18b20.py

and changed:

#import __init__

TO:

import __init__

Now it works


Jun, 2016 - Permalink