Submit a ticketCall us

Solarwinds & Cisco Live! Barcelona
Join us from the 29th of January to the 2nd of February at Cisco Live 2018 in Barcelona, where we will continue to show how monitoring the network with SolarWinds will keep you ahead of the game. At our booth (WEP 1A), we will demonstrate how SolarWinds network solutions can help. As a bonus, we are also hosting a pre-event webinar - Blame the Network, Hybrid IT Edition with our SolarWinds Head Geek™, Patrick Hubbard on January 24th - GMT (UTC+0): 10:00 a.m. to 11:00 a.m. There's still time to RSVP.

Home > Success Center > Server & Application Monitor (SAM) > Linux script execution error when running under root on HPUX template

Linux script execution error when running under root on HPUX template

Created by Karen Valdellon, last modified by MindTouch on Jun 23, 2016

Views: 1,153 Votes: 0 Revisions: 7

Overview

This article addresses the issue where Linux/Unix Script Monitor components under an HPUX template are broken and display the following errors, or similar, when executed under root credentials:

  • Linux script execution error. Scripting Error: Script does not contain the expected parameters or is improperly formatted. 'Process0', 'Process1', 'Process2', 'Process3', 'Process4', 'Process5', 'Process6', 'Process7', 'Process8', 'Process9' missing.
  • Linux script execution error. Script file creation file. The created file is corrupted.
  • The return code is different than expected. Testing on node 'xxx.xxx.xxx.xxx' failed with 'Unknown' status ('Unknown' might be different if script exits with a different exit code).perl /tmp/APM_xxxxxxxxxx.plCan't modify constant item in scalar assignment at /tmp/APM_xxxxxxxxxx.pl line 2, near ");"Execution of /tmp/APM_xxxxxxxxxx.pl aborted due to compilation errors.

Environment

SAM 6.2.4

Cause 

This occurs when the tty settings of the root account on the HPUX system are configured such that some characters are interpreted as special commands. 

Resolution

Run the script under different credentials other than the root account. If this is not possible, add the following line to the root account's .profile script:

stty erase "^H" kill "^U" intr "^C" eof "^D"

 

Last modified

Tags

Classifications

Public