Ad Widget

Collapse

Citrix XenAPI/RRDs monitoring

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Emir Imamagic
    Member
    • Mar 2008
    • 67

    #1

    Citrix XenAPI/RRDs monitoring

    Hello,

    after unsuccessful quest for probes for monitoring Citrix XenServer hosts via the native mechanism I've decided to write my own probes. These probes do not require installation of Zabbix on XenServer.

    Package contains two probes:
    - citrix.py: extracts hosts and VMs performance via XenServer XAPI RRDs
    - citrix-storage.py: extracts hosts and VMs storage size and allocation
    Probes cache results for all hosts and VMs in local files. In case that probe fail cache files are kept.

    Templates are provided for both XenServer hosts and VMs. Hosts monitoring follows the same logic as the VMware monitoring solution (http://www.zabbix.com/forum/showthread.php?t=15691). For each host IP is set to Zabbix server IP in order to enable running Zabbix passive items. Probes citrix.py and citrix-storage.py are associated only to master host(s).

    VMs can be monitored with passive or trigger items. Passive items enable fine tuning items (e.g. frequency). However with a large Citrix cluster can create load on the Zabbix server. With trigger items all VM results are reported at the same time.

    Installation details are provided in the README file.

    I'd like to emphasize that my Python knowledge is very limited so code might be a bit clunky All comments and especially contributions are very welcome.

    Cheers
    emir
    Attached Files
    Last edited by Emir Imamagic; 21-02-2012, 03:10. Reason: Uploaded version 1.1 with modifications based on feedback provided by Dubravko Sever (AT srce DOT hr).
  • efcunha
    Junior Member
    • Apr 2012
    • 8

    #2
    Problem Zabbix + Citrix

    Hello,

    I took this zipped files and made available settings as README, more sequinte'm having the problem below:

    16128:20120417:151308.565 item [Citrix Xen Server - Master:citrix[{$MASTER},{HOST.DNS1},vbd_xvda_read]] became not supported: Not supported by Zabbix Agent
    16127:20120417:151313.601 item [Citrix Xen Server - Master:citrix[{$MASTER},{HOST.DNS1},vbd_xvda_write]] became not supported: Not supported by Zabbix Agent
    16127:20120417:151313.601 item [Citrix Xen Server - Master:citrix.memused] became not supported: Cannot evaluate function [last()]
    16127:20120417:151313.601 item [Citrix Xen Server - Master:citrix[{$MASTER},{HOST.DNS1},cpu]] became not supported: Not supported by Zabbix Agent
    16128:20120417:151318.591 item [Citrix Xen Server - Master:citrix[{$MASTER},{HOST.DNS1},loadavg]] became not supported: Not supported by Zabbix Agent
    16128:20120417:151318.591 item [Citrix Xen Server - Master:citrix[{$MASTER},{HOST.DNS1},memory_free_kib]] became not supported: Not supported by Zabbix Agent
    16128:20120417:151318.591 item [Citrix Xen Server - Master:citrix[{$MASTER},{HOST.DNS1},xapi_allocation_kib]] became not supported: Not supported by Zabbix Agent
    16128:20120417:151318.592 item [Citrix Xen Server - Master:citrix[{$MASTER},{HOST.DNS1},xapi_free_memory_kib]] became not supported: Not supported by Zabbix Agent
    16128:20120417:151318.592 item [Citrix Xen Server - Master:citrix[{$MASTER},{HOST.DNS1},xapi_live_memory_kib]] became not supported: Not supported by Zabbix Agent
    16126:20120417:151323.669 item [Citrix Xen Server - Master:citrix[{$MASTER},{HOST.DNS1},xapi_memory_usage_kib]] became not supported: Not supported by Zabbix Agent
    16126:20120417:151323.669 item [Citrix Xen Server - Master:citrix[{$MASTER},{HOST.DNS1},vif_0_rx]] became not supported: Not supported by Zabbix Agent
    16126:20120417:151323.669 item [Citrix Xen Server - Master:citrix[{$MASTER},{HOST.DNS1},vif_0_tx]] became not supported: Not supported by Zabbix Agent

    I wonder if my host configuration is not wrong.

    I'm using zabbix 1.8.10 and Citrix Xen Server 5.6 SP2

    My configuration HOST:
    Attached Files

    Comment

    • Emir Imamagic
      Member
      • Mar 2008
      • 67

      #3
      Sorry for the delay, was on vacations.

      Did you add the configuration to agent on Zabbix server? Is there anything in agent log?

      Did you create custom macro {$MASTER} before or after assigning templates?

      Cheers
      emir

      Comment

      • frlan
        Junior Member
        • May 2012
        • 18

        #4
        Is this also working for Xen on SLES w/o the Citrix stuff?

        Comment

        • Emir Imamagic
          Member
          • Mar 2008
          • 67

          #5
          Probe needs XAPI (http://wiki.xen.org/wiki/XAPI_Developer_Guide). As far as I know XAPI comes with Xen Cloud Platform (XCP) and Citrix XenServer. Don't know if you can take it out and install on top of pure Xen.

          Comment

          • LukeRobertsNL
            Junior Member
            • Aug 2012
            • 3

            #6
            Can anybody confirm that this works with Zabbix 2.0.x?

            Thanks!

            Comment

            • Emir Imamagic
              Member
              • Mar 2008
              • 67

              #7
              Originally posted by LukeRobertsNL
              Can anybody confirm that this works with Zabbix 2.0.x?

              Thanks!
              Zabbix 2.0 is backward compatible so this should work without problems. However, templates could be optimized by using LLD in order to automate item generation for disks, networks etc. I've put that to my TODO list, but not sure when will I have time to do it.

              Comment

              • Priyanka
                Junior Member
                • Feb 2014
                • 2

                #8
                Hello,

                I followed exactly as per README file. I added {$MASTER} also. All Item shows not supported by zabbix agent. I am using zabbix 2.2. Any help?

                Thanks

                Comment

                • viniciusferrao
                  Junior Member
                  • Mar 2013
                  • 10

                  #9
                  Any updates with this XAPI template? I'm having the same problem described by Priyanka.

                  Thanks in advance,

                  Comment

                  • Priyanka
                    Junior Member
                    • Feb 2014
                    • 2

                    #10
                    Hi,

                    Check the log file. I used special characters in {$PASSWORD} macro, which was not supported. I tried with different password it worked.

                    Comment

                    • FrankB
                      Junior Member
                      • Feb 2009
                      • 19

                      #11
                      Problem with zabbix_sender

                      Hi,

                      i tried the scripts and everything works fine while i'm in a shell (user zabbix or root, both works.)

                      But with zabbix agent i have problems:

                      zabbix_get -s 127.0.0.1 -k citrix.api[xen1,root,password]
                      i get ZBX_NOTSUPPORTED

                      The File with the values ist not created.
                      I think it might denpends on the different environment of the user in a shell and the call from the agentd.
                      Calling a shell script in Userparams with the python call doesn't work, same problem.

                      But how can i debug this - there's no error on the screen or in zabbix_agent log

                      I'm using debian 6.09

                      Can someone help me this this issue ?

                      Regards

                      Frank

                      Comment

                      Working...