What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

Ausgabe mehrerer Stringzeilen aus SQL-Sensor

Votes:

0

Hallo zusammen

Ist es möglich mit einem SLQ-Sensor (Oracle DB) mehrere Stringzeilen und mehrere Spalten zurückzugeben und diese dann auszuwerten?

Anwendungsbeispiel: select username,account_status from dba_users;

Wir möchten nun z.B. den username prüfen und den account_status Username=‘SYSMAN‘ und account_status=‘LOCKED‘ dann soll eine Error ausgeben werden.

Hilfreich wäre wenn die ganze Zeile, welche den Treffer enthält irgendwo ausgegeben wird.

Vielen Dank und Gruss Marcel

notifications sensor sql

Created on Jan 18, 2013 2:05:41 PM



Best Answer

Accepted Answer

Votes:

0

Hi Marcel,

In your example a query like

SELECT COUNT(*)
    FROM dba_users
    WHERE Username=‘SYSMAN‘ AND account_status=‘LOCKED‘ 

Will return 1 when the account in question is locked.

Using limits you can set the sensor to an error state when this condition occurs.

Regards,

Created on Jan 21, 2013 9:44:04 AM



3 Replies

Votes:

0

Guten Tag,

das ist leider nicht möglich. Der SQL-Sensor kann nur einen String als Message oder eine Zahl als Wert verarbeiten.

mit freundlichem Gruß.

Created on Jan 18, 2013 4:19:11 PM by  Torsten Lindner [Paessler Support]



Accepted Answer

Votes:

0

Hi Marcel,

In your example a query like

SELECT COUNT(*)
    FROM dba_users
    WHERE Username=‘SYSMAN‘ AND account_status=‘LOCKED‘ 

Will return 1 when the account in question is locked.

Using limits you can set the sensor to an error state when this condition occurs.

Regards,

Created on Jan 21, 2013 9:44:04 AM



Votes:

0

Dear all Thank you very much for your helpful answers. We will try to configure these sensors the way to display at least an error with a limitation. Is there a future release or update with the possibilty to display more than just an error on limitation?

Thnx and rgds Marcel

Created on Jan 22, 2013 8:50:21 AM




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.