Question about service definition... recant

Jamie Bohr Jamie_Bohr at Agilent.com
Tue Jan 20 22:57:43 CET 2004


Never mind, I had a space of one of my hostgroup names (UNIX servers)
that services did not like.  I removed the space in the hostgroup name
and all was good.   My server now reads:

define service {
  service_description      some_name
 use                            generic-service
 register                       1
 host_name                      hostname1,hostname2
 hostgroup_name               hostgroup_name1,hostgroup_name2
 ....
}

sorry for the quick reply w/o better trial on my part.

- Jamie

On Tue, 2004-01-20 at 14:49, Jamie Bohr wrote:
> So if I have this correct then:
> 
> define service {
>   service_description    some_service_check
>   use                          generic-service
>   register                   1
>   host_name                 host1,hostgroup_name1,host2,hostgroup_name2
>   ...
> }
> 
> docs/xodtemplate.html#service shows the host_name directive as a
> required field and that host_name is the short name for the host.  I
> tried the above and had no success.  Can someone point to documentation
> of how, if possible, on how to add a hostgroup to a service definition? 
> Maybe even a >>> real <<< quick example as sown above.
> 
> Thank you for all you time and effort,
>    Jamie Bohr
> 
> 
> On Tue, 2004-01-20 at 14:32, jeff vier wrote:
> > On Tue, 2004-01-20 at 14:53, Jason Martin wrote:
> > > I don't think you can use both host_name and hostgroup_name within the 
> > > same definition.
> > 
> > yes you can.
> > 
> > comma-delimited, same as host_group.
> > 
> > 
> > 
> > -------------------------------------------------------
> > The SF.Net email is sponsored by EclipseCon 2004
> > Premiere Conference on Open Tools Development and Integration
> > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> > http://www.eclipsecon.org/osdn
> > _______________________________________________
> > 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
-- 
Jamie Bohr
Agilent Technologies, Inc.
IT | Technical Computing
719-590-2396
Jamie_Bohr at Agilent.com



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
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