[Xymon] mozilla observatory
Cédric BRINER
cedric.briner at unige.ch
Wed Sep 7 10:21:14 CEST 2016
Hi,
> Some scripting will be required. You can use the curl command to get the
> data, then e.g. "jq" to pick out the individial fields you want to
> track. E.g.
>
> GRADE=`curl -s -k
> https://http-observatory.security.mozilla.org/api/v1/analyze?host=www.unige.ch
> | jq -r .grade`
> case $GRADE in
> F) COLOR=red ;;
> E|D|C) COLOR=yellow ;;
> A|B) COLOR=greed ;;
> esac
>
> and then generate a normal status report - see the example on how to
> create custom tests at https://xymon.com/help/xymon-tips.html#scripts
That was fast !
Thank you very much for your help, very appreciated !
> Regards,
> Henrik
cED
--
Cédric BRINER, Ing. EPFL & HES
+41 (0)22 / 379 71 83
More information about the Xymon
mailing list