sorry for replying my own post. <br><br>This particular application has it's query string separator as "|", then the mangled perfdata. <br><br>Is it possible to perfdata to parses only the last segment separated by "|" ? <br>
<br>Thanks,<br><br><div class="gmail_quote">On Tue, Dec 1, 2009 at 5:13 PM, Marcel <span dir="ltr"><<a href="mailto:mitsuto@gmail.com">mitsuto@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I've had a need of getting the full output from plugins to appear at the extended status information page: <br><br><a href="http://path.to.nagios/nagios/cgi-bin/extinfo.cgi?type=2&host=host_name&service=service_description" target="_blank">http://path.to.nagios/nagios/cgi-bin/extinfo.cgi?type=2&host=host_name&service=service_description</a><br>
<br>Then I've realized that performance data is being mangled by this verbose command_line. <br><br>Is this a bug? Or I should not use verbose output for check_http in production? <br><br><br><table border="0"><tbody><tr>
<td>Current Status:</td><td><div> OK </div> (for 0d 0h 0m 47s)</td></tr>
<tr><td valign="top">Status Information:</td><td>GET /mfa/ad/script/<br>User-Agent: check_http/v2053 (nagios-plugins 1.4.13)
<br>Connection: close
<br>Host: <a href="http://ad.adnetwork.com.br" target="_blank">ad.adnetwork.com.br</a>
<br>
<br><br><a href="http://174.132.205.30:80/mfa/ad/script/" target="_blank">http://174.132.205.30:80/mfa/ad/script/</a></td></tr>
<tr><td valign="top">Performance Data:</td><td>s=101|c=120|p=2|br=1|?
HTTP/1.0
s=101|c=120|p=2|br=1|? is 664 characters STATUS: HTTP/1.1 200 OK ****
HEADER **** Date: Tue, 01 Dec 2009 19:06:45 GMT Server: Resin/2.1.17
P3P: CP=" PSA CONo OUR ONL NOI BUS", policyref="/w3c/p3p.xml" Pragma:
no-cache Cache-Control: no-cache Expires: 0 Content-Type: text/html
Set-Cookie: mfa=24292751; path=/; expires=Sun, 30-Nov-2014 19:06:45 GMT
Set-Cookie: limpa=1; path=/; expires=Wed, 02-Dec-2009 02:06:45 GMT
Set-Cookie: c120=770|101|-999|1259694406260; path=/; expires=Sun,
30-Nov-2014 19:06:45 GMT Connection: close **** CONTENT ****
document.write('<a
href=<a href="http://ad.adnetwork.com.br/mfa/go/rm/;b=770;s=101;u=24292751;c=120;n=495403670target=_blank" target="_blank">http://ad.adnetwork.com.br/mfa/go/rm/;b=770;s=101;u=24292751;c=120;n=495403670
target=_blank</a>><img src=<a href="http://www.adserver.com.br/120/bt_mfa.gif" target="_blank">http://www.adserver.com.br/120/bt_mfa.gif</a>
border=0 alt=></a>'); HTTP OK: Status line output matched
"HTTP/1.1 200" HTTP OK HTTP/1.1 200 OK - 0.074 second response time
|time=0.074327s;1.000000;5.000000;0.000000 size=664B;;;0</td></tr>
<tr><td>Current Attempt:</td><td>1/3 (HARD state)</td></tr>
<tr><td>Last Check Time:</td><td>01-12-2009 17:06:46</td></tr>
<tr><td>Check Type:</td><td>ACTIVE</td></tr>
<tr><td nowrap>Check Latency / Duration:</td><td>0.196 / 0.086 seconds</td></tr>
<tr><td>Next Scheduled Check: </td><td>01-12-2009 17:11:46</td></tr>
<tr><td>Last State Change:</td><td>01-12-2009 17:06:46</td></tr>
<tr><td>Last Notification:</td><td>N/A (notification 0)</td></tr>
<tr><td>Is This Service Flapping?</td><td>N/A</td></tr>
<tr><td>In Scheduled Downtime?</td><td><div> NO </div></td></tr>
<tr><td>Last Update:</td><td>01-12-2009 17:07:28 ( 0d 0h 0m 5s ago)</td></tr></tbody></table><br><br><br><br>
</blockquote></div><br>