opsgenie / oec-scripts

Opsgenie Edge Connector Custom Scripts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

icinga2ActionExecutor.py: Do not write to current directory (and clean up after yourself)

5nafu opened this issue · comments

The icinga2ActionExecutor.py (Line 110) writes temporary files into the current working directory, which is not necessarily writable.

Additionally the temporary files will not be cleaned up after sending them to opsgenie.

It would be better to use a proper temp directory for storage of the files cleaning up the tempdir after finishing.

Hi @5nafu, you can track the progress about the issue from this ticket