Accessing Nagios for first time


#1

Ok, really dumb question.

I have successfully configured and installed Nagios, according to: nagios.sourceforge.net/docs/3_0/ … edora.html on my webserver. No problems at all throughout the process.

My problem comes at step 9.

I installed everything on my server via SSH command line, but now I need to access localhost, but can’t since all I use to connect to my server is command line driven (ssh). I tried accessing my serveripaddress/nagios, and no luck - but wouldn’t expect that to work either.

Anyone know what I should do at this point? Thanks.


#2

try ipaddress/nagios/ and see if it changes.


#3

Bobmonster - if you’re on a windows network you’ll need to make an entry in the DNS for both Forward and Reverse look up.

Let me know if you need more info

-Rudy


#4

I am having the same problem with the step described above, however I am not able to log in successfully to see the nagios web interface. I installed everything successfully and created the htpasswd file for ‘nagiosadmin’. I am using centOS 5.5 and tried installing nagios with a yum installation of apache2 as well as an installation of apache2 from source. Seems like I log in fine but and still unauthorized to view the site. Here is my error:

Forbidden

You don’t have permission to access /nagios/ on this server.
Apache/2.2.3 (CentOS) Server at terminator Port 80

After this I must recreate my htaccess key in order to have another attempt to log in. What is going on?


#5

Are you accessing the site by FQDN, “localhost” or by IP address?

What’s in the apache access log?


#6

localhost.

[root@localhost var]# cat nagios.log
[1287942710] Nagios 3.2.3 starting… (PID=19877)
[1287942710] Local time is Sun Oct 24 13:51:50 EDT 2010
[1287942710] LOG VERSION: 2.0
[1287942710] Finished daemonizing… (New PID=19878)
[1287942830] SERVICE ALERT: localhost;HTTP;CRITICAL;SOFT;1;Connection refused
[1287942890] SERVICE ALERT: localhost;HTTP;CRITICAL;SOFT;2;Connection refused
[1287942950] SERVICE ALERT: localhost;HTTP;OK;SOFT;3;HTTP OK: HTTP/1.1 200 OK - 306 bytes in 0.002 second response time
[1287942978] Nagios 3.2.3 starting… (PID=20176)
[1287942978] Local time is Sun Oct 24 13:56:18 EDT 2010
[1287942978] LOG VERSION: 2.0
[1287942978] Lockfile ‘/usr/local/nagios/var/nagios.lock’ looks like its already held by another instance of Nagios (PID 19878). Bailing out…
[root@localhost var]#


#7

Lockfile ‘/usr/local/nagios/var/nagios.lock’ looks like its already held by another instance of Nagios (PID 19878). Bailing out…

If nagios isn’t running (check with “ps -ef | grep nagios”) delete the lock file…

what instructions did you follow to install nagios? mainly how has apache been configured.