Ad Widget

Collapse

proc.num and proc.mem do not work

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cycykewl
    Junior Member
    • Oct 2012
    • 7

    #1

    proc.num and proc.mem do not work

    Hi all,

    I have something strange in my zabbix server.

    I have one item with key like that :

    proc.num[{$APACHE_PROC_NAME}]

    My host have macros and apache2 values for {$APACHE_PROC_NAME}

    In 'lastest data', I can see that this items returns 0 but I do not understand why.

    Here my test on apache's servers :

    # zabbix_agent -t proc.num[apache2]
    proc.num[apache2] [u|12]

    # ps aux | grep apache2
    www-data 11917 0.0 0.1 233476 11784 ? S 14:01 0:00 /usr/sbin/apache2 -k start
    www-data 11922 0.0 0.1 233476 11784 ? S 14:01 0:00 /usr/sbin/apache2 -k start
    www-data 11925 0.1 0.3 250780 31372 ? S 14:01 0:00 /usr/sbin/apache2 -k start
    www-data 11945 0.0 0.1 233476 11868 ? S 14:02 0:00 /usr/sbin/apache2 -k start
    www-data 11946 0.0 0.1 233476 11784 ? S 14:02 0:00 /usr/sbin/apache2 -k start
    www-data 11948 0.1 0.3 248124 28864 ? S 14:02 0:00 /usr/sbin/apache2 -k start
    www-data 11949 0.0 0.1 233476 11832 ? S 14:02 0:00 /usr/sbin/apache2 -k start
    www-data 11952 0.0 0.1 233476 11928 ? S 14:02 0:00 /usr/sbin/apache2 -k start
    www-data 11954 0.0 0.1 233476 11872 ? S 14:02 0:00 /usr/sbin/apache2 -k start
    www-data 12240 0.0 0.1 233072 11524 ? S 14:03 0:00 /usr/sbin/apache2 -k start
    root 12268 0.0 0.0 10376 884 pts/0 R+ 14:03 0:00 grep apache2
    root 19249 0.0 0.2 232816 17884 ? Ss Apr30 2:02 /usr/sbin/apache2 -k start
    What's wrong ???

    thx in advance!
  • ingus.vilnis
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Mar 2014
    • 908

    #2
    Hello!

    Does it work if you don't use macro but have a name in the key instead?
    Code:
    proc.num[apache2]
    Or maybe write the full path on macro like /usr/sbin/apache2?

    Best Regards,
    Ingus

    Comment

    • cycykewl
      Junior Member
      • Oct 2012
      • 7

      #3
      Originally posted by ingus.vilnis
      Hello!

      Does it work if you don't use macro but have a name in the key instead?
      Code:
      proc.num[apache2]
      Same thing ...

      Originally posted by ingus.vilnis
      Or maybe write the full path on macro like /usr/sbin/apache2?

      Best Regards,
      Ingus
      Same thing ...

      Another thing, If I look inside zabbix server logs (in debug mode), I can see the sent command but I do not see any returns of values ... Other items works well.

      Comment

      Working...