Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-10714

Startup Script overrides JAVA_OPTIONS

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 3.0.2
    • Java gateway (J)
    • CentOS 7 Pre-Packaged

      In packaged version of Zabbix-Java-Gateway for CentOS7 the startup script in /usr/sbin/zabbix_java_gateway override JAVA_OPTIONS at line 25

      JAVA_OPTIONS="-server $JAVA_OPTIONS"
      JAVA_OPTIONS="-Dlogback.configurationFile=/etc/zabbix/zabbix_java_gateway_logback.xml"

      so is impossibile to use java_gateway with SSL putting a JAVA_OPTIONS line in the config file

      the solution is to modify the lines this way:

      JAVA_OPTIONS="-server $JAVA_OPTIONS"
      JAVA_OPTIONS="$JAVA_OPTIONS -Dlogback.configurationFile=/etc/zabbix/zabbix_java_gateway_logback.xml"

      Note that I've found similar problem in java-Gateway 2.4 packaged for CentOS6, in the init script, but the script for CentOS7 and java_gateway 2.4 was fine.

            Unassigned Unassigned
            marcello.percoco@diennea.com Marcello Percoco
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: