Nagvis on NagiosXI 5.5.2

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
chrtap
Posts: 35
Joined: Wed Dec 28, 2011 6:31 am

Nagvis on NagiosXI 5.5.2

Post by chrtap »

Hi,

Nagvis dosen't works, maybe since the update.

Attached I give to you the print screen and at here is a copy of the message :
Error (Dwoo_Exception): The compile directory must be writable, chmod "/usr/local/nagvis/var/tmpl/compile/" to make it writablearray(1) { [0]=> array(2) { ["function"]=> string(15) "nagvisException" ["args"]=> array(1) { [0]=> object(Dwoo_Exception)#11 (7) { ["message":protected]=> string(103) "The compile directory must be writable, chmod "/usr/local/nagvis/var/tmpl/compile/" to make it writable" ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(0) ["file":protected]=> string(66) "/usr/local/nagvis/share/frontend/nagvis-js/ext/dwoo-1.1.0/Dwoo.php" ["line":protected]=> int(686) ["trace":"Exception":private]=> array(5) { [0]=> array(6) { ["file"]=> string(66) "/usr/local/nagvis/share/frontend/nagvis-js/ext/dwoo-1.1.0/Dwoo.php" ["line"]=> int(258) ["function"]=> string(13) "setCompileDir" ["class"]=> string(4) "Dwoo" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> string(34) "/usr/local/nagvis/var/tmpl/compile" } } [1]=> array(6) { ["file"]=> string(77) "/usr/local/nagvis/share/frontend/nagvis-js/classes/FrontendTemplateSystem.php" ["line"]=> int(37) ["function"]=> string(11) "__construct" ["class"]=> string(4) "Dwoo" ["type"]=> string(2) "->" ["args"]=> array(2) { [0]=> string(34) "/usr/local/nagvis/var/tmpl/compile" [1]=> string(32) "/usr/local/nagvis/var/tmpl/cache" } } [2]=> array(6) { ["file"]=> string(71) "/usr/local/nagvis/share/frontend/nagvis-js/classes/NagVisHeaderMenu.php" ["line"]=> int(48) ["function"]=> string(11) "__construct" ["class"]=> string(22) "FrontendTemplateSystem" ["type"]=> string(2) "->" ["args"]=> array(0) { } } [3]=> array(6) { ["file"]=> string(64) "/usr/local/nagvis/share/frontend/nagvis-js/classes/ViewError.php" ["line"]=> int(50) ["function"]=> string(11) "__construct" ["class"]=> string(16) "NagVisHeaderMenu" ["type"]=> string(2) "->" ["args"]=> array(2) { [0]=> string(7) "default" [1]=> NULL } } [4]=> array(6) { ["file"]=> string(52) "/usr/local/nagvis/share/frontend/nagvis-js/index.php" ["line"]=> int(61) ["function"]=> string(5) "parse" ["class"]=> string(9) "ViewError" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> object(NagVisException)#5 (8) { ["message":protected]=> string(159) "The attribute showinlists in section automap in main configuration file is deprecated. Please take a look at the documentation for updating your configuration." ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(0) ["file":protected]=> string(61) "/usr/local/nagvis/share/server/core/classes/GlobalMainCfg.php" ["line":protected]=> int(1912) ["trace":"Exception":private]=> array(4) { [0]=> array(6) { ["file"]=> string(61) "/usr/local/nagvis/share/server/core/classes/GlobalMainCfg.php" ["line"]=> int(1819) ["function"]=> string(22) "checkMainConfigIsValid" ["class"]=> string(13) "GlobalMainCfg" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> int(1) } } [1]=> array(6) { ["file"]=> string(61) "/usr/local/nagvis/share/server/core/classes/GlobalMainCfg.php" ["line"]=> int(1531) ["function"]=> string(10) "readConfig" ["class"]=> string(13) "GlobalMainCfg" ["type"]=> string(2) "->" ["args"]=> array(3) { [0]=> string(27) "../../../etc/nagvis.ini.php" [1]=> bool(true) [2]=> bool(true) } } [2]=> array(6) { ["file"]=> string(54) "/usr/local/nagvis/share/server/core/functions/core.php" ["line"]=> int(36) ["function"]=> string(4) "init" ["class"]=> string(13) "GlobalMainCfg" ["type"]=> string(2) "->" ["args"]=> array(0) { } } [3]=> array(4) { ["file"]=> string(52) "/usr/local/nagvis/share/frontend/nagvis-js/index.php" ["line"]=> int(41) ["args"]=> array(1) { [0]=> string(54) "/usr/local/nagvis/share/server/core/functions/core.php" } ["function"]=> string(7) "require" } } ["previous":"Exception":private]=> NULL ["e"]=> array(3) { ["message"]=> string(159) "The attribute showinlists in section automap in main configuration file is deprecated. Please take a look at the documentation for updating your configuration." ["title"]=> string(5) "ERROR" ["type"]=> string(5) "error" } } } } } ["previous":"Exception":private]=> NULL } } } }
Can you help me ?

Regards.
Christian.
You do not have the required permissions to view the files attached to this post.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Nagvis on NagiosXI 5.5.2

Post by cdienger »

What are teh current permissions on the /usr/local/nagvis/var/tmpl/compile directory? On my lab machines it looks like:

drwxrwxr-x 2 apache apache 4.0K Jul 31 14:56 compile

Try setting the permissons onf the directory with:

chmod 775 /usr/local/nagvis/var/tmpl/compile
chown apache:apache /usr/local/nagvis/var/tmpl/compile
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
chrtap
Posts: 35
Joined: Wed Dec 28, 2011 6:31 am

Re: Nagvis on NagiosXI 5.5.2

Post by chrtap »

Hi,

Sorry, I checked that, but forget to give this information when opening this incident :
ls -lap /usr/local/nagvis/var/tmpl
drwxrwxr-x. 4 apache apache 4096 Jul 25 10:08 ./
drwxrwxr-x. 3 apache apache 4096 Jul 25 10:08 ../
drwxrwxr-x. 2 apache apache 4096 Jul 25 10:08 cache/
drwxrwxr-x. 2 apache apache 4096 Jul 25 10:08 compile/


Regards
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagvis on NagiosXI 5.5.2

Post by scottwilkerson »

That looks writable by apache, can you show the output of

Code: Select all

getenforce
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
chrtap
Posts: 35
Joined: Wed Dec 28, 2011 6:31 am

Re: Nagvis on NagiosXI 5.5.2

Post by chrtap »

Hi,

Answer is Enforcing

when I make setenforce 0 I have a new error in nagvis (see attachement)

I will check with our linux Admins on monday,they left for the weekend

Regards.
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagvis on NagiosXI 5.5.2

Post by scottwilkerson »

This is better.

you should be able to go to Option -> General Configuration -> Auto Map Tab
and click Save to reset all the option
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
chrtap
Posts: 35
Joined: Wed Dec 28, 2011 6:31 am

Re: Nagvis on NagiosXI 5.5.2

Post by chrtap »

Hi,

I don't know where is the proposed menu (Option -> General Configuration -> Auto Map Tab).

In nagvis menu I have no choice (see attachment) and I don't find any "Option" menu in another place in nagios.

Could you give me more information ?

Regards
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagvis on NagiosXI 5.5.2

Post by scottwilkerson »

Can you attach you /usr/local/nagvis/etc/nagvis.ini.php
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
chrtap
Posts: 35
Joined: Wed Dec 28, 2011 6:31 am

Re: Nagvis on NagiosXI 5.5.2

Post by chrtap »

Here it is
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagvis on NagiosXI 5.5.2

Post by scottwilkerson »

comment out line 232 of this file changing this

Code: Select all

showinlists=0
to this

Code: Select all

;showinlists=0
Then save. This should remove the current error.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked