블로그 이미지
bedbmsguru

Notice

Recent Post

Recent Comment

Recent Trackback

Archive

calendar

1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30
  • total
  • today
  • yesterday

'2017/11'에 해당되는 글 2건

  1. 2017.11.08 Backup 및 Restore 진행현황 쿼리
  2. 2017.11.08 zabbix Active Agent를 사용한 Host 자동등록
2017. 11. 8. 16:05 SQL SERVER
Backup , Restore 진행현황을 %로 보여줌


SELECT session_id as SPID, command, a.text AS Query, start_time, percent_complete,
      dateadd(second,estimated_completion_time/1000, getdate()) as estimated_completion_time
FROM sys.dm_exec_requests r CROSS APPLY sys.dm_exec_sql_text(r.sql_handle) a

WHERE r.command in ('BACKUP DATABASE','RESTORE DATABASE');




posted by bedbmsguru
2017. 11. 8. 15:08 Zabbix



zabbix는  서버에서 Host 등록을 하고 agent 설치를 진행한다.  Host에 등록하지 않고 모니터링 대상 서버를 등록하는 방법



1. Zabbix 서버 설정


Zabbix 서버의 메뉴 Configuration --> Actions -->Event Source -->Auto Registration(선택)


Create Action --> Condition(메뉴선택) Host metadata like Windows(윈도우일경우) -->Add


Operations(메뉴선택) --> Operation type --> Link to template 선택 -->적용할 template(Template OS Windows) 선택 --> Add

필요할 경우 

Operation type --> Add To Hostgroup으로 원하는 그룹에 등록 가능


  • Name: Windows host autoregistration
  • Conditions: Host metadata like Windows
  • Operations: Link to templates: Template OS Windows



 2. Zabbix Agent 설정


zabbix_agentd.conf 파일수정


(1) ServerActive=10.0.0.1 (zabbix 서버IP)

(2) HostMetadataItem=system.uname

HostMetadataItem 정보에 OS가  포함되어있음

Ex) 

Windows: Windows WIN-0PXGGSTYNHO 6.0.6001 Windows Server 2008 Service Pack 1 Intel IA-32

Linux: Linux server3 3.2.0-4-686-pae #1 SMP Debian 3.2.41-2 i686 GNU/Linux



아래메뉴얼 참고

https://www.zabbix.com/documentation/3.0/manual/discovery/auto_registration


posted by bedbmsguru