Use in Pandora FMS

The Telegram® plugin is fully integrated into Pandora FMS version 800.

The default script is located at: /usr/share/pandora_server/util/pandora-telegram-cli.py. However, any location can be used as long as the PFMS Server has access to it.

You must ensure that all dependencies are installed, check this, run:

python3 pandora-telegram-cli.py

You will get a response similar to this:

image-1629719592284.png

If there is an error, the dependencies must be reinstalled:

pip3 install -r requirements.txt

Telegram alert command

To verify the installation of its command, use the Management → Alerts→Commands menu and enter the search key in Filter:

pfms-telegram-integration-140.png

This command does not allow editing or deletion, so it is considered read-only and is used by the system. Therefore, you must go to the general settings to save the token obtained in the previous topic.

Managements → Settings → System settings → General setup → Alerts configuration menu:

pfms-telegram-integration-142.png

The field displays the token in plain text. Take the necessary precautions to prevent third parties from viewing it.

When finished, click the Update button to save the Telegram token in the database.

Telegram action command

Go to the Management→Alerts→ Actions menu and in Filter select Pandora Telegram in the Command field. The alert actions that use the Pandora Telegram command will be displayed:

pfms-telegram-integration-144.png

You may:

For any of the three cases, the Chat ID must always be configured, obtained as indicated in the previous topic.

Whether editing, copying and editing, or creating, the configuration process is similar:

pfms-telegram-integration-146.png

Click Create. Once you have created this alert action, it can be included in a policya template, or Module.

If additional information is required, please visit the documentation for the plugin.


Revision #2
Created 23 August 2021 11:52:51 by alvaro.tejerina
Updated 23 January 2026 15:49:48 by Jimmy Olano