mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Added link to smokeping interface + smokeping options to global settings (#11610)
Co-authored-by: Daniel Baeza <d.baeza@tvt-datos.es>
This commit is contained in:
@@ -3,10 +3,10 @@
|
||||
"/css/app.css": "/css/app.css?id=5da3bf931f2f95a17884",
|
||||
"/js/manifest.js": "/js/manifest.js?id=3c768977c2574a34506e",
|
||||
"/js/vendor.js": "/js/vendor.js?id=29212a758157c575d7f8",
|
||||
"/js/lang/de.js": "/js/lang/de.js?id=73ed23dde31af205f171",
|
||||
"/js/lang/en.js": "/js/lang/en.js?id=27824cdf8f5ae90ac13a",
|
||||
"/js/lang/fr.js": "/js/lang/fr.js?id=520702ceb97d269f707b",
|
||||
"/js/lang/ru.js": "/js/lang/ru.js?id=aaab82593592e9368a08",
|
||||
"/js/lang/uk.js": "/js/lang/uk.js?id=58751cdf330e62fa4bee",
|
||||
"/js/lang/zh-TW.js": "/js/lang/zh-TW.js?id=e578b34b9d5e21cf929d"
|
||||
"/js/lang/de.js": "/js/lang/de.js?id=d095b82e431906ea9b0d",
|
||||
"/js/lang/en.js": "/js/lang/en.js?id=e72fe805687ceeb1a4b2",
|
||||
"/js/lang/fr.js": "/js/lang/fr.js?id=8e94b3986dc6fce2f3e5",
|
||||
"/js/lang/ru.js": "/js/lang/ru.js?id=dc6cb9314c4903b00501",
|
||||
"/js/lang/uk.js": "/js/lang/uk.js?id=669c4652f87dfd31ce7a",
|
||||
"/js/lang/zh-TW.js": "/js/lang/zh-TW.js?id=82383ffa183494fa4a14"
|
||||
}
|
||||
|
@@ -4996,6 +4996,34 @@
|
||||
"xirrus_disable_stations": {
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
"smokeping_integration": {
|
||||
"default": false,
|
||||
"group": "external",
|
||||
"section": "smokeping",
|
||||
"order": 0,
|
||||
"type": "boolean"
|
||||
},
|
||||
"smokeping_dir": {
|
||||
"default": "/var/lib/smokeping/rrd",
|
||||
"group": "external",
|
||||
"section": "smokeping",
|
||||
"order": 1,
|
||||
"type": "text"
|
||||
},
|
||||
"smokeping_pings": {
|
||||
"default": 5,
|
||||
"group": "external",
|
||||
"section": "smokeping",
|
||||
"order": 2,
|
||||
"type": "integer",
|
||||
"units": "pings"
|
||||
},
|
||||
"smokeping_url": {
|
||||
"group": "external",
|
||||
"section": "smokeping",
|
||||
"order": 3,
|
||||
"type": "text"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -43,6 +43,7 @@ return [
|
||||
'peeringdb' => 'PeeringDB Integration',
|
||||
'nfsen' => 'NfSen Integration',
|
||||
'unix-agent' => 'Unix-Agent Integration',
|
||||
'smokeping' => 'Smokeping Integration'
|
||||
],
|
||||
'poller' => [
|
||||
'distributed' => 'Distributed Poller',
|
||||
@@ -1271,7 +1272,24 @@ return [
|
||||
],
|
||||
'whois' => [
|
||||
'description' => 'Path to whois'
|
||||
],
|
||||
'smokeping_integration' => [
|
||||
'description' => 'Enable',
|
||||
'help' => 'Enable smokeping integration'
|
||||
],
|
||||
'smokeping_dir' => [
|
||||
'description' => 'Path to rrds',
|
||||
'help' => 'Full path to Smokeping RRDs'
|
||||
],
|
||||
'smokeping_pings' => [
|
||||
'description' => 'Pings',
|
||||
'help' => 'Number of pings configured in Smokeping'
|
||||
],
|
||||
'smokeping_url' => [
|
||||
'description' => 'URL to smokeping',
|
||||
'help' => 'Full URL to the smokeping gui'
|
||||
]
|
||||
|
||||
],
|
||||
'twofactor' => [
|
||||
'description' => 'Enable Two-Factor Auth',
|
||||
|
@@ -4,7 +4,7 @@
|
||||
@if($data['smokeping']->hasGraphs())
|
||||
<div class="panel with-nav-tabs panel-default">
|
||||
<div class="panel-heading">
|
||||
<span class="panel-title">@lang('Smokeping')</span>
|
||||
<a href="{{ \LibreNMS\Config::get('smokeping.url') }}?target={{ $device->type }}.{{ str_replace('.','_',$device->hostname) }}" target="_blank"><span class="panel-title">@lang('Smokeping') <i class="glyphicon glyphicon-share-alt"></i></span></a>
|
||||
<ul class="nav nav-tabs" style="display: inline-block">
|
||||
@foreach($data['smokeping_tabs'] as $tab)
|
||||
<li @if($loop->first) class="active" @endif><a href="#{{ $tab }}" data-toggle="tab">@lang('smokeping.' . $tab)</a></li>
|
||||
@@ -219,4 +219,4 @@
|
||||
margin-bottom: -1px;
|
||||
}
|
||||
</style>
|
||||
@endpush
|
||||
@endpush
|
||||
|
Reference in New Issue
Block a user