Hello,
Do you have a method to convert a character string in number, without using an external script?
Example:
Gives: STRING: "1.9%"
To use it in Zabbix, I must go through an external script to not only keep the numbers
Gives: 1.9
The use of external scripts a lot of resource, as far as possible I can do without.
thank you for your help and thank you for having created Zabbix
Do you have a method to convert a character string in number, without using an external script?
Example:
Code:
/usr/bin/snmpget -Ov -v 1 -c public ${HOST} .1.3.6.1.4.1.24681.1.2.1.0
To use it in Zabbix, I must go through an external script to not only keep the numbers
Code:
echo $(/usr/bin/snmpget -Ov -v 1 -c public ${HOST} .1.3.6.1.4.1.24681.1.2.1.0 | /bin/sed "s/[^0-9.]//g")
The use of external scripts a lot of resource, as far as possible I can do without.
thank you for your help and thank you for having created Zabbix
Comment