Ad Widget

Collapse

How we can monitor a process in zabbix?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    How we can monitor a process in zabbix?

    Hello Team,

    I am using Zabbix4.0 and its working fine for service and system resources.

    Now i want to monitor some processes also using zabbix. I have tried the below combination in item but no success:

    Item:

    Name: Sidekiq process
    Type: Zabbix agent
    Key: proc.num[,,run,sidekiq]
    Type of information: Numeric(unasgined)
    Application: Processes

    Trigger:

    {HOST.NAMEroc.num[,,run,sidekiq].last()}=0

    Below is the output of my ps -aux | grep sidekiq command:

    [email protected]:~# ps -aux | grep sidekiq
    root 6595 0.0 0.0 14520 940 pts/0 S+ 10:10 0:00 grep --color=auto sidekiq
    ab 12332 0.1 5.3 885928 217508 ? Sl Mar14 8:50 sidekiq 4.2.7 abc [0 of 5 busy]
    ab 14756 0.2 13.3 1527376 539928 ? Sl Mar18 5:56 sidekiq 4.2.6 abc [0 of 10 busy]


    Can you please help me how we can monitor process? Because i need to monitor some other processes also like puma etc.

    Any help will be appreciated.

    Thanks in advance.

    #2
    Hello Team,

    Can you please help me on above issue?

    Its not working when i used the below key:

    Key: proc.num[,,run,sidekiq]

    But its working when i used below key:

    Key: proc.num[,,,sidekiq]

    But i want to monitor only running process not zombie etc.

    Please help me to fix the above issue.

    Thanks.

    Comment


      #3
      Have you tried proc.num[sidekiq,,run] ?

      Comment


        #4
        https://www.zabbix.com/documentation..._mem_num_notes
        What's happening if you use proc.num[sidekiq] ?

        Comment


          #5
          Hello Max,

          I have tried both the keys proc.num[sidekiq,,run] and proc.num[sidekiq] but no one is working except Key: proc.num[,,,sidekiq].

          Can you please guide me little bit more on this issue?

          Thanks.

          Comment


            #6
            Originally posted by Tek Chand View Post
            Hello Team,

            Can you please help me on above issue?

            Its not working when i used the below key:

            Key: proc.num[,,run,sidekiq]

            But its working when i used below key:

            Key: proc.num[,,,sidekiq]

            But i want to monitor only running process not zombie etc.

            Please help me to fix the above issue.

            Thanks.
            Why do you think that sidekiq is zombie processes? Look at the zabbix-agent processes, for example:

            # zabbix_agentd -t proc.num[,,,zabbix]
            proc.num[,,,zabbix] [u|7]
            # zabbix_agentd -t proc.num[,,run,zabbix]
            proc.num[,,run,zabbix] [u|1]
            # ps axlf | grep zabbix
            0 0 21647 3074 20 0 112704 976 pipe_w S+ pts/3 0:00 \_ grep --color=auto zabbix
            1 994 16997 1 20 0 93516 1284 do_wai S ? 0:00 /usr/sbin/zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
            1 994 16998 16997 20 0 93568 1948 hrtime S ? 16:36 \_ /usr/sbin/zabbix_agentd: collector [idle 1 sec]
            1 994 16999 16997 20 0 93692 2516 poll_s S ? 11:15 \_ /usr/sbin/zabbix_agentd: listener #1 [waiting for connection]
            1 994 17000 16997 20 0 93692 2544 poll_s S ? 11:21 \_ /usr/sbin/zabbix_agentd: listener #2 [waiting for connection]
            1 994 17001 16997 20 0 93692 2516 poll_s S ? 11:33 \_ /usr/sbin/zabbix_agentd: listener #3 [waiting for connection]
            1 994 17002 16997 20 0 93648 2252 hrtime S ? 4:17 \_ /usr/sbin/zabbix_agentd: active checks #1 [idle 1 sec]

            What is the name of parent process for sidekiq?

            Comment


              #7
              Hello Max,

              Sidekiq is itself parent process name.

              Thanks.

              Comment

              Announcement

              Collapse
              No announcement yet.
              Working...
              X