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
Nagios and SOAP Check
Re: Nagios and SOAP Check
Please run the check with -v and post the result, some verbosity will help.
Not familiar with the SOAP UI, but does it allow you to get verbosity? We'll need to compare the results. If you can get a curl working as well, with -v, that'll help.
Not familiar with the SOAP UI, but does it allow you to get verbosity? We'll need to compare the results. If you can get a curl working as well, with -v, that'll help.
Former Nagios Employee
-
simon.zetter-lee
- Posts: 3
- Joined: Wed Dec 09, 2015 11:22 am
Re: Nagios and SOAP Check
Hi.
Thanks for the reply. I ended up using the -v to check the output. I had to add an additional parameter (-T) to define the type of header. Once this was added to service check command, and the -P parameter changed to include the encoded XML string, I was able to get the correct response.
Thanks,
Simon
Thanks for the reply. I ended up using the -v to check the output. I had to add an additional parameter (-T) to define the type of header. Once this was added to service check command, and the -P parameter changed to include the encoded XML string, I was able to get the correct response.
Thanks,
Simon
Re: Nagios and SOAP Check
Ah, great to see you were able to get it working!
Locking this one up, but feel free to create a new thread if you need any assistance in the future.
Locking this one up, but feel free to create a new thread if you need any assistance in the future.
Former Nagios Employee