Changes

From Amahi Wiki
Jump to: navigation, search
5 bytes added ,  01:31, 27 August 2019
if failed port 25 protocol smtp then restart</pre>
'''crond:'''
<pre>check process crond with pidfile /var/run/crond.pid
group system
if 5 restarts within 5 cycles then timeout</pre>
'''hda-ctl:'''
<pre>check process hda-ctl with pidfile /var/run/hda-ctl.pid
start program = "/usr/bin/systemctl start hda-ctl.service"
stop program = "/usr/bin/systemctl stop hda-ctl.service"</pre>
'''syslogd:'''
<pre>check process syslog with pidfile /var/run/syslogd.pid
start program = "/usr/bin/systemctl start syslog.service"
if 5 restarts within 5 cycles then timeout</pre>
'''storagespace:'''
<pre># add each drive you want to monitor below
check filesystem Boot with path /dev/sda1
if space usage > 90% then alert
check filesystem Shares with path /dev/sda4</pre>
 
===Reference===
[http://mmonit.com/wiki/Monit/ConfigurationExamples Monit Configuration Examples]: Covers many common processes that users may want to monitor. Some minor changes may be needed for Fedora or Ubuntu.
12,424

edits