Open
Description
I created the account for accessing the rest api, there here is the accprofile configuration
FW1 # show system accprofile monitor
config system accprofile
edit "monitor"
set secfabgrp read
set ftviewgrp read
set authgrp read
set sysgrp custom
set netgrp custom
set loggrp custom
set fwgrp custom
set vpngrp read
set utmgrp read
set wifi read
config netgrp-permission
set cfg read
set route-cfg read
end
config sysgrp-permission
set cfg read
end
config fwgrp-permission
set policy read
set others read
end
config loggrp-permission
set config read
end
next
end
Error:
2024/08/29 07:54:51 FortigateExporter 1.24.1 ( c104cfe )
2024/08/29 07:54:51 Loaded 1 API keys
2024/08/29 07:54:51 Fortigate exporter running, listening on ":9710"
2024/08/29 07:55:22 Warning: Failed to map "" to policy config - this should not happen
....
2024/08/29 07:55:22 Warning: Failed to map "" to policy config - this should not happen
2024/08/29 07:55:22 Error: Response code was 424, expected 200 (path: "api/v2/monitor/log/fortianalyzer")
2024/08/29 07:55:22 Error: Response code was 404, expected 200 (path: "api/v2/monitor/system/fortimanager/status")
2024/08/29 07:55:22 Error: Response code was 404, expected 200 (path: "api/v2/monitor/switch-controller/managed-switch")
2024/08/29 07:55:22 Probe of "https://10.10.10.10" failed, took 0.894 seconds
Then I tried:
apiVersion: v1
kind: ConfigMap
metadata:
name: prometheus-config-file
namespace: it
data:
fortigate-key.yaml: |
"https://10.10.10.10":
token: the-super-secure-token
probes:
exclude:
- System/Fortimanager/Status
- System/Fortimanager/Status
- Log/Fortianalyzer/Status
- Switch/ManagedSwitch
but i still get this error:
2024/08/29 07:55:22 Warning: Failed to map "" to policy config - this should not happen
Metadata
Metadata
Assignees
Labels
No labels