Monitoring and restarting Open-Xchange

I started using monit for monitoring and automatically restaring process on some linux servers.

That is working quite well and you can find an easy setup guide here.

This is my setup in the /etc/monit/monitrc config file, to monitor and restart an open xchange server.

  check system localhost

    if loadavg (1min) > 4 then alert

    if loadavg (5min) > 2 then alert

    if memory usage > 75% then alert

    if swap usage > 25% then alert

    if cpu usage (user) > 70% then alert

    if cpu usage (system) > 30% then alert

    if cpu usage (wait) > 20% then alert

  check process open-xchange with pidfile /var/run/open-xchange.pid

    start program = „/etc/init.d/open-xchange start“

    stop program = „/etc/init.d/open-xchange stop“

It alerts about the status of the server, and if it  doesn’t find a running service, it restarts it.


Skinning Open Xchange

So, when you are up to have your own Open Xchange site you might want to do some basic skinning. This includes

  1. The colour TopBar
  2. The Logo

This is being done in 4 simple steps:

  1. Define the Topbar colour in the default themes .less* file:

    @topbar-background: #your colour

  2. Define the Logo in

    background-image: url(‚/appsuite/apps/themes/default/my-small-logo.png‘);

  3. Place the actual Logo in  „/var/www/appsuite/apps/themes/default/“ (notice the same path after „/var/www/….)
  4. run the /opt/open-xchange/appsuite/share/update-themes.sh script to re-generate the css files.

Bonus hint: in the default theme the logo has a width of 60px and a height of 22px.

That’s about it.