Xymon Mailing List Archive search

mozilla observatory

list Cédric Briner
Wed, 7 Sep 2016 10:21:14 +0200
Message-Id: <user-5ce9c6de284a@xymon.invalid>

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