[완료] net-snmp 설치시... (제발 답변좀.. 굽신굽신 ㅠ)

Anermy의 이미지

-------------------------------------

161 포트도 안열려있고....

완전 삭제 후, 천천히 재 설치 하고..

설정에서 좀 해맸지만.. 다행이 설치 완료 하였네여..

관심 가져 주셔서 감사합니다.

-------------------------------------

[root@localhost /]# snmpget -v1 -c public localhost system.sysLocation.0
/usr/local/share/snmp/snmp.conf: line 74: Warning: Unknown token: com2sec.
/usr/local/share/snmp/snmp.conf: line 75: Warning: Unknown token: com2sec.
/usr/local/share/snmp/snmp.conf: line 76: Warning: Unknown token: com2sec.
/usr/local/share/snmp/snmp.conf: line 81: Warning: Unknown token: group.
/usr/local/share/snmp/snmp.conf: line 82: Warning: Unknown token: group.
/usr/local/share/snmp/snmp.conf: line 83: Warning: Unknown token: group.
/usr/local/share/snmp/snmp.conf: line 84: Warning: Unknown token: group.
/usr/local/share/snmp/snmp.conf: line 85: Warning: Unknown token: group.
/usr/local/share/snmp/snmp.conf: line 86: Warning: Unknown token: group.
/usr/local/share/snmp/snmp.conf: line 92: Warning: Unknown token: view.
/usr/local/share/snmp/snmp.conf: line 99: Warning: Unknown token: access.
/usr/local/share/snmp/snmp.conf: line 100: Warning: Unknown token: access.
/usr/local/share/snmp/snmp.conf: line 116: Warning: Unknown token: syslocation.
/usr/local/share/snmp/snmp.conf: line 117: Warning: Unknown token: syscontact.
/usr/local/share/snmp/snmp.conf: line 151: Warning: Unknown token: proc.
/usr/local/share/snmp/snmp.conf: line 154: Warning: Unknown token: proc.
/usr/local/share/snmp/snmp.conf: line 157: Warning: Unknown token: proc.
/usr/local/share/snmp/snmp.conf: line 215: Warning: Unknown token: exec.
/usr/local/share/snmp/snmp.conf: line 266: Warning: Unknown token: disk.
/usr/local/share/snmp/snmp.conf: line 295: Warning: Unknown token: load.

데몬도 잘 떠있습니다.

[root@localhost /]#
[root@localhost /]# ps -ef | grep snmpd
root 19889 1 0 03:12 ? 00:00:00 /usr/local/sbin/snmpd
root 19897 19848 0 03:15 pts/1 00:00:00 grep snmpd
[root@localhost /]#

첨에 ucd-snmp 를 설치하고 다시 net-snmp 를 설치하였는데..
그래서 그런지.. 흠...

[root@localhost /]# tail -f /var/log/snmpd.log
/usr/local/share/snmp/snmp.conf: line 154: Warning: Unknown token: proc.
/usr/local/share/snmp/snmp.conf: line 157: Warning: Unknown token: proc.
/usr/local/share/snmp/snmp.conf: line 215: Warning: Unknown token: exec.
/usr/local/share/snmp/snmp.conf: line 266: Warning: Unknown token: disk.
/usr/local/share/snmp/snmp.conf: line 295: Warning: Unknown token: load.
Warning: no access control information configured.
It's unlikely this agent can serve any useful purpose in this state.
Run "snmpconf -g basic_setup" to help you configure the snmpd.conf file for this agent.
Error opening specified endpoint "start"
Server Exiting with code 1

아무래도 snmp.conf 의 설정이 잘못되어 있는거 같은데...
snmp.conf 설정에서 수정한건

###
# First, map the community name (COMMUNITY) into a security name
# (local and mynetwork, depending on where the request is coming
# from):

# sec.name source community

com2sec local localhost public
com2sec mynetwork 211.xx.xx.xx/24 public
com2sec public default public

이 부분입니다.

설치부터 잘못 되어 있을까요....
도움 부탁드립니다...

(추가)
snmp.conf 설정을 여러번 다른 사람껄로 바꿔도 같은 에러가 나오네요..
두손 두발 다들었습니다....
ㅠㅠ

익명 사용자의 이미지

snmpget --version
snmpd --version

Anermy의 이미지

[root@localhost /]# snmpget --version
NET-SNMP version: 5.1.2
[root@localhost /]#
[root@localhost /]# snmpd --version
NET-SNMP version: 5.1.2
Web: http://www.net-snmp.org/
Email: net-snmp-coders@lists.sourceforge.net

기회는 준비된 자에게만 온다.
(twitter @httpds)

Anermy의 이미지

161 포트가 분명 열려 있었는데..
지금은 열려있지 않네요;;
이거원.... ㅠ

기회는 준비된 자에게만 온다.
(twitter @httpds)

Anermy의 이미지

........
-rw-rw-r-- 1 mysql mysql 3961 2월 4 2004 README.Panasonic_AM3X.txt
-rw-rw-r-- 1 mysql mysql 2279 11월 26 2002 README.agentx
-rw-rw-r-- 1 mysql mysql 464 1월 29 2004 README.aix
-rw-rw-r-- 1 mysql mysql 1435 4월 26 2002 README.hpux11
-rw-rw-r-- 1 mysql mysql 6322 3월 28 2003 README.krb5
-rw-rw-r-- 1 mysql mysql 833 4월 22 2004 README.osX
-rw-rw-r-- 1 mysql mysql 3899 12월 11 2002 README.snmpv3
-rw-rw-r-- 1 mysql mysql 33393 7월 21 2004 README.solaris
-rw-rw-r-- 1 mysql mysql 13542 4월 20 2002 README.thread
-rw-rw-r-- 1 mysql mysql 44416 7월 28 2004 README.win32
-rw-rw-r-- 1 mysql mysql 3674 4월 20 2002 TODO
-rw-rw-r-- 1 mysql mysql 18941 6월 29 2004 acconfig.h
-rw-rw-r-- 1 mysql mysql 127097 2월 14 2003 aclocal.m4
drwxrwxr-x 5 mysql mysql 4096 7월 23 16:28 agent
drwxrwxr-x 4 mysql mysql 4096 7월 23 16:29 apps
-rwxrwxr-x 1 mysql mysql 39923 2월 11 2003 config.guess
-rw-r--r-- 1 root root 989088 7월 23 16:27 config.log
-rwxr-xr-x 1 root root 71262 7월 23 16:27 config.status
-rwxrwxr-x 1 mysql mysql 29628 2월 11 2003 config.sub
-rwxrwxr-x 1 mysql mysql 803091 8월 7 2004 configure
-rw-r--r-- 1 root root 434 7월 23 16:27 configure-summary
-rw-rw-r-- 1 mysql mysql 88784 6월 23 2004 configure.in
drwxrwxr-x 3 mysql mysql 4096 8월 7 2004 dist
-rw-rw-r-- 1 mysql mysql 2934 4월 20 2002 dotgdbinit
-rw-rw-r-- 1 mysql mysql 33237 8월 7 2004 doxygen.conf
drwxrwxr-x 4 mysql mysql 4096 8월 7 2004 include
-rwxrwxr-x 1 mysql mysql 5490 4월 20 2002 install-sh
-rwxr-xr-x 1 root root 151326 7월 23 16:26 libtool
drwxrwxr-x 3 mysql mysql 4096 7월 23 16:29 local
-rw-rw-r-- 1 mysql mysql 142449 2월 11 2003 ltmain.sh
-rwxrwxr-x 1 mysql mysql 1112 4월 20 2002 maketarget
drwxrwxr-x 2 mysql mysql 12288 7월 23 16:29 man
drwxrwxr-x 2 mysql mysql 4096 7월 23 16:27 mibs
-rwxrwxr-x 1 mysql mysql 724 11월 6 2002 mkinstalldirs
-rwxr-xr-x 1 root root 15235 7월 23 16:27 net-snmp-config
-rw-r--r-- 1 root root 0 7월 23 16:29 net-snmp-config-x
-rwxrwxr-x 1 mysql mysql 14262 6월 17 2004 net-snmp-config.in
drwxrwxr-x 3 mysql mysql 4096 8월 7 2004 ov
drwxrwxr-x 9 mysql mysql 4096 8월 7 2004 perl
-rw-r--r-- 1 root root 666 7월 23 16:27 sedscript
-rw-rw-r-- 1 mysql mysql 2712 8월 7 2004 sedscript.in
drwxrwxr-x 3 mysql mysql 4096 7월 23 16:28 snmplib
-rw-rw-r-- 1 mysql mysql 10 7월 23 16:27 stamp-h
-rw-rw-r-- 1 mysql mysql 10 8월 7 2004 stamp-h.in
drwxrwxr-x 3 mysql mysql 4096 7월 23 16:27 testing
drwxrwxr-x 35 mysql mysql 4096 8월 7 2004 win32
[root@localhost net-snmp-5.1.2]#
[root@localhost net-snmp-5.1.2]#

기회는 준비된 자에게만 온다.
(twitter @httpds)

댓글 달기

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
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.