[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [monit] hostheader syntax error
From: |
Naoya Nakazawa |
Subject: |
Re: [monit] hostheader syntax error |
Date: |
Tue, 23 Feb 2010 10:06:24 +0900 |
Hello Martin,
I applied hostheader.patch, then I works!
Thanks for help and patch.
Thank you,
Naoya Nakazawa
On Feb 23, 2010, at 6:16 AM, Martin Pala wrote:
> 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
>
>
>
> <hostheader.patch>
>
>
> 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
>
> --
> To unsubscribe:
> http://lists.nongnu.org/mailman/listinfo/monit-general
---
Naoya Nakazawa
http://www.sssg.org/blogs/naoya/