monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [monit] hostheader syntax error


From: Martin Pala
Subject: Re: [monit] hostheader syntax error
Date: Mon, 22 Feb 2010 22:16:06 +0100

Hello Naoya,

there is bug in configuration parser which doesn't recognize the option.

The patch is attached. We'll release bugfix release soon.


Thanks for report,
Martin



Attachment: hostheader.patch
Description: Binary data



On Feb 22, 2010, at 3:01 PM, Naoya Nakazawa wrote:

> Hi,
> 
> I use monit version 5.1.
> I use hostheader option for httpd service, then I got a hostheader syntax 
> error on CentOS.
> 
> My monit configuration code is below,
> 
> check process httpd with pidfile /var/run/httpd/httpd.pid
>      start program = "/etc/init.d/httpd start"
>      stop program = "/etc/init.d/httpd stop"
>      if failed port 80 protocol http
>         and request "/" hostheader "example.com"
>         with timeout 2 seconds for 2 cycles
>         then restart
> 
> $ sudo monit -Iv
> /etc/monit.d/httpd:9: Error: syntax error 'hostheader'
> /etc/monit.d/httpd:9: Warning: check system service not defined -- adding 
> virtual service 'check system example.com' '"/"'
> 
> Why?
> 
> 
> Thank you,
> Naoya Nakazawa
> 
> 
> 
> 
> --
> To unsubscribe:
> http://lists.nongnu.org/mailman/listinfo/monit-general


reply via email to

[Prev in Thread] Current Thread [Next in Thread]