I wanted to know what are the escape special character when doing a query in Nagios Oracle_Query? for example select * from table_name i get an error saying
OUTPUT: UNKNOWN - got no valid response for select \* from table_name - ORA-00911: invalid character (DBD ERROR: error possibly near <*> indicator at char 7 in 'select <*>\* from table_name)
I try one escape '\' before the *
I also tried 2 and 3 slaches and no luck
Not all of the checks can be tested successfully via "Test Check Command" in the CCM. This button was placed in the CCM for convenience, but was never meant to be a replacement of checking via the CLI. It works in the majority of the cases but it may fail on database checks because of the escaping issues.
Can you show us the exact command that you are running from the command line and the output of it?
Be sure to check out our Knowledgebase for helpful articles and solutions!
how would you write a simple query when you go to configure tab > Monitor wizard > Oracle Query > enter the database credential > enter the default query?
select count(*) from v\$session where status = "active"
I know it must be something simple I am just having a hard time figuring it out. All suggestions will be very appreciated!
You do not have the required permissions to view the files attached to this post.
Last edited by slansing on Fri May 10, 2013 1:50 pm, edited 1 time in total.
Reason:Please edit your previous post with new information if you are the last poster.
Do you have a specific query in mind to test this against? One that will without a doubt be valid in your oracle database? Unfortunately this is something only you or your DBA would be able to find out.