Comments (8)
@gl2014 try run /opt/microsoft/scx/bin/tools/GetLinuxOS.sh
, it seems only be called while installation, not very sure.
from scxcore.
Hello, Thanks for your reply. Sorry, copy/paste issue. In my solve description, it's indeed execute '/opt/microsoft/scx/bin/tools/GetLinuxOS.sh', I just corrected it in my comment.
That script updates the scx-release file correctly, a restart of the service seems to be needed for the updated info to be taken into account.
Would it be possible to be checked and updated automatically?
from scxcore.
@gl2014 I checked the code if /etc/opt/microsoft/scx/conf/scx-release
doesn't exist and /opt/microsoft/scx/bin/tools/GetLinuxOS.sh
, our code will run /opt/microsoft/scx/bin/tools/GetLinuxOS.sh
.
every time below providers be queried above code will be triggered.
SCX_UnixProcessStatisticalInformation_Class_Provider.cpp
SCX_Agent_Class_Provider.cpp
SCX_UnixProcess_Class_Provider.cpp
so needn't to restart omi, just queries will be trigger, but need to remove /etc/opt/microsoft/scx/conf/scx-release
... otherwise it will not be triggered.
from scxcore.
Thanks, after deleting the release file, an updated version has been automatically created.
So I just have to schedule a script to compare the scx-release with redhat-release and delete the scx-release if the version doens't match.
That said, the value in the OperatingSystem provider seems not to be updated unless I restart the omi service. Did you mean running a query like '"winrm enumerate http://schemas.microsoft.com/wbem/wscim/1/cim-schema/2/SCX_UnixProcess?__cimnamespace=root/scx' would have been enough? I tried it but no change.
from scxcore.
@gl2014 I check the code, the updates of OS provider will only be refreshed when OS provider first time loaded in omiagent process:
, and as I know if there is no any new query in 2~3 minutes, any provider will be unloaded.I mean restart omi is way, another way is to wait 2 minutes without any new OS provider query, and the provider will be unloaded, after that you query OS provider again, it will update.
from scxcore.
Hello, thanks for the feedback. I'll schedule check in SCOM comparing the info in scx-release and redhat-release, then if it differs delete the scx-release file and restart omi service
from scxcore.
Hi,
I don't think this is actually fixed, the OS reported in heartbeat won't change unless I delete /etc/opt/microsoft/scx/conf/scx-release and restart the agents
from scxcore.
@Klaas- if there is no this file /etc/opt/microsoft/scx/conf/disablereleasefileupdates
, the scx-release will be updated when every time GetLinuxOS.sh is called.
https://github.com/microsoft/pal/blob/master/source/code/scxsystemlib/common/GetLinuxOS.sh#L331
when restart the agents, new queries will come and GetLinuxOS.sh will be called.
from scxcore.
Related Issues (20)
- install scx crash on sles 10x64 &x86 HOT 1
- doc update for ExecuteScript
- omiagent segfault libnss_files on Linux (scx provider) HOT 1
- omiagent using 100% cpu HOT 1
- Ubuntu Performance counters for % Disk Used reporting precision HOT 1
- SCX_UnixProcess returns no results on SunOS with Zones installed HOT 1
- SCX installation fails on Ubuntu 18.04.4 HOT 18
- SCX installation error on Ubuntu 18.04
- selinux problems in linux builds HOT 2
- Checksum error for scx-1.6.4-7.universal.x64.rpm HOT 2
- Rocky Linux support HOT 1
- Give me a reason to exclude a particular file system. HOT 1
- missing 1.6.9 release HOT 2
- Post-installation script fails on RHEL 6,7,8,9 when there are readonly variables in /etc/profile HOT 4
- LAD unable to get NFS/CIFS mount point filesystem statistics HOT 1
- This repo is missing important files HOT 1
- Installing 1.7.3 on CentoOS 6 fails: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found HOT 9
- omiagent used 100% cpu with Azure Diagnostic Extension HOT 2
- "omiagent" segfault libnss_dns on Linux (scx provider) HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scxcore.