LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-02-2014, 11:46 AM   #1
deleted77
LQ Newbie
 
Registered: Nov 2014
Posts: 2

Rep: Reputation: 0
Openxenmanager, unable to view performance graphs


Hi,
I installed openxenmanager on Debian Wheezy. I can connect to the xen server but I see nothing in the Performance tab. There are no Performance Graphs.

In the console I can see the following error:

Code:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 505, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/share/openxenmanager/oxcSERVER.py", line 708, in update_performance
    if ds[name[:3]].count([name, desc]) == 0:
UnboundLocalError: local variable 'name' referenced before assignment
rrdtool is installed.

Last edited by deleted77; 11-02-2014 at 12:26 PM.
 
Old 11-13-2014, 03:04 PM   #2
deleted77
LQ Newbie
 
Registered: Nov 2014
Posts: 2

Original Poster
Rep: Reputation: 0
Hi,
I found a sollution. I had to modify the file: /usr/share/openxenmanager/oxcSERVER.py .
The problem is with the lines 708, 709, 710 and 711. For testing you can just comment lines 708, 709, 710 and 711. If you comment those lines of code, you will be able to see the graphics without any errors, but I don't know if are there any adverse effects with the lines missing (commented).


The propper way of solving the problem without any adverse effects is to keep those lines and just ident the block of code starting with
Quote:
if ds[name[:3]].count([name, desc]) == 0:......
inside the block starting with
Quote:
if data_source['enabled']: ....

Last edited by deleted77; 11-13-2014 at 03:24 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to view graphs with dnsgraph for Bind9 Statistics on Debian zayed162 Linux - Server 4 02-08-2016 09:47 PM
Perf-graphs (performance monitoring graphs) on linux ekcr Linux - General 10 12-09-2011 09:57 PM
Configuring MRTG, can view graphs of unrequired interfaces only... geek chic Linux - Networking 0 04-26-2011 11:14 PM
Unable to create graphs with rrdtool athreyavc Linux - General 1 09-06-2009 09:00 AM
Zenoss- add Performance graphs uks Linux - Server 0 02-03-2009 01:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration