initial setups, hostgroup help requested

Marc Powell marc at ena.com
Mon Apr 13 23:23:15 CEST 2009


On Apr 13, 2009, at 3:49 PM, lance raymond wrote:

> still getting things in order, and having a problem with adding my  
> 1st hostgroup.  Side note, is there any kind of logging, or  
> debugging to see where a failure occurs?

run /path/to/nagios -v /path/to/nagios.cfg

>   Ex. I add a new config file with the following basic line in the  
> main conf;
>     cfg_file=/usr/local/nagios/etc/hostgroups.cfg
> The file has the following;
>     define hostgroup{
>        hostgroup_name webservers
>        alias    webservers
>        contact_groups    sysadmins
>        members    cs0
>        }
>
> The alias I just made up, the contact group sysadmin's exists and  
> the member cs0 is one of my webservers.  In the actual server.cfg  
> file for that server I have a line;
>     hostgroups        webservers
>
> I don't know if that needs to be there as I am defining his as a  
> member in the hostgroups.cfg file.

It needs to be in one or the other, not both; either on the members  
line in the hostgroup definition or the hostgroup specified in the  
service definition (I think the latter is more maintainable, IMHO).

--
Marc


------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
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