mirror of
https://github.com/librenms/librenms.git
synced 2024-09-21 10:28:13 +00:00
Add initial OS detection for LoadBalancer.org (#14902)
* Add initial OS detection for LoadBalancer.org * Match on Linux sysObjectID first for efficiency Co-authored-by: Tony Murray <murraytony@gmail.com> * Add test for loadbalancer OS detection * Add test for loadbalancer OS detection - fix author * Add test for loadbalancer OS detection * Add test for loadbalancer OS detection - fix author --------- Co-authored-by: Tony Murray <murraytony@gmail.com> Co-authored-by: Chris Ware <cjw26@bath.ac.uk>
This commit is contained in:
parent
a340672e86
commit
bbe752b24a
1
html/images/logos/loadbalancer.svg
Normal file
1
html/images/logos/loadbalancer.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 4.9 KiB |
1
html/images/os/loadbalancer.svg
Normal file
1
html/images/os/loadbalancer.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 5.928 5.159"><defs><linearGradient gradientTransform="matrix(.26458 0 0 .26458 35.96 94.77)" xlink:href="#a" id="b" x1="-.422" y1="-31.147" x2="22.385" y2="-17.067" gradientUnits="userSpaceOnUse"/><linearGradient id="a"><stop offset="0" style="stop-color:#e707e9;stop-opacity:1"/><stop offset="1" style="stop-color:#00eba7;stop-opacity:1"/></linearGradient></defs><path style="fill:url(#b);fill-opacity:1;stroke-width:.02480404" d="M38.157 88.123v-.46h.918v.919h-.918zm-1.686-1.265v-1.724h.918v3.448h-.918zm3.373 1.302v-1.265H38.157v-2.629h.918V85.977H40.762v3.448h-.918zm-5.01-.459v-1.724h.918v3.448h-.918z" transform="translate(-34.834 -84.266)"/></svg>
|
After Width: | Height: | Size: 751 B |
19
includes/definitions/loadbalancer.yaml
Normal file
19
includes/definitions/loadbalancer.yaml
Normal file
@ -0,0 +1,19 @@
|
||||
os: loadbalancer
|
||||
text: 'Loadbalancer.org'
|
||||
type: loadbalancer
|
||||
icon: loadbalancer
|
||||
over:
|
||||
- { graph: device_bits, text: 'Device Traffic' }
|
||||
- { graph: device_processor, text: 'CPU Usage' }
|
||||
- { graph: device_mempool, text: 'Memory Usage' }
|
||||
discovery:
|
||||
-
|
||||
sysObjectID: .1.3.6.1.4.1.8072.3.2.10
|
||||
snmpget:
|
||||
oid: .1.3.6.1.4.1.54849.1.1.4.0
|
||||
op: '!='
|
||||
value: false
|
||||
poller_modules:
|
||||
loadbalancers: true
|
||||
discovery_modules:
|
||||
loadbalancers: true
|
23
tests/data/loadbalancer_vm.json
Normal file
23
tests/data/loadbalancer_vm.json
Normal file
@ -0,0 +1,23 @@
|
||||
{
|
||||
"os": {
|
||||
"discovery": {
|
||||
"devices": [
|
||||
{
|
||||
"sysName": "<private>",
|
||||
"sysObjectID": ".1.3.6.1.4.1.8072.3.2.10",
|
||||
"sysDescr": "Linux lbhost 4.9.182-lb1 #1 SMP Wed Jun 19 13:36:05 BST 2019 x86_64",
|
||||
"sysContact": "<private>",
|
||||
"version": null,
|
||||
"hardware": null,
|
||||
"features": null,
|
||||
"location": "<private>",
|
||||
"os": "loadbalancer",
|
||||
"type": "loadbalancer",
|
||||
"serial": null,
|
||||
"icon": "loadbalancer.svg"
|
||||
}
|
||||
]
|
||||
},
|
||||
"poller": "matches discovery"
|
||||
}
|
||||
}
|
1271
tests/snmpsim/loadbalancer_vm.snmprec
Normal file
1271
tests/snmpsim/loadbalancer_vm.snmprec
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user