Tafkas / fritzbox-munin

A collection of munin plugins to monitor your AVM FRITZ!Box router
GNU General Public License v2.0
148 stars 36 forks source link

ValueError: No JSON object could be decoded #34

Closed rforberger closed 5 years ago

rforberger commented 5 years ago

Hi,

when running the plugin fritzbox_cpu_temperature.py, I get the following error python message:

/ # munin-run fritzbox_cpu_temperature.py Traceback (most recent call last): File "/etc/munin/plugins/fritzbox_cpu_temperature.py", line 60, in <module> get_cpu_temperature() File "/etc/munin/plugins/fritzbox_cpu_temperature.py", line 34, in get_cpu_temperature data = json.loads(xhr_data) File "/usr/lib/python2.7/json/__init__.py", line 339, in loads return _default_decoder.decode(s) File "/usr/lib/python2.7/json/decoder.py", line 364, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode raise ValueError("No JSON object could be decoded") ValueError: No JSON object could be decoded

Other fritzbox-munin plugins are running and I have my FritzBOX IP address and password in /etc/munin/plugin-conf.d/fritzbox .

I am using the FritzBOX Model 7362 SL with FritzOS 7.01 .

Any idea what could be wrong?

Best regards, rforberger

Tafkas commented 5 years ago

For FritzOS 7.01 you have to use the tag https://github.com/Tafkas/fritzbox-munin/releases/tag/7.0.0

rforberger commented 5 years ago

Thanks, it worked.