Koozali.org: home of the SME Server

Can't Configure the nagios-3.2.0's Web Interface

Can't Configure the nagios-3.2.0's Web Interface
« 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.

Offline chris burnat

  • ****
  • 1,135
  • +2/-0
    • http://www.burnat.com
Re: Can't Configure the nagios-3.2.0's Web Interface
« Reply #1 on: October 31, 2010, 10:14:08 PM »
This may be of assistance:  http://wiki.contribs.org/Nagios
Moving to Contribs section.
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

Re: Can't Configure the nagios-3.2.0's Web Interface
« Reply #2 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.

Offline brianr

  • *
  • 988
  • +2/-0
Re: Can't Configure the nagios-3.2.0's Web Interface
« Reply #3 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.
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline chris burnat

  • ****
  • 1,135
  • +2/-0
    • http://www.burnat.com
Re: Can't Configure the nagios-3.2.0's Web Interface
« Reply #4 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.
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

Re: Can't Configure the nagios-3.2.0's Web Interface
« Reply #5 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.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Can't Configure the nagios-3.2.0's Web Interface
« Reply #6 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?
« Last Edit: November 10, 2010, 05:31:27 PM by cactus »
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline brianr

  • *
  • 988
  • +2/-0
Re: Can't Configure the nagios-3.2.0's Web Interface
« Reply #7 on: November 10, 2010, 07:58:39 AM »
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Re: Can't Configure the nagios-3.2.0's Web Interface
« Reply #8 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

Thank you very much.

I will keep counting on this forum for future problems.

With my best regards,

sebastiaopburay.

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: Can't Configure the nagios-3.2.0's Web Interface
« Reply #9 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.



Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.