forked from it-novum/openITCOCKPIT
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Host wizard: Monitor linux server with oITC agent
- Loading branch information
Showing
12 changed files
with
590 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,252 @@ | ||
<?php | ||
// Copyright (C) <2015> <it-novum GmbH> | ||
// | ||
// This file is dual licensed | ||
// | ||
// 1. | ||
// This program is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation, version 3 of the License. | ||
// | ||
// This program is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU General Public License | ||
// along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
// | ||
|
||
// 2. | ||
// If you purchased an openITCOCKPIT Enterprise Edition you can use this file | ||
// under the terms of the openITCOCKPIT Enterprise Edition license agreement. | ||
// License agreement and license key will be shipped with the order | ||
// confirmation. | ||
?> | ||
<ol class="breadcrumb page-breadcrumb"> | ||
<li class="breadcrumb-item"> | ||
<a ui-sref="DashboardsIndex"> | ||
<i class="fa fa-home"></i> <?php echo __('Home'); ?> | ||
</a> | ||
</li> | ||
<li class="breadcrumb-item"> | ||
<a ui-sref="WizardsIndex"> | ||
<i class="fas fa-magic"></i> <?php echo __('Wizards'); ?> | ||
</a> | ||
</li> | ||
<li class="breadcrumb-item"> | ||
<i class="fas fa-magic"></i> <?php echo __('Monitor Linux Server with Agent'); ?> | ||
</li> | ||
</ol> | ||
|
||
<div class="row"> | ||
<div class="col-12"> | ||
<div id="panel-1" class="panel"> | ||
<div class="panel-hdr"> | ||
<h2> | ||
<?php echo __('Configuration Wizard: Linux Server'); ?> | ||
</h2> | ||
</div> | ||
<div class="panel-container show"> | ||
<div class="panel-content fuelux"> | ||
|
||
<form ng-submit="submit();" class="form-horizontal"> | ||
|
||
<div class="wizard"> | ||
<ul class="nav nav-tabs step-anchor"> | ||
<li class="active"> | ||
<span class="badge badge-info">1</span><?php echo __('Linux Server Information'); ?> | ||
<span class="chevron"></span> | ||
</li> | ||
<li> | ||
<span class="badge">2</span><?php echo __('Agent configuration'); ?> | ||
<span class="chevron"></span> | ||
</li> | ||
</ul> | ||
<div class="pull-right margin-right-5" style="margin-top: -39px;"> | ||
<div class="actions" style="position: relative; display: inline;"> | ||
<button type="submit" class="btn btn-sm btn-success"> | ||
<?php echo __('Next'); ?><i class="fa fa-arrow-right"></i> | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
|
||
<div class="step-content"> | ||
<div class="card margin-top-20 margin-bottom-10"> | ||
<div class="card-header"> | ||
<i class="fa fa-magic"></i> <?php echo __('Basic configuration'); ?> | ||
</div> | ||
<div class="card-body"> | ||
<div class="form-group padding-top-10"> | ||
<div class="col-12 no-padding"> | ||
<div class="custom-control custom-checkbox"> | ||
<input type="checkbox" | ||
id="useExistingHost" | ||
name="checkbox" | ||
class="custom-control-input" | ||
ng-false-value="0" | ||
ng-true-value="1" | ||
ng-model="post.useExistingHost"> | ||
<label class="custom-control-label" | ||
for="useExistingHost"> | ||
<?php echo __('Use existing host'); ?></label> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="form-group required" ng-class="{'has-error': errors.hosts}" | ||
ng-show="post.useExistingHost"> | ||
<label class="col col-2 control-label"> | ||
<?php echo __('Hosts'); ?> | ||
</label> | ||
<div class="col col-12"> | ||
<select id="Hosts" | ||
data-placeholder="<?php echo __('Please choose'); ?>" | ||
class="form-control" | ||
chosen="hosts" | ||
callback="loadHosts" | ||
ng-options="host.key as host.value disable when host.disabled for host in hosts" | ||
ng-model="selectedHostIds"> | ||
</select> | ||
<div ng-repeat="error in errors.hosts"> | ||
<div class="help-block text-danger">{{ error }}</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div ng-hide="post.useExistingHost"> | ||
<div class="form-group required" ng-class="{'has-error': errors.container_id}"> | ||
<label class="control-label" for="HostContainer"> | ||
<?php echo __('Container'); ?> | ||
</label> | ||
<select | ||
id="HostContainer" | ||
data-placeholder="<?php echo __('Please choose'); ?>" | ||
class="form-control" | ||
chosen="containers" | ||
ng-options="container.key as container.value for container in containers" | ||
ng-model="post.Host.container_id"> | ||
</select> | ||
<div ng-show="post.Host.container_id < 1" class="warning-glow"> | ||
<?php echo __('Please select a container.'); ?> | ||
</div> | ||
<div ng-repeat="error in errors.container_id"> | ||
<div class="help-block text-danger">{{ error }}</div> | ||
</div> | ||
</div> | ||
|
||
<div class="form-group required" | ||
ng-class="{'has-error': errors.hosttemplate_id}"> | ||
<label class="control-label" for="HostTemplate"> | ||
<?php echo __('Host template'); ?> | ||
</label> | ||
<select | ||
id="HostTemplate" | ||
data-placeholder="<?php echo __('Please choose'); ?>" | ||
class="form-control" | ||
chosen="hosttemplates" | ||
ng-options="hosttemplate.key as hosttemplate.value for hosttemplate in hosttemplates" | ||
ng-model="post.Host.hosttemplate_id"> | ||
</select> | ||
<div ng-show="post.Host.hosttemplate_id < 1" class="warning-glow"> | ||
<?php echo __('Please select a host template.'); ?> | ||
</div> | ||
<div ng-repeat="error in errors.hosttemplate_id"> | ||
<div class="help-block text-danger">{{ error }}</div> | ||
</div> | ||
</div> | ||
|
||
<div class="form-group required" ng-class="{'has-error': errors.name}"> | ||
<label class="control-label"> | ||
<?php echo __('Host name'); ?> | ||
</label> | ||
<input | ||
id="HostName" | ||
class="form-control" | ||
type="text" | ||
ng-model="post.Host.name" | ||
ng-blur="runDnsLookup(true)"> | ||
<div ng-repeat="error in errors.name"> | ||
<div class="help-block text-danger">{{ error }}</div> | ||
</div> | ||
<div class="text-warning" ng-show="data.dnsHostnameNotFound"> | ||
<i class="fa fa-exclamation-triangle"></i> | ||
<?php echo __('Could not resolve hostname.'); ?> | ||
</div> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<div class="custom-control custom-checkbox margin-bottom-10"> | ||
<input type="checkbox" | ||
class="custom-control-input" | ||
id="HostDNSLookup" | ||
ng-model="data.dnsLookUp"> | ||
<label class="custom-control-label" for="HostDNSLookup"> | ||
<?php echo __('DNS Lookup'); ?> | ||
</label> | ||
</div> | ||
</div> | ||
|
||
<div class="form-group required" ng-class="{'has-error': errors.address}"> | ||
<label class="control-label"> | ||
<?php echo __('Host address'); ?> | ||
</label> | ||
<input | ||
id="HostAddress" | ||
class="form-control" | ||
type="text" | ||
placeholder="<?php echo __('IPv4/IPv6 address or FQDN'); ?>" | ||
ng-model="post.Host.address" | ||
ng-blur="runDnsLookup(false)"> | ||
<div ng-repeat="error in errors.address"> | ||
<div class="help-block text-danger">{{ error }}</div> | ||
</div> | ||
<div class="text-warning" ng-show="data.dnsAddressNotFound"> | ||
<i class="fa fa-exclamation-triangle"></i> | ||
<?php echo __('Could not resolve address.'); ?> | ||
</div> | ||
</div> | ||
<div ng-show="post.Host.hosttemplate_id"> | ||
<div class="form-group" ng-class="{'has-error': errors.description}"> | ||
<label class="control-label"> | ||
<?php echo __('Description'); ?> | ||
</label> | ||
<div class="input-group"> | ||
<input | ||
class="form-control" | ||
type="text" | ||
ng-model="post.Host.description"> | ||
|
||
<template-diff ng-show="post.Host.hosttemplate_id" | ||
value="post.Host.description" | ||
template-value="hosttemplate.Hosttemplate.description"></template-diff> | ||
</div> | ||
<div ng-repeat="error in errors.description"> | ||
<div class="help-block text-danger">{{ error }}</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.