I am updating LLD using zabbix agent which uses custom parameters as shown below
UserParameter = sfa.get_ctrl, python /home/naveen/zabbix/sim/get_controllers.py
where python /home/naveen/zabbix/sim/get_controllers.py return the following data
But if my scale my no of items from 2 to 5000 my json data will get large and i am getting broken pip error like below.... is there any other proper way to to feed input for UserParameter ???
UserParameter = sfa.get_ctrl, python /home/naveen/zabbix/sim/get_controllers.py
where python /home/naveen/zabbix/sim/get_controllers.py return the following data
Code:
{
"data": [
{
"{#TITLE}": "Controller 1",
"{#HEALTHSTATE}": "HEALTH_OK",
"{#STATE}": "OK",
"{#PRIMARY}": "Yes",
"{#ID}": "id-ctrl-1",
"{#LOCAL}": "Yes",
"{#DESCRIPTION}": "Controller"
},
{
"{#TITLE}": "Controller 2",
"{#HEALTHSTATE}": "HEALTH_OK",
"{#STATE}": "OK",
"{#PRIMARY}": "Yes",
"{#ID}": "id-ctrl-2",
"{#LOCAL}": "Yes",
"{#DESCRIPTION}": "Controller"
}
]
}
Code:
Traceback (most recent call last):
File "/home/naveen/zabbix/sim/get_physical_disks.py", line 72, in <module>
print mod_data
IOError: [Errno 32] Broken pipe
1789:20150422:174935.904 command output exceeded limit of 512 KB
close failed in file object destructor:
sys.excepthook is missing
lost sys.stderr
1789:20150422:174938.086 command output exceeded limit of 512 KB