Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: sebastiaopburnay on October 31, 2010, 08:10:44 PM

Title: Can't Configure the nagios-3.2.0's Web Interface
Post by: sebastiaopburnay on October 31, 2010, 08:10:44 PM
Hey! First of all, thank you for keeping this community post.

I'm installing the nagios nagios-3.2.0 on an SME-Server (a derivation of the CentOS distribution) and I'm following the quick-start-guide designed for the Fedora distribution (maybe thats the problem's root).

When I got to the point of installing the web interface I ran the command
 
Code: [Select]
make install-webconf and I got the error
 
Code: [Select]
make: *** No rule to make target `install-webconf'.  Stop.
It suggests the make file isn't intended for the ppurpose pointed in the instructions.

I was hoping I could get some help, I had no problem installing nagios on a suse virtual machine, but I need to use this SME-server distribution and I'm a bit lost.

Thank you.
Title: Re: Can't Configure the nagios-3.2.0's Web Interface
Post by: chris burnat on October 31, 2010, 10:14:08 PM
This may be of assistance:  http://wiki.contribs.org/Nagios
Moving to Contribs section.
Title: Re: Can't Configure the nagios-3.2.0's Web Interface
Post by: sebastiaopburnay on November 01, 2010, 06:09:02 PM
Well those instructions are valid in the case you have the  Nagios 2 contrib installed.

I was intending to install it on a fresh SME-server so I'm worried it will bring problems.
Title: Re: Can't Configure the nagios-3.2.0's Web Interface
Post by: brianr on November 01, 2010, 07:07:12 PM
I think you'll find if you follow those instructions (I presume this is an SME7.5.1?), then you'll end up with a  nagios 3.2.1 installation.
Title: Re: Can't Configure the nagios-3.2.0's Web Interface
Post by: chris burnat on November 01, 2010, 10:18:23 PM
Well those instructions are valid in the case you have the  Nagios 2 contrib installed.

I was intending to install it on a fresh SME-server so I'm worried it will bring problems.

Brian is correct.  Please read the instructions carefully, there are two cases covered:
1) Clean install to vs3
2) Upgrade from 2 to 3.
Title: Re: Can't Configure the nagios-3.2.0's Web Interface
Post by: sebastiaopburnay on November 10, 2010, 03:48:30 AM
Yes, you are right, I was using an incompetent approach to the issue and following those instructions got me to install nagios.

I got to run nagios and accessed its web-iface from an external host.

Yet, problems arose afterwards, with the:
Quote
Configuring global access with password required
which includes the commands:
Code: [Select]
config set nagios service Name Nagios PublicAccess global-pw
expand-template /etc/httpd/conf/httpd.conf
service httpd-e-smith restart
service nagios restart
The nagios stops ok, but doesn't start anymore. Not even at system reboot (in which crond and killall also fail).

I even checked the nagios configuration with the command:
Code: [Select]
nagios -v /etc/nagios/nagios.cfg
That has shown no problems either.

The log file had this error repeated (due to the series of failed attempts to start nagios)
Code: [Select]
[1289355381] Nagios 3.2.3 starting... (PID=5633)
[1289355381] Local time is Wed Nov 10 02:16:21 WET 2010
[1289355381] LOG VERSION: 2.0
[1289355381] Failed to obtain lock on file /var/run/nagios.pid: Permission denied
[1289355381] Bailing out due to errors encountered while attempting to daemonize... (PID=5633)

I don't mean to be a pain in the ass, but I'm getting desperate here.

Thank you so much for your attention and replies.
Title: Re: Can't Configure the nagios-3.2.0's Web Interface
Post by: cactus on November 10, 2010, 07:01:19 AM
Code: [Select]
[1289355381] Failed to obtain lock on file /var/run/nagios.pid: Permission denied
[1289355381] Bailing out due to errors encountered while attempting to daemonize... (PID=5633)
Here is your clue. Please check ownership and permission of the folder and files. What does ls -la /var/run/nagios show?
Title: Re: Can't Configure the nagios-3.2.0's Web Interface
Post by: brianr on November 10, 2010, 07:58:39 AM
http://bugs.contribs.org/show_bug.cgi?id=5539#c3

point 3 applies here.
Title: Re: Can't Configure the nagios-3.2.0's Web Interface
Post by: sebastiaopburnay on November 10, 2010, 01:12:43 PM
Well.

It worked, using the instructions under http://bugs.contribs.org/show_bug.cgi?id=5539#c3 (http://bugs.contribs.org/show_bug.cgi?id=5539#c3)

Thank you very much.

I will keep counting on this forum for future problems.

With my best regards,

sebastiaopburay.
Title: Re: Can't Configure the nagios-3.2.0's Web Interface
Post by: janet on November 10, 2010, 04:32:43 PM
sebastiaopburnay

Quote
I will keep counting on this forum for future problems.

Please learn to search the forums and bugzilla first.
Your issue had clearly been answered before, and had you searched, you would have most likely found the answer without needing to impose upon the users at this forum.
We are willing to help you, but our time is better spent providing answers that are NOT already published.
Remember to try different search criteria if you don't at first find the answer you are looking for.