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.
I changed the /opt/local/lib/xymon/client/bin/xymonclient-darwin.sh file.
From the df man page:
-i Include statistics on the number of free inodes. This
option is now the default to conform to Version 3 of the
Single UNIX Specification (``SUSv3'') Use -P to suppress
this output.
Yes, this is the Macport version. When trying to install it kept
failing due to unresolved dependencies it failed to install. However
I then used Macport to install the dependencies seperately and then I
could carry on with the Xymon installation. Silly.
(I change df -k to df -h to get a clearer display of disk statistics
on every Xymon client I am responsible for.)
Regards,
Nick Pettefar
Dublin
Date: Fri, 08 Feb 2013 10:02:54 +0100
From: Francois Claire <user-4b143d727ceb@xymon.invalid>
To: xymon at xymon.com
Subject: Re: [Xymon] Raspberry Pi Xymon Server
Le 06/02/13 13:54, Nick Pettefar a ?crit :
I compiled the latest Xymon on the Pi. I used Mac Ports to make an
Xymon client for the Mac Mini (OSX Mountain Lion) - you have to fiddle
with the df command to get the right disk data, apparently it uses the
new Unix standard byt Xymon doesn't.
I'm glad to see some feedback about xymon on Mac OSX.
Is this remark about df related to the xymon-client macport ?