[Jaunty] [Server] Nagvis is reporting an error on using WUI

Bug #344823 reported by Thermaltaker
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
nagvis (Debian)
Fix Released
Unknown
nagvis (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: nagvis

please try to create a map an add an host to this, then save. You will get following message:

Warning: require(/usr/share/nagvis/wui/includes/functions/form_handler.php) [function.require]: failed to open stream: No such file or directory in /usr/share/nagvis/htdocs/wui/form_handler.php on line 39

Fatal error: require() [function.require]: Failed opening required '/usr/share/nagvis/wui/includes/functions/form_handler.php' (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/nagvis/htdocs/wui/form_handler.php on line 39

I look for this /usr/share/nagvis/wui/includes/functions/form_handler.php but it isnt there.

Changed in nagvis (Debian):
status: Unknown → New
Revision history for this message
PCTeacher012 (pcfixupllc) wrote : UNSUBSCRIBE

UnSubScribe

Revision history for this message
Tsab (tsaba) wrote :

confirmed

Changed in nagvis (Debian):
status: New → Fix Committed
Changed in nagvis (Debian):
status: Fix Committed → Fix Released
Changed in nagvis (Debian):
status: Fix Released → New
Revision history for this message
clint (clint-xenir) wrote :

This appears to be the only file missing after comparing to the official tarball.
form_handler.php attached for convenience (from official tarball)
place in /usr/share/nagvis/wui/includes/functions/ (you'll need to create the functions directory.)
Bug has been reopened upstream.

Revision history for this message
Dennis (dennis-u) wrote :

There is still something strange with the paths.

uname -a
Linux gibbs 2.6.31-17-generic-pae #54-Ubuntu SMP Thu Dec 10 17:23:29 UTC 2009 i686 GNU/Linux

Ubuntu-Version: Karmic

Package-Version (apt-cache show nagvis):
Version: 1:1.3.1-2
Filename: pool/universe/n/nagvis/nagvis_1.3.1-2_all.deb

The absolute path in nagvis.ini.php is set to /usr/share/nagvis/htdocs/.

The automap works well, but not the "Host Hover". I used Firebug to recognize which paths are incorrect.
A workaround for me was copying the files:

root@host:/usr/share/nagvis/htdocs/nagvis/includes# cp -a /usr/share/nagvis/includes/* .

After that, the Host Hovers work fine, too. But if I want to save the Config by WUI, I got a new include-Error: /usr/share/nagvis/wui/includes/functions/form_handler.php is missing. This directory "function" does not exist:

root@host:/usr/share/nagvis# find . -name form_handler.php
./htdocs/wui/includes/form_handler.php
./htdocs/wui/form_handler.php

My workaround:

root@host:/usr/share/nagvis/wui/includes# mkdir functions
root@gibbs:/usr/share/nagvis/htdocs/wui/includes# cp form_handler.php /usr/share/nagvis/wui/includes/functions/

Then most of things work! I know that this copying is not very nice, but I want to figure out, where's the problem.

Revision history for this message
Peter Newman (peternewman) wrote :

Dennis, the host hover stuff seems to be related to the Debian bug #545680 ( http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=545680 ). Fixing the includes there partially resolved my issues with the host hover, however I then had to tweak some lines as ereg is deprecated, and needs to be changed to preg_match and add slashes in GlobalMainCfg.php and GlobalMapCfg.php.

Changed in nagvis (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.