본문 바로가기

ALL

(72)
SUSE linux 테스트 부하 테스트 suse15벤치마크 방법2가지 방법 : openssl speed , stressstress 설치vi /etc/zypp/repos.d/benchmark.repo[openSUSE_Backports_SLE-15-SP6]name=Backports project for SLE-15-SP6 (standard)type=rpm-mdbaseurl=https://download.opensuse.org/repositories/openSUSE:/Backports:/SLE-15-SP6/standard/gpgcheck=1gpgkey=https://download.opensuse.org/repositories/openSUSE:/Backports:/SLE-15-SP6/standard/repodata/repomd.xml...
grafana-mail,slack template 경로 /usr/share/grafana/public/emailsng_alert_notification.html 백업 후 작업vi ng_alert_notification.html{{ if .Alerts.Firing }} Problem {{ range .Alerts.Firing }} {{ .Labels.alertname }} Host: {{ .Annotations.summary }} Time: {{ .StartsAt.Format "2006-01-02 15:04" }} 실제 SAP HANA memory 사용량 입니다 View Alert View Dashboard {{ end }} {{ else if .Alerts.Resolved }}..
grafana-mail 연동 SMTP / Emailing 찾아서 수정vi /etc/grafana/grafana.ini#################################### SMTP / Emailing ##########################[smtp]enabled = truehost = 10.100.100.72:25;user = aaaa# If the password contains # or ; you have to wrap it with triple quotes. Ex """#password;""";password =;cert_file =;key_file =skip_verify = truefrom_address = bc_admin@grafana.localhostfrom_name = BC_HANA_monitor# ..
grafana 설치 공식문서 참고https://grafana.com/docs/grafana/latest/setup-grafana/installation/suse-opensuse/ 설치wget -q -O gpg.key sudo rpm --import gpg.keysudo zypper addrepo grafanasudo zypper install grafana-enterprisesudo systemctl daemon-reloadsudo systemctl start grafana-serversudo systemctl enable grafana-server.servicesudo systemctl status grafana-servergrafana-server -v zabbix 플러그인 설치 grafana-cli plugins ..
hanadb_exporter 로그 cron설정 exporter 에러가 많이 떠서 생각보다 로그파일용량이 큼 cron설정 해야됨sudo vi /etc/logrotate.d/hanadb_exporter/var/log/hanadb_exporter.log { daily missingok rotate 7 compress delaycompress compresscmd /usr/bin/xz uncompresscmd /usr/bin/unxz notifempty create 0640 root root size 100M}1. Logrotate 테스트logrotate 설정을 확인하고, 수동으로 테스트하여 로그 회전이 제대로 작동하는지 확인sudo logrotate -d /etc/logrotate.d/hanadb_ex..
exporter 설치 사전 세팅 python 설치설치zypper install prometheus-hanadb_exporterorzypper in gitgit clone 모니터링 유저 생성sudo su -ndbadmhdbsql -n 10.100.100.75 -i 00 -u SYSTEM -p dev0Bsgone -d SYSTEMDB아래 쿼리 문 적용CREATE USER HANADB_EXPORTER_USER PASSWORD MyExporterPassword NO FORCE_FIRST_PASSWORD_CHANGE;CREATE ROLE HANADB_EXPORTER_ROLE;GRANT MONITORING TO HANADB_EXPORTER_ROLE;GRANT HANADB_EXPORTER_ROLE TO HANADB_EXPORTER_US..
prometheus 설치 다운로드 링크https://prometheus.io/download/파일2.53.2 / 2024-08-09 LTS Release noteshttps://github.com/prometheus/prometheus/releases/download/v2.53.2/prometheus-2.53.2.linux-amd64.tar.gz설치tar xvfz prometheus-*.tar.gzcd prometheus-2.53.2.linux-amd64/./prometheussudo useradd --no-create-home --shell /bin/false prometheusudo mkdir /etc/prometheussudo mkdir /var/lib/prometheussudo chown prometheus:prometh..
Zabbix-mail template ProblemsubjectProblem : {HOST.NAME}-{EVENT.NAME}메세지 Problem Detected Detected at: {EVENT.DATE} - {EVENT.TIME} Problem name: {EVENT.NAME} Host: {HOST.NAME} Severity: {EVENT.SEVERITY} Problem ID: {EVENT.ID} More details: " style="color: #0066cc; text-decoration: none;"> grafana url Problem recoverysubject:Resolved : {HOST.NAME}-{EVENT.DURATION}-{EVENT.NAME}메세지 Problem..
Zabbix-mail 연동 설정sendmail 패키지 설치조회 : rpm -qa | grep sendmail없으면 설치 yum install sendmail sendmail-cf sendmail-devel or dnf -y install sendmail sendmail-cf dnf -y install dovecotvi /etc/mail/sendmail.mc아래 56,57 라인 주석 제거 (주석= dnl #)sendmail.cf 파일생성(덮어쓰기)m4 sendmail.mc > sendmail.cf메일서버 호스트명 추가vi /etc/mail/local-host-names 호스트명 추가 서비스 활성 및 시작systemctl restart sendmailsystemctl enable sendmailsystemctl status sendm..
zabbix-slack 연동 https://github.com/ericoc/zabbix-slack-alertscript/blob/master/README.md zabbix server 접속 후 아래 스크립트 파일 작성 및 테스트 vi /usr/lib/zabbix/alertscripts/slack-webhook.sh#!/bin/bash# Slack incoming web-hook URL and user nameurl='CHANGEME' # example: url=''username='Zabbix' # username='bsgone-zabbix'## Values received by this script:# To = $1 / Slack channel or user to send the message to, specified ..