Page 1 of 1
Monitoring error message
Posted: Fri Oct 01, 2021 8:56 am
by deek
Hi Team ,
Is there a way to monitor the error messages from the application log and alert if a particular error message pops up ?
Capture_eventlog_2.PNG
Re: Monitoring error message
Posted: Mon Oct 04, 2021 2:32 pm
by benjaminsmith
Hi Deek,
When you run the Windows Event Log Configuration Wizard, there's an option to setup log server checks based search/regex pattern.
event-log-regex.png
A sample command run from the CLI in Nagiso XI, would look like:
Code: Select all
/usr/local/nagios/libexec/check_ncpa.py -H 192.168.xx.xx -t 'mytoken' -P 5693 -M 'logs' -q 'name=Application,logged_after=60m,severity=WARNING,message=search-string-here' -c 5
Hope that helps and let us know if that is working for you.
--Benjamin
Re: Monitoring error message
Posted: Tue Oct 05, 2021 3:37 am
by deek
This is amazing .
Is there an option to check using nrpe ?
Re: Monitoring error message
Posted: Tue Oct 05, 2021 3:44 pm
by benjaminsmith
Hi
@deek,
Assuming you are using the NSClient agent on the remote host, and there's a windows event log included. Here's a link to the documentation on the module.
https://docs.nsclient.org/reference/win ... kEventLog/
Take a look at the forum post below for a sample command from the CLI.
https://support.nagios.com/forum/viewtopic.php?t=42127
--Benjamin
Re: Monitoring error message
Posted: Wed Oct 27, 2021 10:52 am
by deek
This helped a lot . We are good to close the ticket .
Re: Monitoring error message
Posted: Wed Oct 27, 2021 4:30 pm
by benjaminsmith
This helped a lot . We are good to close the ticket .
Excellent.
We'll close this out, thank you for using Nagios.