2016-09-02 10:10:10 +00:00
|
|
|
<div flex ng-controller="generalController" layout="column">
|
2016-12-27 15:37:52 +00:00
|
|
|
<md-content class="wazuhMenuNavBar" ng-init="menuNavItem = 'agents'" style="height: 70px;">
|
2016-09-13 13:07:17 +00:00
|
|
|
<md-nav-bar class="wazuhMenuNav" md-selected-nav-item="menuNavItem" nav-bar-aria-label="navigation menu">
|
|
|
|
<md-nav-item id="header_logo" md-nav-href="#/" name="logo" aria-hidden="true">
|
|
|
|
<img aria-hidden="true" src="/plugins/wazuh/img/logo_white.png" height="44" weight="252"></img>
|
|
|
|
</md-nav-item>
|
2016-09-16 18:44:04 +00:00
|
|
|
<md-nav-item md-nav-href="#/overview" name="overview">Overview</md-nav-item>
|
2016-09-02 10:10:10 +00:00
|
|
|
<md-nav-item md-nav-href="#/manager" name="manager">Manager</md-nav-item>
|
2016-09-20 10:56:07 +00:00
|
|
|
<md-nav-item md-nav-href="#/agents" name="agents" >Agents</md-nav-item>
|
2016-10-04 15:44:34 +00:00
|
|
|
<md-nav-item md-nav-href="#/discover" name="discover" ng-click="resetDiscover();">Discover</md-nav-item>
|
|
|
|
<md-nav-item md-nav-href="#/dashboards" name="dashboards" ng-click="resetDashboards();">Dashboards</md-nav-item>
|
2017-01-03 11:22:17 +00:00
|
|
|
<md-nav-item class="wazuhMenuNavBar_gear" md-nav-href="#/settings" name="settings"><i class="fa fa-cog ng-scope" aria-hidden="true" ></i></md-nav-item>
|
2016-09-13 13:07:17 +00:00
|
|
|
</md-nav-bar>
|
2016-11-16 14:54:52 +00:00
|
|
|
</md-content>
|
2016-09-02 10:10:10 +00:00
|
|
|
|
|
|
|
<md-progress-linear class="md-accent" md-mode="indeterminate" ng-show="load"></md-progress-linear>
|
|
|
|
|
2016-12-29 15:19:37 +00:00
|
|
|
<div flex layout="row" ng-if="!load" style="height: 100%;">
|
|
|
|
<md-content flex id="content" style="height: 100%;">
|
2016-12-12 19:26:10 +00:00
|
|
|
<md-content layout="row" layout-align="space-between start" style="background-color: #f7f7f7">
|
|
|
|
<md-toolbar style="height: 50px;">
|
|
|
|
<div class="md-toolbar-tools" layout="row" layout-align="space-between center">
|
|
|
|
<div style="text-transform: none; font-size: 20px;" ng-show="$parent._agent">
|
|
|
|
|
|
|
|
<div style="float: left;margin-top: 3px;margin-right: 11px;">
|
|
|
|
<span> <i style="margin-right: 5px; " class="fa fa-desktop" aria-hidden="true"></i>
|
|
|
|
{{_agent.id}} - {{_agent.name}}</span><span ng-show="_agent.id == '000'">(Manager)</span>
|
|
|
|
</div>
|
2016-12-09 19:39:43 +00:00
|
|
|
|
2016-12-12 19:26:10 +00:00
|
|
|
<div style="float: left;margin-right: 11px;">
|
|
|
|
<span ng-class="getAgentStatusClass(_agent.status)" style="width: 100%;padding: 4px;color: white;font-weight: normal;font-size: 12px;text-transform: uppercase;">{{formatAgentStatus(_agent.status)}}</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div ng-click="restartAgent()" style="float: left;" ng-show="_agent.status == 'Active' && _agent.id != '000' ">
|
|
|
|
<span style="width: 100%;background-color: #3caed2;padding: 4px;color: white;font-weight: normal;font-size: 12px;text-transform: uppercase;">Restart</span>
|
|
|
|
</div>
|
|
|
|
|
2016-12-09 19:39:43 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2016-12-12 19:26:10 +00:00
|
|
|
<h2 style="text-transform: none; font-size: 20px;" ng-show="!_agent"><i style="margin-right: 5px; " class="fa fa-desktop" aria-hidden="true"></i> Agents overview</h2>
|
|
|
|
<span layout="row" style="padding-left: 0px;" layout-align="space-between start" flex="40">
|
|
|
|
<md-autocomplete id="agentsAutocomplete" flex md-no-cache="true" md-select-on-match="true" md-selected-item="_swpagent" md-selected-item-change="applyAgent(_swpagent)" md-search-text="search"
|
|
|
|
md-items="item in agentsSearch(search)" md-item-text="item.name" md-min-length="0" md-no-asterisk="false" md-menu-class="autocomplete-custom-agents-bar"
|
|
|
|
placeholder="Search by name, ID or IP address">
|
|
|
|
<md-item-template>
|
|
|
|
<span class="item-title">
|
|
|
|
<span><strong md-highlight-text="search" md-highlight-flags="i"> {{item.name}} ({{item.id}}) </strong></span>
|
|
|
|
</span>
|
|
|
|
<span class="item-metadata">
|
|
|
|
<span class="item-metastat" md-highlight-text="search" md-highlight-flags="i"> {{item.ip}} ({{item.status}}) </span>
|
|
|
|
</span>
|
|
|
|
</md-item-template>
|
|
|
|
<md-not-found>
|
|
|
|
No agents matching "{{search}}" were found.
|
|
|
|
</md-not-found>
|
|
|
|
</md-autocomplete>
|
|
|
|
</span>
|
2016-12-09 19:39:43 +00:00
|
|
|
</div>
|
2016-12-12 19:26:10 +00:00
|
|
|
</md-toolbar>
|
|
|
|
</md-content>
|
2016-12-09 19:39:43 +00:00
|
|
|
|
|
|
|
<md-content layout="row" layout-align="space-between start" style="background-color: #f7f7f7">
|
2016-12-12 19:26:10 +00:00
|
|
|
|
|
|
|
<md-content flex="50" ng-show="_agent" class="headBar" layout="column" layout-align="center start" ng-init="tabView = 'panels';">
|
|
|
|
<md-nav-bar style="padding-right: 0px;" md-selected-nav-item="submenuNavItem" nav-bar-aria-label="navigation submenu">
|
2016-12-09 19:39:43 +00:00
|
|
|
<md-nav-item md-nav-click="submenuNavItem = 'overview'" name="overview">Overview</md-nav-item>
|
|
|
|
<md-nav-item md-nav-click="submenuNavItem = 'fim'" name="fim">File Integrity</md-nav-item>
|
|
|
|
<md-nav-item md-nav-click="submenuNavItem = 'policy_monitoring'" name="policy_monitoring">Policy Monitoring</md-nav-item>
|
|
|
|
</md-nav-bar>
|
|
|
|
</md-content>
|
|
|
|
|
2016-12-12 19:26:10 +00:00
|
|
|
<md-content ng-show="_agent" class="headBar tabView" flex="50" layout="column" layout-align="end end">
|
|
|
|
<md-nav-bar layout-align="end end" style="padding-right: 0px;" md-selected-nav-item="tabView" nav-bar-aria-label="navigation submenu">
|
2016-12-22 19:54:57 +00:00
|
|
|
<md-nav-item md-nav-click="tabView = 'panels'" name="panels">
|
|
|
|
<i class="fa fa-th" aria-hidden="true" style="font-size: 13px;margin-right: 6px;"></i>Panels
|
|
|
|
</md-nav-item>
|
|
|
|
<md-nav-item md-nav-click="tabView = 'discover'" name="discover">
|
|
|
|
<img style="width: 16px; margin-right: 6px;" src="/plugins/wazuh/img/discover.svg">Discover
|
|
|
|
</md-nav-item>
|
|
|
|
<md-nav-item md-nav-click="tabView = 'dashboard'" name="dashboard">
|
|
|
|
<img style="width: 16px; margin-right: 6px;" src="/plugins/wazuh/img/dashboard.svg">Dashboards
|
|
|
|
</md-nav-item>
|
2016-12-09 19:39:43 +00:00
|
|
|
</md-nav-bar>
|
|
|
|
</md-content>
|
2016-12-12 19:26:10 +00:00
|
|
|
|
|
|
|
</md-content>
|