Ad Widget

Collapse

No data found on template

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Xyue
    Member
    • Jan 2016
    • 93

    #1

    No data found on template

    Hi guys,

    I just installed version 3.0.3 last week

    [root@ZabbixWebServer ~]# zabbix_server --version
    zabbix_server (Zabbix) 3.0.3
    Revision 60173 18 May 2016, compilation time: May 23 2016 04:50:56
    [root@ZabbixWebServer ~]#

    I want to assign template to the host. So i choose host, go to template tab and click select. There is no template as it shows "no data found" but when i manually type, it was able to find the template.

    I have a staging zabbix server with version 3.0.1 was working fine and did not encounter this issue.

    Is anyone faced the same issue as i am ? Any solution for this ?

    Please advise. Thank you very much in advance.
    Last edited by Xyue; 03-06-2016, 03:56.
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    The problem seems to have already been reported.
    I think that it is fixed in the next release.

    ZBX-10840
    Zabbix Templates disappear on "Link new template" section

    Comment

    • Xyue
      Member
      • Jan 2016
      • 93

      #3
      Hi Atsushi,

      Noted. Any idea when will the next release came out ?

      Comment

      • Atsushi
        Senior Member
        • Aug 2013
        • 2028

        #4
        Please wait until the official release.

        If you do not want to wait anyway, please try to make the following changes.
        Guarantee of behavior does not.
        Please take a risk on your own.

        Code:
        --- /usr/share/zabbix/include/classes/pagefilter/CPageFilter.php.orig   2016-05-18 21:59:37.000000000 +0900
        +++ /usr/share/zabbix/include/classes/pagefilter/CPageFilter.php        2016-05-31 13:33:24.199000000 +0900
        @@ -253,7 +253,7 @@
        
                        // groups
                        if (isset($options['groups'])) {
        -                       $this->_initGroups($options['groupid'], $options['groups'], isset($options['hostid']) ? $options['hostid'] : null);
        +                       $this->_initGroups($options['groupid'], $options['groups'], $this->_requestIds['hostid']);
                        }
        
                        // hosts
        @@ -390,7 +390,7 @@
                        $this->data['groups'] = API::HostGroup()->get($options);
        
                        // select remembered selection
        -               if ($groupId === null) {
        +               if ($groupId === null && $this->_profileIds['groupid'] > 0) {
                                // set group only if host is in group or hostid is not set
                                $host = null;
                                $template = null;

        Comment

        • Xyue
          Member
          • Jan 2016
          • 93

          #5
          Hi Atsushi,

          Thanks. In this case, I will just wait for the next release.

          Thank you very much.

          Comment

          • helloworld
            Junior Member
            • Jun 2016
            • 1

            #6
            Originally posted by Atsushi
            Please wait until the official release.

            If you do not want to wait anyway, please try to make the following changes.
            Guarantee of behavior does not.
            Please take a risk on your own.

            Code:
            --- /usr/share/zabbix/include/classes/pagefilter/CPageFilter.php.orig   2016-05-18 21:59:37.000000000 +0900
            +++ /usr/share/zabbix/include/classes/pagefilter/CPageFilter.php        2016-05-31 13:33:24.199000000 +0900
            @@ -253,7 +253,7 @@
            
                            // groups
                            if (isset($options['groups'])) {
            -                       $this->_initGroups($options['groupid'], $options['groups'], isset($options['hostid']) ? $options['hostid'] : null);
            +                       $this->_initGroups($options['groupid'], $options['groups'], $this->_requestIds['hostid']);
                            }
            
                            // hosts
            @@ -390,7 +390,7 @@
                            $this->data['groups'] = API::HostGroup()->get($options);
            
                            // select remembered selection
            -               if ($groupId === null) {
            +               if ($groupId === null && $this->_profileIds['groupid'] > 0) {
                                    // set group only if host is in group or hostid is not set
                                    $host = null;
                                    $template = null;
            works here! thanks so much!

            Comment

            • taken
              Junior Member
              • May 2015
              • 15

              #7
              Originally posted by Atsushi
              Please wait until the official release.

              If you do not want to wait anyway, please try to make the following changes.
              Guarantee of behavior does not.
              Please take a risk on your own.

              Code:
              --- /usr/share/zabbix/include/classes/pagefilter/CPageFilter.php.orig   2016-[CUT]

              Thanks working for me too!
              BR TaKeN

              Comment

              Working...