alert url is 127.0.0.1

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
pccwglobalit
Posts: 105
Joined: Wed Mar 11, 2015 9:00 pm

alert url is 127.0.0.1

Post 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
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: alert url is 127.0.0.1

Post 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
You do not have the required permissions to view the files attached to this post.
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
pccwglobalit
Posts: 105
Joined: Wed Mar 11, 2015 9:00 pm

Re: alert url is 127.0.0.1

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: alert url is 127.0.0.1

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: alert url is 127.0.0.1

Post 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
pccwglobalit
Posts: 105
Joined: Wed Mar 11, 2015 9:00 pm

Re: alert url is 127.0.0.1

Post by pccwglobalit »

thanks. it was working.
we will change vhost.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: alert url is 127.0.0.1

Post by tmcdonald »

I'll be closing this thread now, but feel free to open another if you need anything in the future!
Former Nagios employee
Locked