initial commit; version 22.5.12042
This commit is contained in:
31
includes/polling/os/mgeups.inc.php
Normal file
31
includes/polling/os/mgeups.inc.php
Normal file
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage poller
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
// MG-SNMP-UPS-MIB::upsmgIdentFamilyName.0 = STRING: "PULSAR M"
|
||||
// MG-SNMP-UPS-MIB::upsmgIdentModelName.0 = STRING: "2200"
|
||||
// MG-SNMP-UPS-MIB::upsmgIdentSerialNumber.0 = STRING: "AQ1H01024"
|
||||
|
||||
// MG-SNMP-UPS-MIB::upsmgAgentFirmwareVersion.0 = "GA"
|
||||
|
||||
// MG-SNMP-UPS-MIB::upsmgIdentModelName.0 = STRING: "5000_60"
|
||||
|
||||
$model = snmp_get($device,'upsmgIdentModelName.0','-OQv','MG-SNMP-UPS-MIB');
|
||||
|
||||
// "5000_60" -> "5000 (60 kVA)"
|
||||
if (strstr($model,'_')) { $model = join(' (',explode('_',$model)) . ' kVA)'; }
|
||||
|
||||
$hardware = snmp_get($device,'upsmgIdentFamilyName.0','-OQv','MG-SNMP-UPS-MIB') . ' ' . $model;
|
||||
|
||||
$features = 'Firmware: ' . snmp_get($device,'upsmgAgentFirmwareVersion.0','-OQv','MG-SNMP-UPS-MIB');
|
||||
|
||||
// EOF
|
Reference in New Issue
Block a user