Ad Widget

Collapse

feature request: foreground servers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • deanpence
    Junior Member
    • Feb 2005
    • 2

    #1

    feature request: foreground servers

    Three requests:

    - Give zabbix-server and zabbix-agentd options that let them run in the foreground. (I realize they spawn other processes.)
    - Give zabbix-server and zabbix-agentd the option to log either to syslog or to stdout/stderr.

    The reason I ask is that some of us like to run all daemons under a supervisor, and if a daemon daemonizes, that makes it impossible. As for the logging request, some of us run a central syslog server.
  • blagoycho
    Junior Member
    • Oct 2013
    • 6

    #2
    10 years later, the same question?

    Hey, did somebody found a way to run the zabbix server in the foreground?
    Originally posted by deanpence
    Three requests:

    - Give zabbix-server and zabbix-agentd options that let them run in the foreground. (I realize they spawn other processes.)
    - Give zabbix-server and zabbix-agentd the option to log either to syslog or to stdout/stderr.

    The reason I ask is that some of us like to run all daemons under a supervisor, and if a daemon daemonizes, that makes it impossible. As for the logging request, some of us run a central syslog server.

    Comment

    • BDiE8VNy
      Senior Member
      • Apr 2010
      • 680

      #3
      See ZBXNEXT-611 (and consider to vote for it!)

      Comment

      • kloczek
        Senior Member
        • Jun 2006
        • 1771

        #4
        Originally posted by deanpence
        The reason I ask is that some of us like to run all daemons under a supervisor, and if a daemon daemonizes, that makes it impossible. As for the logging request, some of us run a central syslog server.
        Change zabbix agent configuration to AllowRoot=1, User=root and restart the agent.

        If you already didn't know that it is possible seems seems you have some gaps in knowledge about zabbix. However I think that some of you are doing something fundamentally wrong if you need to start agent to be running under root user.
        I don't see single reason related to some diagnostics needs which would require to run agent in on daemon mode as well.
        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

        • blagoycho
          Junior Member
          • Oct 2013
          • 6

          #5
          Need to run zabbix_server through supervisord

          Hi,

          I need to run zabbix_server and zabbix_agent via supervisord, in order to do it the application(s) must be running in the foreground.

          Regards,
          Blagoy

          Comment

          • kloczek
            Senior Member
            • Jun 2006
            • 1771

            #6
            Originally posted by blagoycho
            Hi,

            I need to run zabbix_server and zabbix_agent via supervisord, in order to do it the application(s) must be running in the foreground.

            Regards,
            Blagoy
            IMO supervisord developers should stop forcing changing applications around. They should learn something about Solaris ctfs (contract fs) and SMF how to maintaining monitoring stared processes without rewriting all maintained applications.
            It is really sad to see how some Linux developers again and again making the same mistakes by reinventing the wheel (Linux NIH syndrome sometimes is very annoying).
            Last edited by kloczek; 05-06-2015, 11:25.
            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

            • polinux
              Junior Member
              • May 2015
              • 13

              #7
              Originally posted by blagoycho
              Hi,

              I need to run zabbix_server and zabbix_agent via supervisord, in order to do it the application(s) must be running in the foreground.

              Regards,
              Blagoy
              Hi,

              Have a look into our zabbix-community-docker image. I have used supervisor there.
              Link

              Look into ds.sh and how supervisor is calling it. That should give you some ideas.

              Hope that helps a bit.

              Comment

              • blagoycho
                Junior Member
                • Oct 2013
                • 6

                #8
                Thank you will try that out

                Comment

                • blagoycho
                  Junior Member
                  • Oct 2013
                  • 6

                  #9
                  FYI: http://serverfault.com/questions/608...mode-available
                  This solved the problem ;-)

                  Comment

                  • polinux
                    Junior Member
                    • May 2015
                    • 13

                    #10
                    Originally posted by blagoycho
                    Yes. And as far as I remember we have exact same solution in our community docker image ;-)

                    Comment

                    • blagoycho
                      Junior Member
                      • Oct 2013
                      • 6

                      #11
                      Yes you have it. Thank you!

                      Comment

                      • richlv
                        Senior Member
                        Zabbix Certified Trainer
                        Zabbix Certified SpecialistZabbix Certified Professional
                        • Oct 2005
                        • 3112

                        #12
                        ...and the foreground option got finally implemented for zabbix 3.0

                        Zabbix 3.0 Network Monitoring book

                        Comment

                        • unficyp
                          Junior Member
                          • Dec 2014
                          • 27

                          #13
                          or just use https://mmonit.com/monit/ to monitor your processes.

                          Comment

                          Working...