[ZBX-16208] zabbix_agent send 0 for proc.num[,,run,*] to server while locally it gives 1 Created: 2019 Jun 04  Updated: 2024 Apr 10  Resolved: 2019 Jun 12

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G)
Affects Version/s: 4.0.7
Fix Version/s: None

Type: Documentation task Priority: Major
Reporter: Ilya Assignee: Viktors Tjarve
Resolution: Won't fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Ubuntu 16.04.4 LTS
Zabbix agent 4.0.7 (revision 92831).
zabbix_server (Zabbix) 4.2.1


Team: Team A
Sprint: Sprint 53 (Jun 2019)

 Description   

Steps to reproduce:

  1. I do have such a trigger {HOST:proc.num[,,run,ruby].last(#1)}<1
  2. when running locally it gives me expected result
    XXX$ zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf -t proc.num[,,run,ruby]
    
    proc.num[,,run,ruby]                          [u|1]
    
  1. But both in logs and from server it gives me 0
    zabbix-server:~$ zabbix_get -s HOST -k"proc.num[,,run,ruby]"
    
    0
    
     32502:20190603:232704.927 Requested [proc.num[,,run,ruby]]
    
    32502:20190603:232704.929 Sending back [0]
    
  1. If I run it under zabbix user I do receive normal result
    zabbix@XXX:$ zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf -t proc.num[,,run,ruby]
    
    proc.num[,,run,ruby]                          [u|1]
    

Expected:
I receive 1 in all cases.

Also:

The same result with proc.num[,,run,nginx]



 Comments   
Comment by richlv [ 2019 Jun 04 ]

When you run zabbix_agentd -t, your item key picks up the manual run instance - you don't count the target process you intended, you actually count the zabbix_agentd process with that 1.

This would be a very welcome question on the Zabbix IRC channel.

Comment by Arturs Lontons [ 2019 Jun 04 ]

Hi,
Thank you, richlv for providing a fast response

I'm changing the type of the ticket to a documentation task, since, In my opinion, this should be a documented example.

Comment by Ilya [ 2019 Jun 04 ]

thanks, guys, that's helpful

Comment by Viktors Tjarve [ 2019 Jun 12 ]

This has been documented on 13/Jun/2018 in Zabbix agent key table Comments section for item proc.num.

WON'T FIX

Generated at Fri Apr 26 07:43:13 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.