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

fix: Only chown logfile if it exists #1173

Merged

Conversation

Ivan-Roger
Copy link
Contributor

When the logfile doesn't exist the agent shows an error: PermissionError: [Errno 13] Permission denied: '/var/log/ncpa_passive.log'

This PR fixes that by only chowning if the file exists.

It also fixes the debug mode that used to crash due to an unknown parameter.

Remove unknown parameter to start_process function.
@ne-bbahn ne-bbahn changed the base branch from master to dev-v3.1.1 August 6, 2024 21:49
@ne-bbahn ne-bbahn merged commit d2a52bb into NagiosEnterprises:dev-v3.1.1 Aug 6, 2024
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

Successfully merging this pull request may close these issues.

None yet

2 participants