Ad Widget

Collapse

Testing Zabbix Agent item works, but not in Latest Data

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lolstrup
    Junior Member
    • Jul 2021
    • 11

    #1

    Testing Zabbix Agent item works, but not in Latest Data

    I made a simple Zabbix Agent item directly on a host to check if a process is running:
    Code:
    proc.num[,root,,{$TOMCAT_REGEX}]
    I also added the {$TOMCAT_REGEX} macro to the host, of course: ^/usr/bin/java -Djava.util.logging.config.file=/app/tomcat/tomcat-
    Then I made a value mapping. If it equals 2 => Up, and if it is less than two => Down.

    When I test the item, the result shows 2 (and correctly mapped to Up).
    So I saved it and checked Latest Data for the host, which is updated correctly every minute, and it just shows 0 (Down).

    I also tried "hardcoding" the value into the key, and removing the value mapping, but got the same result.

    What am I doing wrong?
    Last edited by lolstrup; 02-02-2022, 11:37.
Working...