Query too long for "Check_xi_OracleQuery"
Posted: Wed Apr 17, 2013 9:05 am
Hello,
In my "Check_xi_OracleQuery", SQL query is too long and after saving that, half of query is automatically placed in $ARG2$, that gives "OUTPUT: UNKNOWN - got no valid response for ...." error, can anybody help me how to concatenate ARG1$ & ARG2 or if there is any other way to do so?
-connect xxxxxx --username xxxxx --password "xxxxx" --encode --mode sql --name="select count(1) as count from MyTable1 mt1, MyTable2 mt2 where mt1.id=mt2.mti_id and xxxxxxxxxxx so on.................." --name2="Total" --warning 1 --critical 2
bold and highlighted query is too long in my case and that is splitted by nagios in $ARG2$, please suggest if there is any other way to fix this issue.
Thanks in advance
Regards
Ali
In my "Check_xi_OracleQuery", SQL query is too long and after saving that, half of query is automatically placed in $ARG2$, that gives "OUTPUT: UNKNOWN - got no valid response for ...." error, can anybody help me how to concatenate ARG1$ & ARG2 or if there is any other way to do so?
-connect xxxxxx --username xxxxx --password "xxxxx" --encode --mode sql --name="select count(1) as count from MyTable1 mt1, MyTable2 mt2 where mt1.id=mt2.mti_id and xxxxxxxxxxx so on.................." --name2="Total" --warning 1 --critical 2
bold and highlighted query is too long in my case and that is splitted by nagios in $ARG2$, please suggest if there is any other way to fix this issue.
Thanks in advance
Regards
Ali