Hello everyone,
I wrote a custom monitoring script that will fetch values from a Oracle database using sqlplus. My question is, is there any way to output multiple values at once to Zabbix? For instance, instead of:
# ./script.sh field_a
value1
# ./script.sh field_b
value2
using simply:
# ./script.sh
value1;value2
and make zabbix handle value1 and value2 differently.
I ask that because I am using very CPU intensive SQL queries, and it would be much CPU cheaper to fetch all the values at once.
Any ideas?
I wrote a custom monitoring script that will fetch values from a Oracle database using sqlplus. My question is, is there any way to output multiple values at once to Zabbix? For instance, instead of:
# ./script.sh field_a
value1
# ./script.sh field_b
value2
using simply:
# ./script.sh
value1;value2
and make zabbix handle value1 and value2 differently.
I ask that because I am using very CPU intensive SQL queries, and it would be much CPU cheaper to fetch all the values at once.
Any ideas?
Comment