[Nagiosplug-devel] Check_http and web-based checks

John P. Rouillard rouilj at cs.umb.edu
Sun Mar 11 16:01:55 CET 2007


In message <45F37CAD.3040606 at aei.ca>,
Thomas Guyot-Sionnest writes:

>On 10/03/07 09:42 PM, Ton Voon wrote:
>> On 8 Mar 2007, at 17:27, Thomas Guyot-Sionnest wrote:
>>> What do you think? Any objection? Comments? Better suggestions for  
>>> switch
>>> names? Arguably this could be granted a new check plugin, but I'd  
>>> like to
>>> use all check_http's features like SSL, authentication, regexps.
>> 
>> This sounds like a good idea. I guess it is effectively moving a lot  
>> of the check logic from the plugin to the app server, which makes  
>> sense in a lot of cases.
>> 
>> However, I'm tempted not to add this to check_http because the amount  
>> of current options in this plugin is just too confusing. And the  
>> thought of doing "hacks" to stop threshold alerts doesn't sound good.
>> 
>> Ideally, the "web connection stuff" should be moved "lower down", to  
>> a lib/utils_http.c file, which is then available to other plugins,  
>
>I think this is a wise idea. I haven't though of moving functions but
>that could effectively allow a standalone check without duplicating too
>Much code
>
>> like your check_web (check_webapp? check_webapp_text?  
>> check_webapp_response?).
>
>To stay consistent with what we already have I'd suggest check_by_web.
>And one thing that comes to my mind then is a simple extension to this
>check(i.e. symlink), check_by_xmlrpc that could do xml-rpc calls and get
>the answer wrapped in XML (i.e. return code, status test, extended
>status text (multi-line, Nagios 3), performance data). That would be a
>real "interface" to do web checks, though most ppl that can't ask a team
>of experienced web developers will likely choose the "simpler" way of
>doing web checks :).

You may want to look at webinject for ideas on that. I have some
patches for it for making it lay nicer with nagios. I use it for xml
verification and other application checks as it can do cookie based
logins etc..

				-- rouilj
John Rouillard
===========================================================================
My employers don't acknowledge my existence much less my opinions.





More information about the Devel mailing list