Comments
-
Re-reading the original issue, and reading aLTeReGo's response made me go back an look at this again. What I saw was that you can successfully run it, up until you hit 28k files, at which point you get a quota violation error. This would explain the NaN message, because the error isn't a number, as was pointed out. How is…
-
I've had issues with powershell and dealing with large volumes of files in the past. Usually it's been an issue with memory. It's possible that there is a memory cap that SolarWinds is hitting due to the size. I've had better success using WMI to query the file system instead. For example doing the following: $files =…
-
SAM is expecting 2 lines to come back, one a message (optional), and another a statistic. Your output doesn't match the format that SAM is after. I'd do the following: $path = 'c:\temp'$stats = 0$msg = ''$days = 3$hours = 10$mins = 5$files = @(Get-ChildItem -Recurse -Path $path -Include '*.*' | ?{ $_.LastWriteTime -lt…
-
You can create an application group that contains the applications being monitored, and use the "Shows best status" option as the group property. Then if the application is up on either of the nodes, it'll show as up, if it's down on both nodes, it'll show as down. You can also drive alerts based on conditions that both…
-
Other than the percentage difference on volume free, I'm not sure I'm seeing a difference between your alerts. Did you change something somewhere else? The first one says: Volume type is equal to fixed disk AND volume percent available is less than or equal to 10 AND Node Name contains SMITH The second one says: Node Name…
-
In addition to zackm suggestion and adjustments, I'd try dropping the $null and out-null at the top just to validate you're not getting any errors that aren't being masked by redirection to null. You might also consider a basic SQL query to validate that SAM is actually connecting and not hiding errors there too.
-
I can't see from the screen shot, but are -TED-0805 and -TED-0811 down or not? The other nodes 0001-0018 that are in your screen shot (except 0013) are showing a critical status of a monitored child object such as memory, or hardware failure. Only 0013 is showing down in your screen shot. Can you show us your alert…
-
Are you running the commands above on the same server? What operating system, and PowerShell version are on the machine being executed against? The error suggests it cannot find command, which is found in the module NetTCPIP. You could try adding "Import-Module NetTCPIP" at the top to see if that helps.
-
As OUs are part of the DN, you can filter there. Unfortunately Active Directory itself doesn't allow you to explicitly define multiple OUs as part of the search scope, so you end up having to query everything, and then let your filter do the limiting. For example: $strFilter =…
-
From my understanding, SAM only supports multi-line output when you prefix the lines with message.<something>. In your script, you are adding a new line before $body. I suspect that it is ignoring that variable data because it's on a new line. Try removing the new line and see if you can see the full message. It might be…
-
Can you define "did not work"? Did you get any errors, or did the browser just not do anything? One of the things I noticed after we did a big upgrade on APM->SAM was some cached javascripts caused some issues, so we had to clear the browser cache to get some pages to behave properly again. Have you tried that? What…
-
Can you give a screen shot of what you have? Something like the following should work, unfortunately I don't have anything failing a fan test at the moment, so I cannot confirm...
-
That can depend on how you're monitoring the server. For example, SNMP allows you to define a location, and with that location, you can specify the site name on the server side. This can then be used to build maps, query based groups, and the likes. I don't believe WMI pulls the location information from SNMP. For Windows…
-
What's the actual error? Can you paste it? Or even a screen shot? Where do you see it? Can you do the same thing from the server running SAM without issues?
-
SAM is expecting a Statistic, and an optional message. Something like this should work... $path = 'c:\temp'$file = Get-ChildItem $path | Sort Length -Descending | Select-Object -First 1$dir_size = Get-ChildItem $path | Measure-Object -Property Length -Sum'Message.LargestFile: ' + $file.Name'Message.DirSize: ' +…
-
It's throwing the error because the query for files older than one hour returned no results. This means that $lasthour is null (or empty), causing the error to come up. It looks like the same applies to $allFiles as well. There could be a couple of causes for this. The first is a permissions issue. I noticed in the script…
-
Do you know where your predecessor may have seen that? I've never seen anything suggest that SAN attached storage be recommended, just RAID (1+0) levels. The only recommendation regarding SQL server that is "against" is having your pollers and SQL box separated by a WAN. Requirements: Requirements for SolarWinds SAM I'd…
-
How frequently does it flap above/below the threshold? Is it every other check? Or is there a handful where it's in warning/critical and then a handful when it's back to OK? You could use the "Condition must exist for more than X minutes". Or see my other response on this thread and look at using custom variables, or…
-
According to the docs, it's a case of backup, move, restore, and re-run the configuration tool. http://www.solarwinds.com/documentation/Orion/docs/MovingYourOrionNPMDatabase.pdf SolarWinds Tutorial - Orion 8.1 Database Migration Good luck!
-
For a start, what SAM version are you using? SSL monitoring was bundled with SAM starting 4.2. Whatever bug exists in the script may have been fixed/resolved by now. It also works without the need for the OpenSSL binaries. Taking a quick look at the script, CDate is being passed the format day/month/year, so what you are…
-
In addition to aLTeReGo handy information on script formatting and output, it's worth considering some other items as well. The first one is the fact that you are attempting to access what is known as an admin share. Unless you tell Solarwinds to impersonate a user, and that user has admin access to the server, or you are…
-
The problem you have is that your cURL call doesn't have a valid session. As such your request is being redirected back to the login page (which is the junk you see in the output). If you go one step further and dump the headers as well, you'll see SolarWinds is sending an HTTP Location: header, and redirecting the client.…
-
Chances are it's pulling the website URL from the SolarWinds database in the websites table. select * from websites You can do an update on that table and set the URL as needed.
-
I agree with HolyGuacamole on this being difficult with windows. Not technically that is, because setting up a simple powershell/DOS script to count the files in a directory is fairly simple, regardless of it being a UNC or not. For example: $files = (Get-ChildItem \\server\unc\path | ?{ $_.PSIsContainer -eq…
-
Do you have 5 objects that are in the state that have that event ID in it? Or just 5 applications that have that component in it? The message is telling you that you don't currently have anything that matches the criteria for the alert, and as such, won't alert. This is a good catch if you make mistakes on alerts, and…
-
While I don't mind helping out, I prefer to 'teach a man to fish'. * What have you done so far? * Are the IPs for each location within a small subset? For example, network gear is always 10.10.10.0-10 * What custom properties are you trying to pass? * What format do you plan for your CSV file? * When building to groups,…
-
With a little work, it should be possible. You don't mention what the target OS is, so I'm going to assume Windows for now, but if it's another platform, it shouldn't be too hard to figure out what I did, and adjust from there. The way I'd do this is to create an alert in "Advanced Alert Manager", with a trigger condition…
-
You might consider watching one of the ThwackCamp 2013 presentations "Leveraging the power of custom variables", which you can see here: http://bcove.me/gxpt8gqm. It goes into details on muting nodes based on variables, but if memory serves, they also discuss adjusting volume alerts based on the custom variables.
-
I think that'd entirely depend on what you mean by each of those. Are they application specific? Or are you looking at catching things like IIS errors when talking to a database? Where would these errors appear?
-
I cannot tell from the screen shot, but does that say "Fixed Disk" or "FixedDisk"? The value shouldn't have a space in it from what I can tell when trying to duplicate the alert configuration you have. In theory (happened to me) if you delete the value, you should get a drop down of text options, which should allow you to…