New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

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

Free PRTG
Download >>

 

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


Ausgabe mehrerer Stringzeilen aus SQL-Sensor

Votes:

0

Your Vote:

Up

Down

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 by  Marcel Zerbini (10) 1



Best Answer

Accepted Answer

Votes:

0

Your Vote:

Up

Down

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 by  PRTG Tools Family [prtgtoolsfamily.com] (12,865) 3 4



3 Replies

Votes:

0

Your Vote:

Up

Down

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

Your Vote:

Up

Down

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 by  PRTG Tools Family [prtgtoolsfamily.com] (12,865) 3 4



Votes:

0

Your Vote:

Up

Down

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 by  Marcel Zerbini (10) 1



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.