[Nagiosplug-help] check_disk fails on line feed

Rasmus Plewe rplewe at ess.nec.de
Thu Nov 28 11:02:02 CET 2002


Hello,

when calling check_disk, I get:

./check_disk --warning=20% --critical=1%
Unable to read output:
/bin/df -Pk 
donner:/export/home/abcd

A "df -Pk" results in a 
[lines you would expect]
donner:/export/home/abcd
                          39G      24G      15G     61% /nfs/donner/home/abcd
[lines you would expect]

So: df introduces a line feed check_disk is not able to handle. 

I can currently live with the workaround to do a 
./check_disk -p "fs1 fs2 fs3" --warning=20% --critical=1% 
since I don't need to monitor the (two) line-feeding file systems, but
this is not very elegant, and in the end I would prefer that I don't
need to specify the file systems (as they may and willchange). 

Or, even better, I would like to be able to do some "-p pattern" that
checks all file systems with "pattern" in path/partition. 

Since I'm really no programmer, I would be very willing to volunteer
as tester for someone who improves the plugin... ;-)


Regards,
         Rasmus




More information about the Help mailing list