Code: Select all
/usr/local/nagios/libexec/check_nrpe -H [HOST] -p 5666 -c check_log3 -t 30 -a --no-timeout -a -p "unable" -l "D:/alert_enetvae.log" -a -c 1Code: Select all
/usr/local/nagios/libexec/check_nrpe -H [HOST] -p 5666 -c check_log3 -t 30 -a --no-timeout -a -p "unable" -l "D:/alert_enetvae.log" -a -c 1Code: Select all
OUTPUT: Cannot read $ARG2$Code: Select all
/usr/local/nagios/libexec/check_nrpe -H [HOST] -p 5666 -c check_log3 -t 30 -a --no-timeout -p "unable" -l "D:/alert_enetvae.log" -c 1Code: Select all
check_log3 = E:/strawberry\perl\bin\perl.exe scripts\check_log3.pl -p "$ARG1$" -l "$ARG2$" -c "$ARG3$"Code: Select all
OUTPUT: Cannot read c:/alert_inetvaes.log -c 1Code: Select all
[/settings/default]
allowed hosts = 192.168.x.x/24
password = nsclient
[/modules]
NSClientServer = 1
CheckSystem = 1
CheckDisk = 1
NRPEServer = 1
CheckExternalScripts=enabled
[/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 teststring" "-l C:\testlog" "-c 1" --no-timeoutCode: Select all
nscp.exe testCode: Select all
/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'=0Code: Select all
$USER1$/check_nrpe -H $HOSTADDRESS$ -p 5666 -c check_log3 -t 100 -a $ARG1$ $ARG2$ $ARG3$
ARG1 = "unable"
ARG2 = "C:/table.log"
ARG3 = 1
Code: Select all
[/settings/external scripts/scripts]
default =
check_log3 = E:/strawberry\perl\bin\perl.exe scripts\check_log3.pl -p $ARG1$ -l $ARG2$ -c $ARG3$ --no-timeout