Check_log3.exe Windoes setup
Posted: Fri May 22, 2015 10:51 am
On the Windows side, I've tested this using check_log3.exe instead of check_log3.pl. Check_log3.exe can be downloaded here: http://sourceforge.net/projects/pma-oss ... s-plugins/
You will need to have NSClient running on your Windows Servers. You can download NSClient here: http://www.nsclient.org/download/
Once downloaded, you'll need to adjust nsclient.ini - I used the following configuration:
[/modules]
NSClientServer = 1
CheckSystem = 1
CheckDisk = 1
NRPEServer = 1
[/settings/NRPE/server]
use ssl = 1
payload length = 1024
allow nasty characters = false
allowed ciphers = ADH
ssl = 1
allow arguments = 1
insecure = 1
[/settings/external scripts/scripts]
check_log3 = scripts\check_log3.exe "-p somestring" "-l C:\testlog" "-c 1" --no-timeout
Then restart NSclient on the windows box with an administrative cmd prompt:
CODE: SELECT ALL
net stop nscp
net start nscp
Once it's restarted, you can call the Windows machine in much the same way you'd call a linux box:
CODE: SELECT ALL
[root@localhost ~]# /usr/local/nagios/libexec/check_nrpe -H x.x.x.x -c check_log3
OK: Found 0 lines (limit=1/1): No matches found.|'lines'=0
I have tried this and get the error UNKNOWN: No handler for that command
You will need to have NSClient running on your Windows Servers. You can download NSClient here: http://www.nsclient.org/download/
Once downloaded, you'll need to adjust nsclient.ini - I used the following configuration:
[/modules]
NSClientServer = 1
CheckSystem = 1
CheckDisk = 1
NRPEServer = 1
[/settings/NRPE/server]
use ssl = 1
payload length = 1024
allow nasty characters = false
allowed ciphers = ADH
ssl = 1
allow arguments = 1
insecure = 1
[/settings/external scripts/scripts]
check_log3 = scripts\check_log3.exe "-p somestring" "-l C:\testlog" "-c 1" --no-timeout
Then restart NSclient on the windows box with an administrative cmd prompt:
CODE: SELECT ALL
net stop nscp
net start nscp
Once it's restarted, you can call the Windows machine in much the same way you'd call a linux box:
CODE: SELECT ALL
[root@localhost ~]# /usr/local/nagios/libexec/check_nrpe -H x.x.x.x -c check_log3
OK: Found 0 lines (limit=1/1): No matches found.|'lines'=0
I have tried this and get the error UNKNOWN: No handler for that command