EZNag FAQ

 Upgrade of EZNag

When you run the installation script (./runall.sh), you are able to choose between a new installation or an upgrade.
The upgrading process will ask you few questions and then, will only install the new EZNag interface. Nagios will not be impacted.

 Handling hundreds of hosts is too slow with the Web Interface

Try selecting the new "Administration" menu option in the left side of the Web interface. Then click on the "Configure" option and the select the "Main" Tab. You can de-select the "Show Inheritages" and "Show References" boxes, then save.

 Authentication Error when accessing NagTrap Menu

Symptom : when you select NagTrap option in the left menu, the error "you do not have the permission to view the log file" appears.

Reason : you have selected the "Digest" algorithm for Apache authentication, and there is a bug in NagTrap authentication processing

Fix : set useAuthentication = 0, in file ./share/nagtrap/etc/config.ini.php

 SQL Error when accessing Nagvis menu

Symptom : when you click on Nagvis menu option in EZNag Web interface, the following error message is displayed:

You have an error in your SQL syntax, check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

Fix : the problem comes from the "configure" script that compiles "ndo2b-3x" from the NDOUtils package. This script could not determine the location of the MySQL include files and libraries.

Your first must make sure you have installed the "mysql-devel" and "mysqlclient" packages for your distro. Theses files are usually installed under /usr/include/mysql and /usr/lib{64}/mysql. Then go to the directory where you untared EZNag archive. Let's say its /opt.

Re-run the compilation like this :

# cd /opt/eznag-your-version-here
# cd tmp
# cd ndoutils
# make clean
# ./configure --with-mysql-inc=/usr/include/mysql --with-mysql-lib=/usr/lib/mysql
# make
# make install


On a 64 bit system, you should probably specify /usr/lib64/mysql instead of /usr/lib/mysql.

 Running "nmap" or trying to start/stop/restart Nagios fails with the Web Interface

The commands used to execute these actions are listed in the /etc/sudoers file.
But they will fail if this file contains the following directive :

Defaults: requiretty

To fix this problem, you must add this directive after it :

Defaults:apache !requiretty

where "apache" is the name of the account used by the Apache process (usually "httpd").

 "C compiler cannot produce executable"

Probably, some of the compilation requirements are not met:
gcc, g++ and libc (named glibc-devel, libc6-dev...) should be present.

 "Directory ../temp is not writeable"

The installation script should have set the right permissions for Apache user.
Usually the message is caused by a wrong SELinux context. Try with SELinux in permissive mode.

 "cp: cannot evaluate 'src/nrpe' ..."

The installation script tries to determine the presence of SSL libraries. But it can fail.
Check if the SSL development libraries exist. Package name is usually libssl-dev or libssl-devel.

 nmap compilation failed

Probably, some of the compilation requirements are not met:
gcc, g++ and libc-dev should be present.


This site is maintained by jdelamarche@maje.biz