Page 1 of 1
changing web server connection by ipaddr:port
Posted: Wed Sep 09, 2015 4:17 pm
by shubhamagarwal
I have nagios NRPE/daemon installed on my server and can see the data being updates on
http://localhost/nagios.
Can I chance this somewhere in the config files to a new ip address:port like
http://x.x.x.x:5000/nagios
This will allow me to collect data on a different machine (if I am listening on port 5000 on x.x.x.x) on the terminal instead of the local web interface.
If so, where can the ipaddress and port be changed. The exact version of nagios core i have is nagios-4.1.0rc2
Re: changing web server connection by ipaddr:port
Posted: Wed Sep 09, 2015 5:03 pm
by ssax
Are you just asking how to change the port that HTTPD listens on?
You should be able to edit /etc/httpd/conf/httpd.conf and change:
To:
Then restart httpd:
Re: changing web server connection by ipaddr:port
Posted: Wed Sep 09, 2015 6:14 pm
by shubhamagarwal
I mean to say this:
nagios chooses to send its data to localhost:80.
I guess the default is 80 as i have to open my browser and go to '
http://localhost/nagios' to see my data.
I want nagios to send the data to a new ip address and port. This way i don't have to use the web interface that comes with nagios
Re: changing web server connection by ipaddr:port
Posted: Thu Sep 10, 2015 9:16 am
by hsmith
shubhamagarwal wrote:I mean to say this:
nagios chooses to send its data to localhost:80.
I guess the default is 80 as i have to open my browser and go to '
http://localhost/nagios' to see my data.
I want nagios to send the data to a new ip address and port. This way i don't have to use the web interface that comes with nagios
We only support the interface that comes with Nagios. One option that you have is to use OCSP and OCHP to basically set up Nagios to do what you want it to when you get an alert. One of our employees did a good writeup here:
https://support.nagios.com/forum/viewto ... nd#p140693