netsnmp :: trapreceiver.

NET-SNMPÀÇ SNMPTRAPD ¿ë ÀÓº£µðµå Perl Æ®·¦ ó¸®
Áö±Ý ´Ù¿î·Îµå

netsnmp :: trapreceiver. ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • Perl Artistic License
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Wes Hardaker
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://search.cpan.org/~hardaker/

netsnmp :: trapreceiver. ű×


netsnmp :: trapreceiver. ¼³¸í

Net-SNMPÀÇ SNMPTrapd ¿ë ÀÓº£µðµå Perl Æ®·¦ ó¸® NetSnmp :: TrapReceiver´Â PERL ¼­ºê ·çƾÀ» NET-SNMP SNMPTRAPD ÇÁ·Î¼¼½º¿¡ µî·ÏÇÏ´Â µ¥ »ç¿ëµÇ´Â PERL ¸ðµâÀÔ´Ï´Ù. net-snmp´Â - enable-embedded-perlÀ» »ç¿ëÇÏ¿© ±¸¼ºµÇ¾î¾ßÇÕ´Ï´Ù. ±×·± ´ÙÀ½ ±â´É µî·ÏÀº snmptrapd.conf ±¸¼º ÆÄÀÏÀ» ÅëÇØ ¼öÇàµË´Ï´Ù. ÀÌ ¸ðµâÀº Æ®·¦À»¹ÞÀ» Á¤»óÀûÀÎ Perl ½ºÅ©¸³Æ®¿¡¼­ »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù. snmptrapd demon.within¿¡¼­ ÀÓº£µðµå µÈ »ç¿ëÀ»À§ÇÑ °ÍÀÔ´Ï´Ù. snmptrapd.conf ÆÄÀÏ, Å°¿öµå "perl"À» »ç¿ëÇÏ¿© ÆÞ Ç¥Çö½ÄÀ» È£Ãâ ÇÏ°íÀÌ ±â´ÉÀ» »ç¿ëÇÏ¿© netsnmp :: trackreceiver ¸ðµâÀ» »ç¿ëÇÏ¿© ÇÔ¼ö¸¦ µî·Ï ÇÒ ¼ö ÀÖ½À´Ï´Ù ÁÖ¾îÁø ¾Ë¸² (Æ®·¦ ¶Ç´Â ¾Ë¸²)ÀÌ ¼ö½Å µÉ ¶§¸¶´Ù È£ÃâµË´Ï´Ù. µî·Ï µÈ ±â´ÉÀº 2 °³ÀÇ Àμö·Î È£ÃâµË´Ï´Ù. ù ¹ø°´Â Æ®·¦ÀÌ ¼ö½ÅµÇ´Â ¹æ½Ä (SNMP ÇÁ·ÎÅäÄÝÀÇ ¹öÀü, ¾îµð¿¡¼­ ¿Ô´ÂÁö, SNMP »ç¿ëÀÚ À̸§ ¶Ç´Â Ä¿¹Â´ÏƼ À̸§ÀÌ ¹Ø¿¡ Àü¼Û µÈ °Í)¿¡ ´ëÇÑ Á¤º¸¸¦ Æ÷ÇÔÇÏ´Â Çؽÿ¡ ´ëÇÑ ÂüÁ¶ÀÔ´Ï´Ù. µÎ ¹ø° Àμö´Â ¼ÒÀ¯ ÀÚü¸¦ Á¤ÀÇÇÏ´Â º¯¼ö ¹ÙÀεù (OID ¹× °ª Á¤º¸)À» Æ÷ÇÔÇÏ´Â ¹è¿­¿¡ ´ëÇÑ ÂüÁ¶ÀÔ´Ï´Ù. °¢ º¯¼ö´Â ÀÚüÀûÀ¸·Î 3 °³ÀÇ °ªÀ» Æ÷ÇÔÇÏ´Â ¹è¿­¿¡ ´ëÇÑ ´ÙÀ½°ú °°½À´Ï´Ù. n netsnmp :: oid object, ±×°Í°ú ¿¬°üµÈ °ª ¹× °ªÀÇ ¼ýÀÚ À¯Çü (SNMP ÀÔ·Â Á¤º¸¿¡ ´ëÇÑ ÀÚ¼¼ÇÑ ³»¿ëÀº netsnmp :: asn ÂüÁ¶) .SubRoutines´Â Netsnmp :: TrapReceiver :: Register ÇÔ¼ö¸¦ »ç¿ëÇÏ¿© µî·ÏµÇ¾î µÎ °³ÀÇ Àμö¸¦ ÃëÇÕ´Ï´Ù. ù ¹ø°´Â "¸µÅ© ¾÷"¶Ç´Â "mymib :: myTrap"¶Ç´Â ".1.3.6.1.4.1.2021 ...."¿Í °°Àº µî·ÏÇÏ·Á´Â ¾Ë¸²À» ¼³¸íÇÏ´Â ¹®ÀÚ¿­ÀÔ´Ï´Ù. µÎ °³ÀÇ Æ¯º° Å°¿öµå´Â OID ´ë½Å »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù : "±âº»°ª"¹× "¸ðµÎ". "±âº»°ª"Å°¿öµå´Â ´Ù¸¥ Çڵ鷯°¡ È£ÃâµÇÁö ¾ÊÀº °æ¿ì Çڵ鷯¸¦ È£Ãâ ÇÒ ÇÊ¿ä°¡ ÀÖÀ½À» ³ªÅ¸³À´Ï´Ù. "all"Å°¿öµå´Â Çڵ鷯°¡ Ç×»ó ¸ðµç ¾Ë¸²¿¡ ´ëÇØ È£ÃâµÇ¾î¾ß ÇÔÀ» ³ªÅ¸³À´Ï´Ù. snmptrapd.conf ÆÄÀÏÀÇ ´ÙÀ½ ÁÙ : perl netsnmp :: trapreceiver :: µî·Ï ( "·¡ Æ®·ÎÀ̵å", myFunc); ¿ä±¸ »çÇ× : ¡¤ Perl.


netsnmp :: trapreceiver. °ü·Ã ¼ÒÇÁÆ®¿þ¾î

message.pm.

¸Þ½ÃÁöÀÇ Çؽø¦ Á¤ÀÇÇÏ°í Çì´õ, ¾Ë¸², °æ°í ¶Ç´Â ¿¡¸¯À¸·Î ½Äº°ÇÕ´Ï´Ù. ...

207

´Ù¿î·Îµå