Hello community o7 !
I am struggling with how to correctly write logfile name, here’s the command I tried with :
bash-5.1$ /usr/lib/centreon/plugins//centreon_nsclient_restapi.pl
--plugin=apps::nsclient::restapi::plugin
--mode=query
--hostname='X.X.X.X'
--port='8443'
--proto='https'
--legacy-password='XXXX'
--ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE"
--timeout=60
--command=check_logfiles
--arg='--logfile="C:/Program Files/Centreon NSClient++/nsclient.log"
--tag=""
--criticalpattern=""
--warningpattern="" '
--debugI’ve tried with differents separators : /, \, //, \\, \/, /\ but everytime I get this error message :
Failed to execute check_logfiles: 2: The specified file cannot be found.
======> request send
GET https://X.X.X.X:8443/query/check_logfiles?--logfile%3D%22C%3A%2FProgram%20Files%2FCentreon%20NSClient%2B%2B%2Fnsclient.log%22%20--tag%3D%22%22%20--criticalpattern%3D%22%22%20--warningpattern%3D%22%22%20
[...]
{"header":{"source_id":""},"payload":[{"command":"check_logfiles","lines":[{"message":"Failed to execute check_logfiles: 2: The specified file cannot be found."}],"result":"UNKNOWN"}]}
Do you have any idea of what i did wrong ?
Thanks,
