This commit is contained in:
@@ -30,8 +30,6 @@ namespace rockfishCore.Controllers
|
||||
public dtoOpsStatus GetOpsStatus([FromRoute] string service)
|
||||
{
|
||||
dtoOpsStatus Ret = new dtoOpsStatus();
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
switch (service)
|
||||
@@ -70,106 +68,13 @@ namespace rockfishCore.Controllers
|
||||
Ret.Status = false;
|
||||
Ret.ServiceCheckError = $"Unknown service: \"{service}\"";
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Ret.ServiceCheckError += $"{service}: {ex.Message}\r\n";
|
||||
}
|
||||
|
||||
|
||||
// try
|
||||
// {
|
||||
// Ret.MailMirrorOK = RfMail.MailIsMirroringProperly();
|
||||
// }
|
||||
// catch (Exception ex)
|
||||
// {
|
||||
// Ret.OpsCheckError += $"Mail mirror: {ex.Message}\r\n";
|
||||
// }
|
||||
|
||||
// try
|
||||
// {
|
||||
// Ret.AyaNovaSiteOK = OpsDiagnostics.CheckWebsite("https://www.ayanova.com/", "Ground Zero Tech-Works Inc.");
|
||||
// }
|
||||
// catch (Exception ex)
|
||||
// {
|
||||
// Ret.OpsCheckError += $"AyaNova site: {ex.Message}\r\n";
|
||||
// }
|
||||
|
||||
// try
|
||||
// {
|
||||
// Ret.APISiteOK = OpsDiagnostics.CheckWebsite("https://api.ayanova.com/", "WorkorderTypes Enumeration");
|
||||
// }
|
||||
// catch (Exception ex)
|
||||
// {
|
||||
// Ret.OpsCheckError += $"API site: {ex.Message}\r\n";
|
||||
// }
|
||||
|
||||
// try
|
||||
// {
|
||||
// Ret.ContactFormOK = OpsDiagnostics.CheckWebsite("https://contact.ayanova.com/contact", "Contact.Email");
|
||||
// }
|
||||
// catch (Exception ex)
|
||||
// {
|
||||
// Ret.OpsCheckError += $"Contact form: {ex.Message}\r\n";
|
||||
// }
|
||||
|
||||
// try
|
||||
// {
|
||||
// Ret.RequestFormOK = OpsDiagnostics.CheckWebsite("https://contact.ayanova.com/request", "Contact.Email");
|
||||
// }
|
||||
// catch (Exception ex)
|
||||
// {
|
||||
// Ret.OpsCheckError += $"Request form: {ex.Message}\r\n";
|
||||
// }
|
||||
|
||||
// try
|
||||
// {
|
||||
// Ret.RequestLiteFormOK = OpsDiagnostics.CheckWebsite("https://contact.ayanova.com/requestlite", "Contact.Email");
|
||||
// }
|
||||
// catch (Exception ex)
|
||||
// {
|
||||
// Ret.OpsCheckError += $"RequestLite form: {ex.Message}\r\n";
|
||||
// }
|
||||
|
||||
// try
|
||||
// {
|
||||
// Ret.SubversionOK = OpsDiagnostics.CheckWebsite("http://svn.helloayanova.com:3343/csvn/login/auth", "Subversion Edge");
|
||||
// }
|
||||
// catch (Exception ex)
|
||||
// {
|
||||
// Ret.OpsCheckError += $"Subversion: {ex.Message}\r\n";
|
||||
// }
|
||||
|
||||
// try
|
||||
// {
|
||||
// Ret.ForumOK = OpsDiagnostics.CheckWebsite("http://forum.ayanova.com/", "AyaNova support resources");
|
||||
// }
|
||||
// catch (Exception ex)
|
||||
// {
|
||||
// Ret.OpsCheckError += $"Forum: {ex.Message}\r\n";
|
||||
// }
|
||||
|
||||
// try
|
||||
// {
|
||||
// Ret.DevOpsOK = OpsDiagnostics.CheckWebsite("https://test.helloayanova.com/api/v8/", "AyaNova server");
|
||||
// }
|
||||
// catch (Exception ex)
|
||||
// {
|
||||
// Ret.OpsCheckError += $"DevOps: {ex.Message}\r\n";
|
||||
// }
|
||||
|
||||
// try
|
||||
// {
|
||||
// Ret.BackupOK = OpsDiagnostics.VerifyBackups();
|
||||
// }
|
||||
// catch (Exception ex)
|
||||
// {
|
||||
// Ret.OpsCheckError += $"Backup: {ex.Message}\r\n";
|
||||
// }
|
||||
|
||||
return Ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user