Situation:
I have created an external script which outputs the following:
I can get this output manually using:
I've set it up as a Discovery. The string to call it is:
I've got in this Discovery various items which output something similar to:
I can get this output manually using:
The string in Zabbix to call it is:
Issue:
It doesn't work, unfortunately.
At first I thought the script was timing out, but manually running the script with | pv, the worst case took 14 seconds (668 items) and my external check timeout for zabbix-server is 30 seconds.
Any suggestions on how I can get this to work?
I'm running 2.2.2 on CentOS 6 and a Percona XtraDB Cluster 5.6 (MySQL) database server.
I have created an external script which outputs the following:
Code:
{
"data":[
{"{#INDEX}":"1.1","{#VALUE}":"GigabitEthernet0/0: unknown"},
{"{#INDEX}":"1.2","{#VALUE}":"GigabitEthernet0/0: ftp"},
{"{#INDEX}":"1.3","{#VALUE}":"GigabitEthernet0/0: http"},
]
}
Code:
sudo /etc/zabbix/externalscripts/nbarInterface -l pub 172.17.71.172
Code:
nbarInterface["-l",{$SNMP_COMMUNITY},{HOST.CONN}]
Code:
{
"data":[
{"{#DATA}":"392729904"},
]
}
Code:
sudo /etc/zabbix/externalscripts/nbarInterface -o pub 172.17.71.172 7 1.3
Code:
nbarInterface["-o",{$SNMP_COMMUNITY},{HOST.CONN},"7",{#INDEX}]
Issue:
It doesn't work, unfortunately.
At first I thought the script was timing out, but manually running the script with | pv, the worst case took 14 seconds (668 items) and my external check timeout for zabbix-server is 30 seconds.
Any suggestions on how I can get this to work?
I'm running 2.2.2 on CentOS 6 and a Percona XtraDB Cluster 5.6 (MySQL) database server.
Comment