certain timeperiods for some services on some hosts

Love Grönvall love.gronvall at iis.se
Fri Nov 19 13:16:40 CET 2010


Yes, that's the solution I described below that I don't want to use. Is duplicate service definitions the only way to go?

Best Regards,
Love Gronvall
.SE


-----Ursprungligt meddelande-----
Från: Assaf Flatto [mailto:nagios at flatto.net] 
Skickat: den 19 november 2010 12:01
Till: nagios-users at lists.sourceforge.net
Ämne: Re: [Nagios-users] certain timeperiods for some services on some hosts

  you can use a template to make it easier.

Build the template to encompass all the definitions you need and then 
define the service for the host group/service group  you want to 
associate it to , and in the service  definition  you "override " the 
timeperiod  definition with the local definition .

that way you still have a duplicate , but it will be an easier and 
neater solution .

Assaf


On 19/11/10 09:48, Love Grönvall wrote:
> I have two hosts; host_a and host_b, both running web servers which are being checked by Nagios.
>
> I want workhours notification_period on all services on host_a and host_b apart from:
> - 24x7 notification_period for http on host_a
> - workhours notification_period for http on host_b
>
> Do I need to set up different services for the two different time periods?
>
>
> The perfect solution for me would be to set up a servicegroup, "24x7-services", where I place important services on certain servers. But obviously I can't define notification_period for a service group.
>
> How is the best solution to solve this? (It's a setup with hundreds of servers, and doing duplicate definitions of services wouldn't be the prettiest solution.)
>
>
> Best Regards,
>
> Love Gronvall
> .SE

-- 
Never,Ever Cut A Deal With a Dragon


Next year I will be doing the London to Paris bike ride to
raise money for the DogTrust (www.dogstrust.co.uk) .
Please Sponsor me at http://www.justgiving.com/Assaf-Flatto


------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 475 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20101119/e36325e6/attachment.sig>
-------------- next part --------------
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
-------------- next part --------------
_______________________________________________
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