I figured out the steps to get the example plugin deployed (I finally read the instructions), howver I have a quesiton about URL Paths within the Metric Tag.
I have a bunch of statements like this in the example plugin i modified and the samem for port 80.
template="HTTP:hostname=10.10.55.2/docs/root/watchout.htm?examplecode=2,port=443,ssl=true:Availability"
Judging by the errors i'm getting from the log file the agent doesn't like the notation i'm providing (which includes the path - see the trace below).
2007-04-27 08:59:04,883 ERROR [Collector] Error running HTTP collector: java.lang.NullPointerException
java.lang.NullPointerException
at org.hyperic.hq.plugin.netservices.NetServicesCollector.getHostAddress(NetServicesCollector.java:256)
at org.hyperic.hq.plugin.netservices.NetServicesCollector.netstat(NetServicesCollector.java:91)
at org.hyperic.hq.plugin.netservices.HTTPCollector.collect(HTTPCollector.java:356)
at org.hyperic.hq.product.Collector.run(Collector.java:477)
at org.hyperic.hq.product.Collector.check(Collector.java:575)
at org.hyperic.hq.product.Collector.check(Collector.java:609)
at org.hyperic.hq.product.CollectorThread.run(CollectorThread.java:89)
at java.lang.Thread.run(Unknown Source)
so my question is, how do I enter a path for a host in the plugin?
this is what I have...
<metric name="Basic SSL"
template="HTTP:hostname=10.10.55.2/docs/root/watchout.htm?examplecode=2,port=443,ssl=true:Availability"
units="percentage"/>
or should the syntax be...
<metric name="Basic SSL"
template="HTTP:hostname=10.10.55.2,port=443,ssl=true:Availability"
path="/docs/root/watchout.htm?examplecode=2"
units="percentage"/>
Thanks,
Deeboh