mirror of
https://github.com/librenms/librenms.git
synced 2024-09-21 10:28:13 +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:
parent
b67634bc5a
commit
d7a04f8cb7
@ -6,3 +6,15 @@ modules:
|
||||
oid: fgSysCpuUsage
|
||||
num_oid: '.1.3.6.1.4.1.12356.101.4.1.3.{{ $index }}'
|
||||
type: fortigate-fixed
|
||||
sensors:
|
||||
state:
|
||||
data:
|
||||
-
|
||||
oid: fgHwSensors
|
||||
num_oid: '.1.3.6.1.4.1.12356.101.4.3.2.1.4.{{ $index }}'
|
||||
index: 'fgHwSensorEntIndex.{{ $index }}'
|
||||
descr: fgHwSensorEntName
|
||||
value: fgHwSensorEntAlarmStatus
|
||||
states:
|
||||
- { value: 0, descr: OK, graph: 1, generic: 0 }
|
||||
- { value: 1, descr: ERROR, graph: 1, generic: 2 }
|
||||
|
@ -5,6 +5,7 @@ icon: fortinet
|
||||
mib_dir:
|
||||
- fortinet
|
||||
empty_ifdescr: true
|
||||
ifname: true
|
||||
over:
|
||||
- { graph: device_bits, text: 'Device Traffic' }
|
||||
- { graph: device_fortigate_cpu, text: 'CPU Usage' }
|
||||
|
@ -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);
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user