wazuh-kibana-app/public/templates/agents.head

82 lines
7.3 KiB
Plaintext
Raw Normal View History

<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>
<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>
<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>
<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">
<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>
<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"
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-28 07:41:30 +00:00
<md-nav-bar flex="40" style="padding-right: 0px;" md-selected-nav-item="submenuNavItem" nav-bar-aria-label="navigation submenu">
<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-28 07:41:30 +00:00
<md-content flex="60" 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-23 08:03:25 +00:00
<md-button ng-if="_agent && submenuNavItem == 'overview' && !show_timer" 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' && !show_timer" 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;" ng-if="_agent && submenuNavItem == 'policy_monitoring' && !show_timer" class="md-primary" md-colors="::{background: 'primary-100', color: 'background-900'}" ng-click="openDiscover('rootcheck','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' && !show_timer" ng-click="openDashboard('OSSEC-Alerts', 'AgentName:'+_agent.name)">
2016-09-20 18:07:07 +00:00
<i class="fa fa-external-link" aria-hidden="true"></i> Dashboard
</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 == 'fim' && !show_timer" ng-click="openDashboard('File-Integrity-Monitoring', 'AgentName:'+_agent.name)">
2016-09-23 08:03:25 +00:00
<i class="fa fa-external-link" aria-hidden="true"></i> Dashboard
</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 == 'policy_monitoring' && !show_timer" ng-click="openDashboard('Policy-Monitoring', 'AgentName:'+_agent.name)">
2016-09-20 18:07:07 +00:00
<i class="fa fa-external-link" aria-hidden="true"></i> Dashboard
</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-28 12:34:39 +00:00
layout="row" layout-align="space-between center"><span style="padding-right: 5px;">{{formatAgentStatus(_agent.status)}}</span><span ng-class="getAgentStatusClass(_agent.status)" class="round status"></span></div>
</md-content>
</md-content>