Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 176483

[JIRA] (HHQ-5878) Hyperic agent script cannot start if COLUMNS environment variable is set to small value

$
0
0

Tal Goldman created HHQ-5878:

-


 

             Summary: Hyperic agent script cannot start if COLUMNS environment variable is set to small value

                 Key: HHQ-5878

                 URL: https://jira.hyperic.com/browse/HHQ-5878

             Project: Hyperic HQ

          Issue Type: Bug

          Components: Agent / PDK

    Affects Versions: 6.0

         Environment: Redhat 6.1

            Reporter: Tal Goldman

            Assignee: Tal Goldman

            Priority: Minor

 

 

Hyperic agent script cannot start if COLUMNS environment variable is set in UNIX enviroment.

 

When we issue the following command:

$/xxx/agent-5.0.0-EE/bin/hq-agent.sh start

 

The following was printed:

Starting HQ Agent......Removed stale pid file:

/local/install/cfgsas1/config/Lev1/Web/SASEnvironmentManager/agent-5.0.0-EE/wrap

per/sbin/../../wrapper/hq-agent.pid

WARNING: HQ Agent may have failed to start.

 

Our team concluded that the COLUMNS environment variable was set and was causing the agent start script to misread the agent pid file. When the agent script greps the output of the ps command for sbin/wrapper it does not find it.

 

because ps is honoring his COLUMNS environment variable. When COLUMNS is not set, everything works as expected. The fix is fairly simple - unset COLUMNS before running ps, in the getpid() functions in the script(s). This should be done in the shell versions of the script:

 

getpid() {

pid=""

+ unset COLUMNS

if [ -f "$PIDFILE" ]

then

if [ -r "$PIDFILE" ]

 

Another solution is to add 'ww' to the ps args when executed.

 

--

This message is automatically generated by JIRA.

If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.hyperic.com/secure/ContactAdministrators!default.jspa

For more information on JIRA, see: http://www.atlassian.com/software/jira

 

       

 


Viewing all articles
Browse latest Browse all 176483

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>