Ad Widget

Collapse

How to setup zabbix to monitor an application process is running or not

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • carl_qin
    Junior Member
    • May 2013
    • 11

    #1

    How to setup zabbix to monitor an application process is running or not

    I need to use zabbix to monitor an application process is running or not in a server.Appreciate for any help.
  • Heilig
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Mar 2013
    • 366

    #2
    You need to write a script, which will be check the service state and use zabbix_sender to send results in zabbix. 1 if service is Up or 0 if service is Down.

    Comment

    • neogan
      Senior Member
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Sep 2011
      • 118

      #3
      Originally posted by carl_qin
      I need to use zabbix to monitor an application process is running or not in a server.Appreciate for any help.
      Which OS do you use on server? Do you have in the server - zabbix agent?

      Comment

      • heaje
        Senior Member
        Zabbix Certified Specialist
        • Sep 2009
        • 325

        #4
        Maybe I'm just missing something here, but you could just create an item with the prox.num [] key. It would tell you how many of a process is running. Then you could just create a trigger that goes off if that item returns zero.

        Comment

        • carl_qin
          Junior Member
          • May 2013
          • 11

          #5
          Thanks for everyone.
          Both of zabbix server and monitored machine are Centos.I'll try your guys solution.

          Comment

          • carl_qin
            Junior Member
            • May 2013
            • 11

            #6
            I was trying to use UserParameter,but still didn't work.
            What I was doing:
            1. define a UserParameter in zabbix_agentd.conf in monitored server to monitor an application.
            2. restart zabbix agent in monitored server.
            3. I can see new defined key by using zabbix_agentd in monitored server.
            4. Unfortunately,I got nothing returned when I tried zabbix_get command.

            My zabbix_server version is 2.0.6 and zabbix_agent version is 2.0.6 too.
            OS for zabbix_server is Centos 6.3 and OS for monitored server is Centos 5.6.

            What I'm wrong?Anyone can give me hand.Thanks ahead.

            Comment

            • Heilig
              Senior Member
              Zabbix Certified Trainer
              Zabbix Certified SpecialistZabbix Certified Professional
              • Mar 2013
              • 366

              #7
              Re-check command from UserParameter. Also, please read this page.
              If you cannot get result using zabbix_get, it's means that command incorrect. What the current service state?
              What returns your command if service is Down? Your command must return service state in all possible situation (for example even if service is down). Otherwise you'll get "ZBX_NOTSUPPORTED" for this item.

              Comment

              • carl_qin
                Junior Member
                • May 2013
                • 11

                #8
                Thanks Heilig.Finally,I get it work.It seems that we can't use zabbix_get in monitored server,it works in zabbix server.

                Comment

                • Fotis
                  Junior Member
                  • Sep 2014
                  • 24

                  #9
                  How to discover process name?

                  Hello all, I have a similar issue.

                  I'm using the following item for checking if a process is alive or not
                  proc.num[example_123.exe] and it is working properly.
                  What I would like to do is, to discover the process name automatically, since we are using a naming convention for it, so I might have 2,3,4 processes running simultaneously, with a similar name, example_124.exe, example_125.exe, etc.
                  Can someone guide me on how to do this?

                  Thank you in advance,
                  Fotis

                  Comment

                  • Fotis
                    Junior Member
                    • Sep 2014
                    • 24

                    #10
                    I've already made some research and I saw that there is no LLD for processes implemented yet. So any help would be welcome

                    Comment

                    Working...