nagios监控指定的目录大小
[*]define service{
[*] use generic-service ; Name of service template to use
[*] host_name db1
[*] service_description /U01 Partition
[*] is_volatile 0
[*] check_period 24x7
[*] max_check_attempts 2
[*] normal_check_interval 2
[*] retry_check_interval 1
[*] contact_groups admins
[*] notification_options w,u,c,r
[*] notification_interval 960
[*] notification_period 24x7
[*] check_command check_nrpe!check_disk!30%!20%!/u01
[*] }
[*]define service{
[*] use generic-service ; Name of service template to use
[*] host_name db1
[*] service_description /U02/ARCH Partition
[*] is_volatile 0
[*] check_period 24x7
[*] max_check_attempts 2
[*] normal_check_interval 2
[*] retry_check_interval 1
[*] contact_groups admins
[*] notification_options w,u,c,r
[*] notification_interval 960
[*] notification_period 24x7
[*] check_command check_nrpe!check_disk!30%!20%!/u02/arch
[*] }
[*]define service{
[*] use generic-service ; Name of service template to use
[*] host_name db1
[*] service_description /U02/BAK Partition
[*] is_volatile 0
[*] check_period 24x7
[*] max_check_attempts 2
[*] normal_check_interval 2
[*] retry_check_interval 1
[*] contact_groups admins
[*] notification_options w,u,c,r
[*] notification_interval 960
[*] notification_period 24x7
[*] check_command check_nrpe!check_disk!30%!20%!/u02/bak
[*] }
页:
[1]