[Nagiosplug-devel] [ nagiosplug-Bugs-1326050 ] check_disk incorrect output when checking non-existant disk.
SourceForge.net
noreply at sourceforge.net
Thu Mar 23 04:04:20 CET 2006
Bugs item #1326050, was opened at 2005-10-13 18:54
Message generated for change (Comment added) made by tonvoon
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1326050&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: General plugin execution
Group: Release (specify)
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: John Rouillard (rouilj)
>Assigned to: Ton Voon (tonvoon)
Summary: check_disk incorrect output when checking non-existant disk.
Initial Comment:
Fedora core 3 system - plugin release 1.4.2.
When running check_disk on a non-existent disk the
output is not helpful:
/usr/lib/nagios/plugins/check_disk \
-c 20 -w 30 -p /boot -p /dev/shm -p /home -p /foo
where /foo doesn't exist produces (split for readability):
DISK CRITICAL - free space: /boot 168 MB (88%); \
/dev/shm 1014 MB (100%); /home 6590 MB (67%); \
| /boot=22MB;159;169;0;189 \
/dev/shm=0MB;983;993;0;1013
/home=3268MB;9828;9838;0;9858 \
[/foo not found]
The [/foo not found] error occurs in the performance
output part of the plugin and not the user output.
BTW this command produces an ok status if run without
the /foo.
This should be changed so that the error is put (first)
in the
regular output.
-- rouilj
----------------------------------------------------------------------
>Comment By: Ton Voon (tonvoon)
Date: 2006-03-23 12:03
Message:
Logged In: YES
user_id=664364
John,
Thanks for report. Fixed in CVS.
There's another bug in that check_disk -w 30% -c 20% -p /foo actually
checks /. This should not be the case as df /foo would return a failure. I've
marked it in the tests to look at in future.
Ton
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1326050&group_id=29880
More information about the Devel
mailing list