Hello,
I just a custom exe sensor written, and it works fine when I run it again machines in the same domain as the PRTG server.
But when I try to point my skill to another domain, it fails.
It short, the script counts the number of files in a folder
The only place I can see for setting credentials is on the device, under "credentials for windows systems". But I dont think PTRG uses these credentials for custom exe sensors. (I have tried)
The script works from the console of the server once I authenticate in windows. (but still does not work in PRTG)
So, how do I pass on the credentials to the custom exe script that in turn queries another domain?
Thanks
Article Comments
Thanks for the reply.
I would prefer to leave the script with no authentication options in it (So i can use the same script over multiple domains).
If i cannot tell PRTG to use the "windows credentials" for a custom exe script, them I might be forced to has a different set of scripts per domain.
Jul, 2014 - Permalink
Lets say your script takes -UserName and -Password as parameters. Make it look like this:
-UserName %windowsdomain\%windowsuser -Password "%windowspassword"
Then it uses the credentials that you've entered for the device :)
Jul, 2014 - Permalink
That depends on how you execute the folder count command on the remote host. If you're using Invoke-Command, you can give the script username and password and create a credential object:
Username should be in the following format: domainname-or-computername\username
Make sure to put the password in the parameter in quotes.
Jul, 2014 - Permalink