Ad Widget

Collapse

Zabbix_get with JMX issue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • isurugiu
    Junior Member
    • Apr 2015
    • 13

    #1

    Zabbix_get with JMX issue

    Hi all I have this issue:

    I am getting

    zabbix_get -slocalhost -kjmx[java.lang:type=Threading, ThreadCount]
    ZBX_NOTSUPPORTED


    However in the web interface everything is being reported fine. Is there a special way zabbix_get is to be used in conjunction with JMX?

    Best,
    -Iulian
  • ingus.vilnis
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Mar 2014
    • 908

    #2
    Hi,

    Zabbix_get can be used only with agent interface items and not with JMX.

    Best Regards,
    Ingus

    Comment

    • isurugiu
      Junior Member
      • Apr 2015
      • 13

      #3
      Thank you Ingus,

      So is it there like an easy way to test the JMX item definition/syntax?

      Best,
      -Iulian

      Comment

      • isurugiu
        Junior Member
        • Apr 2015
        • 13

        #4
        Zbx_notsupported

        Is there a path to troubleshoot ZBX_NOTSUPPORTED and Not Supported messages when defining or using zabbix_get for Items?

        Additionally is there a way to test calculated items?

        Regards,
        -Iulian

        Comment

        • ingus.vilnis
          Senior Member
          Zabbix Certified Trainer
          Zabbix Certified SpecialistZabbix Certified Professional
          • Mar 2014
          • 908

          #5
          Hi Iulian,

          Zabbix_get can only be used for getting data from items which are processed by Zabbix agent. JMX items are processed by Zabbix Java gateway so you cannot use zabbix_get here. As of now I cannot think of any easy ways to test JMX keys for syntax.

          Which version of Zabbix server are you using? In 2.4 it gives you pretty detailed information why the item is not supported. And depending on that information you can then continue.

          If you get ZBX_NOTSUPPORTED with zabbix_get then in most cases there is a syntax error in key or some permission issues. To troubleshoot it you can switch the agent in DebugLevel=4 and then see the zabbix_agentd.log file what exact messages does the system return to specific requests.

          Calculated items are processed for already collected other items. I prefer to test them in web frontend. They will become not supported again because of syntax errors in formula or maybe simply because there is no data to process in the other items used in the calculated formula.

          Create some simple dummy items and some calculated ones to see how you can build more complicated calculations around your items.

          Best Regards,
          Ingus

          Comment

          • LenR
            Senior Member
            • Sep 2009
            • 1005

            #6
            Check out http://zabbix.org/wiki/Docs/howto/zabbix_get_jmx

            Comment

            Working...