[mrtg] Re: trying to use external script for graphing

Koelstra, J. (Jan) JKoelstra at MINSZW.NL
Mon Dec 13 17:12:01 MET 2004


John,

By default MRTG shows the rate per second. So if your number increments slowly this will result in somthing smaller than 1, wich is rounded down to 0.
To graph numbers that increment slowly you can add the 'PerMinute' or even the 'PerHour' option at the options line.

Hth,

Jan.

-----Original Message-----
From: mrtg-bounce at list.ee.ethz.ch [mailto:mrtg-bounce at list.ee.ethz.ch] On Behalf Of John Barbieri
Sent: Monday, December 13, 2004 4:57 PM
To: mrtg at list.ee.ethz.ch
Subject: [mrtg] trying to use external script for graphing


hello list.

im trying to use an external script to do graphing. when i run the
script manually, i get output from the script, but nothing appears on
the graphing.

the output looks something like this:

box-prompt: /bin/sh /home/jbarbieri/scripts/netscreen3.sh
2
27433
box-prompt:


the numbers do not reset to 0 when they are read, and the DO increment,
so using gauge wont help for that.


the number it increments is small, but im not to sure that has anything
to do with it, eg, over a 5 minute period, the top number wont move, but
the bottom might move by 5.





Am i missing something here???


config:

#### Number of Tear Drop and UDP Flood Attacks

Target[attack]: `/bin/sh /home/jbarbieri/scripts/netscreen3.sh`
MaxBytes[attack]: 1000
Title[attack]: Belmont NetScreen
PageTop[attack]: <H1>Number of Tear Drop and UDP Flood Attacks</H1>
Options[attack]: growright, nopercent, noinfo
YLegend[attack]: # of Attacks
ShortLegend[attack]: Attacks
Legend1[attack]: # of attacks
Legend2[attack]: # of attacks
LegendI[attack]: # of Tear Drop attacks:
LegendO[attack]: # of UDP Flood attacks:
WithPeak[attack]: ymw



thanks in advanced

J#### Number of Tear Drop and UDP Flood Attacks

#Target[attack]:
1.3.6.1.4.1.3224.3.2.1.4.1&1.3.6.1.4.1.3224.3.2.1.10.1:sway231nec at 65.175.128.43
Target[attack]: `/bin/sh /home/jbarbieri/scripts/netscreen3.sh`
MaxBytes[attack]: 1000
Title[attack]: Belmont NetScreen
PageTop[attack]: <H1>Number of Tear Drop and UDP Flood Attacks</H1>
Options[attack]: growright, nopercent, noinfo
YLegend[attack]: # of Attacks
ShortLegend[attack]: Attacks
Legend1[attack]: # of attacks
Legend2[attack]: # of attacks
LegendI[attack]: # of Tear Drop attacks:
LegendO[attack]: # of UDP Flood attacks:
WithPeak[attack]: ymw


John Barbieri

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


_________________________________________________________

Het ministerie van Sociale Zaken en Werkgelegenheid sluit elke aansprakelijkheid uit in verband met het niet juist, onvolledig of niet tijdig overkomen van de informatie in deze e-mail.
Aan dit bericht kunnen geen rechten worden ontleend.

Dit bericht is alleen bestemd voor de geadresseerde. Indien dit bericht niet voor u bestemd is, verzoeken wij u dit onmiddellijk aan ons te melden en de inhoud van dit bericht te vernietigen.
_________________________________________________________

The ministry of Social Affairs and Employment is not liable for any incorrect or incomplete transmission of the information in this e-mail or for any delay in its receipt.
This message shall not constitute any obligations.

This message is intended solely for the addressee.
If you have received this message in error, please inform us immediately and delete its content.
_________________________________________________________

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