check_disk SunOS 5.9

Andreas Ericsson ae at op5.se
Tue Sep 27 16:31:13 CEST 2005


John Christian wrote:
> check_disk works fine for me under Solaris 9, although
> my outputs are a little different than yours:
> 
> # ./check_disk -w 10% -c 5% -p /
> DISK OK - free space: / 4449 MB (90%);|
> /=478MB;4434;4680;0;4927
> #
> # strings check_disk | grep df
> #
> [nothing returned]
> 
> #
> # which df
> /usr/bin/df
> # df -Pk /
> df: unknown option: P
> Usage: df [-F FSType] [-abeghklntVv] [-o
> FSType-specific_options] [directory | block_device |
> resource]
> #
> 
> I get the same complaint about -P from df on my
> Solaris 8 host as well. If practically all df's
> implement the -P, it looks like Sun has overlooked it.
> 
> I did find a /usr/xpg4/bin/df that handles the -P on
> my Solaris 9 host:
> 
> /usr/xpg4/bin/df -Pk /
> Filesystem           1024-blocks        Used  
> Available Capacity  Mounted on
> /dev/md/dsk/d0           5046030      439574    
> 4555996     9%    /
> 

xpg4 is a sort of trademark of the Open Group (handling the Single Unix 
Specification). The short answer to fix the problems is thus to symlink 
the original df to the xpg one. Should work a treat.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list