Ad Widget

Collapse

/run/zabbix not created on CentOS 7.3

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • danoreilly
    Junior Member
    • Feb 2017
    • 6

    #1

    /run/zabbix not created on CentOS 7.3

    The /run/zabbix directory for zabbix-agent isn't created properly on CentOS 7.3:

    # systemctl start zabbix-agent
    Job for zabbix-agent.service failed because a configured resource limit was exceeded. See "systemctl status zabbix-agent.service" and "journalctl -xe" for details.
    # cat systemctl status zabbix-agent.service
    cat: systemctl: No such file or directory
    cat: status: No such file or directory
    cat: zabbix-agent.service: No such file or directory

    It happens on most of our 7.3 systems. Our version of Zabbix is 3.2.2. I've seen this was a known problem a year or two ago, but it seems to have come back.
  • SBO
    Zabbix Certified Specialist
    Zabbix Certified Specialist
    • Sep 2015
    • 226

    #2
    Why do you use cat ?
    The proper command is
    systemctl status zabbix-agent.service
    not
    cat systemctl status zabbix-agent.service

    That's why you have these messages..

    Comment

    • kloczek
      Senior Member
      • Jun 2006
      • 1771

      #3
      Looks like zabbix-agent.service is incomplete and lines like below are missing in this file:
      Code:
      # Run ExecStartPre with root-permissions
      ExecStartPre=-/usr/bin/mkdir -p /var/run/zabbix
      ExecStartPre=/usr/bin/chmod 775 /var/run/zabbix
      ExecStartPre=/usr/bin/chgrp zabbix /var/run/zabbix
      ExecStart=/usr/sbin/zabbix_agentd -c $CONFFILE
      PIDFile=/var/run/zabbix/zabbix_agentd.pid
      http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
      https://kloczek.wordpress.com/
      zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
      My zabbix templates https://github.com/kloczek/zabbix-templates

      Comment

      • danoreilly
        Junior Member
        • Feb 2017
        • 6

        #4
        It's called a "typo"

        Originally posted by SBO
        Why do you use cat ?
        The proper command is
        systemctl status zabbix-agent.service
        not
        cat systemctl status zabbix-agent.service

        That's why you have these messages..

        It's called a typo. I didn't really type that command the way it appears.

        Comment

        • SBO
          Zabbix Certified Specialist
          Zabbix Certified Specialist
          • Sep 2015
          • 226

          #5
          Sorry but I had to be sure, I see so many weird things around here sometimes..

          Comment

          Working...