Monitoring error message

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
deek
Posts: 194
Joined: Fri Apr 26, 2019 2:01 am

Monitoring error message

Post 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
You do not have the required permissions to view the files attached to this post.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Monitoring error message

Post 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
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
deek
Posts: 194
Joined: Fri Apr 26, 2019 2:01 am

Re: Monitoring error message

Post by deek »

This is amazing .
Is there an option to check using nrpe ?
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Monitoring error message

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
deek
Posts: 194
Joined: Fri Apr 26, 2019 2:01 am

Re: Monitoring error message

Post by deek »

This helped a lot . We are good to close the ticket .
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Monitoring error message

Post by benjaminsmith »

This helped a lot . We are good to close the ticket .
Excellent.

We'll close this out, thank you for using Nagios.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked