Hi Friends,
I'm using Ping Plugin for monitoring few machines and sites :
Measures return the ping in ms (ie 14 for Google)
And I add "ms" in the Meter with Text=%1 ms
But when a computer is offline, Measure return 30000 and Meter shows 30000 ms
How can I show only TIMEOUT when Ping Measure returns 30000 ?
Thanks for your help
It is currently April 24th, 2024, 4:18 pm
Substitute with Ping Plugin ?
-
- Posts: 71
- Joined: December 11th, 2018, 5:56 pm
- Location: France
-
- Developer
- Posts: 22629
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Substitute with Ping Plugin ?
Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
[Variables]
Dest1=www.google.com
Dest1Label=Google.com
GoodColor=255,255,255,255
BadColor=255,0,0,255
[MeasurePing]
Measure=Plugin
Plugin=PingPlugin
DestAddress=#Dest1#
TimeOut=2000
TimeOutValue=-1
UpdateRate=10
IfCondition=MeasurePing = -1
IfTrueAction=[!SetOption MeterPing Text "#Dest1Label#: TIMEOUT"][!SetOption MeterPing FontColor "#BadColor#"][!UpdateMeter MeterPing][!Redraw]
IfFalseAction=[!SetOption MeterPing Text "#Dest1Label#: %1ms"][!SetOption MeterPing FontColor "#GoodColor#"][!UpdateMeter MeterPing][!Redraw]
[MeterPing]
Meter=String
MeasureName=MeasurePing
Padding=5,5,5,5
SolidColor=25,35,45,255
-
- Posts: 71
- Joined: December 11th, 2018, 5:56 pm
- Location: France