...
Please untar the package in the directory where the ‘MONyog(SQL DM for MySQL)’ package was untarred for the previous version to make sure that all your data and settings are intact.
For Windows (.exe) package:
...
Use the below commands to install monit :
apt:
Code Block |
---|
|
sudo apt-get install monit |
Yum:
Code Block |
---|
|
sudo yum install monit |
Once monit is installed, you can add programs and processes to the configuration file:
Code Block |
---|
|
sudo nano /etc/monit/monitrc |
Uncomment the below lines in the file to enable web interface. You can login to the web interface using the username as ‘admin’ and password as ‘monit’.
Code Block |
---|
|
set httpd port 2812 and |
...
...
localhost # only accept connection from localhost |
...
allow localhost # allow localhost to connect to the server and |
...
...
monit # require user 'admin' with password 'monit' |
Also add the below lines in the config file to enable the monitoring of MONyog(SQL DM for MySQL) service:
Tar:
Code Block |
---|
|
check process Monyog |
...
...
start program = "<MONyog extracted directory>/MONyog/bin/MONyog start" |
...
stop program = "<MONyog extracted directory>/MONyog/bin/MONyog stop" |
Rpm:
Code Block |
---|
|
check process Monyog |
...
...
...
...
start"
stop program = "/etc/init.d/MONyogd stop" |
Once the above configuration changes are made, please use the below command to reload monit:
Code Block |
---|
|
sudo monit reload |
TOP