Zabbix Share

Zabbix templates, modules & more
Log in
Choose social to login:
Login With Google
Login With Github

Nav view search

Navigation

Advanced Search
  • Applications
  • Cloud
  • Databases
  • Network Appliances
  • Network Devices
  • Official Templates
  • Operating Systems
  • Power (UPS)
  • Printers
  • SCADA, IoT, Energy, Home Automation, Industrial monitoring
  • Server Hardware
  • Storage Devices
  • Telephony
  • Unsorted
  • Virtualization
  • Zabbix
    • API Libraries
    • DB (Partitioning, storage solutions)
    • Icon sets
    • Installers
    • Notifications
    • Provisioning and deploy
    • Tools and utilities
    • Web Addons
    • Zabbix module language bindings

oid2valuemapping

Perl script which converts SNMP enumerations to XML template, which you will be able to import in Zabbix as values mapping.

Feature

  • SNMP oid enumeration to zabbix mapping convertion

Requirements

  • snmp package installed
  • Perl with SNMP and XML::Simple
  • echo.something module (thanks to Jean-Jacques Martrès)

Installation

  • Install libsnmp-perl and libxml-simple-perl packages on Debian like systems
  • Make sure that snmp configured correctly

Usage

 

oid2valuemapping.pl --oid OID::to_map [--name values_mappings_name] [--mibs-dir /path/to/mibs] [--dir] [--help]

--oid - is mandatory option, you can specify it by name or in numerical form so for example IF-MIB::ifType, ifType or .1.3.6.1.2.1.2.2.1.3 will work in same way

--name - you can choose the name for your mapping, if not specified textual convention name or label will be used

--mibs-dir - you can add additional MIBs dir

--dir - by default  mapping will be printed in XML on STDOUT, if you specify 'dir' option, script will create XML file in that directory

Examples

oid2valuemapping.pl --oid .1.3.6.1.2.1.11.30

Output

<?xml version='1.0' standalone='yes'?>
<zabbix_export>
  <date>2016-08-25T14:50:03Zdate>
  <value_maps>
    <value_map>
      <name>snmpEnableAuthenTrapsname>
      <mappings>
        <mapping>
          <newvalue>disablednewvalue>
          <value>2value>
 .....
</zabbix_export>
oid2valuemapping.pl --oid .1.3.6.1.2.1.11.30 --dir /tmp

Will write same xml in /tmp/snmpEnableAuthenTraps.xml

Rating
500
0 vote

Listing Details

Type
Zabbix Tool
OS
  • Other
Min Zabbix version
3.0.x
Features
  • Custom Script
  • Other
Link
github.com/IvanBayan/Zabbix-oid2valuemapping
Created
2016-09-13
Modified
2019-02-20 18:17:23
Version 3.0
Download (197 downloads)
1 version, '2018-07-02 12:41' modified
Tags
SNMP, MIB, OID, mapping, enumeration
Author
Ivan Bayan
Owner
Ivan Bayan
RecommendReportOwner's listing
All resources created by third parties; use at your own risk
© 2001-2018 by Zabbix SIA. All rights reserved. Trademark Policy · Contact us