mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
Merge pull request #2046 from xbeaudouin/master
Add support for some UPS that use same card as multimatic
This commit is contained in:
@@ -59,5 +59,6 @@ Contributors to LibreNMS:
|
||||
- Sławomir Paszkiewicz <paszczus@pld-linux.org> (paszczus)
|
||||
- Frederik Mogensen <frederik@server-1.dk> (mogensen)
|
||||
- Matthew Scully <matt@mattz0r.me.uk> (mattz0r)
|
||||
- Xavier Beaudouin <kiwi@oav.net> (xbeaudouin)
|
||||
|
||||
[1]: http://observium.org/ "Observium web site"
|
||||
|
||||
@@ -5,5 +5,8 @@ if (!$os) {
|
||||
if (strstr(snmp_get($device, 'UPS-MIB::upsIdentManufacturer.0', '-Oqv', ''), 'Multimatic')) {
|
||||
$os = 'multimatic';
|
||||
}
|
||||
if (strstr(snmp_get($device, 'UPS-MIB::upsIdentManufacturer.0', '-Oqv', ''), 'S2S')) {
|
||||
$os = 'multimatic';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user