Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 63889 - new cacti version available (0.8.6)
Summary: new cacti version available (0.8.6)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Netmon project
URL: http://www.cacti.net
Whiteboard:
Keywords:
: 67827 75195 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-09-13 07:24 UTC by Andy Blyler
Modified: 2005-01-02 14:48 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
cacti-0.8.6.ebuild (cacti-0.8.6.ebuild,4.03 KB, text/plain)
2004-09-24 09:25 UTC, Andy Dustman
Details
cacti-cactid-0.8.6.ebuild (cacti-cactid-0.8.6.ebuild,982 bytes, text/plain)
2004-09-24 11:32 UTC, Andy Dustman
Details
cacti-0.8.6b.ebuild (cacti-0.8.6b.ebuild,4.03 KB, text/plain)
2004-10-07 10:56 UTC, Andy Dustman
Details
cacti-cactid-0.8.6b.ebuild (cacti-cactid-0.8.6b.ebuild,993 bytes, text/plain)
2004-10-07 11:22 UTC, Andy Dustman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andy Blyler 2004-09-13 07:24:00 UTC
A new ebuild is needed.
Comment 1 solar (RETIRED) gentoo-dev 2004-09-13 12:48:30 UTC
The changes in this release are as follows:
This release features a redesigned poller architecture at its core.
All users will benefit from the multiple simultaneous poller process
support, making polling times many times shorter in some cases. There
are also new features related to logging, graph time spans/zooming,
graph exportation, graph trees, and host availability detection.
Plenty of bugs have been fixed, as well.  

Release focus:
5 - Major feature enhancements 

Comment 2 Andy Dustman 2004-09-24 09:25:17 UTC
Created attachment 40305 [details]
cacti-0.8.6.ebuild

This is the 0.8.5a-r2 ebuild with some minor changes:

 * HOMEPAGE, SRC_URI updates

 * Remove SQL injection patch (no longer needed)

 * cactid is now distributed seperately (I will work on an ebuild for this; it
is indispensible for my cacti setup)

I have tested this briefly and it appears to be working correctly, but more
testing is warranted.

--- /var/portage/net-analyzer/cacti/cacti-0.8.5a-r2.ebuild	2004-08-23
06:02:16.000000000 -0400
+++ /usr/local/portage/net-analyzer/cacti/cacti-0.8.6.ebuild	2004-09-24
11:55:20.516927000 -0400
@@ -5,8 +5,8 @@
 inherit eutils webapp

 DESCRIPTION="Cacti is a complete frontend to rrdtool"
-HOMEPAGE="http://www.raxnet.net/products/cacti/"
-SRC_URI="http://www.raxnet.net/downloads/${PN}/${P}.tar.gz"
+HOMEPAGE="http://www.cacti.net/"
+SRC_URI="http://www.cacti.net/downloads/${PN}/${P}.tar.gz"

 LICENSE="GPL-2"
 KEYWORDS="~x86 ~ppc ~sparc ~alpha ~amd64"
@@ -26,8 +26,6 @@
 src_unpack() {
	unpack ${A}
	cd ${S}
-
-	epatch ${FILESDIR}/cacti-0.8.5a-sql-injection.patch
 }

 src_install() {
@@ -38,8 +36,6 @@

	dodoc docs/{CHANGELOG,CONTRIB,INSTALL,README,REQUIREMENTS,UPGRADE}
	rm -rf docs
-	rm -rf cactid
-
	#Don't overwrite old config
	mv include/config.php include/config-sample.php
Comment 3 Andy Dustman 2004-09-24 11:32:52 UTC
Created attachment 40312 [details]
cacti-cactid-0.8.6.ebuild

This is an ebuild for cactid, which the upstream sources refer to as
cacti-cactid.

The ebuild could be a little simpler if you are willing to accept cactid
installing in /usr/bin. All src_unpack() does is patch Makefile.am so that it
will install in /usr/sbin instead. 

Note that MySQL is a requirement for cacti-cactid and cacti as well; the
current cacti ebuilds have it as an optional dependency, which is incorrect.
MySQL support comes through PHP, of course.

cactid is problematic if you plan to have cacti installed for more than one
virtual host: cactid looks for cactid.conf in /etc, and there is no way to
specify a different configuration file at the command line. If you were to
install cacti for multiple vhosts, you would want them to use different
databases, and the primary purpose of cactid.conf is to specify the database
connection parameters. However, I think it is unlikely that you would cacti
installed for more than one vhost, so in practice I don't believe this is a big
problem.

cactid is much, much faster (3-4 orders of magnitude) than the PHP-based SNMP
polling, which uses snmpget and thus does a fork/exec for every query.
Comment 4 Ian P. Christian 2004-09-29 01:54:12 UTC
had to change download URL to 
SRC_URI="http://www.cacti.net/downloads/${P}.tar.gz"

other then that, up and running ok, however, it should be made very clear in the ebuild that the crontab needs changing, and the old config file is *NOT* compatable with the new version.

Thanks for your work.
Comment 5 Andy Dustman 2004-09-30 10:15:14 UTC
Comment on attachment 40312 [details]
cacti-cactid-0.8.6.ebuild

I've discovered that the default installation creates /usr/include/sql.h, which
is also supplied by the unixODBC package; I found this out when trying to
emerge the latest openldap, which uses Berkeley DB support, and which tries to
#include <sql.h> as part of it's configure. I'll try to fix this soon, plus the
previously mentioned SRC_URI problem (if applicable).
Comment 6 solar (RETIRED) gentoo-dev 2004-10-04 14:29:48 UTC
This note is to inform you about the release of version '0.8.6a' of 'cacti'

cacti 0.8.6a released (Development branch)

The changes in this release are as follows:
This version focuses on bugs that were discovered since the 0.8.6
release. These include problems with RRD updates, graph export, and
creating new graphs with certain versions of PHP. All users are
encouraged to upgrade.
Comment 7 Andy Dustman 2004-10-04 15:01:31 UTC
0.8.6a (bug-fix release) is out today. I have not tried it yet. I expect the 0.8.6 ebuild will work fine once SRC_URI is fixed.

http://www.cacti.net/changelog.php
Comment 8 solar (RETIRED) gentoo-dev 2004-10-07 01:01:07 UTC
This note is to inform you about the release of version '0.8.6b' of
'cacti'

The changes in this release are as follows:
A major issue with gaps appearing in some graphs  was fixed. Certain
problems with 95th percentile and  bandwidth summation were
corrected.  

Release focus:
7 - Major bugfixes 
Comment 9 Andy Dustman 2004-10-07 10:56:12 UTC
Created attachment 41301 [details]
cacti-0.8.6b.ebuild

The SRC_URI problem is now fixed. It seems to install fine. Whether or not it
works better remains to be seen; I was seeing some of the problems that 0.8.6b
is supposed to fix, and it'll take awhile to be sure that it's not still a
problem. But the ebuild appears to be correct at least.
Comment 10 Andy Blyler 2004-10-07 11:11:23 UTC
The new ebuild for 0.8.6b instructs users to add cmd.php to their crontab, part of the 0.8.6 included changing cmd.php to poller.php.
Comment 11 Andy Dustman 2004-10-07 11:22:32 UTC
Created attachment 41308 [details]
cacti-cactid-0.8.6b.ebuild

 * Use econf

 * Remove header files installed in /usr/include to avoid overwriting sql.h
from unixODBC
Comment 12 Bel Zébute 2004-10-11 11:46:40 UTC
One small notices also:

- Since we have to install a file as a cron job, I think virtual/cron (or cronbase, or whatever) should be added as a dependency.
- Your instructions mention putting cmd.php in a cron job while the cacti manual talk about poller.php.
- I'm no mysql expert, but shoudn't all the mysqladmin carry the -p parameter?  Without it, I had authentications problems (no password prompt).
- Simply stating "mysql cacti < cacti/cacti.sql" is bad doc.  It should say "mysql -p cacti < <your_vhost>/cacti/cacti.sql" or something of the like.
- I half disagree with the mysql dependency issue.  The ebuidl shoudl somehow detect that php is mysql capable or bail out (with a message).  I know it's not that obvious, but otherwise, it won't work and people will start wondering why.
- Links to docs from cacti are broken.  Fix the links or leave them in cacti.

I have other issues with my setup, so as I write this I unfortunatly can't tell you if it works or not.
Comment 13 Andy Dustman 2004-10-11 14:16:16 UTC
 * Dependency on virtual/cron: yes, probably a good idea

 * cmd.php vs poller.php: yes; this is a 0.8.6 change

 * mysqladmin -p: probably yes; whether or not you actually need -p depends on your setup (you might have password in .my.cnf), but then, you might have a non-root user with all privileges with grant option that you use for adminstration. I guess the assumption is you have to be competent enough to know how to authenticate to MySQL.

 * cacti.sql: There is a bit of code in there that references ${HTTPD_ROOT}, but that might not be set, so it does seem to be trying to do what you suggest, but not very well. 
Comment 14 Eldad Zack (RETIRED) gentoo-dev 2004-10-13 21:41:23 UTC
Bumped and fixed in portage.
Comment 15 Eldad Zack (RETIRED) gentoo-dev 2004-10-13 22:02:40 UTC
Andy, can you open a new bug for cacti-cactid?
Thanks
Comment 16 Alexander Naydenko 2004-11-17 04:51:46 UTC
New version is out.
Latest News

saturday, november 13th, 2004 - 10:46 am
An interim version of Cactid, 0.8.6c has been released. This version contains some small bug fixes and a few changes that should help improve resiliency in timeout critical situations.
Comment 17 Ed Davison 2004-12-21 08:21:51 UTC
New version 0.8.6c is available from www.cacti.net.  Here is the announcement from that web site:

sunday, december 19th, 2004 - 07:53 pm
Cacti version 0.8.6c has been released. This release contains a number of bug fixes that have been accumulating in version 0.8.6b for the last couple of months. Be sure to grab a copy at the downloads page [http://www.cacti.net/download_cacti.php].

Comment 18 Lance Albertson (RETIRED) gentoo-dev 2004-12-21 09:04:48 UTC
*** Bug 75195 has been marked as a duplicate of this bug. ***
Comment 19 Lance Albertson (RETIRED) gentoo-dev 2004-12-21 09:16:26 UTC
Reopened for new version
Comment 20 Martin Holzer (RETIRED) gentoo-dev 2004-12-24 08:42:53 UTC
*** Bug 67827 has been marked as a duplicate of this bug. ***
Comment 21 Martin Holzer (RETIRED) gentoo-dev 2005-01-01 16:45:29 UTC
/var/www/localhost/htdocs/cacti/rra need to be writeable by apache
Comment 22 Martin Holzer (RETIRED) gentoo-dev 2005-01-02 14:48:59 UTC
in cvs