Fix issue 916, when monit runs as non-root

Merged
#99 · Created  · Last updated

Merged pull request

Merged in issue_916 (pull request #99)

b9155d6·Author: ·Closed by: ·2020-07-14

Description

  • The process list does not contain not all process if a non root user start monit. Some /proc files are available for root only.

  • The filedescriptors can not read with a non root user, sometimes.

The code modifications should solve a problem described in

#916: CHECK PROCESS MATCHING does not work on 5.27.0 when monit runs as non-root

The /proc/PID/fd and /proc/PID/io files can not read by non root users, sometimes. This is normal and was ignored in the past.

0 attachments

0 comments

Loading commits...