Search found 16 matches

by craigtho
Wed Sep 18, 2019 8:00 am
Forum: Open Source Nagios Projects
Topic: Check_nrpe on Windows Host - CheckEventLog
Replies: 5
Views: 3082

Re: Check_nrpe on Windows Host - CheckEventLog

Sadly, a Nagios Log server is already out of the budget for my environment (or else id be using Nagios XI instead of Core)

What about the check_nrpe built in CheckEventLog system? Is there an example syntax for monitoring this log using that?
by craigtho
Wed Sep 18, 2019 7:34 am
Forum: Open Source Nagios Projects
Topic: Check_nrpe on Windows Host - CheckEventLog
Replies: 5
Views: 3082

Re: Check_nrpe on Windows Host - CheckEventLog

Okay so root@glamon2:/usr/local/nagios/libexec# ./check_wmi_eventid.sh -H 192.168.60.41 -u mydomain/myusername -p mypassword -l 'Microsoft-Windows-Windows Defender%4Operational' -e 2000 -w 1 -c 3 -t1 -m60000 Select EventCode,EventIdentifier,EventType,SourceName from Win32_NTLogEvent where ( Logfile ...
by craigtho
Wed Sep 18, 2019 6:34 am
Forum: Open Source Nagios Projects
Topic: Check_nrpe on Windows Host - CheckEventLog
Replies: 5
Views: 3082

Check_nrpe on Windows Host - CheckEventLog

Hi, So with my check_nrpe now working, I am trying to check my event log for a specific event for Windows Defender. I have tried 2 possible ways and both aren't meeting my demands. Firstly, I tried a custom plugin for nagions - check_wmi_eventid.sh. This was done purely because I was aware of it bef...
by craigtho
Tue Sep 17, 2019 7:47 am
Forum: Open Source Nagios Projects
Topic: Can't get check_nrpe to work on Windows host
Replies: 18
Views: 6197

Re: Can't get check_nrpe to work on Windows host

Final Update: My command parameter was wrong: root@glamon2:/usr/local/nagios/libexec# ./check_nrpe -H 192.168.60.41 -n -c CheckCPU -a warn=80 crit=90 time=20m time=10s time=4 OK CPU Load ok.|'20m'=2%;80;90 '10s'=2%;80;90 '4'=7%;80;90 I think that means case is closed? Unless anything else with the ....
by craigtho
Tue Sep 17, 2019 7:35 am
Forum: Open Source Nagios Projects
Topic: Can't get check_nrpe to work on Windows host
Replies: 18
Views: 6197

Re: Can't get check_nrpe to work on Windows host

Update: Possible Fix NSClient.ini here: nsclient.ini I changed ssl options = & verify mode = none and then on the Nagios server: root@glamon2:/usr/local/nagios/libexec# ./check_nrpe -H 192.168.60.41 -n I (0,4,1,73 2012-12-17) seem to be doing fine... However: root@glamon2:/usr/local/nagios/libex...
by craigtho
Tue Sep 17, 2019 6:52 am
Forum: Open Source Nagios Projects
Topic: Can't get check_nrpe to work on Windows host
Replies: 18
Views: 6197

Re: Can't get check_nrpe to work on Windows host

Any more help would be greatly appreciated.

I've tried changing some settings and hotswapping Scott's settings with my own and continually get the same errors. I've reverted back to my last post and still getting the same errors.
by craigtho
Mon Sep 16, 2019 4:51 pm
Forum: Open Source Nagios Projects
Topic: Can't get check_nrpe to work on Windows host
Replies: 18
Views: 6197

Re: Can't get check_nrpe to work on Windows host

Sadly, just the same response:

Code: Select all

root@glamon2:/usr/local/nagios/libexec# ./check_nrpe -H 192.168.60.41 -p 5666 -n -2
CHECK_NRPE: Receive header underflow - only 0 bytes received (4 expected).
by craigtho
Mon Sep 16, 2019 4:44 pm
Forum: Open Source Nagios Projects
Topic: Can't get check_nrpe to work on Windows host
Replies: 18
Views: 6197

Re: Can't get check_nrpe to work on Windows host

Okay, thank you for your help by the way. So I reverted that change, restarted NSClient++ and ran: root@glamon2:/usr/local/nagios/libexec# ./check_nrpe -H 192.168.60.41 -p 5666 -n CHECK_NRPE: Receive header underflow - only 0 bytes received (4 expected). At least we are getting a new error now. But ...
by craigtho
Mon Sep 16, 2019 4:12 pm
Forum: Open Source Nagios Projects
Topic: Can't get check_nrpe to work on Windows host
Replies: 18
Views: 6197

Re: Can't get check_nrpe to work on Windows host

Updated as requested - I did comment out your example password as my server isn't configured to use one: nsclient.ini On Nagios Server: root@glamon2:/usr/local/nagios/libexec# ./check_nrpe -H 192.168.60.41 -p 5666 CHECK_NRPE: (ssl_err != 5) Error - Could not complete SSL handshake with 192.168.60.41...
by craigtho
Mon Sep 16, 2019 3:36 pm
Forum: Open Source Nagios Projects
Topic: Can't get check_nrpe to work on Windows host
Replies: 18
Views: 6197

Re: Can't get check_nrpe to work on Windows host

Changes were made to the nsclient.ini file as seen in here: nsclient.ini Then on Nagios Server (running an nmap just for demonstration purposes): root@glamon2:/usr/local/nagios/libexec# ./check_nrpe -H 192.168.60.41 -p 5666 -t 30 CHECK_NRPE STATE CRITICAL: Socket timeout after 30 seconds. root@glamo...