Giter VIP home page Giter VIP logo

prtg-notifications-discord's Introduction

prtg-notifications-discord

Discord notifications from Paessler's PRTG monitoring.

 ___ ___ _____ ___
| _ \ _ \_   _/ __|
|  _/   / | || (_ |
|_| |_|_\ |_| \___|
    NETWORK MONITOR
-------------------
Description: This notification script will send to your Discord Channel  
Parameters:
   [string]$sensor        - the name of the sensor
   [string]$sensorid      - the id of the sensor
   [string]$status        - the status 
   [string]$message       - the message of the sensor 
   [string]$since         - the time since the state is like this
   [string]$lastup        - the time the sensor was up last
   [string]$device        - the device of the sensor
   [string]$sensorURL     - the sensor URL so you can access it directly
   [string]$deviceURL     - the device URL 
   [string]$serviceURL    - the service URL

Requirements
------------------
- [IMPORTANT] PRTG Sample powershell scripts must work - Guide for installing PowerShell based sensors: https://kb.paessler.com/users/my_answers/71356
- A webhook for your channel (see https://support.discordapp.com/hc/en-us/articles/228383668-Intro-to-Webhooks)
- This script located in \Notifications\EXE\ eg C:\Program Files (x86)\PRTG Network Monitor\Notifications\EXE
- Create a notification template
    -Sample sensor list: -sensor '%sensor' -sensorID '%sensorid' -status '%status' -message '%message' -since '%since' -lastup '%lastup' -device '%device' -sensorURL '%linksensor' -deviceURL '%linkdevice' -serviceURL '%serviceurl'

Modification Resources
The script I adapted this from (MSTeams Notifications) Full installation guide can be found here: https://kb.paessler.com/en/topic/72306#
Webhook documentation: https://discordapp.com/developers/docs/resources/webhook#execute-webhook
Example used to create sample payload: https://birdie0.github.io/discord-webhooks-guide/discord_webhook.html
Other inputs this script can recieve: https://kb.paessler.com/en/topic/373-what-placeholders-can-i-use-with-prtg
Note, In order for the script to function you will need to replace all instances of: REPLACE ME

Version History 
------------------
Version  Date        Notes
1.0      9/06/2019  Initial Release

------------------
(c) 2019 Michael Metully

prtg-notifications-discord's People

Contributors

mmetully avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.