Monitoring the Windows Event Log

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Re: Monitoring the Windows Event Log

Postby scottwilkerson » Mon Aug 05, 2019 8:44 am

In your nsclient.ini under the section
Code: Select all
[/settings/NRPE/server]


You need to set
Code: Select all
allow arguments = 1


then restart NSCP
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 15728
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Monitoring the Windows Event Log

Postby amitgupta19 » Mon Aug 05, 2019 8:58 am

Hi Scott,

This section did not exist in the nsclient.ini file.
[/settings/NRPE/server]

So i added it manually on top of the file and then restarted the service NSClient++ .


After this it is giving the following error:
[xxxxxx@cblnagios01 libexec]$ ./check_nrpe -H xxx.xxx.xxx.xxx -p 5666 -c check_eventlog -a "filter=id=4003"
No file specified try adding: file=Application
amitgupta19
 
Posts: 180
Joined: Fri Sep 08, 2017 5:53 am

Re: Monitoring the Windows Event Log

Postby scottwilkerson » Mon Aug 05, 2019 9:10 am

Lets try
Code: Select all
./check_nrpe -H xxx.xxx.xxx.xxx -p 5666 -c check_eventlog -a "file=Application filter=id=4003"
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 15728
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Monitoring the Windows Event Log

Postby amitgupta19 » Mon Aug 05, 2019 10:00 am

Please find here with the output

[xxxxx@cblnagios01 libexec]$ ./check_nrpe -H xxx.xxx.xxx.xxx -p 5666 -c check_eventlog -a "file=Application filter=id=7002"
Parsing failed:
[xxxxx@cblnagios01 libexec]$ ./check_nrpe -H xxx.xxx.xxx.xxx -p 5666 -c check_eventlog -a "file=System filter=id=7002"
Parsing failed:

Regards
Amit
amitgupta19
 
Posts: 180
Joined: Fri Sep 08, 2017 5:53 am

Re: Monitoring the Windows Event Log

Postby ssax » Mon Aug 05, 2019 4:10 pm

What does this show:

Code: Select all
./check_nrpe -H xxx.xxx.xxx.xxx -p 5666 -c check_eventlog -a "show-default 'file=Application' 'filter=id=4003'"
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
ssax
Dreams In Code
 
Posts: 4232
Joined: Wed Feb 11, 2015 12:54 pm

Re: Monitoring the Windows Event Log

Postby amitgupta19 » Tue Aug 06, 2019 4:53 am

Please find here with the output

[amgupta@cblnagios01 libexec]$ ./check_nrpe -H xxx.xxx.xxxx.xxx -p 5666 -c check_eventlog -a "show-default 'file=Application' 'filter=id=4003'"
Exception processing request: Request command contained illegal metachars!
amitgupta19
 
Posts: 180
Joined: Fri Sep 08, 2017 5:53 am

Re: Monitoring the Windows Event Log

Postby amitgupta19 » Wed Aug 07, 2019 9:45 am

Did anyone got a chance to look into this?
amitgupta19
 
Posts: 180
Joined: Fri Sep 08, 2017 5:53 am

Re: Monitoring the Windows Event Log

Postby amitgupta19 » Thu Aug 08, 2019 5:29 am

Can anyone guide me here?
amitgupta19
 
Posts: 180
Joined: Fri Sep 08, 2017 5:53 am

Re: Monitoring the Windows Event Log

Postby scottwilkerson » Thu Aug 08, 2019 8:43 am

What version of NSClient are you running?

Can you share your nsclient.ini ?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 15728
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Monitoring the Windows Event Log

Postby amitgupta19 » Thu Aug 08, 2019 9:37 am

Version of the nsclient

[amgupta@cblnagios01 libexec]$ ./check_nrpe -H 172.23.1.83
I (0,4,1,105 2014-04-28) seem to be doing fine...

nsclient.ini is attached here with
Attachments
nsclient.ini
NSCLIENT File
(8.62 KiB) Downloaded 8 times
amitgupta19
 
Posts: 180
Joined: Fri Sep 08, 2017 5:53 am

PreviousNext

Return to Nagios Core

Who is online

Users browsing this forum: Google [Bot], gsl_ops_practice and 25 guests