From 314a5524378125e719f752b9afb015c2b340c40e Mon Sep 17 00:00:00 2001 From: vivia11 Date: Wed, 28 Mar 2018 22:54:02 -0600 Subject: [PATCH] devices: Add Phybridge OS support (#8456) * OS yaml definition for Phybridge * Add images and snmp data * Removed width/height from svg and added more specific discovery for phybridge * Minimized svg and inverted icon * added json test file * update to json file * Changing os name: phybridge to phybridge-flex * Update json file to phybridge-flex * Remove unneeded test data --- html/images/logos/phybridge.svg | 1 + html/images/os/phybridge.svg | 1 + includes/definitions/phybridge-flex.yaml | 16 ++++++++++ tests/data/phybridge-flex.json | 40 ++++++++++++++++++++++++ tests/snmpsim/phybridge-flex.snmprec | 7 +++++ 5 files changed, 65 insertions(+) create mode 100644 html/images/logos/phybridge.svg create mode 100644 html/images/os/phybridge.svg create mode 100644 includes/definitions/phybridge-flex.yaml create mode 100644 tests/data/phybridge-flex.json create mode 100644 tests/snmpsim/phybridge-flex.snmprec diff --git a/html/images/logos/phybridge.svg b/html/images/logos/phybridge.svg new file mode 100644 index 0000000000..35726d7d29 --- /dev/null +++ b/html/images/logos/phybridge.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/html/images/os/phybridge.svg b/html/images/os/phybridge.svg new file mode 100644 index 0000000000..e06ceb1802 --- /dev/null +++ b/html/images/os/phybridge.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/includes/definitions/phybridge-flex.yaml b/includes/definitions/phybridge-flex.yaml new file mode 100644 index 0000000000..4e5d51134a --- /dev/null +++ b/includes/definitions/phybridge-flex.yaml @@ -0,0 +1,16 @@ +os: phybridge-flex +text: 'NVT Phybridge' +icon: phybridge +type: network +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 + sysDescr: + - Phybridge FLEX + + diff --git a/tests/data/phybridge-flex.json b/tests/data/phybridge-flex.json new file mode 100644 index 0000000000..8e4065ac9f --- /dev/null +++ b/tests/data/phybridge-flex.json @@ -0,0 +1,40 @@ +{ + "os": { + "discovery": { + "devices": [ + { + "sysName": "", + "sysObjectID": ".1.3.6.1.4.1.8072.3.2.10", + "sysDescr": "Phybridge FLEX 24 Switch 7.0.0", + "sysContact": null, + "version": null, + "hardware": "", + "features": null, + "location": null, + "os": "phybridge-flex", + "type": "network", + "serial": null, + "icon": "phybridge.svg" + } + ] + }, + "poller": { + "devices": [ + { + "sysName": "", + "sysObjectID": ".1.3.6.1.4.1.8072.3.2.10", + "sysDescr": "Phybridge FLEX 24 Switch 7.0.0", + "sysContact": "", + "version": null, + "hardware": "", + "features": null, + "location": "", + "os": "phybridge-flex", + "type": "network", + "serial": null, + "icon": "phybridge.svg" + } + ] + } + } +} diff --git a/tests/snmpsim/phybridge-flex.snmprec b/tests/snmpsim/phybridge-flex.snmprec new file mode 100644 index 0000000000..6c6bdd3c10 --- /dev/null +++ b/tests/snmpsim/phybridge-flex.snmprec @@ -0,0 +1,7 @@ +1.3.6.1.2.1.1.1.0|4|Phybridge FLEX 24 Switch 7.0.0 +1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.8072.3.2.10 +1.3.6.1.2.1.1.3.0|67|473281131 +1.3.6.1.2.1.1.4.0|4| +1.3.6.1.2.1.1.5.0|4| +1.3.6.1.2.1.1.6.0|4| +1.3.6.1.6.3.10.2.1.3.0|2|4732811