The most recent content from our members.
Hi everyone, I am attempting to create a Windows script monitor component using Python. I have installed ActivePython2.7 along with corresponding version of Pywin32 onto my Orion server. But when I perform the suggested test, I get the above error. C:\Users\myuser>python C:\Users\myuser\Desktop\TestScript.py test…
Hello This one is (in my head at least) quite simple and straight forward, how come we can't have a powershell component run with administrator permissions on a node with an agent installed? My request should in theory be quite simple to add, just a checkbox in the powershell component saying "Run as administrator", and…
As the title says, I have a script that works fine on a server when testing in ISE, but when added as a PS script component I get a failure. Here's the script I'm using: $pageLife = (get-counter -Counter "\SQLServer:Buffer Manager\Page Life Expectancy").CounterSamples.CookedValue $lazyWrites = (get-counter -Counter…
I am trying to run a Powershell monitor that outputs data from a SQL select statement, so that I can use the data in my alert bodies. The below script runs against my database, and outputs a statistic value in char form. $results = Invoke-Sqlcmd -Query "set nocount on;begin select ip.policyno as [Stat1] from…
Hello fellow Thwack Heads. I am hoping someone could help me here. I have been tasked with seeing if there is a way to monitor if a directory folder is accessible or not. I have looked over Thwack for suggestions and have found some but nothing that is clean and will give me what I actually need. I am hoping someone has an…
It looks like you're new here. Sign in or register to get started.