-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deprecate monitor.sh #42
Comments
https://github.com/sudomesh/monitor/blob/master/post-routing-table.sh is a regular post request. The json request is incompatible with the regular post request. https://github.com/sudomesh/monitor/blob/master/src/app.js needs to be changed so the same post url can be accepted, the same content header |
@jnull I was thinking we should just obliterate https://github.com/sudomesh/monitor/blob/master/monitor.sh altogether. The current situation in app.js looks something like this in pseudocode:
monitor.sh hits I'm thinking we should simplify the exitnodes and stop sending counts. We only need to send routes. We would change the monitor logic to something like:
How's that? |
The idea is not to get rid of those values, but that the monitor app can
compute them from routing table data. Doing so would make monitor.sh
redundant, meaning it can be removed.
…On Wed, Jun 12, 2019 at 4:17 PM Jared Null ***@***.***> wrote:
So i understand, you don't think we need these two fields for each exit
node: `[image: Screen Shot 2019-06-12 at 16 15 35]
<https://user-images.githubusercontent.com/3529087/59392712-7d7e8880-8d2d-11e9-9fa7-167516e66ef9.png>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#42?email_source=notifications&email_token=AA3Y62N2TL5O4FNSC4N7MVDP2F7YHA5CNFSM4GQ5EBT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXSBXCA#issuecomment-501488520>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA3Y62NE6V3RCEX5PYRVHFTP2F7YHANCNFSM4GQ5EBTQ>
.
|
i ran $DATA from https://github.com/sudomesh/monitor/blob/master/post-routing-table.sh: root@hurricane:/home/null# (ip route | grep via | grep -v default | awk '{print $1 "," $3 }' | sort | uniq | tr '\n' '|') I'm guessing gateways are all ending octect is .1 and everything else between | is a node? and comma separates routes? |
monitor.sh
is a simple and lovely script that reduces the output ofip route
into two numbers: a count of unique routes and a count of unique gateways, and POSTs this info to the monitor server. Exitnodes run this script periodically in a cron job.Ever since we started publishing entire routing tables with the
post-routing-table.sh
script,monitor.sh
became redundant. With access to the entire list of routes, the server can calculate the two counts on its own.This work overlaps #41 a bit--getMonitorUpdates() can be modified to fetch the most recent logs from mongo (instead of fetching the memcache key).
cc @thedig -- might be a good issue for you if you're interested cause it touches the exitnode repo too.
The text was updated successfully, but these errors were encountered: