I have been having an issue where no matter what I put into a userparameter it will only return as a string when using zabbix_agent2 -t some.key. I have tried forcing my output into an integer in many different ways.
The userparameter I am using boils down to:
and this parameter returns [s|1] and I have observed it as many other numbers, not exclusively 1.
On the web side of this my item is declared as a numeric unsigned.
Any reason why it wants to be a string and how I can make it into an integer so it can be used?
The userparameter I am using boils down to:
Code:
UserParameter=some.key[*],command --flags | grep -cw "$1"
On the web side of this my item is declared as a numeric unsigned.
Any reason why it wants to be a string and how I can make it into an integer so it can be used?
"[s|1] " you can see, when testing the item (zabbix_agent2 -t item).
Comment