How to implement math formulas with thresholds 4 SQL metrics

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

How to implement math formulas with thresholds 4 SQL metrics

Post by dlukinski »

Hello Nagios XI team

I am digging deep into the SQL metrics and thresholds. What I find is that most of out of the box SQL metrics are rather useless. The reason is that they should be used in comparison to one another or as a formula with applicable thresholds.

for example:
- page splits/sec should not be more then 20% of the batch requests/sec
- page splits depend on the number of the active users (different "normal" for a different number of users)
- Ratio of Batch requests to Page Lookups should not be much greater than 100

how we can get this done?
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: How to implement math formulas with thresholds 4 SQL met

Post by cdienger »

You can use the mssql query wizard to execute custom queries with expressions to get the information you want. For example, your first scenario could use a query like:

Code: Select all

SELECT ((CAST(cntr_value as float)/(SELECT cntr_value FROM sys.dm_os_performance_counters WHERE counter_name = 'Batch Requests/sec'))*100) FROM master.sys.dm_os_performance_counters WHERE counter_name = 'Page Splits/sec'
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked