#define host
define host{
use linux-server
host_name Ltsp01
alias LTSP01
address 10.0.0.17
}
define service{
use local-service ; Name of service template to use
host_name Ltsp01
service_description PING
check_command check_ping!100.0,20%!500.0,60%
}
define service{
use local-service ; Name of service template to use
host_name Ltsp01
service_description Root Partition
check_command check_local_disk!20%!10%!/
}
define service{
use local-service ; Name of service template to use
host_name Ltsp01
service_description Current Users
check_command check_local_users!20!50
}
define service{
use local-service ; Name of service template to use
host_name Ltsp01
service_description Total Processes
check_command check_local_procs!250!400!RSZDT
}
define service{
use local-service ; Name of service template to use
host_name Ltsp01
service_description Current Load
check_command check_local_load!5.0,4.0,3.0!10.0,6.0,4.0
}
define service{
use local-service ; Name of service template to use
host_name Ltsp01
service_description Swap Usage
check_command check_local_swap!20!10
}
#define service{
# use local-service ; Name of service template to use
# host_name Ltsp01
# service_description HTTP
# check_command check_http
# notifications_enabled 0
# }
define service{
use generic-service
host_name Ltsp01
service_description Uptime
check_command check_nt!UPTIME
}
# Create a service for monitoring CPU load
# Change the host_name to match the name of the host you defined above
define service{
use generic-service
host_name Ltsp01
service_description CPU Load
check_command check_nt!CPULOAD!-l 5,80,90
}
define service{
use generic-service
host_name Ltsp01
service_description Memory Usage
check_command check_nt!MEMUSE!-w 80 -c 90
}
No comments:
Post a Comment