Yea the source compiles fine on Ubuntu 11.04 x86_64.
Downloaded and extracted the 5.4 source:
Code:
user1@server1 ~: wget http://mmonit.com/monit/dist/monit-5.4.tar.gz
user1@server1 ~: tar xvzf monit-5.4.tar.gz
Had to install the ssl and pam headers:
Code:
user1@server1 ~: sudo apt-get install libssl-dev libpam-dev
Move into the monit directory to configure and compile:
Code:
user1@server1 ~: cd monit-5.4
user1@server1 ~/monit-5.4: ./configure
user1@server1 ~/monit-5.4: make
This makes the new version 5.4 'monit' executable. The old monit 5.2.1 version was in /usr/sbin so I just moved it to make way for the new one:
(remember to stop the monit process)
Code:
user1@server1 ~/monit-5.4: sudo service monit stop
user1@server1 ~/monit-5.4: sudo mv /usr/sbin/monit /usr/sbin/monit-5.2.1
user1@server1 ~/monit-5.4: sudo cp monit /usr/sbin
Well this new monit wants the 'monitrc' file in /etc instead of /etc/monit so I linked the file:
Code:
user1@server1 ~/monit-5.4: cd /etc
user1@server1 /etc: sudo ln -s monit/monitrc monitrc
Now I could add the line into my opensim.conf file for the new uptime check:
(wherever your individual opensim.conf is)
Code:
user1@server1 /etc: vi ~/opensim/monit/conf/opensim.conf
and added the following line in the check process section:
Code:
if uptime > 7 days then restart
saved, exit and restart monit:
Code:
user1@server1 /etc: sudo service monit start
Now I am running version 5.4 and monit should restart my simulator every 7 days. Very cool monit
