I am very new to shell scripting. I messed with basic examples in college, but this this the first work related project I am trying to work on. I am trying to test the rrdtool on our office wan link by measuring the bandwidth utilization. The script concept is fairly easy, but I am seeing many different results online and I am not sure which to follow. I am trying to create a script that:
retrieves the result of (snmpget -v 2c -c community IF-MIB::ifInOctets.4)
places it into variable $in
retrieve the result of (snmpget -v 2c -c community IF-MIB::ifOutOctets.4)
places it into variable $out
and use rrdtool update to update the information in the variables created
You will need to parse the return from your snmpget's in order to supply the rrdtool with the information.
To get information
Post the format of the rrdtool command and what you want to send it from the ouput of your snmpget. You will either use cut or awk to parse the ouput. You can do this before variable assignment; something like...
Last edited by Don Cragun; 10-16-2013 at 02:00 PM..
Reason: Fix CODE tags.
I'm new to utilities like socat and netcat and I'm not clear if they will do what I need.
I have a "compileDeployStartWebServer.sh" script and a "StartBrowser.sh" script that are started by emacs/elisp at the same time in two different processes.
I'm using Cygwin bash on Windows 10.
My... (3 Replies)
I have this code that gives this error on Linux and will be grateful if you can help
import rrdtool
try:
ret_asd = rrdtool.update(myfile.rrd,'N:%s:%s' %(metric1, metric2));
except rrdtool.error, e:
print e
When i run the above i get the below error
except... (1 Reply)
Hi Guys,
Why do we use RRDtool in MRTG?
I have implemented MRTG for some routers,
I have read some notes about RRDTOOL also but don't know what is use of these tool.
Any one one please explain me the use of RRDTOOL in their own words? (1 Reply)
Hello all,
I am new to RRDtool and have made a RRDtool database with one data-source. Information of this data-source is stored in four different RRA's with different intervals for different time spans.
Database create command:
rrdtool create /root/mde.rrd --step 300 \... (2 Replies)
I tried to compile the RRDtool on HP-UX (IA56). I have gcc-3.4.3 and perl 5.8.0
I got this:
Writing Makefile for RRDs
cd perl-shared && make
/opt/perl/bin/perl /opt/perl/lib/5.8.0/ExtUtils/xsubpp -typemap /opt/perl/lib/5.8.0/ExtUtils/typemap RRDs.xs > RRDs.xsc && mv... (2 Replies)