check_http checking with verbose output breaks performance data

Marcel mitsuto at gmail.com
Tue Dec 1 20:18:31 CET 2009


sorry for replying my own post.

This particular application has it's query string separator as "|", then the
mangled perfdata.

Is it possible to perfdata to parses only the last segment separated by "|"
?

Thanks,

On Tue, Dec 1, 2009 at 5:13 PM, Marcel <mitsuto at gmail.com> wrote:

> I've had a need of getting the full output from plugins to appear at the
> extended status information page:
>
>
> http://path.to.nagios/nagios/cgi-bin/extinfo.cgi?type=2&host=host_name&service=service_description
>
> Then I've realized that performance data is being mangled by this verbose
> command_line.
>
> Is this a bug? Or I should not use verbose output for check_http in
> production?
>
>
> Current Status:
>   OK
>  (for 0d 0h 0m 47s) Status Information:GET /mfa/ad/script/
> User-Agent: check_http/v2053 (nagios-plugins 1.4.13)
> Connection: close
> Host: ad.adnetwork.com.br
>
>
> http://174.132.205.30:80/mfa/ad/script/ Performance Data: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=http://ad.adnetwork.com.br/mfa/go/rm/;b=770;s=101;u=24292751;c=120;n=495403670
> target=_blank<http://ad.adnetwork.com.br/mfa/go/rm/;b=770;s=101;u=24292751;c=120;n=495403670target=_blank>><img
> src=http://www.adserver.com.br/120/bt_mfa.gif 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 Current Attempt:1/3  (HARD state) Last Check Time:01-12-2009
> 17:06:46 Check Type:ACTIVE Check Latency / Duration:0.196 / 0.086 seconds Next
> Scheduled Check:  01-12-2009 17:11:46 Last State Change:01-12-2009
> 17:06:46 Last Notification:N/A (notification 0) Is This Service Flapping?
> N/A In Scheduled Downtime?
>   NO
> Last Update:01-12-2009 17:07:28  ( 0d 0h 0m 5s ago)
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20091201/0d81af5a/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list