[ZBX-16022] Unable to create calculated item based off jmx item Created: 2019 Apr 17  Updated: 2019 May 30  Resolved: 2019 May 30

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 4.0.5
Fix Version/s: None

Type: Incident report Priority: Major
Reporter: Eladio Caritos Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: items, jmx
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

RHEL 7


Attachments: PNG File Screen Shot 2019-04-17 at 10.14.38 AM.png    

 Description   

Steps to reproduce:

  1. Create a calculated item
  2. In the formula field, I'm referencing a JMX item.**last("hostname:jmx[\"org.apache.activemq:type=Broker,brokerName=localhost,destinationType=Topic,destinationName=XYZ\",\"EnqueueCount\"]")

 

Result:
In the info column, I get the error message:

Cannot evaluate expression: "Cannot evaluate function "last()": item "hostname:jmx["org.apache.activemq:type=Broker,brokerName=localhost,destinationType=Topic,destinationName=XYZ","EnqueueCount"]" not supported.".

Expected:
I expect the calculated item to be enable and retrieving values from the jmx host.



 Comments   
Comment by Glebs Ivanovskis [ 2019 Apr 17 ]

Error message says your JMX item is not supported. Is it true? If yes, this is likely the root cause of your issue.

Comment by Eladio Caritos [ 2019 Apr 17 ]

I've tested with other JMX item and I'm able to get data.

last("hostname:jmx[\"java.lang:type=MemoryPool,name=G1 Old Gen\",\"Usage.max\"]")

 

Yes, there is something particular about this JMX item (last("hostname:jmx[\"org.apache.activemq:type=Broker,brokerName=localhost,destinationType=Topic,destinationName=XYZ\",\"EnqueueCount\"]") but not sure exactly why this is failing

Comment by Eladio Caritos [ 2019 Apr 17 ]

Also, just for clarification,

I have created the JMX item with no issues.  The JMX associated with activemq is able to retrieve data and work with triggers.

It's only when I use that JMX item as a part of a calculated item does the errors show up.

Comment by Eladio Caritos [ 2019 Apr 26 ]

Cool.  Thanks for looking into the ticket.

Looking forward to a fix.

Comment by Oleksii Zagorskyi [ 2019 May 30 ]

Nor supported JMX item - is the key point.
Current report is not a bug, which this project is dedicated for, I'm closing it.

Generated at Fri Apr 04 15:56:19 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.