[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Centos 5.2 + inittab
From: |
Martin Pala |
Subject: |
Re: Centos 5.2 + inittab |
Date: |
Wed, 1 Sep 2010 20:57:56 +0200 |
Looks OK ... i'd only remove the "allow 0.0.0.0" as it has no effect. Does the
/etc/monit.d/ directory contain configuration for monitored services?
Please can you send the monit log? (as mentioned in previous email)
Regards,
Martin
On Sep 1, 2010, at 3:57 PM, Samir Faci (Dev) wrote:
> These are the online lines that aren't commented out:
>
> set daemon 120 # check services at 2-minute intervals
> set init
> set logfile syslog facility log_daemon
> set idfile /var/.monit.id
> set statefile /var/.monit.state
> set mailserver localhost # primary mailserver
> set mail-format { from: address@hidden }
> set alert address@hidden
> set httpd port 2812 and
> use address localhost
> #use address 140.177.11.24 # only accept connection from localhost
> allow 0.0.0.0 # allow localhost to connect to the server and
> allow admin:monit # require user 'admin' with password 'monit'
>
>
> include /etc/monit.d/*
>
>
> --
> Samir
>
> On Wed, Sep 1, 2010 at 8:06 AM, Martin Pala <address@hidden> wrote:
>> The inittab entry looks OK. Please can you send the monit.conf and monit.log
>> files?
>>
>> Regards,
>> Martin
>>
>> On Aug 31, 2010, at 5:41 PM, Samir Faci (Dev) wrote:
>>
>>> I was looking at: http://mmonit.com/wiki/Monit/FAQ which has a simple
>>> example on how to setup monit to run from your inittab file.
>>>
>>> I presume that the configuration file I should do a: "set init"
>>>
>>> the process seems to be running:
>>> #> ps -aux | grep "monit"
>>> root 6392 0.0 0.0 49308 2056 ? Ss 10:23 0:00
>>> /usr/bin/monit -Ic /etc/monit.conf -l /var/log/monit.log
>>>
>>> inittab:
>>>
>>> mo:2345:respawn:/usr/bin/monit -Ic /etc/monit.conf -l /var/log/monit.log
>>>
>>>
>>> but it doesn't seem to be monitoring any of my services. If I run
>>> monit using the startup script everything works fine.
>>>
>>> Am I missing something obvious?
>>>
>>>
>>> --
>>> Samir Faci
>>> *insert title*
>>> fortune | cowsay -f /usr/share/cows/tux.cow
>>>
>>> --
>>> To unsubscribe:
>>> http://lists.nongnu.org/mailman/listinfo/monit-general
>>
>>
>> --
>> To unsubscribe:
>> http://lists.nongnu.org/mailman/listinfo/monit-general
>>
>
>
>
> --
> --
> Samir Faci
> *insert title*
> fortune | cowsay -f /usr/share/cows/tux.cow
>
> --
> To unsubscribe:
> http://lists.nongnu.org/mailman/listinfo/monit-general