Change http port

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.
Locked
acorbett
Posts: 1
Joined: Tue Dec 07, 2010 1:54 pm

Change http port

Post by acorbett »

Hello - I am running Nagios on a RedHat 5 server. How can I change the http port that Nagios uses? I cannot use port 80. I would like to change the default port to 8080.
bharti
Posts: 7
Joined: Fri Jul 30, 2010 6:03 am

Re: Change http port

Post by bharti »

Hi,
To run nagios usually we use apache web server. so Port is already defined in apache config file. By default port is 80. When you access nagios server using following link "http://localhost/nagios " it automatically takes default password 80.
Now If you wish to change default port then go to following path
sudo vim /etc/httpd/conf/httpd.conf
here you will get statement "Listen 80", Instead of this you can use port what you like to change like : Listen 8080

After that go to browser and use this link to access nagios
http://localhost:8080/nagios
Locked