Alert link

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

Alert link

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

Re: Alert link

Post 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?
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 link

Post by pccwglobalit »

actual "home", no search result.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Alert link

Post 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?
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 link

Post by pccwglobalit »

we have configured redirect all http to https
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Alert link

Post 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?
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 link

Post by pccwglobalit »

jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Alert link

Post by jolson »

Can you show me your redirect rule please? I would like to reproduce this on my end.
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 link

Post by pccwglobalit »

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Alert link

Post 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!
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.
Locked