不知道哪里出错了。。哪位大神给看看。。。快疯了
22 # Define a host for the Windows machine we'll be monitoring
23 # Change the host_name, alias, and address to fit your situation
24
25 define host{
26 use windows-server ; Inherit default values from a template
27 host_name 204.233 ; The name we're giving to this host
28 alias 204.233 ; A longer name associated with the host
29 address 118.244.204.233 ; IP address of the host
30 }
31
32
33 ###############################################################################
34 ###############################################################################
35 #
36 # HOST GROUP DEFINITIONS
37 #
38 ###############################################################################
39 ###############################################################################
40
41
42 # Define a hostgroup for Windows machines
43 # All hosts that use the windows-server template will automatically be a member of this group
44
45 define hostgroup{
46 hostgroup_namewins ; The name of the hostgroup
47 alias wins ; Long name of the group
48
49 }
50
51
52
53
54 ###############################################################################
55 ###############################################################################
56 #
57 # SERVICE DEFINITIONS
58 #
59 ###############################################################################
60 ###############################################################################
61
62
63 # Create a service for monitoring the version of NSCLient++ that is installed
64 # Change the host_name to match the name of the host you defined above
65
66 define service{
67 use generic-service
68 host_name 204.233
69 service_description NSClient++ Version
我的配置有错么???
按照这个格式试一下:
define host{
use windows-server ; Inherit default values from a template
host_name TTs-60.151 ; The name we're giving to this host
alias cioWin-TTs151 ; A longer name associated with the host
address 10.0.60.151 ; IP address of the host
}
admin 发表于 2015-9-23 11:35
按照这个格式试一下:
define host{
还是报那个错误。。。唉,。。
admin 发表于 2015-9-23 11:35
按照这个格式试一下:
define host{
已解决,把模板文件里的grouphosts改名后 然后再windows.cfg里引用 就好了 不知道什么原因导致的。。。。
页:
[1]