snmp

Sending SNMP Traps containing custom data

末鹿安然 提交于 2019-12-04 03:44:05
问题 A client has requested that instead of email alerts that we send SNMP Traps to their Nagios server instead. The only thing I knew about SNMP before yesterday was that it sounded like an acronym, so please excuse (and correct me on) any misconceptions about it that I may have. The only information that needs to be sent in the trap pertains to data about the event we are alerting our client about, which is just a couple of values pulled from our database. Needless to say these aren't in any

SNMP v1,v2c and v3 trap difference

。_饼干妹妹 提交于 2019-12-04 01:56:12
Explain the difference between v1, v2c and v3 Traps PDU/format. This requires you to go through the RFC documents, which means this is not programming related, and probably belongs to ServerFault. Give you some hints: SNMP v1 defines a special TRAP message format, different from other messages (such as GET). http://tools.ietf.org/html/rfc1157#page-27 This message format is not used any more in SNMP v2 and v3. If an SNMP agent sends out such TRAP messages for v2 or v3, that can be a bug. Since v2, TRAP starts to use the common message format (the same as GET and so on). So it is called SNMPv2

zabbix系列zabbix3.4监控zookeeper3.4.10

…衆ロ難τιáo~ 提交于 2019-12-03 23:50:49
监控zookeeper来自网上,大家一搜就可搜到了,只是zabbix版本和zookeeper有点出入,自行修改一下就可以了。 zookeeper监控要点 系统监控 这个监控linux系统以及修改linux服务器参数即可 内存使用量 ZooKeeper应当完全运行在内存中,不能使用到SWAP。Java Heap大小不能超过可用内存。 Swap使用量 使用Swap会降低ZooKeeper的性能,设置vm.swappiness = 0 网络带宽占用 如果发现ZooKeeper性能降低关注下网络带宽占用情况和丢包情况,通常情况下ZooKeeper是20%写入80%读入 磁盘使用量 ZooKeeper数据目录使用情况需要注意 磁盘I/O ZooKeeper的磁盘写入是异步的,所以不会存在很大的I/O请求,如果ZooKeeper和其他I/O密集型服务公用应该关注下磁盘I/O情况 ZooKeeper监控 zk_avg/min/max_latency 响应一个客户端请求的时间,建议这个时间大于10个Tick就报警 平均延迟/最小延迟/最大延迟 zk_outstanding_requests 排队请求的数量,当ZooKeeper超过了它的处理能力时,这个值会增大,建议设置报警阀值为10 堆积请求数 zk_packets_received 接收到客户端请求的包数量 收包数 zk_packets

Check ports with SNMP (net-snmp)

孤街醉人 提交于 2019-12-03 21:30:49
Is there a way to monitor server ports using SNMP (I'm using net-snmp-python to check this with python). So far I've checked pretty simple with "nc" command, however I want to see if I can do this with SNMP. Thank you for your answers and patience. Well if you want to use SNMP to see exactly what ports are listening, you should be able to use the following OIDS and walk the table "1.3.6.1.2.1.6.13.1.1" tcpConnState "1.3.6.1.2.1.7.5.1.1" udpLocalAddress Walking UDP would give you something like this: snmpwalk -cpublic 192.168.1.13 1.3.6.1.2.1.7.5.1.1 UDP-MIB::udpLocalAddress.0.0.0.0.68 =

How to send SNMP traps with C#?

二次信任 提交于 2019-12-03 20:16:13
In my application I have been asked to send error codes via SNMP traps. I believe that this will need to be done using version 3 because of the security issues with versions 1 and 2. Is there anything in the .net framework to do this or should I be looking to buy a third party library. There's an excellent open source C# library called SharpSnmpLib . You could read the RFC as an introduction. I don't think anybody bothers with v3 security; it's hard enough to get it working with just community security :) 来源: https://stackoverflow.com/questions/2043452/how-to-send-snmp-traps-with-c

资源汇集:跟着ttlsa学习zabbix监控

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-03 18:43:26
从2009年开始接触zabbix,当时版本在1.8,经过差不多5年的时间,zabbix历经2.0,2.1,2.2数个版本,虽然大多数功能保持不变,但是还是有非常明显的改变。 Zabbix VS Nagios指数 我们来看看zabbix的发展趋势,打开http://index.baidu.com/?tpl=trend&word=zabbix,可以看到这个月的日平均指数在258,整体同比增长928%,环比增长10%。 nagios 月平均指数在308,同比增长13%,环比24%,可以看出zabbix虽然不及nagios的指数高,但是按这个趋势,大有超过nagios之势。 以上是2014年3月份写的,现在zabbix百度指数600多,nagios百度指数500多,如我所言,已经超过他了。 Zabbix VS Nagios岗位需求 来观察下zabbix和nagios的岗位需求数,在51job上搜索zabbix相关的岗位,共计有272个,nagios共计668. 目录 zabbix简介 (1) zabbix特性 (2) zabbix进程构成 (3) zabbix硬件、软件需求 (4) zabbix安装 (5) zabbix数据库需要多大硬盘?我告诉你 (6) zabbix升级版本过程(7) zabbix汉化方法(8) zabbix用户管理(9) zabbix监控第一台服务器(10)

Does net-snmp support AES-192 and AES-256 encryption?

放肆的年华 提交于 2019-12-03 16:29:10
The network device has been configured with snmpv3 users which uses AES192 as the privacy protocol.But when the following command is executed snmpwalk -v3 -l authPriv -u user -a SHA -A authpass -x AES256 -X privpass device_ip:161 oid It throws the following error Invalid privacy protocol specified after -x flag: AES256 but when i tried using AES128 encryption the snmpwalk worked perfectly fine,which made me think if AES192&256 features are supported if not why was it not included. The original SNMP RFC documents do not require those. Thus, along with other reasons Net-SNMP never supports them,

SNMP: ifAdminStatus vs ifOperStatus

こ雲淡風輕ζ 提交于 2019-12-03 16:11:35
I have a question about ifAdminStatus and ifOperStatus. Here is an output of my network interfaces state using ifAdminStatus: snmpwalk -Os -c public -v 1 192.168.1.1 1.3.6.1.2.1.2.2.1.7ifAdminStatus.1 = INTEGER: up(1) ifAdminStatus.12 = INTEGER: down(2) ifAdminStatus.13 = INTEGER: up(1) ifAdminStatus.14 = INTEGER: up(1) And here is the same list using ifOperStatus: snmpwalk -Os -c public -v 1 192.168.1.1 1.3.6.1.2.1.2.2.1.8 ifOperStatus.12 = INTEGER: down(2) ifOperStatus.13 = INTEGER: down(2) ifOperStatus.14 = INTEGER: down(2) As you can see an ifAdminStatus reports that #13 and #14 are up but

Convert snmp octet string to human readable date format

北慕城南 提交于 2019-12-03 14:21:51
Using the pysnmp framework i get some values doing a snmp walk. Unfortunately for the oid 1.3.6.1.21.69.1.5.8.1.2 (DOCS-CABLE-DEVICE-MIB) i get a weird result which i cant correctly print here since it contains ascii chars like BEL ACK When doing a repr i get: OctetString('\x07\xd8\t\x17\x03\x184\x00') But the output should look like: 2008-9-23,3:24:52.0 the format is called "DateAndTime". How can i translate the OctetString output to a "human readable" date/time ? You can find the format specification here . A date-time specification. field octets contents range ----- ------ -------- ----- 1