Page 2 of 2

Re: How to monitor WSDL and SOAP

Posted: Wed Mar 27, 2013 2:27 pm
by rayj
Thank,I am no specific string to monitor. Any change in WSDL/SOAP content I want to get Alert. Otherwise, what's mean of Nagios side check? Is it one of wizard or not?

Re: How to monitor WSDL and SOAP

Posted: Wed Mar 27, 2013 3:13 pm
by slansing
What you could do, would be to use check_http to match a string found within the web page that is connected to your WSDL content, and if that string changes because of a WSDL problem the check would alert you. Try this... run the following:

Code: Select all

/usr/local/nagios/libexec/check_http
You will see the output of it's usage as follows:

Code: Select all

Usage: check_http -H <vhost> | -I <IP-address> [-u <uri>] [-p <port>]
       [-w <warn time>] [-c <critical time>] [-t <timeout>] [-L]
       [-a auth] [-f <ok | warn | critcal | follow>] [-e <expect>]
       [-s string] [-l] [-r <regex> | -R <case-insensitive regex>] [-P string]
       [-m <min_pg_size>:<max_pg_size>] [-4|-6] [-N] [-M <age>] [-A string]
       [-k string] [-S] [-C <age>] [-T <content-type>]
From here, you can set the check to monitor a webpage, and set a internal string like I explained above. This can also be set up through the website monitoring wizard within XI.

We will not be able to test this for you here as we no not have WSDL content or SOAP content embedded to test against.

Re: How to monitor WSDL and SOAP

Posted: Wed Mar 27, 2013 3:18 pm
by abrist
If the string is short enough, you could check for the whole expected string.

Re: How to monitor WSDL and SOAP

Posted: Thu Mar 28, 2013 9:23 am
by rayj
I don't have specific string for monitor in WSDL. I want to monitor any change of WSDL content . Do you know, how to do it now? Otherwise, What you mean Nagios XI side check half way? Could you explain to me. Thanks.

Ray


slansing wrote:Is there a specific string you can monitor which would change if the WSDL content is broken? You would more than likely need to meet the Nagios XI side check half way with the WSDL/SOAP content, as there are no plugins already created which do this. Of course, you can always write your own as well.

Re: How to monitor WSDL and SOAP

Posted: Thu Mar 28, 2013 9:26 am
by slansing
As stated before there are currently no plugins for this, I was showing an example of one way you could meet the WSDL content half way, you would need to either find or create a string which would change based on weather or not the content is valid.

Re: How to monitor WSDL and SOAP

Posted: Thu Mar 28, 2013 9:17 pm
by speerless
May I ask another question?
Can nagios be used to monitor embedded devices。if it could , i should migrate the NRPE,shouldn't i?
if somebody knows ,please tell,thank you !

Re: How to monitor WSDL and SOAP

Posted: Fri Mar 29, 2013 9:36 am
by slansing
Speerless please allow time for a reply on your thread, we like to keep issues separate between threads to keep down on the clutter. Though I have answered your other thread.

Re: How to monitor WSDL and SOAP

Posted: Fri Mar 29, 2013 8:49 pm
by speerless
I am so sorry for my rude ! thanks for your help!