Ad Widget

Collapse

How to get the value of another Item in the Item key?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lokha
    Junior Member
    • Jun 2020
    • 15

    #1

    How to get the value of another Item in the Item key?

    Good afternoon everyone, thanks in advance for your help.

    I explain my task, which I can not implement:

    I have a JMX application.
    I made Item "jvm Working Directory", which receives the folder in which the application is running (see screenshot 1).
    The value there is in Character format, an example of the value is "/home/mcraft/servers/swt".

    In the JMX folder of the application there is a log file /home/mcraft/servers/swt/logs/latest.log
    I want to make this log be scanned by a separate Item 'Login per minute' via the key:
    Code:
    log.count[/home/mcraft/servers/swt/logs/latest.log,Join to server]
    But here is the problem, I cannot use the static path in log.count, because I do not know in advance in which folder the application will be executed.
    But this information is in the Item "jvm Working Directory", is there any way to get it from there in order to use it in the Item "Login per minute"?

    Zabbix version 5.0
    Attached Files
Working...