[Check_mk (english)] Flexible Notification Help

Hi,

I’m having some troubles with Flexible Notifications with check_mk 1.2.4p5 installed from the OMD site.

I currently have some manual service checks that I am trying to route to different support teams (ie check_mk users).

For user A, I have enabled service notifications and selected 'Limit to the following services" and entered the service name (copy/paste) to filter on.

For user B, I have enabled service notifications but this time I have blacklisted the exact same service entered above.

When I run a ‘Fake check’ to test my changes, both users receive the notification.

Any thoughts on what might be going on?

Thanks,

Sam

···

This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, notify the sender immediately by return email and delete the message and any attachments from your system.

To answer this more input about the exact configuration is needed.
Notification problems are some of the hardest to debug.

Best regards

Andreas

···

Loest, Samuel sloest@digitalmotorworks.com schrieb am Mo., 23. März 2015 um 22:23 Uhr:

Hi,

I’m having some troubles with Flexible Notifications with check_mk 1.2.4p5 installed from the OMD site.

I currently have some manual service checks that I am trying to route to different support teams (ie check_mk users).

For user A, I have enabled service notifications and selected 'Limit to the following services" and entered the service name (copy/paste) to filter on.

For user B, I have enabled service notifications but this time I have blacklisted the exact same service entered above.

When I run a ‘Fake check’ to test my changes, both users receive the notification.

Any thoughts on what might be going on?

Thanks,

Sam


This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, notify the sender immediately by return email and delete the message and any attachments from your system.


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

Not sure what you are looking for, but hope this helps:

We have a check that is counting the total number of processes and alerting on based on a threshold named ‘group_app_threads’.

I see the notification in /omd//var/nagios/nagios.log sucessfully.

For userA contact configuration (from ~/etc/check_mk/conf.d/wato/contacts.mk):

‘userA’: {‘alias’: u’userA Contact’,

       'contactgroups': ['groupA'],

       'email': '<userA@email.com>',

       'host_notification_commands': 'notify-host-by-pagerduty',

       'host_notification_options': 'dur',

       'notification_method': ('flexible',

                               [{'disabled': False,

                                 'host_events': ['d', 'u', 'r'],

                                 'parameters': [],

                                 'plugin': None,

                                 'service_blacklist': ['proc_ops_3paa_threads'],

                                 'service_events': ['c', 'r'],

                                 'timeperiod': '24X7'}]),

       'notification_period': '24X7',

       'notifications_enabled': True,

       'pager': '33d8d5593c01458b994ccb5b6b07d482',

       'service_notification_commands': 'notify-service-by-pagerduty',

       'service_notification_options': 'cr'},

For userA notification configuration:

Notifications: enabled

Notification time period: Always

Notification Options:

Host events:

Host goes down

Host gets unreachable

Host goes up again
Service events:
Service goes into critical state

Service recovers to OK
Notification method: Flexible Custom Notifications
Notification Plugin: Plain Text Email (using configured templates)

Time period: Always

Host Events:

Host goes down

Host gets unreachable

Host goes up again
Service Events:
Service goes into critical state

Service recovers to OK
Blacklist the following Services:
‘proc_group_app_threads’ (also tried ‘group_app_threads’)

For userB contact information (from ~/etc/check_mk/conf.d/wato/contacts.mk):

‘userB’: {‘alias’: u’userB Contact’,

        'contactgroups': ['groupB'],

        'email': 'userB@email.com',

        'host_notification_commands': 'notify-host-by-pagerduty',

        'host_notification_options': '',

        'notification_method': ('flexible',

                                [{'disabled': False,

                                  'host_events': [],

                                  'only_services': ['proc_group_app_threads'],

                                  'parameters': [],

                                  'plugin': None,

                                  'service_events': ['c', 'r'],

                                  'timeperiod': '24X7'}]),

        'notification_period': '24X7',

        'notifications_enabled': True,

        'pager': '<string of characters>',

        'service_notification_commands': 'notify-service-by-pagerduty',

        'service_notification_options': 'cr'},

userB notification configuration:

Notifications: enabled

Notification time period: Always

Notification Options:

Service events:

Service goes into critical state

Service recovers to OK
Notification method: Flexible Custom Notifications
Notification Plugin: Plain Text Email (using configured templates)

Time period: Always

Service Events:

Service goes into critical state

Service recovers to OK
Limit to the following Services:
‘proc_group_app_threads’ (also tried ‘group_app_threads’)

In our ~/etc/check_mk/main.mk we have defined the {host,service}_notification_commands as such :

extra_nagios_conf += r"“”

define command {

   command_name     notify-service-by-pagerduty

   command_line     /usr/share/pdagent-integrations/bin/pd-nagios -n service -k $CONTACTPAGER$ -t "$NOTIFICATIONTYPE$" -f SERVICEDESC="$SERVICEDESC$" -f SERVICESTATE="$SERVICESTATE$" -f HOSTNAME="$HOSTNAME$" -f SERVICEOUTPUT="$SERVICEOUTPUT$"

}

define command {

   command_name     notify-host-by-pagerduty

   command_line     /usr/share/pdagent-integrations/bin/pd-nagios -n host -k $CONTACTPAGER$ -t "$NOTIFICATIONTYPE$" -f HOSTNAME="$HOSTNAME$" -f HOSTSTATE="$HOSTSTATE$"

}

When I attempt to test the notification on this process check by triggering a Critical ‘Fake check results’, the nagios.log show notifications being sent to both users.

Is this what you are looking for? Or is something else needed?

Sam

···

-----Original Message-----From: Andreas Döhler andreas.doehler@gmail.com
To: “Loest, Samuel” sloest@digitalmotorworks.com, checkmk-en@lists.mathias-kettner.de checkmk-en@lists.mathias-kettner.de
Subject: Re: [Check_mk (english)] Flexible Notification Help
Date: Tue, 24 Mar 2015 15:09:46 +0000

To answer this more input about the exact configuration is needed.

Notification problems are some of the hardest to debug.

Best regards Andreas

Loest, Samuel sloest@digitalmotorworks.com schrieb am Mo., 23. März 2015 um 22:23 Uhr:

Hi,

I’m having some troubles with Flexible Notifications with check_mk 1.2.4p5 installed from the OMD site.

I currently have some manual service checks that I am trying to route to different support teams (ie check_mk users).

For user A, I have enabled service notifications and selected 'Limit to the following services" and entered the service name (copy/paste) to filter on.

For user B, I have enabled service notifications but this time I have blacklisted the exact same service entered above.

When I run a ‘Fake check’ to test my changes, both users receive the notification.

Any thoughts on what might be going on?

Thanks,

Sam


This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient,
you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, notify the sender immediately by return email and delete the message and any attachments from your system.


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en