Service Definitions [RESOLVED]
Ryan Wilcox
rwilcox at mobitrac.com
Tue Feb 28 18:59:26 CET 2006
w00t... thanks marc
>> -----Original Message-----
>> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
>> admin at lists.sourceforge.net] On Behalf Of Marc Powell
>> Sent: Tuesday, February 28, 2006 11:47 AM
>> To: nagios-users at lists.sourceforge.net
>> Subject: [Nagios-users] RE: Service Definitions
>>
>>
>>
>> > -----Original Message-----
>> > From: Ryan Wilcox [mailto:rwilcox at mobitrac.com]
>> > Sent: Tuesday, February 28, 2006 11:29 AM
>> > To: Marc Powell; nagios-users at 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_interval 1
>> > check_period 24x7
>> > notification_interval 24
>> > notification_period 24x7
>> > hostgroup_name NetworkDevices
>> > notification_options w,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=k&kid0944&bid$1720&dat1642
>> _______________________________________________
>> 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
-------------------------------------------------------
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=lnk&kid0944&bid$1720&dat1642
_______________________________________________
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