mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Add support for Firebrick Hardware (#9403)
* Added support for Firebrick devices * Added support for Firebrick devices * Update firebrick.inc.php * Update firebrick.inc.php * Update firebrick.svg * Update firebrick.svg * Added SNMP Check * Added SVG View Box * Display XML in config tab * Update firebrick.svg * Update firebrick.yaml * Update showconfig.inc.php * Create firebrick.json
This commit is contained in:
11
includes/definitions/firebrick.yaml
Normal file
11
includes/definitions/firebrick.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
os: firebrick
|
||||
text: 'Firebrick'
|
||||
type: network
|
||||
icon: firebrick
|
||||
group: firebrick
|
||||
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.24693.1.
|
5
includes/polling/os/firebrick.inc.php
Normal file
5
includes/polling/os/firebrick.inc.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
if (preg_match('/^(FB[0-9]{4}).*\((.*)\).*$/m', $device['sysDescr'], $regexp_result)) {
|
||||
$hardware = $regexp_result[1];
|
||||
$version = $regexp_result[2];
|
||||
}
|
Reference in New Issue
Block a user