Ad Widget

Collapse

Template not linking to hosts

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • guille_pm
    Junior Member
    • Mar 2020
    • 16

    #1

    Template not linking to hosts

    I've just installed Zabbix and I'm playing around with it (for now). I created a couple of hosts, imported a template for the IBM i (what I need to monitor) but I can't seem to link a template to a host.
    I created a different host, another CentOS, but I still can't link a template to that one either even though that, for all cases, I get the "Host updated" message.

    I've been doing some reading on it, and some articles said it could be due to php resource limits. I set the following

    max_input_vars = 5000
    memory_limit = 1024M

    Still same thing happens, and no errors are logged to /var/log/httpd/error_log.

    I made a test to see if error would be logged and reduced the memory size to 256 kb, and got some errors logged

    [Thu Apr 09 09:20:43.510529 2020] [:error] [pid 23357] [client 10.31.34.164:62884] PHP Fatal error: Allowed memory size of 262144 bytes exhausted (tried to allocate 49152 bytes) in /var/www/html/zabbix/index.php on line 84

    So, bottomline, I get the message "Host updated", I see no errors logged, but still the templates are not linked to the host.

    Maybe I'm doing something wrong, but I've read the documentation and followed the steps...
  • guille_pm
    Junior Member
    • Mar 2020
    • 16

    #2
    Just tried, for the sake os testing itself, to add another template to my Zabbix Server (which already has templates linked). I got the message "Host updated", but the template was not linked.

    Comment

    • provels
      Member
      • Apr 2020
      • 93

      #3
      Hello. I'm no expert by any means, but I can create a host and add the template at that time (or later) and it is linked. Any chance it could be a browser cache issue?

      Comment

      • guille_pm
        Junior Member
        • Mar 2020
        • 16

        #4
        I'm currently using Chrome. I just tried Firefox, same thing.

        Comment

        • provels
          Member
          • Apr 2020
          • 93

          #5
          Maybe you could note your Zabbix server environment and version and someone with similar may be able to help more. I'm just using the prebuilt Hyper-V VHD 4.4.6 version myself and seems to work fine but still no cakewalk.

          Comment

          • guille_pm
            Junior Member
            • Mar 2020
            • 16

            #6
            I'm using Zabbix 4.0.19 on a Centos7 machine.

            Comment

            • provels
              Member
              • Apr 2020
              • 93

              #7
              I saw in your #1 user post that you may have had to compile things yourself? Or were you able to muddle through without? Ignore as needed.

              Comment

              • jaida1978
                Junior Member
                • Mar 2020
                • 7

                #8
                Originally posted by guille_pm
                I've just installed Zabbix and I'm playing around with it (for now). I created a couple of hosts, imported a template for the IBM i (what I need to monitor) but I can't seem to link a template to a host.
                I created a different host, another CentOS, but I still can't link a template to that one either even though that, for all cases, I get the "Host updated" message.

                I've been doing some reading on it, and some articles said it could be due to php resource limits. I set the following

                max_input_vars = 5000
                memory_limit = 1024M

                Still same thing happens, and no errors are logged to /var/log/httpd/error_log.

                I made a test to see if error would be logged and reduced the memory size to 256 kb, and got some errors logged

                [Thu Apr 09 09:20:43.510529 2020] [:error] [pid 23357] [client 10.31.34.164:62884] PHP auto clickerFatal error: Allowed memory size of 262144 bytes exhausted (tried to allocate 49152 bytes) in /var/www/html/zabbix/index.php on line 84

                So, bottomline, I get the message "Host updated", I see no errors logged, but still the templates are not linked to the host.

                Maybe I'm doing something wrong, but I've read the documentation and followed the steps...
                Can I create a host and add the template at that time (or later) and it is linked. Any chance it could be a browser cache issue.
                Last edited by jaida1978; 12-04-2020, 05:30.

                Comment

                • Margaretady
                  Junior Member
                  • Sep 2020
                  • 2

                  #9
                  i'm currently using Zabbix 4.0.19 on a machine.

                  Comment

                  • Margaretady
                    Junior Member
                    • Sep 2020
                    • 2

                    #10
                    Originally posted by provels
                    I saw in your #1 user post that you may have had to compile things yourself auto clickers? Or were you able to muddle through without? Ignore as needed.
                    Would i be able to make a host and include the format around then (or later) and it is connected. Any possibility it could be a program reserve issue.

                    Comment

                    • erikh67
                      Junior Member
                      • Apr 2021
                      • 1

                      #11
                      I have the same problem as the author of this post. Have Zabbix 4.0.27 on Redhat 8 Enterprise server.

                      Does anyone have a solution to solve this wierd issue?

                      Comment

                      Working...