Changes between Initial Version and Version 1 of howto/SetupXymonServer


Ignore:
Timestamp:
Sep 4, 2010, 12:09:25 PM (14 years ago)
Author:
fclaire@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • howto/SetupXymonServer

    v1 v1  
     1[wiki:howto <- Back to the HOWTO section]
     2
     3= How to setup Xymon server =
     4
     5 * Audience: Advanced sysadmins
     6 * Requires: MacPorts >= 1.9, xymon-server
     7
     8== Introduction ==
     9
     10Xymon is a tool for monitoring servers, applications and networks. It collects information about the health of your computers, the applications running on them, and the network connectivity between them. All of this information is presented in a set of simple, intuitive webpages that are updated frequently to reflect changes in the status of your systems.
     11
     12== Installation ==
     13
     14Install dovecot:
     15
     16{{{
     17sudo port install xymon-server
     18}}}
     19
     20== Configuration ==
     21
     22Note: Configuration of Xymon server implies several changes of your system and will probably require a reboot of your system. Make sure you understand every step before executing it.
     23
     24=== Step 1: ''Tune the number of shared message queues'' ===
     25
     26Xymon server needs at least 9 IPC message queues to run. Unfortunately Mac OS X ships with a default max of 8.
     27
     28Check how much shared segments a process can use on your system:
     29{{{
     30$ sysctl kern.sysv.shmseg
     31}}}
     32And the max number of shared segments system-wide:
     33{{{
     34$ sysctl kern.sysv.shmmni
     35}}}
     36
     37If the first number is < 9, you need to tune your system before trying to start xymon server (doing so will make the whole system to crash).
     38
     39Run the following commands to increase your shared segments:
     40{{{
     41$ sudo echo "kern.sysv.shmmni=64" >> /etc/sysctl.conf
     42$ sudo echo "kern.sysv.shmseg=12" >> /etc/sysctl.conf
     43}}}
     44
     45Reboot your system to activate the change.
     46
     47More information about shared memory segments on Mac OS X can be found here: http://support.apple.com/kb/HT4022
     48
     49=== Step 2: ''Configure your apache web server'' ===
     50
     51Xymon "make install" ends with:
     52
     53You must configure your webserver for the Hobbit webpages and CGI-scripts.
     54A sample Apache configuration is in /opt/local/lib/xymon/server/etc/hobbit-apache.conf
     55If you have your Administration CGI scripts in a separate directory,
     56then you must also setup the password-file with the htpasswd command.
     57
     58So the following commands should do it:
     59{{{
     60$ sudo mv /opt/local/lib/xymon/server/etc/hobbit-apache.conf /etc/apache2/sites/
     61$ sudo /usr/sbin/apachectl restart
     62}}}
     63
     64=== Step 3: ''Make user _xymon part of the admin group'' ===
     65
     66We achieve this with the Directory Service command line utility:
     67{{{
     68$ sudo dscl . -append /Groups/admin GroupMembership _xymon
     69}}}
     70
     71=== Step 4: ''Start Xymon server'' ===
     72
     73A startup item has been generated that will aid in starting xymon with launchd. It is disabled by default. Execute the following command to start it, and to cause it to launch at startup:
     74
     75{{{
     76$ sudo launchctl load -w /Library/LaunchDaemons/org.macports.xymon-server.plist
     77}}}
     78
     79If your Mac OSX firewall is enabled, you'll be asked to allow xymon -> accept.
     80
     81On Mac OSX Server, make sure your ipfw rules will allow incoming TCP connections to port 1984.
     82
     83=== Step 5: ''Check the status of your Xymon server'' ===
     84
     85To view the Xymon webpages, go to http://localhost/xymon
     86
     87
     88[wiki:howto <- Back to the HOWTO section]