Welcome to Questions - Ask OpenNMS, where you can ask questions and receive answers from other members of the community.

HTTP Collector changing HTTP get to query [closed]

0 votes
26 views

I'm working on a project for the local Boy Scout council in Minnesota to set up a monitoring solution for camp properties.  The plan is to install Raspberry Pis with OWFS and 1wire sensors in each building that needs to be monitored for temperature and water detection and so on.  In the camp kitchens, additional sensors will be installed in the walk in freezers, refrigerators and maybe the automatic dishwasher to ensure proper washing temperature.  The hope is OpeNMS will provide the logging, reporting and alerting of the sensors to the camp staff.  A small side interest is use an old tablet computer, mount it to the wall in the kitchen, displaying a dashboard of the past week's kitchen freezer and refrigerator sensor data for the health inspector to review-eliminating the need to manually record, which often is missed.

 

I have a working Raspberry Pi and OWFS setup in my home as a test and I'm attempting to setup OpenNMS(18.0.3) to collect the OWFS stats.  I've written a collector package called HTTP1wire, and a HTTP collector, both files are attached.  I then set up a requisition and added the OWFS node.  The issue I'm having is it appears the OpenNMS HTTP collector is changing my URI HTTP get request to a query, by appending the URI string with a question mark.  Any idea why this is occurring, and can you suggest how I might go about changing the behaviour?

 

collectd log

2017-01-23 17:05:53,118 DEBUG [Collectd-Thread-26-of-50] o.a.h.wire: http-outgoing-11 >> "GET /bus.0/28.22619B080000/fasttemp? HTTP/1.1[\r][\n]"

 

Thank you, Mike 

OpenNMS version
18.0.3
Java version
1.8.0_121
Operating system
Ubuntu 16.04
PostgreSQL version
9.5
closed with the note: New information, will open a new question
asked Feb 1 by mnarusiewicz (190 points)
closed Feb 28 by mnarusiewicz

2 Answers

0 votes
Hey, can you provide the http-datacollection-config.xml and the collectd.log? You can use http://paste.opennms.eu or https://gist.github.com. You should definitely have a look at the Grafana[1] dashboard[2] for your kitchen :)

[1] https://wiki.opennms.org/wiki/Grafana

[2] https://snapshot.raintank.io/dashboard/snapshot/iBUlOw7BBq1SYNvHBixSaEXxJBCzd48N
answered Feb 1 by indigo (9,150 points)
Thank you.  Yes, Grafana is something we're very interested in using -- might actually impress the health inspector.  I've uploaded the files to GitHub.

I’ve uploaded the logs to my GitHub page, line 33192 of collected is where OpenNMS starts to make its connection to the 1wire system, 10.0.3.181 using port 2121.  The correct http request is /bus.0/28.22619B080000/fasttemp without the trailing question mark.

https://github.com/mnarusiewicz/OpenNMS-1wire
0 votes

Thank you.  Yes, Grafana is something we're very interested in using -- might actually impress the health inspector.  I've uploaded the files to GitHub.

I’ve uploaded the logs to my GitHub page, line 33192 of collected is where OpenNMS starts to make its connection to the 1wire system, 10.0.3.181 using port 2121.  The correct http request is /bus.0/28.22619B080000/fasttemp without the trailing question mark.

https://github.com/mnarusiewicz/OpenNMS-1wire

answered Feb 9 by mnarusiewicz (190 points)
...