I'm getting this error in the log file and I'm not sure how to fix it.
I'm not sure where the error is coming from.
[EDT Jul 27 00:07:49] info : Starting monit daemon with http interface
at [localhost:2812]
[EDT Jul 27 00:07:49] info : Starting monit HTTP server at [localhost:2812]
[EDT Jul 27 00:07:49] info : monit HTTP server started
[EDT Jul 27 00:07:49] info : 'localhost.localdomain' Monit started
[EDT Jul 27 00:07:49] debug : Monit instance changed notification is
sent to [email protected]
[EDT Jul 27 00:07:50] debug : Processing postponed events queue
[EDT Jul 27 00:07:50] debug : Processing queued event
/usr/local/monit//monitrc
[EDT Jul 27 00:07:50] error : skipping queued event
/usr/local/monit//monitrc - unknown data format
[EDT Jul 27 00:07:50] debug :
-------------------------------------------------------------------------------
[EDT Jul 27 00:07:50] debug : monit() [0x41a51a]
[EDT Jul 27 00:07:50] debug : monit(LogError+0xa9) [0x41ad59]
[EDT Jul 27 00:07:50] debug : monit(Event_queue_process+0x372) [0x4177f2]
[EDT Jul 27 00:07:50] debug : monit(validate+0x1d) [0x428bad]
[EDT Jul 27 00:07:50] debug : monit(main+0x4bc) [0x40bb8c]
[EDT Jul 27 00:07:50] debug : /lib64/libc.so.6(__libc_start_main+0xf5)
[0x7fea6938daf5]
[EDT Jul 27 00:07:50] debug : monit() [0x40be09]
[EDT Jul 27 00:07:50] debug :
-------------------------------------------------------------------------------
My monitrc file is the stock file with the following added at the end:
--------------------------------------------
set logfile /usr/local/monit/logs/monit.log
check process apache with pidfile /usr/local/apache/logs/httpd.pid
restart program = "/usr/sbin/apachectl restart"
if failed port 80 protocol http then restart
#todo: add https port port 443
check process mysql with pidfile /var/lib/mysql/localhost.localdomain.pid
restart program = "/etc/init.d/mysql restart"
if failed port 3306 protocol mysql then restart
#can filter alerts: set alert [email protected] not on { instance,
action }
# Do not alert when Monit starts, stops or performs a user initiated action.
set alert [email protected]
set mailserver smtp.googlemail.com port 465
username "[email protected]" password "pwd"
using TLSV12
#so if mail server not available, will queue alert
set eventqueue
basedir /usr/local/monit/ # set the base directory where events will be
stored
--------------------------------------------
How to I find where this error is coming from and how do I fix it?
Brian
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general