sks-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Sks-devel] Quick and dirty test


From: Kiss Gabor (Bitman)
Subject: [Sks-devel] Quick and dirty test
Date: Tue, 29 Jan 2019 19:56:32 +0100 (CET)
User-agent: Alpine 2.11 (DEB 23 2013-08-11)

Hi folks,

It is funny but one of my peer partners did not notice that his server
is dead since a few months. :-)

So I just show anyone who is interested in it how a simple but effective
cron job warns me if my server is not OK:

42 5-8,15-20 * * *   test "$(curl -s 
https://sks-keyservers.net/status/ks-status-json.php?server=keys.niif.hu | jq 
'[.IPv6, .Port80, .Last_status]' | tee /tmp/sksstatus | md5sum)" = 
'f2a95d496447b4bd81314f4a550a247c  -' || ( echo 'Something went 
wrong:\\nhttps://sks-keyservers.net/status/' ; cat /tmp/sksstatus)

Of course hostname and actual MD5 sum value must be tailored
according to checked fields of JSON output from curl.

Cheers

Gabor



reply via email to

[Prev in Thread] Current Thread [Next in Thread]