Package: monit
Version: 1:5.4-2
Severity: normal
Tags: upstream

Hello, I tried to monitor rsyslogd with the following configuration:

    check process rsyslog with pidfile /var/run/rsyslogd.pid
      group system
      group rsyslog
      start program = "/etc/init.d/rsyslog start"
      stop  program = "/etc/init.d/rsyslog stop"
      if failed unixsocket /dev/log type UDP then restart
      if 5 restarts with 5 cycles then timeout
      depend rsyslog_rc

    check file rsyslog_rc with path "/etc/init.d/rsyslog"
      group rsyslog
      include /etc/monit/templates/rootbin

However Monit complains that the service "failed, cannot open a connection to
UNIX[/dev/log]", ``monit summary`` shows "connection failed".  I am able to
open a connection using ``nc -U -u /dev/log``, so the test should be possible.
Running ``monit -I -v`` however shows "Unix Socket = if failed [/dev/log
[protocol DEFAULT] with timeout 5 seconds and retry 0 time(s)] 1 times within 1
cycle(s) then restart else if succeeded 1 times within 1 cycle(s) then alert".
The ``protocol DEFAULT`` part makes it look like Monit is completely ignoring
the ``type UDP`` clause for unix sockets, which is a pity since it prevents
thoroughly monitoring the main system logger.

This may be the same case reported in Jul 2011 by mad in the mailing list:
http://comments.gmane.org/gmane.comp.monitoring.monit.general/5418

Thank you very much.

-- System Information:
Debian Release: 7.4
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32.16-linode28 (SMP w/4 CPU cores)
Locale: LANG=ca_ES.UTF-8, LC_CTYPE=ca_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to