I haven't been able to recreate the issue. I tried running the plugin against a simple fake log:
Code: Select all
line 1
line 2
line 3: ERROR
line 4: ERROR
line 5: ERROR
NCPA and check_log3.exe plugin worked as expected. On the first run:
example-01.jpg
On the second run:
Code: Select all
{
"returncode": 0,
"stdout": "OK: Found 0 lines (limit=1/1): No matches found.|lines=0"
}
Can you run your check from the command line with increased verbosity, and show the output?
Code: Select all
./check_ncpa.py -H SERVERNAME -t TOKEN-M 'plugins/check_log3.exe' -q 'args=-l LOGFILE,args=-s TEMPFILE,args=-p "CONDITIONS",args=-w 1,args=-c 1' -v
What is the NCPA version that you are currently using?
Code: Select all
./check_ncpa.py -H SERVERNAME -t 'TOKEN' -M 'system/agent_version'
What is the version of the "check_log3.exe" plugin?
Code: Select all
/check_ncpa.py -H SERVERNAME -t 'TOKEN' -M 'plugins/check_log3.exe' -q 'args=-v'
Haven you made any changes on the server, prior to noticing the issue? Have you looked into the ncpa_listener.log for clues?
You do not have the required permissions to view the files attached to this post.