Open c-holtermann opened 9 years ago
This plugin resides at https://github.com/c-holtermann/check_btrfs
It would be nice if the documentation would be more clear about the difference between the main parameter that triggers the levels OK, WARN, CRIT and the other performance parameters
I wrote a little nagios_plugin to check btrfs
I'd like to only check the data_ratio with the standard warning and critical values. This actually works when adding a second range that all the other performance datas are checked against. But the output doesn't care about this.
When being called by
nagaconda_btrfs_df.py -m /mounts/BackupRAID -w0.9 -c0.95
Status Ok|metadata_used=5400000000.0B;0.9;0.95;; data_total=222.72GB;0.9;0.95;; data_ratio=0.886494252874;0.9;0.95;; data_used=197.44GB;0.9;0.95;; system2_used=0.0B;0.9;0.95;; metadata_total=10000000000.0B;0.9;0.95;; system1_used=40.0KB;0.9;0.95;; system2_total=4000000.0B;0.9;0.95;; system1_total=64.0MB;0.9;0.95;;
I'd expect the 2nd threshold not only in the tests but also in the output