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.
MSSQL Transactions/Sec facing Null
MSSQL Transactions/Sec facing Null
You do not have the required permissions to view the files attached to this post.
Re: MSSQL Transactions/Sec facing Null
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 20Former 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.
"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.
Re: MSSQL Transactions/Sec facing Null
Hi Abrist,
Result.
check_mssql_database.py: error: no such option: --transpsec
Please advice.
Result.
check_mssql_database.py: error: no such option: --transpsec
Please advice.
Re: MSSQL Transactions/Sec facing Null
The script runs the query for transpec:
Are you sure the table is correct?
Code: Select all
execute("SELECT cntr_value FROM sysperfinfo WHERE counter_name='Transactions/sec' AND instance_name='" + table + "';")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.
"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
There is a typo in the script. transpec instead of transpsec.
Re: MSSQL Transactions/Sec facing Null
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".WernervanLooy wrote:There is a typo in the script. transpec instead of transpsec.
@dimsum: What version of the plugin are you running?
Code: Select all
grep -A20 "Changelog" /usr/local/nagios/libexec/check_mssql_database.pyFormer Nagios employee