[Nagiosplug-help] check_disk path truncation issue
Matthias Eble
matthias.eble at mailing.kaufland-informationssysteme.com
Mon Jan 7 08:58:33 CET 2008
Hi Mike,
Mike Lindsey wrote:
> I have a problem with check_disk v1973
hmm strange my svn version claims to be
$ ./check_disk -V
check_disk v1848 (nagios-plugins 1.4.11)
> The path to an nfs mount is being truncated if I check it with -A, causing
> the stat() to fail. If I check it explicitly with -p, it works, but still
> truncates the output of the pathname.
Handling between -p and -A slightly differs. So as a first shot,I'd
suspect gnulib (mountlist.c) to be the cause. What's your OS platform?
> Here's the df output, followed by the bad output with truss, followed by
> the explicit check output:
>
> $ df
...
> xxxx.xxxx.xxxx:/home/mga/phlog 414797610 174350584 207263218
> 46% /data/home/mga/phlog
i tested on my laptop:
./check_disk -w 50 -c 10 -A
DISK OK - free space: / 36028 MB (80% inode=96%); /var/run 505 MB (99% ...
/data/home/mga/phlog=8523MB;46886;46926;0;46936
and df:
thisis.a.veryveryverylong.hostname.and.domain:/home/mga/phlog/
46G 8.4G 36G 20% /data/home/mga/phlog
without problems.
> $ truss /usr/local/nagios/libexec/check_disk -w 20 -c 10 -A
...
> stat("/data/home/mga/p",0x805f000) ERR#2 'No such file or
in this case all by mountlist reported partitions are checked.
> $ truss /usr/local/nagios/libexec/check_disk -w 20 -c 10 -p /data/home/mga/phlog
...
> DISK OK - free space: /data/home/mga/p 2098861531865 MB (0% inode=99%);|
> /data/home/mga/p=-2147483648MB;-2147483648;-2147483648;0;-2147483648
here, your path is checked but path output comes from mountlist. But
free space is too large, though..
Please send some output of running these checks using -vvvv
this might help.
Matthias
More information about the Help
mailing list