mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Added Fortigate state sensors (#9520)
* Added Fortigate state sensors * Added snmprec file * Update fortigate.json * Fix "awesome" ifHighSpeed implementation... * Update fortigate.json * better MAX_INT ifHighSpeed fix * update for new ifType changes * ifDescr is not used correctly like most fortinets
This commit is contained in:
@@ -572,6 +572,11 @@ foreach ($ports as $port) {
|
||||
}
|
||||
}
|
||||
|
||||
// work around invalid values for ifHighSpeed (fortigate)
|
||||
if ($this_port['ifHighSpeed'] == 4294901759) {
|
||||
$this_port['ifHighSpeed'] = null;
|
||||
}
|
||||
|
||||
if (isset($this_port['ifHighSpeed']) && is_numeric($this_port['ifHighSpeed'])) {
|
||||
d_echo('ifHighSpeed ');
|
||||
$this_port['ifSpeed'] = ($this_port['ifHighSpeed'] * 1000000);
|
||||
|
Reference in New Issue
Block a user