Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
alerts:html_mail2.0 [2016/03/21 07:49] – [Changelog] helge | alerts:html_mail2.0 [2016/03/21 08:06] – [Installation] helge | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
^ Author | [[ helge.jacobsen@atos.net | Helge Jacobsen]] | | ^ Author | [[ helge.jacobsen@atos.net | Helge Jacobsen]] | | ||
Line 5: | Line 5: | ||
^ Requirements | Perl, MIME::Lite | | ^ Requirements | Perl, MIME::Lite | | ||
^ Download | None | | ^ Download | None | | ||
- | ^ Last Update | 2016-03-14 | | + | ^ Last Update | 2016-03-21 | |
===== Description ===== | ===== Description ===== | ||
Line 15: | Line 15: | ||
* Flapping Status included in Subject and Mailtext | * Flapping Status included in Subject and Mailtext | ||
* Colorstatus depends on BBALPHAMSG for Recover Status. Nesessary if you using yellow for | * Colorstatus depends on BBALPHAMSG for Recover Status. Nesessary if you using yellow for | ||
+ | * Add Enable/ | ||
+ | * Fix for disable "until okay": Convert XYmon Recover Bodytext "for -1 minutes" | ||
- | + | Tested with Outlook 2010 and Thunderbird | |
- | Tested with Outlook 2010 | + | |
===== Installation ===== | ===== Installation ===== | ||
Line 27: | Line 28: | ||
- Add the following line in whichever alert for which you want messages < | - Add the following line in whichever alert for which you want messages < | ||
SCRIPT [XYMON_SERVER_ROOT]/ | SCRIPT [XYMON_SERVER_ROOT]/ | ||
+ | or < | ||
+ | SCRIPT [XYMON_SERVER_ROOT]/ | ||
+ | If you want enable/ | ||
+ | |||
- And of course you replace [XYMON_SERVER_ROOT] with the full path to your xymon server directory (e.g. / | - And of course you replace [XYMON_SERVER_ROOT] with the full path to your xymon server directory (e.g. / | ||
Line 62: | Line 67: | ||
# 1.7 Helge Jacobsen Add Flapping Status | # 1.7 Helge Jacobsen Add Flapping Status | ||
# 2.0 Helge Jacobsen | # 2.0 Helge Jacobsen | ||
+ | # 2.01 Helge Jacobsen Add Enable/ | ||
+ | # 2.02 Helge Jacobsen Fix for disable "until okay": Convert XYmon Recover Bodytext "for -1 minutes" | ||
+ | # | ||
############################################################################### | ############################################################################### | ||
Line 109: | Line 117: | ||
my $FLAPPING; | my $FLAPPING; | ||
my $FLAPPM=" | my $FLAPPM=" | ||
- | + | my $DISABLE; # Disable Flag | |
############################################################################### | ############################################################################### | ||
Line 184: | Line 192: | ||
$SUBJECT = "is Flapping"; | $SUBJECT = "is Flapping"; | ||
} | } | ||
+ | # | ||
+ | # Disable Detection | ||
+ | $DISABLE=(split(/ | ||
+ | if ($DISABLE =~ /INFO/) { | ||
+ | if ($BBALPHAMSG =~ /DISABLED/) { | ||
+ | $SUBJECT = "is DISABLED" | ||
+ | } | ||
+ | if ($BBALPHAMSG =~ /ENABLED/) { | ||
+ | $SUBJECT = "is ENABLED" | ||
+ | } | ||
+ | $BBCOLORLEVEL = " | ||
+ | } | ||
+ | # Convert XYmon Recover Bodytext "for -1 minutes" | ||
+ | | ||
+ | |||
+ | # | ||
# | # | ||
Line 235: | Line 259: | ||
EOF | EOF | ||
my $link .= " | my $link .= " | ||
- | | + | # |
- | $FLAPPM <p> See <a href=\" | + | $htmldata .= "<FONT FACE=\" |
+ | $FLAPPM <p> See <a href=\" | ||
< | < | ||
return $htmldata; | return $htmldata; | ||
Line 295: | Line 320: | ||
* **2016-03-14** | * **2016-03-14** | ||
- | * Initial release | + | * 2.0 Initial release |
* **2016-03-21** | * **2016-03-21** | ||
- | * Little Fix and a smart update | + | * 2.02 Little Fix and a smart update |