|Subject:||RE: How to Install Monit on CentOS/Cloud Linux|
|Date:||Sun, 30 Oct 2011 21:39:42 +0530|
I finally think I have been able to properly install Monit. I was trying things from too many different articles.
As after everything I got this message:
“monit daemon at 975310 awakened”
I for now know for sure that Monit is working. I tested it with “monit status” command.
I am unable to open it yet from a web browser. I get a not found error. I have even tried to add the 2812 port in the allow list of my ConfigServer Firewall, but yet no luck.
The details in my monitrc file are:
set httpd port 2812 and
use address localhost # only accept connection from localhost
allow localhost # allow localhost to connect to the server and
allow admin:monit # require user 'admin' with password 'monit'
allow @monit # allow users of group 'monit' to connect (rw)
allow @users readonly # allow users of group 'users' to connect readonly
Can anyone help with this.
The example of simple configuration file which will work without modifications:
1.) save this as /etc/monitrc:
set daemon 5 # note: check every 60 seconds
set httpd port 2812 and allow monit:123456 # note: monit can be access for example via http://127.0.0.1:2812/ with username "monit" and password "123456"
check system mymachine
2.) chmod 600 /etc/monitrc
3.) to start monit and the path to the binary (for example /usr/local/bin/monit) … monit will start in background, read the /etc/monitrc:
If you have further problems, please specify *exactly* what the problem is (i.e. does monit start? if not, what error is reported? if it did start, what the problem is - doesn't it monitor what you think it should monitor? or does it report some check error?).
Saying just "having hard time to install monit" is the same as "having hard time to drive a car" (bunch of possible problems such as: do you have a car? didn't you lost the keys? does the car have fuel? can you drive? is the car broken? etc.)
=> please ask specific questions and describe the problem in detail
On Oct 30, 2011, at 2:02 PM, Harish Chouhan wrote:
Thank you for the quick reply. I have been able to install. The steps I followed are from this article: http://www.securecentos.com/monitoring/install-monit/
But after that I have no idea how to make it work. I had setup the port number and userid/pass to access it through a browser but even that does not work.
what exactly the problem is and what doesn't work for you?
The installation should be easy - you can either build the RPM package from the source code and then install the rpmbuild product:
rpmbuild -tb monit-5.3.1.tar.gz
or you can use binary build from here (either 32-bit or 64-bit version - depends on your system):
The configuration is easy - the monitrc contains examples which you can uncomment and modify, another examples are here: http://mmonit.com/wiki/Monit/ConfigurationExamples.
Please read monit manual for more details:
On Oct 30, 2011, at 1:53 PM, Harish Chouhan wrote:
I am having a hard time installing Monit on CloudLinux/CentOS server. I have gone through all the articles and other sites found from Google, but nothing has worked for me. I have been able to install but then still trying to know if it’s working correctly and how to use it.
Can anyone please help.
Awaiting your reply!
|[Prev in Thread]||Current Thread||[Next in Thread]|