随笔分类 - Zabbix
摘要:1 #!/bin/bash 2 3 # 检查操作系统版本,该脚本只能运行在 Centos 7.x 系统上 4 5 cat /etc/redhat-release |grep -i centos |grep '7.[[:digit:]]' >/dev/null 6 7 if [[ $? != 0 ]] 8 then 9 echo -e "不支持的操作系统,该...
阅读全文
摘要:1 MariaDB [zabbix]> select authentication_type from config ; 2 +---------------------+ 3 | authentication_type | 4 +---------------------+ 5 | 2 | 6 +---------------------+ 7...
阅读全文
摘要:1、需求描述 默认情况下Zabbix 自带模板 "Template OS Linux" 中网络接口LLD自动发现除还回接口外的所有接口,当这并不一定是我们想要的结果。 比如我有一台运行kvm的服务器,服务器上有四个物理接口 eth0-eth3 , 三个网桥接口 br0-br2 , 还有很多个虚机的网
阅读全文
摘要:1 #!/bin/bash 2 3 # 4 # 1、配置yum源 5 # 6 7 cat /etc/redhat-release |grep -i centos |grep '6.[[:digit:]]' &>/dev/null 8 9 if [[ $? != 0 ]] 10 then 11 echo -e "不支持的操作系统,该脚本只适用于CentOS ...
阅读全文
摘要:1 #!/bin/bash 2 3 # 4 # 0、配置无人值守的安装,定义安装过程中需要用到的一些信息 5 # 6 mysql_root_pw=root_pw 7 mysql_zabbix_pw=zabbix_pw 8 DBPassword=$mysql_zabbix_pw 9 CacheSize=256M 10 ZBX_SERVER_NAME=My-Zabbix-S...
阅读全文
摘要:1 #!/bin/bash 2 3 # 4 # 0、配置无人值守的安装,定义安装过程中需要用到的一些信息 5 # 6 mysql_root_pw=root_pw 7 mysql_zabbix_pw=zabbix_pw 8 DBPassword=$mysql_zabbix_pw 9 CacheSize=256M 10 ZBX_SERVER_NAME=My-Zabbix-S...
阅读全文