Q: nagios-2.9 - old bug with host_name processing?
Dmitry Lebkov
dima at sakhalin.ru
Thu Oct 18 02:45:01 CEST 2007
Thomas Guyot-Sionnest пишет:
>> -----Original Message-----
>> From: nagios-devel-bounces at lists.sourceforge.net [mailto:nagios-devel-
>> bounces at lists.sourceforge.net] On Behalf Of Dmitry Lebkov
>> Sent: Monday, October 15, 2007 22:58
>> To: nagios-devel at lists.sourceforge.net
>> Subject: [Nagios-devel] Q: nagios-2.9 - old bug with host_name
> processing?
>> I've noticed a possible old bug with host_name procesing.
>> This bug look like one, described in
>>
>>
> http://sourceforge.net/mailarchive/forum.php?thread_name=2b36e6605111608
> 10
>> h2e006991gda3c8a1751e45d27%40mail.gmail.com&forum_name=nagios-devel
>>
>> Solution with capitalising one of name worked as quick fix.
>>
>>
>>
>> -----
>> define host{
>> use net-router-important
>> host_name router_
>> alias router one
>> address 192.168.1.1
>> check_command check-host-alive
>> hostgroups router
>> }
>> define service {
>> use net-service-important
>> host_name router_
>> service_description PING
>> check_command check_icmp
>> contact_groups cisco-admins
>> servicegroups PING
>> }
>>
>> define host{
>> use net-router-important
>> host_name router_2
>> alias router two
>> address 192.168.1.2
>> check_command check-host-alive
>> hostgroups router
>> }
>> define service {
>> use net-service-important
>> host_name router_2
>> service_description PING
>> check_command check_icmp
>> contact_groups cisco-admins
>> servicegroups PING
>> }
>> -----
>>
>> # /usr/sbin/nagios -v /etc/nagios/nagios.cfg
>> Nagios 2.9
>> Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org)
>> Last Modified: 04-10-2007
>> License: GPL
>>
>> Reading configuration data...
>>
>> Error: Service 'PING' on host 'router_2' has already been defined
>> -----
>
> Did you enable use_regexp_matching and/or use_true_regexp_matching in
> nagios.cfg?
# cat nagios.cfg | grep 'use.*regex'
use_regexp_matching=1
use_true_regexp_matching=1
>
> What is defined in your net-service-important template?
define service {
name net-service-important
register 0
max_check_attempts 3
normal_check_interval 2
retry_check_interval 3
passive_checks_enabled 1
check_period 24x7
notification_interval 30
notification_period 24x7
notification_options w,c,r
contact_groups support
}
--
wbr, dvl
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel
More information about the Developers
mailing list