nagios 主机组定义
由于线上主机比较多,为便于管理,自然想到了分组。下面是配置方法。[*]1.# vim nagios.cfg
[*]
[*]cfg_file=/usr/local/nagios/etc/objects/hostgroups.cfg#添加这一行
[*]
[*]2.在/usr/local/nagios/etc/objects/下建立hostgroups.cfg文件
[*]
[*]3.# vim hostgroups.cfg
[*]
[*]definehostgroup {
[*]
[*] hostgroup_name web
[*]
[*] alias web
[*]
[*] members 155,156,157
[*]
[*] }
[*]
[*]4.# checknagios #检测配置文件
[*]
[*]5.# service nagios restart
最终效果图:
学习了,不错,讲的太有道理了 走自己的路,让别人打车去吧。 沙发!沙发! 此地禁止大小便,违者没收工具。 有道理。。。 这是什么东东啊
页:
[1]