TECHZEN Zenoss User Community ARCHIVE  

Zenoss 4.2.5 Linux Monitor: Got 'unimplemented' SSH message

Subject: Zenoss 4.2.5 Linux Monitor: Got 'unimplemented' SSH message
Author: Joan Arbona
Posted: 2017-12-05 04:41

Hello all,

I have two installations in different environments of Zenoss 4.2.5 with Linux Monitor Zenpack 2.2.6. When trying to monitor any Linux distribution following Debian 8 or Ubuntu 16.04 using SSH Linux monitoring modelling and SSH connection fails on both installations for an unknown reason. Zenmodeler crashes at the beggining of the modelling, showing the trace attached to this post and displaying the messageINFO:zen.SshClient:Got 'unimplemented' SSH message, seqnum= 1. Of course, after that no graph nor any component is created on the Device.

When running SshClient manually in the Zenoss server the output is:
[zenoss@sm1 DataCollector]$ python SshClient.py -u zencli -P <pass> <server hostname> hostname
INFO:zen.SshClient:Got 'unimplemented' SSH message, seqnum= 1
on a not-working server and
[zenoss@sm1 DataCollector]$ python SshClient.py -u zencli -P <pass> udp.sint.uib.es hostname
[(None, 'swaudd\n')]
on a working server.

Must say did not have any problem with Centos 7, and that I had no problem when monitoring these servers on Zenoss 5 (we're not planning to move yet however). Just guessing, could it be something related to SSH versions? Maybe Zenoss python SSH libraries are incompatible with newest Ubuntu's and Debian's versions? 

I thought this was a common problem, but I tried to find information in Google and in these forums and did not find anything. So, perhaps I am doing something wrong. Does anybody have any clue about that?

Thanks,
Joan

------------------------------
Joan Arbona
Universitat de les Illes Balears
------------------------------

Attachments:

kotskazenmodeler.txt



Subject: RE: Zenoss 4.2.5 Linux Monitor: Got 'unimplemented' SSH message
Author: Jane Curry
Posted: 2017-12-05 05:46

Like you, I thought I had seen a thread about this fairly recently but also cannot find it.  I have a feeling that it was a combination of the LinuxMonitor code and the python twisted routines.

There is a 2.2.7 of the ZenPack recently out which you might try.

Anyone else have a better memory for this issue??

Cheers,
Jane

------------------------------
Jane Curry
Skills 1st United Kingdom
jane.curry@skills-1st.co.uk
------------------------------


Subject: RE: Zenoss 4.2.5 Linux Monitor: Got 'unimplemented' SSH message
Author: Joan Arbona
Posted: 2017-12-05 07:41

Just checked differences between 2.2.6 and 2.2.7 and there's nothing new apart from fixing interfaces' monitoring output and changing ps parser.

I realized that they fixed some "Unimplemented SSH" errors in 2.0.4... 

However, I am afraid that the problem is the version of the twisted library. In /opt/zenoss/lib/python/twisted/_version.py shows that the version that comes with 4.2.5 is 11.0.0. If I look at the same file of Zenoss 5 the version of Twisted is 16.1.1. I assume that upgrading Twisted in Zenoss 4.2.5 is not straightforward.

------------------------------
Joan Arbona
Universitat de les Illes Balears
------------------------------


Subject: RE: Zenoss 4.2.5 Linux Monitor: Got 'unimplemented' SSH message
Author: Jane Curry
Posted: 2017-12-06 03:50

"I assume that upgrading Twisted in Zenoss 4.2.5 is not straightforward.".  I'm afraid that is probably a very good assumption :(

Do you use the zenoss IRC channel? You might just get lucky there and find a Zenossian who has more ideas on this than I have.

Cheers,
Jane

------------------------------
Jane Curry
Skills 1st United Kingdom
jane.curry@skills-1st.co.uk
------------------------------


Subject: RE: Zenoss 4.2.5 Linux Monitor: Got 'unimplemented' SSH message
Author: Devon Solomon
Posted: 2017-12-12 10:48

I am experience the same error on our AIX servers. Got 'unimplemented' SSH message, seqnum= 1 is the message in the events but we are unable to collect because of this. this is on RM 4.2.4 and we are on AIX zenpack 2.2.2, has there been any resolution or fix for this?

------------------------------
Devon Solomon
------------------------------


Subject: RE: Zenoss 4.2.5 Linux Monitor: Got 'unimplemented' SSH message
Author: Daniel
Posted: 2018-02-14 17:38

I faced the same problem and found it to be an issue trying to monitor Debian/Ubuntu servers running OpenSSH 6.9 or higher. There is a problem during the Diffie-Hellman group exchange while using the Twisted SSH client. 

Fortunately this was fixed by the guys over at Twisted Labs: http://twistedmatrix.com/trac/ticket/8100

I haven't figured out a way how to update Twisted completely, but you can make the changes in the proper files manually. First make a backup of the following files:

/opt/zenoss/lib/python/twisted/conch/ssh/transport.py
/opt/zenoss/lib/python/twisted/conch/test/test_transport.py

Next, make the changes to these files as shown in the link below (comment out red lines, insert green)
http://twistedmatrix.com/trac/attachment/ticket/8100/drop-old-dhgex-request.patch

Once done, restart the zencommand daemon and you should now be able to model and collect data from your Ubuntu servers.

Daniel


------------------------------
Daniel
------------------------------


Subject: RE: Zenoss 4.2.5 Linux Monitor: Got 'unimplemented' SSH message
Author: Thomas Luther
Posted: 2018-07-04 04:52

I have just tried to implement the fix linked to, and it does not work... I can connect to remote host via ssh with SSH Keys, but when using the conch tool, then I get the same error as before... 

Anyone know I can patch twisted enough to get it connecting to upgraded SSH servers but not break other things as the ZUP does (SP732)?

------------------------------
Thomas Luther
Senior Consultant
Netic A/S
------------------------------


Subject: RE: Zenoss 4.2.5 Linux Monitor: Got 'unimplemented' SSH message
Author: argaliev
Posted: 2018-05-25 05:40

As Daniel says, this is problem for servers running newer versions of OpenSSH. To fix this, you need to upgrade zenoss to the latest RPS(recommended patch set). It can done by zenup, with following instructions ZenUp - Zenoss Wiki.
Zenoss remove preview
ZenUp - Zenoss Wiki
Zenup is the new Zenoss patch manager. New patches are provided for both the Core, and Commercial products at intervals that fix bugs which don't require large internal fixes in Zenoss. Larger internal fixes will wait for a subsequent release.
View this on Zenoss >
. As i seen from release changes, minimal version is:

SP712 Due to upgrading the twisted library to support OpenSSH 7 (ZEN-24072),
the LinuxMonitor ZenPack MUST be upgraded to the latest (2.0.4+) after
installing this RPS if the current LinuxMonitor ZenPack version is 2.0.0,
2.0.1, 2.0.2 or 2.0.3.





Subject: RE: Zenoss 4.2.5 Linux Monitor: Got 'unimplemented' SSH message
Author: Jay Stanley
Posted: 2018-07-04 10:15

Out of curiosity, what is broken in the latest ZUP that you don't want to upgrade to it?

------------------------------
jstanley
------------------------------


Subject: RE: Zenoss 4.2.5 Linux Monitor: Got 'unimplemented' SSH message
Author: Thomas Luther
Posted: 2018-07-05 03:34

The problem with SP732 is that daemons does not get notified about production-state changes (from production -> decomissioned and the other way around). This has been reported in

https://community.zenoss.com/forum/community-home/digestviewer/viewthread?MessageKey=bfaf0778-d532-4be5-b641-d3f88bf8db08&CommunityKey=1518fed6-b03e-410b-81b9-f2240ed9037a&tab=digestviewer#bmbfaf0778-d532-4be5-b641-d3f88bf8db08#bm0

as well as 

https://jira.zenoss.com/browse/ZEN-30167 


This bug is a show-stopper from my point of view... 



------------------------------
Thomas Luther
Senior Consultant
Netic A/S
------------------------------


Subject: RE: Zenoss 4.2.5 Linux Monitor: Got 'unimplemented' SSH message
Author: Jay Stanley
Posted: 2018-07-05 07:10

Seems like an easy work around though. Yeah, it is an extra step, but I rather implement another step or another API call than not be able to monitor a subselection of devices

------------------------------
jstanley
------------------------------


< Previous
Can't copy/override Linux Template
  Next
Zenoss 4.2.5 & Model Device
>