nagios(或icinga)将多个主机放到一个组内步骤


nagios将多个主机放到一个组内步骤:


# vi ming.cfg   


define host{
       use           linux-server
       host_name     ming
       alias         ming
       address       192.168.1.14
       action_url    /pnp4nagios/index.php/graph?host=$HOSTNAME$
       }


define host{
       use           linux-server
       host_name     ming2
       alias         ming2
       address       192.168.1.15
       action_url    /pnp4nagios/index.php/graph?host=$HOSTNAME$
       }
 

define  hostgroup{
       hostgroup_name  ubuntu
       alias           ubuntu
       members         ming,ming2    (主机间用","隔开)
       }

 

将hostgroup_name改为ming,members也改为ming


define service {
 
               use                generic-service
               host_name           ming,ming2
               service_description  check_load
               check_command        check_nrpe!check_load
}


define service {
 
               use                generic-service
               host_name           ming,ming2
               service_description  check_users
               check_command        check_nrpe!check_users
}

define service {
 
               use                generic-service
               host_name           ming,ming2
               service_description  check_total
               check_command        check_nrpe!check_total_procs
}


define service {
 
               use                generic-service
               host_name           ming,ming2
               service_description  check_hda1
               check_command        check_nrpe!check_hda1
}

 

:wq

本文出自 “linux” 博客,谢绝转载!

nagios(或icinga)将多个主机放到一个组内步骤,,5-wow.com

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。