[Nagiosplug-help] check_disk 1.7 problem: Disk "/dev/sda3" n ot mounted or nonexistant
Voon, Ton
Ton.Voon at egg.com
Tue Jul 15 03:09:15 CEST 2003
Jan,
The latest CVS version of check_disk (due for release 1.4) will not use df
to work out disk sizes - it uses C routines to get that data.
Please try the snapshot at http://nagiosplug.sourceforge.net/snapshot .
Ton
> -----Original Message-----
> From: Jan-Hendrik Palic [mailto:jhp at addix.net]
> Sent: Tuesday, July 15, 2003 10:48 AM
> To: nagiosplug-help at lists.sourceforge.net
> Subject: Re: [Nagiosplug-help] check_disk 1.7 problem: Disk
> "/dev/sda3" not mounted or nonexistant
>
>
> Hi ..
>
> On Sat, Jul 05, 2003 at 07:27:49PM +0200, Justin Albstmeijer wrote:
> >
> >fixed it,
> >
> >I used a modified spec file that had the following configure option:
> >
> >--with-df-command="df"
> >
> >Removed this line, build de rpm again, problem solved..
>
> not for me ;(
> I got an undefined DF_COMMAND while building ;(.
>
> But --with-df-command="df -T" it works .. (on Debian ;) ).
>
> But I discovered another problem for me. Have a look:
>
> |troi:~$df -haT
> |Filesystem Type Size Used Avail Use% Mounted on
> |/dev/hda2 ext2 186M 122M 55M 70% /
> |proc proc 0 0 0 - /proc
> |devpts devpts 0 0 0 - /dev/pts
> |/dev/hda1 ext2 43M 11M 30M 27% /boot
> |/dev/datavg/usr
> | xfs 2,5G 1,3G 1,3G 51% /usr
> |/dev/datavg/var
> | xfs 2,5G 610M 1,9G 25% /var
> |/dev/datavg/home
> | xfs 996M 961M 36M 97% /home
> |/dev/datavg/compile
> | xfs 5,9G 5,7G 206M 97% /mnt/compile
> |troi:~$/mnt/compile/woody_build_chroot/home/palic/nagios/nagi
> os_debian_addix_package/nagiosplug-1.3/plugins/check_disk -w
> 20% -c 10% /
> |DISK OK [55676 kB (30%) free on /dev/hda2]
> |troi:~$/mnt/compile/woody_build_chroot/home/palic/nagios/nagi
> os_debian_addix_package/nagiosplug-1.3/plugins/check_disk -w
> 20% -c 10% /usr
> |Unable to read output:
> |/bin/df -T /usr
> |/dev/datavg/usr
>
> It seems, that this Plugin can only parse the df output right, when we
> have no newline. If the partition is too long for the
> coloumn, df breaks
> the line, check_disk cannot handle it ;(
>
> Regards
> Jan
This private and confidential e-mail has been sent to you by Egg.
The Egg group of companies includes Egg Banking plc
(registered no. 2999842), Egg Financial Products Ltd (registered
no. 3319027) and Egg Investments Ltd (registered no. 3403963) which
carries out investment business on behalf of Egg and is regulated
by the Financial Services Authority.
Registered in England and Wales. Registered offices: 1 Waterhouse Square,
138-142 Holborn, London EC1N 2NA.
If you are not the intended recipient of this e-mail and have
received it in error, please notify the sender by replying with
'received in error' as the subject and then delete it from your
mailbox.
More information about the Help
mailing list