mirror of
https://github.com/librenms/librenms.git
synced 2024-09-21 10:28:13 +00:00
device: Add NTP support for Allied Telesis AWPlus products (#8580)
* Add support for Allied Telesis AlliedWare Plus products - Uses mibs from 5.4.7-2.1 for AlliedWare Plus products - Updates Legacy AlliedWare mibs - Added Allied Telesis svg * Remove unnecessary "trim" from snmpget * Add new line to end of file * Minor fixes for commit * awplus: initial ntp commit This isn't completely working, however initial patch of it partially working * awplus: Add NTP support - Fixed polling issues for awplus. Now offset and delay graphs work. - html/includes/graphs/device/ntp_*.inc.php -- Removed extra "\" from MAX count which showed up in Graph legend - html/includes/graphs/device/ntp_delay.inc.php -- Present legend in either seconds, or milliseconds (depending on vendor) - html/includes/graphs/device/ntp_dispersion.inc.php -- Present legend in either seconds, or milliseconds (depending on vendor) - html/includes/graphs/device/ntp_offset.inc.php -- Removed rrd minimum (-l 0). This is because offset can be below 0. --- It's better for the graph to auto scale than set a fixed minimum to display here. - html/includes/graphs/device/ntp_stratum.inc.php -- Changed graph to go from 0 to max of 16. NTP Stratum can only be 0 to 16. * awplus: Add NTP test data * updated awplus ntp poller * device: awplus convert NTP poller into seconds * device: fix NTP graph formatting * device: Improve NTP formatting * device: unset awplus NTP variable * fix formatting * device: awplus change NTP from numerical OIDs to named * device: update awplus ntp json tests * device: fix cisco and awplus ntp database creation * device: update awplus json
This commit is contained in:
parent
b94ad929b8
commit
e898075c36
@ -21,7 +21,8 @@ $components = $components[$device['device_id']];
|
||||
|
||||
include "includes/graphs/common.inc.php";
|
||||
$rrd_options .= " -l 0 -E ";
|
||||
$rrd_options .= " COMMENT:'Delay Now Min Max\\n'";
|
||||
$rrd_options .= " --vertical-label='Seconds'";
|
||||
$rrd_options .= " COMMENT:'Delay (s) Now Min Max\\n'";
|
||||
$rrd_additions = "";
|
||||
|
||||
$count = 0;
|
||||
@ -37,10 +38,10 @@ foreach ($components as $id => $array) {
|
||||
}
|
||||
|
||||
$rrd_additions .= " DEF:DS" . $count . "=" . $rrd_filename . ":delay:AVERAGE ";
|
||||
$rrd_additions .= " LINE1.25:DS" . $count . "#" . $color . ":'" . str_pad(substr($array['peer'].' (s)', 0, 15), 15) . "'" . $stack;
|
||||
$rrd_additions .= " GPRINT:DS" . $count . ":LAST:%7.0lf ";
|
||||
$rrd_additions .= " GPRINT:DS" . $count . ":MIN:%7.0lf ";
|
||||
$rrd_additions .= " GPRINT:DS" . $count . ":MAX:%7.0lf\\\l ";
|
||||
$rrd_additions .= " LINE1.25:DS" . $count . "#" . $color . ":'" . str_pad(substr($array['peer'], 0, 15), 15) . "'" . $stack;
|
||||
$rrd_additions .= " GPRINT:DS" . $count . ":LAST:%7.2lf ";
|
||||
$rrd_additions .= " GPRINT:DS" . $count . ":MIN:%7.2lf ";
|
||||
$rrd_additions .= " GPRINT:DS" . $count . ":MAX:%7.2lf\\l ";
|
||||
$count++;
|
||||
}
|
||||
}
|
||||
|
@ -21,7 +21,8 @@ $components = $components[$device['device_id']];
|
||||
|
||||
include "includes/graphs/common.inc.php";
|
||||
$rrd_options .= " -l 0 -E ";
|
||||
$rrd_options .= " COMMENT:'Dispersion Now Min Max\\n'";
|
||||
$rrd_options .= " --vertical-label='Seconds'";
|
||||
$rrd_options .= " COMMENT:'Dispersion (s) Now Min Max\\n'";
|
||||
$rrd_additions = "";
|
||||
|
||||
$count = 0;
|
||||
@ -37,10 +38,10 @@ foreach ($components as $id => $array) {
|
||||
}
|
||||
|
||||
$rrd_additions .= " DEF:DS" . $count . "=" . $rrd_filename . ":dispersion:AVERAGE ";
|
||||
$rrd_additions .= " LINE1.25:DS" . $count . "#" . $color . ":'" . str_pad(substr($array['peer'].' (s)', 0, 15), 15) . "'" . $stack;
|
||||
$rrd_additions .= " GPRINT:DS" . $count . ":LAST:%7.0lf ";
|
||||
$rrd_additions .= " GPRINT:DS" . $count . ":MIN:%7.0lf ";
|
||||
$rrd_additions .= " GPRINT:DS" . $count . ":MAX:%7.0lf\\\l ";
|
||||
$rrd_additions .= " LINE1.25:DS" . $count . "#" . $color . ":'" . str_pad(substr($array['peer'], 0, 15), 15) . "'" . $stack;
|
||||
$rrd_additions .= " GPRINT:DS" . $count . ":LAST:%7.2lf ";
|
||||
$rrd_additions .= " GPRINT:DS" . $count . ":MIN:%7.2lf ";
|
||||
$rrd_additions .= " GPRINT:DS" . $count . ":MAX:%7.2lf\\l ";
|
||||
$count++;
|
||||
}
|
||||
}
|
||||
|
@ -20,8 +20,9 @@ $components = $component->getComponents($device['device_id'], $options);
|
||||
$components = $components[$device['device_id']];
|
||||
|
||||
include "includes/graphs/common.inc.php";
|
||||
$rrd_options .= " -l 0 -E ";
|
||||
$rrd_options .= " COMMENT:'Offset Now Min Max\\n'";
|
||||
$rrd_options .= " -E ";
|
||||
$rrd_options .= " --vertical-label='Seconds'";
|
||||
$rrd_options .= " COMMENT:'Offset (s) Now Min Max\\n'";
|
||||
$rrd_additions = "";
|
||||
|
||||
$count = 0;
|
||||
@ -37,10 +38,10 @@ foreach ($components as $id => $array) {
|
||||
}
|
||||
|
||||
$rrd_additions .= " DEF:DS" . $count . "=" . $rrd_filename . ":offset:AVERAGE ";
|
||||
$rrd_additions .= " LINE1.25:DS" . $count . "#" . $color . ":'" . str_pad(substr($array['peer'].' (s)', 0, 15), 15) . "'" . $stack;
|
||||
$rrd_additions .= " GPRINT:DS" . $count . ":LAST:%4.0lf ";
|
||||
$rrd_additions .= " GPRINT:DS" . $count . ":MIN:%4.0lf ";
|
||||
$rrd_additions .= " GPRINT:DS" . $count . ":MAX:%4.0lf\\\l ";
|
||||
$rrd_additions .= " LINE1.25:DS" . $count . "#" . $color . ":'" . str_pad(substr($array['peer'], 0, 15), 15) . "'" . $stack;
|
||||
$rrd_additions .= " GPRINT:DS" . $count . ":LAST:%7.2lf ";
|
||||
$rrd_additions .= " GPRINT:DS" . $count . ":MIN:%7.2lf ";
|
||||
$rrd_additions .= " GPRINT:DS" . $count . ":MAX:%7.2lf\\l ";
|
||||
$count++;
|
||||
}
|
||||
}
|
||||
|
@ -20,8 +20,8 @@ $components = $component->getComponents($device['device_id'], $options);
|
||||
$components = $components[$device['device_id']];
|
||||
|
||||
include "includes/graphs/common.inc.php";
|
||||
$rrd_options .= " -l 0 -E ";
|
||||
$rrd_options .= " COMMENT:'Stratum Now Min Max\\n'";
|
||||
$rrd_options .= " -l 0 -u 16 -E ";
|
||||
$rrd_options .= " COMMENT:'Stratum Now Min Max\\n'";
|
||||
$rrd_additions = "";
|
||||
|
||||
$count = 0;
|
||||
@ -38,9 +38,9 @@ foreach ($components as $id => $array) {
|
||||
|
||||
$rrd_additions .= " DEF:DS" . $count . "=" . $rrd_filename . ":stratum:AVERAGE ";
|
||||
$rrd_additions .= " LINE1.25:DS" . $count . "#" . $color . ":'" . str_pad(substr($array['peer'], 0, 15), 15) . "'" . $stack;
|
||||
$rrd_additions .= " GPRINT:DS" . $count . ":LAST:%2.0lf ";
|
||||
$rrd_additions .= " GPRINT:DS" . $count . ":MIN:%2.0lf ";
|
||||
$rrd_additions .= " GPRINT:DS" . $count . ":MAX:%2.0lf\\\l ";
|
||||
$rrd_additions .= " GPRINT:DS" . $count . ":LAST:%5.0lf ";
|
||||
$rrd_additions .= " GPRINT:DS" . $count . ":MIN:%7.0lf ";
|
||||
$rrd_additions .= " GPRINT:DS" . $count . ":MAX:%7.0lf\\l ";
|
||||
$count++;
|
||||
}
|
||||
}
|
||||
|
@ -30,3 +30,7 @@ use LibreNMS\Config;
|
||||
if (file_exists(Config::get('install_dir') . "/includes/discovery/ntp/{$device['os_group']}.inc.php")) {
|
||||
include Config::get('install_dir') . "/includes/discovery/ntp/{$device['os_group']}.inc.php";
|
||||
}
|
||||
|
||||
if ($device['os'] == 'awplus') {
|
||||
include 'includes/discovery/ntp/awplus.inc.php';
|
||||
}
|
||||
|
130
includes/discovery/ntp/awplus.inc.php
Normal file
130
includes/discovery/ntp/awplus.inc.php
Normal file
@ -0,0 +1,130 @@
|
||||
<?php
|
||||
/*
|
||||
* LibreNMS module to capture statistics from the AT-NTP-MIB
|
||||
*
|
||||
* Copyright (c) 2018 Matt Read <matt.read@alliedtelesis.co.nz>
|
||||
*
|
||||
* 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. Please see LICENSE.txt at the top level of
|
||||
* the source code distribution for details.
|
||||
*/
|
||||
|
||||
use LibreNMS\Util\IP;
|
||||
|
||||
$module = 'ntp';
|
||||
|
||||
$component = new LibreNMS\Component();
|
||||
$components = $component->getComponents($device['device_id'], array('type'=>$module));
|
||||
|
||||
// We only care about our device id.
|
||||
$components = $components[$device['device_id']];
|
||||
|
||||
// Begin our master array, all other values will be processed into this array.
|
||||
$tblComponents = array();
|
||||
|
||||
// Let's gather some data..
|
||||
// For Reference:
|
||||
// https://github.com/librenms/librenms/blob/master/mibs/awplus/AT-NTP-MIB
|
||||
// https://www.alliedtelesis.com/documents/network-time-protocol-ntp-feature-overview-and-configuration-guide
|
||||
$atNtpAssociationEntry = snmpwalk_group($device, 'atNtpAssociationEntry', 'AT-NTP-MIB');
|
||||
|
||||
/*
|
||||
* False == no object found - this is not an error, no objects exist
|
||||
* null == timeout or something else that caused an error, there may be objects but we couldn't get it.
|
||||
*/
|
||||
if (is_null($atNtpAssociationEntry)) {
|
||||
// We have to error here or we will end up deleting all our components.
|
||||
echo "Error\n";
|
||||
} else {
|
||||
// No Error, lets process things.
|
||||
d_echo("Objects Found:\n");
|
||||
|
||||
// Let's grab the index for each NTP peer
|
||||
foreach ($atNtpAssociationEntry as $index => $value) {
|
||||
$result = array();
|
||||
$result['UID'] = (string)$index; // This is cast as a string so it can be compared with the database value.
|
||||
$result['peer'] = $atNtpAssociationEntry[$index]['atNtpAssociationPeerAddr'];
|
||||
$result['port'] = '123'; // awplus only supports default NTP Port.
|
||||
$result['stratum'] = $atNtpAssociationEntry[$index]['atNtpAssociationStratum'];
|
||||
$result['peerref'] = $atNtpAssociationEntry[$index]['atNtpAssociationRefClkAddr'];
|
||||
$result['label'] = $result['peer'].":".$result['port'];
|
||||
|
||||
// Set the status, 16 = Bad
|
||||
if ($result['stratum'] == 16) {
|
||||
$result['status'] = 2;
|
||||
$result['error'] = 'NTP is not in sync';
|
||||
} else {
|
||||
$result['status'] = 0;
|
||||
$result['error'] = '';
|
||||
}
|
||||
|
||||
d_echo("NTP Peer found: ");
|
||||
d_echo($result);
|
||||
$tblComponents[] = $result;
|
||||
}
|
||||
|
||||
/*
|
||||
* Ok, we have our 2 array's (Components and SNMP) now we need
|
||||
* to compare and see what needs to be added/updated.
|
||||
*
|
||||
* Let's loop over the SNMP data to see if we need to ADD or UPDATE any components.
|
||||
*/
|
||||
foreach ($tblComponents as $key => $array) {
|
||||
$component_key = false;
|
||||
|
||||
// Loop over our components to determine if the component exists, or we need to add it.
|
||||
foreach ($components as $compid => $child) {
|
||||
if ($child['UID'] === $array['UID']) {
|
||||
$component_key = $compid;
|
||||
}
|
||||
}
|
||||
|
||||
if (!$component_key) {
|
||||
// The component doesn't exist, we need to ADD it - ADD.
|
||||
$new_component = $component->createComponent($device['device_id'], $module);
|
||||
$component_key = key($new_component);
|
||||
$components[$component_key] = array_merge($new_component[$component_key], $array);
|
||||
echo "+";
|
||||
} else {
|
||||
// The component does exist, merge the details in - UPDATE.
|
||||
$components[$component_key] = array_merge($components[$component_key], $array);
|
||||
echo ".";
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Loop over the Component data to see if we need to DELETE any components.
|
||||
*/
|
||||
foreach ($components as $key => $array) {
|
||||
// Guilty until proven innocent
|
||||
$found = false;
|
||||
|
||||
foreach ($tblComponents as $k => $v) {
|
||||
if ($array['UID'] == $v['UID']) {
|
||||
// Yay, we found it...
|
||||
$found = true;
|
||||
}
|
||||
}
|
||||
|
||||
if ($found === false) {
|
||||
// The component has not been found. we should delete it.
|
||||
echo "-";
|
||||
$component->deleteComponent($key);
|
||||
}
|
||||
}
|
||||
|
||||
// Write the Components back to the DB.
|
||||
$component->setComponentPrefs($device['device_id'], $components);
|
||||
echo "\n";
|
||||
} // End if not error
|
||||
|
||||
$module = strtolower($module);
|
||||
if (count($components) > 0) {
|
||||
if (dbFetchCell('SELECT COUNT(*) FROM `applications` WHERE `device_id` = ? AND `app_type` = ?', array($device['device_id'], $module)) == '0') {
|
||||
dbInsert(array('device_id' => $device['device_id'], 'app_type' => $module, 'app_status' => '', 'app_instance' => ''), 'applications');
|
||||
}
|
||||
} else {
|
||||
dbDelete('applications', '`device_id` = ? AND `app_type` = ?', array($device['device_id'], $module));
|
||||
}
|
@ -123,7 +123,7 @@ if (is_null($cntpPeersVarEntry)) {
|
||||
$module = strtolower($module);
|
||||
if (count($components) > 0) {
|
||||
if (dbFetchCell('SELECT COUNT(*) FROM `applications` WHERE `device_id` = ? AND `app_type` = ?', array($device['device_id'], $module)) == '0') {
|
||||
dbInsert(array('device_id' => $device['device_id'], 'app_type' => $module), 'applications');
|
||||
dbInsert(array('device_id' => $device['device_id'], 'app_type' => $module, 'app_status' => '', 'app_instance' => ''), 'applications');
|
||||
}
|
||||
} else {
|
||||
dbDelete('applications', '`device_id` = ? AND `app_type` = ?', array($device['device_id'], $module));
|
||||
|
@ -24,6 +24,11 @@ if (file_exists(Config::get('install_dir') . "/includes/polling/ntp/{$device['os
|
||||
include Config::get('install_dir') . "/includes/polling/ntp/{$device['os_group']}.inc.php";
|
||||
}
|
||||
|
||||
if ($device['os'] == 'awplus') {
|
||||
include 'includes/polling/ntp/awplus.inc.php';
|
||||
}
|
||||
|
||||
unset(
|
||||
$cntpPeersVarEntry
|
||||
$cntpPeersVarEntry,
|
||||
$atNtpAssociationEntry
|
||||
);
|
||||
|
85
includes/polling/ntp/awplus.inc.php
Normal file
85
includes/polling/ntp/awplus.inc.php
Normal file
@ -0,0 +1,85 @@
|
||||
<?php
|
||||
/*
|
||||
* LibreNMS module to capture statistics from the AT-NTP-MIB
|
||||
*
|
||||
* Copyright (c) 2018 Matt Read <matt.read@alliedtelesis.co.nz>
|
||||
*
|
||||
* 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. Please see LICENSE.txt at the top level of
|
||||
* the source code distribution for details.
|
||||
*/
|
||||
|
||||
use LibreNMS\RRD\RrdDefinition;
|
||||
|
||||
$tmp_module = 'ntp';
|
||||
|
||||
$component = new LibreNMS\Component();
|
||||
$options = array();
|
||||
$options['filter']['type'] = array('=',$tmp_module);
|
||||
$options['filter']['disabled'] = array('=',0);
|
||||
$options['filter']['ignore'] = array('=',0);
|
||||
$components = $component->getComponents($device['device_id'], $options);
|
||||
|
||||
// We only care about our device id.
|
||||
$components = $components[$device['device_id']];
|
||||
|
||||
// Only collect SNMP data if we have enabled components
|
||||
if (count($components > 0)) {
|
||||
// Let's gather the stats..
|
||||
$atNtpAssociationEntry = snmpwalk_group($device, 'atNtpAssociationEntry', 'AT-NTP-MIB');
|
||||
|
||||
// Loop through the components and extract the data.
|
||||
foreach ($components as $key => &$array) {
|
||||
$peer = $array['peer'];
|
||||
|
||||
// Let's make sure the rrd is setup for this class.
|
||||
$rrd_name = array('ntp', $peer);
|
||||
$rrd_def = RrdDefinition::make()
|
||||
->addDataset('stratum', 'GAUGE', 0, 16)
|
||||
->addDataset('offset', 'GAUGE', -1000)
|
||||
->addDataset('delay', 'GAUGE', -1000)
|
||||
->addDataset('dispersion', 'GAUGE', -1000);
|
||||
|
||||
$array['stratum'] = $atNtpAssociationEntry[$array['UID']]['atNtpAssociationStratum'];
|
||||
// Set the status, 16 = Bad
|
||||
if ($array['stratum'] == 16) {
|
||||
$array['status'] = 2;
|
||||
$array['error'] = 'NTP is not in sync';
|
||||
} else {
|
||||
$array['status'] = 0;
|
||||
$array['error'] = '';
|
||||
}
|
||||
|
||||
// Extract the statistics and update rrd
|
||||
$rrd['stratum'] = $array['stratum'];
|
||||
$rrd['offset'] = $atNtpAssociationEntry[$array['UID']]['atNtpAssociationOffset'];
|
||||
$rrd['offset'] = str_replace(' milliseconds', '', $rrd['offset']);
|
||||
$rrd['offset'] = $rrd['offset'] / 1000; // Convert to seconds
|
||||
$rrd['delay'] = $atNtpAssociationEntry[$array['UID']]['atNtpAssociationDelay'];
|
||||
$rrd['delay'] = str_replace(' milliseconds', '', $rrd['delay']);
|
||||
$rrd['delay'] = $rrd['delay'] / 1000; // Convert to seconds
|
||||
$rrd['dispersion'] = $atNtpAssociationEntry[$array['UID']]['atNtpAssociationDisp'];
|
||||
$tags = compact('ntp', 'rrd_name', 'rrd_def', 'peer');
|
||||
data_update($device, 'ntp', $tags, $rrd);
|
||||
|
||||
// Let's print some debugging info.
|
||||
d_echo("\n\nComponent: ".$key."\n");
|
||||
d_echo(" Index: ".$array['UID']."\n");
|
||||
d_echo(" Peer: ".$array['peer'].":".$array['port']."\n");
|
||||
d_echo(" Stratum: atNtpAssociationStratum.".$array['UID']." = ".$rrd['stratum']."\n");
|
||||
d_echo(" Offset: atNtpAssociationOffset.".$array['UID']." = ".$rrd['offset']."\n");
|
||||
d_echo(" Delay: atNtpAssociationDelay.".$array['UID']." = ".$rrd['delay']."\n");
|
||||
d_echo(" Dispersion: atNtpAssociationDisp.".$array['UID']." = ".$rrd['dispersion']."\n");
|
||||
|
||||
// Clean-up after yourself!
|
||||
unset($filename, $rrd_filename, $rrd);
|
||||
} // End foreach components
|
||||
|
||||
// Write the Components back to the DB.
|
||||
$component->setComponentPrefs($device['device_id'], $components);
|
||||
} // end if count components
|
||||
|
||||
// Clean-up after yourself!
|
||||
unset($type, $components, $component, $options, $tmp_module);
|
@ -1,150 +1,38 @@
|
||||
{
|
||||
"arp-table": {
|
||||
"discovery": {
|
||||
"ipv4_mac": [
|
||||
{
|
||||
"mac_address": "00900b2a11ad",
|
||||
"ipv4_address": "10.37.105.100",
|
||||
"context_name": null
|
||||
},
|
||||
{
|
||||
"mac_address": "00900b2a11b0",
|
||||
"ipv4_address": "10.37.105.254",
|
||||
"context_name": null
|
||||
},
|
||||
{
|
||||
"mac_address": "0000cd3709b4",
|
||||
"ipv4_address": "172.16.1.2",
|
||||
"context_name": null
|
||||
},
|
||||
{
|
||||
"mac_address": "e01aea2826d0",
|
||||
"ipv4_address": "172.16.2.2",
|
||||
"context_name": null
|
||||
},
|
||||
{
|
||||
"mac_address": "001aeb937aa6",
|
||||
"ipv4_address": "172.16.20.2",
|
||||
"context_name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
"poller": null
|
||||
},
|
||||
"bgp-peers": {
|
||||
"os": {
|
||||
"discovery": {
|
||||
"devices": [
|
||||
{
|
||||
"bgpLocalAs": "0"
|
||||
}
|
||||
],
|
||||
"bgpPeers": [],
|
||||
"bgpPeers_cbgp": []
|
||||
},
|
||||
"poller": "matches discovery"
|
||||
},
|
||||
"mempools": {
|
||||
"discovery": {
|
||||
"mempools": [
|
||||
{
|
||||
"mempool_index": "1",
|
||||
"entPhysicalIndex": null,
|
||||
"hrDeviceIndex": null,
|
||||
"mempool_type": "hrstorage",
|
||||
"mempool_precision": "1024",
|
||||
"mempool_descr": "Physical memory",
|
||||
"mempool_perc": "0",
|
||||
"mempool_used": "0",
|
||||
"mempool_free": "0",
|
||||
"mempool_total": "0",
|
||||
"mempool_largestfree": null,
|
||||
"mempool_lowestfree": null,
|
||||
"mempool_deleted": "0",
|
||||
"mempool_perc_warn": "75"
|
||||
},
|
||||
{
|
||||
"mempool_index": "3",
|
||||
"entPhysicalIndex": null,
|
||||
"hrDeviceIndex": null,
|
||||
"mempool_type": "hrstorage",
|
||||
"mempool_precision": "1024",
|
||||
"mempool_descr": "Virtual memory",
|
||||
"mempool_perc": "0",
|
||||
"mempool_used": "0",
|
||||
"mempool_free": "0",
|
||||
"mempool_total": "0",
|
||||
"mempool_largestfree": null,
|
||||
"mempool_lowestfree": null,
|
||||
"mempool_deleted": "0",
|
||||
"mempool_perc_warn": "75"
|
||||
},
|
||||
{
|
||||
"mempool_index": "10",
|
||||
"entPhysicalIndex": null,
|
||||
"hrDeviceIndex": null,
|
||||
"mempool_type": "hrstorage",
|
||||
"mempool_precision": "1024",
|
||||
"mempool_descr": "Swap space",
|
||||
"mempool_perc": "0",
|
||||
"mempool_used": "0",
|
||||
"mempool_free": "0",
|
||||
"mempool_total": "0",
|
||||
"mempool_largestfree": null,
|
||||
"mempool_lowestfree": null,
|
||||
"mempool_deleted": "0",
|
||||
"mempool_perc_warn": "75"
|
||||
"sysName": "<private>",
|
||||
"sysObjectID": ".1.3.6.1.4.1.207.1.14.114",
|
||||
"sysDescr": "Allied Telesis router/switch, AW+ v5.4.7-2.1",
|
||||
"sysContact": null,
|
||||
"version": null,
|
||||
"hardware": "",
|
||||
"features": null,
|
||||
"location": null,
|
||||
"os": "awplus",
|
||||
"type": "network",
|
||||
"serial": null,
|
||||
"icon": "alliedtelesis.svg"
|
||||
}
|
||||
]
|
||||
},
|
||||
"poller": {
|
||||
"mempools": [
|
||||
"devices": [
|
||||
{
|
||||
"mempool_index": "1",
|
||||
"entPhysicalIndex": null,
|
||||
"hrDeviceIndex": null,
|
||||
"mempool_type": "hrstorage",
|
||||
"mempool_precision": "1024",
|
||||
"mempool_descr": "Physical memory",
|
||||
"mempool_perc": "10",
|
||||
"mempool_used": "415637504",
|
||||
"mempool_free": "3580301312",
|
||||
"mempool_total": "3995938816",
|
||||
"mempool_largestfree": null,
|
||||
"mempool_lowestfree": null,
|
||||
"mempool_deleted": "0",
|
||||
"mempool_perc_warn": "75"
|
||||
},
|
||||
{
|
||||
"mempool_index": "3",
|
||||
"entPhysicalIndex": null,
|
||||
"hrDeviceIndex": null,
|
||||
"mempool_type": "hrstorage",
|
||||
"mempool_precision": "1024",
|
||||
"mempool_descr": "Virtual memory",
|
||||
"mempool_perc": "10",
|
||||
"mempool_used": "415637504",
|
||||
"mempool_free": "3580301312",
|
||||
"mempool_total": "3995938816",
|
||||
"mempool_largestfree": null,
|
||||
"mempool_lowestfree": null,
|
||||
"mempool_deleted": "0",
|
||||
"mempool_perc_warn": "75"
|
||||
},
|
||||
{
|
||||
"mempool_index": "10",
|
||||
"entPhysicalIndex": null,
|
||||
"hrDeviceIndex": null,
|
||||
"mempool_type": "hrstorage",
|
||||
"mempool_precision": "1024",
|
||||
"mempool_descr": "Swap space",
|
||||
"mempool_perc": "0",
|
||||
"mempool_used": "0",
|
||||
"mempool_free": "0",
|
||||
"mempool_total": "0",
|
||||
"mempool_largestfree": null,
|
||||
"mempool_lowestfree": null,
|
||||
"mempool_deleted": "0",
|
||||
"mempool_perc_warn": "75"
|
||||
"sysName": "<private>",
|
||||
"sysObjectID": ".1.3.6.1.4.1.207.1.14.114",
|
||||
"sysDescr": "Allied Telesis router/switch, AW+ v5.4.7-2.1",
|
||||
"sysContact": "<private>",
|
||||
"version": "5.4.7-2.1",
|
||||
"hardware": "AT-SBx8106",
|
||||
"features": "AT-SBx81CFC960",
|
||||
"location": "<private>",
|
||||
"os": "awplus",
|
||||
"type": "network",
|
||||
"serial": "A04699H130900048",
|
||||
"icon": "alliedtelesis.svg"
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -9699,44 +9587,6 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"os": {
|
||||
"discovery": {
|
||||
"devices": [
|
||||
{
|
||||
"sysName": "<private>",
|
||||
"sysObjectID": ".1.3.6.1.4.1.207.1.14.114",
|
||||
"sysDescr": "Allied Telesis router/switch, AW+ v5.4.7-2.1",
|
||||
"sysContact": null,
|
||||
"version": null,
|
||||
"hardware": "",
|
||||
"features": null,
|
||||
"location": null,
|
||||
"os": "awplus",
|
||||
"type": "network",
|
||||
"serial": null,
|
||||
"icon": "alliedtelesis.svg"
|
||||
}
|
||||
]
|
||||
},
|
||||
"poller": {
|
||||
"devices": [
|
||||
{
|
||||
"sysName": "<private>",
|
||||
"sysObjectID": ".1.3.6.1.4.1.207.1.14.114",
|
||||
"sysDescr": "Allied Telesis router/switch, AW+ v5.4.7-2.1",
|
||||
"sysContact": "<private>",
|
||||
"version": "5.4.7-2.1",
|
||||
"hardware": "AT-SBx8106",
|
||||
"features": "AT-SBx81CFC960",
|
||||
"location": "<private>",
|
||||
"os": "awplus",
|
||||
"type": "network",
|
||||
"serial": "A04699H130900048",
|
||||
"icon": "alliedtelesis.svg"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"processors": {
|
||||
"discovery": {
|
||||
"processors": [
|
||||
@ -9766,6 +9616,112 @@
|
||||
},
|
||||
"poller": "matches discovery"
|
||||
},
|
||||
"mempools": {
|
||||
"discovery": {
|
||||
"mempools": [
|
||||
{
|
||||
"mempool_index": "1",
|
||||
"entPhysicalIndex": null,
|
||||
"hrDeviceIndex": null,
|
||||
"mempool_type": "hrstorage",
|
||||
"mempool_precision": "1024",
|
||||
"mempool_descr": "Physical memory",
|
||||
"mempool_perc": "0",
|
||||
"mempool_used": "0",
|
||||
"mempool_free": "0",
|
||||
"mempool_total": "0",
|
||||
"mempool_largestfree": null,
|
||||
"mempool_lowestfree": null,
|
||||
"mempool_deleted": "0",
|
||||
"mempool_perc_warn": "75"
|
||||
},
|
||||
{
|
||||
"mempool_index": "3",
|
||||
"entPhysicalIndex": null,
|
||||
"hrDeviceIndex": null,
|
||||
"mempool_type": "hrstorage",
|
||||
"mempool_precision": "1024",
|
||||
"mempool_descr": "Virtual memory",
|
||||
"mempool_perc": "0",
|
||||
"mempool_used": "0",
|
||||
"mempool_free": "0",
|
||||
"mempool_total": "0",
|
||||
"mempool_largestfree": null,
|
||||
"mempool_lowestfree": null,
|
||||
"mempool_deleted": "0",
|
||||
"mempool_perc_warn": "75"
|
||||
},
|
||||
{
|
||||
"mempool_index": "10",
|
||||
"entPhysicalIndex": null,
|
||||
"hrDeviceIndex": null,
|
||||
"mempool_type": "hrstorage",
|
||||
"mempool_precision": "1024",
|
||||
"mempool_descr": "Swap space",
|
||||
"mempool_perc": "0",
|
||||
"mempool_used": "0",
|
||||
"mempool_free": "0",
|
||||
"mempool_total": "0",
|
||||
"mempool_largestfree": null,
|
||||
"mempool_lowestfree": null,
|
||||
"mempool_deleted": "0",
|
||||
"mempool_perc_warn": "75"
|
||||
}
|
||||
]
|
||||
},
|
||||
"poller": {
|
||||
"mempools": [
|
||||
{
|
||||
"mempool_index": "1",
|
||||
"entPhysicalIndex": null,
|
||||
"hrDeviceIndex": null,
|
||||
"mempool_type": "hrstorage",
|
||||
"mempool_precision": "1024",
|
||||
"mempool_descr": "Physical memory",
|
||||
"mempool_perc": "10",
|
||||
"mempool_used": "415637504",
|
||||
"mempool_free": "3580301312",
|
||||
"mempool_total": "3995938816",
|
||||
"mempool_largestfree": null,
|
||||
"mempool_lowestfree": null,
|
||||
"mempool_deleted": "0",
|
||||
"mempool_perc_warn": "75"
|
||||
},
|
||||
{
|
||||
"mempool_index": "3",
|
||||
"entPhysicalIndex": null,
|
||||
"hrDeviceIndex": null,
|
||||
"mempool_type": "hrstorage",
|
||||
"mempool_precision": "1024",
|
||||
"mempool_descr": "Virtual memory",
|
||||
"mempool_perc": "10",
|
||||
"mempool_used": "415637504",
|
||||
"mempool_free": "3580301312",
|
||||
"mempool_total": "3995938816",
|
||||
"mempool_largestfree": null,
|
||||
"mempool_lowestfree": null,
|
||||
"mempool_deleted": "0",
|
||||
"mempool_perc_warn": "75"
|
||||
},
|
||||
{
|
||||
"mempool_index": "10",
|
||||
"entPhysicalIndex": null,
|
||||
"hrDeviceIndex": null,
|
||||
"mempool_type": "hrstorage",
|
||||
"mempool_precision": "1024",
|
||||
"mempool_descr": "Swap space",
|
||||
"mempool_perc": "0",
|
||||
"mempool_used": "0",
|
||||
"mempool_free": "0",
|
||||
"mempool_total": "0",
|
||||
"mempool_largestfree": null,
|
||||
"mempool_lowestfree": null,
|
||||
"mempool_deleted": "0",
|
||||
"mempool_perc_warn": "75"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"sensors": {
|
||||
"discovery": {
|
||||
"sensors": [
|
||||
@ -12576,6 +12532,19 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"applications": {
|
||||
"poller": {
|
||||
"applications": [
|
||||
{
|
||||
"app_type": "ntp",
|
||||
"app_state": "UNKNOWN",
|
||||
"discovered": "0",
|
||||
"app_state_prev": null,
|
||||
"app_status": "",
|
||||
"app_instance": ""
|
||||
}
|
||||
],
|
||||
"application_metrics": []
|
||||
"vlans": {
|
||||
"discovery": {
|
||||
"vlans": [
|
||||
|
@ -2446,4 +2446,34 @@
|
||||
1.3.6.1.4.1.207.8.4.4.3.21.1.1.8.5.11|4|A042844102400016
|
||||
1.3.6.1.4.1.207.8.4.4.3.21.1.1.8.6.6|4|A270F900C
|
||||
1.3.6.1.4.1.207.8.4.4.4.500.2.1.1.0|4|5.4.7-2.1
|
||||
1.3.6.1.4.1.207.8.4.4.4.502.10.1.2.1|4|ns2.att.wlg.telesmart.co.nz
|
||||
1.3.6.1.4.1.207.8.4.4.4.502.10.1.2.2|4|c2-core-stk
|
||||
1.3.6.1.4.1.207.8.4.4.4.502.10.1.2.3|4|10.37.105.100
|
||||
1.3.6.1.4.1.207.8.4.4.4.502.10.1.3.1|4|master (synced)
|
||||
1.3.6.1.4.1.207.8.4.4.4.502.10.1.3.2|4|unknown
|
||||
1.3.6.1.4.1.207.8.4.4.4.502.10.1.3.3|4|candidate
|
||||
1.3.6.1.4.1.207.8.4.4.4.502.10.1.4.1|4|configured
|
||||
1.3.6.1.4.1.207.8.4.4.4.502.10.1.4.2|4|configured
|
||||
1.3.6.1.4.1.207.8.4.4.4.502.10.1.4.3|4|configured
|
||||
1.3.6.1.4.1.207.8.4.4.4.502.10.1.5.1|4|126.11.196.147
|
||||
1.3.6.1.4.1.207.8.4.4.4.502.10.1.5.2|4|172.31.0.53
|
||||
1.3.6.1.4.1.207.8.4.4.4.502.10.1.5.3|4|10.37.105.250
|
||||
1.3.6.1.4.1.207.8.4.4.4.502.10.1.6.1|2|2
|
||||
1.3.6.1.4.1.207.8.4.4.4.502.10.1.6.2|2|4
|
||||
1.3.6.1.4.1.207.8.4.4.4.502.10.1.6.3|2|4
|
||||
1.3.6.1.4.1.207.8.4.4.4.502.10.1.7.1|2|1024
|
||||
1.3.6.1.4.1.207.8.4.4.4.502.10.1.7.2|2|1024
|
||||
1.3.6.1.4.1.207.8.4.4.4.502.10.1.7.3|2|1024
|
||||
1.3.6.1.4.1.207.8.4.4.4.502.10.1.8.1|2|377
|
||||
1.3.6.1.4.1.207.8.4.4.4.502.10.1.8.2|2|336
|
||||
1.3.6.1.4.1.207.8.4.4.4.502.10.1.8.3|2|377
|
||||
1.3.6.1.4.1.207.8.4.4.4.502.10.1.9.1|4|34.943 milliseconds
|
||||
1.3.6.1.4.1.207.8.4.4.4.502.10.1.9.2|4|57.205 milliseconds
|
||||
1.3.6.1.4.1.207.8.4.4.4.502.10.1.9.3|4|54.184 milliseconds
|
||||
1.3.6.1.4.1.207.8.4.4.4.502.10.1.10.1|4|-7.942 milliseconds
|
||||
1.3.6.1.4.1.207.8.4.4.4.502.10.1.10.2|4|18.009 milliseconds
|
||||
1.3.6.1.4.1.207.8.4.4.4.502.10.1.10.3|4|2.610 milliseconds
|
||||
1.3.6.1.4.1.207.8.4.4.4.502.10.1.11.1|4|15.254
|
||||
1.3.6.1.4.1.207.8.4.4.4.502.10.1.11.2|4|16.224
|
||||
1.3.6.1.4.1.207.8.4.4.4.502.10.1.11.3|4|15.367
|
||||
1.3.6.1.6.3.10.2.1.3.0|2|173123
|
||||
|
Loading…
Reference in New Issue
Block a user