Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Thu Jun 27, 2019 5:33 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 15 posts ] 
Author Message
 Post subject: Least Squres Fitting/Linear Regression Trending Graphs
PostPosted: Thu Oct 14, 2004 7:06 pm 
Offline
Cacti User
User avatar

Joined: Thu Jan 31, 2002 7:00 pm
Posts: 59
Location: Las Vegas
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.
Image


Last edited by drub on Thu Oct 21, 2004 11:44 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Updated to 0.4
PostPosted: Thu Oct 21, 2004 11:42 am 
Offline
Cacti User
User avatar

Joined: Thu Jan 31, 2002 7:00 pm
Posts: 59
Location: Las Vegas
Added Date Picker
Added Y Axis Max Chooser
Some Cleanup, and a better install script.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 21, 2004 11:52 am 
Offline
Cacti Pro User
User avatar

Joined: Thu Nov 21, 2002 8:55 am
Posts: 703
Location: Austin, TX
"This graph does not appear to contain any data that I can plot."

OK, what am I missing. This seems like a really cool utility & I want to be able to make use of it


Thanks

Eric


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 21, 2004 12:23 pm 
Offline
Cacti Pro User
User avatar

Joined: Thu Nov 21, 2002 8:55 am
Posts: 703
Location: Austin, TX
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


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 21, 2004 5:16 pm 
Offline
Cacti User
User avatar

Joined: Thu Jan 31, 2002 7:00 pm
Posts: 59
Location: Las Vegas
I think I forgot to put in the README to make sure that your cacti directory is read/writeable by your web user, there are 4 files that get written and deleted( read, out, lsf.dat, lsf.png ) however since these get deleted so a fresh copy can be generated cacti dir needs to be read/write.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 21, 2004 7:17 pm 
Offline
Cacti Pro User
User avatar

Joined: Thu Nov 21, 2002 8:55 am
Posts: 703
Location: Austin, TX
found it.
wasn't a perms issue. it was a libgd library issue.
fix:
Code:
cd /usr/lib
ln -s libgd.so.1.8.4 libgd.so.2

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]

Quote:
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

I knew those logs were good for something![/code]


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 03, 2005 10:14 am 
Offline
Cacti Pro User
User avatar

Joined: Thu Nov 21, 2002 8:55 am
Posts: 703
Location: Austin, TX
not working on .8.6c

Parse error: parse error in /usr/local/cacti/graph.php on line 217
Code:
&nbsp<?php print "<a href=\"lsf.php?lsftitle=$graph_title&local_graph_id=" . $_GET["local_graph_id"] . "\"><img src=images/sctr.png border=0></a>"; ?>


Top
 Profile  
 
 Post subject: Any luck in 0.8.6c?
PostPosted: Wed Jan 12, 2005 4:45 pm 
Offline

Joined: Tue Mar 02, 2004 2:02 pm
Posts: 4
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:
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


Top
 Profile  
 
 Post subject: Error trying test this Add-On.
PostPosted: Tue Apr 05, 2005 5:04 pm 
Offline

Joined: Fri Apr 01, 2005 8:36 am
Posts: 6
The Add-on doesn't work. See error messages on screen bellow.


--------------------------
Windows2000
Cacti last version


Attachments:
telaerro.JPG
telaerro.JPG [ 100.04 KiB | Viewed 23407 times ]
Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 05, 2005 6:14 pm 
Offline
Cacti User

Joined: Tue Feb 01, 2005 5:54 pm
Posts: 65
Location: Texas
did i miss it? i don't see it for download on your site.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 08, 2005 12:13 am 
Offline

Joined: Fri Mar 18, 2005 7:33 am
Posts: 49
Location: France
if anybody got it working on w2k and cacti 8.6.c..
please tell me how.
Thanks
:wink:


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 31, 2005 7:31 pm 
Offline

Joined: Tue May 31, 2005 7:24 pm
Posts: 1
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


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 21, 2006 5:23 pm 
Offline

Joined: Mon Jul 31, 2006 11:43 am
Posts: 3
does anyone still have a link to download this


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 01, 2007 6:54 pm 
Offline

Joined: Wed Aug 01, 2007 9:50 am
Posts: 8
Does anyone have a copy of this or know if it works with the latest version of cacti running on Windows?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 18, 2008 8:48 am 
Offline

Joined: Wed May 24, 2006 9:40 am
Posts: 15
Location: md, us
Bringing up a really old topic, but does anyone have a copy of this? Because it is not available at the posted location.

Thanks in advance,


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group