Exceptions in check_drivespace
Posted: Tue Jan 19, 2021 11:33 am
Apologies if this has been discussed already, I've done a search but I can't see the exact issue I'm having.
I want to check 1 out of 4 drives on a Windows server at a different level to the other 3 using check_diskspace.
I thought I could use something like -
But no matter where you put the "exclude=d:" part of the command, it excludes it from the entire check, so the second part (checking d: at 5% and 3%) doesn't happen.
The only option I've found so far is to do each drive individually like this -
But a) that's fairly cumbersome, especially with multiple drives and b) the check then won't automatically detect when a new drive is added. I have this check running across multiple servers too, so the inconsistency would be an issue.
Am I missing an option or an argument in the command that would be useful here?
Thanks in advance for your help.
I want to check 1 out of 4 drives on a Windows server at a different level to the other 3 using check_diskspace.
I thought I could use something like -
Code: Select all
check_drivesize mounted filter=type='fixed' crit=free<5% warn=free<10% drive=* exclude=d: crit=free<3% warn=free<5% drive=d:
The only option I've found so far is to do each drive individually like this -
Code: Select all
check_drivesize crit=free<5% warn=free<10% drive=c: crit=free<3% warn=free<5% drive=d: [...]
Am I missing an option or an argument in the command that would be useful here?
Thanks in advance for your help.