df hanging will cause xymon-client to hang.
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/
4020
Age (days ago)
4020
Last active (days ago)
0 comments
1 participants
participants (1)
-
A.Chervonets@cominder.eu