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
Alert link
Re: Alert link
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?
-
pccwglobalit
- Posts: 105
- Joined: Wed Mar 11, 2015 9:00 pm
Re: Alert link
actual "home", no search result.
Re: Alert link
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?
-
pccwglobalit
- Posts: 105
- Joined: Wed Mar 11, 2015 9:00 pm
Re: Alert link
we have configured redirect all http to https
Re: Alert link
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?
-
pccwglobalit
- Posts: 105
- Joined: Wed Mar 11, 2015 9:00 pm
Re: Alert link
Can you show me your redirect rule please? I would like to reproduce this on my end.
-
pccwglobalit
- Posts: 105
- Joined: Wed Mar 11, 2015 9:00 pm
Re: Alert link
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
Re: Alert link
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:
I recommend updating to R1.4 if you have not already. This should resolve your problem. Thanks!
You can see the full release notes here: https://assets.nagios.com/downloads/nag ... HANGES.TXT- Fixed bug where URL was incorrect on alerts if cluster_hostname was defined -SW
I recommend updating to R1.4 if you have not already. This should resolve your problem. Thanks!