-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
disk-usage: handle disk accessibility #792
Comments
I am providing the fixed code which would resolve this issue:
|
Example output:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This issue respects the following points:
Which variant of the Monitoring Plugins do you use?
Bug description
At the moment any disk which is not accessible throws an ugly error such as:
Please add some error checking if the disk is not accessible in terms of disk-usage everything is fine so please skip the non accessible disks. Would like the check to be ok with maybe a not accessible message but not what currently happens where the check goes into unknown for all disks with Traceback errors. We get this a lot on windows systems.
Steps to reproduce - Plugin call
'C:\ProgramData\icinga2\usr\lib64\nagios\plugins\disk-usage.exe' '--critical' '96%USED' '--include-pattern' 'C:\ClusterStorage'
Steps to reproduce - Data
Run check on any disk which is present but not accessible.
Environment
Mainly windows servers
Plugin Version
any
Python version
3.12
List of Python modules
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: