- Community | AppDynamics
- :
- Community Forums
- :
- Dashboards
- :
- Mathematical Expression for Custom MQ Health Rule ...

turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

07-10-2018
12:58 PM

07-10-2018
12:58 PM

We have installed the AppDynamics IBM MQ plugin\extension. I'm trying to set the custom mq health rules condition using mathematical expression so that an alert is sent out if the current queue depth is greater than 10% of the maximum queue depth. I have followed instructions on these 2 URLs >>> https://community.appdynamics.com/t5/Knowledge-Base/How-to-create-a-low-disk-space-alert-based-on-bo... and https://docs.appdynamics.com/display/PRO44/Configure+Health+Rules#ConfigureHealthRules-ToBuildanExpr... but neither seem to work. This is how I have set up one of them.

**Queue 3: ** Max queue depth is 100. I want to be alerted if the current queue reaches or goes over 10% of the max queue depth.

**Queue 3 Mathematical Expression:** ({CurrentQueueDepth} / ({MaxQueueDepth} + {CurrentQueueDepth}))*100. With "**is > Specific Value" **set at 10 (10%).

--- This does not seem to work for me ---

**Queue 2: ** Max queue depth is 100. I want to be alerted if the current queue reaches or goes over 10% of the max queue depth.

**Queue 2 Mathematical Expression:** (({CurrentQueueDepth} / ({MaxQueueDepth} + {CurrentQueueDepth}))*100. With "**is > Specific Value" **set at 10 (10%).

--- This isn't working for me either ---

Am I missing a step or is there something wrong with the mathematical expression? I tried attaching a word document with screen shots but kept getting error messages.

Solved! Go to Solution.

Mathematical Expression for Custom MQ Health Rule Metric Not Working

Hi Alicia,

Can you please let us know that the health rule is not working means it is not evaluating or it is evaluating incorrectly.

1. If it is not just able to evaluate, please share the controller server logs along with the relevant screenshots of the health rule configurations.

2. If it is evaluating incorrectly, please try below conditions and check the behavior

({CurrentQueueDepth}/{MaxQueueDepth})*100.

Thanks,

Yogesh

We have installed the AppDynamics IBM MQ plugin\extension. I'm trying to set the custom mq health rules condition using mathematical expression so that an alert is sent out if the current queue depth is greater than 10% of the maximum queue depth. I have followed instructions on these 2 URLs >>> https://community.appdynamics.com/t5/Knowledge-Base/How-to-create-a-low-disk-space-alert-based-on-both-percentage/ta-p/23469 and https://docs.appdynamics.com/display/PRO44/Configure+Health+Rules#ConfigureHealthRules-ToBuildanExpression but neither seem to work. This is how I have set up one of them.

**Queue 3: ** Max queue depth is 100. I want to be alerted if the current queue reaches or goes over 10% of the max queue depth.

**Queue 3 Mathematical Expression:** ({CurrentQueueDepth} / ({MaxQueueDepth} + {CurrentQueueDepth}))*100. With "**is > Specific Value" **set at 10 (10%).

--- This does not seem to work for me ---

**Queue 2: ** Max queue depth is 100. I want to be alerted if the current queue reaches or goes over 10% of the max queue depth.

**Queue 2 Mathematical Expression:** (({CurrentQueueDepth} / ({MaxQueueDepth} + {CurrentQueueDepth}))*100. With "**is > Specific Value" **set at 10 (10%).

--- This isn't working for me either ---

Am I missing a step or is there something wrong with the mathematical expression? I tried attaching a word document with screen shots but kept getting error messages.

Hi Yogesh,

The machine agent was down. After I started it, it started sending out the notifications after using the expression you sent.

Thanks for your help!

Alicia

1 ACCEPTED SOLUTION

Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

07-11-2018
12:55 AM

07-11-2018
12:55 AM

Hi Alicia,

Can you please let us know that the health rule is not working means it is not evaluating or it is evaluating incorrectly.

1. If it is not just able to evaluate, please share the controller server logs along with the relevant screenshots of the health rule configurations.

2. If it is evaluating incorrectly, please try below conditions and check the behavior

({CurrentQueueDepth}/{MaxQueueDepth})*100.

Thanks,

Yogesh

2 REPLIES

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

07-11-2018
12:55 AM

07-11-2018
12:55 AM

Hi Alicia,

Can you please let us know that the health rule is not working means it is not evaluating or it is evaluating incorrectly.

1. If it is not just able to evaluate, please share the controller server logs along with the relevant screenshots of the health rule configurations.

2. If it is evaluating incorrectly, please try below conditions and check the behavior

({CurrentQueueDepth}/{MaxQueueDepth})*100.

Thanks,

Yogesh

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

08-02-2018
05:37 PM

08-02-2018
05:37 PM

Hi Yogesh,

The machine agent was down. After I started it, it started sending out the notifications after using the expression you sent.

Thanks for your help!

Alicia