Re: [Nagios-devel] Q: nagios-2.9 - old bug with host_name
Posted: Wed Oct 17, 2007 7:41 am
> -----Original Message-----
> From: [email protected] [mailto:nagios-devel-
> [email protected]] On Behalf Of Dmitry Lebkov
> Sent: Monday, October 15, 2007 22:58
> To: [email protected]
> Subject: [Nagios-devel] Q: nagios-2.9 - old bug with host_name
processing?
>=20
> I've noticed a possible old bug with host_name procesing.
> This bug look like one, described in
>=20
>
http://sourceforge.net/mailarchive/foru ... 660511160=
8
10
> h2e006991gda3c8a1751e45d27%40mail.gmail.com&forum_name=3Dnagios-devel
>=20
> Solution with capitalising one of name worked as quick fix.
>=20
>=20
>=20
> -----
> 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
> }
>=20
> 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
> }
> -----
>=20
> # /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
>=20
> Reading configuration data...
>=20
> 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?
What is defined in your net-service-important template?
Thomas
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
> From: [email protected] [mailto:nagios-devel-
> [email protected]] On Behalf Of Dmitry Lebkov
> Sent: Monday, October 15, 2007 22:58
> To: [email protected]
> Subject: [Nagios-devel] Q: nagios-2.9 - old bug with host_name
processing?
>=20
> I've noticed a possible old bug with host_name procesing.
> This bug look like one, described in
>=20
>
http://sourceforge.net/mailarchive/foru ... 660511160=
8
10
> h2e006991gda3c8a1751e45d27%40mail.gmail.com&forum_name=3Dnagios-devel
>=20
> Solution with capitalising one of name worked as quick fix.
>=20
>=20
>=20
> -----
> 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
> }
>=20
> 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
> }
> -----
>=20
> # /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
>=20
> Reading configuration data...
>=20
> 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?
What is defined in your net-service-important template?
Thomas
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]