
Qbittorrent check process qBittorrent matching "qbittorrent-nox" Storagespace: # add each drive you want to monitor belowĬheck filesystem Boot with path /dev/sda1Ĭheck filesystem Root with path /dev/sda3Ĭheck filesystem Shares with path /dev/sda4 Stop program = "/usr/bin/systemctl stop rvice" Start program = "/usr/bin/systemctl start rvice" Syslogd: check process syslog with pidfile /var/run/syslogd.pid Hda-ctl: check process hda-ctl with pidfile /var/run/hda-ctl.pid If 5 restarts within 5 cycles then timeout If failed port 25 protocol smtp then restartĬrond: check process crond with pidfile /var/run/crond.pid Stop program = "/etc/init.d/postfix stop" Start program = "/etc/init.d/postfix start" Postfix: check process postfix with pidfile /var/spool/postfix/pid/master.pid If failed port 22 protocol ssh then restart Sshd: check process sshd with pidfile /var/run/sshd.pid Stop program = "/usr/bin/systemctl stop rvice"ĭnsmasq: check process dnsmasq with pidfile /var/run/dnsmasq.pid Mariadb: check process mysql with pidfile "/var/run/mariadb/mariadb.pid"

Httpd: check process apache with pidfile "/var/run/httpd/httpd.pid" Openssl x509 -subject -dates -fingerprint -noout -in /var/certs/monit.pemĬonfiguration Examples Amahi 8 or Greater Openssl req -new -x509 -days 365 -nodes -config. To create a new certificate, do the following steps as root user ( Ubuntu NOTE: prefix commands with sudo except the second openssl requires the actual root user environment sudo su -): Message: This is an $ACTION: $DESCRIPTION, tested remotely from $HOST }Įdit monitrc and add below set httpd port 2812 and (line 116):Ĭreate a directory for the certs, then follow "Create New Certificate" guidance:Ī default certificate is installed by the Amahi application (Ubuntu). NOTE: Replace "MYUSER" and "MYPASSWORD" with your Gmail user name and password.Įnable email notifications by editing monitrc and adding the following lines (Change as needed to match your system):Įdit monitrc and add this text (modify as needed): You can do it in Monit directly by adding the following to monitrc: The Gmail as Relay tutorial is one option. This will only work if you have set up your HDA to send emails. Edit monitrc and change localhost.localdomain to match your system:
