[mrtg] Re: script problem

Robin Kearney robin at riviera.org.uk
Thu Jul 22 14:56:06 MEST 1999


okay I tried:
a) running mrtg from the command line, nothing
b) redirecting stderr, creates and empty file :(
c) making sure everybody can run the script, yes they can.

This is what I have in mrtg.cfg:

Target[mail]: `/home/httpd/html/mrtg/mail-stats.sh 2>/tmp/mail-stats.err`
MaxBytes[mail]: 150
Options[mail]: gauge
Title[mail]: dent Sendmail Statistics
PageTop[mail]: dent Sendmail Statistics</H1>
WithPeak[mail]: dwmy
YLegend[mail]: No. of messages
ShortLegend[mail]: messages
LegendI[mail]: &nbsp;Incoming:
LegendO[mail]: &nbsp;Outgoing:


nothing strange or unusual.  the output is at http://dent.riviera.org.uk/mrtg/mail.html as you can see nothing :(

I thought it might just be a lack of mail, it is a new box, so I ran "while (true) ; do ; mail robin at funmail.co.uk < /etc/hosts ; sleep 10 ; done" from the cmd line, and watched the output from mail-stats rocket up as expected, but still nothing on the graphs.

Anybody have any further ideas?



On Thu, Jul 22, 1999 at 02:41:11PM +0100, Morten S. Nielsen wrote:
> 
> On Thu, 22 Jul 1999, Robin Kearney wrote:
> 
> > 
> > Target[mail]: `/home/httpd/html/mrtg/mail-stats.sh`
> > 
> > but nothing seems to get logged in either the graphs or the log files.  
> > For everything else (snmp) mrtg is working fine.
> > 
> > am I doing something wrong?
> > 
> 
> Not as far as I can see, but are the scripts executable by everybody? It
> is probably user cron or nobody that has to run mrtg an thus the
> scripts...
> 
> Have you tried to run mrtg from command line?
> 
> you might try to redire the output of the commands to files
> 
> Target[mail]: `/home/httpd/html/mrtg/mail-stats.sh 2> /tmp/mail-stats.err`
> 
> or 
> 
> Target[mail]: `/home/httpd/html/mrtg/mail-stats.sh 2> /tmp/mail-stats.err 
> > /tmp/mail-stats.std`
> 
> The latter doesn't give anything to mrtg but lets you review the data...
> 
> 
> Servicepack SR12 for NT. Available at www.linux.org
> 
> --    Morten S. Nielsen    mailto:msn at ipt.dtu.dk
> --
> --  |   Linux - the choice of a GNU generation   |
> --  |      Skaane Sjaelland Linux User Group     |
> --  |         at http://www.sslug.dk             |
> 
> 

-- 
Robin Kearney			http://riviera.org.uk/
robin at riviera.org.uk		mobile: 0973 818 354

--
* To unsubscribe from the mrtg mailing list, send a message with the
  subject: unsubscribe to mrtg-request at list.ee.ethz.ch
* The mailing list archive is at http://www.ee.ethz.ch/~slist/mrtg


More information about the mrtg mailing list