Dbwatch Monitor

Last modified by Lars Grindland on 2021/12/22 10:04

Table of contents

Introduction

The Dbwatch monitor uses Dbwatch, www.dbwatch.com, as a source for information about alarms for databases, this information transformed to health index & reasons for database instances mapped to assets.

Note that the targeted Dbwatch server need to be configured to provided alarm information as webpages, please see section Configuring Dbwatch server for details .

The Dbwatch monitor consists of

  • General settings section covering settings like name of monitor and where the monitor should execute
  • Monitor settings section covering how to convert data from Dbwatch to health index and reason

1637244953511-261.png

The Dbwatch monitor will create an asset group, with the same name as the monitor, and populate the group with all of the database servers

1637245385183-323.png

Configuring the Ceeview Dbwatch monitor

General settings

This section covers common settings like name, scheduling etc.

SectionSettingDescription
Name Standard identification of monitor
 NameName
 DescriptionDescription of monitor
 TagsUser tags for the monitor
Time How monitor will be scheduled for execution
 TypeEither interval or schedule
 Interval/RRuleDetailed interval or schedule information
Measuring agent The agent settings controls from where the script will run.
 AgentThe chosen agent must have network connectivity to the container environment.
Dbwatch server Connection information for Dbwatch
 ServerDns name or ip address for the server hosting Dbwatch
 PortDbwatch's port number, default 8090

The beta version of the monitor does not have a configuration UI, so all configuration must be done using groovy scripting.

Monitor settings

This section covers how to map Dbwatch information to Ceeview health index and reasons

SectionSettingDescription
Dbwatch & webpages The webpage extension combined with Dbwatch connection information gives the url queried for Dbwatch status and checks
 Instance statusProvides overview status for each server. Use the Test button to verify connectivity.
 Instance checksProvides all alarms for each server. Use the Test button to verify connectivity.
Dbwatch & severity mapping 

Dbwatch  has three severities; info/clear, warning and error.

These settings controls how to map severities from Dbwatch to Ceeview

 Warning severityDbwatch's warnings map default to minor health severity
 Error severityDbwatch's errors map default to critical health severity
General  
 Monitor errorSeverity of alerts related to errors in monitor configuration
 CVIDInternal identifier for the monitor, primarily used for advanced troubleshooting

Configuring dbWatch server

Dbwatch server is a tool for monitoring and management of database server. Install the dbWatch server if not already installed, installation and configuration documentation is available at www.dbwatch.com.

Configure dbWatch to share alarm information

Use the DbWatch Monitor desktop app to connect to the DbWatch Server

dbw1.png

You can now either create the required web pages directly using Configure/ServerConfiguration/WebServer or indirectly using the DbwsqlConsole to write the required queries and publish them as web pages.
We'll use the latter approach in this example as it also provides an opportunity to test the queries before deploying them as web pages.
First enter the query to retrieve all database instances (servers) and their status (the query instanceList)

dbw2.png
The result frame should show all database instances.
Next use Web/MakeAvailableAsWebpage to create the webpage using the current dbwql query, enter desired name for the page, we use instanceList in this example.

dbw3.png

Finally click Save to save the webpage configuration

dbw4.png

Perform the same steps for the instanceCheckList query in order to complete the configuration of DbWatch wrt providing alarms using web pages.

Testing dbWatch web pages

You should now be able to test the web page, please note that urls are case-sensitive

dbw5.png

The final part of the url, xxxx.json, controls the format of the returned data

  • .json gives json text
  • .html gives html format
  • .csv gives comma separated fil

The name, "xxxx", has no real meaning; it is just a requirement to have a string in front of the postfix.

Dbwql queries

  • instanceList: instance->i/$i/name{}/$i/status{}
  • instanceCheckList: instance->i/task[tasktype='alert' & enabled !='YES' & status !='OK']->c/$i/name{"instanceName"}/$i/status{"instanceStatus"}/$c/name{"checkName"}/$c/details{"checkMessage"}/$c/status{"checkStatus"}?

 

..