mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
Add OS Discovery and Poller
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
if (!$os){
|
||||
/**
|
||||
* Supported Devides List
|
||||
* OLT AN5516-06
|
||||
* OLT AN5516-01
|
||||
*/
|
||||
if (preg_match('/^AN5516-0[16]$/',$sysDescr)) {
|
||||
echo "Fiberhome $sysDescr\n";
|
||||
$os = "fiberhome";
|
||||
}
|
||||
}
|
||||
?>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
$hardware = "Fiberhome ".snmp_get($device, "sysDescr.0", "-Oqv", "GEPON-OLT-COMMON-MIB");
|
||||
$version = str_replace('"','',snmp_get($device, "sysHardVersion.0", "-Ovq", "GEPON-OLT-COMMON-MIB"))." - ".str_replace('"','',snmp_get($device, "sysSoftVersion.0", "-Ovq", "GEPON-OLT-COMMON-MIB"));
|
||||
$features = "Olt ".snmp_get($device, "sysDescr.0", "-Oqv", "GEPON-OLT-COMMON-MIB");
|
||||
?>
|
||||
Reference in New Issue
Block a user