Dear Community,
since it is not possible to pass multiple values to the Zabbix Server using UserParameter I am struggling with getting the best performance.
Can someone tell me if the UserParameter calls are done in queue or if multiple UserParameter are processed in parallel?
For example in zabbix_agentd.conf I have:
Currently I receive a list of all physical harddisks with the first line - thats just fine.
On the second line I get different SMART values and information of the drive.
$1 is the harddrive $2 the value, for example:
/home/zabbix_harddisk.sh /dev/sda smart_value_5
/home/zabbix_harddisk.sh /dev/sda smart_value_194
/home/zabbix_harddisk.sh /dev/sda smart_value_196
and so on...
It works well, but smartctl and other operations are executed multiple times which would not be necessary if zabbix server accepts more than one return value.
My aproach is to cache all informations as soon as any of the above smart_values is requested. This would work perfectly if zabbix agentd does not run multiple UserParameter simultaneously.
Does anyone know if zabbix proccesses these external command in a queue or parallel?
Thanks!
since it is not possible to pass multiple values to the Zabbix Server using UserParameter I am struggling with getting the best performance.
Can someone tell me if the UserParameter calls are done in queue or if multiple UserParameter are processed in parallel?
For example in zabbix_agentd.conf I have:
Code:
UserParameter=harddisk.discovery,/home/zabbix_harddisk.sh UserParameter=harddisk.data[*],/home/zabbix_harddisk.sh $1 $2
On the second line I get different SMART values and information of the drive.
$1 is the harddrive $2 the value, for example:
/home/zabbix_harddisk.sh /dev/sda smart_value_5
/home/zabbix_harddisk.sh /dev/sda smart_value_194
/home/zabbix_harddisk.sh /dev/sda smart_value_196
and so on...
It works well, but smartctl and other operations are executed multiple times which would not be necessary if zabbix server accepts more than one return value.
My aproach is to cache all informations as soon as any of the above smart_values is requested. This would work perfectly if zabbix agentd does not run multiple UserParameter simultaneously.
Does anyone know if zabbix proccesses these external command in a queue or parallel?
Thanks!
Comment