Least Squres Fitting/Linear Regression Trending Graphs
Moderators: Developers, Moderators
Least Squres Fitting/Linear Regression Trending Graphs
I made an addon for Cacti-0.8.6b that will generate a tredning line using least squares fitting, and can help you to see when a circuit/interface imight reach saturation.
Super Easy to use, You don't have to make these graphs, they are based on your already existing data.
It also takes advantage of Cacti-0.8.6's zooming feature to choose the date ranges in LSFView also
LSFView-0.4 can be found at http://www.watchmefreak.com
it requires ploticus to create the images since it can easily handle Least squares fitting and other functions I may add in the future.
I added a Y Axis setting and a Start-End date picker.
Super Easy to use, You don't have to make these graphs, they are based on your already existing data.
It also takes advantage of Cacti-0.8.6's zooming feature to choose the date ranges in LSFView also
LSFView-0.4 can be found at http://www.watchmefreak.com
it requires ploticus to create the images since it can easily handle Least squares fitting and other functions I may add in the future.
I added a Y Axis setting and a Start-End date picker.
Last edited by drub on Thu Oct 21, 2004 11:44 am, edited 1 time in total.
Updated to 0.4
Added Date Picker
Added Y Axis Max Chooser
Some Cleanup, and a better install script.
Added Y Axis Max Chooser
Some Cleanup, and a better install script.
A little bit further......
I changed /bin/rrdtool to /usr/local/rrdtool/bin/rrdtool
now I am at...
Warning: fopen(read): failed to open stream: Permission denied Warning: fopen(read): failed to open stream: Permission denied
cactiuser can run rrdtool <options> just fine
line 183 is the fopen with the "a" flag set which I believe opens lsf.dat
lsf.dat does indeed get updated
touched lsf.dat, gave ownership to cactiuser, perms set to 777 for testing, will choke back when working
I changed /bin/rrdtool to /usr/local/rrdtool/bin/rrdtool
now I am at...
Warning: fopen(read): failed to open stream: Permission denied Warning: fopen(read): failed to open stream: Permission denied
cactiuser can run rrdtool <options> just fine
line 183 is the fopen with the "a" flag set which I believe opens lsf.dat
lsf.dat does indeed get updated
touched lsf.dat, gave ownership to cactiuser, perms set to 777 for testing, will choke back when working
found it.
wasn't a perms issue. it was a libgd library issue.
fix:
I cheated and went with the gd 1.8.4 library instead of upping to 2 .0. for some reason, I have always had a hard time compliling gd on redhat boxes[/code]
wasn't a perms issue. it was a libgd library issue.
fix:
Code: Select all
cd /usr/lib
ln -s libgd.so.1.8.4 libgd.so.2
I knew those logs were good for something![/code]tail /var/log/httpd/error_log
pl: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory
not working on .8.6c
Parse error: parse error in /usr/local/cacti/graph.php on line 217
Parse error: parse error in /usr/local/cacti/graph.php on line 217
Code: Select all
 <?php print "<a href=\"lsf.php?lsftitle=$graph_title&local_graph_id=" . $_GET["local_graph_id"] . "\"><img src=images/sctr.png border=0></a>"; ?>
Any luck in 0.8.6c?
It's behaving really oddly for me... I got it to work a couple times. But 9 times out of 10 I just get the "This graph does not appear..." error. Logs seem to indicate something wrong with the data being passed to PL. But I haven't dug in any deeper yet.
Code: Select all
ERROR: '/var/www/html/cacti/rra/' is not an RRD file
cat: read: No such file or directory
processdata: error 17: No data have been read yet w/ proc getdata
pl proc areadef: error 105: both min and max expected (yrange)
pl proc areadef: error 10: cannot set up plotting area .. likely culprits: bad xrange or yrange, or bad area rectangle
Error trying test this Add-On.
The Add-on doesn't work. See error messages on screen bellow.
--------------------------
Windows2000
Cacti last version
--------------------------
Windows2000
Cacti last version
- Attachments
-
- telaerro.JPG (100.04 KiB) Viewed 29774 times
-
- Posts: 49
- Joined: Fri Mar 18, 2005 7:33 am
- Location: France
In case you can't find this add-on, it is located here:
http://www.watchmefreak.com/LSFView-0.4.tar.gz
I got this info from Freshmeat.net.
http://freshmeat.net/projects/lsfview/
Hope this helps.
Thanks,
DH
http://www.watchmefreak.com/LSFView-0.4.tar.gz
I got this info from Freshmeat.net.
http://freshmeat.net/projects/lsfview/
Hope this helps.
Thanks,
DH
Who is online
Users browsing this forum: No registered users and 3 guests