MSSQL Transactions/Sec facing Null

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dimsum
Posts: 153
Joined: Thu Aug 15, 2013 6:05 pm

MSSQL Transactions/Sec facing Null

Post by dimsum »

Hi Support,

I've a problem of mssql monitoring MSSQL Transactions/Sec facing Null error.

-U 'yyy' -P 'xxx' -T 'master' -p 1433 --transpsec --warning 10 --critical 20

How do i corrected value to monitor transpsec.

Thanks in advance.
You do not have the required permissions to view the files attached to this post.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: MSSQL Transactions/Sec facing Null

Post by abrist »

Can you check it from the cli?

Code: Select all

./check_mssql_database.py -U 'yyy' -P 'xxx' -T 'master' -p 1433 --transpsec --warning 10 --critical 20
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
dimsum
Posts: 153
Joined: Thu Aug 15, 2013 6:05 pm

Re: MSSQL Transactions/Sec facing Null

Post by dimsum »

Hi Abrist,

Result.
check_mssql_database.py: error: no such option: --transpsec

Please advice.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: MSSQL Transactions/Sec facing Null

Post by abrist »

The script runs the query for transpec:

Code: Select all

execute("SELECT cntr_value FROM sysperfinfo WHERE counter_name='Transactions/sec' AND instance_name='" + table + "';")
Are you sure the table is correct?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
WernervanLooy
Posts: 1
Joined: Wed Nov 13, 2013 6:00 am

Re: MSSQL Transactions/Sec facing Null

Post by WernervanLooy »

There is a typo in the script. transpec instead of transpsec.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: MSSQL Transactions/Sec facing Null

Post by tmcdonald »

WernervanLooy wrote:There is a typo in the script. transpec instead of transpsec.
I don't think this is it. In the code they seem to have taken this common typo into account and "transpec" gives the same result as the correct "transpsec".

@dimsum: What version of the plugin are you running?

Code: Select all

grep -A20 "Changelog" /usr/local/nagios/libexec/check_mssql_database.py
Also what Nagios XI version is this on?
Former Nagios employee
Locked