mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-30 14:08:46 +02:00
Audit rules loaded as part of the structure of the application
SVN:code[118]
This commit is contained in:
8
trunk/setup/data/structure/21.auditcategories.xml
Normal file
8
trunk/setup/data/structure/21.auditcategories.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Set>
|
||||
<AuditCategory id="1">
|
||||
<name>Devices in production</name>
|
||||
<description>Checking all devices in production</description>
|
||||
<definition_set>bizDevice: status = 'production'</definition_set>
|
||||
</AuditCategory>
|
||||
</Set>
|
||||
17
trunk/setup/data/structure/22.auditrules.xml
Normal file
17
trunk/setup/data/structure/22.auditrules.xml
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Set>
|
||||
<AuditRule id="1">
|
||||
<name>Devices in production on a Location not in production</name>
|
||||
<description></description>
|
||||
<query>bizDevice: location_id IN (bizLocation: status != 'production')</query>
|
||||
<valid_flag>false</valid_flag>
|
||||
<category_id>1</category_id>
|
||||
</AuditRule>
|
||||
<AuditRule id="2">
|
||||
<name>Devices not attached to a monitoring group</name>
|
||||
<description></description>
|
||||
<query>bizDevice: PKEY IS infra_id IN (lnkInfraGrouping: infra_group_id IN (bizInfraGroup: type = 'Monitoring'))</query>
|
||||
<valid_flag>true</valid_flag>
|
||||
<category_id>1</category_id>
|
||||
</AuditRule>
|
||||
</Set>
|
||||
@@ -13,4 +13,7 @@ wget --output-document=13.profileprojection.xml --post-data="auth_user=%USER%&au
|
||||
wget --output-document=14.actiongrant.xml --post-data="auth_user=%USER%&auth_pwd=%PWD%&operation=login" "%EXPORT%?expression=SELECT URP_ActionGrant&format=xml"
|
||||
wget --output-document=15.attributegrant.xml --post-data="auth_user=%USER%&auth_pwd=%PWD%&operation=login" "%EXPORT%?expression=SELECT URP_AttributeGrant&format=xml"
|
||||
wget --output-document=16.stimulusgrant.xml --post-data="auth_user=%USER%&auth_pwd=%PWD%&operation=login" "%EXPORT%?expression=SELECT URP_StimulusGrant&format=xml"
|
||||
wget --output-document=21.auditcategories.xml --post-data="auth_user=%USER%&auth_pwd=%PWD%&operation=login" "%EXPORT%?expression=SELECT AuditCategory&format=xml"
|
||||
wget --output-document=22.auditrules.xml --post-data="auth_user=%USER%&auth_pwd=%PWD%&operation=login" "%EXPORT%?expression=SELECT AuditRule&format=xml"
|
||||
|
||||
pause
|
||||
Reference in New Issue
Block a user