whoami7 - Manager
:
/
proc
/
self
/
root
/
proc
/
self
/
root
/
lib64
/
nagios
/
plugins
/
nccustom
/
Upload File:
files >> //proc/self/root/proc/self/root/lib64/nagios/plugins/nccustom/check_passchange_status.sh
#!/bin/bash log_file="/var/log/nc_audit/passchange_check.log" if [[ -s "${log_file}" ]]; then last_line=$(tail -n 1 "${log_file}") if [[ "${last_line}" == *"CRITICAL!"* ]]; then tac "${log_file}" | awk '/OK./{exit}1' | tac exit 2 fi fi echo "OK." exit 0
Copyright ©2021 || Defacer Indonesia