Hi, I wrote about same problem with syslog-ng http://lists.nongnu.org/archive/html/monit-dev/2011-06/msg00026.html It not works for me, if I use if failed unixsocket /dev/log type udp then restart
Strace still shows that monit try to open STREAM socket. --- Best regards, Artyom. С уважением, Артём. On Mon, Jul 18, 2011 at 4:39 PM, Martin Pala <[email protected]> wrote: > 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 > > > -- > To unsubscribe: > https://lists.nongnu.org/mailman/listinfo/monit-general > -- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
