This time I wanted to try LINUX monitoring using SCOM 2012. It has been a long time since I used to setup a LINUX system and it took me a short time to remember all the basic commands. Although you don’t need that much shell hacking but it always helps if you know at least a few commands.
This post will have 4 parts:
The first and thing is to choose the appropriate distribution. There are several distributions around e.g. Fedora, CentOS, SUSE, RedHat and so on. The problem is, not all are supported by SCOM 2012 and not all are easy to setup.
Here you will find the supported configurations http://technet.microsoft.com/en-us/library/hh212713.aspx .
After a few try and errors installing different LINUX distributions I decided to setup SUSE LINUX 11.1. It is supported by Microsoft and it has a well designed setup wizard. How can you get the distribution? Got to the SUSE homepage and after registration you can download the OS from http://www.suse.com . I downloaded these two files
I used a Windows 2008 R2 SP1 Hyper-V virtual machine 50GB disk and 2GB RAM. After you downloaded the ISO files mount the first ISO file into your VM “Power on” the machine.
If you want to navigate through the menu dialogs or move your selection around you can use “TAB-Key” and to accept/confirm a selection press “ENTER”.
Part 1 – Setup SUSE LINUX
Change the keyboard layout and agree to the license terms
Select “Start Check” to check your ISO files
Select “New Installation”
Setup your region and time zone
Select “Physical Machine (Also for Fully Virtualized Guests)”
Check all your settings. If you want to change e.g. “Keyboard Layout” use TAB-Key to jump from menu to menu.
Confirm the installation…
And W00H00…the installation starts
The next step is very important, enter the root password. Root user is the equal to the Windows local administrator. Root has all permissions!
Next enter the hostname for the computer and enter a domain name. This domain name must not be a valid Active Directory domain name. Make sure you deselect “Change Hostname via DHCP” .
The next dialog is also very important. Here I turned off the firewall because it is a LAB environment and I didn’t want to have to many possibilities to fail. Turn on “VNC Remote Administration”! This will give you the possibility to connect remotely to your machine using the VNC client. Verify also the “Network Interfaces” there you should have a virtual Ethernet card and this card should be configured with DHCP.
The next step will verify the internet connection…make sure it is successful.
No I don’t want technical support, updates and so on Select “Configure Later”
Verify your data and hit “Next”
Choose which authentication method you want. I selected “Local /etc/passwd”, this uses the local passwd file to authenticate the user. The setup is equal to a Windows system in a WORKGROUP…I know the LINUX guys will hate me
Next setup a local user, in my case named SCOM
Verify the Resolution you want/need and hit “Next”
Now your installation is finished. Congratulation!
Now login using your root account and password
If everything is ok your LINUX desktop will load and you should see something like this
The problem is now you cannot use you mouse or keyboard . Microsoft has integration components for that or we just use VNC Viewer to connect to the machine.
You can download the free VNC Viewer here and install it (just the viewer not the server!) on one of your Windows clients.
After the installation start the viewer and enter the IP address of your LINUX machine followed by a :1. Yes right, enter e.g. 192.168.0.115:1 and press o.k.
Now you must login again and voilà you are able to use mouse and keyboard!
Right click “root’s Home” folder and select “Open in Terminal”
Now opens your command shell and you will be able to fool around. To check your network settings type ifconfig (its like ipconfig for Windows) and press enter. If you have a valid IP vor the eth0 adapter the you are ready for the next part.
Next time we will setup SCOM 2012…