2 .\" Japanese Version Copyright (c) 2002 Yuichi SATO
3 .\" all rights reserved.
4 .\" Translated Sat Feb 16 23:24:00 JST 2002
5 .\" by Yuichi SATO <ysato@h4.dion.ne.jp>
7 .TH SNMPTRAPD.CONF 5 "28 Aug 2001"
13 .\"O /usr/share/snmp/snmptrapd.conf - configuration file for the ucd-snmp trap demon.
14 /usr/share/snmp/snmptrapd.conf - ucd-snmp trap ¥Ç¡¼¥â¥ó¤ÎÀßÄê¥Õ¥¡¥¤¥ë
17 .\"O .B snmptrapd.conf
18 .\"O is the configuration file(s) which define how the ucd-snmp SNMP trap
19 .\"O receiving demon operates when it receives a trap. These files may
20 .\"O contain any of the directives found in the
22 .\"O section below. This file is not required for the demon to operate,
23 .\"O receive, or report traps. It is used solely as a method of providing
24 .\"O extensibility to the trap demon.
26 ¤Ï ucd-snmp SNMP trap ¤ò¼õ¿®¤¹¤ë¥Ç¡¼¥â¥ó¤¬
27 trap ¤ò¼õ¿®¤·¤¿ºÝ¤ÎÆ°ºî¤òÄêµÁ¤¹¤ëÀßÄê¥Õ¥¡¥¤¥ë¤Ç¤¢¤ë¡£
28 ¤³¤Î¥Õ¥¡¥¤¥ë¤Ë¤Ï¡¢°Ê²¼¤Î
29 .RB ¡Ö ¥Ç¥£¥ì¥¯¥Æ¥£¥Ö ¡×
30 ¥»¥¯¥·¥ç¥ó¤ÇÀâÌÀ¤µ¤ì¤Æ¤¤¤ë¥Ç¥£¥ì¥¯¥Æ¥£¥Ö¤ò»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤¤ë¡£
31 ¤³¤Î¥Õ¥¡¥¤¥ë¤Ï¥Ç¡¼¥â¥ó¤¬ trap ¤òÁàºî¡¦¼õ¿®¡¦Êó¹ð¤¹¤ë¤¿¤á¤ËɬÍפÊÌõ¤Ç¤Ï¤Ê¤¤¡£
32 ¤³¤Î¥Õ¥¡¥¤¥ë¤Ï trap ¥Ç¡¼¥â¥ó¤Ë³ÈÄ¥À¤òÄ󶡤¹¤ë¤¿¤á¤Î¼êÃʤȤ·¤ÆÍѤ¤¤é¤ì¤ë¡£
33 .\"O .SH PLEASE READ FIRST
34 .SH ºÇ½é¤Ë¤ªÆɤߤ¯¤À¤µ¤¤
35 .\"O First, make sure you have read the snmp_config(5) manual page that
36 .\"O describes how the ucd-snmp configuration files operate, where they
37 .\"O are located and how they all work together.
38 ºÇ½é¤Ë¡¢snmp_config(5) ¤Î man ¥Ú¡¼¥¸¤òÆɤó¤Ç¤ª¤¯¤³¤È¡£
39 ¤³¤Î man ¥Ú¡¼¥¸¤Ë¤Ï¡¢ucd-snmp ÀßÄê¥Õ¥¡¥¤¥ë¤Î½èÍý¤Î¤µ¤ìÊý¡¦
40 ¥Õ¥¡¥¤¥ë¤Î¾ì½ê¡¦ÀßÄê¥Õ¥¡¥¤¥ë´Ö¤Î´ØÏ¢À¤¬½ñ¤«¤ì¤Æ¤¤¤ë¡£
43 .IP "traphandle OID|default PROGRAM [ARGS ...]"
46 .\"O configuration directive configures the snmptrapd program to launch an
47 .\"O external program any time it receives a trap matching the OID token.
49 ÀßÄê¥Ç¥£¥ì¥¯¥Æ¥£¥Ö¤Ï¡¢OID ¥È¡¼¥¯¥ó¤Ë¥Þ¥Ã¥Á¤¹¤ë trap ¤ò¼õ¿®¤·¤¿¤È¤¤Ë¡¢
50 snmptrapd ¤¬µ¯Æ°¤¹¤ë³°Éô¥×¥í¥°¥é¥à¤òÀßÄꤹ¤ë¡£
51 .\"O If the OID token is the word
53 .\"O then any trap not matching any other trap handler will call this
54 .\"O default one instead.
57 ¤Î¾ì¹ç¡¢Â¾¤Î¥È¥é¥Ã¥×¥Ï¥ó¥É¥é¤Ë¥Þ¥Ã¥Á¤·¤Ê¤¤ trap ¤Ï¡¢
58 ¤³¤Î¥Ç¥Õ¥©¥ë¥È¤Î trap ¥Ï¥ó¥É¥é¤ò¸Æ¤Ó½Ð¤¹
59 (ÌõÃ𡧤½¤·¤Æ¤³¤Î¥Ç¥Õ¥©¥ë¥È¥Ï¥ó¥É¥é¤¬¡¢
60 ¤³¤Î¥Ç¥£¥ì¥¯¥Æ¥£¥Ö¤Ë½ñ¤«¤ì¤¿¥×¥í¥°¥é¥à¤ò¸Æ¤Ó½Ð¤¹)¡£
61 .\"O The program is fed details about the trap to its standard input, in the
62 .\"O following format, one entry per line:
63 ¥×¥í¥°¥é¥à¤Ï trap ¤Î¾ÜºÙ¤òɸ½àÆþÎϤ«¤é¼õ¤±¼è¤ë¡£
64 ¥Õ¥©¡¼¥Þ¥Ã¥È¤Ï°Ê²¼¤Î¤è¤¦¤Ë¤Ê¤Ã¤Æ¤ª¤ê¡¢1 ¹Ô¤Ë¤Ä¤ 1 ¥¨¥ó¥È¥ê¤Ç¤¢¤ë¡£
67 .\"O The name of the host in question that sent the trap, as determined by
69 trap ¤òÁ÷¤Ã¤Æ¤¤¿³ºÅö¥Û¥¹¥È¤Î̾Á°¡£
70 ¥Û¥¹¥È̾¤Ï gethostbyaddr() ¤Ç·èÄꤵ¤ì¤¿¤â¤Î¤Ç¤¢¤ë¡£
73 .\"O The IP address of the host that sent the trap.
74 trap ¤òÁ÷¤Ã¤Æ¤¤¿¥Û¥¹¥È¤Î IP ¥¢¥É¥ì¥¹¡£
77 .\"O A list of variable bindings that describe the trap and the variables
78 .\"O enclosed in it. The first token on the line, up until the space, in
79 .\"O the OID and the remainder of the line is its value.
81 .\"Osato: enclose ¤ÎÎɤ¤Ìõ¤¬»×¤¤É⤫¤Ð¤Ê¤¤¡£
83 ¥È¥é¥Ã¥×¤È¤½¤ÎÊÑ¿ô¤Îµ½Ò¤ò´Þ¤à variable bindings ¤Î¥ê¥¹¥È¡£
84 ¶õÇò¤Þ¤Ç¤Î¹Ô¤ÎºÇ½é¤Î¥È¡¼¥¯¥ó¤Ï OID ¤Ç¡¢
85 ¹Ô¤Î»Ä¤ê¤ÎÉôʬ¤Ï¤½¤ÎÃͤǤ¢¤ë¡£
87 .\"O should be the system.sysUpTime.0 OID, and the second should be
88 .\"O the ...snmpTrap.snmpTrapOID.0 OID.
89 1 ÈÖÌܤΠOID ¤Ï system.sysUpTime.0¡¢
90 2 ÈÖÌܤΠOID ¤Ï ...snmpTrap.snmpTrapOID.0 ¤Ë¤¹¤Ù¤¤Ç¤¢¤ë¡£
91 .\"O The remainder of the OIDs, with the
92 .\"O possible exception of the last one, are the variable bindings
93 .\"O contained within the trap.
95 .\"Osato: possible ¤ò¤É¤¦Ìõ¤»¤ÐÎɤ¤¤Î¤«¡©
97 OID ¤Î»Ä¤ê¤Ï trap ¤Ë´Þ¤Þ¤ì¤ë variable bindings ¤Ç¤¢¤ë
98 (¤¿¤À¤·ºÇ¸å¤Î OID ¤Ï¤³¤Î¸Â¤ê¤Ç¤Ê¤¤¤«¤â¤·¤ì¤Ê¤¤)¡£
99 .\"O For SNMPv1 traps, the very last OID will
100 .\"O be the ...snmpTrap.snmpTrapEnterprise OID and its value.
101 SNMPv1 trap ¤Ç¤Ï¡¢°ìÈֺǸå¤Î OID ¤Ï
102 \&...snmpTrap.snmpTrapEnterprise ¤È¤½¤ÎÃͤǤ¢¤ë¡£
104 .\"O SNMPv1 traps have been converted to the SNMPv2 trap PDU type by the
105 .\"O method described in the SNMPv1/SNMPv2 coexistence document, for which
106 .\"O I forget the appropriate RFC number.
107 ´ðËÜŪ¤Ë SNMPv1 trap ¤Ï¡¢
108 SNMPv1 ¤È SNMPv2 ¤Î¶¦Â¸¤Î¤¿¤á¤Î¥É¥¥å¥á¥ó¥È¤Ë½ñ¤«¤ì¤Æ¤¤¤ëÊýË¡¤Ç¡¢
109 SNMPv2 trap ¤Î PDU ¥¿¥¤¥×¤ËÊÑ´¹¤µ¤ì¤Æ¤¤¤ë¡£
110 ¤·¤«¤· RFC ¤ÎÈÖ¹æ¤ò˺¤ì¤Æ¤·¤Þ¤Ã¤¿¡£
112 .IP "createUser username (MD5|SHA) authpassphrase [DES]"
113 .\"O See the snmpd.conf manual page for a description of how to create
114 .\"O SNMPv3 users. It's roughly the same, but the file name changes to
115 .\"O snmptrapd.conf from snmpd.conf.
116 SNMPv3 ¥æ¡¼¥¶¡¼¤ÎºîÀ®¤Ë¤Ä¤¤¤Æ¤ÎÀâÌÀ¤Ï¡¢
117 snmpd.conf ¤Î man ¥Ú¡¼¥¸¤ò»²¾È¤¹¤ë¤³¤È¡£
118 ÂçÂÎƱ¤¸¤Ç¤¢¤ë¤¬¡¢¥Õ¥¡¥¤¥ë̾¤ò snmpd.conf ¤«¤é
119 snmptrapd.conf ¤ËÆɤßÊѤ¨¤ë¤³¤È¡£
122 .\"O The format used to print a SNMPv1 TRAP message. See
123 .\"O .IR snmptrapd (8)
124 .\"O for the layout characters available.
125 SNMPv1 TRAP ¥á¥Ã¥»¡¼¥¸¤òɽ¼¨¤¹¤ë¤È¤¤Ë»È¤¦¥Õ¥©¡¼¥Þ¥Ã¥È¡£
126 »ÈÍѲÄǽ¤Ê¥ì¥¤¥¢¥¦¥Èʸ»ú¤Ï
131 .\"O The format used to print a SNMPv2 TRAP2 or INFORM message (note that
132 .\"O the SNMPv3 protocol uses SNMPv2 style TRAPs and INFORMs).
133 SNMPv2 TRAP2 ¥á¥Ã¥»¡¼¥¸¤È SNMPv2 INFORM ¥á¥Ã¥»¡¼¥¸¤ò
134 ɽ¼¨¤¹¤ë¤È¤¤Ë»È¤¦¥Õ¥©¡¼¥Þ¥Ã¥È
135 (SNMPv3 ¤Ï SNMPv2 ·Á¼°¤Î TRAP ¤È INFORM ¤ò»È¤Ã¤Æ¤¤¤ëÅÀ¤ËÃí°Õ)¡£
139 .\"O The demon blocks on the executing traphandle commands. (This should
140 .\"O be fixed in the future with an appropriate signal catch and wait()
142 ¤³¤Î¥Ç¡¼¥â¥ó¤Ï traphandle ¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ë¤È¥Ö¥í¥Ã¥¯¤·¤Æ¤·¤Þ¤¦
143 (ŬÀڤʥ·¥°¥Ê¥ë¤Î¥¥ã¥Ã¥Á¤È wait() ¤ÎÁȹ礻¤Ë¤è¤ê¡¢
144 ¾Í轤Àµ¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤)¡£
147 snmp_config(5), snmptrapd(8), syslog(8), variables(5), read_config(3).