Skip to content

Commit 4c564ab

Browse files
authored
Added sysName support for Imco Power ls110 devices (librenms#18357)
1 parent b51f64f commit 4c564ab

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

resources/definitions/os_discovery/imcopower-ls110.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ modules:
44
hardware: IMCO-LSPS-MIB::sdsModel.0
55
serial: IMCO-LSPS-MIB::sdsSerialNumber.0
66
version: IMCO-LSPS-MIB::sdsSoftware.0
7+
sysName: IMCO-LSPS-MIB::sdsName.0
78
sensors:
89
temperature:
910
data:

tests/data/imcopower-ls110.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"discovery": {
44
"devices": [
55
{
6-
"sysName": "<private>",
6+
"sysName": "plecnikova",
77
"sysObjectID": ".1.3.6.1.4.1.33283.1.30",
88
"sysDescr": "SDS_BIG_STSW www.AN-D.cz",
99
"sysContact": "<private>",
@@ -458,5 +458,19 @@
458458
}
459459
]
460460
}
461+
},
462+
"hr-device": {
463+
"discovery": {
464+
"hrDevice": [
465+
{
466+
"hrDeviceIndex": 1,
467+
"hrDeviceDescr": "CPU ARM",
468+
"hrDeviceType": "hrDeviceProcessor",
469+
"hrDeviceErrors": 0,
470+
"hrDeviceStatus": "unknown",
471+
"hrProcessorLoad": 1
472+
}
473+
]
474+
}
461475
}
462476
}

tests/snmpsim/imcopower-ls110.snmprec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,6 @@
5353
1.3.6.1.4.1.33283.1.30.7.7.0|2|1000
5454
1.3.6.1.4.1.33283.1.30.7.8.0|2|455
5555
1.3.6.1.4.1.33283.1.30.8.81.0|4|LS130.HS 24481004R
56+
1.3.6.1.4.1.33283.1.30.8.82.0|4|Plecnikova
5657
1.3.6.1.4.1.33283.1.30.8.83.0|4|1806527724
5758
1.3.6.1.4.1.33283.1.30.8.84.0|4|1.3.4

0 commit comments

Comments
 (0)