Page 1 of 1

Link to query

Posted: Tue Apr 05, 2016 3:53 am
by WillemDH
Hello,

So I made a query which lists all nsca passive service check events in NLS, made an NRDP alert which sends a critical if more then 500 events are found.

Query:

Code: Select all

program:nsca AND message:"SERVICE CHECK"
Now it would be nice to be able to make a quick action in nagios XI, which could activate an URL which would open NLS with this specific query. Is this possible and if yes, how?

Grtz

Willem

Re: Link to query

Posted: Tue Apr 05, 2016 2:34 pm
by tmcdonald
Open up your LS dashboard, save your query and dash, then grab the URL. Mine looks like this:

http://192.168.1.100/nagioslogserver/da ... aZ3ilB_ivt

Though if you are looking to pass the query along dynamically as a URL option, I do not know off the top of my head how to do that.

Re: Link to query

Posted: Wed Apr 06, 2016 2:00 am
by WillemDH
Trevor,

Managed to make it work. My URL looks like this though:

https://nlsserver/nagioslogserver/dashb ... 1%5D%7D%7D

Thread can be closed.