Hello there,
I am trying to get disk statistics information from my AIX servers into zabbix. I have written a script that outputs the following information in JSON format.
I am able to successfully create a discovery rule for the disks, and I am also to successfully create an item prototype using the build in vfs.dev.read items. Where I am not making the connection is how to use my own custom items. I am familiar with userparameters, maybe I should be using those here to get the information I need into Zabbix?
Ideally what I want is an item that pulls in the disk name and data that I care about. Using the JSON output above as an example, I want to create an item prototype that has the name of the disk {#HDISKNAME} and a value {#HDISKBUSY}.
I assumed that with my JSON output above I could simply create an item prototype and pull the information I wanted out of it. Can I do that? Does it require that I create another custom parameter?
Thanks
I am trying to get disk statistics information from my AIX servers into zabbix. I have written a script that outputs the following information in JSON format.
Code:
{
"data":[
{
"{#HDISKNAME}":"hdisk0",
"{#HDISKBUSY}":"0.0",
"{#HDISKKBPS}":"0.6",
"{#HDISKTPS}":"0.0",
"{#HDISKKBR}":"9630105",
"{#HDISKKBW}":"2635652"
}
,
{
"{#HDISKNAME}":"hdisk7",
"{#HDISKBUSY}":"0.0",
"{#HDISKKBPS}":"0.0",
"{#HDISKTPS}":"0.0",
"{#HDISKKBR}":"4375",
"{#HDISKKBW}":"8392"
}
]
}
Ideally what I want is an item that pulls in the disk name and data that I care about. Using the JSON output above as an example, I want to create an item prototype that has the name of the disk {#HDISKNAME} and a value {#HDISKBUSY}.
I assumed that with my JSON output above I could simply create an item prototype and pull the information I wanted out of it. Can I do that? Does it require that I create another custom parameter?
Thanks
Comment