diff --git a/html/images/os/avaya.png b/html/images/os/avaya.png new file mode 100644 index 0000000000..857e18b474 Binary files /dev/null and b/html/images/os/avaya.png differ diff --git a/includes/discovery/mempools/avaya-ers.inc.php b/includes/discovery/mempools/avaya-ers.inc.php new file mode 100644 index 0000000000..271d25bea1 --- /dev/null +++ b/includes/discovery/mempools/avaya-ers.inc.php @@ -0,0 +1,29 @@ += 6.1) { + $mem = snmp_walk($device, $OID, "-Osqn"); + + echo "$mem\n"; + + foreach (explode("\n", $mem) as $i => $t) { + $t = explode(" ",$t); + $oid = str_replace($OID, "", $t[0]); + discover_mempool($valid_mempool, $device, $oid, "avaya-ers", "Unit " . ($i+1) . " memory", "1", NULL, NULL); + } + } + } +} + +?> diff --git a/includes/discovery/os/avaya-ers.inc.php b/includes/discovery/os/avaya-ers.inc.php new file mode 100755 index 0000000000..c4d6c9c506 --- /dev/null +++ b/includes/discovery/os/avaya-ers.inc.php @@ -0,0 +1,9 @@ + diff --git a/includes/discovery/processors/avaya-ers.inc.php b/includes/discovery/processors/avaya-ers.inc.php new file mode 100644 index 0000000000..1e1092cf13 --- /dev/null +++ b/includes/discovery/processors/avaya-ers.inc.php @@ -0,0 +1,18 @@ + $t) { + $t = explode(" ",$t); + $oid = $t[0]; + $val = $t[1]; + discover_processor($valid['processor'], $device, $oid, zeropad($i+1), "avaya-ers", "Unit " . ($i+1) . " processor", "1", $val, $i, NULL); + } + } +} + +?> diff --git a/includes/discovery/temperatures/avaya-ers.inc.php b/includes/discovery/temperatures/avaya-ers.inc.php new file mode 100644 index 0000000000..2d4e7bd63d --- /dev/null +++ b/includes/discovery/temperatures/avaya-ers.inc.php @@ -0,0 +1,25 @@ += 6.1) { + $temps = snmp_walk($device, "1.3.6.1.4.1.45.1.6.3.7.1.1.5.5", "-Osqn"); + + foreach (explode("\n", $temps) as $i => $t) { + $t = explode(" ",$t); + $oid = $t[0]; + $val = $t[1]; + # Sensors are reported as 2 * value + $val = trim($val) / 2; + discover_sensor($valid['sensor'], 'temperature', $device, $oid, zeropad($i+1), 'avaya-ers', "Unit " . ($i+1) . " temperature", '2', '1', NULL, NULL, NULL, NULL, $val); + } + } +} + +?> diff --git a/includes/polling/mempools/avaya-ers.inc.php b/includes/polling/mempools/avaya-ers.inc.php new file mode 100644 index 0000000000..641a137fe9 --- /dev/null +++ b/includes/polling/mempools/avaya-ers.inc.php @@ -0,0 +1,19 @@ + diff --git a/includes/polling/os/avaya-ers.inc.php b/includes/polling/os/avaya-ers.inc.php new file mode 100644 index 0000000000..24227fce33 --- /dev/null +++ b/includes/polling/os/avaya-ers.inc.php @@ -0,0 +1,44 @@ + 1) { + $features = "Stack of $stack_size units"; +} + + +$version = str_replace("\"","", $version); +$features = str_replace("\"","", $features); +$hardware = str_replace("\"","", $hardware); + +?> diff --git a/includes/static-config.php b/includes/static-config.php index 1a07e36a77..ba6624e9ca 100644 --- a/includes/static-config.php +++ b/includes/static-config.php @@ -408,6 +408,13 @@ $config['os'][$os]['over'][1]['text'] = "CPU Usage"; $config['os'][$os]['over'][2]['graph'] = "device_mempool"; $config['os'][$os]['over'][2]['text'] = "Memory Usage"; +$os = "avaya-ers"; +$config['os'][$os]['text'] = "ERS Firmware"; +$config['os'][$os]['type'] = "network"; +$config['os'][$os]['icon'] = "avaya"; +$config['os'][$os]['over'][0]['graph'] = "device_bits"; +$config['os'][$os]['over'][0]['text'] = "Device Traffic"; + $os = "arista_eos"; $config['os'][$os]['text'] = "Arista EOS"; $config['os'][$os]['type'] = "network";