Ad Widget

Collapse

Cisco Template installation failure

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • seanche
    Junior Member
    • Mar 2014
    • 4

    #1

    Cisco Template installation failure

    Hi there,

    I am new to zabbix monitoring system. I was unable to install new template. Templates are from hire https://github.com/jjmartres/Zabbix/...x-cisco-envmon, ZBX-CISCO-BGP4 this template.
    Error: XML file contains fatal error 41:Specification mandate value for attribute data-pjax-transient [ Line: 31 | Column: 40 ]

    As was stated in Install guide, I have edited zabbix_server.conf configuration file and add following line:
    ExternalScripts=/usr/local/share/zabbix/externalscripts

    and put the as.name file under that specific directory as indicated in https://github.com/jjmartres/Zabbix/...bgp4/README.md

    To make as.name work, I've also run 'zypper install ruby' to install ruby and rubygems.

    I've also tried below command with '-k' to disable certificate
    curl -k -O https://raw.github.com/jjmartres/Zab...eam-backup.xml

    But still no luck. Could anyone please help me here?

    thanks and best regards,
    Sean
  • tchjts1
    Senior Member
    • May 2008
    • 1605

    #2
    Originally posted by seanche
    Error: XML file contains fatal error 41:Specification mandate value for attribute data-pjax-transient [ Line: 31 | Column: 40 ]
    Where did you get that error? When you tried to import the template?

    Comment

    • seanche
      Junior Member
      • Mar 2014
      • 4

      #3
      Error message

      Originally posted by tchjts1
      Where did you get that error? When you tried to import the template?
      Yes, that's right.

      When I go to the configuration-->templates configuration, click on 'import', you will see the options.
      Attached Files

      Comment

      • tchjts1
        Senior Member
        • May 2008
        • 1605

        #4
        This may be an issue related to Zabbix 2.2.2

        I downloaded the template from the link you provided and imported it successfully into my 2.0.9 setup

        I will attach it here for you to try. Maybe something in the way you got it from the github site is the issue.

        Also, when I imported it, I used the default check boxes on the import page.
        Attached Files

        Comment

        • seanche
          Junior Member
          • Mar 2014
          • 4

          #5
          It's the xml file format issue!!

          Hi tchjts1,

          Thank you so much, it works eventually. When I imported your xml file, it works. so I compare yours import.xml with my 'zbx-cisco-bgp4.xml', I found that it's a stupid mistake.

          Your xml file look like a real xml file, it's the same as the xml shown on the web when you click the xml file name listed here:
          https://github.com/jjmartres/Zabbix/...zbx-cisco-bgp4, so when you copy it and save it locally there's nothing wrong.

          But when I right click the file name to save it locally, I got the file with HTML format and file size is over 200Kbytes!!

          Did you do screen scrapping to get the code and past it into a text editor and save it as xml file?

          It's a stupid mistake, thank you for sharing your xml file which helped me find out the problem.

          Sean

          Comment

          • tchjts1
            Senior Member
            • May 2008
            • 1605

            #6
            Originally posted by seanche

            Did you do screen scrapping to get the code and past it into a text editor and save it as xml file?

            Sean
            Yes, exactly. Highlighted, copied and pasted into Notepad++

            Comment

            • steveboyson
              Senior Member
              • Jul 2013
              • 582

              #7
              There is a "Raw" button. Right-click on that and choose "save as ..."

              Comment

              • tchjts1
                Senior Member
                • May 2008
                • 1605

                #8
                or just copy and paste it into a text editor.

                Comment

                • seanche
                  Junior Member
                  • Mar 2014
                  • 4

                  #9
                  Thank you all

                  Thank you all for the help!

                  Comment

                  Working...