snmp

Getting started with SNMP4J

末鹿安然 提交于 2019-11-28 06:34:40
I need to make an agent in SNMP4J, but the documentation on how to get started is pretty poor. Does anyone have any experience with SNMP4J and could give me an idea on how to get started? Thanks. You can download the source code for SNMP4JAgent here: http://www.snmp4j.org/html/download.html The source code includes a sample agent -- look in the org.snmp4j.agent.example package for all of the related classes. http://www.snmp4j.org/agent/doc/org/snmp4j/agent/example/SampleAgent.html One way of getting started would be to create an agent using the example code and then modify it to suit your

SNMP: ASN.1 MIB Definitions. Referencing a table within a table

独自空忆成欢 提交于 2019-11-28 06:01:59
Its's been a while since I've written ASN.1 so.. Our data model is comprised of several table definitions within a table. This is not workable in SNMP, so we need to flatten the definitions. The easiest way to do this would be to have the embedded table indexed by the same OID as the parent table. Thus someTableEntry ::= SEQUENCE { someTableIndex Integer32, someTableDomain Integer32, someTableFooTable SEQUENCE OF SomeTableFooTable } becomes someTableEntry ::= SEQUENCE { someTableIndex Integer32, someTableDomain Integer32, } someTableFooTable ::= SEQUENCE { someTableIndex Integer32, .... } The

分布式系统监视zabbix讲解九之使用snmp监控windows

蓝咒 提交于 2019-11-28 05:25:12
zabbix监控windows演示 第一步:开启服务。 控制面板>程序>程序和功能>打开或关闭windows功能,勾选上简单网络管理协议(SNMP),以及下面的子程序。点击确定 第二步:右击windows计算机图标>点击管理>点开服务和应用程序>点击服务,确认snmp服务已经开启 第三步:配置snmp 右击上面SNMP service选择属性,选择安全。添加社区(名字随意),添加主机即你的zabbix监控端IP地址 第四步:测试 如果能看到如下的信息就表示你已经配置成功。 [root@server ~]# yum install net-snmp-utils -y #下载net-snmp-utils [root@server ~]# snmpwalk -c "ken" -v2c 10.220.5.136 #-c指定社区名,-v2c版本,IP windowsip IPV6-MIB::ipv6IfStatsOutRequests.0 = Counter32: 1054 IPV6-MIB::ipv6IfStatsOutDiscards.0 = Counter32: 0 IPV6-MIB::ipv6IfStatsOutFragOKs.0 = Counter32: 0 IPV6-MIB::ipv6IfStatsOutFragFails.0 = Counter32: 0 IPV6-MIB:

Cacti-0.8.8b详细安装及配置步骤

半腔热情 提交于 2019-11-28 04:03:21
1. Cacti环境安装 1.1 安装LAMP环境 安装LAMP环境,当然,如果你有兴趣可以采用编译,我线上Mysql是编译的,其余是yum安装的。在这次实验采用yum安装。 关闭iptables与selinux,如果有需要,后面再开启。配置好yum源,开始安装。 yum -y install httpd httpd-devel httpd-manual mysql mysql-devel mysql-server php php-devel php-mysql php-common php-pdo php-gd lm_sensors net-snmp net-snmp-devel php-snmp net-snmp-utils dejavu-* patch chkconfig mysqld on chkconfig httpd on chkconfig snmpd on service mysqld start service httpd start service snmpd start 在浏览器中输入http://serverip,查看测试页有没有出现。 1.1 配置snmp vim /etc/snmp/snmd.conf #/etc/init.d/snmpd restart 验证snmp配置是否正确 # snmpwalk -v 2c -c public 127.0.0.1

PHP cant find SNMP modules under Windows 7

北城余情 提交于 2019-11-28 02:26:23
问题 I've enabled the SNMP module was trying to the functions in the module. I have set the MIBDIRS environment variable to where I have my mibs but I'm still getting these "Cannot find module" warnings: Cannot find module (IP-MIB): At line 0 in (none) Cannot find module (IF-MIB): At line 0 in (none) Cannot find module (TCP-MIB): At line 0 in (none) Cannot find module (UDP-MIB): At line 0 in (none) Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none) Cannot find module (SNMPv2-MIB): At

How can I get MIBs list from a remote server by using PHP?

半世苍凉 提交于 2019-11-28 02:24:25
I am working on a project that involves SNMP. Basically I need to construct MIB and OID tree in PHP. I know that there are programs that do this already, but I am trying to implement my own version to incorporate with my webapp. What I know : I am familiar with php SNMP function. I can do SNMPWALk to get OIDs and such. Unfortunately there is no function that I know of that finds all MIBs and parses them. What I need : Get all MIB docs first from remote server, then based on each docs get their Objects. At the end my tree will have this structure: + mib-doc1 | - obc1 - obj2 + mib-doc2 | - obj1

Linux Zabbix

自闭症网瘾萝莉.ら 提交于 2019-11-27 21:47:02
监控的步骤: 数据采集:采集主机上的各种参数(比如CPU负载、网络接口流量、内存使用比等),从而进行以后的数据分析展示; 数据存储:将采集到的各种参数存储下来(一般是根据时间轴存储的时间序列数据); 数据展示:将采集到的数据,根据预先定义的方式展示出来(数据可视化); 当有些数据参数超出我们定义的阈值时,会自动发起报警,以便于管理员即时维护; 监控的方式: 可以通过在被监控节点上部署特定的agent(根据所使用的应用程序不同而不同,比如Zabbix就有自己的agent),从而实现数据的收集; 可以通过ssh来实现数据的查看; 通过特定的协议(SNMP)来收集数据; 传感器(一般位于被监控节点):搜集监控者所关注各种参数,然后将这些参数传输(可以是被监控者主动发送给监控主机(主动),也可以是被监控者等待监控主机来收集参数(被动))给监控主机; SNMP:Simple Network Management Protocol 最早的网络管理协议,几乎是所有操作系统和网络设备都支持的协议; 角色: NMS(管理端):网络管理服务器,收集各个被管理端的数据; agent(被管理端):负责执行一些管理端想要在被管理端执行的操作,也负责收集管理端关注的数据; 工作模式: NMS向agent采集数据; agent向NMS报告数据; NMS请求agent修改配置参数; 组件: MIB:管理信息库

Identify a non-computer network device?

泪湿孤枕 提交于 2019-11-27 18:33:01
问题 I'm current working on a program that scans my network and discoveres computers and devices on the network. I use various operations to find data on the devices I discover, but want to distinguish the network devices from computers. And I'm wondering if anyone knows how I could do this? I looked a bit at SNMP, and tried connecting to my network printer, router and modem. But I seem to only be able to connect to the printer, neither the router or modem responds. Is there another way to

SNMP: OID to use when writing custom MIBs

喜欢而已 提交于 2019-11-27 18:15:06
问题 If you are writing your own MIB for a bespoke application, is there a 'best practice' for which branch you should use. I'm thinking of something analogous to private IP addresses, that can be used within enterprises, without conflicting with Registered IP addresses I have been asked to make a suggestion, as I advised Application Developers that they should not use OIDs under .1.3.6.1.4.1.111 - This is the Oracle branch 回答1: I have found that our company has a branch under 1.3.6.1.4.1, which

港湾交换机-交换机配置

半腔热情 提交于 2019-11-27 13:31:52
1.1 配置TELNET SNMP 启动SNMP服务的配置步骤如下: 配置步骤 步骤1 service snmp enable 使能SNMP agent服务 步骤2 service snmp trap enable 使能SNMP trap服务 步骤3 config snmp community readonly <string> 设置SNMP只读权限认证密码 步骤4 config snmp community readwrite <string> 设置SNMP读写权限认证密码 步骤5 config snmpauthentrap [enable|disable] 使用enable设置当SNMP认证失败时发送trap 步骤6 show service 显示SNMP是否启动 步骤7 show snmp community-string 显示当前的权限认证密码 1.2 配置SNMP trap 交换机上的SNMP agent会产生很多种类的trap信息,如启动(start)、接口(interface)、RMON(远程监控)等。可以在交换机上配置SNMP trap来指定一台或多台trap接收站(trap receiver),并指定哪些种类的trap信息会发送到这些接收站。 配置步骤 步骤1 service snmp enable 使能SNMP agent服务 步骤2 service snmp