<?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 webping logging errors in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/webping-logging-errors/m-p/98101#M97504</link>
    <description>&lt;P&gt;webping is a lovely little application. It is logging this error with splunk 4.1.x, though.  Any plans to update it?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;12-02-2010 08:07:19.922 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/webping/bin/webping.py"   import getopt, sys, imaplib, os, urllib2, urlparse, httplib, gzip, md5, \
12-02-2010 08:22:19.929 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/webping/bin/webping.py" /opt/splunk/etc/apps/webping/bin/webping.py:2: DeprecationWarning: the md5 module is deprecated; use hashlib instead
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Thu, 02 Dec 2010 23:09:52 GMT</pubDate>
    <dc:creator>vbumgarn</dc:creator>
    <dc:date>2010-12-02T23:09:52Z</dc:date>
    <item>
      <title>webping logging errors</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/webping-logging-errors/m-p/98101#M97504</link>
      <description>&lt;P&gt;webping is a lovely little application. It is logging this error with splunk 4.1.x, though.  Any plans to update it?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;12-02-2010 08:07:19.922 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/webping/bin/webping.py"   import getopt, sys, imaplib, os, urllib2, urlparse, httplib, gzip, md5, \
12-02-2010 08:22:19.929 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/webping/bin/webping.py" /opt/splunk/etc/apps/webping/bin/webping.py:2: DeprecationWarning: the md5 module is deprecated; use hashlib instead
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2010 23:09:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/webping-logging-errors/m-p/98101#M97504</guid>
      <dc:creator>vbumgarn</dc:creator>
      <dc:date>2010-12-02T23:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: webping logging errors</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/webping-logging-errors/m-p/98102#M97505</link>
      <description>&lt;P&gt;That's a pretty common error in Python.  If it's the only problem you're having it should be pretty easy to fix yourself.&lt;/P&gt;

&lt;P&gt;Based on a very quick look, edit &lt;CODE&gt;webping.py&lt;/CODE&gt; and make the following changes:&lt;/P&gt;

&lt;P&gt;1) In the line of imports in lines 3-4, change &lt;CODE&gt;md5&lt;/CODE&gt; to &lt;CODE&gt;hashlib&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;2) At line 107, change it to read:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;        if (u.config['indexMD5'] and u.result.has_key('data')):
            s = u.result.get('data')
            h = hashlib.new('md5')
            h.update(s)
            checksum = h.hexdigest()
            print 'ping_md5 =', checksum
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;A side effect is that you can replace 'md5' with 'sha1' or something else in &lt;CODE&gt;hashlib.new()&lt;/CODE&gt; if you'd rather use a different hash algorithm.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Dec 2010 02:08:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/webping-logging-errors/m-p/98102#M97505</guid>
      <dc:creator>southeringtonp</dc:creator>
      <dc:date>2010-12-03T02:08:10Z</dc:date>
    </item>
  </channel>
</rss>

