GithubHelp home page GithubHelp logo

mcilley / asterisk-zabbix-phone-escalation Goto Github PK

View Code? Open in Web Editor NEW
8.0 4.0 4.0 60 KB

Zabbix Alert Script/Asterisk Agi script for generating phone escallations using Text to Speech

Go 100.00%

asterisk-zabbix-phone-escalation's Introduction

asterisk-zabbix-phone-escalation

Zabbix Alert Script/Asterisk Agi script for generating phone escallations-(via call files)/oncall rotations using https://github.com/mcilley/Asterisk-TTS & https://github.com/mcilley/zabbix-ack-event

Zabbix Action Configuration:

Alt text

Generated email of oncall rotation (flag --emailsched=true):

Email generated with: https://github.com/matcornic/hermes Alt text

Excerpt from example extensions.conf for asterisk

[outgoing-notify]
exten => s,1,Answer()
 exten => s,n,NoOp()
 exten => s,n,WaitForSilence(1500)
 ;;set timeout 
 exten => s,n,Set(TIMEOUT(digit)=5)
 exten => s,n,agi(ttsGoogle.agi,"Hello ${NAME} You are being paged for the following alert:")
 exten => s,n,agi(ttsGoogle.agi," ${MESSAGE} ")
 ;;Wait for response:
 exten => s,n,Set(COUNT=1)
 exten => s,n,Set(RESPOND=0)
 exten => s,n(start),agi(ttsGoogle.agi,"Please Press 1 to Accept and Acknowlege this alert, Press 2 to Escalate this issue")
 exten => s,n,Set(COUNT=${INC(COUNT)})
 exten => s,n,WaitExten()
 
 ;;PLayback the name of the digit and ack alert in zabbix
 exten => 1,1,Set(RESPOND=1)
 exten => 1,n,agi(ackEvents.agi,"--name=${NAME}","--triggerId=${ALERTID}")
 exten => 1,n,agi(ttsGoogle.agi,"You have Pressed ${EXTEN} to Accept this issue, Goodbye!")
 exten => 1,n,Hangup()

 ;;Escallate to next person on
 exten => 2,1(escalate),Set(ESCALATION=${INC(ESCALATION)})
 exten => 2,n,Set(RESPOND=1)
 exten => 2,n,agi(alertEscalate.agi,"--message='${MESSAGE}'","--alertId=${ALERTID}","--contactsDb=/home/asterisk/asterisk_files/contacts.db","--outgoingDir=/var/spool/asterisk/outgoing/","--escalation=${ESCALATION}")
 exten => 2,n,agi(ttsGoogle.agi,"You have Pressed ${EXTEN} to Escallate this issue, The next available team member will now be paged, Goodbye!")
 exten => 2,n,Hangup()

asterisk-zabbix-phone-escalation's People

Contributors

mcilley avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  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.