How can I monitor other SQL Servers through ADO with PRTG?

Votes:

1

Your Vote:

Up

Down

I want to monitor other SQL servers than Microsoft SQL, Oracle or mySQL. How can I do this?

ado custom-exe custom-sensor google-code powershell prtg script sql

Created on Mar 9, 2010 3:00:28 PM by  Daniel Zobel [Paessler Support] (21,383) 3 3

Last change on Mar 10, 2010 12:58:34 PM by  Daniel Zobel [Paessler Support] (21,383) 3 3



1 Reply

Accepted Answer

Votes:

1

Your Vote:

Up

Down

Monitoring (Almost) Any SQL Server Through ADO with PRTG Network Monitor

Using a custom EXE sensor script for PRTG you can monitor any SQL server using ActiveX Data Objects (ADO) and the PowerShell scripting language.

There are two usage scenarios for this script:

  • Using this script you will be able to monitor any data source with PRTG that is accessible through ADO, including many database servers (e.g. SQL Server, Oracle, IBM DB2, MySQL, Sybase, Informix, Interbase, Firebird) as well as data files (Excel, Access, SQlite, Foxpro, Filemaker). Even Sharepoint, MS Project, Active Directory and Exchange are possible.
  • Although PRTG has built-in native sensors for the most used databases (Microsoft, MySQL and Oracle SQL servers) it can sometimes be helpful to use the ADO interface for monitoring.

How to do it

  • First you need the "connection string" which tells ADO where and how to connect. The website http://www.connectionstrings.com/ offers predefined connections string for over 50 different data sources.
  • For Windows XP/2003/Vista/2008 R1: Download and install PowerShell on the machine that will run the script (your core server or a system running the associated probe). PowerShell is already included in Windows 7 and 2008 R2.
  • Download the script Demo Powershell Script - Connecting to database with ADO.ps1 from the PRTG 7 Addons Google Code project and place it into the following folder either on your PRTG core installation (if you want to use the LocalProbe) or on a Remote Probe System. \prtg network monitor\custom sensors\exe
  • Edit the settings in the "Parameters" section of the ps1 file for your needs.
  • In PRTG's web interface: create a new Custom EXE Sensor and select the filename mentioned above.

That's it, you should now see the sensor's results.

Security Issues

It's a good practice to not enter passwords, parameters, etc. directly into your script. Instead, you can use the parameter field in PRTG to hand over these values to your script when calling it.

Information about signing Powershell scripts and the Execution Policy for scripts can be found in the following external resources:

See Also

How do I correctly configure credentials for ADO SQL sensors?

Created on Mar 9, 2010 3:31:12 PM by  Daniel Zobel [Paessler Support] (21,383) 3 3

Last change on Dec 14, 2010 9:20:25 AM by  Daniel Zobel [Paessler Support] (21,383) 3 3



Please log in or register to enter your reply.


Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.

PRTG
Network Monitor
Intuitive to Use.
Easy to manage.

150.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Visit
www.paessler.com

What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

Top Tags


View all Tags