Ad Widget

Collapse

proc.num, how to monitor process?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • robertchen
    Member
    • Jun 2014
    • 39

    #1

    proc.num, how to monitor process?

    zabbix_get -s myhost -k proc.num[,,,"/opt/compass/jre/bin/java -jar my.jar"]
    0

    I do a ps -ef and I can see my.jar is running. How to use?

    thanks.
  • jan.garaj
    Senior Member
    Zabbix Certified Specialist
    • Jan 2010
    • 506

    #2
    proc.num[java,,,my.jar]
    Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
    My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

    Comment

    • robertchen
      Member
      • Jun 2014
      • 39

      #3
      Originally posted by jan.garaj
      no, it does not work, on the zbx server it is ZBX_NOTSUPPORTED, but on the client it is working:

      [root@zbx01 ~]# zabbix_get -s host1 -k proc.num[bash,pass,,'"start.sh"']
      ZBX_NOTSUPPORTED

      [root@host1 logs]# zabbix_agent -t proc.num[bash,pass,,'"start.sh"']
      proc.num[bash,compass,,"start.sh"] [u|4]

      It maybe because zabbix agent is running as zabbix user.

      please let me know how to get it work on zabbix server.

      thanks.
      Last edited by robertchen; 11-07-2014, 02:48.

      Comment

      • filipp.sudanov
        Senior Member
        Zabbix Certified Specialist
        • May 2014
        • 137

        #4
        I just tried your zabbix_get request on my machine and got the following:
        Code:
        $ zabbix_get -s localhost -k proc.num[bash,pass,,'"start.sh"']
        ZBX_NOTSUPPORTED: Specified user does not exist.
        It's zabbix 2.4, it's giving detaild error message when a ZBX_NOTSUPPORTED is happening.

        Comment

        • jan.garaj
          Senior Member
          Zabbix Certified Specialist
          • Jan 2010
          • 506

          #5
          So question is if user pass exists on your monitored server?
          Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
          My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

          Comment

          Working...