Box293 wrote:Adding -E 1 to the check_by_ssh command will ignore the first line of output.tgriep wrote:I am thinking that the error is the printing of the message of the day or the banner when you login to the remote system.
In my previous message page 1, I have put the command definition and there is already -E 1
The check_by_ssh
# 'ssh_disk' command definition
define command{
command_name ssh_disk
command_line /usr/local/nagios/libexec/check_by_ssh -i /home/nagios/.ssh/id_dsa -H '$HOSTADDRESS$' -E 1 -C "/usr/lib/nagios/plugins/check_disk -w $ARG1$ -c $ARG2$ -e -p '$ARG3$'"