Kiln » KilnSupportScripts Powershell Scripts to help monitor a Kiln environment. Contact Fog Creek support before using.
Clone URL:  
Pushed to one repository · View In Graph Contained in tip

send mail message in test, include comment for attachment.

Changeset 3f1c112aee7f

Parent 3f9519b6baa6

by Profile picture of User 476Ben McCormack <benm@fogcreek.com>

Changes to one file · Browse files at 3f1c112aee7f Showing diff from parent 3f9519b6baa6 Diff from another changeset...

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
 
17
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
 
16
17
 
 . C:\code\checkKiln\checkBackend.ps1  $sRepoGUID = 'B530EC64-82BE-473A-82E1-569464B1074A'  $sChangeset1 = 'f181ad06356697b8676868fec36fbe13167081dd'  $sChangeset2 = 'ed5f14291c3ab9d9bf24dee8e1b4761799509d15'  $logFile = "C:\code\checkKiln\checkBackend.log"  $smtpServer = "testmail.example.com"  $from = "ben@example.com"  $to = "ben@example.com"    Log-ServiceStats "backend" $logFile  Log-ServiceStats "memcached" $logFile  Log-ServiceStats "QueueService" $logFile  Log-ServiceStats "redis-server" $logFile  $passed = Check-KilnBackend $sRepoGUID $sChangeset1 $sChangeset2 $logFile  if (-not $passed) { - Send-MailMessage -From $from -To $to -SmtpServer $SmtpServer -Subject "The Kiln Backend Had To Be Restarted" + Send-MailMessage -From $from -To $to -SmtpServer $SmtpServer -Subject "The Kiln Backend Had To Be Restarted" #-Attachment $logFile  } \ No newline at end of file