mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Added detection for CoreOS devices (#8899)
DO NOT DELETE THIS TEXT #### Please note > Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting. - [ ] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/) #### Testers If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926`
This commit is contained in:
35
tests/data/coreos.json
Normal file
35
tests/data/coreos.json
Normal file
@@ -0,0 +1,35 @@
|
||||
{
|
||||
"os": {
|
||||
"discovery": {
|
||||
"devices": [
|
||||
{
|
||||
"sysName": "",
|
||||
"sysObjectID": ".1.3.6.1.4.1.8072.3.2.10",
|
||||
"sysDescr": "Linux coreos 4.14.48-coreos-r2 #1 SMP Thu Jun 14 08:23:03 UTC 2018 x86_64",
|
||||
"sysContact": null,
|
||||
"version": null,
|
||||
"hardware": "",
|
||||
"features": null,
|
||||
"location": null,
|
||||
"os": "coreos",
|
||||
"type": "server",
|
||||
"serial": null,
|
||||
"icon": "coreos.svg"
|
||||
}
|
||||
]
|
||||
},
|
||||
"poller": "matches discovery"
|
||||
},
|
||||
"bgp-peers": {
|
||||
"discovery": {
|
||||
"devices": [
|
||||
{
|
||||
"bgpLocalAs": null
|
||||
}
|
||||
],
|
||||
"bgpPeers": [],
|
||||
"bgpPeers_cbgp": []
|
||||
},
|
||||
"poller": "matches discovery"
|
||||
}
|
||||
}
|
||||
2
tests/snmpsim/coreos.snmprec
Normal file
2
tests/snmpsim/coreos.snmprec
Normal file
@@ -0,0 +1,2 @@
|
||||
1.3.6.1.2.1.1.1.0|4|Linux coreos 4.14.48-coreos-r2 #1 SMP Thu Jun 14 08:23:03 UTC 2018 x86_64
|
||||
1.3.6.1.2.1.1.2.0|6|.1.3.6.1.4.1.8072.3.2.10
|
||||
Reference in New Issue
Block a user