Ad Widget

Collapse

Appliance problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • irvined
    Junior Member
    Zabbix Certified Specialist
    • Aug 2010
    • 16

    #1

    Appliance problem

    Hi,

    I have installed the 1.8.3 VM appliance onto one of our VM servers.

    I have given it a static IP address. The GUI works fine but I am unable to start the server. The log says:

    2966:20100826:134943.214 Listener failed with error: socket() for [[(null)]:10051] failed with error 97: Address family not supported by protocol.

    I have trurned the firewall off just to see if I can get this working.

    Any ideas?

    Regards,

    Doug
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    have you set listenip parameter ? what ip is assigned to the appliance ?

    you can also try to force it to listen on ipv4 only - does that help ?
    Zabbix 3.0 Network Monitoring book

    Comment

    • irvined
      Junior Member
      Zabbix Certified Specialist
      • Aug 2010
      • 16

      #3
      Hi,

      Thanks for getting back to me.

      Firstly, I have bought your book and am very impressed with it.

      I have been asked to make a presentation of an Open Source monitoring tool for our organisation (a local government council) this is to replace our costly paid for system that is difficult to manage and doesn't do what we want it to.

      I compiled and installed the 1.8.3 version but have problems with the top level menu system. I therefore thought I'd try the appliance as we have a large VM server configuration.

      With regards to your suggestions:

      have you set listenip parameter ? I assume this is in the zabbix-server.conf file? I have entered:

      ListenIP=127.0.0.1,10.206.167.31 but still have the same error message

      what ip is assigned to the appliance ?

      eth0 Link encap:Ethernet HWaddr 00:50:56:A6:721
      inet addr:10.206.137.31 Bcast:10.206.139.255 Mask:255.255.252.0

      The web frontend is working fine and I am logged in via ssh.

      The server is also connecting to the internet (via our proxy) without issue.

      you can also try to force it to listen on ipv4 only

      I found an article on disabling IPv6 on suse. I did:

      echo "alias net-pf-10 off" >> /etc/modprobe.conf
      echo "alias ipv6 off" >> /etc/modprobe.conf

      cat /etc/modprobe.conf
      alias net-pf-10 off
      alias ipv6 off

      I rebooted the server but the problem is still there.


      I really want to get this working so I can give the presentation to our management. Any other suggestions?

      Regards,

      Doug

      Comment

      • irvined
        Junior Member
        Zabbix Certified Specialist
        • Aug 2010
        • 16

        #4
        Update

        Hi,

        I've increased the debugging level and here's the bottom line after I tried to restart the server:

        9689:20100827:080145.720 Listener failed with error: bind() for [[10.206.167.31]:10051] failed with error 99: Cannot assign requested address.

        I think this must be something to do with IPv6 but really don't know where to look.

        Cheers,

        Doug

        Comment

        • irvined
          Junior Member
          Zabbix Certified Specialist
          • Aug 2010
          • 16

          #5
          Fixed

          O.K. this is where I jump off a cliff!

          I suppose the real thing I learnt here is double check your configuration files!

          I had made a mistake with the server's IP address (just one digit out) and then overlooked it when I checked again. Thanks to my buddy who looked over my shoulder and pointed it out!


          I can now get on with running all my tests and preparing for my presentation.

          Thanks for your help.

          Regards,

          Doug

          Comment

          • richlv
            Senior Member
            Zabbix Certified Trainer
            Zabbix Certified SpecialistZabbix Certified Professional
            • Oct 2005
            • 3112

            #6
            Originally posted by irvined
            Firstly, I have bought your book and am very impressed with it.
            heh, well, thanks

            Originally posted by irvined
            I have been asked to make a presentation of an Open Source monitoring tool for our organisation (a local government council) this is to replace our costly paid for system that is difficult to manage and doesn't do what we want it to.
            i'm sure zabbix will help to do that

            Originally posted by irvined
            I compiled and installed the 1.8.3 version but have problems with the top level menu system. I therefore thought I'd try the appliance as we have a large VM server configuration.
            i suspect the problem with top menu wouldn't be resolved by choosing appliance - it should be the same. nevertheless...

            getting back to the original problem. i'm getting the suspicion we are chasing the wrong end. is anything listening on server port by any chance ?

            try netstat -ntpl | grep 10051 - anything ?
            Zabbix 3.0 Network Monitoring book

            Comment

            • Giors
              Junior Member
              • Aug 2010
              • 5

              #7
              Zabbix VM

              1. I tried VMware appliance 1.8.3 -
              2. To enter static IP settings, according to instructions I edited file /etc/sysconfig/network/ifcfg-eth0 yeah great but what about gateway settings - I tried to add file routes yeah everything working fine (after googling about 6 hours)
              3. DNS and proxy are needed anyway after hard googling I found YaST2 is already installed - why should I mock with text files before? I disabled ipv6, changed dns proxy clock and hostname and oops zabbix-server after restart is not working anymore- frontend works fine. Kill me but I dont remeber what hostname was before
              log file outputs the same error: Listener failed with error: socket() for [[(null)]:10051] failed with error 97: Address family not supported by protocol.
              Running command netstat- host is not listening on 10051 at all
              4. Looked at server-problems.log
              2010.30.27-12.08.01 zabbix-server is not running; attempting to start it
              service: only root can use service
              2010.30.27-12.08.01 starting zabbix-server failed with error code 0
              I changed owner on zabbix-service to /usr/sbin/zabbix* to zabbix if zabbix server runs from user zabbix, maybe u guys are using some script to add rights? After reboot service wont start anyway
              5. Tried to login with user zabbix - wrong password, after changing password it throws me out
              6 So I stucked in the middle of nowhere
              Last edited by Giors; 27-08-2010, 14:19.

              Comment

              • irvined
                Junior Member
                Zabbix Certified Specialist
                • Aug 2010
                • 16

                #8
                zabbix user

                Hi,

                i found that the default zabbix user wouldn't let me log in.

                I checked the account setup

                cat /etc/passwd | grep zabbix

                zabbix:x:101:104:Zabbix Daemon:/var/lib/zabbix:/bin/false

                I then deleted the account and re-created it

                userdel zabbix

                useradd -u 101 -g 104 -m -s /bin/bash zabbix

                Then setup the password

                passwd zabbix

                Can now login to zabbix account. Having said all that my appliance now works fine without having to have the zabbix user setup that way.

                I think when you start the daemon as root it drops down to running as the zabbix user.

                Looking at my ps table

                zabbix 2371 1 0 12:04 ? 00:00:00 /usr/sbin/zabbix-server

                This seems to bear out my assumption.

                If you look at one of my earlier posts you'll find I had the zabbix-server.conf file setup incorrectly.

                Check that you have the correct IP address entered for /etc/zabbix/zabbix-server.conf

                My ListenIP shows:

                ListenIP=10.206.137.31,127.0.0.1

                Where 10.206.137.31 is my local address for eth0

                check with ifconfig eth0

                Hope that helps.

                Cheers,

                Doug

                Comment

                • forestman99
                  Junior Member
                  • Jul 2010
                  • 6

                  #9
                  Listener failed with error: socket() for [[(null)]:10051] failed with error 97: Address family not supported by protocol.
                  i solved truble by turn ON IPv6 in yast2

                  Comment

                  • Giors
                    Junior Member
                    • Aug 2010
                    • 5

                    #10
                    Thanks

                    Dont know much about Linux, do the new user zabbix have the same rights on /etc/zabbix if you erased previous? Anyway seems to me it could be much faster to compile it right not to mock with laggy appliance as I studied older instructions seems to me better is first install user zabbix with admin rights and then install from zabbix account and zabbix automatically is an owner it was in version 1.6 now they suggest to install from root and then add rights to user zabbix with chown chmod for what?
                    Lets suppose 2 instructions old one
                    http://www.zabbix.com/wiki/howto/ins.../ubuntuinstall
                    and new one
                    http://www.zabbix.com/documentation/...on_from_source
                    As far as I see in first instruction before every command there is sudo which means user is zabbix, but they are not telling it
                    In second instruction sudo is not present which meens everything is installed from user root or what thanks.
                    Last edited by Giors; 28-08-2010, 12:36.

                    Comment

                    • richlv
                      Senior Member
                      Zabbix Certified Trainer
                      Zabbix Certified SpecialistZabbix Certified Professional
                      • Oct 2005
                      • 3112

                      #11
                      Originally posted by Giors
                      2. To enter static IP settings, according to instructions I edited file /etc/sysconfig/network/ifcfg-eth0 yeah great but what about gateway settings - I tried to add file routes yeah everything working fine (after googling about 6 hours)
                      thanks, added information on routing setup to the manual. also suggested yast

                      Originally posted by Giors
                      5. Tried to login with user zabbix - wrong password, after changing password it throws me out
                      user zabbix should have zabbix password, but it doesn't have shell. you must set shell to a valid one to be able to log in as that user

                      and yes, removing a user and re-adding will change its id, so that would be considered as a different user
                      Zabbix 3.0 Network Monitoring book

                      Comment

                      • Giors
                        Junior Member
                        • Aug 2010
                        • 5

                        #12
                        Thanks for advice

                        I just grab Virtual appliance again and convert it, now it works fine will try to add old database huh

                        Comment

                        Working...