Microsoft System Center Operations Manager Linux Add-On

SCOM Agent auf SLES installieren

#Teil 1 installieren

rpm -i /tmp/scx-1.5.1-184.sles.11.x64.rpm
/etc/init.d/scx-cimd restart
cp -frv /etc/opt/microsoft/scx/ssl/scx-host-`hostname`.pem /mnt/cd_save/scom/cert_req/
Zerti req. vom SCOM signieren lassen

#####################################
#Teil 2 nach Signieren

cp -frv  /etc/opt/microsoft/scx/ssl/scx-host-`hostname`.pem /etc/opt/microsoft/scx/ssl/scx-host-`hostname`.pem_cert_req_`date '+%Y-%m-%d-%H_%M_%S'`
cp -frv /tmp/scx-host-`hostname`.pem /etc/opt/microsoft/scx/ssl/
ls -al /etc/opt/microsoft/scx/ssl/
chmod 444 /etc/opt/microsoft/scx/ssl/scx-host-`hostname`.pem
chown root:root /etc/opt/microsoft/scx/ssl/scx-host-`hostname`.pem
/etc/init.d/scx-cimd restart
export HISTIGNORE="&:[ ]*:exit"
 yast users add verbose username="scom" uid="50058" cn="SCOM Agent" password="PASSWORT"
ls -al /etc/opt/microsoft/scx/ssl/
cat /etc/passwd | grep -i scom

###########################
Self Check

"netstat -apn | grep -i 1270" ->
	tcp        0      0 0.0.0.0:1270            0.0.0.0:*               LISTEN      13177/omiserver
"tcpdump -vvv -nn -X -i eth0 port not 22 and port 1270"
"ps -ef | grep -i microsoft" ->
	root      5914     1  0 Jun08 ?        00:01:14 /opt/microsoft/scx/bin/omiserver -d
	
###########################
Zusatz Kommandos:

Zertis:
	"/opt/microsoft/scx/bin/tools/scxsslconfig -f -v" = Zertifaktanfrage erneut genreiern
	"cd /etc/opt/microsoft/scx/ssl" = Zertifkate

"cd /var/opt/microsoft/scx/log" = Log Files

"/etc/init.d/scx-cimd restart" = CIMd restarten

"scxadmin -log-list" = Log Level ansehn
		"scxadmin -log-set all verbose" = Loglevel erhöhen
		
"/etc/init.d/scx-cimd restart" = Restart Agent
	"scxadmin -restart" = restart Agent

"scxadmin -status"

#Agent Checks manuell ausführen
	"/opt/microsoft/scx/bin/tools/omicli ei root/scx SCX_Agent"
	"/opt/microsoft/scx/bin/tools/omicli ei root/scx SCX_FileSystem"
	"/opt/microsoft/scx/bin/tools/omicli ei root/scx SCX_UnixProcess"
	"cat /var/opt/microsoft/scx/log/scx.log"

"/opt/microsoft/scx/bin/tools/omicli id" =  ID Infos
"/opt/microsoft/scx/bin/omiserver -p" = File Locations

########################################################################
#Troubleshooting
	
"lynx http://social.technet.microsoft.com/wiki/contents/articles/19527.scom-2012-r2-manually-installing-and-troubleshooting-linuxunix-agents.aspx"

Problem:
	sles272:~ # scxadmin -status
		omiserver: is running
		omiagent: is stopped

Lösung
	"/opt/microsoft/scx/bin/tools/omicli ei root/scx SCX_UnixProcess"
		"/opt/microsoft/scx/bin/tools/omicli: error while loading shared libraries: libomiclient.so: cannot open shared object file: No such file or directory"
	"strace /opt/microsoft/scx/bin/tools/omicli ei root/scx SCX_UnixProcess"
	"ln -s /opt/microsoft/scx/lib/libomiclient.so /lib64/libomiclient.so"
	"ln -s /opt/microsoft/scx/lib/libmicxx.so /usr/lib64/libmicxx.so"
		Info:
		"lynx http://cvs.opengroup.org/cgi-bin/viewcvs-omi.cgi/*checkout*/omi/doc/omi/omi.html?rev=1.1"
			libmicxx.so – the C++ provider support library.
			libomiclient.so – the C++ binary protocol client library.
			libomiidentify.so – the identify provider (OMI_Identify class). 
	ggf.
	"/opt/microsoft/scx/bin/tools/omicli ei root/scx SCX_Agent"
	"/opt/microsoft/scx/bin/tools/omicli ei root/scx SCX_FileSystem"
	"/opt/microsoft/scx/bin/tools/omicli ei root/scx SCX_UnixProcess"
########################################################################
SCOM Agents für Linux Advanced Edition:
	da zwischen Microsoft und Linux immer noch Welten liegen und
	die mitgeliferten SCOM Check Template sehr mangelhat sind, ist es empfehlenswert,
	alle Linux checks mittels der Icinga/Nagios Plugins zu checken.
	Diese im SCOM via "UNIX/Linux Shell Command" Script ansprechen lassen.
	Rückgabe werte selber definieren und Leistungsdaten können nur Integer sein.
	
	Mehr Infos unter: https://operatingquadrant.com/2012/01/30/opsmgr-2012-unixlinux-authoring-templates-shell-command/
	
########################################################################

Post Revisions: