Search found 5 matches

by jjohnso7
Mon Sep 12, 2016 1:57 pm
Forum: Configuration, Maintenance, Troubleshooting
Topic: Need To Get Server Name In PowerShell
Replies: 5
Views: 15766

If I pass a parameter to PowerShell containing a file path, it goes in a field <Params>. Can I use that variable name in <Params> to pass info to an alert that sends an email with an attachment of the same file name? Like this: Attach File <Params>
by jjohnso7
Mon Sep 12, 2016 9:02 am
Forum: Configuration, Maintenance, Troubleshooting
Topic: Need To Get Server Name In PowerShell
Replies: 5
Views: 15766

Need To Get Server Name In PowerShell

HostMonitor periodically runs a test on a list of servers. The test calls PowerShell via Shell Script. Maybe Host Monitor could pass the Server Being Tested name via an input parameter.
by jjohnso7
Fri Sep 09, 2016 3:59 pm
Forum: Configuration, Maintenance, Troubleshooting
Topic: Need To Get Server Name In PowerShell
Replies: 5
Views: 15766

Need To Get Server Name In PowerShell

Host Monitor knows what the server name is. Is there any way I can get the ServerName into a PowerShell Script?
by jjohnso7
Thu Aug 25, 2016 7:10 am
Forum: Configuration, Maintenance, Troubleshooting
Topic: Script Returns No Result
Replies: 3
Views: 12232

Your changes worked.

Thank you!

James
by jjohnso7
Wed Aug 24, 2016 3:22 pm
Forum: Configuration, Maintenance, Troubleshooting
Topic: Script Returns No Result
Replies: 3
Views: 12232

Script Returns No Result

I set up HostMonitor to run a shell script to get some data from a server. I have a Powershell script pasted into the HostMonitor script manager. The script runs and writes an output text file. However, HostMonitor complains when the script completes and says, Error: Script returns no results. I hav...