Check MS SQL Stored Procedure

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Check MS SQL Stored Procedure

Post by dwhitfield »

@jkinning, did you have any other questions or are we ready to lock this up?
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Re: Check MS SQL Stored Procedure

Post by jkinning »

I think I am good but I can't figure out the critical part. The Business Unit must think I am a mind reader or understand their process and requirements because they are not much help at this point.

It would ideally be running the query as I have it written and if there are any records in the response, throwing an error and including the record text in the alert. Does that seem to be how this check behaves?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Check MS SQL Stored Procedure

Post by scottwilkerson »

If you want to error on a quantity, you would usually craft you query to have an integer as a result, then set the "Result:" field to 0
Then you can set the warning and critical values to what you want.

There is no way with this plugin at present to return the results of the query or procedure however it has been asked for and may make it in as an option in future versions.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Re: Check MS SQL Stored Procedure

Post by jkinning »

Thanks. You can close this.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Check MS SQL Stored Procedure

Post by scottwilkerson »

Locking
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked