Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AlmaLinux #4

Open
Veeau opened this issue Aug 13, 2021 · 4 comments
Open

AlmaLinux #4

Veeau opened this issue Aug 13, 2021 · 4 comments

Comments

@Veeau
Copy link

Veeau commented Aug 13, 2021

Hello,

Is it possible to get settings for AlmaLinux? I tried copying the Centos commands but they seem to error on "Error while executing inventory_server"

@schirrmie
Copy link
Owner

Hello,
sorry I don't have AlmaLinux and can't test it. Please look into apache error_log. You can also try to execute the commands by hand. Is every command executed successfully?

@Veeau
Copy link
Author

Veeau commented Aug 13, 2021

Thanks for the quick reply. Im not seeing anything in the Apache error logs and the only command that returns nothing is

set -o pipefail; yum list updates | tr '\n' ' ' | sed -n -e 's/^.*Updated Packages //p' | xargs -n3 | awk '{print $1}'

everything else executes ok.

@schirrmie
Copy link
Owner

First check whether this command is really the problem. Backup the line and put for testing the following in
echo "Hello World"
Now try to inventory. If it is successful you should have an package for update with "Hello World". If the line is the problem we look closer.

@buzzzo
Copy link

buzzzo commented Sep 13, 2021

Yum list updates output is not equal to centos|redhat <=7.x.

the correct "command" is:
set -o pipefail; yum list updates | tr '\n' ' ' | sed -n -e 's/^.*Available Upgrades //p' | xargs -n3 | awk '{print $1}'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants