(или что там у вас дефолтное)
для хоста "nagios" определите.
либо вручную определите именно для этого хоста параметры max_check_attempts и что оно там еще попросит.
получается вы создали хост, но не объяснили нагиосу каким образом его мониторить (интервалы, таймауты и прочее)
что-то по типу:
Код: Выделить всё
# Generic host definition template - This is NOT a real host, just a template!
define host{
name generic-host ; The name of this host template
notifications_enabled 1 ; Host notifications are enabled
event_handler_enabled 1 ; Host event handler is enabled
flap_detection_enabled 1 ; Flap detection is enabled
failure_prediction_enabled 1 ; Failure prediction is enabled
process_perf_data 1 ; Process performance data
retain_status_information 1 ; Retain status information across program restarts
retain_nonstatus_information 1 ; Retain non-status information across program restarts
check_command check-host-alive
max_check_attempts 10
notification_interval 0
notification_period 24x7
notification_options d,u,r
contact_groups admins
register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
action_url /pnp4nagios/graph?host=$HOSTNAME$' class='tips' rel='/pnp4nagios/popup?host=$HOSTNAME$&srv=_HOST_
}
Код: Выделить всё
define host {
host_name nagios
use generic-host
alias nagios.host.com
address 192.168.0.37
hostgroups linux-servers
register 1
}
Человеку свойственно ошибаться, но для нечеловеческих ляпов нужен компьютер.