Cipriani, Robert C wrote:
> ________________________________
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Egan
> Sent: Wednesday, December 05, 2007 12:04 PM
> To: [email protected]
> Subject: [Nagios-users] Adding a CFG file for virtual machines
> 
> I would like to add a separate group within Nagios for my virtual machines.  
> I created a file called virtual.cfg and changed the HOST GROUP DEFINITION to 
> the following:
> Define hostgroup {
>             hostgroup_name            virtual-servers ; the name of the 
> hostgroup
>             alias                             Virtual Servers ; long name of 
> the group
> }
> 
> For each host definition, the 'use' statement is as follows:
> Use      virtual-servers ; Inherit default values from a template
> 
> In the nagios.cfg file, I have added the following statement:
> Cfg_file=/usr/local/nagios/etc/objects/virtual.cfg
> 
> When I verify the configuration files, I get the following error:
> Error: Template 'virtual-servers' specified in host definition could not be 
> not found (config file '/usr/local/nagios/etc/objects/virtual.cfg'. starting 
> on line 39
> 
> I think I am missing a step or two to include this new cfg file.  Any help 
> would be appreciated.
> 

The file is being included. You just don't have a host template
named "virtual-servers".

For reference, "host template" != "hostgroup". Go back to the
documentation.

-- 
Andreas Ericsson                   [EMAIL PROTECTED]
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Nagios-users mailing list
[email protected]
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

Reply via email to