如何创建简单的在线/离线监视器 [英] How do I create a Simple online/offline monitor

查看:91
本文介绍了如何创建简单的在线/离线监视器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我见过很多ping监视器的例子,后面有一个用于存储ip地址的t-sql数据库。如果我有完整的fqdn或IP地址,我想通过ping循环或定时ping循环监视。如何编写vb以使用绿灯红灯指示每个服务器已连接或断开连接。



此致,



克里斯



例如,

在表单上看起来像这样



(服务器连接状态)



服务器名称=绿色/红色

服务器名称=绿色/红色

服务器名称=绿色/红色



这将在程序打开时自动加载和启动,并在它自己的线程,所以不要减慢或使应用程序在ping循环期间冻结,让每个服务器/ ip每隔60秒。

I have seen many examples of ping monitors with a backside t-sql database to store ip addresses. If I have the exact fqdn or IP addresses that I would like to monitor with a ping loop or a timed ping loop. How would I write the vb in order to use a green light red light method to indicate that each server was either connected or disconnected.

Sincerely,

Chris

For Example,
on the form it would look like this

(Server Connection Status)

Server Name = Green/Red
Server Name = Green/Red
Server Name = Green/Red

This would load and start automatically when the program is opened, and would cycle under its own thread so not to slow or make the application freeze during the ping loop lets say every 60 seconds per each server / ip.

推荐答案

阅读这些:

My.Computer.Network.Ping Method [ ^ ]



http://www.dotnetperls.com/timer -vbnet [ ^ ]
Read these :
My.Computer.Network.Ping Method[^]

http://www.dotnetperls.com/timer-vbnet[^]


这篇关于如何创建简单的在线/离线监视器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆