New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

200.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free PRTG
Download >>

 

What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

 

Top Tags


View all Tags


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

Votes:

0

Your Vote:

Up

Down

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 by  Sk1X1 (0) 1

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



3 Replies

Votes:

0

Your Vote:

Up

Down

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 by  Sk1X1 (0) 1



Votes:

0

Your Vote:

Up

Down

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  Jochen Greger [Paessler Support]



Votes:

0

Your Vote:

Up

Down

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

Created on Jul 8, 2016 7:01:56 AM by  Sk1X1 (0) 1



Please log in or register to enter your reply.


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.