Xymon Mailing List Archive search

Android 2.2 App

list Henrik Størner
Thu, 03 Nov 2011 17:27:25 +0100
Message-Id: <user-55ef16c164a0@xymon.invalid>

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