-
Type:
Problem report
-
Resolution: Won't fix
-
Priority:
Blocker
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
I have created a custom discovery template and created two item keys on that template.
1) 1st item will discover 2 JSON format values HANASID and HANAINSTANCE
2) These 2 values which i got in step 1 that i am using as argument for 2nd item.
3) But its not able to take that value rather its taking the string as it is whatever i am passing as parameter.
4) My requirement is for HANASID say suppose i am getting value QWW and for HANAINSTANCE i am getting 02 as the value then QWW and 02 should be passed as argument to the second item.
I have created hana.conf with below details.
UserParameter=custom.hana.discover.SIDInstance,$(find /usr/local/etc/ /etc/zabbix -maxdepth 3 -name sid_instance.sh 2>/dev/null)
UserParameter=custom.hana.discover.alertIDalertNAME[*],$(find /usr/local/etc/ /etc/zabbix -maxdepth 3 -name alert_id_name.sh) "$1" "$2"
I am able to get the output for both the script also sid_instance.sh is giving output 2 values and those 2 should be passed as arguments for alertIDname.sh
Please help asap.