¿ìËÙÒµÎñͨµÀ

nagios¼à¿Ø·þÎñµÄ°²×°ºÍÅäÖÃ

×÷Õß ØýÃû¼¼Êõ À´Ô´ Linuxϵͳ ä¯ÀÀ ·¢²¼Ê±¼ä 2012-03-23
iosÓû§: # vi /usr/local/nagios/etc/objects/contacts.cfg email nagios@localhost #Õâ¸öÊÇĬÈÏÉèÖà ÔÚhttpdµÄÅäÖÃÎļþĿ¼(conf.d)Öд´½¨NagiosµÄWeb³ÌÐòÅäÖÃÎļþ£º # make install-webconf ´´½¨Ò»¸öµÇ¼nagios web³ÌÐòµÄÓû§,Õâ¸öÓû§ÕʺÅÔÚÒÔºóͨ¹ýwebµÇ¼nagiosÈÏ֤ʱËùÓ㺠# htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin ÒÔÉϹý³ÌÅäÖýáÊøÒÔºóÐèÒªÖØÐÂÆô¶¯httpd£º # service httpd restart 4¡¢±àÒë¡¢°²×°nagios-plugins nagiosµÄËùÓмà¿Ø¹¤×÷¶¼ÊÇͨ¹ý²å¼þÍê³ÉµÄ,Òò´Ë,ÔÚÆô¶¯nagios֮ǰ»¹ÐèҪΪÆä°²×°¹Ù·½ÌṩµÄ²å¼þ. # tar zxf nagios-plugins-1.4.13.tar.gz # cd nagios-plugins-1.4.13 # ./configure --with-nagios-user=nagios --with-nagios-group=nagios # make # make install 5¡¢ÅäÖò¢Æô¶¯Nagios (1)°ÑnagiosÌí¼ÓΪϵͳ·þÎñ²¢½«Ö®¼ÓÈëµ½×Ô¶¯Æô¶¯·þÎñ¶ÓÁУº # chkconfig --add nagios # chkconfig nagios on (2)¼ì²éÆäÖ÷ÅäÖÃÎļþµÄÓï·¨ÊÇ·ñÕýÈ·£º # /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg (3)Èç¹ûÉÏÃæµÄÓï·¨¼ì²éûÓÐÎÊÌâ,½ÓÏÂÀ´¾Í¿ÉÒÔÕýʽÆô¶¯nagios·þÎñÁË£º # service nagios start (4)ÅäÖÃselinux Èç¹ûÄúµÄϵͳ¿ªÆôÁËselinux·þÎñ,ÔòĬÈÏΪ¾Ü¾ønagios web cgi³ÌÐòµÄÔËÐÐ.Äú¿ÉÒÔͨ¹ýÏÂÃæµÄÃüÁîÀ´¼ì²éÄúµÄϵͳÊÇ·ñ¿ªÆôÁËselinux£º #getenforce Èç¹ûÉÏÃæÃüÁîµÄ½á¹ûÏÔʾ¿ªÆôÁËselinux·þÎñ,Äú¿ÉÒÔͨ¹ýÏÂÃæµÄÃüÁîÔÝʱÐԵĽ«Æä¹Ø±Õ£º #setenforce 0 Èç¹ûÄúÏëÔÚÒÔºóÍêÈ«¹Ø±Õselinux,¿ÉÒÔͨ¹ý±à¼­/etc/sysconfig/selinuxÎļþ,½«ÆäÖеÄselinuxºóÃæµÄÖµ“force”ÐÞ¸ÄΪ“disable”¼´¿É. µ±È»,ÄúÒ²¿ÉÒÔͨ¹ýÒÔÏ·½Ê½½«nagiosµÄCGI³ÌÐòÔËÐÐÓÚSELinux/targetedģʽ¶ø²»ÓùرÕselinux£º # chcon -R -t httpd_sys_content_t /usr/local/nagios/sbin # chcon -R -t httpd_sys_content_t /usr/local/nagios/share (5)ͨ¹ýweb½çÃæ²é¿´nagios£º http://your_nagios_IP/nagios µÇ¼ʱÐèÒªÖ¸¶¨Ç°ÃæÉ趨µÄwebÈÏÖ¤ÕʺźÍÃÜÂë. ×¢Ò⣺ΪÁËnagiosϵͳµÄ°²È«,½¨ÒéÄúʹÓÃÐÅϢժҪǿÈÏ֤ģʽ(ÈçMD5),Ç¿ÖÆʹÓÃwebµÄTSL/SSL°²È«Í¨Ñ¶Ä£Ê½,²¢ÇÒͨ¹ý·ÃÎÊ¿ØÖÆÁбíÉ趨ÄÜ·ÃÎÊnagiosµÄweb½çÃæµÄ¿Í»§¶ËµØÖ·. ¶þ¡¢NagiosµÄ²å¼þ¼ò½é Nagios±¾Éí²¢²»°üº¬Èκμà¿Ø»úÖÆ,ÆäËùÓеļà¿Ø¹¤×÷¶¼ÊÇͨ¹ý²å¼þ£¨plugin£©À´ÊµÏÖµÄ.ÕâЩ²å¼þͨ³£ÊÇͨ¹ýÃüÁîÐз½Ê½¼à¿ØÖ÷»ú»ò·þÎñ¹¤×÷״̬µÄPerl½Å±¾»òShell½Å±¾£¨Í¨³£ÓÚ/usr/local/nagios/libexecĿ¼£©,ÓÉNagios½øÐа´Ðèµ÷ÓÃ,²¢°ÑÖ´Ðнá¹û·µ»Ø¸øNagios.NagiosÕýÊǸù¾ÝÕâЩ·µ»ØÖµÀ´ÅжÏÊÇ·ñ“²ÉȡijÖÖÐж¯”£¨ÈçÔËÐÐʼþ¾ä±ú£¨event handlers£©,·¢ËÍ֪ͨµÈ£©.ÏÂͼչʾÁ˲å¼þÏà¶ÔÓÚNagios½ø³ÌºÍ±»¼à¿Ø¶ÔÏó¼äµÄ¹Øϵ.

¹Ù·½ÌṩÁËһЩÓÃÀ´¼à¿Øϵͳ»ù±¾×ÊÔ´£¨ÈçCPU¸ºÔØ¡¢´ÅÅÌÀûÓÃÂÊ¡¢PingËÙÂʵȣ©µÄ²å¼þ.Èç¹ûÐèÒª¼à¿ØÆäËüÐÎʽ×ÊÔ´£¨ÈçCPUµçѹ¡¢CPU·çÉÈתËÙ¡¢ÍøÂçÁ÷Á¿µÈ£©µÄ״̬,Äú¿ÉÒÔÀûÓùٷ½ÌṩµÄÆäËü²å¼þ»òµÚÈý·½ÌṩµÄ²å¼þ,µ±È»,ÄúÒ²¿ÉÒÔ×Ô¼º±àдËùÐèÒªµÄ²å¼þ. ÒÔÏÂÊdz£ÓÃÀ´»ñµÃ²å¼þµÄµØÖ·£º Nagios²å¼þÏîÄ¿£ºhttp://nagiosplug.sourceforge.net/ÏÂÔØÒ³Ã棺http://www.nagios.org/download/£ºhttp://www.nagiosexchange.org/
NagiosExchange.org
Nagios ¹Ù·½ÌṩµÄ²å¼þͨ³£¶¼»áÌṩ¼òµ¥µÄʹÓðïÖú,¿ÉÒÔÔÚÿ¸ö½Å±¾ºóʹÓÓ-h”»ò“--help”À´»ñµÃÕâЩ°ïÖúÐÅÏ¢.ÈçÒªÏëÁ˽â²å¼þ½Å±¾check_ntµÄ°ïÖúÐÅÏ¢,¿ÉÒÔʹÓÃÈçÏÂÃüÁ # ./check_nt --help Èý¡¢NagiosÅäÖÃÎļþ¸ÅÀÀ

ÁèÖڿƼ¼×¨ÒµÌṩ·þÎñÆ÷×âÓᢷþÎñÆ÷Íйܡ¢ÆóÒµÓʾ֡¢ÐéÄâÖ÷»úµÈ·þÎñ£¬¹«Ë¾ÍøÕ¾£ºhttp://www.lingzhong.cn ΪÁ˸ø¹ã´ó¿Í»§Á˽â¸ü¶àµÄ¼¼ÊõÐÅÏ¢£¬±¾¼¼ÊõÎÄÕÂÊÕ¼¯À´Ô´ÓÚÍøÂç,ÁèÖڿƼ¼×ðÖØÎÄÕÂ×÷ÕߵİæȨ£¬Èç¹ûÓÐÉæ¼°ÄãµÄ°æȨÓбØҪɾ³ýÄãµÄÎÄÕ£¬ÇëºÍÎÒÃÇÁªÏµ¡£ÒÔÉÏÐÅÏ¢ÓëÎÄÕÂÕýÎÄÊDz»¿É·Ö¸îµÄÒ»²¿·Ö,Èç¹ûÄúҪתÔر¾ÎÄÕÂ,Çë±£ÁôÒÔÉÏÐÅÏ¢£¬Ð»Ð»!

·ÖÏíµ½£º ¸ü¶à

Copyright ©1999-2011 ÏÃÃÅÁèÖڿƼ¼ÓÐÏÞ¹«Ë¾ ÏÃÃÅÓÅͨ»¥Áª¿Æ¼¼¿ª·¢ÓÐÏÞ¹«Ë¾ All rights reserved

µØÖ·(ADD)£ºÏÃÃÅÈí¼þÔ°¶þÆÚÍûº£Â·63ºÅ701E£¨¶«ÄÏÈÚͨÅÔ£© Óʱà(ZIP)£º361008

µç»°£º0592-5908028 ´«Õ棺0592-5908039 ×ÉѯÐÅÏ䣺web@lingzhong.cn ×ÉѯOICQ£º173723134

¡¶ÖлªÈËÃñ¹²ºÍ¹úÔöÖµµçÐÅÒµÎñ¾­ÓªÐí¿ÉÖ¤¡·ÃöB2-20100024  ICP±¸°¸:ÃöICP±¸05037997ºÅ