Fix for Munin MySQL Monitoring Plugin Graph Not Showing or Blank修复munin MySQL的监测插件图无法显示或空白

munin Munin is a monitoring tool used to survey and monitor the performance of computers, networks, SANs, applications, databases, weather measurements and other parameters. munin是一个监测工具,用来调查和监测的表现,计算机,网络, SAN的,应用程序,数据库,天气测量和其他参数。 Munin remembers and records information it captured and presents them in graphs through a web interface. munin回忆和记录资料,它抓获,并介绍了他们在图通过一个Web界面。 cPanel, through WebHost Manager (WHM) has added the Munin Service Monitor as easily installed plugin to monitor the web host and check the capacity of resources available.的cPanel ,通过网页主机服务经理(的WHM )中加入了munin服务监察一样容易安装插件监察网页主机和检查的能力,可用的资源。

Easily install,容易安装, Munin munin version 1.24 works immediately once webmaster installs it on the server through cPanel/WHM, and start checking and capturing various resources’ usage reading, including MySQL nodes such as MySQL throughputs, MySQL queries, MySQL Slow Queries, and MySQL threads.版本1.24工程后立即网站管理员安装在服务器上通过的cPanel /的WHM ,并开始检查和捕捉各种资源的使用读,包括MySQL的节点,例如MySQL的吞吐量, MySQL的查询, MySQL和缓慢的疑问,和MySQL线程。 However, if you restart the server, Munin will fail to monitor MySQL nodes.不过,如果您重新启动服务器, munin会失败,监察MySQL的节点。 No information is capture, and the graphs is no longer updated with statistics and appears blank.没有资料撷取,和图形不再是最新的统计数字,并出现空白。 Sometimes, the MySQL graphs blank symptom may happen even when web server is not rebooted.有时候, MySQL的图的空白症状可能会发生,甚至当Web服务器是不重新启动。

The error is due to a bug in a Perl library Munin uses which causes $PATH variable to be lost, and then causes the plugin cannot find the mysqladmin program which it needs to retrieve the numbers to populate in the graphs.错误是由于一个错误,在一个图书馆的Perl munin用途,导致美元PATH变量,以遗失,然后导致插件无法找到mysqladmin程序,它需要检索编号,以填充在图形。 Uninstall and reinstall Munin Service Monitor may make it works again, however, a more permanent solution is to hardcode the path of the program, which will fix the problem.卸载并重新安装munin服务监控可能使工程再次然而,一个更永久性的解决办法是硬编码路径的程序,这将解决这一问题。 Here the guide on how to specify the path to mysqladmin to Munin.在这里,指导如何指定的路径mysqladmin ,以munin 。

Fix for Munin installed by cPanel/WHM 修复munin安装的cPanel /的WHM

  1. Determine where is mysqladmin program located with the one of the following command:确定在何处是mysqladmin程序位于同一个以下命令:

    which mysqladmin其中mysqladmin
    type mysqladmin类型mysqladmin
    locate mysqladmin找到mysqladmin

    If should return a path to mysqladmin which looks similar or the same to /usr/bin/mysqladmin.如果要返回的路径mysqladmin ,这看起来类似或相同的为/ usr /斌/ mysqladmin 。

  2. Edit the /etc/munin/plugin-conf.d/cpanel.conf Munin configuration file, and modify the [mysql*] to look like below:编辑的/ etc / munin /插件- conf.d / cpanel.conf munin配置文件,并修改[ MySQL中* ]样子如下:


    [mysql*] [ MySQL中* ]
    user root 用户根
    group wheel 车轮组
    env.mysqladmin /usr/bin/mysqladmin env.mysqladmin修改/ usr / bin / mysqladmin
    env.mysqlopts –defaults-extra-file=/root/.my.cnf env.mysqlopts -默认-课外文件= /根/ .my.cnf

    Ensure the env.mysqladmin value is path returned by step above.确保env.mysqladmin价值的路径是经由上述步骤。 Also ensure that /root/.my.cnf contains correct root password to the MySQL databases.也确保/根/ .my.cnf包含正确的root密码,以MySQL的数据库。

  3. Then restart Munin service:然后重新启动munin服务:

    /etc/init.d/munin-node restart / etc / init.d /的munin节点重新启动

  4. Wait a while for MySQL statistics to be gathered, and check the graphs again.稍候片刻, MySQL的统计收集,并选中图的一次。

Fix for Host or Server without cPanel Control Panel 修复主机或服务器的cPanel控制面板

Simply add the “env.mysqladmin /usr/bin/mysqladmin” (ensure that the path is correct according to your system) to the /etc/munin/plugin-conf.d/munin-node file will do the trick, according to只需添加“ env.mysqladmin修改/ usr / bin / mysqladmin ” (确保路径是正确的根据您的系统)的/ etc / munin /插件- conf.d / munin节点的文件也将这样做的伎俩,根据 Munin FAQ munin常见问题解答 .

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 重要说明 :这是一个机器翻译网页是“按原样”提供的担保。 Machine translation may be difficult to understand.机器翻译可能很难理解。 Please refer to请参阅 original English article原来的英语文章 whenever possible.只要有可能。

Share and contribute or get technical support and help at分享和贡献,或取得技术的支持和帮助,在 My Digital Life Forums 我的数字生活论坛 .



5 Responses to “Fix for Munin MySQL Monitoring Plugin Graph Not Showing or Blank” 5回应“修正为munin MySQL的监测插件图无法显示或空白”

  1. tri ms三女士
    August 29th, 2007 02:32 2007年8月29日02:32
    1

    Create a MySQL user with a password that is NOT granted privilege to any DB is safer than point it directly to /root/.my.cnf创建一个MySQL用户与密码,这是不给予特权,任何分贝是安全点,这比直接向/根/ .my.cnf

  2. mahmoud马哈茂德
    September 24th, 2007 23:23 2007年9月24日23时23分
    2

    thank you for this kind article.感谢您的这种文章。

    YET, /root/.my.cnf is only a shortcut.然而, /根/ .my.cnf只是一个捷径。

    am lost here ?我失去了在这里出现?

  3. admin政府当局
    September 25th, 2007 01:30 2007年9月25日01:30
    3

    Why not try it out and let us know if it works?为什么不尝试,并且让我们知道,如果它的作品?

  4. Pierre Labrie皮埃尔labrie
    October 10th, 2007 22:18 2007年10月10日22时18分
    4

    It works fine in my environment without cPanel Control Panel.它的优良工程在我的环境没有的cPanel控制面板。 I had the same problem on a machine and your procedure worked.我有同样的问题就一台机器和你的程序工作。

  5. tomek
    January 25th, 2008 08:40 2008年1月25日8时40分
    5

    sweetness.甜味。

    now if you could only post the same for apache现在,如果你只可张贴相同的Apache ; )

    thx lots, thx地段,

    tomek. tomek 。

Leave a Reply离开的答复

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> 您可以使用这些标签:的<a href="" title=""> <abbr title=""> <acronym title="">的<b> <blockquote cite=""> <cite>的<code> <删除日期时间= “ ” >的<em>的<i> <q cite=""> <strike>的<strong>

Subscribe without commenting订阅无评论


Custom Search

New Articles新的条款,

Incoming Search Terms for the Article传入的搜索条件文章

munin mysql munin的MySQL - - munin mysql plugin munin MySQL的插件 - - munin mysql password munin MySQL的密码 - - MySQL Munin MySQL的munin - - munin no graph munin没有图 - - cpanel munin plugin 的cPanel munin插件 - - mysql graphs MySQL的图 - - munin plugin mysql munin插件的MySQL - - munin mysql graphs munin MySQL的图 - - munin mysql user munin MySQL用户 - - munin mysqlopts munin mysqlopts - - website monitoring plugin for whm 网站监测插件的WHM - - munin plugins munin插件 - - munin no graphs munin没有图 - - munin blank graphs munin空白图 - - munin blank munin空白 - - munin mysql queries munin MySQL的疑问 - - munin mysql munin的MySQL - - troubleshoot munin plugin 疑难排解munin插件 - - munin munin - - munin freebsd munin的FreeBSD - - munin mysql config munin MySQL的配置 - - munin mysql configuration munin MySQL的配置 - - munin plugin install munin插件安装 - - munin freebsd apache munin FreeBSD的阿帕奇 - - munin empty munin空 - - munin mysql monitoring munin MySQL的监测 - - munin not creating graphs munin没有创造图 - - cpanel munin 的cPanel munin - - munin mysql stats munin MySQL的统计资料 - - cpanel mysql munin MySQL中的cPanel munin - - munin mysql problem munin MySQL的问题 - - munin mysqladmin munin mysqladmin - - munin mysql slow query munin MySQL的慢速查询 - - munin mysql not updating munin的MySQL没有更新 - - munin mysql plugin password munin MySQL的插件密码 - - munin mysql query munin MySQL查询 - - munin mysql conf munin MySQL的设置 - - how to add a graph in munin 如何添加图在munin - - mysqlopts munin mysqlopts munin - - restart munin 重新启动munin - - munin cpanel not updating graphs munin的cPanel没有更新图 - - freebsd munin mysql FreeBSD的munin的MySQL - - CPANEL munin slow query graph 的cPanel munin慢速查询图 - - برنامج Munin برنامج munin - - برنامج لرسم الخلايا برنامج لرسم الخلايا - - free monitor thread for mysql 免费监测线程同时为MySQL开发 - - munin env.mysqlopts -u munin env.mysqlopts铀 - - mysql munin freebsd MySQL的munin的FreeBSD - - free blank graph I can write in the blank 免费空白图,我可以写在空白 - -