Opened 2 years ago

Last modified 5 months ago

#28271 assigned enhancement

Check OnionPerf instances from Nagios

Reported by: irl Owned by: metrics-team
Priority: Medium Milestone:
Component: Metrics/Onionperf Version:
Severity: Normal Keywords: metrics-team-roadmap-2020, metrics-team-roadmap-2020-june
Cc: metrics-team Actual Points:
Parent ID: #33318 Points: 1
Reviewer: Sponsor: Sponsor59-must

Description

There are a few things that we can check, some are easier than others.

  • Is the host up and the webserver running? (this is easy with built-in checks)
  • Is the tgen server running on the Internet? (this is easy with built-in checks)
  • Is the analyze task running? (needs a plugin)
  • Is the tgen server running on an Onion service? (needs a plugin)

For monitoring the Onion service, I'm looking at reusable plugins, so there are two tests. One checks to see how old the descriptor is and a second test actually tries connecting to the service. The first of these tests is affected by #28269 (but not blocked) and both are blocked by onionperf#42.

As a workaround for monitoring the Onion service, which really is the bit that is breaking, we can instead monitor the analysis of timeouts from Tor Metrics' CSV files.

Child Tickets

TicketTypeStatusOwnerSummary
#29366enhancementclosedmetrics-teamPersistent Onion service address

Attachments (2)

tor-check-onionperf (4.2 KB) - added by irl 2 years ago.
tor-check-onion-service-descriptor (3.7 KB) - added by irl 2 years ago.

Download all attachments as: .zip

Change History (16)

Changed 2 years ago by irl

Attachment: tor-check-onionperf added

Changed 2 years ago by irl

comment:1 Changed 2 years ago by irl

Cc: metrics-team hiro added; karsten removed
Owner: changed from hiro to irl
Status: newaccepted

My latest versions of two of the checks are attached above. The first, tor-check-onionperf, connects to the OnionPerf's web server to ensure that an analysis file was created at the expected time. The second check uses stem to test for the age of an Onion service descriptor, although we can't really use this yet because OnionPerf is changing the address every time it is restarted.

comment:2 Changed 2 years ago by karsten

Please let me know when you need a review and whether I should be doing that review or rather somebody else.

comment:3 Changed 18 months ago by irl

#29366 is now implemented, so it is now possible to complete these checks.

Created https://github.com/irl/bushel/issues/31 to add the OnionPerf index check to tor-metrics-nagios-plugins.

comment:4 Changed 18 months ago by irl

Parent ID: #28322

comment:5 Changed 15 months ago by irl

Resolution: invalid
Status: acceptedclosed

comment:6 Changed 8 months ago by acute

Resolution: invalid
Status: closedreopened

Moving all gitlab OP tickets back to Trac.

comment:7 Changed 7 months ago by irl

Status: reopenednew

I am not working on this ticket right now. If you feel this is urgent, please let me know by email and I will try to move this forward in the queue.

comment:8 Changed 7 months ago by irl

Cc: hiro removed
Parent ID: #28322

To perform the Onion service checks we can define a command to use torsocks and then use the regular check_http plugin. This leaves only the analyze task needing a plugin. We will still need to fetch the onion hostnames from the instances and commit them to metrics-cloud, keeping them in sync with a fetch task. Also need to check that Onionperf does write out the hostname somewhere for it to be used.

comment:9 Changed 6 months ago by karsten

Type: taskenhancement

comment:10 Changed 6 months ago by karsten

Owner: changed from irl to metrics-team
Status: newassigned

comment:11 Changed 6 months ago by gaba

Keywords: metrics-team-roadmap-2020 added
Points: 1
Sponsor: Sponsor59

comment:12 Changed 6 months ago by karsten

Sponsor: Sponsor59Sponsor59-must

Moving to Sponsor59-must, because we should really do these in order to call Sponsor59 done.

comment:13 Changed 5 months ago by karsten

Parent ID: #33318

comment:14 Changed 5 months ago by gaba

Keywords: metrics-team-roadmap-2020-june added

Adding all this tickets to the OnionPerf roadmap for June.

Note: See TracTickets for help on using tickets.