Ad Widget

Collapse

How to monitor VMWARE Machines from Zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ufocek
    Senior Member
    • Aug 2006
    • 161

    #1

    How to monitor VMWARE Machines from Zabbix

    Hi

    I find site where author write how to monitor vmware virtual machine with zabbix , but when I add trigger expresion:
    {Templates_VMware:vmware.played1.str(on)}=0
    I have get error

    Function (str) available only for items with value types [Character,Log]
    Incorrect value type [Numeric (integer 64bit)] for function (str) of key (Templates_VMware:vmware.played1)



    Maby someone monitoring vmware machine and could help me?

    Regards,
    Albert
  • Kees Jan Koster
    Member
    • Oct 2007
    • 83

    #2
    This is not a VMWare problem. This is a data type problem. Read the error message closely, what does it say about the type you use in your item and what you do with it in the trigger?

    Comment

    • ufocek
      Senior Member
      • Aug 2006
      • 161

      #3
      Yes, I now with not a problem vmware , this is a problem zabbix If you see author not write which version zabbix using, I'm used zabbix 1.4.4.

      UserParameter=vmware.played1,/usr/bin/vmware-cmd /path/vm1.vmx getstate | sed "s/.*= //"
      return -> on
      UserParameter=vmware.heart1,/usr/bin/vmware-cmd /path/vm1.vmx getheartbeat | sed "s/.*= //"
      return -> 0
      Items

      First item:

      * Description: VMWare VM1 is played
      * Type: Zabbix agent
      * Key: vmware.played1
      * Applications: VMWare

      Second item:

      * Description: VMWare VM1 is working
      * Type: Zabbix agent
      * Key: vmware.heart1
      * Applications: VMWare
      Trigger

      First trigger: -> this is not working

      * Name: VMWare VM1 is played
      * Expression: {Template_VMWARE:vmware.played1.str(on)}=0
      * Severity: HIGH
      "
      Function (str) available only for items with value types [Character,Log]
      Incorrect value type [Numeric (integer 64bit)] for function (str) of key (Templates_VMware:vmware.played1)"

      maybe function str replace to another function?


      Second trigger:

      * Name: VMWare VM1 is working
      * Expression: {Template_VMWARE:vmware.heart1.change(0)}<1
      * Severity: HIGH

      Comment

      • Kees Jan Koster
        Member
        • Oct 2007
        • 83

        #4
        The error message says it all: you try to do a string comparison on an integer item. Looking at you user parameter, it seems to me that you have the data type set wrong on the item.

        Comment

        Working...