Multiple inheritance

Richard Colley rcolley at cardaccess.com.au
Wed Jan 15 02:01:33 CET 2003


Thanks Donavan,

I am already doing this, but it's not quite flexible enough.

I want to have templates for severity of problems.  I want to have templates
for commands.  Then a registered service that mixes commands and severities.

Doing it your way requires many more specialised templates to be produced.

But thanks for the suggestion.

Regards,
Richard

-----Original Message-----
From: donavan nelson [mailto:donavan at 4wx.net] 
Sent: Wednesday, 15 January 2003 5:55 AM
To: nagios-users
Subject: [Nagios-users] Re: Multiple inheritance


I've answered this before, but I can't find it in the archive....SF is
acting up....

.dn


============================ copied from earlier message
===================== I do something similar, but it's a slightly different
mind set

template A

template B, uses A

service X, uses template B

Same behavior, different method.  I don't know if your way even works....

Example

# Generic service definition template
define service{
       name                            generic-service ;
...
}

define service{
       use                             generic-service        

       name                            generic_check_disk
       is_volatile                     0
       check_period                    24x7
       max_check_attempts              3
       normal_check_interval           5
       retry_check_interval            1
       contact_groups                  4wx-admin
       notification_interval           240
       notification_period             24x7
       notification_options            c,r
       register                        0      
}

define service{
       use                             generic_check_disk      

       service_description             /
       check_command                   check_nrpe!check_disk_root
       host_name                       sparky, cat
}

define service{
       use                             generic_check_disk      

       service_description             /var/log
       check_command                   check_nrpe!check_disk_var_log
       host_name                       sparky, cat
}

Hopefully you can find something useful here.

--
Donavan Nelson
4wx Networks
www.4wx.net

---------- Original Message -----------
From:  "Steven L. Kohrs"  <steve at dtnspeed.net>
To: nagios-users at lists.sourceforge.net
Sent: 07 Jan 2003 17:24:08 -0600
Subject: [Nagios-users] Multiple templates in a service definition?

> Is it possible to 'use' more than one template in a service 
> definition? What about multiple hosts? I need the same PING 
> capabilities on all my hosts.
>  
> Example:
>
> define service{
>     name                    generic-service
>         ...
>     }
>
> define service{
>         name                            generic-ping
>
>         service_description             PING
>         is_volatile                     0
>         check_period                    24x7
>         max_check_attempts              3
>         normal_check_interval           3
>         retry_check_interval            1
>         contact_groups                  engineers
>         notification_interval           120
>         notification_period             24x7
>         notification_options            w,u,c,r
>         check_command                   check_ping!100.0,20%!500.0,
> 60%        }
>
> define service{
>         use          generic-service ; Name of service template to
> use        use          generic-ping    ; Name of service template
> to use
>
>         host_name    one,five,seven,eight,nine,www,ns1,ns2
>         }


--
Donavan Nelson
4wx Networks
www.4wx.net

---------- Original Message -----------
From: Richard Colley <rcolley at cardaccess.com.au>
To: "'nagios-users at lists.sourceforge.net'"
<nagios-users at lists.sourceforge.net>
Sent: Tue, 14 Jan 2003 14:44:15 +1100
Subject: [Nagios-users] Multiple inheritance

> [Nagios-users] Multiple inheritance
------- End of Original Message -------



-------------------------------------------------------
This SF.NET email is sponsored by: Take your first step towards giving 
your online business a competitive advantage. Test-drive a Thawte SSL 
certificate - our easy online guide will show you how. Click here to get 
started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.443 / Virus Database: 248 - Release Date: 10/01/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.443 / Virus Database: 248 - Release Date: 10/01/2003
 


-------------------------------------------------------
This SF.NET email is sponsored by: Take your first step towards giving 
your online business a competitive advantage. Test-drive a Thawte SSL 
certificate - our easy online guide will show you how. Click here to get 
started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en




More information about the Users mailing list