Monit [TCP/IP] -- HTTP error: Regular expression doesn't match

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Monit [TCP/IP] -- HTTP error: Regular expression doesn't match

Frantisek Lev
Hello,

I have question about Reqular expressiion error in Monit 5.14

Test:

check process mapvault-gui_1 matching "Dcatalina.home=x/mapvault-gui"
  start program = "x/mapvault-gui/bin/mon_start.sh"
  as uid x gid x with timeout 60 seconds
  stop program  = " x/mapvault-gui/bin/mon_stop.sh"
  as uid x gid x with timeout 60 seconds
   if failed port 60001 and protocol http
     for 3 cycles
     then alert

Result:

(monit -v output)

 [PHT May 24 04:06:41] debug    : Socket test failed for [x.x.x.x]:60001 -- HTTP error: Regular expression doesn't match: No match
[PHT May 24 04:06:41] error    : 'mapvault-gui_1' failed protocol test [HTTP] at [x]:60001/map-spy/ [TCP/IP] -- HTTP error: Regular expression doesn't match: No match

I see this behviour only on few servers.
http service is up and runing and I can get it via wget on the server
The option is to updte monit agent from 5.14 to newer version but im not sure if it can solve the problem
(We are vaiting for release of newer version in EPEL repository)

Do you have any advice on how to get to the core  reason of failure and how to prevent it?

Thanks

František Lev | ON Semiconductor
Senior CIM Engineer (TL)
1. máje 2634 | Rožnov pod Radhoštěm, Česká republika 756 61
  +420571753345 (O) | +420725439496  (M) | [hidden email]







--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general
Reply | Threaded
Open this post in threaded view
|

Re: Monit [TCP/IP] -- HTTP error: Regular expression doesn't match

martinp@tildeslash.com
Hello,

the error is strange - the HTTP test should trigger the content match test only if "content" option is present - there's no such option in your configuration, so unless the configuration was changed without reloading Monit (i.e. Monit is still running with old configuration), or the test is related to different service then in the configuration snip, the "HTTP error: Regular expression doesn't match" should'n happen.

Please can you send your full configuration?

Best regards,
Martin



> On 23 May 2017, at 22:18, Frantisek Lev <[hidden email]> wrote:
>
> Hello,
>
> I have question about Reqular expressiion error in Monit 5.14
>
> Test:
>
> check process mapvault-gui_1 matching "Dcatalina.home=x/mapvault-gui"
>  start program = "x/mapvault-gui/bin/mon_start.sh"
>  as uid x gid x with timeout 60 seconds
>  stop program  = " x/mapvault-gui/bin/mon_stop.sh"
>  as uid x gid x with timeout 60 seconds
>   if failed port 60001 and protocol http
>     for 3 cycles
>     then alert
>
> Result:
>
> (monit -v output)
>
> [PHT May 24 04:06:41] debug    : Socket test failed for [x.x.x.x]:60001 -- HTTP error: Regular expression doesn't match: No match
> [PHT May 24 04:06:41] error    : 'mapvault-gui_1' failed protocol test [HTTP] at [x]:60001/map-spy/ [TCP/IP] -- HTTP error: Regular expression doesn't match: No match
>
> I see this behviour only on few servers.
> http service is up and runing and I can get it via wget on the server
> The option is to updte monit agent from 5.14 to newer version but im not sure if it can solve the problem
> (We are vaiting for release of newer version in EPEL repository)
>
> Do you have any advice on how to get to the core  reason of failure and how to prevent it?
>
> Thanks
>
> František Lev | ON Semiconductor
> Senior CIM Engineer (TL)
> 1. máje 2634 | Rožnov pod Radhoštěm, Česká republika 756 61
>   +420571753345 (O) | +420725439496  (M) | [hidden email]
>
>
>
>
>
>
>
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general


--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general
Reply | Threaded
Open this post in threaded view
|

RE: Monit [TCP/IP] -- HTTP error: Regular expression doesn't match

Frantisek Lev
Hello Martin,

Here is main and app monit config file.
Monit service restart has no positive impact to the test result

Thanks

-----Original Message-----
From: monit-general [mailto:monit-general-bounces+frantisek.lev=[hidden email]] On Behalf Of Martin Pala
Sent: Thursday, May 25, 2017 10:20 AM
To: This is the general mailing list for monit <[hidden email]>
Subject: Re: Monit [TCP/IP] -- HTTP error: Regular expression doesn't match

Hello,

the error is strange - the HTTP test should trigger the content match test only if "content" option is present - there's no such option in your configuration, so unless the configuration was changed without reloading Monit (i.e. Monit is still running with old configuration), or the test is related to different service then in the configuration snip, the "HTTP error: Regular expression doesn't match" should'n happen.

Please can you send your full configuration?

Best regards,
Martin



> On 23 May 2017, at 22:18, Frantisek Lev <[hidden email]> wrote:
>
> Hello,
>
> I have question about Reqular expressiion error in Monit 5.14
>
> Test:
>
> check process mapvault-gui_1 matching "Dcatalina.home=x/mapvault-gui"
>  start program = "x/mapvault-gui/bin/mon_start.sh"
>  as uid x gid x with timeout 60 seconds  stop program  = "
> x/mapvault-gui/bin/mon_stop.sh"
>  as uid x gid x with timeout 60 seconds
>   if failed port 60001 and protocol http
>     for 3 cycles
>     then alert
>
> Result:
>
> (monit -v output)
>
> [PHT May 24 04:06:41] debug    : Socket test failed for [x.x.x.x]:60001 -- HTTP error: Regular expression doesn't match: No match
> [PHT May 24 04:06:41] error    : 'mapvault-gui_1' failed protocol test [HTTP] at [x]:60001/map-spy/ [TCP/IP] -- HTTP error: Regular expression doesn't match: No match
>
> I see this behviour only on few servers.
> http service is up and runing and I can get it via wget on the server
> The option is to updte monit agent from 5.14 to newer version but im
> not sure if it can solve the problem (We are vaiting for release of
> newer version in EPEL repository)
>
> Do you have any advice on how to get to the core  reason of failure and how to prevent it?
>
> Thanks
>
> František Lev | ON Semiconductor
> Senior CIM Engineer (TL)
> 1. máje 2634 | Rožnov pod Radhoštěm, Česká republika 756 61
>   +420571753345 (O) | +420725439496  (M) | [hidden email]
>
>
>
>
>
>
>
> --
> To unsubscribe:
> https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.nongnu.org_
> mailman_listinfo_monit-2Dgeneral&d=DwIGaQ&c=MHZppzMdXMt3JYjCV71UsQ&r=1
> ZtIzYQEmb5MRLzA0X_q9SfdWBc8c7bZrYvLlA74dWw&m=1TVrw937FaU7-pPVXntQq1N5M
> I0VrNKSCuYjz_eJQ6E&s=VgGSvodk8j6Alk88y1_MPhrQaa5VnZATWCL0O8EO250&e=

--
To unsubscribe:
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.nongnu.org_mailman_listinfo_monit-2Dgeneral&d=DwIGaQ&c=MHZppzMdXMt3JYjCV71UsQ&r=1ZtIzYQEmb5MRLzA0X_q9SfdWBc8c7bZrYvLlA74dWw&m=1TVrw937FaU7-pPVXntQq1N5MI0VrNKSCuYjz_eJQ6E&s=VgGSvodk8j6Alk88y1_MPhrQaa5VnZATWCL0O8EO250&e= 

--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general

fecim_monit.conf (26K) Download Attachment
monit.conf (14K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Monit [TCP/IP] -- HTTP error: Regular expression doesn't match

martinp@tildeslash.com
Thanks for data.

There are two 60001 port tests in the context of "phd_mapvault-gui_1" service:

1.) this test reports not error:

   if failed port 60001 and protocol http
     for 2 cycles
     then alert

2.) this test triggers the error (content returned by http://phxprdjsrv01.onsemi.com:60001/map-spy/ doesn't contain the "This is Map Spy application" pattern):

              and content = "This is Map Spy application")
     for 2 cycles
     then start

You need to fix the pattern in the second test. As the two tests are redundant, i recommend to removed the first test (the second test performs http protocol check as well)

Best regards,
Martin


On 25 May 2017, at 16:31, Frantisek Lev <[hidden email]> wrote:

Hello Martin,

Here is main and app monit config file.
Monit service restart has no positive impact to the test result

Thanks

-----Original Message-----
From: monit-general [[hidden email]] On Behalf Of Martin Pala
Sent: Thursday, May 25, 2017 10:20 AM
To: This is the general mailing list for monit <[hidden email]>
Subject: Re: Monit [TCP/IP] -- HTTP error: Regular expression doesn't match

Hello,

the error is strange - the HTTP test should trigger the content match test only if "content" option is present - there's no such option in your configuration, so unless the configuration was changed without reloading Monit (i.e. Monit is still running with old configuration), or the test is related to different service then in the configuration snip, the "HTTP error: Regular expression doesn't match" should'n happen.

Please can you send your full configuration?

Best regards,
Martin



On 23 May 2017, at 22:18, Frantisek Lev <[hidden email]> wrote:

Hello,

I have question about Reqular expressiion error in Monit 5.14

Test:

check process mapvault-gui_1 matching "Dcatalina.home=x/mapvault-gui"
start program = "x/mapvault-gui/bin/mon_start.sh"
as uid x gid x with timeout 60 seconds  stop program  = " 
x/mapvault-gui/bin/mon_stop.sh"
as uid x gid x with timeout 60 seconds
 if failed port 60001 and protocol http
   for 3 cycles
   then alert

Result:

(monit -v output)

[PHT May 24 04:06:41] debug    : Socket test failed for [x.x.x.x]:60001 -- HTTP error: Regular expression doesn't match: No match
[PHT May 24 04:06:41] error    : 'mapvault-gui_1' failed protocol test [HTTP] at [x]:60001/map-spy/ [TCP/IP] -- HTTP error: Regular expression doesn't match: No match

I see this behviour only on few servers.
http service is up and runing and I can get it via wget on the server 
The option is to updte monit agent from 5.14 to newer version but im 
not sure if it can solve the problem (We are vaiting for release of 
newer version in EPEL repository)

Do you have any advice on how to get to the core  reason of failure and how to prevent it?

Thanks

František Lev | ON Semiconductor
Senior CIM Engineer (TL)
1. máje 2634 | Rožnov pod Radhoštěm, Česká republika 756 61
 +420571753345 (O) | +420725439496  (M) | [hidden email]







--
To unsubscribe:
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.nongnu.org_
mailman_listinfo_monit-2Dgeneral&d=DwIGaQ&c=MHZppzMdXMt3JYjCV71UsQ&r=1
ZtIzYQEmb5MRLzA0X_q9SfdWBc8c7bZrYvLlA74dWw&m=1TVrw937FaU7-pPVXntQq1N5M
I0VrNKSCuYjz_eJQ6E&s=VgGSvodk8j6Alk88y1_MPhrQaa5VnZATWCL0O8EO250&e=


--
To unsubscribe:
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.nongnu.org_mailman_listinfo_monit-2Dgeneral&d=DwIGaQ&c=MHZppzMdXMt3JYjCV71UsQ&r=1ZtIzYQEmb5MRLzA0X_q9SfdWBc8c7bZrYvLlA74dWw&m=1TVrw937FaU7-pPVXntQq1N5MI0VrNKSCuYjz_eJQ6E&s=VgGSvodk8j6Alk88y1_MPhrQaa5VnZATWCL0O8EO250&e= 
<fecim_monit.conf><monit.conf>--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general


--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general