![]() |
![]() |
Subject: | When modeling device placed in /Server/SSH/Linux I'm getting "stdin is not a tty" errors |
Author: | [Not Specified] |
Posted: | 2015-09-24 15:47 |
Hey,
I'm running Zenoss 5. I recently added a machine to monitor in the SSH container. Username and password has been added to Configuration Properties as well. When I try to model it I'm getting "stdin: is not a tty" errors. I logged in myself to the account I'm using via ssh, my environment is set correctly. Any advice to resolve this issue Thanks.
Errors when modeling:
2015-09-24 20:42:31,391 WARNING zen.SshClient:
2015-09-24 20:42:31,398 WARNING zen.SshClient:
2015-09-24 20:42:31,401 WARNING zen.SshClient: :
2015-09-24 20:42:31,404 WARNING zen.SshClient: :
Subject: | YIKES! |
Author: | Andrew Kirch |
Posted: | 2015-09-28 14:20 |
YIKES!
What do you get if you ssh into that box with the credentials you gave zenoss It looks like something borken in the env provided on the remote box.
If this is the case you may need to reply with the output of 'env' here.
Andrew Kirch
akirch@gvit.com
Need Zenoss support, consulting or custom development Look no further. Email or PM me!
Ready for Distributed Topology (collectors) for Zenoss 5 Coming May 1st from GoVanguard
Subject: | YIKES! |
Author: | Andrew Kirch |
Posted: | 2015-09-28 14:20 |
YIKES!
What do you get if you ssh into that box with the credentials you gave zenoss It looks like something borken in the env provided on the remote box.
If this is the case you may need to reply with the output of 'env' here.
Andrew Kirch
akirch@gvit.com
Need Zenoss support, consulting or custom development Look no further. Email or PM me!
Ready for Distributed Topology (collectors) for Zenoss 5 Coming May 1st from GoVanguard
Subject: | Output of env |
Author: | [Not Specified] |
Posted: | 2015-10-05 14:44 |
I'm able to ssh into the box without any terminal issue. Its quite odd. Here is the env output:
HOSTNAME=
TERM=xterm-256color
SHELL=/bin/bash
HISTSIZE=1000
SSH_CLIENT=
PERL5LIB=/home/zenouser/perl5/lib/perl5
QTDIR=/usr/lib64/qt-3.3
QTINC=/usr/lib64/qt-3.3/include
PERL_MB_OPT=--install_base "/home/zenouser/perl5"
SSH_TTY=/dev/pts/3
USER=zenouser
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:
MAIL=/var/spool/mail/zenouser
PATH=/usr/local/jdk/bin:/usr/lib64/qt-3.3/bin:/home/zenouser/perl5/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11R6/bin:/home/zenouser/bin
PWD=/home/zenouser
JAVA_HOME=/usr/local/jdk
XMODIFIERS=@im=ibus
EDITOR=pico
LANG=en_US.UTF-8
HISTCONTROL=ignoredups
SHLVL=1
HOME=/home/zenouser
LS_OPTIONS=--color=tty -F -a -b -T 0
PERL_LOCAL_LIB_ROOT=/home/zenouser/perl5
LOGNAME=zenouser
VISUAL=pico
QTLIB=/usr/lib64/qt-3.3/lib
CVS_RSH=ssh
CLASSPATH=.:/usr/local/jdk/lib/classes.zip
SSH_CONNECTION=152.30.190.82 55286 152.30.34.176 22
LESSOPEN=||/usr/bin/lesspipe.sh %s
PERL_MM_OPT=INSTALL_BASE=/home/zenouser/perl5
G_BROKEN_FILENAMES=1
HISTTIMEFORMAT=%F %T
_=/bin/env
Subject: | What version of linux is this |
Author: | Andrew Kirch |
Posted: | 2015-10-08 13:08 |
What version of linux is this
Andrew Kirch
akirch@gvit.com
Need Zenoss support, consulting or custom development Look no further. Email or PM me!
Ready for Distributed Topology (collectors) for Zenoss 5 Coming May 1st from GoVanguard
Subject: | Issue resolved |
Author: | [Not Specified] |
Posted: | 2016-01-28 10:40 |
I have resolved this issue. This system is running RedHat/CentOS 6, but CPanel (http://cpanel.com/) has been installed on top of it. CPanel makes and manages tons of configuration changes to the operating system. One of those was adding "mesg y" to /etc/bashrc. Something to do with something it does for accounts it creates. This was causing the error. Its best not to change what cpanel changes, so I created a local account and removed the following from the account's ~/.bashrc:
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
mesg y never got sourced from the global /etc/bashrc, which solved the problem. I could not fix this issue by setting mesg n in the account's ~/.bashrc, it gave a permission error.
< |
Previous Change credentials |
Next Error when opening Event Console |
> |