Giter Site home page Giter Site logo

zabbix-templates's Introduction

Zabbix-Templates

PROJECT DISCONTINUED, NO SPARE TIME LEFT TO KEEP UP WITH IT

All templates has been tested on Zabbix 3.X

To add my templates into your Zabbix distribution:

0 - Download the Cisco MIBs from ftp://ftp.cisco.com/pub/mibs/v2

1 - Download the desired .xml

2 - From Zabbix Web GUI: Configuration -> Templates and click "import"

3 - Select the downloaded .xml and click on "Import" button

4 - Enjoy your brand new template!

NOTES

For Template Cisco ASA Discovery:

The regular expression @Firewalls network interfaces for discovery

  • Expression: (Internal|Virtual|management|plane|Null)
  • Expression type: Result is FALSE
  • CaseSensitive: TRUE

For Template Cisco WLC Discovery:

The value mapping AP MAC -> NAME:

  • AP MAC: It's the corresponding AP "RADIO" MAC Address;
  • NAME: You can chose anithing suits to you, i've have hostnames like AP1, AP2, ecc

EXAMPLE: AP MAC -> NAME = 00:AA:BB:CC:DD:EE:FF:GG -> AP1

Thanks to the help of @DRN88 if you wanna create a quick Value map:

  1. Configure SSH Client to save your terminal log. Like putty
  2. Log into your WLC with ssh
  3. Run this command: show access-point-config then keep pressing q (not space for more)
  4. Quit putty session and find your log: putty.log
  5. Run this bash script to generate the value map XML
egrep "(Cisco AP Name|MAC Address)" putty.log | awk 'NR%2{printf "%s ",$0;next;}1' | awk '{print $4","toupper($NF)}' | awk -f wlc.awk | xmllint --format - > zabbix-wlc-valuemap.xml
  1. Import zabbix-wlc-valuemap.xml into zabbix

Content of wlc.awk

BEGIN{
FS=","
print "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
print "<zabbix_export>"
print "<version>4.0</version>"
print "<date>2020-04-15T00:00:00Z</date>"
print "<value_maps>"
print "<value_map>"
print "<name>AP MAC -> NAME</name>"
print "<mappings>"
}
{
  print "<mapping>"
  print "<value>"$2"</value>"
  print "<newvalue>"$1"</newvalue>"
  print "</mapping>"
}
END{
print "</mappings>"
print "</value_map>"
print "</value_maps>"
print "</zabbix_export>"
}

The regular expression @WLCs uplink interfaces

  • Expression: Virtual Interface
  • Expression type: Result is FALSE
  • CaseSensitive: FALSE

For Template Cisco Access Switch Interfaces Discovery:

The regular expression @Switches physical interfaces

  • Expression 1: Loopback
  • Expression type 1: Character string not included
  • CaseSensitive 1: FALSE
  • Expression 2: VLAN
  • Expression type 2: Character string not included
  • CaseSensitive 2: FALSE
  • Expression 3: ^Null0
  • Expression type 3: Result is FALSE
  • CaseSensitive 2: TRUE

The regular expression @Switches uplink interfaces

  • Expression: UPLINK TO
  • Expression type: Result is TRUE
  • CaseSensitive: TRUE

zabbix-templates's People

Contributors

alexjfisher avatar b4ckf0rw4rd avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.