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

Invoke-IcingaCheckDiskHealth Returns Inappropriate Output on Timeout #382

Open
iperry-indigex opened this issue Jan 23, 2024 · 5 comments
Open

Comments

@iperry-indigex
Copy link

If the disk health check times out after obtaining a value, it will return [OK] in the output, but because of the timeout, will return with status code 3.
image

@iperry-indigex
Copy link
Author

Anyone wanna take a shot at this?

@LordHepipud
Copy link
Collaborator

Thank you for the issue. I'm not even sure on how this can happen. Is this reproducible on a constant frame or does it happen random?

It looks to me output is written to the CLI and during that time, Icinga will read everything from the buffer and kills the plugin at the same moment. <Timeout exceeded> is an Icinga thing. Which means, the plugin output is generated and killed before exit code 0 is reached.

@iperry-indigex
Copy link
Author

iperry-indigex commented Feb 3, 2024 via email

@LordHepipud
Copy link
Collaborator

Yeah, the plugin itself reports a healthy state, but before it is exited with code 0 in this case, it is terminated by Icinga with exit code 3 and a timeout exceeded message.

Didn't even know Icinga reads plugin outputs while in a timeout scenario.

@Al2Klimov do you have an idea on how this can happen? To me it looks like the chances to win a lottery is higher than achieving this behaviour😂

@Al2Klimov
Copy link
Member

Exactly. xD But seriously, too late by 1ms is still too late, technically. So you seem to be right: #382 (comment)

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

No branches or pull requests

3 participants