Zabbix reset Admin password

To reset the Admin password of Zabbix connect to the SQL console:
[root@zbx01 ~]# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 238
Server version: 5.5.60-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 [(none)]> use zabbix;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
MariaDB [zabbix]> update zabbix.users set passwd=md5('newpass') where alias='Admin';
Query OK, 0 rows affected (0.11 sec)
Rows matched: 1 Changed: 0 Warnings: 0

Suse Enterprise upgrade from 11 SP4 to 12 SP3 – Error with LVM partitions

If you’re upgrading from Suse Enterprise Server 11 SP4 to 12 SP3 and you get this error:

Some partitions in the system on /dev/XdYZ are mounted by kernel-device name. This is not reliable for the update since kernel-device names are unfortunately not persistent. It is strongly recommended to start the old system and change the mount-by method to any other method for all partitions.

Follow the Suse kb 7003734:
https://www.suse.com/support/kb/doc/?id=7003734

Install Zabbix 3.4 server on CentOS 7

Let’s install the dependencies first:
yum install mariadb-server mariadb-embedded mariadb-devel httpd php php-gd php-bcmath php-ctype php-xml php-xmlreader php-xmlwriter php-session php-mbstring php-ldap php-gettext php-mysqli pcre pcre-devel libevent libevent-devel libssh2 libcurl libcurl-devel net-snmp-devel net-snmp-agent net-snmp-libs libxml2 libxml2-devel

Edit /etc/php.ini file and change this variables to:
max_execution_time = 600
max_input_time = 600
memory_limit = 256M
post_max_size = 32M
upload_max_filesize = 16M
date.timezone = Europe/Rome

Continue reading “Install Zabbix 3.4 server on CentOS 7”

CentOS set static IP address

To set a static IP address in CentOS edit the file
/etc/sysconfig/network-scripts/ifcfg-$networkcard
Where $networkcard is the name of the interface that you want to setup.
The default is dhcp so you have to change like this, for example:
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=static
IPADDR=192.168.8.3
NETMASK=255.255.255.0
GATEWAY=192.168.8.9
DNS1=192.168.8.203
DNS2=192.168.8.213
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
NAME=eth0
UUID=aabb3fe2-4eea-4096-9dbb-a674e196a821
DEVICE=enp1s0
ONBOOT=yes