Quick and dirty test

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Quick and dirty test

Gabor Kiss
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

_______________________________________________
Sks-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/sks-devel
Reply | Threaded
Open this post in threaded view
|

Re: Quick and dirty test

Travis
On 1/29/19 12:56 PM, Kiss Gabor (Bitman) wrote:

> 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
>
> _______________________________________________
> Sks-devel mailing list
> [hidden email]
> https://lists.nongnu.org/mailman/listinfo/sks-devel
>

I use UptimeRobot.com with a keyword check once an hour.  URL:
https://sks-keyservers.net/status/ks-status-json.php?server=<SERVERNAME>
and Keyword: "Last_status":"OK"

Travis

_______________________________________________
Sks-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/sks-devel
Reply | Threaded
Open this post in threaded view
|

Re: Quick and dirty test

Gunnar Wolf
In reply to this post by Gabor Kiss
Kiss Gabor (Bitman) dijo [Tue, Jan 29, 2019 at 07:56:32PM +0100]:

> 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.

FWIW, I have been playing with some data that might be connectable to
this. I did not *yet* intend to go public with this information, but
it might help use cases as yours:

https://sks-status.gwolf.org/

Give me a couple of days and I'll share more complete information. In
the mean time, you can see where your server is as part of the mesh :-]

_______________________________________________
Sks-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/sks-devel
Reply | Threaded
Open this post in threaded view
|

Re: Quick and dirty test

Todd Fleisher
FYI - that site generates an untrusted ssl certificate warning and after acknowledging that I get an error that the site couldn't be found on dreamboat.

Sent from the Fleishphone

> On Feb 6, 2019, at 19:15, Gunnar Wolf <[hidden email]> wrote:
>
> Kiss Gabor (Bitman) dijo [Tue, Jan 29, 2019 at 07:56:32PM +0100]:
>> 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.
>
> FWIW, I have been playing with some data that might be connectable to
> this. I did not *yet* intend to go public with this information, but
> it might help use cases as yours:
>
> https://sks-status.gwolf.org/
>
> Give me a couple of days and I'll share more complete information. In
> the mean time, you can see where your server is as part of the mesh :-]
>
> _______________________________________________
> Sks-devel mailing list
> [hidden email]
> https://lists.nongnu.org/mailman/listinfo/sks-devel
>


_______________________________________________
Sks-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/sks-devel
Reply | Threaded
Open this post in threaded view
|

Re: Quick and dirty test

Gunnar Wolf-2
Todd Fleisher dijo [Wed, Feb 06, 2019 at 08:24:38PM -0800]:
> FYI - that site generates an untrusted ssl certificate warning and
> after acknowledging that I get an error that the site couldn't be
> found on dreamboat.

You are right, I will now check with Dreamhost why this is
happening. Try the same URL, but without SSL:

    http://sks-status.gwolf.org/

I will soon add some more explanation, the source to my program and
more.

_______________________________________________
Sks-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/sks-devel
Reply | Threaded
Open this post in threaded view
|

Re: Quick and dirty test

Todd Fleisher
That one does load, but it’s really just a series of directories being cataloged. Once I stumbled across an SVG file, I find the way the data is visualized to be very difficult to digest (e.g. http://sks-status.gwolf.org/20190123-182818/walk_sks_20190123-182818.dot.svg)

I haven’t run it in a while, but https://fleetstreetops.com/gossip/ might be of interest to you. It’s based off the code found @ https://gist.github.com/diafygi/3f344c22f8a37a7b2151

-T

On Feb 7, 2019, at 6:49 AM, Gunnar Wolf <[hidden email]> wrote:

Todd Fleisher dijo [Wed, Feb 06, 2019 at 08:24:38PM -0800]:
FYI - that site generates an untrusted ssl certificate warning and
after acknowledging that I get an error that the site couldn't be
found on dreamboat.

You are right, I will now check with Dreamhost why this is
happening. Try the same URL, but without SSL:

   http://sks-status.gwolf.org/

I will soon add some more explanation, the source to my program and
more.



_______________________________________________
Sks-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/sks-devel

signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Quick and dirty test

Todd Fleisher
Correction, the actual URL for the code to generate the visualization is @ https://github.com/Timi7007/SKS-Keyserver-Gossip-Network-Graph

-T

On Feb 11, 2019, at 4:23 PM, Todd Fleisher <[hidden email]> wrote:

Signed PGP part
That one does load, but it’s really just a series of directories being cataloged. Once I stumbled across an SVG file, I find the way the data is visualized to be very difficult to digest (e.g. http://sks-status.gwolf.org/20190123-182818/walk_sks_20190123-182818.dot.svg)

I haven’t run it in a while, but https://fleetstreetops.com/gossip/ might be of interest to you. It’s based off the code found @ https://gist.github.com/diafygi/3f344c22f8a37a7b2151

-T

On Feb 7, 2019, at 6:49 AM, Gunnar Wolf <[hidden email]> wrote:

Todd Fleisher dijo [Wed, Feb 06, 2019 at 08:24:38PM -0800]:
FYI - that site generates an untrusted ssl certificate warning and
after acknowledging that I get an error that the site couldn't be
found on dreamboat.

You are right, I will now check with Dreamhost why this is
happening. Try the same URL, but without SSL:

   http://sks-status.gwolf.org/

I will soon add some more explanation, the source to my program and
more.





_______________________________________________
Sks-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/sks-devel

signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Quick and dirty test

Gunnar Wolf
In reply to this post by Todd Fleisher
Todd Fleisher dijo [Mon, Feb 11, 2019 at 04:23:26PM -0800]:
> That one does load, but it’s really just a series of directories
> being cataloged. Once I stumbled across an SVG file, I find the way
> the data is visualized to be very difficult to digest
> (e.g. http://sks-status.gwolf.org/20190123-182818/walk_sks_20190123-182818.dot.svg
> <http://sks-status.gwolf.org/20190123-182818/walk_sks_20190123-182818.dot.svg>)

Right - as I said, I currently have only a preliminary stupid set of
dumps on my machine. I do intend to do something more from it... but
have not had time to do so :-(

> I haven’t run it in a while, but https://fleetstreetops.com/gossip/
> <https://fleetstreetops.com/gossip/> might be of interest to
> you. It’s based off the code found @
> https://gist.github.com/diafygi/3f344c22f8a37a7b2151
> <https://gist.github.com/diafygi/3f344c22f8a37a7b2151>

Very cool visualization, thanks!

It is quite similar to what I have, and no doubt, clearer to
understand and follow. I have some extra information which I want to
play with, which is including the unresponsive servers (plus, if I
could gather it, the reason why they are unresponsive). Also, given
I'm taking the snapshots basically as a time series, I will be able to
present some sort of evolution / trends.

But, right now, you are right: I only have a sh!tload of unusable data
presenting not-exactly-useless-but-far-from-good SVGs.

_______________________________________________
Sks-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/sks-devel

signature.asc (849 bytes) Download Attachment