If you're not running Monit as root, you may have no access to parent directory of the monitored file.
=> if you are running monit as regular user, make sure this user has access to /usr and /usr/sbin directories. On May 4, 2010, at 12:20 AM, zachlac wrote: > > For some reason monit fails to monitor apache2, complaining about > checksum/permissions errors. The permissions are 0755, owned by root.root. > Monit says that the permissions are 0000. Below are the output of monit -v > and my web display. > > Runtime constants: > Control file = /etc/monitrc > Log file = /etc/monit.log > Pid file = /var/run/monit.pid > Debug = True > Log = True > Use syslog = False > Is Daemon = True > Use process engine = True > Poll time = 120 seconds with start delay 0 seconds > Expect buffer = 256 bytes > Mail server(s) = ##################:25 with timeout 5 seconds > Mail from = mo...@##############.com > Mail subject = monit alert -- $EVENT $SERVICE > Mail message = $EVENT Service $SERV..(truncated) > Start monit httpd = True > httpd bind address = ##################.com > httpd portnumber = 2812 > httpd signature = True > Use ssl encryption = True > PEM key/cert file = /local/monit-src/monit.pem > Client cert file = None > Allow self certs = False > httpd auth. style = Basic Authentication and Host/Net allow list > Alert mail to = sysad...@################.com > Alert on = All events > ... > File Name = apache_bin > Group = server > Path = /usr/sbin/apache2 > Monitoring mode = active > Existence = if doesn't exist 1 times within 1 cycle(s) then > restart else if succeeded 1 times within 1 cycle(s) then alert > Checksum = if failed eaab164420921462fb84d094fa2bd6b7(MD5) 1 > times within 1 cycle(s) then unmonitor else if succeeded 1 times within 1 > cycle(s) then alert > Permission = if failed 0755 1 times within 1 cycle(s) then > unmonitor else if succeeded 1 times within 1 cycle(s) then alert > UID = if failed 0 1 times within 1 cycle(s) then unmonitor > else if succeeded 1 times within 1 cycle(s) then alert > GID = if failed 0 1 times within 1 cycle(s) then unmonitor > else if succeeded 1 times within 1 cycle(s) then alert > Alert mail to = ############################ > Alert on = Checksum Gid Permission Uid > ... > > > > Any Ideas? > > -- > View this message in context: > http://old.nabble.com/-monit--permission-checksum-error-on-apache2-tp28440205p28440205.html > Sent from the monit-general mailing list archive at Nabble.com. > > > > -- > To unsubscribe: > http://lists.nongnu.org/mailman/listinfo/monit-general -- To unsubscribe: http://lists.nongnu.org/mailman/listinfo/monit-general
