I couldn't find answer for my question (searching google, nagios docs).
I've got host:
Code: Select all
define host{
use linux-box
host_name domena-ld
alias kontroler domeny TAILD
address 192.168.5.4
icon_image ubuntu.png
statusmap_image ubuntu.gd2
parents 3Com
}
Code: Select all
define host{
use generic-host
name linux-box
register 0
check_period 24x7
max_check_attempts 1
normal_check_interval 5
retry_check_interval 1
contact_groups admins
check_command check-host-alive
notification_interval 30
notification_period 24x7
}
I've defined service:
Code: Select all
# Użycie procesora
define service{
use local-service
host_name domena-ld
service_description CPU Usage
check_command check_nrpe!check_cpu
check_period samba
notifications_enabled 1
flap_detection_enabled 0
active_checks_enabled 1
passive_checks_enabled 0
}
Code: Select all
# 'samba' timeperiod definition
# Monitorowanie wykorzystania zasobów na kontrolerach domen
define timeperiod{
timeperiod_name samba
alias Samba Work Hours
monday 07:00-17:00
tuesday 07:00-17:00
wednesday 07:00-17:00
thursday 07:00-17:00
friday 07:00-17:00
}