snmp

SNMPd: Cannot open /proc/bus/pci

情到浓时终转凉″ 提交于 2020-01-04 20:47:12
问题 I cross-compiled NET-SNMP 5.7.1 from sources to a PowerPC using ELDK-3.1. When I try to load the snmpd daemon in my embedded board, I see the message: # snmpd -f -Lo pcilib: Cannot open /proc/bus/pci pcilib: Cannot find any working access method. Of course my PPC board has no PCI, and I wonder why is netsnmp looking for it. In more than one place I see this same message (sourceforge, mail-archive, google-groups), but ir has no answer at all. Another variant, with a little but unhelpful

SNMPd: Cannot open /proc/bus/pci

青春壹個敷衍的年華 提交于 2020-01-04 20:45:12
问题 I cross-compiled NET-SNMP 5.7.1 from sources to a PowerPC using ELDK-3.1. When I try to load the snmpd daemon in my embedded board, I see the message: # snmpd -f -Lo pcilib: Cannot open /proc/bus/pci pcilib: Cannot find any working access method. Of course my PPC board has no PCI, and I wonder why is netsnmp looking for it. In more than one place I see this same message (sourceforge, mail-archive, google-groups), but ir has no answer at all. Another variant, with a little but unhelpful

Translate OID value pairs from MIB textual convention using pysnmp

我与影子孤独终老i 提交于 2020-01-04 06:17:27
问题 I am trying to write a piece of code that accepts a JSON object with OIDs as keys and OID values as values. An Example would be: {".1.3.6.1.4.1.562.29.6.2.3": "Link Down", ... } When this JSON object is received I want to translate the OID and the OID value using PySNMP, but I do not know how I can translate the OID value according to Textual Conventions defined within a corresponding MIB file. An example MIB file would define: TruthValue ::= TEXTUAL-CONVENTION STATUS current DESCRIPTION

What is the correct encoding for SNMP type Unsigned32?

∥☆過路亽.° 提交于 2020-01-03 14:05:09
问题 I'm writing an SNMP agent and the MIB definition includes an OID of type Unsigned32. The Unix implementation of the agent uses Net-SNMP and sets the OID as type ASN_UNSIGNED, since it doesn't have an ASN_UNSIGNED32. When I look at the GET response with Wireshark, it decodes it as a "Gauge32" value. That makes sense at first sight, because according to RFC 1902 Unsigned32 and Gauge32 are the same. The Windows implementation is based on Windows' SnmpAPI.lib and sets the OID as ASN_UNSIGNED32

NoAccess error in snmpset

时间秒杀一切 提交于 2020-01-03 13:40:12
问题 I have a MIB object with read-write permission. MIB section looks like this: EnableHalt OBJECT-TYPE SYNTAX Integer32 MAX-ACCESS read-write STATUS current DESCRIPTION "implemented in NetSnmpcodsMr.c file." DEFVAL { 0 } ::= { Scalars 4 } When I do a set on this object I get: $ sudo snmpset -v 2c -c public localhost 1.3.6.1.4.1.8072.2.2.4.0 i 1 Error in packet. Reason: noAccess Failed object: NET-SNMP-MIB::netSnmp.2.2.4.0 When I do a get: $ snmpget -v 2c -c public localhost 1.3.6.1.4.1.8072.2.2

PySNMP exceptions

随声附和 提交于 2020-01-03 05:27:11
问题 I am trying to make an SNMP agent following this tutorial: http://www.nealc.com/blog/blog/2013/02/23/writing-an-snmp-agent-with-a-custom-mib-using-pysnmp/ I am using the exact code in the tutorial, but when I run the code it ends in this: DBG: [19:13:54.964]: file SNMPv2-SMI.pyc mtime 1379957443 DBG: [19:13:54.964]: file SNMPv2-SMI.py mtime 1402947591 DBG: [19:13:54.965]: loadModules: evaluating /usr/local/lib/python2.7/dist-packages/pysnmp/smi/mibs/SNMPv2-SMI.py Traceback (most recent call

snmp agent libraries for C/C++?

纵然是瞬间 提交于 2020-01-02 09:10:15
问题 I have to implement a performance statistics MIB for a linux based device and I am looking for a good agent development library. I came across net-snmp and agent++ libraries. I am looking for easier to understand and robust library. Which is the best library if usability and robustness is main criteria? 回答1: I have used net-snmp. It is robust and works well. The API is in C but quite simple to encapsulate. More than a library and APIs it is a well tested set of tools to handle SNMP. A

NET-SNMP: Getting more detail into Disman Traps

安稳与你 提交于 2020-01-01 19:13:09
问题 I'm working on traps using NET-SNMP and the DISMAN Event MIB With the following snmpd.conf configuration: createUser disman MD5 sercrt@1 rouser disman auth agentSecName disman #defaultMonitors yes disk / 90% disk /var 85% disk /opt 95% disk /opt/pkgs 90% disk /ufda 90% proc cron proc rtrcopy 1 1 proc socks1081 1 1 # monitor must have ".." in the line monitor -u disman -r 30 -o prNames.1 -o prErrMessage.1 "Cron not running" prErrorFlag.1 != 0 monitor -u disman -r 30 -o prNames.2 -o

SNMPv3 to SNMPv2 glue layer

随声附和 提交于 2020-01-01 15:05:15
问题 I have been asked to install an HP OpenView agent onto a remote Unix platform to capture SNMP traps forwarded by a client application. I have since discovered that the client application can only forward SNMPv3 traps, and the agents we use can only accept SNMPv2 traps. I have discovered that I may be able to resolve this issue through the use of the Perl module NetSNMP::TrapReceiver but I am unclear how this is setup or how/if you can convert a v3 trap to a v2 trap. My goal is to capture the

Cacti是一套基于PHP,MySQL,SNMP及RRDTool开发的网络流量监测图形分析工具。

こ雲淡風輕ζ 提交于 2019-12-28 05:41:02
Cacti是通过 snmpget来获取数据,使用 RRDtool绘画图形,而且你完全可以不需要了解RRDtool复杂的参数。它提供了非常强大的数据和用户管理功能,可以指定每一个用户能查看树状结构、host以及任何一张图,还可以与LDAP结合进行用户验证,同时也能自己增加模板,功能非常强大完善。界面友好。 CACTI 软件 Cacti 的发展是基于让 RRDTool 使用者更方便使用该软件,除了基本的 Snmp 流量跟系统资讯监控外,Cacti 也可外挂 Scripts 及加上 Templates 来作出各式各样的监控图。   cacti是用php语言实现的一个软件,它的主要功能是用snmp服务获取数据,然后用 rrdtool 储存和更新数据,当用户需要查看数据的时候用rrdtool生成图表呈现给用户。因此,snmp和rrdtool是cacti的关键。Snmp关系着数据的收集,rrdtool关系着 数据存储 和图表的生成。   Mysql配合PHP程序存储一些 变量 数据并对变量数据进行调用,如: 主机名 、主机ip、snmp团体名、 端口号 、模板信息等变量。   snmp抓到数据不是存储在mysql中,而是存在rrdtool生成的rrd文件中(在cacti根目录的rra文件夹下)。rrdtool对数据的更新和存储就是对rrd文件的处理,rrd文件是大小固定的档案文件(Round