Hi lcourcelle,
Plugins are a feature of Pandora FMS
Linux agents, they do not work under Windows. But there is a new module called module_regexp that searches a log file for matches of a given regular expression. You can compile the 3.0 Pandora FMS agent from trunk and try it or wait for the release.
[cite]Posted By: lcourcelle[/cite][p]I was able to call a bat file that shows the last lines of a log file.
I think the problem came from the use of the "set" command, seems that pandora agent doesn't like the "set variable < file"
I replaced the reading of the file by this command :
for /f %%i in (c:\file.txt) do set prev=%%i
echo %prev%[/p][p]So how's the bat file looks like :
@echo off
REM LogMon fichier fichiertemp
for /f %%i in (%2) do set prev=%%i
wc -l %1 | tr -s " " ";" |cut -f2 -d; > %2
for /f %%i in (%2) do set actu=%%i
expr %actu% - %prev% > %2.comp
for /f %%i in (%2.comp) do set diff=%%i
tail -%diff% %1[/p][p]Still, it's not that cute...[/p][p]Any idea why module_plugin grep_log doesn't return anything ?[/p][p]thanks ![/p][p]Laurent[/p]