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

Installing 1.7.3 on CentoOS 6 fails: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found #188

Closed
NikPerne opened this issue Dec 8, 2023 · 9 comments

Comments

@NikPerne
Copy link

NikPerne commented Dec 8, 2023

After installing running command scxadmin failes with error:
/opt/microsoft/scx/bin/tools/.scxadmin: libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /opt/microsoft/scx/bin/tools/.scxadmin)

OS: CentOS 6.x

Previous version 1.7.0 works.

@JumpingYang001
Copy link
Contributor

JumpingYang001 commented Dec 15, 2023

@NikPerne are you SCOM user or Azure OMS user? which SCOM version and can you create ticket or ICM to SCOM support?
can you try normal package?
wget https://github.com/microsoft/SCXcore-kits/raw/master/release/scx-1.7.3-0.universal.x64.sh

I guess you used security pacakge:
wget https://github.com/microsoft/SCXcore-kits/raw/master/release/scx-1.7.3-0.universal.s.x64.sh

we tried to install security package on centos 6, also repro same issue, but this is by design.
If you are using SCOM, please help to provide repro steps so we can check if some steps or something is wrong for SCOM discover. In normal case, it should install normal package instead of security package for CentOS 6.

@NikPerne
Copy link
Author

Hello,
I try installing security package scx-1.7.3-0.universal.s.x64.sh, but error is the same. Iz installs without error, but when I try to run command scxadmin, I get:
/opt/microsoft/scx/bin/tools/.scxadmin: /usr/lib64/libstdc++.so.6: version GLIBCXX_3.4.15' not found (required by /opt/microsoft/scx/bin/tools/.scxadmin)`

Whole console print out:

[root@lastovka2 admgperko]# ./scx-1.7.3-0.universal.s.x64.sh --install
Extracting...
Installing cross-platform agent ...
----- Upgrading package: omi (omi-1.7.3-0.ulinux.s.x64) -----
Skipping package since existing version >= version available
----- Installing package: scx (scx-1.7.3-0.universal.s.x64) -----
        package scx-1.7.3-0.x86_64 is already installed
Removing cross-platform agent(s) ...
----- Removing package: apache-cimprov -----
Apache not previously configured; nothing to unconfigure
warning: /etc/opt/microsoft/apache-cimprov/conf/installinfo.txt saved as /etc/opt/microsoft/apache-cimprov/conf/installinfo.txt.rpmsave
Trying to start omi with systemctl
Trying to start omi with initctl
Trying to start omi with /sbin/service
Trying to start omi with /usr/bin/service
Trying to start omi with invoke-rc.d
Trying to start omi with -d directly
Unrecognized service controller to start omid service
----- Removing package: scx -----
warning: /etc/opt/microsoft/scx/conf/installinfo.txt saved as /etc/opt/microsoft/scx/conf/installinfo.txt.rpmsave
Trying to start omi with systemctl
Trying to start omi with initctl
Trying to start omi with /sbin/service
Trying to start omi with /usr/bin/service
Trying to start omi with invoke-rc.d
Trying to start omi with -d directly
Unrecognized service controller to start omid service
Removing selinux policy module for scxagent-logrotate ...
----- Removing package: omi -----
Shutting down Microsoft OMI Server: [FAILED]
Unconfiguring omid service ...
2023-12-18 10:49:26 : Crontab no longer configured to update omi keytab.
warning: /etc/opt/omi/conf/omiserver.conf saved as /etc/opt/omi/conf/omiserver.conf.rpmsave
Deleting omiusers group ...
groupdel: cannot remove the primary group of user 'omsagent'
Deleting omi service account ...
Removing selinux policy module for omi-logrotate ...
Removing selinux policy module for omi-selinux ...
----- Installing package: omi (omi-1.7.3-0.ulinux.s.x64) -----
Creating omi group ...
Creating omi service account ...

************************************************************
* Warning: The certificate and keyfile were not generated  *
* since they already exist.                                *
************************************************************
2023-12-18 10:50:02 : Crontab not configured to update omi keytab automatically. Skip unconfigure
2023-12-18 10:50:02 : Crontab configured to update omi keytab automatically
Checking if cron is installed...
Checking if cron/crond service is started...
Set up a cron job to OMI logrotate every 15 minutes
System appears to have SELinux installed, attempting to install selinux policy module for logrotate
  Trying /usr/share/selinux/packages/omi-selinux/omi-logrotate.pp ...
INFO: omi-logrotate selinux policy module has not yet installed due to selinux is disabled.
When enabling selinux, load omi-logrotate module manually with following commands for logrotate feature to work properly for omi logs.
/usr/sbin/semodule -i /omi-logrotate.pp >/dev/null 2>&1
/sbin/restorecon -R /var/opt/omi/log/ > /dev/null 2>&1
Configuring OMI service ...
Trying to start omi with systemctl
Trying to start omi with initctl
Trying to start omi with /sbin/service
Trying to start omi with /usr/bin/service
Trying to start omi with invoke-rc.d
Trying to start omi with -d directly
Unrecognized service controller to start omid service
----- Installing package: scx (scx-1.7.3-0.universal.s.x64) -----
Trying to start omi with systemctl
Trying to start omi with initctl
Trying to start omi with /sbin/service
Trying to start omi with /usr/bin/service
Trying to start omi with invoke-rc.d
Trying to start omi with -d directly
Unrecognized service controller to start omid service
warning: %post(scx-1.7.3-0.x86_64) scriptlet failed, exit status 2
Checking if Apache is installed ...
  Apache found, Apache agent will be installed
Extracting...
Installing Apache agent ...
----- Installing package: apache-cimprov (apache-cimprov-1.0.1-10.universal.1.x86_64) -----
Detected Apache v2.2 ...
Trying to start omi with systemctl
Trying to start omi with initctl
Trying to start omi with /sbin/service
Trying to start omi with /usr/bin/service
Trying to start omi with invoke-rc.d
Trying to start omi with -d directly
Unrecognized service controller to start omid service
Checking if MySQL is installed ...
  MySQL not found, will not install
[root@lastovka2 admgperko]# scxadmin
/opt/microsoft/scx/bin/tools/.scxadmin: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /opt/microsoft/scx/bin/tools/.scxadmin)

@JumpingYang001
Copy link
Contributor

@NikPerne try install normal package instead of secuirty package and see if it has issue?

@NikPerne
Copy link
Author

Sorry, I misread your post, done, and now it works.
How can I force this package to be picked up by SCOM wizard?

@ShirelyGu
Copy link
Member

ShirelyGu commented Dec 18, 2023

In a normal case, it will pick up the security package in SCOM 2022.
for SCOM 2019, only Redhat 6 x64, will use a normal package.
for SCOM 2016, only for RedHat 5 and RedHat 6 x64, will use a normal package.
Other platforms will still pick up security package.
Since your machine's OS is CentOS 6.x, we recommend you install the scx agent manually instead of picking it up by SCOM wizard.
If you want to be monitored by SCOM, you can add 1270 httpsport, then you can manage it by SCOM wizard.

@JumpingYang001
Copy link
Contributor

JumpingYang001 commented Dec 18, 2023

@NikPerne check below,

In a normal case, it will pick up the security package in SCOM 2022. for SCOM 2019, only Redhat 6 x64, will use a normal package. for SCOM 2016, only for RedHat 5 and RedHat 6 x64, will use a normal package. Other platforms will still pick up security package. Since your machine's OS is CentOS 6.x, we recommend you install the scx agent manually instead of picking it up by SCOM wizard. If you want to be monitored by SCOM, you can add 1270 httpsport, then you can manage it by SCOM wizard.

@JumpingYang001
Copy link
Contributor

@NikPerne you can try Shirely's work around, in fact, SCOM 2016 don't support CentOS 6.x: https://learn.microsoft.com/en-us/system-center/scom/plan-supported-crossplat-os?view=sc-om-2016

@gregaperko
Copy link

Hello,
I'm answering as Nik. I managed to switch sh packets in SCOM to normal one and now it works - I had to changed it in C:\Program Files\Microsoft System Center\Operations Manager\Server\Health Service State\Resources subfolders.
Thanks.

@JumpingYang001
Copy link
Contributor

@NikPerne @gregaperko glad to know you make it to work.
I just close this issue.

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

4 participants