Ad Widget
Collapse
Zabbix Cannot connect to the database
Collapse
X
-
Seems some problems with semaphores
If its only a test system, and selinux is disabled, try removing all semaphores, and then start zabbix-server again
getenforce
ipcrm -a
systemctl start zabbix-server
tail /etc/zabbix/zabbix-server.log
provide the output pleaseComment
-
Comment
-
-
Hello !
it seems a problem on OS level with semaphores
Provide please output of commands below
Code:ipcs -su
Code:cat /proc/sys/kernel/sem
Comment
-
You have run out of semaphore arrays
used arrays = 128
SEMMNI = 128
You can read more about this problem here
8.5. Setting Semaphore Parameters | Tuning and Optimizing Red Hat Enterprise Linux for Oracle 9i and 10g Databases | Red Hat Enterprise Linux | 5 | Red Hat Documentation
SEMMSL maximum number of semaphores per array
SEMMNS maximum semaphores system-wide
SEMOPM maximum operations per semop call
SEMMNI maximum arrays
you can try the following command without rebooting your system
and try to start zabbix-server after the changeCode:sysctl -w kernel.sem="250 32000 100 256"
if everything works as expected, make the change permanent
Regards,Code:echo "kernel.sem=250 32000 100 256" >> /etc/sysctl.conf
KasparsComment
-
Dear Kaspars,You have run out of semaphore arrays
used arrays = 128
SEMMNI = 128
You can read more about this problem here
8.5. Setting Semaphore Parameters | Tuning and Optimizing Red Hat Enterprise Linux for Oracle 9i and 10g Databases | Red Hat Enterprise Linux | 5 | Red Hat Documentation
SEMMSL maximum number of semaphores per array
SEMMNS maximum semaphores system-wide
SEMOPM maximum operations per semop call
SEMMNI maximum arrays
you can try the following command without rebooting your system
and try to start zabbix-server after the changeCode:sysctl -w kernel.sem="250 32000 100 256"
if everything works as expected, make the change permanent
Regards,Code:echo "kernel.sem=250 32000 100 256" >> /etc/sysctl.conf
Kaspars
Still cannot
Comment
-
You have not been able to create a database for Zabbix.
Did not you just create a table before?
Please try creating a database again.
Code:# mysql -u root -p mysql> drop database zabbix; mysql> create database zabbix character set utf8 collate utf8_bin; mysql> grant all privileges on zabbix.* to zabbix@localhost identified by '<password>'; mysql> quit # zcat /usr/share/doc/zabbix-server-mysql-3.4.4/create.sql.gz | mysql -uzabbix -p zabbix
Comment
-
You somehow managed to made a zabbix proxy, not a zabbix server databaseZabbix Server cannot work with a zabbix proxy database
They are completely diferent DBs for different purpouses
Because your database is empty, i suggest you do the following steps
Code:mysql drop database zabbix; create database zabbix character set utf8 collate utf8_bin; grant all privileges on zabbix.* to zabbix@localhost identified by '<password>'; quit; cat /usr/share/doc/zabbix-server-mysql-3.4.4/create.sql.gz | mysql zabbix -uzabbix -p
Comment
-
This is the Zabbix “Welcome” screen. Enter the user name Admin with password zabbix to log in as a Zabbix superuser.Comment
Comment