snmp

Monitoring a JVM with SNMP

可紊 提交于 2020-01-14 19:05:54
问题 I'm using snmp to monitore some servers (win2k3 mostly) and during my journey on internet, I found a MIB done by Oracle for monitoring a JVM, JVM-MANAGEMENT-MIB. What I did so far to use it is : Configure the JVM with snmp.acl and management.properties Compile the JVM-MANAGEMENT-MIB with mibcc and replace the mib.bin. With those steps, I think I'm good to try. So I made a java program with snmp4j and when I try to call an OID from the JVM mib, I have got an error Request timed out . The weird

SNMP开发指导

风流意气都作罢 提交于 2020-01-14 15:03:11
各种API: http://www.net-snmp.org/docs/man/ 各种数据结构: http://www.net-snmp.org/dev/agent/annotated.html WIKI: http://www.net-snmp.org/wiki/ 来源: CSDN 作者: caotuo_csdn 链接: https://blog.csdn.net/caotuo_csdn/article/details/103969972

snmp监控windows进程端口

爷,独闯天下 提交于 2020-01-12 20:16:13
进程 自动发现规则 discovery[{#PROCNAME},HOST-RESOURCES-MIB::hrSWRunName,{#PROCINDEX},HOST-RESOURCES-MIB::hrSWRunIndex] 监控项原型 (重启进程后在mib中是会修改oid的,不过实时性不强,所以不能使用oid来指定监控项key,使用名称可以避免重启的问题) proc.status[{$PROCNAME}] 触发器原型 (两种分没有数据就给告警) proc.status[xxxx].nodata(2m)=1 端口, 端口用不上自动发现,对于制定的端口可以在snmp中直接制定监控项 直接使用mib中的oid来监控数据 来源: https://www.cnblogs.com/0916m/p/12184421.html

zabbix学习笔记之H3C和Cisco开启SNMP

丶灬走出姿态 提交于 2020-01-12 11:06:46
H3C交换机 //进入系统视图 <H3C>system-view //开启snmp [H3C]snmp-agent //开启SNMPv2 [H3C]snmp-agent sys-info version v2 //设置团体名,团体名默认为public,改掉默认的团体名,xxx将会在查询以及zabbix主机和模板配置中使用到 [H3C]snmp-agent community read xxx //开启trap报文 [H3C]snmp-agent trap enable //允许向zabbix发送Trap报文,使用的团体名为xxx [H3C]snmp-agent target-host trap address udp-domain zabbix-server-ip udp-port 161 params securityname xxx v2c //查看snmp版本,配置完成之后记得保存 [H3C]display snmp-agent sys-info version Cisco交换机 //思科交换机查看SNMP协议是否开启 Switch#sh snmp //进入全局配置模式 Switch#configure terminal //设置只读字符串,Utry为团体名称,ro为只读 Switch(config)##snmp-server community xxx ro /

Zabbix-介绍及部署

感情迁移 提交于 2020-01-10 02:46:48
1、介绍 Zabbix是一个基于WEB界面的提供分布式系统监控的企业级的开源解决方案,Zabbix能监视各种网络参数,系统硬件参数,保证服务器系统安全稳定的运行,并提供灵活的通知机制以让管理员快速定位并解决存在的各种问题。 1.1 优点 支持自动发现服务器和网络设备; 支持底层自动发现; 分布式的监控体系和集中式的WEB管理; 支持主动监控和被动监控模式; 服务器端支持多种操作系统:Linux, Solaris, HP-UX, AIX, FreeBSD, OpenBSD, MAC等; Agent客户端支持多种操作系统:Linux, Solaris, HP-UX, AIX, FreeBSD,Windows等; 基于SNMP、IPMI接口方式也可以监控Agent; 安全的用户认证及权限配置; 基于WEB的管理方法,支持自由的自定义事件和邮件发送; 高水平的业务视图监控资源,支持日志审计,资产管理等功能; 支持高水平API二次开发、脚本监控、自Key定义、自动化运维整合调用。 1.2 监控组件及流程 Zabbix监控主要有三大组件,分别是Zabbix server端、Zabbix Proxy、Agent客户端,其中Zabbix Server端包括:WEB GUI、Database、Zabbix_Server。 Zabbix监控完整流程包括:Agentd安装在被监控的主机上

What is the most efficient way to scrape multiple single and branch OIDs?

好久不见. 提交于 2020-01-07 05:47:09
问题 I am always in a war between maximum speed and minimal resource consumption, so my goal is to find the best combination for speed and resource consumption. For each snmp device I would like to scan the oids under several branches. Each branch has a dynamic amount of oids under it so i don't know what specific oids i need, I just know that I need all oids under a branch. I have some devices that only support SNMPv1 so for those devices I write code that is compatible with SNMPv1. For the rest

<UNKNOWN> value for host in snmptraps

戏子无情 提交于 2020-01-06 19:25:35
问题 while executing " snmptrap -v 1 -c public localhost TRAP-TEST-MIB::demotraps localhost 4 0 '' IF-MIB::ifIndex i 1" on my system,I am getting host ,ip & OID values as host = localhost.localdomain :ip = UDP: [127.0.0.1]:49109->[127.0.0.1] :OID =DISMAN-EVENT-MIB::sysUpTimeInstance 0:3:12:38.28 But when traps are coming from outside its showing host = :ip = UDP: [192.168.1.73]:52346->[192.168.1.23]:OID =DISMAN-EVENT-MIB::sysUpTimeInstance 7:1:05:54.27 . Now its clearly shown above that host value

<UNKNOWN> value for host in snmptraps

感情迁移 提交于 2020-01-06 19:24:10
问题 while executing " snmptrap -v 1 -c public localhost TRAP-TEST-MIB::demotraps localhost 4 0 '' IF-MIB::ifIndex i 1" on my system,I am getting host ,ip & OID values as host = localhost.localdomain :ip = UDP: [127.0.0.1]:49109->[127.0.0.1] :OID =DISMAN-EVENT-MIB::sysUpTimeInstance 0:3:12:38.28 But when traps are coming from outside its showing host = :ip = UDP: [192.168.1.73]:52346->[192.168.1.23]:OID =DISMAN-EVENT-MIB::sysUpTimeInstance 7:1:05:54.27 . Now its clearly shown above that host value

Parsing snmpwalk output

為{幸葍}努か 提交于 2020-01-06 12:48:15
问题 I know here are many questions and answers in regards to parsing snmpwalk response but I cant seem to find the relating answer here. I am not good in parsing texts but I am doing my best to learn things. I am polling my Juniper device with command: snmpwalk -v2c -c blablabla x.x.x.x iso.3.6.1.2.1.2.2.1.2 Getting response as follow: iso.3.6.1.2.1.2.2.1.2.2548 = STRING: "xe-4/0/1.3461" iso.3.6.1.2.1.2.2.1.2.2549 = STRING: "xe-4/0/2.3462" iso.3.6.1.2.1.2.2.1.2.2550 = STRING: "xe-4/0/2.3461" iso

PySNMP Short OID Error Trying To Translate OIDs using MIB Textual Conventions

此生再无相见时 提交于 2020-01-05 14:03:24
问题 I am using the method described in the issue Translate OID value pairs from MIB textual convention using pysnmp to translate OID and OID values according to MIB Textual Conventions. Using a test OID and test OID value my code is as follows: from pysnmp.smi import builder, view from pysnmp.entity.rfc3413.oneliner import mibvar from pysnmp.proto import rfc1902 from pyasn1.type import univ mibBuilder = builder.MibBuilder() mibPath = mibBuilder.getMibSources() + (builder.DirMibSource('/home/rong