2014年9月30日 星期二

Nagios Monitor

1. Install
$sudo apt-get install apache2 nagios3 nagios-nrpe-plugin
(1. Select "Internet Site" for "General type of mail configuration"
2. Select "OK")
3. Set web loggin Password )
$sudo apt-get install nagios3-doc
$sudo apt-get install nagios-nrpe-server

2. Start Nagios
$sudo /etc/nagios3/nagios3 -v nagios..cfg
(  Check no Errors  )

$sudo nano /etc/nagios3/conf.d/hosts.cfg
--------------------------------------------------------
define host{
  use                     generic-host   ; Name of host template to use
  host_name           master
  alias                    master
  dress                192.168.0.7
}
define host{
  use                     generic-host     ; Name of host template to use
  host_name          regionserver2 
  alias                   regionserver2
  address               192.168.0.23
}
--------------------------------------------------------

$sudo nano /etc/nagios3/conf.d/hostgroup_nagios2.cfg
-----------------------Add----------------------------
define hostgroup {
        hostgroup_name  Hadoop_Cluster
        alias           Hadoop
        members         master, regionserver2
 }
---------------------------------------------------------
$sudo /etc/init.d/nagios3 restart

Login:   http://192.168.0.7/nagios3   account: nagiosadmin , password:


[REFERENCE]

http://www.cnblogs.com/junrong624/p/3653988.html   (Installation)

沒有留言:

張貼留言