This monitor lets you check that certain conditions exists in a Microsoft SQL or MySQL database, based on a database query. You can define the criteria you want to exist in the database and as long as the specified conditions are present, the SQL Query Monitor is in an up state. If the database data changes outside the boundaries of the query criteria, the monitor triggers to a down state.
After the monitor is configured on this dialog, you must assign the monitor to a device through the Device Properties > Active Monitors dialog.
Note: The SQL Query monitor does not support Windows authentication. Make sure that ADO credentials are set up in the Credentials Library for the database for which you want to query. The Credentials system stores ADO database credentials information in your WhatsUp Gold database to be used when a database connection is required. For more information, see Using Credentials.
Note: When connecting to a remote SQL instance, WhatsUp Gold only supports the TCP/IP network library.
Note: This feature is only available in WhatsUp Gold Premium Edition. To update your license, visit the MyIpswitch portal.
To configure a SQL Query Monitor:
- or -
- or -
Server Properties
Note: MySQL database is supported and will be listed as a Server Type option if the MySQL 5.2 or later .NET connector is installed. You can download the connector on the MySQL Connectors Download site.
ServerName\Instance
format.Note: The ServerName\Instance
format is only required for SQL Server. MySQL only requires the ServerName
.
Important: Make sure that you include the full database name in your query. For query help, click Build. The SQL Query Builder will assist you in developing proper query syntax.
Monitor is up if
Important: All database rows must match the criteria settings in the Monitor is up if section for the monitor to be considered up. If multiple threshold criteria is used in the Content of each retrieved row matches the following criteria, all thresholds must match the criteria in each row.
Enter a numeric value for number of rows in the box to the right of the conditions list.
As you specify the desired monitor criteria settings, this description updates to verbally illustrate the monitor you have configured.
To add a SQL Query Monitor to a device:
For more information about assigning active monitors to devices, see Assigning active monitors.
For more information on setting up an action to fire based on the active monitor status, see Using Actions.