[RESOLVED] audit-host package
Published: November 21, 2024 - 4:51 PM
Good morning,
in the logic of packets audit-dmi And audit -wmi I propose this package:
It allows information about the host to be retrieved in audit data.
This can be used, for example with this request
in the logic of packets audit-dmi And audit -wmi I propose this package:
Code: Select all
# -*- coding: utf-8 -*-
from setuphelpers import *
def install():
pass
def audit():
try:
data_host_info = host_info()
except Exception as e:
data_host_info = {"status": str(e)}
WAPT.write_audit_data_if_changed("audit-host", "audit-host", data_host_info)
return "OK"This can be used, for example with this request