mcktr / check_fritz

Check plugin written in Go to monitor a Fritz!Box
GNU General Public License v2.0
32 stars 10 forks source link

Flexible Minimum value for Graphs #86

Closed AnneWielis closed 4 years ago

AnneWielis commented 4 years ago

When creating graphs, it's a bit annoying that the check seems to return a range minimum of 0, which prevents icinga2 (in my case) to calculate it dynamically itself. Looks like this: grafik ...but i would prefer it like this: grafik Maybe make that configurable via a parameter?

mcktr commented 4 years ago

Hi @AnneWielis,

it took a bit to understand what you meant. Unfortunately this is nothing that the plugin can change, the plugin does not set a minimum value for the smart_heatertemperatur method, only the actual value and if set warning and critical values are set and included into the performance data output:

./check_fritz.linux.amd64 -H 192.168.178.1 -p secret -m smart_heatertemperatur -a "00000" -w 25 -c 28
CRITICAL - Comet DECT  - Büro 22.00 °C | 'temperature'=22.000000;25.000000;28.000000;;

./check_fritz.linux.amd64 -H 192.168.178.1 -p secret -m smart_heatertemperatur -a "00000"
OK - Comet DECT  - Büro 22.00 °C | 'temperature'=22.000000;;;;

This is something that your graphing solution must handle/calculating, if you use Grafana with InfluxDB it is the setting Y-Min in the Axis settings.

image

Best regards Michael

mcktr commented 4 years ago

Closed due to lack of feedback.