includes/definitions/mypoweros.yaml
os: mypoweros
text: 'Maipu MyPower'
type: network
icon: maipu
ifname: true
over:
- { graph: device_bits, text: 'Device Traffic' }
- { graph: device_processor, text: 'Processor Usage' }
- { graph: device_mempool, text: 'Memory Usage' }
discovery:
- sysObjectID:
- .1.3.6.1.4.1.5651.1.101.
- .1.3.6.1.4.1.5651.1.102.
- .1.3.6.1.4.1.5651.1.103.
add mib file MPIOS-MIB.txt to mibs/
includes/definitions/discovery/mypoweros.yaml for CPU
mib: MPIOS-MIB
modules:
processors:
data:
-
oid: cpuUtilCurrentUtil
num_oid: '.1.3.6.1.4.1.5651.3.20.1.1.3.5.1.10.{{ $index }}'
index: 1
includes/discovery/mempools/mypoweros.inc.php for mem
<?php
if ($device['os'] === 'mypoweros') {
echo 'MAIPU-MEMORY-POOL: ';
$usage = snmp_get($device, 'allocBytesPercent.0', '-OvQ', 'MPIOS-MIB');
if (is_numeric($usage)) {
discover_mempool($valid_mempool, $device, 0, 'mypoweros', 'Memory', '100', null, null);
}
}
includes/polling/mempools/mypoweros.inc.php for mem
<?php
echo 'Maipu MemPool';
$memory_total = snmp_get($device, "memoryTotalBytes.0", '-OvQ', 'MPIOS-MIB');
$memory_alloc = snmp_get($device, "numBytesAlloc.0", '-OvQ', 'MPIOS-MIB');
$memory_free = snmp_get($device, "numBytesFree.0", '-OvQ', 'MPIOS-MIB');
$mempool['total'] = $memory_total;
$mempool['used'] = $memory_alloc;
$mempool['free'] = $memory_free;
and the logo
I test it in maipu s6600,s3320 and s3120