[Xymon] Android 2.2 App

Henrik Størner henrik at hswn.dk
Thu Nov 3 17:27:25 CET 2011


On 03-11-2011 14:29, Ralph Mitchell wrote:
> I was just thinking that xymondboard might be a good starting point for
> an API.  I just put a very simple CGI script on my server:
>
>       #!/bin/bash
>       echo "Content-Type: text/plain"
>       echo ""
>       /home/xymon/server/bin/xymon localhost "xymondboard $QUERY_STRING"
>
> then called it using curl:
>
>       curl -s -S -L "http://server.domain.com/xymon-cgi/xap.sh?color=red"
>       curl -s -S -L "http://server.domain.com/xymon-cgi/xap.sh?color=yellow"
>       curl -s -S -L "http://server.domain.com/xymon-cgi/xap.sh?color=purple"

You could do it with just one call:

   curl -s -S -L 
"http://server.domain.com/xymon-cgi/xap.sh?color=red,yellow,purple%20fields=hostname,testname,color,line1"


Regards,
Henrik



More information about the Xymon mailing list