<nowiki>#</nowiki>set mail-format { from: monit@localhost }
<nowiki>#</nowiki>set alert root@localhost}}
Restart Monit:
{{Code|/etc/init.d/monit restart}}
== Change Message Format ==
Edit /etc/monit/monitrc and comment out (add #) the following line:
{{Text|Text=#set mail-format <nowiki>{</nowiki> from: monit@localhost <nowiki>}</nowiki>}}
Add this text below it (modify as needed):
{{Text|Text=set mail-format <nowiki>{</nowiki>
from: monit@localhost
subject: [ $SERVICE ] $EVENT - $DATE
message: This is an $ACTION: $DESCRIPTION [$SERVICE], tested remotely from $HOST ,nowiki>}</nowiki>}}
Restart Monit:
{{Code|/etc/init.d/monit restart}}
== Change Access Credentials ==
Edit Edit /etc/monit/monitrc and change as desired:
{{Text|Text=allow admin:admin}}
Restart Monit: