device: Added Hillstone StoneOs detection (#7982)

* Added support for stoneOs

* added Hillstone logo

* added snmp tests

* Updated logo and image

* Removed unnecessary sysdescr match.

* Fix format.

* Removed svg atributes

* Svg files reduced.

* Added test data.

* fixed sysObjectId -> sysObjectID

* Updated test json
This commit is contained in:
Alan Gregory 2018-01-08 19:48:29 -02:00 committed by Neil Lathwood
parent c14acfd410
commit a7aaf11213
5 changed files with 60 additions and 0 deletions

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 118.7 38.9"><g fill="#0A417D"><path d="M118 16.8c-1.1 2-2.5 3.6-4.2 4.7-1.7 1.1-3.4 1.7-5.3 1.7-1.1 0-2-.2-3-.6-.9-.4-1.7-1-2.3-1.8-.7-.8-1.1-1.7-1.4-2.8-.3-1-.3-2.1-.2-3.3.2-1.1.5-2.2 1.1-3.3.5-1 1.3-1.9 2.2-2.8.9-.8 1.8-1.4 2.8-1.8 1-.4 2.1-.6 3.2-.6 1.6 0 3 .4 4.2 1.3 1.2.9 2 2.2 2.6 3.8l-8.5 5.4-1.5-3 4.6-3c-.2-.2-.5-.3-.8-.4-.3-.1-.6-.1-.9-.1-1 0-1.9.4-2.7 1.1-.8.8-1.3 1.7-1.4 2.8-.2 1.1.1 2.1.6 2.9.6.8 1.4 1.2 2.3 1.2.9 0 1.8-.3 2.7-.9.9-.6 1.7-1.4 2.4-2.5l3.5 2M28.1 3.3c-.1.7-.7 1.3-1.4 1.3h-2.1c-.7 0-1.2-.6-1.1-1.3l.3-2.1c0-.6.7-1.2 1.4-1.2h2.1c.7 0 1.2.6 1.1 1.3l-.3 2M22.1 0l-.2 1-3 21.1-.1 1h-4.9l1.3-9.6H6.3l-1.4 9.6H0l.1-1 3-21L3.3 0h4.9L6.8 9.4h9L17.1 0h5M23 6.3h4.7l-2.4 16.9h-4.6L23 6.3M31.8 23.2h-4.7L30.4 0h4.7l-3.3 23.2M63.9 9.9h4.3l.5-3.6h-4.3l.9-6.3h-3.6s-.3 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.2.5.3.7.5.2.2.4.5.7 1l.7 1.2H86l-1-1.4c-.3-.5-.5-.8-.6-.9-.1-.1-.2-.2-.4-.3-.1 0-.3-.1-.6-.1h-.2v2.5H82m1.2-3.4h.9c.6 0 .9 0 1.1-.1.1 0 .3-.1.3-.2.1-.1.1-.3.1-.5s-.1-.4-.2-.5c0-.1-.2-.1-.4-.2h-1.8v1.5zM98.1 38.9v-6h1.2v2.7l2.4-2.7h1.7l-2.3 2.3 2.4 3.7h-1.6l-1.6-2.8-1 1v1.8h-1.2"/></g></svg>

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22.1 23.1"><path fill="#0a417d" d="M22.1 0l-.2 1-3 21.1-.1 1h-4.9l1.3-9.6H6.3l-1.4 9.6H0l.1-1 3-21L3.3 0h4.9L6.8 9.4h9L17.1 0h5"/></svg>

After

Width:  |  Height:  |  Size: 189 B

View File

@ -0,0 +1,11 @@
os: stoneos
text: Hillstone StoneOs
type: network
icon: hillstone
group: hillstone
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.28557.1

40
tests/data/stoneos.json Normal file
View File

@ -0,0 +1,40 @@
{
"os": {
"discovery": {
"devices": [
{
"sysName": "<private>",
"sysObjectID": ".1.3.6.1.4.1.28557.1.126",
"sysDescr": "Hillstone Security Appliance SG-6000-E3965",
"sysContact": null,
"version": null,
"hardware": "",
"features": null,
"location": null,
"os": "stoneos",
"type": "network",
"serial": null,
"icon": "hillstone.svg"
}
]
},
"poller": {
"devices": [
{
"sysName": "<private>",
"sysObjectID": ".1.3.6.1.4.1.28557.1.126",
"sysDescr": "Hillstone Security Appliance SG-6000-E3965",
"sysContact": "<private>",
"version": null,
"hardware": "",
"features": null,
"location": "<private>",
"os": "stoneos",
"type": "network",
"serial": null,
"icon": "hillstone.svg"
}
]
}
}
}

View File

@ -0,0 +1,7 @@
1.3.6.1.2.1.1.1.0|4|Hillstone Security Appliance SG-6000-E3965
1.3.6.1.2.1.1.2.0|6|.1.3.6.1.4.1.28557.1.126
1.3.6.1.2.1.1.3.0|67|27582800
1.3.6.1.2.1.1.4.0|4|<private>
1.3.6.1.2.1.1.5.0|4|<private>
1.3.6.1.2.1.1.6.0|4|<private>
1.3.6.1.6.3.10.2.1.3.0|2|275800