XML input to check_http
Posted: Fri May 10, 2013 4:05 pm
Here is an example of me trying to test webservice test using soap here i my try
check comman config is as below
$USER1$/check_http -H $HOSTADDRESS$ -k $ARG1$ -T 'text/xml' -P $ARG2$ -t 10 -m 512 -u $ARG3$
where $ARG2$ is an xml as follows
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<VerifyByAcct xmlns="http://webservices.xxxx.com/AccountVeri ... WebService">
<acctId>string</acctId>
<allPremises>boolean</allPremises>
</VerifyByAcct>
</soap:Body>
when I execute this with test Check command here is what we get . the whole ARG2 dissapears.
/usr/local/nagios/libexec/check_http -H xxxx.xxxx.com -k SOAPAction: "http://webservices.xxxx.com/AccountVeri ... rifyByAcct" -T 'text/xml' -P '\' -t 10 -m 512 -u /AccountVerificationWebService/AccountVerification.asmx
check comman config is as below
$USER1$/check_http -H $HOSTADDRESS$ -k $ARG1$ -T 'text/xml' -P $ARG2$ -t 10 -m 512 -u $ARG3$
where $ARG2$ is an xml as follows
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<VerifyByAcct xmlns="http://webservices.xxxx.com/AccountVeri ... WebService">
<acctId>string</acctId>
<allPremises>boolean</allPremises>
</VerifyByAcct>
</soap:Body>
when I execute this with test Check command here is what we get . the whole ARG2 dissapears.
/usr/local/nagios/libexec/check_http -H xxxx.xxxx.com -k SOAPAction: "http://webservices.xxxx.com/AccountVeri ... rifyByAcct" -T 'text/xml' -P '\' -t 10 -m 512 -u /AccountVerificationWebService/AccountVerification.asmx