check_disk

Rasmus Plewe rplewe at hpce.nec.com
Mon Mar 17 18:02:44 CET 2003


On Mon, Mar 17, 2003 at 05:32:49PM +0200, Paul Clayton wrote:
> 
> Running check_disk on an HP server that uses long volume names such as
> /dev/vgraid01/lvol1, causes nagios to report "Unable to read output:"
> I discovered that the problem is because the output line of the df command
> extends to two lines due to the long device name. Anybody got  awork around
> on this one.

I did a small workaround for e.g. that reason:

$ cat check_local_disk.sh

#!/bin/sh
# Local disk checking for cs nodes
FSLIST=`df -hl | grep dev | cut -f1 -d" " | tr "\n" " "`

/path/to/nagios_plugins/check_disk -w $1 -c $2 -p "$FSLIST"

This checks all locally mounted file systems at once, the "grep dev"
part preventing problems with line splits. Be aware that the "df -hl"
is system dependent. 


Rasmus


-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list