OMS agent can't heartbeat to Azure Monitor












0















I have an Ubuntu 14.04 setup in a POC environment and i've installed the Azure OMS agent on the device but it keeps getting socket bind exceptions and it can't connect to the Azure Monitor service.



I followed the steps here: https://social.msdn.microsoft.com/Forums/azure/en-US/6cc360a4-7835-4861-b122-82a43479ccf5/microsoft-monitoring-agent-is-unable-to-connect-to-loganalytics-workspace-event-id-4008?forum=opinsights



But I don't have any firewalls setup in this environment so I am not sure where the traffic is being blocked.



Here is the specific error message:



temporarily failed to flush the buffer. next_retry=2019-02-07 02:41:03 +0000 error_class="RuntimeError" 
error="Net::HTTP.Post raises exception: SocketError,
'Failed to open TCP connection to redacted.ods.opinsights.azure.com:443 (getaddrinfo: Name or service not known)'"


Here's what I checked:




  • Port is open on the machine directly

  • Port is allowed through the VNET (allowed 443 outbound to Azure Monitor)

  • No external firewall on this subnet


So I am not sure wherelse the traffic may be getting block if the port is allowed through local firewall and the subnet, and there is no firewall. Am I overlooking something else?



Edit:
Yes I redacted the hostname. I haven't specified a host name or endpoint for the monitoring agent. As far as i'm aware you don't have to. It's working on another identical box. I followed Azure's procedure to install on Linux and started the service up: https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/oms-linux



I can ping google and otherwise access the internet.










share|improve this question

























  • (1) When you say “redacted.ods.opinsights.azure.com”, do you meanredacted.ods.opinsights.azure.com”, or do you mean that you’re keeping your host name secret?  (2) It says “getaddrinfo: Name or service not known”.  That doesn’t mean that your traffic is being blocked; it means that you’ve specified an incorrect / invalid name.  What have you done to verify that your name(s) are valid?  E.g., can you ping it/them? … … … … … … … … … … … … … … … … … Please do not respond in comments; edit your question to make it clearer and more complete.

    – Scott
    Feb 7 at 4:06


















0















I have an Ubuntu 14.04 setup in a POC environment and i've installed the Azure OMS agent on the device but it keeps getting socket bind exceptions and it can't connect to the Azure Monitor service.



I followed the steps here: https://social.msdn.microsoft.com/Forums/azure/en-US/6cc360a4-7835-4861-b122-82a43479ccf5/microsoft-monitoring-agent-is-unable-to-connect-to-loganalytics-workspace-event-id-4008?forum=opinsights



But I don't have any firewalls setup in this environment so I am not sure where the traffic is being blocked.



Here is the specific error message:



temporarily failed to flush the buffer. next_retry=2019-02-07 02:41:03 +0000 error_class="RuntimeError" 
error="Net::HTTP.Post raises exception: SocketError,
'Failed to open TCP connection to redacted.ods.opinsights.azure.com:443 (getaddrinfo: Name or service not known)'"


Here's what I checked:




  • Port is open on the machine directly

  • Port is allowed through the VNET (allowed 443 outbound to Azure Monitor)

  • No external firewall on this subnet


So I am not sure wherelse the traffic may be getting block if the port is allowed through local firewall and the subnet, and there is no firewall. Am I overlooking something else?



Edit:
Yes I redacted the hostname. I haven't specified a host name or endpoint for the monitoring agent. As far as i'm aware you don't have to. It's working on another identical box. I followed Azure's procedure to install on Linux and started the service up: https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/oms-linux



I can ping google and otherwise access the internet.










share|improve this question

























  • (1) When you say “redacted.ods.opinsights.azure.com”, do you meanredacted.ods.opinsights.azure.com”, or do you mean that you’re keeping your host name secret?  (2) It says “getaddrinfo: Name or service not known”.  That doesn’t mean that your traffic is being blocked; it means that you’ve specified an incorrect / invalid name.  What have you done to verify that your name(s) are valid?  E.g., can you ping it/them? … … … … … … … … … … … … … … … … … Please do not respond in comments; edit your question to make it clearer and more complete.

    – Scott
    Feb 7 at 4:06
















0












0








0








I have an Ubuntu 14.04 setup in a POC environment and i've installed the Azure OMS agent on the device but it keeps getting socket bind exceptions and it can't connect to the Azure Monitor service.



I followed the steps here: https://social.msdn.microsoft.com/Forums/azure/en-US/6cc360a4-7835-4861-b122-82a43479ccf5/microsoft-monitoring-agent-is-unable-to-connect-to-loganalytics-workspace-event-id-4008?forum=opinsights



But I don't have any firewalls setup in this environment so I am not sure where the traffic is being blocked.



Here is the specific error message:



temporarily failed to flush the buffer. next_retry=2019-02-07 02:41:03 +0000 error_class="RuntimeError" 
error="Net::HTTP.Post raises exception: SocketError,
'Failed to open TCP connection to redacted.ods.opinsights.azure.com:443 (getaddrinfo: Name or service not known)'"


Here's what I checked:




  • Port is open on the machine directly

  • Port is allowed through the VNET (allowed 443 outbound to Azure Monitor)

  • No external firewall on this subnet


So I am not sure wherelse the traffic may be getting block if the port is allowed through local firewall and the subnet, and there is no firewall. Am I overlooking something else?



Edit:
Yes I redacted the hostname. I haven't specified a host name or endpoint for the monitoring agent. As far as i'm aware you don't have to. It's working on another identical box. I followed Azure's procedure to install on Linux and started the service up: https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/oms-linux



I can ping google and otherwise access the internet.










share|improve this question
















I have an Ubuntu 14.04 setup in a POC environment and i've installed the Azure OMS agent on the device but it keeps getting socket bind exceptions and it can't connect to the Azure Monitor service.



I followed the steps here: https://social.msdn.microsoft.com/Forums/azure/en-US/6cc360a4-7835-4861-b122-82a43479ccf5/microsoft-monitoring-agent-is-unable-to-connect-to-loganalytics-workspace-event-id-4008?forum=opinsights



But I don't have any firewalls setup in this environment so I am not sure where the traffic is being blocked.



Here is the specific error message:



temporarily failed to flush the buffer. next_retry=2019-02-07 02:41:03 +0000 error_class="RuntimeError" 
error="Net::HTTP.Post raises exception: SocketError,
'Failed to open TCP connection to redacted.ods.opinsights.azure.com:443 (getaddrinfo: Name or service not known)'"


Here's what I checked:




  • Port is open on the machine directly

  • Port is allowed through the VNET (allowed 443 outbound to Azure Monitor)

  • No external firewall on this subnet


So I am not sure wherelse the traffic may be getting block if the port is allowed through local firewall and the subnet, and there is no firewall. Am I overlooking something else?



Edit:
Yes I redacted the hostname. I haven't specified a host name or endpoint for the monitoring agent. As far as i'm aware you don't have to. It's working on another identical box. I followed Azure's procedure to install on Linux and started the service up: https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/oms-linux



I can ping google and otherwise access the internet.







networking ubuntu ubuntu-14.04 azure






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 7 at 15:28







shelum

















asked Feb 7 at 2:39









shelumshelum

114




114













  • (1) When you say “redacted.ods.opinsights.azure.com”, do you meanredacted.ods.opinsights.azure.com”, or do you mean that you’re keeping your host name secret?  (2) It says “getaddrinfo: Name or service not known”.  That doesn’t mean that your traffic is being blocked; it means that you’ve specified an incorrect / invalid name.  What have you done to verify that your name(s) are valid?  E.g., can you ping it/them? … … … … … … … … … … … … … … … … … Please do not respond in comments; edit your question to make it clearer and more complete.

    – Scott
    Feb 7 at 4:06





















  • (1) When you say “redacted.ods.opinsights.azure.com”, do you meanredacted.ods.opinsights.azure.com”, or do you mean that you’re keeping your host name secret?  (2) It says “getaddrinfo: Name or service not known”.  That doesn’t mean that your traffic is being blocked; it means that you’ve specified an incorrect / invalid name.  What have you done to verify that your name(s) are valid?  E.g., can you ping it/them? … … … … … … … … … … … … … … … … … Please do not respond in comments; edit your question to make it clearer and more complete.

    – Scott
    Feb 7 at 4:06



















(1) When you say “redacted.ods.opinsights.azure.com”, do you meanredacted.ods.opinsights.azure.com”, or do you mean that you’re keeping your host name secret?  (2) It says “getaddrinfo: Name or service not known”.  That doesn’t mean that your traffic is being blocked; it means that you’ve specified an incorrect / invalid name.  What have you done to verify that your name(s) are valid?  E.g., can you ping it/them? … … … … … … … … … … … … … … … … … Please do not respond in comments; edit your question to make it clearer and more complete.

– Scott
Feb 7 at 4:06







(1) When you say “redacted.ods.opinsights.azure.com”, do you meanredacted.ods.opinsights.azure.com”, or do you mean that you’re keeping your host name secret?  (2) It says “getaddrinfo: Name or service not known”.  That doesn’t mean that your traffic is being blocked; it means that you’ve specified an incorrect / invalid name.  What have you done to verify that your name(s) are valid?  E.g., can you ping it/them? … … … … … … … … … … … … … … … … … Please do not respond in comments; edit your question to make it clearer and more complete.

– Scott
Feb 7 at 4:06












1 Answer
1






active

oldest

votes


















0














I reinstalled the agent using the same config and it's working now. Here are the instructions I followed



https://support.microsoft.com/en-us/help/4131455/how-to-reinstall-operations-management-suite-oms-agent-for-linux






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1402937%2foms-agent-cant-heartbeat-to-azure-monitor%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    I reinstalled the agent using the same config and it's working now. Here are the instructions I followed



    https://support.microsoft.com/en-us/help/4131455/how-to-reinstall-operations-management-suite-oms-agent-for-linux






    share|improve this answer




























      0














      I reinstalled the agent using the same config and it's working now. Here are the instructions I followed



      https://support.microsoft.com/en-us/help/4131455/how-to-reinstall-operations-management-suite-oms-agent-for-linux






      share|improve this answer


























        0












        0








        0







        I reinstalled the agent using the same config and it's working now. Here are the instructions I followed



        https://support.microsoft.com/en-us/help/4131455/how-to-reinstall-operations-management-suite-oms-agent-for-linux






        share|improve this answer













        I reinstalled the agent using the same config and it's working now. Here are the instructions I followed



        https://support.microsoft.com/en-us/help/4131455/how-to-reinstall-operations-management-suite-oms-agent-for-linux







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 8 at 14:36









        shelumshelum

        114




        114






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1402937%2foms-agent-cant-heartbeat-to-azure-monitor%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How to make a Squid Proxy server?

            Is this a new Fibonacci Identity?

            19世紀