Hello,
I would like to ask for some assistance. I am trying log bandwidth
data from a cisco device with rrdtool.
I can get data from snmpget at the command line:
[EMAIL PROTECTED] ~]# snmpget -c public -v 1 -Oqv 192.168.1.1 ifInOctets.
12767494300
The database was created as follows:
[EMAIL PROTECTED] ~]# rrdtool create inside.rrd -s 300
DS:in:COUNTER:600:U:U DS:out:COUNTER:600:U:U RRA:AVERAGE:0.5:1:576
RRA:AVERAGE:0.5:6:672 RRA:AVERAGE:0.5:24:732 RRA:AVERAGE:0.5:144:1460
Updated as follows - basically 2 data source values for in and out.
[EMAIL PROTECTED] ~]# rrdupdate /var/lib/rrd/outside.rrd N:'snmpget -c
public -v 1 -Oqv 192.168.1.1 ifInOctets.1' N:'snmpget -c public -v 1
-Oqv 192.168.1.1 ifOutOctets.1'
RRDtool 1.2.99907080300 Copyright by Tobi Oetiker, 1997-2007
Usage: rrdupdate filename
[--template|-t ds-name:ds-name:...]
time|N:value[:value...]
[EMAIL PROTECTED]:value...]
[ time:value[:value...] ..]
ERROR: not a simple integer: 'snmpget -c public -v 1 -Oaqv 192.168.1.1
ifInOctets.1'
[EMAIL PROTECTED] ~]#
[EMAIL PROTECTED] ~]# snmpget -c public -v 1 192.168.1.1 ifInOctets.1
IF-MIB::ifInOctets.1 = Counter32: 2767527822
What does 'not a simple integer' imply? The integer I am trying to
insert into the database is 1276749430.
regards,
secrookie
_______________________________________________
rrd-users mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users