centreon / centreon-plugins

Collection of standard plugins to discover and gather cloud-to-edge metrics and status across your whole IT infrastructure.
https://www.centreon.com
Apache License 2.0
311 stars 274 forks source link

new plugin for FortiAnalyzer #2028

Closed joschi99 closed 4 years ago

joschi99 commented 4 years ago

It should be nice to have a plugin for FortiAnalyzer to monitor

FortiAnalyzer.zip

garnier-quentin commented 4 years ago

Have you tried the plugin fortimanager ? It should be ok

joschi99 commented 4 years ago

You are right, it seems working, I need to check only mode=device-status, because output is like:

Device 'xxx' Status : none, Connection Status : unknown, DB Status : unknown, Configuration Status : unknown
Device 'xxx' Status : none, Connection Status : unknown, DB Status : unknown, Configuration Status : unknown
Device 'xxx' Status : none, Connection Status : unknown, DB Status : unknown, Configuration Status : unknown
Device 'xxx' Status : none, Connection Status : unknown, DB Status : unknown, Configuration Status : unknown
Device 'xxx' Status : none, Connection Status : unknown, DB Status : unknown, Configuration Status : unknown
Device 'xxx' Status : none, Connection Status : unknown, DB Status : unknown, Configuration Status : unknown
Device 'xxx' Status : none, Connection Status : unknown, DB Status : unknown, Configuration Status : unknown
Device 'xxx' Status : none, Connection Status : unknown, DB Status : modified, Configuration Status : unknown
Device 'xxx' Status : none, Connection Status : unknown, DB Status : modified, Configuration Status : unknown
garnier-quentin commented 4 years ago

I have followed the mib. Look that OID: .1.3.6.1.4.1.12356.103.6.2.1.15

joschi99 commented 4 years ago

I got these results:

SNMPv2-SMI::enterprises.12356.103.6.2.1.15.1 = INTEGER: 0
SNMPv2-SMI::enterprises.12356.103.6.2.1.15.2 = INTEGER: 0
SNMPv2-SMI::enterprises.12356.103.6.2.1.15.3 = INTEGER: 0
SNMPv2-SMI::enterprises.12356.103.6.2.1.15.4 = INTEGER: 0
SNMPv2-SMI::enterprises.12356.103.6.2.1.15.5 = INTEGER: 0
SNMPv2-SMI::enterprises.12356.103.6.2.1.15.6 = INTEGER: 0
SNMPv2-SMI::enterprises.12356.103.6.2.1.15.7 = INTEGER: 0
SNMPv2-SMI::enterprises.12356.103.6.2.1.15.8 = INTEGER: 0
SNMPv2-SMI::enterprises.12356.103.6.2.1.15.9 = INTEGER: 0

Sure that 0 is "none"?

joschi99 commented 4 years ago

And it should be interessting to check HA status image

garnier-quentin commented 4 years ago

It's 'none': Device 'xxx' Status : none

none (0),
unknown (1),
checked-in (2),
in-progress (3),
installed (4),
aborted (5),
sched (6),
retry (7),
canceled (8),
pending (9),
retrieved (10),
changed-conf (11),
sync-fail (12),
timeout (13),
rev-reverted (14),
auto-updated (15)
garnier-quentin commented 4 years ago

If you want the ha mode. I need snmpwalk for: .1.3.6.1.4.1.12356.103.9

joschi99 commented 4 years ago
SNMPv2-SMI::enterprises.12356.103.9.1.1.0 = INTEGER: 0
SNMPv2-SMI::enterprises.12356.103.9.1.2.0 = INTEGER: 1
SNMPv2-SMI::enterprises.12356.103.9.1.3.0 = INTEGER: 0
SNMPv2-SMI::enterprises.12356.103.9.1.3.0 = No more variables left in this MIB View (It is past the end of the MIB tree)
garnier-quentin commented 4 years ago

It's a standalone device. Do you have with ha configured ?

joschi99 commented 4 years ago

Not at yet

garnier-quentin commented 4 years ago

You could open it when you have it!