当前位置: 首页 > news >正文

网站地图设计wordpress调用导航包含子菜单

网站地图设计,wordpress调用导航包含子菜单,网站建设如何运营,泰安营销网站建设公司一、监控的操作逻辑 给操作系统安装expect命令expect脚本执行dmhs_console脚本执行 cpt / exec 命令用脚本进行过滤字符串过滤dm_export读取脚本与当前日期作比较#xff0c;然后返回差值 二、安装步骤 1. linux中Expect工具的安装及使用方法 https://blog.csdn.net/wangta…一、监控的操作逻辑 给操作系统安装expect命令expect脚本执行dmhs_console脚本执行 cpt / exec 命令用脚本进行过滤字符串过滤dm_export读取脚本与当前日期作比较然后返回差值 二、安装步骤 1. linux中Expect工具的安装及使用方法 https://blog.csdn.net/wangtaoking1/article/details/78268574 # wget https://sourceforge.net/projects/tcl/files/Tcl/8.4.19/tcl8.4.19-src.tar.gz # tar zxvf tcl8.4.19-src.tar.gz # cd tcl8.4.19/unix ./configure # make # make install# 回退到基目录下在执行一下操作# wget http://sourceforge.net/projects/expect/files/Expect/5.45/expect5.45.tar.gz # tar zxvf expect5.45.tar.gz # cd expect5.45 # ./configure --with-tcl/usr/local/lib --with-tclinclude../tcl8.4.19/generic # make # make install # ln -s /usr/local/bin/expect /usr/bin/expect# 安装完成之后运行expect命令查看是否安装成功。 # expect expect1.1 2. dm_exporter工具配置文件 调整application.yml 新增dmhs的相关属性注意enableType类型 需要区分源端以及目的端 [rootp4-oakdmdb02 dm_exporter]# vi application.yml spring:application:name: dm-prometheus server:port: 9200##ip识别错误时使用ip:##主机的hostnamehostname:##告警保留时间分钟alarmSaveTime: 5##大key的保留时间(表空间使用 分组)bigKeySaveTime: 720##会话等待的检测时间(分钟) 检测会话等待值 sql传参waitingSessionTime: 5##是否屏蔽特殊项 0 不屏蔽 1屏蔽 屏蔽定时任务、sql超时specialCheck: 1 dmdbms:jdbcUrl: jdbc:dm://127.0.0.1:5236username: SYSDBApassword: SYSDBA dmhs:## 0 不启动 1 cpt源端 2 目的端enableType: 0installBinPath: /home/dmdba/dmhs/bin management:endpoints:# 关闭所有的检查项enabled-by-default: falseweb:exposure:# 暴露监控接口*为全部接口include: prometheus# 不暴露接口# exclude: infobase-path: /# 对外暴露prometheus接口并擦好看更多健康信息endpoint:prometheus:enabled: truehealth:show-details: always## 关闭内置的检查项metrics:enable:jvm: falselogback: falsefiles: falsetomcat: falseexecutor: falsedisk: falseuptime: falseintegration: falsetrace:http:enabled: false logging:config: classpath:log4j2.xml生成脚本(get_hs_console_info.sh) 工具自动生成此脚本做参考 #!/usr/bin/env bash/usr/bin/expect EOF set timeout 3 spawn /home/dmdba/dmhs_new_20230925/bin/dmhs_console send cpt\r send exit\r expect eof EOF生成脚本(get_hs_console_result_info.sh) 工具自动生成此脚本做参考 #!/usr/bin/env bash HS_BIN_DIR/home/dmdba/dmhs_new_20230925/bin SCRIPT_DIR/prometheus/dm_exporter/export_script LOG_FILE$SCRIPT_DIR/hs_console.txt RESULT_FILE$SCRIPT_DIR/hs_console_result.txt cd $HS_BIN_DIR sh $SCRIPT_DIR/get_hs_console_info.sh $LOG_FILE sed -i s/\x1B\[[0-9;]*m//g; s/\x0D$//g; s/\^M\$//g $LOG_FILE CheckPointTimecat $LOG_FILE |grep checkpoint time|awk -F : {print $3}|awk -F {print $1,$2}|awk NR1{print} echo CheckPointTime$CheckPointTime $RESULT_FILE CurrentLogTimecat $LOG_FILE |grep current log time|awk -F : {print $2}|awk -F {print $1,$2}|awk NR1{print} echo CurrentLogTime$CurrentLogTime $RESULT_FILE [rootp4-oa15dmdb01 export_script]# cat hs_console_result.txt CheckPointTime2023-10-13 11:41:21 CurrentLogTime2023-10-13 13:28:10三、调整promehteus配置文件 1. 添加主机配置 prometheus.yml [rootZabbbix prometheus-2.35.0]# vim prometheus.yml# my global config global:scrape_interval: 1m # Set the scrape interval to every 15 seconds. Default is every 1 minute.evaluation_interval: 1m # Evaluate rules every 15 seconds. The default is every 1 minute.scrape_timeout: 1m # scrape_timeout is set to the global default (10s).# Alertmanager configuration alerting:alertmanagers:- static_configs:- targets:- 127.0.0.1:9093# Load rules once and periodically evaluate them according to the global evaluation_interval. rule_files:- rules/*.yml# - rules/*_alerts.yml# A scrape configuration containing exactly one endpoint to scrape: # Here its Prometheus itself. scrape_configs:# The job name is added as a label jobjob_name to any timeseries scraped from this config.- job_name: prometheusstatic_configs:- targets: [localhost:9090]- job_name: dmdbms_bgoak_dwmetrics_path: /prometheusstatic_configs:- targets: [192.63.97.93:9200,192.63.97.94:9200]labels:cluster_name: 办公OAK2. 添加告警规则vim custom_test.yml [rootZabbbix rules]# vim custom_test.yml- alert: 备库重做日志内存堆积过高expr: dmdbms_rapply_sys_task_mem_used 512000000for: 15slabels:severity: 警告annotations:description: 主机{{ $labels.instance }} 备库重做日志内存堆积过高summary: 主机{{ $labels.instance }}:备库重做日志内存堆积过高请确认是否正常- alert: 备库重做日志线程数expr: dmdbms_rapply_sys_task_num 2048for: 15slabels:severity: 警告annotations:description: 主机{{ $labels.instance }} 备库重做日志线程数过高summary: 主机{{ $labels.instance }}:备库重做日志线程数过高请确认是否正常- alert: HS的进程连接异常expr: dmdbms_dmhs_process_is_exit 0for: 15slabels:severity: 警告annotations:description: 主机{{ $labels.instance }} HS的进程连接异常summary: 主机{{ $labels.instance }}:HS的进程连接异常请确认是否正常- alert: HS的checkPointTime超过8hexpr: dmdbms_dmhs_check_point_delay 0 and dmdbms_dmhs_check_point_delay 60*60*8for: 15slabels:severity: 警告annotations:description: 主机{{ $labels.instance }} HS的checkPointTime超过8hsummary: 主机{{ $labels.instance }}:HS的checkPointTime超过8h,请确认是否正常四、修改grafana图表 效果如下 五、报错 安装expect报错 no acceptable cc found in $PATH # 安装gcc的依赖环境 yum install gcc-c
http://www.huolong8.cn/news/324196/

相关文章:

  • 上海做网站哪家公司正保建筑工程网
  • 网站添加js广告位网站建设相关行业有哪些
  • 做网站的把网站写成一行百度广告登录入口
  • 做网站有年费吗seo关键词排名查询
  • 做标书的任务网站如何做好一个外贸网站的编辑
  • 什么公司做网站出名垦利网站制作
  • 单页面 网站 模板中煤第三建设集团网站
  • 免费推广网站大全下载安装搭建平台激发活力
  • qt 网站开发电商网站建设工具
  • asp.net网站建设项目实战资料网站开发的软件支持
  • 网站建设山西wordpress 404模板
  • 建设网站租服务器装修在线设计平台
  • 网站开发实例企业门户网站源码下载
  • 030159网站建设与维护昆仑万维做网站
  • 卡片式设计的网站最好网站建设
  • 网站页面设计需求网站备案需要哪些资料
  • 千博企业网站管理系统完整版 2014那做网站
  • 福建省建设厅网站人员服装厂家东莞网站建设
  • 网站的建设费用预算工信部网站icp备案查询
  • 贵州省网站备案企业网站做静态网站还是
  • 新网站必须做301定向吗高仿微博wordpress
  • 网盘视频直接做网站在东莞做网站
  • 重庆网站设计哪家好少儿培训
  • 企业网站建设有几种青岛手机建站多少钱
  • 自己做的网站能赚钱吗国内知名展示设计公司
  • 网站开发计入会计 什么科目营销型网站如何策划
  • 东营网站设计公司建筑门户网站
  • 网站的在线支付模块怎么做企业所得税优惠政策2020
  • 坪山网站建设行情做网站除了域名还要买什么
  • 免费资料网站网址下载视频网站开发php