Hi,
I'm actually writing a Perl script to discover all interfaces on a Cisco router where a policy is applied.
Then I'll create the item and graph prototypes to monitor the PrePolicyBytes, PostPolicyBytes and DropBytes.
The Issue here is that I don't known what I should return to Zabbix at the end.
I know from the manual that the data is like that :
{
"data": [
{
"{#SNMPINDEX}": "1",
"{#IFDESCR}": "WAN",
"{#IFPHYSADDRESS}": "8:0:27:90:7a:75"
},
{
"{#SNMPINDEX}": "2",
"{#IFDESCR}": "LAN1",
"{#IFPHYSADDRESS}": "8:0:27:90:7a:76"
},
{
"{#SNMPINDEX}": "3",
"{#IFDESCR}": "LAN2",
"{#IFPHYSADDRESS}": "8:0:27:2b:af:9e"
}
]
}
To resume I got all data I need to make a .txt file looking like that, but I don't know how to transfer it to Zabbix.
I'm actually writing a Perl script to discover all interfaces on a Cisco router where a policy is applied.
Then I'll create the item and graph prototypes to monitor the PrePolicyBytes, PostPolicyBytes and DropBytes.
The Issue here is that I don't known what I should return to Zabbix at the end.
I know from the manual that the data is like that :
{
"data": [
{
"{#SNMPINDEX}": "1",
"{#IFDESCR}": "WAN",
"{#IFPHYSADDRESS}": "8:0:27:90:7a:75"
},
{
"{#SNMPINDEX}": "2",
"{#IFDESCR}": "LAN1",
"{#IFPHYSADDRESS}": "8:0:27:90:7a:76"
},
{
"{#SNMPINDEX}": "3",
"{#IFDESCR}": "LAN2",
"{#IFPHYSADDRESS}": "8:0:27:2b:af:9e"
}
]
}
To resume I got all data I need to make a .txt file looking like that, but I don't know how to transfer it to Zabbix.
Comment