The dbWatch Nagios extension mechanism is included in the product and can be found under Configure->Extensions from dbWatch Monitor when connected to a dbWatch Server.
This must be configured and enabled. A perl script needs to be added to your Nagios scripts directory, it’s called and it converts the text file created by the Nagios extension in dbWatch to a status output Nagios can read.

This file can be downloaded from here:

Your Nagios setup and configuration might be different. This guide is tested on Nagios Core 4.3.4 with Nsclient/NSCP version on the dbWatch Server of The dbWatch host is running on Windows and the Nagios server is running on Linux.


The first thing you must do is to tell dbWatch to export the nagios text file. In the dbWatch Monitor click on the «Configure->Extensions» menu. Right click on the extension, and right click to configure. In the configuration view you can specify the filename for the generated text file, as well as how long dbWatch should wait before generating the file for the first time («firstrelay») and how often the file should be updated («relayperiod»). In the example we set the path to “C:\temp\nagios_output.txt”

When you are satisfied with the settings, click «OK». Then select the Nagios Extension again, and click «Enable». The entry should then turn white.

dbWatch will now generate the «c:\temp\nagios_output.txt» file after 70 seconds, and update it once every minute. Please verify that this file is generated before moving onto the next step

Installing Perl

In order for to work, perl must be installed on the host running dbWatch. If perl is already installed, skip to the next step. Otherwise, visit or to download and install perl.

Installing the Nagios Agent

If you already have an agent installed on the computer running the dbWatch Server, you can skip this step.

A common agent for Nagios is NSClient, that is what we will use in this guide. Once you have downloaded and installed the agent, there are a couple of steps that must be completed.

First, place the file in the scripts catalog.
Then open the configuration file nsclient.ini located in the NSClient catalog, and make the following changes (in this example on Windows we have installed Strawberry perl):

[/settings/external scripts/wrappings]
pl = C:\\Strawberry\\perl\\bin\\perl.exe scripts\\%SCRIPT% ARGS

[/settings/external scripts/wrapped scripts]
check_dbwatch_win = “C:\temp\nagios_output.txt”

allow nasty characters = true
allow arguments = true

Then we define the service on the Nagios server:

define service { use server-service host_name [YOUR_DBWATCH_SERVER] service_description Check dbWatch check_command check_nrpe_1arg!check_dbwatch_win

Then the command definition on the Nagios server:

define command { command_name check_nrpe_1arg command_line /usr/lib/nagios/plugins/check_nrpe -t 40 -H $HOSTADDRESS$ -c $ARG1$

To test the service on the Nagios Server:

/usr/lib/nagios/plugins/check_nrpe -H -c check_dbwatch_win

← Nimsoft/Nimbus / SCOM


Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Post Comment