Ad Widget

Collapse

Zabbix 1.4 - host group "Windows Servers" not displayed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Maximum
    Junior Member
    • Sep 2006
    • 16

    #1

    Zabbix 1.4 - host group "Windows Servers" not displayed

    Hi,

    I can not see the group "Windows servers" under "configuration/hosts/host groups" but when I try to create it I get the message: Group 'Windows servers' already exists.

    I do not know what casued the group to disappear or if it ever was shown in the first place.

    What I have done:
    1.fresh install of zabbix 1.4 on Ubuntu 6.06 LTS Server edition Kernel 2.6.15-26-server #1 SMP
    2. installed the windows client on a windows XP 32-bit SP2 machine
    3. activated auto-discovery in zabbix and it found my host
    4. activated the default action "Auto discovery, Windows servers."
    5. tailed the zabbix server log and when the auto discovery again reached my XP machines IP the zabbix server process died.
    6. I took a closer look on the action "auto discovery, windows servers" and saw that it would add the discovered host to the "windows servers" group.
    7. I looked at "configuration/hosts/host groups" and could not see the "windows servers" group there.
    8. I tried to add the above group and received: Group 'Windows servers' already exists.

    Im running Mysql btw..

    Any Ideas ?

    Best regards /Maximum
  • paulojbe
    Junior Member
    • May 2007
    • 9

    #2
    I'm having the same problem with same setup. Anybody has idea of how can I fix this?

    Comment

    • Andreas Bollhalder
      Senior Member
      Zabbix Certified Specialist
      • Apr 2007
      • 144

      #3
      I did have the same problem. Then I looked into the mysql log, where I had an error message about the innodb database files. I stopped mysql and zabbix-server, deleted the innodb database files and after start of zabbix-server and mysql, I had all entries in the host group. Don't know if that works for you too.

      But this couldn't be the right solution...

      Andreas
      Zabbix statistics
      Total hosts: 380 - Total items: 12190 - Total triggers: 4530 - Required server performance: 224.2

      Comment

      • paulojbe
        Junior Member
        • May 2007
        • 9

        #4
        What log files did you look at?

        Comment

        • Alexei
          Founder, CEO
          Zabbix Certified Trainer
          Zabbix Certified SpecialistZabbix Certified Professional
          • Sep 2004
          • 5654

          #5
          Thanks for reporting this. A patch is attached.
          Attached Files
          Alexei Vladishev
          Creator of Zabbix, Product manager
          New York | Tokyo | Riga
          My Twitter

          Comment

          • tronite
            Senior Member
            • Jun 2007
            • 147

            #6
            Originally posted by Maximum
            Hi,

            I can not see the group "Windows servers" under "configuration/hosts/host groups" but when I try to create it I get the message: Group 'Windows servers' already exists.

            I do not know what casued the group to disappear or if it ever was shown in the first place.

            What I have done:
            1.fresh install of zabbix 1.4 on Ubuntu 6.06 LTS Server edition Kernel 2.6.15-26-server #1 SMP
            2. installed the windows client on a windows XP 32-bit SP2 machine
            3. activated auto-discovery in zabbix and it found my host
            4. activated the default action "Auto discovery, Windows servers."
            5. tailed the zabbix server log and when the auto discovery again reached my XP machines IP the zabbix server process died.
            6. I took a closer look on the action "auto discovery, windows servers" and saw that it would add the discovered host to the "windows servers" group.
            7. I looked at "configuration/hosts/host groups" and could not see the "windows servers" group there.
            8. I tried to add the above group and received: Group 'Windows servers' already exists.

            Im running Mysql btw..

            Any Ideas ?

            Best regards /Maximum
            Try upgrading your kernel to 2.6.21.4

            Comment

            • Maximum
              Junior Member
              • Sep 2006
              • 16

              #7
              Thank you Alexei

              The patch worked perfectly for me.

              Best regards /Maximum

              Comment

              • zombiehunter
                Member
                • Jun 2007
                • 31

                #8
                how?

                Originally posted by Maximum
                The patch worked perfectly for me.

                Best regards /Maximum
                how do you apply the patch?

                Comment

                • paulojbe
                  Junior Member
                  • May 2007
                  • 9

                  #9
                  I have the same doubt.

                  Comment

                  • paulojbe
                    Junior Member
                    • May 2007
                    • 9

                    #10
                    I did this:

                    cd /usr/src/zabbix-1.4/
                    patch -p0 < /home/admin/perm.patch

                    Seems to work.

                    Comment

                    • zombiehunter
                      Member
                      • Jun 2007
                      • 31

                      #11
                      thanks- ill try that

                      Comment

                      • zombiehunter
                        Member
                        • Jun 2007
                        • 31

                        #12
                        I still cant get the patch to work-

                        cd /var/www/include (after copying the patch there)

                        patch -p0 < ./perm.patch

                        got this response-

                        netprobe:/var/www/include# patch -p0 < ./perm.patch
                        can't find file to patch at input line 5
                        Perhaps you used the wrong -p or --strip option?
                        The text leading up to this was:
                        --------------------------
                        |Index: ChangeLog
                        |================================================= ==================
                        |--- ChangeLog (revision 4258)
                        |+++ ChangeLog (working copy)
                        --------------------------
                        File to patch: perm.inc.php
                        patching file perm.inc.php
                        Hunk #1 FAILED at 1.
                        1 out of 1 hunk FAILED -- saving rejects to file perm.inc.php.rej
                        can't find file to patch at input line 16
                        Perhaps you used the wrong -p or --strip option?
                        The text leading up to this was:
                        --------------------------
                        |Index: frontends/php/include/perm.inc.php
                        |================================================= ==================
                        |--- frontends/php/include/perm.inc.php (revision 4257)
                        |+++ frontends/php/include/perm.inc.php (working copy)
                        --------------------------
                        File to patch:


                        this is the contents of my rej file (after I moved the patch to /home/zabbix and tried to reapply)

                        ***************
                        *** 281,287 ****
                        $group_data['permission'] = $nodes[$group_data['nodeid']]['permission'];
                        }

                        - $processed[$group_data['permission']] = true;

                        if(eval('return ('.$group_data["permission"].' '.perm_mode2comparator($perm_mode).' '.$perm.')? 0 : 1;'))
                        continue;
                        --- 281,288 ----
                        $group_data['permission'] = $nodes[$group_data['nodeid']]['permission'];
                        }

                        + // $processed[$group_data['permission']] = true;
                        + $processed[$group_data['groupid']] = true;

                        if(eval('return ('.$group_data["permission"].' '.perm_mode2comparator($perm_mode).' '.$perm.')? 0 : 1;'))
                        continue;



                        what am i doing wrong?
                        Last edited by zombiehunter; 12-06-2007, 21:30.

                        Comment

                        • Andreas Bollhalder
                          Senior Member
                          Zabbix Certified Specialist
                          • Apr 2007
                          • 144

                          #13
                          Or read the patch
                          • Go to the "include" directory"
                          • Open the file "perm.inc.php"
                          • Go to line 281
                          • Search the line below with "$processed[$group_data['permission']] = true;" (I think it's the line 284)
                          • Change the 'permission' to 'groupid'.

                          Andreas
                          Zabbix statistics
                          Total hosts: 380 - Total items: 12190 - Total triggers: 4530 - Required server performance: 224.2

                          Comment

                          • zombiehunter
                            Member
                            • Jun 2007
                            • 31

                            #14
                            That never even occurred to me. I'm not a coder, 99% of the businesses we deal with re windows based and although ive dabbled with linux for a few years, i'm not fluent enough yet. Don't think i've ever 'read' a patch before.
                            I'll give that a shot.
                            thanks!

                            Comment

                            Working...