guluo created AMBARI-26279:
------------------------------

             Summary: ambari-agent prints logs that netstat command not found 
                 Key: AMBARI-26279
                 URL: https://issues.apache.org/jira/browse/AMBARI-26279
             Project: Ambari
          Issue Type: Improvement
          Components: ambari-agent
         Environment: ambri trunk

centos7
            Reporter: guluo
            Assignee: guluo


In ambari-agent.log, the following information will be printed

INFO 2025-01-10 18:34:14,557 log_process_information.py:41 - Command 'netstat 
-tulpn' returned 127. /bin/bash: netstat: command not found

 

The Reason:

On Centos or Ubuntu, by default,net-tools is not installed, so there is no 
'netstat' command. 

ambari-agent will use this command during the running, therefore, the above log 
would be printed when net-tools is not installed.

So, I think that we should set net-tools as dependency of ambari-agent.

And when installing ambari-agent, the net-tools will be automatically installed 
if it's not installed



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@ambari.apache.org
For additional commands, e-mail: issues-h...@ambari.apache.org

Reply via email to