Monitorizar FortiGate com o DumbMonit
A Fortinet firewall through the FortiOS REST API: IPsec tunnels down, interfaces without link, HA out of sync, memory near conserve mode, FortiGuard licences expiring.
DocumentaçãoSite oficial: FortiGate
As descrições estão em inglês, como no produto. Os rótulos da página seguem o seu idioma.
O que o DumbMonit vigia
A Fortinet FortiGate through the FortiOS REST API: site-to-site IPsec tunnels that are down, enabled interfaces that lost their link, an HA cluster out of sync or short of a member, memory approaching conserve mode, FortiGuard and FortiCare licences expiring, and patch releases offered for the running FortiOS branch. DumbMonit uses a REST API user whose access profile only reads, and which only accepts calls from the DumbMonit server's address (trusted host). Its token is sent as Authorization: Bearer, never in the URL: FortiOS 7.4.5 and 7.6.1 refuse it there anyway.
Utilização típica. Firewall: IPsec tunnels, links, HA sync, conserve mode, FortiGuard licences
Exemplos
- FortiGate 40F / 60F / 100F
- FortiGate VM
- FortiOS 7.x
Como se liga
O que precisa
- API tokenThe token of the dumbmonit REST API user, sent as a bearer token.
Portas de rede a abrir
443/TCPAdministration API (HTTPS, default)
Passos de configuração: Create a read-only REST API user for DumbMonit
System → Admin Profiles → Create New: name the profile as follows and set the access permissions listed below, everything else None.
dumbmonit-roSystem → Administrators → Create New → REST API Admin: name it as follows and pick that profile.
dumbmonitUnder Trusted Hosts, enter the DumbMonit server's address with a /32 mask: FortiGate refuses 0.0.0.0/0.
Click OK: FortiGate shows the API token once. Copy it.
In DumbMonit, enter the FortiGate address (fw.lan) and paste the token as API token.
Atenção. FortiGate ships a self-signed certificate: tick "Accept an unverifiable certificate" unless you installed your own.