Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
zabbix-cli dont execute via zabbix External check #28
No problem when I run zabbix-cli from shell or via cron. But when I create External check in zabbix, I've got an error
Traceback (most recent call last):
File "build/bdist.linux-x86_64/egg/zabbix_cli/config.py", line 50, in init
Thanks for the feedback.
This happens because we use the os.getenv('HOME') function to get the home directory of the user running zabbix-cli.
If the HOME environment variable is not defined, the code will raise an exception.
Usually, processes startet e.g. with systemd do not have all environment variables as in a shell, per default. This can be a problem when running zabbix-cli as an external check if you want to use a configuration file under the $HOME directory of the user running the external check.