Ad Widget

Collapse

Zabbix and gentoo

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sauron
    Senior Member
    • Jan 2005
    • 215

    #16
    Zabbix 1.1 included in portage tree.

    Comment

    • Clansman
      Junior Member
      • May 2006
      • 28

      #17
      Hi sauron;

      I've installed zabbix-agent-1.1-r1 and zabbix-server-1.1 on a gentoo server I'm working on and I've found out that it doesn't 'chown' some relevant directories like:
      /etc/zabbix
      /var/log/zabbix
      /var/run/zabbix

      A quick look around the ebuilds seems to indicate that thei're correct... at least that's what the section 'fowners' in src_install() seems to indicate.
      However, I've retried installing the packages and the same happens; the files and directories are owned by root:root.

      Any ideas?

      []

      Comment

      • sauron
        Senior Member
        • Jan 2005
        • 215

        #18
        update portage

        Comment

        • Clansman
          Junior Member
          • May 2006
          • 28

          #19
          Originally posted by sauron
          update portage
          Are you suggesting that portage itself is not processing the ebuilds properly? What version would you suggest?

          []

          Comment

          • sauron
            Senior Member
            • Jan 2005
            • 215

            #20
            Originally posted by Clansman
            Are you suggesting that portage itself is not processing the ebuilds properly? What version would you suggest?
            I'm got this problem at old portage package (not tree) when i'm updated it problem dispared

            Comment

            • Clansman
              Junior Member
              • May 2006
              • 28

              #21
              Hi,

              I think the /etc/init.d/zabbix-agent/server could be further tuned to:
              start:
              1. if .pid file exists, check for another running instance of the agent; if none found, remove the file and start zabbix-agentd.
              2. if zabbix-agentd is unable to bind to it's port, wait a while and try again until some maximum timeout reached (squid does such upon shutdown).

              stop:
              3. after killing process, see if program really died. check for .pid file left behind and clean it if found.

              I'm suggesting this because zabbix-agent frequently chokes on itself. Sometimes /etc/init.d/zabbix-agent stop doesn't remove the .pid, sometimes the process doesn't start because the kernel hasn't let go of the port previously used...

              I could do this myself, but I'm not familiar with the gentoo-way of /etc/init.d scripts so maybe there are elegant ways to do this. However I could give it a shot and hand them over to you.

              What do you think about it?
              Cheers,

              Comment

              • wschlich
                Junior Member
                • May 2006
                • 8

                #22
                zabbix-agentd is the one to fix, not the init script.

                Comment

                • Alexei
                  Founder, CEO
                  Zabbix Certified Trainer
                  Zabbix Certified SpecialistZabbix Certified Professional
                  • Sep 2004
                  • 5654

                  #23
                  The TIME_WAIT issue is already fixed in CVS. There is another thread which contains a patch for all interested in ZABBIX Forums.
                  Alexei Vladishev
                  Creator of Zabbix, Product manager
                  New York | Tokyo | Riga
                  My Twitter

                  Comment

                  • Clansman
                    Junior Member
                    • May 2006
                    • 28

                    #24
                    Originally posted by Alexei
                    The TIME_WAIT issue is already fixed in CVS. There is another thread which contains a patch for all interested in ZABBIX Forums.
                    heh, thanks alexei.
                    welcome back to the less-fun-than-wedding-hollidays life.

                    []

                    Comment

                    Working...