7 Sep
2016
7 Sep
'16
8:21 a.m.
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 .gradecase $GRADE in F) COLOR=red ;; E|D|C) COLOR=yellow ;; A|B) COLOR=greed ;; esacand 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