Hello,
I setup Zabbix a new Zabbix server 4.2 on a CentOS 7, I'im trying to solve the problem that I have but at the moment with no luck.
Zabbix show me in grey the SNMP availability, I checked the snmpwalk and is giving me a lot of data

I don't know what more to do, I atach you the log from /var/log/zabbix/zabbix_server.log
920:20200616:160626.042 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
920:20200616:160626.042 Cannot connect to the database. Exiting...
933:20200616:160645.865 Starting Zabbix Server. Zabbix 4.2.8 (revision cb5d5b10f4).
933:20200616:160645.887 ****** Enabled features ******
933:20200616:160645.887 SNMP monitoring: YES
933:20200616:160645.887 IPMI monitoring: YES
933:20200616:160645.888 Web monitoring: YES
933:20200616:160645.888 VMware monitoring: YES
933:20200616:160645.888 SMTP authentication: YES
933:20200616:160645.888 Jabber notifications: NO
933:20200616:160645.888 Ez Texting notifications: YES
933:20200616:160645.888 ODBC: YES
933:20200616:160645.888 SSH2 support: YES
933:20200616:160645.888 IPv6 support: YES
933:20200616:160645.888 TLS support: YES
933:20200616:160645.888 ******************************
933:20200616:160645.888 using configuration file: /etc/zabbix/zabbix_server.conf
933:20200616:160645.933 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
933:20200616:160645.934 database is down: reconnecting in 10 seconds
933:20200616:160655.940 database connection re-established
933:20200616:160655.941 current database version (mandatory/optional): 04020000/04020001
933:20200616:160655.941 required mandatory version: 04020000
933:20200616:160656.153 server #0 started [main process]
1626:20200616:160656.165 server #29 started [alerter #3]
1612:20200616:160656.167 server #15 started [poller #2]
1613:20200616:160656.168 server #16 started [poller #3]
1615:20200616:160656.169 server #18 started [poller #5]
1618:20200616:160656.169 server #21 started [trapper #2]
1621:20200616:160656.172 server #24 started [trapper #5]
1622:20200616:160656.176 server #25 started [icmp pinger #1]
1611:20200616:160656.176 server #14 started [poller #1]
1607:20200616:160656.177 server #10 started [escalator #1]
1620:20200616:160656.180 server #23 started [trapper #4]
1602:20200616:160656.184 server #5 started [discoverer #1]
1603:20200616:160656.184 server #6 started [history syncer #1]
1623:20200616:160656.184 server #26 started [alert manager #1]
1599:20200616:160656.185 server #2 started [housekeeper #1]
1600:20200616:160656.186 server #3 started [timer #1]
1604:20200616:160656.187 server #7 started [history syncer #2]
1605:20200616:160656.187 server #8 started [history syncer #3]
1606:20200616:160656.188 server #9 started [history syncer #4]
1609:20200616:160656.188 server #12 started [self-monitoring #1]
1614:20200616:160656.189 server #17 started [poller #4]
1616:20200616:160656.192 server #19 started [unreachable poller #1]
1619:20200616:160656.196 server #22 started [trapper #3]
1624:20200616:160656.199 server #27 started [alerter #1]
1625:20200616:160656.200 server #28 started [alerter #2]
1627:20200616:160656.200 server #30 started [preprocessing manager #1]
1601:20200616:160656.201 server #4 started [http poller #1]
1608:20200616:160656.202 server #11 started [proxy poller #1]
1598:20200616:160656.205 server #1 started [configuration syncer #1]
1617:20200616:160656.206 server #20 started [trapper #1]
1610:20200616:160656.223 server #13 started [task manager #1]
1628:20200616:160656.235 server #31 started [preprocessing worker #1]
1629:20200616:160656.236 server #32 started [preprocessing worker #2]
1630:20200616:160656.267 server #33 started [preprocessing worker #3]
1633:20200616:160656.269 server #36 started [lld worker #2]
1632:20200616:160656.269 server #35 started [lld worker #1]
1631:20200616:160656.269 server #34 started [lld manager #1]
1599:20200616:163656.589 executing housekeeper
1599:20200616:163656.740 housekeeper [deleted 0 hist/trends, 9 items/triggers, 0 events, 0 problems, 0 sessions, 0 alarms, 0 audit, 0 records in 0.149752 sec, idle for 1 hour(s)]
Thanks
Best regards
I setup Zabbix a new Zabbix server 4.2 on a CentOS 7, I'im trying to solve the problem that I have but at the moment with no luck.
Zabbix show me in grey the SNMP availability, I checked the snmpwalk and is giving me a lot of data
I don't know what more to do, I atach you the log from /var/log/zabbix/zabbix_server.log
920:20200616:160626.042 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
920:20200616:160626.042 Cannot connect to the database. Exiting...
933:20200616:160645.865 Starting Zabbix Server. Zabbix 4.2.8 (revision cb5d5b10f4).
933:20200616:160645.887 ****** Enabled features ******
933:20200616:160645.887 SNMP monitoring: YES
933:20200616:160645.887 IPMI monitoring: YES
933:20200616:160645.888 Web monitoring: YES
933:20200616:160645.888 VMware monitoring: YES
933:20200616:160645.888 SMTP authentication: YES
933:20200616:160645.888 Jabber notifications: NO
933:20200616:160645.888 Ez Texting notifications: YES
933:20200616:160645.888 ODBC: YES
933:20200616:160645.888 SSH2 support: YES
933:20200616:160645.888 IPv6 support: YES
933:20200616:160645.888 TLS support: YES
933:20200616:160645.888 ******************************
933:20200616:160645.888 using configuration file: /etc/zabbix/zabbix_server.conf
933:20200616:160645.933 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
933:20200616:160645.934 database is down: reconnecting in 10 seconds
933:20200616:160655.940 database connection re-established
933:20200616:160655.941 current database version (mandatory/optional): 04020000/04020001
933:20200616:160655.941 required mandatory version: 04020000
933:20200616:160656.153 server #0 started [main process]
1626:20200616:160656.165 server #29 started [alerter #3]
1612:20200616:160656.167 server #15 started [poller #2]
1613:20200616:160656.168 server #16 started [poller #3]
1615:20200616:160656.169 server #18 started [poller #5]
1618:20200616:160656.169 server #21 started [trapper #2]
1621:20200616:160656.172 server #24 started [trapper #5]
1622:20200616:160656.176 server #25 started [icmp pinger #1]
1611:20200616:160656.176 server #14 started [poller #1]
1607:20200616:160656.177 server #10 started [escalator #1]
1620:20200616:160656.180 server #23 started [trapper #4]
1602:20200616:160656.184 server #5 started [discoverer #1]
1603:20200616:160656.184 server #6 started [history syncer #1]
1623:20200616:160656.184 server #26 started [alert manager #1]
1599:20200616:160656.185 server #2 started [housekeeper #1]
1600:20200616:160656.186 server #3 started [timer #1]
1604:20200616:160656.187 server #7 started [history syncer #2]
1605:20200616:160656.187 server #8 started [history syncer #3]
1606:20200616:160656.188 server #9 started [history syncer #4]
1609:20200616:160656.188 server #12 started [self-monitoring #1]
1614:20200616:160656.189 server #17 started [poller #4]
1616:20200616:160656.192 server #19 started [unreachable poller #1]
1619:20200616:160656.196 server #22 started [trapper #3]
1624:20200616:160656.199 server #27 started [alerter #1]
1625:20200616:160656.200 server #28 started [alerter #2]
1627:20200616:160656.200 server #30 started [preprocessing manager #1]
1601:20200616:160656.201 server #4 started [http poller #1]
1608:20200616:160656.202 server #11 started [proxy poller #1]
1598:20200616:160656.205 server #1 started [configuration syncer #1]
1617:20200616:160656.206 server #20 started [trapper #1]
1610:20200616:160656.223 server #13 started [task manager #1]
1628:20200616:160656.235 server #31 started [preprocessing worker #1]
1629:20200616:160656.236 server #32 started [preprocessing worker #2]
1630:20200616:160656.267 server #33 started [preprocessing worker #3]
1633:20200616:160656.269 server #36 started [lld worker #2]
1632:20200616:160656.269 server #35 started [lld worker #1]
1631:20200616:160656.269 server #34 started [lld manager #1]
1599:20200616:163656.589 executing housekeeper
1599:20200616:163656.740 housekeeper [deleted 0 hist/trends, 9 items/triggers, 0 events, 0 problems, 0 sessions, 0 alarms, 0 audit, 0 records in 0.149752 sec, idle for 1 hour(s)]
Thanks
Best regards