Page 1 of 1

Is there a way to get a list of all alerts and thresholds?

Posted: Thu Jan 28, 2016 8:49 pm
by Jklre
Is there a way to get a list of all alerts and thresholds? I'm looking for a quick query to get a list of them since I have around 3000 or so alerts.

Thank you,
Jeremy

Re: Is there a way to get a list of all alerts and threshold

Posted: Fri Jan 29, 2016 11:08 am
by hsmith
Even though the URL says it's pretty, it's not all that pretty :P

Code: Select all

http://<YOURIPORFQDN>/nagioslogserver/index.php/api/backend/nagioslogserver/alert/_search?pretty

Re: Is there a way to get a list of all alerts and threshold

Posted: Fri Jan 29, 2016 12:25 pm
by Jklre
hsmith wrote:Even though the URL says it's pretty, it's not all that pretty :P

Code: Select all

http://<YOURIPORFQDN>/nagioslogserver/index.php/api/backend/nagioslogserver/alert/_search?pretty

this is good but it looks like there is a limit on the size of the response I'm getting as its only loading a few of the alerts. is there a way to increase the size of the response? Thank you.

Re: Is there a way to get a list of all alerts and threshold

Posted: Fri Jan 29, 2016 12:35 pm
by tmcdonald
Not that I am aware of. What size response are you getting?

Re: Is there a way to get a list of all alerts and threshold

Posted: Fri Jan 29, 2016 12:42 pm
by hsmith
How about this?

http://<IP>/nagioslogserver/index.php/api/backend/nagioslogserver/alert/_search?pretty&size=99999

Re: Is there a way to get a list of all alerts and threshold

Posted: Fri Jan 29, 2016 6:04 pm
by Jklre
hsmith wrote:How about this?

http://<IP>/nagioslogserver/index.php/api/backend/nagioslogserver/alert/_search?pretty&size=99999
much better definitely gets me what I need.

Thank you!

Re: Is there a way to get a list of all alerts and threshold

Posted: Mon Feb 01, 2016 11:35 am
by jolson
Great! Is there anything else we can help you with?

On a sidenote, how have your alert firings been Jklre? Do they seem consistently fine since the update? I know you have a ton of them so I figured you'd be a good test case! ;)