Re: [Exim] Monitoring

Top Page
Delete this message
Reply to this message
Author: Randy Bush
Date:  
To: Davidson Thaba
CC: exim-users
Subject: Re: [Exim] Monitoring
>> n=`find /var/exim/spool/input -name '*-H' -print 2>/dev/null | wc -l
> what about
> n=`/usr/local/exim/bin/exim -bpc`


for the record, this is the hack i use for mrtg

    #!/usr/local/bin/bash


    # input = size of spool
    #
    /bin/expr \
      `/usr/bin/du -s /var/spool/exim/input \
       | /usr/bin/awk '{print $1}'` / 10 


    # output = number of messages in queue
    #
    /usr/local/sbin/exim -bpc


    # pseudo-uptime
    #
    /bin/ps -auxww \
      | /usr/bin/grep exim \
      | /usr/bin/head -1 \
      | /usr/bin/awk '{print $9}'


    echo exim@`hostname`


    #


randy