블로그 이미지
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
2018. 9. 7. 15:48 Zabbix

IO 모니터링


https://github.com/grundic/zabbix-disk-performance

posted by bedbmsguru
2018. 8. 28. 11:27 Zabbix

http://yallalabs.com/linux/how-to-monitor-mysqlmariadb-using-zabbix-server/

posted by bedbmsguru
2018. 8. 27. 10:38 오라클

http://adminid.kr/oracle/51350

posted by bedbmsguru
2018. 8. 13. 16:52 오라클

--특정테이블 index Size 조회


SELECT 
T1.owner, T1.segment_name, T1.segment_type, T1.bytes/1024/1024 SIZE_MB, T2.PRIMARY_KEY, T2.UNIQUENESS, INDEX_POS1, INDEX_POS2, INDEX_POS3, INDEX_POS4, INDEX_POS5, INDEX_POS6, INDEX_POS7, INDEX_POS8, INDEX_POS9, INDEX_POS10
FROM DBA_SEGMENTS T1
INNER JOIN 
(
SELECT * FROM TABLE(PKG_DBA_REPOSITORY.GET_INDEX_INFO('테이블이름'))
) T2
ON T1.SEGMENT_NAME = T2.INDEX_NAME



--PKG_DBA_REPOSITORY.GET_INDEX_INFO 함수 생성

http://bedbmsguru.tistory.com/101?category=793983

posted by bedbmsguru
2018. 8. 10. 08:24 SQL SERVER

https://www.mssqltips.com/sqlservertip/3598/troubleshooting-transactional-replication-latency-issues-in-sql-server/?utm_source=dailynewsletter&utm_medium=email&utm_content=headline&utm_campaign=20180809

'SQL SERVER' 카테고리의 다른 글

Index REBUILD OR REORG 쿼리  (0) 2018.10.26
알아봐요 할 DMV  (0) 2018.09.19
Replication Subscription Type 확인  (0) 2018.05.09
Backup 및 Restore 진행현황 쿼리  (0) 2017.11.08
SSMS에서 Agent Job 전체를 스크립팅  (0) 2017.10.17
posted by bedbmsguru
2018. 7. 5. 08:31 Zabbix

트리거 Flapping 방지


({TRIGGER.VALUE}=0 and {Template OS Windows2:perf_counter["\Processor Information(_Total)\% Processor Time",60].avg(#3)}>85)
or
({TRIGGER.VALUE}=1 and {Template OS Windows2:perf_counter["\Processor Information(_Total)\% Processor Time",60].avg(#3)}>65)



출처

https://blog.zabbix.com/no-more-flapping-define-triggers-the-smart-way/1488/



posted by bedbmsguru
2018. 7. 4. 16:23 오라클

https://community.oracle.com/thread/648581?tstart=0

posted by bedbmsguru
2018. 7. 4. 13:32 Zabbix

Zabbix Proxy 구성중 "zabbix_proxy - cannot connect [13] permission denied" 에러가 발생할 경우


SElinux  설정으로 발생



아래 코드 실행 

getsebool -a | grep zabbix


아래와 같이 결과가 나오게 될경우 발생하는 문제임


httpd_can_connect_zabbix --> off

zabbix_can_network --> off



아래 command를 실행하여 해결

setsebool -P zabbix_can_network on



https://www.zabbix.com/forum/zabbix-troubleshooting-and-problems/41290-zabbix_proxy-cannot-connect-13-permission-denied

'Zabbix' 카테고리의 다른 글

zabbix로 mariadb, mysql 모니터링 적용  (0) 2018.08.28
zabbix Trigger Flapping 방지  (0) 2018.07.05
Agent 컴파일 하여 설치  (0) 2018.06.22
zabbix 최소 DATA만 백업 하는법  (0) 2018.01.29
zabbix 사용자 등록  (0) 2017.12.06
posted by bedbmsguru
2018. 6. 26. 16:57 오라클

인덱스 조회용 쿼리를 필요할때마다 불러와서 실행하기가 불편해서 타이핑이 가능한 수준으로 줄였음 Package와 Function 활용



--실행

SELECT * FROM TABLE(PKG_DBA_REPOSITORY.GET_INDEX_INFO('테이블명'));



ORACLE INDEX 정보조회 FUNCTION 만들기

SELECT * FROM TABLE(PKG_DBA_REPOSITORY.GET_INDEX_INFO('테이블명'));

CREATE OR REPLACE PACKAGE PKG_DBA_REPOSITORY IS
TYPE INDEX_INFO_RECORD IS RECORD
(
INDEX_NAME VARCHAR2(100),
INDEX_TYPE VARCHAR2(100),
PRIMARY_KEY VARCHAR2(100),
UNIQUENESS VARCHAR2(100),
INDEX_POS1 VARCHAR2(100),
INDEX_POS2 VARCHAR2(100),
INDEX_POS3 VARCHAR2(100),
INDEX_POS4 VARCHAR2(100),
INDEX_POS5 VARCHAR2(100),
INDEX_POS6 VARCHAR2(100),
INDEX_POS7 VARCHAR2(100),
INDEX_POS8 VARCHAR2(100),
INDEX_POS9 VARCHAR2(100),
INDEX_POS10 VARCHAR2(100)

);
--Return 하게될 Row type Array
TYPE INDEX_INFO_TABLE IS TABLE OF INDEX_INFO_RECORD;


FUNCTION GET_INDEX_INFO(IN_TABLE_NAME IN VARCHAR2) RETURN INDEX_INFO_TABLE PIPELINED;
END PKG_DBA_REPOSITORY;


CREATE OR REPLACE PACKAGE BODY PKG_DBA_REPOSITORY IS

FUNCTION GET_INDEX_INFO(IN_TABLE_NAME IN VARCHAR2)
RETURN INDEX_INFO_TABLE PIPELINED
IS
v_menu INDEX_INFO_RECORD;
BEGIN
FOR func_cur IN
(
select index_name
,index_type
,decode(constraint_name, null, ' ', 'pk') primary_key
,uniqueness
,nvl(max(a),' ') index_pos1
,nvl(max(b),' ') index_pos2
,nvl(max(c),' ') index_pos3
,nvl(max(d),' ') index_pos4
,nvl(max(e),' ') index_pos5
,nvl(max(f),' ') index_pos6
,nvl(max(g),' ') index_pos7
,nvl(max(h),' ') index_pos8
,nvl(max(i),' ') index_pos9
,nvl(max(j),' ') index_pos10
from
(
select a.index_name
,a.index_type
,a.uniqueness
,c.constraint_name
,DECODE(column_position, 1, column_name, '') a
,DECODE(column_position, 2, column_name, '') b
,DECODE(column_position, 3, column_name, '') c
,DECODE(column_position, 4, column_name, '') d
,DECODE(column_position, 5, column_name, '') e
,DECODE(column_position, 6, column_name, '') f
,DECODE(column_position, 7, column_name, '') g
,DECODE(column_position, 8, column_name, '') h
,DECODE(column_position, 9, column_name, '') i
,DECODE(column_position, 10, column_name, '') j
from all_indexes a, all_ind_columns b, all_constraints c
where a.table_name = IN_TABLE_NAME
and a.table_name = b.table_name
and a.index_name = b.index_name
and a.table_name = c.table_name(+)
and a.index_name = c.constraint_name(+)
and c.constraint_type(+) = 'P'
order by index_name, column_position
)
group by index_name, index_type,constraint_name, uniqueness
order by primary_key desc, index_name
)
LOOP
v_menu.INDEX_NAME := func_cur.index_name;
v_menu.INDEX_TYPE := func_cur.index_type;
v_menu.PRIMARY_KEY := func_cur.primary_key;
v_menu.UNIQUENESS := func_cur.uniqueness;
v_menu.INDEX_POS1 := func_cur.index_pos1;
v_menu.INDEX_POS2 := func_cur.index_pos2;
v_menu.INDEX_POS3 := func_cur.index_pos3;
v_menu.INDEX_POS4 := func_cur.index_pos4;
v_menu.INDEX_POS5 := func_cur.index_pos5;
v_menu.INDEX_POS6 := func_cur.index_pos6;
v_menu.INDEX_POS7 := func_cur.index_pos7;
v_menu.INDEX_POS8 := func_cur.index_pos8;
v_menu.INDEX_POS9 := func_cur.index_pos9;
v_menu.INDEX_POS10 :=func_cur.index_pos10;
PIPE ROW (v_menu);
END LOOP;
END GET_INDEX_INFO;
END PKG_DBA_REPOSITORY;

posted by bedbmsguru
2018. 6. 22. 15:09 Zabbix

IBM 장비에 Suse Linux를 설치하여 사용하는 시스템이 있다...


비싼IBM장비에 왜 Linux를...ㅡㅡ


해당머신에서 소스컴파일 하니 Agent 사용가능하다. Zabbix는 정말 안되는게 없는듯.!!


(1)Zabbix Source Download 

https://www.zabbix.com/download_sources



(2) 아래 메뉴얼 참고하여 컴파일 

https://github.com/linux-on-ibm-z/docs/wiki/Building-Zabbix-agent

posted by bedbmsguru