Currently I have defined an item for the apache service status with the following SNMP OID expression and it works correctly
SNMP OID: HOST-RESOURCES-MIB::hrSWRunStatus["index","HOST-RESOURCES-MIB::hrSWRunParameters", "-Djava.util.logging.config.file=/usr/share/apache-tomcat-8.5.6//conf/logging.properties -Djava.util.logging.manager=org.apache.j"]
I would like to modify the SNMP OID to contemplate another possible string
"-Djava.util.logging.config.file=/var/lib/tomcat9/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLo ader"
I have modified SNMP OID with the following line but I get the error "Cannot find index of "^(-Djava)*$"
HOST-RESOURCES-MIB::hrSWRunStatus["index","HOST-RESOURCES-MIB::hrSWRunParameters", ^(-Djava)*$]
Comment