Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
Allow you to run a stored procedure on an MSSQL server. Loosely based on the check_mssql plugin. Loops and output the data of all returned rows. Checks warnings, criticals and also allows to use columns fields as filters to the value name field. See example.
Current Version
0
Last Release Date
2014-12-12
Owner
Olivier Ragain
the plugin
Syntax for the procedure name: '<name_of_the_procedure param1, param2, ...' * it does no param initialization so might run into issue if you use params. I am using one parameter at the moment without any issue.
Syntax for warning / critical check is as follow (no spaces and case sensitive): name_of_the_column=warning_or_critical_value;*
Syntax for filters / ignores check is as follow (no spaces and case sensitive): name_of_the_column;*
Syntax check_mssql_sp -H <hostname> -U <username> -P <password> -s <storedproc> -d <database> -w <warning exp> -c <critical exp> -f <filter exp> -i <ignore exp>
An example: check_mssql_sp -H 10.100.101.63 -U sa -P xxxXXXxxx -s 's_monitoring_queue_adv' -d itrans_igs_async -w 'queue=40;' -c 'queue=50;' -f 'queue_code'
when using the -i arg, you can actually get the system to ignore some columns returned by the stored procedure
Use at your own risks and please use stored procedure that don't do locks as much as possible :)
A concrete example with the following dataset : header | network_code | throughput_in 1 | Telus B | 79 2 | Telus A | 39 3 | Others | 19 4 | NULL | 137
command: ./check_mssql_sp -H hostname -U user -P password -s storedproc -d database -f network_code result: OK - throughput_in_Telus_B=79,throughput_in_Telus_A=39,throughput_in_Others=19,throughput_in=137 |throughput_in_Telus_B=79,throughput_in_Telus_A=39,throughput_in_Others=19,throughput_in=137
You must be logged in to submit a review.
To:
From:
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!