Nagios and SOAP Check
Posted: Thu Apr 14, 2016 8:03 am
Hi,
I am attempting to configure a SOAP check using the check_http command. The command is as follows:
The command:
[root@hqnagiosv0001 libexec]# /usr/local/nagios/libexec/check_http -H [IP] -p [Port] -u [wsdl] -P '%3Csoapenv%3AEnvelope%20xmlns%3Asoapenv%3D%22http%3A%2F%2Fschemas.xmlsoap.org%2Fsoap%2Fenvelope%2F%22%20xmlns%3Ans%3D%22http%3A%2F%2Fwww.infocomp.com%2Fcbis%2Fuk%2Frequest%2F1.0%22%3E%3Csoapenv%3AHeader%2F%3E%3Csoapenv%3ABody%3E%3Cns%3AGetInvestorAccounts%3E%3Cns%3AentityId%3E20226843%3C%2Fns%3AentityId%3E%3C%2Fns%3AGetInvestorAccounts%3E%3C%2Fsoapenv%3ABody%3E%3C%2Fsoapenv%3AEnvelope%3E'
The result:
HTTP CRITICAL: HTTP/1.1 500 Internal Server Error - 233 bytes in 0.051 second response time |time=0.051464s;;;0.000000 size=233B;;;0
If I use SOAP UI to check the same wsdl/service, I get the correct result.
Any help would be great.
Thanks in advance,
Simon
I am attempting to configure a SOAP check using the check_http command. The command is as follows:
The command:
[root@hqnagiosv0001 libexec]# /usr/local/nagios/libexec/check_http -H [IP] -p [Port] -u [wsdl] -P '%3Csoapenv%3AEnvelope%20xmlns%3Asoapenv%3D%22http%3A%2F%2Fschemas.xmlsoap.org%2Fsoap%2Fenvelope%2F%22%20xmlns%3Ans%3D%22http%3A%2F%2Fwww.infocomp.com%2Fcbis%2Fuk%2Frequest%2F1.0%22%3E%3Csoapenv%3AHeader%2F%3E%3Csoapenv%3ABody%3E%3Cns%3AGetInvestorAccounts%3E%3Cns%3AentityId%3E20226843%3C%2Fns%3AentityId%3E%3C%2Fns%3AGetInvestorAccounts%3E%3C%2Fsoapenv%3ABody%3E%3C%2Fsoapenv%3AEnvelope%3E'
The result:
HTTP CRITICAL: HTTP/1.1 500 Internal Server Error - 233 bytes in 0.051 second response time |time=0.051464s;;;0.000000 size=233B;;;0
If I use SOAP UI to check the same wsdl/service, I get the correct result.
Any help would be great.
Thanks in advance,
Simon