check_http plugin
Posted: Tue Oct 19, 2010 1:10 am
Dear Ladies and Gentlemen,
thank you for developing this great plugin check_http which we use in many cases to monitor our applications.
Unfortunately in the following particular case it does not what we expect.
The following link works fine when entering it in the browser:
https://secs.siemens-enterprise.com/encs/mysap_initiateconfiguration.do?request=<?xml version='1.0' encoding='UTF-8'?><Configurator GUID='CSCKP_SWZ_sces1'><Request Transaction='RECOVER_CONFIGURATION'><CallingApplication>CSC_SWZ</CallingApplication><CSPassword>cscch001</CSPassword><Usage>VAP-W</Usage><Language>DE</Language><SubSystems/></Request></Configurator>
After a forwarding request you will receive an xml-page as a respond.
So we call this page (url-encoded) using the check_http plugin like follows:
check_http -S -v -H secs.siemens-enterprise.com --onredirect=follow -u "/encs/mysap_initiateconfiguration.do?request=%3C%3Fxml+version%3D'1.0'+encoding%3D'UTF-8'%3F%3E%3CConfigurator+GUID%3D'CSCKP_SWZ_sces1'%3E%3CRequest+Transaction%3D'RECOVER_CONFIGURATION'%3E%3CCallingApplication%3ECSC_SWZ%3C%2FCallingApplication%3E%3CCSPassword%3Ecscch001%3C%2FCSPassword%3E%3CUsage%3EVAP-W%3C%2FUsage%3E%3CLanguage%3EDE%3C%2FLanguage%3E%3CSubSystems%2F%3E%3C%2FRequest%3E%3C%2FConfigurator%3E%22" -R "HIP4000"
This works so far without an error message, but it appears as the check_http plugin does not wait for the xml-respond and therefore does not find the string "HIP4000" that is included in the xml-page and that we are looking for.
Would you kindly check this issue and let us know if we have to enter some additional parameter or if we have an bug in the plugin?
Thanks in advance!
thaham
thank you for developing this great plugin check_http which we use in many cases to monitor our applications.
Unfortunately in the following particular case it does not what we expect.
The following link works fine when entering it in the browser:
https://secs.siemens-enterprise.com/encs/mysap_initiateconfiguration.do?request=<?xml version='1.0' encoding='UTF-8'?><Configurator GUID='CSCKP_SWZ_sces1'><Request Transaction='RECOVER_CONFIGURATION'><CallingApplication>CSC_SWZ</CallingApplication><CSPassword>cscch001</CSPassword><Usage>VAP-W</Usage><Language>DE</Language><SubSystems/></Request></Configurator>
After a forwarding request you will receive an xml-page as a respond.
So we call this page (url-encoded) using the check_http plugin like follows:
check_http -S -v -H secs.siemens-enterprise.com --onredirect=follow -u "/encs/mysap_initiateconfiguration.do?request=%3C%3Fxml+version%3D'1.0'+encoding%3D'UTF-8'%3F%3E%3CConfigurator+GUID%3D'CSCKP_SWZ_sces1'%3E%3CRequest+Transaction%3D'RECOVER_CONFIGURATION'%3E%3CCallingApplication%3ECSC_SWZ%3C%2FCallingApplication%3E%3CCSPassword%3Ecscch001%3C%2FCSPassword%3E%3CUsage%3EVAP-W%3C%2FUsage%3E%3CLanguage%3EDE%3C%2FLanguage%3E%3CSubSystems%2F%3E%3C%2FRequest%3E%3C%2FConfigurator%3E%22" -R "HIP4000"
This works so far without an error message, but it appears as the check_http plugin does not wait for the xml-respond and therefore does not find the string "HIP4000" that is included in the xml-page and that we are looking for.
Would you kindly check this issue and let us know if we have to enter some additional parameter or if we have an bug in the plugin?
Thanks in advance!
thaham