Hello, I've been trying to create a simple SQL query plugin for Microsoft Sql Server 2000. I think I pretty much covered all the bases, though when I run I test it using the java command below, nothing happens.
here is my code:
jre\bin\java.exe -jar pdk\lib\hq-product.jar -Dplugins.include=ivrsql2 -m metric:
<plugin>
<service name="ivrsql2">
<!-- JDBC STUFF -->
<property name="jdbcUrl"
value="jdbc:sqlserver://192.168.4.10:1433;DatabaseName=IVR_QA"/>
<property name="jdbcDriver"
value="com.microsoft.sqlserver.jdbc.SQLServerDriver"/>
<property name="jdbcUser"
value="****"/>
<property name="jdbcPassword"
value="****"/>
<config include="sql"/>
<!-- SQL STUFF *should be fine* -->
<filter name="template" value="sql:${query}:${name}"/>
<filter name="count" value="SELECT COUNT(*) FROM"/>
<metric name="Availability"
query="SELECT COUNT(*) FROM info_stats WHERE 1=1"
indicator="true"/>
</service>
</plugin>
I am getting a blank line. No data on it. I know my query is correct since when I run the query in MS SQL, I get a number returned. Can anyone see a problem with it? Something i am missing maybe?