<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic SCOM - Web App Availability Monitor - Returning 406 Not Acceptable in Security</title>
    <link>https://community.splunk.com/t5/Security/SCOM-Web-App-Availability-Monitor-Returning-406-Not-Acceptable/m-p/157278#M4713</link>
    <description>&lt;P&gt;Trying to setup Web App monitor in &lt;STRONG&gt;SCOM 2012&lt;/STRONG&gt; to let us know when splunk is unavailable - however splunk web is returning &lt;STRONG&gt;HTTP 406&lt;/STRONG&gt;. Why doesn't it return a &lt;STRONG&gt;HTTP 200&lt;/STRONG&gt;?&lt;/P&gt;

&lt;H3&gt;HTTP Request&lt;/H3&gt;

&lt;PRE&gt;&lt;CODE&gt;GET /en-US/account/login HTTP/1.1
Accept: */*
Accept-Language: en-us
Accept-Encoding: GZIP
User-Agent: System Center 2012 - Operations Manager 7.0.9538.0
Connection: Keep-Alive
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;H3&gt;HTTP Response&lt;/H3&gt;

&lt;PRE&gt;&lt;CODE&gt;HTTP/1.1 406 Not Acceptable
Cache-Control: no-store, max-age=0, no-cache, must-revalidate
Date: Tue, 26 Nov 2013 22:11:11 GMT
Content-Length: 2613
Content-Type: text/html
Server: CherryPy/3.1.2
Set-Cookie: cval=885818388
Set-Cookie: session_id_8000=63b46afefe78777f9e574f080f797ecd8039f922; expires=Wed, 27 Nov 2013 22:11:11 GMT; httponly; Path=/
Set-Cookie: uid=8478E32F-AE41-400A-8A9E-F81D664645EC; expires=Sun, 25 Nov 2018 22:11:11 GMT
X-Frame-Options: SAMEORIGIN

&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&amp;gt;
&amp;lt;!-- 
    This is a static HTML string template to render errors.  To edit this
    template, see appserver/mrsparkle/lib/error.py. 
--&amp;gt;

&amp;lt;html xmlns="http://www.w3.org/1999/xhtml" xmlns:splunk="http://www.splunk.com/xhtml-extensions/1.0" xml:lang="en"&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;meta http-equiv="content-type" content="text/html; charset=utf-8" /&amp;gt;
    &amp;lt;link rel="shortcut icon" href="/en-US/static/@182037.40/img/favicon.ico" /&amp;gt;
    &amp;lt;title&amp;gt;identity, gzip - Splunk&amp;lt;/title&amp;gt;
    &amp;lt;style&amp;gt;

        *       { margin: 0; padding: 0; }
        body    { font-family: helvetica, arial, sans-serif; color: #333; padding: 20px; }
        p,pre   { margin-bottom: 1em; font-size: .8em; }
        .status { font-size: .7em; color: #999; margin-bottom: 1em; }
        .msg    { margin-bottom: 1em; font-size: 1.4em;}
        pre     { font-family: Monaco,Courier Bold,Courier New,monospace; font-size: .7em;background-color: #eee;  padding: 5px;}
        #toggle { font-size: .8em; margin-bottom: 1em; }
        .byline { color: #555; }
        .byline span { font-weight: bold; line-height: 1.4em; }
        hr      { height: 1px; background-color: #ccc; border: 0; margin: 20px 0 10px; }
        h2      { font-size: 1em; margin-bottom: 1em; }
        table   { border-collapse: collapse; }
        td      { padding: 2px; }
        td.k    { font-family: helvetica, arial, sans-serif; font-weight: bold; }
        #debug  { display: none; }

        #crashes { margin: 20px 0; padding: 10px; border: 1px solid #800; }
        #crashes dt { font-size: 12px; margin-bottom: 5px; }
        #crashes dd { white-space: pre; background: #f2f2f2; padding: 10px; margin-left: 20px; display: none; font: 10px Monaco,Courier Bold,Courier New,monospace; }

    &amp;lt;/style&amp;gt;
    &amp;lt;script&amp;gt;
        function toggle(what) {
            what = document.getElementById(what);
            if (what.style.display == 'block') {
                what.style.display = 'none';
            } else {
                what.style.display = 'block';
            }
        }
    &amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;p class="status"&amp;gt;406 Not Acceptable&amp;lt;/p&amp;gt;
    &amp;lt;p class="homelink"&amp;gt;&amp;lt;a href="/"&amp;gt;Return to Splunk home page&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;
    &amp;lt;h1 class="msg"&amp;gt;identity, gzip&amp;lt;/h1&amp;gt;


    &amp;lt;br /&amp;gt;
    &amp;lt;br /&amp;gt;

    &amp;lt;hr /&amp;gt;
    &amp;lt;p class="byline"&amp;gt;You are using &amp;lt;span&amp;gt;localhost:8000&amp;lt;/span&amp;gt;, which is connected to splunkd &amp;lt;span&amp;gt;@182037&amp;lt;/span&amp;gt; at &amp;lt;span&amp;gt;https://127.0.0.1:8089&amp;lt;/span&amp;gt; on &amp;lt;span&amp;gt;Tue Nov 26 16:11:11 2013&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;

&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 26 Nov 2013 22:19:24 GMT</pubDate>
    <dc:creator>slierninja</dc:creator>
    <dc:date>2013-11-26T22:19:24Z</dc:date>
    <item>
      <title>SCOM - Web App Availability Monitor - Returning 406 Not Acceptable</title>
      <link>https://community.splunk.com/t5/Security/SCOM-Web-App-Availability-Monitor-Returning-406-Not-Acceptable/m-p/157278#M4713</link>
      <description>&lt;P&gt;Trying to setup Web App monitor in &lt;STRONG&gt;SCOM 2012&lt;/STRONG&gt; to let us know when splunk is unavailable - however splunk web is returning &lt;STRONG&gt;HTTP 406&lt;/STRONG&gt;. Why doesn't it return a &lt;STRONG&gt;HTTP 200&lt;/STRONG&gt;?&lt;/P&gt;

&lt;H3&gt;HTTP Request&lt;/H3&gt;

&lt;PRE&gt;&lt;CODE&gt;GET /en-US/account/login HTTP/1.1
Accept: */*
Accept-Language: en-us
Accept-Encoding: GZIP
User-Agent: System Center 2012 - Operations Manager 7.0.9538.0
Connection: Keep-Alive
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;H3&gt;HTTP Response&lt;/H3&gt;

&lt;PRE&gt;&lt;CODE&gt;HTTP/1.1 406 Not Acceptable
Cache-Control: no-store, max-age=0, no-cache, must-revalidate
Date: Tue, 26 Nov 2013 22:11:11 GMT
Content-Length: 2613
Content-Type: text/html
Server: CherryPy/3.1.2
Set-Cookie: cval=885818388
Set-Cookie: session_id_8000=63b46afefe78777f9e574f080f797ecd8039f922; expires=Wed, 27 Nov 2013 22:11:11 GMT; httponly; Path=/
Set-Cookie: uid=8478E32F-AE41-400A-8A9E-F81D664645EC; expires=Sun, 25 Nov 2018 22:11:11 GMT
X-Frame-Options: SAMEORIGIN

&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&amp;gt;
&amp;lt;!-- 
    This is a static HTML string template to render errors.  To edit this
    template, see appserver/mrsparkle/lib/error.py. 
--&amp;gt;

&amp;lt;html xmlns="http://www.w3.org/1999/xhtml" xmlns:splunk="http://www.splunk.com/xhtml-extensions/1.0" xml:lang="en"&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;meta http-equiv="content-type" content="text/html; charset=utf-8" /&amp;gt;
    &amp;lt;link rel="shortcut icon" href="/en-US/static/@182037.40/img/favicon.ico" /&amp;gt;
    &amp;lt;title&amp;gt;identity, gzip - Splunk&amp;lt;/title&amp;gt;
    &amp;lt;style&amp;gt;

        *       { margin: 0; padding: 0; }
        body    { font-family: helvetica, arial, sans-serif; color: #333; padding: 20px; }
        p,pre   { margin-bottom: 1em; font-size: .8em; }
        .status { font-size: .7em; color: #999; margin-bottom: 1em; }
        .msg    { margin-bottom: 1em; font-size: 1.4em;}
        pre     { font-family: Monaco,Courier Bold,Courier New,monospace; font-size: .7em;background-color: #eee;  padding: 5px;}
        #toggle { font-size: .8em; margin-bottom: 1em; }
        .byline { color: #555; }
        .byline span { font-weight: bold; line-height: 1.4em; }
        hr      { height: 1px; background-color: #ccc; border: 0; margin: 20px 0 10px; }
        h2      { font-size: 1em; margin-bottom: 1em; }
        table   { border-collapse: collapse; }
        td      { padding: 2px; }
        td.k    { font-family: helvetica, arial, sans-serif; font-weight: bold; }
        #debug  { display: none; }

        #crashes { margin: 20px 0; padding: 10px; border: 1px solid #800; }
        #crashes dt { font-size: 12px; margin-bottom: 5px; }
        #crashes dd { white-space: pre; background: #f2f2f2; padding: 10px; margin-left: 20px; display: none; font: 10px Monaco,Courier Bold,Courier New,monospace; }

    &amp;lt;/style&amp;gt;
    &amp;lt;script&amp;gt;
        function toggle(what) {
            what = document.getElementById(what);
            if (what.style.display == 'block') {
                what.style.display = 'none';
            } else {
                what.style.display = 'block';
            }
        }
    &amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;p class="status"&amp;gt;406 Not Acceptable&amp;lt;/p&amp;gt;
    &amp;lt;p class="homelink"&amp;gt;&amp;lt;a href="/"&amp;gt;Return to Splunk home page&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;
    &amp;lt;h1 class="msg"&amp;gt;identity, gzip&amp;lt;/h1&amp;gt;


    &amp;lt;br /&amp;gt;
    &amp;lt;br /&amp;gt;

    &amp;lt;hr /&amp;gt;
    &amp;lt;p class="byline"&amp;gt;You are using &amp;lt;span&amp;gt;localhost:8000&amp;lt;/span&amp;gt;, which is connected to splunkd &amp;lt;span&amp;gt;@182037&amp;lt;/span&amp;gt; at &amp;lt;span&amp;gt;https://127.0.0.1:8089&amp;lt;/span&amp;gt; on &amp;lt;span&amp;gt;Tue Nov 26 16:11:11 2013&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;

&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Nov 2013 22:19:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/SCOM-Web-App-Availability-Monitor-Returning-406-Not-Acceptable/m-p/157278#M4713</guid>
      <dc:creator>slierninja</dc:creator>
      <dc:date>2013-11-26T22:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: SCOM - Web App Availability Monitor - Returning 406 Not Acceptable</title>
      <link>https://community.splunk.com/t5/Security/SCOM-Web-App-Availability-Monitor-Returning-406-Not-Acceptable/m-p/157279#M4714</link>
      <description>&lt;P&gt;I fixed this issue by changing the HTTP Header value that SCOM sends for &lt;STRONG&gt;Accept-Encoding&lt;/STRONG&gt; from &lt;STRONG&gt;GZIP&lt;/STRONG&gt; to &lt;STRONG&gt;gzip&lt;/STRONG&gt;. I guess Splunk chooses not to allow GZIP in CAPS. Splunk Web does respond with gzip content when using lowercase &lt;CODE&gt;Accept-Encoding&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html"&gt;From W3C...&lt;/A&gt;&lt;EM&gt;"If an Accept-Encoding field is present in a request, and if the server cannot send a response which is acceptable according to the Accept-Encoding header, then the server SHOULD send an error response with the 406 (Not Acceptable) status code."&lt;/EM&gt; &lt;/P&gt;

&lt;P&gt;Splunk should handle &lt;CODE&gt;GZIP&lt;/CODE&gt; just like IIS does, but I guess this is a change request. &lt;/P&gt;

&lt;H3&gt;HTTP Header Value (&lt;EM&gt;Accept-Encoding: gzip&lt;/EM&gt;)&lt;/H3&gt;

&lt;P&gt;&lt;IMG src="http://answers.splunk.com//storage/Splunk_HTTP_Header_Config.png" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2013 17:51:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/SCOM-Web-App-Availability-Monitor-Returning-406-Not-Acceptable/m-p/157279#M4714</guid>
      <dc:creator>slierninja</dc:creator>
      <dc:date>2013-11-27T17:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: SCOM - Web App Availability Monitor - Returning 406 Not Acceptable</title>
      <link>https://community.splunk.com/t5/Security/SCOM-Web-App-Availability-Monitor-Returning-406-Not-Acceptable/m-p/157280#M4715</link>
      <description>&lt;P&gt;According to RFC 2616, Section 3.5, content coding values should be treated as case-insensitive, so this is definitely a bug in splunkweb.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2013 19:54:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/SCOM-Web-App-Availability-Monitor-Returning-406-Not-Acceptable/m-p/157280#M4715</guid>
      <dc:creator>delink</dc:creator>
      <dc:date>2013-11-27T19:54:20Z</dc:date>
    </item>
  </channel>
</rss>

