i seem to have trouble fetching a value using xml-rpc
i've setup a simple xml-rpc server and added an rrdsource with the following
paramaters :
name : test
source type : xmlrpc
url : http://host2:8889/RPC2/
method name get
now it does do something as the xml server displays
host - - [13/Sep/2006 16:42:30] "POST /RPC2 HTTP/1.0" 200 -
host - - [13/Sep/2006 16:42:30] "POST / HTTP/1.0" 200 -
two things wich seem wrong, one it seems to do two xml-rpc query's instead of
one, and second it doesnt read a value, wich it then interprets as zero.
incidently adding paramaters to the url doesnt work, after hitting add it
just forgets the value's. anyone fiddled with this before and can point out
what i've missed? zenoss itself doesnt produce any errors to indicate
something is not working.
fritz
xmlserver code
-----------------------
import SimpleXMLRPCServer
#The object
class test:
def get(self):
return 5
test_object= test()
server = SimpleXMLRPCServer.SimpleXMLRPCServer(("0.0.0.0",8889))
server.register_instance(test_object)
server.serve_forever()
-------------------------
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users