Hello Everyone ,
I'm trying to set up new item for custom monitoring .
My item is calling local bash script .
Main problem is that I have to forward in macros some unique names quoted with "".
All work fine till moment I forwarding list more then 1 name I'm getting "Invalid item key format."
agent conf
UserParameter=newitem[*],/bin/bash /opt/monthly_report "$1" "$2" "$3" "$4" "$5"
Item :
newitem["$Param1","$Param2","$Param3","$Param4","$Para m5"]
For example I'm my macros for $4 I'm string like "Some name 1" "Some name 2"
I'm getting error [Invalid item key format.]
At the same time if string contain only 1 phrase - all is working .
Could you kindly advise how it would be better to solve this problem .
BR Yauheni
I'm trying to set up new item for custom monitoring .
My item is calling local bash script .
Main problem is that I have to forward in macros some unique names quoted with "".
All work fine till moment I forwarding list more then 1 name I'm getting "Invalid item key format."
agent conf
UserParameter=newitem[*],/bin/bash /opt/monthly_report "$1" "$2" "$3" "$4" "$5"
Item :
newitem["$Param1","$Param2","$Param3","$Param4","$Para m5"]
For example I'm my macros for $4 I'm string like "Some name 1" "Some name 2"
I'm getting error [Invalid item key format.]
At the same time if string contain only 1 phrase - all is working .
Could you kindly advise how it would be better to solve this problem .
BR Yauheni
Comment