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

SecurityCert plugin error #3398

Open
rahulguptajss opened this issue Dec 19, 2024 · 1 comment · May be fixed by #3410
Open

SecurityCert plugin error #3398

rahulguptajss opened this issue Dec 19, 2024 · 1 comment · May be fixed by #3410
Assignees
Labels

Comments

@rahulguptajss
Copy link
Contributor

time=2024-12-13T18:42:04.559Z level=ERROR source=certificate.go:87 msg="Failed to collect admin SVM's serial number" Poller=xxxxx plugin=Rest:Certificate object=SecurityCert error="failed to fetchAll href=api/private/cli/security/ssl..., hrefLength=87 err=error making request StatusCode: 400, Message: The expression is missing a value, Code: 262194, Target: vserver, API: /api/private/cli/security/ssl?fields=serial&max_records=500&return_records=true&vserver="

Identified in error logs @ https://upload.nabox.org/zybo-newi-hoyu

@Hardikl
Copy link
Contributor

Hardikl commented Jan 7, 2025

The logs were expired, As per the investigation, the error came from here:
https://github.com/NetApp/harvest/blob/main/cmd/collectors/rest/plugins/certificate/certificate.go#L87

The reason would be admin vserver is empty and error out as The expression is missing a value, which means api api/private/cli/vserver would not be returning the admin svm name(which is surprisingly not possible), but as a safeguard we can add check not to proceed if admin svm name is empty.

@Hardikl Hardikl linked a pull request Jan 7, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants