NConf installation error for Nagios?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Noctis0791
Posts: 58
Joined: Wed Oct 09, 2013 3:41 pm

NConf installation error for Nagios?

Post by Noctis0791 »

Hello Everyone,

I am trying to configure Nagios3 with NConf but Im having this error (see attached) during NConf 1.3-0-0 installation. I know I should have posted this on NConf forum but my registration was not yet been approved by the admins for 3 days now. Maybe some of you guys encountered the same issue during your Nagios-NConf configuration. Any ideas or suggestions?
NConf installation error.PNG
Thanks in advanced,

Arnel
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: NConf installation error for Nagios?

Post by abrist »

Thank you for trying the other forum first. This looks like permission problems. . . . What does the error log look like:

Code: Select all

tail -25 /var/log/httpd/error_log
Alternatively, have you tried nagioql instead of nconf?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Noctis0791
Posts: 58
Joined: Wed Oct 09, 2013 3:41 pm

Re: NConf installation error for Nagios?

Post by Noctis0791 »

Thanks abrist. I tried executing the code on the terminal but I got this in return.

tail -25 /var/log/httpd/error_log
cannot open '/var/log/httpd/error_log' for reading: No such file or directory

Havent tried nagioql yet but i'll look into it.

Thank You,

Arnel
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: NConf installation error for Nagios?

Post by abrist »

Depending on the distro, it could be somewhere else. . .
How about:

Code: Select all

tail -25 /var/log/apache2/error.log
Or:

Code: Select all

tail -25 /var/log/httpd-error.log
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Noctis0791
Posts: 58
Joined: Wed Oct 09, 2013 3:41 pm

Re: NConf installation error for Nagios?

Post by Noctis0791 »

Okay. This code works. Ive attached the log generated.

tail -25 /var/log/apache2/error.log

Thanks,

Arnel
Attachments
apache2 error_log.txt
(2.88 KiB) Downloaded 492 times
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: NConf installation error for Nagios?

Post by abrist »

Code: Select all

[error] [client 127.0.0.1] File does not exist: /var/www/phpmyadmin
These errors could very well be symptomatic of permission issues. What are the permissions for:

Code: Select all

ls -lad /var/www 
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Noctis0791
Posts: 58
Joined: Wed Oct 09, 2013 3:41 pm

Re: NConf installation error for Nagios?

Post by Noctis0791 »

Okay. I got this result.

drwxrwxr -x 3 www-data arnel 4096 Oct 19 04:06 /var/www

Thanks,

Arnel
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: NConf installation error for Nagios?

Post by abrist »

Well heck, that looks fine. How about:

Code: Select all

ls -la /var/www/
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Noctis0791
Posts: 58
Joined: Wed Oct 09, 2013 3:41 pm

Re: NConf installation error for Nagios?

Post by Noctis0791 »

Here's the result.

total 16
drwxrwxr-x 3 www-data arnel 4096 Oct 19 04:06.
drwxr-xr 14 root root 4096 Oct 19 05:06..
-rw-rw-r-- 1 arnel www-data 177 Oct 10 23:10 index.html
drwxr-xr-x 14 arnel arnel 4096 Dec 11 2011 nconf

Thanks,

Arnel
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: NConf installation error for Nagios?

Post by abrist »

Hmmm. You are missing a number of necessary files/folders. Where did you expand the nconf directory to?
Additionally, once expanded, you need to set the permissions on a numebr of folders. See their documentation:

http://www.nconf.org/dokuwiki/doku.php? ... stallation
2. Set permissions

Make sure the following directories are writable to your webserver user.

You can change permissions on the console or via FTP client (CHMOD)

./config
./output
./static_cfg
./temp
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked