python - How to monitor the Internet connectivity on two PCs simultaneously? -


i have 2 pcs , want monitor internet connectivity in both of them , make available in page whether they're online , running. how can that?

i'm thinking of cron job gets executed every minute sends post file located in server, in turn write connectivity status "online" file. in page statuses displayed, read both status files , display whether they're online or not. feels sloppy idea. alternative suggestion have?

(the answer doesn't have code; i'm not looking copy-paste solutions. want idea, nudge in right directio,)

i suggest request (you need ping indicate pc on) sent periodically maybe django server , if query page on django server, shows webpage indicating status of each.

in django server have loop time each received indicated, if time between last , current time large, set flag false.

that flag later visible when url queried, via views.

i don't think end sloppy, trivial solution don't have dig deep make work.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -