<?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 Regex Question... in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/regex-question/m-p/4690907#M658957</link>
    <description>Attaching a perl script, which is failing with the following text in the log - &lt;BR /&gt;&lt;BR /&gt;2010-09-23 17:44:32 REGEX: No blocks for 'ReviewService running on 8541' found.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regex that the script is using is &lt;BR /&gt;&lt;BR /&gt;time=\s*([0-9\.,]+)&lt;BR /&gt;&lt;BR /&gt;The text on which its failing is the following which clearly has "time=". Can someone suggest a solution?&lt;BR /&gt;&lt;BR /&gt;box3.zap.com   ReviewService running on 8541  HTTP OK: HTTP/1.0 200 JBOSS - 9180 bytes in 0.283 second response time       time=0.282611s;;;0.000000 size=9180B;;;0        1285289027&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Allan.</description>
    <pubDate>Thu, 23 Sep 2010 23:53:55 GMT</pubDate>
    <dc:creator>Allanm</dc:creator>
    <dc:date>2010-09-23T23:53:55Z</dc:date>
    <item>
      <title>Regex Question...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regex-question/m-p/4690907#M658957</link>
      <description>Attaching a perl script, which is failing with the following text in the log - &lt;BR /&gt;&lt;BR /&gt;2010-09-23 17:44:32 REGEX: No blocks for 'ReviewService running on 8541' found.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regex that the script is using is &lt;BR /&gt;&lt;BR /&gt;time=\s*([0-9\.,]+)&lt;BR /&gt;&lt;BR /&gt;The text on which its failing is the following which clearly has "time=". Can someone suggest a solution?&lt;BR /&gt;&lt;BR /&gt;box3.zap.com   ReviewService running on 8541  HTTP OK: HTTP/1.0 200 JBOSS - 9180 bytes in 0.283 second response time       time=0.282611s;;;0.000000 size=9180B;;;0        1285289027&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Allan.</description>
      <pubDate>Thu, 23 Sep 2010 23:53:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regex-question/m-p/4690907#M658957</guid>
      <dc:creator>Allanm</dc:creator>
      <dc:date>2010-09-23T23:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Regex Question...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regex-question/m-p/4690908#M658958</link>
      <description>Hi Allanm:&lt;BR /&gt;&lt;BR /&gt;I don't see the regex you cite in your attachment.&lt;BR /&gt;&lt;BR /&gt;I fail to see what the data line beginning with "2010-0923" has to do with a match to the regex either.&lt;BR /&gt;&lt;BR /&gt;As for the line beginning with "box3.zap", the regex cited *will* match and will return the time value in $1:&lt;BR /&gt;&lt;BR /&gt;# X="box3.zap.com ReviewService running on 8541 HTTP OK: HTTP/1.0 200 JBOSS - 9180 bytes in 0.283 second response time time=0.282611s;;;0.000000 size=9180B;;;0 1285289027"&lt;BR /&gt;&lt;BR /&gt;# echo ${X}|perl -nle 'perl -nle 'm{time=\s*([0-9\.,]+)} and print $1'&lt;BR /&gt;0.282611&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Sep 2010 10:42:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regex-question/m-p/4690908#M658958</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-09-24T10:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Regex Question...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regex-question/m-p/4690909#M658959</link>
      <description>Thanks for replying JRF!&lt;BR /&gt;&lt;BR /&gt;Here is the config that the script refers to - &lt;BR /&gt;&lt;BR /&gt;##&lt;BR /&gt;define ngraph{&lt;BR /&gt;        service_name            HTTP&lt;BR /&gt;        graph_perf_regex        time=\s*([0-9\.,]+)&lt;BR /&gt;        graph_value             http_res&lt;BR /&gt;        graph_units             seconds&lt;BR /&gt;        graph_legend            HTTP response time&lt;BR /&gt;        rrd_plottype            AREA&lt;BR /&gt;        rrd_color               c0c0ff&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;define ngraph{&lt;BR /&gt;        service_name            HTTP&lt;BR /&gt;        type                    CDEF&lt;BR /&gt;        graph_value             http_cdef&lt;BR /&gt;        graph_units&lt;BR /&gt;        graph_legend&lt;BR /&gt;        graph_calc              http_res&lt;BR /&gt;        rrd_plottype            LINE1&lt;BR /&gt;        rrd_color               000000&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;# [EOF]&lt;BR /&gt;&lt;BR /&gt;I am not sure why its logging - &lt;BR /&gt;&lt;BR /&gt; REGEX: No blocks for ...&lt;BR /&gt;&lt;BR /&gt;even though the regex is found.&lt;BR /&gt;&lt;BR /&gt;Thats my question...&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Allan</description>
      <pubDate>Fri, 24 Sep 2010 17:40:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regex-question/m-p/4690909#M658959</guid>
      <dc:creator>Allanm</dc:creator>
      <dc:date>2010-09-24T17:40:13Z</dc:date>
    </item>
  </channel>
</rss>

