22 Jun
2015
22 Jun
'15
9:09 a.m.
I suppose the workaround for the problem can be - rewrite shell script calling df.
call df ... command a) in background b) redirecting output to some temp-file c) saving child process PID to variable
checking in loop the process still running if still running (can check with ps command) then sleep for 1 sec. or so and go to next check iteration if not running - exit loop and check the output if count of checks (iterations) more then N (defined in configuration), then end checking - raise the red status for disk
df is called twice - for space and for inodes - then implement it as shell function
Best regards,
Andrey Chervonets
SIA CoMinder http://www.cominder.eu/