mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
add sanos detection (it is just nxos, so we treat it as if it's IOS for discovery purposes)
git-svn-id: http://www.observium.org/svn/observer/trunk@1693 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -23,6 +23,4 @@ $rra_out = "OUTOCTETS";
|
|||||||
|
|
||||||
include ("includes/graphs/generic_multi_bits_separated.inc.php");
|
include ("includes/graphs/generic_multi_bits_separated.inc.php");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
Executable
+9
@@ -0,0 +1,9 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
if(!$os) {
|
||||||
|
|
||||||
|
if(strstr($sysDescr, "SAN-OS")) { $os = "sanos"; }
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
@@ -335,7 +335,7 @@ function formatUptime($diff, $format="long")
|
|||||||
function isSNMPable($hostname, $community, $snmpver, $port)
|
function isSNMPable($hostname, $community, $snmpver, $port)
|
||||||
{
|
{
|
||||||
global $config;
|
global $config;
|
||||||
$pos = shell_exec($config['snmpget'] ." -m SNMPv2-MIB -$snmpver -c $community -t 1 $hostname:$port sysDescr.0");
|
$pos = shell_exec($config['snmpget'] ." -m SNMPv2-MIB -$snmpver -c $community -t 1 $hostname:$port sysObjectID.0");
|
||||||
if ($pos == '') {
|
if ($pos == '') {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -150,6 +150,18 @@ $config['os'][$os]['over'][1]['text'] = "CPU Usage";
|
|||||||
$config['os'][$os]['over'][2]['graph'] = "device_mempools";
|
$config['os'][$os]['over'][2]['graph'] = "device_mempools";
|
||||||
$config['os'][$os]['over'][2]['text'] = "Memory Usage";
|
$config['os'][$os]['over'][2]['text'] = "Memory Usage";
|
||||||
|
|
||||||
|
$os = "sanos";
|
||||||
|
$config['os'][$os]['group'] = "ios";
|
||||||
|
$config['os'][$os]['text'] = "Cisco SAN-OS";
|
||||||
|
$config['os'][$os]['type'] = "network";
|
||||||
|
$config['os'][$os]['icon'] = "cisco";
|
||||||
|
$config['os'][$os]['over'][0]['graph'] = "device_bits";
|
||||||
|
$config['os'][$os]['over'][0]['text'] = "Device Traffic";
|
||||||
|
$config['os'][$os]['over'][1]['graph'] = "device_processors";
|
||||||
|
$config['os'][$os]['over'][1]['text'] = "CPU Usage";
|
||||||
|
$config['os'][$os]['over'][2]['graph'] = "device_mempools";
|
||||||
|
$config['os'][$os]['over'][2]['text'] = "Memory Usage";
|
||||||
|
|
||||||
$os = "catos";
|
$os = "catos";
|
||||||
$config['os'][$os]['group'] = "ios";
|
$config['os'][$os]['group'] = "ios";
|
||||||
$config['os'][$os]['text'] = "Cisco CatOS";
|
$config['os'][$os]['text'] = "Cisco CatOS";
|
||||||
|
|||||||
Reference in New Issue
Block a user