Ad Widget

Collapse

zabbix on xenserver6?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zap
    Junior Member
    • Dec 2008
    • 17

    #1

    zabbix on xenserver6?

    Hi list!

    I have problems to get zabbix running on xenserver 6. No problems with xenserver 5.5 and 5.6 however.
    I tryed different versions and it is always the same error:

    Starting ZABBIX agent: zabbix_agentd: daemon.c:239: daemon_start: Assertion `0' failed.

    xenserver6 is based on centos 5.5.
    Versions:
    zabbix-agent-1.8.9-6.1.i386.rpm
    zabbix-agent-1.8.3-12.1.i386.rpm

    I know that I have to do things like that before:
    yum --enablerepo=base install yum-utils
    yumdownloader --enablerepo=base e2fsprogs-devel
    rpm --nodeps -Uvh e2fsprogs-devel*.rpm
    yum --enablerepo=base install openssl-devel
    rpm -Uv zabbix-1.8.3-12.1.i386.rpm

    As said it worked with the old xenservers.

    Any ideas?

    Thanks in advance!

    Cheers,

    zap
  • zap
    Junior Member
    • Dec 2008
    • 17

    #2
    Aditional information

    I used this howto:



    So there must be changes concerning xenserver6 as it does not work anymore.

    zap

    Comment

    • mfecteau
      Junior Member
      • Apr 2012
      • 4

      #3
      How to do it

      It's possible to have the zabbix client installed on XenServer 6. It's necessary to compile it from source though.

      Install tools necessary to compile :
      yum --enablerepo=base install gcc make

      Upload zabbix source code on the xenserver (with scp). decompress it with tar and enter directory.

      Configure :
      ./configure --enable-agent

      compile and install :
      make install

      create folder to put config files :
      mkdir /etc/zabbix

      copy config file into that directory :
      cp misc/conf/zabbix_agentd.conf /etc/zabbix/

      Edit the config file :
      vi /etc/zabbix/zabbix_agentd.conf

      Specify "AllowRoot=1" so that the zabbix client could access the "xe" command. (there's another more secure way to it though by giving access to the xe command to the zabbix user ... search the forum for it)

      change "Hostname" and "Server" accordingly

      Exit vi
      :wq

      Because the zabbix agent has no service installed, we need to start it by script when xenserver host start up. To do it, edit this file :
      vi /etc/rc.local

      Put this line at the end of the file :
      /usr/local/sbin/zabbix_agentd

      You need to open firewall ports :
      vi /etc/sysconfig/iptables
      Add the correct lines so that port 10051 and 10050 could pass

      Exit vi

      Run that command so that the firewall rules are reapplied :
      /etc/init.d/iptables restart

      Start the agent for the first time :
      /usr/local/sbin/zabbix_agentd

      Your xenserver host should now be visible on the zabbix server if you have an "auto registration" action. If not, manually create your xenserver host on zabbix.

      If you change the config file (/etc/zabbix/zabbix_agentd.conf ) and want to restart the agent so the new settings get loaded, you need to kill the zabbix agent process and start it.
      To kill it :
      killall zabbix_agentd
      To start it :
      /usr/local/sbin/zabbix_agentd

      To see if agent is running correctly, do that command :
      ps aux | grep zabbix_agentd


      ---------

      Word of caution about monitoring on Dom0 :
      CPU load is not the load on the XenServer host (DomU), but only on Dom0. Not very useful. I didn't find a way to get it on XenServer 6.

      The items that we could get are everything that the xe command could give and some other things. For my part, I"m getting :
      1) % of space used on the Storage Repository (SR) that is Thin Provisioned (so that there's no crash because of overallocation)
      2) number of days before licence expiration (free edition)
      3) disk performance data (disk queue) with the "sar -d" command (and sysstat package). So that I could detect if there's saturation on the disk.
      Last edited by mfecteau; 03-05-2012, 20:38.

      Comment

      • zap
        Junior Member
        • Dec 2008
        • 17

        #4
        Thank you very much. That sounds helpful. I'll try that out asap and let you know about the outcome.

        Greetings,

        zap

        Comment

        • zap
          Junior Member
          • Dec 2008
          • 17

          #5
          Now I see the problem

          Sorry, i did not mention the following. I tried compiling already.
          Everything works just fine on my DDK but not on the dom0. I compiled it with ./configure --enable-agent --enable-static and copied the binaries.

          What am I missing?

          Thanx,

          zap

          Comment

          • mfecteau
            Junior Member
            • Apr 2012
            • 4

            #6
            I installed gcc and make with yum on each xenserver (with the command I already gave) and compiled the zabbix agent (again on each xenserver). I didn't used the option "--enable-static".

            Hope it helps.

            Comment

            • zap
              Junior Member
              • Dec 2008
              • 17

              #7
              Problem solved!

              Ok, everything works now. I just had the idea to use the DDK for compiling, because the dom0 are production servers.

              However, I put on gcc and make, compiled zabbix and removed gcc and make again.

              Thank you for this very useful howto.

              Cheers,

              zap

              Comment

              • kevind
                Member
                • Sep 2011
                • 40

                #8
                FYI there is a bug in the Xenserver 6.02 release which affects permissions; in my case it prevented the Zabbix agent v 2.03 from running (didn't try other versions).

                Citrix has a hotfix: http://support.citrix.com/article/CTX133174

                After applying the hotfix, Zabbix agent 2.03 installed from RPM and ran with no problems.

                Comment

                • zap
                  Junior Member
                  • Dec 2008
                  • 17

                  #9
                  Thank you for the information!

                  I'll take that in account.

                  Cheers,

                  zap

                  Comment

                  Working...