AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Monit config4/3/2023 made sure the permissions on both monitrc and both conf.d file are 0700.Īt this point I am completely perplexed as to what could possibly be causing the (not very helpful) error message, /etc/monit/conf.d/apache2.double-checked that /var/run/mysqld/mysqld.pid does indeed exist.Check if the service is running: sudo systemctl status monit rvice - LSB: service and resource monitoring. To start the process, use systemctl command available on Ubuntu 20.04/18.04: sudo systemctl enable -now monit. Install it using the command: sudo apt-get install monit. looked over the files in hex, there's no funny characters. Monit package is available on official Ubuntu repositories.substituting in a nf file from a public repository of common monit config files and removing the apache2 config file.looked at the documentation 20 times over.If failed host localhost port 3306 protocol mysql then restart and alert Stop program = "/usr/sbin/service mysqld stop" Monit has a very powerful configuration syntax that allows a flexible way to monitor the health of all of your usenet, torrent or media server services. Start program = "/usr/sbin/service mysqld start" Stop program = "/usr/sbin/service apache2 stop"Īnd the contents of nf # cat nfĬheck process mysqld with pidfile /var/run/mysqld/mysqld.pid Start program = "/usr/sbin/service apache2 start" # cat nfĬheck process apache2 with pidfile /var/run/apache2.pid The same error occurs for the mysql configuration file if I delete/move the nf file. When I run monit -t (to test the configuration syntax) I get: /etc/monit/conf.d/nf:1: Error: syntax error 'check process ' In conf.d I have two files for my apache and mysql servers: # ls -al /etc/monit/conf.dĭrwxr-xr-x 2 root root 4096 Apr 15 16:03. I have a main monitrc file in /etc/monit which at the end has include /etc/monit/conf.d/*. I am trying to setup monit for my debian server.
0 Comments
Read More
Leave a Reply. |