Cacti
Hi all,
thinking out loud here due to the annoyance of pachube/cosm rebranding issues.
I would like to have access to charts or varying time scales via mobile devices, this has apparently been removed from xively as far as I can tell.
from the bit of googling I have done today I was wondering if anyone has any thoughts or ideas on the following? I can't see why this isn't possible.
obtain a raspberry pi and install Cacti. See http://n00blab.com/cacti-pi/
txfer the data to cacti as Brett describes in the cacti section of the wiki.
Publish the required charts as a webpage as described here: http://forums.cacti.net/viewtopic.php?f=21&t=42714
I would appreciate people's thoughts on this before I spend my dollar!
cheers
Garry
Garry good job. I must move my cacti installation to another box (VM) and get it setup again. Good thing I wrote some nice notes as I would have forgotten half of those steps involved by now.
Brett
Gary,
I think we can do better. You didn't handle the case where state=? which is the startup value when we don't know if its on or off yet. I'm defaulting this to 0 too in my logic in yours you returned the ? value (what does this mean?)
I'm getting rid of the popen() at the same time I never did like that bit of hackiness.
http://www.dbzoo.com/livebox/xap_cacti#customizing_for_xap
I updated the code in the wiki.
Brett
Brett?
Cacti was working fine until I tried to enter the updated xapquery.py from the wiki.
Now I am getting this error when I check that it is working:
------------------------------------------------------------------------------
Traceback (most recent call last):
File "./xapquery.py", line 24, in <module>
out="value:%s" % getValue(sys.argv[1], sys.argv[2], sys.argv[3])
File "./xapquery.py", line 13, in getValue
f = urllib2.urlopen("http://192.168.1.66:8080/%s/%s/%s" % (target,section,key))
File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 401, in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 419, in _open
'_open', req)
File "/usr/lib/python2.7/urllib2.py", line 379, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 1211, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/lib/python2.7/urllib2.py", line 1184, in do_open
r = h.getresponse(buffering=True)
File "/usr/lib/python2.7/httplib.py", line 1034, in getresponse
response.begin()
File "/usr/lib/python2.7/httplib.py", line 407, in begin
version, status, reason = self._read_status()
File "/usr/lib/python2.7/httplib.py", line 397, in _read_status
raise BadStatusLine(line)
httplib.BadStatusLine: HTTP/1.0 200/OK
Kim, That python code for CACTI is correct. The bug is in your xapCacheWebserverApplet.lua file. You are running on old version You should be running something based on version 1.5
File "/usr/lib/python2.7/httplib.py", line 397, in _read_status
raise BadStatusLine(line)
httplib.BadStatusLine: HTTP/1.0 200/OK
Now see change: http://code.google.com/p/livebox-hah/source/detail?spec=svn445&r=423
The latest is in /etc_ro_fs/plugboard/samples
You can either
- copy over the new applet and modify the VFS section again
- or make the same code change in your local copy.
Brett
... for both the replies - all working fine.
My jeenode is monitoring the compost bin temperature - getting down to 44 degree celsius - soon be
time for turning!
Looks like i know where my spare node is going literally in the bin :)
Garry quite right integration to CACTI was something that I prototyped up quite some time ago.
http://www.dbzoo.com/livebox/xap_cacti
I have a PI but I could never get its ethernet port to work I think its broken and I was burning too much time screwing around with it so I stopped and now its just sitting on my desk as a constant reminder of something I wanted to play with.
Brett