RE: [Nagios-users] RE: Service Definitions [RESOLVED]

2006-02-28 Thread Ryan Wilcox
w00t... thanks marc

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Marc Powell
 Sent: Tuesday, February 28, 2006 11:47 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] RE: Service Definitions
 
 
 
  -Original Message-
  From: Ryan Wilcox [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, February 28, 2006 11:29 AM
  To: Marc Powell; nagios-users@lists.sourceforge.net
  Subject: Service Definitions
 
  running 2.0 stable... i notice in the documentation host_name is
a
  required directive, yet the below config seems to be working in our
  environment.
 
  my objective is to define a service for multiple groups
 (hostgroup_name)
  rather than individual hosts. is this the right approach?
 
 
  define service {
 service_description PING
 is_volatile 0
 check_command   check_ping!100.0,20%!500.0,60%
 max_check_attempts  3
 normal_check_interval   5
 retry_check_interval1
 check_period24x7
 notification_interval   24
 notification_period 24x7
 hostgroup_name  NetworkDevices
 notification_optionsw,c,r
 contact_groups  Admins
  }
 
 Yes, it's listed as a 'template trick' --
 
 http://nagios.sourceforge.net/docs/2_0/templatetricks.html#service
 
 All Hosts: If you want to create identical services that are
assigned
 to all hosts that are defined in your configuration files, you can
use a
 wildcard in the host_name directive as follows:
 
  define service{
  host_name   *
  service_description SOMESERVICE
  other service directives ...
  }
 
 The definition above would create a service called SOMESERVICE on all
 hosts that are defined in your configuration files. All the instances
of
 the SOMESERVICE service would be identical (i.e. have the same check
 command, max check attempts, notification period, etc.).
 
 --
 Marc
 
 p.s. While it may sometimes seem like it, I'm not dedicated to nagios
 support. Sending to the list instead of directly to me is preferable.
 
 --
 Marc
 
 
 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting
 language
 that extends applications into web and mobile media. Attend the live
 webcast
 and join the prime developer group breaking into this new coding
 territory!
 http://sel.as-us.falkag.net/sel?cmd=kkid0944bid$1720dat1642
 ___
 Nagios-users mailing list
 Nagios-users@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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Nagios-users mailing list
Nagios-users@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


RE: [Nagios-users] RE: Service Definitions

2006-02-28 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Marc Powell
 Sent: Tuesday, February 28, 2006 11:47 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] RE: Service Definitions
 
 
 
  -Original Message-
  From: Ryan Wilcox [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, February 28, 2006 11:29 AM
  To: Marc Powell; nagios-users@lists.sourceforge.net
  Subject: Service Definitions

[chop]

  define service {
  service_description PING
  is_volatile 0
  check_command   check_ping!100.0,20%!500.0,60%
  max_check_attempts  3
  normal_check_interval   5
  retry_check_interval1
  check_period24x7
  notification_interval   24
  notification_period 24x7
  hostgroup_name  NetworkDevices
  notification_optionsw,c,r
  contact_groups  Admins
  }
 
 Yes, it's listed as a 'template trick' --
 
 http://nagios.sourceforge.net/docs/2_0/templatetricks.html#service
 
 All Hosts: If you want to create identical services that are assigned
 to all hosts that are defined in your configuration files, you can use
a
 wildcard in the host_name directive as follows:
 
   define service{
   host_name   *
   service_description SOMESERVICE
   other service directives ...
   }


Sorry, copied the wrong example out. You'll see it on the template
tricks page though ;)

--
Marc 


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Nagios-users mailing list
Nagios-users@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