[mrtg] problems External Monitorin Script (help)

Jesús Antonio Montes Montes montes at fedro.ugr.es
Wed Feb 20 09:33:02 MET 2002


Hi all:

Help . I´ve been working on mrtg softtware and I´ve found the following problem: I´m using mrtg for doing statistics of the servers usage. I get data from an External Monitoring Script . Every 30 minutes I use the configuration file along with getting samples. This script gets the 4 lines which mrtg needs to work. These lines are the following:

number of current users
number of total users
date '+%d/%m/%y - %H:%M'
number of users

All this works pretty well. The problem comes when a random day I´m no able to pice up the samples of a determinated server and the following day, I hok mrtg for updating the samples of the statistics I didn´t read before.

I thought that I was going to be able to configurate it in order to get statistics from data sampling taken before than right now.

What mrtg does is to capture data right now and making statistics with previons samples an current samples all together

the .cfg file I´m using is the following:

Target[xx]:`/disk6/home/jmontes/mrtg/pruebas/numero_usuariosaxx`
WorkDir:/disk6/home/jmontes/mrtg/pruebas/web
Options[xx]: gauge integer nopercent noinfo
XSize[_]:600
WriteExpires:Yes
Language:spanish

MaxBytes[xx]:24
AbsMax[xx]: 1000
XSize[xx]: 600
YSize[xx]: 225
Title[xx]: Numero de Usuarios en el Servidor xx
YLegend[xx]: Usuarios por Servidor
ShortLegend[xx]: Usuarios por Servidor
Legend1[xx]: Numero de Usuarios Actuales en el Servidor
Legend2[xx]: Numero de Usuarios Totales en el Servidor
#Legend3[aceuta]: Maximal 5 Minute Incoming Traffic
#Legend4[aceuta]: Maximal 5 Minute Outgoing Traffic
LegendI[xx]:  Usuarios Actuales:
LegendO[xx]:  Usuarios Totales:
PageTop[xx]: <H1>Servidor de XX
 </H1>
 <TABLE>
   <TR><TD>Servidor:</TD><TD> xx  </TD></TR>
   <TR><TD>Descripcion:</TD><TD> Usuarios en el Servidor xx tomados cada 30 minutos por hora(15 Y 45)</TD></TR>
   <TR><TD>Contacto:</TD><TD> jmontes at ugr.es </TD></TR>
 </TABLE>

What am I doing wrong?
Is there a problem of the .cfg file or the way I give the samples?



--
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