[mrtg] Re: R: Shiva Lanrover

Phil Loper Phil at GraceLivingCenters.com
Fri Oct 15 15:32:22 MEST 1999


Deflorio, are you saying these lines added to the cfg file would do it all?
Would I still need a script?

-----Original Message-----
From: Deflorio Angelo [mailto:a.deflorio at exch_srv.finsiel.it]
Sent: Friday, October 15, 1999 7:27 AM
To: KOCH François Athesa
Cc: 'mrtg at list.ee.ethz.ch'
Subject: [mrtg] R: Re: Shiva Lanrover


François, don't you think that

Target[POP.LinesUp]: ifOperHack.2&ifOperHack.2:public at POP
+ ifOperHack.3&ifOperHack.3:public at POP
..
+ ifOperHack.<n>&ifOperHack.<n>:public at POP

could be enough and much more simple?
bye

Angelo Deflorio
Netsiel S.p.A. - Bari (Italia)
+39 080 5092342
a.deflorio at netsiel.it


-----Messaggio originale-----
Da: KOCH François Athesa [mailto:KOCH at ulysse.cea.fr]
Inviato: venerdì 15 ottobre 1999 14.18
A: 'Phil Loper'; 'Henry Steinhauer'
Cc: 'mrtg at list.ee.ethz.ch'
Oggetto: [mrtg] Re: Shiva Lanrover


Here is the script - well it's a basic one since I'm not really a programer
:)

touch /produits/html/mrtg/Shiva/toto.tmp

reponse=`/usr/bin/snmpget toto public
.iso.org.dod.internet.private.enterprises.shiva.sSystems.serial.serialPortTa
ble.serialPortEntry.serialPortStatus.1 2> /dev/null`
status=`echo $reponse | awk ' { print $4 } '`
echo $status >> /produits/html/mrtg/Shiva/toto.tmp 


reponse=`/usr/bin/snmpget toto public
.iso.org.dod.internet.private.enterprises.shiva.sSystems.serial.serialPortTa
ble.serialPortEntry.serialPortStatus.2 2> /dev/null`
status=`echo $reponse | awk ' { print $4 } '`
echo $status >> /produits/html/mrtg/Shiva/toto.tmp 


reponse=`/usr/bin/snmpget toto public
.iso.org.dod.internet.private.enterprises.shiva.sSystems.serial.serialPortTa
ble.serialPortEntry.serialPortStatus.3 2> /dev/null`
status=`echo $reponse | awk ' { print $4 } '`
echo $status >> /produits/html/mrtg/Shiva/toto.tmp 


reponse=`/usr/bin/snmpget toto public
.iso.org.dod.internet.private.enterprises.shiva.sSystems.serial.serialPortTa
ble.serialPortEntry.serialPortStatus.4 2> /dev/null`
status=`echo $reponse | awk ' { print $4 } '`
echo $status >> /produits/html/mrtg/Shiva/toto.tmp 


reponse=`/usr/bin/snmpget toto public
.iso.org.dod.internet.private.enterprises.shiva.sSystems.serial.serialPortTa
ble.serialPortEntry.serialPortStatus.5 2> /dev/null`
status=`echo $reponse | awk ' { print $4 } '`
echo $status >> /produits/html/mrtg/Shiva/toto.tmp 


reponse=`/usr/bin/snmpget toto public
.iso.org.dod.internet.private.enterprises.shiva.sSystems.serial.serialPortTa
ble.serialPortEntry.serialPortStatus.6 2> /dev/null`
status=`echo $reponse | awk ' { print $4 } '`
echo $status >> /produits/html/mrtg/Shiva/toto.tmp 


reponse=`/usr/bin/snmpget toto public
.iso.org.dod.internet.private.enterprises.shiva.sSystems.serial.serialPortTa
ble.serialPortEntry.serialPortStatus.7 2> /dev/null`
status=`echo $reponse | awk ' { print $4 } '`
echo $status >> /produits/html/mrtg/Shiva/toto.tmp 


reponse=`/usr/bin/snmpget toto public
.iso.org.dod.internet.private.enterprises.shiva.sSystems.serial.serialPortTa
ble.serialPortEntry.serialPortStatus.8 2> /dev/null`
status=`echo $reponse | awk ' { print $4 } '`
echo $status >> /produits/html/mrtg/Shiva/toto.tmp 


total=`cat /produits/html/mrtg/Shiva/toto.tmp | grep packet | wc -l`
echo 0 
echo $total 
reponse=`/usr/bin/snmpget toto public system.sysuptime.0 2> /dev/null | awk
' { print $5 $6 $7 } '`
echo $reponse
echo toto

rm -f /produits/html/mrtg/Shiva/toto.tmp

And  here is the related mrtg.cfg

WorkDir: /produits/html/mrtg/Shiva
Refresh: 300
Interval: 5
YLegend[_]: Lignes 
ShortLegend[_]: ligne(s)
Legend1[_]: 
Legend2[_]: Nombre de lignes utilisées simultanément
Legend3[_]: 
Legend4[_]: Pics d'utilisation
LegendI[_]:
LegendO[_]: 
WithPeak[_]: ymw  
XSize[_]: 450
XZoom[_]: 1
YZoom[_]: 1
XScale[_]: 1
YScale[_]: 1

#---------------------------------------------------------------

Directory[_]: . 
Options[_]: growright, gauge
Title[_]: Utilisation des lignes d'accès distants
PageTop[^]: <H1>Nombre de lignes utilisées<BR></H1>

Target[toto]: `/produits/html/mrtg/Shiva/bin/toto.sh`
MaxBytes[toto]: 8
PageTop[toto]: <HR>
  <TABLE>
    <TR><TD>Système:</TD><TD>Serveur Shiva <B>toto</B></TD></TR>
    <TR><TD>Description:</TD><TD>Fontenay - CEAnet Interne</TD></TR>
    <TR><TD>Nombre de lignes:</TD><TD>8</TD></TR>
  </TABLE>
  <HR>

#---------------------------------------------------------------

Don't worry about French words, I just translated some little things into
French for our convenience -
This is what I use for a Shiva Lanrover E+ with 8 POTS lines. It works as
well for ISDN lines.

Sorry but I don't know how you can add the mib, as it depends on your
software (your snmpget). I think that if you consult the related
documentation
you'll find the right informations.

________________________________________________________________
Francois KOCH
CS SI - Athesa / CEA Saclay
Tel: 01 69 08 67 53 Fax: 01 69 08 87 55

> -----Message d'origine-----
> De:	Phil Loper [SMTP:Phil at GraceLivingCenters.com]
> Date:	jeudi 14 octobre 1999 20:55
> À:	KOCH François Athesa; 'Henry Steinhauer'; Phil Loper
> Cc:	'mrtg at list.ee.ethz.ch'
> Objet:	RE: [mrtg] Re: Shiva Lanrover
> 
> Could I talk you out of a copy of the script and your cfg file?  Also, how
> do I install a MIB on my MRTG machine?  It is running NT workstation.
> 
> -----Original Message-----
> From: KOCH François Athesa [mailto:KOCH at ulysse.cea.fr]
> Sent: Thursday, October 14, 1999 12:56 PM
> To: 'Henry Steinhauer'; Phil Loper
> Cc: 'mrtg at list.ee.ethz.ch'
> Subject: RE: [mrtg] Re: Shiva Lanrover
> 
> 
> I use MRTG in order to monitor the number of lines that are used
> simultaneously on a shiva lanrover/E+.
> To do that, the only thing I could find is the OID
> .iso.org.dod.internet.private.enterprises.shiva.sSystems.serial.serialPort
> Ta
> ble.serialPortEntry.serialPortStatus.n
> It tells you the status of the line number n. If the line is used, the
> status is 'packet' (other possible status are 'idle' etc.), so I had to
> write a basic script that polls this OID for each line, count the number
> of
> response 'packet' and merge the result with MRTG to graph it.
> Be sure to have the shiva MIB installed on your MRTG machine and it should
> work well.
> 
> ISDN and POTS line are on different servers, so I don't have to separate
> the
> result but I guess I you want to do so, you'll just have to poll
> separately
> the 2 groups of line by manually specifying the right SNMP instances i
> your
> script.
> 
> Hope this help,
> ________________________________________________________________
> Francois KOCH
> CS SI - Athesa / CEA Saclay
> Tel: 01 69 08 67 53 Fax: 01 69 08 87 55
> 

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

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

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