Page 1 of 1

alert url is 127.0.0.1

Posted: Thu Apr 09, 2015 11:31 pm
by pccwglobalit
when i setup the alert, the link will become this
http://127.0.0.1/var/www/html/nagioslog ... vTzUIwHu7g

how can i change to my normal hostname and without /var/www/html
thanks

Re: alert url is 127.0.0.1

Posted: Fri Apr 10, 2015 9:27 am
by jolson
Please see attached picture for the relevant setting. Your alerts will refer to 127.0.0.1 until the setting below is changed. Thank you!
Capture.PNG

Re: alert url is 127.0.0.1

Posted: Tue May 05, 2015 9:33 am
by pccwglobalit
thanks. i will change to hostname and try.
however, i see the link include /var/www/html which is should not display in url.
also, can we do the redirect from http to https? we need redirect in apache ourself?
thanks again.

Re: alert url is 127.0.0.1

Posted: Tue May 05, 2015 2:29 pm
by abrist
pccwglobalit wrote:can we do the redirect from http to https? we need redirect in apache ourself?
Yes, you can implement ssl by configuring the apache vhost files. You can add a permanent redirect if you want to force ssl as well.

Re: alert url is 127.0.0.1

Posted: Tue May 05, 2015 2:42 pm
by ssax
Let us know if the hostname change works for you.

What version of Log Server are you running? You can grab it from the very bottom left of your page.

You can enable SSL on Log Servers, you will have to manually add the rewrite rule in your /etc/httpd/conf/httpd.conf

Code: Select all

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
You can use this as your guide: http://assets.nagios.com/downloads/nagi ... alyzer.pdf

Re: alert url is 127.0.0.1

Posted: Wed May 06, 2015 7:52 am
by pccwglobalit
thanks. it was working.
we will change vhost.

Re: alert url is 127.0.0.1

Posted: Wed May 06, 2015 8:58 am
by tmcdonald
I'll be closing this thread now, but feel free to open another if you need anything in the future!