Ad Widget

Collapse

ESXi 4.0 Hardware and Software Monitoring VMWare

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ehermouet
    Member
    • May 2011
    • 50

    #166
    hi all,

    i permit to post again my previous post because nobody help me :'(

    i think it's because i have don't understand all info.

    that i do:

    install hp agent on esx server
    install vi perl on zabbix server
    wbem is on zabbix server and esx server

    that's right ?

    edit
    i have this error message
    * /usr/bin/wbemcli: Cim: (3) CIM_ERR_INVALID_NAMESPACE: Invalid namespace

    when i do this /usr/bin/wbemcli ei -noverify "https://root:*****@192.168.1.33/root/hpq:SMX_FAN"

    agent is installed and i have accès with http interface on esx server


    and on zabbix 2 i have -> After upgrade to zabbix 2.0.2 items API[*] became unsupported.
    /etc/zabbix/zabbix_perl_api_vmware.pl [IP] [password] [username] work and i have my tmp file (but only work manualy)

    tks advance

    Comment

    • dima_dm
      Senior Member
      • Dec 2009
      • 2697

      #167
      Originally posted by ehermouet
      edit
      i have this error message
      * /usr/bin/wbemcli: Cim: (3) CIM_ERR_INVALID_NAMESPACE: Invalid namespace

      when i do this /usr/bin/wbemcli ei -noverify "https://root:*****@192.168.1.33/root/hpq:SMX_FAN"
      what model of HP server?
      Originally posted by ehermouet
      and on zabbix 2 i have -> After upgrade to zabbix 2.0.2 items API[*] became unsupported.
      /etc/zabbix/zabbix_perl_api_vmware.pl [IP] [password] [username] work and i have my tmp file (but only work manualy)
      Check macros definition in zabbix hosts
      {$HOST} - IP address of ESXi hypervisor
      {$PASSWORD} – password for ESXi hypervisor
      {$USERNAME} - username for ESXi hypervisor

      Comment

      • ehermouet
        Member
        • May 2011
        • 50

        #168
        HI,

        tks for reply

        it's ml350 G6
        and ml350p gen8

        just before your answer now it's work i have install offline bundle.
        i will try on zabbix 2.0 to see where the error can come

        Comment

        • dima_dm
          Senior Member
          • Dec 2009
          • 2697

          #169
          Originally posted by ehermouet
          just before your answer now it's work i have install offline bundle.
          i will try on zabbix 2.0 to see where the error can come
          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.

          Comment

          • ehermouet
            Member
            • May 2011
            • 50

            #170
            on zabbix 2.0 i have unsupported...

            well maybe ->

            this /etc/zabbix/zabbix_agentd.conf
            Timeout=30

            ### VMWare WBEM Monitoring
            UserParameter=WBEM[*],/etc/zabbix/zabbix_wbem_vmware.pl $1 $2 $3
            UserParameter=NumericSensor[*],egrep -i "SMX_NumericSensor_$2:" /tmp/vmware_$1.txt|sed 's/.*\t//'
            UserParameter=Temperature[*],egrep -i "Temperature_$2:" /tmp/vmware_$1.txt|sed 's/.*\t//'
            .......
            ### End VMWare Perl API Monitoring


            For monitoring hardware I use script
            /etc/zabbix/zabbix_wbem_vmware.pl IP password username

            For monitoring software I use script
            /etc/zabbix/zabbix_perl_api_vmware.pl IP password username


            it's on agent esx ? or serveur zabbix ?

            Comment

            • ehermouet
              Member
              • May 2011
              • 50

              #171
              me again )

              Server version unavailable at 'https://192.168.1.33:443/sdk/vimService.wsdl' at /usr/share/perl/5.12/VMware/VICommon.pm line 545.

              i have error message when i do -> /usr/lib/vmware-vcli/apps/performance/viperformance.pl --host esx2 --server 192.168.1.33 --countertype net --samples 1 --instance "*" --username root --password xxxx

              i do this from zabbix server. it's good ?

              Comment

              • dima_dm
                Senior Member
                • Dec 2009
                • 2697

                #172
                Originally posted by ehermouet
                it's on agent esx ? or serveur zabbix ?
                On Zabbix Server. In ESXi don't used Service Console VM.

                Comment

                • dima_dm
                  Senior Member
                  • Dec 2009
                  • 2697

                  #173
                  Originally posted by ehermouet
                  Server version unavailable at 'https://192.168.1.33:443/sdk/vimService.wsdl' at /usr/share/perl/5.12/VMware/VICommon.pm line 545.

                  i have error message when i do -> /usr/lib/vmware-vcli/apps/performance/viperformance.pl --host esx2 --server 192.168.1.33 --countertype net --samples 1 --instance "*" --username root --password xxxx

                  i do this from zabbix server. it's good ?
                  Add $ENV{'PERL_LWP_SSL_VERIFY_HOSTNAME'} = 0;
                  in zabbix_perl_api_vmware.pl

                  Comment

                  • ehermouet
                    Member
                    • May 2011
                    • 50

                    #174
                    Tks dmitry for your reply, very appreciated.

                    so i copy $ENV{'PERL_LWP_SSL_VERIFY_HOSTNAME'} = 0; on the begining of perl file but same result i must execute export on ubuntu. so now i have this error -> host it's host name on zabbix server ? because it's the name and it print host not found.

                    /usr/lib/vmware-vcli/apps/performance/viperformance.pl --host esx2 --server 192.168.1.33 --countertype net --samples 1 --instance "*" --username root --password xxx
                    Host esx2 not found.

                    edit

                    /etc/zabbix/zabbix_perl_api_vmware.pl 192.168.1.33 xxxroot
                    0

                    i have my exported file coool

                    but with wbem error 5 :s when i do /usr/bin/wbemcli -nl ei -noverify "https://root:[email protected]/root/hpq:SMX_FAN" on putty i have my data :s but not with script.
                    Last edited by ehermouet; 13-09-2012, 10:56.

                    Comment

                    • dima_dm
                      Senior Member
                      • Dec 2009
                      • 2697

                      #175
                      Originally posted by ehermouet
                      Tks dmitry for your reply, very appreciated.

                      so i copy $ENV{'PERL_LWP_SSL_VERIFY_HOSTNAME'} = 0; on the begining of perl file but same result i must execute export on ubuntu. so now i have this error -> host it's host name on zabbix server ? because it's the name and it print host not found.

                      /usr/lib/vmware-vcli/apps/performance/viperformance.pl --host esx2 --server 192.168.1.33 --countertype net --samples 1 --instance "*" --username root --password xxx
                      Host esx2 not found.
                      No. In this util --host is name of ESX (see in vSphere Client, сheck char register in name).
                      Originally posted by ehermouet
                      but with wbem error 5 :s when i do /usr/bin/wbemcli -nl ei -noverify "https://root:[email protected]/root/hpq:SMX_FAN" on putty i have my data :s but not with script.
                      See in vSphere Client ->Hardware Status
                      Do you see FAN devices?
                      May be in you hardware not all components of server have monitoring chip, or server don't have FAN, as in Blade Servers, where FAN on chassis.

                      See monitoring devices list in script zabbix_wbem_vmware.pl
                      my %WBEM=(
                      "SMX_NumericSensor" =>["DeviceID","OperationalStatus","CurrentReading "]
                      ,"SMX_FAN" =>["Name","OperationalStatus"]
                      ,"SMX_Processor" =>["DeviceID","OperationalStatus"]
                      ,"SMX_Memory" =>["Name","OperationalStatus"]
                      ,"SMX_PowerSupplyModule"=>["Name","OperationalStatus"]
                      ,"SMX_SAArraySystem" =>["","OperationalStatus"]
                      );
                      You can delete missing devices.
                      Last edited by dima_dm; 13-09-2012, 11:38.

                      Comment

                      • ehermouet
                        Member
                        • May 2011
                        • 50

                        #176
                        Originally posted by dima_dm
                        No. In this util --host is name of ESX (see in vSphere Client, сheck char register in name).

                        See in vSphere Client ->Hardware Status
                        Do you see FAN devices?
                        May be in you hardware not all component of server have monitoring chip, or server don't have FAN, as in Blade Servers, where FAN on chassis.
                        on vi i see all status of all hardware.
                        it's esx 4.1 not esxi i don't know if there is little change.

                        yes it's work for name it's case sensitive. tks

                        Comment

                        • ehermouet
                          Member
                          • May 2011
                          • 50

                          #177
                          It's #,"SMX_Memory" =>["Name","OperationalStatus"]

                          when i coment it it works. do you know how to correct it ?

                          tks advance

                          Comment

                          • dima_dm
                            Senior Member
                            • Dec 2009
                            • 2697

                            #178
                            Originally posted by ehermouet
                            It's #,"SMX_Memory" =>["Name","OperationalStatus"]

                            when i coment it it works. do you know how to correct it ?

                            tks advance
                            See HP Wbem manual, may be in you servers use other WBEM class. Do you see memory status in vSphere Client ->Hardware Status?
                            Last edited by dima_dm; 13-09-2012, 12:05.

                            Comment

                            • ehermouet
                              Member
                              • May 2011
                              • 50

                              #179
                              Originally posted by dima_dm
                              See HP Wbem manual, may be in you servers use other WBEM class. Do you see memory status in vSphere Client ->Hardware Status?
                              you have wright, memory result blank.
                              on vi client i have only memory but not all memory status.

                              Comment

                              • ehermouet
                                Member
                                • May 2011
                                • 50

                                #180
                                How zabbix take information from txt file ? because on my graph i have no data and maybe there is an error in my template or config file.

                                i do interval 60s and cron every min.

                                Comment

                                Working...