After changes:
If many trapper items send data simultaneously, the receiving process might close the pipe prematurely.
#!/usr/bin/env python3 import sys try: import requests resp = requests.get('http://localhost/metric', timeout=2) print(resp.text) except Exception as e: print(f"ZBX_NOTSUPPORTED: e") sys.exit(1)
In the [Service] section, add:
After changes:
If many trapper items send data simultaneously, the receiving process might close the pipe prematurely.
#!/usr/bin/env python3 import sys try: import requests resp = requests.get('http://localhost/metric', timeout=2) print(resp.text) except Exception as e: print(f"ZBX_NOTSUPPORTED: e") sys.exit(1)
In the [Service] section, add:
Because our system is your system.