2016-09-02 10:10:10 +00:00
|
|
|
<div flex ng-controller="generalController" layout="column">
|
|
|
|
|
2016-09-20 18:07:07 +00:00
|
|
|
<md-content 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-09-20 19:09:50 +00:00
|
|
|
<md-nav-item md-nav-href="#/discover" name="discover">Discover</md-nav-item>
|
2016-09-20 10:56:07 +00:00
|
|
|
<md-nav-item md-nav-href="#/dashboards" name="dashboards">Dashboards</md-nav-item>
|
2016-09-02 10:10:10 +00:00
|
|
|
<md-nav-item md-nav-href="#/settings" name="settings">Settings</md-nav-item>
|
2016-09-13 13:07:17 +00:00
|
|
|
</md-nav-bar>
|
2016-09-16 18:44:04 +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>
|
|
|
|
|
|
|
|
<div flex layout="row" ng-if="!load">
|
2016-09-22 12:22:02 +00:00
|
|
|
<md-content flex id="content">
|
2016-09-02 10:10:10 +00:00
|
|
|
<md-toolbar style="height: 50px;">
|
|
|
|
<div class="md-toolbar-tools" layout="row" layout-align="space-between center">
|
|
|
|
<h2 ng-show="$parent._agent">{{_agent.id}} - {{_agent.name}} <span ng-show="_agent.id == '000'">(Manager)</span></h2>
|
2016-09-20 18:07:07 +00:00
|
|
|
<h2 ng-show="!_agent">Choose or search an agent</h2>
|
2016-09-02 10:10:10 +00:00
|
|
|
<span layout="row" style="padding-left: 0px;" layout-align="space-between start" flex="40">
|
2016-09-16 07:03:08 +00:00
|
|
|
<md-autocomplete 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"
|
2016-09-02 10:10:10 +00:00
|
|
|
placeholder="Search agent hostname, 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>
|
|
|
|
</div>
|
|
|
|
</md-toolbar>
|
2016-09-17 19:33:38 +00:00
|
|
|
<md-content layout="row" layout-align="center start" ng-show="_agent" layout-padding">
|
2016-09-12 10:20:39 +00:00
|
|
|
<md-nav-bar flex="60" style="padding-right: 0px;" md-selected-nav-item="submenuNavItem" nav-bar-aria-label="navigation submenu">
|
2016-09-02 10:10:10 +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>
|
2016-09-21 07:23:17 +00:00
|
|
|
<md-content flex="40" style="margin-top: -6px" class="subNavLine secondLevelNavLine" layout="row" layout-align="end start">
|
2016-09-22 15:24:30 +00:00
|
|
|
|
|
|
|
<md-button style="margin-top: 11px !important;margin-bottom: 0px !important;" ng-show="!show_timer" ng-click="show_timer = !show_timer" class="md-primary" md-colors="::{background: 'primary-100', color: 'background-900'}" target="_blank">
|
|
|
|
<i class="fa fa-clock-o" aria-hidden="true"></i> {{ (!timeFilter) ? '7d' : timeFilter}}
|
|
|
|
</md-button>
|
|
|
|
<md-content ng-show="show_timer" layout="row" layout-align="end start" ng-init="timeFilter = (timeFilter ? timeFilter : '7d')">
|
|
|
|
<md-button style="margin-top: 11px !important;margin-bottom: 0px !important;" ng-click="show_timer = !show_timer; timeFilter='24h';" class="md-primary" md-colors="::{background: 'primary-100', color: 'background-900'}" target="_blank">
|
|
|
|
<i class="fa fa-clock-o" aria-hidden="true"></i> Last 24 hours
|
|
|
|
</md-button>
|
|
|
|
<md-button style="margin-top: 11px !important;margin-bottom: 0px !important;" ng-click="show_timer = !show_timer;timeFilter='7d';" class="md-primary" md-colors="::{background: 'primary-100', color: 'background-900'}" target="_blank">
|
|
|
|
<i class="fa fa-clock-o" aria-hidden="true"></i> Last week
|
|
|
|
</md-button>
|
|
|
|
<md-button style="margin-top: 11px !important;margin-bottom: 0px !important;" ng-click="show_timer = !show_timer;timeFilter='30d';" class="md-primary" md-colors="::{background: 'primary-100', color: 'background-900'}" target="_blank">
|
|
|
|
<i class="fa fa-clock-o" aria-hidden="true"></i> Last month
|
|
|
|
</md-button>
|
|
|
|
</md-content>
|
|
|
|
|
2016-09-22 12:22:02 +00:00
|
|
|
<md-button ng-if="_agent && submenuNavItem == 'overview'" class="md-primary" md-colors="::{background: 'primary-100', color: 'background-900'}" style="margin-top: 11px !important;margin-bottom: 0px !important;" ng-click="openDiscover('generic','AgentName:'+_agent.name)"><i class="fa fa-external-link" aria-hidden="true"></i> Alerts</md-button>
|
|
|
|
<md-button style="margin-top: 11px !important;margin-bottom: 0px !important;" ng-if="_agent && submenuNavItem == 'fim'" class="md-primary" md-colors="::{background: 'primary-100', color: 'background-900'}" ng-click="openDiscover('fim','AgentName:'+_agent.name)"><i class="fa fa-external-link" aria-hidden="true"></i> Alerts</md-button>
|
|
|
|
<md-button style="margin-top: 11px !important;margin-bottom: 0px !important;" class="md-primary" md-colors="::{background: 'primary-100', color: 'background-900'}" ng-if="submenuNavItem == 'overview'" ng-click="openDashboard('ossecalerts', 'AgentName:'+_agent.name)">
|
2016-09-20 18:07:07 +00:00
|
|
|
<i class="fa fa-external-link" aria-hidden="true"></i> Dashboard
|
2016-09-20 13:17:57 +00:00
|
|
|
</md-button>
|
2016-09-22 12:22:02 +00:00
|
|
|
<md-button style="margin-top: 11px !important;margin-bottom: 0px !important;" class="md-primary" md-colors="::{background: 'primary-100', color: 'background-900'}" ng-if="submenuNavItem == 'fim'" ng-click="openDashboard('fim', 'AgentName:'+_agent.name)">
|
2016-09-20 18:07:07 +00:00
|
|
|
<i class="fa fa-external-link" aria-hidden="true"></i> Dashboard
|
2016-09-20 13:17:57 +00:00
|
|
|
</md-button>
|
2016-09-22 12:22:02 +00:00
|
|
|
<div style="margin-right: 23px; margin-top: 11px !important;margin-bottom: 0px !important;" ng-if="_agent" class="statusBox" md-colors="::{background: 'primary-100'}" ng-class="_agent.status == 'active' ? null : (_agent.status == 'neverConnected' ? 'extraLarge' : 'large')"
|
2016-09-12 10:20:39 +00:00
|
|
|
layout="row" layout-align="space-between center"><span>{{formatAgentStatus(_agent.status)}}</span><span ng-class="getAgentStatusClass(_agent.status)" class="round status"></span></div>
|
2016-09-02 10:10:10 +00:00
|
|
|
</md-content>
|
2016-08-22 17:12:24 +00:00
|
|
|
</md-content>
|