Comments
-
Drop the 's' at the end of Statistic in your script. SAM doesn't really like the output with the 's'. Other than that the script works great.
-
What location/file path on the Solarwinds server did you place the file/script?
-
Yeah, I wrote them when suing Orion Core 2015. I've updated the doc to reflect the most recent Orion core version. Just a single service is required.
-
go ahead and create a new post about this and mention me in it. That way we don't hijack this thread. thx.
-
I've lightly looked into Plink, but haven't really tested it out. I believe it has a flag that can be set to auto-accept new ssh keys.
-
Yes, that is correct. It would have to done to each polling engine.
-
I'll add that as a feature request. Thx.
-
Try updating the SolarWinds Orion Module Service to run as either a local Windows account or an AD account. I've seen issues with Orion executing scripts when that service runs as 'Local System'.
-
Try changing the following Windows services to not run as 'Local System' and to run as either a local or domain account. Restart services once changed. * Orion Module Engine * Alerting Engine * Alerting Service v2 I've seen similar issues of the script working outside of Orion but not inside. Changing these services seem…
-
haha, nice! glad to hear it works!
-
Yeah, you should be able to adapt any of these scripts to your liking. Does the Node Disk script not cover what you're looking for for volume alerts?
-
if you used the settings above there would be no credentials since it's set to this -Dcom.sun.management.jmxremote.authenticate=false That can always be set to true, and then credentials would be required, but that falls out of the article above.
-
The default port for MySQL is TCP 3306. if you're using a non-standard port you need to explicitly add that to the Connection String in SAM.
-
Best to start a new thread on this. Tag me on that thread and we can work from there. thx
-
ngoc.phan, There are probably a few ways you could do this, depending on how you needed it to function. A basic example would be to convert the $ORIONPHONENUMBER variable into an array and the wrap everything in the TRY statement in a foreach loop. In the $SENDSMSMessage line(s) you'd also need to convert your phone…
-
Glad to hear! I'm working on adding some more scripts tailored to node CPU, Memory and Disk within the next month.
-
Yeah, the script can be reworked to accommodate server reboots. Might have to adjust what variable(s) are being passed. Or just hard code the message output stating the server was rebooted.
-
Did you follow step 5 listed at the top? If not, you'll want to make sure the beginning and end of your script have the necessary syntax.
-
All, this has been updated. There is a new requirement to get python effectively working in SAM. This is specific to step 5 above. For some reason, python was not outputting any results of print(). It looks like pywin32 redirects sys.stdout during initialization to a custom class called SafeOutput which does not implement…
-
Yeah, i've seen weird things with exit codes in SAM before. I honestly ignore them for the most part. SAM Script Component Monitors - Everything you need to know I usually just output a static value of 0 = OK, 1 = Warning and 2 = Critical and let the threshold of the component monitor handle the status/alerting.
-
Weird, I've usually seen that work. The template was set to x86 still?
-
You'll need the 32-bit versions of python and pywin installed. Remove all 64-bit versions first. Let me know if you still see any errors.
-
The biggest parts of using any scripting language in SAM are the exit codes and statistic output. As long as Windows can recognize the language, SAM should be able to use it as a component script. Here is an example for Linux/Perl, the syntax will be a little different than Python, but the principles are the same. Creating…
-
Simulating an alert will not execute the script, unfortunately. The alert needs to be triggered based off of the conditions for the script to be executed. Also, you still need to set the Orion Module Engine to run as either a local or AD user and not as local system for the script to work once the trigger conditions have…
-
This post looks like a continuation of this original post. Execute an external program The permissions of the file will be whatever user was set to run the service outlined in the original post.
-
kausti2, that is one way to reduce the alert noise but you'd want to consider other detail before you do that. There could legitimately be a larger issue at hand that this alert is eluding too. I've worked a lot with the HTTP monitor and had alerts going to certain developers. Sometimes they would complain of alerts but…
-
First, make sure that you import the file into your Solarwinds deployment. You can go to Settings > All Settings > Manage Pollers. Once imported you'll need to assign it to the node.
-
I'm pretty sure this was fixed with a recent Hot Fix for NPM.
-
So there is a possibility but there are some caveats that come with it. There are only relevant custom properties are for the node or application (There are others, but none that pertain to monitoring applications). There are no custom properties for components. So the best you could do would have a script monitor update…
-
Good points. From what I've seen there is a bug with how SAM handles exit codes and really anything outside of exit 0 fails. Anything Exit 1 or great produces a error like in the screenshot below. Once that red error occurs, SAM throws the statistic and message data out the window. In the scripts that I build i try to…