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

Missing performance data output in connection_status & device_update methods #103

Closed mcktr closed 3 years ago

mcktr commented 4 years ago

This adds the missing performance data output for the methods connection_status and device_update.

Before

$ ./check_fritz -H 192.168.178.1 -p PASSWORD -m connection_status
OK - Connection Status: Connected; External IP: 9.999.999.99

$ ./check_fritz -H 192.168.178.1 -p PASSWORD -m device_update
OK - No update available

After

$ ./check_fritz -H 192.168.178.1 -p PASSWORD -m connection_status
OK - Connection Status: Connected; External IP: 9.999.999.99 | 'status'=0.000000;;;;

$ ./check_fritz -H 192.168.178.1 -p PASSWORD -m device_update
OK - No update available | 'pending_update'=0.000000;;;;

fixes #102