[Reconnoiter-users] adding checks with the rest interface

Thom May thom at clearairturbulence.org
Fri Mar 25 14:17:06 EDT 2011


Hi,
I'm trying to add checks via the rest interface, but I can't seem to
make it work, and I can't find any logging for the rest interface
either. (I'll admit I've not delved into the source, nor have I got to
stracing noit).

Trying with curl:
curl -k -E stratcon.crt --key stratcon.key -H "Accept: text/xml" -d
"<?xml version="1.0"
encoding="utf8"?><check><attributes><module>http</module><name>http</name><target>1.2.3.4</target><period>60000</period><timeout>5000</timeout><filterset>default</filterset></attributes><config><url>https://some.url/</url><code>200</code></config></check>"
-X PUT https://my.server:43191/checks/set/eu-west-1b/web/E98E865B-0946-4BB6-81E1-9E259FC14425

I simply get the response:

<?xml version="1.0" encoding="utf8"?>
<error>xml parse error</error>

as far as I can tell, that xml is valid.
Any clues greatly appreciated!
Cheers,
-Thom


More information about the Reconnoiter-users mailing list