check_log

CommentThis is the check_log Nagios plugin, available e.g. in /usr/lib/nagios/plugins/.

File write

This executable can write data to local files.
  1. This function can be performed by any unprivileged user.
    check_log -F /path/to/input-file -O /path/to/output-file
    This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
    RemarksIf there are environment variables involved, they must be passed via sudo VAR=value ... or exported then sudo -E ....
    check_log -F /path/to/input-file -O /path/to/output-file

File read

This executable can read data from local files.
  1. This function can be performed by any unprivileged user.
    check_log -F /path/to/input-file -O /dev/stdout
    This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
    RemarksIf there are environment variables involved, they must be passed via sudo VAR=value ... or exported then sudo -E ....
    check_log -F /path/to/input-file -O /dev/stdout