This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
############################################################################### | |
# Nagios plugin template | |
# | |
# Notes | |
# - The RHEL boxes I work on are currently limited to Python 2.6.6, hence the | |
# use of (deprecated) optparse. If I can ever get them all updated to | |
# Python 2.7 (or better yet, 3.3), I'll switch to argparse | |
# - This template runs in 2.6-3.3. Any changes made will need to be appropriate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Send-MailMessages { | |
<# | |
.SYNOPSIS | |
Send a batch of emails very quickly. | |
.DESCRIPTION | |
This script is designed to assist in generating email messages for testing internal/external message flow for your messaging infrastructure. | |
The ability to quickly send a batch of messages with an attachment on a schedule can help track flow issues, to confirm mail routing, or to test 'high-load' scenarios. | |
.EXAMPLE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Syntax test script for PowerGUI | |
# ------------------------------- | |
# To modify syntax highlighting, use the Script Colors addin | |
# from http://www.powergui.org/entry.jspa?externalID=3023 | |
# Or edit PowerShellSyntax.xml in your PowerGUI install path | |
cls | |
<# Formatted types in example below | |
$myarray : variable |