Monitor Server Nagios

https://www.digitalocean.com/community/tutorials/how-to-install-nagios-on-ubuntu-12-10
http://www.nagios.org/

http://www.linuxfunda.com/2013/04/02/steps-to-configure-nagiosgraph-with-nagios-core/
https://raymii.org/s/tutorials/Nagios_Core_4_Installation_on_Ubuntu_12.04.html
https://www.linode.com/docs/uptime/monitoring/monitor-services-with-nagios-on-ubuntu-12-04-precise-pangolin

··REMOTO
/etc/nagios/nrpe.cfg

command[check_pgsql]=/usr/lib/nagios/plugins/check_pgsql -H localhost -w
5 -c 10 -d test -l test -p test123
command[check_mysql]=/usr/lib/nagios/plugins/check_mysql -H localhost -w
5 -c 10 -d test -l test -p test123
command[check_apache]=/usr/lib/nagios/plugins/check_http -H localhost -w
5 -c 10
command[check_tomcat]=/usr/lib/nagios/plugins/check_http -H localhost -p
8081 -w 5 -c 10
command[check_talento.demo]=/usr/lib/nagios/plugins/check_http -H
local.boos.com.co -u /talento.demo/ -w 5 -c 10
service nagios-nrpe-server restart 

CREATE USER 'test'@'localhost' IDENTIFIED BY 'test123'; 
GRANT USAGE ON * . * TO 'test'@'localhost' IDENTIFIED BY 'test123' WITH MAX_QUERIES_PER_HOUR 4 MAX_CONNECTIONS_PER_HOUR 1 MAX_UPDATES_PER_HOUR 2 MAX_USER_CONNECTIONS 2 ; 
CREATE DATABASE IF NOT EXISTS `test` ; 
GRANT ALL PRIVILEGES ON `test` . * TO 'test'@'localhost'; 

--SERVER 
nano /etc/nagios3/conf.d/joarchitectus.net.cfg 

define service{ use generic-service ; Name of service template to use host_name server.joarchix.net service_description PostgreSQL check_command check_nrpe_1arg!check_pgsql } define service{ use generic-service ; Name of service template to use host_name server.joarchix.net service_description MySQL check_command check_nrpe_1arg!check_mysql } define service{ use generic-service ; Name of service template to use host_name server.joarchix.net service_description Apache Http check_command check_nrpe_1arg!check_apache } define service{ use generic-service ; Name of service template to use host_name server.joarchix.net service_description Apache Tomcat check_command check_nrpe_1arg!check_tomcat }

 

También te podría gustar...

Deja un comentario