Ad Widget

Collapse

/etc/init.d/zabbix-agentd not presetn ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ghislain
    Senior Member
    • Jun 2005
    • 160

    #1

    /etc/init.d/zabbix-agentd not presetn ?

    hi,

    since upgrading to zabbix5.2 none of my zabbix system agent works. After checking the service file is totaly absent:

    /etc/init.d/zabbix-agentd


    do not exist. I have purged the package and reinstalled several time. Any other meeting this issue ?

    Ghislain.
    Regards,
    Ghislain.
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    You don't say what operating system this is, but most Linux distros have moved to 'systemd'. You probably want to read up on the 'systemctl' command, and learn commands like

    Code:
    systemctl list-units
    systemctl list-unit-files
    systemctl status zabbix-agent.service
    etc.

    Comment

    • ghislain
      Senior Member
      • Jun 2005
      • 160

      #3
      No i dont use systemd.

      do you mean zabbix is only compatible with systemd init from 5.2 and onward ?



      do not list systemd as requirement, i dont find any note on the release note saying it has abandonned all sysv-init systems , did i miss it ?

      regards,
      Ghislain.
      Regards,
      Ghislain.

      Comment

      • tim.mooney
        Senior Member
        • Dec 2012
        • 1427

        #4
        Originally posted by ghislain
        No i dont use systemd.

        do you mean zabbix is only compatible with systemd init from 5.2 and onward ?
        No, I'm not saying that.

        I'm saying that the pre-built Linux packages provided by Zabbix.com are generally mostly aimed at current, popular Linux distros. Most of the current popular Linux distros are using systemd, hence the pre-built Zabbix packages have a service file for systemd.

        zabbix-agent will work fine with systems that use traditional sysv-init. If you can find one of the pre-built packages that's targeted at a distro & version that doesn't use systemd, then it will likely include the sysv-init script.

        You haven't said what OS or distro you're using, what version it is, and where the Zabbix packages came from. Did you build your own zabbix-agent packages? Are you trying to use packages for a different distro and version, that might be more modern than the distro/version you're using?

        Comment

        • ghislain
          Senior Member
          • Jun 2005
          • 160

          #5
          i use the zabbit repo for debian. My debian are 9 and 10 mostly using sysvinit as systemd is not compatible with our setup.
          Regards,
          Ghislain.

          Comment

          • tim.mooney
            Senior Member
            • Dec 2012
            • 1427

            #6
            Originally posted by ghislain
            i use the zabbit repo for debian. My debian are 9 and 10 mostly using sysvinit as systemd is not compatible with our setup.
            Based on the information I found on the Debian wiki, systemd has been the default on Debian since Debian 8 (Jessie). Hence, the official packages for 8 and later would include a service file for systemd.

            You can either download the source code for zabbix and take one of the init scripts from there (probably try misc/init.d/debian/zabbix-agent and adjust as appropriate) or find one of the older agent packages and extract the init script from it, and then use it with your install.

            Comment

            • cyber
              Senior Member
              Zabbix Certified SpecialistZabbix Certified Professional
              • Dec 2006
              • 4807

              #7
              Originally posted by tim.mooney
              You don't say what operating system this is, but most Linux distros have moved to 'systemd'. You probably want to read up on the 'systemctl' command, and learn commands like

              Code:
              systemctl list-units
              systemctl list-unit-files
              systemctl status zabbix-agent.service
              etc.
              Zabbix docs should catch up on this also..​ They still refer to "service" everywhere..

              Comment

              Working...