It is currently April 18th, 2024, 9:22 pm

Network Status Monitor - Ping Plugin

Skins that monitor system information
User avatar
RabbidWombat
Posts: 1
Joined: February 26th, 2014, 2:14 pm

Network Status Monitor - Ping Plugin

Post by RabbidWombat »

Hello All!

This is my first attempt at creating a skin for Rainmeter. I manage the servers at my company. The server are accross a VPN in different locations. I was looking for some way easily to tell if

A. the servers were up and running
B. the VPN was up and running

Rainmeter looked like the best way with the Ping Plugin but I could not find anyone that had anything that would work "out of the box" for me. So I looked at alot of different peoples code for using the Ping Plugin and to monitor game servers and come up with this.

It tells me the current ping status and if it fails it tells me its offline. Also I get a green dot for a good connection and a red dot for offline or a poor connection (sometimes our VPN gets crazy slow and we have to restart the routers)

I just wanted to give back to the community, and I am sorry that I didnt keep all the credits of others peoples code that I stole/borrowed to make this, as I heavily modified it and butchered it while testing to see what worked!

Any comments or suggestions are welcome!

Thank you!

[Rainmeter]
DynamicWindowSize=1
Update=1000
Background=Background.png
BackgroundMode=3
BackgroundMargins=0,34,0,14

------------------------------------------------------
[Style]
FontFace=kroeger 05_55 caps
FontSize=12
FontColor=FFFFFF
StringAlign=Left
StringStyle=Bold
StringEffect=Shadow
FontEffectColor=000000
AntiAlias=0
------------------------------------------------------
[MeasureServer1]
Measure=Plugin
Plugin=Plugins\PingPlugin
DestAddress=192.168.1.1
Timeout=10000
IfBelowValue=1000
IfBelowAction=[!SetOption MeterServer1Image ImageName Online.png][!UpdateMeter MeterServer1Image][!Redraw]
IfAboveValue=1000
IfAboveAction=[!SetOption MeterServer1Image ImageName Offline.png][!UpdateMeter MeterServer1Image][!Redraw]
Substitute="30000":"Offline"


[MeasureServer2]
Measure=Plugin
Plugin=Plugins\PingPlugin
DestAddress=192.168.1.2
Timeout=10000
IfBelowValue=1000
IfBelowAction=[!SetOption MeterServer2Image ImageName Online.png][!UpdateMeter MeterServer2Image][!Redraw]
IfAboveValue=1000
IfAboveAction=[!SetOption MeterServer2Image ImageName Offline.png][!UpdateMeter MeterServer2Image][!Redraw]
Substitute="30000":"Offline"

[MeasureServer3]
Measure=Plugin
Plugin=Plugins\PingPlugin
DestAddress=192.168.1.3
Timeout=10000
IfBelowValue=1000
IfBelowAction=[!SetOption MeterServer3Image ImageName Online.png][!UpdateMeter MeterServer3Image][!Redraw]
IfAboveValue=1000
IfAboveAction=[!SetOption MeterServer3Image ImageName Offline.png][!UpdateMeter MeterServer3Image][!Redraw]
Substitute="30000":"Offline"

[MeasureServer4]
Measure=Plugin
Plugin=Plugins\PingPlugin
DestAddress=192.168.1.4
Timeout=10000
IfBelowValue=1000
IfBelowAction=[!SetOption MeterServer4Image ImageName Online.png][!UpdateMeter MeterServer4Image][!Redraw]
IfAboveValue=1000
IfAboveAction=[!SetOption MeterServer4Image ImageName Offline.png][!UpdateMeter MeterServer4Image][!Redraw]
Substitute="30000":"Offline"

[MeasureServer5]
Measure=Plugin
Plugin=Plugins\PingPlugin
DestAddress=192.168.1.5
Timeout=10000
IfBelowValue=1000
IfBelowAction=[!SetOption MeterServer5Image ImageName Online.png][!UpdateMeter MeterServer5Image][!Redraw]
IfAboveValue=1000
IfAboveAction=[!SetOption MeterServer5Image ImageName Offline.png][!UpdateMeter MeterServer5Image][!Redraw]
Substitute="30000":"Offline"

[MeasureServer6]
Measure=Plugin
Plugin=Plugins\PingPlugin
DestAddress=192.168.1.6
Timeout=10000
IfBelowValue=1000
IfBelowAction=[!SetOption MeterServer6Image ImageName Online.png][!UpdateMeter MeterServer6Image][!Redraw]
IfAboveValue=1000
IfAboveAction=[!SetOption MeterServer6Image ImageName Offline.png][!UpdateMeter MeterServer6Image][!Redraw]
Substitute="30000":"Offline"
------------------------------------------------------

[meterTitle]
Meter=STRING
MeterStyle=Style
X=55
Y=8
W=90
H=18
Text="Server Satus"

[MeterServer1]
Meter=STRING
MeterStyle=Style
X=25
Y=30
MeasureName=MeasureServer1
Text="Server1: %1"

[MeterServer1Image]
Meter=Image
W=10
H=10
X=13
Y=37


[MeterServer2]
Meter=STRING
MeterStyle=Style
X=25
Y=54
MeasureName=MeasureServer2
Text="Server2: %1"

[MeterServer2Image]
Meter=Image
W=10
H=10
X=13
Y=61

[MeterServer3]
Meter=STRING
MeterStyle=Style
X=25
Y=78
MeasureName=MeasureServer3
Text="Server3: %1"

[MeterServer3Image]
Meter=Image
W=10
H=10
X=13
Y=83

[MeterServer4]
Meter=STRING
MeterStyle=Style
X=25
Y=102
MeasureName=MeasureServer4
Text="Server4: %1"

[MeterServer4Image]
Meter=Image
W=10
H=10
X=13
Y=109

[MeterServer5]
Meter=STRING
MeterStyle=Style
X=25
Y=126
MeasureName=MeasureServer5
Text="Server5: %1"

[MeterServer5Image]
Meter=Image
W=10
H=10
X=13
Y=133

[MeterServer6]
Meter=STRING
MeterStyle=Style
X=25
Y=150
MeasureName=MeasureServer6
Text="Server6: %1"

[MeterServer6Image]
Meter=Image
W=10
H=10
X=13
Y=157
You do not have the required permissions to view the files attached to this post.
User avatar
JoBu
Posts: 271
Joined: February 16th, 2011, 12:46 am
Location: California

Re: Network Status Monitor - Ping Plugin

Post by JoBu »

Great job!
User avatar
JohnBurns
Posts: 63
Joined: February 11th, 2011, 4:18 pm
Location: Oklahoma City

Re: Network Status Monitor - Ping Plugin

Post by JohnBurns »

Thank you! Very nice!
Windows 10 Version 20H2 (OS Build 19042.870)
44))Realtime: Windows Defender, McAfee Total Access-Total Protection, Malwarebytes, WiseVector, HMP Alert, UAC Highest Level
OnDemand: Adwcleaner, MRT, Emsisoft EEK
OldFriendOfYours
Posts: 1
Joined: June 5th, 2017, 7:16 pm

Re: Network Status Monitor - Ping Plugin

Post by OldFriendOfYours »

Thanks a lot for this plugin!

Can anyone please tell me how I change the update frequency (how often it should ping the servers?)

I have tried to figure it out myself but I'm not having any good luck. I'm just starting to use Rainmeter. :welcome:
User avatar
balala
Rainmeter Sage
Posts: 16144
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Network Status Monitor - Ping Plugin

Post by balala »

OldFriendOfYours wrote:Can anyone please tell me how I change the update frequency (how often it should ping the servers?)
Have to add an UpdateRate option to the Ping plugine measures ([MeasureServer1] - [MeasureServer6]). For details, read this very good description.