-
Notifications
You must be signed in to change notification settings - Fork 79
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
Fortigate-exporter exception error report #266
Comments
Can you attach the full log? Right now it is only possible to see half the error stack trace. |
To reiterate, my version is as follows: Fortigate_exporter Version: 1.23.2 Now I use
Then I used the command
By the way, besides the above two ways to view logs, are there any other ways? @bluecmd |
Perfect, thanks! Here is the issue at hand: fortigate_exporter/pkg/probe/system_resources_usage.go Lines 61 to 66 in 99e11c0
Seems like @happinesslijian Are you comfortable patching and compiling the fortigate exporter yourself? I would suggest adding a print before this code so we can see how the API response looks like when things break for you. |
@bluecmd I've done it and compiled it as you asked, adding the print operation on line 61
I try to access
Please help me check where the problem occurs. Thank you. @bluecmd |
Fixes #266 Signed-off-by: Christian Svensson <[email protected]>
From your investigations, this seems to be the weird response:
This seems like a bug in FortiOS producing empty resources. We can ignore those replies, or we can retry the fetch. Can you try the patch in PR #269 to see if it makes things work any better? |
Hello, @bluecmd I have rebuilt Fortigate-exporter according to your method and it is running. The problem still exists. The detailed log is as follows:
|
Hello, @bluecmd is there any other solution? My problem here still exists.😣 |
@happinesslijian Given the API responses you have shown there is nothing the exporter can do - your fortigate returns invalid data. As long as it does that, we cannot produce metrics. I would suggest opening an issue with Fortinet and/or upgrading FortiOS version and see if the problem goes away. |
I have filtered as follows, it was fine at first, but after waiting for a while, the following problem occurred. I'm not sure how to solve this problem. I read related issues. My prometheus fetches every 30 seconds.
This bothers me a lot, I don’t know what the problem is 😣Fortigate exporter service sometimes works well and sometimes bad
The intuitive feeling is that the fortigate-exporter service is normal for a while and abnormal for a while. I'm not sure how to solve this problem. Need your help thanks.
The text was updated successfully, but these errors were encountered: