Quantcast
Channel: THWACK: Popular Discussions - Script Lab
Browsing all 9937 articles
Browse latest View live

Exclude a content from Logfile Moitoring - Log Parser (PowerShell)

I need to monitor a logfile and find a string - if matches get an alert. However, I need to exclude 2 strings from the same. Is there a possibility that I can exclude a String from logfile monitoring -...

View Article


Image may be NSFW.
Clik here to view.

File Existence Monitor on AIX with a variable. HELP?

I'm struggling a bit with this and am wondering if it's even possible.  Is there a template or has anyone has success with an application on an AIX machine for a file existence monitor that has a...

View Article


Help needed with modifying PS script for folder age for SAM 6.2

I have the following requirements for a monitor If there are any files that exist in this location that end in "_N", with a "Date Modified" > 1 day (or 24 hours) beyond the current date, send a...

View Article

How can I have PowerShell talk to SAM and CMDB

     I have a powershell script that talks to SAM at the backend, which then talks to CMDB. PS calls SAM.exe then "Unmanage" a CI from CMDB.      # Unamanage CI in CMDB      c:\SAM\SAM.exe /BATCH /h...

View Article

can I modify the linux helper scripts

I have a requirement to log into some HP/UX boxes via Telnet to run some perl commands, can I modify the LinuxScriptHelper to log into a menu before it starts to run an application monitor component?...

View Article


DAG Failover monitor

Hi there, i was hoping someone could help me integrate a powershell script i have into SAM?  Basically, this script sits on my Exchange 2010 server, and runs every 15 minutes. it checks where each DB...

View Article

Simple Scripts Not Working

   Hi everyone! I have loaded up a test box and discovered it for NCM. I am now trying to run some test scripts to test things out but am having issues. I created a new script and copied all the info...

View Article

Image may be NSFW.
Clik here to view.

Trend Micro OfficeScan monitor for Virus Pattern file out of date

We want to be able to monitor and alert on Trend Micro OfficeScan or Deep Security clients virus pattern files when they are older than a certain number of days. I see there's an old thread on someone...

View Article


Image may be NSFW.
Clik here to view.

IIS reset with powershell

Hi there, i'd like solarwinds to automatically reset iis on a server if that server CPU goes over 50%. The server is managed using WMI, and has powershell 2.0 installed, i have this script working...

View Article


Powershell file size monitors

This is probably an easy one, I just admittedly don't know the first thing about PowerShell but I need to get some monitors built. I've got some commands that do something close to what I want but I...

View Article

ConvertDate Function returns incorrect date

I wasn't really sure where the best place to put this was I figure since it's a script question I'd put it here, even though it's a script for a SAM monitor. What I'm using is this.-> SolarWinds...

View Article

How to create a vbscript that runs a batch file on a remote server?

How to create a vbscript that runs a batch file on a remote server? I have a requirement to create a vbscript that runs a batch file (when triggered on a certain condition) on a remote server.I have...

View Article

Unable to get PS monitor to take arguments

I've a baby PS script (cut down from the existing time drift PS monitor) that I'm trying to get to take arguments from the powershell monitor.  Any help would be appreciated. The below code works fine...

View Article


PowerShell Issue - SQL Job Monitor

So. Frustrated. (but I'm sure it's something small that I'm overlooking!) I have this code: Import-Module SQLPS 3>$null[System.Reflection.Assembly]::LoadFrom("C:\Program Files (x86)\Microsoft SQL...

View Article

Powershell script for Trend Micro Virus Pattern File age monitoring

Need to build a powershell script in a custom Orion SAM component monitor template that allows us to return a value of the number of hours or days a Trend Micro OfficeScan or Deep Security client is...

View Article


Get first line of log file

Instead of searching a string in a file (SAM component monitor - number of strings found) I need only to get the first lind of a file on linux. Is there someone who could help me?

View Article

Image may be NSFW.
Clik here to view.

Embedded Newlines in message strings

I have a very long message returned from a HP/UX script with embedded newlines, these newlines terminate the string so it becomes truncated, I can remove these at the script end and replace with a...

View Article


Script to find two active instances of a process

We have a third party application that will for an unknown condition spawn a second occurrence of it self. This causes a problem for user transactions.Does anyone have a script that will detect that...

View Article

Powershell script to Unmanage and Remanage nodes (100-150) by node name

I need a PowerShell script to Unmanage and Remanage Production Servers (100-150) by node name in Solarwinds. Please assist as I am new to PowerShell and programming

View Article

Powershell Monitor not going past Initial Poll

I have a pretty simple Powershell script that isn't going past the initial poll but it tests out sucessfully, what could be the problem? Monitor:$WarningPreference = "SilentlyContinue"$StrKey =...

View Article
Browsing all 9937 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>