[Nagios monitoring] NRPE: the reason for Unable to read output and troubleshooting the normal operation of the nrpe monitoring terminal definition command, monitor run #/usr/local/nagios/libexec/check_nrpe-H 117.121.9.200-c check_oracle_tablespace error prompt: NRPE: Unable to read output monitor run: #/usr/local/nagios/libexec/check_nrpe-H 117.121.9.200 can return the nrpe version information, indicating that the nrpe communication is normal. Definition of check_oracle_tablespace on the monitored end:/usr/local/nagios/etc/nrpe. cfg command [check_oracle_tablespace] =/usr/bin/sudo/usr/local/nagios/libexec/check_tablespace.sh the script path is correct and has the execution permission. After careful troubleshooting, edit the/etc/sudoers file # vim/etc/sudoers nagios ALL = (ALL) NOPASSWD: /usr/local/nagios/libexec/check_tablespace.sh comment out the line at the same time, indicating that the terminal does not need to be controlled # Defaults requiretty; otherwise, the following error occurs: NRPE: Unable to read output.