Goodmorning all.

I have a little chalange with a agent procedure.

I want to have another sound to play when a server goes down.

This is the procedure:

<?xml version="1.0" encoding="utf-8"?>
<ScriptExport xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.kaseya.com/vsa/2008/12/Scripting">
<Procedure name="Sound alarm on offline" treePres="3" id="195347500" folderId="17266159129724168151173134">
<Body description="Sound an alarm when a system goes down.">
<If description="">
<Condition name="UserIsLoggedIn">
<Parameter xsi:type="StringParameter" name="UserName" value="Administrator" />
</Condition>
<Then>
<Statement description="Execute the specified file - full path to file required.&#xA;c:\alarm\mpg123.exe c:\alarm\alarm_offline.mp3" name="ExecuteFile" continueOnFail="true">
<Parameter xsi:type="StringParameter" name="Path" value="c:\alarm\mpg123.exe" />
<Parameter xsi:type="StringParameter" name="Arguments" value="c:\alarm\alarm_offline.mp3" />
<Parameter xsi:type="EnumParameter" name="ExecuteAccount" value="User" />
<Parameter xsi:type="BooleanParameter" name="WaitComplete" value="False" />
</Statement>
<Statement description="Pause this procedure for N seconds to give a previous action time to complete." name="PauseScript" continueOnFail="false">
<Parameter xsi:type="IntegerParameter" name="Seconds" value="3" />
</Statement>
<Statement description="Execute the given command as if it were typed in at a command prompt." name="ExecuteShellCommand" continueOnFail="true">
<Parameter xsi:type="StringParameter" name="Command" value="taskkill /IM mpg123.exe" />
<Parameter xsi:type="EnumParameter" name="ExecuteAccount" value="User" />
<Parameter xsi:type="BooleanParameter" name="Is64Bit" value="False" />
</Statement>
</Then>
</If>
</Body>
</Procedure>
</ScriptExport>

The only problem i have is that, when i startup our monitoring pc in the morning that it executes the procedure on the machine for every machine that was offline in the night.

So the alarm goes like 15 times (kinda iritating :))

Is there a way to only sound the alarm when the monitoring pc is online?