Ad Widget

Collapse

zabbix proc.num[] and POSIX regular expressions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gesgarcia
    Junior Member
    • Oct 2016
    • 4

    #1

    zabbix proc.num[] and POSIX regular expressions

    Hello,

    I'm trying to get the total number of processes what start whith the string "var"

    I'm trying to use a query like this:

    zabbix_get -s <my_host_IP> -p 10050 -k "proc.num[var*]"

    but returns 0

    If I run those queries:

    zabbix_get -s <my_host_IP> -p 10050 -k "proc.num[var1]"
    zabbix_get -s <my_host_IP> -p 10050 -k "proc.num[var7]"
    zabbix_get -s <my_host_IP> -p 10050 -k "proc.num[var3]"
    ...

    they return 1

    Do you know if proc.num supports this kind of expressions (like *, ^, $) ?

    Thank you for your help

    Regards


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

    #2
    No, but you can use cmdline filer: https://www.zabbix.com/documentation...s/zabbix_agent
    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

    • gesgarcia
      Junior Member
      • Oct 2016
      • 4

      #3
      Originally posted by jan.garaj
      Good!

      Thank you so much jan.garaj
      It works perfectly

      Comment

      Working...