Error starting mmonit on linux
Martin Pala
martinp at tildeslash.com
Mon Apr 28 22:34:34 CEST 2008
We have not tested M/Monit behind proxy, will look on it for next release.
Thanks for report,
Martin
Guby wrote:
> Hi again!
> I got it working now.
> I had made a typo in my monitrc for the reporting back to mmonit.
> My fix with replacing all the <base> tags, although an ugly fix, also
> seems to work.
> I'll just have to remember to do it again when I update to a newer
> version of mmonit...
>
> Thanks
>
> Sebastian
>
>
>
>
> On Apr 27, 2008, at 2:45 PM, Guby wrote:
>
>> I have one more question, if I may.
>>
>> I am using nginx as a frontend proxying the requests to
>> 127.0.0.1:8080.
>>
>> The problem though is that mmonit refers to the ServerName several
>> places and therefore f.ex has a <base> tag in the head section of
>> many of its html pages that refer to 127.0.0.1:8080, which it
>> believes to be the external address. That doesn't make sense for the
>> browser though which tries to access parts of mmonit locally, and
>> only work if I also have mmonit running locally on the client as
>> well :)
>>
>> If I have nginx pass on the host header which I believe would be
>> what mmonit needs (?), mmonit tries to redirect the request to http://external.domain:8080/
>> which is wrong since I am blocking all ports I don't want to have
>> open...
>>
>> Do any of you have experience with this problem?
>>
>> I did a really ugly fix and replaced all the <base> tags with <base>
>> tags using the right domain and port, and that solved some of the
>> problems, but it is still not working very well... The "host status"
>> flash and event in the last 24 hours don't display properly (it
>> shows that the host is down, while mmonit also shows me that the
>> host is up and running if I drill down and look at the services
>> provided by the host in question).
>>
>> Best regards
>> Sebastian
>>
>>
>> On Apr 27, 2008, at 7:44 AM, Martin Pala wrote:
>>
>>> Yes, it looks like 64-bit issue ... we'll release 64-bit mmonit next
>>> time as well :)
>>>
>>> Can you provide the output of "ldd monit-2.0-alpha1/bin/mmonit"?
>>>
>>> Thanks,
>>> Martin
>>>
>>>
>>> On Apr 27, 2008, at 2:29 AM, James Brooks wrote:
>>>
>>>> Is your server running a 32-bit or 64-bit distribution? if it's a
>>>> 64-
>>>> bit distro, the mmonit binary is currently only available (afaik) in
>>>> the 32-bit flavour. You'll need to (on ubuntu)
>>>>
>>>> apt-get install ia32-libs
>>>>
>>>> if that isn't the issue, check the permissions of mmonit (chmod a+x
>>>> it if need be :P).
>>>>
>>>>
>>>> Cheers,
>>>> James Brooks
>>>> Good Dog Design
>>>>
>>>>
>>>>
>>>> On Sun, Apr 27, 2008 at 2:45 AM, Guby <guby.mail at gmail.com> wrote:
>>>> Hi
>>>> I downloaded mmonit to my ubuntu (Hardy) server and when trying to
>>>> run
>>>> it I only get
>>>> -bash: mmonit-2.0-alpha1/bin/mmonit: No such file or directory
>>>> And that is a lie...
>>>>
>>>> It works like a charm on my mac though!
>>>>
>>>> Any ideas?
>>>>
>>>> Best regards
>>>> Sebastian
>>>> _______________________________________________
>>>> mmonit-user mailing list
>>>> mmonit-user at tildeslash.com
>>>> http://www.tildeslash.com/mailman/listinfo/mmonit-user
>>>>
>>>> _______________________________________________
>>>> mmonit-user mailing list
>>>> mmonit-user at tildeslash.com
>>>> http://www.tildeslash.com/mailman/listinfo/mmonit-user
>>> _______________________________________________
>>> mmonit-user mailing list
>>> mmonit-user at tildeslash.com
>>> http://www.tildeslash.com/mailman/listinfo/mmonit-user
>
> _______________________________________________
> mmonit-user mailing list
> mmonit-user at tildeslash.com
> http://www.tildeslash.com/mailman/listinfo/mmonit-user
More information about the mmonit-user
mailing list