Files
zabbix_scripts/lld_backup_status_file.py
2025-10-07 14:38:54 +02:00

13 lines
365 B
Python
Executable File

#! /usr/bin/env python3
import glob
import json
if __name__ == "__main__":
# Iterate over all block devices, but ignore them if they are in the
# skippable set
skippable = ()
data=[]
files=(file for file in glob.glob( "/var/run/*.status" ))
data = [{"{#STATUSFILE}": file} for file in files]
print(json.dumps({"data": data}, indent=4))