Giter VIP home page Giter VIP logo

device-status-plugin's Introduction

device-status-plugin

This is a plugin to be used in an <iframe> element of a webpage. The scripts will ping a device and see if it is reachable through an icmp echo, then update the plugin page with a status indicator.

Basic operation

the primary script was designed in a linux environment. The script will ping a list of hosts located in the equipment.list file, then figure out the percentage of successful pings. The script will then produce a .htm page with the status of each device in a color format to the left of the device name.


equipment.list
This file should be a list of devices first the IP address then followed by the desired name for example
192.168.1.1,Router

device-status.py

equipment_status(dest="./html/device-status.htm", lst="./equipment.list") the variuble dest will be where the device-status plugin will be put the lst variuble is where the list of equipment will be located ping_test(addr,count=5, temp="./ping.tmp"): addr : the destination IP address in string form count : the number of pings to be sent out to the destination address the default value is 5 temp : the ping results will be dumped here default destination is in this same directory this file will be deleted once the pings are complete

Considerations

  • The network that this plugin is used must allow icmp traffic from this host
  • The list of hosts is not encrypted and is in plaintext so be sure that the context of which the script is run is secure enough for the devices that are being probed
  • The status images must be put into the same destination directory as device-status.htm

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.