check_fritz icon indicating copy to clipboard operation
check_fritz copied to clipboard

No WARNING or CRITICAL status for device and connection status

Open Pentidumm opened this issue 4 years ago • 1 comments

Hi, this is my first GitHub issue. Sorry if I did do something wrong.

The methods connection_uptime and device_uptime always return OK. Since I want to monitor the status, I need Warning and Critical also.

Example for connection_uptime: $ ./check_fritz -p <password> -m connection_uptime -w 252000 -c 259200 OK - Connection Uptime: 252765 seconds (2d 22h 12m 45s) | 'uptime'=252765.000000s;;;;

Expected output: CRITICAL - Connection Uptime: 252765 seconds (2d 22h 12m 45s) | 'uptime'=252765.000000s;252000.000000s;259200.000000s;;

Am I doing something wrong here or is this a check plugin bug?

Pentidumm avatar Jan 23 '21 11:01 Pentidumm

Hi,

thanks for creating this issue, you did everything right! :-)

Indeed, for the uptime checks there is currently no warning and critical thresholds implemented. I plan to implement them in a future version, they are highly likely coming with an overhaul for the thresholds which will also implement ranges, see #101.

I'll keep this issue open for visibility.

Best regards Michael.

mcktr avatar Jan 26 '21 18:01 mcktr