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

Time range for alert emails

Post by mbeebe »

Hello,

I have an alert set up in NLS that sends email out when triggered. However, I only want this email sent out between the hours of 6:00am and 6:00pm.

In Nagios, this can be accomplished by defining a time range for alerts. Is there a similar function in NLS?


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

Re: Time range for alert emails

Post by mbellerue »

I don't think there is a way to set that up in LS alone. You could send the alerts to a passive check on Nagios XI via NRDP, and then Nagios XI could handle when to send out notifications. Would that solution work for you?
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:I don't think there is a way to set that up in LS alone. You could send the alerts to a passive check on Nagios XI via NRDP, and then Nagios XI could handle when to send out notifications. Would that solution work for you?
Would NLS be able to pass the message body of the alert to Nagios via NRPD? The only reason we're using NLS to send alerts is because we can't figure out how to include a NLS message body in a Nagios alert.

-- Mike Beebe
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Time range for alert emails

Post by lmiltchev »

Would NLS be able to pass the message body of the alert to Nagios via NRPD? The only reason we're using NLS to send alerts is because we can't figure out how to include a NLS message body in a Nagios alert.
Can you show us a "sanitized" message of your alert? You should be able to pass it via NRDP to the Nagios XI server.
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 »

Hello,

There's an example in this thread: https://support.nagios.com/forum/viewto ... 38&t=56745

Thanks,

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

Re: Time range for alert emails

Post by mbellerue »

It might be best to come back to this if adding the %lastalertlog% doesn't send the log message to Nagios XI. Because if it does send the log to XI, then that pretty much solves this thread. If it doesn't, we can come back and look at other potential solutions.
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:It might be best to come back to this if adding the %lastalertlog% doesn't send the log message to Nagios XI. Because if it does send the log to XI, then that pretty much solves this thread. If it doesn't, we can come back and look at other potential solutions.
Hello,

Would it be possible to pick this up again?

Thanks,

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

Re: Time range for alert emails

Post by mbellerue »

Absolutely. Just to recap, we were hoping that getting %lastalertlog% working would allow us to send the log message to Nagios XI. In doing so that would allow us to use XI for the more granular time checks. So what we're looking to do here is either get the last log message to Nagios XI, or to have better control over the time that alerts run in Log Server. Does that sound right?
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:Absolutely. Just to recap, we were hoping that getting %lastalertlog% working would allow us to send the log message to Nagios XI. In doing so that would allow us to use XI for the more granular time checks. So what we're looking to do here is either get the last log message to Nagios XI, or to have better control over the time that alerts run in Log Server. Does that sound right?
That's correct, thanks.

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

Re: Time range for alert emails

Post by mbellerue »

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