[ZBX-8015] windows agent can send "null" as a value to server Created: 2014 Apr 01  Updated: 2017 May 30  Resolved: 2014 Apr 01

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

Type: Incident report Priority: Minor
Reporter: Oleksii Zagorskyi Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: eventlog, notsupported
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates ZBX-7564 in case of missing logfiles agent sen... Closed

 Description   

Discovered accidentally.
Try to use wrong key "eventlog[Application,,,,,,,,,foo]" for active agent.

See debuglog in first comment.
Note how agent reports sort of "is not supported" but still sends the null value.



 Comments   
Comment by Oleksii Zagorskyi [ 2014 Apr 01 ]

Debuglog, filtered only for useful info:

  4952:20140401:130907.156 Starting Zabbix Agent [core2]. Zabbix 2.2.2 (revision 42519).
  4952:20140401:130907.156 using configuration file: C:\Program Files\Zabbix Agent\zabbix_agentd.conf
  4952:20140401:130907.187 In init_collector_data()
  4952:20140401:130907.187 End of init_collector_data()
  4952:20140401:130907.187 In init_perf_collector()
  4952:20140401:130907.187 End of init_perf_collector():SUCCEED
  4436:20140401:130907.187 agent #0 started [collector]
  2604:20140401:130907.203 agent #2 started [listener #2]
  2736:20140401:130907.203 agent #1 started [listener #1]
  4396:20140401:130907.203 agent #3 started [listener #3]
  3172:20140401:130907.203 agent #5 started [listener #5]
  5044:20140401:130907.203 agent #4 started [listener #4]
   516:20140401:130907.203 agent #6 started [active checks #1]
   516:20140401:130907.218 In init_active_metrics()
   516:20140401:130907.218 buffer: first allocation for 100 elements
   516:20140401:130907.234 In send_buffer() host:'10.33.0.4' port:10051 values:0/100
   516:20140401:130907.234 End of send_buffer():SUCCEED
   516:20140401:130907.250 In refresh_active_checks() host:'10.33.0.4' port:10051
   516:20140401:130907.250 sending [{
	"request":"active checks",
	"host":"core2"}]
   516:20140401:130907.250 before read
   516:20140401:130907.265 got [{"response":"success","data":[{"key":"eventlog[Application,,,,,,,,,foo]","delay":2,"lastlogsize":0,"mtime":0}]}]
   516:20140401:130907.265 In parse_list_of_checks()
   516:20140401:130907.265 In disable_all_metrics()
   516:20140401:130907.281 In add_check() key:'eventlog[Application,,,,,,,,,foo]' refresh:2 lastlogsize:0 mtime:0
   516:20140401:130907.281 End of add_check()
   516:20140401:130907.281 End of refresh_active_checks():SUCCEED
   516:20140401:130907.296 In process_active_checks('10.33.0.4',10051)
   516:20140401:130907.296 active check "eventlog[Application,,,,,,,,,foo]" is not supported
   516:20140401:130907.296 In process_value() key:'core2:eventlog[Application,,,,,,,,,foo]' value:'(null)'
   516:20140401:130907.312 In send_buffer() host:'10.33.0.4' port:10051 values:0/100
   516:20140401:130907.312 End of send_buffer():SUCCEED
   516:20140401:130907.312 buffer: new element 0
   516:20140401:130907.328 End of process_value():SUCCEED
   516:20140401:130907.328 End of process_active_checks()
   516:20140401:130907.328 In get_min_nextcheck()
   516:20140401:130908.328 In send_buffer() host:'10.33.0.4' port:10051 values:1/100
   516:20140401:130908.343 Will not send now. Now 1396346948 lastsent 1396346947 < 5
   516:20140401:130908.343 End of send_buffer():SUCCEED
   516:20140401:130909.343 In send_buffer() host:'10.33.0.4' port:10051 values:1/100
   516:20140401:130909.343 Will not send now. Now 1396346949 lastsent 1396346947 < 5
   516:20140401:130909.343 End of send_buffer():SUCCEED
   516:20140401:130910.343 In send_buffer() host:'10.33.0.4' port:10051 values:1/100
   516:20140401:130910.343 Will not send now. Now 1396346950 lastsent 1396346947 < 5
   516:20140401:130910.343 End of send_buffer():SUCCEED
   516:20140401:130911.343 In send_buffer() host:'10.33.0.4' port:10051 values:1/100
   516:20140401:130911.359 Will not send now. Now 1396346951 lastsent 1396346947 < 5
   516:20140401:130911.359 End of send_buffer():SUCCEED
   516:20140401:130912.359 In send_buffer() host:'10.33.0.4' port:10051 values:1/100
   516:20140401:130912.359 JSON before sending [{
	"request":"agent data",
	"data":[
		{
			"host":"core2",
			"key":"eventlog[Application,,,,,,,,,foo]",
			"value":null,
			"clock":1396346947,
			"ns":364098112}],
	"clock":1396346952,
	"ns":404058927}]
   516:20140401:130912.359 JSON back [{"response":"success","info":"processed: 0; failed: 1; total: 1; seconds spent: 0.000017"}]
   516:20140401:130912.359 In check_response() response:'{"response":"success","info":"processed: 0; failed: 1; total: 1; seconds spent: 0.000017"}'
   516:20140401:130912.375 info from server: 'processed: 0; failed: 1; total: 1; seconds spent: 0.000017'
   516:20140401:130912.375 End of check_response():SUCCEED
   516:20140401:130912.375 OK
   516:20140401:130912.375 End of send_buffer():SUCCEED
Comment by richlv [ 2014 Apr 01 ]

i believe this is dupe of ZBX-7564, please reopen if not

Comment by Oleksii Zagorskyi [ 2014 Apr 01 ]

It probably is, thanks.

Generated at Fri Apr 19 11:39:26 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.