fortigate_exporter
fortigate_exporter copied to clipboard
probe issue
after running ./fortigate-exporter -auth-file fortigate-key.yaml
I got 2024/07/18 17:06:27 Probe of "https://myforti.com" failed, took 0.014 seconds 2024/07/18 17:06:42 Error: API connectivity test failed, Get "https://myforti.com/api/v2/monitor/system/status": tls: failed to verify certificate: x509: certificate signed by unknown authority
Also mine was:
API connectivity test failed, Get "https://xxx.xxx.xxx.xx/api/v2/monitor/system/status": x509: certificate is not valid for any names, but wanted to match xxx.xxx.xxx.xx
Th solution is : with valid certificate ./fortigate-exporter -auth-file fortigate-key.yaml -extra-ca-certs certificate.pem or to turn off security ./fortigate-exporter -auth-file fortigate-key.yaml -insecure Enjoy