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沒有圖 - - munin mysqlopts munin mysqlopts - - cpanel munin plugin 的cPanel munin插件 - - mysql graphs MySQL的圖 - - munin plugin mysql munin插件的MySQL - - munin mysql graphs munin MySQL的圖 - - munin mysql user munin MySQL用戶 - - munin monitor mysql munin監察的MySQL - - munin mysql munin的MySQL - - munin freebsd munin的FreeBSD - - munin mysql config munin MySQL的配置 - - website monitoring plugin for whm 網站監測插件的WHM - - munin plugins munin插件 - - munin not creating graphs munin沒有創造圖 - - munin no graphs munin沒有圖 - - munin blank graphs munin空白圖 - - cpanel munin 的cPanel munin - - munin blank munin空白 - - munin mysql queries munin MySQL的疑問 - - munin mysql not updating munin的MySQL沒有更新 - - troubleshoot munin plugin 疑難排解munin插件 - - munin munin - - munin mysql configuration munin MySQL的配置 - - munin plugin install munin插件安裝 - - munin freebsd apache munin FreeBSD的阿帕奇 - - munin empty graph munin空圖 - - munin empty munin空 - - munin mysql monitoring munin MySQL的監測 - - 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 apache graphs munin阿帕奇圖 - - munin mysql plugin password munin MySQL的插件密碼 - - mysql monitoring 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沒有更新圖 - - munin mysql blank munin MySQL的空白 - - freebsd munin mysql FreeBSD的munin的MySQL - - CPANEL munin slow query graph 的cPanel munin慢速查詢圖 - - برنامج Munin برنامج munin - -