Ad Widget

Collapse

ESXi 4.0 Hardware and Software Monitoring VMWare

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • getUP
    Member
    • Jun 2006
    • 34

    #91
    Found it, the script doesn't accept our password as it contains characters Zabbix does not allow. I'll have a look at that tomorrow. Thanks for the input anyway.

    Comment

    • getUP
      Member
      • Jun 2006
      • 34

      #92
      Before we start, the timeout has been set at 30 seconds.

      Code:
      $ egrep "Timeout" /etc/zabbix/zabbix_server.conf 
      Timeout=30
      TrapperTimeout=30
      But running the zabbix_perl_api_vmware.pl script always takes more than 30 seconds in our situation.

      Code:
      $ time /etc/zabbix/zabbix_perl_api_vmware.pl ip password username
      0
      
      real	0m33.522s
      user	0m14.250s
      sys	0m0.147s
      We're running this from a different location, so I can see we would probably have some latency but in general that's <10ms. Will it make that much of a difference if we would set up a different zabbix node closer to that VMWare host?

      Comment

      • getUP
        Member
        • Jun 2006
        • 34

        #93
        Ok, this is a massive workaround for something I could probably have done a lot easier. We're using 1.8.8 in our set up.

        Before compiling Zabbix we changed the following files:
        ./src/zabbix_server/server.c:
        line 252:
        PARM_OPT, 1, 30},

        - Changed 30 to 60

        ./src/zabbix_agent/zabbix_agentd.c:
        line 318
        PARM_OPT, 1, 30},

        - Changed 30 to 60

        As root run ./make clean.

        As your Zabbix user, run:
        Code:
        killall zabbix_server
        killall zabbix_agentd
        ./configure --enable-server --with-net-snmp --with-libcurl --with-mysql --enable-agent
        Then install with ./make install

        Change the timeout to 60 in your configuration files and start both serviced again.

        Comment

        • getUP
          Member
          • Jun 2006
          • 34

          #94
          We've moved the monitoring of the VMware cluster to the management network but the data gathering still takes >30s. While we can rebuild zabbix_agentd on the monitoring server(s) I'd rather work on improving the speeds at which its running now.

          Am I missing something here?

          Comment

          • dima_dm
            Senior Member
            • Dec 2009
            • 2697

            #95
            Originally posted by getUP
            Am I missing something here?
            Do your have in this installation high CPU load on Zabbix Server or ESXi hypervisor (>60%)?

            Comment

            • pc99096
              Senior Member
              • Oct 2011
              • 193

              #96
              in our case (cca 20-25s response time) the cpu utilization on both esxi servers and zabbix virtual machine is below 10%

              Comment

              • dima_dm
                Senior Member
                • Dec 2009
                • 2697

                #97
                Originally posted by pc99096
                in our case (cca 20-25s response time) the cpu utilization on both esxi servers and zabbix virtual machine is below 10%
                I have 10-15 sec execution time for zabbix_perl_api_vmware.pl and 3-7 sec for zabbix_wbem_vmware.pl.
                Zabbix on RHEL6 x86_64

                Comment

                • pc99096
                  Senior Member
                  • Oct 2011
                  • 193

                  #98
                  load average: 0.33, 0.20, 0.15
                  Cpu(s): 12.3%us, 0.9%sy, 0.1%ni, 84.5%id, 1.9%wa

                  time ./zabbix_wbem_vmware.pl
                  real 0m0.596s
                  user 0m0.115s
                  sys 0m0.177s


                  time ./zabbix_perl_api_vmware.pl
                  real 0m20.828s
                  user 0m8.981s
                  sys 0m0.131s

                  Comment

                  • getUP
                    Member
                    • Jun 2006
                    • 34

                    #99
                    That's strange. I've did my tests on two different nodes. Both virtualized but with different technologies (OpenVZ vs. Hyper-V). I'll add some more cores to it tomorrow. As soon as it runs I'm seeing CPU spiking to ~100%. How many cores do you have assigned to it?

                    Are you running VMware4 or 5? I've only tried version 5 but will get some version 4 nodes added tomorrow and post my results.

                    Comment

                    • pc99096
                      Senior Member
                      • Oct 2011
                      • 193

                      #100
                      it's just 1 2.66GHz core and it's esxi5

                      Comment

                      • dozentmi
                        Junior Member
                        • Nov 2011
                        • 6

                        #101
                        Здравствуйте!

                        Выложите пожалуйста пошаговую инструкцию как настраивать. Спасибо.

                        Comment

                        • dima_dm
                          Senior Member
                          • Dec 2009
                          • 2697

                          #102
                          Originally posted by dozentmi
                          Здравствуйте!

                          Выложите пожалуйста пошаговую инструкцию как настраивать. Спасибо.
                          Читайте первое сообщение. Там все, что нужно, написано. Если не получается, попросите помощи у более опытных коллег. Либо задавайте вопросы по конкретным проблемам.
                          Last edited by dima_dm; 17-11-2011, 14:02.

                          Comment

                          • renato-barbosa
                            Junior Member
                            • Nov 2011
                            • 3

                            #103
                            Problems using Scripts.

                            Hi dima_dm,
                            I know you made a good job.
                            But it not works for me.
                            I tries more than 4 days in the script and nothing.
                            If a ran:/etc/zabbix/zabbix_perl_api_vmware.pl
                            Shows: 1
                            And if i ran: /usr/lib/vmware-vcli/apps/performance/viperformance.pl --host vmware2 --server xxx --countertype net --samples 1 --instance "*" --username root --password xxxxxx
                            Message is: Server version unavailable at 'https://xxxx:443/sdk/vimService.wsdl' at /usr/lib/perl5/5.8.8/VMware/VICommon.pm line 545.

                            I spent a LOT of hours tring to make it works. But still nothing.
                            I saw that this path: /usr/lib/vmware-vcli/apps/performance/viperformance.pl in yous is diferente, but i tried to install the sdk perl 4.0, 4.1 and 5.0 version, all of then use /usr/lib/vmware-vcli/apps/performance/viperformance.pl and not /usr/lib/vmware-viperl/apps/performance/viperformance.pl

                            I had intalled all requirements of SDK perl from vmware at this page: http://pubs.vmware.com/vsphere-50/in...l_preface.html

                            My server is centos 5.5 64Bits and zabbix server works fine.

                            I need to put it on. Please help me.

                            Regards.
                            Last edited by renato-barbosa; 24-11-2011, 04:24.

                            Comment

                            • dima_dm
                              Senior Member
                              • Dec 2009
                              • 2697

                              #104
                              Originally posted by renato-barbosa
                              But it not works for me.
                              I tries more than 4 days in the script and nothing.
                              If a ran:/etc/zabbix/zabbix_perl_api_vmware.pl
                              Shows: 1
                              And if i ran: /usr/lib/vmware-vcli/apps/performance/viperformance.pl --host vmware2 --server xxx --countertype net --samples 1 --instance "*" --username root --password xxxxxx
                              Message is: Server version unavailable at 'https://xxxx:443/sdk/vimService.wsdl' at /usr/lib/perl5/5.8.8/VMware/VICommon.pm line 545.
                              Check that all required libs installed.

                              Comment

                              • renato-barbosa
                                Junior Member
                                • Nov 2011
                                • 3

                                #105
                                Sorry for the delay to awnser.
                                Today was "out of service."
                                I did it that and the same problem.
                                Have de openssl-devel installed and nothing.
                                Have de SSleay instaled too.

                                Instaled packages:
                                openssl-0.9.8e-20.el5
                                openssl-devel-0.9.8e-20.el5
                                openssl-devel-0.9.8e-20.el5
                                openssl-0.9.8e-20.el5
                                perl-Crypt-SSLeay.x86_64 0:0.51-11.el5

                                I tried at my ubuntu laptop and the same error.
                                "Server version unavailable at 'https://xxxxx:443/sdk/vimService.wsdl' at /usr/lib/perl5/5.8.8/VMware/VICommon.pm line 545"

                                I can`t understand.

                                I have googgled and find nothing like this.

                                Have you seen it somewhere?

                                Thanks again.

                                Comment

                                Working...