I am trying to use the check_logfiles command on a windows machine. Therefore I downloaded and unpacked it.
After installing perl and running the winconfig.pl I am able to execute the command from the commandline.
But when I try to use it in icinga, i get the error message:
"Command D:\icinga2/sbin/check_logfiles-3.9/plugin-scripts/check_logfiles.pl --criticalpattern ERROR --logfile D:\logs\error.log --tag error-Log failed to execute: 2, “The system cannot find the file specified.”
Does Icinga mean the file for the command or the logfile?
I tried to change the Path into a windows path using “” instead of “/”, but it didn’t work.
Is it even possible to use the perl script with the icinga agent wich is installed on the windows machine, or do I have to install the NSClient++?
Thanks in advace!