host agent 기동시 SigarException발생
host agent기동시 아래 메세지와 같은 에러가 발생합니다. host agent버전은 2.x, 1.x ,0.x대 모두 테스트해봤는데 동일한 현상이 발생합니다.
환경 : Windows 2012 R2 Standard / java 1.7
에러메세지 :
20200824 15:15:31 Version 1.7.3.1 2017-08-21 11:58 GMT
20200824 15:15:31 [A113] Counter Collector Started (#5)
20200824 15:15:31 [A10] host agent boot seed=xo30fhn1lk
20200824 15:15:31 [A01] Scouter Host Agent Version 1.7.3.1 2017-08-21 11:58 GMT
20200824 15:15:32 [A119] Agent UDP local.port=0
20200824 15:15:32 [A145] SigarException trying to stat file system device E:
org.hyperic.sigar.SigarException: The device is not ready.
: E:
org.hyperic.sigar.SigarProxyCache.invoke(SigarProxyCache.java:220)
com.sun.proxy.$Proxy2.getFileSystemUsage(Unknown Source)
scouter.agent.counter.task.HostNetDiskPerf.diskIO(HostNetDiskPerf.java:154)
scouter.agent.counter.task.HostNetDiskPerf.process(HostNetDiskPerf.java:81)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:606)
scouter.agent.counter.CounterExecutingManager$Invocation.process(CounterExecutingManager.java:93)
scouter.agent.counter.CounterExecutingManager.run(CounterExecutingManager.java:58)
20200824 15:15:33 [INFO] Num of Cpu Cores : 2
Scouter Host Agent가 OS정보 수집을 Sigar 라이브러를 사용하고 해당 라이브러리에서 발생하는 Exception이나 수정이 필요하나 개발이 중단(GitHub 기준 2010년)되어 더 이상 Release되지 않습니다.
따라서 Workaround로 ODD드라이브에 대해 드라이브 문자를 제거하시면 됩니다.
diskmgmt.msc 실행 → 드라이브 문자 및 경로 변경 → 제거
<드라이브 제거전>
20220416 19:58:30 Version 2.17.1 2022-03-27 04:35 GMT
20220416 19:58:30 [A113] Counter Collector Started (#6)
20220416 19:58:30 [A10] host agent boot seed=x18mgp0cen1
20220416 19:58:30 [A01] Scouter Host Agent Version 2.17.1 2022-03-27 04:35 GMT
20220416 19:58:31 [A119] Agent UDP local.port=0
20220416 19:58:31 [A145] SigarException trying to stat file system device F:\
org.hyperic.sigar.SigarException: The device is not ready.
: F:\
org.hyperic.sigar.SigarProxyCache.invoke(SigarProxyCache.java:220)
com.sun.proxy.$Proxy2.getFileSystemUsage(Unknown Source)
scouter.agent.counter.task.HostNetDiskPerf.diskIO(HostNetDiskPerf.java:154)
scouter.agent.counter.task.HostNetDiskPerf.process(HostNetDiskPerf.java:81)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)
scouter.agent.counter.CounterExecutingManager$Invocation.process(CounterExecutingManager.java:93)
scouter.agent.counter.CounterExecutingManager.run(CounterExecutingManager.java:58)
20220416 19:58:32 [INFO] Num of Cpu Cores : 4
<드라이브 제거후>
20220416 20:02:46 Version 2.17.1 2022-03-27 04:35 GMT
20220416 20:02:46 [A113] Counter Collector Started (#6)
20220416 20:02:46 [A10] host agent boot seed=x10lgp0k89p
20220416 20:02:46 [A01] Scouter Host Agent Version 2.17.1 2022-03-27 04:35 GMT
20220416 20:02:47 [A119] Agent UDP local.port=0
20220416 20:02:47 [INFO] Num of Cpu Cores : 4