Page 1 of 2

Nagvis on NagiosXI 5.5.2

Posted: Tue Aug 14, 2018 7:00 am
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.

Re: Nagvis on NagiosXI 5.5.2

Posted: Tue Aug 14, 2018 2:23 pm
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

Re: Nagvis on NagiosXI 5.5.2

Posted: Thu Aug 16, 2018 3:46 am
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

Re: Nagvis on NagiosXI 5.5.2

Posted: Thu Aug 16, 2018 10:29 am
by scottwilkerson
That looks writable by apache, can you show the output of

Code: Select all

getenforce

Re: Nagvis on NagiosXI 5.5.2

Posted: Fri Aug 17, 2018 8:16 am
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.

Re: Nagvis on NagiosXI 5.5.2

Posted: Fri Aug 17, 2018 9:10 am
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

Re: Nagvis on NagiosXI 5.5.2

Posted: Mon Aug 20, 2018 1:27 am
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

Re: Nagvis on NagiosXI 5.5.2

Posted: Mon Aug 20, 2018 1:01 pm
by scottwilkerson
Can you attach you /usr/local/nagvis/etc/nagvis.ini.php

Re: Nagvis on NagiosXI 5.5.2

Posted: Tue Aug 21, 2018 2:16 am
by chrtap
Here it is

Re: Nagvis on NagiosXI 5.5.2

Posted: Tue Aug 21, 2018 7:39 am
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.