LogStare Collector 仕様・不具合

【不具合】停止・起動処理を誤ると停止処理を受け付けなくなる

事象

Linux版LSCにおいて、stop_kallista.shにて停止処理が終了する前にstart_kallista.shを実行すると、エラーログが出力されて、その後stop_kallista.shを受け付けなくなる。
(LSC自体は稼働する)

対策

Javaのプロセス(LSCプログラム)を手動でkillする。

<手順>
※管理者権限にて実行下さい。

ps -ef | grep -i "java"      #Java プロセスのプロセスIDを確認
kill -9 [プロセスID]           #Javaプロセスをkill

<参考ログ>

[root@LSC_Cloud_Lnx01 ~]# /usr/local/logstarecollector/sbin/stop_kallista.sh
java.net.ConnectException: 接続を拒否されました (Connection refused)
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at java.net.Socket.connect(Socket.java:538)
at java.net.Socket.<init>(Socket.java:434)
at java.net.Socket.<init>(Socket.java:244)
at org.eclipse.jetty.start.Main.stop(Main.java:1061)
at org.eclipse.jetty.start.Main.processCommandLine(Main.java:189)
at org.eclipse.jetty.start.Main.main(Main.java:94)

Usage: java -jar start.jar [options] [properties] [configs]
java -jar start.jar --help # for more information
[root@LSC_Cloud_Lnx01 ~]#
[root@LSC_Cloud_Lnx01 ~]#
[root@LSC_Cloud_Lnx01 ~]# ps -ef |grep -i "java"
root 11426 1 64 17:04 ? 01:43:41 /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-3.b13.el7_5.x86_64/jre//bin/java -Xss256K -Xmx512m -Xms128m -Dsa_kallista_home=/usr/local/logstarecollector -Djava.io.tmpdir=/usr/local/logstarecollector/app_tmp -Dorg.apache.jasper.compiler.disablejsr199=true -Djdk.http.auth.tunneling.disabledSchemes= -jar /usr/local/logstarecollector/lib/jetty-runner-9.4.0.v20161208.jar --port 80 --stop-port 17081 --stop-key kallista --path / --log /usr/local/logstarecollector/logs/http.yyyy_mm_dd.log /usr/local/logstarecollector/webapp/lsc.war
root 21743 19071 0 19:44 pts/1 00:00:00 grep --color=auto -i java
[root@LSC_Cloud_Lnx01 ~]#
[root@LSC_Cloud_Lnx01 ~]#
[root@LSC_Cloud_Lnx01 ~]# kill -9 11426
[root@LSC_Cloud_Lnx01 ~]#
[root@LSC_Cloud_Lnx01 ~]#
[root@LSC_Cloud_Lnx01 ~]# ps -ef |grep -i "java"
root 22154 19071 0 19:44 pts/1 00:00:00 grep --color=auto -i java
[root@LSC_Cloud_Lnx01 ~]#
[root@LSC_Cloud_Lnx01 ~]#
[root@LSC_Cloud_Lnx01 ~]# /usr/local/logstarecollector/sbin/start_kallista.sh
Port(80) is free
Port(17081) is free
Port(514) is free
[root@LSC_Cloud_Lnx01 ~]# 2019-02-06 19:45:14.432:INFO::main: Logging initialized @312ms to org.eclipse.jetty.util.log.StdErrLog
2019-02-06 19:45:14.449:INFO:oejr.Runner:main: Runner
2019-02-06 19:45:15.240:INFO:oejs.Server:main: jetty-9.4.0.v20161208
2019-02-06 19:45:20.650:INFO:oeja.AnnotationConfiguration:main: Scanning elapsed time=3373ms
2019-02-06 19:45:20.948:INFO:/:main: No Spring WebApplicationInitializer types detected on classpath
2019-02-06 19:45:21.077:WARN:oeju.DeprecationWarning:main: Using @Deprecated Class org.springframework.web.util.Log4jConfigListener
2019-02-06 19:45:21.081:INFO:oejs.session:main: DefaultSessionIdManager workerName=node0
2019-02-06 19:45:21.081:INFO:oejs.session:main: No SessionScavenger set, using defaults
2019-02-06 19:45:21.087:INFO:oejs.session:main: Scavenging every 660000ms
log4j:WARN No appenders could be found for logger (org.apache.ibatis.logging.LogFactory).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
initializing logtable. wait please!
logtable completed. 3(ms)
Cache initializing start. wait please!
Cache completed. 2046(ms)
2019-02-06 19:45:28.169:INFO:/:main: Set web app root system property: 'webapp.root' = [/usr/local/logstarecollector/app_tmp/jetty-0.0.0.0-80-lsc.war-_-any-7464675905335921060.dir/webapp]
2019-02-06 19:45:28.172:INFO:/:main: Initializing log4j from [file:/usr/local/logstarecollector/etc/log4j.xml]
2019-02-06 19:45:28.193:INFO:/:main: Initializing Spring root WebApplicationContext
2019-02-06 19:45:29.287:INFO:/:main: Initializing Spring FrameworkServlet 'appServlet'
2019-02-06 19:45:31.692:INFO:oejsh.ContextHandler:main: Started o.e.j.w.WebAppContext@64c64813{/,file:///usr/local/logstarecollector/app_tmp/jetty-0.0.0.0-80-lsc.war-_-any-7464675905335921060.dir/webapp/,AVAILABLE}{file:///usr/local/logstarecollector/webapp/lsc.war}
2019-02-06 19:45:31.715:INFO:oejs.AbstractNCSARequestLog:main: Opened /usr/local/logstarecollector/logs/http.2019_02_06.log
2019-02-06 19:45:31.720:INFO:oejs.AbstractConnector:main: Started ServerConnector@19f7222e{HTTP/1.1,[http/1.1]}{0.0.0.0:80}
2019-02-06 19:45:31.720:INFO:oejs.Server:main: Started @17635ms
<2019-02-06 19:48:27> <DEBUG> <NativeBridge> <initialize ()>
<2019-02-06 19:48:27> <DEBUG> <NativeBridge> <trying delegate UnixJniNativeBridge>
<2019-02-06 19:48:27> <INFO> <JniUtil> <loadLibrary trying to load icmp4jJNI from java.library.path>
<2019-02-06 19:48:27> <WARN> <JniUtil> <loadLibrary can't load icmp4jJNI from java.library.path exception java.lang.UnsatisfiedLinkError, errorMessage: no icmp4jJNI in java.library.path>
<2019-02-06 19:48:27> <DEBUG> <SystemUtil> <findResourceAsStream (): resource /libicmp4jJNI_64bit.so found>
<2019-02-06 19:48:27> <DEBUG> <SystemUtil> <creating temp library: /usr/local/logstarecollector/tmp/icmp4j/loadLibrary-libicmp4jJNI_64bit.so/2019-02-06_19-48-27_1>
<2019-02-06 19:48:27> <INFO> <JniUtil> <extracted lib in : /usr/local/logstarecollector/tmp/icmp4j/loadLibrary-libicmp4jJNI_64bit.so/2019-02-06_19-48-27_1>
<2019-02-06 19:48:27> <INFO> <NativeBridge> <using icmp4jJNI v 1.0.1>
javax.mail.MessagingException: Can't send command to SMTP host;
nested exception is:
java.net.SocketException: Connection closed by remote host
at com.sun.mail.smtp.SMTPTransport.sendCommand(SMTPTransport.java:2157)
at com.sun.mail.smtp.SMTPTransport.sendCommand(SMTPTransport.java:2144)
at com.sun.mail.smtp.SMTPTransport.close(SMTPTransport.java:1210)
at javax.mail.Transport.send0(Transport.java:197)
at javax.mail.Transport.send(Transport.java:124)
at com.secuavail.lsc.utils.mail.a.a(SendEmail.java:139)
at com.secuavail.lsc.utils.mail.a.a(SendEmail.java:267)
at com.secuavail.lsc.utils.mail.a.a(SendEmail.java:421)
at com.secuavail.lsc.utils.mail.a.b(SendEmail.java:327)
at com.secuavail.lsc.utils.mail.a.a(SendEmail.java:309)
at com.secuavail.lsc.monitor.collection.support.base.a.a(AbstractActionSupport.java:812)
at com.secuavail.lsc.monitor.collection.support.base.a.a(AbstractActionSupport.java:743)
at com.secuavail.lsc.monitor.collection.support.action.snmp.d.a(SnmpMonitoringActionSupportNetStare.java:470)
at com.secuavail.lsc.monitor.collection.a.a(CollectionMonitorObject.java:135)
at com.secuavail.lsc.monitor.collection.a.a(CollectionMonitorObject.java:120)
at com.secuavail.lsc.monitor.engine.a$1.d(MonitorThread.java:552)
at com.secuavail.lsc.monitor.engine.a$1.run(MonitorThread.java:280)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.SocketException: Connection closed by remote host
at sun.security.ssl.SSLSocketImpl.checkWrite(SSLSocketImpl.java:1565)
at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:71)
at com.sun.mail.util.TraceOutputStream.write(TraceOutputStream.java:128)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
at com.sun.mail.smtp.SMTPTransport.sendCommand(SMTPTransport.java:2155)
... 19 more

記載されている会社名、システム名、製品名は一般に各社の登録商標または商標です。

当社製品以外のサードパーティ製品の設定内容につきましては、弊社サポート対象外となります。

Cisco 製品にSNMP (v1, v2c) / Syslog の設定を追加する (Cisco Catalyst, ASA, Router )前のページ

ネットワーク機器への不正接続の検知(PaloAlto)次のページ

ピックアップ記事

  1. Zabbixヒストリデータのレポート生成について
  2. 自社製品をAMIにしてAWSマーケットプレイスへ出品
  3. ログフォワーダー「okurun.jar」について
  4. IoT機器「Raspberry pi」とLogStare Collectorで温…

関連記事

  1. LogStare Collector 仕様・不具合

    【仕様】LogStare Collectorにおけるデバイス一括登録の可否

    LogStare Collectorにはデバイスの一括登録機能はござい…

  2. LogStare Collector 仕様・不具合

    【仕様】Ping監視の処理開始時刻と監視間隔の関係

    Ping監視は、負荷を避ける為に1台づつ5秒の間隔で処理を開始する仕様…

secuavail

logstare collector

logstare collector

  1. ログ分析・監視テクニック

    nProbeであらゆる通信をログに記録し可視化する
PAGE TOP