Skip to content

fortigate_exporter REST API #298

Open
@daniynwa

Description

@daniynwa

I have done testing with

curl 'localhost:9710/probe?target=https://192.168.2.31&token=ghi6eItWzWewgbrFMsazvBVwDjZzzb'

but I get the following error:

2024/09/18 07:19:04 FortigateExporter 1.24.1-1-g2aaf029 ( 2aaf029 )

2024/09/18 07:19:04 Loaded 1 API keys

2024/09/18 07:19:04 Fortigate exporter running, listening on ":9710"

2024/09/18 07:20:39 Error: API connectivity test failed, Get "https://10.11.10.100:21443/api/v2/monitor/system/status": x509: certificate signed by unknown authority

2024/09/18 07:20:39 Probe of "https://10.11.10.100:21443" failed, took 3.104 seconds

fortigate-key.yaml

auth_keys:
"https://10.11.10.100:21443":
token: api-key-goes-here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions