The zabbix-agent no longer starts on Redhat 7.3.
systemctl status zabbix-agent.service ? zabbix-agent.service - Zabbix Agent Loaded: loaded (/usr/lib/systemd/system/zabbix-agent.service; enabled; vendor preset: disabled) Active: activating (auto-restart) (Result: resources) since Tue 2016-11-08 20:16:06 CET; 6s ago Process: 52646 ExecStop=/bin/kill -SIGTERM $MAINPID (code=exited, status=1/FAILURE) Process: 52654 ExecStart=/usr/sbin/zabbix_agentd -c $CONFFILE (code=exited, status=0/SUCCESS) Main PID: 52644 (code=exited, status=1/FAILURE) Nov 08 20:16:06 hostname systemd[1]: Failed to start Zabbix Agent. Nov 08 20:16:06 hostname systemd[1]: Unit zabbix-agent.service entered failed state. Nov 08 20:16:06 hostname systemd[1]: zabbix-agent.service failed.
Nov 8 20:06:11 hostname systemd: zabbix-agent.service holdoff time over, scheduling restart. Nov 8 20:06:11 hostname systemd: Starting Zabbix Agent... Nov 8 20:06:11 hostname systemd: zabbix-agent.service: Supervising process 52333 which is not our child. We'll most likely not notice when it exits. Nov 8 20:06:11 hostname systemd: Started Zabbix Agent. Nov 8 20:06:11 hostname systemd: zabbix-agent.service: main process exited, code=exited, status=1/FAILURE Nov 8 20:06:11 hostname kill: Usage: Nov 8 20:06:11 hostname kill: kill [options] <pid|name> [...] Nov 8 20:06:11 hostname systemd: zabbix-agent.service: control process exited, code=exited status=1 Nov 8 20:06:11 hostname kill: Options: Nov 8 20:06:11 hostname kill: -a, --all do not restrict the name-to-pid conversion to processes Nov 8 20:06:11 hostname kill: with the same uid as the present process Nov 8 20:06:11 hostname kill: -s, --signal <sig> send specified signal Nov 8 20:06:11 hostname kill: -q, --queue <sig> use sigqueue(2) rather than kill(2) Nov 8 20:06:11 hostname kill: -p, --pid print pids without signaling them Nov 8 20:06:11 hostname kill: -l, --list [=<signal>] list signal names, or convert one to a name Nov 8 20:06:11 hostname kill: -L, --table list signal names and numbers Nov 8 20:06:11 hostname kill: -h, --help display this help and exit Nov 8 20:06:11 hostname kill: -V, --version output version information and exit Nov 8 20:06:11 hostname kill: For more details see kill(1). Nov 8 20:06:11 hostname systemd: Unit zabbix-agent.service entered failed state. Nov 8 20:06:11 hostname systemd: zabbix-agent.service failed.
I just installed Zabbix 5.0 LTS (The Latest verion of Zabbix) on RHEL-8 OS. On logging in the Zabbix front end, I gett a message saying «Zabbix server is not working». & bar below says:»Zabbix server not working.Information delayed may not be current».Kindly provide help?
Edit:My server port is 10051.
On entering «service zabbix start», I get output:
Redirecting to /bin/systemctl start zabbix.service
Failed to start zabbix.service:Unit zabbix.service not found.
& on entering «systemctl restart zabbix-server zabbix-agent httpd php-fpm», I get:
Job for zabbix-server.service failed because the control process exited with error code.
See "systemctl status zabbix-server.service" and "journalctl -xe" for details.
Output of «journalctl -xe»:
RHEL8 platform-python[5746]: SELinux is preventing zabbix_server from using the dac_override capability.
*** Plugin dac_overrride (91.4 confidence) suggests ************************
If you want to help identify if domain needs this access or you have a file with the wrong permissions on your system
Then turn on full auditing to get path information about the offending file and generate the error again.
Do
Turn on full auditing
#auditctl -w /etc/shadow -p w
Try to recreate AVC.Then execute
#ausearch -m avc -ts recent
If you see PATH record check ownership/permissions on file, and fix it,
otherwise report as a bugzilla
*** Plugin catchall (9.59 confidence) suggests *************************
If you believe that zabbix_server should have the dac_override capability by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
#ausearch -c 'zabbix_server' --raw | audit2allow -M my-zabbixserver
#semodule -X 300 -i my-zabbixserver.pp
RHEL8 dbus-daemon[779]: [system] Activating service name='org.fedoraproject.Setroubleshootd' requested by ':1.40' (uid=0 pid=748 comm="/usr/sbin/sedispatch " label="sytem_u:system_r:auditd_t:s0") (using servicehelper)
On entering «systemctl status zabbix-server.service», I get output:
zabbix-server.service-Zabbix server: Loaded:....
Active:....
Process: 4959 ExecStart=/usr/sbin/zabbix_server -c $CONFILE (code=exited,status=1/FAILURE)
RHEL8 systemd[1]:zabbix-server.service:Control process exited,code=exited status=1
RHEL8 systemd[1]:zabbix-server.service:Failed with result 'exit-code'.
RHEL8 systemd[1]:Failed to start Zabbix Server. What do I do now?
0
I would like to install zabbix-server on Ubuntu 20.04. When I run the following command, I receive an error:
sudo systemctl restart zabbiz-server zabbix-agent apache2
Error:
How can I solve this problem?
- server
- apache2
- zabbix
Improve this question
edited Apr 28, 2022 at 7:26
matigo
17.8k6 gold badges35 silver badges61 bronze badges
asked Apr 28, 2022 at 6:39
Jaafar SalehJaafar Saleh
11 bronze badge
1
-
You should see some useful errors in the log files for Zabbix. These will be somewhere within
/var/log
or/var/log/apache2
, depending on how you configured the server.– matigo
Apr 28, 2022 at 7:27
Add a comment
|
Sorted by:
Reset to default
Your Answer
Sign up or log in
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Name
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy
Browse other questions tagged
- server
- apache2
- zabbix
or ask your own question.
Browse other questions tagged
- server
- apache2
- zabbix
or ask your own question.
I just installed Zabbix-5.0 LTS on RHEL-8 OS. After logging in on the Zabbix fronend, I get message that «Zabbix server is not running:the information displayed may not be correct». Kindly help me with server installation.
My Zabbix server port is 10051.
On entering service zabbix start
, I get output:
Redirecting to /bin/systemctl start zabbix.service
Failed to start zabbix.service:Unit zabbix.service not found.
and on entering systemctl restart zabbix-server zabbix-agent httpd php-fpm
I get:
Job for zabbix-server.service failed because the control process exited with error code.
See "systemctl status zabbix-server.service" and "journalctl -xe" for details.
Output of «journalctl -xe»:
RHEL8 platform-python[5746]: SELinux is preventing zabbix_server from using the dac_override capability.
*** Plugin dac_overrride (91.4 confidence) suggests ************************
If you want to help identify if domain needs this access or you have a file with the wrong permissions on your system
Then turn on full auditing to get path information about the offending file and generate the error again.
Do
Turn on full auditing
#auditctl -w /etc/shadow -p w
Try to recreate AVC.Then execute
#ausearch -m avc -ts recent
If you see PATH record check ownership/permissions on file, and fix it,
otherwise report as a bugzilla
*** Plugin catchall (9.59 confidence) suggests *************************
If you believe that zabbix_server should have the dac_override capability by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
#ausearch -c 'zabbix_server' --raw | audit2allow -M my-zabbixserver
#semodule -X 300 -i my-zabbixserver.pp
RHEL8 dbus-daemon[779]: [system] Activating service name='org.fedoraproject.Setroubleshootd' requested by ':1.40' (uid=0 pid=748 comm="/usr/sbin/sedispatch " label="sytem_u:system_r:auditd_t:s0") (using servicehelper)
On entering «systemctl status zabbix-server.service», I get output:
zabbix-server.service-Zabbix server: Loaded:....
Active:....
Process: 4959
ExecStart=/usr/sbin/zabbix_server -c $CONFILE (code=exited,status=1/FAILURE)
RHEL8 systemd[1]:zabbix-server.service:Control process exited,code=exited status=1
RHEL8 systemd[1]:zabbix-server.service:Failed with result 'exit-code'.
RHEL8 systemd[1]:Failed to start Zabbix Server. What do I do now?
We encountered problem after fresh installation of Zabbix Agent in Ubuntu.
Zabbix Installation Error
zabbix_agentd[4770]: zabbix_agentd [4770]: /etc/zabbix/zabbix_agentd.conf.d: [2] No suc
systemd[1]: zabbix-agent.service: Control process exited, code=exited status=1
systemd[1]: zabbix-agent.service: Failed with result ‘exit-code’.
systemd[1]: Failed to start Zabbix Agent.
systemd[1]: zabbix-agent.service: Service hold-off time over, scheduling restart.
systemd[1]: zabbix-agent.service: Scheduled restart job, restart counter is at 14.
systemd[1]: Stopped Zabbix Agent.
systemd[1]: Starting Zabbix Agent…
Solution is
$ sudo apt purge -f zabbix-agent
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages will be REMOVED:
zabbix-agent*
0 upgraded, 0 newly installed, 1 to remove and 242 not upgraded.
1 not fully installed or removed.
After this operation, 802 kB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database … 66728 files and directories currently installed.)
Removing zabbix-agent (1:5.0.5-2+focal) …
Processing triggers for man-db (2.8.3-2ubuntu0.1) …
(Reading database … 66718 files and directories currently installed.)
Purging configuration files for zabbix-agent (1:5.0.5-2+focal) …
Processing triggers for ureadahead (0.100.0-20) …
Processing triggers for systemd (237-3ubuntu10.12) …
$ sudo apt install zabbix-agent
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following NEW packages will be installed:
zabbix-agent
0 upgraded, 1 newly installed, 0 to remove and 242 not upgraded.
Need to get 0 B/201 kB of archives.
After this operation, 802 kB of additional disk space will be used.
Selecting previously unselected package zabbix-agent.
(Reading database … 66714 files and directories currently installed.)
Preparing to unpack …/zabbix-agent_1%3a5.0.5-2+focal_amd64.deb …
Unpacking zabbix-agent (1:5.0.5-2+focal) …
Processing triggers for ureadahead (0.100.0-20) …
Setting up zabbix-agent (1:5.0.5-2+focal) …
Created symlink /etc/systemd/system/multi-user.target.wants/zabbix-agent.service → /lib/systemd/system/zabbix-agent.service.
Processing triggers for systemd (237-3ubuntu10.12) …
Processing triggers for man-db (2.8.3-2ubuntu0.1) …
Processing triggers for ureadahead (0.100.0-20) …
$ sudo nano /etc/zabbix/zabbix_agentd.conf
In the config file, specify these parameters,
Server = Zabbix_Server
Hostname=Zabbix_Agent
$ sudo systemctl restart zabbix-agent
$ sudo systemctl enable zabbix-agent
Synchronizing state of zabbix-agent.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable zabbix-agent
$ sudo service zabbix-agent status
● zabbix-agent.service – Zabbix Agent
Loaded: loaded (/lib/systemd/system/zabbix-agent.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2020-11-18 15:14:18 UTC; 16s ago
Main PID: 7580 (zabbix_agentd)
Tasks: 6 (limit: 9487)
CGroup: /system.slice/zabbix-agent.service
├─7580 /usr/sbin/zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
├─7581 /usr/sbin/zabbix_agentd: collector [idle 1 sec]
├─7582 /usr/sbin/zabbix_agentd: listener #1 [waiting for connection]
├─7583 /usr/sbin/zabbix_agentd: listener #2 [waiting for connection]
├─7584 /usr/sbin/zabbix_agentd: listener #3 [waiting for connection]
└─7585 /usr/sbin/zabbix_agentd: active checks #1 [idle 1 sec]