(No output on stdout) stderr
Posted: Fri Sep 03, 2021 10:42 am
Hi, im using a sript called tsmmonitor.. I get answer by ssh but in dashboard web, it fails. In other words, the SSH connection is working, but the plugin that is being executed is not working. I will appreciatte ur help, thanks.
(No output on stdout) stderr: /usr/local/nagios/libexec/tsmmonitor: line 410: /dev/tty: No such device or address
code:
# Connect to tsm server and execute the sql statement
run_select )
local temp_output
local check="$2"
local sql="$3"
# Connect to tsm server and run the select statement
temp_output=$($TSM_CMD "$sql")
# test if dsmamdc was executed without error
if [ "$?" = "0" -o "$?" = "11" ]
then
_Debug "$temp_output" > /dev/tty
# Check the tsm command return code
_tsmmonitor_tool check_retcode $check "$temp_output"
echo "$temp_output"
else
_Debug "$temp_output" > /dev/tty
echo "Error executing the command dsmadmc" > /dev/tty
echo
echo "$temp_output"
exit 3
fi
;;
(No output on stdout) stderr: /usr/local/nagios/libexec/tsmmonitor: line 410: /dev/tty: No such device or address
code:
# Connect to tsm server and execute the sql statement
run_select )
local temp_output
local check="$2"
local sql="$3"
# Connect to tsm server and run the select statement
temp_output=$($TSM_CMD "$sql")
# test if dsmamdc was executed without error
if [ "$?" = "0" -o "$?" = "11" ]
then
_Debug "$temp_output" > /dev/tty
# Check the tsm command return code
_tsmmonitor_tool check_retcode $check "$temp_output"
echo "$temp_output"
else
_Debug "$temp_output" > /dev/tty
echo "Error executing the command dsmadmc" > /dev/tty
echo
echo "$temp_output"
exit 3
fi
;;