Skip to main content

Pandora FMS configuration: creation of an alert command

First you must install the Slack connector CLI, which you can download from the Pandora FMS library. You must have the following utilities installed in the Pandora FMS server: python3 and python3-pip. With this last command you should install the Slack connector CLI requirements for Pandora FMS:

pip3 install -r requirements.txt

-t TOKEN -c CHANNEL -d DATA.

For example:

python3 pandora-slack-cli.py.py -t <webhook-url> -c <channel id/name> -d "Data=5, Agent=Test, Module=Ping"

Due to the flexibility of Pandora FMS, there are also additional parameters that allow, for example, the sending of graphs through the Pandora FMS external API.

image-1629793991364.png

Take the time to learn these requirements. To create an alert command go to the Pandora FMS Web Console and click on Alerts -> Commands -> Create.

image-1629794044918.png

Configure each of the eight fields required by the command; in the test-exec file that accompanies the Slack connector CLI you can obtain each of them. Pay attention to field number two, which must contain, in a hidden way, the token of the application created in Slack. Add the group that will be able to access the sending of alerts.

image-1629794085412.png

Click on the Create button to save the alert command.