mirror of
https://github.com/librenms/librenms.git
synced 2024-09-21 10:28:13 +00:00
Tripplite console server (#16156)
* exclude triplite console servers * add definition for tripplite console servers * add test files * renamed to lowercase * add testdata * add testdata * disable poller and discery modules that do not apply to this device * lo will always report empty values, so lets ignore it * removed disabled poller modules
This commit is contained in:
parent
97a13f6fe8
commit
512403a255
3
includes/definitions/discovery/trippliteconsole.yaml
Normal file
3
includes/definitions/discovery/trippliteconsole.yaml
Normal file
@ -0,0 +1,3 @@
|
||||
modules:
|
||||
os:
|
||||
sysDescr_regex: '/^TrippLite (?<hardware>[^ ,]+), .* Version (?<version>[^ ]+) .*/'
|
@ -15,3 +15,6 @@ discovery:
|
||||
-
|
||||
sysObjectID:
|
||||
- .1.3.6.1.4.1.850
|
||||
sysObjectID_except:
|
||||
- .1.3.6.1.4.1.850.1.5
|
||||
- .1.3.6.1.4.1.850.1.7
|
||||
|
17
includes/definitions/trippliteconsole.yaml
Normal file
17
includes/definitions/trippliteconsole.yaml
Normal file
@ -0,0 +1,17 @@
|
||||
os: trippliteconsole
|
||||
text: 'TrippLite console server'
|
||||
type: appliance
|
||||
icon: tripplite
|
||||
group: tripplite
|
||||
over:
|
||||
- { graph: device_bits, text: 'Device Traffic' }
|
||||
- { graph: device_processor, text: 'CPU Usage' }
|
||||
- { graph: device_mempool, text: 'Memory Usage' }
|
||||
mib_dir: poweralert
|
||||
discovery:
|
||||
- sysObjectID:
|
||||
- .1.3.6.1.4.1.850.1.5
|
||||
- .1.3.6.1.4.1.850.1.7
|
||||
|
||||
bad_if:
|
||||
- lo
|
23
tests/data/trippliteconsole.json
Normal file
23
tests/data/trippliteconsole.json
Normal file
@ -0,0 +1,23 @@
|
||||
{
|
||||
"os": {
|
||||
"discovery": {
|
||||
"devices": [
|
||||
{
|
||||
"sysName": null,
|
||||
"sysObjectID": ".1.3.6.1.4.1.850.1.5",
|
||||
"sysDescr": "TrippLite B093-004-2E4U, Linux 3.10.0-uc0 armv7l, TrippLite/B093 Version 4.12.3 a5834656 -- Tue May 17 17:25:30 UTC 2022",
|
||||
"sysContact": null,
|
||||
"version": "4.12.3",
|
||||
"hardware": "B093-004-2E4U",
|
||||
"features": null,
|
||||
"location": null,
|
||||
"os": "trippliteconsole",
|
||||
"type": "appliance",
|
||||
"serial": null,
|
||||
"icon": "tripplite.svg"
|
||||
}
|
||||
]
|
||||
},
|
||||
"poller": "matches discovery"
|
||||
}
|
||||
}
|
23
tests/data/trippliteconsole_b093.json
Normal file
23
tests/data/trippliteconsole_b093.json
Normal file
@ -0,0 +1,23 @@
|
||||
{
|
||||
"os": {
|
||||
"discovery": {
|
||||
"devices": [
|
||||
{
|
||||
"sysName": null,
|
||||
"sysObjectID": ".1.3.6.1.4.1.850.1.5",
|
||||
"sysDescr": "TrippLite B093-004-2E4U, Linux 3.10.0-uc0 armv7l, TrippLite/B093 Version 4.12.3 a5834656 -- Tue May 17 17:25:30 UTC 2022",
|
||||
"sysContact": null,
|
||||
"version": "4.12.3",
|
||||
"hardware": "B093-004-2E4U",
|
||||
"features": null,
|
||||
"location": null,
|
||||
"os": "trippliteconsole",
|
||||
"type": "appliance",
|
||||
"serial": null,
|
||||
"icon": "tripplite.svg"
|
||||
}
|
||||
]
|
||||
},
|
||||
"poller": "matches discovery"
|
||||
}
|
||||
}
|
23
tests/data/trippliteconsole_b097.json
Normal file
23
tests/data/trippliteconsole_b097.json
Normal file
@ -0,0 +1,23 @@
|
||||
{
|
||||
"os": {
|
||||
"discovery": {
|
||||
"devices": [
|
||||
{
|
||||
"sysName": null,
|
||||
"sysObjectID": ".1.3.6.1.4.1.850.1.7",
|
||||
"sysDescr": "TrippLite B097-016, Linux 3.10.0-uc0 armv7l, TrippLite/B097 Version 4.12.3 a5834656 -- Tue May 17 17:25:30 UTC 2022",
|
||||
"sysContact": null,
|
||||
"version": "4.12.3",
|
||||
"hardware": "B097-016",
|
||||
"features": null,
|
||||
"location": null,
|
||||
"os": "trippliteconsole",
|
||||
"type": "appliance",
|
||||
"serial": null,
|
||||
"icon": "tripplite.svg"
|
||||
}
|
||||
]
|
||||
},
|
||||
"poller": "matches discovery"
|
||||
}
|
||||
}
|
2
tests/snmpsim/trippliteconsole.snmprec
Normal file
2
tests/snmpsim/trippliteconsole.snmprec
Normal file
@ -0,0 +1,2 @@
|
||||
1.3.6.1.2.1.1.1.0|4|TrippLite B093-004-2E4U, Linux 3.10.0-uc0 armv7l, TrippLite/B093 Version 4.12.3 a5834656 -- Tue May 17 17:25:30 UTC 2022
|
||||
1.3.6.1.2.1.1.2.0|6|.1.3.6.1.4.1.850.1.5
|
2
tests/snmpsim/trippliteconsole_b093.snmprec
Normal file
2
tests/snmpsim/trippliteconsole_b093.snmprec
Normal file
@ -0,0 +1,2 @@
|
||||
1.3.6.1.2.1.1.1.0|4|TrippLite B093-004-2E4U, Linux 3.10.0-uc0 armv7l, TrippLite/B093 Version 4.12.3 a5834656 -- Tue May 17 17:25:30 UTC 2022
|
||||
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.850.1.5
|
2
tests/snmpsim/trippliteconsole_b097.snmprec
Normal file
2
tests/snmpsim/trippliteconsole_b097.snmprec
Normal file
@ -0,0 +1,2 @@
|
||||
1.3.6.1.2.1.1.1.0|4|TrippLite B097-016, Linux 3.10.0-uc0 armv7l, TrippLite/B097 Version 4.12.3 a5834656 -- Tue May 17 17:25:30 UTC 2022
|
||||
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.850.1.7
|
Loading…
Reference in New Issue
Block a user