Ad Widget

Collapse

Auto-start

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Linwood
    Senior Member
    • Dec 2013
    • 398

    #1

    Auto-start

    I am very new to unix (specifically Ubuntu 13.10 saucy) , so this may be more unix ignorance than zabbix ignorance, but apologies in either case...

    I installed Ubuntu server, what I hope are all the prerequisites, and then built zabbix 2.2.1 from sources, following the guidance in the manual.

    To my delight it came up and ran with only a few quirks.

    One has me stumped -- it doesn't start on reboot. I'd like to learn how to correct this properly, not just hack it.

    If I do this:

    sudo find / -name "*zabbix_server*"

    other than in my personal directories with the source, the only thing that comes up are these:

    /usr/local/share/man/man8/zabbix_server.8
    /usr/local/etc/zabbix_server.conf
    /usr/local/etc/zabbix_server.conf.d
    /usr/local/sbin/zabbix_server
    /tmp/zabbix_server.log
    /tmp/zabbix_server.pid

    I think there's supposed to be entries in /etc/default and/or /etc/rc*, specifically a S*zabbix_server file in one of the rc*.d directories. I see lots of hints that you need to edit those files, but I don't have a copy of them to start with. I also downloaded the package and didn't see it in the contents there either (at least not in the right name). I downloaded an appliance VM and looked there, but it's very different from Ubuntu, apparently.

    I can't believe I got all the harder stuff working - even postfix talking to Office 365. But I can't get it to auto-start.

    Any basic pointers? I'm more than happy to read and search if someone can give me a starting point.

    Again, this is a fresh build from source 2.2.1 on the newer saucy, not a package install.
  • steveboyson
    Senior Member
    • Jul 2013
    • 582

    #2
    Do yourself a favour and grab the precompiled binaries for Ubuntu.

    Or: use you self compiled binaries and copy + change one of the scripts in /etc/init.d/

    I don't know how much is done via "upstart" in Ubuntu - it is a complete different thing than the standard SysV init procedure.

    But I suppose SysV-style init scripts are still supported on Ubuntu 13.x.

    Or take this one as a template (it is from the 2.0.9 appliance, SuSE x64):
    Last edited by steveboyson; 31-12-2013, 02:13.

    Comment

    • Linwood
      Senior Member
      • Dec 2013
      • 398

      #3
      Thanks, Steve. I had tried that, but was getting tangled up - the Ubuntu package was older (2.0.mumble I think), and forcing the newer one gave dependency errors I couldn't figure out how to work through. I think it was because I was on 13.10 of Ubuntu instead of their more stable version, but I had been testing everything else on 13.10.

      But to that point, maybe I'll build the stable version, then do the install, and grab it's startup files.

      The attachment link you posted - thanks, but couldn't get it to work, just get a German page that (if google is translating it right) says "link is not working" without any reasons.

      Comment

      • steveboyson
        Senior Member
        • Jul 2013
        • 582

        #4
        Try that one:

        Comment

        • Linwood
          Senior Member
          • Dec 2013
          • 398

          #5
          <Post edited to remove junk>

          That's what I get for trying to do this in unix without knowing anything about unix.

          Just in case anyone else runs across this, there were two pieces I was missing.

          The first was pulling the script from the sources, and the other was that update-rc.d exists.

          So basic process is:

          sudo cp ~/zabbix-2.2.1/misc/init.d/debian/zabbix-server /etc/init.d/zabbix-server
          edit this file and check paths
          sudo chmod 755 /etc/init.d/zabbix-server
          sudo update-rc.d zabbix-server defaults

          In the above, the first path needs to be where you put the sources with the appropriate os (ubuntu's directory didn't have a copy but debian seemed to work). The last line creates all the startup scripts in the appropriate place.

          Sorry for the divergence. Would have expected someone to say "learn unix fool" - thanks for being polite, I guess.
          Last edited by Linwood; 05-02-2014, 23:57.

          Comment

          Working...