Monitoring windows event viewer log.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Monitoring windows event viewer log.

Post by RIDS_I2MP »

Hi Team,

WE have a requirement to monitor the event viewer for errors.

Whenever a specific error is generated alert should be send to the required contact.

Is this possible using Nagios XI 2014R2.7.
Thanks & Regards,
I2MP Team.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Monitoring windows event viewer log.

Post by lmiltchev »

There are many ways of doing this. You will need to decide which one works the best for you (your environment/budget).

You could use NagEventLog with Nagios XI:
https://assets.nagios.com/downloads/nag ... entLog.pdf

You could also use the check_winevent plugin:
https://www.itefix.net/check_winevent

Probably a better solution would be to use real time event log monitoring with NSClient++ and Nagios XI:
https://www.medin.name/blog/2012/03/20/ ... -nsclient/
https://outsideit.net/real-time-eventlog-monitoring/

The best solution in my opinion would be to use the Nagios Log Server:
https://www.nagios.com/products/nagios-log-server/

Hope this helps.
Be sure to check out our Knowledgebase for helpful articles and solutions!
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: Monitoring windows event viewer log.

Post by RIDS_I2MP »

Hi Team,

I have opted the second option i.e.

You could also use the check_winevent plugin:
https://www.itefix.net/check_winevent

I have mentioned below command under [external scripts] section in NSC.ini file of remote host and placed the check_winevent.exe file in scripts folder:
"check_error_logs=scripts\check_winevent --log application --source "NagiosEventLog" --window "30 minutes" --type error --code 0"

I am trying to monitor the event viewer logs from my nagios host but I am receiving attached error message.

Kindly let us the solution to fix the issue.
You do not have the required permissions to view the files attached to this post.
Thanks & Regards,
I2MP Team.
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Monitoring windows event viewer log.

Post by bwallace »

This could be due to a missing component on the Windows machine. Go to event viewer and check the application event log for an entry with "sidebyside" or what ever corresponds to the error message you posted. There you should see what is missing or perhaps it will mention a conflict between components. If in any doubt, post the relevant entries from the application event log here.

For reference:
http://www.codeproject.com/Articles/436 ... -Incorrect
https://support.microsoft.com/en-us/kb/2525435
Be sure to check out the Knowledgebase for helpful articles and solutions!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Monitoring windows event viewer log.

Post by lmiltchev »

The check_winevent.exe is a 3rd party plugin. We are not very familiar with it. I would recommend asking you question on the itefix.net support forum as they may be able to resolve your issue a lot faster:
https://www.itefix.net/forums/user-forum

We can also test the plugin in house to see if we will be able to recreate the issue.
Probably a better solution would be to use real time event log monitoring with NSClient++ and Nagios XI:
https://www.medin.name/blog/2012/03/20/ ... -nsclient/
https://outsideit.net/real-time-eventlog-monitoring/
There is a reason why I recommended the use a NSClient++ - it is a more popular solution. You can get more help if you get stuck. Besides, with the check_winevent.exe, you will still need to use NSClient++ with check_nrpe... You will be better off using only one of the two programs. Otherwise, it is just one more thing to install on your Windows server.
Be sure to check out our Knowledgebase for helpful articles and solutions!
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: Monitoring windows event viewer log.

Post by RIDS_I2MP »

Hi team,

Please find the attachment regarding the side by side error.

Kindly let me know what needs to be installed or done to resolve this issue.
You do not have the required permissions to view the files attached to this post.
Thanks & Regards,
I2MP Team.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Monitoring windows event viewer log.

Post by rkennedy »

What architecture are you running on that machine, and what version of Windows?

Additionally, @WillemDH wrote a pretty good article about monitoring event logs on a windows system using NSClient++. You can find it here - https://outsideit.net/real-time-eventlog-monitoring/
Former Nagios Employee
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Monitoring windows event viewer log.

Post by lmiltchev »

When you downloaded the "check_winevent-1.3.zip", in addition to the "check_winevent.exe" file, the zip contained a few directories (bin, cpworkrt, dll, doc, and lib). Copy all of them to the NSClient++ scripts directory.

Note: You may already have a "lib" directory in the scripts folder. Don't overwrite the "original" lib! Just copy the "\path\to\check_winevent-1.3\lib\vrt" directory to "C:\Program Files\NSClient++\scripts\lib".

Test your check again. Let us know if this helped.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked