NagVis has new stable version, 1.5. Ebuild for that version is missing in portage tree. Reproducible: Always Actual Results: No ebuild file for this version in portage tree. Expected Results: emerge new version of NagVis through portage tree.
I'll happily work on this ebuild. Chris.
Thanks for volunteering, attach candidate ebuild when you're ready.
Created attachment 236231 [details] Ebuild for nagvis 1.5
Created attachment 236233 [details] Ebuild for nagvis 1.5
(In reply to comment #4) > Created an attachment (id=236233) [details] > Ebuild for nagvis 1.5 > Hi, thanks for quick response. I tested this ebuild and had no problems with install of new version of NagVis. However, the reason for request of this ebuild is the following: "There are many changes compared to the last stable release 1.4.7. The most important of them are: The MKLivestatus backend is the default backend now. You don't need a relational database like MySQL and the NDO anymore. This gives NagVis a big performance gain and makes the Nagios+NagVis easier to use and maintain. You simply need to extend your Nagios installation with the MKLivestatus NEB module." Since this new NEB module is quite impressive (and my Nagios installs are getting quite large, ~1000 hosts and ~10000 services), I opend a bug #324637 requesting ebuild for this piece of software too. This way, maybe new USE flags can be introduced for NagVis - mklivestatus and ndo - allowing us to choose between NEB modules we would like to use. It would be great if we could have this ebuild as quickly as for Nagvis. Off topic: I would like very much to learn how to write ebuilds myself, so if anyone could point me to some docs, it would be great.... Once again, thanks for quick response....
I tried this ebuild out and had the following error messages on my screen: >>> Install nagvis-1.5 into /var/tmp/portage/net-analyzer/nagvis-1.5/image/ category net-analyzer mv: cannot stat `/var/tmp/portage/net-analyzer/nagvis-1.5/work/nagvis-1.5/config.php': No such file or directory mv: cannot stat `/var/tmp/portage/net-analyzer/nagvis-1.5/work/nagvis-1.5/index.php': No such file or directory mv: cannot stat `/var/tmp/portage/net-analyzer/nagvis-1.5/work/nagvis-1.5/nagvis': No such file or directory mv: cannot stat `/var/tmp/portage/net-analyzer/nagvis-1.5/work/nagvis-1.5/wui': No such file or directory chmod: cannot access `/var/tmp/portage/net-analyzer/nagvis-1.5/image//etc/nagvis/maps/*cfg': No such file or directory chown: cannot access `/var/tmp/portage/net-analyzer/nagvis-1.5/image//etc/nagvis/maps/*cfg': No such file or directory >>> Completed installing nagvis-1.5 into /var/tmp/portage/net-analyzer/nagvis-1.5/image/ Due to the errors, I'm thinking there's more to nagvis than what was actually installed: >>> Installing (1 of 1) net-analyzer/nagvis-1.5 * checking 15 files for package collisions --- /etc/ >>> /etc/nagvis/ >>> /etc/nagvis/maps/ >>> /etc/nagvis/maps/demo-map.cfg >>> /etc/nagvis/maps/demo-server.cfg >>> /etc/nagvis/maps/demo.cfg >>> /etc/nagvis/maps/demo2.cfg >>> /etc/nagvis/automaps/ >>> /etc/nagvis/automaps/__automap.cfg >>> /etc/nagvis/nagvis.ini.php-sample >>> /etc/nagvis/geomap/ >>> /etc/nagvis/geomap/viewpoints.xml >>> /etc/nagvis/geomap/settings.xml >>> /etc/nagvis/geomap/links.xml >>> /etc/nagvis/geomap/locations.xml >>> /etc/nagvis/apache2-nagvis.conf-sample --- /var/ >>> /var/nagvis/ --- /usr/ --- /usr/share/ --- /usr/share/doc/ >>> /usr/share/doc/nagvis-1.5/ >>> /usr/share/doc/nagvis-1.5/README.bz2 >>> /usr/share/doc/nagvis-1.5/INSTALL.bz2 >>> /usr/share/nagvis/ >>> /usr/share/nagvis/etc -> /etc/nagvis >>> /usr/share/nagvis/var -> /var/nagvis Does anyone have an updated ebuild that can be used to get all of the files from the package? Thanks for any help!
Somebody, please, version bump?!!!!! I can confirm errors from Comment #6. Tryed to install NagVis 1.5.8 - latest - manualy. It seems like there is no compilation needed, just moving folders around and setting right permissions. But now I'm stuck with PHP error "Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 261900 bytes) in /usr/share/nagvis/server/core/classes/GlobalMainCfg.php on line 34" Even if I set memory_limit to -1, it's always this error. Someone, please, do a version bump on this ebiuld.
Created attachment 264663 [details] Ebuild for nagvis 1.5.8
Created attachment 264671 [details, diff] Patch for nagvis 1.5.8 to correct the getBasePath function
Created attachment 264673 [details, diff] Patch for nagvis 1.5.8 to correct some paths in the global definitions
(In reply to comment #7) > Somebody, please, version bump?!!!!! > > I can confirm errors from Comment #6. > > Tryed to install NagVis 1.5.8 - latest - manualy. It seems like there is no > compilation needed, just moving folders around and setting right permissions. > But now I'm stuck with PHP error > > "Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to > allocate 261900 bytes) in > /usr/share/nagvis/server/core/classes/GlobalMainCfg.php on line 34" > > Even if I set memory_limit to -1, it's always this error. > Someone, please, do a version bump on this ebiuld. > I have modified the ebuild for nagvis 1.5.8. Solved the problems described in Comment #6 and Comment #7. The "allowed memory size exhausted" error occured due to wrong paths defined in the global definitions and in the getBasePath function. The two patches solve this problem.
Created attachment 264675 [details] Ebuild for nagvis 1.5.8 Corrected the dependencies
Created attachment 264685 [details] Ebuild for nagvis 1.5.8 The user apache needs to have write access on /etc/nagvis to create the auth.db file. Permissions corrected in this ebuild.
Works for me (updated nagvis from 1.4.4 to 1.5.8 with newest ebuild on x86_64). Anything else I could do to help stabilize the package?
I receive an error message: "Your PHP installation does not support PDO. Please check if you installed the PHP module". Because I do not add "pdo" use flag in php. May be, add the flag to "pdo" to "dev-lang/php[gd,mysql,session,sockets,sqlite3,unicode,xml" line?
(In reply to comment #15) > I receive an error message: ...me too, I solved : - dev-lang/php[gd,mysql,session,sockets,sqlite3,unicode,xml]" + dev-lang/php[gd,mysql,pdo,session,sockets,sqlite3,unicode,xml]"
Created attachment 275017 [details] Ebuild for nagvis 1.5.9 Ebuild for nagvis 1.5.9 works for me: - must patches rename to new version - 'pdo' flag added to php - /usr/share/nagvis/userfiles/images/maps linked to /var/nagvis/userfiles/images/maps with apache upload rights Please test it.
Created attachment 275025 [details] Ebuild for nagvis 1.5.9 Comments removed ;-)
Thanks for the ebuild - works well for me so far on one each of ~amd64 and ~x86. Could you amend the path in nagvis.ini.php-sample for [backend_live_1]: socket="unix:/var/nagios/rw/live" That's the one that mk-livestatus creates by default in the Gentoo ebuild. That one change makes the lot work out of the box.
Created attachment 275609 [details] Ebuild for nagvis 1.5.9 - socket path replaced
Created attachment 313825 [details] Ebuild for nagvis 1.6.6 Here's an ebuild for current stable as of May 2012. Updated patches will be attached also. I don't have a working copy of nagios installed (and no use for nagvis either, for that matter), so if someone that does use this could test it and confirm that everything still works as expected, I will commit this version to the tree.
Created attachment 313827 [details, diff] Patch for nagvis 1.6.6 to correct the getBasePath function
Created attachment 313829 [details] Patch for nagvis 1.6.6 to correct some paths in the global definitions
Hi Ian I have tested your ebuild in my productive environment and I found two issues in the ebuild. First, you forgot to install the docs directory into /usr/share/nagis. Second, there was a small misstake in the sed command to patch the apache config file. This is fixed in my ebuild, I will upload it immediatly. Otherwise, the ebuild is working flawlessly, thanks alot for your work.
Created attachment 319296 [details] nagvis-1.6.6-r1.ebuild Fixed version of nagvis-1.6.6.ebuild
+*nagvis-1.6.6 (31 Jul 2012) + + 31 Jul 2012; Ian Stakenvicius <axs@gentoo.org> +nagvis-1.6.6.ebuild, + +files/nagvis-1.6.6-base-path.patch, + +files/nagvis-1.6.6-global-definitions.patch: + version bump for bug 324641 , thanks to spacefreak for testing ; dropped ~ppc + keyword due to missing keyword on net-analyzer/mk-livestatus dep (bug 429088) +
Created attachment 345590 [details] nagvis-1.6.6-r2.ebuild Move shapes dir to var also. You can upload map images now.
(In reply to comment #27) > Created attachment 345590 [details] > nagvis-1.6.6-r2.ebuild > > Move shapes dir to var also. You can upload map images now. Please open separate bug, if you want to suggest enhancement to current nagvis ebuild