Pushover
With this plugin you can interact with all the pushover messaging API options to send messages to devices. These options are: toker, user, message, attachment, device, html, priority, sound, timestamp, title, url, and url_title.
Introduction
Ver. 31-10-2022
With this plugin you can interact with all the pushover messaging API options to send messages to devices. These options are: toker, user, message, attachment, device, html, priority, sound, timestamp, title, url, and url_title.
Compatibility matrix
Systems where it has been tested
|
CentOS 7 / RHEL 8 / RockyLinux 8 |
Systems where it should work
|
Cualquier sistema linux |
Pre requisites
-
Have the Pandora FMS Data Server enabled
-
Have the Pandora FMS Plugin Server enabled
Configuration
Create plugin alert
To configure a plugin alert you must enter the command to execute the plugin and its parameters, for this you must create an alert command.
The parameters can be filled in below in the fields, each one referring to the macros used, and certain values can be hidden using the HIde option.
The next step is to create an alert action that will call the previously created command.
Example of message created by the alert in the application view
Parameters
Parameter | Description |
--token
|
your application's API token (required) |
--user | your user/group key (or that of your target user), visible when logging into our control panel; often referred to as USER_KEY in our documentation and code samples (required) |
--message | your message (required) |
--html | set 1 to activate HTML parsing |
--priority | a value of -2, -1, 0 (default), 1, or 2 |
--timestamp | a Unix timestamp of one hour to display instead of when our API received it |
--title | the title of your message, otherwise the name of your application will be used |
--url | a supplementary URL to display with your message |
--url_title | a title for the URL specified as the url parameter, otherwise only the URL is displayed |
--device | the name of one of your devices to send only to that device instead of all devices |
--attachment | an attached image to send with the message. You must put the path to the image, followed by the image name and the image format, separated by '|' , for example : '/home/alejandro/Documentos/pushover/icono.jpg|icono.jpg|jpeg'. |
--sound | the name of a supported sound to override its default sound choice |
Manual execution
./pandora_pushover --token <token> --user <user key> --message <message> [ --html < 1 for activate> ] [ --priority <number priority> ] [ --timestamp <timestamp> ] [ --title <title> ] [ --url <url> ] [ --url_title <url title> ] [ --device <device > ] [ --attachment <image> ] [ --sound <sound name> ]
View of messages in the app.