Closed dcdamien closed 5 years ago
Router OS Version: 6.27
Script crashes on disabled peers.
Ubuntu 16.04
2.7.12
chainmap==1.0.2 librouteros==2.1.0
/etc/zabbix/.venv/bin/python /etc/zabbix/mikrotik/zabbix.py -H 10.0.21.201 -u zabbix -p password -t
Script should handle disabled peers which lacks fileds such as state and uptime.
state
uptime
Currently script throws an error because status and uptime keys are missing.
status
Hello @dcdamien,
Thank you for the report. I will check this and back to you later.
Router OS Version: 6.27
SUMMARY
Script crashes on disabled peers.
ISSUE TYPE
OS / ENVIRONMENT
Ubuntu 16.04
2.7.12
STEPS TO REPRODUCE
EXPECTED RESULTS
Script should handle disabled peers which lacks fileds such as
state
anduptime
.ACTUAL RESULTS
Currently script throws an error because
status
anduptime
keys are missing.