how to change nagios default port
-
harsha.s.aryan
- Posts: 52
- Joined: Fri Nov 13, 2015 9:05 am
how to change nagios default port
hi.
after installing nagios its working in nagios default port 80 how do I change it to 8081 or 7001 port
thanks
after installing nagios its working in nagios default port 80 how do I change it to 8081 or 7001 port
thanks
Regards,
Harsha
Harsha
Re: how to change nagios default port
Nagios is using your apache installation.
You should change the Apache config for that.
You should change the Apache config for that.
Rob Hassing


-
harsha.s.aryan
- Posts: 52
- Joined: Fri Nov 13, 2015 9:05 am
Re: how to change nagios default port
can you please let me know how to change as my apache is running in default configuration
Regards,
Harsha
Harsha
-
harsha.s.aryan
- Posts: 52
- Joined: Fri Nov 13, 2015 9:05 am
Re: how to change nagios default port
is it possible to to like below
default URL http://localhost/nagios
I am looking like http://localhost/8081
instead of giving /nagios I want to give port number to access nagios
default URL http://localhost/nagios
I am looking like http://localhost/8081
instead of giving /nagios I want to give port number to access nagios
Regards,
Harsha
Harsha
Re: how to change nagios default port
This should be possible, please search for the apache config posibilities.
Rob Hassing


Re: how to change nagios default port
Do you mean http://localhost:8081 or did you intend on http://localhost/8081?
What OS are you running? Is there a specific reason you'd like to change the port?
What OS are you running? Is there a specific reason you'd like to change the port?
Former Nagios Employee
-
harsha.s.aryan
- Posts: 52
- Joined: Fri Nov 13, 2015 9:05 am
Re: how to change nagios default port
I am look for http://localhost:8081 this and I am using Ubuntu 14
Regards,
Harsha
Harsha
Re: how to change nagios default port
I believe there are 3 places you will need to change (this is for a RHEL box - the directories may be somewhat different on Ubuntu) -
File - /etc/httpd/conf/httpd.conf
Look for Listen 80 change to Listen 8081
File - /usr/local/nagiosxi/html/config.inc.php
Look for $cfg['port_number'] = 80; change to $cfg['port_number'] = 8081;
Admin > System Config > Manage System Config
- Change Program URL and External URL (if you have it set) to include the port.
File - /etc/httpd/conf/httpd.conf
Look for Listen 80 change to Listen 8081
File - /usr/local/nagiosxi/html/config.inc.php
Look for $cfg['port_number'] = 80; change to $cfg['port_number'] = 8081;
Admin > System Config > Manage System Config
- Change Program URL and External URL (if you have it set) to include the port.
Former Nagios Employee
-
harsha.s.aryan
- Posts: 52
- Joined: Fri Nov 13, 2015 9:05 am