Back to listing

XenServer

Other Solutions

Python scripts to get XenServer API data and send it to GELF format

jri-sp
free!

Published

15 Mar 10:12

Last Push

27 Oct 09:17

Marketplace Rating

Discussion

2 Comments

Your Rating

Please sign in to rate this add-on.

Comments

truthadjustr over 1 year ago

Works! The dom0 root/password was the one that puzzled me.

ak6624 over 1 year ago

Getting below error, what can this be related to? Am sure my config file is correct:

[root@onelabstagems02 Graylog_XenServer]# python connectionTest.py
ERROR: Traceback (most recent call last):
File "connectionTest.py", line 6, in
xs_session = XenServer().make_session()
File "/tmp/Graylog_XenServer/XenServer.py", line 20, in make_session
session.xenapi.login_with_password(self.xs_username, self.xs_password)
File "/tmp/Graylog_XenServer/XenAPI.py", line 229, in __call__
return self.__send(self.__name, args)
File "/tmp/Graylog_XenServer/XenAPI.py", line 124, in xenapi_request
self._login(methodname, params)
File "/tmp/Graylog_XenServer/XenAPI.py", line 148, in _login
result = _parse_result(getattr(self, 'session.%s' % method)(*params))
File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in __call__
return self.__send(self.__name, args)
File "/usr/lib64/python2.6/xmlrpclib.py", line 1489, in __request
verbose=self.__verbose
File "/usr/lib64/python2.6/xmlrpclib.py", line 1235, in request
self.send_content(h, request_body)
File "/usr/lib64/python2.6/xmlrpclib.py", line 1349, in send_content
connection.endheaders()
File "/usr/lib64/python2.6/httplib.py", line 908, in endheaders
self._send_output()
File "/usr/lib64/python2.6/httplib.py", line 780, in _send_output
self.send(msg)
File "/usr/lib64/python2.6/httplib.py", line 739, in send
self.connect()
File "/usr/lib64/python2.6/httplib.py", line 720, in connect
self.timeout)
File "/usr/lib64/python2.6/socket.py", line 567, in create_connection
raise error, msg
error: [Errno 111] Connection refused

Please sign in to comment.

Back to listing