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
Including Nagios Log Server messages in Nagios xi alerts
-
- Posts: 144
- Joined: Thu Dec 20, 2018 5:12 pm
-
- Support Tech
- Posts: 5045
- Joined: Tue Feb 07, 2017 11:26 am
Re: Including Nagios Log Server messages in Nagios xi alerts
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.
-
- Posts: 144
- Joined: Thu Dec 20, 2018 5:12 pm
Re: Including Nagios Log Server messages in Nagios xi alerts
Hello,
Thanks -- that was the answer I needed! Please feel free to close.
-- Mike Beebe
Thanks -- that was the answer I needed! Please feel free to close.
-- Mike Beebe
-
- 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
great!mbeebe wrote:Hello,
Thanks -- that was the answer I needed! Please feel free to close.
-- Mike Beebe
Locking thread