notification commands based on hosts or services
Tedman Eng
teng at dataway.com
Sun Jul 27 02:56:22 CEST 2003
Lets say you've got contacts per person per notification type set up.
Joe_email = email notfication
Joe_pager= pager notification
Boss_email= , etc....
I think perhaps you could set up your contact groups accoring to
"notification profiles"
ie.
contact_groups:
general = Joe_Email, Joe_Pager, Boss_Email, Boss_pager, helpdesk_email,
oncall_pager
dev = Joe_Email, Boss_Email, helpdesk_email
test = Joe_Email, Joe_Pager, Boss_pager
In the service template, use 'general' as the default for all services
Then, in each service definition for each host in the dev or test group,
specify a particular contact_group to use and it'll override whatever's set
in the template.
"Mike Culbertson" <mike at omnipod.com> wrote in message
news:oprsv3eqwqmw44be at mail.infoleak.org...
> To add to the issues...
>
> I bit the bullet and went ahead and created additional entries for each
> contact, named test<contact>, and placed them all in a contact group
"test"
> all with email-only notifications. I then realized that the service
> templates for all of my checks are based around the type/timing of the
> checks, i.e. 15-min-check,5-min-check, etc. All the templates point to
the
> main contact group.
>
> I cannot change the templates, because that would affect ALL services, not
> just the ones I want only email from, and I hoped I might be able to
remove
> the default contact group and it would default to the contact group for
the
> host or hostgroup, but that is not the case. Removing the default contact
> group for a service template results in a warning for every service that
> uses the template.
>
> So is it accurate, then, that my options are these:
>
> New service templates for each of the groups of services for which I need
> specific notification types.
>
> or
>
> Removing contact group from the service templates and specfiying the
> contactgroup in each individual service.
>
>
> I am somewhat reluctant to do either as this would require editing a huge
> number of service entries in either case. Any ideas/hacks/tips?
>
>
> --
> Mike Culbertson
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
>
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
> _______________________________________________
> 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 sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
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