A new ebuild is needed.
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
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
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.
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 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).
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.
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
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
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.
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.
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
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.
* 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.
Bumped and fixed in portage.
Andy, can you open a new bug for cacti-cactid? Thanks
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.
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].
*** Bug 75195 has been marked as a duplicate of this bug. ***
Reopened for new version
*** Bug 67827 has been marked as a duplicate of this bug. ***
/var/www/localhost/htdocs/cacti/rra need to be writeable by apache
in cvs