[Xymon] xymoncgimsg.cgi

Henrik Størner henrik at hswn.dk
Tue Dec 6 22:11:53 CET 2011


On 06-12-2011 21:17, Stef Coene wrote:
> Hi,
>
> Some time ago Ralph Mitchell posted a message that he was able to use
> curl to post a message to the cgi script xymoncgimsg.cgi.
> http://comments.gmane.org/gmane.comp.monitoring.hobbit/27772
> I'm trying to do the same, but it's not working.

I tried it here, and it works fine. You need to copy the xymoncgimsg.cgi 
binary to your ~xymon/cgi-bin/ directory (or setup a symlink and 
configure the webserver to accept links), but then it works fine.

I didn't try the SSL client-certificate stuff that Ralph was doing, but 
a plain "send a command to xymond" stuff is working OK.

Here's the commandline I used:

curl \
    -d "xymondboard" \
    -H "Content-type: application/octet-stream" \
    -H "Mime-version: 1.0" \
    http://www.xymon.com/xymon-cgi/xymoncgimsg.cgi

This just sends a "xymondboard" command to fetch the current status of 
all Xymon tests; you can replace it with a status message or the client 
data, if that is what you want to transmit.

Note that if you use an https-URL, many curl installations do not come 
with an up-to-date set of root certificates, so you will either need to 
update that - or use the "-k" option to disable checking of the SSL 
certificate from the server.


Regards,
Henrik



More information about the Xymon mailing list