check_mssql_health

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: check_mssql_health

Post by rajasegar »

belvdr wrote:The error:

Code: Select all

The ROLLBACK TRANSACTION request has no corresponding BEGIN TRANSACTION
means that the plugin is issuing the ROLLBACK TRANSACTION command in Transact-SQL but that requires it issuing a BEGIN TRANSACTION first. A transaction is nothing more than a set of statements you wish to occur as a group.

The following flow may help:

Code: Select all

BEGIN TRANSACTION
  <update some rows>
  <if failure>
      ROLLBACK TRANSACTION
  <else>
      COMMIT
END TRANSACTION
So, I'm guessing the plugin is not coded correctly.
That plugin is not doing anything critical that needs a transaction.
It certainly looks like an issue with coding logic.

Anyway I temporarily got around the issue by using

./check_mssql_health --server TEST -port 1433 --username monitor --password abc123 --mode connection-time 2>/dev/null
OK - 0.11 seconds to connect as monitor | connection_time=0.11;1;5
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: check_mssql_health

Post by slansing »

Did some looking around and I've seen this mentioned a few times in regards to this plugin, but not specifically just with connection time, usually with more in-depth checks, which would indicate the majority of users are not having the same problem... or have not reported it. Thanks for letting us know that you temporarily worked around the problem, going to continue to poke around.
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: check_mssql_health

Post by rajasegar »

slansing wrote:Did some looking around and I've seen this mentioned a few times in regards to this plugin, but not specifically just with connection time, usually with more in-depth checks, which would indicate the majority of users are not having the same problem... or have not reported it. Thanks for letting us know that you temporarily worked around the problem, going to continue to poke around.
Not familiar with Perl else would have got rid of the transactions.
Let me know if you managed to find anything on this issue.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: check_mssql_health

Post by slansing »

Not coming up with much, have you tried another flag other than just connection time? Does it result in the same transaction fault as well? Do you have another mssql server you can test against?
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: check_mssql_health

Post by rajasegar »

slansing wrote:Not coming up with much, have you tried another flag other than just connection time? Does it result in the same transaction fault as well? Do you have another mssql server you can test against?
Yes, same issue with the other types of queries and other DB servers.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: check_mssql_health

Post by sreinhardt »

In the event that this is happening for most if not all flags on that plugin, I would probably suggest that you post an issue for it on their github page. It certainly sounds like the underlying perl packages they need may have updated and they have not altered the code to work with these changes. Unfortunately we don't develop this particular one, or I would have a talk with the developers about taking a look.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: check_mssql_health

Post by rajasegar »

sreinhardt wrote:In the event that this is happening for most if not all flags on that plugin, I would probably suggest that you post an issue for it on their github page. It certainly sounds like the underlying perl packages they need may have updated and they have not altered the code to work with these changes. Unfortunately we don't develop this particular one, or I would have a talk with the developers about taking a look.
Any idea how to find out which perl modules it requires?
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: check_mssql_health

Post by tmcdonald »

Open up the plugin and any line beginning with "use" will list the modules.
Former Nagios employee
Locked