Ad Widget

Collapse

Problem in trigger creaton of custom script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • raunjuu
    Junior Member
    • Oct 2024
    • 1

    #1

    Problem in trigger creaton of custom script

    Hello,

    I am trying to use some guys made custom script for .jks certificate file certificate monitoring:


    However when I want to import the triggers the expressions do not work. I tried to do it to template.xml it also does not work. It does not like to seem to want this part:
    JVM keystore:jvm.keystore.enddate[{#KEYALIAS}].last()} - {JVM keystore:jvm.keystore.enddate[{#KEYALIAS}].now()
    Somehting has changed between zabbix versions over time so now it wont accept this expression?

    Any workaround on how I can construct this expression without reworking the script?
  • ISiroshtan
    Senior Member
    • Nov 2019
    • 324

    #2
    The thing was written for Zabbix v, 5.2 or earlier. The syntax of triggers was changed in version 5.4
    You'd need to go to documentation about Zabbix 5.0 - link - check what trigger supposed to do based on function they use in that github solution, then go to functions of modern version - link - find corresponding function - rewrite the expression for modern syntax

    Comment

    Working...