[rrd-users] example config
Quenton
Quenton_help at gmx.de
Tue May 18 17:02:48 MEST 2004
Hi everbody,
I am new in this news group .
I wanne monitor serveral values from a sip Proxy . I want to update my rrd database every second , if this is possible ?
Can somebody give me s an example pl script/ konfiguration . I have problems with time value, I wanne graph for 1 Hour and a second graph for one
day.
Thanks a lot in advance
best regards
Stefan
Here are my first try:
#!/usr/bin/perl
use RRDs;
$i=10;
$creqin=1000;
$time= `perl -e 'print time'`;
print $time;
`rrdtool create sip.rrd --start $time --step 1 DS:creqin:GAUGE:1:0:1000 RRA:MAX:0.5:1:24 `;
$time+=1;
while( $i > 0 ){
$creqin=`/usr/local/bin/snmpget -v 1 -c public -Oqv localhost 1.3.6.1.2.1.9990.1.5.1.1.1.1 `;
RRDs::update ("sip.rrd","$time:$creqin");
$i-=1;
$time+=1;
}
`rrdtool graph sip.gif --start $time_alt --end $time DEF:sip=sip.rrd:creqin:MAX LINE2:sip#FF0000`;
--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the rrd-users
mailing list