{"id":351,"date":"2018-10-01T18:47:53","date_gmt":"2018-10-02T00:47:53","guid":{"rendered":"http:\/\/draith.com\/?p=351"},"modified":"2018-10-01T18:47:53","modified_gmt":"2018-10-02T00:47:53","slug":"scom-1807-linux-omiagent-service-stopped-403-error-in-discovery-and-more","status":"publish","type":"post","link":"https:\/\/draith.com\/?p=351","title":{"rendered":"SCOM 1807, Linux omiagent service stopped, 403 error in discovery and more"},"content":{"rendered":"<p>I hope this post saves you some time and pain &#8211; I lost 2 days to troubleshooting and opening cases.  Here is the setup:<\/p>\n<p>OpsMgr 1807<br \/>\nLatest Linux\/Unix MP (updated in August, 2018)<br \/>\nOEL 7.x client<br \/>\nFollowed the instructions here:  <a href=\"https:\/\/docs.microsoft.com\/en-us\/system-center\/scom\/deploy-linux-agent-install?view=sc-om-1801\" rel=\"noopener noreferrer\" target=\"_blank\">SCOM 1801\/1807 Install<\/a><\/p>\n<p>The agent install went fine &#8211; install completed, cert created, conf file created and configured, cert signed by the OpsMgr server and replaced on the client, and the agent restarted.  That&#8217;s when I checked &#8216;scxadmin -status&#8217;.  Omiserver was running, but omiagent was stopped.  Only one log was created &#8211; omiserver.log, and nothing for the agent.  Trying to start or restart via scxadmin yielded nothing.  No feedback, no updates to logs, nothing.  Even doing the install with &#8211;debug or settings the logs to verbose did nothing.  So what happened?<\/p>\n<p>Turns out, the omiagent process won&#8217;t start until a successful discovery is ran in the console.  Who knew?  Turns out that I didn&#8217;t.  Two days lost trying to troubleshoot.  I knew that a discovery was needed, but I assumed that the agent processes would be running ahead of time.  Turns out they don&#8217;t all run before the discovery.<\/p>\n<p>So, run over to the console and try to do the discovery only to immediately get a 403 error.  Specifically, &#8220;The WinRM client received an HTTP status code of 403 from the remote WS-Management service.&#8221;  Turns out this one is an easy fix, at least in my instance.  My environment, like most in the corporate world, uses proxy servers.  On the MS, a quick &#8220;netsh winhttp set proxy proxy-server=&#8221;http=<proxyserver>&#8221; bypass-list=&#8221;*.yourdomain.com&#8221;&#8221; was all it took to fix the issue.<\/p>\n<p>Once the discovery ran fine, it took about 5 minutes before the omiagent on the Linux machine was up and running on it&#8217;s own.  <\/p>\n<p>I hope this saves someone a few minutes of troubleshooting &#8211; if it does, shoot me a tweet!  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>I hope this post saves you some time and pain &#8211; I lost 2 days to troubleshooting and opening cases. Here is the setup: OpsMgr 1807 Latest Linux\/Unix MP (updated in August, 2018) OEL 7.x client Followed the instructions here: SCOM 1801\/1807 Install The agent install went fine &#8211; install completed, cert created, conf file &hellip; <a href=\"https:\/\/draith.com\/?p=351\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;SCOM 1807, Linux omiagent service stopped, 403 error in discovery and more&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-351","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/draith.com\/index.php?rest_route=\/wp\/v2\/posts\/351","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/draith.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/draith.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/draith.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/draith.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=351"}],"version-history":[{"count":0,"href":"https:\/\/draith.com\/index.php?rest_route=\/wp\/v2\/posts\/351\/revisions"}],"wp:attachment":[{"href":"https:\/\/draith.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=351"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/draith.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=351"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/draith.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}