bachoA4o has asked for the wisdom of the Perl Monks concerning the following question:
When executing the code i see the number of packets on the terminal .When i execute rrdtool fetch opit11.rrd --start -100 it shows only zeroes 0.0000000000e+00 for the time that the script was running . If somoene can point me where is my mistake ? Thank you !my $in; my $out; while (1){ $in = system("snmpget -Oqv -v2c -c randomstr localhost 1.3.6.1.2.1.31. +1.1.1.7.3"); $out = system("snmpget -Oqv -v2c -c randomstr localhost 1.3.6.1.2.1.31 +.1.1.1.11.3"); system("rrdtool update opit11.rrd N:$in:$out") ; sleep 10; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Update RRD
by haukex (Archbishop) on Nov 25, 2018 at 13:47 UTC | |
|
Re: Update RRD
by bachoA4o (Sexton) on Nov 25, 2018 at 14:02 UTC | |
by haukex (Archbishop) on Nov 25, 2018 at 14:37 UTC | |
by bachoA4o (Sexton) on Nov 25, 2018 at 17:35 UTC |