Solved

Only send hosts/services with notification enabled in StreamConnector

  • 4 January 2022
  • 2 replies
  • 56 views

Badge +2

Hi,

 

We test differents solutions to manage on-call. For the moment, we’ve tried SreamConnector for PagerDuty, OPSGenie and Signl4.

We would like to send in StreamConnecter only hosts and services with notifications enabled. It’s possible to do that?

 

Thanks,

icon

Best answer by sims24 4 January 2022, 15:28

View original

2 replies

Userlevel 6
Badge +19

Hey @agreppo 

Thanks for posting.

Not really, Stream Connectors manage raw events and don't have access to this kind of parameter at host and services levels. 

A workaround would be to create a host and a service group 'notification_enabled' containing all objects with notifications enabled.

Then, configure the stream connector to ignore resources outside of these groups.

 

The other solution would be to add notification plugin to take advantage of notification parameters and let centreon-engine triggers it. 

Badge +2

@sims24 Thanks for your answer,

 

We are testing email notification to create an alert in PagerDuty or OPSGenie.

It seems to work.

Reply