10/6/2023 0 Comments Install monit centos 6.3If 5 restarts within 5 cycles then timeoutĬheck file mysql_rc with path /etc/init.d/mysqlĪdd the following to your monit config check filesystem with path /dev/xvda1Īdd this to your monit config (change the port if yours is different) check process sshd with pidfile /var/run/sshd.pid If failed host 127.0.0.1 port 3306 protocol mysql then restart Start program = "/etc/init.d/mysql start" Then of course create the pid directory mkdir /var/run/tomcat/Ĭhown tomcat.tomcat /var/run/tomcat/ MySQLĪdd this to your my.cnf under pid-file=/var/run/mysqld/mysqld.pidĪnd this to your monit config check process mysql with pidfile /var/run/mysqld/mysqld.pid If failed port 8080 for 5 cycles then restartĬATALINA_PID to be /var/run/tomcat/tomcat.pid Stop program = "/usr/local/tomcat/bin/shutdown.sh" Start program = "/usr/local/tomcat/bin/startup.sh" Add a tomcat instance into your config for monit that looks like this (change gid/uid tomcat runs ) check process tomcat with pidfile "/var/run/tomcat/tomcat.pid" Which may then require manual intervention anyway. Use this method if you dont have a suitable http connector enabled for your tomcat instance, but be aware that pid files can be left in an inconsistent state in some cases. Start program = "/etc/init.d/tomcat restart" Typically monit prefers a bid file to monitor a service as described in method b, but this way works just as well so long as the http port connector is enabled.Įcho "check host tomcat with address localhost This method requires the least work and changes to configurations. Simply run the below snippet to enable monit monitoring of tomcat. Now for the tomcat part – this is based on tomcat being in /usr/local/tomcat where our typical setup script puts everything. and install from there.ĭo your basic config, and anything else you may need/want. Its very easy to configure and very customizable.ĭebian/Ubuntu based: apt-get install monit Centos: It handles everything from disk space, to memory, services, and other things. Monit is brilliant for monitoring and restarting services when they are down, it can alert you or just restart after 5 failed connects/attempts. Its not an overly hard task, in fact its pretty darned easy. The ones we've seen in the past have been:Īfter those are deleted, we recommend that you run a make ("root make").We get asked a lot by customers to install and setup monit. To work around this you can simply delete their config files. Some distributions include Apache modules which are not compatible with the AMP. Rpm -Uvh -force -noscripts?/root/svn/mercury/src/rpms//*libapreq2*-2. Rpm -Uvh -force /root/svn/mercury/src/rpms/CentOS-4.2/mod_perl2/mod_perl-2.0. You may see some errors during this step, and you can ignore them.Ħ) Run the upgrade_postres script (/root/svn/mercury/src/upgrade_postgres) Tar -zxvf /root/AMP-5.2. -C /rootĥ) Run the amp_install script (/root/svn/mercury/install/amp-install). Using nano or another text editor, open /etc/selinux/config and set Ģ) Use xargs to pipe that list to up2dateĬat /var/airwave/custom/ | xargs -i up2date To verify your OS version, you can do:ġ) Copy the list of rpms (from a clean install of AMP 5.2 on Cent4) to the AMP being installed (eg. AMP versions after the initial 6.3 release are bundled with CentOS 5 or 5.2. If you'd like to run RHEL 5.3, please see the following article:ĪMP versions prior to 6.3 are bundled with CentOS 4 or 4.3. ĪMP versions prior to 6.3 do not work on RHEL 5.3 The customer is responsible for purchasing a copy of Red Hat Enterprise Linux or downloading CentOS for free from. This document describes how to install the AirWave Management Platform on Red Hat Enterprise Linux 4 and 5, and also applies to installing AMP on a standalone version of CentOS 4 or 5. The normal AMP installation includes the CentOS 5 Operating System.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |