This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

Linux/UNIX SSH Monitor Script Test

Hi I haven't used this test before and what i am trying to attempt is to SSH into an appliance with predefined menu options that doesn't accept script commands from perl, sh, bash, etc... that I can tell.  I am trying to run a command and see the output returned to know if the appliance is up and operational.  I was debugging what the Linux/Unix SSH Monitor Script was seeing and i am getting the information below.  It looks like it wants to send the shell command with SSH Send I am assuming? Does anyone know a method I could use to SSH to the device and get output back from a command and monitor the string to make sure the device is working as expected?  I was thinking of using our NCM Module to do this which I probably could pull off but not sure how to monitor and alert that its running.  Thanks

2018-12-19 16:32:24,249 [STP SmartThreadPool Thread #202] [C4840] DEBUG SolarWinds.APM.Probes.ProbeBase`1 - Remaining Time: 290.9843741 sec.

2018-12-19 16:32:24,249 [STP SmartThreadPool Thread #202] [C4840] DEBUG SolarWinds.APM.Probes.Script.LinuxScriptHelper - Setting SSH Column Count to 200

2018-12-19 16:32:24,249 [STP SmartThreadPool Thread #202] [C4840] DEBUG SolarWinds.APM.Probes.Script.LinuxScriptHelper - SSH Control will output debug log to ""

2018-12-19 16:32:24,249 [STP SmartThreadPool Thread #202] [C4840] DEBUG SolarWinds.APM.Probes.Script.LinuxScriptHelper - Running Script on 10.50.X.X

2018-12-19 16:32:24,249 [STP SmartThreadPool Thread #202] [C4840] DEBUG SolarWinds.APM.Probes.Script.LinuxScriptHelper - Opening SSH Connection to 10.50.X.X

2018-12-19 16:32:26,343 [STP SmartThreadPool Thread #202] [C4840] DEBUG SolarWinds.APM.Probes.Script.LinuxScriptHelper - SSH Send: sh

2018-12-19 16:32:28,359 [STP SmartThreadPool Thread #202] [C4840] DEBUG SolarWinds.APM.Probes.Script.LinuxScriptHelper - SSH Read (wait for prompt: False)

2018-12-19 16:32:28,359 [STP SmartThreadPool Thread #202] [C4840] DEBUG SolarWinds.APM.Probes.Script.LinuxScriptHelper - SSH Read: sh

Last login: Wed Dec 19 11:33:10 2018 from 10.50.X.X

PSe  1.00-01 Command Line Shell - Copyright (c) 2001-2015 SafeNet, Inc. All rights reserved.

Update:1/4/2018 I think the Linux/Unix SSH Monitor Script will not work with Appliances since they do not have a traditional Linux/Unix interface.  Luckily we had Network Configuration Manager which I used to pull down the command output and then used a log file monitor to check the file for a string.  I had to add additional application monitoring for this that would monitor TCP 22 port and also check the age of this file to make sure its being pulled in a timely manner but other than that this worked.  Need to put in a feature request to have Solarwinds do SSH Output monitoring that doesn't rely on the system being Linux/Unix.  Was able to accomplish this test very easily with our last monitoring product Hostmonitor, hopefully this will be added soon to Solarwinds.