Hi All,
We are using Nagios Core and we have a new request to monitor SOAP Script. Please find the below script:
--soap '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sal="http://www.sonatacentral.com/service/v30/common/saleschannel" xmlns:ser="http://www.sonatacentral.com/service/v30/Service" xmlns:cal="http://www.sonatacentral.com/service/v30/CallerDetails" xmlns:iden="http://www.sonatacentral.com/service/v30/globaltypes/IdentifierType" xmlns:dat="http://www.sonatacentral.com/service/v30/globaltypes/common/data/DataGroupType"><soapenv:Header/><soapenv:Body><sal:getLocationRequest><ser:CallerDetails><cal:username>demo</cal:username><cal:country>AU</cal:country><cal:language>en</cal:language><cal:databaseIdentifier>SONUAT</cal:databaseIdentifier></ser:CallerDetails><sal:LocationIdentifier><iden:id>40000001</iden:id></sal:LocationIdentifier></sal:getLocationRequest></soapenv:Body></soapenv:Envelope>'
===============================================
We have placed this script in Nagios server using this command:
check_command check_soap!--action "GetResponse" --url "http://dc1uat163.twruat.ext/sonata/services/v30/salesChannelService" --grep '(?<=40000001>)[0-9]+(?=</)' --soap '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sal="http://www.sonatacentral.com/service/v30/common/saleschannel" xmlns:ser="http://www.sonatacentral.com/service/v30/Service" xmlns:cal="http://www.sonatacentral.com/service/v30/CallerDetails" xmlns:iden="http://www.sonatacentral.com/service/v30/globaltypes/IdentifierType" xmlns:dat="http://www.sonatacentral.com/service/v30/globaltypes/common/data/DataGroupType"><soapenv:Header/><soapenv:Body><sal:getLocationRequest><ser:CallerDetails><cal:username>demo</cal:username><cal:country>AU</cal:country><cal:language>en</cal:language><cal:databaseIdentifier>SONUAT</cal:databaseIdentifier></ser:CallerDetails><sal:LocationIdentifier><iden:id>40000001</iden:id></sal:LocationIdentifier></sal:getLocationRequest></soapenv:Body></soapenv:Envelope>'
=============================================
However we are getting an error message as below:
SOAP UNKNOWN: Failed to extract value from response
==================================================
Please someone help me on this request.
Regards,
Srinija.