Zabbix Configdoc

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 17

http://10.6.215.12/zabbix/setup.

php

PHP version5.4.165.4.0OKPHP option "memory_limit"128M128MOKPHP option


"post_max_size"16M16MOKPHP option "upload_max_filesize"2M2MOKPHP option
"max_execution_time"300300OKPHP option "max_input_time"300300OKPHP option
"date.timezone"Asia/KolkataOKPHP databases supportMySQL
OKPHP bcmathonOKPHP mbstringonOKPHP option "mbstring.func_overload"offoffOKPHP
socketsonOKPHP gd2.1.02.0OKPHP gd PNG supportonOKPHP gd JPEG supportonOKPHP gd GIF
supportonOKPHP gd FreeType supportonOKPHP libxml2.9.12.6.15OKPHP xmlwriteronOKPHP
xmlreaderonOKPHP LDAPonOKPHP ctypeonOKPHP sessiononOKPHP option
"session.auto_start"offoffOKPHP gettextonOKPHP option "arg_separator.output"&&OK
Welcome@123
http://10.6.215.12/zabbix/zabbix.php?action=dashboard.view

The default user is “Admin” and the password is “Zabbix

Agent Configuration
Installing Zabbix agent on linux machine

yum install zabbix zabbix-agent

iptables -A INPUT -p tcp -s 10.6.215.12 --dport 10050 -m state --state


NEW,ESTABLISHED -j ACCEPT

service zabbix-agent restart

service zabbix-agent start

service zabbix-agent stopCentOS 7.7

Login as administrator. dont use sudo su -

rpm -Uvh https://repo.zabbix.com/zabbix/4.4/rhel/7/x86_64/zabbix-release-


4.4-1.el7.noarch.rpm

yum clean all

yum -y install zabbix-server-mysql zabbix-web-mysql zabbix-agent


mysql -u root -p

gave its temporary password u-w_SmMTg5W: (Check on google how to


get the temporary mysql password)

<mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'Welcome@123'; -->


this step is mandatory to change the temporary password

<mysql> create database zabbix character set utf8 collate utf8_bin; -->
here, zabbix is the DB user

<mysql> GRANT ALL PRIVILEGES on *.* TO 'root'@'localhost' WITH GRANT


OPTION;

<mysql> quit;

zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -u root -p


zabbix --> here zabbix is the db name

Edit file /etc/zabbix/zabbix_server.conf

DBPassword=Welcome@123

Edit file /etc/httpd/conf.d/zabbix.conf, uncomment and set the right


timezone for you.

php_value date.timezone Asia/Kolkata


systemctl restart zabbix-server zabbix-agent httpd

systemctl enable zabbix-server zabbix-agent httpd

systemctl restart mysqld

Connect to your newly installed Zabbix frontend:


http://server_ip_or_name/zabbix http://10.6.215.12/zabbix

++++++++++++++++++

conf file: /etc/zabbix/zabbix_server.conf /etc/zabbix/zabbix_agentd.conf


/etc/zabbix/zabbix_agentd.d/*.conf /etc/my.cnf

log: /var/log/zabbix/zabbix_agentd.log and


/var/log/zabbix/zabbix_server.log

Connect to DB: mysql -u zabbix -p

external scripts: /usr/lib/zabbix/externalscripts

/var/lib/mysql/mysql.sock

CentOs Reboot Command: systemctl reboot

zabbix port: 80 or 10051


DB Port: 3306, datadir = /var/lib/mysql log_error =
/var/log/mysql/error.log

SELECT user FROM mysql.user;

SELECT user,host FROM mysql.user;

SHOW GRANTS FOR 'zabbix'@'localhost';

sudo netstat -lpn | grep zabbix

netstat -tulpn | grep zabbix

cat /etc/services | grep 1005

cat /etc/sysconfig/iptables

/run/zabbix/zabbix_server.pid

getsebool -a | grep zabbix : setsebool -P zabbix_can_network=true,


setsebool -P httpd_can_connect_zabbix=true, setsebool -P
zabbix_run_sudo=true

iptables -A INPUT -m state --state NEW -p tcp --dport 25 -j ACCEPT[/code]

systemctl start firewalld


https://teams.microsoft.com/l/team/19%3aff5ae14e03fc411ca092b49e87d24ee2%4
0thread.skype/conversations?groupId=b8f62e3b-a0b3-4652-b53b-
8aaa6eaffd3c&tenantId=622f8cde-07b5-4d16-ab2a-6dc0c3a66e35

https://teams.microsoft.com/l/team/19%3aff5ae14e03fc411ca092b49e87d24ee2%4
0thread.skype/conversations?groupId=b8f62e3b-a0b3-4652-b53b-
8aaa6eaffd3c&tenantId=622f8cde-07b5-4d16-ab2a-6dc0c3a66e35

POST https://graph.microsoft.com/beta/teams/{id}/channels/{id}/messages

Content-type: application/json

https://graph.microsoft.com/beta/teams/19%3aff5ae14e03fc411ca092b49e87d24e
e2%40thread.skype/channels

https://graph.microsoft.com/beta/teams/3aff5ae14e03fc411ca092b49e87d24ee2/
channels

CREATE TABLE [IF NOT EXISTS] `test123` (`name` char);

CREATE TABLE IF NOT EXISTS `MyFlixDB`.`Members` (`full_names`


VARCHAR(150)) ENGINE = InnoDB;
conf

/etc/zabbix/web/zabbix.conf.php

Take backup of /var/lib/mysql for Zabbix backup

You might also like