Create a alert for the log servers stops receiving logs.

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
anish
Posts: 161
Joined: Tue Jul 19, 2016 5:29 am

Create a alert for the log servers stops receiving logs.

Post by anish »

Hi

I would like to create a alert in Nagios Log server if log server doesn't receive logs from a particular resource suddenly .How to configure the alert for my requirement?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Create a alert for the log servers stops receiving logs.

Post by scottwilkerson »

when you go to create the alert, to alert on nothing being found place the following in the Thresholds

Code: Select all

1:
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
anish
Posts: 161
Joined: Tue Jul 19, 2016 5:29 am

Re: Create a alert for the log servers stops receiving logs.

Post by anish »

Do I have to mention anything at Alert Name like log resource name ?

Please check the snap shot attached
You do not have the required permissions to view the files attached to this post.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Create a alert for the log servers stops receiving logs.

Post by mcapra »

The alert name is for reference only. You can put whatever in there, but the "Query" you use should be one that matches all results. Something like a query with a generic * search should work.
Former Nagios employee
https://www.mcapra.com/
anish
Posts: 161
Joined: Tue Jul 19, 2016 5:29 am

Re: Create a alert for the log servers stops receiving logs.

Post by anish »

Hi ,

For example i need a alert to be created for the log message contains "The host "157.96.177.86:1514" has become unreachable. Remote logging to this host has stopped"

In the alert i need the details like Log source name, message,Program. Please check the snap shot attached .

I need alert for each log source separately. Is that possible .
You do not have the required permissions to view the files attached to this post.
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Create a alert for the log servers stops receiving logs.

Post by avandemore »

Currently the most flexible way to send alerts is with the script method.

Then you can pass the data via argument to the script which can act on it appropriately. If you just did a query on a partial match eg "has become unreachable. Remote logging to this host has stopped" an alert can be made from it.

Does this answer your question?
Previous Nagios employee
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Create a alert for the log servers stops receiving logs.

Post by tmcdonald »

Just checking in since we have not heard from you in a while. Did @avandemore's post clear things up or has the issue otherwise been resolved?
Former Nagios employee
anish
Posts: 161
Joined: Tue Jul 19, 2016 5:29 am

Re: Create a alert for the log servers stops receiving logs.

Post by anish »

We are still working on queries as we are not getting correct out put from Nagios
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Create a alert for the log servers stops receiving logs.

Post by cdienger »

Thanks for the update. Let us know if there is anything we can help with.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked