mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* split siteboss 530 and 550 into multiple OS * add more sensors to siteboss550 and new Percent sensor * fix contact closure event state values * split os polling for siteboss to siteboss530 and siteboss550 * add test unit for siteboss550, rename test unit for siteboss to siteboss530 * refactor siteboss os polling to \Librenms\OS * implement OSPolling to Sitebos550 * force save in pollOS() to keep custom sysName during polling * updated unit test * update device graphs * remove pollOS and extra save() * siteboss550 no longer extends OSPolling * update siteboss550 test data * update discoverOS() to match recent os discovery changes * styleCI changes * fix siteboss hardware discovery; add check to OS polling if os_group .inc file exists * collapse siteboss to single OS, implement siteboss sensors in advanced discovery * add siteboss unit tests * removed unneeded OS disco defs * styleCI changes * more styleCI changes * split siteboss os to siteboss530 and siteboss550 * split siteboss os to siteboss530 and siteboss550 * move php polling back into yaml * keep original siteboss OS name * resave snmp data for siteboss OS * resave snmp data for siteboss550 OS
36 lines
1.0 KiB
PHP
36 lines
1.0 KiB
PHP
<?php
|
|
/**
|
|
* Siteboss.php
|
|
*
|
|
* Asentria Siteboss
|
|
*
|
|
* 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.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*
|
|
* @link http://librenms.org
|
|
*/
|
|
|
|
namespace LibreNMS\OS;
|
|
|
|
use App\Models\Device;
|
|
use LibreNMS\OS;
|
|
|
|
class Siteboss extends OS
|
|
{
|
|
public function discoverOS(Device $device): void
|
|
{
|
|
parent::discoverOS($device); // yaml
|
|
$device->sysName = snmp_get($this->getDeviceArray(), 'siteName.0', '-Osqnv', 'SITEBOSS-530-STD-MIB');
|
|
}
|
|
}
|