error while defining arguments for ncpa in NagiosXI
Posted: Fri Sep 13, 2019 7:00 am
Hi All,
I have installed NCPA agent in linux sever and I am trying to use check_logfile plugin for searching the particular pattern in log file
check_logifle plugin I have copied from : https://labs.consol.de/nagios/check_log ... l#download and placed in the plugin folder of ncpa in Linux server
In the destination server the below command is giving the exact output I am looking for:
While configuring in NagiosXI, I have used the below command
But it is giving me the error:
Please help in defining the exact command in NagiosXI to call the script and execute .
Below is the entry in ncpa.cfg for .sh files:[/code]
I have installed NCPA agent in linux sever and I am trying to use check_logfile plugin for searching the particular pattern in log file
check_logifle plugin I have copied from : https://labs.consol.de/nagios/check_log ... l#download and placed in the plugin folder of ncpa in Linux server
In the destination server the below command is giving the exact output I am looking for:
Code: Select all
./check_logfiles.sh --logfile=/tmp/test/test1.txt --criticalpattern='hello world'Code: Select all
output : no eror found ….etc.,Code: Select all
/usr/local/nagios/libexec/check_ncpa.py -H <host> -P 5693 -t 'token' -M /plugin/check_logfiles.sh -a " --logfile=/tmp/test/test1.txt --criticalpattern='hello world' "Code: Select all
"returncode": 3,
"stdout": "Option logfile requires an argument Below is the entry in ncpa.cfg for .sh files:
Code: Select all
[code][plugin directives]
plugin_path = plugins/
.sh = /bin/sh $plugin_name $plugin_args