Git Product home page Git Product logo

html-email-template-for-icinga-2's Introduction

html-email-template-for-icinga-2's People

Contributors

shyamjos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

html-email-template-for-icinga-2's Issues

Alerts stop working from Icinga 2.14

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

Space in link composition

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!

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.