[Xymon] df hanging will cause xymon-client to hang.
Andrey Chervonets
A.Chervonets at cominder.eu
Mon Jun 22 11:09:53 CEST 2015
I suppose the workaround for the problem can be - rewrite shell script
calling df.
1) call df ... command a) in background b) redirecting output to some
temp-file c) saving child process PID to variable
2) 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
3) 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/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20150622/3ef41c86/attachment.html>
More information about the Xymon
mailing list