Skip to main content

developerWorks >  Tivoli  >  Forums  >  Tivoli Application Dependency Discovery Manager--Sensors and Reports  >  developerWorks

Framework Sensor    Point your RSS reader here for a feed of the latest messages in this thread


     

 
 

My developerWorks
 Welcome, Guest
Sign in or register
Permlink Replies: 1 - Pages: 1 - Last Post: Oct 22, 2009 3:54 PM Last Post By: swg
Guillermo GA

Posts: 1
Registered: Jul 24, 2009 06:58:09 AM
Framework Sensor
Posted: Oct 21, 2009 06:26:34 AM
Click to report abuse...   Click to reply to this thread Reply
We are testing it on a TADDM POC, discovering the different elements (Oserv, GW, etc), but we got an error with the python script. The exactly error is the next:

CustomAppServerSensor(211.112.5.1:9495)
tmrserver.eci.geci
21/09/09 11:38:16 CEST
aviso
CTJTD0211W Se ha producido un error al ejecutar el siguiente mandato: E:\TADDM\dist\etc\templates\commands\extension-scripts\TMF-Sensor-2.0.py - Exception : org.apache.bsf.BSFException: exception from Jython: Traceback (innermost last):
  (no code object) at line 0
  File "<string>", line 174
            remote_endpoints = []
            ^
SyntaxError: inconsistent dedent

Does anybody know what could be the problem here? Any help would be great.

Thanks a lot. Regards,

Guillermo

swg

Posts: 1
Registered: Apr 30, 2009 02:04:51 PM
Re: Framework Sensor
Posted: Oct 22, 2009 03:54:52 PM   in response to: Guillermo GA in response to: Guillermo GA's post
Click to report abuse...   Click to reply to this thread Reply
Hello,

The problem you are having is a python syntax issue...The Framework sensor has been updated in the last few months, so if you don't have the latest one, I believe this issue was resolved.

If it wasn't, then you should open up the file in an editor. My personal experience is that if you just change the indentations of the line (maybe its spaces or tabs, we'd hope just spaces) by just moving the line a bit, it will correct itself. Its a very annoying problem with Jython/vi, etc...

Rather than 'discover' to determine it doesn't work, you can run:

$COLLATION_HOME/support/bin/jython_coll TMF-Sensor-2.0.py

If the SYNTAX is OK, you will get the following error(this means we aren't being run through a discovery):

Traceback (innermost last):
File "TMF-Sensor-2.0.py", line 555, in ?
NameError: targets

Let me know if this helps.

Scott Graham

Point your RSS reader here for a feed of the latest messages in all forums