annotate ServerMonitor/Objects/Checks/HttpCheck.cs @ 20:b21318f6e3f1

About window tweaks
author Brad Greco <brad@bgreco.net>
date Thu, 30 May 2019 20:36:42 -0400
parents b713b9db4c82
children 7645122aa7a9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
1 using System;
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
2 using System.Collections.Generic;
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
3 using System.ComponentModel;
18
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
4 using System.IO;
0
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
5 using System.Linq;
18
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
6 using System.Net.Http;
0
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
7 using System.Text.RegularExpressions;
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
8 using System.Threading;
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
9 using System.Threading.Tasks;
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
10
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
11 namespace ServerMonitorApp
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
12 {
18
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
13 /// <summary>Executes an HTTP request and checks the result or status code.</summary>
0
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
14 [DisplayName("HTTP check"), Description("Check the result of an HTTP request"), DisplayWeight(1)]
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
15 public class HttpCheck : Check
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
16 {
18
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
17 /// <summary>The URL to request.</summary>
0
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
18 public string Url { get; set; }
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
19
18
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
20 /// <summary>The HTTP method for the request.</summary>
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
21 /// <remarks>Only HEAD and GET are supported.</remarks>
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
22 public string Method { get; set; }
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
23
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
24 /// <summary>Whether the HTTP status code should be checked.</summary>
0
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
25 public bool CheckResponseCode { get; set; }
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
26
18
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
27 /// <summary>The required response code if CheckResponseCode is true.</summary>
0
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
28 public int ResponseCode { get; set; }
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
29
18
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
30 /// <summary>Whether the response lenth should be checked.</summary>
0
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
31 public bool CheckResponseLength { get; set; }
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
32
18
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
33 /// <summary>The required minimum response length if CheckResponseLength is true.</summary>
0
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
34 public string ResponseLengthMin { get; set; }
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
35
18
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
36 /// <summary>The required maximum response length if CheckResponseLength is true.</summary>
0
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
37 public string ResponseLengthMax { get; set; }
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
38
18
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
39 /// <summary>Whether the response body should be checked.</summary>
0
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
40 public bool CheckResponseBody { get; set; }
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
41
18
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
42 /// <summary>The method to use when checking the response content against the pattern.</summary>
0
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
43 public MatchType ResponseBodyMatchType { get; set; }
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
44
18
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
45 /// <summary>The string or pattern that the response content must match if CheckResponseBody is true.</summary>
0
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
46 public string ResponseBodyPattern { get; set; }
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
47
18
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
48 /// <summary>Whether the ResponseBodyPattern should be interpreted as a regular expression.</summary>
0
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
49 public bool ResponseBodyUseRegex { get; set; }
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
50
18
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
51 /// <summary>Executes the HTTP command on the server.</summary>
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
52 protected async override Task<CheckResult> ExecuteCheckAsync(CancellationToken token)
0
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
53 {
18
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
54 try
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
55 {
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
56 // Disable auto redirect so we can get the true response code of the request.
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
57 using (HttpClientHandler handler = new HttpClientHandler() { AllowAutoRedirect = false })
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
58 using (HttpClient client = new HttpClient(handler))
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
59 using (HttpRequestMessage request = new HttpRequestMessage(new HttpMethod(Method), new Uri(Url)))
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
60 {
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
61 token.Register(client.CancelPendingRequests);
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
62 HttpResponseMessage response = await client.SendAsync(request, token);
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
63 token.ThrowIfCancellationRequested();
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
64 List<CheckResult> results = await ProcessResponse(response);
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
65 return MergeResults(results.ToArray());
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
66 }
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
67 }
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
68 catch (Exception e)
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
69 {
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
70 return Fail(e);
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
71 }
0
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
72 }
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
73
18
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
74 ///// <summary>Processes an HTTP response and checks that it matches the expected values.</summary>
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
75 ///// <param name="response">The HTTP response.</param>
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
76 ///// <returns>A list of check results according to user preferences.</returns>
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
77 protected async virtual Task<List<CheckResult>> ProcessResponse(HttpResponseMessage response)
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
78 {
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
79 List<CheckResult> results = new List<CheckResult>();
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
80
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
81 // Check the actual response code against the expected response code if response code checking is enabled.
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
82 if (CheckResponseCode)
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
83 results.Add(GetIntResult(ResponseCode, (int)response.StatusCode, "Response code"));
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
84
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
85 // Check the actual response length against the expected response length if response length checking is enabled.
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
86 if (CheckResponseLength)
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
87 {
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
88 string length = null;
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
89 if (Method == "HEAD")
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
90 {
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
91 // Use the Content-Length header if a HEAD request.
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
92 if (response.Headers.TryGetValues("Content-Length", out IEnumerable<string> values))
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
93 {
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
94 length = values.First();
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
95 }
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
96 }
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
97 else
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
98 {
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
99 // For a GET request, read the actual length
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
100 Stream stream = await response.Content.ReadAsStreamAsync();
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
101 length = stream.Length.ToString();
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
102 }
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
103 if (length != null)
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
104 {
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
105 results.Add(GetStringResult(MatchType.GreaterThan, (int.Parse(ResponseLengthMin) * 1024).ToString(), false, length, "Response length"));
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
106 results.Add(GetStringResult(MatchType.LessThan, (int.Parse(ResponseLengthMax) * 1024).ToString(), false, length, "Response length"));
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
107 }
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
108 else
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
109 {
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
110 results.Add(Fail("Could not get content length"));
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
111 }
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
112 }
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
113
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
114 // Check the actual response content against the expected response content if response content checking is enabled.
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
115 if (CheckResponseBody && Method != "HEAD")
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
116 {
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
117 string content = await response.Content.ReadAsStringAsync();
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
118 results.Add(GetStringResult(ResponseBodyMatchType, ResponseBodyPattern, ResponseBodyUseRegex, content, "Response body"));
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
119 }
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
120
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
121 return results;
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
122 }
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
123
b713b9db4c82 HTTP checks.
Brad Greco <brad@bgreco.net>
parents: 17
diff changeset
124 /// <summary>Validates HTTP check options.</summary>
0
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
125 public override string Validate(bool saving = true)
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
126 {
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
127 string message = base.Validate();
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
128 if (Url.IsNullOrEmpty())
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
129 message += "URL cannot be blank." + Environment.NewLine;
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
130 if (!CheckResponseCode && !CheckResponseLength && !CheckResponseBody)
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
131 message += "At least one check must be enabled." + Environment.NewLine;
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
132 if (CheckResponseBody && ResponseBodyUseRegex)
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
133 {
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
134 try
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
135 {
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
136 Regex re = new Regex(ResponseBodyPattern);
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
137 }
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
138 catch (ArgumentException)
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
139 {
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
140 message += "Invalid regular expression for response body." + Environment.NewLine;
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
141 }
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
142 }
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
143 return message;
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
144 }
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
145
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
146 }
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
147 }