You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
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
The text was updated successfully, but these errors were encountered: