Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong format / interpretation of metric values #241

Open
rockaut opened this issue Mar 29, 2018 · 4 comments
Open

Wrong format / interpretation of metric values #241

rockaut opened this issue Mar 29, 2018 · 4 comments

Comments

@rockaut
Copy link
Contributor

rockaut commented Mar 29, 2018

As an example:
zabbix_agentd -t vpoller["cluster.perf.metric.get",xxx,xxx,"value",null,null,null,"cpu.usage.percent.average",null,"Past day"] zabbix_agentd [690]: vPoller module version 0.5.7 zabbix_agentd [690]: Loading vPoller module configuration file /etc/zabbix/vpoller_module.conf vpoller[cluster.perf.metric.get,xxx,xxx,value,null,null,null,cpu.usage.percent.average,null,Past day] [s|772]

first shouldn't it be an [f|] instead of [s|#] ?
second 772 omitts the floating point! It should read 7.72.

@rockaut
Copy link
Contributor Author

rockaut commented Mar 29, 2018

vpoller-client outputs that:
{"timestamp": "2018-03-29 07:10:00+00:00", "counterId": "cpu.usage.percent.average", "interval": 300, "value": 762, "instance": ""}

while here it is an number instead of a string it still omits the point.

@rockaut
Copy link
Contributor Author

rockaut commented Mar 29, 2018

As a quick workaround - at least in 3.4 - you can preprocess the value in zabbix with an regex:
Expression: (\d+)(\d\d)
Output: \1.\2

@rockaut
Copy link
Contributor Author

rockaut commented Aug 23, 2018

I've run again in this problem on a very low utilized host ( sub 1% cpu usage) as with my workaround only recognizes above 1%.
Any idea where i can look to solve that?

@rockaut
Copy link
Contributor Author

rockaut commented Aug 23, 2018

New workaround is a modified regex (\d{0,3})(\d{2}) and \1.\2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant