[Nagiosplug-devel] check_disk failure in nagios-plugins

Thomas Guyot-Sionnest dermoth at aei.ca
Fri Dec 7 07:05:30 CET 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 06/12/07 12:42 PM, Slawomir Ragan wrote:
> Hi,
>  
> my colleague asked me to have a look in the source code becuse he got
> failure with check_disk.
> I think it is more efficient to ask you :)
>  
> Environment:
> z/Linux under z/Series
> SLES9 servers with the newest SUSE Linux patches
> nagios-plugins-1.3.1-270.13

That release is +4 years old. You should be very careful about changes
in plugins behavior. Reading --help of the plugins should help too...

> If he try the check_disk command now (after the update) he will get the
> failure: 
> /usr/lib/nagios/plugins/check_disk -p /dev/dasda1 -w 20% -c 10%
> Disk "/dev/dasda1" not mounted or nonexistant.
>  
> Before the update it was working fine:
> /usr/lib/nagios/plugins/check_disk -p /dev/dasda1 -w 20% -c 10%
> Disk "/dev/dasda1" not mounted or nonexistant.

As Andreas pointed out you probably didn't pasted the output correctly...

> Any Idea? Thank you in advance. Slawomir Ragan

AFAIK a device used to work in a very distant past, but as --help says
- -p wants a path or partition to determine the device. On my system
trying /dev/something works but returns the device usage for /dev!

If it still doesn't work with the mount point you want to check, please
port the full output of check_disk with "-vvv" added. If you can get the
output before and after the upgrade that would be nice too.

Thanks,

Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHWOKq6dZ+Kt5BchYRAolCAKCq2nPFN1LFpWtquoRvtXshv9U6nQCfRTsD
KyuHUVU7FW/cEYGqcx1Ez20=
=54H/
-----END PGP SIGNATURE-----




More information about the Devel mailing list