[Nagiosplug-devel] patch for check_disk.c

Ton Voon tonvoon at mac.com
Sun Apr 11 09:49:12 CEST 2004


Torsten,

Thanks for this patch, but we will not be applying it. Release 1.4 uses 
a different way of querying disks (using GNU coreutils libs), thus 
removing the peculiarities of df across multiple systems.

If you can test the CVS snapshot to confirm it works on HP-UX, that 
would be very helpful.

Regards,
Ton

On 8 Apr, 2004, at 14:19, Torsten.Werner at assyst-intl.com wrote:

> Hi,
> check_disk has a small problem on HP-UX. HP-UX produces 2 lines at 'df
> -Pk':
>
> root at xxxxxx> /usr/bin/df -Pk
> Filesystem          1024-blocks  Used  Available Capacity Mounted on
> .....
> /dev/vguser/home      1268596   890624   377972    71%   /home
> /dev/vgroot/JavaWebServer
>                       195393    16688   178705     9%
> /opt/JavaWebServer1.1.3
> /dev/vgde/optassyst
>                       347487   228572   118915    66%   /opt/assyst
> /dev/vgroot/opt       1783990  1580886   203104    89%   /opt
> ......
>
> check_disk is not able to handle this.
>
> Apply the patch to check_disk.c 1.7.2.4 (nagios-plugins 1.3.1):
> $: patch check_disk.c < check_disk.c.patch
>
> It's working on HP-UX 10, 11.0 and 11i.
> Bye
> Torsten
>
> (See attached file: check_disk.c.patch)<check_disk.c.patch>





More information about the Devel mailing list