Commit graph

15 commits

Author SHA1 Message Date
deshike22
9d71f47ddf Merge c7d4956b25 into 9a59e8c448 2017-05-15 06:21:53 +00:00
deshike22
c7d4956b25 Changed Create trap key
$oid =~ s/\./\\./g;  # replaces a . with \. However when receiving trap alerts it comes with partially translated trapoid
Eg: 
  SNMPv2-MIB::snmpTrapOID.0      type=6  value=OID: SNMPv2-SMI::enterprises.789.0.13

It does not match with full oid created in the code.

Also $item->{ key } = "snmptrap[\"\\s$oid\\s\"]";  # surrounds with the oid with \s. When I checked it with http://www.rexv.org/ under posix regex none of those matched. Therefore item key had to change. 
$item->{ key } = "snmptrap[\"$oid\"]";
 
Please note that this was tested only on NETAPP-MIB
2017-05-15 11:46:19 +05:30
Ryan Armstrong
9a59e8c448 Added prereqs for RHEL family servers - Thanks Volker 2016-10-30 20:43:50 +08:00
Ryan Armstrong
f34d9ca256 Merge pull request #6 from richlv/patch-1
Update mib2zabbix.pl
2016-09-10 14:01:44 +03:00
Richlv
dc83502b44 Update mib2zabbix.pl
minor typo fix
2016-09-10 12:37:53 +03:00
Ryan Armstrong
b95ca6b310 Change default template prefix to 'Template SNMP' 2016-09-09 08:40:59 +03:00
Ryan Armstrong
20bfdd8a70 Added unit translations for common mib units 2016-08-17 16:18:18 +08:00
Ryan Armstrong
318aaeae32 Updated installation instructions 2016-08-17 15:10:05 +08:00
Ryan Armstrong
b456061778 Fixed discovery rules for Zabbix v3 2016-08-17 15:06:08 +08:00
Ryan Armstrong
b390b827cb Fixed empty value maps error 2016-08-17 12:20:53 +08:00
Ryan Armstrong
10f682b497 Added support for OIDs without the . prefix 2016-08-17 11:35:33 +08:00
Ryan Armstrong
3ea7e98b56 Removed unused get_child_by_label function 2016-08-08 18:18:57 +08:00
Ryan Armstrong
2ac32ded1a Updated script for Zabbix v3 support 2016-08-08 17:55:05 +08:00
Ryan Armstrong
7d293da3fc Added license 2016-06-01 15:47:54 +08:00
Ryan Armstrong
6d24aad64b Initial commit 2016-06-01 15:33:08 +08:00