Re: [Nagios-users] define service with multiple contactgroups
Am Mittwoch, 23. Mär. 11, 05:54:47 schrieb Anand, Sakshi: Purpose of both the services are essentially the same but they come with Nagios installation because they have defined these configurations for windows as well as linux users. You must use only one of them depending on the OS being used. I've recently taken over our Nagios config so am still learning, but we seem to do something similar using two services, they just have the same description. You can't tell there are two services when looking at the alerts or web pages. (example syntax below, probably full or errors) How do you manage service escalations with only one service defined? When I use two hostgroup, one service and one servicegroup definition for all default checks the first notifications goes to the correct group, but escalations for this service go to all members of both teams I want to send escalations only to one team. Here's my initial config: # linux server define host{ use tpl-host-default name tpl-host-linux contact_groups pager-linuxadmin hostgroups hgrp-linux-server register 0 } define host{ use tpl-host-linux host_name10.9.1.121 aliaslxdev address 10.9.1.121 } define service{ service_description Swap use tpl-service-standard servicegroupssgrp-check-standard check_commandcheck_nrpe!check_space_swap hostgroup_name hgrp-linux-server } define serviceescalation{ hostgroup_name hgrp-linux-server servicegroup_namesgrp-check-standard contact_groups +cgrp-nagios-test-escalation-mail first_notification 3 last_notification0 notification_interval10 } ## Windows Server define serviceescalation{ hostgroup_name hgrp-windows-server servicegroup_namesgrp-check-standard contact_groups +cgrp-nagios-test-escalation-phone first_notification 3 last_notification0 notification_interval10 } As mentioned in the first reply of my initial question i did not have a contact_group for my service templates and with this the notifications are sent to the contact group of the host definition. But when I inspect the settings in objects.cache all standard services escalate to both teams. define serviceescalation { host_name 10.9.1.121 service_description Swap escalation_options w,u,c,r contact_groups pager-linuxadmin,cgrp-nagios-test-escalation-phone } define serviceescalation { host_name 10.9.1.121 service_description Swap escalation_options w,u,c,r contact_groups pager-linuxadmin,cgrp-nagios-test-escalation-mail } What do I have to change that escalations work properly? I tried to split the servicegroups definition for both teams, but afaics I need to define 2 services for each hostgroup. -- Axel Rosenski - Administration - __ Wave Computersysteme GmbH Philipp-Reis-Str. 1-3 / 9 35440 Linden Geschäftsführer: Carsten Kellmann Registergericht Gießen HRB 1823 Tel.: +49 (0)6403 / 9050 8317 Fax: +49 (0)6403 / 9050 5089 mailto:rosen...@wave-computer.de http://www.wave-computer.de -- Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar ___ 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] define service with multiple contactgroups
Hey, that's been the solution. It's working now the way I want. Thanks, Axel Am Montag, 21. Mär. 11, 22:04:05 schrieb Chris Beattie: Check out the documentation's section on implied inheritance. It might let you do what you want: http://nagios.sourceforge.net/docs/3_0/objectinheritance.html Services can inherit their contact_groups from their associated host definition. You do this by *not* assigning a contact_group in the service definition. -- Axel Rosenski - Administration - __ Wave Computersysteme GmbH Philipp-Reis-Str. 1-3 / 9 35440 Linden Geschäftsführer: Carsten Kellmann Registergericht Gießen HRB 1823 Tel.: +49 (0)6403 / 9050 8317 Fax: +49 (0)6403 / 9050 5089 mailto:rosen...@wave-computer.de http://www.wave-computer.de -- Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar ___ 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] define service with multiple contactgroups
I've recently taken over our Nagios config so am still learning, but we seem to do something similar using two services, they just have the same description. You can't tell there are two services when looking at the alerts or web pages. (example syntax below, probably full or errors) define service{ service_description Load use tpl-service-standard servicegroupssgrp-check-standard check_commandcheck_nrpe!check_load hostgroup_name win-hosts contactgroupwin-admins } define service{ service_description Load use tpl-service-standard servicegroupssgrp-check-standard check_commandcheck_nrpe!check_load hostgroup_name unix-hosts contactgroupunix-admins } -- Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar ___ 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] define service with multiple contactgroups
Purpose of both the services are essentially the same but they come with Nagios installation because they have defined these configurations for windows as well as linux users. You must use only one of them depending on the OS being used. Regards, Sakshi Anand -Original Message- From: Robert Eden [mailto:rme...@gmail.com] Sent: Wednesday, March 23, 2011 10:17 AM To: Nagios Users List Subject: Re: [Nagios-users] define service with multiple contactgroups I've recently taken over our Nagios config so am still learning, but we seem to do something similar using two services, they just have the same description. You can't tell there are two services when looking at the alerts or web pages. (example syntax below, probably full or errors) define service{ service_description Load use tpl-service-standard servicegroupssgrp-check-standard check_commandcheck_nrpe!check_load hostgroup_name win-hosts contactgroupwin-admins } define service{ service_description Load use tpl-service-standard servicegroupssgrp-check-standard check_commandcheck_nrpe!check_load hostgroup_name unix-hosts contactgroupunix-admins } -- Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar ___ 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 -- Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar ___ 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
[Nagios-users] define service with multiple contactgroups
Hi, I'd like to create *one* service definition which I can use to alert different contact_groups depending on the hostgroup the server belongs to. I'd like to contact different teams for our windows and linuxserver. Below I added a short snippet of what I've done so far. As you can see I played around with serviceescalations but had no luck. When the service is critical both pager receive a notification. My next thought is to use the generic template and create two service template snippets and change the contactgroup, but I don't like to define ecery service twice. Perhaps there's a better way to achieve the desired behaviour. Any help is appreciated. Regards, Axel ### SNIP ### define contactgroup{ contactgroup_name pager-admin alias Pager Administration contactgroup_memberspager-linuxadmin, pager-windowsadmin } define service{ name tpl-service-standard contact_groups pager-admin register 0 } define service{ service_description Load use tpl-service-standard servicegroupssgrp-check-standard check_commandcheck_nrpe!check_load hostgroup_name hgrp-linux-server, hgrp-windows-server } define serviceescalation{ hostgroup_name hgrp-linux-server servicegroup_namesgrp-check-standard contact_groups pager-linuxadmin first_notification 1 last_notification2 notification_interval10 } define serviceescalation{ hostgroup_name hgrp-linux-server servicegroup_namesgrp-check-standard contact_groups pager-linuxadmin, phone-linuxadmin first_notification 3 last_notification0 notification_interval10 } define serviceescalation{ hostgroup_name hgrp-windows-server servicegroup_namesgrp-check-standard contact_groups pager-windowsadmin first_notification 1 last_notification2 notification_interval10 } define serviceescalation{ hostgroup_name hgrp-windows-server servicegroup_namesgrp-check-standard contact_groups pager-windowsadmin,phone-windowsadmin first_notification 3 last_notification0 notification_interval10 } -- Axel Rosenski - Administration - __ Wave Computersysteme GmbH Philipp-Reis-Str. 1-3 / 9 35440 Linden Geschäftsführer: Carsten Kellmann Registergericht Gießen HRB 1823 Tel.: +49 (0)6403 / 9050 8317 Fax: +49 (0)6403 / 9050 5089 mailto:rosen...@wave-computer.de http://www.wave-computer.de -- Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d ___ 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] define service with multiple contactgroups
Check out the documentation's section on implied inheritance. It might let you do what you want: http://nagios.sourceforge.net/docs/3_0/objectinheritance.html Services can inherit their contact_groups from their associated host definition. You do this by *not* assigning a contact_group in the service definition. -Original Message- From: Axel Rosenski [mailto:rosen...@wave-computer.de] Sent: Monday, March 21, 2011 3:51 PM I'd like to create *one* service definition which I can use to alert different contact_groups depending on the hostgroup the server belongs to. I'd like to contact different teams for our windows and linuxserver. -- Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar ___ 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