79 lines
2.5 KiB
INI
79 lines
2.5 KiB
INI
###############################################################################
|
|
# LOCALHOST.CFG - SAMPLE OBJECT CONFIG FILE FOR MONITORING THIS MACHINE
|
|
#
|
|
#
|
|
# NOTE: This config file is intended to serve as an *extremely* simple
|
|
# example of how you can create configuration entries to monitor
|
|
# the local (Linux) machine.
|
|
#
|
|
###############################################################################
|
|
|
|
|
|
|
|
###############################################################################
|
|
#
|
|
# HOST DEFINITION
|
|
#
|
|
###############################################################################
|
|
|
|
# Define a host for the local machine
|
|
|
|
define host {
|
|
use windows-server ; Name of host template to use
|
|
; This host definition will inherit all variables that are defined
|
|
; in (or inherited by) the linux-server host template definition.
|
|
host_name w10-srv
|
|
alias srv-win
|
|
address 192.168.0.40
|
|
}
|
|
|
|
|
|
|
|
###############################################################################
|
|
#
|
|
# HOST GROUP DEFINITION
|
|
#
|
|
###############################################################################
|
|
|
|
# Define an optional hostgroup for Linux machines
|
|
|
|
|
|
|
|
|
|
# Define a service to check HTTP on the local machine.
|
|
# Disable notifications for this service by default, as not all users may have HTTP enabled.
|
|
|
|
define service{
|
|
use generic-service
|
|
host_name w10-srv
|
|
service_description NSClient++ Version
|
|
check_command check_nt!CLIENTVERSION
|
|
}
|
|
|
|
#Add the following service definition to monitor the uptime of the Windows server.
|
|
|
|
define service{
|
|
use generic-service
|
|
host_name w10-srv
|
|
service_description Uptime
|
|
check_command check_nt!UPTIME
|
|
}
|
|
|
|
#Add the following service definition to monitor the CPU utilization on the Windows server and generate a CRITICAL alert if the 5-minute CPU load is 90% or more or a WARNING alert if the 5-minute load is 80% or greater.
|
|
|
|
define service{
|
|
use generic-service
|
|
host_name w10-srv
|
|
service_description CPU Load
|
|
check_command check_nt!CPULOAD!-l 5,80,90
|
|
}
|
|
|
|
#Add the following service definition to monitor memory usage on the Windows server and generate a CRITICAL alert if memory usage is 90% or more or a WARNING alert if memory usage is 80% or greater.
|
|
|
|
define service{
|
|
use generic-service
|
|
host_name w10-srv
|
|
service_description Memory Usage
|
|
check_command check_nt!MEMUSE!-w 80 -c 90
|
|
}
|