Add telegraf script to import featuresdetected

Signed-off-by: reyesj2 <94730068+reyesj2@users.noreply.github.com>
This commit is contained in:
reyesj2
2024-01-17 15:55:00 -05:00
parent 4e6924610d
commit 739feb25a4
3 changed files with 20 additions and 1 deletions

View File

@@ -80,7 +80,7 @@ def check_features():
fips = check_for_fips()
luks = check_for_luks()
with open('/opt/so/log/sostatus/features-check.log', 'w') as f:
f.write("featuresdetected: fips={},luks={}".format(fips,luks))
f.write("featuresdetected fips={},luks={}".format(fips,luks))
def fail(msg):
print(msg, file=sys.stderr)