|Subject:||RE: Problem starting my monit|
|Date:||Sun, 13 May 2012 20:37:06 +0800|
Actually I took this monit-5.2-1.el6.rf.x86_64.rpm file from this link http://pkgs.repoforge.org/monit/ and run command rpm -ivh monit-5.2-1.el6.rf.x86_64.rpm for my centos 6.2. So I tried to find monitrc and there is no such file in my system only /etc/monit.conf. So is it ok for me to change the monit.conf to monitrc?After changing and creating the /var/monit. I did this now looks ok.
Starting monit: monit: generated unique Monit id be30cd9f43337901d0f4a48f3ac33712 and stored to '/var/monit/id'
Starting monit daemon with http interface at [localhost:2812]
[ OK ]
Is this the right way to run monit or someother way? What is it init.d is already a registered service? Just to test monit I have down the service which monit is suppose to monitor but there is no alert sent so where to look out next? Thank you
Subject: Re: Problem starting my monit
Date: Sun, 13 May 2012 14:06:52 +0200
the default monit configuration file name is "monitrc", not "monit.conf" (that is used by some 3rd party packages which modify the source code to find the monit.conf instead of monitrc).
The idfile error is repotted most probably because your configuration file contains "set idfile /var/monit/id" statement, but the directory "/var/monit/" most probably doesnt exist => the unique id cannot be saved to the given location. The id is used when Monit is configured with M/Monit to pair the host entry in M/Monit with messages from Monit (pairing by source IP address won't be reliable, as the monit agents can be behind firewall with IP masquerading, so all the agents would update one host entry and you'll sporadically see services of different hosts under the same entry, hence the concept of per-instance ID).
To fix the idfile error:
+ set the permissions on that directory to allow the user under which monit is running to write to this directory.
On May 13, 2012, at 6:54 AM, sukbir singh wrote:
-- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
|[Prev in Thread]||Current Thread||[Next in Thread]|