Only Notification Service group contact,not to host contacts
-
biswajit.banerjee
- Posts: 152
- Joined: Fri Dec 08, 2017 10:24 pm
Only Notification Service group contact,not to host contacts
Hi ,
We have made a service group and added only oracle related services to it . Our ask is only contact defined for service group should get the alerts and not the contacts defined for the host .
We have also defined a contact group for this service group . Further we have defined a service template and added this contact group to this service template . Via bulk deployment of template we have changed the template for this service group .
It seems all contact associated with the hosts of this service group is also getting the notifications .
How can we achieve to have notifications to only service group contacts for this service group and not to any other contacts .
Please help
We have made a service group and added only oracle related services to it . Our ask is only contact defined for service group should get the alerts and not the contacts defined for the host .
We have also defined a contact group for this service group . Further we have defined a service template and added this contact group to this service template . Via bulk deployment of template we have changed the template for this service group .
It seems all contact associated with the hosts of this service group is also getting the notifications .
How can we achieve to have notifications to only service group contacts for this service group and not to any other contacts .
Please help
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Only Notification Service group contact,not to host cont
Hello @biswajit.banerjee,
Can you check the oracle related services for the correct monitoring contacts? Go the Configure >Advanced Configuration >Services, click on the service, select Alert Settings:
It's possible that the oracle related services inherited other contact definitions as these may have been defined before creating the service template or if there is no contact defined in the service you would still receive notifications due to inheritance rules.
The easiest way to correct this is to go to Tools > Bulk Modification Tool > Add /Remove Contact and add the oracle contact group to the services and remove any other non-essential contacts.
Let me know if you get it resolved.
Can you check the oracle related services for the correct monitoring contacts? Go the Configure >Advanced Configuration >Services, click on the service, select Alert Settings:
It's possible that the oracle related services inherited other contact definitions as these may have been defined before creating the service template or if there is no contact defined in the service you would still receive notifications due to inheritance rules.
The easiest way to correct this is to go to Tools > Bulk Modification Tool > Add /Remove Contact and add the oracle contact group to the services and remove any other non-essential contacts.
Let me know if you get it resolved.
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
biswajit.banerjee
- Posts: 152
- Joined: Fri Dec 08, 2017 10:24 pm
Re: Only Notification Service group contact,not to host cont
Thanks for the Reply .
We have only one oracle contactgroup defined for the all the services in oracle service group . Infact the deployment was via bulk tool only . We have check via relationship check and config file too .
Still all these oracle services is visible via contact defined for that hosts and getting the notification too .
Please let me know if any thing is required from my side to diagnose .
Thanks
We have only one oracle contactgroup defined for the all the services in oracle service group . Infact the deployment was via bulk tool only . We have check via relationship check and config file too .
Still all these oracle services is visible via contact defined for that hosts and getting the notification too .
Please let me know if any thing is required from my side to diagnose .
Thanks
Re: Only Notification Service group contact,not to host cont
A monitoring contact that is added to a host will be able to see the services on that host too. This is by design. Also, this contact will receive notifications about service problems via implied inheritance, unless there is other contact added explicitly to these services. Read more on object inheritance (implied inheritance in particular) here:Still all these oracle services is visible via contact defined for that hosts and getting the notification too .
https://assets.nagios.com/downloads/nag ... tance.html
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
biswajit.banerjee
- Posts: 152
- Joined: Fri Dec 08, 2017 10:24 pm
Re: Only Notification Service group contact,not to host cont
Probably we have done as suggested , i.e , specifically defining the contact group for this service . Please see the config for one of sample
define service {
host_name AMHI-PROD-DBETLS
service_description BIZI Connected Users
use AMHI_oracle_services
check_command Oracle_TNS_Ping!--connect '172.16.36.19:1521/BIZI' --username 'name_changed' --password 'pass_changed' --method sqlplus --mode connected-users --warning 50 --critical 100!!!!!!!
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contact_groups DB_OracleContact
_xiwizard oracleserverspace
register 1
}
define service {
name AMHI_oracle_services
notification_options w,c,u,r,
contact_groups DB_OracleContact
register 0
}
Kindly help to resolve
define service {
host_name AMHI-PROD-DBETLS
service_description BIZI Connected Users
use AMHI_oracle_services
check_command Oracle_TNS_Ping!--connect '172.16.36.19:1521/BIZI' --username 'name_changed' --password 'pass_changed' --method sqlplus --mode connected-users --warning 50 --critical 100!!!!!!!
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contact_groups DB_OracleContact
_xiwizard oracleserverspace
register 1
}
define service {
name AMHI_oracle_services
notification_options w,c,u,r,
contact_groups DB_OracleContact
register 0
}
Kindly help to resolve
Re: Only Notification Service group contact,not to host cont
What is the exact issue that you are having - contacts added as members to the "DB_OracleContact" contact group are not receiving any notifications for the "BIZI Connected Users" and "AMHI_oracle_services" service?
Can you show us the "DB_OracleContact" contact group definition, a screenshot of the State History report, showing these services in a hard non-OK state, and a screenshot of the Notifications report for the same time period?
Can you show us the "DB_OracleContact" contact group definition, a screenshot of the State History report, showing these services in a hard non-OK state, and a screenshot of the Notifications report for the same time period?
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
biswajit.banerjee
- Posts: 152
- Joined: Fri Dec 08, 2017 10:24 pm
Re: Only Notification Service group contact,not to host cont
No the issue is the contacts of only host of oracle are also receiving alerts . I want the no contact except from contactgroup "DB_OracleContact" should receive any alerts and should not see any services in the web UI .
Please find the screen shots attached
Please find the screen shots attached
You do not have the required permissions to view the files attached to this post.
Re: Only Notification Service group contact,not to host cont
Can you PM me your profile? We need to review your configuration files and logs in order to identify the issue.
Admin > System Config > System Profile > Download Profile
Admin > System Config > System Profile > Download Profile
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
biswajit.banerjee
- Posts: 152
- Joined: Fri Dec 08, 2017 10:24 pm
Re: Only Notification Service group contact,not to host cont
Attached
Moderator's Note: The profile has been shared with the teach team, and removed from the public forum.
Moderator's Note: The profile has been shared with the teach team, and removed from the public forum.
Re: Only Notification Service group contact,not to host cont
As I mentioned before - a monitoring contact that is added to a host will see all of the services on that host in the web UI. This is by design and it cannot be changed....the issue is the contacts of only host of oracle are also receiving alerts . I want the no contact except from contactgroup "DB_OracleContact" should receive any alerts and should not see any services in the web UI.
Also, this contact will receive notifications about service problems via implied inheritance, unless there is other contact added explicitly to these services.
In your specific case, contacts "amhi-aix" and "viveksangwanare" are added (indirectly, via the sso_AixContact contactgroup in the AMHI_Server_aix host template) to UCORPVGRAC04 host, so they will be able to see the services on this host as well.
As far as notifications on the "ELIXPROD2 Connected Users" service, they will be sent to contacts/contactgroups added to the host, unless there is other contact added explicitly to the service. Currently, you don't have any contacts added to the "ELIXPROD2 Connected Users" service. I would recommend that you add the "DB_OracleContact" to it under the CCM in order to fix the issue.
CCM > Services > ELIXPROD2 Connected Users > Edit > Alert Settings tab > Manage Contact Groups > DB_OracleContact > Add Selected > Close > Save > Apply Configuration
Be sure to check out our Knowledgebase for helpful articles and solutions!