grep -Ev '#|^$' zabbix_server.conf
root@k8s-node01:/etc/zabbix# grep -Ev '#|^$' zabbix_server.conf
LogFile=/var/log/zabbix/zabbix_server.log
LogFileSize=0
PidFile=/run/zabbix/zabbix_server.pid
SocketDir=/run/zabbix
DBName=zabbix
DBUser=zabbix
DBPassword=Niha56!
StartPollers=30
StartPollersUnreachable=20
StartPingers=5
StartDiscoverers=5
SNMPTrapperFile=/var/log/snmptrap/snmptrap.log
CacheSize=512M
Timeout=4
FpingLocation=/usr/bin/fping
Fping6Location=/usr/bin/fping6
LogSlowQueries=3000
StatsAllowedIP=127.0.0.1
标签:grep,log,配置文件,server,zabbix,conf,Ev
From: https://blog.51cto.com/u_64214/8984160