Giter VIP home page Giter VIP logo

mrtgtrffdashboard's Introduction

MrtgTrffDashboard

本软件依赖Mrtg和NagisoQL,读取RRD数据文件出图 使用NagisoQL 主要是为了输入框数据联动 关于Mrtg部署请参考我的博客 记一次Nagios大规模的过程(600网络节点),Nagios + Mrtg + NDO +展示 +NagiosQL http://www.qnjslm.com/ITHelp/144.html

效果

下面是使用的方法了 编辑Ajax.php 31行左右位置, $jpgfile 为临时产生的图片文件存储位置,注意写权限 $filename 为mrtg生成的RRD文件位置,参考博客的设定,根据自己的需求进行修改 $code 为主机名 $result->address 主机的IP地址

$jpgfile="./graphs/".$code."_".$result->address."_".$x.$starttime.".png";
$filename="/usr/local/mrtg-2/rrd/".$code."/".$result->address."_".$x.".rrd";

include/conn.php 该文件是连接NagiosQL数据库的,填写数据库相关信息

$db = new ezSQL_mysql('root', '123.com', 'db_nagiosql_v32', 'localhost');

对于临时存放图片的文件建议建立一个任务计划定时清理

[nagios@Nagios ~]$ crontab -l
0 0 * * *  /bin/find /var/www/mrtg/graphs -mtime +1 -type f  -exec /bin/rm -rf {} \;

mrtgtrffdashboard's People

Contributors

dcl-lily avatar

Watchers

 avatar

Forkers

wonderking

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.