> > okay I hope somebody here can help me with this. > > I have two scripts which get called from mrtg.conf, the first monitors incoming/outgoing mail and the second monitors sessions on a oracle db, their output is : > > [root@dent mrtg]# ./mail-stats.sh > 162 > 933 > > [root@dent mrtg]# Perhaps you copied it wrong, but scripts should return 4 lines, not 3. > they are both called in the same manner: > > 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. > You mean: zero's are logged ? If *nothing* changes, mrtg is not run and you need to look elsewhere (cron). If zero's are logged this could be: - an error (see above) in the output format - not reading a counter but rather some gauge value, and forgetting to use option gauge - Different path settings inside cron and on the command line. The last one needs more explanation. Suppose your script needs other scripts or programs. Those programs are called as-is, without a path part. If your command line shell looks in for instance /usr/bin, and your cron shell does not, you loose. Check this by calling the script itself from cron, not from mrtg inside cron, and see if it works. Regards, Alex -- * To unsubscribe from the mrtg mailing list, send a message with the subject: unsubscribe to mrtg-request@list.ee.ethz.ch * The mailing list archive is at http://www.ee.ethz.ch/~slist/mrtg