Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't remove TMPFILE #2

Open
portnoyslp opened this issue Mar 25, 2021 · 1 comment
Open

Doesn't remove TMPFILE #2

portnoyslp opened this issue Mar 25, 2021 · 1 comment

Comments

@portnoyslp
Copy link

Because you exit in write_result before you call the rm "{$TEMPFILE}" line at the end of the script, you never actually remove the file. The rm command should be moved into write_result before the exit to work correctly.

@Kreibich04
Copy link

Fixed it in https://github.com/Hex4919/zabbix-postfix-template/commit/ce04d46f877d5120f52b7c358a02caea550fce1f and created Pull-Request into this Repo. Sadly it seems like the maintainer is no longer active on GitHub.
Also fixed some issues with pygtail, so feel free to take a look at my Fork: https://github.com/Hex4919/zabbix-postfix-template/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants