py-zabbix icon indicating copy to clipboard operation
py-zabbix copied to clipboard

Zabbix_sender reimplement

Open ad-m opened this issue 8 years ago • 4 comments

Hello,

I suggest reimplement command zabbix_sender by py-zabbix. This can be useful when monitoring a shared environment when you do not have the ability to install your own system packages, but can trigger the sender, for example, through cron.

Greetings,

ad-m avatar May 22 '17 21:05 ad-m

I do like the idea, but then it will interfere with current zabbix_sender from binary.

adubkov avatar May 22 '17 23:05 adubkov

@blacked , how it will interfere? I would like installing python packages eg. by pip install --user py-zabbix, so it will available eg. by python ~/.local/bin/zabbix_sender_py.

ad-m avatar May 22 '17 23:05 ad-m

My use case. I have shared hosting which I would like monitoring some use stats eg. file count (I have limited), disk usage (I have limited too). I am unable to install any system packages. I am unable to install any executables. I able to install python scripts. I would like execute zabbix_sender (reimplemented in python) from bash script to periodically eg. every hour sends to zabbix_server usage stats. A simple bash script will be responsible for calculating the metric value. It will be sufficient to send one value per call like zabbix_sender.

ad-m avatar May 22 '17 23:05 ad-m

@ad-m Maybe I misunderstand your use case, but the current implementation seems to not depend on zabbix_sender (the utility binary from the zabbix distribution) but instead writes the wire protocol directly to the socket. So this is a pure python implementation. Maybe we can then close this issue.

mk2s avatar Apr 13 '22 21:04 mk2s