473,324 Members | 2,196 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Server monitor and notification

Hi

I need some idea, Is there any way to write vb code to monitor server
activity and
if server fails send out email to admin.
thanks
Kalyan
Nov 22 '05 #1
10 1860
Kalyan,

Are you using VB.NET or VB6?

"Kalyan" wrote:
Hi

I need some idea, Is there any way to write vb code to monitor server
activity and
if server fails send out email to admin.
thanks
Kalyan

Nov 22 '05 #2
Kalyan,

Are you using VB.NET or VB6?

"Kalyan" wrote:
Hi

I need some idea, Is there any way to write vb code to monitor server
activity and
if server fails send out email to admin.
thanks
Kalyan

Nov 22 '05 #3
Jorge

VB.NET, the piece of code should reside on memory and able to send
notification when server failed.

"Jorge L Matos [MCSD.NET]" wrote:
Kalyan,

Are you using VB.NET or VB6?

"Kalyan" wrote:
Hi

I need some idea, Is there any way to write vb code to monitor server
activity and
if server fails send out email to admin.
thanks
Kalyan

Nov 22 '05 #4
Jorge

VB.NET, the piece of code should reside on memory and able to send
notification when server failed.

"Jorge L Matos [MCSD.NET]" wrote:
Kalyan,

Are you using VB.NET or VB6?

"Kalyan" wrote:
Hi

I need some idea, Is there any way to write vb code to monitor server
activity and
if server fails send out email to admin.
thanks
Kalyan

Nov 22 '05 #5
Ususally a windows service running on another machine would be used to
monitor a server. You can't have a service running on the server be
responsible for sending the notification because the service will most likely
not be running if the server itself is down.

"Kalyan" wrote:
Jorge

VB.NET, the piece of code should reside on memory and able to send
notification when server failed.

"Jorge L Matos [MCSD.NET]" wrote:
Kalyan,

Are you using VB.NET or VB6?

"Kalyan" wrote:
Hi

I need some idea, Is there any way to write vb code to monitor server
activity and
if server fails send out email to admin.
thanks
Kalyan

Nov 22 '05 #6
Ususally a windows service running on another machine would be used to
monitor a server. You can't have a service running on the server be
responsible for sending the notification because the service will most likely
not be running if the server itself is down.

"Kalyan" wrote:
Jorge

VB.NET, the piece of code should reside on memory and able to send
notification when server failed.

"Jorge L Matos [MCSD.NET]" wrote:
Kalyan,

Are you using VB.NET or VB6?

"Kalyan" wrote:
Hi

I need some idea, Is there any way to write vb code to monitor server
activity and
if server fails send out email to admin.
thanks
Kalyan

Nov 22 '05 #7
Absolutely I agree with you, My idea is to run a code one server and going to
monitor another webserver.

"Jorge L Matos [MCSD.NET]" wrote:
Ususally a windows service running on another machine would be used to
monitor a server. You can't have a service running on the server be
responsible for sending the notification because the service will most likely
not be running if the server itself is down.

"Kalyan" wrote:
Jorge

VB.NET, the piece of code should reside on memory and able to send
notification when server failed.

"Jorge L Matos [MCSD.NET]" wrote:
Kalyan,

Are you using VB.NET or VB6?

"Kalyan" wrote:

> Hi
>
> I need some idea, Is there any way to write vb code to monitor server
> activity and
> if server fails send out email to admin.
>
>
> thanks
> Kalyan

Nov 22 '05 #8
Absolutely I agree with you, My idea is to run a code one server and going to
monitor another webserver.

"Jorge L Matos [MCSD.NET]" wrote:
Ususally a windows service running on another machine would be used to
monitor a server. You can't have a service running on the server be
responsible for sending the notification because the service will most likely
not be running if the server itself is down.

"Kalyan" wrote:
Jorge

VB.NET, the piece of code should reside on memory and able to send
notification when server failed.

"Jorge L Matos [MCSD.NET]" wrote:
Kalyan,

Are you using VB.NET or VB6?

"Kalyan" wrote:

> Hi
>
> I need some idea, Is there any way to write vb code to monitor server
> activity and
> if server fails send out email to admin.
>
>
> thanks
> Kalyan

Nov 22 '05 #9
How about pinging the server every x seconds?

"Kalyan" <Ka****@discussions.microsoft.com> wrote in message
news:E4**********************************@microsof t.com...
Absolutely I agree with you, My idea is to run a code one server and going
to
monitor another webserver.

"Jorge L Matos [MCSD.NET]" wrote:
Ususally a windows service running on another machine would be used to
monitor a server. You can't have a service running on the server be
responsible for sending the notification because the service will most
likely
not be running if the server itself is down.

"Kalyan" wrote:
> Jorge
>
> VB.NET, the piece of code should reside on memory and able to send
> notification when server failed.
>
>
>
> "Jorge L Matos [MCSD.NET]" wrote:
>
> > Kalyan,
> >
> > Are you using VB.NET or VB6?
> >
> > "Kalyan" wrote:
> >
> > > Hi
> > >
> > > I need some idea, Is there any way to write vb code to monitor
> > > server
> > > activity and
> > > if server fails send out email to admin.
> > >
> > >
> > > thanks
> > > Kalyan

Nov 22 '05 #10
Andrei is right, using the .NET "Process" class you can easily invoke the
"Ping" command and redirect the output to your windows service, which can
then send email notifications if it gets the "Request timed out" in the
redirected output stream.

Check out: http://www.codeproject.com/csharp/LaunchProcess.asp

"Andrei Pociu" wrote:
How about pinging the server every x seconds?

"Kalyan" <Ka****@discussions.microsoft.com> wrote in message
news:E4**********************************@microsof t.com...
Absolutely I agree with you, My idea is to run a code one server and going
to
monitor another webserver.

"Jorge L Matos [MCSD.NET]" wrote:
Ususally a windows service running on another machine would be used to
monitor a server. You can't have a service running on the server be
responsible for sending the notification because the service will most
likely
not be running if the server itself is down.

"Kalyan" wrote:

> Jorge
>
> VB.NET, the piece of code should reside on memory and able to send
> notification when server failed.
>
>
>
> "Jorge L Matos [MCSD.NET]" wrote:
>
> > Kalyan,
> >
> > Are you using VB.NET or VB6?
> >
> > "Kalyan" wrote:
> >
> > > Hi
> > >
> > > I need some idea, Is there any way to write vb code to monitor
> > > server
> > > activity and
> > > if server fails send out email to admin.
> > >
> > >
> > > thanks
> > > Kalyan


Nov 22 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Kalyan | last post by:
Hi I need some idea, Is there any way to write vb code to monitor server activity and if server fails send out email to admin. thanks Kalyan
7
by: Dave | last post by:
Is there a way to query the monitor status, to know if it is on or off in C#? I found that WM_SYSCOMMAND is sent to WndProc when the monitor goes on and off but im not sure to find out if that...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.