Add chat options.
This commit is contained in:
parent
f397b657f1
commit
d265cca3bd
|
@ -0,0 +1,22 @@
|
|||
# Pandora FMS Mattermost Plugin
|
||||
A plugin for [Pandora FMS](https://github.com/pandorafms/pandorafms) to enable notifications to ChatOps solutions.
|
||||
|
||||
#Solutions covered
|
||||
1. Slack
|
||||
2. Mattermost
|
||||
|
||||
# Usage
|
||||
Assuming you are using Pandora FMS 6.0, the steps are:
|
||||
|
||||
1. Create the [Alert command](http://wiki.pandorafms.com/index.php?title=Pandora:Documentation_en:Alerts#The_Alert_Command_.28Pandora_Versions_5_and_above_only.29) in Pandora FMS console following the instructions of your solution inside this folder
|
||||
|
||||
2. Define the [Alert Action](http://wiki.pandorafms.com/index.php?title=Pandora:Documentation_en:Alerts#Alert_Actions_.28all_Pandora_FMS_versions_including_5.0.29) in Pandora FMS console following the instructions of your solution inside this folder
|
||||
|
||||
3. Assign the action to an existing module under Alerts -> [List of alerts](http://wiki.pandorafms.com/index.php?title=Pandora:Documentation_en:Alerts#Assigning_Alerts_from_an_Alert.27s_Sub_Menu):
|
||||

|
||||
|
||||
4. Optinionally, go to your agent and verify the alert has been created:
|
||||

|
||||
|
||||
When the alert triggers, the result would be something like this:
|
||||

|
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
Binary file not shown.
After Width: | Height: | Size: 38 KiB |
Binary file not shown.
After Width: | Height: | Size: 30 KiB |
|
@ -0,0 +1,20 @@
|
|||
# Pandora FMS Mattermost Plugin
|
||||
A plugin for [Pandora FMS](https://github.com/pandorafms/pandorafms) to enable notifications to Mattermost Open Source Chat.
|
||||
|
||||
# Usage
|
||||
Assuming you are using Pandora FMS 6.0, the steps are:
|
||||
|
||||
1. Create the [Alert command](http://wiki.pandorafms.com/index.php?title=Pandora:Documentation_en:Alerts#The_Alert_Command_.28Pandora_Versions_5_and_above_only.29) going to Alerts -> Commands and clicking on "Create". Then:
|
||||

|
||||
|
||||
2. Define the [Alert Action](http://wiki.pandorafms.com/index.php?title=Pandora:Documentation_en:Alerts#Alert_Actions_.28all_Pandora_FMS_versions_including_5.0.29) going to Alerts -> Actions and clicking on "Create". Then:
|
||||

|
||||
|
||||
3. Assign the action to an existing module under Alerts -> List of alerts:
|
||||

|
||||
|
||||
4. Optinionally, go to your agent and verify the alert has been created:
|
||||

|
||||
|
||||
When the alert triggers, the result would be something like this:
|
||||

|
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
# Integration script with Mattermost and Slack for sending messages from Pandora FMS
|
||||
# (c) 2016 Axel Amigo <axl@artica.es>
|
||||
|
||||
|
||||
# SET HERE YOUR DATA
|
||||
USERNAME=pandorafmsbot
|
||||
ICON="http://cdn9.staztic.com/app/a/3528/3528476/pandora-fms-1-l-78x78.png"
|
||||
URL="$2"
|
||||
|
||||
# Do not touch from there:
|
||||
|
||||
MSG="'payload={\"username\": \"$USERNAME\", \"text\": \"$1\", \"icon_url\": \"$ICON\"}'"
|
||||
COMMAND="curl -k -X POST --data-urlencode $MSG $URL"
|
||||
|
||||
eval $COMMAND
|
|
@ -0,0 +1,20 @@
|
|||
# Pandora FMS Mattermost Plugin
|
||||
A plugin for [Pandora FMS](https://github.com/pandorafms/pandorafms) to enable notifications to Mattermost Open Source Chat.
|
||||
|
||||
# Usage
|
||||
Assuming you are using Pandora FMS 6.0, the steps are:
|
||||
|
||||
1. Create the [Alert command](http://wiki.pandorafms.com/index.php?title=Pandora:Documentation_en:Alerts#The_Alert_Command_.28Pandora_Versions_5_and_above_only.29) going to Alerts -> Commands and clicking on "Create". Then:
|
||||

|
||||
|
||||
2. Define the [Alert Action](http://wiki.pandorafms.com/index.php?title=Pandora:Documentation_en:Alerts#Alert_Actions_.28all_Pandora_FMS_versions_including_5.0.29) going to Alerts -> Actions and clicking on "Create". Then:
|
||||

|
||||
|
||||
3. Assign the action to an existing module under Alerts -> List of alerts:
|
||||

|
||||
|
||||
4. Optinionally, go to your agent and verify the alert has been created:
|
||||

|
||||
|
||||
When the alert triggers, the result would be something like this:
|
||||

|
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
# Integration script with Mattermost and Slack for sending messages from Pandora FMS
|
||||
# (c) 2016 Axel Amigo <axl@artica.es>
|
||||
|
||||
|
||||
# SET HERE YOUR DATA
|
||||
USERNAME=pandorafmsbot
|
||||
ICON="http://cdn9.staztic.com/app/a/3528/3528476/pandora-fms-1-l-78x78.png"
|
||||
URL="$2"
|
||||
|
||||
# Do not touch from there:
|
||||
|
||||
MSG="'payload={\"username\": \"$USERNAME\", \"text\": \"$1\", \"icon_url\": \"$ICON\"}'"
|
||||
COMMAND="curl -k -X POST --data-urlencode $MSG $URL"
|
||||
|
||||
eval $COMMAND
|
Loading…
Reference in New Issue