[root@test services]# cat win.cfg
define host{
use windows-server,host-pnp
host_name wss2012
alias wss2012
address 192.168.0.116
}
define host{
use windows-server,host-pnp
host_name wss2013
alias wss2013
address 192.168.0.117
}
define service{
use generic-service,service-pnp
host_name wss2012
service_description NSClient++ Version
check_command check_nt!CLIENTVERSION
}
define service{
use generic-service,service-pnp
host_name wss2012
service_description Uptime
check_command check_nt!UPTIME
}
define service{
use generic-service,service-pnp
host_name wss2012
service_description Memory Usage
check_command check_nt!MEMUSE!-w 80 -c 90
}
define service{
use generic-service,service-pnp
host_name wss2012
service_description CPU Load
check_command check_nt!CPULOAD!-l 5,80,90
}
define service{
use generic-service,service-pnp
host_name wss2012
service_description C:\ Drive Space
check_command check_nt!USEDDISKSPACE!-l c -w 80 -c 90
}
define service{
use generic-service,service-pnp
host_name wss2012,wss2013
service_description check_ping
check_command check_ping!100.0,20%!200.0,50%
max_check_attempts 5
normal_check_interval 1
}
define hostgroup{
hostgroup_name win ; The name of the hostgroup
alias win ; Long name of the group
members wss2012 ; Comma separated list of hosts that belong to this group
}
define hostgroup{
hostgroup_name win02 ; The name of the hostgroup
alias win02 ; Long name of the group
members wss2013 ; Comma separated list of hosts that belong to this group
}
[root@test services]#
define host{
use windows-server,host-pnp
host_name wss2012
alias wss2012
address 192.168.0.116
}
define host{
use windows-server,host-pnp
host_name wss2013
alias wss2013
address 192.168.0.117
}
define service{
use generic-service,service-pnp
host_name wss2012
service_description NSClient++ Version
check_command check_nt!CLIENTVERSION
}
define service{
use generic-service,service-pnp
host_name wss2012
service_description Uptime
check_command check_nt!UPTIME
}
define service{
use generic-service,service-pnp
host_name wss2012
service_description Memory Usage
check_command check_nt!MEMUSE!-w 80 -c 90
}
define service{
use generic-service,service-pnp
host_name wss2012
service_description CPU Load
check_command check_nt!CPULOAD!-l 5,80,90
}
define service{
use generic-service,service-pnp
host_name wss2012
service_description C:\ Drive Space
check_command check_nt!USEDDISKSPACE!-l c -w 80 -c 90
}
define service{
use generic-service,service-pnp
host_name wss2012,wss2013
service_description check_ping
check_command check_ping!100.0,20%!200.0,50%
max_check_attempts 5
normal_check_interval 1
}
define hostgroup{
hostgroup_name win ; The name of the hostgroup
alias win ; Long name of the group
members wss2012 ; Comma separated list of hosts that belong to this group
}
define hostgroup{
hostgroup_name win02 ; The name of the hostgroup
alias win02 ; Long name of the group
members wss2013 ; Comma separated list of hosts that belong to this group
}
[root@test services]#