Fix for Munin MySQL Monitoring Plugin Graph Not Showing or Blank ±×·¡ÇÁ°¡ Ç¥½ÃµÇÁö ¾Ê´Â Ç÷¯±× Á¢¼Ó 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 ¸ð´ÏÅ͸µ µµ±¸´Â ¼³¹® Á¶»ç ¹× ¸ð´ÏÅÍÀÇ ¼º´ÉÀ» »ç¿ëÇÏ¿© ÄÄÇ»ÅÍ, ³×Æ®¿öÅ©, sans, ÀÀ¿ë ÇÁ·Î±×·¥, µ¥ÀÌÅͺ£À̽º, ±â»ó ÃøÁ¤ ¹× ´Ù¸¥ ¸Å°³ º¯¼ö¸¦ÇÕ´Ï´Ù. Munin remembers and records information it captured and presents them in graphs through a web interface. munin ¹× ±â·Ï Á¤º¸¸¦ ±â¾ïÇÏ°í ¼±¹°À» ĸóÇÏ¿© À¥ ÀÎÅÍÆäÀ̽º¸¦ ÅëÇØ ±×µéÀÌ ±×·¡ÇÁ¸¦ÇÕ´Ï´Ù. 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. ±×·¯³ª, ´Ù½Ã ½ÃÀÛÇÏ¸é ¼¹ö¿¡ mysql munin ³ëµå¸¦ ¸ð´ÏÅͰ¡ ½ÇÆÐÇÕ´Ï´Ù. 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 ºó Áõ»ó À¥ ¼¹ö°¡¾ø´Â °æ¿ì¿¡µµ ¹®Á¦°¡ ¹ß»ýÇÒ ¼öÀÖ½À´Ï´Ù ÀçºÎ ÆÃÇÕ´Ï´Ù.
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. ÀÌ ¿À·ù´Â ÆÞ ¶óÀ̺귯¸®¿¡¼ ¹ö±×·Î ÀÎÇØ muninÀÌ Àû¿ëµÇÁö ¾Ê½À´Ï´Ù °æ·Î º¯¼ö¸¦ »ç¿ë ÀÌ·Î ÀÎÇØ ´Þ·¯¸¦ ÀÔ·ÂÇÑ ´ÙÀ½Àº Ç÷¯±× Á¢¼Ó½Ä ¿øÀÎÀ» ãÀ» ¼ö¾ø½À´Ï´Ù 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
- 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ÇÕ´Ï´Ù.
- Edit the /etc/munin/plugin-conf.d/cpanel.conf Munin configuration file, and modify the [mysql*] to look like below: ÆíÁýÀº / ºñ°í / munin / Ç÷¯±× - conf.d / cpanel.conf munin ±¸¼º ÆÄÀÏÀ» ¼öÁ¤ÇÏ¿© [mysql *]À» ¾Æ·¡Ã³·³ :
[mysql*][mysql *]
user root»ç¿ëÀÚ ·çÆ®
group wheel±×·ì¿¡ ¹ÙÄû
env.mysqladmin /usr/bin/mysqladminenv.mysqladmin / usr / ºó / mysqladmin
env.mysqlopts –defaults-extra-file=/root/.my.cnfenv.mysqlopts - ±âº»°ª - ¿¢½ºÆ®¶ó - ÆÄÀÏ = / ·çÆ® / .my.cnfEnsure the env.mysqladmin value is path returned by step above. the env.mysqladmin °ªÀº °æ·Î¸¦ À§ÇØ À§ÀÇ ´Ü°è¿¡ ÀÇÇØ ¹ÝȯµÈÇÕ´Ï´Ù. Also ensure that /root/.my.cnf contains correct root password to the MySQL databases. ¶ÇÇÑ È®ÀÎ / ·çÆ® / .my.cnf ¿Ã¹Ù¸¥ ·çÆ® ºñ¹Ð ¹øÈ£¸¦ mysql µ¥ÀÌÅͺ£À̽º¿¡ Æ÷ÇÔÇÕ´Ï´Ù.
- Then restart Munin service: ´ÙÀ½ ´Ù½Ã ½ÃÀÛÇÕ´Ï´Ù munin ¼ºñ½º :
/etc/init.d/munin-node restart / ºñ°í / init.d / munin - ³ëµå¸¦ ´Ù½Ã ½ÃÀÛ
- 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 / ºó / mysqladmin"(¿¡ µû¶ó °æ·Î°¡ ¿Ã¹Ù¸¥Áö È®ÀÎÇϽʽÿÀ ½Ã½ºÅÛ)¸¦ / ºñ°í / 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 ³» µðÁöÅÐ ¶óÀÌÇÁ °ø°³ Åä·Ð . ÇÕ´Ï´Ù.
Related Articles °ü·Ã ±â»ç
- Fix Munin Exim Mail Throughput Graph Not Updating Problem ¼öÁ¤ ÇÁ·Î±×·¥À» ¾÷µ¥ÀÌ Æ® ¹®Á¦°¡ ¾ø´Ù munin exim ¸ÞÀÏ Ã³¸®·®À» ±×·¡ÇÁ
- Seasonality for Mac OS Reviews °èÀýÀÇ ¸Æ ¿î¿µ üÁ¦ÀÇ ¸®ºä
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 3 freebsd 6.0°ú ¾ÆÆÄÄ¡ À¥ ¼¹ö¿¡ ¼³Ä¡ÇÏ´Â 2.2, mysql 5.0°ú php 5 - Á¦ 3
- Must Have WordPress Plugins Ç÷¯±× Á¢¼Ó ÀÖ¾î¾ßÇÕ´Ï´Ù wordpress
- Install Web Server in Windows XP with Apache2, PHP5 and MySQL4 - Part 4 windows XP ¿ë À¥ ¼¹ö¿¡ ¼³Ä¡¿Í apache2, php5, mysql4 - 4 ºÎ
- Change and Reset MySQL root Password mysql ·çÆ® ¾ÏÈ£¸¦ º¯°æ ¹× Àç¼³Á¤
- Reset the Root Password of MySQL Server ¸®¼ÂÀÇ ·çÆ® ºñ¹Ð ¹øÈ£¸¦ ¹ÝȯÇÑ´Ù
- 3 Column Relaxation WordPress Theme comments-paged.php for Paged-Comments WordPress Plugin 3 °³ÀÇ ¶õ wordpress Å׸¶ ÄÚ¸àÆ® - paged.phpÀ» ÀÌ¿ÏÀ» È£Ãâ - ÀÇ°ß Ç÷¯±× Á¢¼Ó½Ä
- Record Skype Call with Call Graph ½ºÄ« ÀÌÇÁ ÀüÈ ÅëÈ ±â·Ï ±×·¡ÇÁ
- How to Find and Replace Text in MySQL Database using SQL mysql µ¥ÀÌÅͺ£À̽º¸¦ÇÏ´Â ¹æ¹ýÀ» ã±â ¹× ¹Ù²Ù±â¸¦ »ç¿ëÇÏ¿© ÅØ½ºÆ®¸¦ sql

































August 29th, 2007 02:32 2007³â 8¿ù 29ÀÏ 02:32
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 »ç¿ëÀÚ°¡ ºñ¹Ð ¹øÈ£¸¦ ¸¸µé ±ÇÇÑÀ» ºÎ¿©ÇÏÁö ¾ÊÀº Á¡À̺¸´Ù Á÷Á¢ÀûÀ¸·Î ¾î¶°ÇÑ °ÍÀ̺¸´Ù ¾ÈÀüÇÕ´Ï´Ù dB / ·çÆ® / .my.cnf
September 24th, 2007 23:23 2007³â 9¿ù 24ÀÏ 23:23
thank you for this kind article. ÀÌ·± Á¾·ù ±â¼ú ÀÚ·á Áּż °¨»çÇÕ´Ï´Ù.
YET, /root/.my.cnf is only a shortcut. ±×·¯³ª, / ·çÆ® / .my.cnfÀº Áö¸§±æÀ»ÇÕ´Ï´Ù.
am lost here ? ¿ÀÀü ÀÒÀº ÀÖ³ª¿ä?
September 25th, 2007 01:30 2007³â 9¿ù 25ÀÏ 01:30
Why not try it out and let us know if it works? ±×¸®°í ¿Ö ÀúÈñ¿¡°Ô ¾Ë·ÁÁֽʽÿÀ ½ÃµµÇغ¸½Ê½Ã¿À ¼º°øÇϸé?
October 10th, 2007 22:18 2007³â 10¿ù 10ÀÏ 22:18
It works fine in my environment without cPanel Control Panel. ³» ȯ°æ¿¡¼ Á¦´ë·Î ÀÛµ¿ÇÏÁö ¾Ê°í ±×°Í cpanel Á¦¾îÆÇÀ»ÇÕ´Ï´Ù. I had the same problem on a machine and your procedure worked. ³ª´Â ´ç½ÅÀÇ ÀýÂ÷¸¦ ±â°è¿Í °°Àº ¹®Á¦¿¡ ±Ù¹«ÇÕ´Ï´Ù.
January 25th, 2008 08:40 2008³â 1¿ù 25ÀÏ 08:40
sweetness. ´Ü¸À.
now if you could only post the same for apache Áö±Ý °Ô½ÃÇÒ ¼öÀÖ´Ù¸é µ¿ÀÏÇÑ¿¡°Ô ¾ÆÆÄÄ¡¿¡ ´ëÇØ¼¸¸
thx lots, ¿øÇÑ´Ù Á¦ºñ,
tomek. tomekÇÕ´Ï´Ù.