¿ù°£ Àα⠰Խù°

°Ô½Ã¹° 1,355°Ç
   
snmpd[2197]: error on subcontainer 'ia_addr' insert (-1)
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2018-08-17 (±Ý) 09:53 Á¶È¸ : 14455
±ÛÁÖ¼Ò :
                                


Áõ»ó : 
Ubuntu 16.04 ȯ°æ¿¡¼­ snmp ¼³Á¤ÇÏ°í ³ª¼­ 30ÃÊ ´ÜÀ§·Î ÷ºÎµÈ À̹ÌÁö¿Í °°Àº ¿¡·¯¹ß»ý 


¿øÀÎ :
°á·ÐºÎÅÍ ¸»ÇÏÀÚ¸é snmp ¹ö±×·Î º¸ÀδÙ. (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=559109)
Ubuntu & Debian °è¿­¿¡¼­´Â SNMP¸¦ ¼³Ä¡ÇÏ°í ³ª¸é ´ÙÀ½°ú °°Àº ¿É¼ÇÀ» °¡Áö°Ô µÈ´Ù.
ÀÌÁß ·Î±ë ¿É¼Ç(-L flag)À» º¸°Ô µÇ¸é ¿©±â¼­´Â -Lsd Áï ·Î±× µð¹ö±× ¼öÁØ¿¡ ¸Þ¼¼Áöµµ syslog ¿¡ ³²±â¶ó°í µÇ¾îÀÖ´Ù.
LOG_DEBUG ¸¦ Á¦¿Ü½ÃÅ°±â À§Çì¼­´Â 7(d) ·¹º§¿¡¼­ 6(i) ·¹º§·Î ¹Ù²Ù¾î¼­ ¿î¿µÇÏ¸é µÈ´Ù.


$ cat /etc/default/snmpd 
.........................................
# snmpd options (use syslog, close stdin/out/err).
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -g snmp -I -smux,mteTrigger,mteTriggerConf -p /run/snmpd.pid'


Á¶Ä¡(ÇØ°á) :
º¸ÅëÀº LOG_INFO(6) ³ª LOG_ERROR(3) À» ±ÇÀåÇÑ´Ù.
$ sudo sed -i "s|-Lsd|-LS6d|" /etc/default/snmpd

$ cat /etc/default/snmpd 
.........................................
# snmpd options (use syslog, close stdin/out/err).
SNMPDOPTS='-LS6d -Lf /dev/null -u snmp -g snmp -I -smux,mteTrigger,mteTriggerConf -p /run/snmpd.pid'

$ sudo /etc/snmpd/snmpd restart 



LOGGING OPTIONS

The mechanism and destination to use for logging of warning and error messages can be controlled by passing various parameters to the -L flag.
-Le
Log messages to the standard error stream.
-Lf FILE
Log messages to the specified file.
-Lo
Log messages to the standard output stream.
-Ls FACILITY
Log messages via syslog, using the specified facility ('d' for LOG_DAEMON, 'u' for LOG_USER, or '0'-'7' for LOG_LOCAL0 through LOG_LOCAL7).

There are also "upper case" versions of each of these options, which allow the corresponding logging mechanism to be restricted to certain priorities of message. Using standard error logging as an example:

-LE pri
will log messages of priority 'pri' and above to standard error.
-LE p1-p2
will log messages with priority between 'p1' and 'p2' (inclusive) to standard error.

For -LF and -LS the priority specification comes before the file or facility token. The priorities recognised are:

0 or ! for LOG_EMERG, 
1 or a for LOG_ALERT, 
2 or c for LOG_CRIT, 
3 or e for LOG_ERR, 
4 or w for LOG_WARNING, 
5 or n for LOG_NOTICE, 
6 or i for LOG_INFO, and 
7 or d for LOG_DEBUG.

Normal output is (or will be!) logged at a priority level of LOG_NOTICE


À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.