Graphs from check_mssql_server.py

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Ivica Mustapic
Posts: 31
Joined: Thu Jun 13, 2013 1:06 am

Graphs from check_mssql_server.py

Post by Ivica Mustapic »

Guys,

We have problems with graphs from the check_mssql_server.py script.

The perfdata.log file has the following message:
2015-02-09 16:27:33 [5248] [1] Found Performance Data for XXXXXXX / MSSQL_Lock_Wait_Times (lockwait=77175.0ms;;;;;)
2015-02-09 16:27:33 [5248] [1] Invalid Perfdata detected

When testing from the command line we have:
./check_mssql_server.py -H vsmurprdsql01 -U 'XXXXX' -P 'XXXXXX' -p 1433 --lockwait
OK: Lock Wait Average Time (ms) is 696292.0ms|lockwait=696292.0ms;;;;;

Could it be that the quotation marks are not supplied by the check_mssql_server.py script in the performance part of the output?
All other graphs are working fine, only the graph generated by check_mssql_server.py are not.

Our NagiosXI version is: 2014R2.4
and check_mssql_server.py time stamp is:
-rwxr-xr-x 1 nagios users 20215 Oct 3 2013 ./check_mssql_server.py

Cheers
Ivica
nagiosnl_jorgen
Posts: 6
Joined: Tue Apr 22, 2014 8:39 am

Re: Graphs from check_mssql_server.py

Post by nagiosnl_jorgen »

Well, I found the same problem. This plugin does not meet the https://nagios-plugins.org/doc/guidelines.html Nagios Plugin Development Guidelines requirements:
2015-01-12 14:38:26 [4226] [1] Invalid Perfdata detected
Please notice that - for instance -
(database_pages=3451927.0;300;600;;;)
has one semicolon too much at the end. Either the trailing semicolons should be skipped or reduced to two semicolons.
The three semicolons are hardcodes so it's easy to fix.

Regards,
Jørgen van der Meulen
Solutions Consultant

http://www.nagios.nl
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Graphs from check_mssql_server.py

Post by tmcdonald »

This has already been filed internally and fixed. It should be included in the next release. I will be closing this topic now.
Former Nagios employee
Locked