Package: munin-node
Severity: normal
Tags: patch

The current courier_ plugin fails on my system. It yields the error:

   No logfile to read. Use -f switch.

Which happens because logtail is called without the -f switch. I don't
understand the block of code that calculates ARGS, but the plugin
behaves properly if I remove the following block:

    `$LOGTAIL /etc/hosts 2>/dev/null >/dev/null`
    ARGS=0
    if [ $? = 66 ]; then
        if [ ! -n "$logtail" ]; then
            ARGS=1
        fi
    fi

    if [ $ARGS != 0 ]; then
        ${LOGTAIL} -f ${COURIER_LOG} -o ${OFFSET_FILE} | grep "$SERVICE" > 
${TEMP_FILE}
    else
        ${LOGTAIL} ${COURIER_LOG} ${OFFSET_FILE} | grep "$SERVICE" > 
${TEMP_FILE}
    fi


and replace it with the if [ $ARGS != 0 ] line:

   ${LOGTAIL} -f ${COURIER_LOG} -o ${OFFSET_FILE} | grep "$SERVICE" > 
${TEMP_FILE}

Charles

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (90, 'testing'), (80, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.26-1um
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to