nagios cpu1 Nagios check cpu 확인 #### CPU Usage 확인 1. cpu check할 서버에서 check_cpu 생성 cd /usr/local/nagios/libexec vi check_cpu #!/bin/bash function usage { echo "$(basename $0) usage: " echo " -w warning_level Example: 80" echo " -c critical_level Example: 90" echo "" exit 1 } while [[ $# -gt 1 ]] do key="$1" case $key in -w) WARN="$2" shift ;; -c) CRIT="$2" shift ;; *) usage shift ;; esac shift done [ ! -z ${WARN} ] && [ ! -z ${.. 2023. 12. 23. 이전 1 다음