# Misc Prolems Occured on midware ###### tags: `By_Ivan_note` [TOC] #### MacOS not recognizing variables in url - Solution: quoting the url would solve the problem ```bash= root@MacBookPro zabbix_api_v6 % curl 172.16.1.70:8880/show?pretty zsh: no matches found: 172.16.1.70:8880/show?pretty ``` ```bash= root@MacBookPro zabbix_api_v6 % curl "172.16.1.70:8880/show?pretty" { "zabbix_probe": { "0": { "31687": { "name": "CPU idle time", "probe_server": "172.16.1.70" }, "31694": { ... ``` #### Daemon not exiting correctly (didn't write to config) - Solution: This is due to "atexit" not responding to signals from other handler. A function was assigned to signal. Instead of exiting directly, SIGTERM would call sys.exit in order to trigger atexit function. ``` python= def sigHandler(signo, frame): sys.exit(0) signal.signal(signal.SIGTERM, sigHandler) ```