Download Schroder - Linux Networking Cookbook (O

Transcript
flap_detection_enabled
1
failure_prediction_enabled
1
process_perf_data
1
retain_status_information
1
retain_nonstatus_information 1
; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
register
0
}
# Define a service to "ping" the local machine
define service{
use
host_name
service_description
is_volatile
check_period
max_check_attempts
normal_check_interval
retry_check_interval
contact_groups
notification_options
notification_interval
notification_period
check_command
}
generic-service
localhost
PING
0
24x7
4
5
1
admins
w,u,c,r
960
24x7
check_ping!100.0,20%!500.0,60%
# Define a service to check the disk space of the root partition
# on the local machine. Warning if < 20% free, critical if
# < 10% free space on partition.
define service{
use
host_name
service_description
is_volatile
check_period
max_check_attempts
normal_check_interval
retry_check_interval
contact_groups
notification_options
notification_interval
notification_period
check_command
}
generic-service
localhost
Root Partition
0
24x7
4
5
1
admins
w,u,c,r
960
24x7
check_local_disk!20%!10%!/
# Define a service to check the number of currently logged in
# users on the local machine. Warning if > 20 users, critical
# if > 50 users.
define service{
use
host_name
service_description
generic-service
localhost
Current Users
13.4
Configuring Nagios to Monitor Localhost |
385