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