Adding a CFG file for virtual machines

Andreas Ericsson ae at op5.se
Thu Dec 6 23:25:15 CET 2007


Cipriani, Robert C wrote:
> ________________________________
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Michael Egan
> Sent: Wednesday, December 05, 2007 12:04 PM
> To: nagios-users at lists.sourceforge.net
> 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                   andreas.ericsson at op5.se
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
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