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;
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
add a comment |
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
add a comment |
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
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
centos7 monit tomcat8
edited May 20 at 16:16
user3329922
asked May 18 at 22:10
user3329922user3329922
1698
1698
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
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 belowif failed port port number then restart
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
|
show 4 more comments
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.
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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 belowif failed port port number then restart
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
|
show 4 more comments
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 belowif failed port port number then restart
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
|
show 4 more comments
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 belowif failed port port number then restart
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 belowif failed port port number then restart
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
|
show 4 more comments
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
|
show 4 more comments
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.
add a comment |
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.
add a comment |
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.
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.
answered May 21 at 15:39
user3329922user3329922
1698
1698
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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