NLS and XI

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
blariv
Posts: 190
Joined: Wed Sep 26, 2012 11:55 am

NLS and XI

Post by blariv »

hi,

i'm trying to figure out how generate an alert from log server w/ the actual message, not just the count of warning or critical events. I see that it is available sending it through nagios reactor then to nagiosxi but unsure how to set that piece up. Is there any information on how to build the workflow for this?

thanks,

brian
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: NLS and XI

Post by jolson »

What message are you looking for exactly? Currently the only messages that are sent are the 'entries found' messages - the most full messages that are capable are sent from NLS directly via email.

A changeable mail template is definitely on the roadmap - but it's certainly a few releases out at least.

One thing I want to mention is the XI Wizard called 'Nagios Log Server' - which allows very simple setup of monitoring your queries. I'd recommend giving that a shot if you have not already!
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
blariv
Posts: 190
Joined: Wed Sep 26, 2012 11:55 am

Re: NLS and XI

Post by blariv »

I have not added that wizard yet, but I will now.

however I see that if you send from nls to reactor then you get more information. I only see that when I select the alert method as reactor chain.


Alerts will automatically send these context variables:
count - The total # of events
status - The status (ok, warning, critical)
output - The output from the alert
lastrun - The timestamp of the last run
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: NLS and XI

Post by jolson »

I am currently doing some testing regarding those macros - I will get back to you soon. I am currently under the impression that the 'output' is already included in the alert emails generated by NLS, but I would love to be proven wrong here. I will report back soon with my results.
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: NLS and XI

Post by jolson »

NLS reported the following variables to reactor:

Code: Select all

count:
    10
status:
    critical
output:
    CRITICAL: 10 matching entries found |logs=10;1;1
lastrun:
    1431021353
__reactor__:
remote_addr: x.x.x.x
file.png
Unfortunately this is not likely the information you're looking for.
You do not have the required permissions to view the files attached to this post.
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
blariv
Posts: 190
Joined: Wed Sep 26, 2012 11:55 am

Re: NLS and XI

Post by blariv »

no its ok, i can wait till there is more documentation on the subject. thanks
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: NLS and XI

Post by jolson »

No problem - if you're using XI, I definitely recommend the monitoring wizard for Nagios Log Server, as I've found it to be rock solid. Is there anything else I can help you with here?
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
blariv
Posts: 190
Joined: Wed Sep 26, 2012 11:55 am

Re: NLS and XI

Post by blariv »

nope, i'm all set. appreciate the help
Locked