SCOM: SCX Source Code
Die System Center Cross Platform Solutions wurde von Microsoft als Open Source Produkt auf Codeplex bereitgestellt. Dies hat den Vorteil, dass man die SCX an andere Linux Systeme anpassen und selber nachschauen kann, wie Microsoft programmiert. Bei einer Recherche ist mir folgender Codeausschnitt aufgefallen:
#elif defined(sun) // According to the Pegasus Solaris implementation they don't know how // to determine this number, but they still return 0 for unlimited. nolu = 0; return true; #else // Thanks to the glory of free software there is no limit on the number of users! nolu = 0; return true; #endif
Gefunden in osinstance.cpp unter http://scx.codeplex.com/SourceControl/changeset/view/32074#
Monitoring Fedora Core 4 with SCOM 2007 R2 – Part 2
The creation of the troja management pack is easy. You only have to add to discovery tasks which create the RHEL4 computer object and the operating system object and fills them with some basic informations.
In the authoring console you have the add a reference to the Microsoft.Linux.RHEL.4 MP because we will use the RHEL4 Computer object.
This is the XML code of the first discovery task:
Discovery $Target/Property[Type=”Unix!Microsoft.Unix.Computer”]/NetworkName$ [http://schemas.microsoft.com/wbem/wscim/1/cim-schema/2/SCX\_OperatingSystem?\__cimnamespace=root/scx][1] false 300 //*[local-name()=”Caption”] .\*Fedora Core release 4.\* $MPElement[Name=”RHEL4!Microsoft.Linux.RHEL.4.Computer”]$ $MPElement[Name=”Unix!Microsoft.Unix.Computer”]/PrincipalName$ $Target/Property[Type=”Unix!Microsoft.Unix.Computer”]/PrincipalName$ $MPElement[Name=”Unix!Microsoft.Unix.Computer”]/TimeZoneOffset$ $Data///*[local-name()=”CurrentTimeZone”]$
Monitoring Fedora Core 4 with SCOM 2007 R2 – Part 1
Fedora bases upon Red Hat Enterprise linux which is supported by SCOM. Fedora Core 3 was the base of RHEL 4 and Fedora Core 6 RHEL 5. In this blog posts I will try to convince SCOM that the Fedora 4 based Asterisk telecom system is a RHEL 4.
First we have to install the RHEL4 scom agent manual onto the systems. In this case we had to install the OpenSSL library, too. Additional we add the scom user account to the system.
After that we sign the local created certificate by the scom server and replace it on the Fedora system.
Now we can test the connection from the SCOM server with this winrm command:
winrm enumerate http://schemas.microsoft.com/wbem/wscim/1/cim-schema/2/SCX_OperatingSystem?__cimnamespace=root/scx -username:scomuser -password:yourpassword -r:https://your.fedora.system:1270/wsman -auth:basic -encoding:UTF-8
The output shows detail information about the OS:
SCOM: Überprüfen des Cross-Platform Zertifikates
Das von Agentsetup automatisch erstellte Zertifikat auf einem Linux Client kann u.U. auf den falschen Hostnamen ausgestellt sein. Um das SCOM Zertifikat zu überprüfen kann folgende Kommandozeile auf dem Linux/Unix System ausgeführt werden:
openssl x509 -in /etc/opt/microsoft/scx/ssl/scx-host-
.pem -noout –text
So sieht dann die Ausgabe aus:
Certificate:
Data:
Version: 1 (0x0)
SCOM: Integration von Ubuntu
System Center Operations Manager 2007 R2 unterstützt von sich aus bereits die Linux Derivate RedHat und SuSe.
Vor Weihnachten habe ich mich noch mit dieser guten aber komplexeren Anleitung herumgeschlagen, um das RedHat Paket per Alien in ein Debian Paket umzuwandeln:
http://www.muscetta.com/2009/05/30/installing-the-opsmgr-2007-r2-scx-agent-on-ubuntu/
Es funktioniert auch gut mit x86 und x64 Systemen.
Mittlerweile hat mich ein Kollege auf folgendes fertige Paket auf codeplex hingewiesen:
http://scxagentubuntu10.codeplex.com/
dort gibt es bereits ein fertiges x86 Paket und ein passendes Managementpack. Beide Wege führen zum Ziel: Überwachung eines Ubuntu/Debian Systems. Der zweite ist aber deutlich einfacher :-)