{"id":2710,"date":"2011-11-29T22:20:22","date_gmt":"2011-11-29T21:20:22","guid":{"rendered":"http:\/\/contoso.se\/blog\/?p=2710"},"modified":"2011-12-07T22:56:03","modified_gmt":"2011-12-07T21:56:03","slug":"ubuntu-server-in-operations-manager","status":"publish","type":"post","link":"http:\/\/contoso.se\/blog\/?p=2710","title":{"rendered":"Ubuntu Server in Operations Manager"},"content":{"rendered":"<p>Earlier this week I did some tests around Ubuntu Server and Operations Manager 2012. I did the same in Operations Manager 2007 R2 and the way to get the monitoring to work is almost the same in both products. All challenges that I meet was the same in both products. Before we continue I would like to remind you that Ubuntu is <span style=\"text-decoration: underline;\">not support<\/span> by Microsoft in Operations Manager 2007 or 2012. The management pack and the agent I am using is <span style=\"text-decoration: underline;\">community projects<\/span> and is <span style=\"text-decoration: underline;\">not supported<\/span> either.<\/p>\n<p>I installed a X86 Ubuntu Server version 10.04.3. I configured it with a static IP-number (sudo vi \/ etc\/network\/interfaces (you might need to remove DHCP client to get that setting static sudo apt-get remove dhcp-client)), DNS settings (sudo vi \/ etc\/resolv.conf) and restarted networking (sudo \/ etc\/init.d\/networking restart). Note there is a space in front of etc,\u00c2\u00a0due to\u00c2\u00a0some security setting in the blog platform:) )<\/p>\n<p><a href=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/12\/20111207-ubuntu01.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-medium wp-image-2721\" title=\"20111207-ubuntu01\" src=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/12\/20111207-ubuntu01-300x138.jpg\" alt=\"\" width=\"300\" height=\"138\" srcset=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/12\/20111207-ubuntu01-300x138.jpg 300w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/12\/20111207-ubuntu01.jpg 560w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/12\/20111207-ubuntu01-resolve.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-medium wp-image-2722\" title=\"20111207-ubuntu01-resolve\" src=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/12\/20111207-ubuntu01-resolve-300x33.jpg\" alt=\"\" width=\"300\" height=\"33\" srcset=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/12\/20111207-ubuntu01-resolve-300x33.jpg 300w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/12\/20111207-ubuntu01-resolve.jpg 634w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>If you are in a sandbox and don&#8217;t care about the firewall you can disable it by running sudo ufw disable. I would not recommend that for production servers but I would not recommend using a <span style=\"text-decoration: underline;\">un-supported<\/span> agent either \ud83d\ude42<\/p>\n<p>The first discovery result in this error<\/p>\n<p><a href=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/12\/20111207-ubuntu03-fixDNS.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-medium wp-image-2723\" title=\"20111207-ubuntu03-fixDNS\" src=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/12\/20111207-ubuntu03-fixDNS-300x227.jpg\" alt=\"\" width=\"300\" height=\"227\" srcset=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/12\/20111207-ubuntu03-fixDNS-300x227.jpg 300w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/12\/20111207-ubuntu03-fixDNS.jpg 457w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Second try, after updated the forward and reverse DNS zones, result in this error<\/p>\n<p><a href=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/12\/20111207-ubuntu04.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-medium wp-image-2724\" title=\"20111207-ubuntu04\" src=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/12\/20111207-ubuntu04-300x228.jpg\" alt=\"\" width=\"300\" height=\"228\" srcset=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/12\/20111207-ubuntu04-300x228.jpg 300w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/12\/20111207-ubuntu04.jpg 456w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>As I didn&#8217;t had a management pack for Ubuntu or a Ubuntu\u00c2\u00a0agent I thought that could be a good next step. There is a Ubuntu\u00c2\u00a0<a href=\"http:\/\/scxagentubuntu10.codeplex.com\/\">agent<\/a> and a Ubuntu\u00c2\u00a0<a href=\"http:\/\/scxmpubuntu10.codeplex.com\/\">management pack<\/a> at Codeplex that you can download and extract. You will notice there is two GetOSVersion.sh files, according to instruction at Codeplex you should use these files and replace the default file on your management server (C:\\Program Files\\System Center Operations Manager 2012\\Server\\AgentManagement\\UnixAgents). Operations Manager copies this file over to the Linux\/UNIX machine (\/ tmp\/scx-username) during discovery and executes the script. The script will get what kind of Linux\/UNIX it is and report back to Operations Manager,\u00c2\u00a0that decides if it has a management pack or not for the version. The challenge is that we had two files, to decide which one to use you can copy them over to your Ubuntu machine and manually run the, You will then see that only the GetOSVersion.sh that came with the management pack returns valid XML. In other word copy the GetOSVersion.sh from the agent folder to your UnixAgents folder on the management server.<\/p>\n<p><a href=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/12\/20111207-ubuntu05-agentGetOS.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-medium wp-image-2727\" title=\"20111207-ubuntu05-agentGetOS\" src=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/12\/20111207-ubuntu05-agentGetOS-300x71.jpg\" alt=\"\" width=\"300\" height=\"71\" srcset=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/12\/20111207-ubuntu05-agentGetOS-300x71.jpg 300w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/12\/20111207-ubuntu05-agentGetOS.jpg 337w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/12\/20111207-ubuntu05-mpGetOS.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-medium wp-image-2728\" title=\"20111207-ubuntu05-mpGetOS\" src=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/12\/20111207-ubuntu05-mpGetOS-300x37.jpg\" alt=\"\" width=\"300\" height=\"37\" srcset=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/12\/20111207-ubuntu05-mpGetOS-300x37.jpg 300w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/12\/20111207-ubuntu05-mpGetOS.jpg 641w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/12\/20111207-ubuntu06-CopyFile01.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-medium wp-image-2729\" title=\"20111207-ubuntu06-CopyFile01\" src=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/12\/20111207-ubuntu06-CopyFile01-300x68.jpg\" alt=\"\" width=\"300\" height=\"68\" srcset=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/12\/20111207-ubuntu06-CopyFile01-300x68.jpg 300w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/12\/20111207-ubuntu06-CopyFile01.jpg 868w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>After that I still had some problem with the discovery, so I installed the agent manually on the Ubuntu machine (sudo dpkg -i scx-1.0.4-265.Ubuntu.10.x86.deb) and restarted the server (sudo reboot). After reboot I\u00c2\u00a0verified\u00c2\u00a0that Microsoft SCX CIM server was running (ps \u00e2\u20ac\u201cef|grep scx).<\/p>\n<p><a href=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/12\/20111207-ubuntu08-GetSCX.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-medium wp-image-2732\" title=\"20111207-ubuntu08-GetSCX\" src=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/12\/20111207-ubuntu08-GetSCX-300x48.jpg\" alt=\"\" width=\"300\" height=\"48\" srcset=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/12\/20111207-ubuntu08-GetSCX-300x48.jpg 300w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/12\/20111207-ubuntu08-GetSCX.jpg 645w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>Then I ran the discovery again and a new error showed up. As you can see in the picture below there seems to be a problem with the certificate that the Ubuntu machine is trying to use. Normally the Linux machine will get a certificate signed by the management server, during the discovery. But in this example we installed the agent manually so the certificate is self-signed by the Ubuntu machine. If you copy the certificate file (\/ etc\/opt\/microsoft\/scx\/ssl\/scx-host-ubuntu02.pem) to a Windows machine and rename it to .cer you can open it and look at it. To solve this certificate issue, copy the certificate from your Linux box to your management server, run scxcertconfig -sign scx-host-&lt;hostname&gt;.pem scx_new.pem. Then rename scx_new.pem to the name of your Linux generated certificate and replace it on your Linux box. Restart the SCX\u00c2\u00a0service\u00c2\u00a0(sudo scxadmin -restart).<\/p>\n<p><a href=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/12\/20111207-ubuntu10-DiscIssue.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-medium wp-image-2734\" title=\"20111207-ubuntu10-DiscIssue\" src=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/12\/20111207-ubuntu10-DiscIssue-300x227.jpg\" alt=\"\" width=\"300\" height=\"227\" srcset=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/12\/20111207-ubuntu10-DiscIssue-300x227.jpg 300w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/12\/20111207-ubuntu10-DiscIssue.jpg 458w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/12\/20111207-ubuntu11-CertIssue1.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-medium wp-image-2738\" title=\"20111207-ubuntu11-CertIssue\" src=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/12\/20111207-ubuntu11-CertIssue1-300x175.jpg\" alt=\"\" width=\"300\" height=\"175\" srcset=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/12\/20111207-ubuntu11-CertIssue1-300x175.jpg 300w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/12\/20111207-ubuntu11-CertIssue1.jpg 978w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/12\/20111207-ubuntu12-newCert.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-medium wp-image-2741\" title=\"20111207-ubuntu12-newCert\" src=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/12\/20111207-ubuntu12-newCert-300x94.jpg\" alt=\"\" width=\"300\" height=\"94\" srcset=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/12\/20111207-ubuntu12-newCert-300x94.jpg 300w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/12\/20111207-ubuntu12-newCert.jpg 887w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>After that the discovery worked fine and the Ubuntu machine showed up healthy in the console. Don&#8217;t forget to configure accounts and profiles\u00c2\u00a0for your Ubuntu machine<\/p>\n<p><a href=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/12\/20111207-ubuntu15-Working1.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-medium wp-image-2743\" title=\"20111207-ubuntu15-Working\" src=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/12\/20111207-ubuntu15-Working1-300x38.jpg\" alt=\"\" width=\"300\" height=\"38\" srcset=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/12\/20111207-ubuntu15-Working1-300x38.jpg 300w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/12\/20111207-ubuntu15-Working1-1024x130.jpg 1024w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/12\/20111207-ubuntu15-Working1.jpg 1120w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p style=\"text-align: center;\">\u00c2\u00a0<span style=\"color: #ff0000;\">Please note that this is un-supported by Microsoft and provided \u00e2\u20ac\u0153as is\u00e2\u20ac\u009d with no warranties at all.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Earlier this week I did some tests around Ubuntu Server and Operations Manager 2012. I did the same in Operations Manager 2007 R2 and the way to get the monitoring to work is almost the same in both products. All challenges that I meet was the same in both products. Before we continue I would &hellip; <a href=\"http:\/\/contoso.se\/blog\/?p=2710\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[61,19],"tags":[],"_links":{"self":[{"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2710"}],"collection":[{"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2710"}],"version-history":[{"count":25,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2710\/revisions"}],"predecessor-version":[{"id":2751,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2710\/revisions\/2751"}],"wp:attachment":[{"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2710"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2710"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2710"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}