- 论坛徽章:
- 0
|
[root@blast bin]# ./nagios -v /usr/local/nagios/etc/nagios.cfg
Nagios 1.4.1
Copyright (c) 1999-2006 Ethan Galstad (nagios@nagios.org)
Last Modified: 05-15-2006
License: GPL
Reading configuration data...
Error: Invalid max_attempts value for host 'mercury-pc'
Error: Could not register host (config file '/usr/local/nagios//etc/192.168.2.100.cfg', line 2)
[root@blast etc]# vim 192.168.2.100.cfg
#'xp' host definition
define host{
host_name mercury-pc
alias 192.168.2.100
address 192.168.2.100
}
define service{
host_name mercury-pc
service_description http
check_command check-http
max_check_attempts 5
notification_interval 120
notification_period 24x7
}
求救啊,高手快点来啊 |
|