Files
librenms-librenms/resources/views/about/index.blade.php
Jellyfrog 670f964e98 Validate: use "database version" instead of "mysql version" (#14158)
* Validate: use "database version" instead of "mysql version"

* wip

* wip
2022-07-29 11:36:18 -05:00

239 lines
11 KiB
PHP

@extends('layouts.librenmsv1')
@section('title', __('About'))
@section('content')
<div class="modal fade" id="git_log" tabindex="-1" role="dialog" aria-labelledby="git_log_label" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title" id="myModalLabel">{{ __('Local git log') }}</h4>
</div>
<div class="modal-body">
<pre>{!! $git_log !!}</pre>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">@Lang('Close')</button>
</div>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-md-6">
<h3>{{ __('LibreNMS is an autodiscovering PHP/MySQL-based network monitoring system') }}</h3>
<table class='table table-condensed table-hover'>
<tr>
<td><b>{{ __('Version') }}</b></td>
<td><a target="_blank" href='https://www.librenms.org/changelog.html'>{{ $version_local }}<span id='version_date' style="display: none;">{{ $git_date }}</span></a></td>
</tr>
<tr>
<td><b>{{ __('Database Schema') }}</b></td>
<td>{{ $db_schema }}</td>
</tr>
<tr>
<td><b>{{ __('Web Server') }}</b></td>
<td>{{ $version_webserver }}</td>
</tr>
<tr>
<td><b>{{ __('PHP') }}</b></td>
<td>{{ $version_php }}</td>
</tr>
<tr>
<td><b>{{ __('Python') }}</b></td>
<td>{{ $version_python }}</td>
</tr>
<tr>
<td><b>{{ __('Database') }}</b></td>
<td>{{ $version_database }}</td>
</tr>
<tr>
<td><a href="https://laravel.com/"><b>{{ __('Laravel') }}</b></a></td>
<td>{{ $version_laravel }}</td>
</tr>
<tr>
<td><a href="https://oss.oetiker.ch/rrdtool/"><b>{{ __('RRDtool') }}</b></a></td>
<td>{{ $version_rrdtool }}</td>
</tr>
</table>
<h3>{{ __('LibreNMS is a community-based project') }}</h3>
<p>
{{ __('Please feel free to join us and contribute code, documentation, and bug reports:') }}
<br />
<a target="_blank" href="https://www.librenms.org/">{{ __('Web site') }}</a> |
<a target="_blank" href="https://docs.librenms.org/">{{ __('Docs') }}</a> |
<a target="_blank" href="https://github.com/librenms/">{{ __('GitHub') }}</a> |
<a target="_blank" href="https://community.librenms.org/c/help">{{ __('Bug tracker') }}</a> |
<a target="_blank" href="https://www.librenms.org/shop">{{ __('Merch Shop') }}</a> |
<a target="_blank" href="https://community.librenms.org">{{ __('Community Forum') }}</a> |
<a target="_blank" href="https://twitter.com/librenms">{{ __('Twitter') }}</a> |
<a target="_blank" href="https://www.librenms.org/changelog.html">{{ __('Changelog') }}</a> |
<a href="#" data-toggle="modal" data-target="#git_log">{{ __('Local git log') }}</a>
</p>
<h3>{{ __('Contributors') }}</h3>
<p>{!! __('See the <a href=":url">list of contributors</a> on GitHub.', ['url' => 'https://github.com/librenms/librenms/graphs/contributors']) !!}</p>
<h3>{{ __('Acknowledgements') }}</h3>
<b>Bruno Pramont</b> Collectd code.<br />
<b>Dennis de Houx</b> Application monitors for PowerDNS, Shoutcast, NTPD (Client, Server).<br />
<b>Erik Bosrup</b> Overlib Library.<br />
<b>Jonathan De Graeve</b> SNMP code improvements.<br />
<b>Observium</b> Codebase for fork.<br />
</div>
<div class="col-md-6">
<h3>{{ __('Statistics') }}</h3>
<table class='table table-condensed'>
@admin
<tr>
<td colspan='4'>
<span class='bg-danger'>
<label for="callback">{{ __('Opt in to send anonymous usage statistics to LibreNMS?') }}</label><br />
</span>
<input type="checkbox" id="callback" data-size="normal" name="statistics" @if($callback_status) checked @endif>
<br />
{{ __('Online stats:') }} <a target="_blank" href='https://stats.librenms.org/'>stats.librenms.org</a>
</td>
</tr>
@isset($callback_uuid)
<tr>
<td colspan='4'>
<button class='btn btn-danger btn-xs' type='submit' name='clear-stats' id='clear-stats'>{{ __('Clear remote stats') }}</button>
</td>
</tr>
@endisset
@endadmin
<tr>
<td><i class='fa fa-fw fa-server fa-lg icon-theme' aria-hidden='true'></i> <b>{{ __('Devices') }}</b></td>
<td class='text-right'>{{ $stat_devices }}</td>
<td><i class='fa fa-fw fa-link fa-lg icon-theme' aria-hidden='true'></i> <b>{{ __('Ports') }}</b></td>
<td class='text-right'>{{ $stat_ports }}</td>
</tr>
<tr>
<td><i class='fa fa-fw fa-battery-empty fa-lg icon-theme' aria-hidden='true'></i> <b>{{ __('IPv4 Addresses') }}</b></td>
<td class='text-right'>{{ $stat_ipv4_addy }}</td>
<td><i class='fa fa-fw fa-battery-empty fa-lg icon-theme' aria-hidden='true'></i> <b>{{ __('IPv4 Networks') }}</b></td>
<td class='text-right'>{{ $stat_ipv4_nets }}</td>
</tr>
<tr>
<td><i class='fa fa-fw fa-battery-full fa-lg icon-theme' aria-hidden='true'></i> <b>{{ __('IPv6 Addresses') }}</b></td>
<td class='text-right'>{{ $stat_ipv6_addy }}</td>
<td><i class='fa fa-fw fa-battery-full fa-lg icon-theme' aria-hidden='true'></i> <b>{{ __('IPv6 Networks') }}</b></td>
<td class='text-right'>{{ $stat_ipv6_nets }}</td>
</tr>
<tr>
<td><i class='fa fa-fw fa-cogs fa-lg icon-theme' aria-hidden='true'></i> <b>{{ __('Services') }}</b></td>
<td class='text-right'>{{ $stat_services }}</td>
<td><i class='fa fa-fw fa-cubes fa-lg icon-theme' aria-hidden='true'></i> <b>{{ __('Applications') }}</b></td>
<td class='text-right'>{{ $stat_apps }}</td>
</tr>
<tr>
<td><i class='fa fa-fw fa-microchip fa-lg icon-theme' aria-hidden='true'></i> <b>{{ __('Processors') }}</b></td>
<td class='text-right'>{{ $stat_processors }}</td>
<td><i class='fa-fw fas fa-memory fa-lg icon-theme' aria-hidden='true'></i> <b>{{ __('Memory') }}</b></td>
<td class='text-right'>{{ $stat_memory }}</td>
</tr>
<tr>
<td><i class='fa fa-fw fa-database fa-lg icon-theme' aria-hidden='true'></i> <b>{{ __('Storage') }}</b></td>
<td class='text-right'>{{ $stat_storage }}</td>
<td><i class='fa fa-fw fa-hdd-o fa-lg icon-theme' aria-hidden='true'></i> <b>{{ __('Disk I/O') }}</b></td>
<td class='text-right'>{{ $stat_diskio }}</td>
</tr>
<tr>
<td><i class='fa fa-fw fa-cube fa-lg icon-theme' aria-hidden='true'></i> <b>{{ __('HR-MIB') }}</b></td>
<td class='text-right'>{{ $stat_hrdev }}</td>
<td><i class='fa fa-fw fa-cube fa-lg icon-theme' aria-hidden='true'></i> <b>{{ __('Entity-MIB') }}</b></td>
<td class='text-right'>{{ $stat_entphys }}</td>
</tr>
<tr>
<td><i class='fa fa-fw fa-clone fa-lg icon-theme' aria-hidden='true'></i> <b>{{ __('Syslog Entries') }}</b></td>
<td class='text-right'>{{ $stat_syslog }}</td>
<td><i class='fa fa-fw fa-bookmark fa-lg icon-theme' aria-hidden='true'></i> <b>{{ __('Eventlog Entries') }}</b></td>
<td class='text-right'>{{ $stat_events }}</td>
</tr>
<tr>
<td><i class='fa fa-fw fa-dashboard fa-lg icon-theme' aria-hidden='true'></i> <b>{{ __('sensors.title') }}</b></td>
<td class='text-right'>{{ $stat_sensors }}</td>
<td><i class='fa fa-fw fa-wifi fa-lg icon-theme' aria-hidden='true'></i> <b>{{ __('Wireless Sensors') }}</b></td>
<td class='text-right'>{{ $stat_wireless }}</td>
</tr>
<tr>
<td><i class='fa fa-fw fa-print fa-lg icon-theme' aria-hidden='true'></i> <b>{{ __('Toner') }}</b></td>
<td class='text-right'>{{ $stat_toner }}</td>
<td></td>
<td></td>
</tr>
</table>
<h3>{{ __('License') }}</h3>
<pre>
Copyright (C) 2013-{{ date('Y') }} {{ $project_name }} Contributors
Copyright (C) 2006-2012 Adam Armstrong
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, either version 3 of the License, or
(at your option) any later version.
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 <a target="_blank" href="https://www.gnu.org/licenses/">https://www.gnu.org/licenses/</a>.</pre>
</div>
</div>
</div>
@endsection
@section('scripts')
<script>
$("[name='statistics']").bootstrapSwitch('offColor','danger','size','mini');
$('input[name="statistics"]').on('switchChange.bootstrapSwitch', function(event, state) {
event.preventDefault();
$.ajax({
type: 'POST',
url: 'ajax_form.php',
data: { type: "callback-statistics", state: state},
dataType: "json",
success: function(data){},
error:function(){
return $("#switch-state").bootstrapSwitch("toggle");
}
});
});
$('#clear-stats').on("click", function(event) {
event.preventDefault();
$.ajax({
type: 'POST',
url: 'ajax_form.php',
data: { type: "callback-clear"},
dataType: "json",
success: function(data){
location.reload(true);
},
error:function(){}
});
});
var ver_date = $('#version_date');
if (ver_date.text()) {
ver_date.text(' - '.concat(moment.unix(ver_date.text()))).show();
}
</script>
@endsection