Zabbix Problem Diagnosis

Source: Internet
Author: User
Tags iptables

Phenomenon:

[root@localhost sbin]# Service Zabbix_server restart

Restarting Zabbix_server (via Systemctl): [OK]

The service is on the surface, but the process is not running.


Workaround: View service status reports

[Root@localhost sbin]#/etc/init.d/zabbix_server Status
Zabbix_server.service-sysv:starts and stops Zabbix server using Chkconfig
Loaded:loaded (/etc/rc.d/init.d/zabbix_server)
Active:active (exited) since three 2016-01-13 21:29:13 CST; 21min ago
Docs:man:systemd-sysv-generator (8)
process:975 execstop=/etc/rc.d/init.d/zabbix_server Stop (code=exited, status=0/success)
process:989 execstart=/etc/rc.d/init.d/zabbix_server Start (code=exited, status=0/success)


January 21:29:13 Localhost.localdomain systemd[1]: Starting sysv:starts and stops Zabbix Server using chkconfig ...
January 21:29:13 Localhost.localdomain zabbix_server[989]: Starting Zabbix_server:zabbix_server [996]: Unknown parameter [ Dbpas...ine 5
January 21:29:13 Localhost.localdomain zabbix_server[989]: [Failed]
January 21:29:13 Localhost.localdomain systemd[1]: Started sysv:starts and stops Zabbix Server using Chkconfig.
Hint:some lines were ellipsized, use-l.


Zabbix_agentd is also a phenomenon also, no running process.

Detection method: AGENTD process runs directly behind the configuration file

[Root@localhost sbin]#./usr/local/zabbix/sbin/zabbix_agentd-c/usr/local/zabbix/etc/zabbix_agentd.conf
Zabbix_agentd [1065]: Wrong value of [unsafeuserparameters] in config file [/usr/local/zabbix/etc/zabbix_agentd.conf], Line 5


Frequently asked questions about other Zabbix:

Zabbix is an enterprise-class open source solution based on the Web interface that provides distributed system monitoring and network monitoring capabilities.
Download: http://www.zabbix.com/download.php
Help: Https://www.zabbix.com/documentation/doku.php?id=2.0/manual/appliance

Environment: SUSE 12
Zabbix 2.0.4

★windows Agent Install:
1) Edit zabbix_agentd.win.conf
2) C:>zabbix_agentd.exe--c c:zabbix_agents_2.0.4.winconfzabbix_agentd.win.conf--install
Zabbix_agentd.exe [3724]: Service [Zabbix Agent] installed successfully
Zabbix_agentd.exe [3724]: Event source [Zabbix Agent] installed successfully

Configuration file Modification:
Zabbix_agentd.win.conf

[@more @] Logfile=c:zabbix_agentd.log
server= Monitor Server IP
Hostname= the host name or IP address of this machine
serveractive=127.0.0.1:10051

★linux Agent Install:
[root@xxx]# zabbix_agentd-c/usr/local/zabbix_agentd.conf
Zabbix_agentd [14423]: User Zabbix does not exist
Zabbix_agentd [14423]: cannot run as root!
Workaround: Useradd Zabbix

AIX test:
#>./usr/local/bin/zabbix/sbin/zabbix_agentd-c/home/zabbix/conf/zabbix_agentd.conf

★restart or status for service. To does so, log in using SSH as root user and execute:
$> Service Apache2 Restart
$> Service Zabbix_server Status
$> Service MySQL Status
Or
$> rczabbix_server Status
$>/etc/init.d/zabbix_server Status

★ Time Zone:
# Cp/usr/share/zoneinfo/asia/chongqing/etc/localtime

★ View the current time zone
# Date-r
Wed, 2013 20:09:02 +0800

★ Modify Hardware Time
# hwclock-w

★ Modify php.ini time zone for China, otherwise 8 hours:
# Vi/etc/php5/apache2/php.ini content is changed as follows
Date.timezone = ' RPC '

★ After the time zone is modified, an error is displayed after logging on to the Web:
Date (): It is isn't safe to rely on the system ' s timezone settings. You are are *required* to use the Date.timezone setting or the Date_default_timezone_set () function. In case you are used any of those methods and your are still getting this warning, for you most likely misspelled the timezone Iden Tifier. We selected ' asia/chongqing ' for ' cst/8.0/no DST ' instead [include/func.inc.php:251]
Modify Date.timezone = ' asia/chongqing ' in php.ini file

★ The problem of garbled Chinese display:
By uploading Chinese fonts to modify the original font to solve
# cd/usr/share/zabbix/fonts
# MV Dejavusans.ttf DejaVuSans.ttf.bak
# MV SIMSUN.TTC Dejavusans.ttf

Lack of space in ★swap

★ LOG:
Zabbix_server:logfile=/var/log/zabbix/zabbix_server.log
Mysql:log_error=/var/log/mysql/mysqld.log

★frontend Access
# vi/etc/apache2/conf.d/zabbix.conf
# Service Apache2 Restart

★ Login Zabbix Web interface display

Display in Zabbix_server.log
2706:20130313:150455.037 cannot send list of active checks to [127.0.0.1]: host [Zabbix server] not monitored
2705:20130313:150655.060 cannot send list of active checks to [127.0.0.1]: host [Zabbix server] not monitored
2702:20130313:150855.082 cannot send list of active checks to [127.0.0.1]: host [Zabbix server] not monitored
Workaround:
1)
# SuSEfirewall2 Stop
# SuSEfirewall2 Open EXT TCP zabbix-trapper zabbix-agent
# SuSEfirewall2 Start
Susefirewall2:setting Up Rules from/etc/sysconfig/susefirewall2 ...
Susefirewall2:firewall rules successfully set
2)
Iptables a little bit of pain, Ubuntu installed iptables after the rule is completely empty is to reject the connection.
And it's not like Redhat can use the service to stop, temporarily do not know how to disable
You're going to have to try two rules.
# iptables-a input-p tcp-m tcp--dport 10051-j ACCEPT
# iptables-a input-p tcp-m tcp--dport 10050-j ACCEPT
Save new Iptables Rule
# Iptables-save >/root/iptables.save
# vi/etc/init.d/boot.local
Iptables-restore/root/iptables.save #增加一条命令 to automatically restore the system when it is started
3)
Setsebool-p Httpd_can_network_connect on

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.