logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
joshfr  
#1 Posted : Tuesday, February 27, 2018 1:56:27 AM(UTC)
joshfr


Rank: Guest

Joined: 2/27/2018(UTC)
Posts: 2

Hi all, I'm trying to create a trigger that should fire as such (random IPs). Is there any way to get something like this to work? I'd like to receive a message when a specific PC disconnects, at that time, trigger output to email or whatever else I use for webhooks "PC01 disconnected on primary WAN" and when it reconnects on the backup WAN, send a new trigger saying "PC01 connected on backup WAN"

See what I'm attempting to achieve with the below:

{{"text": "{Session.Name} {Event.EventType} at {IIF ({Connection.NetworkAddress} = '73.49.169.98', 'Primary WAN', IIF (Connection.NetworkAddress} = '73.49.169.99', 'Backup WAN', 'Other'))}
"}}


My current event filter for this is as follows:

(Event.EventType = 'Disconnected' OR Event.EventType = 'Connected') And Connection.ProcessType = 'Guest' AND Session.SessionType = 'Access' AND Session.CustomProperty1 = 'ACME CORPORATION'
Scott  
#2 Posted : Wednesday, February 28, 2018 12:59:12 PM(UTC)
Scott


Rank: Administration

Medals: Level 4: Wise Old Owl! Received 100 Thanks!

Joined: 3/28/2014(UTC)
Posts: 2,764
United States

Thanks: 3 times
Was thanked: 338 time(s) in 292 post(s)
If you want to filter upon a specific IP address I would guess that you'd want to use Session.GuestNetworkAddress, although that information is pulled from the socket which gives mostly unreliable results.
ScreenConnect Team
joshfr  
#3 Posted : Wednesday, February 28, 2018 3:13:49 PM(UTC)
joshfr


Rank: Guest

Joined: 2/27/2018(UTC)
Posts: 2

Originally Posted by: Scott Go to Quoted Post
If you want to filter upon a specific IP address I would guess that you'd want to use Session.GuestNetworkAddress, although that information is pulled from the socket which gives mostly unreliable results.


What's the difference between Session.GuestNetworkAddress and Connection.NetworkAddress?
shawnkhall  
#4 Posted : Saturday, March 3, 2018 9:45:28 PM(UTC)
shawnkhall


Rank: Advanced Member

Medals: Level 1: Random Act of Kindness! Received One Thanks!

Joined: 2/6/2014(UTC)
Posts: 297
Man
United States

Thanks: 7 times
Was thanked: 25 time(s) in 22 post(s)
why not just create three separate triggers?

:: trigger 1
(Connection.NetworkAddress = '73.49.169.98') AND
(Event.EventType = 'Disconnected' OR Event.EventType = 'Connected') And (Connection.ProcessType = 'Guest') AND (Session.SessionType = 'Access') AND (Session.CustomProperty1 = 'ACME CORPORATION')

:: trigger 2
(Connection.NetworkAddress = '73.49.169.99') AND
(Event.EventType = 'Disconnected' OR Event.EventType = 'Connected') And (Connection.ProcessType = 'Guest') AND (Session.SessionType = 'Access') AND (Session.CustomProperty1 = 'ACME CORPORATION')

:: trigger 3
((Connection.NetworkAddress <> '73.49.169.98') AND (Connection.NetworkAddress <> '73.49.169.99')) AND
(Event.EventType = 'Disconnected' OR Event.EventType = 'Connected') And (Connection.ProcessType = 'Guest') AND (Session.SessionType = 'Access') AND (Session.CustomProperty1 = 'ACME CORPORATION')
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.