[ZBX-7597] Some item parameters are not supported for test by agent Created: 2013 Dec 29  Updated: 2017 May 30  Resolved: 2014 Feb 10

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G), Documentation (D)
Affects Version/s: 2.0.10
Fix Version/s: 2.0.12rc1, 2.2.3rc1, 2.3.0

Type: Incident report Priority: Minor
Reporter: Marc Assignee: Martins Valkovskis
Resolution: Fixed Votes: 0
Labels: manpages, testing
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux 2.6


Issue Links:
Duplicate
duplicates ZBX-5963 vfs.dev.read/write [,ops] | [,sps] do... Closed

 Description   

Parameter 'sps' and 'ops' in item keys vfs.dev.read and vfs.dev.write are not supported for test by Zabbix agent:

  1. for i in sectors operations sps ops; do zabbix_get -s localhost -k "vfs.dev.write[,$i]"; done
    187288398
    18817089
    11.600000
    1.083333
  1. for i in sectors operations sps ops; do zabbix_agentd -t "vfs.dev.write[,$i]"; done
    vfs.dev.write[all,sectors] [u|187288902]
    vfs.dev.write[all,operations] [u|18817132]
    vfs.dev.write[all,sps] [m|ZBX_NOTSUPPORTED]
    vfs.dev.write[all,ops] [m|ZBX_NOTSUPPORTED]

The item key system.cpu.util is not supported at all for test by Zabbix agent:

  1. for i in user nice idle system iowait interrupt softirq steal; do zabbix_get -s localhost -k "system.cpu.util[,$i]"; done
    0.199784
    0.000000
    99.542163
    0.224757
    0.000000
    0.000000
    0.033297
    0.000000
  1. for i in user nice idle system iowait interrupt softirq steal; do zabbix_agentd -t "system.cpu.util[,$i]"; done
    system.cpu.util[,user] [m|ZBX_NOTSUPPORTED]
    system.cpu.util[,nice] [m|ZBX_NOTSUPPORTED]
    system.cpu.util[,idle] [m|ZBX_NOTSUPPORTED]
    system.cpu.util[,system] [m|ZBX_NOTSUPPORTED]
    system.cpu.util[,iowait] [m|ZBX_NOTSUPPORTED]
    system.cpu.util[,interrupt] [m|ZBX_NOTSUPPORTED]
    system.cpu.util[,softirq] [m|ZBX_NOTSUPPORTED]
    system.cpu.util[,steal] [m|ZBX_NOTSUPPORTED]


 Comments   
Comment by richlv [ 2013 Dec 29 ]

this is normal, all of these item keys/param combos are counter ones (they require persistent data collection).

although documentation on it seems to be lacking - we should probably add it to the manpages for agent & agentd

Comment by Marc [ 2013 Dec 29 ]

i suspected that - but was to lazy to take a look at the source

Comment by Oleksii Zagorskyi [ 2013 Dec 30 ]

this question already discussed in ZBX-5963, linked

Comment by Oleksii Zagorskyi [ 2013 Dec 30 ]

If we are going to update man pages as well, then Agent component should be returned back.
Done.

Comment by richlv [ 2014 Feb 04 ]

fixed in dev branch svn://svn.zabbix.com/branches/dev/ZBX-7597

Comment by richlv [ 2014 Feb 06 ]

(1) currently says "Text. Maximum length not limited.", which is probably not completely correct. can we be more specific here, is it the same for all platforms ?

asaveljevs Labels "s" and "t" come from C code and correspond to GET_STR_RESULT() and GET_TEXT_RESULT(). The difference might be historical, but nowadays both are unlimited in length and do not correspond to "Character" and "Text" item value types.

asaveljevs The only difference, according to sasha, seems to be that when a TEXT result is converted into STR result, we only take the first line (see function get_result_str_value()). This feature, however, might not be actually used and in the future we might consider leaving just one of them.

asaveljevs As an example, the result of "vfs.fs.discovery" is of "s" type and it is longer than 255 characters. REOPENED.

<richlv> thanks for the info. changed description for s & t accordingly in r42444.
merging s/t sounds like a good idea, split it out in ZBXNEXT-2147
RESOLVED

asaveljevs Looks good, but please see r42456. RESOLVED.

<richlv> duh. nice circular reference that was... thanks
CLOSED

Comment by Aleksandrs Saveljevs [ 2014 Feb 07 ]

(2) Please take a look at two formatting fixes in r42436.

<richlv> oops, sorry for missing that - looks good
CLOSED

Comment by richlv [ 2014 Feb 13 ]

merged for pre-2.0.12rc1 r42631, pre-2.2.3rc1 r42632, pre-2.3.0 r42633

Generated at Fri Mar 29 08:17:25 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.