Comments (13)
Also, I have tested the dependencies. All are ok. Manually as well as from the check-dependencies script.
from collectd-web.
Thanks for your feedback alcy!
I cant do much about point (1), i'll just alert collectd core about it.
from collectd-web.
Point (2) ... that happens when the ajax asks for the hosts list ... host list remains bank and without notice. i'll add a dialog for it
from collectd-web.
Point (3) ... i cannot reproduce the error :s
from the collectd-web folder try this:
/usr/bin/perl cgi-bin/time.cgi
do you get the timezone ??
from collectd-web.
Hi, the time.cgi script executes fine.
/usr/bin/perl cgi-bin/time.cgi
Content-Type: application/json
{"tz":"5.5"}
from collectd-web.
Also, I think the datadir related inconsistency is probably due to a faulty default configuration file for collectd supllied in the debian package. It doesn't have an include directive for collection.conf (like it has for filters.conf and thresholds.conf)
from collectd-web.
i've changed the perl command on the top of each cgi. see if that fixes the issue.
from collectd-web.
still having this issue ?
from collectd-web.
Sorry for the delayed response, but I haven't been actively using collectd-web for some time now, hence can't comment. If I do try it again, will let you know of any problems.
from collectd-web.
ok! no problem then ... closing ticket! ;)
from collectd-web.
I can confirm that point 3 is still happening (all dependencies have been met)
./runserver.py
Collectd-web server running at http://127.0.0.1:8888/
localhost - - [17/Oct/2011 17:01:50] "GET / HTTP/1.1" 200 -
localhost - - [17/Oct/2011 17:01:50] "GET /media/css/blueprint/screen.css HTTP/1.1" 200 -
localhost - - [17/Oct/2011 17:01:50] "GET /media/css/blueprint/print.css HTTP/1.1" 200 -
localhost - - [17/Oct/2011 17:01:50] "GET /media/css/custom-theme/jquery-ui-1.8.custom.css HTTP/1.1" 200 -
localhost - - [17/Oct/2011 17:01:50] "GET /media/css/base.css HTTP/1.1" 200 -
localhost - - [17/Oct/2011 17:01:50] "GET /media/js/external/jquery-1.4.4.min.js HTTP/1.1" 200 -
localhost - - [17/Oct/2011 17:01:50] "GET /media/js/jquery.livequery.js HTTP/1.1" 200 -
localhost - - [17/Oct/2011 17:01:50] "GET /media/js/jquery-ui-1.8.custom.min.js HTTP/1.1" 200 -
localhost - - [17/Oct/2011 17:01:50] "GET /media/js/jquery.jclock.js HTTP/1.1" 200 -
localhost - - [17/Oct/2011 17:01:50] "GET /media/js/external/date.js HTTP/1.1" 200 -
localhost - - [17/Oct/2011 17:01:50] "GET /media/js/jquery.validate.pack.js HTTP/1.1" 200 -
localhost - - [17/Oct/2011 17:01:50] "GET /media/js/base.js HTTP/1.1" 200 -
localhost - - [17/Oct/2011 17:01:50] "GET /media/js/graph-menu.js HTTP/1.1" 200 -
localhost - - [17/Oct/2011 17:01:50] "GET /media/css/custom-theme/images/ui-bg_gloss-wave_35_f6a828_500x100.png HTTP/1.1" 200 -
localhost - - [17/Oct/2011 17:01:50] "GET /media/images/loading.gif HTTP/1.1" 200 -
localhost - - [17/Oct/2011 17:01:50] "GET /media/css/custom-theme/images/ui-bg_highlight-soft_100_eeeeee_1x100.png HTTP/1.1" 200 -
localhost - - [17/Oct/2011 17:01:50] "GET /media/css/custom-theme/images/ui-bg_glass_100_f6f6f6_1x400.png HTTP/1.1" 200 -
localhost - - [17/Oct/2011 17:01:50] "GET /media/css/custom-theme/images/ui-icons_ef8c08_256x240.png HTTP/1.1" 200 -
localhost - - [17/Oct/2011 17:01:50] "GET /cgi-bin/collection.modified.cgi?action=hostlist_json HTTP/1.1" 200 -
Traceback (most recent call last):
File "/usr/lib/python2.7/CGIHTTPServer.py", line 251, in run_cgi
os.execve(scriptfile, args, env)
OSError: [Errno 13] Permission denied
localhost - - [17/Oct/2011 17:01:50] CGI script exit status 0x7f00
localhost - - [17/Oct/2011 17:01:50] "GET /cgi-bin/time.cgi HTTP/1.1" 200 -
Traceback (most recent call last):
File "/usr/lib/python2.7/CGIHTTPServer.py", line 251, in run_cgi
os.execve(scriptfile, args, env)
OSError: [Errno 13] Permission denied
localhost - - [17/Oct/2011 17:01:50] CGI script exit status 0x7f00
from collectd-web.
This seems to be an old problem and has probably been fixed, but I got the the same behaviour as described above (OSError: [Errno 13] Permission denied), and after looking at the code in file CGIHTTPServer.py (line 253), found that the http process tries to switch to user 'nobody':
(...)
# Child
try:
try:
os.setuid(nobody)
(...)
which, at least in my setup, was causing the problem. We have since chowned the collectd-web directory to user nobody, and launched the app like this:
su -c "./runserver.py 192.168.2.150 8888" nobody
Now the standalone frontend is running correctly.
from collectd-web.
Hi,
Just to confirm and complete what slazarp is saying.
You have to make sure that collectd-web path is accessible to user nobody, basically I had the issue because I was lauching the standalone from /root/collectd-web which is not accessible to anyone but root.
I moved it in /opt/ for a cleaner setup and it worked fine.
from collectd-web.
Related Issues (20)
- no text in graph(RRDs::graph: failed to load Monospace) HOT 2
- collectd-web trying to access one level deeper HOT 4
- Issue no hosts listed when using with apache (standalone works ok) HOT 2
- Support for Custom Graphs HOT 3
- Missing ChangeLog entry for 0.4.1
- rrd files with dash in filename doesn't match proper GraphDef HOT 1
- Specify Default Plot Duration
- Several graphs (ntpd, entrophy, users) not working (No DS called 'xxx' in yyy.rrd) HOT 4
- Support for custom types?
- Default timespan
- Patch to support some missing graphs, specially zfs_arc
- Patch for having generic IP
- XSS Vulnerabilitie in ajax_post.php
- Could the help doc be more detailed ?
- can't see hosts in hosts, don't know why HOT 1
- Use of uninitialized value $ContextRoot in concatenation
- status of this project? HOT 2
- custome graphdef addition HOT 1
- Collectd-Web don't display the host client
- Collectd-Web does not show proper charts and text?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from collectd-web.