Discussion:
Debug message from remote device (): Agent forwarding disabled.
harpermann
2013-10-02 21:36:01 UTC
Permalink
harpermann [http://community.zenoss.org/people/harpermann] created the discussion

"Debug message from remote device (): Agent forwarding disabled."

To view the discussion, visit: http://community.zenoss.org/message/74808#74808

--------------------------------------------------------------
Hi,
We were getting debug messages we weren't interested in from ssh modeling.

Debug message from remote device (): Agent forwarding disabled.

It looks like the message handling in SshClient.py:receiveDebug () was set to info instead of debug.  Is it supposed to be info?  I couldn't find how suppress log messages so I changed this to debug.  Is there better way to ignore these debug messages?

Patch:
--- ./SshClient.py      2013-10-02 14:20:24.000000000 -0700
+++ /opt/zenoss/Products/DataCollector/SshClient.py     2013-10-02 14:20:38.000000000 -0700
@@ -206,7 +206,7 @@
         @type lang: integer
         """
         message= "Debug message from remote device (%s): %s" % ( str(lang), str(message) )
-        log.info( message )
+        log.debug( message )
         sendEvent( self, message=message, severity=Event.Debug )


         transport.SSHClientTransport.receiveDebug(self, alwaysDisplay, message, lang )
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/74808#74808]

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
jcurry
2013-10-07 10:02:05 UTC
Permalink
jcurry [http://community.zenoss.org/people/jcurry] created the discussion

"Re: Debug message from remote device (): Agent forwarding disabled."

To view the discussion, visit: http://community.zenoss.org/message/74851#74851

--------------------------------------------------------------
See what you mean!  Reading the comments at the start of the receiveDebug code, I think the point is that you DO want to log info if the target device itself provided debug information - and I think that is what you are seeing. 

What you have done looks fine to me if you don't want to see such messages.  You will, of course, need a process to repatch this code if you upgrade or use ZenUp.

Cheers,
Jane
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/74851#74851]

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Loading...