3 Nov
2011
3 Nov
'11
4:27 p.m.
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=h..."
Regards, Henrik