Something like this?

CPU_LOAD=`snmpget -v 1 -c public ${HOST}
.1.3.6.1.4.1.2021.10.1.3.1|cut -d " " -f 4`

 ${RRD_TOOL} updatev ${DIRECTORY}/${HOST}_cpu_${MEASUREMENT}.rrd N:${CPU_LOAD}
Thanks,

-Ed Donahue III
610.290.8232


On Wed, Apr 9, 2014 at 10:01 AM, avonnieda <[email protected]> wrote:
>
>    Hi folks,
>
>    Hopefully a simple one. I'm looking for a way to assign a shell variable
> to a variable that can then be plotted on the graph. Does anyone have a
> simple example of this?
>
>    Thanks very much,
>
>       -Adam
>
>
>
> --
> View this message in context: 
> http://rrd-mailinglists.937164.n2.nabble.com/Can-I-plot-a-value-from-a-shell-script-variable-value-not-in-rrd-file-tp7581919.html
> Sent from the RRDtool Users Mailinglist mailing list archive at Nabble.com.
>
> _______________________________________________
> rrd-users mailing list
> [email protected]
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users

_______________________________________________
rrd-users mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users

Reply via email to