check_http -L writes raw html (a href) but does not render link in browser

Kimberly McKinnis kim at conviva.com
Tue Nov 15 19:57:45 CET 2011


Aha. Thank you muchly!




On 11/9/11 9:40 PM, "Joerg Linge" <pitchfork at ederdrom.de> wrote:

>
>Am 09.11.2011 um 22:33 schrieb Kimberly McKinnis:
>
>> I'm using the stock Nagios 3 package from aptitude on Ubuntu. I wrote a
>> new check using check_http, but the -L isn't entirely doing what I'd
>> expect. Do I need to set something else somewhere in Nagios to get
>>browser
>> renderable code? I've tried both Firefox and Safari on MacOSX Lion.
>> 
>> My check:
>> define command{
>>        command_name    check-livepass-gateways
>>        command_line    /usr/lib/nagios/plugins/check_http -L -H
>> <obfuscated host> -u <obfuscated uri> -t 5 -R 'unknown' --invert-regex
>>        }
>> 
>> 
>> 
>> My check spits out the raw html code instead of actually making it a
>>link:
>> <A 
>> HREF="obfuscated URL"
>> target="_blank">HTTP OK: HTTP/1.1 200 OK - 13878 bytes in 0.304
>> second response time </A>
>
>cgi.cfg:
>
># ESCAPE HTML TAGS
># This option determines whether HTML tags in host and service
># status output is escaped in the web interface.  If enabled,
># your plugin output will not be able to contain clickable links.
>
>escape_html_tags=1
>
>--------------------------------------------------------------------------
>----
>RSA(R) Conference 2012
>Save $700 by Nov 18
>Register now
>http://p.sf.net/sfu/rsa-sfdev2dev1
>_______________________________________________
>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


------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
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