zabbix7.0-debian12安装

数据库安装

数据库采用mysql,需要8.0.30以后版本,不能是8.04

wget https://dev.mysql.com/get/mysql-apt-config_0.8.30-1_all.deb
apt update
apt install ./mysql-apt-config_0.8.30-1_all.deb

  • 安装源时,依次选择:
  • MySQL Server & Cluster (Currently selected: mysql-8.4-lts)
  • mysql-8.0
  • ok

sudo apt update
apt install mysql-server
弹出设置栏时,手动设置root密码
systemctl start mysql
systemctl enable mysql

设置zabbix 仓库源

wget https://repo.zabbix.com/zabbix/7.0/debian/pool/main/z/zabbix-release/zabbix-release_7.0-2+debian12_all.deb
dpkg -i zabbix-release_7.0-2+debian12_all.deb
apt update

安装Zabbix server,Web前端,agent

apt install zabbix-server-mysql zabbix-frontend-php zabbix-nginx-conf zabbix-sql-scripts zabbix-agent

配置数据库

mysql -uroot -p
password
create database zabbix character set utf8mb4 collate utf8mb4_bin;
create user zabbix@localhost identified by ‘password’;
grant all privileges on zabbix.* to zabbix@localhost;
set global log_bin_trust_function_creators = 1;
quit;

导入数据库

zcat /usr/share/zabbix-sql-scripts/mysql/server.sql.gz | mysql –default-character-set=utf8mb4 -uzabbix -p zabbix

Disable log_bin_trust_function_creators option after importing database schema.

 mysql -uroot -p
password
set global log_bin_trust_function_creators = 0;
quit;

为Zabbix server配置数据库

编辑配置文件 /etc/zabbix/zabbix_server.confDBPassword=password

为Zabbix前端配置PHP

编辑配置文件 /etc/zabbix/nginx.conf uncomment and set ‘listen’ and ‘server_name’ directives.

listen 8080;
server_name IP
地址

启动Zabbix server和agent进程

启动Zabbix server和agent进程,并为它们设置开机自启:

systemctl restart zabbix-server zabbix-agent nginx php8.2-fpm
systemctl enable zabbix-server zabbix-agent nginx php8.2-fpm

AD 获取目录NTFS权限

$file_path= “E:\”

$files = Get-Childitem -Path $file_path -Recurse -ErrorAction SilentlyContinue
$result = foreach($file in $files)
{
#Write-Host $file.FullName
$file_Info=Get-Acl $file.FullName

for ($i=0; $i -lt $file_Info.Access.Count; $i=$i+1)
    {

        if( $file_Info.Access[$i].IsInherited -ne "True")
            {
            $res= $file.FullName+'|'+$file_Info.Access[$i].IdentityReference.Value+'|'+ $file_Info.Access[$i].FileSystemRights.ToString()+'|'+$file_Info.Access[$i].AccessControlType.ToString() +'|'+  $file_Info.Access[$i].IsInherited
            $res |Out-File -FilePath D:\text2.csv -Append -Encoding utf8
        }

    }

}

参考链接:Powershell 获取指定目录NTFS 权限 – vmsky – 博客园 (cnblogs.com)

https://www.delftstack.net/zh/howto/powershell/managing-acl-permissions-using-powershell

Network 路由震荡(Routing Flapping)

由于路由条目的频繁反复添加或者删除会消耗CPU 大量的资源。

网络中由于某条路由出现丢失或添加,则网络中所有的其他路由器(设备)都将删除或添加这条路由引起网络震荡。

BGP路由震荡原理详细介绍 – 路由器三层路由防环专题 – 华为 (huawei.com)

判断为网络震荡引起 – CloudEngine 12800, 12800E, 8800, 7800, 6800, 5800系列交换机 CPU占用率高技术专题 – 华为 (huawei.com)

BGP汇总路由震荡问题分析- 华为 (huawei.com)

Network 网络设计常用表格

设备接口表格

设备接口IP地址子网掩码默认网关
R1GE0/0/010.0.12.1255.255.255.0N/A
R2
R3
R4
R5
R6

设备对接表格

本端设备本端接口对端设备对端接口
地址-型号-01G0/0/1地址-型号-01G0/0/1

业务地址vlan表格

业务描述业务VLANvlan子网VLAN网关
制造中心办公室1010.1.10.0/2410.1.10.1