I
I
Ilya Evseev2016-10-10 14:12:54
Zabbix
Ilya Evseev, 2016-10-10 14:12:54

Is Zabbix agent able to get multiple metrics with one call to an external command?

/etc/zabbix/zabbix_agentd.d/something.conf now says:

UserParameter=some.thing[*],/etc/zabbix/scripts/something.sh $1

something.sh reads metrics from a file.
Because there are many metrics, then something.sh is called many times, and many times it parses the same file.
Question:
Can Zabbix call an external script to get several metrics in one call?
Google finds only discussions about UserParameterGroup and BulkUserParameter, which have remained discussions.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
neol, 2016-10-10
@neol

It is possible to cache the parsing result (or intermediate result) in the script.
Or use the zabbix trapper, and in the script pull zabbix_sender, which will already push a bunch of values ​​\u200b\u200bto the server (you can send a file with a list to it).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question