Xymon Mailing List Archive search

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

3 messages in this thread

list Nick Pettefar · Fri, 8 Feb 2013 11:50:10 +0000 ·
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 ?
list Francois Claire · Fri, 08 Feb 2013 14:50:41 +0100 ·
quoted from Nick Pettefar
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
quoted from Nick Pettefar
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.
quoted from Nick Pettefar

(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.
list Mark Deiss · Fri, 8 Feb 2013 14:31:07 +0000 ·
Question 1) I have noticed that when I have a drilled down view using Opera 12.10 on MAPE 1.4 with Xymon 4.37 that the display will automatically update and collapse the view to the upper level. Is there a way to maintain persistence in the web display?

Ideally, if watching a yellow/red server in a drilled down view, would want that view to persist rather than having the view automatically collapse to the upper level. Otherwise user has to re-drill back down repeatedly as the page refreshes.

Question 2) Has anyone gotten IE9 to work with MAPE? Right now just get the Xymon background screen. Figure needs some hacking with the IE9 settings.