Ad Widget

Collapse

ESXi 4.0 Hardware and Software Monitoring VMWare

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dima_dm
    Senior Member
    • Dec 2009
    • 2697

    #196
    Originally posted by ehermouet
    Hi,

    i have another way to do it. but i don't know how to integer to zabbix.
    the value with esxtop are much more important.

    so it possible to export them to csv file. now i search mean to import this cvs file on my zabbix. but i don't found the mean.

    anybody can help me ?
    You can convert cvs in zabbix_sender format, and use zabbix_sender. http://www.zabbix.com/documentation/.../zabbix_sender
    And use Zabbix API to create Items, triggers and graphs.
    Last edited by dima_dm; 15-10-2012, 14:41.

    Comment

    • dima_dm
      Senior Member
      • Dec 2009
      • 2697

      #197
      Originally posted by dima_dm
      Sorry, I don't testing this on Zabbix 2.0. I only plan migration Zabbix 1.8-> 2.0 on my systems. After migration this problem will be fixed.
      I don't see any problem on Zabbix 2.0.3.

      Comment

      • boxrick
        Junior Member
        • Oct 2012
        • 2

        #198
        I have what I believe is a simple problem which unfortunately I cannot solve due to lack of knowledge....

        Simply put I have a fresh version of Zabbix installed. I am using ESXI 5.0 Free and have configured SNMP using the following guide:

        Here we are, VMware ESXi 5 is installed on the Z68 motherboard. One of the first thing to do is enable SNMP to be able to actually get remote information on what happens to the beast :) Later on, we’ll be able to get pretty graphs to show how the virtual infrastructure lives. Here’s how I did enable and configure SNMP on my ESXi. This is the free instance, without any vCenter.


        I can use SNMPWalk to poll the server from a different system and this appears to work OK.

        Simply put I wish to monitor the ESXI HOST system for things like CPU / Hard drive / Memory and network usage. Rather simple SNMP based for the physical system.

        Can someone guide in the right direction for a template which would work for this or a provide me with a quick guide which would help. Everything around seems to be trying to accomplish something much more complicated than I actually need...

        Comment

        • duncankennedy
          Junior Member
          • Dec 2011
          • 6

          #199
          What kind of hardware do you use and which version of ESXi?

          Comment

          • boxrick
            Junior Member
            • Oct 2012
            • 2

            #200
            EXSI is 5.0 free version and it is currently on a HP DL360 G5, but will be on a DL380 gen8.

            Comment

            • lioxa_zab
              Junior Member
              • Sep 2010
              • 14

              #201
              Zabbix agent not creating /tmp/vmware_api_172.x.x.x.txt file from the daemon mode. I can see in zabbix_agentd log file that command is running, no errors orrus. And if I run the same command from command prompt it's creating /tmp/vmware_api_172.x.x.x.txt as suppose.

              Zabbix version 2.0.3

              31999:20121106:142818.931 Processing request.
              31999:20121106:142818.931 Requested [API[172.x.x.x,password,user]]
              31999:20121106:142818.931 In zbx_popen() command:'/etc/zabbix/zabbix_perl_api_vmware.pl 172.x.x.x password user'
              2996:20121106:142818.931 zbx_popen(): executing script
              31999:20121106:142818.946 End of zbx_popen():6

              Comment

              • dima_dm
                Senior Member
                • Dec 2009
                • 2697

                #202
                Check permitions on files /tmp/vmware_api_172.x.x.x.txt.

                Comment

                • lioxa_zab
                  Junior Member
                  • Sep 2010
                  • 14

                  #203
                  permissions is OK , now zabbix agent running as root , so it should not be a problem. Is it possible that script running to long and zabbix_agent killing it ? because of Timeout is not enough ?

                  time /etc/zabbix/zabbix_perl_api_vmware.pl 172.x.x.x password user
                  0

                  real 0m36.783s
                  user 0m22.756s
                  sys 0m0.205s

                  Comment

                  • dima_dm
                    Senior Member
                    • Dec 2009
                    • 2697

                    #204
                    Originally posted by lioxa_zab
                    permissions is OK , now zabbix agent running as root , so it should not be a problem. Is it possible that script running to long and zabbix_agent killing it ? because of Timeout is not enough ?

                    time /etc/zabbix/zabbix_perl_api_vmware.pl 172.x.x.x password user
                    0

                    real 0m36.783s
                    user 0m22.756s
                    sys 0m0.205s
                    You can change Timeout for zabbix_server and zabbix_agent.

                    Comment

                    • lioxa_zab
                      Junior Member
                      • Sep 2010
                      • 14

                      #205
                      I did recompile zabbix_agentd and zabbix_sever files. Now vmware checks running fine.



                      Спасибо за помощь.
                      Last edited by lioxa_zab; 07-11-2012, 14:47.

                      Comment

                      • lioxa_zab
                        Junior Member
                        • Sep 2010
                        • 14

                        #206
                        I have 20 vmware servers , all except one working fine. When I'm running /etc/zabbix/zabbix_perl_api_vmware.pl script I'm getting reply "1" user and password is correct, what can be wrong ?

                        Comment

                        • dima_dm
                          Senior Member
                          • Dec 2009
                          • 2697

                          #207
                          /etc/zabbix/zabbix_perl_api_vmware.pl
                          Code:
                          my $retval =Vim::login(service_url => $service_url, user_name => $username, password => $password);
                                };
                                if ($@)
                                  {
                                    if ($@ =~ /incorrect user name or password/) {
                                      $error_code=3;
                                   } else {
                                     $error_code=1;
                                    [B]print "test ".$@;[/B]
                                   }
                                 }
                          Add print to see detail.

                          Comment

                          • TTTstu
                            Junior Member
                            • Jan 2013
                            • 1

                            #208
                            Originally posted by lioxa_zab
                            I have 20 vmware servers , all except one working fine. When I'm running /etc/zabbix/zabbix_perl_api_vmware.pl script I'm getting reply "1" user and password is correct, what can be wrong ?
                            Hi, not sure if you still have this problem, but I just had this. It turned out to be Perl being fussy about the SSL verification. From a KB on VMware:

                            When you run a vicfg-vCLI command, an error like the following might result.
                            Server version unavailable at 'https://<server>/sdk/vimService.wsdl' at /usr/lib/perl5/5.8.8/VMware/VICommon.pm line 545

                            Workaround: Follow these steps to resolve the issue:

                            • Make sure the version of the LWP::UserAgent Perl module is above 6.0.4.
                            • Turn off host name verification by running the following command:
                            • export PERL_LWP_SSL_VERIFY_HOSTNAME=0


                            For me it was the export that fixed it. Hope that helps.

                            Comment

                            • gavind
                              Member
                              • Mar 2013
                              • 59

                              #209
                              It turned out to be Perl being fussy about the SSL verification.
                              Thanks. Indeed it is. I just duplicated this issue and it was the SSL verfication.

                              Comment

                              • magajna
                                Junior Member
                                • Sep 2013
                                • 6

                                #210
                                OK, i have read almost all of this post, now i have some questions...

                                I have ESXi 5.1u1(free edition), will the scripts posted here work?

                                I also don't have HP environment, can the agents from hp be install on our Intel environment to work this scripts?

                                In ESXi 5.1 you have SNMP capabilities, but it will only show you your hardware, can you somehow get used recourse true CIM?

                                How to put all of this into zabbix?


                                My sistems:
                                Intel SC5299WS
                                3ware RAID 9650sa
                                ESXi 5.1u1(prod. build 1065491)

                                Tnx for all the answers

                                Comment

                                Working...