Giter VIP home page Giter VIP logo

uptrack's Introduction

uptrack - Remote Uptime Tracker

Simple web server that records connection attempts by:

  • Client IP - Identifier for clients being tracked.
  • Timestamp - Time of each check-in for the client.

Usage

Each client should have a scheduled task to issue an HTTP GET request to the server. The server will record the client IP and time of the request. A unique and obscure URL should be created for the service to avoid tracking entries of web crawlers and other random clients that happen upon the server. One method might be to use the MD5 digest of your server name.

For example:

$ echo -n example.com | md5sum
5ababd603b22780302dd8d83498e5172  -

Use the produced hash as the PATH value in the script.

The client request would then be:

$ wget http://example.com/5ababd603b22780302dd8d83498e5172 >/dev/null

The above command could be used in a cron entry set to run every minute, hour, etc. as needed.

The server will record a simple, flat file in CSV format. To avoid disk usage issues, it is recommended to use a tool such as logrotate to manage the file growth, especially if you are tracking many clients over long periods of time.

uptrack's People

Contributors

tompropst avatar

Watchers

James Cloos avatar  avatar

uptrack's Issues

Support ID in URL

In order to accommodate multiple devices behind a NAT router, devices without a static public IP, or devices that roam to different networks...Add a client ID to the URL after the server ID.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.