Need to run Nagios Web Interface on a different port


 
Thread Tools Search this Thread
Top Forums Web Development Need to run Nagios Web Interface on a different port
# 1  
Old 12-16-2010
Need to run Nagios Web Interface on a different port

Hi,

During Nagios install we added the following piece of config to apache httpd.conf file and it runs on the regular port 80, now if I want to run this on a different port then what needs to changed to make it run on lets say port 8080.

I tried adding Virtual servers but was getting Forbidden 403 error.

Code:
#
# Nagios stuff

ScriptAlias /nagios/cgi-bin/ "/opt/local/sbin/nagios/"
<Directory "/opt/local/sbin/nagios">
    AllowOverride None
    Options ExecCGI
    Order allow,deny  
    Allow from all
    AuthName "Nagios Access"
    AuthType Basic
    AuthUserFile /opt/local/etc/nagios/htpasswd.users (for user/password auth)
    Require valid-user
</Directory>

Alias /nagios "/opt/local/share/nagios"
<Directory "/opt/local/share/nagios">
    Options None
    AllowOverride AuthConfig
    Order allow,deny
    Allow from all
</Directory>

# End Nagios stuff
#

Thanks,
Jacki
# 2  
Old 12-18-2010
This line will not work:

Code:
 AuthUserFile /opt/local/etc/nagios/htpasswd.users (for user/password auth)

You can't put a comment like (for user/password auth) on a configuration line.

If you restart apache2 it will fail.

Please be complete when posting and make sure you post the correct information, thanks.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. AIX

NAGIOS Service not able to open port on AIX 7.1

I have an AIX 7.1 LPAR where Nagios agent was installed for monitoring. The issue is that when I start the nagios service (ncpa_listener), it starts but does not open the 5693 port it requires for communication. On all other LPARs the service opens the port and is listening. I tried reinstalling... (4 Replies)
Discussion started by: wibhore
4 Replies

2. IP Networking

Port based multi interface routing

Hello, I wanted to setup routing certain traffic (http/s) out via a second (faster) interface, like described in the following docs (may not post urls): linux-ip.net /html/adv-multi-internet.html thegeekstuff.com /2014/08/add-route-ip-command/ I already had this working years ago on... (0 Replies)
Discussion started by: hyphan
0 Replies

3. Shell Programming and Scripting

Web Interface for shell script.

Hi Team, I have daily pdf files which i have to convert in tif images. I have script which does it. I need to put these images in some specific folder (which i create manually) on server. Is there any web based way to it, so that user can simply browse file & it will convert & upload on... (1 Reply)
Discussion started by: paragnehete
1 Replies

4. Web Development

Web Interface for a database

Hi Gents, What is the best way to create a web interface for mysql database? That I can manage my data for root user and for normal user as well according to their privileges? Assuming that I use Linux as a server and Apache as a web server and my database is mysql. Thanks in advance (5 Replies)
Discussion started by: leo_ultra_leo
5 Replies

5. IP Networking

Simple port fwd. 1 interface

I have been tearing my hair out with this (and not enough left to keep going). I have a linux box (raspberry pi) single ethernet interface in a heavily filtered DMZ with external ports fwd'd that can access an internal IP's (different subnet). I want to forward the traffic. Should be simple I... (0 Replies)
Discussion started by: martyuiop
0 Replies

6. Red Hat

iptable port forwarding between two lan interface

Hi, How can I config iptables to allow port forwarding from one WAN interface to second lan interface . In my system I have one wan interface 61.93.204.56 (eth0),and lan interface 10.2.1.52(eth1) I want to make port forward port no 22 from 61.93.204.56 to port 22 , 10.2.1.52 , tcp and udp... (1 Reply)
Discussion started by: chuikingman
1 Replies

7. Web Development

Changing Title Page of Nagios Web

So I installed the latest version of nagios on my servers here. and the title of the page says "Nagios Core". I'd like to change this to somethign else that reflects what purpose the particular web interface being viewed serves. where do i go to change this? i'm running apache2 on my... (2 Replies)
Discussion started by: SkySmart
2 Replies

8. Red Hat

Assign port dedicatedly against an interface !

Dear Friends , I am using RHEL 5 . In my Linux Box i have two Lan cards (eth0 and eth1) . "eth0" is connected with network 192.168.10.0 and "eth1" is connected with network 192.168.11.0 . Both Network are inter connected via routing . Now I want a situation where , I want to dedicatedly... (2 Replies)
Discussion started by: shipon_97
2 Replies

9. Infrastructure Monitoring

Nagios web interface is not getting

Hello everyone, I had installed nagios 3 on fedora 5 successfully and i have verified sample config file by issueing command like /usr/local/..... -v /usr/local.../nagios.cfg . ....and i am getting the result as well. After that i started nagios by giving command like ... service nagios... (1 Reply)
Discussion started by: Renjesh
1 Replies
Login or Register to Ask a Question