Click here to Skip to main content
15,509,706 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: I am having problem creating a script to monitor Rest/API services. Pin
Richard Deeming23-Aug-21 22:15
mveRichard Deeming23-Aug-21 22:15 
GeneralRe: I am having problem creating a script to monitor Rest/API services. Pin
samflex24-Aug-21 6:08
samflex24-Aug-21 6:08 
GeneralRe: I am having problem creating a script to monitor Rest/API services. Pin
David Mujica24-Aug-21 7:04
David Mujica24-Aug-21 7:04 
GeneralRe: I am having problem creating a script to monitor Rest/API services. Pin
samflex24-Aug-21 7:09
samflex24-Aug-21 7:09 
GeneralRe: I am having problem creating a script to monitor Rest/API services. Pin
samflex25-Aug-21 5:18
samflex25-Aug-21 5:18 
GeneralRe: I am having problem creating a script to monitor Rest/API services. Pin
David Mujica25-Aug-21 6:24
David Mujica25-Aug-21 6:24 
I see a few problems with your code:
1) Looks like your main() does not call your ServerStatusBy() function
2) You are not reading any values from the command line.

Here is a VB example:
VB
Sub Main()
       Dim args() As String = System.Environment.GetCommandLineArgs()
       Dim s As String

       For i As Integer = 0 To args.Length - 1
           Console.WriteLine(String.Format("Arg {0}): {1} ", i, args(i)))
       Next

       s = Console.ReadLine

   End Sub

When you run the program from a command prompt like HellowWorld.exe www.google.com jdoe@companyabc.com

The output is as follows:
Arg 0): C:\_WorkingCopies\HelloWorld\HelloWorld\bin\Debug\HelloWorld.vshost.exe
Arg 1): www.google.com
Arg 2): jdoe@companyabc.com

You can see that you want to grab Arg(1) as the URL and Arg(2) as the email address you want to send the report.
GeneralRe: I am having problem creating a script to monitor Rest/API services. Pin
samflex25-Aug-21 7:09
samflex25-Aug-21 7:09 
GeneralRe: I am having problem creating a script to monitor Rest/API services. Pin
Richard Deeming25-Aug-21 7:18
mveRichard Deeming25-Aug-21 7:18 
GeneralRe: I am having problem creating a script to monitor Rest/API services. Pin
samflex25-Aug-21 9:23
samflex25-Aug-21 9:23 
GeneralRe: I am having problem creating a script to monitor Rest/API services. Pin
Richard Deeming25-Aug-21 23:12
mveRichard Deeming25-Aug-21 23:12 
GeneralRe: I am having problem creating a script to monitor Rest/API services. Pin
samflex26-Aug-21 4:04
samflex26-Aug-21 4:04 
GeneralRe: I am having problem creating a script to monitor Rest/API services. Pin
Richard Deeming26-Aug-21 4:52
mveRichard Deeming26-Aug-21 4:52 
GeneralRe: I am having problem creating a script to monitor Rest/API services. Pin
samflex26-Aug-21 5:04
samflex26-Aug-21 5:04 
GeneralRe: I am having problem creating a script to monitor Rest/API services. Pin
samflex26-Aug-21 6:08
samflex26-Aug-21 6:08 
GeneralRe: I am having problem creating a script to monitor Rest/API services. Pin
Richard Deeming26-Aug-21 6:19
mveRichard Deeming26-Aug-21 6:19 
GeneralRe: I am having problem creating a script to monitor Rest/API services. Pin
samflex26-Aug-21 7:41
samflex26-Aug-21 7:41 
GeneralRe: I am having problem creating a script to monitor Rest/API services. Pin
Richard Deeming26-Aug-21 22:28
mveRichard Deeming26-Aug-21 22:28 
GeneralRe: I am having problem creating a script to monitor Rest/API services. Pin
samflex27-Aug-21 4:21
samflex27-Aug-21 4:21 
GeneralRe: I am having problem creating a script to monitor Rest/API services. Pin
Richard Deeming27-Aug-21 5:10
mveRichard Deeming27-Aug-21 5:10 
General(SOLVED) Re: I am having problem creating a script to monitor Rest/API services. Pin
samflex27-Aug-21 6:27
samflex27-Aug-21 6:27 
QuestionBest, cheap, ASP.NET Core hosting? Pin
Chris Maunder4-Aug-21 9:36
cofounderChris Maunder4-Aug-21 9:36 
AnswerRe: Best, cheap, ASP.NET Core hosting? Pin
jkirkerx11-Aug-21 12:15
professionaljkirkerx11-Aug-21 12:15 
GeneralRe: Best, cheap, ASP.NET Core hosting? Pin
Chris Maunder11-Aug-21 12:56
cofounderChris Maunder11-Aug-21 12:56 
GeneralRe: Best, cheap, ASP.NET Core hosting? Pin
jkirkerx11-Aug-21 13:50
professionaljkirkerx11-Aug-21 13:50 
AnswerRe: Best, cheap, ASP.NET Core hosting? Pin
Deepak Vasudevan13-Sep-21 22:42
Deepak Vasudevan13-Sep-21 22:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.