MaximilianClemens / checkmk_fritzbox

Extended CheckMK FritzBox Agent for SmartHome Devices.
GNU General Public License v2.0
10 stars 3 forks source link

Issues updating from check-mk 2.1.0 to 2.2.0 #9

Open mdweiler4711 opened 7 months ago

mdweiler4711 commented 7 months ago

I am currently in the process of upgrading check-mk from 2.1.0p38 to 2.2.0p20. Hence I also updated the plugin from 0.5.4 to 0.5.9.

Everything worked fine before the update and I monitored two 7490 Fritzboxes with various smart devices (thermostat, switch, plug, ...).

Now after the update I am getting crashes from the check agent for the discovered services of all my smart-devices, and also upon a service update/rescan:

Invalid check parameter: Humidity: Thresholds for WARN: The datatype must be a tuple, but is list
Variable: checkgroup_parameters:fritzbox_smarthome
Parameters:

{'hkr': {},
 'humidity': {'humidity_crit': [70, 30], 'humidity_warn': [60, 40]},
 'powermeter': {},
 'present': 0,
 'switch': {},
 'temperature': {}}

I have no idea, what's going wrong here or how to tackle it.

I am using a 7490 FritzBox running FRITZ!OS:[7.57] - and the output of the check-agent does not contain any 'humidity' information.

Maybe the update just left some artifacts which need to be removed?

Thanks for any hint and advice

Manfred

doctore74 commented 6 months ago

Hallo Manfred,

https://thl-cmk.hopto.org/gitlab/checkmk/various/fritzbox_smarthome

Schau mal hier

Viele Grüße Christian

MaximilianClemens commented 6 months ago

Hi, can you try: v0.5.10

mdweiler4711 commented 6 months ago

Unfortunately, only the message changes:

Invalid check parameter: Thermostat (battery settings are also here): Show Batterystate always: Invalid value, must be 'True' but is 'False'
Variable: checkgroup_parameters:fritzbox_smarthome
Parameters:

{'hkr': {'hkr_bat_always': False,
         'hkr_crit': {'hkr_bat_below': 20,
                      'hkr_diff_soll': 8,
                      'hkr_flags': [True, True, False]},
         'hkr_warn': {'hkr_bat_below': 30,
                      'hkr_diff_soll': 5,
                      'hkr_flags': [True, True, False]}},
 'humidity': {'humidity_crit': (70, 30), 'humidity_warn': (60, 40)},
 'powermeter': {},
 'present': 1,
 'switch': {},
 'temperature': {}}

If I add the fritzbox to the check rule under "Service monitoring rules > Applications, Processes & Services > Settings for Fritz!Box Smarthome Devices" - it complains about yet another issue:

Invalid check parameter: Undefined key 'switch' in the dictionary. Allowed are present, hkr, humidity.
Variable: checkgroup_parameters:fritzbox_smarthome
Parameters:

{'hkr': {},
 'humidity': {},
 'powermeter': {},
 'present': 0,
 'switch': {},
 'temperature': {}}
mdweiler4711 commented 6 months ago

Hallo Manfred,

https://thl-cmk.hopto.org/gitlab/checkmk/various/fritzbox_smarthome

Schau mal hier

Viele Grüße Christian

Hallo Christian,

ich habe versucht, mir das anzuschauen, bekomme aber leider gar keine Services erkannt und mit der Doku komme ich auch nicht weiter :-(

Manfred

ggruber commented 4 months ago

Hallo Max,

wie schon bei dem anderen issue geschrieben, auch ich habe Probleme mit v0.5.10 auf CMK 2.2p24 Und die Version von Christian läuft zwar, hat aber ein anderes Konzept für die Ausgabe: Jeder Sensor wird ein eigenes Gerät (~Server) im CMK mit Piggyback verfügbar gemachten Daten. Bei kleinen Installationen mag das nett sein, aber ich wollte jetzt keine eigene CMK Instanz aufsetzen, nur weil ich an vier Fritzboxen 45 Geräte/Sensoren im Blick haben will. Da finde ich das Konzept der Ergebnisanzeige dieser CheckVersion hier deutlich besser.

Etwas Pflege wäre echt gut.

Gruß

Gerold