Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 324641 - net-analyzer/nagvis version bump request
Summary: net-analyzer/nagvis version bump request
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-18 22:01 UTC by Dimitrije Zivkovic
Modified: 2013-04-25 18:47 UTC (History)
9 users (show)

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


Attachments
Ebuild for nagvis 1.5 (nagvis-1.5.ebuild,1.50 KB, text/plain)
2010-06-22 10:49 UTC, Christopher Swift
Details
Ebuild for nagvis 1.5 (nagvis-1.5.ebuild,1.40 KB, text/plain)
2010-06-22 10:51 UTC, Christopher Swift
Details
Ebuild for nagvis 1.5.8 (nagvis-1.5.8.ebuild,2.37 KB, text/plain)
2011-03-04 09:45 UTC, Thomas Oettli
Details
Patch for nagvis 1.5.8 to correct the getBasePath function (nagvis-1.5.8-base-path.patch,646 bytes, patch)
2011-03-04 09:47 UTC, Thomas Oettli
Details | Diff
Patch for nagvis 1.5.8 to correct some paths in the global definitions (nagvis-1.5.8-global-defines.patch,807 bytes, patch)
2011-03-04 09:48 UTC, Thomas Oettli
Details | Diff
Ebuild for nagvis 1.5.8 (nagvis-1.5.8.ebuild,2.47 KB, text/plain)
2011-03-04 10:30 UTC, Thomas Oettli
Details
Ebuild for nagvis 1.5.8 (nagvis-1.5.8.ebuild,2.50 KB, text/plain)
2011-03-04 11:09 UTC, Thomas Oettli
Details
Ebuild for nagvis 1.5.9 (nagvis-1.5.9.ebuild,3.13 KB, text/plain)
2011-05-29 13:42 UTC, WOLfgang Schricker
Details
Ebuild for nagvis 1.5.9 (nagvis-1.5.9.ebuild,2.88 KB, text/plain)
2011-05-29 13:50 UTC, WOLfgang Schricker
Details
Ebuild for nagvis 1.5.9 (nagvis-1.5.9.ebuild,2.97 KB, text/plain)
2011-06-02 12:16 UTC, WOLfgang Schricker
Details
Ebuild for nagvis 1.6.6 (nagvis-1.6.6.ebuild,2.83 KB, text/plain)
2012-06-01 13:48 UTC, Ian Stakenvicius (RETIRED)
Details
Patch for nagvis 1.6.6 to correct the getBasePath function (nagvis-1.6.6-base-path.patch,799 bytes, patch)
2012-06-01 13:50 UTC, Ian Stakenvicius (RETIRED)
Details | Diff
Patch for nagvis 1.6.6 to correct some paths in the global definitions (nagvis-1.6.6-global-definitions.patch,1.15 KB, text/plain)
2012-06-01 13:51 UTC, Ian Stakenvicius (RETIRED)
Details
nagvis-1.6.6-r1.ebuild (nagvis-1.6.6-r1.ebuild,2.84 KB, text/plain)
2012-07-26 11:53 UTC, Thomas Oettli
Details
nagvis-1.6.6-r2.ebuild (nagvis-1.6.6-r2.ebuild,3.16 KB, text/plain)
2013-04-14 22:14 UTC, WOLfgang Schricker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dimitrije Zivkovic 2010-06-18 22:01:39 UTC
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.
Comment 1 Christopher Swift 2010-06-19 21:45:53 UTC
I'll happily work on this ebuild.

Chris.
Comment 2 Wormo (RETIRED) gentoo-dev 2010-06-22 06:58:46 UTC
Thanks for volunteering, attach candidate ebuild when you're ready.
Comment 3 Christopher Swift 2010-06-22 10:49:25 UTC
Created attachment 236231 [details]
Ebuild for nagvis 1.5
Comment 4 Christopher Swift 2010-06-22 10:51:27 UTC
Created attachment 236233 [details]
Ebuild for nagvis 1.5
Comment 5 Dimitrije Zivkovic 2010-06-26 14:00:29 UTC
(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....
Comment 6 Byron Stanoszek 2010-09-08 17:28:25 UTC
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!
Comment 7 Dimitrije Zivkovic 2011-02-08 23:07:30 UTC
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.
Comment 8 Thomas Oettli 2011-03-04 09:45:01 UTC
Created attachment 264663 [details]
Ebuild for nagvis 1.5.8
Comment 9 Thomas Oettli 2011-03-04 09:47:36 UTC
Created attachment 264671 [details, diff]
Patch for nagvis 1.5.8 to correct the getBasePath function
Comment 10 Thomas Oettli 2011-03-04 09:48:32 UTC
Created attachment 264673 [details, diff]
Patch for nagvis 1.5.8 to correct some paths in the global definitions
Comment 11 Thomas Oettli 2011-03-04 09:55:00 UTC
(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.
Comment 12 Thomas Oettli 2011-03-04 10:30:22 UTC
Created attachment 264675 [details]
Ebuild for nagvis 1.5.8

Corrected the dependencies
Comment 13 Thomas Oettli 2011-03-04 11:09:41 UTC
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.
Comment 14 Alois Schmid 2011-03-09 13:08:50 UTC
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?
Comment 15 Alexandr Tiurin 2011-05-15 21:06:08 UTC
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?
Comment 16 WOLfgang Schricker 2011-05-16 22:19:53 UTC
(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]"
Comment 17 WOLfgang Schricker 2011-05-29 13:42:44 UTC
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.
Comment 18 WOLfgang Schricker 2011-05-29 13:50:22 UTC
Created attachment 275025 [details]
Ebuild for nagvis 1.5.9

Comments removed ;-)
Comment 19 Jon Gerdes 2011-06-01 09:39:49 UTC
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.
Comment 20 WOLfgang Schricker 2011-06-02 12:16:17 UTC
Created attachment 275609 [details]
Ebuild for nagvis 1.5.9

- socket path replaced
Comment 21 Ian Stakenvicius (RETIRED) gentoo-dev 2012-06-01 13:48:46 UTC
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.
Comment 22 Ian Stakenvicius (RETIRED) gentoo-dev 2012-06-01 13:50:38 UTC
Created attachment 313827 [details, diff]
Patch for nagvis 1.6.6 to correct the getBasePath function
Comment 23 Ian Stakenvicius (RETIRED) gentoo-dev 2012-06-01 13:51:20 UTC
Created attachment 313829 [details]
Patch for nagvis 1.6.6 to correct some paths in the global definitions
Comment 24 Thomas Oettli 2012-07-26 11:51:48 UTC
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.
Comment 25 Thomas Oettli 2012-07-26 11:53:36 UTC
Created attachment 319296 [details]
nagvis-1.6.6-r1.ebuild

Fixed version of nagvis-1.6.6.ebuild
Comment 26 Ian Stakenvicius (RETIRED) gentoo-dev 2012-07-31 18:50:36 UTC
+*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)
+
Comment 27 WOLfgang Schricker 2013-04-14 22:14:31 UTC
Created attachment 345590 [details]
nagvis-1.6.6-r2.ebuild

Move shapes dir to var also. You can upload map images now.
Comment 28 Sergey Popov gentoo-dev 2013-04-25 18:47:18 UTC
(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