LinuxÖ÷»ú¼à¿Ø¹¤¾ßmunin monit ntop
À´Ô´£ºhttp://linux.chinaunix.net/ebook/doc/2009/09/17/1135830.shtml
±¾ÎĽéÉÜÔÚcentos 5.x»·¾³ÏÂͨ¹ýyumÔ´µÄÀ©Õ¹Ê¹ÓÃmunin¡¢ monit¡¢ntop¹¤¾ßÀ´¼à¹ÜÄãµÄÓ¦ÓóÌÐòºÍ·þÎñÆ÷¡£ÌâΪÀÁÈË˵˵µÄÊǼò±ãµÄ°²×°·½Ê½¶øÒÑ£¬½«Ç¿´óµÄ¹¦ÄÜÅäÖüòµ¥µÄÓ¦ÓÃÆðÀ´ÊǺÜÖØÒªµÄ£¬¿ÉÒÔ½Úʡʱ¼ä²¢Ìá¸ßЧÂÊ¡£
Monit£ºhttp:#www.tildeslash.com/monit/
Munin: http:#munin.projects.linpro.no/
Ntop£ºhttp:#www.ntop.org/
¡¡¡¡µ±ÄãµÄLinuxÖ÷»úͶÈëÉú²ú»·¾³ÒÔºó£¬ÏëÒªÖªµÀϵͳ»òÕß·þÎñÿÌì»òÕßÿÖܵÄÔËÐÐÇé¿ö£¬MuninÊÇ×î¼ÑÑ¡Ôñ¡£ÔÚijЩÇé¿öÏ£¬¼à¿ØLinuxÖ÷»ú·þÎñ¡¢Ó¦ÓóÌÐòµÄÔËÐÐ״̬£¬ÊǷdz£ÓбØÒªµÄ£¬ÓÈÆäÊÇÓ¦ÓóÌÐò»ò·þÎñ»á³öÏÖ´íÎ󣬲¢¿ÉÄÜ¿ªÊ¼ÍÌÊÉÄãÖ÷»úµÄÄÚ´æºÍcpu£¬Õ⽫µ¼ÖÂÖ÷»úÉϵÄÓ¦Óò»ÄÜÕý³£µÄÔËÐС£Òò´Ë£¬ÐèÒªÆäËûһЩ³ÌÐòÀ´¼à¿ØÄãµÄ³ÌÐò£¬ÔÚ³ÌÐò³ö´íÒÔºóÖØÆôÄãµÄ³ÌÐò¡£ÔÚlinuxϽâ¾ö·½°¸£¬ÈçNagios¡¢ganglia¡¢HyperHQ¡¢ZABBIXµÈ£¬nagiosµÄ²å¼þºÜ¶à¹¦ÄÜÒ²ÊǺÜÇ¿´óµÄ£¬ÐèÒªÏ꾡µÄÅäÖÃʵÏÖ£»HyperHQ»á¿ªÆôJAVAµÄÓ¦Óò¢¶ÔJAVAµÄÓ¦Ó÷þÎñÆ÷»á×Ô¶¯É豸£¬ÏëÆðÀ´JAVA¶ÔÄÚ´æµÄµÄÇ¿ÁÒÐèÇó»¹ÊÇ»áÓйý¹À¼Æ¡£ÕâÕâÁËÍƼöʹÓà Monit¡¢ MuninÒÔ¼°ntopÒ»¸ö¼òµ¥µÄÍøÂçÁ÷Á¿µÄ¼à¿Ø¹¤¾ß¡£Ïà¶ÔÇ°ÃæÁоٵÄÇ¿´ó¹¦ÄÜÐèÒª¸´ÔÓÅäÖ㬱¾ÎĽ«ÃèÊöµÄMonit¡¢ Munin¡¢ NtopÖ»ÊÇÐèҪʹÓÃyum ½øÐа²×°¾Í¿ÉÒÔ·½±ãµÄʹÓüà¿ØÖ÷»úÉϵÄ×ÊÔ´²¢·¢³ö¾¯¸æÓʼþ¡£
¡¡¡¡MuninÊÇÒ»¸öÀàËÆcactiµÄÐÔÄÜչʾ¹¤¾ß£¬×ßµÄÊǸü¿É¿¿µÄTCPÐÒé¡£²»»á³öÏÖcacti»ùÓÚsnmpÕâÑùµÄ¼à¿Ø·½Ê½»á³öÏÖ¸÷ÖÖ¸÷ÑùµÄÎÊÌâ¡£MuninÊÇÓÃPerl±àдµÄ,Óкܶà²å¼þ¹¦ÄÜ£¬Ö§³ÖUnix²Ù×÷ϵͳµÄ¶àÖÖ°æ±¾£¬Óõ½ºÜ¶à²»Í¬µÄperl°ü£»MuninºÍMRTGÀàËÆ£¬Ò²¿ÉÒÔͨ¹ý¸÷ÖÖ²å¼þ½«·þÎñÆ÷µÄ¸÷·½Ãæ״̬ÒÔͼÏñµÄÐÎʽ±íÏÖ³öÀ´¡£munin»Í¼Ò²ÊÇʹÓÃrrdtool£¬Òò´ËNet::Server perlÄ£¿éºÍrrdtool¶¼ÒѾ°²×°ÔÚÁË·þÎñÆ÷ÉÏÕâЩ±ØÐë°²×°muninÇ°°²×°Íê±Ï¡£
¡¡¡¡MuninµÄÖ÷ÒªÓŵã¾ÍÊÇËüÄܹ»Í¬Ê±ÌṩÊÕ¼¯ÐÅÏ¢ºÍ·ÖÎöÐÅÏ¢µÄ¹¦ÄÜ£¬ÕâÑùÄã¾ÍÎÞÐèÔÚÿ¸ö½ÚµãÉÏ°²×°Ò»¸öweb·þÎñÆ÷£¬²¢ÇÒÏêϸÐÅÏ¢Ò³Ãæµ×²¿µÄ¸½¼ÓÐÅÏ¢Äܹ»°ïÖúÄã»ñȡһЩÖØÒªÊý¾ÝµÄͳ¼ÆÐÅÏ¢¡£
¡¡¡¡Debian/UbuntuºÍFedora¶¼¸½ÓÐmunin°²×°°ü£¬²»¹ýRHELºÍCentosĬÈÏûÓаüÀ¨muninµÄ°²×°°ü¡£
¡¡¡¡Munin ¹¦ÄÜÖ÷ҪΪÊÕ¼¯ºÍ·ÖÎö¹¦ÄÜ£¬Õâ¿ÉÒÔ°ïÖúÄãÊÕ¼¯¶à¸ö·þÎñÆ÷ÐÅÏ¢²¢ÔÚÒ»¸öÖÐÑë·þÎñÆ÷ÉÏ·ÖÎöËùÓÐÊÕ¼¯µ½µÄÐÅÏ¢£¬Í¨¹ýaptÔ´»òÕßyumԴʹÆä°²×°ºÍ¸üж¼Ï൱¼òµ¥¡£
¡¡¡¡µ±Äã·ÃÎÊhttp://loca
Ïà¹ØÎĵµ£º
ÓÉÓÚ Linux Á¼ºÃµÄÓû§È¨ÏÞ¹ÜÀíÌåϵ£¬²¡¶¾ÍùÍùÊÇ Linux ϵͳ¹ÜÀíÔ±×îºó²ÅÐèÒª¿¼ÂǵÄÎÊÌâ¡£ÒÔÍù£¬Linux ÉϵÄɱ¶¾Èí¼þÖ÷ÒªÊÇΪÆóÒµµÄÓʼþºÍÎļþ·þÎñÆ÷ËùÉè¼ÆµÄ¡£Èç½ñ£¬Ëæ×Å Linux ×ÀÃæÓû§ÊýÁ¿µÄÔö³¤£¬×ÀÃæÓû§ÔÚÊÜÒæÓÚ Linux ϵͳ¶Ô²¡¶¾½ÏÇ¿µÄÌìÈ»ÃâÒßÁ¦µÄͬʱ£¬Ò²ÐèҪɱ¶¾Èí¼þÇåÀí´ÓÍøÂç»òUÅÌ´øÀ´µÄWIndows²¡¶¾¡£¾¡¹ÜÄÇЩ ......
°´ÏÂÃæ²½ÖèÀ´×ö£¬¿ÉÒÔ¼òµ¥ÌåÑésocket APIµÄʹÓ᣾ßÌ庯ÊýµÄÒâÒ壬Çë²Î¿¼ÆäËû˵Ã÷Îĵµ¡£
ÏÂÃæµÄº¯ÊýÖ±½Ócopy, paste¾Í¿ÉÒÔÁË¡£
Step1. ´´½¨Server ³ÌÐò¡£
н¨Îļþsocket_s.c, ÄÚÈÝÈçÏ£º
-------------------------------------------
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h ......
2009-10-21
1. ѧ»áд¼òµ¥µÄmakefile
2. ±àÒ»Ó¦ÓóÌÐò£¬¿ÉÒÔÓÃmakefileÅÜÆðÀ´
3. ѧ»áдÇý¶¯µÄmakefile
4. дһ¼òµ¥charÇý¶¯£¬makefile±àÒëͨ¹ý£¬¿ÉÒÔinsmod, lsmod, rmmod. ÔÚÇý¶¯µÄinitº¯ÊýÀï´òÓ¡hello world, insmodºóÓ¦¸ÃÄܹ»Í¨¹ýdmesg¿´µ½Êä³ö¡£
5. дһÍêÕûÇý¶¯£¬ ¼ÓÉÏread, write, ioctl, pollingµÈ¸÷ÖÖº ......
ÔÎĵØÖ·£ºhttp://www.ibm.com/developerworks/cn/linux/l-lpic1-v3-102-4/index.html?ca=drs-
Ian
Shields
, ×ÊÉî³ÌÐòÔ±, IBM
Ian Shields ²ÎÓë developerWorks
Linux רÇøµÄÐí¶à Linux ÏîÄ¿¡£ËûÊÇ IBM ±±¿¨ÂÞÀ´ÄÉÖÝ Research Triangle Park µÄÒ»Ãû¸ß¼¶³ÌÐòÔ±¡£ËûÓÚ
1973 Äê×÷ΪһÃûϵͳ¹¤³Ìʦ¼ÓÈë IBM λÓÚ°Ä´ ......
LinuxÉ豸Çý¶¯ÖеÄÒ첽֪ͨÓëÒì²½I/O
Ò첽֪ͨµÄ¸ÅÄîÓë×÷ÓÃ
Ò첽֪ͨµÄÒâ˼ÊÇ£ºÒ»µ©É豸¾ÍÐ÷,ÔòÖ÷¶¯Í¨ÖªÓ¦ÓóÌÐò,ÕâÑùÓ¦ÓóÌÐò¸ù±¾¾Í²»ÐèÒª²éѯÉ豸״̬,ÕâÒ»µã·Ç³£ÀàËÆÓÚÓ²¼þÉÏ"ÖжÏ"µÄ¸ÅÄî,±È½Ï׼ȷµÄ³ÆνÊÇ"ÐźÅÇý¶¯µÄÒì²½I/O"¡£
LinuxÐźÅ
LinuxϵͳÖУ¬Ò첽֪ͨʹÓÃÐźÅÀ´ÊµÏÖ¡£ÐźÅÒ²¾ÍÊÇÒ»ÖÖ ......