> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Caylan Van Larson
> Sent: Friday, June 29, 2007 11:49 AM
> To: [email protected]
> Subject: [Nagios-users] Time-Saving Tricks For Service Definitions
>
> Howdy,
>
> I think I've found a bug with the "Object Definition Tricks" found at
> http://nagios.sourceforge.net/docs/2_0/templatetricks.html#service.
>
> define service{
> name dell-hardware
> service_description Dell Hardware
> hostgroup_name dell-servers
> contact_groups sysadmins
> check_command check_nrpe!check_dell
> }
>
> Right up until I add back in a legacy host/service definition...
>
> define host {
> use production-host
> host_name newhost
> alias New Host
> address y.y.y.y
> }
>
>
> define service {
> use dell-hardware
> host newhost
> }
dell-hardware is a registered service that is applied to all hosts in
the hostgroup dell-servers. It is _not_ a template (register 0) that can
be applied to arbitrary service definitions.
http://nagios.sourceforge.net/docs/2_0/templaterecursion.html
"The third variable is register. This variable is used to indicate
whether or not the object definition should be "registered" with Nagios.
By default, all object definitions are registered. If you are using a
partial object definition as a template, you would want to prevent it
from being registered (an example of this is provided later). Values are
as follows: 0 = do NOT register object definition, 1 = register object
definition (this is the default). __This variable is NOT inherited;
every (partial) object definition used as a template must explicitly set
the register directive to be 0.__ This prevents the need to override an
inherited register directive with a value of 1 for every object that
should be registered."
(emphasis mine)
--
Marc
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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