diff --git a/check_pve_zsync.py b/check_pve_zsync.py index e56e1ac..103cf0c 100755 --- a/check_pve_zsync.py +++ b/check_pve_zsync.py @@ -1,10 +1,7 @@ #!/usr/bin/python3 import json import sys -from dateutil import parser -from datetime import datetime, timedelta from pprint import pprint -# from datetime import timedelta OK = 0 WARNING = 1 @@ -29,17 +26,6 @@ for vm in zsync_data: failed = True -# result = [] - -# for backup in backup_state: -# backup_vm = backup[0] -# backup_name = backup[1] -# backup_status = backup[2] -# if backup_status == 'ok' or backup_status == 'syncing' or backup_status == 'waiting': -# pass -# else: -# print(backup_vm + ' is fucked') - if failed: print('Backup in failed state\n') pprint(backup_state)