--- UBiMonitorAgent 설치 ---

[기능]
DB서버의 건강(?) 상태를 원격 모니터링 한다.
App서버에 http://서비스ip:5000/monitor.html를 부라우져에서 호출하면 app 서버의 상태를 확인할 수 있고
app 서버와 연결된 DB서버의 상태까지 확인 가능하다.

[설치위치]
- 데이터베이스가 동작하는 서버에 설치해야 한다.
- 운영체제는 Windows 서버
- 설치가 성공적이라면 꼭 방화벽을 지정한포트로 열어야 한다.

[설치방법]
1. PowerShell을 관리자 권한으로 실행한다.
2. 파일이 있는 경로로 이동한다.
3. 설치커맨드를 아래와 같이 실행한다.

 PS D:\UBiAgentDeploy> .\UBiMonitorAgent.exe --install --path d:\UBiDBAgent --port 4999

=== UBi Monitor Agent - Install ===
  Install Dir : d:\UBiDBAgent
  TCP Port    : 4999

[1/5] Cleaning up... Done
[2/5] Deploying files... Done
[3/5] Config... Created (port: 4999)
[4/5] Firewall... TCP 4999 allowed
[5/5] Registering scheduled task... Done

=============================================
  Installation Complete!
=============================================
  Path      : d:\UBiDBAgent
  Port      : TCP 4999
  Config    : d:\UBiDBAgent\agent-config.json
  Logs      : d:\UBiDBAgent\logs
  Agent     : Running
  Auto Start: On system boot (10s delay)
  Restart   : On failure (every 1 min)
---------------------------------------------
  Commands:
    UBiMonitorAgent.exe --status
    UBiMonitorAgent.exe --start
    UBiMonitorAgent.exe --stop
    UBiMonitorAgent.exe --uninstall
=============================================

4. 설치가 완료되면  PS D:\UBiAgentDeploy> .\UBiMonitorAgent.exe --status 를 입력하여 설치상태를 확인한다.
PS D:\UBiAgentDeploy> .\UBiMonitorAgent.exe --status

=== UBi Monitor Agent v1.0.0 ===
  Task      : Registered
  State     : 실행 중
  Process   : Running (1)
  Port      : 4999
  Interval  : 5000ms
  Collectors: cpu, memory, disk, network, process, service
  Listening : Yes

