Cinimex/mq-java-exporter

mq_exporter.jar didnt start

SergH1N1 opened this issue · 1 comments

i cant start mq_exporter.jar.
Im run this command:

java -jar mq_exporter.jar config.yml
got this error:

> ERROR StatusLogger No Log4j 2 configuration file found. Using default configuration (logging only errors to the console), or user programmatically provided configurations. Set system property 'log4j2.debug' to show Log4j 2 internal initialization logging. See https://logging.apache.org/log4j/2.x/manual/configuration.html for instructions on how to configure Log4j 2
> Exception in thread "main" java.lang.NullPointerException
>         at ru.cinimex.exporter.Config.<init>(Config.java:68)
>         at ru.cinimex.exporter.ExporterLauncher.main(ExporterLauncher.java:42)

This is my config.yml:

`

qmgrConnectionParams:
  qmgrName: RR.EEE.EERR.DDD
  qmgrHost: 1.3.5.2
  qmgrPort: 1415
  qmgrChannel: D.SVRCONN
  user: mqm
  password: mqm
  mqscp: true
  connTimeout: 12000
  useTLS: false
  keystorePath: /opt/mq_exporter/keystores/keystore.jks
  keystorePassword: testpass2
  truststorePath: /opt/mq_exporter/keystores/truststore.jks
  truststorePassword: testpass2
  sslProtocol: TLSv1.2
  cipherSuite: TLS_RSA_WITH_AES_256_CBC_SHA256

prometheusEndpointParams:
  url: /metrics
  port: 8080

PCFParameters:
  sendPCFCommands: false
  scrapeInterval: 10
queues:
  - A.OUT
  - A.OUT1


channels:
 - D.SVRCONN

`

Please, find here updated version with default log4j configuration.