[Xymon] Raspberry Pi Xymon Server (Mac OS X Macport Xymon client)

Francois Claire fclaire at free.fr
Fri Feb 8 14:50:41 CET 2013


Le 08/02/13 12:50, Nick Pettefar a écrit :
> Bonjour Francois,
>
>  From what I read in the OS X df manual page, Darwin (Mac OS X Unix)
> uses the new Unix standard and df reurns the inodes used as well as
> the disk space statistics.
>
> bento:~ nick$ df
> Filesystem    512-blocks       Used  Available Capacity   iused
> ifree %iused  Mounted on
> /dev/disk0s2  1463469952 1233419864  229538088    85% 154241481
> 28692261   84%   /
> devfs                402        402          0   100%       697
>   0  100%   /dev
> map -hosts             0          0          0   100%         0
>   0  100%   /net
> map auto_home          0          0          0   100%         0
>   0  100%   /home
> /dev/disk1s2  5859756928 3131455856 2728301072    54% 195715989
> 170518817   53%   /Volumes/3TB-MIRROR
> /dev/disk0s3     1269536     952872     316664    76%    119107
> 39583   75%   /Volumes/Recovery HD
> /dev/disk2s3  1953160552  625886056 1327274496    33%  78235755
> 165909312   32%   /Volumes/1TB-RAID
>
> You have to use df -PH to get a "straight" df output:
>
> bento:~ nick$ df -PH
> Filesystem      Size   Used  Avail Capacity  Mounted on
> /dev/disk0s2    749G   632G   118G    85%    /
> devfs           206k   206k     0B   100%    /dev
> map -hosts        0B     0B     0B   100%    /net
> map auto_home     0B     0B     0B   100%    /home
> /dev/disk1s2    3.0T   1.6T   1.4T    54%    /Volumes/3TB-MIRROR
> /dev/disk0s3    650M   488M   162M    76%    /Volumes/Recovery HD
> /dev/disk2s3    1.0T   320G   680G    33%    /Volumes/1TB-RAID
>
> WIthout this you don't get the Xymon figures for the graphs, etc.

Indeed, this is a change in behavior between 10.6 and 10.8. Do you know 
by chance if this is also the case for 10.7 ?

I have only a 10.6 xymon client so I missed this one.

>
> I changed the /opt/local/lib/xymon/client/bin/xymonclient-darwin.sh file.

I'll propose a patch to the macports which will change this script if 
the system is > 10.6

> Yes, this is the Macport version.  When trying to install it kept
> failing due to unresolved dependencies it failed to install.
Hummm, strange. It would have been nice to get the log file of this 
failed install. Next time it happens to you use "port -d install 
xymon-client" and either post the output/logfile to this mailing list or 
create a ticket in the macports.org trac system.


>
> (I change df -k to df -h to get a clearer display of disk statistics
> on every Xymon client I am responsible for.)
Ok, I'll do this as well.
>
> Regards,
>
> Nick Pettefar
> Dublin
>
Thanks a lot for your valuable feedback.

Regards,
Francois.



More information about the Xymon mailing list