Filter Snapshots by snap-mirror-lable

Shorty, the Snapshots  check will receive a new switch: ‑‑snapmirror_label_matches This switch can be used to analyze file sizes and the number of snapshots based on the snap-mirror-lable. Therefore, it is also possible to search for snapshots that don’t have a snap-mirror-lable. Here are a few examples: $ ./check_netapp_pro.pl Snapshots ... NETAPP_PRO SNAPSHOTS OK - 30 snapshots on 3 volumes checked. vol12: 3.3% / 10 snapshots vol11: 3.3% / 10 snapshots vol0: 0.0% / 10 snapshots # consider only weekly snapmirrors $ ./check_netapp_pro.pl Snapshots ... ‑‑snapmirror_label_matches=weekly NETAPP_PRO SNAPSHOTS OK - 6 snapshots on 3 volumes checked. vol11: 0.6% / 2 snapshots vol12: 0.6% / 2 snapshots vol0: 0.0% / 2 snapshots # find snapshots with no snapmirror-label set (^$ matches the empty string) $ ./check_netapp_pro.pl Snapshots ... ‑‑snapmirror_label_matches=^$ NETAPP_PRO SNAPSHOTS OK - 18 snapshots on 3 volumes checked. vol11: 2.1% / 6 snapshots vol12: 2.1% / 6 snapshots vol0: 0.0% / 6 snapshots We are planing to include the switch in version 3.3.0.


Non-explicit labels in the perf data
User Friendly Time Values

Comments