Including Nagios Log Server messages in Nagios xi alerts

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

Including Nagios Log Server messages in Nagios xi alerts

Post by mbeebe »

Hello,

Perhaps my Google-fu is weak, but I can't seem to find a way to perform what I believe to be a simple operation: include a Nagios Log Server message in a Nagios xi alert.

I am using check_xi_service_nagioslogserver to run a query against our Nagios Log Server. The query is simple: find a string of text in the Message field. If that string exists, fire the alert. The alert then sends an email out to the on-call person.

What I'd like to do is include the entire message in the email alert as the message contains the steps to fix the issue. Potentially compounding this task is the fact that the message will be multi-line.

Is there a way to do this?


-- Mike Beebe
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Including Nagios Log Server messages in Nagios xi alerts

Post by cdienger »

The check will only return the count and not the actual messages. If a sample of the log is desired then you'll need to setup an email alert on the NLS machine. The %last10alertlogs% and %last1alertlog% macros can be used in emails to include a sample.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
mbeebe
Posts: 144
Joined: Thu Dec 20, 2018 5:12 pm

Re: Including Nagios Log Server messages in Nagios xi alerts

Post by mbeebe »

Hello,

Thanks -- that was the answer I needed! Please feel free to close.

-- Mike Beebe
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Including Nagios Log Server messages in Nagios xi alerts

Post by scottwilkerson »

mbeebe wrote:Hello,

Thanks -- that was the answer I needed! Please feel free to close.

-- Mike Beebe
great!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart