Hi Guys, I have a pandora fms Server 7.0 environment installed on Windows Server, and i want integrate the alerts with slack, the following link explains the procedure. https://pandorafms.com/blog/integrating-slack-with-pandora-fms/ However, i have a problem with the script to configurate in the alerts command sections, in the example is: root/slack.sh "_field1_" But my Pandora server is installed on windows, i created a new versión of the script for batch: slack.bat
curl -k -X POST -H "Content-type: application/json" --data "{"username": "pandorafmsbot", "text": "%~1", "icon_url": "http://cdn9.staztic.com/app/a/3528/3528476/pandora-fms-1-l-78x78.png"}" https://hooks.slack.com/services/TF1MWK4H2/ZZZZZZZZZ/b0VKs3GM7lNNNNNNNNNNNNNN
echo %date% %time% >> C:WindowsTempslacklog.txt
The script works from tests by command line, but it does not work in Pandora FMS ( new alert from command sections) with the following configurations : slack.bat "_field1_" or cmd.exe slack.bat "_field1_" or cmd.exe /c slack.bat "_field1_" or C:Program FilesPandoraFMSPandora_Serverbinslack.bat And none of the option works, do you have any idea what may be missing?. I am monitoring the execution of the .bat script from the server and I know that it is not invoked from Pandora. Note: Put the script slack.bat in the folder "C:Program FilesPandoraFMSPandora_Serverbin", this path is part of the windows environment variable $PATH Regards,
[
](//pandorafms.com/community/media/forum/13660/30357=3285-Capturapandoraslack.PNG)
