Hello,

I have been using several monitoring tools for production servers so far and I must admit, I am very satisfied with PRTG. I am still testing it though and we might buy it very soon.

More or less we are interested in Database and WMI Sensors. I have been trying to setup query on oracle database, but without luck so far. Basically, idea for query is to check if there are blocking locks on database with:

select * from v$lock or select * from v$lock where block > 0

Basically, what I did is that I several times produced blocking lock on my test database and used above queries on database SQL-Expression. Tried with all possible options (Process numerical result, Process string result...) But no luck :(

I always receive this alarm which does not satisfy my need. Could not perform query: Could not convert variant of type (Array Byte) into type (Double)

Even, when I produce lock I am able to manually connect to database and query/see blocking locks on database.

Is there any possible solution that you could suggest?

Thank you


Article Comments

Hello,

the result from these queries can't be handled by PRTG. You need to use a more precise query which produces one field in order to to use the result as sensor result.

best reagards.


Sep, 2011 - Permalink

In your case a

select count(*) from v$lock

or

select count(*) from v$lock where block > 0

will do the trick


Sep, 2011 - Permalink

Hello again,

Thank you for you help. I was able to test and produce block with your help.

select block from v$lock where block > 0 Process numerical result Condition "Warning" Above 0

Still need to finish some more testing. Anyway this works like a charm.

Regards


Sep, 2011 - Permalink