[Nagiosplug-devel] [ nagiosplug-Bugs-696439 ] Rel. 1.3.0: check_disk multiline df output on HP-UX
SourceForge.net
noreply at sourceforge.net
Wed Dec 15 15:41:05 CET 2004
Bugs item #696439, was opened at 2003-03-03 09:43
Message generated for change (Comment added) made by tonvoon
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=696439&group_id=29880
Category: Parsing problem
Group: Release (specify)
>Status: Closed
Resolution: None
Priority: 3
Submitted By: Joerg Krueger (jk_1111)
Assigned to: Ton Voon (tonvoon)
Summary: Rel. 1.3.0: check_disk multiline df output on HP-UX
Initial Comment:
Using Release 1.3.0 on HP-UX 11, but the same
problems had the beta versions.
If the filesystem name is longer than 20 charecter, df
breaks the output lines after the fs name like this:
> df -Pk
Filesystem 1024-blocks Used Available Capacity
Mounted on
slsitd:/export/var/opt/cisco
1454896 237328 1217568
17% /var/opt/cisco
slsitd:/export/var/opt/ANMA
1501616 933192 568424
63% /var/opt/ANMA
The problem especially occurs on NFS mounts.
check_disk fails in this case with the following output:
> plugins/check_disk -w 90 -c 80
Unable to read output:
/usr/bin/df -Pk
slsitd:/export/var/opt/cisco
There are some workarounds:
1. do not check these filesystem (explicitely specify
filesystem to be checked)
2. configure the plugins with a df command that
excludes NFS mounts (configure --with-df-
command '/usr/bin/df -Pkl')
3. configure the plugins with a df command that
assembles the multiline output to a single line again
(configure --with-df-command '/usr/bin/df -Pk |
awk 'NF==1 {l=$0;getline;print l,$0;break}; NF>1 {print
$0}'
The first two workarounds will prevent you from
monitoring remote filesystems. The last one seems to
be unattractive in principle.
A clear solution would be to enable check_disk to
handle multiline df outputs inside the plugin.
----------------------------------------------------------------------
>Comment By: Ton Voon (tonvoon)
Date: 2004-12-15 23:40
Message:
Logged In: YES
user_id=664364
As the 1.4 alpha releases do not use df anymore, this bug should no
longer be a problem. Closing this call.
----------------------------------------------------------------------
Comment By: Ton Voon (tonvoon)
Date: 2003-03-27 16:59
Message:
Logged In: YES
user_id=664364
Joerg,
Thanks for reporting this bug. This will probably be left as it is
since release 1.4 will use system calls to query filesystems. It is
not worth the investment in coding to cope with multi-lines,
especially as there are some reasonable workarounds as you've
pointed out.
We welcome reports on the current snapshot (at
http://nagiosplug.sourceforge.net/snapshot) as this holds the
newer version of check_disk.
I'll leave this call in an open state for information until 1.4 is
released.
Ton
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=696439&group_id=29880
More information about the Devel
mailing list