|
|
|
@ -84,8 +84,8 @@ def audit(): |
|
|
|
|
print(r"key HKEY_LOCAL_MACHINE\SOFTWARE\FusionInventory-Agent\server doesn't exist") |
|
|
|
|
return "ERROR" |
|
|
|
|
val_server = registry_readstring(HKEY_LOCAL_MACHINE,makepath('SOFTWARE','FusionInventory-Agent'),'server') |
|
|
|
|
if val_server != variables['fusinv_server'] : |
|
|
|
|
print("server config is not %, it's % instead" % (variables['fusinv_server'], val_server) ) |
|
|
|
|
if val_server != variables['fusinv_servers'] : |
|
|
|
|
print("server config is not %, it's % instead" % (variables['fusinv_servers'], val_server) ) |
|
|
|
|
return "WARNING" |
|
|
|
|
if 'fusinv_user' in variables and 'fusinv_pass' in variables: |
|
|
|
|
if not registry_readstring(HKEY_LOCAL_MACHINE,makepath('SOFTWARE','FusionInventory-Agent'),'user'): |
|
|
|
|