[mrtg] Re: Problem running mailstats {Scanned}

PAUL WILLIAMSON pwilliamson at mandtbank.com
Wed Feb 16 04:45:12 MET 2005


>>> <wppiphoto at wppi.com> 2/15/2005 10:29:00 PM >>>
>Hi folks,
>
>I've setup and configured mailstats on my local system 
>which I want to get sendmail statistics for. The problem 
>I'm running into is as follows:
>
># mrtg /etc/mrtg/mailstats.cfg

<snip>

>WARNING: Problem with Externale get '/usr/sbin/mailstats':
>Expected a Number for 'out' but got ' M msgsfr bytes_from msgsto
bytes_to 

<more snip>

>Here is what I have in my /etc/mrtg/mailstats.cfg:
>

<even more snip>

>And if I run /usr/sbin/mailstats from the command line, I get the
correct 
>output:
>
># /usr/sbin/mailstats
>Statistics from Sun Dec 19 16:03:20 2004
>M msgsfr bytes_from msgsto bytes_to msgsrej msgsdis Mailer
>4 12 265K 315 1231K 0 0 esmtp
>9 345 1287K 9 67K 0 0 local
>=============================================================
>T 357 1552K 324 1298K 0 0
>C 316 236 0
>
>Any ideas what I'm doing wrong? Also, does the output of
/usr/sbin/mailstats 
>which shows "Statistics from Sun Dec 19" mean that is the last
statistics 
>report or is it from since Dec 19, 2004 till today 2/15/05?
>Thanks,
>SW 


Yeah, um, that isn't even close to what MRTG needs for it's input.
You need to have the following:

In
Out
uptime
hostname

The 3rd and 4th lines aren't necessary, you can just output 
blanks or other information.

http://people.ee.ethz.ch/~oetiker/webtools/mrtg/mrtg-reference.html

Look for "External Monitoring Scripts".

Paul

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list