shyamjos / html-email-template-for-icinga-2 Goto Github PK
View Code? Open in Web Editor NEWsimple HTML email alert Template for Icinga 2 to replace the default boring text based email alert.
Home Page: https://shyamjos.com/icinga2-html-template/
simple HTML email alert Template for Icinga 2 to replace the default boring text based email alert.
Home Page: https://shyamjos.com/icinga2-html-template/
Hi All,
I am not sure if anyone is maintaining this alert but they have recently stopped working. You need to add the following to your service script:
Line 33&34:
-X HOSTNOTES (\$host.notes\$)
-x SERVICENOTES (\$service.notes\$)
Line 67:
while getopts 4:6:b:c:d:e:f:hi:l:n:o:r:s:t:u:v:X:x: opt
Line 81&82:
X) HOSTNOTES=$OPTARG ;;
x) SERVICENOTES=$OPTARG ;;
For the host script:
Line 31:
-X HOSTNOTES (\$host.notes\$)
Line 64:
while getopts 4:6::b:c:d:f:hi:l:n:o:r:s:t:v:X: opt
Line 78:
X) HOSTNOTES=$OPTARG ;;
Cheers
Lyndsey
Hi, I had to adjust the script so it will replace the Space with %20 in the link composition.
I had to do mine like this:
ICINGAURL="https://icingahost/dashboard#!/monitoring/service/show?host=$HOSTNAME&service=$SERVICENAME"
ICINGAWEBURL=echo "$ICINGAURL" | sed 's/ /%20/g'
If you have a better approach you can update the script. I am not an expert and I did what was the easiest for me.
Also, I used show instead of history because I wanted to display something else to the user once clicked the link.
Overall you did a great job!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.