[ZBX-9751] No process in PID file zabbix-server Created: 2015 Aug 03 Updated: 2017 May 30 Resolved: 2015 Aug 04 |
|
| Status: | Closed |
| Project: | ZABBIX BUGS AND ISSUES |
| Component/s: | Server (S) |
| Affects Version/s: | 2.4.3 |
| Fix Version/s: | None |
| Type: | Problem report | Priority: | Trivial |
| Reporter: | Stanislav | Assignee: | Unassigned |
| Resolution: | Won't fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
ubuntu |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
Hi all! In zabbix_server.log there is only: Checked directory var/run/zabbix/ |
| Comments |
| Comment by Lukas S [ 2015 Aug 03 ] |
|
Please check your init.d file, are you sure your path is 'var/run/zabbix/zabbix_server.pid' instead of '/var/run/zabbix/zabbix_server.pid' (slash at beginning) ? Next step, you should check permission for this directory, zabbix user should have proper rights. |
| Comment by Stanislav [ 2015 Aug 03 ] |
|
my init.d #! /bin/sh
set -e NAME=zabbix_server test -x $DAEMON || exit 0 DIR=/var/run/zabbix my zabbix_server.conf
PidFile=/var/run/zabbix/zabbix_server.pid |
| Comment by Stanislav [ 2015 Aug 03 ] |
|
drwxr-xr-x 2 zabbix zabbix 100 Aug 3 14:41 zabbix |
| Comment by Lukas S [ 2015 Aug 03 ] |
|
paste your zabbix_server.conf file here, probably there is something wrong with your configuration and zabbix_server is not starting |
| Comment by Lukas S [ 2015 Aug 03 ] |
|
Configuration seems to be OK. How did you clone zabbix to reserve server? |
| Comment by Stanislav [ 2015 Aug 04 ] |
|
I cloned Zabbix with VMWare VSphere. |
| Comment by Aleksandrs Saveljevs [ 2015 Aug 04 ] |
|
In the issue description there is the following suspicious output: No process in pidfile 'var/run/zabbix/zabbix_server.pid' Found running; none killed. [OK] There is no "/" before "var". I would expect it to be "/var/run/zabbix/zabbix_server.pid". Could you please check whether fixing it makes a difference? |
| Comment by Stanislav [ 2015 Aug 04 ] |
|
My mistake No process in pidfile '/var/run/zabbix/zabbix_server.pid' Found running; none killed. [OK] |
| Comment by Stanislav [ 2015 Aug 04 ] |
|
Important detail After "service zabbix-server restart" ON MAIN SERVER |
| Comment by Stanislav [ 2015 Aug 04 ] |
|
when I type "bash -x zabbix-server restart" I have this message: |
| Comment by Stanislav [ 2015 Aug 04 ] |
|
My /etc/init.d/zabbix-server script #! /bin/sh
set -e NAME=zabbix_server test -x $DAEMON || exit 0 DIR=/var/run/zabbix if test ! -d "$DIR"; then export PATH="${PATH:+$PATH:}/usr/sbin:/sbin"
case "$1" in " >&2 exit 0 |
| Comment by Stanislav [ 2015 Aug 04 ] |
|
I fixed this problem |
| Comment by richlv [ 2015 Aug 04 ] |
|
as a reminder, please do use channels, listed at https://zabbix.org/wiki/Getting_help , for support |