Wait for 30 second, monit will start the syslog automatically. Monit With Configured Services Test the Monitoring: ~]# monit reloadĪccess the web interface, you would find the new services that we configured earlier. Reload configuration fie to take effect of changes. Once configured, test the monit syntax ~]# monit -t Stop program = "/etc/init.d/rsyslog stop" Start program = "/etc/init.d/rsyslog start" ~]# vi /etc/monit.d/syslogmonitorĬheck process syslogd with pidfile /var/run/syslogd.pid If failed port 22 protocol ssh then restartĬonfigure for syslog. ~]# vi /etc/monit.d/sshdmonitorĬheck process sshd with pidfile /var/run/sshd.pid ![]() Once the web interface is up, we can start to setup other services that you want to monitor you can place the configuration files under /etc/monit.d/ directory.Ĭonfigure for sshd. Monit Home Page Configuring services for monitoring: ~]# /etc/init.d/monit restartĪccess the web interface by using use the username and password mentioned in the previous step. set httpd port 2812įrom the above settings, monit will listen on 2812 admin user will able to access the web interface from any network. Look for httpd port 2812, uncomment the line. Monit also provides a web interface to monitor and manage the configured services, by default monit listens on 2812 port but it needs to be setup. Logs setting can be changed by using the following file. set mailserverĪlert templates can be found in the configuration file itself. ~]# vi /etc/nfĪlert cans be configured by. Monit conig file is /etc/nf, by default monit is set to check the services at interval of 2 min, this setting can be altered by changing. ~]# monit statusĭata collected Mon Jul 7 07:51:09 2014 Configure Monit: ![]() Start monit by using the following command. It logs to its own log file and notifies the user via customizable messages, this guide will help you to setup monit on CentOS / RHEL.Ĭonfigure EPEL repo to download the latest Monit package. It can also used for managing and monitoring of programs, files, directories, and devices for timestamps changes, checksum changes, or size changes not limited to perform various TCP/IP network checks, protocol checks, and can utilize SSL for such checks. Monit is an opensource process tool for Linux operating system which helps you to monitor system process using web browser and also when ever requires it automatically do the maintenance or repair of particular process in such a way that it can be brought back online.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |