2016-07-25 15:07:11 +00:00
|
|
|
<md-content ng-controller="updateRulesetController" layout="column">
|
2016-08-22 17:12:24 +00:00
|
|
|
|
2016-07-25 15:07:11 +00:00
|
|
|
<md-content class="md-padding">
|
2016-08-22 17:12:24 +00:00
|
|
|
<md-nav-bar md-selected-nav-item="menuNavItem" nav-bar-aria-label="navigation menu">
|
|
|
|
<md-nav-item id="header_logo" md-nav-href="#/" name="wazuh" aria-label="img logo">
|
|
|
|
<img aria-label="Logo image" src="/plugins/wazuh/icon.png" height="44" weight="252"></img>
|
|
|
|
</md-nav-item>
|
|
|
|
<md-nav-item md-nav-href="#/dashboards" name="dashboards">Dashboards</md-nav-item>
|
|
|
|
<md-nav-item md-nav-href="#/agents" name="agents">Agents</md-nav-item>
|
|
|
|
<md-nav-item md-nav-href="#/manager" name="manager">Manager</md-nav-item>
|
|
|
|
<md-nav-item md-nav-href="#/ruleset" name="ruleset">Ruleset</md-nav-item>
|
|
|
|
<md-nav-item md-nav-href="#/settings" name="settings">Settings</md-nav-item>
|
|
|
|
</md-nav-bar>
|
|
|
|
</md-content>
|
2016-07-24 04:10:53 +00:00
|
|
|
|
2016-07-25 15:07:11 +00:00
|
|
|
<md-content class="md-padding">
|
|
|
|
<md-nav-bar md-selected-nav-item="submenuNavItem" nav-bar-aria-label="navigation submenu">
|
|
|
|
<md-nav-item md-nav-href="#/ruleset" name="rules">Rules</md-nav-item>
|
|
|
|
<md-nav-item md-nav-href="#/ruleset/decoders" name="decoders">Decoders</md-nav-item>
|
|
|
|
<md-nav-item md-nav-href="#/ruleset/update" name="update">Update</md-nav-item>
|
|
|
|
</md-nav-bar>
|
|
|
|
</md-content>
|
2016-07-24 04:10:53 +00:00
|
|
|
|
2016-07-25 15:07:11 +00:00
|
|
|
<md-progress-linear md-mode="indeterminate" ng-show="load"></md-progress-linear>
|
2016-07-24 04:10:53 +00:00
|
|
|
|
2016-07-26 12:27:32 +00:00
|
|
|
<md-content layout="row" ng-if="!load" layout-align="space-around start" layout-sm="column" layout-xs="column">
|
|
|
|
|
|
|
|
<md-content layout="column" layout-align="space-around center">
|
|
|
|
<h2>Update</h2>
|
|
|
|
<md-input-container layout="column" layout-align="space-around center">
|
|
|
|
<p>1. Select what you want to update:</p>
|
|
|
|
<md-select ng-model="$parent.updateType">
|
|
|
|
<md-option value="r">Rules</md-option>
|
|
|
|
<md-option value="c">Rootcheck</md-option>
|
|
|
|
<md-option value="b">Both</md-option>
|
|
|
|
</md-select>
|
|
|
|
</md-input-container>
|
|
|
|
<md-input-container layout="column" layout-align="space-around center">
|
|
|
|
<p>2. Do you want to force it?</p>
|
|
|
|
<md-switch ng-model="$parent.updateForce" aria-label="Force update?">
|
|
|
|
<span ng-show="$parent.updateForce">Overwrite all the rules (OSSEC manager is going to be restarted)</span>
|
|
|
|
<span ng-show="!$parent.updateForce">Update the outdated rules (Manager will be restarted only if enabled rules are updated)</span>
|
|
|
|
</md-switch>
|
|
|
|
</md-input-container>
|
2016-07-24 04:10:53 +00:00
|
|
|
|
2016-07-26 12:27:32 +00:00
|
|
|
<md-button type="submit" ng-click="updateRuleset();" class="md-primary md-raised">Update ruleset</md-button>
|
|
|
|
</md-content>
|
2016-07-25 15:07:11 +00:00
|
|
|
|
|
|
|
<md-divider></md-divider>
|
|
|
|
|
2016-07-26 12:27:32 +00:00
|
|
|
<md-content layout="column" layout-align="space-around center">
|
|
|
|
<h2>Backups</h2>
|
|
|
|
<md-select ng-model="$parent.selectedBackup" md-on-open="load_backups()" style="min-width: 150px;">
|
|
|
|
<md-option value="{{backup}}" ng-repeat="backup in backups">{{backup}}</md-option>
|
2016-07-25 15:07:11 +00:00
|
|
|
</md-select>
|
|
|
|
<md-button type="submit" class="md-primary md-raised" ng-click="restoreBackup();">Restore backup</md-button>
|
|
|
|
<p style="font-weight: lighter;">* When ruleset is updated, a new backup (the first in the list) will be created.</p>
|
2016-07-26 12:27:32 +00:00
|
|
|
</md-content>
|
|
|
|
|
2016-07-25 15:07:11 +00:00
|
|
|
</md-content>
|
|
|
|
</md-content>
|