Ad Widget

Collapse

ESXi 4.0 Hardware and Software Monitoring VMWare

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kryol
    Member
    • Feb 2011
    • 70

    #136
    Originally posted by Alain Ganuchaud
    Hi,

    I began to migrate the zabbix_perl_api_vmware.pl to request centrally the ESX hosts via the VCC, please find below the modified script. Some items are not returned, thanks to terminate if you have the ESX knowledge.

    The new syntax is now: zabbix_perl_api_vmware_VCC.pl --server <VCC_Name_or_IP> --username <VCC_user> --password <VCC_password> --vihost <ESX_Host_Name_or_IP>

    Thanks,
    Alain
    I increased Statistic Level of vCenter server to 2 and you script works fine. All items are returned.

    But I see another problem with requesing ESXi hosts via VCC. Each request is logged on VCC under Task&Events.
    So, events table mostly consist of records about such requests logon/logoff(s). And I can miss any another useful information among these records.

    Any suggestions

    Comment

    • edunix
      Junior Member
      • May 2012
      • 6

      #137
      data of datastore size incorrect

      Hi, i implemented ESXi 4.0 Hardware and Software Monitoring VMWare for 7 vmware hosts, on all systems i monitor the datastores, which are mounted by nfs.
      On some vmware hosts disk space sizes are not correct:
      [root@nlyehvitrdlx005 zabbix]# grep Volume.Capacity_DS-notorious-3 /tmp/vmware_api_*.txt
      /tmp/vmware_api_nlyehvitrdvh011.txt:Volume.Capacity_DS-notorious-3: 154547163136
      /tmp/vmware_api_nlyehvitrdvh012.txt:Volume.Capacity_DS-notorious-3: 159808987136
      /tmp/vmware_api_nlyehvitrdvh013.txt:Volume.Capacity_DS-notorious-3: 190126780416
      /tmp/vmware_api_nlyehvitrdvh020.txt:Volume.Capacity_DS-notorious-3: 189585858560
      /tmp/vmware_api_nlyehvitrdvh021.txt:Volume.Capacity_DS-notorious-3: 154592292864
      /tmp/vmware_api_nlyehvitrdvh022.txt:Volume.Capacity_DS-notorious-3: 190126768128
      /tmp/vmware_api_nlyehvitrdvh023.txt:Volume.Capacity_DS-notorious-3: 164437491712

      Any suggestions?

      Kind regards, Edunix.

      Comment

      • dima_dm
        Senior Member
        • Dec 2009
        • 2697

        #138
        Originally posted by edunix
        Hi, i implemented ESXi 4.0 Hardware and Software Monitoring VMWare for 7 vmware hosts, on all systems i monitor the datastores, which are mounted by nfs.
        On some vmware hosts disk space sizes are not correct:
        [root@nlyehvitrdlx005 zabbix]# grep Volume.Capacity_DS-notorious-3 /tmp/vmware_api_*.txt
        /tmp/vmware_api_nlyehvitrdvh011.txt:Volume.Capacity_DS-notorious-3: 154547163136
        /tmp/vmware_api_nlyehvitrdvh012.txt:Volume.Capacity_DS-notorious-3: 159808987136
        /tmp/vmware_api_nlyehvitrdvh013.txt:Volume.Capacity_DS-notorious-3: 190126780416
        /tmp/vmware_api_nlyehvitrdvh020.txt:Volume.Capacity_DS-notorious-3: 189585858560
        /tmp/vmware_api_nlyehvitrdvh021.txt:Volume.Capacity_DS-notorious-3: 154592292864
        /tmp/vmware_api_nlyehvitrdvh022.txt:Volume.Capacity_DS-notorious-3: 190126768128
        /tmp/vmware_api_nlyehvitrdvh023.txt:Volume.Capacity_DS-notorious-3: 164437491712

        Any suggestions?

        Kind regards, Edunix.
        Each disc has an unique ID. Check, that you see same disk on different ESXi

        Comment

        • edunix
          Junior Member
          • May 2012
          • 6

          #139
          monitoring nfs mounted datastores

          Originally posted by dima_dm
          Each disc has an unique ID. Check, that you see same disk on different ESXi
          Hi Dima, thanks for your reply.
          Did check if it is the same disk
          Just stating 2 of the 7 systems below, nlyehvitrdvh011. displays correct value, others do not.
          ~ # hostname
          nlyehvitrdvh011.ddns.htc.nl.philips.com
          nfs 1.6T 725.9G 874.1G 45% /vmfs/volumes/012b57ad-e99fa8ce
          /tmp/vmware_api_nlyehvitrdvh011.txt:Volume.Capacity_Bac kup2: 1717986918400
          ~ # hostname
          nlyehvitrdvh021.htc.nl.philips.com
          nfs 1.6T 725.9G 874.1G 45% /vmfs/volumes/012b57ad-e99fa8ce
          /tmp/vmware_api_nlyehvitrdvh021.txt:Volume.Capacity_Bac kup2: 2147483648000

          If you want more info, please let me know!

          Kind regards,
          edunix

          Comment

          • IT_Architect
            Member
            • Feb 2006
            • 31

            #140
            Situation: This is on an ESXi installation that has been monitoring hosts for a long time. I just can't get ESXi the monitoring to work. Everything else works perfectly.

            Setup:
            1. When I ssh in, I can call zabbix_perl_api_vmware.pl host password username manually and it works perfectly! (Requires 16 seconds.)

            2. Pasted in the API portion into the zabbix_agentd.conf on the server.

            3. I imported the template into Zabbix. I removed all of the WBEM items and then when application showed 0, I deleted the WBEM application.

            4. I made a new host
            a. IP 127.0.0.1
            b. Added the template
            c. Added the three macros

            Problem:
            1. I've uploaded a single image that shows the host setup, and the host browse with the ZBX_TCP_READ () failed (54) connection reset by peer. The only data it brings in is icmpping, and that is always successful
            2. There are no errors in the server or agent logs on the server

            Other:
            - Zabbix 1.8.13
            - Using ESXi 40 and the 4.0 version of the template

            I've gone over the instructions many times. I've read this thread a couple times. I've search and found a couple of instances of people having the same problem. I've restarted the server and agent several times. I've Googled for it. Any thoughts would be greatly appreciated. I tried the 5 version of the API and your newest template. It's the same.

            Thanks!
            Attached Files
            Last edited by IT_Architect; 30-05-2012, 06:44.

            Comment

            • dima_dm
              Senior Member
              • Dec 2009
              • 2697

              #141
              Originally posted by IT_Architect
              Situation:
              1) Check Firewall on Zabbix Server
              2) Check SELinux policy.
              3) Check zabbix_agentd.conf
              Server=127.0.0.1
              You can test from zabbix server
              zabbix_get -s 127.0.0.1 -k API[IP,password,username]

              Comment

              • dima_dm
                Senior Member
                • Dec 2009
                • 2697

                #142
                Originally posted by edunix
                Hi
                ~ # hostname
                nlyehvitrdvh011.ddns.htc.nl.philips.com
                nfs 1.6T 725.9G 874.1G 45% /vmfs/volumes/012b57ad-e99fa8ce
                /tmp/vmware_api_nlyehvitrdvh011.txt:Volume.Capacity_Bac kup2: 1717986918400
                ~ # hostname
                nlyehvitrdvh021.htc.nl.philips.com
                nfs 1.6T 725.9G 874.1G 45% /vmfs/volumes/012b57ad-e99fa8ce
                /tmp/vmware_api_nlyehvitrdvh021.txt:Volume.Capacity_Bac kup2: 2147483648000

                If you want more info, please let me know!

                Kind regards,
                edunix
                1) Do you see in output
                grep Volume.Capacity /tmp/vmware_api_nlyehvitrdvh021.txt
                1717986918400 for any disk?
                2) In VMware client do you see correct volume size?
                Last edited by dima_dm; 30-05-2012, 08:55.

                Comment

                • edunix
                  Junior Member
                  • May 2012
                  • 6

                  #143
                  data of datastore size incorrect

                  Hi,

                  yes, i see data of all datastores:
                  [root@nlyehvitrdlx005 zabbix]# grep -i volume.capac /tmp/vmware_api_nlyehvitrdvh021.txt
                  Volume.Capacity_Backup2: 1717986918400
                  Volume.Capacity_Backup: 161061273600
                  Volume.Capacity_BU-monodon-1: 2173253451776
                  Volume.Capacity_DS-notorious-3: 154592292864
                  Volume.Capacity_DS-notorious-2: 254234951680
                  Volume.Capacity_DS-edeni-1: 1099511627776
                  Volume.Capacity_DS-nlyehvsaq1na001-1: 938543292416
                  Volume.Capacity_DS-notorious-1: 1515624361984
                  Volume.Capacity_Local-Datastore-vh021: 141465485312

                  Yesterday i unmounted the datastore, and remounted it again. The size is now correct on this system.
                  Could it be that i do not get current data of this API Counter? Might this be a bug in vware ESX 4.1?

                  Vsphere client shows the correct data on all servers.

                  kind regards,
                  Edunix

                  Comment

                  • dima_dm
                    Senior Member
                    • Dec 2009
                    • 2697

                    #144
                    Originally posted by edunix
                    Yesterday i unmounted the datastore, and remounted it again. The size is now correct on this system.
                    Could it be that i do not get current data of this API Counter? Might this be a bug in vware ESX 4.1?

                    Vsphere client shows the correct data on all servers.

                    kind regards,
                    Edunix
                    Do you use VMWare vCenter?
                    You must press Refresh button on Configuration->Storage in VMWare Client, to refresh data about storage volume (for API).
                    vCenter is renews this counters.
                    Last edited by dima_dm; 30-05-2012, 15:46.

                    Comment

                    • edunix
                      Junior Member
                      • May 2012
                      • 6

                      #145
                      monitoring nfs mounted datastores

                      Hi Dima,
                      I do use vceter to manage vmware.
                      My problem is with monitoring the ESX-I servers directly.
                      Should i moinitor the datastores on the vcenter server instead?

                      Kind regards,

                      Edunix

                      Comment

                      • jplelievre
                        Junior Member
                        • Jun 2012
                        • 1

                        #146
                        Hi,

                        I am monitoring my 6 ESXi with the zabbix_perl_api_vmware and that works fine!
                        But it stops to work since I activated the lockdown mode on in order to use only the vCenter.

                        Is there anyway to make it working with the lockdown mode activated?

                        Comment

                        • maplesyrupghost
                          Member
                          • Jul 2012
                          • 37

                          #147
                          Will I be able to get ESXI 5 free monitored this way?

                          Comment

                          • uweiss
                            Junior Member
                            • Jun 2006
                            • 27

                            #148
                            @maplesyrupghost

                            Did just that today and works fine.

                            But for ESXi 5 i had to increase the Timeout value from 20 up to 60 seconds. Don't know why it takes so much longer on ESXi5 yet.

                            If the script takes over 30 seconds, you also have to adjust the source code of Zabbix a bit to be able to increase the timeout of the agent.
                            Last edited by uweiss; 19-07-2012, 14:09.

                            Comment

                            • mamema
                              Junior Member
                              • Aug 2012
                              • 2

                              #149
                              Originally posted by uweiss
                              @maplesyrupghost

                              Did just that today and works fine.

                              But for ESXi 5 i had to increase the Timeout value from 20 up to 60 seconds. Don't know why it takes so much longer on ESXi5 yet.

                              If the script takes over 30 seconds, you also have to adjust the source code of Zabbix a bit to be able to increase the timeout of the agent.
                              can you be more specific what you did, please?

                              Comment

                              • doutrinorcete

                                #150
                                stop snoring

                                {It's|It is} {in point of fact|actually|really|in reality|truly} a {nice|great} and {helpful|useful} piece of {information|info}. {I'm|I am} {satisfied|glad|happy} {that you|that you simply|that you just} shared this {helpful|useful} {info|inf...

                                zquiet snoring
                                <a href=http://freeconsumerreviews.org/zquiet-couch/>zquiet price</a>
                                store offers a guarantee for their bedwetting alarms. Bedwetting alarms would serve as a training tool for your child. It would stir up some noise which would awaken the

                                Comment

                                Working...