Application pool naam meeloggen als relevant
svn path=/Website/branches/v2017.1/; revision=34357
This commit is contained in:
@@ -527,18 +527,27 @@ checker("Server.ScriptTimeout",
|
||||
checker("Application pool",
|
||||
function ()
|
||||
{
|
||||
try
|
||||
{
|
||||
var WshShell = new ActiveXObject("WScript.Shell");
|
||||
var pool_id = WshShell.ExpandEnvironmentStrings("%APP_POOL_ID%");
|
||||
}
|
||||
catch (e)
|
||||
{
|
||||
pool_id = "Error: " + e.description;
|
||||
}
|
||||
var res = resultcodes.ok;
|
||||
var message;
|
||||
var message = "Name: " + pool_id + "<br>";
|
||||
var info;
|
||||
if (typeof Application("SET_INSTANCE_TIME") == "undefined")
|
||||
{
|
||||
res = resultcodes.warning;
|
||||
message = "Application('SET_INSTANCE_TIME') not set?";
|
||||
message += "Application('SET_INSTANCE_TIME') not set?";
|
||||
}
|
||||
else
|
||||
{
|
||||
var tm_start = new Date(Application("SET_INSTANCE_TIME"));
|
||||
message = "Application pool start: " + toDateTimeString(tm_start);
|
||||
message += "Application pool start: " + toDateTimeString(tm_start);
|
||||
if (tm_start.getHours() >= 9 && tm_start.getHours() <= 17)
|
||||
{
|
||||
info = "During office hours?";
|
||||
@@ -1506,6 +1515,35 @@ checker("ClientCertificate Collection",
|
||||
true // toggler
|
||||
);
|
||||
|
||||
checker("Environment",
|
||||
function ()
|
||||
{
|
||||
try
|
||||
{
|
||||
var shell = new ActiveXObject("WScript.Shell")
|
||||
var pCollection = shell.Environment("Process");
|
||||
var colVars = new Enumerator(pCollection);
|
||||
var lines = [];
|
||||
for(; ! colVars.atEnd(); colVars.moveNext())
|
||||
{
|
||||
var line = "<tr><td colspan='2'>" + Server.HTMLEncode(String(colVars.item())) +"</td></tr>";
|
||||
lines.push(line);
|
||||
}
|
||||
var sLog = "<table class='inside'>" + lines.join("\n") + "</table>";
|
||||
return { result: resultcodes.ok,
|
||||
message: sLog
|
||||
}
|
||||
}
|
||||
catch(e)
|
||||
{
|
||||
return { result: resultcodes.warning,
|
||||
message: e.description
|
||||
}
|
||||
}
|
||||
},
|
||||
true // toggler
|
||||
);
|
||||
|
||||
//DumpCollection(Request.QueryString, "QueryString Collection");
|
||||
|
||||
%></table><%
|
||||
|
||||
@@ -80,7 +80,16 @@ settings =
|
||||
fso.CreateFolder(folder);
|
||||
var nowtxt = toISODateString(new Date());
|
||||
/* global */ __LogfileName = folder + "/log_" + nowtxt + ".html.log";
|
||||
__DoLog("Unexpected Application pool restart at {0} during office hours".format(toISODateTimeString(tm_start, true)), "#f00");
|
||||
try
|
||||
{
|
||||
var WshShell = new ActiveXObject("WScript.Shell");
|
||||
var pool_id = WshShell.ExpandEnvironmentStrings("%APP_POOL_ID%");
|
||||
}
|
||||
catch (e)
|
||||
{
|
||||
pool_id = "<unknown>";
|
||||
}
|
||||
__DoLog("Unexpected Application pool '{0}' restart at {1} during office hours".format(pool_id, toISODateTimeString(tm_start, true)), "#f00");
|
||||
__LogfileName = keeplog;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user