amirher / monitor-1 Goto Github PK
View Code? Open in Web Editor NEWThis project forked from 2004lkw/monitor
Network monitor in Python/HTML/CSS/JS
License: MIT License
This project forked from 2004lkw/monitor
Network monitor in Python/HTML/CSS/JS
License: MIT License
Monitor Version 1.0 Written by Larry K Williams, II. This is meant to monitor a local network for connectivity. It's pretty simple but i'll lay out the basic framework and how to configure it. Things you need: 1. A server that can run python and flask (on Linux with cron) 2. A few minutes to configure this. Files to configure: 1. hosts.txt 2. cronjob on your linux distro. hosts.txt: This file needs to be single lines containing the hosts you want to monitor. For example: router.lan.com media.lan.com switch1.lan.com Don't put any comments in this file. Just raw host names. cronjob: *NOTE: This isn't meant to be a tutorial on using cronjob. Please look up how to use and configure a cronjob if you are not familiar. using "crontab -e" create an entry pointing to "connection_tester.py" and running it in it's parent directory. For example (all as one line): (cd /home/username/automation && /usr/bin/env python3 /home/username/automation/connection_tester.py) Of course, yours will be different depending on where you installed this and set up your own server. If you only need the script then the server info doesn't really matter. *NOTE 2: NOTICE that you should configure the cronjob to run in intervals of every two minutes. "*/2 * * * *" would be the appropriate time. IF you change this, please change this also in the connection_tester.py file as this calculated in the web site as well. The tester script doesn't know how long you set it for so it will need to be manually changed on the varialbe "interval_amount" at the top of the script. After that, with a properly set up server, you should be able to get your monitoring status within minutes. A few things to note: 1. The cronjob interval needs to be 2 minutes. See above. 2. hosts.txt needs to be just hosts names. That's it. 3. The script needs to be able to write out hostspings.txt 4. Most failures to get this to work boil down to improper configuration. 5. The tooltips on the HTML side are calculated with the information in the hostspings.txt file.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.