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

                    Club Baloncesto Breogán Índice Historia | Pavillón | Nome | O Breogán na cultura popular | Xogadores | Adestradores | Presidentes | Palmarés | Historial | Líderes | Notas | Véxase tamén | Menú de navegacióncbbreogan.galCadroGuía oficial da ACB 2009-10, páxina 201Guía oficial ACB 1992, páxina 183. Editorial DB.É de 6.500 espectadores sentados axeitándose á última normativa"Estudiantes Junior, entre as mellores canteiras"o orixinalHemeroteca El Mundo Deportivo, 16 setembro de 1970, páxina 12Historia do BreogánAlfredo Pérez, o último canoneiroHistoria C.B. BreogánHemeroteca de El Mundo DeportivoJimmy Wright, norteamericano do Breogán deixará Lugo por ameazas de morteResultados de Breogán en 1986-87Resultados de Breogán en 1990-91Ficha de Velimir Perasović en acb.comResultados de Breogán en 1994-95Breogán arrasa al Barça. "El Mundo Deportivo", 27 de setembro de 1999, páxina 58CB Breogán - FC BarcelonaA FEB invita a participar nunha nova Liga EuropeaCharlie Bell na prensa estatalMáximos anotadores 2005Tempada 2005-06 : Tódolos Xogadores da Xornada""Non quero pensar nunha man negra, mais pregúntome que está a pasar""o orixinalRaúl López, orgulloso dos xogadores, presume da boa saúde económica do BreogánJulio González confirma que cesa como presidente del BreogánHomenaxe a Lisardo GómezA tempada do rexurdimento celesteEntrevista a Lisardo GómezEl COB dinamita el Pazo para forzar el quinto (69-73)Cafés Candelas, patrocinador del CB Breogán"Suso Lázare, novo presidente do Breogán"o orixinalCafés Candelas Breogán firma el mayor triunfo de la historiaEl Breogán realizará 17 homenajes por su cincuenta aniversario"O Breogán honra ao seu fundador e primeiro presidente"o orixinalMiguel Giao recibiu a homenaxe do PazoHomenaxe aos primeiros gladiadores celestesO home que nos amosa como ver o Breo co corazónTita Franco será homenaxeada polos #50anosdeBreoJulio Vila recibirá unha homenaxe in memoriam polos #50anosdeBreo"O Breogán homenaxeará aos seus aboados máis veteráns"Pechada ovación a «Capi» Sanmartín e Ricardo «Corazón de González»Homenaxe por décadas de informaciónPaco García volve ao Pazo con motivo do 50 aniversario"Resultados y clasificaciones""O Cafés Candelas Breogán, campión da Copa Princesa""O Cafés Candelas Breogán, equipo ACB"C.B. Breogán"Proxecto social"o orixinal"Centros asociados"o orixinalFicha en imdb.comMario Camus trata la recuperación del amor en 'La vieja música', su última película"Páxina web oficial""Club Baloncesto Breogán""C. B. Breogán S.A.D."eehttp://www.fegaba.com

                    Vilaño, A Laracha Índice Patrimonio | Lugares e parroquias | Véxase tamén | Menú de navegación43°14′52″N 8°36′03″O / 43.24775, -8.60070

                    Cegueira Índice Epidemioloxía | Deficiencia visual | Tipos de cegueira | Principais causas de cegueira | Tratamento | Técnicas de adaptación e axudas | Vida dos cegos | Primeiros auxilios | Crenzas respecto das persoas cegas | Crenzas das persoas cegas | O neno deficiente visual | Aspectos psicolóxicos da cegueira | Notas | Véxase tamén | Menú de navegación54.054.154.436928256blindnessDicionario da Real Academia GalegaPortal das Palabras"International Standards: Visual Standards — Aspects and Ranges of Vision Loss with Emphasis on Population Surveys.""Visual impairment and blindness""Presentan un plan para previr a cegueira"o orixinalACCDV Associació Catalana de Cecs i Disminuïts Visuals - PMFTrachoma"Effect of gene therapy on visual function in Leber's congenital amaurosis"1844137110.1056/NEJMoa0802268Cans guía - os mellores amigos dos cegosArquivadoEscola de cans guía para cegos en Mortágua, PortugalArquivado"Tecnología para ciegos y deficientes visuales. Recopilación de recursos gratuitos en la Red""Colorino""‘COL.diesis’, escuchar los sonidos del color""COL.diesis: Transforming Colour into Melody and Implementing the Result in a Colour Sensor Device"o orixinal"Sistema de desarrollo de sinestesia color-sonido para invidentes utilizando un protocolo de audio""Enseñanza táctil - geometría y color. Juegos didácticos para niños ciegos y videntes""Sistema Constanz"L'ocupació laboral dels cecs a l'Estat espanyol està pràcticament equiparada a la de les persones amb visió, entrevista amb Pedro ZuritaONCE (Organización Nacional de Cegos de España)Prevención da cegueiraDescrición de deficiencias visuais (Disc@pnet)Braillín, un boneco atractivo para calquera neno, con ou sen discapacidade, que permite familiarizarse co sistema de escritura e lectura brailleAxudas Técnicas36838ID00897494007150-90057129528256DOID:1432HP:0000618D001766C10.597.751.941.162C97109C0155020