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

Error when Repository unavailable #95

Open
sawe1900 opened this issue Dec 12, 2022 · 3 comments
Open

Error when Repository unavailable #95

sawe1900 opened this issue Dec 12, 2022 · 3 comments
Assignees

Comments

@sawe1900
Copy link

First of all, great script!! Thanks a lot!

When one of my Backup Repositories is unavailable, PRTG reports with:
XML: Structural error in xml file, 4 open items. -- JSON: The returned JSON does not match the expected structure (Invalid JSON.). (code: PE231)

Also see data result logfile attached.
Is there any way to catch this error?

Results of sensor 17494.txt

@vMarkusK
Copy link
Owner

Exception calling "SyncSpaceInfoToDb" with "2" argument(s): "[REPO-02] Failed to connect to Ins taller service."

The script tries to update the usage of each repo on runtime. This call failed for one of your repos.

@sawe1900
Copy link
Author

Exception calling "SyncSpaceInfoToDb" with "2" argument(s): "[REPO-02] Failed to connect to Ins taller service."

The script tries to update the usage of each repo on runtime. This call failed for one of your repos.

Yes, correct. Is it possible to catch this error and display it correctly in the PRTG sensor instead of the JSON error?

@vMarkusK vMarkusK self-assigned this Dec 22, 2022
@vMarkusK
Copy link
Owner

I will have a look at it. The "SyncSpaceInfoToDb" call is pretty often involved in problems, so it might be a great enhancement.

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

No branches or pull requests

2 participants