[Nagiosplug-devel] long names in devices whith check_disk

Subhendu Ghosh sghosh at sghosh.org
Fri Apr 25 20:42:03 CEST 2003


On Fri, 25 Apr 2003, Mohamed Badri wrote:

> hello,
> 
> I'm running nagios plugins on HpUx 11.11 but check_disk returns an error 
> when used with devices names greater than something like 20 caracters.
> in this case check returns :
> 
> ====
> Unable to read output:
> /usr/bin/df -Pk /dev/vg00/lvdatanoheto
> /dev/vg00/lvdatanoheto
> ====
> 
> the problem is with df output command, result is on 3 lines instead of 2
> for exemple :
> 
> ====
> [hpux:/tmp]df -Pk /dev/vg00/lvdatanoheto
> Filesystem          1024-blocks  Used  Available Capacity Mounted on
> /dev/vg00/lvdatanoheto
>                       14945920  2108416 12837504    15%   /datanoheto
> ====
> 
> I make some modification on the code, to make it work on long path names,
> So I just wanted to know if this problem was resolved in a new version or not,
> or if it is a known problem.
> 
> thanx.
> 
> 

This is a known problem - but no solution has been posted for rel 1.3
If you cna post a patch for this - that would help.

check_disk is going through a complete rewrite for v1.4 and will not be 
using the df command.



-- 
-sg





More information about the Devel mailing list