Time range for alert emails

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
mbeebe
Posts: 144
Joined: Thu Dec 20, 2018 5:12 pm

Re: Time range for alert emails

Post by mbeebe »

mbellerue wrote:So I was scratching my head trying to figure out how to get this to work, and I was coming at it from the perspective of going from Log Server to XI. But XI has a Log Server wizard that allows you to execute a query on Log Server. So you create your query, run the Log Server wizard, point it at the query, and set the notification time range. Would that suit your needs?
This is what we've tried before, but the drawback is that we can't include the message body of the LS alert in the NXI alert message. If we could get this information, then this solution would be perfect.

-- Mike
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Time range for alert emails

Post by mbellerue »

Dang, that's right. It only returns the number of returned rows from the query.

I found this post from a couple of months back, but the poster never came back to say if the last solution worked for them. Might be worth a shot.
https://support.nagios.com/forum/viewto ... 32#p297332

The only other option I can think of is creating a script that queries Elasticsearch, and then having that script return the last log alert message. NCPA could handle that script as an active or passive check. But actually coming up with the right script might be a little challenging.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
mbeebe
Posts: 144
Joined: Thu Dec 20, 2018 5:12 pm

Re: Time range for alert emails

Post by mbeebe »

mbellerue wrote:Dang, that's right. It only returns the number of returned rows from the query.

I found this post from a couple of months back, but the poster never came back to say if the last solution worked for them. Might be worth a shot.
https://support.nagios.com/forum/viewto ... 32#p297332

The only other option I can think of is creating a script that queries Elasticsearch, and then having that script return the last log alert message. NCPA could handle that script as an active or passive check. But actually coming up with the right script might be a little challenging.
I'll look into this and see what I can do with it.

Thanks,

-- Mike
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Time range for alert emails

Post by mbellerue »

Okay, we will keep this thread open and wait to hear back.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked