monit command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
monit: command not found
or when using sudo you get the following error message
sudo: monit: command not found
Solutions to monit: command not found
How To Fix monit: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu monit is provided by monit package.
monit is:
monit is a utility for monitoring and managing daemons or similar programs running on a Unix system. It will start specified programs if they are not running and restart programs not responding.
monit supports:
- Daemon mode - poll programs at a specified interval
- Monitoring modes - active, passive or manual
- Start, stop and restart of programs
- Group and manage groups of programs
- Process dependency definition
- Logging to syslog or own logfile
- Configuration - comprehensive controlfile
- Runtime and TCP/IP port checking (tcp and udp)
- SSL support for port checking
- Unix domain socket checking
- Process status and process timeout
- Process cpu usage
- Process memory usage
- Process zombie check
- Check the systems load average
- Check a file or directory timestamp
- Alert, stop or restart a process based on its characteristics
- MD5 checksum for programs started and stopped by monit
- Alert notification for program timeout, restart, checksum, stop resource and timestamp error
- Flexible and customizable email alert messages
- Protocol verification. HTTP, FTP, SMTP, POP, IMAP, NNTP, SSH, DWP, LDAPv2 and LDAPv3
- An http interface with optional SSL support to make monit accessible from a webbrowser
To fix this problem, we can install more using the command below.
sudo apt-get -y install monit
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install monit.
sudo apt -y install monit
Or if you have aptitude installed you can use the following command.
sudo aptitude install monit
Summary
In this tutorial we learn how to fix monit command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.