Hi,
Thanks for getting back to me.
I don't know if I can get the BBQ controller's logs.
Here is an extract of my splunk log, which is Website Input getting code 401 from my BBQ controller (Unauthorized):
12-28-2015 21:01:07.128 +0000 INFO ExecProcessor - New scheduled exec process: /opt/splunk/bin/splunkd instrument-resource-usage
12-28-2015 21:01:07.128 +0000 INFO ExecProcessor - interval: 0 ms
12-28-2015 21:01:07.134 +0000 INFO ModularInputs - No stanzas found for scheme "web_input" in inputs.conf at script (re)start.
12-28-2015 21:01:07.135 +0000 INFO ExecProcessor - New scheduled exec process: /opt/splunk/bin/splunkd instrument-resource-usage
12-28-2015 21:01:07.135 +0000 INFO ExecProcessor - interval: 0 ms
12-28-2015 21:01:07.135 +0000 INFO ExecProcessor - New scheduled exec process: python /opt/splunk/etc/apps/website_input/bin/web_input.py
12-28-2015 21:01:07.135 +0000 INFO ExecProcessor - interval: run once
12-28-2015 21:01:11.576 +0000 ERROR HttpListener - Exception while processing request from 192.168.1.59 for /en-US/manager/search/data/inputs/web_input/CyberQ: Connection closed by peer
12-28-2015 21:01:11.577 +0000 ERROR HttpListener - Handler for /en-US/manager/search/data/inputs/web_input/CyberQ sent a 0 byte response after earlier claiming a Content-Length of 12336!
12-28-2015 21:01:15.200 +0000 INFO ExecProcessor - New scheduled exec process: /opt/splunk/bin/splunkd instrument-resource-usage
12-28-2015 21:01:15.201 +0000 INFO ExecProcessor - interval: 0 ms
12-28-2015 21:01:15.208 +0000 INFO ExecProcessor - New scheduled exec process: /opt/splunk/bin/splunkd instrument-resource-usage
12-28-2015 21:01:15.208 +0000 INFO ExecProcessor - interval: 0 ms
12-28-2015 21:01:15.208 +0000 INFO ExecProcessor - New scheduled exec process: python /opt/splunk/etc/apps/website_input/bin/web_input.py
12-28-2015 21:01:15.208 +0000 INFO ExecProcessor - interval: run once
My password currently only has letters in it.
Here is my working wget test:
[richard@flyer ~]$ wget --user=**** --password=******** http://192.168.0.4/all.xml
--2015-12-28 21:04:17-- http://192.168.0.4/all.xml
Connecting to 192.168.0.4:80... connected.
HTTP request sent, awaiting response... 401 Authorization Required
Connecting to 192.168.0.4:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/xml]
Saving to: “all.xml”
[ <=> ] 1,235 4.11K/s in 0.3s
2015-12-28 21:04:18 (4.11 KB/s) - “all.xml” saved [1235]
[richard@flyer ~]$ more all.xml
<nutcallstatus>
<!--this is similar to status.xml, but with more values-->
<!--all temperatures are displayed in tenths F, regardless of setting of unit-->
<!--all temperatures sent by browser to unit should be in F. you can send tenths F with a decimal place, ex: 123.5-->
<COOK>
<COOK_NAME>Cook</COOK_NAME>
<COOK_TEMP>738</COOK_TEMP>
<COOK_SET>3560</COOK_SET>
<COOK_STATUS>0</COOK_STATUS>
</COOK>
<FOOD1>
<FOOD1_NAME>Food1</FOOD1_NAME>
<FOOD1_TEMP>OPEN</FOOD1_TEMP>
<FOOD1_SET>1800</FOOD1_SET>
<FOOD1_STATUS>4</FOOD1_STATUS>
</FOOD1>
<FOOD2>
<FOOD2_NAME>Food2</FOOD2_NAME>
<FOOD2_TEMP>OPEN</FOOD2_TEMP>
<FOOD2_SET>1800</FOOD2_SET>
<FOOD2_STATUS>4</FOOD2_STATUS>
</FOOD2>
<FOOD3>
<FOOD3_NAME>Food3</FOOD3_NAME>
<FOOD3_TEMP>OPEN</FOOD3_TEMP>
<FOOD3_SET>1800</FOOD3_SET>
<FOOD3_STATUS>4</FOOD3_STATUS>
</FOOD3>
<OUTPUT_PERCENT>100</OUTPUT_PERCENT>
<TIMER_CURR>00:00:00</TIMER_CURR>
<TIMER_STATUS>0</TIMER_STATUS>
<DEG_UNITS>1</DEG_UNITS>
<COOK_CYCTIME>6</COOK_CYCTIME>
<COOK_PROPBAND>300</COOK_PROPBAND>
<COOK_RAMP>0</COOK_RAMP>
</nutcallstatus>
[richard@flyer ~]$
My Splunk event log is full of the below, which is
response_size="407" raw_match_count="0" response_code="401" encoding="ascii" request_time="316.673994064"
What makes me think the problem is authorization vs Authorization are the following telnet tests:
Using request sent by wget and submitting via telnet:
[richard@flyer ~]$ telnet 192.168.0.4 80
Trying 192.168.0.4...
Connected to 192.168.0.4.
Escape character is '^]'.
GET /all.xml HTTP/1.0
User-Agent: Wget/1.12 (linux-gnu)
Accept: */*
Host: 192.168.0.4
Connection: Keep-Alive
Authorization: Basic ********
HTTP/1.1 200 OK
Content-Type: text/xml
Cache-Control: no-cache
Connection: close
<nutcallstatus>
<!--this is similar to status.xml, but with more values-->
<!--all temperatures are displayed in tenths F, regardless of setting of unit-->
<!--all temperatures sent by browser to unit should be in F. you can send tenths F with a decimal place, ex: 123.5-->
<COOK>
<COOK_NAME>Cook</COOK_NAME>
<COOK_TEMP>733</COOK_TEMP>
<COOK_SET>3560</COOK_SET>
<COOK_STATUS>0</COOK_STATUS>
</COOK>
<FOOD1>
<FOOD1_NAME>Food1</FOOD1_NAME>
<FOOD1_TEMP>OPEN</FOOD1_TEMP>
<FOOD1_SET>1800</FOOD1_SET>
<FOOD1_STATUS>4</FOOD1_STATUS>
</FOOD1>
<FOOD2>
<FOOD2_NAME>Food2</FOOD2_NAME>
<FOOD2_TEMP>OPEN</FOOD2_TEMP>
<FOOD2_SET>1800</FOOD2_SET>
<FOOD2_STATUS>4</FOOD2_STATUS>
</FOOD2>
<FOOD3>
<FOOD3_NAME>Food3</FOOD3_NAME>
<FOOD3_TEMP>OPEN</FOOD3_TEMP>
<FOOD3_SET>1800</FOOD3_SET>
<FOOD3_STATUS>4</FOOD3_STATUS>
</FOOD3>
<OUTPUT_PERCENT>100</OUTPUT_PERCENT>
<TIMER_CURR>00:00:00</TIMER_CURR>
<TIMER_STATUS>0</TIMER_STATUS>
<DEG_UNITS>1</DEG_UNITS>
<COOK_CYCTIME>6</COOK_CYCTIME>
<COOK_PROPBAND>300</COOK_PROPBAND>
<COOK_RAMP>0</COOK_RAMP>
</nutcallstatus>Connection closed by foreign host.
[richard@flyer ~]$
Using request sent by Website Input and submitting via telnet:
[richard@flyer ~]$ telnet 192.168.0.4 80
Trying 192.168.0.4...
Connected to 192.168.0.4.
Escape character is '^]'.
GET /all.xml HTTP/1.1
Host: 192.168.0.4
accept-encoding: gzip, deflate
authorization: Basic ********
user-agent: Splunk Website Input (+https://splunkbase.splunk.com/app/1818/)
HTTP/1.1 401 Authorization Required
WWW-Authenticate: Basic realm="Authorization Required"
Content-Type: text/html
Cache-Control: no-cache
Connection: close
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>401 Authorization Required</title>
</head><body>
<h1>Authorization Required</h1>
<p>This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.</p>
</body></html>Connection closed by foreign host.
[richard@flyer ~]$
Using request sent by Website Input, changing authorization to Authorization and submitting via telnet:
[richard@flyer ~]$ telnet 192.168.0.4 80
Trying 192.168.0.4...
Connected to 192.168.0.4.
Escape character is '^]'.
GET /all.xml HTTP/1.1
Host: 192.168.0.4
accept-encoding: gzip, deflate
Authorization: Basic ********
user-agent: Splunk Website Input (+https://splunkbase.splunk.com/app/1818/)
HTTP/1.1 200 OK
Content-Type: text/xml
Cache-Control: no-cache
Connection: close
<nutcallstatus>
<!--this is similar to status.xml, but with more values-->
<!--all temperatures are displayed in tenths F, regardless of setting of unit-->
<!--all temperatures sent by browser to unit should be in F. you can send tenths F with a decimal place, ex: 123.5-->
<COOK>
<COOK_NAME>Cook</COOK_NAME>
<COOK_TEMP>733</COOK_TEMP>
<COOK_SET>3560</COOK_SET>
<COOK_STATUS>0</COOK_STATUS>
</COOK>
<FOOD1>
<FOOD1_NAME>Food1</FOOD1_NAME>
<FOOD1_TEMP>OPEN</FOOD1_TEMP>
<FOOD1_SET>1800</FOOD1_SET>
<FOOD1_STATUS>4</FOOD1_STATUS>
</FOOD1>
<FOOD2>
<FOOD2_NAME>Food2</FOOD2_NAME>
<FOOD2_TEMP>OPEN</FOOD2_TEMP>
<FOOD2_SET>1800</FOOD2_SET>
<FOOD2_STATUS>4</FOOD2_STATUS>
</FOOD2>
<FOOD3>
<FOOD3_NAME>Food3</FOOD3_NAME>
<FOOD3_TEMP>OPEN</FOOD3_TEMP>
<FOOD3_SET>1800</FOOD3_SET>
<FOOD3_STATUS>4</FOOD3_STATUS>
</FOOD3>
<OUTPUT_PERCENT>100</OUTPUT_PERCENT>
<TIMER_CURR>00:00:00</TIMER_CURR>
<TIMER_STATUS>0</TIMER_STATUS>
<DEG_UNITS>1</DEG_UNITS>
<COOK_CYCTIME>6</COOK_CYCTIME>
<COOK_PROPBAND>300</COOK_PROPBAND>
<COOK_RAMP>0</COOK_RAMP>
Does that explain my thinking?
... View more