I did sudo apt-get install monit
but it only installs version 5.9 and the current version is 5.17.1. So I did wget https://mmonit.com/monit/dist/binary/5.17.1/monit-5.17.1-linux-x64.tar.gz
to download the precompiled binaries and now I have these files:
monit-5.17.1/bin/monit
monit-5.17.1/conf/monitrc
monit-5.17.1/man/man1/monit.1
I checked where MONIT is installed with dpkg -S monit | sort
:
monit: /etc/default/monit
monit: /etc/init.d/monit
monit: /etc/logrotate.d/monit
monit: /etc/monit
monit: /etc/monit/conf.d
monit: /etc/monit/monitrc
monit: /etc/monit/monitrc.d
monit: /etc/monit/monitrc.d/acpid
monit: /etc/monit/monitrc.d/apache2
monit: /etc/monit/monitrc.d/at
monit: /etc/monit/monitrc.d/cron
monit: /etc/monit/monitrc.d/mdadm
monit: /etc/monit/monitrc.d/memcached
monit: /etc/monit/monitrc.d/mysql
monit: /etc/monit/monitrc.d/nginx
monit: /etc/monit/monitrc.d/openntpd
monit: /etc/monit/monitrc.d/openssh-server
monit: /etc/monit/monitrc.d/pdns-recursor
monit: /etc/monit/monitrc.d/postfix
monit: /etc/monit/monitrc.d/rsyslog
monit: /etc/monit/monitrc.d/smartmontools
monit: /etc/monit/monitrc.d/snmpd
monit: /etc/monit/templates
monit: /etc/monit/templates/rootbin
monit: /etc/monit/templates/rootrc
monit: /etc/monit/templates/rootstrict
monit: /etc/pam.d/monit
monit: /usr/bin/monit
monit: /usr/share/bug/monit
monit: /usr/share/doc/monit
monit: /usr/share/doc/monit/changelog.Debian.gz
monit: /usr/share/doc/monit/CONTRIBUTORS
monit: /usr/share/doc/monit/copyright
monit: /usr/share/doc/monit/examples
monit: /usr/share/doc/monit/examples/monit.service
monit: /usr/share/doc/monit/examples/monit.upstart
monit: /usr/share/doc/monit/NEWS.Debian.gz
monit: /usr/share/doc/monit/README.Debian
monit: /usr/share/doc/monit/README.gz
monit: /usr/share/lintian/overrides/monit
monit: /usr/share/man/man1/monit.1.gz
monit: /var/lib/monit
monit: /var/lib/monit/events
I know how to handle the conf-file monitrc
but I don't know in which paths I have to replace the file monit
(only at /usr/bin/monit
or somewhere else?) and if this the correct way to upgrade at all.