I am using monit for several processes. But I do not want to sent an email when there is an issue, whereas I need it to log it to a file.

Can this be done?

  • OS: Ubuntu 14.04
  • Monit: 5.6

Current process config:

check process nginx with pidfile /var/run/nginx.pid
  start program = "/etc/init.d/nginx start"
  stop program = "/etc/init.d/nginx stop"


Disabling alerts for some services

| improve this answer | |
  • That just disables the alerts. That doesn't cover the ability to log to a file. – jshthornton Nov 25 '15 at 2:40
  • Look in /var/log/monit and /var/log/messages – ewwhite Nov 25 '15 at 2:41
  • I have neither :/ – jshthornton Nov 25 '15 at 2:59
  • @jshthornton Then please add pertinent details like: operating system and version, version of Monit, etc. – ewwhite Nov 25 '15 at 2:59
  • Updated to give some more details. – jshthornton Nov 25 '15 at 3:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.