Ad Widget

Collapse

ESXi 4.0 Hardware and Software Monitoring VMWare

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Alain Ganuchaud
    Member
    Zabbix Certified Trainer

    • Mar 2009
    • 49

    #16
    I had this problem, may be the author can correct.

    Have a look in details (click on the word details, go at the end of listing) when the import fails, I think a trigger was the cause. Edit the XML file, delete the gulty trigger and reimport the XML file (or correct the trigger syntax).

    For your info, I reused this solution with external scripts instead of agents and added some checks issued from resxtop, I will package that and add this to this thread asap.

    Hope this can help.
    Alain

    Comment

    • dima_dm
      Senior Member
      • Dec 2009
      • 2697

      #17
      Originally posted by Toepfer

      9) Import of Template to Zabbix: Template_VMWare_HP_DL360_G6_ESXi4.1.xml
      Error:
      zabbix Not allowed symbols or sequence of symbols in expression element detected
      and a lot of code in red
      You can import Template_VMWare_HP_DL360_G6.xml, and change unsupported item keys via Zabbix Web interface.
      Last edited by dima_dm; 15-11-2010, 16:42.

      Comment

      • Toepfer
        Junior Member
        • Nov 2010
        • 9

        #18
        Thx for your fast replies and Infos.

        When I import Template_VMWare_HP_DL360_G6.xml (fromESXi4_VMWare.2010.10.01) I get the following Errors:

        Not allowed symbols or sequence of symbols in expression element detected: Check expression part starting from ' {Template_VMWare_HP_DL360_G6:NumericSensor[{$HOST},0].last(0)}#2 | {Template_VMWare_HP_DL360_G6:NumericSensor[{$HOST},1].last(0)}#2| {Template_VMWare_HP_DL360_G6:NumericSensor[{$HOST},2].last(0)}#2| {Template_VMWare_HP_DL360_G6:NumericSensor[{$HOST},3].last(0)}#2| {Template_VMWare_HP_DL360_G6:NumericSensor[{$HOST},4].last(0)}#2| {Template_VMWare_HP_DL360_G6:NumericSensor[{$HOST},5].last(0)}#2| {Template_VMWare_HP_DL360_G6:NumericSensor[{$HOST},6].last(0)}#2| {Template_VMWare_HP_DL360_G6:NumericSensor[{$HOST},7].last(0)}#2| {Template_VMWare_HP_DL360_G6:NumericSensor[{$HOST},8].last(0)}#2| {Template_VMWare_HP_DL360_G6:NumericSensor[{$HOST},9].last(0)}#2| {Template_VMWare_HP_DL360_G6:NumericSensor[{$HOST},10].last(0)}#2| {Template_VMWare_HP_DL360_G6:NumericSensor[{$HOST},11].last(0)}#2| {Template_VMWare_HP_DL360_G6:NumericSensor[{$HOST},12].last(0)}#2| {Template_VMWare_HP_DL360_G6:NumericSensor[{$HOST},13].last(0)}#2| {Template_VMWare_HP_DL360_G6:NumericSensor[{$HOST},14].last(0)}#2| {Template_VMWare_HP_DL360_G6:NumericSensor[{$HOST},15].last(0)}#2| {Template_VMWare_HP_DL360_G6:NumericSensor[{$HOST},16].last(0)}#2| {Template_VMWare_HP_DL360_G6:NumericSensor[{$HOST},17].last(0)}#2| {Template_VMWare_HP_DL360_G6:NumericSensor[{$HOST},18].last(0)}#2| {Template_VMWare_HP_DL360_G6:NumericSensor[{$HOST},19].last(0)}#2| {Template_VMWare_HP_DL360_G6:NumericSensor[{$HOST},20].last(0)}#2| '
        Trigger [Temperature Failure ]: cannot create

        Comment

        • dima_dm
          Senior Member
          • Dec 2009
          • 2697

          #19
          You can delete symbol “|” before </expression> in Trigger [Temperature Failure].
          Last edited by dima_dm; 15-11-2010, 20:41.

          Comment

          • Toepfer
            Junior Member
            • Nov 2010
            • 9

            #20
            Perefect, this fixed the problem regarding Import.

            After adding the host using your Template and .pl files the Agent Connection of this Host stays red and does not turn green.

            On the ESXi are no Agents installed beause I would like to use WBEM for the HP InsightManager Agents.

            Do I only need to disable the ZabbixAgent Items or do I have to install the Zabbix Agent on the ESXi machine or did I miss something else?

            Comment

            • Toepfer
              Junior Member
              • Nov 2010
              • 9

              #21
              I bother you hopefully for the last Time,

              The ...api.pl is running now, the only problem I have is the ..wbem.pl.

              In zabbix_agentd.log I get the error:
              readline() on closed filehandle DF at /etc/zabbix/zabbix_wbem_vmware.pl line 85.

              And in the Zabbix GUI I get WBEM monitoring error

              How can I fix this?

              Comment

              • dima_dm
                Senior Member
                • Dec 2009
                • 2697

                #22
                Originally posted by Toepfer
                In zabbix_agentd.log I get the error:
                readline() on closed filehandle DF at /etc/zabbix/zabbix_wbem_vmware.pl line 85.
                You should Check programm /usr/bin/wbemcli.

                16.11.2010 New XML template is added.

                Comment

                • Toepfer
                  Junior Member
                  • Nov 2010
                  • 9

                  #23
                  wbemcli is installed, I add the screenshot of /usr/bin/ and the files starting with wbem..
                  Attached Files

                  Comment

                  • dima_dm
                    Senior Member
                    • Dec 2009
                    • 2697

                    #24
                    Originally posted by Toepfer
                    wbemcli is installed, I add the screenshot of /usr/bin/ and the files starting with wbem..
                    Check
                    su - zabbix
                    /usr/bin/wbemcli ei -noverify "https://root:[email protected]/root/hpq:SMX_FAN"
                    where
                    172.16.38.103 - You IP
                    Password - You Password

                    Comment

                    • Toepfer
                      Junior Member
                      • Nov 2010
                      • 9

                      #25
                      OK, the first attempt was Access denied.
                      I have then granted read rights for other users and allow execute of the file wbemcli

                      After the second try I just get an blinking cursor without any message.

                      Comment

                      • Toepfer
                        Junior Member
                        • Nov 2010
                        • 9

                        #26
                        WBEM works now , you where absolutely right with your hint, Thx

                        What do I need todo as I have 3 ESXi Servers to add the other servers?
                        Do I need to create a Template, seperate .pl files for each server and add additional WBEM, API code section to the zabbix_agentd.conf.

                        Am I wrong or is there another solution?

                        Comment

                        • dima_dm
                          Senior Member
                          • Dec 2009
                          • 2697

                          #27
                          Originally posted by Toepfer
                          Do I need to create a Template, seperate .pl files for each server and add additional WBEM, API code section to the zabbix_agentd.conf.
                          1) You should create 3 hosts with Template Template_VMWare_HP_DL360_G6
                          2) Create Macros on each hosts
                          {$HOST} - IP address of ESXi hypervisor
                          {$PASSWORD} – password for ESXi hypervisor
                          {$USERNAME} - username for ESXi hypervisor

                          http://www.zabbix.com/documentation/.../config/macros
                          Code:
                          Zabbix substitutes macros according to the following precedence: 
                          host macros (checked first)
                          macros defined for templates of the host. Zabbix will check templates of deeper level taking into account template inheritance.
                          global macros (checked last)
                          Last edited by dima_dm; 16-11-2010, 15:23.

                          Comment

                          • Toepfer
                            Junior Member
                            • Nov 2010
                            • 9

                            #28
                            OK, the Template part is clear now.

                            But in the .pl files are also the ESXi IP addresses and userdata included.
                            Do I need to have multiple .pl per Host?

                            Comment

                            • dima_dm
                              Senior Member
                              • Dec 2009
                              • 2697

                              #29
                              Originally posted by Toepfer
                              OK, the Template part is clear now.

                              But in the .pl files are also the ESXi IP addresses and userdata included.
                              Do I need to have multiple .pl per Host?
                              No. This is default value for scripts if arguments for script is not defined.

                              Comment

                              • Toepfer
                                Junior Member
                                • Nov 2010
                                • 9

                                #30
                                OK, it works perfectly, Thx

                                Can I remove the IP, username and password in the .pl files as it seems to that they are not used and taken from the template?

                                Comment

                                Working...