SQL Database Monitor

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
lance.peterson
Posts: 64
Joined: Wed Aug 05, 2015 11:10 am

SQL Database Monitor

Post by lance.peterson »

I am trying to just monitor the size of a single database. This is the first I've tried it. I am getting the error seen in the attachment.

Advice?
You do not have the required permissions to view the files attached to this post.
User avatar
jbrunkow
Posts: 441
Joined: Fri Mar 13, 2020 10:45 am

Re: SQL Database Monitor

Post by jbrunkow »

Hey Lance!

Can you please let us know what plug-in you are running to configure this check?

What is the exact check command you are running to return this message? You can see this by navigating to Configure in the header > clicking Core Config Manager under Advanced Configuration on the left pane > then Services under the Monitoring section > and then clicking the wrench next to the service in question to see the Check command and associated arguments.

It would help us greatly if you could also test the check command from the command line, as it will return more detailed information about what's going on. Instructions on how to do so are outlined in the following linked article.
ref: https://support.nagios.com/kb/article.php?id=167
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
lance.peterson
Posts: 64
Joined: Wed Aug 05, 2015 11:10 am

Re: SQL Database Monitor

Post by lance.peterson »

I used the MSSQL Database Wizard when I created this.

Attached is a screenshot of that screen. If I didn't get everything you needed there please let me know.

I also included the check command but it appears I may have done it incorrect.

Let me know what would be next.
You do not have the required permissions to view the files attached to this post.
User avatar
jbrunkow
Posts: 441
Joined: Fri Mar 13, 2020 10:45 am

Re: SQL Database Monitor

Post by jbrunkow »

It is also possible that certain characters are being misinterpreted. You may be able to sidestep this by escaping a certain character with another, or defining certain strings as macros instead of writing them out in the command.

Please refer to the following linked article for more information on this.
https://support.nagios.com/kb/article.php?id=580
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
jbrunkow
Posts: 441
Joined: Fri Mar 13, 2020 10:45 am

Re: SQL Database Monitor

Post by jbrunkow »

It looks like you entered a value for the second argument, but did not put it in the command. What happens if you try including the text from the second argument in the first one, or call the second argument in the command?

What output do you get when you run the following commands on your XI server? It may help to see if the command works without using macros.

Code: Select all

su - nagios
/usr/local/nagios/libexec/check_mssql_database.py -H [host IP address] [argument one and two]
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked