Git Product home page Git Product logo

imtmonitor's Introduction

星际魔盒监工

版本更新

升级方法同安装方法

2018.03.16更新

  1. 增加发送消息到微信
  2. 优化发送消息机制

功能介绍

定时检查设备在线情况,设备异常时,将异常设备发送到设置的邮箱

加入qq群获取最新更新

699453879

觉得监工对你有用,欢迎打赏

0x7D6C23b07E931bA39Bed2DBD885ca9c280946BD5

android版钱包。支持IMT

https://www.coolapk.com/apk/com.wrbug.wallet

配置教程

准备工具

云搬家账号(绑定设备的账号)
收信邮箱(用于接收异常邮件)
smtp邮箱(用于发送邮件,推荐使用qq邮箱,下方有图片教程)

   一台linux机器(强烈推荐使用星际魔盒,物尽其用,有树莓派也可以)

配置监工服务

使用ssh登录linux,并且切换到root账户(不会的百度找教程)

ssh admin@IP地址
#输入admin的密码,默认为IMTNAS,回车后登陆
sudo -s
#会再提示输入密码,回车后登陆

使用一键配置(使用一键配置无需再次使用手动配置)

wget https://raw.githubusercontent.com/WrBug/ImtMonitor/master/setup.sh -O setup.sh &&sudo bash setup.sh

按照提示配置

使用手动配置

  1. 执行下面脚本:
wget https://github.com/WrBug/ImtMonitor/archive/master.zip -O master.zip
unzip master.zip
cd ImtMonitor-master
  1. 配置账号

将account.py.bak的内容复制到account.py,编辑account.py文件。按照注释内容填写完整

  1. 测试配置是否正常

执行:

cd /usr/monitor &&sudo -s&&python run.py

出现设备信息表示IMT账户配置成功.

执行:

cd /usr/monitor &&sudo -s&&python mail.py

检查邮件有收到说明邮箱配置成功

  1. 设置定时任务

执行命令:

mkdir -p /usr/monitor
mv ./* /usr/monitor
# 10表示10分钟执行一次,可以改成1-59范围的值,已经设置过无需再次设置,可以通过修改/etc/crontab文件来修改
echo '*/10 * * * *  root cd /usr/monitor && sh run.sh' >> /etc/crontab
service cron restart
  1. 检查定时任务 随便断开一台机器的网络【勿断开执行脚本的机器】,x分钟(步骤5的时间)后有邮件提醒说明配置成功

QQ邮箱smtp配置图文教程

说明

如果有多台机器,可以在多台机器上配置改脚本,避免执行脚本的机器死机,无法正常发送邮件

imtmonitor's People

Contributors

wrbug avatar

Stargazers

H.A.Sueno avatar jerry.hao avatar

Watchers

 avatar

imtmonitor's Issues

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.