0

サイトが稼働しているかどうかを確認し、nagios によってローカルで監視できるようにしたいと考えています。

だから私はこのサイトhttp://www.linickx.com/nagiosに行き、次のようになりました.

hosts.cfg
    #  host definition for bonus
    define host{
    use                     generic-host            ; Name of host template to use
    host_name               bonus
    alias                   bonus
    address                 92.12.35.162
    check_command           check-host-alive
    max_check_attempts      10
    notification_interval   120
    notification_period     24x7
    notification_options    d,u,r}  
    services config

The following should appended to the end of hosts.cfg (located in /etc/nagios or /usr/local/nagios/etc)
# Service definition for bonus
define service{
use             generic-service     ; Name of service template to use
host_name           bonus
service_description     HTTP
is_volatile         0
check_period            24x7
max_check_attempts      3
normal_check_interval       3
retry_check_interval        1
contact_groups          technical,support
notification_interval       120
notification_period     24x7
notification_options        w,u,c,r
check_command           check_http
}

どうすればこれを機能させることができますか?

4

1 に答える 1

0

Nagios は、メインの nagios.cfg でファイルまたはディレクトリが指定されていない限り、新しい構成ファイルを追加しません。また、Nagios プロセスを再起動するまで、新しいオブジェクト構成は追加されません。Nagios (ソースまたはパッケージ) のインストール方法と、使用している Linux ディストリビューションについて、もう少し詳しく教えていただけますか?

追加のリソースを次に示します。

Nagios コア ドキュメント http://nagios.sourceforge.net/docs/3_0/

Nagios コア サポート フォーラム http://support.nagios.com/forum/viewforum.php?f=7

于 2012-08-22T14:35:35.733 に答える