Mudanças entre as edições de "Monit"

De MochilaWiki
Ir para navegaçãoIr para pesquisar
 
(6 revisões intermediárias pelo mesmo usuário não estão sendo mostradas)
Linha 24: Linha 24:
 
         if cpu usage (wait) > 20% then alert
 
         if cpu usage (wait) > 20% then alert
  
 +
== fcgiwrap ==
 +
<source lang="bash">
 +
cp /usr/share/doc/fcgiwrap/examples/monitrc /etc/monit/conf.d/fcgiwra
 +
</source>
  
referencias:
+
testa a configuração a procura de erros
 +
monit -t
 +
 
 +
 
 +
=== novo teste ===
 +
<source lang="bash">
 +
cd /usr/src
 +
wget https://mmonit.com/monit/dist/monit-5.14.tar.gz
 +
tar zxvf monit-5.14.tar.gz
 +
cd monit
 +
./configure
 +
make
 +
make install
 +
</source>
 +
 
 +
* https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-monit
 +
* http://terraltech.com/how-to-install-mmonit-monit/
 +
* https://www.digitalocean.com/community/tutorials/lemp-stack-monitoring-with-monit-on-ubuntu-14-04
 +
* https://mmonit.com/monit/documentation/monit.html
 +
* https://mmonit.com/
 +
 
 +
== referências ==
 
* http://mmonit.com/
 
* http://mmonit.com/
 
* http://mmonit.com/monit/documentation/monit.html
 
* http://mmonit.com/monit/documentation/monit.html
 
* http://reductivelabs.com/trac/puppet/wiki/Recipes/Monit
 
* http://reductivelabs.com/trac/puppet/wiki/Recipes/Monit
* http://fosscasts.com/screencasts/6-System-Monitoring-With-Monit.html
+
* https://github.com/danschultzer/monit-graph
* http://rimuhosting.com/knowledgebase/applications/monit-service-monitoring
+
* https://www.digitalocean.com/community/tutorials/lemp-stack-monitoring-with-monit-on-ubuntu-14-04

Edição atual tal como às 02h24min de 31 de julho de 2015

apt-get install monit
mkdir /etc/monit.d/
echo set alert banto@localhost >> /etc/monit/monitrc
echo include /etc/monit.d/* >> /etc/monit/monitrc
echo startup=1 > /etc/default/monit
echo CHECK_INTERVALS=180 >> /etc/default/monit
wget http://pub.nkosi.org/apache2.monit
mv apache2.monit /etc/monit.d/
/etc/init.d/monit start

mais instruções:

set httpd port 2812 and
        use address localhost
        allow localhost
        allow 192.168.0.0/255.255.255.0
        allow admin:monit
check system localhost
        if loadavg (1min) > 4 then alert
        if loadavg (5min) > 2 then alert
        if memory usage > 75% then alert
        if cpu usage (user) > 70% then alert
        if cpu usage (system) > 30% then alert
        if cpu usage (wait) > 20% then alert

fcgiwrap

cp /usr/share/doc/fcgiwrap/examples/monitrc /etc/monit/conf.d/fcgiwra

testa a configuração a procura de erros

monit -t


novo teste

cd /usr/src
wget https://mmonit.com/monit/dist/monit-5.14.tar.gz
tar zxvf monit-5.14.tar.gz
cd monit
./configure
make
make install

referências