All,
I am new with Zabbix and would like to install it on a formerly Desktop system which I built now with CentOS 8.
root@oskar : /opt > cat /etc/os-release
NAME="CentOS Stream"
VERSION="8"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Stream 8"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://centos.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_SUPPORT_PRODUCT_VERSION="CentOS Stream"
root@oskar : /opt >
It is an older system (Acer Desktop with 4 GB RAM)
As database system I choosed mariadb, where I can login as zabbix user and where I run the sql-scripts which are described on the installation description at the zabbix page (https://www.zabbix.com/de/download?z...ysql&ws=apache)
root@oskar : /opt > mysql zabbix -u zabbix -p
Enter password:
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 8
Server version: 10.7.3-MariaDB MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [zabbix]> show tables;
+----------------------------+
| Tables_in_zabbix |
+----------------------------+
| acknowledges |
| actions |
| alerts |
| auditlog |
| autoreg_host |
| conditions |
| config |
| config_autoreg_tls |
| corr_condition |
| corr_condition_group |
| corr_condition_tag |
| corr_condition_tagpair |
| corr_condition_tagvalue |
| corr_operation |
| correlation |
| dashboard |
| dashboard_page |
| dashboard_user |
snip ...
... snap
| role |
| role_rule |
| script_param |
| scripts |
| service_alarms |
| service_problem |
| service_problem_tag |
| service_status_rule |
| service_tag |
| services |
| services_links |
| sessions |
| sla |
| sla_excluded_downtime |
| sla_schedule |
| sla_service_tag |
| sysmap_element_trigger |
| sysmap_element_url |
| sysmap_shape |
| sysmap_url |
| sysmap_user |
| sysmap_usrgrp |
| sysmaps |
| sysmaps_element_tag |
| sysmaps_elements |
| sysmaps_link_triggers |
| sysmaps_links |
| tag_filter |
| task |
| task_acknowledge |
| task_check_now |
| task_close_problem |
| task_data |
| task_remote_command |
| task_remote_command_result |
| task_result |
| timeperiods |
| token |
| trends |
| trends_uint |
| trigger_depends |
| trigger_discovery |
| trigger_queue |
| trigger_tag |
| triggers |
| users |
| users_groups |
| usrgrp |
| valuemap |
| valuemap_mapping |
| widget |
| widget_field |
+----------------------------+
173 rows in set (0.003 sec)
MariaDB [zabbix]> quit
Bye
root@oskar : /opt >
The zabbix packages I installed are those:
root@oskar : /opt > rpm -qa | grep -i zabbix
zabbix-web-mysql-6.0.3-1.el8.noarch
zabbix-selinux-policy-6.0.3-1.el8.x86_64
zabbix-server-mysql-6.0.3-1.el8.x86_64
zabbix-release-6.0-1.el8.noarch
zabbix-agent-6.0.3-1.el8.x86_64
zabbix-web-deps-6.0.3-1.el8.noarch
zabbix-apache-conf-6.0.3-1.el8.noarch
zabbix-sql-scripts-6.0.3-1.el8.noarch
zabbix-web-6.0.3-1.el8.noarch
root@oskar : /opt >
And Apache is up and running as well:
root@oskar : /opt > systemctl status httpd.service
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Drop-In: /usr/lib/systemd/system/httpd.service.d
└─php-fpm.conf
Active: active (running) since Fri 2022-04-22 09:04:47 EDT; 1 day 21h ago
Docs: man:httpd.service(8)
Main PID: 48232 (httpd)
Status: "Running, listening on: 192.168.0.135 port 80"
Tasks: 213 (limit: 23388)
Memory: 25.3M
CGroup: /system.slice/httpd.service
├─48232 /usr/sbin/httpd -DFOREGROUND
├─99858 /usr/sbin/httpd -DFOREGROUND
├─99859 /usr/sbin/httpd -DFOREGROUND
├─99860 /usr/sbin/httpd -DFOREGROUND
└─99862 /usr/sbin/httpd -DFOREGROUND
Apr 22 09:04:47 oskar systemd[1]: httpd.service: Succeeded.
Apr 22 09:04:47 oskar systemd[1]: Stopped The Apache HTTP Server.
Apr 22 09:04:47 oskar systemd[1]: Starting The Apache HTTP Server...
Apr 22 09:04:47 oskar httpd[48232]: AH00558: httpd: Could not reliably determine the server's fully>
Apr 22 09:04:47 oskar systemd[1]: Started The Apache HTTP Server.
Apr 22 09:04:47 oskar httpd[48232]: Server configured, listening on: 192.168.0.135 port 80
Apr 24 03:12:02 oskar systemd[1]: Reloading The Apache HTTP Server.
Apr 24 03:12:02 oskar httpd[99850]: AH00558: httpd: Could not reliably determine the server's fully>
Apr 24 03:12:02 oskar systemd[1]: Reloaded The Apache HTTP Server.
Apr 24 03:12:02 oskar httpd[48232]: Server configured, listening on: 192.168.0.135 port 80
root@oskar : /opt >
But still something I don't understand is wrong, because in the logfile (/var/log/zabbix/zabbix_server.log) it is written, that zabbix cannot connect with the database?
119536:20220424:065800.200 Starting Zabbix Server. Zabbix 6.0.3 (revision 506e2b51e2).
119536:20220424:065800.200 ****** Enabled features ******
119536:20220424:065800.200 SNMP monitoring: YES
119536:20220424:065800.200 IPMI monitoring: YES
119536:20220424:065800.200 Web monitoring: YES
119536:20220424:065800.200 VMware monitoring: YES
119536:20220424:065800.200 SMTP authentication: YES
119536:20220424:065800.200 ODBC: YES
119536:20220424:065800.200 SSH support: YES
119536:20220424:065800.200 IPv6 support: YES
119536:20220424:065800.200 TLS support: YES
119536:20220424:065800.200 ******************************
119536:20220424:065800.200 using configuration file: /etc/zabbix/zabbix_server.conf
119536:20220424:065800.207 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local server through socket '/var/lib/mysql/mysql.sock' (13)
119536:20220424:065800.207 database is down: reconnecting in 10 seconds
119536:20220424:065810.208 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local server through socket '/var/lib/mysql/mysql.sock' (13)
119536:20220424:065810.208 database is down: reconnecting in 10 seconds
My config file I cannot attach at the moment but if some information will be needed I am happy to share it!
I read already some information here and at other places I found in the web and read for example that I should put complete pathes to the mysql.sock file, and other ideas. I tried some, but still no success, so I kindly ask for instructions from more experianced guys.
Thanks and kind regards
Stefan
I am new with Zabbix and would like to install it on a formerly Desktop system which I built now with CentOS 8.
root@oskar : /opt > cat /etc/os-release
NAME="CentOS Stream"
VERSION="8"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Stream 8"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://centos.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_SUPPORT_PRODUCT_VERSION="CentOS Stream"
root@oskar : /opt >
It is an older system (Acer Desktop with 4 GB RAM)
As database system I choosed mariadb, where I can login as zabbix user and where I run the sql-scripts which are described on the installation description at the zabbix page (https://www.zabbix.com/de/download?z...ysql&ws=apache)
root@oskar : /opt > mysql zabbix -u zabbix -p
Enter password:
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 8
Server version: 10.7.3-MariaDB MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [zabbix]> show tables;
+----------------------------+
| Tables_in_zabbix |
+----------------------------+
| acknowledges |
| actions |
| alerts |
| auditlog |
| autoreg_host |
| conditions |
| config |
| config_autoreg_tls |
| corr_condition |
| corr_condition_group |
| corr_condition_tag |
| corr_condition_tagpair |
| corr_condition_tagvalue |
| corr_operation |
| correlation |
| dashboard |
| dashboard_page |
| dashboard_user |
snip ...
... snap
| role |
| role_rule |
| script_param |
| scripts |
| service_alarms |
| service_problem |
| service_problem_tag |
| service_status_rule |
| service_tag |
| services |
| services_links |
| sessions |
| sla |
| sla_excluded_downtime |
| sla_schedule |
| sla_service_tag |
| sysmap_element_trigger |
| sysmap_element_url |
| sysmap_shape |
| sysmap_url |
| sysmap_user |
| sysmap_usrgrp |
| sysmaps |
| sysmaps_element_tag |
| sysmaps_elements |
| sysmaps_link_triggers |
| sysmaps_links |
| tag_filter |
| task |
| task_acknowledge |
| task_check_now |
| task_close_problem |
| task_data |
| task_remote_command |
| task_remote_command_result |
| task_result |
| timeperiods |
| token |
| trends |
| trends_uint |
| trigger_depends |
| trigger_discovery |
| trigger_queue |
| trigger_tag |
| triggers |
| users |
| users_groups |
| usrgrp |
| valuemap |
| valuemap_mapping |
| widget |
| widget_field |
+----------------------------+
173 rows in set (0.003 sec)
MariaDB [zabbix]> quit
Bye
root@oskar : /opt >
The zabbix packages I installed are those:
root@oskar : /opt > rpm -qa | grep -i zabbix
zabbix-web-mysql-6.0.3-1.el8.noarch
zabbix-selinux-policy-6.0.3-1.el8.x86_64
zabbix-server-mysql-6.0.3-1.el8.x86_64
zabbix-release-6.0-1.el8.noarch
zabbix-agent-6.0.3-1.el8.x86_64
zabbix-web-deps-6.0.3-1.el8.noarch
zabbix-apache-conf-6.0.3-1.el8.noarch
zabbix-sql-scripts-6.0.3-1.el8.noarch
zabbix-web-6.0.3-1.el8.noarch
root@oskar : /opt >
And Apache is up and running as well:
root@oskar : /opt > systemctl status httpd.service
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Drop-In: /usr/lib/systemd/system/httpd.service.d
└─php-fpm.conf
Active: active (running) since Fri 2022-04-22 09:04:47 EDT; 1 day 21h ago
Docs: man:httpd.service(8)
Main PID: 48232 (httpd)
Status: "Running, listening on: 192.168.0.135 port 80"
Tasks: 213 (limit: 23388)
Memory: 25.3M
CGroup: /system.slice/httpd.service
├─48232 /usr/sbin/httpd -DFOREGROUND
├─99858 /usr/sbin/httpd -DFOREGROUND
├─99859 /usr/sbin/httpd -DFOREGROUND
├─99860 /usr/sbin/httpd -DFOREGROUND
└─99862 /usr/sbin/httpd -DFOREGROUND
Apr 22 09:04:47 oskar systemd[1]: httpd.service: Succeeded.
Apr 22 09:04:47 oskar systemd[1]: Stopped The Apache HTTP Server.
Apr 22 09:04:47 oskar systemd[1]: Starting The Apache HTTP Server...
Apr 22 09:04:47 oskar httpd[48232]: AH00558: httpd: Could not reliably determine the server's fully>
Apr 22 09:04:47 oskar systemd[1]: Started The Apache HTTP Server.
Apr 22 09:04:47 oskar httpd[48232]: Server configured, listening on: 192.168.0.135 port 80
Apr 24 03:12:02 oskar systemd[1]: Reloading The Apache HTTP Server.
Apr 24 03:12:02 oskar httpd[99850]: AH00558: httpd: Could not reliably determine the server's fully>
Apr 24 03:12:02 oskar systemd[1]: Reloaded The Apache HTTP Server.
Apr 24 03:12:02 oskar httpd[48232]: Server configured, listening on: 192.168.0.135 port 80
root@oskar : /opt >
But still something I don't understand is wrong, because in the logfile (/var/log/zabbix/zabbix_server.log) it is written, that zabbix cannot connect with the database?
119536:20220424:065800.200 Starting Zabbix Server. Zabbix 6.0.3 (revision 506e2b51e2).
119536:20220424:065800.200 ****** Enabled features ******
119536:20220424:065800.200 SNMP monitoring: YES
119536:20220424:065800.200 IPMI monitoring: YES
119536:20220424:065800.200 Web monitoring: YES
119536:20220424:065800.200 VMware monitoring: YES
119536:20220424:065800.200 SMTP authentication: YES
119536:20220424:065800.200 ODBC: YES
119536:20220424:065800.200 SSH support: YES
119536:20220424:065800.200 IPv6 support: YES
119536:20220424:065800.200 TLS support: YES
119536:20220424:065800.200 ******************************
119536:20220424:065800.200 using configuration file: /etc/zabbix/zabbix_server.conf
119536:20220424:065800.207 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local server through socket '/var/lib/mysql/mysql.sock' (13)
119536:20220424:065800.207 database is down: reconnecting in 10 seconds
119536:20220424:065810.208 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local server through socket '/var/lib/mysql/mysql.sock' (13)
119536:20220424:065810.208 database is down: reconnecting in 10 seconds
My config file I cannot attach at the moment but if some information will be needed I am happy to share it!
I read already some information here and at other places I found in the web and read for example that I should put complete pathes to the mysql.sock file, and other ideas. I tried some, but still no success, so I kindly ask for instructions from more experianced guys.
Thanks and kind regards
Stefan
Comment