opsgenie / oec-scripts

Opsgenie Edge Connector Custom Scripts
Apache License 2.0
23 stars 38 forks source link

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

Closed 5nafu closed 2 years ago

5nafu commented 4 years ago

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.

ahalac-atlassian commented 2 years ago

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