RE: [Nagios-devel] Unable to define empty check_command
-
Guest
RE: [Nagios-devel] Unable to define empty check_command
> -----Original Message-----
> From: [email protected] [mailto:nagios-devel-
> [email protected]] On Behalf Of Dmitry Sivachenko
> Sent: Saturday, January 07, 2006 9:25 AM
> To: [email protected]
> Subject: [Nagios-devel] Unable to define empty check_command
>=20
> Hello!
>=20
> We are using nagios 2.0b6.
[chop]
>=20
> define host {
> name h2
> check_command
>
> register 0
> }
>=20
> And nagios reports:
>=20
> # nagios -v nagios.cfg
>=20
> Nagios 2.0b6
> Copyright (c) 1999-2005 Ethan Galstad (http://www.nagios.org)
> Last Modified: 11-14-2005
> License: GPL
>=20
> Reading configuration data...
>=20
> Error: Could not add object property in file
> '/usr/local/etc/nagios/templates.cfg' on line 21.
>=20
> .....
>=20
>=20
> Is it possible to allow one to define empty check_command to disable
check
> for host health as described in the manual?
Leave out the check_command entirely --
define host {
name h2
register 0
}
Note that by specifying 'register 0' you are telling Nagios that this is
a template to be applied against a real host definition and not an
actual host definition itself. That really doesn't make much sense when
you specify a 'name' parameter.
--
Marc
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]