Ad Widget

Collapse

Host items and discovery rules screen are blank

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mtb2000
    Junior Member
    • Dec 2014
    • 7

    #1

    Host items and discovery rules screen are blank

    I suddenly can not see the host items or discovery rules anymore,
    I select a host, I can see Applications, Triggers and graphs, but Items and Discovery rules give me a blank screen.
    What can this be?
  • Radboud
    Junior Member
    • Mar 2019
    • 25

    #2
    We have the same problem, looks like it is 4.0.23 version.
    we have 3 envirements of zabbix, and only the 4.0.23 has this problem

    4.0.23 was released yesterday
    Last edited by Radboud; 28-07-2020, 15:18.

    Comment

    • mtb2000
      Junior Member
      • Dec 2014
      • 7

      #3
      I didn't know that Zabbix autoupdated but this morning zabbix_agent was changed at 06:28 am. Do you know if Zabbix is working on a fix?

      Comment


      • tim.mooney
        tim.mooney commented
        Editing a comment
        Zabbix *doesn't* auto-update. If your environment updated, it's because something in your environment initiated an update.

        If you have the Zabbix repo imported on your system and some process on the system does an "update" without limiting which repositories to update from, then your system will pull updates from all repos. That's likely what happened.

        You may want to look into version "pinning" or version "lock", depending on what distro you're using.
    • Radboud
      Junior Member
      • Mar 2019
      • 25

      #4
      you can check which version the server is using at the bottem of the page of your zabbix server.
      its a server side problem, not an agent problem.

      Comment

      • Radboud
        Junior Member
        • Mar 2019
        • 25

        #5
        diff items4022.php items4023.php
        1283c1283
        < 'selectHosts' => ['name'],
        ---
        > 'selectHosts' => ['name', 'status'],
        1288,1290c1288,1294
        < DBstart();
        <
        < $result = Manager::History()->deleteHistory($itemIds);
        ---
        > // Check items belong only to hosts.
        > $hosts_status = array_column(array_column(array_column($items, 'hosts'), 0), 'status');
        > if (in_array(HOST_STATUS_TEMPLATE, $hosts_status)) {
        > $result = false;
        > }
        > else {
        > DBstart();
        1292,1294c1296
        < if ($result) {
        < foreach ($items as $item) {
        < $host = reset($item['hosts']);
        ---
        > $result = Manager::History()->deleteHistory($itemIds);
        1296,1299c1298,1306
        < add_audit(AUDIT_ACTION_UPDATE, AUDIT_RESOURCE_ITEM,
        < _('Item').' ['.$item['key_'].'] ['.$item['itemid'].'] '. _('Host').' ['.$host['name'].'] '.
        < _('History cleared')
        < );
        ---
        > if ($result) {
        > foreach ($items as $item) {
        > $host = reset($item['hosts']);
        >
        > add_audit(AUDIT_ACTION_UPDATE, AUDIT_RESOURCE_ITEM,
        > _('Item').' ['.$item['key_'].'] ['.$item['itemid'].'] '. _('Host').' ['.$host['name'].'] '.
        > _('History cleared')
        > );
        > }
        1301d1307
        < }
        1303c1309
        < $result = DBend($result);
        ---
        > $result = DBend($result);
        1305,1306c1311,1313
        < if ($result) {
        < uncheckTableRows(getRequest('hostid'));
        ---
        > if ($result) {
        > uncheckTableRows(getRequest('hostid'));
        > }
        1310c1317
        < show_messages($result, _('History cleared'), _('Cannot clear history'));
        ---
        > show_messages($result, _('History cleared'), _('Cannot clear history: at least one of the selected items doesn\'t belong to any monitored host'));
        1691c1698,1699
        < 'config' => $config
        ---
        > 'config' => $config,
        > 'is_template' => true
        2014a2023,2033
        > // Set is_template false, when one of hosts is not template.
        > if ($data['items']) {
        > $hosts_status = array_column(array_column(array_column($data['items'], 'hosts'), 0), 'status');
        > foreach ($hosts_status as $value) {
        > if ($value != HOST_STATUS_TEMPLATE) {
        > $data['is_template'] = false;
        > break;
        > }
        > }
        > }
        >
        2015a2035
        >

        Comment


        • mtb2000
          mtb2000 commented
          Editing a comment
          is this the solution??
      • mtb2000
        Junior Member
        • Dec 2014
        • 7

        #6
        The server is 4.0.23 , i didn't initiate an update, so this must have happened automaticaly.

        Comment

        • Radboud
          Junior Member
          • Mar 2019
          • 25

          #7
          No thats NOT the solution, thats the difference between 2 files of 4.0.22 and 4.0.23
          the items.php file

          Comment

          • Radboud
            Junior Member
            • Mar 2019
            • 25

            #8
            we did a restore back to 4.0.22 we are going to hold back on updating to 4.0.23 for now

            Comment

            • mtb2000
              Junior Member
              • Dec 2014
              • 7

              #9
              Is there an easy way to go back to 4.0.22 or do i have to restore my VM, and how do i prevent Zabbix from updating?

              Comment

              • Radboud
                Junior Member
                • Mar 2019
                • 25

                #10
                We restored the VM but thats dependent on your environment.

                Exclude zabbix from your updates, also dependent on your envirement

                Comment

                • XabXab
                  Junior Member
                  • Aug 2020
                  • 1

                  #11
                  Having the same issue. Is there a fix in the works for this?

                  Comment

                  • kent.skoglund
                    Junior Member
                    • Aug 2020
                    • 1

                    #12
                    Seeing the same issue. Any fix yet?

                    Comment

                    • nicolasgoudard
                      Junior Member
                      • Mar 2021
                      • 27

                      #13
                      UP ! Zabbix 5.2 same problem

                      Comment

                      Working...