Page 1 of 2

Alert link

Posted: Tue May 12, 2015 11:49 pm
by pccwglobalit
we have setup alert on nagios log server. However, when we received the link
http://nls.example.com/index.php/alert/ ... jeqDDueKJQ and click, it will redirect the home.
how can we redirect the search we have made?
thanks

Re: Alert link

Posted: Wed May 13, 2015 9:18 am
by jolson
When you say that the search link brings you home, do you mean it brings you to the dashboard related to the alert in question? Or does it bring you to the actual 'Home' screen of NLS?

Re: Alert link

Posted: Wed May 13, 2015 9:23 am
by pccwglobalit
actual "home", no search result.

Re: Alert link

Posted: Wed May 13, 2015 9:27 am
by jolson
Are you using HTTPS or anything that might affect HTTP inbound traffic on Nagios Log Server? What happens if your replace the hostname 'nls.example.com' with the IP address of the server in question?

Re: Alert link

Posted: Thu May 14, 2015 10:17 am
by pccwglobalit
we have configured redirect all http to https

Re: Alert link

Posted: Thu May 14, 2015 10:20 am
by jolson
If you replace http://nls.example.com/index.php/alert/ ... jeqDDueKJQ with https://nls.example.com/index.php/alert/show/0cFR5PZ5RtOZjeqDDueKJQ does the link work as expected?

Re: Alert link

Posted: Thu May 14, 2015 10:39 am
by pccwglobalit

Re: Alert link

Posted: Thu May 14, 2015 10:45 am
by jolson
Can you show me your redirect rule please? I would like to reproduce this on my end.

Re: Alert link

Posted: Thu May 14, 2015 10:58 am
by pccwglobalit
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

Re: Alert link

Posted: Thu May 14, 2015 11:12 am
by jolson
I tested this and it appeared to work for me. What version of NLS are you running? There was a bug in R1.3 that was fixed in our latest release:
- Fixed bug where URL was incorrect on alerts if cluster_hostname was defined -SW
You can see the full release notes here: https://assets.nagios.com/downloads/nag ... HANGES.TXT

I recommend updating to R1.4 if you have not already. This should resolve your problem. Thanks!