[Nagiosplug-devel] [ nagiosplug-Bugs-1540327 ] check_disk C_IDFP/W_IDFP inputerror, affects 1.4.3 not 1.4.2
SourceForge.net
noreply at sourceforge.net
Tue Aug 15 03:25:34 CEST 2006
Bugs item #1540327, was opened at 2006-08-14 21:25
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1540327&group_id=29880
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Karl Kornel (akkornel)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_disk C_IDFP/W_IDFP inputerror, affects 1.4.3 not 1.4.2
Initial Comment:
The check_disk plugin that comes in nagios-plugins-
1.4.3 does not work for me:
$ ./check_disk -w 25% -c 10% -p /home
INPUT ERROR: C_IDFP (0.000000) should be less than
W_IDFP (0.0) and both should be between zero and 100
percent, inclusive for /home
check_disk: Could not parse arguments
Usage: check_disk -w limit -c limit [-p path | -x
device] [-t timeout][-m] [-e] [-W limit] [-K limit] [-
v] [-q]
When I configured nagios-plugins-1.4.3, I ran
`./configure --prefix=/usr/local/nagios-stage --
disable-nls --disable-rpath --with-cgiurl=/cgi-bin --
with-nagios-user=nagios --with-nagios-group=nagios --
with-trusted-
path=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr
/local/sbin --with-mysql=/usr`, and got the following
results:
--with-ping6-command: /bin/ping6 -n -U -w %d -c %d %s
--with-ping-command: /bin/ping -n -U -w %d -c %d %s
--with-lwres: no
--with-ipv6: yes
--with-mysql: /usr/bin/mysql_config
--with-openssl: yes
--with-gnutls: no
--enable-emulate-getaddrinfo: no
--with-perl: /usr/bin/perl
--with-cgiurl: /cgi-bin
--with-nagios-user: nagios
--with-nagios-group: nagios
--with-trusted-
path: /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/us
r/local/sbin
Building check_disk on 1.4.3 resulted in the
following commands (and errors):
if gcc -DLOCALEDIR=\"/usr/local/nagios-
stage/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -
I.. -I../lib -I../intl -I/usr/include/ldap -
I/usr/include/postgresql -I/usr/include -Wall -g -
O2 -MT check_disk.o -MD -MP -
MF ".deps/check_disk.Tpo" -c -o check_disk.o
check_disk.c; \
then mv -
f ".deps/check_disk.Tpo" ".deps/check_disk.Po"; else
rm -f ".deps/check_disk.Tpo"; exit 1; fi
check_disk.c: In function 'main':
check_disk.c:171: warning: statement with no effect
check_disk.c:172: warning: statement with no effect
check_disk.c: At top level:
check_disk.c:47: warning: 'inode_format' defined but
not used
/bin/sh ../libtool --mode=link --tag=CC gcc -Wall -g -
O2 -L. -o check_disk check_disk.o
utils.o ../lib/libnagiosplug.a ../lib/libcoreutils.a
popen.o -lssl -lcrypto
gcc -Wall -g -O2 -o check_disk check_disk.o utils.o
popen.o -L/home/nagios/nagios-plugins-
1.4.3/plugins ../lib/libnagiosplug.a ../lib/libcoreuti
ls.a -lssl -lcrypto
NOTE: The check_disk that came with 1.4.2 was fine!
When I compiled nagios-plugins-1.4.2, I ran
`./configure`, and got the following results:
--with-perl: /usr/bin/perl
--with-cgiurl: /nagios/cgi-bin
--with-nagios-user: nagios
--with-nagios-group: nagios
--with-trusted-path: /bin:/sbin:/usr/bin:/usr/sbin
--with-ping-command: /bin/ping -n -U -w %d -c %d %s
--with-ping6-command: /bin/ping6 -n -U -w %d -c %d %s
--with-lwres: no
--with-ipv6: yes
--with-openssl: yes
--enable-emulate-getaddrinfo: no
Building check_disk on 1.4.2 resulted in the
following commands being executed:
if gcc -
DLOCALEDIR=\"/usr/local/nagios/share/locale\" -
DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../intl -
I/usr/include/ldap -I/usr/include/postgresql -
I/include -g -O2 -MT check_disk.o -MD -MP -
MF ".deps/check_disk.Tpo" -c -o check_disk.o
check_disk.c; \
then mv -
f ".deps/check_disk.Tpo" ".deps/check_disk.Po"; else
rm -f ".deps/check_disk.Tpo"; exit 1; fi
gcc -g -O2 -L. -L/usr/lib -o check_disk
check_disk.o
utils.o ../lib/libnagiosplug.a ../lib/libcoreutils.a
popen.o -I/usr/include
Finally, running v1.4.2 of check_disk gives me:
$ ./check_disk -w 25% -c 10% -p /home
DISK OK - free space: /home 46355 MB
(92%);| /home=4042MB;37797;45356;0;50396
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1540327&group_id=29880
More information about the Devel
mailing list