Hello,
I've got a PowerShell script that grabs a count of SSL-VPN sessions from a Sonicwall.
The script runs fine, and when it exits, it exits as follows:
------------------------------------
{other script statements up here....}\\ $intLine ++ $retmsg = "SSLVPN_Sessions" $output = ("{0}:{1}") -f $intLine,$retmsg Write-Host $output exit $output
---------------------------
The EXE/Script sensor doesn't throw any errors, but always displays a value of '1' in the
Value channel (I named the channel SSLVPN_Sessions with a type of Integer).
When I run the script manually, it outputs the count that I want as follows:
110:SSLVPN_Sessions
The count changes each time the script fires (as it should), but the Channel value on the
sensor never changes from '1'.
It never changes to reflect the actual count returned by the script.
Any idea what I could be doing wrong?
Thanks in advance
Add comment