Skip to content

Instantly share code, notes, and snippets.

@mikekunze
Created August 19, 2013 22:10
Show Gist options
  • Save mikekunze/6274778 to your computer and use it in GitHub Desktop.
Save mikekunze/6274778 to your computer and use it in GitHub Desktop.
This is an example jade template body for a Nagios Service Alert E-Mail.
extends layout.jade
block content
include nav-bar-email
.container-fluid
.row-fluid
.span12
.well
i.icon-warning-sign.icon-4x.pull-right
b
p.lead Nagios Alert for #{hostname}
hr
.container-fluid
.row-fluid
.span3
label.label Hostname:
.span9
span #{hostname}
if service
.row-fluid
.span3
label.label service:
.span9
span #{service}
.row-fluid
.span3
label.label ip:
.span9
span #{ip}
.row-fluid
.span3
label.label notify:
.span9
span #{notify_type}
.row-fluid
.span3
label.label status:
.span9
span #{status}
.row-fluid
.span3
label.label date:
.span9
span #{date}
.row-fluid
.span3
label.label output:
.span9
span #{output}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment