Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

probe issue #292

Open
hrazaka opened this issue Jul 18, 2024 · 2 comments
Open

probe issue #292

hrazaka opened this issue Jul 18, 2024 · 2 comments

Comments

@hrazaka
Copy link

hrazaka commented Jul 18, 2024

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

@fulopbencus
Copy link

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

@hrazaka
Copy link
Author

hrazaka commented Jul 31, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants