[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 09:38:38 +0200 |
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
- Monitoring /dev/log?, mad, 2011/07/18
- Re: Monitoring /dev/log?,
Martin Pala <=
- Re: Monitoring /dev/log?, mad, 2011/07/18
- Re: Monitoring /dev/log?, Martin Pala, 2011/07/18
- Re: Monitoring /dev/log?, Aleksandrov Artyom, 2011/07/18
- Re: Monitoring /dev/log?, mad, 2011/07/18
- Re: Monitoring /dev/log?, Martin Pala, 2011/07/18
- Re: Monitoring /dev/log?, mad, 2011/07/18