migration from nagios2 => nagios3 ; host name definition
Thomas Guyot-Sionnest
dermoth at aei.ca
Fri Mar 6 21:38:15 CET 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 05/03/09 05:31 PM, Steve Kieu wrote:
>
> Hello everyone,
>
> The first question is, what is the meaning of directive *name* in host
> definition? The document says there is no such thing, only *host_name*
> but if put name there nagios (both 2 and 3 does not complain)
>
> Longer explanation follows.
>
> When using nagios config version 2 in nagios3 I have some errors.
> Looking at the config of version 2 I see:
>
> define host{
> name standard-host
> use generic-host ; Name of host template to use
> register 0 ; Template - don't register
> host_name not-defined
> alias not-defined
> check_command check-host-alive
> contact_groups pager
> notification_period 24x7
> }
>
>
> define host{
> name virtual-host
> use generic-host ; Name of host
> template
> to use
> register 0 ; Template -
> don't regis
> ter
> host_name not-defined
> alias not-defined
> check_command check-host-alive
> contact_groups pager
> notification_period workhours
> }
>
>
> It worked with nagios2 ; nagios3 Warning: Duplicate definition found for
> host 'not-defined'
> and then error Could not add object property at line point to host_name
> not-defined.
Since these are templates (register 0) you should just leave host_name
and alias undefined (remove the lines). You'll have to define them
anyway when you use the template.
Seems like this is a bug, though a very minor one.
- --
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFJsYm36dZ+Kt5BchYRAqjIAJ96vTx4BTshTOBoXGU1SO2mYc4gDwCeNbnA
dCrLGWJZQrnhO4KvUSsjt+k=
=5DjF
-----END PGP SIGNATURE-----
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list