Hi,

I'm wondering about the new V2 Database sensor that username/passwort only can set on the Object, and not on the sensor itself. This is in your enviroment a bit unlucky since we have on some Systems more Database running with different users. It should be possible to set up username/password to the sensor.


Article Comments

Hello Oliver, thank you for your post.

Conceptually, credentials (SNMP, WMI, now Database) must be set at DEVICE, GROUP, PROBE or ROOT level, the old approach using credentials in the sensor's settings makes it impossible to use device templates, is also harder to maintain (for instance if you update a password used in several sensors).

If you currently have an SQL Server running sensors with multiple credentials, there are a couple of alternatives:

  1. Create a "prtgsql" account that has read-only access to all databases.
  2. Create multiple devices in PRTG, you can for instance name them 'Server A / john.doe' and 'Server A / john.smith')
  3. Switch to a custom script sensor option using a scripting-language of your choice, this gives you complete flexibility regarding the credentials that you'll use.

Best Regards,


Jun, 2016 - Permalink