What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

Custom EXE sensor: "A specified logon session does not exist. It may already have been terminated"

Votes:

0

Hello guys, I'm trying to check backup files on remote device through custom senzor. I have script which works perfectly if I run it in Powershell, but if I set it into custom sensor, it doesn't work.

Script is using credentials to connect remote drive:

$SecPasswd = ConvertTo-SecureString $password -AsPlainText -Force 
$Credentials = New-Object System.Management.Automation.PSCredential ($username, $secpasswd)
New-PSDrive –Name "Y" –PSProvider FileSystem –Root "\\15.15.0.30\path" -Credential $Credentials

Error what I get from sensor is: "Logon failure: A specified logon session does not exist. It may already have been terminated"

Is here somethink what I forget to config? Thanks for any advice.

credentials custom-sensor exe-script-sensor logon-failure

Created on Jun 28, 2016 9:42:20 AM

Last change on Jun 28, 2016 10:30:53 AM by  Torsten Lindner [Paessler Support]



3 Replies

Votes:

0

UPDATE (can't edit my post) It looks like sensor is half-working, half-not. I got more than 30 emails in last hour with reports that sensor is in error state and that sensor is again OK.

Created on Jun 28, 2016 1:45:52 PM



Votes:

0

Hello,

please make sure no other device or sensor establishes a connection to the share using the same user name on the target machine (and therefore opens a session).

Furthermore please try to increase the scanning interval for this Custom EXE sensor to 10 minutes.

Does the sensor still flapping between error and ok?

Created on Jun 28, 2016 3:51:39 PM by  [email protected]



Votes:

0

Thanks for reply, I tried your advices and it look okay now. Thanks a lot.

Created on Jul 8, 2016 7:01:56 AM




Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.