[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Monitoring /dev/log?
From: |
Martin Pala |
Subject: |
Re: Monitoring /dev/log? |
Date: |
Mon, 18 Jul 2011 14:39:08 +0200 |
It is most probably DGRAM socket (the default for unixsocket test is STREAM),
you can try this:
if failed unixsocket /dev/log type udp then restart
On Jul 18, 2011, at 10:07 AM, mad wrote:
> Sorry, I forgot to mention, I already tried that. The result is
>
> 'rsyslog' failed, cannot open a connection to UNIX[/dev/log]
>
> Regards,
> mad
>
> Am 18.07.2011 09:38, schrieb Martin Pala:
>> Hi,
>>
>> the /dev/log is unix socket ... you can check it along with the process
>> itself, for example:
>>
>> check process rsyslog with pidfile /var/run/rsyslog.pid
>> start program = "/etc/init.d/rsyslog start"
>> stop program = "/etc/init.d/rsyslog stop"
>> if failed unixsocket /dev/log then restart
>>
>> (verify the paths to pidfile and init script are correct)
>>
>> Regards,
>> Martin
>>
>>
>>
>> On Jul 18, 2011, at 8:47 AM, mad wrote:
>>
>>> Hi,
>>>
>>> I would like to monitor the file '/dev/log' which is created by rsyslog.
>>> I only want to know if it exists and if it does not exist, rsyslog
>>> should be restarted.
>>>
>>> So far I have no luck with that, because /dev/log is no ordinary file.
>>> It may not help that I have only monit version 5.0.3.
>>>
>>> Thanks in advance for any help,
>>> mad
>>>
>>> --
>>> To unsubscribe:
>>> https://lists.nongnu.org/mailman/listinfo/monit-general
>>
>>
>> --
>> To unsubscribe:
>> https://lists.nongnu.org/mailman/listinfo/monit-general
>
>
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general