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.
So, when you are up to have your own Open Xchange site you might want to do some basic skinning. This includes
- The colour TopBar
- The Logo
This is being done in 4 simple steps:
- Define the Topbar colour in the default themes .less* file:
/opt/open-xchange/appsuite/apps/themes/defintions.less
@topbar-background: #your colour
- Define the Logo in
/opt/open-xchange/appsuite/apps/themes/components/topbar.less
background-image: url(‚/appsuite/apps/themes/default/my-small-logo.png‘);
- Place the actual Logo in „/var/www/appsuite/apps/themes/default/“ (notice the same path after „/var/www/….)
- 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.
Ingmar Bornholz digital home. About my life, IT and other stuff that matters – or not. Founder & CEO of motionet AG, my-vpa.com and van-magazin.de. Multiple Exits: okanda.com, Sanicura Medical GmbH, Orange GmbH.