monit failed protocol test [HTTP] at [localhost]:8080Make monit wait longer before thinking something is deadmysql monitoring with monitmonit reporting “connection failure” when actually a “content failure”?Monit won't start: “Cannot translate '<hostname>' to FQDN name — nodename nor servname provided”Issues in monitoring apache tomcat server using MonitAwaken monit daemon every few hours for all monitored processesExecute custom monit script upon failure to restart the processI have two Mysql servers running on Centos7 . both using different ports. have to manually boot on start.Monit cannot read contentHow to configure monit, check process to start program when only filesystem is available?Monit throwing failed protocol test [HTTP] instead of starting process

What is the right way to float a home lab?

Is it OK to bring delicacies from hometown as tokens of gratitude for an out-of-town interview?

Movie where a boy is transported into the future by an alien spaceship

Avoiding cliches when writing gods

What's the correct term for a waitress in the Middle Ages?

Applicants clearly not having the skills they advertise

What does it mean by "d-ism of Leibniz" and "dotage of Newton" in simple English?

Is the decompression of compressed and encrypted data without decryption also theoretically impossible?

Working in the USA for living expenses only; allowed on VWP?

Does Peach's float negate shorthop knockback multipliers?

Poisson distribution: why does time between events follow an exponential distribution?

Is it possible for people to live in the eye of a permanent hypercane?

You've spoiled/damaged the card

Diet Coke or water?

The ring of global sections of a regular scheme

Did Darth Vader wear the same suit for 20+ years?

How bad would a partial hash leak be, realistically?

Short story written from alien perspective with this line: "It's too bright to look at, so they don't"

Chopin: marche funèbre bar 15 impossible place

Comma Code - Ch. 4 Automate the Boring Stuff

In this example, which path would a monster affected by the Dissonant Whispers spell take?

How to pass a regex when finding a directory path in bash?

Pros and cons of writing a book review?

California: "For quality assurance, this phone call is being recorded"



monit failed protocol test [HTTP] at [localhost]:8080


Make monit wait longer before thinking something is deadmysql monitoring with monitmonit reporting “connection failure” when actually a “content failure”?Monit won't start: “Cannot translate '<hostname>' to FQDN name — nodename nor servname provided”Issues in monitoring apache tomcat server using MonitAwaken monit daemon every few hours for all monitored processesExecute custom monit script upon failure to restart the processI have two Mysql servers running on Centos7 . both using different ports. have to manually boot on start.Monit cannot read contentHow to configure monit, check process to start program when only filesystem is available?Monit throwing failed protocol test [HTTP] instead of starting process






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I get the error "monit failed protocol test [HTTP] at [localhost]:8080" every so often. The application, tomcat, has not stopped and is still running just fine. I know port 8080 is open because I can get to it in the browser on my personal PC ( so NOT localhost ). What else can I check to see what is happening?



Some logs in response to questions from someone else:



It happened again this morning at 3:26 or 3:27 am this morning, so here are, first of all, the monit log for the time in question:



[EDT May 19 03:26:01] info : Reinitializing monit daemon
[EDT May 19 03:26:01] info : 'newapp.turnsmith.com' Monit reloaded
[EDT May 19 03:26:01] error : 'tomcat' failed protocol test [HTTP] at [localhost]:8080 [TCP/IP] -- HTTP error: Server returned status 404
[EDT May 19 03:26:01] info : 'tomcat' start: '/etc/init.d/tomcat start'
[EDT May 19 03:26:01] error : 'tomcat' failed protocol test [HTTP] at [localhost]:8080 [TCP/IP] -- HTTP error: Server returned status 404
[EDT May 19 03:27:01] error : 'tomcat' failed protocol test [HTTP] at [localhost]:8080 [TCP/IP] -- HTTP error: Server returned status 404
[EDT May 19 03:27:01] info : 'tomcat' start: '/etc/init.d/tomcat start'


And here is the log from http, error_log:



[Sun May 19 03:26:01.573204 2019] [auth_digest:notice] [pid 3625] AH01757: generating secret for digest authentication ...
[Sun May 19 03:26:01.573817 2019] [lbmethod_heartbeat:notice] [pid 3625] AH02282: No slotmem from mod_heartmonitor
[Sun May 19 03:26:01.573856 2019] [mpm_prefork:notice] [pid 3625] AH00163: Apache/2.4.6 (CentOS) configured -- resuming normal operations
[Sun May 19 03:26:01.573859 2019] [core:notice] [pid 3625] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'


The error actually happens more, but we only get the "alert" email that one time.



Also, I don't know if this will help, but here is monit config for tomcat ( /etc/monit.d/tomcat ):



check host tomcat with address localhost
stop program = "/etc/init.d/tomcat stop"
start program = "/etc/init.d/tomcat start"
if failed port 8080 and protocol http then alert
if failed port 8080 and protocol http then start


Update 5/20/2019:
Based on @asktyagi advice, I changed my config to the below, seeing if it works:



check host tomcat with address localhost
stop program = "/etc/init.d/tomcat stop"
start program = "/etc/init.d/tomcat start"
if failed port 8080 and protocol http retry 5 then alert
if failed port 8080 and protocol http retry 5 then start









share|improve this question






























    0















    I get the error "monit failed protocol test [HTTP] at [localhost]:8080" every so often. The application, tomcat, has not stopped and is still running just fine. I know port 8080 is open because I can get to it in the browser on my personal PC ( so NOT localhost ). What else can I check to see what is happening?



    Some logs in response to questions from someone else:



    It happened again this morning at 3:26 or 3:27 am this morning, so here are, first of all, the monit log for the time in question:



    [EDT May 19 03:26:01] info : Reinitializing monit daemon
    [EDT May 19 03:26:01] info : 'newapp.turnsmith.com' Monit reloaded
    [EDT May 19 03:26:01] error : 'tomcat' failed protocol test [HTTP] at [localhost]:8080 [TCP/IP] -- HTTP error: Server returned status 404
    [EDT May 19 03:26:01] info : 'tomcat' start: '/etc/init.d/tomcat start'
    [EDT May 19 03:26:01] error : 'tomcat' failed protocol test [HTTP] at [localhost]:8080 [TCP/IP] -- HTTP error: Server returned status 404
    [EDT May 19 03:27:01] error : 'tomcat' failed protocol test [HTTP] at [localhost]:8080 [TCP/IP] -- HTTP error: Server returned status 404
    [EDT May 19 03:27:01] info : 'tomcat' start: '/etc/init.d/tomcat start'


    And here is the log from http, error_log:



    [Sun May 19 03:26:01.573204 2019] [auth_digest:notice] [pid 3625] AH01757: generating secret for digest authentication ...
    [Sun May 19 03:26:01.573817 2019] [lbmethod_heartbeat:notice] [pid 3625] AH02282: No slotmem from mod_heartmonitor
    [Sun May 19 03:26:01.573856 2019] [mpm_prefork:notice] [pid 3625] AH00163: Apache/2.4.6 (CentOS) configured -- resuming normal operations
    [Sun May 19 03:26:01.573859 2019] [core:notice] [pid 3625] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'


    The error actually happens more, but we only get the "alert" email that one time.



    Also, I don't know if this will help, but here is monit config for tomcat ( /etc/monit.d/tomcat ):



    check host tomcat with address localhost
    stop program = "/etc/init.d/tomcat stop"
    start program = "/etc/init.d/tomcat start"
    if failed port 8080 and protocol http then alert
    if failed port 8080 and protocol http then start


    Update 5/20/2019:
    Based on @asktyagi advice, I changed my config to the below, seeing if it works:



    check host tomcat with address localhost
    stop program = "/etc/init.d/tomcat stop"
    start program = "/etc/init.d/tomcat start"
    if failed port 8080 and protocol http retry 5 then alert
    if failed port 8080 and protocol http retry 5 then start









    share|improve this question


























      0












      0








      0








      I get the error "monit failed protocol test [HTTP] at [localhost]:8080" every so often. The application, tomcat, has not stopped and is still running just fine. I know port 8080 is open because I can get to it in the browser on my personal PC ( so NOT localhost ). What else can I check to see what is happening?



      Some logs in response to questions from someone else:



      It happened again this morning at 3:26 or 3:27 am this morning, so here are, first of all, the monit log for the time in question:



      [EDT May 19 03:26:01] info : Reinitializing monit daemon
      [EDT May 19 03:26:01] info : 'newapp.turnsmith.com' Monit reloaded
      [EDT May 19 03:26:01] error : 'tomcat' failed protocol test [HTTP] at [localhost]:8080 [TCP/IP] -- HTTP error: Server returned status 404
      [EDT May 19 03:26:01] info : 'tomcat' start: '/etc/init.d/tomcat start'
      [EDT May 19 03:26:01] error : 'tomcat' failed protocol test [HTTP] at [localhost]:8080 [TCP/IP] -- HTTP error: Server returned status 404
      [EDT May 19 03:27:01] error : 'tomcat' failed protocol test [HTTP] at [localhost]:8080 [TCP/IP] -- HTTP error: Server returned status 404
      [EDT May 19 03:27:01] info : 'tomcat' start: '/etc/init.d/tomcat start'


      And here is the log from http, error_log:



      [Sun May 19 03:26:01.573204 2019] [auth_digest:notice] [pid 3625] AH01757: generating secret for digest authentication ...
      [Sun May 19 03:26:01.573817 2019] [lbmethod_heartbeat:notice] [pid 3625] AH02282: No slotmem from mod_heartmonitor
      [Sun May 19 03:26:01.573856 2019] [mpm_prefork:notice] [pid 3625] AH00163: Apache/2.4.6 (CentOS) configured -- resuming normal operations
      [Sun May 19 03:26:01.573859 2019] [core:notice] [pid 3625] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'


      The error actually happens more, but we only get the "alert" email that one time.



      Also, I don't know if this will help, but here is monit config for tomcat ( /etc/monit.d/tomcat ):



      check host tomcat with address localhost
      stop program = "/etc/init.d/tomcat stop"
      start program = "/etc/init.d/tomcat start"
      if failed port 8080 and protocol http then alert
      if failed port 8080 and protocol http then start


      Update 5/20/2019:
      Based on @asktyagi advice, I changed my config to the below, seeing if it works:



      check host tomcat with address localhost
      stop program = "/etc/init.d/tomcat stop"
      start program = "/etc/init.d/tomcat start"
      if failed port 8080 and protocol http retry 5 then alert
      if failed port 8080 and protocol http retry 5 then start









      share|improve this question
















      I get the error "monit failed protocol test [HTTP] at [localhost]:8080" every so often. The application, tomcat, has not stopped and is still running just fine. I know port 8080 is open because I can get to it in the browser on my personal PC ( so NOT localhost ). What else can I check to see what is happening?



      Some logs in response to questions from someone else:



      It happened again this morning at 3:26 or 3:27 am this morning, so here are, first of all, the monit log for the time in question:



      [EDT May 19 03:26:01] info : Reinitializing monit daemon
      [EDT May 19 03:26:01] info : 'newapp.turnsmith.com' Monit reloaded
      [EDT May 19 03:26:01] error : 'tomcat' failed protocol test [HTTP] at [localhost]:8080 [TCP/IP] -- HTTP error: Server returned status 404
      [EDT May 19 03:26:01] info : 'tomcat' start: '/etc/init.d/tomcat start'
      [EDT May 19 03:26:01] error : 'tomcat' failed protocol test [HTTP] at [localhost]:8080 [TCP/IP] -- HTTP error: Server returned status 404
      [EDT May 19 03:27:01] error : 'tomcat' failed protocol test [HTTP] at [localhost]:8080 [TCP/IP] -- HTTP error: Server returned status 404
      [EDT May 19 03:27:01] info : 'tomcat' start: '/etc/init.d/tomcat start'


      And here is the log from http, error_log:



      [Sun May 19 03:26:01.573204 2019] [auth_digest:notice] [pid 3625] AH01757: generating secret for digest authentication ...
      [Sun May 19 03:26:01.573817 2019] [lbmethod_heartbeat:notice] [pid 3625] AH02282: No slotmem from mod_heartmonitor
      [Sun May 19 03:26:01.573856 2019] [mpm_prefork:notice] [pid 3625] AH00163: Apache/2.4.6 (CentOS) configured -- resuming normal operations
      [Sun May 19 03:26:01.573859 2019] [core:notice] [pid 3625] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'


      The error actually happens more, but we only get the "alert" email that one time.



      Also, I don't know if this will help, but here is monit config for tomcat ( /etc/monit.d/tomcat ):



      check host tomcat with address localhost
      stop program = "/etc/init.d/tomcat stop"
      start program = "/etc/init.d/tomcat start"
      if failed port 8080 and protocol http then alert
      if failed port 8080 and protocol http then start


      Update 5/20/2019:
      Based on @asktyagi advice, I changed my config to the below, seeing if it works:



      check host tomcat with address localhost
      stop program = "/etc/init.d/tomcat stop"
      start program = "/etc/init.d/tomcat start"
      if failed port 8080 and protocol http retry 5 then alert
      if failed port 8080 and protocol http retry 5 then start






      centos7 monit tomcat8






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited May 20 at 16:16







      user3329922

















      asked May 18 at 22:10









      user3329922user3329922

      1698




      1698




















          2 Answers
          2






          active

          oldest

          votes


















          0














          Can you check monit and http logs at the time of alert? some possibilities are: http port exhausted or http under pressure/busy. If so try to use RETRY.
          Edit:
          Also you can try to remove protocol and use like below
          if failed port port number then restart






          share|improve this answer

























          • Added more information to main post, but just to clarify: What do you mean by "RETRY"? I don't see port exhausting or pressure or anything, but maybe I am looking in the wrong logs?

            – user3329922
            May 19 at 19:37











          • Some time first attempt may be unsuccessful due to unforeseen issues, so just try to increase the number of monit retry.

            – asktyagi
            May 20 at 1:56











          • OK, found it now, I think, and will give it a try. I guess I should have said I was not that experienced with monit. Anyway, it is weird, but it consistently happens in the morning when monit does some reloading of some sort. This does not happen on my other machines. But there are differences between OS and tomcat version used, so I guess that could be it.

            – user3329922
            May 20 at 16:07











          • Still same problem, and got an alert at 3:25 am when monit did it's reload. This error happens a lot throughout the day, but only get the alert once a day. I tried 20 retries, and it does not seem to go away. Now, with 20 retries, tomcat is not always "restarted", so it is am improvement. Just something seems weird.

            – user3329922
            May 21 at 15:04







          • 1





            for example use like this if failed port port number then restart

            – asktyagi
            May 21 at 15:22


















          0














          Based on advice from @asktyagi, I got it working much better with the below config:



          check host tomcat with address localhost
          stop program = "/etc/init.d/tomcat stop"
          start program = "/etc/init.d/tomcat start"
          ## if failed port 8080 and protocol http for 20 cycles then alert
          if failed port 8080 then alert
          ##if failed port 8080 and protocol http for 40 cycles then start
          if failed port 8080 then start


          In my case, "Retry" did not help although it did decrease the occurrences. Also, based on help from here, I tried the "for x cycles" idea and that actually decreased it from multiple times per minute to only once per minute. Obviously, I am sticking with the idea from @asktyagi as it, so far, eliminates the problem, but did want to tell people what I figured out.






          share|improve this answer























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "2"
            ;
            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%2fserverfault.com%2fquestions%2f967918%2fmonit-failed-protocol-test-http-at-localhost8080%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Can you check monit and http logs at the time of alert? some possibilities are: http port exhausted or http under pressure/busy. If so try to use RETRY.
            Edit:
            Also you can try to remove protocol and use like below
            if failed port port number then restart






            share|improve this answer

























            • Added more information to main post, but just to clarify: What do you mean by "RETRY"? I don't see port exhausting or pressure or anything, but maybe I am looking in the wrong logs?

              – user3329922
              May 19 at 19:37











            • Some time first attempt may be unsuccessful due to unforeseen issues, so just try to increase the number of monit retry.

              – asktyagi
              May 20 at 1:56











            • OK, found it now, I think, and will give it a try. I guess I should have said I was not that experienced with monit. Anyway, it is weird, but it consistently happens in the morning when monit does some reloading of some sort. This does not happen on my other machines. But there are differences between OS and tomcat version used, so I guess that could be it.

              – user3329922
              May 20 at 16:07











            • Still same problem, and got an alert at 3:25 am when monit did it's reload. This error happens a lot throughout the day, but only get the alert once a day. I tried 20 retries, and it does not seem to go away. Now, with 20 retries, tomcat is not always "restarted", so it is am improvement. Just something seems weird.

              – user3329922
              May 21 at 15:04







            • 1





              for example use like this if failed port port number then restart

              – asktyagi
              May 21 at 15:22















            0














            Can you check monit and http logs at the time of alert? some possibilities are: http port exhausted or http under pressure/busy. If so try to use RETRY.
            Edit:
            Also you can try to remove protocol and use like below
            if failed port port number then restart






            share|improve this answer

























            • Added more information to main post, but just to clarify: What do you mean by "RETRY"? I don't see port exhausting or pressure or anything, but maybe I am looking in the wrong logs?

              – user3329922
              May 19 at 19:37











            • Some time first attempt may be unsuccessful due to unforeseen issues, so just try to increase the number of monit retry.

              – asktyagi
              May 20 at 1:56











            • OK, found it now, I think, and will give it a try. I guess I should have said I was not that experienced with monit. Anyway, it is weird, but it consistently happens in the morning when monit does some reloading of some sort. This does not happen on my other machines. But there are differences between OS and tomcat version used, so I guess that could be it.

              – user3329922
              May 20 at 16:07











            • Still same problem, and got an alert at 3:25 am when monit did it's reload. This error happens a lot throughout the day, but only get the alert once a day. I tried 20 retries, and it does not seem to go away. Now, with 20 retries, tomcat is not always "restarted", so it is am improvement. Just something seems weird.

              – user3329922
              May 21 at 15:04







            • 1





              for example use like this if failed port port number then restart

              – asktyagi
              May 21 at 15:22













            0












            0








            0







            Can you check monit and http logs at the time of alert? some possibilities are: http port exhausted or http under pressure/busy. If so try to use RETRY.
            Edit:
            Also you can try to remove protocol and use like below
            if failed port port number then restart






            share|improve this answer















            Can you check monit and http logs at the time of alert? some possibilities are: http port exhausted or http under pressure/busy. If so try to use RETRY.
            Edit:
            Also you can try to remove protocol and use like below
            if failed port port number then restart







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited May 23 at 3:00

























            answered May 19 at 4:33









            asktyagiasktyagi

            44319




            44319












            • Added more information to main post, but just to clarify: What do you mean by "RETRY"? I don't see port exhausting or pressure or anything, but maybe I am looking in the wrong logs?

              – user3329922
              May 19 at 19:37











            • Some time first attempt may be unsuccessful due to unforeseen issues, so just try to increase the number of monit retry.

              – asktyagi
              May 20 at 1:56











            • OK, found it now, I think, and will give it a try. I guess I should have said I was not that experienced with monit. Anyway, it is weird, but it consistently happens in the morning when monit does some reloading of some sort. This does not happen on my other machines. But there are differences between OS and tomcat version used, so I guess that could be it.

              – user3329922
              May 20 at 16:07











            • Still same problem, and got an alert at 3:25 am when monit did it's reload. This error happens a lot throughout the day, but only get the alert once a day. I tried 20 retries, and it does not seem to go away. Now, with 20 retries, tomcat is not always "restarted", so it is am improvement. Just something seems weird.

              – user3329922
              May 21 at 15:04







            • 1





              for example use like this if failed port port number then restart

              – asktyagi
              May 21 at 15:22

















            • Added more information to main post, but just to clarify: What do you mean by "RETRY"? I don't see port exhausting or pressure or anything, but maybe I am looking in the wrong logs?

              – user3329922
              May 19 at 19:37











            • Some time first attempt may be unsuccessful due to unforeseen issues, so just try to increase the number of monit retry.

              – asktyagi
              May 20 at 1:56











            • OK, found it now, I think, and will give it a try. I guess I should have said I was not that experienced with monit. Anyway, it is weird, but it consistently happens in the morning when monit does some reloading of some sort. This does not happen on my other machines. But there are differences between OS and tomcat version used, so I guess that could be it.

              – user3329922
              May 20 at 16:07











            • Still same problem, and got an alert at 3:25 am when monit did it's reload. This error happens a lot throughout the day, but only get the alert once a day. I tried 20 retries, and it does not seem to go away. Now, with 20 retries, tomcat is not always "restarted", so it is am improvement. Just something seems weird.

              – user3329922
              May 21 at 15:04







            • 1





              for example use like this if failed port port number then restart

              – asktyagi
              May 21 at 15:22
















            Added more information to main post, but just to clarify: What do you mean by "RETRY"? I don't see port exhausting or pressure or anything, but maybe I am looking in the wrong logs?

            – user3329922
            May 19 at 19:37





            Added more information to main post, but just to clarify: What do you mean by "RETRY"? I don't see port exhausting or pressure or anything, but maybe I am looking in the wrong logs?

            – user3329922
            May 19 at 19:37













            Some time first attempt may be unsuccessful due to unforeseen issues, so just try to increase the number of monit retry.

            – asktyagi
            May 20 at 1:56





            Some time first attempt may be unsuccessful due to unforeseen issues, so just try to increase the number of monit retry.

            – asktyagi
            May 20 at 1:56













            OK, found it now, I think, and will give it a try. I guess I should have said I was not that experienced with monit. Anyway, it is weird, but it consistently happens in the morning when monit does some reloading of some sort. This does not happen on my other machines. But there are differences between OS and tomcat version used, so I guess that could be it.

            – user3329922
            May 20 at 16:07





            OK, found it now, I think, and will give it a try. I guess I should have said I was not that experienced with monit. Anyway, it is weird, but it consistently happens in the morning when monit does some reloading of some sort. This does not happen on my other machines. But there are differences between OS and tomcat version used, so I guess that could be it.

            – user3329922
            May 20 at 16:07













            Still same problem, and got an alert at 3:25 am when monit did it's reload. This error happens a lot throughout the day, but only get the alert once a day. I tried 20 retries, and it does not seem to go away. Now, with 20 retries, tomcat is not always "restarted", so it is am improvement. Just something seems weird.

            – user3329922
            May 21 at 15:04






            Still same problem, and got an alert at 3:25 am when monit did it's reload. This error happens a lot throughout the day, but only get the alert once a day. I tried 20 retries, and it does not seem to go away. Now, with 20 retries, tomcat is not always "restarted", so it is am improvement. Just something seems weird.

            – user3329922
            May 21 at 15:04





            1




            1





            for example use like this if failed port port number then restart

            – asktyagi
            May 21 at 15:22





            for example use like this if failed port port number then restart

            – asktyagi
            May 21 at 15:22













            0














            Based on advice from @asktyagi, I got it working much better with the below config:



            check host tomcat with address localhost
            stop program = "/etc/init.d/tomcat stop"
            start program = "/etc/init.d/tomcat start"
            ## if failed port 8080 and protocol http for 20 cycles then alert
            if failed port 8080 then alert
            ##if failed port 8080 and protocol http for 40 cycles then start
            if failed port 8080 then start


            In my case, "Retry" did not help although it did decrease the occurrences. Also, based on help from here, I tried the "for x cycles" idea and that actually decreased it from multiple times per minute to only once per minute. Obviously, I am sticking with the idea from @asktyagi as it, so far, eliminates the problem, but did want to tell people what I figured out.






            share|improve this answer



























              0














              Based on advice from @asktyagi, I got it working much better with the below config:



              check host tomcat with address localhost
              stop program = "/etc/init.d/tomcat stop"
              start program = "/etc/init.d/tomcat start"
              ## if failed port 8080 and protocol http for 20 cycles then alert
              if failed port 8080 then alert
              ##if failed port 8080 and protocol http for 40 cycles then start
              if failed port 8080 then start


              In my case, "Retry" did not help although it did decrease the occurrences. Also, based on help from here, I tried the "for x cycles" idea and that actually decreased it from multiple times per minute to only once per minute. Obviously, I am sticking with the idea from @asktyagi as it, so far, eliminates the problem, but did want to tell people what I figured out.






              share|improve this answer

























                0












                0








                0







                Based on advice from @asktyagi, I got it working much better with the below config:



                check host tomcat with address localhost
                stop program = "/etc/init.d/tomcat stop"
                start program = "/etc/init.d/tomcat start"
                ## if failed port 8080 and protocol http for 20 cycles then alert
                if failed port 8080 then alert
                ##if failed port 8080 and protocol http for 40 cycles then start
                if failed port 8080 then start


                In my case, "Retry" did not help although it did decrease the occurrences. Also, based on help from here, I tried the "for x cycles" idea and that actually decreased it from multiple times per minute to only once per minute. Obviously, I am sticking with the idea from @asktyagi as it, so far, eliminates the problem, but did want to tell people what I figured out.






                share|improve this answer













                Based on advice from @asktyagi, I got it working much better with the below config:



                check host tomcat with address localhost
                stop program = "/etc/init.d/tomcat stop"
                start program = "/etc/init.d/tomcat start"
                ## if failed port 8080 and protocol http for 20 cycles then alert
                if failed port 8080 then alert
                ##if failed port 8080 and protocol http for 40 cycles then start
                if failed port 8080 then start


                In my case, "Retry" did not help although it did decrease the occurrences. Also, based on help from here, I tried the "for x cycles" idea and that actually decreased it from multiple times per minute to only once per minute. Obviously, I am sticking with the idea from @asktyagi as it, so far, eliminates the problem, but did want to tell people what I figured out.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered May 21 at 15:39









                user3329922user3329922

                1698




                1698



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Server Fault!


                    • 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%2fserverfault.com%2fquestions%2f967918%2fmonit-failed-protocol-test-http-at-localhost8080%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

                    Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

                    Bruxelas-Capital Índice Historia | Composición | Situación lingüística | Clima | Cidades irmandadas | Notas | Véxase tamén | Menú de navegacióneO uso das linguas en Bruxelas e a situación do neerlandés"Rexión de Bruxelas Capital"o orixinalSitio da rexiónPáxina de Bruselas no sitio da Oficina de Promoción Turística de Valonia e BruxelasMapa Interactivo da Rexión de Bruxelas-CapitaleeWorldCat332144929079854441105155190212ID28008674080552-90000 0001 0666 3698n94104302ID540940339365017018237

                    What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company