Ad Widget

Collapse

PID file read issue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jdell64
    Junior Member
    • Jan 2019
    • 1

    #1

    PID file read issue

    I am having the same issue as described here:

    https://www.reddit.com/r/zabbix/comm...le_read_issue/

    except on an ubuntu server.

    The zabbix server is currently working, but this is on a different ubuntu client (server os). I am able to run a zabbix_get on the server to this client using the PSK, and I can get the uptime. However, I keep getting this PID error and the client keeps restarting. Additionally, I'm not seeing any information in the server's UI about this client.

    Since I'm running ubuntu with no SELinux, the help they provide does not seem to be applicable. What am I missing?
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    I do not know the version of Zabbix and Ubuntu you are using, but please make sure that the directory for PID storage has not been deleted. The directory is named /run/zabbix.

    Code:
    $ ls -ld /run/zabbix/
    drwxr-xr-x 2 zabbix zabbix 120  1月 30 11:47 /run/zabbix/
    $
    If it does not exist, create a directory owned by zabbix user as above.

    Depending on the version of Ubuntu, since it will be deleted under the /run directory when the OS is restarted, it is necessary to make a setting to automatically create the zabbix directory.
    An example of the configuration file is as follows.

    /usr/lib/tmpfiles.d/zabbix-agent.conf
    Code:
    d /run/zabbix 0755 zabbix zabbix - -

    Comment

    Working...