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

Reply via email to