[완료]snmpd.conf 파일에서 view설정하는 부분에서 에러가..

bakdorazi의 이미지

net-snmp5.3.3을 쓰고 있습니다.
snmpd.conf 파일의 위치는 /usr/local/share/snmp/snmpd.conf 에 있습니다.
sub agent 파일 수정하는데 자꾸 세그먼트 에러가 나서 /var/log/snmpd.log를 보게 되었습니다.
그런데 거기서 snmpd.conf 파일에 에러가 있는 것이 나오는 것이었습니다.
그리하여 snmpd.conf 파일을 수정하게 되었는데.
에러가 나는 부분은 아래에서 굵게 표시한 부분입니다.

#        incl/excl subtree                          mask
view all       included  .1                                80
<span>view system included  system                             fe       </span>
view mib2      included  .iso.org.dod.internet.mgmt.mib-2  fc

view system included system   fe

부분인데 이 부분을 여러가지로 고쳐 보았습니다.

view system included .iso.dod.org.internet.mgmt.mib-2.system  fe(혹은 0xf0)

그런데 다 아래와 같은 에러가 나는 것이었습니다.

[root@localhost sychoi]# cat /var/log/snmpd.log
/usr/local/share/snmp/snmpd.conf: line 85: Error: bad SUBTREE object id
Turning on AgentX master support.
net-snmp: 1 error(s) in config file(s)
Error opening specified endpoint "stop"
Server Exiting with code 1

아래와 같이 서버를 실행시키면
[root@localhost sychoi]# /usr/local/sbin/snmpd -D -L -f -c /usr/local/share/snmp/snmpd.conf

아래와 같은 에러가 뜹니다.(에러의 마지막 부분)

.......
trace: _sock_buffer_size_get(): snmpUDPDomain.c, 452:
socket:buffer: Requested server send buffer is 0
verbose:socket:buffer: Original server send buffer is 112640
verbose:socket:buffer: New server send buffer size is smaller than original!
socket:buffer: server send buffer not valid or not specified; using OS default(112640)
trace: _sock_buffer_size_get(): snmpUDPDomain.c, 452:
socket:buffer: Requested server receive buffer is 0
verbose:socket:buffer: Original server receive buffer is 112640
verbose:socket:buffer: New server receive buffer size is smaller than original!
socket:buffer: server receive buffer not valid or not specified; using OS default(112640)
trace: netsnmp_udp_transport(): snmpUDPDomain.c, 657:
netsnmp_udp: set IP_PKTINFO
Error opening specified endpoint "udp:161"
Server Exiting with code 1
[root@localhost sychoi]# cat /var/log/snmpd.log
/usr/local/share/snmp/snmpd.conf: line 85: Error: bad SUBTREE object id
Turning on AgentX master support.
net-snmp: 1 error(s) in config file(s)
Error opening specified endpoint "stop"
Server Exiting with code 1

그런데도 SNMP를 실행시키면 SNMP가 아무 문제없이 됩니다.

제가 궁금한 것은 위의 snmpd.conf 파일의
view system included system      fe

위의 부분을 어떻게 수정해야 snmpd.conf에러가 뜨지 않겠느냐는 것입니다.
아시는 분 알려주시면 감사하겠습니다.

bakdorazi의 이미지

view system system fe 부분에서 system을 sysem으로 써서 에러가 난 거였습니다.
윗부분에서는 보이지 않는데요..
snmpd.conf를 보니 그렇게 되어 있더군요.
sysem->system으로 수정하고 나니 snmpd.log에 나오던 에러는 사라졌습니다.
그게 사라졌다고 별로 달라진 건 없더군요.
결국 ... 수정하고 나서도 별로 달라진 건 없었습니다.
에러나도 되나 봅니다.

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.