Nagios

基本定義 [#p79311b1]

 define host{
         use                     linux-server
         host_name               
         alias                   
         parents
         address                 
         }

Ping定義 [#s47be12c]

 ■通常用
 define service{
         use                     generic-service
         host_name               
         service_description     PING
         check_command           check_ping
         }
 
 ※テスト用Ping値 -w 3000.0,80% -c 5000.0,100% -p 5
 ■ダミー用(Ping通信を許可していない場合に擬似的にPing監視をOKと判断
  define service{
         use                     generic-service
         host_name               
         service_description     
         check_command           check_dummy
         }

サーバーごとの定義 [#p3059337]

 ■Webサーバー
  define service{
         use                     generic-service
         host_name               
         service_description     TCP:80
         check_command           check_tcp!80
         }
 define service{
         use                     generic-service
         host_name               
         service_description     HTTP
         check_command           check_http
         }
 
 define service{
         use                     generic-service
         host_name               inamuu.com
         service_description     HTTP URL
         check_command           check_http_url!IPアドレス!http://inamuu.com!200,201,202
  }
 ■メールサーバー
 【POPサーバー】
  define service{
         use                     generic-service
         host_name               
         service_description     POP
         check_command           check_pop
	 }
  define service{
         use                     generic-service
         host_name               
         service_description     SMTP
         check_command           check_smtp
         }
 
 【SMTPサーバー】
 define service{
         use                     generic-service
         host_name               
         service_description     TCP:587
         check_command           check_tcp!587
         }