

Start program = "/usr/bin/systemctl start rvice" Syslogd: check process syslog with pidfile /var/run/syslogd.pid Stop program = "/usr/bin/systemctl stop rvice" 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. Step 4.Edit monitrc and change localhost.localdomain to match your system: Do a sudo monit reload to allow Monit to reload its configurations without stopping the service. It basically means that we monitor a host at the specified IP-ADDRESS and if it can’t be pinged then send an alert. Edit the file with the following content: check host myhost with address IP-ADDRESS The name could be anything, but for example, name it simply “host” Go to /etc/monit/conf.d and create a new file.
MONIT WEB PORT HOW TO
This time, I’ll show an example of how to monitor a remote host and local disk usage. Monitor popular protocols like SMTP, FTP, LDAP, etc.Monitor websites using HTTP or HTTPS protocol.Monit can monitor a variety of things, for instance: Test it by issuing sudo monit status, it should output something like this: Open the /etc/monit/monitrc file, then find the following lines and uncomment them to enable the Web UI (specify the SSL cert path if you have one): set httpd port 2812 and Start monit service and enable it sudo systemctl enable monit -now
MONIT WEB PORT INSTALL
Do a repository update and install Monit: sudo apt update This time, I will use a Ubuntu 22.04 VM instance. So, in this article, I will show you how to install Monit, how to monitor things, and to set the alerting for them as well. It has a lightweight web user interface that allows you to review the monitored components in a simple visual representation. Not only that, monit is available on most official upstream repositories. Monit is a utility to monitor your services, systems, and processes and also can handle alarms as well. Set alert reload Monit: sudo monit reload Introduction
MONIT WEB PORT PASSWORD
Username "your-username" password "12-digit-app-password" Mailserver config example using Gmail in /etc/monit/monitrc: set mailserver port 587 If space usage > 90% for 5 cycles then alert Example config: check filesystem root with path /dev/sda1
