Skip to main content

Pandora FMS configuration: creation of an alert command

Open a terminal window and access the Pandora FMS server. Download (and unzip) from the Pandora FMS library the Google Chat connector CLI in the following path:

/usr/share/pandora_server/util/pandora-gchat

Or in a location that Pandora FMS server can access. You should have installed python3 (with the modules argparse, requests and json) and python3-pip to be able to use the pandora-gchat-cli.py program. Once you have installed both, with the pip3 command you must install the requirements or dependencies (minimum versions) with the following instruction:

pip3 install -r requirements.txt

In the file test-exec.txt you will find an example that you can reuse to configure the alert command. It is recommended that from the same terminal window you send a basic test message to the chat room, for example:

image-1629798633876.png

Messages can be further elaborated by additional parameters, compare with the following example:

image-1629798656767.pngGo to the Pandora FMS Web Console and click on Alerts -> Commands -> Create.

image-1629798722244.png

With the help of the text that is in the file test-exec.txt complete the following fields, pay attention in the second field where you will copy the link identifier obtained in the previous page, make sure to mark its content as hidden in Pandora FMS:

image-1629798750913.png

Click on the Create button to save the alert command.