[Nagiosplug-devel] [ nagiosplug-Bugs-696439 ] Rel. 1.3.0: check_disk multiline df output

SourceForge.net noreply at sourceforge.net
Mon Mar 3 01:35:07 CET 2003


Bugs item #696439, was opened at 2003-03-03 09:43
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: Open
Resolution: None
Priority: 5
Submitted By: Joerg Krueger (jk_1111)
Assigned to: Nobody/Anonymous (nobody)
Summary: Rel. 1.3.0: check_disk multiline df output

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.

----------------------------------------------------------------------

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