Ad Widget

Collapse

Template Import Failed (

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • FrancisET
    Junior Member
    • Oct 2017
    • 14

    #1

    Template Import Failed (

    Hi All,


    I'm trying to install the template link provided to monitor NFS shares, but its failing with the message below.

    Can someone point me to the right direction on how to get this properly installed?

    Thanks in advance.

    Francis

    Zabbix Version - 3.4.2


    Code:
    Import failed
    Details[LIST][*]Created: Item "NFS service is running" on "Template App NFS Service".[*]Created: Item "Portmap service is running" on "Template App NFS Service".[*]Created: Item "NFSv3 rename operations per minute" on "Template Linux NFS v3 Client".[*]Created: Item "NFSv3 rmdir operations per minute" on "Template Linux NFS v3 Client".[*]Created: Item "NFSv3 remove operations per minute" on "Template Linux NFS v3 Client".[*]Created: Item "NFSv3 readdir operations per minute" on "Template Linux NFS v3 Client".[*]Created: Item "NFSv3 readdirplus operations per minute" on "Template Linux NFS v3 Client".[*]Created: Item "NFSv3 commit operations per minute" on "Template Linux NFS v3 Client".[*]Created: Item "NFSv3 fsstat operations per minute" on "Template Linux NFS v3 Client".[*]Created: Item "NFSv3 mkdir operations per minute" on "Template Linux NFS v3 Client".[*]Created: Item "NFSv3 create operations per minute" on "Template Linux NFS v3 Client".[*]Created: Item "NFSv3 setattr operations per minute" on "Template Linux NFS v3 Client".[*]Created: Item "NFSv3 getattr operations per minute" on "Template Linux NFS v3 Client".[*]Created: Item "NFSv3 lookup operations per minute" on "Template Linux NFS v3 Client".[*]Created: Item "NFSv3 access operations per minute" on "Template Linux NFS v3 Client".[*]Created: Item "NFSv3 write operations per minute" on "Template Linux NFS v3 Client".[*]Created: Item "NFSv3 read operations per minute" on "Template Linux NFS v3 Client".[*]Created: Item "NFSv3 mount tag" on "Template Linux NFS v3 Client".[*]Created: Item "NFSv4 remove operations per minute" on "Template Linux NFS v4 Client".[*]Created: Item "NFSv4 lookup operations per minute" on "Template Linux NFS v4 Client".[*]Created: Item "NFSv4 getattr operations per minute" on "Template Linux NFS v4 Client".[*]Created: Item "NFSv4 rename operations per minute" on "Template Linux NFS v4 Client".[*]Created: Item "NFSv4 create operations per minute" on "Template Linux NFS v4 Client".[*]Created: Item "NFSv4 rel_lkowner operations per minute" on "Template Linux NFS v4 Client".[*]Created: Item "NFSv4 readdir operations per minute" on "Template Linux NFS v4 Client".[*]Created: Item "NFSv4 statfs operations per minute" on "Template Linux NFS v4 Client".[*]Created: Item "NFSv4 access operations per minute" on "Template Linux NFS v4 Client".[*]Created: Item "NFSv4 locku operations per minute" on "Template Linux NFS v4 Client".[*]Created: Item "NFSv4 commit operations per minute" on "Template Linux NFS v4 Client".[*]Created: Item "NFSv4 write operations per minute" on "Template Linux NFS v4 Client".[*]Created: Item "NFSv4 read operations per minute" on "Template Linux NFS v4 Client".[*]Created: Item "NFSv4 open operations per minute" on "Template Linux NFS v4 Client".[*]Created: Item "NFSv4 close operations per minute" on "Template Linux NFS v4 Client".[*]Created: Item "NFSv4 lock operations per minute" on "Template Linux NFS v4 Client".[*]Created: Item "NFSv4 renew operations per minute" on "Template Linux NFS v4 Client".[*]Created: Item "NFSv4 setattr operations per minute" on "Template Linux NFS v4 Client".[*]Created: Item "NFSv4 mount tag" on "Template Linux NFS v4 Client".[*]Trigger "NFS not mount on {HOST.NAME}" depends on trigger "Zabbix agent on {HOST.NAME} is unreachable for 5 minutes", which does not exist. [conf.import.php:167 → CFrontendApiWrapper->import() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → call_user_func_array() → CConfiguration->import() → CConfigurationImport->import() → CConfigurationImport->processTriggers() → CConfigurationImport->processTriggerDependencies() in include/classes/import/CConfigurationImport.php:1522][/LIST]
    the template modify from the template NFS Templates for V3 & V4 using vfs.file.regex, then add NFS, portmap check, mount check.
  • FrancisET
    Junior Member
    • Oct 2017
    • 14

    #2
    Just an update. So I tried creating the trigger Zabbix agent on {HOSTNAME} is unreachable for 5 minutes on both templates metioned (NFS v3 and v4 Client) and still no go. I don't think the items and triggers i created were correct, but just though I could try to fool Zabbix to install it with the triggers present.

    Anyone else experiencing this? Any feedback will be appreciated.

    Kind regards,
    Francis

    Comment

    • FrancisET
      Junior Member
      • Oct 2017
      • 14

      #3
      Anyone with ideas on how to fix this? Or is Zabbix not being widely used anymore hence no one has encountered this issue?

      Comment

      • kloczek
        Senior Member
        • Jun 2006
        • 1771

        #4
        Just imported this template without any problems (zabbix 3.4.9)
        http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
        https://kloczek.wordpress.com/
        zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
        My zabbix templates https://github.com/kloczek/zabbix-templates

        Comment

        • FrancisET
          Junior Member
          • Oct 2017
          • 14

          #5
          Hi Kloczek,

          Thanks for the response. Any ideas where I could find more details in Zabbix on this issue? The fail log doesn't seem to say much.

          Have a question though. Is your instance a new install for the 3.x version? My instance was upgraded from a 2.x (couldn't remember anymore) to 3.4.2 and it might have some conflicts with templates from that previous major version.

          Kind regards,
          Francis

          Comment


          • Atsushi
            Atsushi commented
            Editing a comment
            In the environment where 3.4 was newly installed and upgraded to the latest 3.4.9, it has been successfully imported.

            Please check if there are any templates or items in the error message.

            Template:
            Template OS Linux
            Template App Zabbix Agent

            Item:
            Zabbix agent on {HOST.NAME} is unreachable for 5 minutes
        • FrancisET
          Junior Member
          • Oct 2017
          • 14

          #6
          Hi Atsuhi,

          I managed to install it by installing the two templates you stated. Had to grab them from https://github.com/mingfang/zabbix-templates

          Thanks for the help. I have a different issue now with the template installed and will post it as another topic.

          Kind regards,
          Francis

          Comment

          • kloczek
            Senior Member
            • Jun 2006
            • 1771

            #7
            Originally posted by FrancisET
            Any ideas where I could find more details in Zabbix on this issue? The fail log doesn't seem to say much.
            You should be doing all minor version upgrades ASAP because contain only bug fixes and only occasionally some minor new features.

            [QUOT]EHave a question though. Is your instance a new install for the 3.x version? My instance was upgraded from a 2.x (couldn't remember anymore) to 3.4.2 and it might have some conflicts with templates from that previous major version.[/QUOTE]
            It doesn't really matter.
            In this case imported template depends on things defined in "Template OS Linux" which is one of the zstandard zabbix templates. Probably old version of this template has no this "Zabbix agent on {HOST.NAME} is unreachable for 5 minutes"trigger.
            http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
            https://kloczek.wordpress.com/
            zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
            My zabbix templates https://github.com/kloczek/zabbix-templates

            Comment

            • FrancisET
              Junior Member
              • Oct 2017
              • 14

              #8
              Originally posted by kloczek
              You should be doing all minor version upgrades ASAP because contain only bug fixes and only occasionally some minor new features.

              [QUOT]EHave a question though. Is your instance a new install for the 3.x version? My instance was upgraded from a 2.x (couldn't remember anymore) to 3.4.2 and it might have some conflicts with templates from that previous major version.
              It doesn't really matter.
              In this case imported template depends on things defined in "Template OS Linux" which is one of the zstandard zabbix templates. Probably old version of this template has no this "Zabbix agent on {HOST.NAME} is unreachable for 5 minutes"trigger.
              [/QUOTE]

              Hi,

              I just inherited the zabbix system from a previous admin and found out it was way too far behind and upgraded it.

              I would like to think though that upgrading to the latest version would upgrade the base templates as well, which i don't think happens.

              Anyway, I'm setting up a new instance as see if I encounter the same issue.

              Kind regards,
              Francis

              Comment

              • kloczek
                Senior Member
                • Jun 2006
                • 1771

                #9
                Originally posted by FrancisET
                Anyway, I'm setting up a new instance as see if I encounter the same issue.
                Wrong .. "don't move, improve".
                Humans are learning only by making or fixing some errors.
                http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
                https://kloczek.wordpress.com/
                zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
                My zabbix templates https://github.com/kloczek/zabbix-templates

                Comment

                Working...