Page 1 of 2
Only Notification Service group contact,not to host contacts
Posted: Wed Dec 26, 2018 8:33 am
by biswajit.banerjee
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
Re: Only Notification Service group contact,not to host cont
Posted: Wed Dec 26, 2018 11:57 am
by benjaminsmith
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.
Re: Only Notification Service group contact,not to host cont
Posted: Fri Dec 28, 2018 2:05 am
by biswajit.banerjee
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
Re: Only Notification Service group contact,not to host cont
Posted: Fri Dec 28, 2018 10:03 am
by lmiltchev
Still all these oracle services is visible via contact defined for that hosts and getting the notification too .
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:
https://assets.nagios.com/downloads/nag ... tance.html
Re: Only Notification Service group contact,not to host cont
Posted: Sat Dec 29, 2018 12:10 am
by biswajit.banerjee
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
Re: Only Notification Service group contact,not to host cont
Posted: Wed Jan 02, 2019 10:03 am
by lmiltchev
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?
Re: Only Notification Service group contact,not to host cont
Posted: Wed Jan 02, 2019 8:34 pm
by biswajit.banerjee
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
Screenshot from 2019-01-02 19-00-52.png
Screenshot from 2019-01-02 19-02-35.png
Re: Only Notification Service group contact,not to host cont
Posted: Thu Jan 03, 2019 9:47 am
by lmiltchev
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
Re: Only Notification Service group contact,not to host cont
Posted: Thu Jan 03, 2019 11:36 pm
by biswajit.banerjee
Attached
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
Posted: Fri Jan 04, 2019 11:08 am
by lmiltchev
...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.
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.
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