snmp 執行後snmpwalk 一直 Timeout - BBS

Leila avatar
By Leila
at 2005-09-27T10:55

Table of Contents

最下面我有附上安裝後提示大大可以參考

這二天在安裝這個東西

不過我一直有疑惑的是

到底他的設定檔是要再

/etc/snmp

/usr/local/etc/snmp

/var/snmp

到底是哪一個

我有直接使用 snmpconf 這一個工具去生成 snmp.conf 檔

不過往往啟動正常 不過接下來就有問題

訊息如下:

root [/var/net-snmp] # /usr/local/etc/rc.d/snmpd.sh restart
snmpd not running? (check /var/run/snmpd.pid).
Starting snmpd.
root [/var/net-snmp] # snmpwalk -c public -v 1 localhost
Timeout: No Response from localhost
root [/var/net-snmp] #

當然我也有試過 用 -t 將時間延長

不過都沒有用 我已經 -t 120也是沒有用 還是一樣

Timeout: No Response from localhost

所以我想問問前輩 有沒有什麼指點的方法

若是需要的話 我在貼出我的 snmpd.conf

****************************************************************************
* 安 裝 後 說 明 *
****************************************************************************

**** This port installs snmp daemon, header files and libraries but don't
invokes snmpd by default.
If you want to invoke snmpd and/or snmptrapd at startup, put these
lines into /etc/rc.conf.

snmpd_enable="YES"
snmpd_flags="-a -p /var/run/snmpd.pid"
snmptrapd_enable="YES"
snmptrapd_flags="-a -p /var/run/snmptrapd.pid"

**** You may specify the following make variables:

NET_SNMP_SYS_CONTACT="[email protected]"
NET_SNMP_SYS_LOCATION="Tokyo, Japan"
DEFAULT_SNMP_VERSION=3
NET_SNMP_MIB_MODULES="host smux mibII/mta_sendmail ucd-snmp/diskio"
NET_SNMP_LOGFILE=/var/log/snmpd.log
NET_SNMP_PERSISTENTDIR=/var/net-snmp

to define default values (or overwriting defaults). At least
setting first two variables, you will not be prompted during
configuration process. You may also set

BATCH="yes"

to avoid interactive configuration.
===> Compressing manual pages for net-snmp-5.2.1.2
===> Running ldconfig
/sbin/ldconfig -m /usr/local/lib
===> Registering installation for net-snmp-5.2.1.2
===> SECURITY REPORT:
This port has installed the following files which may act as network
servers and may therefore pose a remote security risk to the system.
/usr/local/lib/libnetsnmp.so.7
/usr/local/lib/libnetsnmpmibs.so.7

This port has installed the following startup scripts which may cause
these network services to be started at boot time.
/usr/local/etc/rc.d/snmptrapd.sh
/usr/local/etc/rc.d/snmpd.sh

If there are vulnerabilities in these programs there may be a security
risk to the system. FreeBSD makes no guarantee about the security of
ports included in the Ports Collection. Please type 'make deinstall'
to deinstall the port if this is a concern.

For more information, and contact details about the security
status of this software, see the following webpage:
http://net-snmp.sourceforge.net/
467.173u 162.271s 11:34.03 90.6% 1134+1816k 2350+318io 1080pf+0w

--
分享讓你我都可以享受到資源
http://holyhigh.org/ 讓我們一同喜愛這貼圖空間
喜歡他的話 別忘了推薦給大家...

--
Tags: BBS

All Comments

重開機後

Hedwig avatar
By Hedwig
at 2005-09-27T01:16
我是用 RHEL AS 4 最近剛架的本來一切都正常 ! 好不容易把版都開好了 ! 但是不小心再新增一個版時直接在 分類看版區給他新增一個版 ! 結果之前開的版就通通不見 ! 進精華區也是 ! 雖然都還沒文章 at 但開版開了好久 ! 不知有沒有辦法解決 接著更神的又來了 ! 我把機器重 ...

安裝x window(xorg)的問題

Iris avatar
By Iris
at 2005-09-26T21:46
因為我startx時會出現: unable to open /dev/agpgart (no such file or directory) 所以我就去/dev找有無agpgart,結果是沒有, 看很多文件說只要kernel裡有device agp這一行就可以了, 可是我的kernel有這一行阿, 但是為什麼 ...

samba 3.0.20

Sierra Rose avatar
By Sierra Rose
at 2005-09-26T12:22
在FreeBSD/amd64上遇到一個小問題。 5.3-R用ports安裝,在執行的時候smbd會有錯誤訊息 /var/log/samba/log.smbd [2005/09/25 14:10:39, 0] lib/fault.c:fault_report(37) INTERNAL ERROR: Si ...

cacti執行之後 tmp 出現大量紀錄檔如何解決?

William avatar
By William
at 2005-09-26T01:40
今天看到 cacti 這一個流量管理軟體 想說來安裝看看 之後安裝之後 目前發現 /tmp 裡面一直有 sess_04e0daf019de21b5a188889f93b54402 sess_fd9d6e1ba7a35d852c3bcfd12a05b8c4 sess_4fa871b0313bcf58 ...

關於mknod

Isla avatar
By Isla
at 2005-09-25T23:15
※ 引述《hangchen (hang)》之銘言: : 我的情況如下: : os: freebsd 5.4 release : 顯示晶片是intel 915G : 我想裝xorg 6.8.2 : 在我弄好/etc/X11/xorg.conf 後, : 想要startx, : 出現 : (EE) GARTIni ...