Ad Widget

Collapse

Configuration > Templates > Import > zbx-cisco-envmon: errors

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • catkins
    Junior Member
    • Feb 2020
    • 19

    #1

    Configuration > Templates > Import > zbx-cisco-envmon: errors

    What I did
    • Opened https://github.com/jjmartres/Zabbix/...sco-envmon.xml > copied text > pasted into text editor SciTE (should have got verbatim raw text) and saved as zbx-cisco-envmon.xml
    • Configuration > Templates > Import > browsed to zbx-cisco-envmon.xml > cleared all selections except "Create new" items, triggers and graphs > Clicked Import. Got "Invalid parameter "/source": invalid byte sequence in UTF-8"
    • Found there is no string "source" in zbx-cisco-envmon.xml
    • Experimentally converted zbx-cisco-envmon.xml to UTF-8:
    Code:
    $ file zbx-cisco-envmon.xml
    zbx-cisco-envmon.xml: XML 1.0 document, ISO-8859 text, with very long lines
    $ iconv -f ISO_8859-1 -t UTF-8 zbx-cisco-envmon.xml > zbx-cisco-envmon-utf8.xml
    • Configuration > Templates > Import > browsed to zbx-cisco-envmon-utf8.xml > cleared all selections except "Create new" items, triggers and graphs > Clicked Import. Got "Invalid tag "/zabbix_export/templates/template(1)/items/item(1)": the tag "snmpv3_contextname" is missing."
    What was expected

    Successful template import, no error message.

    What I tried
    • Searched for parts of both error messages. No solution found
    • Downloaded Cisco MIBs to /usr/local/share/snmp/mibs/cisco, configured MIB search path to use them first
    Code:
    [email protected]:~# grep -v '^#' /etc/snmp/snmp.conf
    mibdirs /usr/local/share/snmp/mibs/cisco:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
    • Restarted zabbix-server.service
    • Repeated the import attempts. Same result
  • mfortes
    Senior Member
    • Oct 2019
    • 416

    #2
    Hello catkins
    Your Zabbix version is the same version of this template?


    Michael R. Fortes

    Linkedin: Mike Fortes
    Medium: mromeiro-f

    Comment

    • catkins
      Junior Member
      • Feb 2020
      • 19

      #3
      Thanks for reply mfortes and sorry for forgetting version information.

      Our Zabbix server is version 4.4 and the template documentation at https://github.com/jjmartres/Zabbix/...x-cisco-envmon says "This template was tested for Zabbix 2.0.0 and higher".

      We are trying to install that template because it is required for the template at https://share.zabbix.com/network_dev...-ws-c3750g-24t which was created in July 2016.

      The ultimate aim is to monitor a Cisco WS-C3850-24T

      Comment

      • catkins
        Junior Member
        • Feb 2020
        • 19

        #4
        Fixed the errors.

        First step was to download zbx-cisco-envmon.xml without mangling it. Used
        Code:
        $ git clone git://github.com/jjmartres/Zabbix
        Apparently Zabbix 4.4 requires some XML that was not in the downloaded version of zbx-cisco-envmon.xml. Repeatedly tried import and fixed the reported errors.

        Found zbx-cisco-envmon.xml uses value mapping "Host status" but https://support.zabbix.com/browse/ZBX-9730 is about the name being changed to "Host availability". Edited zbx-cisco-envmon.xml accordingly.

        zbx-cisco-envmon.xml context diff attached.

        Found by trial and error the minimal Import options were all cleared except Create new: groups, templates, applications, items, triggers, graphs, value mappings

        Found the procedure in https://github.com/jjmartres/Zabbix/...vmon/README.md was correct except it was not necessary to create value mapping "ciscoEnvMonState"; it was created during the import.

        After Import, value mappings named "CISCO-ENVMON-MIB::CiscoEnvMonState" and "ciscoEnvMonState" had been created with identical content. I do not understand why.

        Attached Files

        Comment

        Working...